pushary 1.9.129 → 1.9.132

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 (132) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{api-WTQOMRGG.js → api-7CZR7B53.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +10 -10
  6. package/dist/bin/pushary-claude.js +27 -27
  7. package/dist/bin/pushary-clean.js +34 -34
  8. package/dist/bin/pushary-codex-bridge.js +21 -21
  9. package/dist/bin/pushary-codex-hook.js +35 -35
  10. package/dist/bin/pushary-codex-session.js +8 -8
  11. package/dist/bin/pushary-codex.js +15 -15
  12. package/dist/bin/pushary-connect.js +28 -28
  13. package/dist/bin/pushary-cowork.js +5 -5
  14. package/dist/bin/pushary-daemon.js +44 -44
  15. package/dist/bin/pushary-disconnect.js +27 -27
  16. package/dist/bin/pushary-display-hook.js +9 -4
  17. package/dist/bin/pushary-doctor.js +42 -42
  18. package/dist/bin/pushary-elicitation-hook.js +28 -28
  19. package/dist/bin/pushary-gemini-bridge.js +15 -15
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +34 -34
  22. package/dist/bin/pushary-login.js +21 -21
  23. package/dist/bin/pushary-logout.js +26 -26
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +15 -15
  26. package/dist/bin/pushary-notification-hook.js +27 -27
  27. package/dist/bin/pushary-opencode-hook.js +31 -31
  28. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  29. package/dist/bin/pushary-permission-hook.js +34 -34
  30. package/dist/bin/pushary-post-hook.js +27 -27
  31. package/dist/bin/pushary-prompt-hook.js +27 -27
  32. package/dist/bin/pushary-session-end-hook.js +27 -27
  33. package/dist/bin/pushary-session-start-hook.js +36 -36
  34. package/dist/bin/pushary-setup.js +51 -51
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +32 -32
  37. package/dist/bin/pushary-stop-hook.js +27 -27
  38. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  39. package/dist/bin/pushary-suggestions.js +15 -15
  40. package/dist/bin/pushary-transcript-register.js +19 -19
  41. package/dist/bin/pushary-transcripts.js +27 -27
  42. package/dist/bin/pushary-upgrade.js +40 -40
  43. package/dist/bin/pushary-wait.js +15 -15
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-VOFCKEIR.js → chunk-237FYIVC.js} +6 -5
  46. package/dist/{chunk-JWDGPKKL.js → chunk-25UU4Q4V.js} +1 -1
  47. package/dist/{chunk-3SREEE2O.js → chunk-2KN53MPE.js} +5 -5
  48. package/dist/{chunk-TSZDE5NK.js → chunk-2U4MCUVZ.js} +1 -1
  49. package/dist/{chunk-E4LKBXGP.js → chunk-2YS7YEUW.js} +2 -2
  50. package/dist/{chunk-EJEYQOKX.js → chunk-3PGANQ4K.js} +6 -6
  51. package/dist/{chunk-KWFZUAET.js → chunk-3TKTZOKG.js} +3 -3
  52. package/dist/{chunk-44ZTLOVE.js → chunk-42PVKPHM.js} +1 -1
  53. package/dist/{chunk-PG3BXBVY.js → chunk-4EGRD5RS.js} +15 -15
  54. package/dist/{chunk-G4JW4QPR.js → chunk-4EQOCSJW.js} +1 -1
  55. package/dist/{chunk-2KVK6YQR.js → chunk-6JY44IZI.js} +8 -8
  56. package/dist/{chunk-G6IAWKZ3.js → chunk-75FJZR2M.js} +3 -3
  57. package/dist/{chunk-C74UXIKG.js → chunk-7MIT5C7B.js} +3 -3
  58. package/dist/{chunk-SISRFK3I.js → chunk-A44MRVWG.js} +27 -11
  59. package/dist/{chunk-ODZBKNIA.js → chunk-BKH4LQJC.js} +2 -2
  60. package/dist/{chunk-NQSQC5OC.js → chunk-BTDEBPPR.js} +5 -5
  61. package/dist/{chunk-FUDV2SJ6.js → chunk-C4UH6YPD.js} +4 -4
  62. package/dist/{chunk-6X2O5QI7.js → chunk-CVBSETPW.js} +3 -3
  63. package/dist/{chunk-TEIL5BHZ.js → chunk-D2KJKAYM.js} +4 -4
  64. package/dist/{chunk-BNJ4H57M.js → chunk-DS7XMYUB.js} +1 -1
  65. package/dist/{chunk-3EXJMRSC.js → chunk-EA5EASYT.js} +1 -1
  66. package/dist/{chunk-HN63QQWB.js → chunk-EPPH5RMJ.js} +4 -4
  67. package/dist/{chunk-J74XLYS2.js → chunk-FP4WRSWE.js} +3 -3
  68. package/dist/{chunk-BWYZ3YZM.js → chunk-FT5MTCKU.js} +2 -2
  69. package/dist/{chunk-6F6WN6C2.js → chunk-FTH4TSJ2.js} +4 -4
  70. package/dist/{chunk-OUTWFS6J.js → chunk-GKZMBU6T.js} +2 -2
  71. package/dist/{chunk-QLIH4BJ6.js → chunk-GQPXW6BL.js} +1 -1
  72. package/dist/{chunk-R5TGBKKZ.js → chunk-HOPJEPL4.js} +4 -4
  73. package/dist/{chunk-Y57QT5SH.js → chunk-HW63OEVM.js} +3 -3
  74. package/dist/{chunk-WPER6NNY.js → chunk-IZJDVOJV.js} +5 -5
  75. package/dist/{chunk-PKZJZWYN.js → chunk-J4UNR655.js} +6 -6
  76. package/dist/{chunk-MUCBJ2KT.js → chunk-J6WO5ZR5.js} +2 -2
  77. package/dist/{chunk-UZCD6OFJ.js → chunk-JYCAAQUW.js} +1 -1
  78. package/dist/{chunk-FN3AKOE6.js → chunk-KBOANW7J.js} +6 -6
  79. package/dist/{chunk-VHSN7GCK.js → chunk-KIWFCW7M.js} +7 -5
  80. package/dist/{chunk-R5ZFWL4F.js → chunk-KWICQAP7.js} +3 -3
  81. package/dist/{chunk-VSNVDY55.js → chunk-L5RSLIBQ.js} +6 -6
  82. package/dist/{chunk-JK3IYOOR.js → chunk-LBMCQWRX.js} +4 -4
  83. package/dist/{chunk-OOCIVAMY.js → chunk-LR3PIGRS.js} +3 -3
  84. package/dist/{chunk-JP3S4FPO.js → chunk-M65LPNIO.js} +1 -0
  85. package/dist/{chunk-QFS7JNUD.js → chunk-MF5ZQX7C.js} +4 -4
  86. package/dist/{chunk-RS4BEWEZ.js → chunk-MJVDFNP2.js} +1 -1
  87. package/dist/{chunk-XXCJY3KQ.js → chunk-MRHGK3Q3.js} +11 -11
  88. package/dist/{chunk-S6G4C5LS.js → chunk-NJH6EGZN.js} +5 -5
  89. package/dist/{chunk-TFHTZ6GE.js → chunk-NSBWFX7H.js} +5 -5
  90. package/dist/{chunk-A5L3WBHV.js → chunk-NYFUU23B.js} +1 -1
  91. package/dist/{chunk-UDH2BDU2.js → chunk-PFHRW3LR.js} +3 -3
  92. package/dist/{chunk-S45FPA72.js → chunk-PG23ENSN.js} +2 -2
  93. package/dist/{chunk-W5QKCZ7X.js → chunk-PPUIIP3O.js} +11 -11
  94. package/dist/{chunk-OH67UPRF.js → chunk-QBJVECFY.js} +2 -2
  95. package/dist/{chunk-R4JOCIQM.js → chunk-RGVQOOGD.js} +1 -1
  96. package/dist/{chunk-EFTS75PF.js → chunk-RLQDVWZ4.js} +2 -2
  97. package/dist/{chunk-QZJ4NGSQ.js → chunk-RVGYXUOC.js} +3 -3
  98. package/dist/{chunk-7H2RWOO2.js → chunk-RZBV5KTF.js} +5 -5
  99. package/dist/{chunk-OUN5T5VX.js → chunk-S4HS6VTI.js} +1 -1
  100. package/dist/{chunk-V4OLQBSN.js → chunk-SZYKS433.js} +1 -1
  101. package/dist/{chunk-CFZRNQIQ.js → chunk-T6HX6OTY.js} +1 -1
  102. package/dist/{chunk-IGCXQDYL.js → chunk-U5AZKJ5O.js} +13 -12
  103. package/dist/{chunk-AN6I3TX7.js → chunk-UJZ5YHSR.js} +2 -2
  104. package/dist/{chunk-CCZML6KO.js → chunk-UZUDMZES.js} +3 -3
  105. package/dist/{chunk-VTT7U6TJ.js → chunk-V2T5ZDMP.js} +3 -3
  106. package/dist/{chunk-GVSIVBVT.js → chunk-VAE5JBR5.js} +1 -0
  107. package/dist/{chunk-AHEC2K7V.js → chunk-VO55SJSD.js} +7 -7
  108. package/dist/{chunk-Q7YNYPRY.js → chunk-VRUEKURE.js} +1 -1
  109. package/dist/{chunk-WLRSM634.js → chunk-W4FJR57E.js} +10 -6
  110. package/dist/{chunk-2MBD6JHB.js → chunk-WZ4SIRMH.js} +1 -1
  111. package/dist/{chunk-IAAP4OCC.js → chunk-X23GSBOH.js} +3 -3
  112. package/dist/{chunk-O3HKUUXP.js → chunk-XHC3UNOK.js} +1 -1
  113. package/dist/{chunk-NXUZBYBA.js → chunk-XMZVQF2J.js} +1 -1
  114. package/dist/{chunk-AHHPHJOE.js → chunk-XWUPOTJV.js} +5 -5
  115. package/dist/{chunk-4U55UQ7X.js → chunk-YI6RR4JP.js} +4 -4
  116. package/dist/{chunk-36I6HFLZ.js → chunk-YNV5GURD.js} +5 -5
  117. package/dist/{chunk-D3YLMDPE.js → chunk-ZJPBTJED.js} +6 -6
  118. package/dist/{chunk-PBK24IVU.js → chunk-ZXJTTV7I.js} +2 -2
  119. package/dist/{codex-app-cards-switch-KMLJJA3K.js → codex-app-cards-switch-WDQBUF7K.js} +11 -11
  120. package/dist/{codex-card-routing-QZCKG6N5.js → codex-card-routing-X2HUY2AV.js} +2 -2
  121. package/dist/{codex-desktop-launch-BYR7AZRC.js → codex-desktop-launch-EQ4VH6QV.js} +1 -1
  122. package/dist/{codex-session-launch-B33B65NA.js → codex-session-launch-YGH5UUAH.js} +18 -18
  123. package/dist/{config-X4S5PT22.js → config-5SNDVPS2.js} +3 -3
  124. package/dist/{global-upgrade-KHN4VJ72.js → global-upgrade-U4V7KWH6.js} +9 -9
  125. package/dist/{identity-ANBW7VRX.js → identity-DCRNA3J3.js} +4 -4
  126. package/dist/{live-capabilities-7O6JXLIM.js → live-capabilities-H7J5ANZ3.js} +4 -4
  127. package/dist/{paths-PKHSS7QT.js → paths-3DUQGU4V.js} +3 -3
  128. package/dist/{reapply-2F24DBKV.js → reapply-LNVBPUWL.js} +28 -28
  129. package/dist/src/index.js +33 -33
  130. package/dist/{upgrade-lock-DVHGL55R.js → upgrade-lock-3T7JLBHT.js} +4 -4
  131. package/dist/{usage-FIAOA3QU.js → usage-XLJK7OTL.js} +3 -3
  132. package/package.json +1 -1
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  claudeSettingsLocationFor,
3
3
  readClaudePermissionRules
4
- } from "./chunk-BWYZ3YZM.js";
4
+ } from "./chunk-FT5MTCKU.js";
5
5
  import {
6
6
  askAgentQuestions,
7
7
  defersToNativeMode,
8
8
  outcomeOfFailedAsk,
9
9
  storedWaitDeadline
10
- } from "./chunk-AHHPHJOE.js";
10
+ } from "./chunk-XWUPOTJV.js";
11
11
  import {
12
12
  reportMachineDenial
13
- } from "./chunk-Y57QT5SH.js";
13
+ } from "./chunk-HW63OEVM.js";
14
14
  import {
15
15
  isGatingMoment,
16
16
  recordKeylessMoment
17
- } from "./chunk-TSZDE5NK.js";
17
+ } from "./chunk-2U4MCUVZ.js";
18
18
  import {
19
19
  isAdmitted,
20
20
  readAdmissionRules
21
- } from "./chunk-NQSQC5OC.js";
21
+ } from "./chunk-BTDEBPPR.js";
22
22
  import {
23
23
  isDeferAnswer,
24
24
  oncePerSession
25
- } from "./chunk-3EXJMRSC.js";
25
+ } from "./chunk-EA5EASYT.js";
26
26
  import {
27
27
  activeHookSource,
28
28
  activeIdentity,
29
29
  namedSource
30
- } from "./chunk-7H2RWOO2.js";
30
+ } from "./chunk-RZBV5KTF.js";
31
31
  import {
32
32
  DEFAULT_SESSION,
33
33
  approvalAwaitingRetry,
@@ -48,7 +48,7 @@ import {
48
48
  settleQuestionsForToolUse,
49
49
  sweepFilesOlderThan,
50
50
  userScope
51
- } from "./chunk-XXCJY3KQ.js";
51
+ } from "./chunk-MRHGK3Q3.js";
52
52
  import {
53
53
  UNNAMED_ACTION,
54
54
  deriveAction,
@@ -59,12 +59,12 @@ import {
59
59
  patchDeletesFiles,
60
60
  permissionDeniedAction,
61
61
  scopePathFor
62
- } from "./chunk-UZCD6OFJ.js";
62
+ } from "./chunk-JYCAAQUW.js";
63
63
  import {
64
64
  branchFor,
65
65
  repoKeyFor,
66
66
  repositoryScopeFor
67
- } from "./chunk-R4JOCIQM.js";
67
+ } from "./chunk-RGVQOOGD.js";
68
68
  import {
69
69
  askUser,
70
70
  cancelQuestion,
@@ -81,20 +81,20 @@ import {
81
81
  waitForQuestion,
82
82
  waitsForThePhone,
83
83
  withdrawQuestion
84
- } from "./chunk-PKZJZWYN.js";
84
+ } from "./chunk-J4UNR655.js";
85
85
  import {
86
86
  getMachineId
87
- } from "./chunk-BNJ4H57M.js";
87
+ } from "./chunk-DS7XMYUB.js";
88
88
  import {
89
89
  getApiKey,
90
90
  getBaseUrl
91
- } from "./chunk-CFZRNQIQ.js";
91
+ } from "./chunk-T6HX6OTY.js";
92
92
  import {
93
93
  writeFileAtomic
94
94
  } from "./chunk-TODDEIYG.js";
95
95
  import {
96
96
  NPX_LATEST_COMMAND
97
- } from "./chunk-V4OLQBSN.js";
97
+ } from "./chunk-SZYKS433.js";
98
98
  import {
99
99
  AGENT_QUESTION_STRATEGY,
100
100
  AGENT_QUESTION_TOOL,
@@ -163,7 +163,7 @@ import {
163
163
  timeoutActionWithoutLocalPrompt,
164
164
  unansweredRefusalReason,
165
165
  unapprovedScopeReason
166
- } from "./chunk-JP3S4FPO.js";
166
+ } from "./chunk-M65LPNIO.js";
167
167
 
168
168
  // src/terminal-answer-watch.ts
169
169
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-BG4HHB7E.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-V4OLQBSN.js";
6
+ } from "./chunk-SZYKS433.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-WIIMW5YO.js";
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-BWYZ3YZM.js";
3
+ } from "./chunk-FT5MTCKU.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-S45FPA72.js";
7
+ } from "./chunk-PG23ENSN.js";
8
8
  import {
9
9
  OPENCODE_HOOK_BINARY,
10
10
  openCodeConfigDir,
11
11
  openCodePluginArgv,
12
12
  openCodePluginFile
13
- } from "./chunk-TFHTZ6GE.js";
13
+ } from "./chunk-NSBWFX7H.js";
14
14
  import {
15
15
  liveCursorGateCoverage
16
- } from "./chunk-HN63QQWB.js";
16
+ } from "./chunk-EPPH5RMJ.js";
17
17
  import {
18
18
  compatibleConfigFile,
19
19
  compatibleHookEvents,
20
20
  grokHome,
21
21
  parseConfigDocument
22
- } from "./chunk-7H2RWOO2.js";
22
+ } from "./chunk-RZBV5KTF.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-VOFCKEIR.js";
28
+ } from "./chunk-237FYIVC.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-WLRSM634.js";
56
+ } from "./chunk-W4FJR57E.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-JP3S4FPO.js";
70
+ } from "./chunk-M65LPNIO.js";
71
71
 
72
72
  // src/hook-wiring.ts
73
73
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-O3HKUUXP.js";
3
+ } from "./chunk-XHC3UNOK.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-YPY4YCIZ.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YU2EUD7O.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-V4OLQBSN.js";
12
+ } from "./chunk-SZYKS433.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-JP3S4FPO.js";
20
+ } from "./chunk-M65LPNIO.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -5,10 +5,10 @@ import {
5
5
  hermesAppWiringRecord,
6
6
  hermesConfigReceipt,
7
7
  hermesSetupReceipt
8
- } from "./chunk-WLRSM634.js";
8
+ } from "./chunk-W4FJR57E.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-SISRFK3I.js";
11
+ } from "./chunk-A44MRVWG.js";
12
12
  import {
13
13
  readJsonSafe,
14
14
  writeJsonAtomic
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-WIIMW5YO.js";
20
20
  import {
21
21
  isRecord
22
- } from "./chunk-JP3S4FPO.js";
22
+ } from "./chunk-M65LPNIO.js";
23
23
 
24
24
  // src/hermes/plugin-payload.ts
25
25
  import { createHash } from "crypto";
@@ -19,7 +19,7 @@ var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
19
19
  import { promisify } from "util";
20
20
  import { exec, execFile, execFileSync, execSync } from "child_process";
21
21
  import { existsSync, readFileSync, readlinkSync, realpathSync } from "fs";
22
- import { dirname, isAbsolute, join, relative, resolve } from "path";
22
+ import { dirname, isAbsolute, join, relative, resolve, win32 } from "path";
23
23
  var latestReleaseUrl = (packageName) => `https://registry.npmjs.org/${packageName}/latest`;
24
24
  var REGISTRY_TIMEOUT_MS = 5e3;
25
25
  var LATEST_TAG = "latest";
@@ -42,6 +42,7 @@ var execNpm = (args, options = {}) => {
42
42
  return execSync(`npm ${args}`, {
43
43
  timeout: 12e4,
44
44
  stdio: "pipe",
45
+ windowsHide: true,
45
46
  ...options,
46
47
  env: { ...cleanNpmEnv(), ...options.env ?? {} }
47
48
  });
@@ -91,13 +92,27 @@ var resolveGlobalBinaryAt = (name, prefix, platform = process.platform) => {
91
92
  const candidates = platform === "win32" ? [join(prefix, `${name}.cmd`), join(prefix, name)] : [join(prefix, "bin", name)];
92
93
  return candidates.find(existsSync);
93
94
  };
95
+ var DEFAULT_WINDOWS_PATHEXT = ".COM;.EXE;.BAT;.CMD";
96
+ var DIRECTLY_STARTABLE_EXTENSIONS = /* @__PURE__ */ new Set([".com", ".exe", ".bat", ".cmd"]);
97
+ var startableExtensionsListedIn = (pathExt) => pathExt.split(";").map((extension) => extension.trim().toLowerCase()).filter((extension) => DIRECTLY_STARTABLE_EXTENSIONS.has(extension));
98
+ var startableExtensionsIn = (pathExt) => {
99
+ const listed = startableExtensionsListedIn(pathExt ?? "");
100
+ return new Set(listed.length > 0 ? listed : startableExtensionsListedIn(DEFAULT_WINDOWS_PATHEXT));
101
+ };
102
+ var launchablePathMatch = (output, platform, pathExt) => {
103
+ const matches = output.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0);
104
+ if (platform !== "win32") return matches[0];
105
+ const startable = startableExtensionsIn(pathExt);
106
+ return matches.find((match) => startable.has(win32.extname(match).toLowerCase())) ?? matches[0];
107
+ };
94
108
  var resolvePathBinary = (name, platform = process.platform) => {
95
109
  try {
96
- return execFileSync(platform === "win32" ? "where" : "which", [name], {
110
+ return launchablePathMatch(execFileSync(platform === "win32" ? "where" : "which", [name], {
97
111
  encoding: "utf8",
98
112
  stdio: "pipe",
99
- timeout: 5e3
100
- }).split(/\r?\n/, 1)[0]?.trim() || void 0;
113
+ timeout: 5e3,
114
+ windowsHide: true
115
+ }), platform, process.env.PATHEXT);
101
116
  } catch {
102
117
  return void 0;
103
118
  }
@@ -108,7 +123,7 @@ var DISCOVERY_TIMEOUT_MS = 5e3;
108
123
  var refuseDiscoveryAfterStop = (signal) => signal?.throwIfAborted();
109
124
  var runNpmDiscovery = (command, signal) => {
110
125
  refuseDiscoveryAfterStop(signal);
111
- const options = { env: cleanNpmEnv(), timeout: DISCOVERY_TIMEOUT_MS, signal };
126
+ const options = { env: cleanNpmEnv(), timeout: DISCOVERY_TIMEOUT_MS, signal, windowsHide: true };
112
127
  return process.platform === "win32" ? runShellAsync(`npm ${command}`, options) : runFileAsync("npm", command.split(" "), options);
113
128
  };
114
129
  var readGlobalPrefixAsync = async (signal) => {
@@ -124,9 +139,10 @@ var resolvePathBinaryAsync = async (name, signal, platform = process.platform) =
124
139
  refuseDiscoveryAfterStop(signal);
125
140
  const { stdout } = await runFileAsync(platform === "win32" ? "where" : "which", [name], {
126
141
  timeout: DISCOVERY_TIMEOUT_MS,
127
- signal
142
+ signal,
143
+ windowsHide: true
128
144
  });
129
- return stdout.split(/\r?\n/, 1)[0]?.trim() || void 0;
145
+ return launchablePathMatch(stdout, platform, process.env.PATHEXT);
130
146
  } catch {
131
147
  return void 0;
132
148
  }
@@ -135,7 +151,7 @@ var NPM_MISSING_MESSAGE = "npm is not on PATH, and the hooks run from a global n
135
151
  var NPM_LOOKUP = process.platform === "win32" ? "where npm" : "command -v npm";
136
152
  var npmIsOnPath = () => {
137
153
  try {
138
- execSync(NPM_LOOKUP, { env: cleanNpmEnv(), stdio: "ignore", timeout: 5e3 });
154
+ execSync(NPM_LOOKUP, { env: cleanNpmEnv(), stdio: "ignore", timeout: 5e3, windowsHide: true });
139
155
  return true;
140
156
  } catch {
141
157
  return false;
@@ -399,9 +415,9 @@ var installGlobally = (options) => {
399
415
  }
400
416
  const started = (async () => {
401
417
  if (!npmIsOnPath()) throw new NpmMissingError();
402
- const { withUpgradeLock } = await import("./global-upgrade-KHN4VJ72.js");
403
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-DVHGL55R.js");
404
- const { autoUpdateLock } = await import("./paths-PKHSS7QT.js");
418
+ const { withUpgradeLock } = await import("./global-upgrade-U4V7KWH6.js");
419
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-3T7JLBHT.js");
420
+ const { autoUpdateLock } = await import("./paths-3DUQGU4V.js");
405
421
  let result = "skipped";
406
422
  const install = async () => {
407
423
  const platform = process.platform;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-CFZRNQIQ.js";
3
+ } from "./chunk-T6HX6OTY.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-JP3S4FPO.js";
6
+ } from "./chunk-M65LPNIO.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-HN63QQWB.js";
4
+ } from "./chunk-EPPH5RMJ.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-IGCXQDYL.js";
7
+ } from "./chunk-U5AZKJ5O.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-7H2RWOO2.js";
10
+ } from "./chunk-RZBV5KTF.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-PKZJZWYN.js";
13
+ } from "./chunk-J4UNR655.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-JP3S4FPO.js";
19
+ } from "./chunk-M65LPNIO.js";
20
20
 
21
21
  // src/tool-hook-input.ts
22
22
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  UNNAMED_ACTION
3
- } from "./chunk-UZCD6OFJ.js";
3
+ } from "./chunk-JYCAAQUW.js";
4
4
  import {
5
5
  askUser,
6
6
  isAwayPaused,
7
7
  isLocalQuestionHandoff,
8
8
  unavailableQuestionUnlessRefused,
9
9
  waitForQuestion
10
- } from "./chunk-PKZJZWYN.js";
10
+ } from "./chunk-J4UNR655.js";
11
11
  import {
12
12
  getMachineId
13
- } from "./chunk-BNJ4H57M.js";
13
+ } from "./chunk-DS7XMYUB.js";
14
14
  import {
15
15
  hookWaitClamped,
16
16
  hookWaitDeadline,
17
17
  scopeBreachReasonOf
18
- } from "./chunk-JP3S4FPO.js";
18
+ } from "./chunk-M65LPNIO.js";
19
19
 
20
20
  // src/pushed-question.ts
21
21
  var scopeQuestionOf = (verdict) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-ODZBKNIA.js";
3
+ } from "./chunk-BKH4LQJC.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-CFZRNQIQ.js";
6
+ } from "./chunk-T6HX6OTY.js";
7
7
  import {
8
8
  backupFile,
9
9
  readJsonSafe,
@@ -14,7 +14,7 @@ import {
14
14
  API_KEY_PREFIX_PATTERN,
15
15
  isRecord,
16
16
  isValidApiKey
17
- } from "./chunk-JP3S4FPO.js";
17
+ } from "./chunk-M65LPNIO.js";
18
18
 
19
19
  // src/shell-alias.ts
20
20
  import { homedir } from "os";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-7H2RWOO2.js";
4
+ } from "./chunk-RZBV5KTF.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-VOFCKEIR.js";
7
+ } from "./chunk-237FYIVC.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-WLRSM634.js";
11
+ } from "./chunk-W4FJR57E.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-JP3S4FPO.js";
14
+ } from "./chunk-M65LPNIO.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-WLRSM634.js";
3
+ } from "./chunk-W4FJR57E.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-TODDEIYG.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-XXCJY3KQ.js";
3
+ } from "./chunk-MRHGK3Q3.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-VOFCKEIR.js";
3
+ } from "./chunk-237FYIVC.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-WLRSM634.js";
10
+ } from "./chunk-W4FJR57E.js";
11
11
  import {
12
12
  atLeast,
13
13
  parseVersion
14
- } from "./chunk-SISRFK3I.js";
14
+ } from "./chunk-A44MRVWG.js";
15
15
  import {
16
16
  CURSOR_GATE_COVERAGE,
17
17
  CURSOR_GATE_SCRIPT,
@@ -21,7 +21,7 @@ import {
21
21
  isCursorHookPayload,
22
22
  isRecord,
23
23
  toolsCoveredByGateEntry
24
- } from "./chunk-JP3S4FPO.js";
24
+ } from "./chunk-M65LPNIO.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -531,8 +531,8 @@ var loadedOnce = (load) => {
531
531
  };
532
532
 
533
533
  // src/codex-desktop-proxy.ts
534
- var loadThePhone = () => import("./api-WTQOMRGG.js");
535
- var loadTheCardRouting = () => import("./codex-card-routing-QZCKG6N5.js");
534
+ var loadThePhone = () => import("./api-7CZR7B53.js");
535
+ var loadTheCardRouting = () => import("./codex-card-routing-X2HUY2AV.js");
536
536
  var theFirstCardLoadsAgain = () => {
537
537
  };
538
538
  var ASKS_WITHOUT_ROUTING = {};
@@ -1085,7 +1085,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1085
1085
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1086
1086
  }
1087
1087
  if (args[0] === APP_CARDS_FLAG) {
1088
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-KMLJJA3K.js");
1088
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-WDQBUF7K.js");
1089
1089
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1090
1090
  }
1091
1091
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  claudeConfigDir
3
- } from "./chunk-WLRSM634.js";
3
+ } from "./chunk-W4FJR57E.js";
4
4
  import {
5
5
  claudePermissionRulesFromSettings
6
- } from "./chunk-JP3S4FPO.js";
6
+ } from "./chunk-M65LPNIO.js";
7
7
 
8
8
  // src/claude-permission-rules.ts
9
9
  import { readFileSync, statSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-TFHTZ6GE.js";
3
+ } from "./chunk-NSBWFX7H.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-6X2O5QI7.js";
6
+ } from "./chunk-CVBSETPW.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-WLRSM634.js";
9
+ } from "./chunk-W4FJR57E.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-TODDEIYG.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-JP3S4FPO.js";
16
+ } from "./chunk-M65LPNIO.js";
17
17
 
18
18
  // src/shared-mcp-key.ts
19
19
  var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-OOCIVAMY.js";
3
+ } from "./chunk-LR3PIGRS.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-JP3S4FPO.js";
6
+ } from "./chunk-M65LPNIO.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-6X2O5QI7.js";
3
+ } from "./chunk-CVBSETPW.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-VSNVDY55.js";
3
+ } from "./chunk-L5RSLIBQ.js";
4
4
  import {
5
5
  canChangeApprovalSettings
6
- } from "./chunk-OUTWFS6J.js";
6
+ } from "./chunk-GKZMBU6T.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-KWFZUAET.js";
10
+ } from "./chunk-3TKTZOKG.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-V4OLQBSN.js";
16
+ } from "./chunk-SZYKS433.js";
17
17
 
18
18
  // src/setup/closing.ts
19
19
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -4,15 +4,15 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-XXCJY3KQ.js";
7
+ } from "./chunk-MRHGK3Q3.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-UZCD6OFJ.js";
11
+ } from "./chunk-JYCAAQUW.js";
12
12
  import {
13
13
  machineDecisionFor,
14
14
  wireVerdictFor
15
- } from "./chunk-JP3S4FPO.js";
15
+ } from "./chunk-M65LPNIO.js";
16
16
 
17
17
  // src/machine-decision-audit.ts
18
18
  import { basename } from "path";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-KWFZUAET.js";
7
+ } from "./chunk-3TKTZOKG.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-UDH2BDU2.js";
10
+ } from "./chunk-PFHRW3LR.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-6X2O5QI7.js";
13
+ } from "./chunk-CVBSETPW.js";
14
14
  import {
15
15
  CLINE_SERVER_NAME_TAKEN,
16
16
  CLINE_SETTINGS_REFUSALS,
@@ -32,10 +32,10 @@ import {
32
32
  withClinePusharyServer,
33
33
  withRefreshedClineKey,
34
34
  withoutClinePusharyServer
35
- } from "./chunk-WLRSM634.js";
35
+ } from "./chunk-W4FJR57E.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-SISRFK3I.js";
38
+ } from "./chunk-A44MRVWG.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -6,21 +6,21 @@ import {
6
6
  McpToolError,
7
7
  SubscriptionRequiredError,
8
8
  callMcpTool
9
- } from "./chunk-3SREEE2O.js";
9
+ } from "./chunk-2KN53MPE.js";
10
10
  import {
11
11
  fetchAsCredential
12
- } from "./chunk-44ZTLOVE.js";
12
+ } from "./chunk-42PVKPHM.js";
13
13
  import {
14
14
  installNetworkDefaults,
15
15
  isNetworkFailure
16
- } from "./chunk-VTT7U6TJ.js";
16
+ } from "./chunk-V2T5ZDMP.js";
17
17
  import {
18
18
  clientReportClaims
19
- } from "./chunk-WLRSM634.js";
19
+ } from "./chunk-W4FJR57E.js";
20
20
  import {
21
21
  getApiKey,
22
22
  getBaseUrl
23
- } from "./chunk-CFZRNQIQ.js";
23
+ } from "./chunk-T6HX6OTY.js";
24
24
  import {
25
25
  ASK_AGENT_NAME_MAX,
26
26
  CLIENT_REPORT_PATH,
@@ -29,7 +29,7 @@ import {
29
29
  TOOL_FAILURE_CODES,
30
30
  degradedLine,
31
31
  truncateLine
32
- } from "./chunk-JP3S4FPO.js";
32
+ } from "./chunk-M65LPNIO.js";
33
33
 
34
34
  // src/api.ts
35
35
  import { randomUUID } from "crypto";