MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / emitQueue

Method emitQueue

apps/cli/src/agent/json-event-emitter.ts:190–205  ·  view source on GitHub ↗
(event: {
		subtype: "snapshot" | "enqueued" | "dequeued" | "drained" | "updated"
		taskId?: string
		content?: string
		queueDepth: number
		queue: JsonEventQueueItem[]
	})

Source from the content-addressed store, hash-verified

188 }
189
190 emitQueue(event: {
191 subtype: "snapshot" | "enqueued" | "dequeued" | "drained" | "updated"
192 taskId?: string
193 content?: string
194 queueDepth: number
195 queue: JsonEventQueueItem[]
196 }): void {
197 this.emitEvent({
198 type: "queue",
199 subtype: event.subtype,
200 taskId: event.taskId,
201 content: event.content,
202 queueDepth: event.queueDepth,
203 queue: event.queue,
204 })
205 }
206
207 private handleStateChange(event: AgentStateChangeEvent): void {
208 // Only treat the next say:text as a prompt echo when a new task starts.

Callers 1

onExtensionMessageFunction · 0.80

Calls 1

emitEventMethod · 0.95

Tested by

no test coverage detected