Commit 4fe3c45
Release/v0.2.0 ready (#3)
* fix: resolve eslint require() errors and format code
* 0.2.1
* Rewrote the Proxy/MCP runner to intercept the Agent's (requests) rather than just monitoring the Server's (responses). Dangerous actions are now caught _before_ they reach the target server.
* fix: resolve browser approval race, undo engine correctness, and UI init crash
- Race condition: autoStartDaemonAndWait now verifies HTTP readiness via
GET /settings before returning true, preventing stale-PID false positives
- Race condition: openBrowserLocal() called immediately after daemon is
HTTP-ready so browser starts loading before POST /check fires, ensuring
the SSE 'add' event is delivered to an already-connected client
- Race condition: daemon skips openBrowser() when autoStarted=true to
avoid duplicate tabs (CLI already opened the browser)
- Race condition: 'Abandoned' browser racer result now resolves the race
as denied instead of being silently swallowed (caused CLI to hang)
- Race condition: SSE reconnect abandon timer raised 2s→10s so a page
reload doesn't abandon pending requests before the browser reconnects
- Bug fix: cloudBadge null check in SSE 'init' handler — missing DOM
element crashed the handler before addCard() ran, causing approval
requests to never appear when browser was cold-started
- Undo engine: moved snapshot trigger from PostToolUse (log) to
PreToolUse (check) so snapshot captures state before AI change, not
after (previous timing made undo a no-op)
- Undo engine: applyUndo now deletes files created after the snapshot
that git restore alone does not remove
- Undo engine: expanded STATE_CHANGING_TOOLS list to include
str_replace_based_edit_tool and create_file
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* style: fix prettier formatting in undo.ts
* fix: applyUndo now deletes untracked files absent from snapshot
Previously only tracked files (git ls-files) were checked for deletion,
so files created after the snapshot but never committed (e.g. test.txt)
survived the undo. Now also queries git ls-files --others --exclude-standard
to catch untracked non-ignored files — the same set git add -A captures
when building the snapshot tree.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: report local approval/deny back to SaaS to clear PENDING status
When a local channel (native popup, browser dashboard, terminal) wins
the approval race while cloud is also enforced, the pending SaaS request
was never resolved — leaving Mission Control stuck on PENDING forever.
Now finish() calls resolveNode9SaaS() (PATCH /intercept/requests/:id)
whenever checkedBy !== 'cloud' and a cloudRequestId exists, closing the
request immediately with the correct APPROVED/DENIED status.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat: cloud audit, config merge fixes, and agentVersion client tracking
core.ts:
- Fire-and-forget POST /intercept/audit for all local fast-path allows
(ignoredTools, sandboxPaths, local-policy, trust) — gives org admins
full visibility of calls that never reached the cloud
- Fixed config merge: sandboxPaths and ignoredTools now concatenate across
layers (global → project → local); dangerousWords replaces (higher wins)
- agentVersion context now sent as context.agent so backend can store AI
client type (Claude Code, Gemini CLI, Terminal) separately from machine identity
cli.ts:
- Updated context payload to include agent type metadata for accurate
per-client breakdown in Mission Control Agents tab
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: nadav <isr.nadav@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2e4e92d commit 4fe3c45
3 files changed
+214
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
137 | 150 | | |
138 | 151 | | |
139 | 152 | | |
| |||
143 | 156 | | |
144 | 157 | | |
145 | 158 | | |
146 | | - | |
| 159 | + | |
147 | 160 | | |
148 | 161 | | |
149 | 162 | | |
| |||
153 | 166 | | |
154 | 167 | | |
155 | 168 | | |
156 | | - | |
| 169 | + | |
157 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
158 | 186 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
165 | 191 | | |
166 | 192 | | |
167 | 193 | | |
| |||
465 | 491 | | |
466 | 492 | | |
467 | 493 | | |
468 | | - | |
| 494 | + | |
469 | 495 | | |
470 | 496 | | |
471 | 497 | | |
472 | 498 | | |
473 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
474 | 505 | | |
475 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
476 | 525 | | |
477 | 526 | | |
478 | 527 | | |
479 | 528 | | |
480 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
481 | 533 | | |
482 | 534 | | |
483 | 535 | | |
| |||
495 | 547 | | |
496 | 548 | | |
497 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
498 | 553 | | |
499 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
500 | 558 | | |
501 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
502 | 562 | | |
503 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
504 | 566 | | |
505 | 567 | | |
506 | 568 | | |
| |||
646 | 708 | | |
647 | 709 | | |
648 | 710 | | |
| 711 | + | |
649 | 712 | | |
650 | 713 | | |
| 714 | + | |
| 715 | + | |
651 | 716 | | |
| 717 | + | |
652 | 718 | | |
653 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
654 | 724 | | |
| 725 | + | |
655 | 726 | | |
656 | 727 | | |
| 728 | + | |
657 | 729 | | |
658 | | - | |
659 | | - | |
660 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
661 | 745 | | |
662 | 746 | | |
663 | 747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
708 | 704 | | |
709 | | - | |
710 | | - | |
711 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
712 | 708 | | |
713 | 709 | | |
714 | 710 | | |
715 | 711 | | |
| 712 | + | |
716 | 713 | | |
717 | 714 | | |
718 | 715 | | |
| |||
733 | 730 | | |
734 | 731 | | |
735 | 732 | | |
736 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
737 | 737 | | |
738 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
739 | 742 | | |
740 | 743 | | |
741 | 744 | | |
742 | 745 | | |
743 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
| |||
750 | 756 | | |
751 | 757 | | |
752 | 758 | | |
| 759 | + | |
753 | 760 | | |
754 | 761 | | |
755 | 762 | | |
| |||
807 | 814 | | |
808 | 815 | | |
809 | 816 | | |
810 | | - | |
| 817 | + | |
811 | 818 | | |
812 | 819 | | |
813 | 820 | | |
| |||
1006 | 1013 | | |
1007 | 1014 | | |
1008 | 1015 | | |
| 1016 | + | |
1009 | 1017 | | |
1010 | 1018 | | |
1011 | 1019 | | |
| |||
1038 | 1046 | | |
1039 | 1047 | | |
1040 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1041 | 1058 | | |
1042 | 1059 | | |
1043 | 1060 | | |
| |||
1088 | 1105 | | |
1089 | 1106 | | |
1090 | 1107 | | |
1091 | | - | |
| 1108 | + | |
1092 | 1109 | | |
1093 | | - | |
| 1110 | + | |
1094 | 1111 | | |
1095 | 1112 | | |
1096 | 1113 | | |
| |||
1172 | 1189 | | |
1173 | 1190 | | |
1174 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1175 | 1225 | | |
1176 | 1226 | | |
1177 | 1227 | | |
| |||
1269 | 1319 | | |
1270 | 1320 | | |
1271 | 1321 | | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
0 commit comments