MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / emitCompleted

Function emitCompleted

services/cloud-agent-next/wrapper/src/auto-commit.ts:67–83  ·  view source on GitHub ↗
(
  onEvent: AutoCommitOptions['onEvent'],
  result: {
    success: boolean;
    message: string;
    skipped?: boolean;
    commitHash?: string;
    commitMessage?: string;
  },
  messageId?: string
)

Source from the content-addressed store, hash-verified

65
66function emitStarted(
67 onEvent: AutoCommitOptions['onEvent'],
68 message: string,
69 messageId?: string
70): void {
71 onEvent({
72 streamEventType: 'autocommit_started',
73 data: { message, messageId },
74 timestamp: new Date().toISOString(),
75 });
76}
77
78function emitCompleted(
79 onEvent: AutoCommitOptions['onEvent'],
80 result: {
81 success: boolean;
82 message: string;
83 skipped?: boolean;
84 commitHash?: string;
85 commitMessage?: string;
86 committedAt?: string;

Callers 1

runAutoCommitFunction · 0.85

Calls 1

onEventFunction · 0.50

Tested by

no test coverage detected