Commit 4ef027f
test(tools): add effectiveContextSize to the llm mock (fixes CI test gate)
tools.ts:323 calls llm.effectiveContextSize() to budget tool schemas to the
context window, but tools-stream.test.ts mocked ../llm with only { init,
streamChat } - so all 13 tests threw "effectiveContextSize is not a function".
Add it to the mock (returns a roomy 8192 so budgeting takes its normal no-prune
path). This is CI's hard gate (npm test); lint stays advisory in ci.yml.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U2S44L2JTARo75RQNRXH541 parent 81509ff commit 4ef027f
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments