pushary 1.9.187 → 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 +23 -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-XPS2NPJH.js} +11 -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 +50 -50
  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-5O4MW5YS.js → chunk-23WKGMTI.js} +4 -2
  58. package/dist/{chunk-BWOQACK7.js → chunk-2HOKEC2I.js} +2 -2
  59. package/dist/{chunk-L7BHOFTF.js → chunk-3APYAOZF.js} +3 -3
  60. package/dist/{chunk-3JNBZF4G.js → chunk-3ULFLONL.js} +1 -1
  61. package/dist/{chunk-5X7XEJTI.js → chunk-4FVKGWWZ.js} +2 -2
  62. package/dist/{chunk-NNHD7KVL.js → chunk-4TIZJD3Q.js} +5 -5
  63. package/dist/{chunk-OLU5L3VB.js → chunk-5IPXL33D.js} +1 -1
  64. package/dist/{chunk-RYBTDSQF.js → chunk-5QP7DVQF.js} +1 -1
  65. package/dist/{chunk-QNOXMVIX.js → chunk-5WC6N3HA.js} +5 -5
  66. package/dist/{chunk-ZL3UDLTC.js → chunk-5WT6DLL2.js} +5 -5
  67. package/dist/{chunk-4OSTVMM5.js → chunk-6C7DT36Z.js} +18 -18
  68. package/dist/{chunk-WA5RGLKV.js → chunk-6CJSVFAD.js} +2 -2
  69. package/dist/{chunk-PS4AKK26.js → chunk-6EZY7IXB.js} +1 -1
  70. package/dist/{chunk-AKAZRQLA.js → chunk-6TNKY3DC.js} +2 -2
  71. package/dist/{chunk-6ZSOD7VY.js → chunk-7K5AYNDY.js} +5 -5
  72. package/dist/chunk-7QUPTDT2.js +92 -0
  73. package/dist/{chunk-6OJ7XVBR.js → chunk-A4QFVUEY.js} +2 -2
  74. package/dist/{chunk-URZAPVR6.js → chunk-AD7R7TNQ.js} +4 -4
  75. package/dist/{chunk-J3JG5EKP.js → chunk-AQLIBG2P.js} +1 -1
  76. package/dist/{chunk-UFAIL7YE.js → chunk-C2B4LPJU.js} +2 -2
  77. package/dist/{chunk-Z7OTSKAT.js → chunk-CDEJHIYQ.js} +4 -4
  78. package/dist/{chunk-TYGNPI7L.js → chunk-CDXD6W4N.js} +1 -1
  79. package/dist/{chunk-I5C35DE5.js → chunk-DAHGMBRE.js} +3 -3
  80. package/dist/{chunk-GYIISS2S.js → chunk-DHD54IIT.js} +7 -7
  81. package/dist/{chunk-GBKMTVG6.js → chunk-DP6YHOKF.js} +2 -2
  82. package/dist/{chunk-O7N2FQBH.js → chunk-DQI4647T.js} +4 -4
  83. package/dist/{chunk-BW6WGBJC.js → chunk-E65O7RMA.js} +4 -4
  84. package/dist/{chunk-AO5BRDKS.js → chunk-EBIPQ3ZE.js} +20 -4
  85. package/dist/{chunk-HYZAL77U.js → chunk-EJ56NJQ4.js} +7 -7
  86. package/dist/{chunk-ZKZL4EFA.js → chunk-EJJBM4OB.js} +1 -1
  87. package/dist/{chunk-ZUU4I2RK.js → chunk-EPNYDS4H.js} +1 -1
  88. package/dist/{chunk-L3BX56Y4.js → chunk-ETT24EIH.js} +3 -3
  89. package/dist/{chunk-NXHIWGOL.js → chunk-F326QJEJ.js} +8 -8
  90. package/dist/{chunk-LXZ6APGN.js → chunk-FY7WHRDJ.js} +3 -3
  91. package/dist/{chunk-LTB54XBS.js → chunk-FZWUUGC2.js} +4 -4
  92. package/dist/{chunk-YUG7PCPJ.js → chunk-GAAPUS5J.js} +1 -1
  93. package/dist/{chunk-VECF23YI.js → chunk-GGKGVCUN.js} +4 -4
  94. package/dist/{chunk-QJF5I7NR.js → chunk-GR46QR45.js} +6 -6
  95. package/dist/{chunk-GTEL6ZIH.js → chunk-GUBY4KIU.js} +8 -6
  96. package/dist/{chunk-E2CY63WZ.js → chunk-GUZLBFER.js} +5 -5
  97. package/dist/{chunk-KOJJ2LPJ.js → chunk-H6CBRJKT.js} +5 -5
  98. package/dist/{chunk-3JU27SD5.js → chunk-HMMVGDL3.js} +10 -4
  99. package/dist/{chunk-O5IRXMPV.js → chunk-ITPAUHJ4.js} +1 -1
  100. package/dist/{chunk-FYBS4VRT.js → chunk-IYOA3NWO.js} +1 -1
  101. package/dist/{chunk-JFZPMVEC.js → chunk-JJBM5FYH.js} +2 -2
  102. package/dist/{chunk-YMJCE2TD.js → chunk-JXZQ4XFL.js} +2 -2
  103. package/dist/{chunk-IYY7KRNS.js → chunk-KERLAXHG.js} +3 -3
  104. package/dist/{chunk-JLVVFGYN.js → chunk-LWUDOZHE.js} +4 -4
  105. package/dist/{chunk-Z2RVYQON.js → chunk-NCN7ANYA.js} +6 -6
  106. package/dist/{chunk-XO66RJJC.js → chunk-NFK2QF74.js} +5 -5
  107. package/dist/{chunk-2IBCLVJK.js → chunk-O7ZCWGYA.js} +2 -2
  108. package/dist/{chunk-2NHK4PUR.js → chunk-OTJEIINV.js} +6 -6
  109. package/dist/{chunk-PDVGAU7A.js → chunk-OYZUPSD7.js} +6 -6
  110. package/dist/{chunk-HKL7HXFD.js → chunk-P4JYK7WB.js} +3 -3
  111. package/dist/{chunk-BDJNHQFA.js → chunk-P6NACIBR.js} +4 -4
  112. package/dist/{chunk-TBQT2TA6.js → chunk-PUVD22DY.js} +12 -12
  113. package/dist/{chunk-EXM3ZEUU.js → chunk-R2NYUOTC.js} +9 -9
  114. package/dist/{chunk-DRY5YWUK.js → chunk-RNPEOAPC.js} +2 -2
  115. package/dist/{chunk-OESNI7XN.js → chunk-SHAHZQTQ.js} +4 -4
  116. package/dist/{chunk-6NUEY2FT.js → chunk-T4GV5MOC.js} +3 -3
  117. package/dist/{chunk-5DSFBND4.js → chunk-TP47JHGJ.js} +1 -1
  118. package/dist/{chunk-LXHH33MX.js → chunk-UF6RZBTL.js} +3 -3
  119. package/dist/{chunk-FZQHKRQF.js → chunk-URVW3D2J.js} +11 -11
  120. package/dist/{chunk-2ACPOE77.js → chunk-UV5ROHY2.js} +1 -1
  121. package/dist/{chunk-OCHXKVIN.js → chunk-UVNH4UGJ.js} +1 -1
  122. package/dist/{chunk-7P7ZKS2G.js → chunk-UXQVXB7Q.js} +1 -1
  123. package/dist/{chunk-XF25RJEV.js → chunk-VDJMYP54.js} +3 -3
  124. package/dist/{chunk-6D35FDXC.js → chunk-VEE2MRUN.js} +1 -1
  125. package/dist/{chunk-7IG54T3H.js → chunk-VH5DPURH.js} +1 -1
  126. package/dist/{chunk-TKGCDWPF.js → chunk-VNCN3Z4T.js} +2 -2
  127. package/dist/{chunk-QUXD5OW3.js → chunk-WB5DD232.js} +3 -3
  128. package/dist/{chunk-FWYOB3LW.js → chunk-WNCTMTMG.js} +1 -1
  129. package/dist/{chunk-EU6NQQNG.js → chunk-X4ENTDFT.js} +2 -2
  130. package/dist/{chunk-2PQY4TMQ.js → chunk-X7FIYMHC.js} +2 -2
  131. package/dist/{chunk-52CIHAC2.js → chunk-XMNETXQ4.js} +6 -6
  132. package/dist/{chunk-SIT46O4V.js → chunk-XONHTLMX.js} +10 -10
  133. package/dist/{chunk-AYM7IBC5.js → chunk-XSJON4TV.js} +1 -1
  134. package/dist/{chunk-KZFNXNFH.js → chunk-Y2H5TF7T.js} +1 -1
  135. package/dist/{chunk-6UICFJRW.js → chunk-YLZRG4U5.js} +1 -1
  136. package/dist/{chunk-QBPBNFDI.js → chunk-YMULPOSH.js} +5 -5
  137. package/dist/{chunk-D35DKI3E.js → chunk-ZCR5VTOC.js} +5 -5
  138. package/dist/{codex-app-cards-switch-5B67TNLS.js → codex-app-cards-switch-UEN23QFT.js} +11 -11
  139. package/dist/{codex-card-routing-3HSUBI6U.js → codex-card-routing-CJZT26VA.js} +2 -2
  140. package/dist/{codex-desktop-launch-GG5K77QD.js → codex-desktop-launch-DKOOCOTD.js} +1 -1
  141. package/dist/{codex-session-launch-XR46HRYK.js → codex-session-launch-UHNV5Z3D.js} +20 -20
  142. package/dist/{config-K7JUY27J.js → config-EVDZ6OAI.js} +3 -3
  143. package/dist/{global-upgrade-R24VOCK7.js → global-upgrade-KZQWNABB.js} +9 -9
  144. package/dist/{identity-IMSNZJZL.js → identity-A2BK7P2A.js} +4 -4
  145. package/dist/{live-capabilities-BBUGAZJV.js → live-capabilities-43YRGYAR.js} +4 -4
  146. package/dist/{paths-HGLMPFAG.js → paths-67D2435E.js} +3 -3
  147. package/dist/reapply-APVASEGC.js +70 -0
  148. package/dist/src/index.d.ts +1 -0
  149. package/dist/src/index.js +35 -35
  150. package/dist/{upgrade-lock-FML33CIQ.js → upgrade-lock-TG4UOPN7.js} +4 -4
  151. package/dist/{usage-QMQZCRF2.js → usage-FVDJIMCB.js} +3 -3
  152. package/package.json +1 -1
  153. package/dist/chunk-LV575VQE.js +0 -62
  154. package/dist/reapply-SYNZ2IZY.js +0 -70
@@ -2,43 +2,43 @@
2
2
  import {
3
3
  waitResponse,
4
4
  waitWindowResponse
5
- } from "../chunk-6UICFJRW.js";
5
+ } from "../chunk-YLZRG4U5.js";
6
6
  import {
7
7
  describeWaitLadder
8
8
  } from "../chunk-CVWG2N3Y.js";
9
9
  import {
10
10
  exitOnFailedSettingsRequest
11
- } from "../chunk-HYZAL77U.js";
12
- import "../chunk-UFAIL7YE.js";
11
+ } from "../chunk-EJ56NJQ4.js";
12
+ import "../chunk-C2B4LPJU.js";
13
13
  import {
14
14
  APPROVAL_RULES_PATH,
15
15
  PUSH_WINDOW_COMMAND,
16
16
  PUSH_WINDOW_RESET_COMMAND
17
- } from "../chunk-WA5RGLKV.js";
17
+ } from "../chunk-6CJSVFAD.js";
18
18
  import {
19
19
  createIo
20
- } from "../chunk-RYBTDSQF.js";
20
+ } from "../chunk-5QP7DVQF.js";
21
21
  import {
22
22
  exitOnHelpFlag
23
- } from "../chunk-J3JG5EKP.js";
23
+ } from "../chunk-AQLIBG2P.js";
24
24
  import {
25
25
  parseFlags
26
26
  } from "../chunk-BZIBNSQE.js";
27
27
  import {
28
28
  absoluteUrl
29
- } from "../chunk-L7BHOFTF.js";
29
+ } from "../chunk-3APYAOZF.js";
30
30
  import {
31
31
  pusharyFetch
32
- } from "../chunk-6NUEY2FT.js";
33
- import "../chunk-AYM7IBC5.js";
34
- import "../chunk-LXZ6APGN.js";
35
- import "../chunk-GBKMTVG6.js";
36
- import "../chunk-BWOQACK7.js";
37
- import "../chunk-AO5BRDKS.js";
32
+ } from "../chunk-T4GV5MOC.js";
33
+ import "../chunk-XSJON4TV.js";
34
+ import "../chunk-FY7WHRDJ.js";
35
+ import "../chunk-DP6YHOKF.js";
36
+ import "../chunk-2HOKEC2I.js";
37
+ import "../chunk-EBIPQ3ZE.js";
38
38
  import {
39
39
  getApiKey,
40
40
  getBaseUrl
41
- } from "../chunk-KZFNXNFH.js";
41
+ } from "../chunk-Y2H5TF7T.js";
42
42
  import {
43
43
  UsageError,
44
44
  exitCodeFor
@@ -47,9 +47,9 @@ import "../chunk-PM2NRK6Y.js";
47
47
  import {
48
48
  EXIT
49
49
  } from "../chunk-BG4HHB7E.js";
50
- import "../chunk-YUG7PCPJ.js";
50
+ import "../chunk-GAAPUS5J.js";
51
51
  import "../chunk-UQTQ6HPO.js";
52
- import "../chunk-3JU27SD5.js";
52
+ import "../chunk-HMMVGDL3.js";
53
53
  import "../chunk-MLKGABMK.js";
54
54
 
55
55
  // bin/pushary-wait.ts
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  installNetworkDefaults
4
- } from "../chunk-6NUEY2FT.js";
5
- import "../chunk-AYM7IBC5.js";
6
- import "../chunk-BWOQACK7.js";
7
- import "../chunk-AO5BRDKS.js";
8
- import "../chunk-KZFNXNFH.js";
4
+ } from "../chunk-T4GV5MOC.js";
5
+ import "../chunk-XSJON4TV.js";
6
+ import "../chunk-2HOKEC2I.js";
7
+ import "../chunk-EBIPQ3ZE.js";
8
+ import "../chunk-Y2H5TF7T.js";
9
9
  import "../chunk-CINBAX5G.js";
10
10
  import "../chunk-PM2NRK6Y.js";
11
11
  import {
@@ -15,11 +15,11 @@ import {
15
15
  LISTED_COMMANDS,
16
16
  renderHelp,
17
17
  resolveCommandName
18
- } from "../chunk-YUG7PCPJ.js";
18
+ } from "../chunk-GAAPUS5J.js";
19
19
  import {
20
20
  getPackageVersion
21
21
  } from "../chunk-UQTQ6HPO.js";
22
- import "../chunk-3JU27SD5.js";
22
+ import "../chunk-HMMVGDL3.js";
23
23
  import "../chunk-MLKGABMK.js";
24
24
 
25
25
  // src/cli/runtime.ts
@@ -10,11 +10,12 @@ import {
10
10
  uploadTranscriptRecords,
11
11
  verifyAnchoredRecipients,
12
12
  wrapSessionKey
13
- } from "./chunk-QUXD5OW3.js";
13
+ } from "./chunk-WB5DD232.js";
14
14
 
15
15
  // src/live-session.ts
16
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
17
17
  var LIVE_SESSION_HEARTBEAT_MS = 6e4;
18
+ var LIVE_SESSION_REQUEST_TIMEOUT_MS = 1e4;
18
19
  var liveSessionSleep = (ms, signal) => new Promise((resolve) => {
19
20
  if (signal.aborted) return resolve();
20
21
  const timer = setTimeout(done, ms);
@@ -30,7 +31,7 @@ var postLiveSession = (options, path, body) => {
30
31
  method: "POST",
31
32
  headers: { Authorization: `Bearer ${options.apiKey}`, "Content-Type": "application/json" },
32
33
  body: JSON.stringify(body),
33
- signal: AbortSignal.any([options.signal, AbortSignal.timeout(options.requestTimeoutMs ?? 1e4)])
34
+ signal: AbortSignal.any([options.signal, AbortSignal.timeout(options.requestTimeoutMs ?? LIVE_SESSION_REQUEST_TIMEOUT_MS)])
34
35
  });
35
36
  };
36
37
  var postLiveSessionUntilAccepted = async (options, path, body) => {
@@ -170,6 +171,7 @@ var LiveTranscriptRelay = class {
170
171
  };
171
172
 
172
173
  export {
174
+ LIVE_SESSION_REQUEST_TIMEOUT_MS,
173
175
  liveSessionSleep,
174
176
  postLiveSession,
175
177
  postLiveSessionUntilAccepted,
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-AO5BRDKS.js";
6
+ } from "./chunk-EBIPQ3ZE.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
@@ -22,7 +22,7 @@ import {
22
22
  PUSHARY_HOSTS,
23
23
  PUSHARY_TOOL_PREFIX,
24
24
  withHookHoldBudget
25
- } from "./chunk-3JU27SD5.js";
25
+ } from "./chunk-HMMVGDL3.js";
26
26
 
27
27
  // src/setup/paths.ts
28
28
  import { createHash as createHash2 } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-6NUEY2FT.js";
3
+ } from "./chunk-T4GV5MOC.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-KZFNXNFH.js";
6
+ } from "./chunk-Y2H5TF7T.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-3JU27SD5.js";
16
+ } from "./chunk-HMMVGDL3.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
@@ -26,7 +26,7 @@ import {
26
26
  reportableSessionId,
27
27
  toToolLookup,
28
28
  truncateLine
29
- } from "./chunk-3JU27SD5.js";
29
+ } from "./chunk-HMMVGDL3.js";
30
30
 
31
31
  // ../hook-mapping/src/commit-receipt.ts
32
32
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-BWOQACK7.js";
3
+ } from "./chunk-2HOKEC2I.js";
4
4
  import {
5
5
  readRegularJsonFile,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-3JU27SD5.js";
16
+ } from "./chunk-HMMVGDL3.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-FWYOB3LW.js";
9
+ } from "./chunk-WNCTMTMG.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -524,12 +524,11 @@ var ownService = async () => {
524
524
  };
525
525
 
526
526
  // src/opencode-runtime/question-forms.ts
527
- var isFormField = (value) => isRecord(value) && typeof value.key === "string";
528
527
  var formOf = (properties) => {
529
528
  const form = record(record(properties).form);
530
529
  const id = text(form.id);
531
530
  const sessionID = text(form.sessionID);
532
- if (!id || !sessionID || sessionID === OPENCODE_GLOBAL_FORM_OWNER || record(form.metadata).kind !== OPENCODE_QUESTION_FORM_KIND || !Array.isArray(form.fields) || !form.fields.every(isFormField))
531
+ if (!id || !sessionID || sessionID === OPENCODE_GLOBAL_FORM_OWNER || record(form.metadata).kind !== OPENCODE_QUESTION_FORM_KIND || !Array.isArray(form.fields))
533
532
  return null;
534
533
  return { id, sessionID, title: text(form.title), fields: form.fields };
535
534
  };
@@ -538,10 +537,11 @@ var v1OptionOf = (option) => {
538
537
  const label = text(value.label);
539
538
  return { value: label, label, description: text(value.description) };
540
539
  };
540
+ var v1FieldKey = (index) => "q" + index;
541
541
  var v1FieldOf = (question, index) => {
542
542
  const asked = record(question);
543
543
  return {
544
- key: "q" + index,
544
+ key: v1FieldKey(index),
545
545
  title: text(asked.header),
546
546
  description: text(asked.question),
547
547
  type: asked.multiple === true ? "multiselect" : "string",
@@ -557,7 +557,7 @@ var v1FormOf = (properties) => {
557
557
  };
558
558
  var settledQuestionID = (properties) => text(record(properties).requestID) ?? text(record(properties).id);
559
559
  var v1AnswerOf = (value) => value === void 0 ? [] : Array.isArray(value) ? value : [String(value)];
560
- var v1Answers = (form, answer) => form.fields.map((field) => v1AnswerOf(answer[field.key]));
560
+ var v1Answers = (form, answer) => form.fields.map((_field, index) => v1AnswerOf(answer[v1FieldKey(index)]));
561
561
 
562
562
  // src/opencode-runtime/question-channels.ts
563
563
  var succeeded = (response) => response?.ok === true;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-3JU27SD5.js";
3
+ } from "./chunk-HMMVGDL3.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-3JU27SD5.js";
3
+ } from "./chunk-HMMVGDL3.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -3,24 +3,24 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-LXHH33MX.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-PDVGAU7A.js";
13
+ } from "./chunk-OYZUPSD7.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-AYM7IBC5.js";
16
+ } from "./chunk-XSJON4TV.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeySource
20
- } from "./chunk-LXZ6APGN.js";
20
+ } from "./chunk-FY7WHRDJ.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-KZFNXNFH.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-Z7OTSKAT.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-IYY7KRNS.js";
26
+ } from "./chunk-KERLAXHG.js";
27
27
  import {
28
28
  retryAgentCommand
29
- } from "./chunk-HKL7HXFD.js";
29
+ } from "./chunk-P4JYK7WB.js";
30
30
  import {
31
31
  configFilePath
32
- } from "./chunk-KZFNXNFH.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-3JU27SD5.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-YMJCE2TD.js";
5
+ } from "./chunk-JXZQ4XFL.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-TKGCDWPF.js";
9
+ } from "./chunk-VNCN3Z4T.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-GUBY4KIU.js";
18
18
  import {
19
19
  reportMachineDenial
20
- } from "./chunk-LV575VQE.js";
20
+ } from "./chunk-7QUPTDT2.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-7K5AYNDY.js";
29
29
  import {
30
30
  isDeferAnswer,
31
31
  oncePerSession
32
- } from "./chunk-2ACPOE77.js";
32
+ } from "./chunk-UV5ROHY2.js";
33
33
  import {
34
34
  activeHookSource,
35
35
  activeIdentity,
36
36
  namedSource
37
- } from "./chunk-D35DKI3E.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-TBQT2TA6.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-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-OTJEIINV.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-XSJON4TV.js";
98
98
  import {
99
99
  POSTTOOLUSE_MIRRORED_TOOLS
100
- } from "./chunk-BWOQACK7.js";
100
+ } from "./chunk-2HOKEC2I.js";
101
101
  import {
102
102
  getApiKey,
103
103
  getBaseUrl
104
- } from "./chunk-KZFNXNFH.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-YUG7PCPJ.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-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";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-L7BHOFTF.js";
3
+ } from "./chunk-3APYAOZF.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";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-OLU5L3VB.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-BWOQACK7.js";
10
+ } from "./chunk-2HOKEC2I.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-AO5BRDKS.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-JLVVFGYN.js";
4
+ } from "./chunk-LWUDOZHE.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-SIT46O4V.js";
7
+ } from "./chunk-XONHTLMX.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-D35DKI3E.js";
10
+ } from "./chunk-ZCR5VTOC.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-2NHK4PUR.js";
13
+ } from "./chunk-OTJEIINV.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-3JU27SD5.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-BWOQACK7.js";
3
+ } from "./chunk-2HOKEC2I.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-AO5BRDKS.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-QJF5I7NR.js";
3
+ } from "./chunk-GR46QR45.js";
4
4
  import {
5
5
  matchMacAccountStep,
6
6
  retryAgentCommand
7
- } from "./chunk-HKL7HXFD.js";
7
+ } from "./chunk-P4JYK7WB.js";
8
8
  import {
9
9
  canChangeApprovalSettings
10
- } from "./chunk-WA5RGLKV.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-YUG7PCPJ.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-YUG7PCPJ.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-LXZ6APGN.js";
7
+ } from "./chunk-FY7WHRDJ.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-YUG7PCPJ.js";
10
+ } from "./chunk-GAAPUS5J.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {