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

Function taskReference

packages/runtime-host/src/protocol/task-ledger.ts:356–361  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

354}
355
356function taskReference(value: unknown): string {
357 if (!isSafeTaskId(value) && !isTaskKey(value)) {
358 throw invalidProtocolFrame('Invalid task reference');
359 }
360 return value;
361}
362
363function taskStatus(value: unknown): Task['status'] {
364 if (!isTaskStatus(value)) throw invalidProtocolFrame('Invalid task status');

Callers 1

Calls 3

isSafeTaskIdFunction · 0.90
isTaskKeyFunction · 0.90
invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected