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

Function findTaskByRef

packages/core/src/task-ledger.ts:248–250  ·  view source on GitHub ↗
(tasks: readonly Task[], ref: string)

Source from the content-addressed store, hash-verified

246}
247
248export function findTaskByRef(tasks: readonly Task[], ref: string): Task | undefined {
249 return tasks.find((task) => task.id === ref || task.key === ref);
250}
251
252export function normalizeTaskSubject(input: unknown): TaskLedgerNormalizeResult<string> {
253 if (typeof input !== 'string') {

Callers 8

getMethod · 0.90
#getCanonicalMethod · 0.90
createMethod · 0.90
updateMethod · 0.90
claimMethod · 0.90
claimAvailableMethod · 0.90
settleAgentOutcomeMethod · 0.90
#queryMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected