Repository navigation
test(hooks): validate source entrypoints and typecheck in CI - #1785
zack-dev-cm wants to merge 2 commits into
Conversation
Signed-off-by: zack-dev-cm <112114097+zack-dev-cm@users.noreply.github.com>
Signed-off-by: zack-dev-cm <112114097+zack-dev-cm@users.noreply.github.com>
|
@zack-dev-cm is attempting to deploy a commit to the rohitg00's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Merged as part of #1811, which kept your commits and added review fixes on top (details in its description). Thanks for the contribution. |
CI currently excludes capture hooks from its TypeScript project. Add a separate strict hook project and run it in each existing OS/Node test cell, preserving the main project's exclusions.
Add one direct-source test file for each of session-start, prompt-submit, pre-tool-use, post-tool-use and stop. Isolated Node children read real stdin with controlled fetch responses. The tests check complete requests and context output, malformed input, SDK child guards, transport refusal, unreachable and hanging requests, spooling, and bounded successful exit. The request observer also records missing and non-JSON bodies, so unexpected requests cannot disappear from a no-fetch assertion. Runtime capture code and existing bundled-hook tests stay unchanged.
Validation:
Fixes #1738.
First fork CI, checked at 21:00 UTC on 13 November 2026: Ubuntu Node 20/22/24/26 passed the full suite, all 51 new checks and the hook typecheck. The four macOS cells had not executed at that check. CI run.
Summary by CodeRabbit
First fork CI is now complete: all seven executed cells passed the full 4,989-test suite, all 51 new checks and the hook typecheck. macOS Node 26 was cancelled before a runner was allocated; its annotations report macOS runner capacity. The overall workflow conclusion is failure; that cell remains unvalidated.