Skip to content

feat(probes): enrich lifecycle capture#9

Merged
vincentkoc merged 1 commit intomainfrom
feature/lifecycle-probes
Apr 27, 2026
Merged

feat(probes): enrich lifecycle capture#9
vincentkoc merged 1 commit intomainfrom
feature/lifecycle-probes

Conversation

@vincentkoc
Copy link
Copy Markdown
Member

What

  • retain registrar return values when handler retention is enabled
  • add registrar-specific synthetic invocation inputs for tools, commands, routes, gateway methods, lifecycle hooks, interactive handlers, and speech providers
  • preserve retained capture metadata from mock-SDK subprocess capture
  • classify entrypoint import and registration execution failures in runtime capture reports

Why

The inspector needs to behave more like a host when probing captured handlers. One generic event object was too weak for tool/route/command handlers, and runtime failures needed to say whether import or registration actually failed.

Impact

  • richer synthetic probes for retained local captures
  • mock-SDK subprocess captures expose retained metadata, while callable JS functions remain intentionally blocked after JSON serialization
  • runtime report JSON gets clearer failureClass values for import and register failures

Checks

  • node --test test/capture-api.test.js test/synthetic-probes.test.js test/runtime-capture-report.test.js
  • npm run release:local

@vincentkoc vincentkoc marked this pull request as ready for review April 27, 2026 09:47
@vincentkoc vincentkoc merged commit acd1f79 into main Apr 27, 2026
2 checks passed
@vincentkoc vincentkoc deleted the feature/lifecycle-probes branch April 27, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant