MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / getActionEventMap

Function getActionEventMap

projects/openade-module/src/yjsMutation.ts:244–249  ·  view source on GitHub ↗
(doc: Y.Doc, taskId: string, eventId: string)

Source from the content-addressed store, hash-verified

242}
243
244function getActionEventMap(doc: Y.Doc, taskId: string, eventId: string): Y.Map<unknown> {
245 const event = getOrderedItemMap(doc, "task:events", eventId)
246 if (!event) throw new Error(`Event ${eventId} not found in task ${taskId}`)
247 if (event.get("type") !== "action") throw new Error(`Event ${eventId} is not an action event`)
248 return event
249}
250
251function findActionEventForRuntime(
252 doc: Y.Doc,

Callers 9

appendActionStreamEventFunction · 0.85
completeActionEventFunction · 0.85
errorActionEventFunction · 0.85
stoppedActionEventFunction · 0.85
updateActionExecutionFunction · 0.85
addHyperPlanSubExecutionFunction · 0.85

Calls 2

getOrderedItemMapFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected