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

Function assertShellRunPatch

packages/core/src/shell-run.ts:371–377  ·  view source on GitHub ↗
(patch: ShellRunPatch)

Source from the content-addressed store, hash-verified

369}
370
371export function assertShellRunPatch(patch: ShellRunPatch): void {
372 for (const key of Object.keys(patch)) {
373 if (!SHELL_RUN_PATCH_KEYS.has(key)) {
374 throw new Error(`ShellRun field is immutable: ${key}`);
375 }
376 }
377}
378
379/**
380 * Applies a validated patch and returns the next record, or `current` unchanged

Callers 2

updateShellRunMethod · 0.90
nextShellRunRecordFunction · 0.85

Calls 2

keysMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected