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

Function scopePrefix

packages/computer/src/artifacts/scope.ts:57–59  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

55
56/** The prefix that every scoped name for a session begins with. */
57export function scopePrefix(sessionId: string): string {
58 return `${assertSessionId(sessionId)}${SCOPE_SEPARATOR}`;
59}
60
61/**
62 * Strip the session prefix from a scoped name. Returns undefined

Callers 3

createArtifactFunction · 0.85
scope.test.tsFile · 0.85
unscopedNameFunction · 0.85

Calls 1

assertSessionIdFunction · 0.85

Tested by

no test coverage detected