pushary 1.9.187 → 1.9.193

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 (157) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
  3. package/data/cursor-plugin/CHANGELOG.md +4 -0
  4. package/data/cursor-plugin/scripts/pushary-gate.mjs +34 -6
  5. package/data/openclaw-plugin/README.md +2 -2
  6. package/data/openclaw-plugin/dist/protected-writes.js +3 -2
  7. package/data/openclaw-plugin/package.json +1 -1
  8. package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
  9. package/data/vscode-plugin/CHANGELOG.md +4 -0
  10. package/data/vscode-plugin/scripts/pushary-gate.mjs +34 -6
  11. package/dist/{api-6U7B4OY7.js → api-KEQ763XL.js} +12 -12
  12. package/dist/bin/pushary-audit.js +4 -4
  13. package/dist/bin/pushary-bell-hook.js +30 -30
  14. package/dist/bin/pushary-bell.js +13 -13
  15. package/dist/bin/pushary-calls.js +18 -18
  16. package/dist/bin/pushary-claude.js +30 -30
  17. package/dist/bin/pushary-clean.js +43 -43
  18. package/dist/bin/pushary-codex-bridge.js +25 -25
  19. package/dist/bin/pushary-codex-hook.js +52 -52
  20. package/dist/bin/pushary-codex-session.js +8 -8
  21. package/dist/bin/pushary-codex.js +18 -18
  22. package/dist/bin/pushary-connect.js +39 -39
  23. package/dist/bin/pushary-cowork.js +6 -6
  24. package/dist/bin/pushary-daemon.js +48 -48
  25. package/dist/bin/pushary-disconnect.js +33 -33
  26. package/dist/bin/pushary-display-hook.js +17 -8
  27. package/dist/bin/pushary-doctor.js +79 -57
  28. package/dist/bin/pushary-elicitation-hook.js +30 -30
  29. package/dist/bin/pushary-gemini-bridge.js +21 -20
  30. package/dist/bin/pushary-gemini-hook.js +34 -34
  31. package/dist/bin/pushary-hook.js +38 -38
  32. package/dist/bin/pushary-login.js +24 -24
  33. package/dist/bin/pushary-logout.js +33 -33
  34. package/dist/bin/pushary-mcp.js +13 -13
  35. package/dist/bin/pushary-mode.js +20 -20
  36. package/dist/bin/pushary-notification-hook.js +29 -29
  37. package/dist/bin/pushary-opencode-bridge.js +63 -26
  38. package/dist/bin/pushary-opencode-hook.js +47 -42
  39. package/dist/bin/pushary-permission-denied-hook.js +38 -38
  40. package/dist/bin/pushary-permission-hook.js +38 -38
  41. package/dist/bin/pushary-post-hook.js +30 -30
  42. package/dist/bin/pushary-prompt-hook.js +29 -29
  43. package/dist/bin/pushary-session-end-hook.js +29 -29
  44. package/dist/bin/pushary-session-start-hook.js +41 -41
  45. package/dist/bin/pushary-sessions.js +15 -15
  46. package/dist/bin/pushary-setup.js +242 -111
  47. package/dist/bin/pushary-stats.js +6 -6
  48. package/dist/bin/pushary-status.js +38 -38
  49. package/dist/bin/pushary-stop-hook.js +29 -29
  50. package/dist/bin/pushary-stopfailure-hook.js +29 -29
  51. package/dist/bin/pushary-suggestions.js +17 -17
  52. package/dist/bin/pushary-transcript-register.js +19 -19
  53. package/dist/bin/pushary-transcripts.js +28 -28
  54. package/dist/bin/pushary-upgrade.js +48 -48
  55. package/dist/bin/pushary-wait.js +17 -17
  56. package/dist/bin/pushary.js +11 -11
  57. package/dist/{chunk-ZL3UDLTC.js → chunk-23NHXO6T.js} +5 -5
  58. package/dist/{chunk-BWOQACK7.js → chunk-25CMVBTJ.js} +3 -3
  59. package/dist/{chunk-GTEL6ZIH.js → chunk-34D65JYW.js} +8 -6
  60. package/dist/{chunk-2ACPOE77.js → chunk-3C62WDY4.js} +1 -1
  61. package/dist/{chunk-6ZSOD7VY.js → chunk-3EFPU2IK.js} +5 -5
  62. package/dist/{chunk-TBQT2TA6.js → chunk-3QDILGKG.js} +12 -12
  63. package/dist/{chunk-3JNBZF4G.js → chunk-3ULFLONL.js} +1 -1
  64. package/dist/{chunk-QJF5I7NR.js → chunk-44SARVA4.js} +6 -6
  65. package/dist/{chunk-6NUEY2FT.js → chunk-4BC4YDVL.js} +4 -4
  66. package/dist/{chunk-BW6WGBJC.js → chunk-4DMZJSI5.js} +4 -4
  67. package/dist/{chunk-NNHD7KVL.js → chunk-4TIZJD3Q.js} +5 -5
  68. package/dist/{chunk-OLU5L3VB.js → chunk-5IPXL33D.js} +1 -1
  69. package/dist/{chunk-O7N2FQBH.js → chunk-5JQQ5IQC.js} +4 -4
  70. package/dist/{chunk-AO5BRDKS.js → chunk-5NFHLMY3.js} +100 -18
  71. package/dist/{chunk-RYBTDSQF.js → chunk-5QP7DVQF.js} +1 -1
  72. package/dist/{chunk-AYM7IBC5.js → chunk-5YJSZFZ6.js} +1 -1
  73. package/dist/{chunk-XO66RJJC.js → chunk-636GZ42G.js} +5 -5
  74. package/dist/{chunk-PS4AKK26.js → chunk-6EZY7IXB.js} +1 -1
  75. package/dist/{chunk-NXHIWGOL.js → chunk-6JKADQJT.js} +9 -9
  76. package/dist/{chunk-QNOXMVIX.js → chunk-6ONF5BPB.js} +6 -6
  77. package/dist/{chunk-VECF23YI.js → chunk-6U62H4ZX.js} +4 -4
  78. package/dist/{chunk-YMJCE2TD.js → chunk-6YBJ6E5F.js} +2 -2
  79. package/dist/{chunk-LXHH33MX.js → chunk-AJ6Q42KT.js} +3 -3
  80. package/dist/{chunk-LXZ6APGN.js → chunk-BLVTNQZV.js} +3 -3
  81. package/dist/{chunk-52CIHAC2.js → chunk-BXAVWEE4.js} +6 -6
  82. package/dist/{chunk-TYGNPI7L.js → chunk-CH7WFVC5.js} +1 -1
  83. package/dist/{chunk-DRY5YWUK.js → chunk-CMQCKXCF.js} +2 -2
  84. package/dist/{chunk-EU6NQQNG.js → chunk-D4BHK52K.js} +2 -2
  85. package/dist/{chunk-2NHK4PUR.js → chunk-D7YLLAMU.js} +6 -6
  86. package/dist/{chunk-E2CY63WZ.js → chunk-DFTVEK72.js} +5 -5
  87. package/dist/{chunk-ZKZL4EFA.js → chunk-EJJBM4OB.js} +1 -1
  88. package/dist/{chunk-ZUU4I2RK.js → chunk-EPNYDS4H.js} +1 -1
  89. package/dist/{chunk-5X7XEJTI.js → chunk-ERVXMMGO.js} +2 -2
  90. package/dist/{chunk-URZAPVR6.js → chunk-G3HAAQ65.js} +8 -8
  91. package/dist/{chunk-L7BHOFTF.js → chunk-GZAU5W3K.js} +3 -3
  92. package/dist/{chunk-3JU27SD5.js → chunk-HMMVGDL3.js} +10 -4
  93. package/dist/{chunk-Z7OTSKAT.js → chunk-HNHRPMND.js} +6 -6
  94. package/dist/{chunk-EXM3ZEUU.js → chunk-HTOPPHMO.js} +9 -9
  95. package/dist/{chunk-KZFNXNFH.js → chunk-IC5BBT2K.js} +1 -1
  96. package/dist/{chunk-FYBS4VRT.js → chunk-IYOA3NWO.js} +1 -1
  97. package/dist/{chunk-JLVVFGYN.js → chunk-IYYWAP6P.js} +4 -4
  98. package/dist/{chunk-Z2RVYQON.js → chunk-KFSWRIH2.js} +9 -9
  99. package/dist/{chunk-GYIISS2S.js → chunk-KVLAC4FS.js} +7 -7
  100. package/dist/{chunk-2PQY4TMQ.js → chunk-M7O33GTP.js} +3 -3
  101. package/dist/{chunk-SIT46O4V.js → chunk-MAPYE7MM.js} +10 -10
  102. package/dist/{chunk-KOJJ2LPJ.js → chunk-MIO242ZB.js} +5 -5
  103. package/dist/{chunk-L3BX56Y4.js → chunk-MLJ5Q7GF.js} +3 -3
  104. package/dist/{chunk-6OJ7XVBR.js → chunk-N3TX5LLG.js} +3 -3
  105. package/dist/{chunk-HYZAL77U.js → chunk-OPRRDN5R.js} +7 -7
  106. package/dist/{chunk-QUXD5OW3.js → chunk-ORV2JLNH.js} +3 -3
  107. package/dist/{chunk-5O4MW5YS.js → chunk-PEUODRKS.js} +4 -2
  108. package/dist/{chunk-BDJNHQFA.js → chunk-PY3VOJQY.js} +4 -4
  109. package/dist/{chunk-JFZPMVEC.js → chunk-QOWEXH34.js} +2 -2
  110. package/dist/{chunk-YUG7PCPJ.js → chunk-QQLYMBKM.js} +2 -2
  111. package/dist/{chunk-UFAIL7YE.js → chunk-RDO4NPVU.js} +2 -2
  112. package/dist/{chunk-I5C35DE5.js → chunk-RE6TWTNY.js} +3 -3
  113. package/dist/{chunk-OESNI7XN.js → chunk-RL5LF7JZ.js} +4 -4
  114. package/dist/{chunk-2IBCLVJK.js → chunk-SN3FCBME.js} +2 -2
  115. package/dist/{chunk-O5IRXMPV.js → chunk-SRIFCDTY.js} +1 -1
  116. package/dist/{chunk-FZQHKRQF.js → chunk-SSQIYK3H.js} +11 -11
  117. package/dist/{chunk-TKGCDWPF.js → chunk-T776F2FQ.js} +2 -2
  118. package/dist/{chunk-4OSTVMM5.js → chunk-TCBWYRFJ.js} +18 -18
  119. package/dist/{chunk-VRNGMRJA.js → chunk-TFMIG3VP.js} +1 -1
  120. package/dist/{chunk-5DSFBND4.js → chunk-TP47JHGJ.js} +1 -1
  121. package/dist/chunk-UHB4VYDB.js +92 -0
  122. package/dist/{chunk-OCHXKVIN.js → chunk-UVNH4UGJ.js} +1 -1
  123. package/dist/{chunk-7P7ZKS2G.js → chunk-UXQVXB7Q.js} +1 -1
  124. package/dist/{chunk-GBKMTVG6.js → chunk-UYAKT6PO.js} +2 -2
  125. package/dist/{chunk-AKAZRQLA.js → chunk-V3PMKMAO.js} +4 -4
  126. package/dist/{chunk-J3JG5EKP.js → chunk-V4R37DFH.js} +4 -4
  127. package/dist/{chunk-PDVGAU7A.js → chunk-V6OR4WLF.js} +8 -8
  128. package/dist/{chunk-WA5RGLKV.js → chunk-VD57H3ZU.js} +2 -2
  129. package/dist/{chunk-6D35FDXC.js → chunk-VEE2MRUN.js} +1 -1
  130. package/dist/{chunk-7IG54T3H.js → chunk-VH5DPURH.js} +1 -1
  131. package/dist/{chunk-LTB54XBS.js → chunk-W2RA43CP.js} +4 -4
  132. package/dist/{chunk-D35DKI3E.js → chunk-WEKGOHW7.js} +5 -5
  133. package/dist/{chunk-FWYOB3LW.js → chunk-WNCTMTMG.js} +1 -1
  134. package/dist/{chunk-UQTQ6HPO.js → chunk-YJHBDJIW.js} +2 -0
  135. package/dist/{chunk-XF25RJEV.js → chunk-YLMBNJWN.js} +3 -3
  136. package/dist/{chunk-6UICFJRW.js → chunk-YLZRG4U5.js} +1 -1
  137. package/dist/{chunk-IYY7KRNS.js → chunk-ZDROZABP.js} +4 -4
  138. package/dist/{chunk-HKL7HXFD.js → chunk-ZGS5TMMV.js} +3 -3
  139. package/dist/{chunk-QBPBNFDI.js → chunk-ZWQPUXSS.js} +5 -5
  140. package/dist/{codex-app-cards-switch-5B67TNLS.js → codex-app-cards-switch-ZG2FTLRZ.js} +14 -13
  141. package/dist/{codex-card-routing-3HSUBI6U.js → codex-card-routing-CJZT26VA.js} +2 -2
  142. package/dist/{codex-desktop-launch-GG5K77QD.js → codex-desktop-launch-LOTQ6MPR.js} +1 -1
  143. package/dist/{codex-session-launch-XR46HRYK.js → codex-session-launch-WSIQVGRM.js} +22 -22
  144. package/dist/{config-K7JUY27J.js → config-2AGOCKSO.js} +4 -4
  145. package/dist/{global-upgrade-R24VOCK7.js → global-upgrade-OG6RLR36.js} +10 -10
  146. package/dist/{identity-IMSNZJZL.js → identity-57VX4O7Z.js} +6 -5
  147. package/dist/{live-capabilities-BBUGAZJV.js → live-capabilities-6SRTZJ5A.js} +6 -5
  148. package/dist/{paths-HGLMPFAG.js → paths-M47UHTQ4.js} +5 -4
  149. package/dist/reapply-DBIFSOQN.js +70 -0
  150. package/dist/src/index.d.ts +1 -0
  151. package/dist/src/index.js +37 -37
  152. package/dist/{upgrade-lock-FML33CIQ.js → upgrade-lock-EIPMFXKR.js} +6 -5
  153. package/dist/usage-YSVHDBHO.js +11 -0
  154. package/package.json +1 -1
  155. package/dist/chunk-LV575VQE.js +0 -62
  156. package/dist/reapply-SYNZ2IZY.js +0 -70
  157. package/dist/usage-QMQZCRF2.js +0 -11
@@ -9,7 +9,7 @@ import {
9
9
  installedCodexApp,
10
10
  readCodexAppRuntime,
11
11
  shellQuoted
12
- } from "./chunk-L3BX56Y4.js";
12
+ } from "./chunk-MLJ5Q7GF.js";
13
13
  import {
14
14
  CODEX_APP_LAUNCH_AT_LOGIN_VERB,
15
15
  CODEX_APP_LAUNCH_VARIABLE
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-QCGNGEGE.js";
20
20
  import {
21
21
  xml
22
- } from "./chunk-PDVGAU7A.js";
22
+ } from "./chunk-V6OR4WLF.js";
23
23
  import {
24
24
  writeFileAtomic
25
25
  } from "./chunk-PM2NRK6Y.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-BWOQACK7.js";
3
+ } from "./chunk-25CMVBTJ.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-AKAZRQLA.js";
3
+ } from "./chunk-V3PMKMAO.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
@@ -9,7 +9,7 @@ import {
9
9
  refreshHermesPluginFiles,
10
10
  refreshOpenClawPlugin,
11
11
  shippedHermesPlugin
12
- } from "./chunk-Z7OTSKAT.js";
12
+ } from "./chunk-HNHRPMND.js";
13
13
  import {
14
14
  fxIgnoresInstructionsFile,
15
15
  fxInstructionsBody,
@@ -18,7 +18,7 @@ import {
18
18
  macAppFxBridge,
19
19
  refreshClineKey,
20
20
  switchFxHttpEntryToBridge
21
- } from "./chunk-E2CY63WZ.js";
21
+ } from "./chunk-DFTVEK72.js";
22
22
  import {
23
23
  OPENCODE_HOOK_BINARY,
24
24
  agentHookOwner,
@@ -31,16 +31,16 @@ import {
31
31
  openCodePluginDir,
32
32
  openCodeWired,
33
33
  withOpenCodeAskRules
34
- } from "./chunk-GYIISS2S.js";
34
+ } from "./chunk-KVLAC4FS.js";
35
35
  import {
36
36
  detectClaudeVersion
37
- } from "./chunk-DRY5YWUK.js";
37
+ } from "./chunk-CMQCKXCF.js";
38
38
  import {
39
39
  addCompatibleHooks,
40
40
  compatibleConfigFile,
41
41
  compatibleInstructionsFile,
42
42
  hasCompatibleHooks
43
- } from "./chunk-D35DKI3E.js";
43
+ } from "./chunk-WEKGOHW7.js";
44
44
  import {
45
45
  GEMINI_HOOK_BINARY,
46
46
  addGeminiHooks,
@@ -52,10 +52,10 @@ import {
52
52
  geminiWired,
53
53
  hasGeminiHooks,
54
54
  planHooks
55
- } from "./chunk-O7N2FQBH.js";
55
+ } from "./chunk-5JQQ5IQC.js";
56
56
  import {
57
57
  KEY_FILE_MODE
58
- } from "./chunk-LXZ6APGN.js";
58
+ } from "./chunk-BLVTNQZV.js";
59
59
  import {
60
60
  CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
61
61
  CLAUDE_HOOK_BINARY,
@@ -102,13 +102,13 @@ import {
102
102
  renderAgentInstructions,
103
103
  supportedClaudeEvents,
104
104
  vscodePluginMcp
105
- } from "./chunk-BWOQACK7.js";
105
+ } from "./chunk-25CMVBTJ.js";
106
106
  import {
107
107
  formatVersion,
108
108
  hookCommandsUseBareNames,
109
109
  resolveGlobalBinDir,
110
110
  resolveGlobalBinary
111
- } from "./chunk-AO5BRDKS.js";
111
+ } from "./chunk-5NFHLMY3.js";
112
112
  import {
113
113
  readJsonSafe,
114
114
  writeFileAtomic,
@@ -118,7 +118,7 @@ import {
118
118
  HOOK_COMPATIBLE_PROFILES,
119
119
  isCompatibleAgentType,
120
120
  isRecord
121
- } from "./chunk-3JU27SD5.js";
121
+ } from "./chunk-HMMVGDL3.js";
122
122
 
123
123
  // src/reapply.ts
124
124
  import { dirname, join } from "path";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  claudeConfigDir
3
- } from "./chunk-BWOQACK7.js";
3
+ } from "./chunk-25CMVBTJ.js";
4
4
  import {
5
5
  claudePermissionRulesFromSettings
6
- } from "./chunk-3JU27SD5.js";
6
+ } from "./chunk-HMMVGDL3.js";
7
7
 
8
8
  // src/claude-permission-rules.ts
9
9
  import { readFileSync, statSync } from "fs";
@@ -2,39 +2,39 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-YMJCE2TD.js";
5
+ } from "./chunk-6YBJ6E5F.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-TKGCDWPF.js";
9
+ } from "./chunk-T776F2FQ.js";
10
10
  import {
11
11
  defersToNativeMode
12
- } from "./chunk-7P7ZKS2G.js";
12
+ } from "./chunk-UXQVXB7Q.js";
13
13
  import {
14
14
  askAgentQuestions,
15
15
  outcomeOfFailedAsk,
16
16
  storedWaitDeadline
17
- } from "./chunk-GTEL6ZIH.js";
17
+ } from "./chunk-34D65JYW.js";
18
18
  import {
19
19
  reportMachineDenial
20
- } from "./chunk-LV575VQE.js";
20
+ } from "./chunk-UHB4VYDB.js";
21
21
  import {
22
22
  isGatingMoment,
23
23
  recordKeylessMoment
24
- } from "./chunk-FYBS4VRT.js";
24
+ } from "./chunk-IYOA3NWO.js";
25
25
  import {
26
26
  isAdmitted,
27
27
  readAdmissionRules
28
- } from "./chunk-6ZSOD7VY.js";
28
+ } from "./chunk-3EFPU2IK.js";
29
29
  import {
30
30
  isDeferAnswer,
31
31
  oncePerSession
32
- } from "./chunk-2ACPOE77.js";
32
+ } from "./chunk-3C62WDY4.js";
33
33
  import {
34
34
  activeHookSource,
35
35
  activeIdentity,
36
36
  namedSource
37
- } from "./chunk-D35DKI3E.js";
37
+ } from "./chunk-WEKGOHW7.js";
38
38
  import {
39
39
  DEFAULT_SESSION,
40
40
  approvalAwaitingRetry,
@@ -57,7 +57,7 @@ import {
57
57
  settleQuestionsForToolUse,
58
58
  sweepFilesOlderThan,
59
59
  userScope
60
- } from "./chunk-TBQT2TA6.js";
60
+ } from "./chunk-3QDILGKG.js";
61
61
  import {
62
62
  UNNAMED_ACTION,
63
63
  deriveAction,
@@ -68,7 +68,7 @@ import {
68
68
  patchDeletesFiles,
69
69
  permissionDeniedAction,
70
70
  scopePathFor
71
- } from "./chunk-3JNBZF4G.js";
71
+ } from "./chunk-3ULFLONL.js";
72
72
  import {
73
73
  askUser,
74
74
  cancelQuestion,
@@ -85,29 +85,29 @@ import {
85
85
  waitForQuestion,
86
86
  waitsForThePhone,
87
87
  withdrawQuestion
88
- } from "./chunk-2NHK4PUR.js";
88
+ } from "./chunk-D7YLLAMU.js";
89
89
  import {
90
90
  branchFor,
91
91
  projectNameFor,
92
92
  repoKeyFor,
93
93
  repositoryScopeFor
94
- } from "./chunk-7IG54T3H.js";
94
+ } from "./chunk-VH5DPURH.js";
95
95
  import {
96
96
  getMachineId
97
- } from "./chunk-AYM7IBC5.js";
97
+ } from "./chunk-5YJSZFZ6.js";
98
98
  import {
99
99
  POSTTOOLUSE_MIRRORED_TOOLS
100
- } from "./chunk-BWOQACK7.js";
100
+ } from "./chunk-25CMVBTJ.js";
101
101
  import {
102
102
  getApiKey,
103
103
  getBaseUrl
104
- } from "./chunk-KZFNXNFH.js";
104
+ } from "./chunk-IC5BBT2K.js";
105
105
  import {
106
106
  writeFileAtomic
107
107
  } from "./chunk-PM2NRK6Y.js";
108
108
  import {
109
109
  NPX_LATEST_COMMAND
110
- } from "./chunk-YUG7PCPJ.js";
110
+ } from "./chunk-QQLYMBKM.js";
111
111
  import {
112
112
  AGENT_QUESTION_STRATEGY,
113
113
  AGENT_QUESTION_TOOL,
@@ -181,7 +181,7 @@ import {
181
181
  timeoutActionWithoutLocalPrompt,
182
182
  unansweredRefusalReason,
183
183
  unapprovedScopeReason
184
- } from "./chunk-3JU27SD5.js";
184
+ } from "./chunk-HMMVGDL3.js";
185
185
 
186
186
  // src/terminal-answer-watch.ts
187
187
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-PM2NRK6Y.js";
4
4
  import {
5
5
  cmdShimLaunchOf
6
- } from "./chunk-UQTQ6HPO.js";
6
+ } from "./chunk-YJHBDJIW.js";
7
7
 
8
8
  // src/wrapper/spawnClaude.ts
9
9
  import { spawn } from "child_process";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-3JU27SD5.js";
4
+ } from "./chunk-HMMVGDL3.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -0,0 +1,92 @@
1
+ import {
2
+ AUTO_DECISION_WINDOW_MS,
3
+ DEFAULT_SESSION,
4
+ claimThrottle,
5
+ releaseThrottle,
6
+ reportEvent
7
+ } from "./chunk-3QDILGKG.js";
8
+ import {
9
+ deriveToolTarget,
10
+ permissionDeniedAction
11
+ } from "./chunk-3ULFLONL.js";
12
+ import {
13
+ projectNameFor
14
+ } from "./chunk-VH5DPURH.js";
15
+ import {
16
+ PERMISSION_ALLOWED_EVENT,
17
+ PERMISSION_DENIED_EVENT,
18
+ machineApprovalFor,
19
+ machineDecisionFor,
20
+ wireVerdictFor
21
+ } from "./chunk-HMMVGDL3.js";
22
+
23
+ // src/machine-decision-audit.ts
24
+ var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
25
+ var machineDecisionReportTimeoutMs = (deadlineMs, nowMs) => Math.min(MACHINE_DECISION_REPORT_TIMEOUT_MS, deadlineMs - nowMs);
26
+ var DEFAULT_RULE_COVERED_RUN_DEPS = { reportEvent, now: Date.now };
27
+ var deliverMachineDecision = async (input, agent, report, send) => {
28
+ const response = await send({
29
+ event: report.event,
30
+ occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
31
+ toolUseId: input.tool_use_id,
32
+ agentType: agent.type,
33
+ agentName: `${agent.label} - ${projectNameFor(input.cwd)}`,
34
+ ...report.action === void 0 ? {} : { action: report.action },
35
+ sessionId: input.session_id,
36
+ decisionSource: "policy_auto",
37
+ decisionOrigin: report.decision.origin,
38
+ decisionOutcome: report.decision.outcome,
39
+ toolName: input.tool_name,
40
+ toolTarget: report.toolTarget
41
+ }, { maxAttempts: 1, timeoutMs: report.timeoutMs, requireOk: true, skipDrain: true });
42
+ if (response?.ok !== true) throw new Error("Audit delivery was not acknowledged");
43
+ };
44
+ var reportMachineDenial = async (input, verdict, agent) => {
45
+ const decision = machineDecisionFor(wireVerdictFor(verdict, 0));
46
+ if (!decision) return;
47
+ const sessionKey = input.session_id || DEFAULT_SESSION;
48
+ const toolTarget = deriveToolTarget(input.tool_name, input.tool_input);
49
+ const throttleKey = `machinedecision:${agent.type}:${sessionKey}:${input.tool_name}:${decision.origin}:${toolTarget ?? ""}`;
50
+ const throttle = claimThrottle(throttleKey, AUTO_DECISION_WINDOW_MS);
51
+ if (throttle === "throttled") return;
52
+ if (throttle === "unavailable") {
53
+ console.error("[Pushary] Could not access the audit throttle; reporting this denial without deduplication.");
54
+ }
55
+ try {
56
+ await deliverMachineDecision(input, agent, {
57
+ event: PERMISSION_DENIED_EVENT,
58
+ action: permissionDeniedAction(input.tool_name),
59
+ decision,
60
+ toolTarget,
61
+ timeoutMs: MACHINE_DECISION_REPORT_TIMEOUT_MS
62
+ }, reportEvent);
63
+ } catch {
64
+ console.error("[Pushary] Could not record the machine denial. The action remains blocked; its audit delivery will be retried on the next matching denial.");
65
+ if (throttle === "passed") {
66
+ try {
67
+ releaseThrottle(throttleKey);
68
+ } catch {
69
+ console.error("[Pushary] Could not reset the failed audit throttle.");
70
+ }
71
+ }
72
+ }
73
+ };
74
+ var reportRuleCoveredRun = async (input, verdict, agent, deadlineMs, deps = DEFAULT_RULE_COVERED_RUN_DEPS) => {
75
+ const timeoutMs = machineDecisionReportTimeoutMs(deadlineMs, deps.now());
76
+ if (timeoutMs <= 0) return;
77
+ try {
78
+ await deliverMachineDecision(input, agent, {
79
+ event: PERMISSION_ALLOWED_EVENT,
80
+ decision: machineApprovalFor(verdict.source),
81
+ toolTarget: deriveToolTarget(input.tool_name, input.tool_input),
82
+ timeoutMs
83
+ }, deps.reportEvent);
84
+ } catch {
85
+ console.error("[Pushary] Could not record that your rule let this call run. The call still runs.");
86
+ }
87
+ };
88
+
89
+ export {
90
+ reportMachineDenial,
91
+ reportRuleCoveredRun
92
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-3JU27SD5.js";
4
+ } from "./chunk-HMMVGDL3.js";
5
5
 
6
6
  // src/setup/phone-check.ts
7
7
  var planPhoneCheck = (context) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-3JU27SD5.js";
3
+ } from "./chunk-HMMVGDL3.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-KZFNXNFH.js";
3
+ } from "./chunk-IC5BBT2K.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-3JU27SD5.js";
6
+ } from "./chunk-HMMVGDL3.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  spawnClaude
3
- } from "./chunk-VRNGMRJA.js";
3
+ } from "./chunk-TFMIG3VP.js";
4
4
  import {
5
5
  CODEX_HOOK_EVENTS,
6
6
  CODEX_REQUIRED_APPROVAL_EVENTS,
7
7
  codexHome,
8
8
  codexHooksJsonIn,
9
9
  isPusharyCodexCommand
10
- } from "./chunk-BWOQACK7.js";
10
+ } from "./chunk-25CMVBTJ.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-AO5BRDKS.js";
13
+ } from "./chunk-5NFHLMY3.js";
14
14
  import {
15
15
  getPackageVersion
16
- } from "./chunk-UQTQ6HPO.js";
16
+ } from "./chunk-YJHBDJIW.js";
17
17
 
18
18
  // src/codex-app-server.ts
19
19
  import { existsSync, realpathSync } from "fs";
@@ -1,12 +1,12 @@
1
+ import {
2
+ renderCommandHelp
3
+ } from "./chunk-QQLYMBKM.js";
1
4
  import {
2
5
  EXIT
3
6
  } from "./chunk-BG4HHB7E.js";
4
- import {
5
- renderCommandHelp
6
- } from "./chunk-YUG7PCPJ.js";
7
7
  import {
8
8
  getPackageVersion
9
- } from "./chunk-UQTQ6HPO.js";
9
+ } from "./chunk-YJHBDJIW.js";
10
10
 
11
11
  // src/cli/usage.ts
12
12
  var exitOnHelpFlag = (command) => {
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  needsShell,
3
3
  spawnClaude
4
- } from "./chunk-VRNGMRJA.js";
4
+ } from "./chunk-TFMIG3VP.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-AYM7IBC5.js";
7
+ } from "./chunk-5YJSZFZ6.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-LXZ6APGN.js";
10
+ } from "./chunk-BLVTNQZV.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-BWOQACK7.js";
13
+ } from "./chunk-25CMVBTJ.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-AO5BRDKS.js";
16
+ } from "./chunk-5NFHLMY3.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-KZFNXNFH.js";
19
+ } from "./chunk-IC5BBT2K.js";
20
20
  import {
21
21
  readJsonSafe,
22
22
  writeFileAtomic,
@@ -29,10 +29,10 @@ import {
29
29
  getPackageVersion,
30
30
  globalPackageFolder,
31
31
  globalRootFor
32
- } from "./chunk-UQTQ6HPO.js";
32
+ } from "./chunk-YJHBDJIW.js";
33
33
  import {
34
34
  isRecord
35
- } from "./chunk-3JU27SD5.js";
35
+ } from "./chunk-HMMVGDL3.js";
36
36
 
37
37
  // src/daemon-entry-guard.ts
38
38
  import { mkdirSync, readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-L7BHOFTF.js";
3
+ } from "./chunk-GZAU5W3K.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-3JU27SD5.js";
6
+ } from "./chunk-HMMVGDL3.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-3JU27SD5.js";
8
+ } from "./chunk-HMMVGDL3.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-3JU27SD5.js";
5
+ } from "./chunk-HMMVGDL3.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-GYIISS2S.js";
3
+ } from "./chunk-KVLAC4FS.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-LXZ6APGN.js";
6
+ } from "./chunk-BLVTNQZV.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-BWOQACK7.js";
9
+ } from "./chunk-25CMVBTJ.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-PM2NRK6Y.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-3JU27SD5.js";
16
+ } from "./chunk-HMMVGDL3.js";
17
17
 
18
18
  // src/shared-mcp-key.ts
19
19
  var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-O7N2FQBH.js";
4
+ } from "./chunk-5JQQ5IQC.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-TBQT2TA6.js";
7
+ } from "./chunk-3QDILGKG.js";
8
8
  import {
9
9
  compatibleToolLookup
10
- } from "./chunk-3JNBZF4G.js";
10
+ } from "./chunk-3ULFLONL.js";
11
11
  import {
12
12
  CLAUDE_HOOK_EVENTS,
13
13
  PUSHARY_MCP_URL,
@@ -19,7 +19,7 @@ import {
19
19
  isPusharyHook,
20
20
  registerHookEntry,
21
21
  removeClaudeMcpServers
22
- } from "./chunk-BWOQACK7.js";
22
+ } from "./chunk-25CMVBTJ.js";
23
23
  import {
24
24
  HOOK_COMPATIBLE_PROFILES,
25
25
  PHONE_ANSWERED_TOOLS,
@@ -30,7 +30,7 @@ import {
30
30
  pusharyMissingReason,
31
31
  refusalOutput,
32
32
  withHookHoldBudget
33
- } from "./chunk-3JU27SD5.js";
33
+ } from "./chunk-HMMVGDL3.js";
34
34
 
35
35
  // src/config-document.ts
36
36
  import { parse, stringify } from "smol-toml";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOOK_BUDGETS
3
- } from "./chunk-3JU27SD5.js";
3
+ } from "./chunk-HMMVGDL3.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -174,6 +174,7 @@ var isNewerVersion = (candidate, current) => {
174
174
  };
175
175
  var RELEASE_VERSION = /^\d+\.\d+\.\d+$/;
176
176
  var isReleaseVersion = (value) => RELEASE_VERSION.test(value);
177
+ var isKnownReleaseVersion = (value) => isReleaseVersion(value) && value !== UNKNOWN_VERSION;
177
178
  var LATEST_DIST_TAG = "latest";
178
179
  var majorOf = (version) => parseInt(version.split(".")[0] ?? "", 10) || 0;
179
180
  var isSameMajorVersion = (candidate, current) => majorOf(candidate) === majorOf(current);
@@ -204,6 +205,7 @@ export {
204
205
  packageVersionAt,
205
206
  isNewerVersion,
206
207
  isReleaseVersion,
208
+ isKnownReleaseVersion,
207
209
  LATEST_DIST_TAG,
208
210
  isSameMajorVersion
209
211
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-ZKZL4EFA.js";
3
+ } from "./chunk-EJJBM4OB.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-BZIBNSQE.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-CINBAX5G.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-YUG7PCPJ.js";
12
+ } from "./chunk-QQLYMBKM.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-3JU27SD5.js";
20
+ } from "./chunk-HMMVGDL3.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-3JU27SD5.js";
5
+ } from "./chunk-HMMVGDL3.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  needsShell
3
- } from "./chunk-VRNGMRJA.js";
3
+ } from "./chunk-TFMIG3VP.js";
4
4
  import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-BWOQACK7.js";
8
+ } from "./chunk-25CMVBTJ.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-AO5BRDKS.js";
11
+ } from "./chunk-5NFHLMY3.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-3JU27SD5.js";
14
+ } from "./chunk-HMMVGDL3.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-AO5BRDKS.js";
6
+ } from "./chunk-5NFHLMY3.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-YUG7PCPJ.js";
12
+ } from "./chunk-QQLYMBKM.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-3JU27SD5.js";
15
+ } from "./chunk-HMMVGDL3.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {