fix(examples): restore AGENT_RUNTIME_HOOK_PROBE_FILE write in packaged hook route - #196
Conversation
…d hook route PR #182 migrated PostToolUse to the semantic event route but dropped the eval:hosts probe append that the prebuilt hook CLI still performed. Share writeEvalProbe between both paths and cover the route-unit packaged route.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
Summary
examples/rsc-agent-runtime/src/events/tool/after.tsx) recorded the edit but never appended toAGENT_RUNTIME_HOOK_PROBE_FILE, soeval:hostspackaged-host evaluation could not observe hook execution.writeEvalProbe(exact same value-free JSON line format consumed byscripts/eval-evidence.mjs) intosrc/hook/eval-probe.ts, shared by the prebuilt hook CLI (unchanged behavior) and the packaged route (exitStatus: 0on success,1on failure, original error rethrown).Test plan
pnpm test:routes: 3/3 pass)pnpm typecheck,pnpm lintclean