pushary 1.9.81 → 1.9.82

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 (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{api-VFUZ5HBR.js → api-TZO5ACOS.js} +8 -8
  3. package/dist/bin/pushary-bell-hook.js +19 -19
  4. package/dist/bin/pushary-bell.js +7 -7
  5. package/dist/bin/pushary-claude.js +20 -20
  6. package/dist/bin/pushary-clean.js +28 -28
  7. package/dist/bin/pushary-codex-bridge.js +15 -15
  8. package/dist/bin/pushary-codex-hook.js +22 -22
  9. package/dist/bin/pushary-codex-session.js +7 -7
  10. package/dist/bin/pushary-codex.js +9 -9
  11. package/dist/bin/pushary-connect.js +21 -21
  12. package/dist/bin/pushary-cowork.js +2 -2
  13. package/dist/bin/pushary-daemon.js +32 -32
  14. package/dist/bin/pushary-disconnect.js +20 -20
  15. package/dist/bin/pushary-display-hook.js +11 -11
  16. package/dist/bin/pushary-doctor.js +40 -36
  17. package/dist/bin/pushary-elicitation-hook.js +19 -19
  18. package/dist/bin/pushary-gemini-bridge.js +10 -10
  19. package/dist/bin/pushary-gemini-hook.js +20 -20
  20. package/dist/bin/pushary-hook.js +22 -22
  21. package/dist/bin/pushary-login.js +15 -15
  22. package/dist/bin/pushary-logout.js +18 -18
  23. package/dist/bin/pushary-mcp.js +9 -9
  24. package/dist/bin/pushary-mode.js +11 -11
  25. package/dist/bin/pushary-notification-hook.js +18 -18
  26. package/dist/bin/pushary-opencode-hook.js +19 -19
  27. package/dist/bin/pushary-permission-denied-hook.js +21 -21
  28. package/dist/bin/pushary-permission-hook.js +21 -21
  29. package/dist/bin/pushary-post-hook.js +18 -18
  30. package/dist/bin/pushary-prompt-hook.js +18 -18
  31. package/dist/bin/pushary-session-end-hook.js +20 -20
  32. package/dist/bin/pushary-session-start-hook.js +28 -28
  33. package/dist/bin/pushary-setup.js +43 -40
  34. package/dist/bin/pushary-stats.js +2 -2
  35. package/dist/bin/pushary-status.js +25 -25
  36. package/dist/bin/pushary-stop-hook.js +18 -18
  37. package/dist/bin/pushary-stopfailure-hook.js +18 -18
  38. package/dist/bin/pushary-suggestions.js +11 -11
  39. package/dist/bin/pushary-transcript-register.js +11 -11
  40. package/dist/bin/pushary-transcripts.js +15 -15
  41. package/dist/bin/pushary-upgrade.js +34 -34
  42. package/dist/bin/pushary-wait.js +11 -11
  43. package/dist/bin/pushary.js +5 -5
  44. package/dist/{chunk-IS5YVKUX.js → chunk-2BJZFA7X.js} +7 -5
  45. package/dist/{chunk-QZ666HLH.js → chunk-2TEX3APZ.js} +5 -5
  46. package/dist/{chunk-BYFFELB3.js → chunk-3UBYG4G7.js} +5 -5
  47. package/dist/{chunk-IA53GEP5.js → chunk-3V6G2GBJ.js} +5 -5
  48. package/dist/{chunk-VK2CHU3L.js → chunk-4S5XVFDV.js} +1 -1
  49. package/dist/{chunk-GOYYPBBJ.js → chunk-5LLZSX7I.js} +3 -3
  50. package/dist/{chunk-UUASO2FU.js → chunk-5TMGEQAC.js} +3 -3
  51. package/dist/{chunk-YIKIQ6YN.js → chunk-6224ENW3.js} +2 -2
  52. package/dist/{chunk-VII55DVC.js → chunk-6355HHSR.js} +2 -2
  53. package/dist/{chunk-TJZIUFWK.js → chunk-6L2U3TP3.js} +18 -17
  54. package/dist/{chunk-K5QN6V5K.js → chunk-72CIQCBA.js} +7 -4
  55. package/dist/{chunk-ZIJKTWNO.js → chunk-AM3H6HWG.js} +1 -1
  56. package/dist/{chunk-NVEDZZ3V.js → chunk-APSYBSMG.js} +13 -11
  57. package/dist/{chunk-74QJBFMG.js → chunk-AXE2ZOKS.js} +1 -1
  58. package/dist/{chunk-JTO6UPTJ.js → chunk-C6FQ4YST.js} +1 -1
  59. package/dist/{chunk-ALTTZKDU.js → chunk-CV56MBIZ.js} +7 -6
  60. package/dist/{chunk-3YOXBN7V.js → chunk-CXZAKS7S.js} +1 -1
  61. package/dist/{chunk-CRKODLLY.js → chunk-D3QGBMO3.js} +1 -1
  62. package/dist/{chunk-7JU6DPO7.js → chunk-DJILSCSU.js} +2 -2
  63. package/dist/{chunk-HG5EUDF3.js → chunk-DS5BR4K6.js} +1 -1
  64. package/dist/{chunk-ZBST77LF.js → chunk-DX45XQ36.js} +2 -2
  65. package/dist/{chunk-ZBYZCM6Y.js → chunk-ESRKYHWE.js} +2 -2
  66. package/dist/{chunk-KXSZ43Z6.js → chunk-FHPSVTS5.js} +5 -5
  67. package/dist/{chunk-VYRJAPZ6.js → chunk-FJZSJZCT.js} +1 -1
  68. package/dist/{chunk-LJ4TUZJV.js → chunk-G5BYSS6C.js} +4 -4
  69. package/dist/{chunk-35S7VB26.js → chunk-GUI2NYCX.js} +4 -4
  70. package/dist/{chunk-LFEJVQWI.js → chunk-GUM3WG4B.js} +3 -3
  71. package/dist/{chunk-IO3OLTED.js → chunk-I4RNLK5G.js} +3 -3
  72. package/dist/{chunk-X772USE7.js → chunk-IEAABGST.js} +5 -4
  73. package/dist/{chunk-47RUEZZA.js → chunk-J4TQYGHU.js} +4 -4
  74. package/dist/{chunk-ID46TTYS.js → chunk-JNCD2ZG3.js} +2 -2
  75. package/dist/{chunk-KERGWHCK.js → chunk-L77YWBMK.js} +6 -6
  76. package/dist/{chunk-YNWEE2WC.js → chunk-LGWTITVK.js} +1 -1
  77. package/dist/{chunk-HNUK557P.js → chunk-LNSCANYY.js} +1 -1
  78. package/dist/{chunk-LJFB5ZJ4.js → chunk-N3C3D4AV.js} +3 -3
  79. package/dist/{chunk-7WCB2BC4.js → chunk-NEWGYFKC.js} +6 -6
  80. package/dist/{chunk-DPP3ZCEE.js → chunk-O6T3CLWT.js} +3 -3
  81. package/dist/{chunk-IQQQ2LGB.js → chunk-OIW3JAWH.js} +3 -3
  82. package/dist/{chunk-AZV3DQQU.js → chunk-OXKVR2FP.js} +1 -1
  83. package/dist/{chunk-RVC7OSC7.js → chunk-OXTRF7CP.js} +1 -1
  84. package/dist/{chunk-ESS7CW3I.js → chunk-QJJJENT2.js} +4 -4
  85. package/dist/{chunk-5WC7TXSS.js → chunk-RL2KE6HG.js} +8 -8
  86. package/dist/{chunk-YAAJ3VZA.js → chunk-RRMRP62I.js} +3 -3
  87. package/dist/{chunk-5WIVX2NN.js → chunk-S2DLTWFG.js} +3 -3
  88. package/dist/{chunk-DLBUDQEE.js → chunk-TKFDPYXS.js} +3 -3
  89. package/dist/{chunk-QNEWV4JV.js → chunk-TO77OYLM.js} +1 -1
  90. package/dist/{chunk-DF7A5AWF.js → chunk-UB7VUSSX.js} +2 -2
  91. package/dist/{chunk-B2HMISVL.js → chunk-UOUUTDWF.js} +84 -44
  92. package/dist/{chunk-NK3I2QQA.js → chunk-UYTPCZ4M.js} +3 -3
  93. package/dist/{chunk-SFUJLUBM.js → chunk-VHLRXIMC.js} +1 -1
  94. package/dist/{chunk-FIMSM5SW.js → chunk-WLOVGZ7R.js} +2 -2
  95. package/dist/{chunk-BB4W35D6.js → chunk-WUS2LFTM.js} +7 -7
  96. package/dist/{chunk-WPGSQRMW.js → chunk-YAMNJXCD.js} +2 -2
  97. package/dist/{chunk-SEVGKJ7K.js → chunk-Z5HLACZT.js} +2 -2
  98. package/dist/{chunk-QTOLNRET.js → chunk-ZVU6WMMU.js} +10 -0
  99. package/dist/{codex-app-cards-switch-ZL6OHUXQ.js → codex-app-cards-switch-3FAIEEB2.js} +8 -8
  100. package/dist/{codex-desktop-launch-LQF5CPKU.js → codex-desktop-launch-LHMHRVGF.js} +1 -1
  101. package/dist/{codex-session-launch-5WBL5YHX.js → codex-session-launch-MXUBSTL2.js} +13 -13
  102. package/dist/{global-upgrade-HDDPHNGX.js → global-upgrade-ZDENZA42.js} +9 -9
  103. package/dist/{identity-RNZLFMKW.js → identity-YZRDJOGY.js} +4 -4
  104. package/dist/{live-capabilities-Y2Q5QBVK.js → live-capabilities-KSQDWVT6.js} +5 -5
  105. package/dist/{paths-WILX6YI3.js → paths-DYZZBVYI.js} +3 -3
  106. package/dist/{reapply-KF7ZZSA2.js → reapply-L3AI5KJH.js} +22 -22
  107. package/dist/src/index.js +21 -21
  108. package/dist/{upgrade-lock-7Q4VWMDA.js → upgrade-lock-X7F2OFYB.js} +4 -4
  109. package/dist/{usage-MSILPJVQ.js → usage-TKZALYXF.js} +2 -2
  110. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-DPP3ZCEE.js";
3
+ } from "./chunk-O6T3CLWT.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
7
7
  installHermesPlugin,
8
8
  refreshHermesPluginFiles,
9
9
  shippedHermesPlugin
10
- } from "./chunk-IO3OLTED.js";
10
+ } from "./chunk-I4RNLK5G.js";
11
11
  import {
12
12
  fxIgnoresInstructionsFile,
13
13
  fxInstructionsBody,
@@ -16,7 +16,7 @@ import {
16
16
  macAppFxBridge,
17
17
  refreshClineKey,
18
18
  switchFxHttpEntryToBridge
19
- } from "./chunk-QZ666HLH.js";
19
+ } from "./chunk-2TEX3APZ.js";
20
20
  import {
21
21
  OPENCODE_HOOK_BINARY,
22
22
  agentHookOwner,
@@ -28,16 +28,16 @@ import {
28
28
  openCodePluginDir,
29
29
  openCodeWired,
30
30
  withOpenCodeAskRules
31
- } from "./chunk-ALTTZKDU.js";
31
+ } from "./chunk-CV56MBIZ.js";
32
32
  import {
33
33
  detectClaudeVersion
34
- } from "./chunk-DF7A5AWF.js";
34
+ } from "./chunk-UB7VUSSX.js";
35
35
  import {
36
36
  addCompatibleHooks,
37
37
  compatibleConfigFile,
38
38
  compatibleInstructionsFile,
39
39
  hasCompatibleHooks
40
- } from "./chunk-UUASO2FU.js";
40
+ } from "./chunk-5TMGEQAC.js";
41
41
  import {
42
42
  GEMINI_HOOK_BINARY,
43
43
  addGeminiHooks,
@@ -49,7 +49,7 @@ import {
49
49
  geminiWired,
50
50
  hasGeminiHooks,
51
51
  planHooks
52
- } from "./chunk-X772USE7.js";
52
+ } from "./chunk-IEAABGST.js";
53
53
  import {
54
54
  CLAUDE_HOOK_BINARY,
55
55
  CLAUDE_HOOK_EVENTS,
@@ -72,6 +72,7 @@ import {
72
72
  clineRules,
73
73
  codexAgentsMd,
74
74
  codexConfigToml,
75
+ codexHookCommand,
75
76
  codexHookPositions,
76
77
  codexHooksJson,
77
78
  codexMcpStartsCommand,
@@ -94,15 +95,16 @@ import {
94
95
  renderAgentInstructions,
95
96
  supportedClaudeEvents,
96
97
  vscodePluginMcp
97
- } from "./chunk-B2HMISVL.js";
98
+ } from "./chunk-UOUUTDWF.js";
98
99
  import {
99
100
  formatVersion,
101
+ hookCommandsUseBareNames,
100
102
  readJsonSafe,
101
103
  resolveGlobalBinDir,
102
104
  resolveGlobalBinary,
103
105
  writeFileAtomic,
104
106
  writeJsonAtomic
105
- } from "./chunk-IS5YVKUX.js";
107
+ } from "./chunk-2BJZFA7X.js";
106
108
  import {
107
109
  HOOK_COMPATIBLE_PROFILES,
108
110
  isCompatibleAgentType,
@@ -184,7 +186,7 @@ var reapplyClaudeSettings = (apiKey, paths = {}) => {
184
186
  if (!settingsWritable) throw new Error("settings.json could not be parsed");
185
187
  const s = settings;
186
188
  addPusharyToolPermissions(s);
187
- const binary = (paths.resolveBinary ?? resolveGlobalBinary)(CLAUDE_HOOK_BINARY);
189
+ const binary = hookCommandsUseBareNames(paths.platform ?? process.platform) ? void 0 : (paths.resolveBinary ?? resolveGlobalBinary)(CLAUDE_HOOK_BINARY);
188
190
  addPusharyHooks(s, binary ? dirname(binary) : void 0, (paths.detectVersion ?? detectClaudeVersion)());
189
191
  writeJson(settingsPath, s);
190
192
  hooks = true;
@@ -278,7 +280,7 @@ var reapplyCodexSettings = (apiKey, paths = {}, nativeOwnership = "preserve") =>
278
280
  return { configured: true, reapplied: false, hooks: false, mcp: false, failed: true };
279
281
  }
280
282
  }
281
- const command = guardBinary((paths.resolveBinary ?? resolveGlobalBinary)(CODEX_HOOK_BINARY) ?? CODEX_HOOK_BINARY);
283
+ const command = codexHookCommand((paths.resolveBinary ?? resolveGlobalBinary)(CODEX_HOOK_BINARY));
282
284
  let hooks = false;
283
285
  let mcp = false;
284
286
  let failed = hooksConfig === null || config === null;
@@ -4,7 +4,7 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-3YOXBN7V.js";
7
+ } from "./chunk-CXZAKS7S.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
10
  } from "./chunk-TTTK44RK.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-HNUK557P.js";
3
+ } from "./chunk-LNSCANYY.js";
4
4
  import {
5
5
  KEY_SCOPE
6
6
  } from "./chunk-WG67W43Y.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  compatibleConfigFile
3
- } from "./chunk-UUASO2FU.js";
3
+ } from "./chunk-5TMGEQAC.js";
4
4
  import {
5
5
  hookOwnerOf,
6
6
  hookOwnerOfCommands,
7
7
  liveBridgeProbe,
8
8
  resolveBridgeStub
9
- } from "./chunk-X772USE7.js";
9
+ } from "./chunk-IEAABGST.js";
10
10
  import {
11
11
  AGENT_CHOICES
12
12
  } from "./chunk-JXE4UQFJ.js";
@@ -17,11 +17,12 @@ import {
17
17
  geminiSettings,
18
18
  guardedArgv,
19
19
  pusharyDir,
20
- vscodePluginDir
21
- } from "./chunk-B2HMISVL.js";
20
+ vscodePluginDir,
21
+ windowsNodeLauncherFor
22
+ } from "./chunk-UOUUTDWF.js";
22
23
  import {
23
24
  readJsonSafe
24
- } from "./chunk-IS5YVKUX.js";
25
+ } from "./chunk-2BJZFA7X.js";
25
26
  import {
26
27
  HOOK_BUDGETS,
27
28
  HOOK_COMPATIBLE_PROFILES,
@@ -411,7 +412,7 @@ import { homedir } from "os";
411
412
  import { join } from "path";
412
413
  var OPENCODE_HOOK_BINARY = "pushary-opencode-hook";
413
414
  var OPENCODE_HOOK_ARGS = ["--source", "opencode"];
414
- var openCodeHookArgv = (resolvedBinary) => guardedArgv({ kind: "binary", path: resolvedBinary ?? OPENCODE_HOOK_BINARY, runtime: "node" }, OPENCODE_HOOK_ARGS);
415
+ var openCodeHookArgv = (resolvedBinary, platform = process.platform) => guardedArgv({ kind: "binary", path: resolvedBinary ?? OPENCODE_HOOK_BINARY, runtime: "node" }, OPENCODE_HOOK_ARGS, platform, windowsNodeLauncherFor(platform));
415
416
  var openCodeConfigDirFrom = (home, env = process.env) => env.OPENCODE_CONFIG_DIR?.trim() || join(env.XDG_CONFIG_HOME?.trim() || join(home, ".config"), "opencode");
416
417
  var openCodeConfigDir = () => openCodeConfigDirFrom(homedir());
417
418
  var OPENCODE_PLUGIN_PATH = `${OPENCODE_PLUGIN_DIR}/${OPENCODE_PLUGIN_FILE}`;
@@ -6,7 +6,7 @@ import {
6
6
  readJsonSafe,
7
7
  writeFileAtomic,
8
8
  writeJsonAtomic
9
- } from "./chunk-IS5YVKUX.js";
9
+ } from "./chunk-2BJZFA7X.js";
10
10
  import {
11
11
  configFilePath
12
12
  } from "./chunk-ONUAAXAW.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-TTTK44RK.js";
7
7
  import {
8
8
  getPackageVersion
9
- } from "./chunk-QTOLNRET.js";
9
+ } from "./chunk-ZVU6WMMU.js";
10
10
 
11
11
  // src/cli/usage.ts
12
12
  var exitOnHelpFlag = (command) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-B2HMISVL.js";
3
+ } from "./chunk-UOUUTDWF.js";
4
4
  import {
5
5
  readJsonSafe
6
- } from "./chunk-IS5YVKUX.js";
6
+ } from "./chunk-2BJZFA7X.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-WG67W43Y.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-SEVGKJ7K.js";
3
+ } from "./chunk-Z5HLACZT.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
6
  } from "./chunk-TTTK44RK.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-B2HMISVL.js";
3
+ } from "./chunk-UOUUTDWF.js";
4
4
  import {
5
5
  readJsonSafe,
6
6
  writeFileAtomic
7
- } from "./chunk-IS5YVKUX.js";
7
+ } from "./chunk-2BJZFA7X.js";
8
8
  import {
9
9
  DECLINED_AGENTS_FILE,
10
10
  DISCONNECT_AGENT_IDS,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-B2HMISVL.js";
3
+ } from "./chunk-UOUUTDWF.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  writeJsonAtomic
8
- } from "./chunk-IS5YVKUX.js";
8
+ } from "./chunk-2BJZFA7X.js";
9
9
 
10
10
  // src/upgrade-lock.ts
11
11
  import { fork } from "child_process";
@@ -8,13 +8,13 @@ import {
8
8
  reportClientError,
9
9
  sendNotification,
10
10
  waitForAnswer
11
- } from "./chunk-IQQQ2LGB.js";
11
+ } from "./chunk-OIW3JAWH.js";
12
12
  import {
13
13
  withRetry
14
- } from "./chunk-SEVGKJ7K.js";
14
+ } from "./chunk-Z5HLACZT.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-WPGSQRMW.js";
17
+ } from "./chunk-YAMNJXCD.js";
18
18
  import {
19
19
  reportedInstallSource
20
20
  } from "./chunk-NPBPH7KI.js";
@@ -24,13 +24,13 @@ import {
24
24
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
25
25
  canonicalJson,
26
26
  claudeConfigDir
27
- } from "./chunk-B2HMISVL.js";
27
+ } from "./chunk-UOUUTDWF.js";
28
28
  import {
29
29
  compareVersion,
30
30
  parseVersion,
31
31
  writeFileAtomic,
32
32
  writeJsonAtomicDurable
33
- } from "./chunk-IS5YVKUX.js";
33
+ } from "./chunk-2BJZFA7X.js";
34
34
  import {
35
35
  getApiKey,
36
36
  getBaseUrl
@@ -3,7 +3,7 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  writeFileAtomic
6
- } from "./chunk-IS5YVKUX.js";
6
+ } from "./chunk-2BJZFA7X.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
9
  } from "./chunk-TTTK44RK.js";
@@ -2,22 +2,22 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-74QJBFMG.js";
5
+ } from "./chunk-AXE2ZOKS.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-JTO6UPTJ.js";
8
+ } from "./chunk-C6FQ4YST.js";
9
9
  import {
10
10
  createIo
11
11
  } from "./chunk-FO3MDD26.js";
12
12
  import {
13
13
  readKeySource
14
- } from "./chunk-3YOXBN7V.js";
14
+ } from "./chunk-CXZAKS7S.js";
15
15
  import {
16
16
  absoluteUrl,
17
17
  checkApiKey,
18
18
  describeKeyCheck,
19
19
  keyCheckFromResponse
20
- } from "./chunk-HNUK557P.js";
20
+ } from "./chunk-LNSCANYY.js";
21
21
  import {
22
22
  getBaseUrl
23
23
  } from "./chunk-ONUAAXAW.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readMacAppAgentKey
3
- } from "./chunk-47RUEZZA.js";
3
+ } from "./chunk-J4TQYGHU.js";
4
4
  import {
5
5
  API_KEYS_PATH
6
- } from "./chunk-JTO6UPTJ.js";
6
+ } from "./chunk-C6FQ4YST.js";
7
7
  import {
8
8
  findExportedKeyLines,
9
9
  isAdoptedMacAppKey,
@@ -13,10 +13,10 @@ import {
13
13
  readConfigFileKey,
14
14
  readKeySource,
15
15
  readMacAppKeyPrefix
16
- } from "./chunk-3YOXBN7V.js";
16
+ } from "./chunk-CXZAKS7S.js";
17
17
  import {
18
18
  absoluteUrl
19
- } from "./chunk-HNUK557P.js";
19
+ } from "./chunk-LNSCANYY.js";
20
20
  import {
21
21
  isValidApiKey
22
22
  } from "./chunk-WG67W43Y.js";
@@ -14,7 +14,7 @@ import {
14
14
  describeIdleWindow,
15
15
  idleDeadlinePassed,
16
16
  startProcessOwnership
17
- } from "./chunk-7JU6DPO7.js";
17
+ } from "./chunk-DJILSCSU.js";
18
18
  import {
19
19
  spawnClaude
20
20
  } from "./chunk-XHKBHWLX.js";
@@ -27,11 +27,11 @@ import {
27
27
  isWaitForAnswerResponse,
28
28
  withdrawQuestion,
29
29
  writeDegraded
30
- } from "./chunk-IQQQ2LGB.js";
30
+ } from "./chunk-OIW3JAWH.js";
31
31
  import {
32
32
  callMcpTool,
33
33
  isRetryable
34
- } from "./chunk-SEVGKJ7K.js";
34
+ } from "./chunk-Z5HLACZT.js";
35
35
  import {
36
36
  AGENT_QUESTION_DESCRIPTION_MAX,
37
37
  AGENT_QUESTION_HEADER_MAX,
@@ -5,16 +5,16 @@ import {
5
5
  hermesAppWiringRecord,
6
6
  hermesConfigReceipt,
7
7
  hermesSetupReceipt
8
- } from "./chunk-B2HMISVL.js";
8
+ } from "./chunk-UOUUTDWF.js";
9
9
  import {
10
10
  readJsonSafe,
11
11
  resolvePathBinary,
12
12
  writeJsonAtomic
13
- } from "./chunk-IS5YVKUX.js";
13
+ } from "./chunk-2BJZFA7X.js";
14
14
  import {
15
15
  isNewerVersion,
16
16
  isReleaseVersion
17
- } from "./chunk-QTOLNRET.js";
17
+ } from "./chunk-ZVU6WMMU.js";
18
18
  import {
19
19
  isRecord
20
20
  } from "./chunk-WG67W43Y.js";
@@ -3,16 +3,17 @@ import {
3
3
  } from "./chunk-JXE4UQFJ.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-VK2CHU3L.js";
6
+ } from "./chunk-4S5XVFDV.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
10
10
  HOOK_SHELL,
11
11
  hasCodexHooks,
12
12
  holdBudgetOf,
13
+ hookBinaryNameOf,
13
14
  isProtectedByScope,
14
15
  registerHookEntry
15
- } from "./chunk-B2HMISVL.js";
16
+ } from "./chunk-UOUUTDWF.js";
16
17
  import {
17
18
  CURSOR_GATE_EVENTS,
18
19
  HOOK_BUDGETS,
@@ -204,7 +205,7 @@ var pusharyHookExecutable = (command) => {
204
205
  for (const raw of tokens.reverse()) {
205
206
  const unquoted = raw[0] === '"' && raw.at(-1) === '"' || raw[0] === "'" && raw.at(-1) === "'" ? raw.slice(1, -1) : raw;
206
207
  const token = command.startsWith(`${HOOK_SHELL} `) && raw[0] === '"' ? unquoted.replace(/\\(["\\$`])/g, "$1") : unquoted;
207
- const name = token.split(/[/\\]/).pop()?.replace(/\.(cmd|exe|mjs)$/i, "") ?? "";
208
+ const name = hookBinaryNameOf(token.split(/[/\\]/).pop() ?? "");
208
209
  if (name === HOOK_LOCATOR_BINARY || EXACT_HOOK_BINARY.test(name)) return token;
209
210
  }
210
211
  return null;
@@ -321,7 +322,7 @@ var commandsIn = (value) => {
321
322
  var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
322
323
  var hasPaidPusharyCommand = (value) => commandsIn(value).some((command) => {
323
324
  const executable = pusharyHookExecutable(command);
324
- const name = executable?.split(/[/\\]/).pop()?.replace(/\.(cmd|exe|mjs)$/i, "");
325
+ const name = executable === null ? void 0 : hookBinaryNameOf(executable.split(/[/\\]/).pop() ?? "");
325
326
  return executable !== null && !isBridgeLocator(executable) && name !== BELL_HOOK_BINARY;
326
327
  });
327
328
  var hasAppCommand = (value) => commandsIn(value).some((command) => {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-ALTTZKDU.js";
3
+ } from "./chunk-CV56MBIZ.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-3YOXBN7V.js";
6
+ } from "./chunk-CXZAKS7S.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-B2HMISVL.js";
9
+ } from "./chunk-UOUUTDWF.js";
10
10
  import {
11
11
  readJsonSafe
12
- } from "./chunk-IS5YVKUX.js";
12
+ } from "./chunk-2BJZFA7X.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-WPGSQRMW.js";
3
+ } from "./chunk-YAMNJXCD.js";
4
4
  import {
5
5
  getBaseUrl
6
6
  } from "./chunk-ONUAAXAW.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-PPY5N2E6.js";
10
10
  import {
11
11
  getPackageVersion
12
- } from "./chunk-QTOLNRET.js";
12
+ } from "./chunk-ZVU6WMMU.js";
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-ZBYZCM6Y.js";
6
+ } from "./chunk-ESRKYHWE.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-NK3I2QQA.js";
9
+ } from "./chunk-UYTPCZ4M.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,19 +18,19 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-5WIVX2NN.js";
21
+ } from "./chunk-S2DLTWFG.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-B2HMISVL.js";
26
+ } from "./chunk-UOUUTDWF.js";
27
27
  import {
28
28
  execNpm,
29
29
  fetchLatestPublishedVersion,
30
30
  npmErrorMessage,
31
31
  readGlobalCliInstallAt,
32
32
  readGlobalPrefix
33
- } from "./chunk-IS5YVKUX.js";
33
+ } from "./chunk-2BJZFA7X.js";
34
34
  import {
35
35
  EXIT
36
36
  } from "./chunk-KZERVKTD.js";
@@ -45,7 +45,7 @@ import {
45
45
  isSameMajorVersion,
46
46
  ownPackageRoot,
47
47
  packageVersionAt
48
- } from "./chunk-QTOLNRET.js";
48
+ } from "./chunk-ZVU6WMMU.js";
49
49
 
50
50
  // src/global-upgrade.ts
51
51
  import { existsSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-3YOXBN7V.js";
3
+ } from "./chunk-CXZAKS7S.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-ID46TTYS.js";
3
+ } from "./chunk-JNCD2ZG3.js";
4
4
  import {
5
5
  getBaseUrl
6
6
  } from "./chunk-ONUAAXAW.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-UUASO2FU.js";
4
+ } from "./chunk-5TMGEQAC.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-X772USE7.js";
7
+ } from "./chunk-IEAABGST.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-B2HMISVL.js";
11
+ } from "./chunk-UOUUTDWF.js";
12
12
  import {
13
13
  isRecord
14
14
  } from "./chunk-WG67W43Y.js";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  registerTranscript
3
- } from "./chunk-BB4W35D6.js";
3
+ } from "./chunk-WUS2LFTM.js";
4
4
  import {
5
5
  namedEvent
6
- } from "./chunk-UUASO2FU.js";
6
+ } from "./chunk-5TMGEQAC.js";
7
7
  import {
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe,
10
10
  pusharyHookExecutable,
11
11
  resolveBridgeStub
12
- } from "./chunk-X772USE7.js";
12
+ } from "./chunk-IEAABGST.js";
13
13
  import {
14
14
  writeDegraded
15
- } from "./chunk-IQQQ2LGB.js";
15
+ } from "./chunk-OIW3JAWH.js";
16
16
  import {
17
17
  cursorUserHooks
18
- } from "./chunk-B2HMISVL.js";
18
+ } from "./chunk-UOUUTDWF.js";
19
19
  import {
20
20
  atLeast,
21
21
  parseVersion
22
- } from "./chunk-IS5YVKUX.js";
22
+ } from "./chunk-2BJZFA7X.js";
23
23
  import {
24
24
  CURSOR_GATE_COVERAGE,
25
25
  CURSOR_GATE_SCRIPT,
@@ -7,13 +7,13 @@ import {
7
7
  codexHome,
8
8
  codexHooksJsonIn,
9
9
  isPusharyCodexCommand
10
- } from "./chunk-B2HMISVL.js";
10
+ } from "./chunk-UOUUTDWF.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-IS5YVKUX.js";
13
+ } from "./chunk-2BJZFA7X.js";
14
14
  import {
15
15
  getPackageVersion
16
- } from "./chunk-QTOLNRET.js";
16
+ } from "./chunk-ZVU6WMMU.js";
17
17
 
18
18
  // src/codex-app-server.ts
19
19
  import { existsSync, realpathSync } from "fs";
@@ -6,14 +6,14 @@ import {
6
6
  McpToolError,
7
7
  SubscriptionRequiredError,
8
8
  callMcpTool
9
- } from "./chunk-SEVGKJ7K.js";
9
+ } from "./chunk-Z5HLACZT.js";
10
10
  import {
11
11
  installNetworkDefaults,
12
12
  isNetworkFailure
13
- } from "./chunk-ID46TTYS.js";
13
+ } from "./chunk-JNCD2ZG3.js";
14
14
  import {
15
15
  clientReportClaims
16
- } from "./chunk-B2HMISVL.js";
16
+ } from "./chunk-UOUUTDWF.js";
17
17
  import {
18
18
  getApiKey,
19
19
  getBaseUrl
@@ -12,7 +12,7 @@ import {
12
12
  reachVerdict,
13
13
  reachesYou,
14
14
  verifyDelivery
15
- } from "./chunk-YAAJ3VZA.js";
15
+ } from "./chunk-RRMRP62I.js";
16
16
  import {
17
17
  humanIsTty,
18
18
  writeHuman
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-3YOXBN7V.js";
3
+ } from "./chunk-CXZAKS7S.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  openCodeConfigDirFrom
3
- } from "./chunk-ALTTZKDU.js";
3
+ } from "./chunk-CV56MBIZ.js";
4
4
  import {
5
5
  nativeClaudeInstallPath
6
- } from "./chunk-QNEWV4JV.js";
6
+ } from "./chunk-TO77OYLM.js";
7
7
  import {
8
8
  grokHome
9
- } from "./chunk-UUASO2FU.js";
9
+ } from "./chunk-5TMGEQAC.js";
10
10
  import {
11
11
  claudeConfigDir,
12
12
  clineDataDirectory,
13
13
  codexHomeFrom
14
- } from "./chunk-B2HMISVL.js";
14
+ } from "./chunk-UOUUTDWF.js";
15
15
  import {
16
16
  HOOK_COMPATIBLE_PROFILES
17
17
  } from "./chunk-WG67W43Y.js";