@pushary/agent-hooks 1.9.145 → 1.9.148

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 (167) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +5 -4
  3. package/data/SKILL.md +3 -3
  4. package/data/cursor-plugin/scripts/redaction.mjs +2 -1
  5. package/data/cursor-plugin/skills/pushary/SKILL.md +2 -2
  6. package/data/openclaw-plugin/LICENSE +21 -0
  7. package/data/openclaw-plugin/README.md +113 -0
  8. package/data/openclaw-plugin/dist/api-key-shape.js +5 -0
  9. package/data/openclaw-plugin/dist/approval-hook.js +88 -0
  10. package/data/openclaw-plugin/dist/approval-question.js +66 -0
  11. package/data/openclaw-plugin/dist/connection.js +101 -0
  12. package/data/openclaw-plugin/dist/decision-reply.js +6 -0
  13. package/data/openclaw-plugin/dist/gate-result.js +58 -0
  14. package/data/openclaw-plugin/dist/gate.js +173 -0
  15. package/data/openclaw-plugin/dist/hook-budget.js +19 -0
  16. package/data/openclaw-plugin/dist/host-api.js +1 -0
  17. package/data/openclaw-plugin/dist/host-version.js +25 -0
  18. package/data/openclaw-plugin/dist/index.js +32 -0
  19. package/data/openclaw-plugin/dist/openclaw-paths.js +43 -0
  20. package/data/openclaw-plugin/dist/openclaw-write-guard.js +93 -0
  21. package/data/openclaw-plugin/dist/protected-writes.js +217 -0
  22. package/data/openclaw-plugin/dist/pushary-client.js +103 -0
  23. package/data/openclaw-plugin/dist/pushary-hosts.js +3 -0
  24. package/data/openclaw-plugin/dist/redaction.js +53 -0
  25. package/data/openclaw-plugin/dist/replies.js +65 -0
  26. package/data/openclaw-plugin/dist/settings.js +103 -0
  27. package/data/openclaw-plugin/openclaw.plugin.json +32 -0
  28. package/data/openclaw-plugin/package.json +70 -0
  29. package/data/vscode-plugin/scripts/redaction.mjs +2 -1
  30. package/data/vscode-plugin/skills/pushary/SKILL.md +2 -2
  31. package/dist/{api-KWJQMO6G.js → api-H7H75ARS.js} +11 -11
  32. package/dist/bin/pushary-audit.js +3 -3
  33. package/dist/bin/pushary-bell-hook.js +28 -28
  34. package/dist/bin/pushary-bell.js +11 -11
  35. package/dist/bin/pushary-claude.js +27 -27
  36. package/dist/bin/pushary-clean.js +76 -39
  37. package/dist/bin/pushary-codex-bridge.js +23 -23
  38. package/dist/bin/pushary-codex-hook.js +35 -35
  39. package/dist/bin/pushary-codex-session.js +8 -8
  40. package/dist/bin/pushary-codex.js +16 -16
  41. package/dist/bin/pushary-connect.js +78 -36
  42. package/dist/bin/pushary-cowork.js +5 -5
  43. package/dist/bin/pushary-daemon.js +44 -43
  44. package/dist/bin/pushary-disconnect.js +28 -28
  45. package/dist/bin/pushary-display-hook.js +96 -44
  46. package/dist/bin/pushary-doctor.js +124 -55
  47. package/dist/bin/pushary-elicitation-hook.js +28 -28
  48. package/dist/bin/pushary-gemini-bridge.js +17 -17
  49. package/dist/bin/pushary-gemini-hook.js +32 -32
  50. package/dist/bin/pushary-hook.js +35 -35
  51. package/dist/bin/pushary-login.js +22 -22
  52. package/dist/bin/pushary-logout.js +33 -31
  53. package/dist/bin/pushary-mcp.js +12 -12
  54. package/dist/bin/pushary-mode.js +16 -16
  55. package/dist/bin/pushary-notification-hook.js +27 -27
  56. package/dist/bin/pushary-opencode-hook.js +31 -31
  57. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  58. package/dist/bin/pushary-permission-hook.js +35 -35
  59. package/dist/bin/pushary-post-hook.js +28 -28
  60. package/dist/bin/pushary-prompt-hook.js +27 -27
  61. package/dist/bin/pushary-session-end-hook.js +27 -27
  62. package/dist/bin/pushary-session-start-hook.js +37 -36
  63. package/dist/bin/pushary-setup.js +144 -106
  64. package/dist/bin/pushary-stats.js +5 -5
  65. package/dist/bin/pushary-status.js +38 -36
  66. package/dist/bin/pushary-stop-hook.js +27 -27
  67. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  68. package/dist/bin/pushary-suggestions.js +16 -16
  69. package/dist/bin/pushary-transcript-register.js +17 -17
  70. package/dist/bin/pushary-transcripts.js +25 -25
  71. package/dist/bin/pushary-upgrade.js +42 -41
  72. package/dist/bin/pushary-wait.js +16 -16
  73. package/dist/bin/pushary.js +7 -7
  74. package/dist/{chunk-6IWOMXUF.js → chunk-2VPRLAKF.js} +4 -4
  75. package/dist/{chunk-GK5X2ZTN.js → chunk-3AAQJ75F.js} +5 -5
  76. package/dist/{chunk-YNCVSKUW.js → chunk-3OPXQK4D.js} +5 -5
  77. package/dist/{chunk-ZORBUQFG.js → chunk-3T7RA7WJ.js} +2 -2
  78. package/dist/{chunk-PXZTCR4M.js → chunk-3WD3BEPB.js} +2 -2
  79. package/dist/{chunk-VTJ4WZOC.js → chunk-43NHQUCY.js} +24 -3
  80. package/dist/{chunk-S7HGPKCL.js → chunk-4L2IYNLC.js} +1 -1
  81. package/dist/{chunk-KFALRZIN.js → chunk-5IG3VPHT.js} +4 -4
  82. package/dist/{chunk-S3A4PCRR.js → chunk-5ZIYTFPW.js} +10 -10
  83. package/dist/{chunk-A2H256WR.js → chunk-6HO36P3A.js} +1 -1
  84. package/dist/{chunk-FCSPMSDC.js → chunk-6RYJ3XCD.js} +200 -59
  85. package/dist/{chunk-PY6CM4NK.js → chunk-6YX3VB5P.js} +19 -12
  86. package/dist/{chunk-BYKRAYGD.js → chunk-A3URJPYH.js} +1 -1
  87. package/dist/{chunk-KS3PNTRT.js → chunk-ABTQG6XU.js} +1 -1
  88. package/dist/{chunk-72LP4RPC.js → chunk-AQ7L2E2U.js} +98 -47
  89. package/dist/{chunk-FNAH3YJC.js → chunk-B6RTPP3X.js} +16 -16
  90. package/dist/{chunk-K2SKUBYY.js → chunk-BP5HLKR6.js} +12 -12
  91. package/dist/{chunk-4L5WPDTB.js → chunk-BPKB7BI4.js} +1 -1
  92. package/dist/{chunk-YRJZF5RG.js → chunk-CABBLJD5.js} +3 -3
  93. package/dist/{chunk-ZBMVOMFG.js → chunk-CAHULQIO.js} +1 -1
  94. package/dist/chunk-CBIS7IYQ.js +157 -0
  95. package/dist/{chunk-LJRPWUST.js → chunk-CDQOARIF.js} +3 -3
  96. package/dist/{chunk-ZSOCJHL7.js → chunk-CIRTRWHM.js} +309 -5
  97. package/dist/{chunk-NTMKJRQ3.js → chunk-CMTDMZPV.js} +2 -2
  98. package/dist/{chunk-WOSO4YFQ.js → chunk-CU5SYUMK.js} +3 -6
  99. package/dist/{chunk-L4OGTRVW.js → chunk-D3QT4S7U.js} +4 -4
  100. package/dist/{chunk-YU5XE6VC.js → chunk-DHCJDYBT.js} +8 -7
  101. package/dist/{chunk-2LGDEPVL.js → chunk-DLPI45DF.js} +6 -6
  102. package/dist/{chunk-ZJZNT2G5.js → chunk-ENRL4WFD.js} +4 -4
  103. package/dist/{chunk-6UK4K5RS.js → chunk-FQLS37AX.js} +1 -1
  104. package/dist/{chunk-B4JQIH5M.js → chunk-H6FFNTSR.js} +7 -7
  105. package/dist/{chunk-JKWUF776.js → chunk-HEOBF5H6.js} +3 -3
  106. package/dist/{chunk-MNU5N3CQ.js → chunk-JSZ6LKX5.js} +23 -12
  107. package/dist/{chunk-RO6EVL5C.js → chunk-JUEQUYAT.js} +2 -2
  108. package/dist/{chunk-GURIOZE7.js → chunk-KP6ERYOA.js} +8 -8
  109. package/dist/{chunk-QKTF7WS6.js → chunk-KWJJYZ3T.js} +4 -4
  110. package/dist/{chunk-EPWOARGR.js → chunk-KXNAB76Z.js} +16 -5
  111. package/dist/chunk-LC53HRZ6.js +36 -0
  112. package/dist/{chunk-52UXNCZG.js → chunk-M7HJZ7HO.js} +3 -3
  113. package/dist/{chunk-WMBWKPKJ.js → chunk-MT4GBXLM.js} +10 -74
  114. package/dist/{chunk-WPBWJMBZ.js → chunk-MUSINFEU.js} +5 -5
  115. package/dist/{chunk-LD4R2P6N.js → chunk-NHZV2H63.js} +1 -1
  116. package/dist/{chunk-USFZJAB4.js → chunk-NLED3JGR.js} +1 -1
  117. package/dist/{chunk-DZIZ3XFL.js → chunk-NRPQUU3D.js} +2 -2
  118. package/dist/{chunk-LQXUWXQP.js → chunk-O5ARO3JM.js} +33 -10
  119. package/dist/chunk-OYIN77HO.js +72 -0
  120. package/dist/{chunk-TJXJGMSP.js → chunk-PH3MVQCQ.js} +21 -11
  121. package/dist/{chunk-2ELNRGNX.js → chunk-PUTX5BBE.js} +7 -4
  122. package/dist/{chunk-R34RWVN2.js → chunk-PVBDITRS.js} +14 -5
  123. package/dist/{chunk-33BYPZ52.js → chunk-Q7GZKNMH.js} +1 -1
  124. package/dist/{chunk-7LTP2GHO.js → chunk-QSZYHL7Z.js} +2 -2
  125. package/dist/{chunk-CUR2DCZN.js → chunk-QTQRQZIU.js} +4 -4
  126. package/dist/{chunk-SQL5YXUH.js → chunk-R2JRRCZK.js} +1 -1
  127. package/dist/{chunk-4KDRT3OA.js → chunk-RMBY7JGO.js} +1 -1
  128. package/dist/{chunk-KKPT7ROP.js → chunk-RWTH5RYA.js} +2 -2
  129. package/dist/chunk-RYDDLS62.js +176 -0
  130. package/dist/{chunk-Q6P7G4NY.js → chunk-S3MEI2D2.js} +17 -5
  131. package/dist/{chunk-HOQH5CLZ.js → chunk-T3CMGGNW.js} +1 -1
  132. package/dist/{chunk-IIN26HL7.js → chunk-T4PX3DRF.js} +1 -1
  133. package/dist/{chunk-6LZ7MXHD.js → chunk-TXXAQRX4.js} +7 -5
  134. package/dist/{chunk-YZA3YBHX.js → chunk-UAHBSOO4.js} +2 -2
  135. package/dist/{chunk-LMU6NG2G.js → chunk-UFGFO7QB.js} +1 -1
  136. package/dist/{chunk-TRV3ETGY.js → chunk-UJUGFLVF.js} +5 -5
  137. package/dist/{chunk-IRPIMQ7U.js → chunk-UL2NNDKD.js} +3 -3
  138. package/dist/{chunk-BWREST4F.js → chunk-VPADWVYD.js} +1 -1
  139. package/dist/{chunk-5TWW7ZUL.js → chunk-VPMSV35B.js} +5 -5
  140. package/dist/{chunk-G3VSMI7K.js → chunk-WQEJCDMR.js} +2 -2
  141. package/dist/{chunk-JZT2LPRM.js → chunk-WQJ5NJ35.js} +1 -1
  142. package/dist/{chunk-63WX5KZN.js → chunk-X4OEGFOG.js} +3 -3
  143. package/dist/{chunk-RWLNTZK5.js → chunk-X4OQ5UMH.js} +5 -5
  144. package/dist/{chunk-MOC2DN42.js → chunk-XSBW6TUH.js} +2 -2
  145. package/dist/{chunk-WH4ODOCE.js → chunk-XZGQZDFP.js} +6 -6
  146. package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
  147. package/dist/{chunk-WUT3PO33.js → chunk-YOP7LFHW.js} +8 -8
  148. package/dist/{chunk-KGFB2LEB.js → chunk-YTD7RV6F.js} +3 -3
  149. package/dist/{chunk-IDLOJIIS.js → chunk-YWSIN7IH.js} +1 -1
  150. package/dist/{chunk-MKHVLDMN.js → chunk-ZCB5SCYM.js} +2 -2
  151. package/dist/{chunk-OONMKLUF.js → chunk-ZOATPL53.js} +4 -4
  152. package/dist/{chunk-Y7INHH5G.js → chunk-ZX2O66NS.js} +3 -3
  153. package/dist/{codex-app-cards-switch-F7WQ7Y3I.js → codex-app-cards-switch-BCM547E6.js} +11 -11
  154. package/dist/{codex-card-routing-EVL5L36G.js → codex-card-routing-222EKZJR.js} +2 -2
  155. package/dist/{codex-desktop-launch-PL6Z2ELZ.js → codex-desktop-launch-6AFOLMZ7.js} +1 -1
  156. package/dist/{codex-session-launch-7NQEAUDU.js → codex-session-launch-4YJR4ZGN.js} +20 -20
  157. package/dist/{config-KFFD4VWH.js → config-GWNPGS47.js} +3 -3
  158. package/dist/{global-upgrade-L3CY6EFF.js → global-upgrade-VRF6OSSU.js} +9 -9
  159. package/dist/{identity-DPYYIMHL.js → identity-PQIM7R2N.js} +4 -4
  160. package/dist/{live-capabilities-QJEXK6GH.js → live-capabilities-G3LMKZUB.js} +4 -4
  161. package/dist/{paths-PEF6C64P.js → paths-TFGIP5PU.js} +7 -3
  162. package/dist/{reapply-7APCQRRK.js → reapply-3IRAI6JF.js} +30 -29
  163. package/dist/src/index.js +34 -34
  164. package/dist/{upgrade-lock-A7OKXMRW.js → upgrade-lock-2G7ANYYO.js} +6 -4
  165. package/dist/{usage-HSS33762.js → usage-K3EGYCSU.js} +3 -3
  166. package/package.json +1 -1
  167. package/dist/chunk-D3UFDCTQ.js +0 -87
@@ -1,13 +1,15 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-ZORBUQFG.js";
3
+ } from "./chunk-3T7RA7WJ.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
7
7
  installHermesPlugin,
8
+ openClawFilesNow,
8
9
  refreshHermesPluginFiles,
10
+ refreshOpenClawPlugin,
9
11
  shippedHermesPlugin
10
- } from "./chunk-ZSOCJHL7.js";
12
+ } from "./chunk-CIRTRWHM.js";
11
13
  import {
12
14
  fxIgnoresInstructionsFile,
13
15
  fxInstructionsBody,
@@ -16,7 +18,7 @@ import {
16
18
  macAppFxBridge,
17
19
  refreshClineKey,
18
20
  switchFxHttpEntryToBridge
19
- } from "./chunk-YNCVSKUW.js";
21
+ } from "./chunk-3OPXQK4D.js";
20
22
  import {
21
23
  OPENCODE_HOOK_BINARY,
22
24
  agentHookOwner,
@@ -28,16 +30,16 @@ import {
28
30
  openCodePluginDir,
29
31
  openCodeWired,
30
32
  withOpenCodeAskRules
31
- } from "./chunk-GK5X2ZTN.js";
33
+ } from "./chunk-3AAQJ75F.js";
32
34
  import {
33
35
  detectClaudeVersion
34
- } from "./chunk-DZIZ3XFL.js";
36
+ } from "./chunk-NRPQUU3D.js";
35
37
  import {
36
38
  addCompatibleHooks,
37
39
  compatibleConfigFile,
38
40
  compatibleInstructionsFile,
39
41
  hasCompatibleHooks
40
- } from "./chunk-R34RWVN2.js";
42
+ } from "./chunk-PVBDITRS.js";
41
43
  import {
42
44
  GEMINI_HOOK_BINARY,
43
45
  addGeminiHooks,
@@ -49,10 +51,10 @@ import {
49
51
  geminiWired,
50
52
  hasGeminiHooks,
51
53
  planHooks
52
- } from "./chunk-CUR2DCZN.js";
54
+ } from "./chunk-QTQRQZIU.js";
53
55
  import {
54
56
  KEY_FILE_MODE
55
- } from "./chunk-WOSO4YFQ.js";
57
+ } from "./chunk-CU5SYUMK.js";
56
58
  import {
57
59
  CLAUDE_HOOK_BINARY,
58
60
  CLAUDE_HOOK_EVENTS,
@@ -99,13 +101,13 @@ import {
99
101
  renderAgentInstructions,
100
102
  supportedClaudeEvents,
101
103
  vscodePluginMcp
102
- } from "./chunk-72LP4RPC.js";
104
+ } from "./chunk-AQ7L2E2U.js";
103
105
  import {
104
106
  formatVersion,
105
107
  hookCommandsUseBareNames,
106
108
  resolveGlobalBinDir,
107
109
  resolveGlobalBinary
108
- } from "./chunk-VTJ4WZOC.js";
110
+ } from "./chunk-43NHQUCY.js";
109
111
  import {
110
112
  readJsonSafe,
111
113
  writeFileAtomic,
@@ -115,7 +117,7 @@ import {
115
117
  HOOK_COMPATIBLE_PROFILES,
116
118
  isCompatibleAgentType,
117
119
  isRecord
118
- } from "./chunk-LQXUWXQP.js";
120
+ } from "./chunk-O5ARO3JM.js";
119
121
 
120
122
  // src/reapply.ts
121
123
  import { dirname, join } from "path";
@@ -470,7 +472,8 @@ var SETUP_CHOICE_BY_REAPPLY_ID = {
470
472
  opencode: "opencode",
471
473
  fx: "fx",
472
474
  cline: "cline",
473
- hermes: "hermes"
475
+ hermes: "hermes",
476
+ openclaw: "openclaw"
474
477
  };
475
478
  var setupChoiceOf = (id) => isCompatibleAgentType(id) ? id : SETUP_CHOICE_BY_REAPPLY_ID[id];
476
479
  var reapplyHookOwner = (id, appAvailable) => agentHookOwner(setupChoiceOf(id), appAvailable);
@@ -498,6 +501,13 @@ var reapplyHermesPlugin = async () => {
498
501
  }
499
502
  return HERMES_REFRESH_RESULTS[refreshHermesPluginFiles("cli", plugin)];
500
503
  };
504
+ var OPENCLAW_REFRESH_RESULTS = {
505
+ refreshed: { configured: true, reapplied: true, hooks: false, mcp: false, pluginFiles: true },
506
+ current: { configured: true, reapplied: false, hooks: false, mcp: false },
507
+ not_set_up: { configured: false, reapplied: false, hooks: false, mcp: false },
508
+ failed: FAILED_REAPPLY
509
+ };
510
+ var reapplyOpenClawPlugin = async () => OPENCLAW_REFRESH_RESULTS[await refreshOpenClawPlugin({ files: openClawFilesNow() })];
501
511
  var noInstructionBlock = () => null;
502
512
  var reapplyAllAgents = async (apiKey, options = {}) => {
503
513
  const appAvailable = (options.appAvailable ?? macAppBridgeAvailable)();
@@ -526,6 +536,7 @@ var reapplyAllAgents = async (apiKey, options = {}) => {
526
536
  { id: "fx", label: "fx", run: () => reapplyFxWiring(apiKey), instructions: fxInstructionTarget },
527
537
  { id: "cline", label: CLINE_LABEL, run: () => reapplyClineSettings(apiKey), instructions: clineInstructionTarget },
528
538
  { id: "hermes", label: "Hermes", run: reapplyHermesPlugin, instructions: noInstructionBlock },
539
+ { id: "openclaw", label: "OpenClaw", run: reapplyOpenClawPlugin, instructions: noInstructionBlock },
529
540
  ...HOOK_COMPATIBLE_PROFILES.map((profile) => ({
530
541
  id: profile.agentType,
531
542
  label: profile.label,
@@ -9,13 +9,13 @@ import {
9
9
  installedCodexApp,
10
10
  readCodexAppRuntime,
11
11
  shellQuoted
12
- } from "./chunk-KGFB2LEB.js";
12
+ } from "./chunk-YTD7RV6F.js";
13
13
  import {
14
14
  writeHuman
15
15
  } from "./chunk-QCGNGEGE.js";
16
16
  import {
17
17
  xml
18
- } from "./chunk-WH4ODOCE.js";
18
+ } from "./chunk-XZGQZDFP.js";
19
19
  import {
20
20
  writeFileAtomic
21
21
  } from "./chunk-TODDEIYG.js";
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-NTMKJRQ3.js";
3
+ } from "./chunk-CMTDMZPV.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-KKPT7ROP.js";
7
+ } from "./chunk-RWTH5RYA.js";
8
8
  import {
9
9
  OPENCODE_HOOK_BINARY,
10
10
  openCodeConfigDir,
11
11
  openCodePluginArgv,
12
12
  openCodePluginFile
13
- } from "./chunk-GK5X2ZTN.js";
13
+ } from "./chunk-3AAQJ75F.js";
14
14
  import {
15
15
  liveCursorGateCoverage
16
- } from "./chunk-L4OGTRVW.js";
16
+ } from "./chunk-D3QT4S7U.js";
17
17
  import {
18
18
  compatibleConfigFile,
19
19
  compatibleHookEvents,
20
20
  grokHome,
21
21
  parseConfigDocument
22
- } from "./chunk-R34RWVN2.js";
22
+ } from "./chunk-PVBDITRS.js";
23
23
  import {
24
24
  DEFAULT_HOOKS_KEY_PATH,
25
25
  GEMINI_HOOK_BINARY,
26
26
  GEMINI_HOOK_EVENTS,
27
27
  hooksAt
28
- } from "./chunk-CUR2DCZN.js";
28
+ } from "./chunk-QTQRQZIU.js";
29
29
  import {
30
30
  CODEX_EARLIER_APPROVAL_MATCHERS,
31
31
  CODEX_HOOK_BINARY,
@@ -53,7 +53,7 @@ import {
53
53
  parseHookArgv,
54
54
  parseHookCommand,
55
55
  supportedClaudeEvents
56
- } from "./chunk-72LP4RPC.js";
56
+ } from "./chunk-AQ7L2E2U.js";
57
57
  import {
58
58
  readRegularJsonFile,
59
59
  readRegularTextFile
@@ -67,7 +67,7 @@ import {
67
67
  OPENCODE_APPROVAL_EVENT,
68
68
  isRecord,
69
69
  matcherMatchesEveryCall
70
- } from "./chunk-LQXUWXQP.js";
70
+ } from "./chunk-O5ARO3JM.js";
71
71
 
72
72
  // src/hook-wiring.ts
73
73
  import { createHash } from "crypto";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-ZORBUQFG.js";
3
+ } from "./chunk-3T7RA7WJ.js";
4
4
  import {
5
5
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
6
6
  HERMES_COMMAND_ALLOWLIST_KEY,
7
7
  HERMES_GATE_TOOLS_KEY,
8
8
  HERMES_SHELL_TOOL
9
- } from "./chunk-ZSOCJHL7.js";
9
+ } from "./chunk-CIRTRWHM.js";
10
10
  import {
11
11
  retryAgentCommand
12
- } from "./chunk-2ELNRGNX.js";
12
+ } from "./chunk-PUTX5BBE.js";
13
13
  import {
14
14
  NPX_LATEST_COMMAND
15
- } from "./chunk-6LZ7MXHD.js";
15
+ } from "./chunk-TXXAQRX4.js";
16
16
 
17
17
  // src/setup/codex-trust.ts
18
18
  var CODEX_TRUST_TELEMETRY = {
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-72LP4RPC.js";
3
+ } from "./chunk-AQ7L2E2U.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
+ npmExitedBeforeInstalling,
7
8
  npmExitedOnPermissionDenied
8
- } from "./chunk-VTJ4WZOC.js";
9
+ } from "./chunk-43NHQUCY.js";
9
10
  import {
10
11
  writeJsonAtomic
11
12
  } from "./chunk-TODDEIYG.js";
@@ -13,7 +14,7 @@ import {
13
14
  // src/upgrade-lock.ts
14
15
  import { fork } from "child_process";
15
16
  import { createHash } from "crypto";
16
- import { existsSync, mkdirSync, readFileSync, realpathSync, unlinkSync } from "fs";
17
+ import { existsSync, mkdirSync, readFileSync, realpathSync, statSync, unlinkSync } from "fs";
17
18
  import { createServer, Server } from "net";
18
19
  import { basename, dirname, join } from "path";
19
20
  var LOCK_HOST = "127.0.0.1";
@@ -26,6 +27,15 @@ var HANDOFF_TIMEOUT_MS = 1e4;
26
27
  var FINISH_TIMEOUT_MS = 5 * 60 * 1e3;
27
28
  var KERNEL_LOCK_FORMAT = "kernel-v1";
28
29
  var heldLocks = /* @__PURE__ */ new Map();
30
+ var PENDING_INSTALL_STALE_AFTER_MS = 15 * 6e4;
31
+ var lockRecordAgeMs = (path, nowMs) => {
32
+ try {
33
+ return nowMs - statSync(path).mtimeMs;
34
+ } catch {
35
+ return null;
36
+ }
37
+ };
38
+ var pendingInstallWasAbandoned = (holderPid, ageMs, isAlive) => holderPid !== void 0 && ageMs !== null && ageMs > PENDING_INSTALL_STALE_AFTER_MS && !isAlive(holderPid);
29
39
  var canonicalLockPath = (path) => {
30
40
  mkdirSync(dirname(path), { recursive: true });
31
41
  return join(realpathSync(dirname(path)), basename(path));
@@ -98,7 +108,7 @@ var claimUpgradeLock = async (request = {}) => {
98
108
  listener.listen({ host: LOCK_HOST, port: lockPort(path), exclusive: true }, resolve);
99
109
  });
100
110
  const record = readLockRecord(path);
101
- if (record.installationPending) {
111
+ if (record.installationPending && !pendingInstallWasAbandoned(record.pid, lockRecordAgeMs(path, (request.now ?? Date.now)()), request.isAlive ?? isProcessAlive)) {
102
112
  server.close();
103
113
  return { kind: "unavailable", reason: `An earlier installation did not finish safely. Stop its npm processes (or restart the computer), then remove ${path} and retry the upgrade.` };
104
114
  }
@@ -170,13 +180,14 @@ var installWithUpgradeLock = (request, lockPath = autoUpdateLock(), runNpm) => {
170
180
  try {
171
181
  installPackageGlobally(request, runNpm);
172
182
  } catch (error) {
173
- if (npmExitedOnPermissionDenied(error, process.platform)) writeSettledLockRecord(path);
183
+ if (npmExitedOnPermissionDenied(error, process.platform) || npmExitedBeforeInstalling(error)) writeSettledLockRecord(path);
174
184
  throw error;
175
185
  }
176
186
  writeSettledLockRecord(path);
177
187
  };
178
188
 
179
189
  export {
190
+ PENDING_INSTALL_STALE_AFTER_MS,
180
191
  claimUpgradeLock,
181
192
  ownsUpgradeLock,
182
193
  releaseAutoUpdateLock,
@@ -0,0 +1,36 @@
1
+ import {
2
+ computerOsOfPlatform,
3
+ isComputerAgent
4
+ } from "./chunk-O5ARO3JM.js";
5
+
6
+ // src/setup/phone-check.ts
7
+ var planPhoneCheck = (context) => {
8
+ if (context.locked) return "locked";
9
+ if (context.skipPhone) return "skip-phone";
10
+ if (context.verify === "none") return "verify-none";
11
+ if (context.paired) return "confirm-pairing";
12
+ if (!context.stdoutIsTty) return "instructions";
13
+ if (context.connectMode === "app") return context.interactive && !context.macAppInstalled ? "wait-for-app" : "reuse-app";
14
+ return "connect";
15
+ };
16
+ var instructionsChannelFor = (mode) => mode === "browser" || mode === "web" ? "browser" : "app";
17
+ var planPairCommand = (context) => {
18
+ if (context.mode === "browser") return context.stdoutIsTty ? "browser-qr" : "browser-instructions";
19
+ return context.canShowQr ? "pair-app" : "check-phone";
20
+ };
21
+
22
+ // src/setup/pairing-computer.ts
23
+ var LOCAL_NETWORK_SUFFIX = /\.local$/i;
24
+ var computerNameOfHost = (host) => host.replace(LOCAL_NETWORK_SUFFIX, "").trim() || null;
25
+ var pairingComputerOf = (host, platform, detectedAgents) => ({
26
+ computerName: computerNameOfHost(host),
27
+ os: computerOsOfPlatform(platform),
28
+ agents: detectedAgents.filter(isComputerAgent)
29
+ });
30
+
31
+ export {
32
+ planPhoneCheck,
33
+ instructionsChannelFor,
34
+ planPairCommand,
35
+ pairingComputerOf
36
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-WPBWJMBZ.js";
3
+ } from "./chunk-MUSINFEU.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-S7HGPKCL.js";
6
+ } from "./chunk-4L2IYNLC.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-6LZ7MXHD.js";
9
+ } from "./chunk-TXXAQRX4.js";
10
10
 
11
11
  // src/mcp-stdio-bridge.ts
12
12
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -1,12 +1,17 @@
1
+ import {
2
+ describeRevokeAttempt,
3
+ keyNoLongerAccepted,
4
+ revokeOwnKey
5
+ } from "./chunk-OYIN77HO.js";
1
6
  import {
2
7
  readMacAppAgentKey
3
- } from "./chunk-KFALRZIN.js";
8
+ } from "./chunk-5IG3VPHT.js";
4
9
  import {
5
10
  API_KEYS_PATH
6
- } from "./chunk-YZA3YBHX.js";
11
+ } from "./chunk-UAHBSOO4.js";
7
12
  import {
8
13
  absoluteUrl
9
- } from "./chunk-YRJZF5RG.js";
14
+ } from "./chunk-CABBLJD5.js";
10
15
  import {
11
16
  findExportedKeyLines,
12
17
  isAdoptedMacAppKey,
@@ -16,76 +21,10 @@ import {
16
21
  readConfigFileKey,
17
22
  readKeySource,
18
23
  readMacAppKeyPrefix
19
- } from "./chunk-WOSO4YFQ.js";
24
+ } from "./chunk-CU5SYUMK.js";
20
25
  import {
21
26
  isValidApiKey
22
- } from "./chunk-LQXUWXQP.js";
23
-
24
- // src/key-revocation.ts
25
- var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
26
- var DEVICE_KEY_PATH = "/api/agent/device-key";
27
- var FULL_ACCESS_ONLY_STATUS = 403;
28
- var REVOKE_TIMEOUT_MS = 1e4;
29
- var readRevokedCount = async (response) => {
30
- try {
31
- const body = await response.json();
32
- const revoked = typeof body === "object" && body !== null && "revoked" in body ? body.revoked : void 0;
33
- return typeof revoked === "number" && Number.isInteger(revoked) && revoked >= 0 ? revoked : null;
34
- } catch {
35
- return null;
36
- }
37
- };
38
- var revokeAgentKey = async (apiKey, baseUrl, fetchImpl) => {
39
- const response = await fetchImpl(`${baseUrl}${DEVICE_KEY_PATH}`, {
40
- method: "DELETE",
41
- headers: { Authorization: `Bearer ${apiKey}` },
42
- signal: AbortSignal.timeout(REVOKE_TIMEOUT_MS)
43
- });
44
- if (!response.ok) return { kind: "refused", status: response.status };
45
- const revoked = await readRevokedCount(response);
46
- if (revoked === null) return { kind: "unconfirmed", status: response.status };
47
- return revoked > 0 ? { kind: "revoked" } : { kind: "not_accepted" };
48
- };
49
- var revokeOwnKey = async (apiKey, baseUrl, fetchImpl = fetch) => {
50
- try {
51
- const response = await fetchImpl(`${baseUrl}${SELF_REVOKE_PATH}`, {
52
- method: "POST",
53
- headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
54
- signal: AbortSignal.timeout(REVOKE_TIMEOUT_MS)
55
- });
56
- if (response.status === 401) return { kind: "not_accepted" };
57
- if (response.status === FULL_ACCESS_ONLY_STATUS) return await revokeAgentKey(apiKey, baseUrl, fetchImpl);
58
- if (!response.ok) return { kind: "refused", status: response.status };
59
- return { kind: "revoked" };
60
- } catch (err) {
61
- return { kind: "unreachable", detail: err instanceof Error ? err.message : "network error" };
62
- }
63
- };
64
- var REVOKE_DETAIL = {
65
- revoked: "Revoked the key on pushary.com.",
66
- not_accepted: "pushary.com had already stopped accepting the key.",
67
- refused: "pushary.com refused to revoke the key",
68
- unconfirmed: "pushary.com did not confirm the key was revoked",
69
- unreachable: "Could not reach pushary.com to revoke the key"
70
- };
71
- var describeRevokeAttempt = (attempt) => {
72
- if (attempt.kind === "refused" || attempt.kind === "unconfirmed") return `${REVOKE_DETAIL[attempt.kind]} (HTTP ${attempt.status}).`;
73
- if (attempt.kind === "unreachable") return `${REVOKE_DETAIL.unreachable}: ${attempt.detail}`;
74
- return REVOKE_DETAIL[attempt.kind];
75
- };
76
- var keyNoLongerAccepted = (attempt) => attempt.kind === "revoked" || attempt.kind === "not_accepted";
77
- var keyValidityOf = (check) => {
78
- switch (check.kind) {
79
- case "ok":
80
- case "locked":
81
- return "valid";
82
- case "rejected":
83
- case "malformed":
84
- return "invalid";
85
- case "unreachable":
86
- return "unknown";
87
- }
88
- };
27
+ } from "./chunk-O5ARO3JM.js";
89
28
 
90
29
  // src/cli/held-key-revocation.ts
91
30
  var readCliHeldKeys = (profiles) => {
@@ -154,9 +93,6 @@ var describeCliKeyRevocation = (outcome, run) => {
154
93
  };
155
94
 
156
95
  export {
157
- revokeOwnKey,
158
- keyNoLongerAccepted,
159
- keyValidityOf,
160
96
  readCliHeldKeys,
161
97
  planCliKeyRevocations,
162
98
  keysToRevoke,
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  keyCheckFromResponse
3
- } from "./chunk-YRJZF5RG.js";
3
+ } from "./chunk-CABBLJD5.js";
4
4
  import {
5
5
  installNetworkDefaults
6
- } from "./chunk-LJRPWUST.js";
6
+ } from "./chunk-CDQOARIF.js";
7
7
  import {
8
8
  fetchAsCredential
9
- } from "./chunk-S7HGPKCL.js";
9
+ } from "./chunk-4L2IYNLC.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-BWREST4F.js";
12
+ } from "./chunk-VPADWVYD.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-LQXUWXQP.js";
17
+ } from "./chunk-O5ARO3JM.js";
18
18
 
19
19
  // src/retry.ts
20
20
  var isRetryable = (err) => {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-BG4HHB7E.js";
8
8
  import {
9
9
  redactSecretsFromContent
10
- } from "./chunk-LQXUWXQP.js";
10
+ } from "./chunk-O5ARO3JM.js";
11
11
 
12
12
  // src/cli/json.ts
13
13
  var writeStdoutFully = (text) => new Promise((resolve, reject) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-K2SKUBYY.js";
3
+ } from "./chunk-BP5HLKR6.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-CYTPQDQY.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-VTJ4WZOC.js";
6
+ } from "./chunk-43NHQUCY.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-LQXUWXQP.js";
9
+ } from "./chunk-O5ARO3JM.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -5,6 +5,7 @@ var DISPLAYED_CREDENTIAL_KEY = String.raw`${CREDENTIAL_NAME}(?:[ \t]*:[ \t]*|[ \
5
5
  var SHELL_INERT_UNIT = String.raw`(?:[A-Za-z0-9_\-./+=:@%^!#]|\\[^\s'"])`;
6
6
  var SHELL_INERT_SINGLE_QUOTED_UNIT = String.raw`[A-Za-z0-9_\-./+=:@%^!#\\]`;
7
7
  var SHELL_INERT_URL_PASSWORD_UNIT = String.raw`(?:[A-Za-z0-9_\-.+=:%^!#]|\\[^\s'"@/])`;
8
+ var AUTHORIZATION_SCHEME = String.raw`(?:basic|digest|token|negotiate|ntlm)`;
8
9
  var PEM_LINE_BREAK = String.raw`(?:\r?\n|(?:\\r)?\\n)`;
9
10
  var credentialAssignmentRule = (key, doubleQuoted, singleQuoted, bare) => ({
10
11
  pattern: new RegExp(String.raw`(${key})(?:(")${doubleQuoted}|(')${singleQuoted}|(["']?)${bare})`, "gi"),
@@ -51,7 +52,7 @@ var secretRedactionRules = (shapes) => [
51
52
  { pattern: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/g, replacement: "[redacted]" },
52
53
  { pattern: new RegExp(String.raw`\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, "gi"), replacement: "$1[redacted]@" },
53
54
  { pattern: new RegExp(String.raw`\bbearer${shapes.separator}+[A-Za-z0-9._~+/=-]+`, "gi"), replacement: "bearer [redacted]" },
54
- { pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}*${shapes.authorizationValue}`, "gi"), replacement: "authorization: [redacted]" },
55
+ { pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}*(?:${AUTHORIZATION_SCHEME}${shapes.separator}+)?${shapes.authorizationValue}`, "gi"), replacement: "authorization: [redacted]" },
55
56
  shapes.credentialAssignment
56
57
  ];
57
58
  var SECRET_REDACTION_RULES = secretRedactionRules(DISPLAYED_SECRET_SHAPES);
@@ -362,6 +363,15 @@ var AGENTS = {
362
363
  enforcementDetail: "Hermes dangerous-command approvals when the Pushary transport is selected; optional PUSHARY_GATE_TOOLS gates named tools.",
363
364
  capabilityNote: "Uses the Pushary plugin in ~/.hermes/plugins/pushary, not a macOS bridge HookSource. CLI disconnect and managed-provider controls are not implemented for Hermes."
364
365
  },
366
+ openclaw: {
367
+ ...defaults,
368
+ label: "OpenClaw",
369
+ enforcement: "enforced",
370
+ connectVia: "Plugin installed by the CLI + before_tool_call hook",
371
+ setupCommand: PUSHARY_SETUP_COMMAND,
372
+ enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
373
+ capabilityNote: "Setup writes the Pushary plugin it carries to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install; it is not a macOS bridge HookSource. Pushary's tool rules are not evaluated on the machine, so every gated call asks. Phone calls are held until a live call test passes. CLI disconnect and managed-provider controls are not implemented for OpenClaw."
374
+ },
365
375
  cursor: {
366
376
  ...defaults,
367
377
  keepsSessionHistory: true,
@@ -1072,6 +1082,12 @@ var compatibleTargetFiles = (profile) => {
1072
1082
  return [...seen.values()];
1073
1083
  };
1074
1084
 
1085
+ // ../contracts/src/decision-reply.ts
1086
+ var APPROVE_ANSWER = "yes";
1087
+ var STOP_HANDOFF_ACTION = "stop";
1088
+ var DECISION_STOP_STATUSES = ["cancelled", "unavailable", "stopped", "missing"];
1089
+ var isDecisionStoppedReply = (reply) => reply.handoffAction === STOP_HANDOFF_ACTION || typeof reply.status === "string" && DECISION_STOP_STATUSES.includes(reply.status);
1090
+
1075
1091
  // ../contracts/src/cursor.ts
1076
1092
  var CURSOR_GATE_EVENTS = ["beforeShellExecution", "beforeMCPExecution", "preToolUse"];
1077
1093
  var CURSOR_GATE_SCRIPT = "pushary-gate.mjs";
@@ -1106,6 +1122,12 @@ var toolsCoveredByGateEntry = (coverage, matcher) => {
1106
1122
  var toolMatches = (match, toolName) => match.kind === "named" ? match.tools.includes(toolName) : toolName.startsWith(match.prefix);
1107
1123
  var cursorGateOwnsToolCall = (registration, toolName) => typeof toolName === "string" && registration.some((match) => toolMatches(match, toolName));
1108
1124
 
1125
+ // ../contracts/src/api-key-shape.ts
1126
+ var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
1127
+ var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
1128
+ var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
1129
+ var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
1130
+
1109
1131
  // ../contracts/src/audit-chain.ts
1110
1132
  var AUDIT_CHAIN_FORMAT = "pushary-audit-chain-v1";
1111
1133
  var AUDIT_CHAIN_GENESIS_HASH = "0".repeat(64);
@@ -3563,6 +3585,9 @@ var degradedPayload = (subsystem, report) => ({
3563
3585
  });
3564
3586
  var degradedLine = (subsystem, report) => `${DEGRADED_PREFIX} ${JSON.stringify(degradedPayload(subsystem, report))}`;
3565
3587
 
3588
+ // ../contracts/src/pushary-hosts.ts
3589
+ var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
3590
+
3566
3591
  // ../contracts/src/key-scope.ts
3567
3592
  var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
3568
3593
  var KEY_SCOPE = {
@@ -3683,6 +3708,7 @@ var SETUP_AGENT_CHOICES = [
3683
3708
  "codex",
3684
3709
  "gemini_cli",
3685
3710
  "hermes",
3711
+ "openclaw",
3686
3712
  "cursor",
3687
3713
  "vscode",
3688
3714
  "opencode",
@@ -3705,10 +3731,10 @@ var SETUP_AGENT_FAILURE_KINDS = [
3705
3731
  "app-account-mismatch"
3706
3732
  ];
3707
3733
  var isSetupAgentFailureKind = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_KINDS.includes(value);
3708
- var SETUP_AGENT_FAILURE_CODES = ["npm-missing", "npm-global-prefix-denied", "npm-file-in-use", "npm-install-failed", "config-write-failed"];
3734
+ var SETUP_AGENT_FAILURE_CODES = ["npm-missing", "npm-global-prefix-denied", "npm-file-in-use", "npm-release-age", "npm-install-failed", "config-write-failed"];
3709
3735
  var SETUP_AGENT_FAILURE_STAGES = ["runtime-install", "config-read", "config-write", "hook-validation", "account-check", "unknown"];
3710
3736
  var isSetupAgentFailureStage = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_STAGES.includes(value);
3711
- var SETUP_AGENT_FAILURE_REMEDIES = ["retry-agent", "install-node", "fix-npm-prefix", "close-node-programs", "match-mac-account"];
3737
+ var SETUP_AGENT_FAILURE_REMEDIES = ["retry-agent", "install-node", "fix-npm-prefix", "close-node-programs", "use-npm-policy", "match-mac-account"];
3712
3738
  var isSetupAgentFailureCode = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_CODES.includes(value);
3713
3739
  var isSetupAgentFailureRemedy = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_REMEDIES.includes(value);
3714
3740
  var isSetupAgentFailure = (value) => {
@@ -8505,10 +8531,6 @@ var textNeedsAPersonFor = (toolNamesADatabase) => (field, text3) => textNamesAWe
8505
8531
  var mcpToolInputOnlyReads = (toolName, toolInput) => !toolInputTooLargeToRead(toolInput) && !anyToolInputText(toolInput, UNNAMED_TOOL_INPUT_FIELD, 0, textNeedsAPersonFor(mcpToolNamesADatabase(toolName)));
8506
8532
  var allowsSessionToolGrant = (toolName) => SESSION_TOOL_GRANT_TOOLS.has(toolName) || mcpToolOnlyReads(toolName);
8507
8533
  var isSessionToolGrant = (policy) => Boolean(policy.sessionId) && allowsSessionToolGrant(policy.tool) && isAutoApprove(policy);
8508
- var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
8509
- var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
8510
- var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
8511
- var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
8512
8534
  var ACTION_BODY_MAX = 4e3;
8513
8535
  var DECISION_LINE_MAX = 500;
8514
8536
  var ASK_QUESTION_MAX = 8e3;
@@ -8730,7 +8752,6 @@ var SETTLED_OUTCOME = {
8730
8752
  deny: "deny"
8731
8753
  };
8732
8754
  var isSettledOutcome = (value) => typeof value === "string" && SETTLED_OUTCOMES.includes(value);
8733
- var APPROVE_ANSWER = "yes";
8734
8755
  var DENY_ANSWER = "no";
8735
8756
  var DEFER_ANSWER = "defer";
8736
8757
  var PHONE_DENIAL_PREFIX = "Denied from your phone: ";
@@ -10162,6 +10183,7 @@ export {
10162
10183
  hookCompatibleProfile,
10163
10184
  hookCompatibleProfileBySource,
10164
10185
  compatibleTargetFiles,
10186
+ isDecisionStoppedReply,
10165
10187
  CURSOR_GATE_EVENTS,
10166
10188
  CURSOR_GATE_SCRIPT,
10167
10189
  CURSOR_GATE_COVERAGE,
@@ -10174,6 +10196,9 @@ export {
10174
10196
  PENDING_COMMAND_PREFIX,
10175
10197
  pendingCommandInstruction,
10176
10198
  degradedLine,
10199
+ API_KEY_PREFIX_PATTERN,
10200
+ isValidApiKey,
10201
+ PUSHARY_HOSTS,
10177
10202
  KEY_SCOPE,
10178
10203
  normalizeKeyScope,
10179
10204
  hookWritePath,
@@ -10274,8 +10299,6 @@ export {
10274
10299
  FILE_TARGET_TOOLS,
10275
10300
  MCP_TOOL_PREFIX,
10276
10301
  parseMcpToolName,
10277
- API_KEY_PREFIX_PATTERN,
10278
- isValidApiKey,
10279
10302
  ACTION_BODY_MAX,
10280
10303
  DECISION_LINE_MAX,
10281
10304
  ASK_QUESTION_MAX,