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

Function hasTerminalAgentRunEvent

packages/runtime/src/terminal-run-commit.ts:332–339  ·  view source on GitHub ↗
(events: readonly Pick<AgentRunEvent, 'type'>[])

Source from the content-addressed store, hash-verified

330}
331
332export function hasTerminalAgentRunEvent(events: readonly Pick<AgentRunEvent, 'type'>[]): boolean {
333 return events.some(
334 (event) =>
335 event.type === 'run_completed' ||
336 event.type === 'run_failed' ||
337 event.type === 'run_cancelled',
338 );
339}
340
341function terminalAgentRunEventType(status: TerminalAgentRunStatus): AgentRunEventType {
342 if (status === 'cancelled') return 'run_cancelled';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected