MCPcopy Create free account
hub / github.com/apache/maka / shellRunResourceRef

Function shellRunResourceRef

packages/runtime/src/shell-run-contract.ts:184–187  ·  view source on GitHub ↗
(shellRunId: string)

Source from the content-addressed store, hash-verified

182}
183
184export function shellRunResourceRef(shellRunId: string): string {
185 if (!isShellRunId(shellRunId)) throw new Error('Invalid shell run id');
186 return `${SHELL_RUN_RESOURCE_PREFIX}/${encodeURIComponent(shellRunId)}`;
187}
188
189export function isShellRunResourceRef(ref: string): boolean {
190 return parseShellRunResourceRef(ref) !== null;

Callers 5

parseShellRunResourceRefFunction · 0.85
buildContextSummaryMethod · 0.85
publishPtyDataMethod · 0.85
shellRunStateContentFunction · 0.85

Calls 1

isShellRunIdFunction · 0.90

Tested by

no test coverage detected