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

Function stableTaskId

packages/runtime-host/src/protocol/task-ledger.ts:346–349  ·  view source on GitHub ↗
(value: unknown, label: string)

Source from the content-addressed store, hash-verified

344}
345
346function stableTaskId(value: unknown, label: string): string {
347 if (!isSafeTaskId(value)) throw invalidProtocolFrame(`Invalid ${label}`);
348 return value;
349}
350
351function taskKey(value: unknown): string {
352 if (!isTaskKey(value)) throw invalidProtocolFrame('Invalid task key');

Callers 3

taskLedgerTaskFunction · 0.85
optionalStableTaskIdFunction · 0.85
optionalOwnerIdFunction · 0.85

Calls 2

isSafeTaskIdFunction · 0.90
invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected