pushary 1.9.222 → 1.9.223

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{api-5FMENCWV.js → api-X5T6LZ3S.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +12 -12
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +26 -26
  8. package/dist/bin/pushary-clean.js +39 -39
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +34 -34
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +16 -16
  13. package/dist/bin/pushary-connect.js +35 -35
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +46 -46
  16. package/dist/bin/pushary-disconnect.js +30 -30
  17. package/dist/bin/pushary-display-hook.js +180 -1
  18. package/dist/bin/pushary-doctor.js +47 -47
  19. package/dist/bin/pushary-elicitation-hook.js +27 -27
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +31 -31
  22. package/dist/bin/pushary-hook.js +34 -34
  23. package/dist/bin/pushary-login.js +22 -22
  24. package/dist/bin/pushary-logout.js +30 -30
  25. package/dist/bin/pushary-mcp.js +12 -12
  26. package/dist/bin/pushary-mode.js +16 -16
  27. package/dist/bin/pushary-notification-hook.js +27 -27
  28. package/dist/bin/pushary-opencode-bridge.js +22 -22
  29. package/dist/bin/pushary-opencode-hook.js +32 -32
  30. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  31. package/dist/bin/pushary-permission-hook.js +34 -34
  32. package/dist/bin/pushary-post-hook.js +28 -28
  33. package/dist/bin/pushary-prompt-hook.js +27 -27
  34. package/dist/bin/pushary-session-end-hook.js +27 -27
  35. package/dist/bin/pushary-session-start-hook.js +39 -39
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +57 -57
  38. package/dist/bin/pushary-stats.js +5 -5
  39. package/dist/bin/pushary-status.js +36 -36
  40. package/dist/bin/pushary-stop-hook.js +27 -27
  41. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  42. package/dist/bin/pushary-suggestions.js +16 -16
  43. package/dist/bin/pushary-transcript-register.js +17 -17
  44. package/dist/bin/pushary-transcripts.js +25 -25
  45. package/dist/bin/pushary-upgrade.js +46 -46
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-O5YMM4NC.js → chunk-2WCRYD36.js} +3 -3
  49. package/dist/{chunk-K2RNGCIH.js → chunk-2XBQUAAQ.js} +1 -1
  50. package/dist/{chunk-SYMM37D5.js → chunk-3B4BB2LJ.js} +3 -3
  51. package/dist/{chunk-SBQX7DNO.js → chunk-3P3ZMU7B.js} +3 -3
  52. package/dist/{chunk-XAFLPVOH.js → chunk-3R4CEEHQ.js} +4 -4
  53. package/dist/{chunk-REGGASP3.js → chunk-4CDPEMDJ.js} +5 -5
  54. package/dist/{chunk-AJDNOASW.js → chunk-4JHIJ4OJ.js} +3 -3
  55. package/dist/{chunk-JDTSLDKU.js → chunk-5DKNMDWN.js} +5 -5
  56. package/dist/{chunk-JMTFCHR3.js → chunk-64WMNIQC.js} +5 -5
  57. package/dist/{chunk-WM5DVEHF.js → chunk-7JARG67E.js} +1 -1
  58. package/dist/{chunk-FERJXII2.js → chunk-AGG6LETT.js} +2 -2
  59. package/dist/{chunk-U7734QBB.js → chunk-ALR3X422.js} +2 -2
  60. package/dist/{chunk-MNUYTEPY.js → chunk-BUMMDF5J.js} +4 -4
  61. package/dist/{chunk-LHSKKRGC.js → chunk-CQLMRVX5.js} +5 -5
  62. package/dist/{chunk-N4GJ7UEG.js → chunk-CSUODWDB.js} +2 -2
  63. package/dist/{chunk-YIIGUJP3.js → chunk-CTQQJRUA.js} +4 -4
  64. package/dist/{chunk-B5B2W6RF.js → chunk-DC636WMQ.js} +1 -1
  65. package/dist/{chunk-GHYB66LW.js → chunk-FFBYRJGV.js} +1 -1
  66. package/dist/{chunk-MXX4JRBI.js → chunk-G4SWIS2Y.js} +173 -0
  67. package/dist/{chunk-STXX44Q2.js → chunk-GCMK3VXS.js} +6 -6
  68. package/dist/{chunk-62OI7PJ6.js → chunk-GFW22JD2.js} +6 -6
  69. package/dist/{chunk-BVBKGIAH.js → chunk-GK5NHKHZ.js} +5 -5
  70. package/dist/{chunk-ZB5CQM3S.js → chunk-GRDGSCBG.js} +1 -1
  71. package/dist/{chunk-E3H56JAS.js → chunk-GVFB5AKN.js} +2 -2
  72. package/dist/{chunk-3SROGHN7.js → chunk-ICSD7LN4.js} +1 -1
  73. package/dist/{chunk-J7E3CS5N.js → chunk-J7QBD4DE.js} +4 -4
  74. package/dist/{chunk-JZOOJH63.js → chunk-JHRMVHGT.js} +2 -2
  75. package/dist/{chunk-KESEXC6J.js → chunk-JOTB5L7O.js} +4 -4
  76. package/dist/{chunk-TY26HQND.js → chunk-JWIQC3WF.js} +3 -3
  77. package/dist/{chunk-5CHF6KSC.js → chunk-K4IDTHJL.js} +1 -1
  78. package/dist/{chunk-YDLNKHUC.js → chunk-LGDPCHMP.js} +1 -1
  79. package/dist/{chunk-CJOSYTSG.js → chunk-LOPLCZAX.js} +2 -2
  80. package/dist/{chunk-TY5UXKIU.js → chunk-M7QEG3K2.js} +5 -5
  81. package/dist/{chunk-66M7UB7P.js → chunk-MAMP4EJ7.js} +2 -2
  82. package/dist/{chunk-H5GFXPBU.js → chunk-N4K27YEV.js} +1 -1
  83. package/dist/{chunk-HG76GEOE.js → chunk-NYAXPY5E.js} +1 -1
  84. package/dist/{chunk-W35HZ5LB.js → chunk-OKHJTCDR.js} +2 -2
  85. package/dist/{chunk-PAPMVRHR.js → chunk-OP7POIHL.js} +1 -1
  86. package/dist/{chunk-G7GAOYPA.js → chunk-OVFBJASR.js} +1 -1
  87. package/dist/{chunk-TMBHLGDG.js → chunk-PDTBR225.js} +3 -3
  88. package/dist/{chunk-UG52X3L4.js → chunk-PTY2IAJ4.js} +1 -1
  89. package/dist/{chunk-UO224FD7.js → chunk-PZRMYVLV.js} +2 -2
  90. package/dist/{chunk-LRZKYIQ6.js → chunk-Q5GYSKGI.js} +1 -1
  91. package/dist/{chunk-AJXODCEY.js → chunk-QDSUVUHE.js} +3 -3
  92. package/dist/{chunk-4XY5VHBW.js → chunk-QFRYXDZZ.js} +4 -4
  93. package/dist/{chunk-MJOKUFFE.js → chunk-R7TLCSON.js} +3 -3
  94. package/dist/{chunk-CQMJ5YLX.js → chunk-RMJN7N54.js} +1 -1
  95. package/dist/{chunk-Z2JCNR7O.js → chunk-RNNNRCXD.js} +1 -1
  96. package/dist/{chunk-HNRN7K22.js → chunk-RZKCK4LK.js} +2 -2
  97. package/dist/{chunk-2ODL2KHZ.js → chunk-S7BDS44G.js} +5 -5
  98. package/dist/{chunk-ZIE3LCHE.js → chunk-SGZK5MO2.js} +4 -4
  99. package/dist/{chunk-5R3PKRBZ.js → chunk-SNDI75HM.js} +4 -4
  100. package/dist/{chunk-XRANKHLM.js → chunk-SYPGVUS2.js} +1 -1
  101. package/dist/{chunk-HDYOAYWZ.js → chunk-SZBBH434.js} +6 -6
  102. package/dist/{chunk-W75STRF5.js → chunk-TAU3MHDE.js} +4 -4
  103. package/dist/{chunk-FLI4GFL2.js → chunk-TVTBMFC4.js} +8 -8
  104. package/dist/{chunk-AQQ2EATU.js → chunk-TWOM3CLU.js} +2 -2
  105. package/dist/{chunk-IDY5NK64.js → chunk-TYEQMXGQ.js} +3 -3
  106. package/dist/{chunk-GNPULK7J.js → chunk-U6UVOPIR.js} +25 -21
  107. package/dist/{chunk-XKF65PRO.js → chunk-UDDLEK2U.js} +1 -1
  108. package/dist/{chunk-ZQYAGL5J.js → chunk-UJEV3Y35.js} +2 -2
  109. package/dist/{chunk-W5BHO4UE.js → chunk-UJQBN3XT.js} +1 -1
  110. package/dist/{chunk-QQHOFBU6.js → chunk-UP7MVHHD.js} +31 -22
  111. package/dist/{chunk-5PEALQVY.js → chunk-UWZHXJBR.js} +6 -6
  112. package/dist/{chunk-JRQCXNT3.js → chunk-VANVR3WB.js} +1 -1
  113. package/dist/{chunk-RJCLIWNI.js → chunk-VQ5MSVKX.js} +6 -6
  114. package/dist/{chunk-B7BT6S66.js → chunk-VQRX2GG7.js} +2 -2
  115. package/dist/{chunk-KQUOVCCS.js → chunk-W4S2I76M.js} +1 -1
  116. package/dist/{chunk-7DQ4NJHO.js → chunk-WSXNNYSC.js} +3 -3
  117. package/dist/{chunk-CCWBBHOQ.js → chunk-WYQOXH6F.js} +1 -1
  118. package/dist/{chunk-4PIHRM37.js → chunk-X6R5KHZI.js} +5 -5
  119. package/dist/{chunk-3ZELWDAG.js → chunk-X6UT5PTL.js} +10 -10
  120. package/dist/{chunk-4L274ET5.js → chunk-XKEZ4PF2.js} +3 -3
  121. package/dist/{chunk-VV7XYIC6.js → chunk-XT5CXME4.js} +9 -9
  122. package/dist/{chunk-U4TBTVKC.js → chunk-Y64YYEGC.js} +7 -7
  123. package/dist/{chunk-DZUEOUFB.js → chunk-ZFX7T4MT.js} +7 -7
  124. package/dist/{chunk-JEKST75E.js → chunk-ZNY64HFD.js} +12 -12
  125. package/dist/{chunk-OLBZ2IR4.js → chunk-ZOCAT27A.js} +5 -5
  126. package/dist/{chunk-3UNLHFAQ.js → chunk-ZRWS3KSP.js} +7 -159
  127. package/dist/{codex-app-cards-switch-WIMAJIB7.js → codex-app-cards-switch-APPNTC56.js} +11 -11
  128. package/dist/{codex-card-routing-XCFEMXOH.js → codex-card-routing-YXCVSAAQ.js} +2 -2
  129. package/dist/{codex-desktop-launch-SIWL62HT.js → codex-desktop-launch-KPDNCMC6.js} +1 -1
  130. package/dist/{codex-session-launch-LUCQNTVP.js → codex-session-launch-3EIMG7HW.js} +20 -20
  131. package/dist/{config-CB7VGWF7.js → config-723VFL3P.js} +3 -3
  132. package/dist/{global-upgrade-34UV333H.js → global-upgrade-ZEXTCG5H.js} +9 -9
  133. package/dist/{identity-GTVFP3LV.js → identity-WS6OGN2E.js} +4 -4
  134. package/dist/{live-capabilities-RG7STBKW.js → live-capabilities-GMHVKEPV.js} +4 -4
  135. package/dist/{paths-IIFXE7O2.js → paths-2XWYFNIW.js} +3 -3
  136. package/dist/reapply-3HCGHQRB.js +74 -0
  137. package/dist/src/index.js +33 -33
  138. package/dist/{upgrade-lock-GFNGLGR3.js → upgrade-lock-VZC5ZN5M.js} +4 -4
  139. package/dist/{usage-AJ2MWOQT.js → usage-LBR7AOQN.js} +3 -3
  140. package/package.json +1 -1
  141. package/dist/reapply-ZN6LLFVB.js +0 -74
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  declinedAgentsFile,
4
4
  recordDeclinedAgent
5
- } from "../chunk-JZOOJH63.js";
5
+ } from "../chunk-JHRMVHGT.js";
6
6
  import {
7
7
  isCursorPluginLeftover,
8
8
  isPusharyCursorPluginManifest,
9
9
  releaseSoleGate
10
- } from "../chunk-YIIGUJP3.js";
10
+ } from "../chunk-CTQQJRUA.js";
11
11
  import {
12
12
  planFxRemoval,
13
13
  removeClineServer
14
- } from "../chunk-BVBKGIAH.js";
15
- import "../chunk-MJOKUFFE.js";
16
- import "../chunk-TY26HQND.js";
14
+ } from "../chunk-GK5NHKHZ.js";
15
+ import "../chunk-R7TLCSON.js";
16
+ import "../chunk-JWIQC3WF.js";
17
17
  import {
18
18
  hasForeignPlugins,
19
19
  macAppBridgeAvailable,
@@ -22,17 +22,17 @@ import {
22
22
  openCodePluginDir,
23
23
  openCodePluginFile,
24
24
  removeOpenCodeMcpServer
25
- } from "../chunk-DZUEOUFB.js";
25
+ } from "../chunk-ZFX7T4MT.js";
26
26
  import {
27
27
  isOpenCodePluginOurs
28
- } from "../chunk-Z2JCNR7O.js";
28
+ } from "../chunk-RNNNRCXD.js";
29
29
  import {
30
30
  OPENCODE_PLUGIN_SIBLING,
31
31
  OPENCODE_PLUGIN_SIBLING_CONTENTS
32
- } from "../chunk-H5GFXPBU.js";
32
+ } from "../chunk-N4K27YEV.js";
33
33
  import {
34
34
  exitOnHelpFlag
35
- } from "../chunk-ZB5CQM3S.js";
35
+ } from "../chunk-GRDGSCBG.js";
36
36
  import {
37
37
  compatibleConfigFile,
38
38
  compatibleDocuments,
@@ -42,28 +42,28 @@ import {
42
42
  isEmptiedPusharyOwnedDocument,
43
43
  removeCompatibleHooks,
44
44
  removeCompatibleMcpServer
45
- } from "../chunk-3UNLHFAQ.js";
45
+ } from "../chunk-ZRWS3KSP.js";
46
46
  import {
47
47
  removeGeminiSettings
48
- } from "../chunk-4XY5VHBW.js";
49
- import "../chunk-QQHOFBU6.js";
50
- import "../chunk-KQUOVCCS.js";
51
- import "../chunk-LRZKYIQ6.js";
52
- import "../chunk-YDLNKHUC.js";
48
+ } from "../chunk-QFRYXDZZ.js";
49
+ import "../chunk-UP7MVHHD.js";
50
+ import "../chunk-W4S2I76M.js";
51
+ import "../chunk-Q5GYSKGI.js";
52
+ import "../chunk-LGDPCHMP.js";
53
53
  import {
54
54
  parseFlags
55
55
  } from "../chunk-BZIBNSQE.js";
56
- import "../chunk-STXX44Q2.js";
57
- import "../chunk-HG76GEOE.js";
56
+ import "../chunk-GCMK3VXS.js";
57
+ import "../chunk-NYAXPY5E.js";
58
58
  import "../chunk-POFBE6ZY.js";
59
- import "../chunk-LHSKKRGC.js";
60
- import "../chunk-K2RNGCIH.js";
61
- import "../chunk-3SROGHN7.js";
62
- import "../chunk-4L274ET5.js";
63
- import "../chunk-O5YMM4NC.js";
64
- import "../chunk-B5B2W6RF.js";
65
- import "../chunk-SYMM37D5.js";
66
- import "../chunk-ZQYAGL5J.js";
59
+ import "../chunk-CQLMRVX5.js";
60
+ import "../chunk-2XBQUAAQ.js";
61
+ import "../chunk-ICSD7LN4.js";
62
+ import "../chunk-XKEZ4PF2.js";
63
+ import "../chunk-2WCRYD36.js";
64
+ import "../chunk-DC636WMQ.js";
65
+ import "../chunk-3B4BB2LJ.js";
66
+ import "../chunk-UJEV3Y35.js";
67
67
  import {
68
68
  claudeJson,
69
69
  claudeMcpReceipt,
@@ -93,9 +93,9 @@ import {
93
93
  removePusharySettings,
94
94
  removePusharyToolPermissions,
95
95
  restoreClaudeMcpServer
96
- } from "../chunk-UO224FD7.js";
97
- import "../chunk-MNUYTEPY.js";
98
- import "../chunk-CCWBBHOQ.js";
96
+ } from "../chunk-PZRMYVLV.js";
97
+ import "../chunk-BUMMDF5J.js";
98
+ import "../chunk-WYQOXH6F.js";
99
99
  import {
100
100
  UsageError
101
101
  } from "../chunk-CINBAX5G.js";
@@ -104,7 +104,7 @@ import {
104
104
  } from "../chunk-PM2NRK6Y.js";
105
105
  import {
106
106
  isInvocationOf
107
- } from "../chunk-XRANKHLM.js";
107
+ } from "../chunk-SYPGVUS2.js";
108
108
  import {
109
109
  EXIT
110
110
  } from "../chunk-BG4HHB7E.js";
@@ -114,7 +114,7 @@ import {
114
114
  DISCONNECT_AGENT_IDS,
115
115
  hookCompatibleProfileBySource,
116
116
  normalizeAgentId
117
- } from "../chunk-MXX4JRBI.js";
117
+ } from "../chunk-G4SWIS2Y.js";
118
118
  import "../chunk-MLKGABMK.js";
119
119
 
120
120
  // bin/pushary-disconnect.ts
@@ -263,6 +263,15 @@ var init_claude_wake = __esm({
263
263
  }
264
264
  });
265
265
 
266
+ // ../contracts/src/closed-question.ts
267
+ var CLOSED_QUESTION_WINDOW_MS;
268
+ var init_closed_question = __esm({
269
+ "../contracts/src/closed-question.ts"() {
270
+ "use strict";
271
+ CLOSED_QUESTION_WINDOW_MS = 24 * 60 * 60 * 1e3;
272
+ }
273
+ });
274
+
266
275
  // ../contracts/src/agent-questions.ts
267
276
  var init_agent_questions = __esm({
268
277
  "../contracts/src/agent-questions.ts"() {
@@ -1058,6 +1067,164 @@ var init_agent_wiring = __esm({
1058
1067
  }
1059
1068
  });
1060
1069
 
1070
+ // ../contracts/src/agent-enforcement.ts
1071
+ var TOOL_CALL_BLOCK, LOCAL_PROMPT, HOOK_FAILURE, NO_HOOK_NOTHING_GATED, NO_HOOK, HOOK_DECIDES_BEFORE_THE_CALL, FAILS_TO_THE_AGENTS_OWN_APPROVAL, CLAUDE_SHAPED_GATED_TOOLS, CLAUDE_SHAPED_NOT_GATED, COMPATIBLE_HOOK_AGENT, AGENT_ENFORCEMENT;
1072
+ var init_agent_enforcement = __esm({
1073
+ "../contracts/src/agent-enforcement.ts"() {
1074
+ "use strict";
1075
+ TOOL_CALL_BLOCK = {
1076
+ beforeMatchedCalls: "before_matched_calls",
1077
+ whenAgentAsks: "when_agent_asks",
1078
+ cannotBlock: "cannot_block"
1079
+ };
1080
+ LOCAL_PROMPT = {
1081
+ agentsOwnPrompt: "agents_own_prompt",
1082
+ variesByEvent: "varies_by_event",
1083
+ refusalInstead: "refusal_instead",
1084
+ noHook: "no_hook"
1085
+ };
1086
+ HOOK_FAILURE = {
1087
+ agentsOwnApproval: "agents_own_approval",
1088
+ variesByEvent: "varies_by_event",
1089
+ refusedOnPosix: "refused_on_posix",
1090
+ notVerifiableInThisRepo: "not_verifiable_in_this_repo",
1091
+ hostBlocksTheCall: "host_blocks_the_call",
1092
+ noHook: "no_hook"
1093
+ };
1094
+ NO_HOOK_NOTHING_GATED = "Everything. There is no hook, so the agent only reaches a person when it chooses to call Pushary.";
1095
+ NO_HOOK = {
1096
+ blocksToolCallBeforeItRuns: TOOL_CALL_BLOCK.cannotBlock,
1097
+ phoneCanAnswerTheBlock: false,
1098
+ localPrompt: LOCAL_PROMPT.noHook,
1099
+ whenHookIsMissing: HOOK_FAILURE.noHook,
1100
+ whenHookCrashes: HOOK_FAILURE.noHook,
1101
+ gatedTools: [],
1102
+ notGated: NO_HOOK_NOTHING_GATED
1103
+ };
1104
+ HOOK_DECIDES_BEFORE_THE_CALL = {
1105
+ blocksToolCallBeforeItRuns: TOOL_CALL_BLOCK.beforeMatchedCalls,
1106
+ phoneCanAnswerTheBlock: true
1107
+ };
1108
+ FAILS_TO_THE_AGENTS_OWN_APPROVAL = {
1109
+ whenHookIsMissing: HOOK_FAILURE.agentsOwnApproval,
1110
+ whenHookCrashes: HOOK_FAILURE.agentsOwnApproval
1111
+ };
1112
+ CLAUDE_SHAPED_GATED_TOOLS = ["Bash", "Write", "Edit", "MultiEdit", "NotebookEdit", "PowerShell", "Monitor", "mcp__.*"];
1113
+ CLAUDE_SHAPED_NOT_GATED = "Any tool outside the matcher, such as reads, searches and web fetches. Those only reach a person if this agent raises its own prompt and it sends PermissionRequest.";
1114
+ COMPATIBLE_HOOK_AGENT = {
1115
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1116
+ ...FAILS_TO_THE_AGENTS_OWN_APPROVAL,
1117
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1118
+ gatedTools: CLAUDE_SHAPED_GATED_TOOLS,
1119
+ notGated: CLAUDE_SHAPED_NOT_GATED
1120
+ };
1121
+ AGENT_ENFORCEMENT = {
1122
+ claude_code: {
1123
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1124
+ ...FAILS_TO_THE_AGENTS_OWN_APPROVAL,
1125
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1126
+ gatedTools: ["Bash", "Write", "Edit", "MultiEdit", "NotebookEdit", "PowerShell", "Monitor", "AskUserQuestion", "ExitPlanMode"],
1127
+ notGated: "Reads, searches, WebFetch, WebSearch, Task, TodoWrite and third-party MCP tools reach a person only through PermissionRequest, when Claude Code would have asked anyway. In plan, auto and dontAsk modes PreToolUse steps aside unless a scope question or a Team route applies. It also steps aside for edits under acceptEdits and for calls that a Claude Code allowlist rule owns. Under bypassPermissions no opinion means the call runs."
1128
+ },
1129
+ codex: {
1130
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1131
+ ...FAILS_TO_THE_AGENTS_OWN_APPROVAL,
1132
+ localPrompt: LOCAL_PROMPT.variesByEvent,
1133
+ gatedTools: ["Bash", "apply_patch", "mcp__.*", "request_user_input", "request_user_input_async"],
1134
+ notGated: "Any other tool, and every hook until Codex trusts it. PreToolUse can only deny; a hand-back there is refused, and only PermissionRequest falls through to the Codex prompt. With the auto_review approvals reviewer, or when a native mode defers the call, the hook passes it ungated unless a scope question applies. Under bypass no opinion means the call runs."
1135
+ },
1136
+ gemini_cli: {
1137
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1138
+ ...FAILS_TO_THE_AGENTS_OWN_APPROVAL,
1139
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1140
+ gatedTools: ["run_shell_command", "write_file", "replace", "mcp_.*"],
1141
+ notGated: "read_file and every other built-in tool outside the BeforeTool matcher. The wire has no ask, so a hand-back is empty output, a Gemini running without prompts then runs the call, and a bridge-launched session, which has no prompt, is refused instead."
1142
+ },
1143
+ cursor: {
1144
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1145
+ localPrompt: LOCAL_PROMPT.variesByEvent,
1146
+ whenHookIsMissing: HOOK_FAILURE.variesByEvent,
1147
+ whenHookCrashes: HOOK_FAILURE.variesByEvent,
1148
+ gatedTools: ["Shell", "MCP:*", "Write", "Delete", "Edit"],
1149
+ notGated: "beforeReadFile is deliberately not registered, so file reads are not gated. preToolUse has no ask, so a file edit nobody can decide is refused where shell and MCP fall back to the Cursor prompt."
1150
+ },
1151
+ vscode: {
1152
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1153
+ ...FAILS_TO_THE_AGENTS_OWN_APPROVAL,
1154
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1155
+ gatedTools: [".*"],
1156
+ notGated: "Pushary's own tools. Every other named tool reaches the policy, and a read-only tool passes when the gate has no verdict."
1157
+ },
1158
+ opencode: {
1159
+ blocksToolCallBeforeItRuns: TOOL_CALL_BLOCK.whenAgentAsks,
1160
+ phoneCanAnswerTheBlock: true,
1161
+ ...FAILS_TO_THE_AGENTS_OWN_APPROVAL,
1162
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1163
+ gatedTools: ["bash", "edit", "webfetch"],
1164
+ notGated: "Anything OpenCode does not raise as permission.asked. A person's own allow rule for bash, edit or webfetch is kept, and then those are not held either."
1165
+ },
1166
+ hermes: {
1167
+ blocksToolCallBeforeItRuns: TOOL_CALL_BLOCK.whenAgentAsks,
1168
+ phoneCanAnswerTheBlock: true,
1169
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1170
+ whenHookIsMissing: HOOK_FAILURE.notVerifiableInThisRepo,
1171
+ whenHookCrashes: HOOK_FAILURE.agentsOwnApproval,
1172
+ gatedTools: [],
1173
+ notGated: "Everything Hermes does not flag as a dangerous command, unless named in PUSHARY_GATE_TOOLS, which is empty by default. That list refuses on an error, while the approval transport hands back to Hermes."
1174
+ },
1175
+ openclaw: {
1176
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1177
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1178
+ whenHookIsMissing: HOOK_FAILURE.agentsOwnApproval,
1179
+ whenHookCrashes: HOOK_FAILURE.hostBlocksTheCall,
1180
+ gatedTools: ["exec", "process", "plugins", "gateway", "openclaw", "automations", "terminal"],
1181
+ notGated: "The read actions of process, plugins, gateway, openclaw, automations and terminal; write, edit and apply_patch outside the OpenClaw state directories, ~/.pushary, ~/.config/openclaw and the gateway service files, and inside the agent workspace except its hooks folder; and every other OpenClaw tool unless the plugin gatedTools setting names it, such as message or the file-transfer plugin file_write. Tools that an ACP session with approve-all or a CLI backend runs inside its own harness never reach before_tool_call."
1182
+ },
1183
+ qwen_code: COMPATIBLE_HOOK_AGENT,
1184
+ codebuddy: COMPATIBLE_HOOK_AGENT,
1185
+ qoder: COMPATIBLE_HOOK_AGENT,
1186
+ droid: {
1187
+ ...COMPATIBLE_HOOK_AGENT,
1188
+ notGated: "Any tool outside the matcher, such as reads, searches and web fetches. Droid registers no PermissionRequest, so those never reach a person through Pushary."
1189
+ },
1190
+ devin: {
1191
+ ...COMPATIBLE_HOOK_AGENT,
1192
+ localPrompt: LOCAL_PROMPT.refusalInstead,
1193
+ gatedTools: [...CLAUDE_SHAPED_GATED_TOOLS, "mcp_call_tool", "write_to_process"],
1194
+ notGated: "Any tool outside the matcher, such as reads, searches and web fetches. Devin registers no PermissionRequest, so those never reach a person through Pushary. Its wire turns an ask into a block."
1195
+ },
1196
+ antigravity_cli: {
1197
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1198
+ localPrompt: LOCAL_PROMPT.refusalInstead,
1199
+ whenHookIsMissing: HOOK_FAILURE.refusedOnPosix,
1200
+ whenHookCrashes: HOOK_FAILURE.notVerifiableInThisRepo,
1201
+ gatedTools: ["Bash", "Write", "Edit", "MultiEdit", "NotebookEdit", "PowerShell", "Monitor", "call_mcp_tool", "manage_task"],
1202
+ notGated: "view_file, read_url_content, search_web, list_resources and read_resource. Deleting the hook entry leaves always-proceed on with nothing watching, and the hook-file guard only covers a missing binary, and not on Windows. A caught error is refused, but nothing here shows what agy does when the hook process dies or exits non-zero."
1203
+ },
1204
+ grok: {
1205
+ ...HOOK_DECIDES_BEFORE_THE_CALL,
1206
+ localPrompt: LOCAL_PROMPT.agentsOwnPrompt,
1207
+ whenHookIsMissing: HOOK_FAILURE.refusedOnPosix,
1208
+ whenHookCrashes: HOOK_FAILURE.agentsOwnApproval,
1209
+ gatedTools: [".*"],
1210
+ notGated: "Every call reaches the hook, but the read-only tools (grep, list_dir, glob, read_file, todo_write, search_tool) only honour the kill switch and a deny rule, as Claude Code's reads do. Grok fails open if it kills the hook or cannot start it, the missing-binary guard does not refuse on Windows, and Grok's own permission checks still apply after a phone approval. Its question and plan dialogs stay in Grok."
1211
+ },
1212
+ claude_chat: NO_HOOK,
1213
+ claude_cowork: NO_HOOK,
1214
+ chatgpt: NO_HOOK,
1215
+ fx: NO_HOOK,
1216
+ cline: NO_HOOK,
1217
+ grok_bot: NO_HOOK,
1218
+ muse: NO_HOOK,
1219
+ windsurf: NO_HOOK,
1220
+ unknown: NO_HOOK,
1221
+ lovable: NO_HOOK,
1222
+ mcp: NO_HOOK,
1223
+ http: NO_HOOK
1224
+ };
1225
+ }
1226
+ });
1227
+
1061
1228
  // ../contracts/src/decision-reply.ts
1062
1229
  var APPROVE_ANSWER;
1063
1230
  var init_decision_reply = __esm({
@@ -1322,6 +1489,13 @@ var init_degraded = __esm({
1322
1489
  }
1323
1490
  });
1324
1491
 
1492
+ // ../contracts/src/delivery-stall.ts
1493
+ var init_delivery_stall = __esm({
1494
+ "../contracts/src/delivery-stall.ts"() {
1495
+ "use strict";
1496
+ }
1497
+ });
1498
+
1325
1499
  // ../contracts/src/api-key-shape.ts
1326
1500
  var API_KEY_PREFIX_SHAPE, API_KEY_PREFIX_PATTERN, API_KEY_PATTERN;
1327
1501
  var init_api_key_shape = __esm({
@@ -1448,15 +1622,17 @@ var init_declined_agents = __esm({
1448
1622
  });
1449
1623
 
1450
1624
  // ../contracts/src/cli-version-standing.ts
1451
- var FIRST_AUTO_UPDATING_RELEASE, MIN_SAFE_RELEASE, FIRST_AUTO_UPDATING_CLI_VERSION, MIN_SAFE_CLI_VERSION;
1625
+ var FIRST_AUTO_UPDATING_RELEASE, MIN_SAFE_RELEASE, FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES, FIRST_AUTO_UPDATING_CLI_VERSION, MIN_SAFE_CLI_VERSION, FIRST_CLI_VERSION_DENYING_AUTO_APPROVED_MISSES;
1452
1626
  var init_cli_version_standing = __esm({
1453
1627
  "../contracts/src/cli-version-standing.ts"() {
1454
1628
  "use strict";
1455
1629
  init_release_version();
1456
1630
  FIRST_AUTO_UPDATING_RELEASE = [1, 5, 0];
1457
1631
  MIN_SAFE_RELEASE = [1, 9, 26];
1632
+ FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES = [1, 9, 223];
1458
1633
  FIRST_AUTO_UPDATING_CLI_VERSION = formatReleaseVersion(FIRST_AUTO_UPDATING_RELEASE);
1459
1634
  MIN_SAFE_CLI_VERSION = formatReleaseVersion(MIN_SAFE_RELEASE);
1635
+ FIRST_CLI_VERSION_DENYING_AUTO_APPROVED_MISSES = formatReleaseVersion(FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES);
1460
1636
  }
1461
1637
  });
1462
1638
 
@@ -1686,6 +1862,7 @@ var init_src = __esm({
1686
1862
  init_receipt_evidence();
1687
1863
  init_conversation_text();
1688
1864
  init_claude_wake();
1865
+ init_closed_question();
1689
1866
  init_agent_questions();
1690
1867
  init_agent_questions();
1691
1868
  init_codex_question();
@@ -1695,6 +1872,7 @@ var init_src = __esm({
1695
1872
  init_shell_tools();
1696
1873
  init_agent_manifest();
1697
1874
  init_agent_wiring();
1875
+ init_agent_enforcement();
1698
1876
  init_redaction();
1699
1877
  init_decision_reply();
1700
1878
  init_approval_risk();
@@ -1716,6 +1894,7 @@ var init_src = __esm({
1716
1894
  init_grok();
1717
1895
  init_cursor();
1718
1896
  init_degraded();
1897
+ init_delivery_stall();
1719
1898
  init_redaction();
1720
1899
  init_decision_reply();
1721
1900
  init_approval_risk();
@@ -4,7 +4,7 @@ import {
4
4
  openClawRepairStep,
5
5
  readHermesShellGate,
6
6
  readSetupFailure
7
- } from "../chunk-2ODL2KHZ.js";
7
+ } from "../chunk-S7BDS44G.js";
8
8
  import {
9
9
  CODEX_HOOK_REMEDY,
10
10
  HERMES_RESTART_COMMAND,
@@ -12,17 +12,17 @@ import {
12
12
  describeHermesShellGate,
13
13
  describeHermesState,
14
14
  hermesRepairStep
15
- } from "../chunk-5R3PKRBZ.js";
15
+ } from "../chunk-SNDI75HM.js";
16
16
  import {
17
17
  describeWaitLadder
18
18
  } from "../chunk-CVWG2N3Y.js";
19
19
  import {
20
20
  writeJsonError,
21
21
  writeStdoutFully
22
- } from "../chunk-GHYB66LW.js";
22
+ } from "../chunk-FFBYRJGV.js";
23
23
  import {
24
24
  fetchChannels
25
- } from "../chunk-HDYOAYWZ.js";
25
+ } from "../chunk-SZBBH434.js";
26
26
  import "../chunk-3EGEA4KH.js";
27
27
  import {
28
28
  GET_THE_APP_STEP,
@@ -33,7 +33,7 @@ import {
33
33
  reachVerdict,
34
34
  roundTripEvidence,
35
35
  verifyRoundTrip
36
- } from "../chunk-62OI7PJ6.js";
36
+ } from "../chunk-GFW22JD2.js";
37
37
  import {
38
38
  daemonStopsAtLogout,
39
39
  lingerDoctorDetail,
@@ -42,17 +42,17 @@ import {
42
42
  import {
43
43
  readMachineReadiness,
44
44
  readManagedControlEvidence
45
- } from "../chunk-OLBZ2IR4.js";
45
+ } from "../chunk-ZOCAT27A.js";
46
46
  import {
47
47
  assessCodexHookTrust,
48
48
  readCodexTrustForPusharyHooks
49
- } from "../chunk-7DQ4NJHO.js";
49
+ } from "../chunk-WSXNNYSC.js";
50
50
  import {
51
51
  SIGNED_OUT_ON_MAC_MESSAGE,
52
52
  activeKeyVerdictOf,
53
53
  describeSignedOutKey,
54
54
  readSignedOutDiagnosis
55
- } from "../chunk-B7BT6S66.js";
55
+ } from "../chunk-VQRX2GG7.js";
56
56
  import {
57
57
  agentProbes,
58
58
  detectAgent,
@@ -61,13 +61,13 @@ import {
61
61
  isPluginRegistered,
62
62
  shortenHome,
63
63
  vscodeSettingsTargets
64
- } from "../chunk-4PIHRM37.js";
64
+ } from "../chunk-X6R5KHZI.js";
65
65
  import "../chunk-OYIN77HO.js";
66
66
  import {
67
67
  CONNECTED_THROUGH_MAC_APP,
68
68
  keyWrittenByMacApp,
69
69
  readMacAppConnectionWhenKeyless
70
- } from "../chunk-XAFLPVOH.js";
70
+ } from "../chunk-3R4CEEHQ.js";
71
71
  import {
72
72
  findHermesLauncher,
73
73
  hasUpdateFrom,
@@ -81,13 +81,13 @@ import {
81
81
  routesHermesQuestions,
82
82
  runsAnOlderPlugin,
83
83
  shippedHermesPlugin
84
- } from "../chunk-W75STRF5.js";
84
+ } from "../chunk-TAU3MHDE.js";
85
85
  import "../chunk-QCGNGEGE.js";
86
86
  import {
87
87
  findOpenClawLauncher,
88
88
  isOpenClawWired,
89
89
  openClawPathsNow
90
- } from "../chunk-AJDNOASW.js";
90
+ } from "../chunk-4JHIJ4OJ.js";
91
91
  import {
92
92
  FX_PROFILE_REFUSALS,
93
93
  FX_PUSHARY_TOOLS_RULE,
@@ -97,11 +97,11 @@ import {
97
97
  inspectClineInstallation,
98
98
  inspectFxInstallation,
99
99
  inspectFxPusharyHttpWiring
100
- } from "../chunk-BVBKGIAH.js";
100
+ } from "../chunk-GK5NHKHZ.js";
101
101
  import {
102
102
  retryAgentCommand
103
- } from "../chunk-MJOKUFFE.js";
104
- import "../chunk-TY26HQND.js";
103
+ } from "../chunk-R7TLCSON.js";
104
+ import "../chunk-JWIQC3WF.js";
105
105
  import {
106
106
  cliOwnsAnyAgentHooks,
107
107
  macAppBridgeAvailable,
@@ -110,21 +110,21 @@ import {
110
110
  openCodePluginDir,
111
111
  openCodePluginFile,
112
112
  openCodeWired
113
- } from "../chunk-DZUEOUFB.js";
114
- import "../chunk-Z2JCNR7O.js";
113
+ } from "../chunk-ZFX7T4MT.js";
114
+ import "../chunk-RNNNRCXD.js";
115
115
  import {
116
116
  OPENCODE_PLUGIN_PLACEHOLDER
117
- } from "../chunk-H5GFXPBU.js";
117
+ } from "../chunk-N4K27YEV.js";
118
118
  import {
119
119
  keyScopeOf,
120
120
  pushWindowChangeStep
121
- } from "../chunk-CJOSYTSG.js";
121
+ } from "../chunk-LOPLCZAX.js";
122
122
  import {
123
123
  createIo
124
- } from "../chunk-5CHF6KSC.js";
124
+ } from "../chunk-K4IDTHJL.js";
125
125
  import {
126
126
  exitOnHelpFlag
127
- } from "../chunk-ZB5CQM3S.js";
127
+ } from "../chunk-GRDGSCBG.js";
128
128
  import {
129
129
  describeMissingControlPrerequisite,
130
130
  describeOpenCodeLaunchReadiness,
@@ -135,12 +135,12 @@ import {
135
135
  readOpenCodeVersion,
136
136
  resolveControlPolicy,
137
137
  resolveProviderBinary
138
- } from "../chunk-AJXODCEY.js";
139
- import "../chunk-N4GJ7UEG.js";
138
+ } from "../chunk-QDSUVUHE.js";
139
+ import "../chunk-CSUODWDB.js";
140
140
  import "../chunk-TCE3J44Z.js";
141
141
  import {
142
142
  readLedgerSummary
143
- } from "../chunk-WM5DVEHF.js";
143
+ } from "../chunk-7JARG67E.js";
144
144
  import {
145
145
  AUTO_UPDATE_DISABLE_ENV,
146
146
  autoUpdateOffReason,
@@ -148,7 +148,7 @@ import {
148
148
  describeAutoUpdateCheck,
149
149
  readAutoUpdateState,
150
150
  takeAutoUpdateAnnouncement
151
- } from "../chunk-HNRN7K22.js";
151
+ } from "../chunk-RZKCK4LK.js";
152
152
  import {
153
153
  compatibleConfigFile,
154
154
  compatibleInstructionsFile,
@@ -156,7 +156,7 @@ import {
156
156
  hasCompatibleHooks,
157
157
  hasCompatibleMcpServer,
158
158
  missingCompatibleHookEvents
159
- } from "../chunk-3UNLHFAQ.js";
159
+ } from "../chunk-ZRWS3KSP.js";
160
160
  import {
161
161
  daemonHasRemoteProof,
162
162
  daemonServiceManagerAvailable,
@@ -169,7 +169,7 @@ import {
169
169
  readServiceExecPath,
170
170
  serviceStartFileChecks,
171
171
  versionManagerOf
172
- } from "../chunk-RJCLIWNI.js";
172
+ } from "../chunk-VQ5MSVKX.js";
173
173
  import {
174
174
  GEMINI_HOOK_BINARY,
175
175
  claudeOtherHolders,
@@ -189,41 +189,41 @@ import {
189
189
  holdsLong,
190
190
  missingGeminiHookEvents,
191
191
  pusharyHookExecutable
192
- } from "../chunk-4XY5VHBW.js";
193
- import "../chunk-QQHOFBU6.js";
194
- import "../chunk-KQUOVCCS.js";
195
- import "../chunk-LRZKYIQ6.js";
196
- import "../chunk-YDLNKHUC.js";
192
+ } from "../chunk-QFRYXDZZ.js";
193
+ import "../chunk-UP7MVHHD.js";
194
+ import "../chunk-W4S2I76M.js";
195
+ import "../chunk-Q5GYSKGI.js";
196
+ import "../chunk-LGDPCHMP.js";
197
197
  import {
198
198
  parseFlags
199
199
  } from "../chunk-BZIBNSQE.js";
200
200
  import "../chunk-P6DUWKAO.js";
201
201
  import "../chunk-3PSNUHC5.js";
202
- import "../chunk-STXX44Q2.js";
203
- import "../chunk-HG76GEOE.js";
202
+ import "../chunk-GCMK3VXS.js";
203
+ import "../chunk-NYAXPY5E.js";
204
204
  import "../chunk-POFBE6ZY.js";
205
205
  import {
206
206
  callMcpTool,
207
207
  sendMcpRequest
208
- } from "../chunk-LHSKKRGC.js";
209
- import "../chunk-K2RNGCIH.js";
210
- import "../chunk-3SROGHN7.js";
208
+ } from "../chunk-CQLMRVX5.js";
209
+ import "../chunk-2XBQUAAQ.js";
210
+ import "../chunk-ICSD7LN4.js";
211
211
  import {
212
212
  checkApiKey,
213
213
  describeKeyCheck
214
- } from "../chunk-4L274ET5.js";
215
- import "../chunk-O5YMM4NC.js";
214
+ } from "../chunk-XKEZ4PF2.js";
215
+ import "../chunk-2WCRYD36.js";
216
216
  import {
217
217
  getMachineId
218
- } from "../chunk-B5B2W6RF.js";
218
+ } from "../chunk-DC636WMQ.js";
219
219
  import {
220
220
  keyEnvFilePath,
221
221
  keyPrefix,
222
222
  readConfigFileKey,
223
223
  readControlMode,
224
224
  readKeySource
225
- } from "../chunk-SYMM37D5.js";
226
- import "../chunk-ZQYAGL5J.js";
225
+ } from "../chunk-3B4BB2LJ.js";
226
+ import "../chunk-UJEV3Y35.js";
227
227
  import {
228
228
  CLINE_AUTO_APPROVE_STEP,
229
229
  CLINE_LABEL,
@@ -261,7 +261,7 @@ import {
261
261
  readCodexMcpAuth,
262
262
  resolveBridgeStub,
263
263
  vscodePluginDir
264
- } from "../chunk-UO224FD7.js";
264
+ } from "../chunk-PZRMYVLV.js";
265
265
  import {
266
266
  chosenRelease,
267
267
  describeReleaseNpmHolds,
@@ -270,10 +270,10 @@ import {
270
270
  npmRunnerWithin,
271
271
  readGlobalCliInstall,
272
272
  resolvePathBinary
273
- } from "../chunk-MNUYTEPY.js";
273
+ } from "../chunk-BUMMDF5J.js";
274
274
  import {
275
275
  getBaseUrl
276
- } from "../chunk-CCWBBHOQ.js";
276
+ } from "../chunk-WYQOXH6F.js";
277
277
  import {
278
278
  UsageError
279
279
  } from "../chunk-CINBAX5G.js";
@@ -282,7 +282,7 @@ import {
282
282
  } from "../chunk-PM2NRK6Y.js";
283
283
  import {
284
284
  NPX_LATEST_COMMAND
285
- } from "../chunk-XRANKHLM.js";
285
+ } from "../chunk-SYPGVUS2.js";
286
286
  import {
287
287
  EXIT
288
288
  } from "../chunk-BG4HHB7E.js";
@@ -307,7 +307,7 @@ import {
307
307
  isHookActivationReport,
308
308
  isValidApiKey,
309
309
  redactSecretsFromContent
310
- } from "../chunk-MXX4JRBI.js";
310
+ } from "../chunk-G4SWIS2Y.js";
311
311
  import "../chunk-MLKGABMK.js";
312
312
 
313
313
  // bin/pushary-doctor.ts