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

Function isShellRunId

packages/core/src/shell-run.ts:161–163  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

159}
160
161export function isShellRunId(value: unknown): value is string {
162 return typeof value === 'string' && SHELL_RUN_ID_PATTERN.test(value);
163}
164
165export function isTerminalShellRunStatus(value: ShellRunStatus): value is ShellRunTerminalStatus {
166 return (SHELL_RUN_TERMINAL_STATUSES as readonly string[]).includes(value);

Callers 3

shellRunResourceRefFunction · 0.90
parseShellRunResourceRefFunction · 0.90
assertShellRunIdentifierFunction · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected