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

Function assertShellRunIdentifier

packages/core/src/shell-run.ts:316–318  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

314}
315
316export function assertShellRunIdentifier(value: string): void {
317 if (!isShellRunId(value)) throw new Error('Invalid shell run id');
318}
319
320export function shellRunNotFoundError(shellRunId: string): Error & { code?: string } {
321 const error = new Error(`ShellRun does not exist: ${shellRunId}`) as Error & { code?: string };

Callers 3

createShellRunMethod · 0.90
updateShellRunMethod · 0.90
readShellRunMethod · 0.90

Calls 1

isShellRunIdFunction · 0.85

Tested by

no test coverage detected