MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / encodeResourceParts

Function encodeResourceParts

packages/worker-utils/src/callback-token.ts:13–15  ·  view source on GitHub ↗
(resourceParts: readonly string[])

Source from the content-addressed store, hash-verified

11};
12
13function encodeResourceParts(resourceParts: readonly string[]): string {
14 return resourceParts.map(part => `${part.length}:${part}`).join('');
15}
16
17function buildCallbackTokenMessage(params: Omit<CallbackTokenParams, 'secret'>): string {
18 return `callback:v1:${params.scope}:${encodeResourceParts(params.resourceParts)}`;

Callers 1

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected