pushary 1.9.186 → 1.9.192

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 (154) hide show
  1. package/CHANGELOG.md +43 -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-JW7AA573.js → api-XPS2NPJH.js} +13 -11
  12. package/dist/bin/pushary-audit.js +3 -3
  13. package/dist/bin/pushary-bell-hook.js +28 -28
  14. package/dist/bin/pushary-bell.js +12 -12
  15. package/dist/bin/pushary-calls.js +15 -15
  16. package/dist/bin/pushary-claude.js +27 -27
  17. package/dist/bin/pushary-clean.js +39 -39
  18. package/dist/bin/pushary-codex-bridge.js +23 -23
  19. package/dist/bin/pushary-codex-hook.js +91 -64
  20. package/dist/bin/pushary-codex-session.js +8 -8
  21. package/dist/bin/pushary-codex.js +16 -16
  22. package/dist/bin/pushary-connect.js +35 -35
  23. package/dist/bin/pushary-cowork.js +5 -5
  24. package/dist/bin/pushary-daemon.js +46 -46
  25. package/dist/bin/pushary-disconnect.js +30 -30
  26. package/dist/bin/pushary-display-hook.js +8 -0
  27. package/dist/bin/pushary-doctor.js +75 -53
  28. package/dist/bin/pushary-elicitation-hook.js +28 -28
  29. package/dist/bin/pushary-gemini-bridge.js +18 -18
  30. package/dist/bin/pushary-gemini-hook.js +32 -32
  31. package/dist/bin/pushary-hook.js +36 -36
  32. package/dist/bin/pushary-login.js +22 -22
  33. package/dist/bin/pushary-logout.js +30 -30
  34. package/dist/bin/pushary-mcp.js +12 -12
  35. package/dist/bin/pushary-mode.js +16 -16
  36. package/dist/bin/pushary-notification-hook.js +27 -27
  37. package/dist/bin/pushary-opencode-bridge.js +61 -24
  38. package/dist/bin/pushary-opencode-hook.js +45 -40
  39. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  40. package/dist/bin/pushary-permission-hook.js +36 -36
  41. package/dist/bin/pushary-post-hook.js +28 -28
  42. package/dist/bin/pushary-prompt-hook.js +27 -27
  43. package/dist/bin/pushary-session-end-hook.js +27 -27
  44. package/dist/bin/pushary-session-start-hook.js +39 -39
  45. package/dist/bin/pushary-sessions.js +14 -14
  46. package/dist/bin/pushary-setup.js +55 -55
  47. package/dist/bin/pushary-stats.js +5 -5
  48. package/dist/bin/pushary-status.js +36 -36
  49. package/dist/bin/pushary-stop-hook.js +27 -27
  50. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  51. package/dist/bin/pushary-suggestions.js +16 -16
  52. package/dist/bin/pushary-transcript-register.js +17 -17
  53. package/dist/bin/pushary-transcripts.js +25 -25
  54. package/dist/bin/pushary-upgrade.js +44 -44
  55. package/dist/bin/pushary-wait.js +16 -16
  56. package/dist/bin/pushary.js +7 -7
  57. package/dist/{chunk-P5EVSOB6.js → chunk-23WKGMTI.js} +4 -2
  58. package/dist/{chunk-6TVDGTWR.js → chunk-2HOKEC2I.js} +2 -2
  59. package/dist/{chunk-FVQASC2C.js → chunk-3APYAOZF.js} +3 -3
  60. package/dist/{chunk-EMGKV2QC.js → chunk-3ULFLONL.js} +1 -1
  61. package/dist/{chunk-G6V3D64U.js → chunk-4FVKGWWZ.js} +2 -2
  62. package/dist/{chunk-W522XWAT.js → chunk-4TIZJD3Q.js} +5 -5
  63. package/dist/{chunk-KKUUJQ7D.js → chunk-5IPXL33D.js} +1 -1
  64. package/dist/{chunk-DGG75PIW.js → chunk-5QP7DVQF.js} +1 -1
  65. package/dist/{chunk-R3ECFKO3.js → chunk-5WC6N3HA.js} +5 -5
  66. package/dist/{chunk-IPVW4IUW.js → chunk-5WT6DLL2.js} +5 -5
  67. package/dist/{chunk-26LAHVWI.js → chunk-6C7DT36Z.js} +18 -18
  68. package/dist/{chunk-CEWERXV4.js → chunk-6CJSVFAD.js} +2 -2
  69. package/dist/{chunk-K4WBFMAT.js → chunk-6EZY7IXB.js} +1 -1
  70. package/dist/{chunk-LRLAIP75.js → chunk-6TNKY3DC.js} +2 -2
  71. package/dist/{chunk-SQA3ZPM4.js → chunk-7K5AYNDY.js} +5 -5
  72. package/dist/chunk-7QUPTDT2.js +92 -0
  73. package/dist/{chunk-JKF5I32P.js → chunk-A4QFVUEY.js} +2 -2
  74. package/dist/{chunk-SRCQFOVZ.js → chunk-AD7R7TNQ.js} +4 -4
  75. package/dist/{chunk-OY5W64TR.js → chunk-AQLIBG2P.js} +1 -1
  76. package/dist/{chunk-4WJDKZEJ.js → chunk-C2B4LPJU.js} +2 -2
  77. package/dist/{chunk-CBE5G6UP.js → chunk-CDEJHIYQ.js} +4 -4
  78. package/dist/{chunk-DUZ6V74X.js → chunk-CDXD6W4N.js} +1 -1
  79. package/dist/{chunk-STWKEQRM.js → chunk-DAHGMBRE.js} +3 -3
  80. package/dist/{chunk-CL7QR6FW.js → chunk-DHD54IIT.js} +7 -7
  81. package/dist/{chunk-RS7CW5W7.js → chunk-DP6YHOKF.js} +2 -2
  82. package/dist/{chunk-EQGQPDCH.js → chunk-DQI4647T.js} +4 -4
  83. package/dist/{chunk-NZTPGQT7.js → chunk-E65O7RMA.js} +4 -4
  84. package/dist/{chunk-I7GUIT7E.js → chunk-EBIPQ3ZE.js} +20 -4
  85. package/dist/{chunk-GP377Y34.js → chunk-EJ56NJQ4.js} +7 -7
  86. package/dist/{chunk-NITOSXEV.js → chunk-EJJBM4OB.js} +1 -1
  87. package/dist/{chunk-6PBNSFQG.js → chunk-EPNYDS4H.js} +1 -1
  88. package/dist/{chunk-ZIEZJXQY.js → chunk-ETT24EIH.js} +3 -3
  89. package/dist/{chunk-H6NPQ336.js → chunk-F326QJEJ.js} +8 -8
  90. package/dist/{chunk-S67UAFW2.js → chunk-FY7WHRDJ.js} +3 -3
  91. package/dist/{chunk-6WLQ7WOD.js → chunk-FZWUUGC2.js} +4 -4
  92. package/dist/{chunk-GL4EIL5Q.js → chunk-GAAPUS5J.js} +1 -1
  93. package/dist/{chunk-YXKQXKGV.js → chunk-GGKGVCUN.js} +6 -5
  94. package/dist/{chunk-DDNFI2GA.js → chunk-GR46QR45.js} +6 -6
  95. package/dist/{chunk-5SN2IITE.js → chunk-GUBY4KIU.js} +8 -6
  96. package/dist/{chunk-H4ZHVSKE.js → chunk-GUZLBFER.js} +5 -5
  97. package/dist/{chunk-ZXAWHBFW.js → chunk-H6CBRJKT.js} +7 -6
  98. package/dist/{chunk-X55NVFKJ.js → chunk-HMMVGDL3.js} +11 -4
  99. package/dist/{chunk-LWWUA5DF.js → chunk-ITPAUHJ4.js} +1 -1
  100. package/dist/{chunk-ECBECMRW.js → chunk-IYOA3NWO.js} +1 -1
  101. package/dist/{chunk-7Z2N3SVV.js → chunk-JJBM5FYH.js} +2 -2
  102. package/dist/{chunk-MSUOS64O.js → chunk-JXZQ4XFL.js} +2 -2
  103. package/dist/{chunk-2DNN7O7B.js → chunk-KERLAXHG.js} +3 -3
  104. package/dist/{chunk-G2IFBGTY.js → chunk-LWUDOZHE.js} +4 -4
  105. package/dist/{chunk-RNN2XAF7.js → chunk-NCN7ANYA.js} +6 -6
  106. package/dist/{chunk-O67OY3RA.js → chunk-NFK2QF74.js} +5 -5
  107. package/dist/{chunk-ZK4E2VID.js → chunk-O7ZCWGYA.js} +2 -2
  108. package/dist/{chunk-A4CQJZ3K.js → chunk-OTJEIINV.js} +10 -8
  109. package/dist/{chunk-GXR3JSXP.js → chunk-OYZUPSD7.js} +6 -6
  110. package/dist/{chunk-AWYR3KPA.js → chunk-P4JYK7WB.js} +3 -3
  111. package/dist/{chunk-EEFNFZNQ.js → chunk-P6NACIBR.js} +4 -4
  112. package/dist/{chunk-V25PSICC.js → chunk-PUVD22DY.js} +12 -12
  113. package/dist/{chunk-HFDBV3ZJ.js → chunk-R2NYUOTC.js} +9 -9
  114. package/dist/{chunk-5FDIOHNH.js → chunk-RNPEOAPC.js} +2 -2
  115. package/dist/{chunk-NGDDNKOV.js → chunk-SHAHZQTQ.js} +4 -4
  116. package/dist/{chunk-KTKM7HS5.js → chunk-T4GV5MOC.js} +3 -3
  117. package/dist/{chunk-BLLDCO5A.js → chunk-TP47JHGJ.js} +1 -1
  118. package/dist/{chunk-4CPKJI4N.js → chunk-UF6RZBTL.js} +3 -3
  119. package/dist/{chunk-N5YRPYPC.js → chunk-URVW3D2J.js} +11 -11
  120. package/dist/{chunk-NDHS2ULF.js → chunk-UV5ROHY2.js} +1 -1
  121. package/dist/{chunk-W2WM5IXQ.js → chunk-UVNH4UGJ.js} +1 -1
  122. package/dist/{chunk-OBTUMS5L.js → chunk-UXQVXB7Q.js} +1 -1
  123. package/dist/{chunk-STJYAFMW.js → chunk-VDJMYP54.js} +3 -3
  124. package/dist/{chunk-TXVRUVBB.js → chunk-VEE2MRUN.js} +1 -1
  125. package/dist/{chunk-7OQZ5GL7.js → chunk-VH5DPURH.js} +1 -1
  126. package/dist/{chunk-XL2PSZIU.js → chunk-VNCN3Z4T.js} +2 -2
  127. package/dist/{chunk-7KLNBFFD.js → chunk-WB5DD232.js} +3 -3
  128. package/dist/{chunk-63HIRFYV.js → chunk-WNCTMTMG.js} +1 -1
  129. package/dist/{chunk-OLED2XSM.js → chunk-X4ENTDFT.js} +2 -2
  130. package/dist/{chunk-Q4FXPTPH.js → chunk-X7FIYMHC.js} +2 -2
  131. package/dist/{chunk-EBSFVPHH.js → chunk-XMNETXQ4.js} +6 -6
  132. package/dist/{chunk-NK3V3E6P.js → chunk-XONHTLMX.js} +10 -10
  133. package/dist/{chunk-5JRRWACR.js → chunk-XSJON4TV.js} +1 -1
  134. package/dist/{chunk-3MKRWTLZ.js → chunk-Y2H5TF7T.js} +1 -1
  135. package/dist/{chunk-WMXQFOTJ.js → chunk-YLZRG4U5.js} +1 -1
  136. package/dist/{chunk-ERI4ISGN.js → chunk-YMULPOSH.js} +5 -5
  137. package/dist/{chunk-PZBVUHRD.js → chunk-ZCR5VTOC.js} +5 -5
  138. package/dist/{codex-app-cards-switch-J4QYBE4B.js → codex-app-cards-switch-UEN23QFT.js} +11 -11
  139. package/dist/{codex-card-routing-TLQSULL6.js → codex-card-routing-CJZT26VA.js} +2 -2
  140. package/dist/{codex-desktop-launch-QS7RJIWL.js → codex-desktop-launch-DKOOCOTD.js} +1 -1
  141. package/dist/{codex-session-launch-IOALOU37.js → codex-session-launch-UHNV5Z3D.js} +20 -20
  142. package/dist/{config-WHD32JOQ.js → config-EVDZ6OAI.js} +3 -3
  143. package/dist/{global-upgrade-SILVY22G.js → global-upgrade-KZQWNABB.js} +9 -9
  144. package/dist/{identity-ZFMKTDMM.js → identity-A2BK7P2A.js} +4 -4
  145. package/dist/{live-capabilities-A5NUXYA3.js → live-capabilities-43YRGYAR.js} +4 -4
  146. package/dist/{paths-2Q5EPYCM.js → paths-67D2435E.js} +3 -3
  147. package/dist/reapply-APVASEGC.js +70 -0
  148. package/dist/src/index.d.ts +2 -1
  149. package/dist/src/index.js +35 -35
  150. package/dist/{upgrade-lock-YNBGIRDF.js → upgrade-lock-TG4UOPN7.js} +4 -4
  151. package/dist/{usage-K74RCKF7.js → usage-FVDJIMCB.js} +3 -3
  152. package/package.json +1 -1
  153. package/dist/chunk-ZVGPDR37.js +0 -62
  154. package/dist/reapply-TXX2GU6T.js +0 -70
@@ -3,24 +3,24 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-4CPKJI4N.js";
6
+ } from "./chunk-UF6RZBTL.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-GXR3JSXP.js";
13
+ } from "./chunk-OYZUPSD7.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-5JRRWACR.js";
16
+ } from "./chunk-XSJON4TV.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeySource
20
- } from "./chunk-S67UAFW2.js";
20
+ } from "./chunk-FY7WHRDJ.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-3MKRWTLZ.js";
23
+ } from "./chunk-Y2H5TF7T.js";
24
24
  import {
25
25
  getPackageVersion
26
26
  } from "./chunk-UQTQ6HPO.js";
@@ -18,18 +18,18 @@ import {
18
18
  settingSnapshot,
19
19
  writeHermesSetting,
20
20
  writeSetupReceipt
21
- } from "./chunk-CBE5G6UP.js";
21
+ } from "./chunk-CDEJHIYQ.js";
22
22
  import {
23
23
  OPENCLAW_MIN_VERSION,
24
24
  OPENCLAW_PLUGIN_ID,
25
25
  OPENCLAW_PLUGIN_PACKAGE
26
- } from "./chunk-2DNN7O7B.js";
26
+ } from "./chunk-KERLAXHG.js";
27
27
  import {
28
28
  retryAgentCommand
29
- } from "./chunk-AWYR3KPA.js";
29
+ } from "./chunk-P4JYK7WB.js";
30
30
  import {
31
31
  configFilePath
32
- } from "./chunk-3MKRWTLZ.js";
32
+ } from "./chunk-Y2H5TF7T.js";
33
33
  import {
34
34
  readJsonSafe,
35
35
  writeJsonAtomic
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  readSetupOutcomeProperties,
39
39
  redactSecretsFromContent
40
- } from "./chunk-X55NVFKJ.js";
40
+ } from "./chunk-HMMVGDL3.js";
41
41
 
42
42
  // src/hermes/shell-gate.ts
43
43
  var readHermesShellGate = async (launcher) => {
@@ -2,39 +2,39 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-MSUOS64O.js";
5
+ } from "./chunk-JXZQ4XFL.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-XL2PSZIU.js";
9
+ } from "./chunk-VNCN3Z4T.js";
10
10
  import {
11
11
  defersToNativeMode
12
- } from "./chunk-OBTUMS5L.js";
12
+ } from "./chunk-UXQVXB7Q.js";
13
13
  import {
14
14
  askAgentQuestions,
15
15
  outcomeOfFailedAsk,
16
16
  storedWaitDeadline
17
- } from "./chunk-5SN2IITE.js";
17
+ } from "./chunk-GUBY4KIU.js";
18
18
  import {
19
19
  reportMachineDenial
20
- } from "./chunk-ZVGPDR37.js";
20
+ } from "./chunk-7QUPTDT2.js";
21
21
  import {
22
22
  isGatingMoment,
23
23
  recordKeylessMoment
24
- } from "./chunk-ECBECMRW.js";
24
+ } from "./chunk-IYOA3NWO.js";
25
25
  import {
26
26
  isAdmitted,
27
27
  readAdmissionRules
28
- } from "./chunk-SQA3ZPM4.js";
28
+ } from "./chunk-7K5AYNDY.js";
29
29
  import {
30
30
  isDeferAnswer,
31
31
  oncePerSession
32
- } from "./chunk-NDHS2ULF.js";
32
+ } from "./chunk-UV5ROHY2.js";
33
33
  import {
34
34
  activeHookSource,
35
35
  activeIdentity,
36
36
  namedSource
37
- } from "./chunk-PZBVUHRD.js";
37
+ } from "./chunk-ZCR5VTOC.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-V25PSICC.js";
60
+ } from "./chunk-PUVD22DY.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-EMGKV2QC.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-A4CQJZ3K.js";
88
+ } from "./chunk-OTJEIINV.js";
89
89
  import {
90
90
  branchFor,
91
91
  projectNameFor,
92
92
  repoKeyFor,
93
93
  repositoryScopeFor
94
- } from "./chunk-7OQZ5GL7.js";
94
+ } from "./chunk-VH5DPURH.js";
95
95
  import {
96
96
  getMachineId
97
- } from "./chunk-5JRRWACR.js";
97
+ } from "./chunk-XSJON4TV.js";
98
98
  import {
99
99
  POSTTOOLUSE_MIRRORED_TOOLS
100
- } from "./chunk-6TVDGTWR.js";
100
+ } from "./chunk-2HOKEC2I.js";
101
101
  import {
102
102
  getApiKey,
103
103
  getBaseUrl
104
- } from "./chunk-3MKRWTLZ.js";
104
+ } from "./chunk-Y2H5TF7T.js";
105
105
  import {
106
106
  writeFileAtomic
107
107
  } from "./chunk-PM2NRK6Y.js";
108
108
  import {
109
109
  NPX_LATEST_COMMAND
110
- } from "./chunk-GL4EIL5Q.js";
110
+ } from "./chunk-GAAPUS5J.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-X55NVFKJ.js";
184
+ } from "./chunk-HMMVGDL3.js";
185
185
 
186
186
  // src/terminal-answer-watch.ts
187
187
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-FVQASC2C.js";
3
+ } from "./chunk-3APYAOZF.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-X55NVFKJ.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";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-KKUUJQ7D.js";
7
+ } from "./chunk-5IPXL33D.js";
8
8
 
9
9
  // src/command-receipts.ts
10
10
  import { randomUUID } from "crypto";
@@ -7,10 +7,10 @@ import {
7
7
  codexHome,
8
8
  codexHooksJsonIn,
9
9
  isPusharyCodexCommand
10
- } from "./chunk-6TVDGTWR.js";
10
+ } from "./chunk-2HOKEC2I.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-I7GUIT7E.js";
13
+ } from "./chunk-EBIPQ3ZE.js";
14
14
  import {
15
15
  getPackageVersion
16
16
  } from "./chunk-UQTQ6HPO.js";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-G2IFBGTY.js";
4
+ } from "./chunk-LWUDOZHE.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-NK3V3E6P.js";
7
+ } from "./chunk-XONHTLMX.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-PZBVUHRD.js";
10
+ } from "./chunk-ZCR5VTOC.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-A4CQJZ3K.js";
13
+ } from "./chunk-OTJEIINV.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-X55NVFKJ.js";
19
+ } from "./chunk-HMMVGDL3.js";
20
20
 
21
21
  // src/tool-hook-input.ts
22
22
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
@@ -0,0 +1,92 @@
1
+ import {
2
+ AUTO_DECISION_WINDOW_MS,
3
+ DEFAULT_SESSION,
4
+ claimThrottle,
5
+ releaseThrottle,
6
+ reportEvent
7
+ } from "./chunk-PUVD22DY.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,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-6TVDGTWR.js";
3
+ } from "./chunk-2HOKEC2I.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-I7GUIT7E.js";
8
+ } from "./chunk-EBIPQ3ZE.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-DDNFI2GA.js";
3
+ } from "./chunk-GR46QR45.js";
4
4
  import {
5
5
  matchMacAccountStep,
6
6
  retryAgentCommand
7
- } from "./chunk-AWYR3KPA.js";
7
+ } from "./chunk-P4JYK7WB.js";
8
8
  import {
9
9
  canChangeApprovalSettings
10
- } from "./chunk-CEWERXV4.js";
10
+ } from "./chunk-6CJSVFAD.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND,
16
16
  npmExecSetupCommandFor
17
- } from "./chunk-GL4EIL5Q.js";
17
+ } from "./chunk-GAAPUS5J.js";
18
18
  import {
19
19
  LATEST_DIST_TAG
20
20
  } from "./chunk-UQTQ6HPO.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-BG4HHB7E.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-GL4EIL5Q.js";
6
+ } from "./chunk-GAAPUS5J.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-UQTQ6HPO.js";
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-S67UAFW2.js";
7
+ } from "./chunk-FY7WHRDJ.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-GL4EIL5Q.js";
10
+ } from "./chunk-GAAPUS5J.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-2DNN7O7B.js";
16
+ } from "./chunk-KERLAXHG.js";
17
17
  import {
18
18
  needsShell
19
19
  } from "./chunk-VRNGMRJA.js";
@@ -25,10 +25,10 @@ import {
25
25
  openClawDirectoriesToLookIn,
26
26
  openClawPluginFolder,
27
27
  openClawSetupReceiptDirectory
28
- } from "./chunk-6TVDGTWR.js";
28
+ } from "./chunk-2HOKEC2I.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-I7GUIT7E.js";
31
+ } from "./chunk-EBIPQ3ZE.js";
32
32
  import {
33
33
  readJsonSafe,
34
34
  writeJsonAtomic
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-UQTQ6HPO.js";
40
40
  import {
41
41
  isRecord
42
- } from "./chunk-X55NVFKJ.js";
42
+ } from "./chunk-HMMVGDL3.js";
43
43
 
44
44
  // src/hermes/plugin-payload.ts
45
45
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-S67UAFW2.js";
3
+ } from "./chunk-FY7WHRDJ.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-ZXAWHBFW.js";
3
+ } from "./chunk-H6CBRJKT.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-TXVRUVBB.js";
6
+ } from "./chunk-VEE2MRUN.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-GL4EIL5Q.js";
9
+ } from "./chunk-GAAPUS5J.js";
10
10
 
11
11
  // src/mcp-stdio-bridge.ts
12
12
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -3,7 +3,7 @@ import {
3
3
  openCodePluginArgv,
4
4
  openCodePluginModule,
5
5
  renderOpenCodePlugin
6
- } from "./chunk-W522XWAT.js";
6
+ } from "./chunk-4TIZJD3Q.js";
7
7
  import {
8
8
  OPENCODE_FAILED_EVENT,
9
9
  OPENCODE_IDLE_EVENT,
@@ -12,17 +12,17 @@ import {
12
12
  OPENCODE_PLUGIN_SIBLING,
13
13
  OPENCODE_PLUGIN_SIBLING_CONTENTS,
14
14
  OPENCODE_SUBAGENT_IDLE_EVENT
15
- } from "./chunk-63HIRFYV.js";
15
+ } from "./chunk-WNCTMTMG.js";
16
16
  import {
17
17
  compatibleConfigFile
18
- } from "./chunk-PZBVUHRD.js";
18
+ } from "./chunk-ZCR5VTOC.js";
19
19
  import {
20
20
  hookOwnerOf,
21
21
  hookOwnerOfCommands
22
- } from "./chunk-EQGQPDCH.js";
22
+ } from "./chunk-DQI4647T.js";
23
23
  import {
24
24
  AGENT_CHOICES
25
- } from "./chunk-NITOSXEV.js";
25
+ } from "./chunk-EJJBM4OB.js";
26
26
  import {
27
27
  OPENCODE_INSTRUCTIONS_LABEL,
28
28
  bridgeStub,
@@ -36,7 +36,7 @@ import {
36
36
  resolveBridgeStub,
37
37
  vscodePluginDir,
38
38
  windowsNodeLauncherFor
39
- } from "./chunk-6TVDGTWR.js";
39
+ } from "./chunk-2HOKEC2I.js";
40
40
  import {
41
41
  readJsonSafe
42
42
  } from "./chunk-PM2NRK6Y.js";
@@ -46,7 +46,7 @@ import {
46
46
  OPENCODE_APPROVAL_EVENT,
47
47
  hookCompatibleProfile,
48
48
  isRecord
49
- } from "./chunk-X55NVFKJ.js";
49
+ } from "./chunk-HMMVGDL3.js";
50
50
 
51
51
  // src/opencode-config.ts
52
52
  import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-3MKRWTLZ.js";
3
+ } from "./chunk-Y2H5TF7T.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-X55NVFKJ.js";
6
+ } from "./chunk-HMMVGDL3.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-NITOSXEV.js";
3
+ } from "./chunk-EJJBM4OB.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-LWWUA5DF.js";
6
+ } from "./chunk-ITPAUHJ4.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -16,13 +16,13 @@ import {
16
16
  isBridgeLocator,
17
17
  isProtectedByScope,
18
18
  registerHookEntry
19
- } from "./chunk-6TVDGTWR.js";
19
+ } from "./chunk-2HOKEC2I.js";
20
20
  import {
21
21
  CURSOR_GATE_EVENTS,
22
22
  HOOK_BUDGETS,
23
23
  HOOK_LOCATOR_BINARY,
24
24
  hookCommandHoldBudget
25
- } from "./chunk-X55NVFKJ.js";
25
+ } from "./chunk-HMMVGDL3.js";
26
26
 
27
27
  // src/gemini-config.ts
28
28
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-PZBVUHRD.js";
4
+ } from "./chunk-ZCR5VTOC.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-EQGQPDCH.js";
7
+ } from "./chunk-DQI4647T.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-6TVDGTWR.js";
11
+ } from "./chunk-2HOKEC2I.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-X55NVFKJ.js";
14
+ } from "./chunk-HMMVGDL3.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-UQTQ6HPO.js";
16
16
  import {
17
17
  redactSecretsFromContent
18
- } from "./chunk-X55NVFKJ.js";
18
+ } from "./chunk-HMMVGDL3.js";
19
19
 
20
20
  // src/shell-quote.ts
21
21
  var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
@@ -397,6 +397,20 @@ var fetchLatestPublishedVersion = async (request) => {
397
397
  return void 0;
398
398
  }
399
399
  };
400
+ var NpmBudgetSpentError = class extends Error {
401
+ constructor() {
402
+ super("npm took longer than this command allows");
403
+ }
404
+ };
405
+ var remainingTimeoutMs = (requested, remainingMs) => typeof requested === "number" && requested > 0 ? Math.min(requested, remainingMs) : remainingMs;
406
+ var npmRunnerWithin = (budgetMs, runNpm = execNpm, now = Date.now) => {
407
+ const deadline = now() + budgetMs;
408
+ return (args, options) => {
409
+ const remainingMs = deadline - now();
410
+ if (remainingMs <= 0) throw new NpmBudgetSpentError();
411
+ return runNpm(args, { ...options, timeout: remainingTimeoutMs(options.timeout, remainingMs) });
412
+ };
413
+ };
400
414
  var POSIX_SHELL_WORD = /^[\w@%+=:,./-]+$/;
401
415
  var quoteForPosixShell = (value) => POSIX_SHELL_WORD.test(value) ? value : `'${value.replaceAll("'", `'\\''`)}'`;
402
416
  var prefixFlagOf = (request) => request.prefix === void 0 ? "" : ` --prefix ${quoteForPosixShell(request.prefix)}`;
@@ -502,9 +516,9 @@ var installGlobally = (options) => {
502
516
  }
503
517
  const started = (async () => {
504
518
  if (!npmIsOnPath()) throw new NpmMissingError();
505
- const { withUpgradeLock } = await import("./global-upgrade-SILVY22G.js");
506
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-YNBGIRDF.js");
507
- const { autoUpdateLock } = await import("./paths-2Q5EPYCM.js");
519
+ const { withUpgradeLock } = await import("./global-upgrade-KZQWNABB.js");
520
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-TG4UOPN7.js");
521
+ const { autoUpdateLock } = await import("./paths-67D2435E.js");
508
522
  let result = "skipped";
509
523
  const install = async () => {
510
524
  const platform = process.platform;
@@ -585,8 +599,10 @@ export {
585
599
  resolveGlobalBinDir,
586
600
  quoteIfNeeded,
587
601
  fetchLatestPublishedVersion,
602
+ npmRunnerWithin,
588
603
  installPackageGlobally,
589
604
  throwIfNpmRefusesInstall,
605
+ chosenRelease,
590
606
  newestReleaseNpmAllows,
591
607
  describeReleaseNpmHolds,
592
608
  plannedGlobalPackage,
@@ -2,31 +2,31 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-4WJDKZEJ.js";
5
+ } from "./chunk-C2B4LPJU.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-CEWERXV4.js";
8
+ } from "./chunk-6CJSVFAD.js";
9
9
  import {
10
10
  createIo
11
- } from "./chunk-DGG75PIW.js";
11
+ } from "./chunk-5QP7DVQF.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-FVQASC2C.js";
17
+ } from "./chunk-3APYAOZF.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-S67UAFW2.js";
20
+ } from "./chunk-FY7WHRDJ.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-3MKRWTLZ.js";
23
+ } from "./chunk-Y2H5TF7T.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-X55NVFKJ.js";
29
+ } from "./chunk-HMMVGDL3.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-X55NVFKJ.js";
12
+ } from "./chunk-HMMVGDL3.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;