@pushary/agent-hooks 1.9.144 → 1.9.147

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 +24 -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-ZV7TT25P.js → api-2KDVLXHT.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 +103 -44
  46. package/dist/bin/pushary-doctor.js +139 -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 +209 -89
  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-LUVSHGLH.js → chunk-2EETRVCZ.js} +1 -1
  75. package/dist/{chunk-YESBU4VQ.js → chunk-2G54YLN3.js} +3 -3
  76. package/dist/{chunk-WGOTBZ23.js → chunk-2I6A34GJ.js} +15 -5
  77. package/dist/{chunk-WGT5LCIB.js → chunk-2QY2BD4T.js} +5 -5
  78. package/dist/{chunk-HGIW56MU.js → chunk-2RAIG6NF.js} +2 -2
  79. package/dist/{chunk-QLGLUUOP.js → chunk-2YNAQ5TX.js} +1 -1
  80. package/dist/{chunk-44WPMZGQ.js → chunk-37ZBJB2Q.js} +5 -5
  81. package/dist/{chunk-4EBJ4PTZ.js → chunk-3NMX4725.js} +1 -1
  82. package/dist/{chunk-E32SRYTE.js → chunk-3TTXOU6G.js} +3 -3
  83. package/dist/{chunk-GV3FDGQH.js → chunk-4P3ML7HP.js} +200 -59
  84. package/dist/{chunk-22CXL7YI.js → chunk-526XSNMS.js} +3 -3
  85. package/dist/{chunk-B4VIT5N3.js → chunk-57GVGSOQ.js} +1 -1
  86. package/dist/{chunk-6LALK6GI.js → chunk-5II3USXS.js} +2 -2
  87. package/dist/{chunk-WWCM6UL7.js → chunk-5K65H6OO.js} +1 -1
  88. package/dist/{chunk-56HFENZK.js → chunk-6C5QRJIH.js} +5 -5
  89. package/dist/{chunk-EOKUIOMT.js → chunk-6EPTMB7L.js} +4 -4
  90. package/dist/{chunk-C5LIS3XM.js → chunk-6JBX55K4.js} +38 -8
  91. package/dist/{chunk-23CGCD5L.js → chunk-6YVGY2ZX.js} +7 -7
  92. package/dist/{chunk-WC25Z4XS.js → chunk-72S6PF2I.js} +2 -2
  93. package/dist/{chunk-YY5YVMBA.js → chunk-7P32YU2M.js} +10 -74
  94. package/dist/{chunk-WTBFPSTR.js → chunk-7TVSWGAV.js} +8 -6
  95. package/dist/{chunk-S7WVJ6AR.js → chunk-7WDEJTNX.js} +4 -4
  96. package/dist/{chunk-AJQ4TTPJ.js → chunk-7XIJD7NL.js} +3 -3
  97. package/dist/{chunk-PYT4WXXR.js → chunk-A5MSVNFS.js} +10 -10
  98. package/dist/{chunk-FC2ENROR.js → chunk-ANLR5G2W.js} +4 -4
  99. package/dist/{chunk-7VMVMC4H.js → chunk-BEDAQAEN.js} +1 -1
  100. package/dist/{chunk-4JTZZXB3.js → chunk-BHGSNYG5.js} +3 -3
  101. package/dist/{chunk-5I3UQEAX.js → chunk-BU2J4P7P.js} +3 -3
  102. package/dist/{chunk-EMODTMHE.js → chunk-BYVLAPCF.js} +1 -1
  103. package/dist/{chunk-5BTAIFVV.js → chunk-CSNG5NQR.js} +1 -1
  104. package/dist/{chunk-7QWH257P.js → chunk-D7ZWJYXB.js} +1 -1
  105. package/dist/{chunk-AGUL2JDK.js → chunk-ELRZO6A7.js} +3 -3
  106. package/dist/{chunk-Z2WQD2W6.js → chunk-EV54ZQ5J.js} +4 -4
  107. package/dist/{chunk-5TZYAMGW.js → chunk-FHBJJOMF.js} +1 -1
  108. package/dist/{chunk-74QCFZKV.js → chunk-FKGWP4MF.js} +8 -7
  109. package/dist/{chunk-MCI6KYN7.js → chunk-FMAIUTVU.js} +3 -3
  110. package/dist/{chunk-WTULK73V.js → chunk-FWCECQTY.js} +2 -2
  111. package/dist/{chunk-ZVJIJPQY.js → chunk-GGCUXNZN.js} +1 -1
  112. package/dist/{chunk-VP4T5352.js → chunk-GIWI5IHB.js} +6 -6
  113. package/dist/{chunk-RPXSGCRG.js → chunk-GJV5RVUU.js} +98 -47
  114. package/dist/chunk-GPAMD5JG.js +157 -0
  115. package/dist/{chunk-ZGYGKKXF.js → chunk-I72UU75H.js} +16 -16
  116. package/dist/{chunk-CV4EIXPV.js → chunk-ISM6XF3V.js} +494 -15
  117. package/dist/{chunk-HNFYZPNJ.js → chunk-ISOP4ENY.js} +17 -5
  118. package/dist/{chunk-R7FSMUHG.js → chunk-JDIKCM2N.js} +6 -5
  119. package/dist/{chunk-BHNX7XNO.js → chunk-KDJIDRJS.js} +3 -3
  120. package/dist/{chunk-DDJHPMBJ.js → chunk-KFL7OWLI.js} +1 -1
  121. package/dist/{chunk-5AXDNDUJ.js → chunk-KH27X5CW.js} +2 -2
  122. package/dist/{chunk-BHKODM4L.js → chunk-KXMIDDUN.js} +2 -2
  123. package/dist/{chunk-3KRGT5AZ.js → chunk-L2M6D2N4.js} +67 -4
  124. package/dist/{chunk-KEBI7NYU.js → chunk-L6BTSIKF.js} +4 -4
  125. package/dist/{chunk-YFK3MJGZ.js → chunk-LO52V6WG.js} +2 -2
  126. package/dist/{chunk-LVOHE66T.js → chunk-MI7GHNTO.js} +5 -5
  127. package/dist/{chunk-4524ZR2U.js → chunk-MYJJNLT2.js} +2 -2
  128. package/dist/{chunk-CZOMD2IW.js → chunk-NAGF5ZJ2.js} +8 -8
  129. package/dist/{chunk-53KLGXFL.js → chunk-NMUEUDTT.js} +4 -3
  130. package/dist/{chunk-C6SKS6IU.js → chunk-OSYULPJO.js} +23 -12
  131. package/dist/{chunk-F37YD4YE.js → chunk-OXDKZYBO.js} +1 -1
  132. package/dist/chunk-OYIN77HO.js +72 -0
  133. package/dist/{chunk-XLMJEEW3.js → chunk-P6W2V2AP.js} +2 -2
  134. package/dist/{chunk-ZKKZEVNI.js → chunk-Q3JW44JV.js} +2 -2
  135. package/dist/{chunk-EY5CVFDL.js → chunk-Q6POCQOV.js} +12 -12
  136. package/dist/{chunk-P5QXH5QI.js → chunk-Q767Y4LY.js} +1 -1
  137. package/dist/{chunk-UK5DKLZY.js → chunk-QGKFDSEO.js} +8 -8
  138. package/dist/{chunk-YD376BLV.js → chunk-RZGR4G5G.js} +5 -5
  139. package/dist/{chunk-OZG6CGYW.js → chunk-RZJHCHEA.js} +6 -6
  140. package/dist/{chunk-H33CFJOF.js → chunk-T274HRSR.js} +4 -4
  141. package/dist/chunk-T2CR5REM.js +176 -0
  142. package/dist/{chunk-QESEICW4.js → chunk-T3TVMMXJ.js} +1 -1
  143. package/dist/{chunk-44BLJJPH.js → chunk-TZ7CBPCD.js} +2 -2
  144. package/dist/{chunk-YCU7Y77H.js → chunk-UGPNLU4O.js} +1 -1
  145. package/dist/{chunk-BE5LO5VW.js → chunk-UR55VBLY.js} +2 -2
  146. package/dist/{chunk-EC7VHNHE.js → chunk-WLKW2TF7.js} +19 -12
  147. package/dist/{chunk-CWWO3JTD.js → chunk-WNV3X2VU.js} +3 -3
  148. package/dist/{chunk-HIIXYZYV.js → chunk-XQOBM3E6.js} +3 -3
  149. package/dist/{chunk-JK7DTAQH.js → chunk-YICO6HEW.js} +5 -5
  150. package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
  151. package/dist/chunk-YOVJOHM5.js +36 -0
  152. package/dist/{chunk-LS6BU5RM.js → chunk-ZKAQWXGO.js} +1 -1
  153. package/dist/{codex-app-cards-switch-5PWB62W3.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
  154. package/dist/{codex-card-routing-I6YOJBTT.js → codex-card-routing-JTS75442.js} +2 -2
  155. package/dist/{codex-desktop-launch-BCPUKOCV.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
  156. package/dist/{codex-session-launch-4ZUBROFZ.js → codex-session-launch-QYZZGVSQ.js} +20 -20
  157. package/dist/{config-2CHOLFNB.js → config-5ATI6KPI.js} +3 -3
  158. package/dist/{global-upgrade-4IKWJHLE.js → global-upgrade-K4HWVUMI.js} +9 -9
  159. package/dist/{identity-I2VWLZAQ.js → identity-V2GZCPJV.js} +4 -4
  160. package/dist/{live-capabilities-4CLCROSP.js → live-capabilities-PD62FO4K.js} +4 -4
  161. package/dist/{paths-YMHQKLFX.js → paths-WPJEIHUE.js} +7 -3
  162. package/dist/{reapply-FBQ7VR6L.js → reapply-ZEWMGDXT.js} +30 -29
  163. package/dist/src/index.js +34 -34
  164. package/dist/{upgrade-lock-7ONNXM6V.js → upgrade-lock-7OR6V323.js} +4 -4
  165. package/dist/{usage-GWUTCS5A.js → usage-GWZ3UGZG.js} +3 -3
  166. package/package.json +1 -1
  167. package/dist/chunk-I6HXZIER.js +0 -31
@@ -2,16 +2,16 @@ import {
2
2
  NpmInstallError,
3
3
  NpmMissingError,
4
4
  NpmPermissionError
5
- } from "./chunk-5I3UQEAX.js";
5
+ } from "./chunk-BU2J4P7P.js";
6
6
  import {
7
7
  writeFileAtomic
8
8
  } from "./chunk-TODDEIYG.js";
9
9
  import {
10
10
  NPX_LATEST_COMMAND
11
- } from "./chunk-R7FSMUHG.js";
11
+ } from "./chunk-JDIKCM2N.js";
12
12
  import {
13
13
  readSetupAgentFailures
14
- } from "./chunk-C5LIS3XM.js";
14
+ } from "./chunk-6JBX55K4.js";
15
15
 
16
16
  // src/setup/config-write.ts
17
17
  var AgentConfigWriteError = class extends Error {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-RPXSGCRG.js";
3
+ } from "./chunk-GJV5RVUU.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  npmExitedOnPermissionDenied
8
- } from "./chunk-5I3UQEAX.js";
8
+ } from "./chunk-BU2J4P7P.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-TODDEIYG.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-C5LIS3XM.js";
3
+ } from "./chunk-6JBX55K4.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-H6CL3T2S.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-5BTAIFVV.js";
7
+ } from "./chunk-CSNG5NQR.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-HIIXYZYV.js";
10
+ } from "./chunk-XQOBM3E6.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-RPXSGCRG.js";
13
+ } from "./chunk-GJV5RVUU.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-5I3UQEAX.js";
16
+ } from "./chunk-BU2J4P7P.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-4EBJ4PTZ.js";
19
+ } from "./chunk-3NMX4725.js";
20
20
  import {
21
21
  readJsonSafe,
22
22
  writeFileAtomic,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-WIIMW5YO.js";
33
33
  import {
34
34
  isRecord
35
- } from "./chunk-C5LIS3XM.js";
35
+ } from "./chunk-6JBX55K4.js";
36
36
 
37
37
  // src/daemon-entry-guard.ts
38
38
  import { mkdirSync, readFileSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-5I3UQEAX.js";
6
+ } from "./chunk-BU2J4P7P.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-TODDEIYG.js";
@@ -18,9 +18,10 @@ import {
18
18
  HOOK_BUDGETS,
19
19
  HOOK_LOCATOR_BINARY,
20
20
  PRETOOLUSE_GATED_TOOLS,
21
+ PUSHARY_HOSTS,
21
22
  PUSHARY_TOOL_PREFIX,
22
23
  withHookHoldBudget
23
- } from "./chunk-C5LIS3XM.js";
24
+ } from "./chunk-6JBX55K4.js";
24
25
 
25
26
  // src/setup/paths.ts
26
27
  import { createHash as createHash2 } from "crypto";
@@ -33,7 +34,7 @@ var claudeUserConfigFile = (home = homedir(), environment = { CLAUDE_CONFIG_DIR:
33
34
 
34
35
  // src/setup/paths.ts
35
36
  import { homedir as homedir4 } from "os";
36
- import { join as join6 } from "path";
37
+ import { join as join7 } from "path";
37
38
 
38
39
  // src/codex-config.ts
39
40
  import { createHash } from "crypto";
@@ -883,7 +884,7 @@ var addPusharyToolPermissions = (settings) => {
883
884
  permissions.allow = filtered;
884
885
  };
885
886
  var addPusharyHooks = (settings, binDir, version = null) => {
886
- const resolve2 = (name) => guardBinary(binDir ? join4(binDir, name) : name);
887
+ const resolve3 = (name) => guardBinary(binDir ? join4(binDir, name) : name);
887
888
  const hooks = ensureRecord2(settings, "hooks");
888
889
  const supported = new Map(supportedClaudeEvents(version).map((hook) => [hook.event, hook]));
889
890
  for (const known of CLAUDE_HOOK_EVENTS) {
@@ -891,7 +892,7 @@ var addPusharyHooks = (settings, binDir, version = null) => {
891
892
  const oursButUnjudged = version === null && current.some((item) => isPusharyHook(item));
892
893
  const definition = supported.get(known.event) ?? (oursButUnjudged ? known : void 0);
893
894
  if (definition) {
894
- hooks[known.event] = registerHookEntry(current, isPusharyHook, entry(definition, resolve2));
895
+ hooks[known.event] = registerHookEntry(current, isPusharyHook, entry(definition, resolve3));
895
896
  continue;
896
897
  }
897
898
  const others = current.filter((item) => !isPusharyHook(item));
@@ -904,14 +905,14 @@ var addPusharyHooks = (settings, binDir, version = null) => {
904
905
  for (const extra of CLAUDE_EXTRA_PRETOOLUSE_HOOKS) {
905
906
  if (!supported.has(extra.event)) continue;
906
907
  const current = Array.isArray(hooks[extra.event]) ? hooks[extra.event] : [];
907
- hooks[extra.event] = [...current, entry(extra, resolve2)];
908
+ hooks[extra.event] = [...current, entry(extra, resolve3)];
908
909
  }
909
910
  };
910
- var entry = (definition, resolve2) => ({
911
+ var entry = (definition, resolve3) => ({
911
912
  ...definition.matcher ? { matcher: definition.matcher } : {},
912
913
  hooks: [{
913
914
  type: "command",
914
- command: withHookHoldBudget(resolve2(definition.binary), holdBudgetOf(definition)),
915
+ command: withHookHoldBudget(resolve3(definition.binary), holdBudgetOf(definition)),
915
916
  timeout: definition.timeout
916
917
  }]
917
918
  });
@@ -1069,7 +1070,7 @@ var hasInstructionBlock = (filePath) => {
1069
1070
  };
1070
1071
 
1071
1072
  // src/pushary-mcp-url.ts
1072
- var PUSHARY_MCP_HOSTS = /* @__PURE__ */ new Set(["pushary.com", "www.pushary.com"]);
1073
+ var PUSHARY_MCP_HOSTS = new Set(PUSHARY_HOSTS);
1073
1074
  var PUSHARY_MCP_PATH_PREFIX = "/api/mcp";
1074
1075
  var isPusharyMcpPath = (pathname) => pathname === PUSHARY_MCP_PATH_PREFIX || pathname.startsWith(`${PUSHARY_MCP_PATH_PREFIX}/`);
1075
1076
  var PUSHARY_FULL_ACCESS_MCP_PATHS = /* @__PURE__ */ new Set(["/api/mcp/mcp", "/api/mcp/sse"]);
@@ -1228,46 +1229,90 @@ var clineInstructionsBody = () => `${renderAgentInstructions(CLINE_LABEL)}
1228
1229
 
1229
1230
  ${CLINE_TOOL_NOTE}`;
1230
1231
 
1232
+ // src/openclaw/openclaw-paths.ts
1233
+ import { join as join6, resolve as resolve2 } from "path";
1234
+ var OPENCLAW_ENVIRONMENT_KEYS = ["OPENCLAW_HOME", "OPENCLAW_STATE_DIR", "OPENCLAW_CONFIG_PATH", "OPENCLAW_PROFILE"];
1235
+ var STATE_DIRECTORY_NAME = ".openclaw";
1236
+ var PUSHARY_DIRECTORY_NAME = ".pushary";
1237
+ var OWNED_PLUGIN_FOLDER_NAME = "openclaw-plugin";
1238
+ var CONFIG_FILE_NAME = "openclaw.json";
1239
+ var ENVIRONMENT_FILE_NAME = ".env";
1240
+ var UNSET_SPELLINGS = /* @__PURE__ */ new Set(["undefined", "null"]);
1241
+ var HOME_PREFIX = /^~(?=$|[\\/])/;
1242
+ var setValue = (value) => {
1243
+ const trimmed = value?.trim();
1244
+ return trimmed && !UNSET_SPELLINGS.has(trimmed) ? trimmed : void 0;
1245
+ };
1246
+ var expandedFrom = (path, home) => resolve2(path.replace(HOME_PREFIX, () => home));
1247
+ var homeOf = (environment, osHome) => {
1248
+ const configured = setValue(environment.OPENCLAW_HOME);
1249
+ if (configured === void 0) return resolve2(osHome);
1250
+ return HOME_PREFIX.test(configured) ? expandedFrom(configured, osHome) : resolve2(configured);
1251
+ };
1252
+ var pathSetting = (value, home) => {
1253
+ const configured = value?.trim();
1254
+ if (!configured) return void 0;
1255
+ return HOME_PREFIX.test(configured) ? expandedFrom(configured, home) : resolve2(configured);
1256
+ };
1257
+ var openClawPathsFrom = (environment, osHome) => {
1258
+ const home = homeOf(environment, osHome);
1259
+ const stateDirectory = pathSetting(environment.OPENCLAW_STATE_DIR, home) ?? join6(home, STATE_DIRECTORY_NAME);
1260
+ return {
1261
+ home,
1262
+ stateDirectory,
1263
+ configFile: pathSetting(environment.OPENCLAW_CONFIG_PATH, home) ?? join6(stateDirectory, CONFIG_FILE_NAME),
1264
+ environmentFile: join6(stateDirectory, ENVIRONMENT_FILE_NAME)
1265
+ };
1266
+ };
1267
+ var openClawDirectoriesToLookIn = (paths) => [.../* @__PURE__ */ new Set([paths.stateDirectory, paths.configFile, join6(paths.home, STATE_DIRECTORY_NAME)])];
1268
+ var openClawEnvironmentOf = (environment) => Object.fromEntries(OPENCLAW_ENVIRONMENT_KEYS.flatMap((key) => {
1269
+ const value = environment[key];
1270
+ return value === void 0 ? [] : [[key, value]];
1271
+ }));
1272
+ var ownedPluginFolderIn = (osHome) => join6(osHome, PUSHARY_DIRECTORY_NAME, OWNED_PLUGIN_FOLDER_NAME);
1273
+
1231
1274
  // src/setup/paths.ts
1232
- var claudeSettings = (environment = process.env) => join6(claudeConfigDir(homedir4(), environment), "settings.json");
1275
+ var claudeSettings = (environment = process.env) => join7(claudeConfigDir(homedir4(), environment), "settings.json");
1233
1276
  var claudeJson = (environment = process.env) => claudeUserConfigFile(homedir4(), environment);
1234
- var claudeSkillDir = (environment = process.env) => join6(claudeConfigDir(homedir4(), environment), "skills", "pushary");
1235
- var cursorPluginDir = () => join6(homedir4(), ".cursor", "plugins", "local", "pushary");
1236
- var cursorUserHooks = () => join6(homedir4(), ".cursor", "hooks.json");
1237
- var cursorPluginMcp = () => join6(cursorPluginDir(), "mcp.json");
1238
- var cursorPluginManifest = () => join6(cursorPluginDir(), ".cursor-plugin", "plugin.json");
1239
- var cursorPluginRule = () => join6(cursorPluginDir(), "rules", "pushary.mdc");
1240
- var cursorUserMcp = () => join6(homedir4(), ".cursor", "mcp.json");
1241
- var vscodePluginDir = () => join6(homedir4(), ".pushary", "plugins", "vscode");
1242
- var vscodePluginMcp = () => join6(vscodePluginDir(), ".mcp.json");
1243
- var claudeSettingsLocal = () => join6(claudeConfigDir(), "settings.local.json");
1244
- var pusharyDir = () => join6(homedir4(), ".pushary");
1245
- var bridgeStub = () => join6(pusharyDir(), "bin", HOOK_LOCATOR_BINARY);
1246
- var bridgeCache = () => join6(pusharyDir(), "bin", BRIDGE_CACHE_FILE);
1247
- var claudeSetupDir = () => process.env.CLAUDE_CONFIG_DIR ? join6(pusharyDir(), "setup", "claude-profiles", createHash2("sha256").update(claudeUserConfigFile()).digest("hex").slice(0, 32)) : join6(pusharyDir(), "setup");
1248
- var claudeMcpReceipt = () => join6(claudeSetupDir(), "claude-mcp.json");
1249
- var bridgeAgentKey = () => join6(pusharyDir(), "bridge-auth", "agent-key.json");
1250
- var autoUpdateState = () => join6(pusharyDir(), "auto-update.json");
1251
- var autoUpdateLock = () => join6(pusharyDir(), "auto-update.lock");
1252
- var serviceOwedBackMark = () => join6(pusharyDir(), "service-owed-back");
1253
- var autoUpdateLog = () => join6(pusharyDir(), "logs", "auto-update.log");
1254
- var clientReportClaims = () => join6(pusharyDir(), "client-reports");
1255
- var claudeRegistrationReceipt = () => join6(claudeSetupDir(), "claude-registration.json");
1256
- var hermesConfig = () => join6(homedir4(), ".hermes", "config.yaml");
1257
- var hermesConfigReceipt = () => join6(pusharyDir(), "setup", "hermes-config.json");
1258
- var hermesSetupReceipt = () => join6(pusharyDir(), "setup", "hermes-plugin.json");
1259
- var hermesAppWiringRecord = () => join6(pusharyDir(), "setup", "hermes-wired-by-mac-app");
1260
- var fxQuestionRuleReceipt = () => join6(pusharyDir(), "setup", "fx-question-rule.json");
1261
- var hookTakeoverReceipt = (agent) => join6(agent === "claude_code" ? claudeSetupDir() : join6(pusharyDir(), "setup"), `hook-takeover-${agent}.json`);
1262
- var codexSkillDir2 = () => join6(codexHome(), "skills", "pushary");
1263
- var codexAgentsMd2 = () => join6(codexHome(), "AGENTS.md");
1264
- var geminiSettings = () => join6(homedir4(), ".gemini", "settings.json");
1265
- var geminiMd = () => join6(homedir4(), ".gemini", "GEMINI.md");
1266
- var pusharyConfigFile = () => join6(homedir4(), ".pushary", "config.json");
1267
- var fxConfigDir = () => join6(homedir4(), ".fx");
1268
- var fxMcpProfile = () => join6(fxConfigDir(), "mcp.json");
1269
- var fxSettings = () => join6(fxConfigDir(), "settings.json");
1270
- var fxAgentsMd = () => join6(fxConfigDir(), "AGENTS.md");
1277
+ var claudeSkillDir = (environment = process.env) => join7(claudeConfigDir(homedir4(), environment), "skills", "pushary");
1278
+ var cursorPluginDir = () => join7(homedir4(), ".cursor", "plugins", "local", "pushary");
1279
+ var cursorUserHooks = () => join7(homedir4(), ".cursor", "hooks.json");
1280
+ var cursorPluginMcp = () => join7(cursorPluginDir(), "mcp.json");
1281
+ var cursorPluginManifest = () => join7(cursorPluginDir(), ".cursor-plugin", "plugin.json");
1282
+ var cursorPluginRule = () => join7(cursorPluginDir(), "rules", "pushary.mdc");
1283
+ var cursorUserMcp = () => join7(homedir4(), ".cursor", "mcp.json");
1284
+ var vscodePluginDir = () => join7(homedir4(), ".pushary", "plugins", "vscode");
1285
+ var vscodePluginMcp = () => join7(vscodePluginDir(), ".mcp.json");
1286
+ var claudeSettingsLocal = () => join7(claudeConfigDir(), "settings.local.json");
1287
+ var pusharyDir = () => join7(homedir4(), ".pushary");
1288
+ var bridgeStub = () => join7(pusharyDir(), "bin", HOOK_LOCATOR_BINARY);
1289
+ var bridgeCache = () => join7(pusharyDir(), "bin", BRIDGE_CACHE_FILE);
1290
+ var claudeSetupDir = () => process.env.CLAUDE_CONFIG_DIR ? join7(pusharyDir(), "setup", "claude-profiles", createHash2("sha256").update(claudeUserConfigFile()).digest("hex").slice(0, 32)) : join7(pusharyDir(), "setup");
1291
+ var claudeMcpReceipt = () => join7(claudeSetupDir(), "claude-mcp.json");
1292
+ var bridgeAgentKey = () => join7(pusharyDir(), "bridge-auth", "agent-key.json");
1293
+ var autoUpdateState = () => join7(pusharyDir(), "auto-update.json");
1294
+ var autoUpdateLock = () => join7(pusharyDir(), "auto-update.lock");
1295
+ var serviceOwedBackMark = () => join7(pusharyDir(), "service-owed-back");
1296
+ var autoUpdateLog = () => join7(pusharyDir(), "logs", "auto-update.log");
1297
+ var clientReportClaims = () => join7(pusharyDir(), "client-reports");
1298
+ var claudeRegistrationReceipt = () => join7(claudeSetupDir(), "claude-registration.json");
1299
+ var hermesConfig = () => join7(homedir4(), ".hermes", "config.yaml");
1300
+ var hermesConfigReceipt = () => join7(pusharyDir(), "setup", "hermes-config.json");
1301
+ var hermesSetupReceipt = () => join7(pusharyDir(), "setup", "hermes-plugin.json");
1302
+ var openClawSetupReceiptDirectory = () => join7(pusharyDir(), "setup", "openclaw");
1303
+ var openClawPluginFolder = () => ownedPluginFolderIn(homedir4());
1304
+ var hermesAppWiringRecord = () => join7(pusharyDir(), "setup", "hermes-wired-by-mac-app");
1305
+ var fxQuestionRuleReceipt = () => join7(pusharyDir(), "setup", "fx-question-rule.json");
1306
+ var hookTakeoverReceipt = (agent) => join7(agent === "claude_code" ? claudeSetupDir() : join7(pusharyDir(), "setup"), `hook-takeover-${agent}.json`);
1307
+ var codexSkillDir2 = () => join7(codexHome(), "skills", "pushary");
1308
+ var codexAgentsMd2 = () => join7(codexHome(), "AGENTS.md");
1309
+ var geminiSettings = () => join7(homedir4(), ".gemini", "settings.json");
1310
+ var geminiMd = () => join7(homedir4(), ".gemini", "GEMINI.md");
1311
+ var pusharyConfigFile = () => join7(homedir4(), ".pushary", "config.json");
1312
+ var fxConfigDir = () => join7(homedir4(), ".fx");
1313
+ var fxMcpProfile = () => join7(fxConfigDir(), "mcp.json");
1314
+ var fxSettings = () => join7(fxConfigDir(), "settings.json");
1315
+ var fxAgentsMd = () => join7(fxConfigDir(), "AGENTS.md");
1271
1316
  var clineLocation = () => ({ home: homedir4(), environment: process.env });
1272
1317
  var clineMcpSettings = () => clineMcpSettingsPath(clineLocation());
1273
1318
  var clineRules = () => clineRulesFile(clineLocation());
@@ -1390,6 +1435,10 @@ export {
1390
1435
  otherPusharyServerNames,
1391
1436
  clineSettingsText,
1392
1437
  clineInstructionsBody,
1438
+ OPENCLAW_ENVIRONMENT_KEYS,
1439
+ openClawPathsFrom,
1440
+ openClawDirectoriesToLookIn,
1441
+ openClawEnvironmentOf,
1393
1442
  claudeSettings,
1394
1443
  claudeJson,
1395
1444
  claudeSkillDir,
@@ -1416,6 +1465,8 @@ export {
1416
1465
  hermesConfig,
1417
1466
  hermesConfigReceipt,
1418
1467
  hermesSetupReceipt,
1468
+ openClawSetupReceiptDirectory,
1469
+ openClawPluginFolder,
1419
1470
  hermesAppWiringRecord,
1420
1471
  fxQuestionRuleReceipt,
1421
1472
  hookTakeoverReceipt,
@@ -0,0 +1,157 @@
1
+ import {
2
+ HERMES_APPROVAL_TRANSPORT_KEY,
3
+ HERMES_COMMAND_ALLOWLIST_KEY,
4
+ HERMES_DOCKER_MOUNT_CWD_KEY,
5
+ HERMES_DOCKER_VOLUMES_KEY,
6
+ HERMES_GATE_TOOLS_KEY,
7
+ HERMES_TERMINAL_ENV_KEY,
8
+ HERMES_TERMINAL_SECTION,
9
+ gateToolsWithShell,
10
+ gatesHermesShell,
11
+ hermesAlwaysAllowsShell,
12
+ hermesApprovalCoverage,
13
+ hermesGateToolsFrom,
14
+ hermesShellGateState,
15
+ readHermesSetting,
16
+ readSetupReceipt,
17
+ receiptWithSnapshot,
18
+ settingSnapshot,
19
+ writeHermesSetting,
20
+ writeSetupReceipt
21
+ } from "./chunk-ISM6XF3V.js";
22
+ import {
23
+ OPENCLAW_MIN_VERSION,
24
+ OPENCLAW_PLUGIN_ID,
25
+ OPENCLAW_PLUGIN_PACKAGE
26
+ } from "./chunk-T2CR5REM.js";
27
+ import {
28
+ retryAgentCommand
29
+ } from "./chunk-FMAIUTVU.js";
30
+ import {
31
+ configFilePath
32
+ } from "./chunk-3NMX4725.js";
33
+ import {
34
+ readJsonSafe,
35
+ writeJsonAtomic
36
+ } from "./chunk-TODDEIYG.js";
37
+ import {
38
+ readSetupOutcomeProperties
39
+ } from "./chunk-6JBX55K4.js";
40
+
41
+ // src/hermes/shell-gate.ts
42
+ var readHermesShellGate = async (launcher) => {
43
+ const [terminal, terminalEnv, dockerVolumes, dockerMountCwd, gateReading, allowlist, transport] = await Promise.all([
44
+ readHermesSetting(launcher, HERMES_TERMINAL_SECTION),
45
+ readHermesSetting(launcher, HERMES_TERMINAL_ENV_KEY),
46
+ readHermesSetting(launcher, HERMES_DOCKER_VOLUMES_KEY),
47
+ readHermesSetting(launcher, HERMES_DOCKER_MOUNT_CWD_KEY),
48
+ readHermesSetting(launcher, HERMES_GATE_TOOLS_KEY),
49
+ readHermesSetting(launcher, HERMES_COMMAND_ALLOWLIST_KEY),
50
+ readHermesSetting(launcher, HERMES_APPROVAL_TRANSPORT_KEY)
51
+ ]);
52
+ return hermesShellGateState({
53
+ coverage: hermesApprovalCoverage({ terminal, terminalEnv, dockerVolumes, dockerMountCwd }),
54
+ gate: hermesGateToolsFrom(gateReading),
55
+ alwaysAllowed: hermesAlwaysAllowsShell({ allowlist, transport })
56
+ });
57
+ };
58
+ var RECEIPT_FAILURES = {
59
+ missing: "receipt_missing",
60
+ invalid: "receipt_invalid"
61
+ };
62
+ var gateHermesShell = async (request) => {
63
+ const stored = readSetupReceipt(request.receipts);
64
+ if (stored.kind !== "ok") return { kind: "failed", reason: RECEIPT_FAILURES[stored.kind] };
65
+ const reading = await readHermesSetting(request.launcher, HERMES_GATE_TOOLS_KEY);
66
+ const gate = hermesGateToolsFrom(reading);
67
+ if (gatesHermesShell(gate)) return { kind: "already_gated" };
68
+ const value = gateToolsWithShell(gate);
69
+ if (reading === null || value === null) return { kind: "failed", reason: "setting_unreadable" };
70
+ writeSetupReceipt(request.receipts, receiptWithSnapshot(stored.receipt, settingSnapshot(HERMES_GATE_TOOLS_KEY, reading)));
71
+ return await writeHermesSetting(request.launcher, HERMES_GATE_TOOLS_KEY, value) ? { kind: "gated", value } : { kind: "failed", reason: "setting_refused" };
72
+ };
73
+
74
+ // src/openclaw/messages.ts
75
+ var OPENCLAW_ENABLE_COMMAND = `openclaw plugins enable ${OPENCLAW_PLUGIN_ID} --accept-capabilities`;
76
+ var OPENCLAW_UPDATE_COMMAND = "openclaw update";
77
+ var OPENCLAW_RESTART_NOTE = "A running OpenClaw gateway picks the plugin up now; one that is stopped loads it at its next start.";
78
+ var SETUP_AGAIN_COMMAND = retryAgentCommand("openclaw");
79
+ var pluginLabel = (version) => version ? `${OPENCLAW_PLUGIN_PACKAGE} ${version}` : OPENCLAW_PLUGIN_PACKAGE;
80
+ var withDetail = (message, detail) => detail ? `${message} OpenClaw said: ${detail}` : message;
81
+ var describeOpenClawInstallFailure = (reason, detail) => {
82
+ switch (reason) {
83
+ case "plugin_id_taken":
84
+ return `Another OpenClaw plugin already uses the id "${OPENCLAW_PLUGIN_ID}"${detail ? ` (${detail})` : ""}, so Pushary left it alone. Remove it, then run ${SETUP_AGAIN_COMMAND}.`;
85
+ case "bundle_missing":
86
+ return `This copy of the Pushary CLI does not carry the OpenClaw plugin. Run ${SETUP_AGAIN_COMMAND} to fetch the current CLI.`;
87
+ case "inspect_unreadable":
88
+ return `OpenClaw would not report its plugins through openclaw plugins inspect, so Pushary changed nothing. Run ${OPENCLAW_UPDATE_COMMAND}, then ${SETUP_AGAIN_COMMAND}.`;
89
+ case "receipt_invalid":
90
+ return `A setup record in ~/.pushary/setup/openclaw is unreadable, so Pushary changed nothing. Move that file aside, then run ${SETUP_AGAIN_COMMAND}.`;
91
+ case "config_unreadable":
92
+ return `OpenClaw would not report plugins.entries.pushary through openclaw config get, so Pushary changed nothing. Run ${OPENCLAW_UPDATE_COMMAND}, then ${SETUP_AGAIN_COMMAND}.`;
93
+ case "plugin_write_failed":
94
+ return `Pushary could not write the plugin to ~/.pushary/openclaw-plugin. Check that folder, then run ${SETUP_AGAIN_COMMAND}.`;
95
+ case "install_timed_out":
96
+ return `OpenClaw did not finish installing ${OPENCLAW_PLUGIN_PACKAGE} in time. Run ${SETUP_AGAIN_COMMAND} again.`;
97
+ case "install_failed":
98
+ return `${withDetail(`OpenClaw could not install ${OPENCLAW_PLUGIN_PACKAGE}.`, detail)} The plugin needs OpenClaw ${OPENCLAW_MIN_VERSION} or later; on an older OpenClaw run ${OPENCLAW_UPDATE_COMMAND}, then ${SETUP_AGAIN_COMMAND}.`;
99
+ case "enable_failed":
100
+ return withDetail(`OpenClaw installed ${OPENCLAW_PLUGIN_PACKAGE} but would not enable it. Run ${OPENCLAW_ENABLE_COMMAND}.`, detail);
101
+ }
102
+ };
103
+ var describeOpenClawState = (state) => {
104
+ switch (state.kind) {
105
+ case "not_installed":
106
+ return `${OPENCLAW_PLUGIN_PACKAGE} is not installed`;
107
+ case "unreadable":
108
+ return "OpenClaw would not report its plugins through openclaw plugins inspect";
109
+ case "not_ours":
110
+ return `the "${OPENCLAW_PLUGIN_ID}" plugin in OpenClaw is ${state.packageName ?? "another package"}, not ${OPENCLAW_PLUGIN_PACKAGE}`;
111
+ case "disabled":
112
+ return `${pluginLabel(state.version)} is installed but disabled`;
113
+ case "failed_to_load":
114
+ return `${pluginLabel(state.version)} is installed but did not register its before_tool_call gate`;
115
+ case "wired":
116
+ return state.gateVerified ? `${pluginLabel(state.version)} is enabled and registers before_tool_call` : `${pluginLabel(state.version)} is enabled`;
117
+ }
118
+ };
119
+ var openClawRepairStep = (state) => {
120
+ switch (state.kind) {
121
+ case "disabled":
122
+ return OPENCLAW_ENABLE_COMMAND;
123
+ case "not_ours":
124
+ return `openclaw plugins uninstall ${OPENCLAW_PLUGIN_ID}, then ${SETUP_AGAIN_COMMAND}`;
125
+ case "unreadable":
126
+ return `${OPENCLAW_UPDATE_COMMAND}, then ${SETUP_AGAIN_COMMAND}`;
127
+ default:
128
+ return SETUP_AGAIN_COMMAND;
129
+ }
130
+ };
131
+
132
+ // src/setup/failure-record.ts
133
+ import { dirname, join } from "path";
134
+ var failurePath = () => join(dirname(configFilePath()), "last-setup-failure.json");
135
+ var saveSetupFailure = (body, path = failurePath()) => {
136
+ const properties = readSetupOutcomeProperties(body);
137
+ if (properties.exitCode === null || properties.exitCode === 0) return;
138
+ writeJsonAtomic(path, { ...properties, recordedAt: (/* @__PURE__ */ new Date()).toISOString() }, 384);
139
+ };
140
+ var readSetupFailure = (path = failurePath()) => {
141
+ const result = readJsonSafe(path);
142
+ if (result.kind !== "ok" || typeof result.value !== "object" || result.value === null || Array.isArray(result.value)) return null;
143
+ const body = result.value;
144
+ if (!("recordedAt" in body) || typeof body.recordedAt !== "string" || body.recordedAt.length > 30 || !Number.isFinite(Date.parse(body.recordedAt))) return null;
145
+ return { ...readSetupOutcomeProperties({ ...body }), recordedAt: body.recordedAt };
146
+ };
147
+
148
+ export {
149
+ readHermesShellGate,
150
+ gateHermesShell,
151
+ OPENCLAW_RESTART_NOTE,
152
+ describeOpenClawInstallFailure,
153
+ describeOpenClawState,
154
+ openClawRepairStep,
155
+ saveSetupFailure,
156
+ readSetupFailure
157
+ };
@@ -2,37 +2,37 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-WC25Z4XS.js";
5
+ } from "./chunk-72S6PF2I.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-44BLJJPH.js";
9
+ } from "./chunk-TZ7CBPCD.js";
10
10
  import {
11
11
  askAgentQuestions,
12
12
  defersToNativeMode,
13
13
  outcomeOfFailedAsk,
14
14
  storedWaitDeadline
15
- } from "./chunk-44WPMZGQ.js";
15
+ } from "./chunk-37ZBJB2Q.js";
16
16
  import {
17
17
  reportMachineDenial
18
- } from "./chunk-CWWO3JTD.js";
18
+ } from "./chunk-WNV3X2VU.js";
19
19
  import {
20
20
  isGatingMoment,
21
21
  recordKeylessMoment
22
- } from "./chunk-5TZYAMGW.js";
22
+ } from "./chunk-FHBJJOMF.js";
23
23
  import {
24
24
  isAdmitted,
25
25
  readAdmissionRules
26
- } from "./chunk-56HFENZK.js";
26
+ } from "./chunk-6C5QRJIH.js";
27
27
  import {
28
28
  isDeferAnswer,
29
29
  oncePerSession
30
- } from "./chunk-WWCM6UL7.js";
30
+ } from "./chunk-5K65H6OO.js";
31
31
  import {
32
32
  activeHookSource,
33
33
  activeIdentity,
34
34
  namedSource
35
- } from "./chunk-WGOTBZ23.js";
35
+ } from "./chunk-2I6A34GJ.js";
36
36
  import {
37
37
  DEFAULT_SESSION,
38
38
  approvalAwaitingRetry,
@@ -53,7 +53,7 @@ import {
53
53
  settleQuestionsForToolUse,
54
54
  sweepFilesOlderThan,
55
55
  userScope
56
- } from "./chunk-EY5CVFDL.js";
56
+ } from "./chunk-Q6POCQOV.js";
57
57
  import {
58
58
  UNNAMED_ACTION,
59
59
  deriveAction,
@@ -64,12 +64,12 @@ import {
64
64
  patchDeletesFiles,
65
65
  permissionDeniedAction,
66
66
  scopePathFor
67
- } from "./chunk-7QWH257P.js";
67
+ } from "./chunk-D7ZWJYXB.js";
68
68
  import {
69
69
  branchFor,
70
70
  repoKeyFor,
71
71
  repositoryScopeFor
72
- } from "./chunk-EMODTMHE.js";
72
+ } from "./chunk-BYVLAPCF.js";
73
73
  import {
74
74
  askUser,
75
75
  cancelQuestion,
@@ -86,20 +86,20 @@ import {
86
86
  waitForQuestion,
87
87
  waitsForThePhone,
88
88
  withdrawQuestion
89
- } from "./chunk-74QCFZKV.js";
89
+ } from "./chunk-FKGWP4MF.js";
90
90
  import {
91
91
  getMachineId
92
- } from "./chunk-5BTAIFVV.js";
92
+ } from "./chunk-CSNG5NQR.js";
93
93
  import {
94
94
  getApiKey,
95
95
  getBaseUrl
96
- } from "./chunk-4EBJ4PTZ.js";
96
+ } from "./chunk-3NMX4725.js";
97
97
  import {
98
98
  writeFileAtomic
99
99
  } from "./chunk-TODDEIYG.js";
100
100
  import {
101
101
  NPX_LATEST_COMMAND
102
- } from "./chunk-R7FSMUHG.js";
102
+ } from "./chunk-JDIKCM2N.js";
103
103
  import {
104
104
  AGENT_QUESTION_STRATEGY,
105
105
  AGENT_QUESTION_TOOL,
@@ -168,7 +168,7 @@ import {
168
168
  timeoutActionWithoutLocalPrompt,
169
169
  unansweredRefusalReason,
170
170
  unapprovedScopeReason
171
- } from "./chunk-C5LIS3XM.js";
171
+ } from "./chunk-6JBX55K4.js";
172
172
 
173
173
  // src/terminal-answer-watch.ts
174
174
  import { closeSync, openSync, readSync, statSync } from "fs";