MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / onEvent

Method onEvent

src/runtime/adapters/slack.ts:308–318  ·  view source on GitHub ↗
(event: AgentEvent)

Source from the content-addressed store, hash-verified

306 const pendingFiles: Array<{ filePath: string; caption?: string }> = [];
307 const placeholder = await this.sendPlaceholderMessage(client, route);
308
309 const onEvent = (event: AgentEvent) => {
310 if (event.type === "text_delta") {
311 finalText += event.delta;
312 } else if (event.type === "file_output") {
313 pendingFiles.push({
314 filePath: event.filePath,
315 caption: event.caption,
316 });
317 }
318 this.ipcBroadcaster?.broadcastAgentEvent(channelId, event);
319 };
320
321 try {

Callers

nothing calls this directly

Calls 1

broadcastAgentEventMethod · 0.65

Tested by

no test coverage detected