MCPcopy Create free account
hub / github.com/cloudflare/computer / scopedName

Function scopedName

packages/computer/src/artifacts/scope.ts:52–54  ·  view source on GitHub ↗
(sessionId: string, name: string)

Source from the content-addressed store, hash-verified

50
51/** Build the fully-qualified name the binding stores. */
52export function scopedName(sessionId: string, name: string): string {
53 return `${assertSessionId(sessionId)}${SCOPE_SEPARATOR}${assertLocalName(name)}`;
54}
55
56/** The prefix that every scoped name for a session begins with. */
57export function scopePrefix(sessionId: string): string {

Callers 9

createFunction · 0.85
getFunction · 0.85
importFunction · 0.85
deleteFunction · 0.85
createTokenFunction · 0.85
listTokensFunction · 0.85
getTokenFunction · 0.85
revokeTokenFunction · 0.85
scope.test.tsFile · 0.85

Calls 2

assertSessionIdFunction · 0.85
assertLocalNameFunction · 0.85

Tested by

no test coverage detected