MCPcopy Create free account
hub / github.com/Noumena-Network/code / encodeWorkspaceId

Function encodeWorkspaceId

src/utils/citcWorkspaceSource.ts:11–18  ·  view source on GitHub ↗
(
  repo: string,
  rawWorkspaceName: string,
)

Source from the content-addressed store, hash-verified

9const SAPLING_CONFIG_CANDIDATES = ['.hg/hgrc', '.sl/config']
10
11export function encodeWorkspaceId(
12 repo: string,
13 rawWorkspaceName: string,
14): string {
15 return Buffer.from(`${repo}\u0000${rawWorkspaceName}`, 'utf8').toString(
16 'base64url',
17 )
18}
19
20export function parseCommitCloudRc(contents: string): {
21 rawWorkspaceName: string

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected