Commit 33842ca
- Add `externalHardTimeout` option (constructor + env var) that lets
callers specify their hard ceiling (e.g., visor's Promise.race timeout)
- Observer caps `grantedMs` to external headroom so extensions never
push the effective deadline past the external kill point
- Observer declines extensions when headroom < 60s (minimum useful time)
- MCP tool calls now emit `toolCall` events via `agentEvents` so the
observer's `activeTools` map tracks in-flight MCP tools
- Plumbed `agentEvents` through MCPXmlBridge → MCPClientManager
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent afe6eee commit 33842ca
File tree
5 files changed
+383
-3
lines changed- npm
- src/agent
- mcp
- tests/unit
5 files changed
+383
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
428 | 436 | | |
429 | 437 | | |
430 | 438 | | |
| |||
2759 | 2767 | | |
2760 | 2768 | | |
2761 | 2769 | | |
2762 | | - | |
| 2770 | + | |
2763 | 2771 | | |
2764 | 2772 | | |
2765 | 2773 | | |
| |||
3704 | 3712 | | |
3705 | 3713 | | |
3706 | 3714 | | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
3707 | 3740 | | |
3708 | 3741 | | |
3709 | 3742 | | |
| |||
3810 | 3843 | | |
3811 | 3844 | | |
3812 | 3845 | | |
3813 | | - | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
3814 | 3862 | | |
3815 | 3863 | | |
3816 | 3864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| 457 | + | |
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
| |||
460 | 463 | | |
461 | 464 | | |
462 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
463 | 477 | | |
464 | 478 | | |
465 | 479 | | |
| |||
502 | 516 | | |
503 | 517 | | |
504 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
505 | 529 | | |
506 | 530 | | |
507 | 531 | | |
| |||
521 | 545 | | |
522 | 546 | | |
523 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
524 | 558 | | |
525 | 559 | | |
526 | 560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments