MCPcopy
hub / github.com/claude-code-best/claude-code / emit

Function emit

packages/workflow-engine/src/engine/hooks.ts:48–53  ·  view source on GitHub ↗
(init: HookProgressInit)

Source from the content-addressed store, hash-verified

46): WorkflowHooks {
47 // All progress events auto-inject runId so the adapter can route them to the corresponding task (multiple concurrent workflows)
48 const emit = (init: HookProgressInit): void => {
49 ctx.ports.progressEmitter.emit({
50 runId: ctx.runId,
51 ...init,
52 } as ProgressEvent)
53 }
54
55 const agent: WorkflowHooks['agent'] = async (prompt, opts = {}) => {
56 const r = ctx.resources

Callers 4

agentFunction · 0.70
onProgressFunction · 0.70
phaseFunction · 0.70
logFunction · 0.70

Calls 1

emitMethod · 0.45

Tested by

no test coverage detected