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

Function taskStatus

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

Source from the content-addressed store, hash-verified

361}
362
363function taskStatus(value: unknown): Task['status'] {
364 if (!isTaskStatus(value)) throw invalidProtocolFrame('Invalid task status');
365 return value;
366}
367
368function timestamp(value: unknown, label: string): number {
369 if (typeof value !== 'number' || !Number.isFinite(value)) {

Callers 1

taskLedgerTaskFunction · 0.85

Calls 2

isTaskStatusFunction · 0.90
invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected