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

Function isTaskKey

packages/core/src/task-ledger.ts:229–235  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

227}
228
229export function isTaskKey(value: unknown): value is string {
230 return (
231 typeof value === 'string' &&
232 value.length <= TASK_KEY_MAX_CHARS &&
233 /^T[1-9]\d*(?:\.[1-9]\d*)*$/.test(value)
234 );
235}
236
237export function compareTaskKeys(left: string, right: string): number {
238 const a = left.slice(1).split('.').map(Number);

Callers 4

nextTaskKeyFunction · 0.90
taskKeyFunction · 0.90
taskReferenceFunction · 0.90
isTaskLedgerEventTaskFunction · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected