Skip to content

feat(telemetry): add cli.run.complete event — closes #688#725

Merged
agents-squads[bot] merged 1 commit intodevelopfrom
solve/issue-688
Apr 2, 2026
Merged

feat(telemetry): add cli.run.complete event — closes #688#725
agents-squads[bot] merged 1 commit intodevelopfrom
solve/issue-688

Conversation

@agents-squads
Copy link
Copy Markdown
Contributor

@agents-squads agents-squads bot commented Apr 2, 2026

Summary

  • Adds cli.run.complete event to Events object in telemetry.ts
  • Fires after squad run and agent run complete (or fail) with exit_code, duration_ms, agent_count, had_error
  • Uses try/catch/finally to capture both success and error paths

Changes

  • src/lib/telemetry.ts: add CLI_RUN_COMPLETE: 'cli.run.complete' to Events
  • src/commands/run.ts: wrap execution paths with try/catch/finally to fire completion event
  • test/telemetry.test.ts: assert new event constant value

Testing

  • npm run build passes
  • 22/22 telemetry tests pass
  • 22/22 run command tests pass

Closes #688

@agents-squads agents-squads bot requested a review from kokevidaurre as a code owner April 2, 2026 01:29
@agents-squads agents-squads bot enabled auto-merge (squash) April 2, 2026 01:29
@agents-squads agents-squads bot merged commit c34c88a into develop Apr 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants