@pushary/agent-hooks 1.9.153 → 1.9.154

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 (123) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{api-CP25UREX.js → api-U7VCJ5IJ.js} +9 -9
  3. package/dist/bin/pushary-audit.js +2 -2
  4. package/dist/bin/pushary-bell-hook.js +22 -22
  5. package/dist/bin/pushary-bell.js +10 -10
  6. package/dist/bin/pushary-claude.js +20 -20
  7. package/dist/bin/pushary-clean.js +31 -31
  8. package/dist/bin/pushary-codex-bridge.js +18 -18
  9. package/dist/bin/pushary-codex-hook.js +27 -27
  10. package/dist/bin/pushary-codex-session.js +8 -8
  11. package/dist/bin/pushary-codex.js +11 -11
  12. package/dist/bin/pushary-connect.js +26 -26
  13. package/dist/bin/pushary-cowork.js +3 -3
  14. package/dist/bin/pushary-daemon.js +38 -38
  15. package/dist/bin/pushary-disconnect.js +22 -22
  16. package/dist/bin/pushary-display-hook.js +42 -40
  17. package/dist/bin/pushary-doctor.js +37 -37
  18. package/dist/bin/pushary-elicitation-hook.js +22 -22
  19. package/dist/bin/pushary-gemini-bridge.js +13 -13
  20. package/dist/bin/pushary-gemini-hook.js +25 -25
  21. package/dist/bin/pushary-hook.js +28 -28
  22. package/dist/bin/pushary-login.js +19 -19
  23. package/dist/bin/pushary-logout.js +21 -21
  24. package/dist/bin/pushary-mcp.js +10 -10
  25. package/dist/bin/pushary-mode.js +14 -14
  26. package/dist/bin/pushary-notification-hook.js +21 -21
  27. package/dist/bin/pushary-opencode-hook.js +24 -24
  28. package/dist/bin/pushary-permission-denied-hook.js +27 -27
  29. package/dist/bin/pushary-permission-hook.js +27 -27
  30. package/dist/bin/pushary-post-hook.js +22 -22
  31. package/dist/bin/pushary-prompt-hook.js +21 -21
  32. package/dist/bin/pushary-session-end-hook.js +21 -21
  33. package/dist/bin/pushary-session-start-hook.js +31 -31
  34. package/dist/bin/pushary-setup.js +53 -62
  35. package/dist/bin/pushary-stats.js +3 -3
  36. package/dist/bin/pushary-status.js +27 -27
  37. package/dist/bin/pushary-stop-hook.js +21 -21
  38. package/dist/bin/pushary-stopfailure-hook.js +21 -21
  39. package/dist/bin/pushary-suggestions.js +14 -14
  40. package/dist/bin/pushary-transcript-register.js +13 -13
  41. package/dist/bin/pushary-transcripts.js +21 -21
  42. package/dist/bin/pushary-upgrade.js +37 -38
  43. package/dist/bin/pushary-wait.js +14 -14
  44. package/dist/bin/pushary.js +6 -6
  45. package/dist/{chunk-V7EEPW7U.js → chunk-2GHUVGB5.js} +2 -2
  46. package/dist/{chunk-XMJRSL5A.js → chunk-3OWCINUY.js} +8 -8
  47. package/dist/{chunk-K3RPTQGZ.js → chunk-4E6PCUYJ.js} +7 -1
  48. package/dist/{chunk-7BXROUKN.js → chunk-6DAAURLB.js} +1 -1
  49. package/dist/{chunk-ZMTMAKZI.js → chunk-6EOSF7WR.js} +7 -7
  50. package/dist/{chunk-NGGBXN6M.js → chunk-6TBHP6RP.js} +4 -4
  51. package/dist/{chunk-KORCPXUS.js → chunk-6VMXXBSZ.js} +3 -3
  52. package/dist/{chunk-7MI43W6R.js → chunk-7LOWA7WF.js} +2 -2
  53. package/dist/{chunk-6RB6DG5U.js → chunk-AIQRVNWO.js} +5 -5
  54. package/dist/{chunk-6QFTOGXF.js → chunk-AM5FQTVF.js} +1 -1
  55. package/dist/{chunk-TQDJSQTK.js → chunk-BKG7F3AY.js} +3 -3
  56. package/dist/{chunk-JJYIPQPG.js → chunk-BR5Z4FYW.js} +1 -1
  57. package/dist/{chunk-JTB3DC7H.js → chunk-C6KJ3X7U.js} +4 -4
  58. package/dist/{chunk-44BHQL5D.js → chunk-DGLRLNQZ.js} +1 -1
  59. package/dist/{chunk-N7ADBRB6.js → chunk-DWWR4G3U.js} +2 -2
  60. package/dist/{chunk-6QVR763H.js → chunk-E2H5IGMP.js} +2 -2
  61. package/dist/{chunk-OHKGBJ4O.js → chunk-ESATURKU.js} +3 -3
  62. package/dist/{chunk-D7DN5DXL.js → chunk-EUAMAIHV.js} +1 -1
  63. package/dist/{chunk-G6QERYOX.js → chunk-F6EPRJDF.js} +2 -2
  64. package/dist/{chunk-A5CQZKTQ.js → chunk-FFFAXIYH.js} +11 -9
  65. package/dist/{chunk-5M2AA3G3.js → chunk-FUZ3KIA2.js} +1 -1
  66. package/dist/{chunk-VND6AFTY.js → chunk-H7TZUYPP.js} +3 -3
  67. package/dist/{chunk-DXCYJHL4.js → chunk-KCDOQU2Y.js} +4 -4
  68. package/dist/{chunk-YM2T76UM.js → chunk-KMOVQIU7.js} +7 -2
  69. package/dist/{chunk-E3P63UWQ.js → chunk-L7KV5SEW.js} +1 -1
  70. package/dist/{chunk-GJQKDHO3.js → chunk-LJQKVACR.js} +4 -4
  71. package/dist/{chunk-RZC7MMY2.js → chunk-LQFGVGHE.js} +1 -1
  72. package/dist/{chunk-DHA32CH3.js → chunk-LQZYHSDL.js} +3 -3
  73. package/dist/{chunk-3PAXV5AO.js → chunk-LROV5XIM.js} +5 -5
  74. package/dist/{chunk-AZ7225CM.js → chunk-MIWMGFYJ.js} +1 -1
  75. package/dist/{chunk-AGZW3MDV.js → chunk-MPNAKEEI.js} +1 -1
  76. package/dist/{chunk-KL7LGD57.js → chunk-MRAC3IOW.js} +1 -1
  77. package/dist/{chunk-UZVU4ZOC.js → chunk-MVPRF6G3.js} +2 -2
  78. package/dist/{chunk-VZKX3B7B.js → chunk-O2DQIATJ.js} +1 -1
  79. package/dist/{chunk-SIEPFBGO.js → chunk-O5KXQCKS.js} +2 -2
  80. package/dist/{chunk-OTYRLDKJ.js → chunk-OKOEWPAM.js} +5 -5
  81. package/dist/{chunk-A5QLHC5S.js → chunk-PW2ZTLGS.js} +1 -1
  82. package/dist/{chunk-VBQU3OFQ.js → chunk-QIZO2G57.js} +2 -2
  83. package/dist/{chunk-XOBZSFHN.js → chunk-QPOYAD62.js} +1 -1
  84. package/dist/{chunk-XMKNE4XR.js → chunk-QV6HCQ2K.js} +10 -10
  85. package/dist/{chunk-OEQFFPBU.js → chunk-QZ4YXAKG.js} +22 -23
  86. package/dist/{chunk-HJDNDZQI.js → chunk-RCTJEXGN.js} +5 -5
  87. package/dist/{chunk-I54ERZRS.js → chunk-RKBWMWPM.js} +2 -2
  88. package/dist/{chunk-ALTCTVBD.js → chunk-ROBVIQWZ.js} +1 -1
  89. package/dist/{chunk-D5HE7ZE7.js → chunk-RUVSBWXC.js} +2 -2
  90. package/dist/{chunk-6FLI6ZLI.js → chunk-STDH6IE7.js} +4 -4
  91. package/dist/{chunk-7GQMN55L.js → chunk-TJUUA3NF.js} +2 -2
  92. package/dist/{chunk-YXR2LIDZ.js → chunk-TVD6FKNF.js} +6 -6
  93. package/dist/{chunk-VBKU5ICI.js → chunk-UNHFYYUM.js} +2 -2
  94. package/dist/{chunk-KNXFZWYU.js → chunk-UWPNSMAA.js} +10 -8
  95. package/dist/{chunk-FLDVCVHA.js → chunk-VNODGGX7.js} +1 -1
  96. package/dist/{chunk-6ZWHFTGD.js → chunk-X64VKAZJ.js} +3 -3
  97. package/dist/{chunk-MXYCC6TR.js → chunk-X6LMBS26.js} +1 -1
  98. package/dist/{chunk-44OIS5QI.js → chunk-X7IKZNRX.js} +4 -4
  99. package/dist/{chunk-HWUMQCKI.js → chunk-XBUFMVU7.js} +7 -7
  100. package/dist/{chunk-AHLKBYZN.js → chunk-XWJVSAVU.js} +2 -2
  101. package/dist/{chunk-HJW4HIGB.js → chunk-YMCLBYAQ.js} +1 -1
  102. package/dist/{chunk-WDO3YKVN.js → chunk-YOCSXG3N.js} +3 -3
  103. package/dist/{chunk-UOJQZ7L5.js → chunk-ZFYZV7WG.js} +12 -12
  104. package/dist/{chunk-FOU4YBB6.js → chunk-ZGTQW6XD.js} +3 -3
  105. package/dist/{chunk-4DGCCNVG.js → chunk-ZJMS2BWD.js} +1 -1
  106. package/dist/{chunk-F2XOMBVP.js → chunk-ZKFYBNHA.js} +5 -5
  107. package/dist/{chunk-K5QMB6A7.js → chunk-ZO2GP56D.js} +6 -23
  108. package/dist/{chunk-HLMDINWY.js → chunk-ZWLH3BXV.js} +2 -2
  109. package/dist/{chunk-6BUQ6KQ3.js → chunk-ZYAPD2XN.js} +7 -7
  110. package/dist/{chunk-7PKA5C7Z.js → chunk-ZZFNKGFE.js} +4 -4
  111. package/dist/{codex-app-cards-switch-FPUS5HGR.js → codex-app-cards-switch-GNJRPEMD.js} +10 -10
  112. package/dist/{codex-desktop-launch-K22UOYK4.js → codex-desktop-launch-5YZ4WCA4.js} +1 -1
  113. package/dist/{codex-session-launch-UALDJWDA.js → codex-session-launch-P3ZUEJQI.js} +15 -15
  114. package/dist/{config-37VCCNI3.js → config-HOIM5RUY.js} +3 -2
  115. package/dist/{global-upgrade-P6UR6T67.js → global-upgrade-3TX5MDOW.js} +8 -8
  116. package/dist/{identity-VKL2KE5Y.js → identity-J2AVMZVV.js} +3 -3
  117. package/dist/{live-capabilities-YKXXTWIP.js → live-capabilities-CRNMW6RF.js} +3 -3
  118. package/dist/{paths-P5H3NCEO.js → paths-BWOEOPPJ.js} +2 -2
  119. package/dist/{reapply-MLREXGHX.js → reapply-QQGXNOW5.js} +24 -24
  120. package/dist/src/index.js +27 -27
  121. package/dist/{upgrade-lock-HBLAJ7ID.js → upgrade-lock-ET4ON56I.js} +3 -5
  122. package/dist/{usage-6E3PTA6F.js → usage-NVLSP3QT.js} +2 -2
  123. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  installNetworkDefaults
4
- } from "../chunk-UZVU4ZOC.js";
5
- import "../chunk-HJW4HIGB.js";
4
+ } from "../chunk-MVPRF6G3.js";
5
+ import "../chunk-YMCLBYAQ.js";
6
6
  import "../chunk-YU2EUD7O.js";
7
- import "../chunk-MXYCC6TR.js";
8
- import "../chunk-OEQFFPBU.js";
9
- import "../chunk-5M2AA3G3.js";
7
+ import "../chunk-X6LMBS26.js";
8
+ import "../chunk-QZ4YXAKG.js";
9
+ import "../chunk-FUZ3KIA2.js";
10
10
  import {
11
11
  EXIT
12
12
  } from "../chunk-BG4HHB7E.js";
@@ -15,7 +15,7 @@ import {
15
15
  LISTED_COMMANDS,
16
16
  renderHelp,
17
17
  resolveCommandName
18
- } from "../chunk-K3RPTQGZ.js";
18
+ } from "../chunk-4E6PCUYJ.js";
19
19
  import {
20
20
  getPackageVersion
21
21
  } from "../chunk-WIIMW5YO.js";
@@ -5,10 +5,10 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-MXYCC6TR.js";
8
+ } from "./chunk-X6LMBS26.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-OEQFFPBU.js";
11
+ } from "./chunk-QZ4YXAKG.js";
12
12
  import {
13
13
  isRecord
14
14
  } from "./chunk-BEYMW4FP.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-HJDNDZQI.js";
3
+ } from "./chunk-RCTJEXGN.js";
4
4
  import {
5
5
  canChangeApprovalSettings
6
- } from "./chunk-6QFTOGXF.js";
6
+ } from "./chunk-AM5FQTVF.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-6QVR763H.js";
10
+ } from "./chunk-E2H5IGMP.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND,
16
16
  npmExecSetupCommandFor
17
- } from "./chunk-K3RPTQGZ.js";
17
+ } from "./chunk-4E6PCUYJ.js";
18
18
 
19
19
  // src/setup/closing.ts
20
20
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -267,10 +267,10 @@ var RETRY_AGENT_LABEL = "Retry just this agent:";
267
267
  var INSTALL_NODE_STEP = "Install the current Node.js LTS, which includes npm, then run setup again.";
268
268
  var NPM_PREFIX_STEP = "npm can't install globally here. Use nvm, or run: npm config set prefix ~/.npm-global, then run setup again.";
269
269
  var NPM_FILE_IN_USE_STEP = "Close other terminals or editors that use Node, then run setup again.";
270
- var nextStepFor = (failure, releaseAgeRefusedAgents) => {
270
+ var nextStepFor = (failure, releaseAgeRefusedAgents, recovery) => {
271
271
  switch (failure.remedy) {
272
272
  case "use-npm-policy":
273
- return { kind: "use-npm-policy", instruction: `Your npm only installs releases older than its min-release-age. Run this instead: ${npmExecSetupCommandFor(process.platform, releaseAgeRefusedAgents)}` };
273
+ return { kind: "use-npm-policy", instruction: `Wait until this exact release meets your npm min-release-age policy. Resolve any unfinished-install warning before retrying, then run: ${npmExecSetupCommandFor(recovery.platform, releaseAgeRefusedAgents, recovery.version)}` };
274
274
  case "install-node":
275
275
  return { kind: "install-node", instruction: INSTALL_NODE_STEP };
276
276
  case "fix-npm-prefix":
@@ -283,9 +283,9 @@ var nextStepFor = (failure, releaseAgeRefusedAgents) => {
283
283
  return { kind: "retry-agent", command: retryAgentCommand(failure.agent) };
284
284
  }
285
285
  };
286
- var describeAgentFailures = (failures, agentName) => failures.map((failure) => ({
286
+ var describeAgentFailures = (failures, agentName, recovery) => failures.map((failure) => ({
287
287
  summary: `${agentName(failure.agent)}: ${failure.detail}`,
288
- next: nextStepFor(failure, agentsRefusedForReleaseAge(failures))
288
+ next: nextStepFor(failure, agentsRefusedForReleaseAge(failures), recovery)
289
289
  }));
290
290
  var agentsRefusedForReleaseAge = (failures) => failures.filter((failure) => failure.remedy === "use-npm-policy").map((failure) => failure.agent);
291
291
  var agentFailureFollowUps = (failures) => [
@@ -1,3 +1,6 @@
1
+ import {
2
+ isReleaseVersion
3
+ } from "./chunk-WIIMW5YO.js";
1
4
  import {
2
5
  DISCONNECT_AGENT_IDS,
3
6
  SETUP_AGENT_CHOICES,
@@ -35,7 +38,10 @@ var describeMode = (mode) => {
35
38
  // src/cli/commands.ts
36
39
  var npxLatestCommandFor = (platform) => `${platform === "win32" ? "npx.cmd" : "npx"} pushary@latest`;
37
40
  var NPX_LATEST_COMMAND = npxLatestCommandFor(process.platform);
38
- var npmExecSetupCommandFor = (platform, agents) => `${platform === "win32" ? "npm.cmd" : "npm"} exec --yes --package=pushary@latest -c "pushary setup --agents ${agents.join(",")}"`;
41
+ var npmExecSetupCommandFor = (platform, agents, version) => {
42
+ if (!isReleaseVersion(version) || version === "0.0.0") throw new Error("Recovery requires a known release version");
43
+ return `${platform === "win32" ? "npm.cmd" : "npm"} exec --yes --package=pushary@${version} -c "pushary setup --agents ${agents.join(",")}"`;
44
+ };
39
45
  var COMMAND_LIST = [
40
46
  {
41
47
  name: "codex",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-MXYCC6TR.js";
3
+ } from "./chunk-X6LMBS26.js";
4
4
  import {
5
5
  readRegularJsonFile,
6
6
  writeFileAtomic
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-AGZW3MDV.js";
3
+ } from "./chunk-MPNAKEEI.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-7BXROUKN.js";
7
+ } from "./chunk-6DAAURLB.js";
8
8
  import {
9
9
  OPENCODE_HOOK_BINARY,
10
10
  openCodeConfigDir,
11
11
  openCodePluginArgv,
12
12
  openCodePluginFile
13
- } from "./chunk-FOU4YBB6.js";
13
+ } from "./chunk-ZGTQW6XD.js";
14
14
  import {
15
15
  liveCursorGateCoverage
16
- } from "./chunk-TQDJSQTK.js";
16
+ } from "./chunk-BKG7F3AY.js";
17
17
  import {
18
18
  compatibleConfigFile,
19
19
  compatibleHookEvents,
20
20
  grokHome,
21
21
  parseConfigDocument
22
- } from "./chunk-DHA32CH3.js";
22
+ } from "./chunk-LQZYHSDL.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-VBQU3OFQ.js";
28
+ } from "./chunk-QIZO2G57.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-MXYCC6TR.js";
56
+ } from "./chunk-X6LMBS26.js";
57
57
  import {
58
58
  readRegularJsonFile,
59
59
  readRegularTextFile
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-WDO3YKVN.js";
11
+ } from "./chunk-YOCSXG3N.js";
12
12
  import {
13
13
  installNetworkDefaults,
14
14
  isNetworkFailure
15
- } from "./chunk-UZVU4ZOC.js";
15
+ } from "./chunk-MVPRF6G3.js";
16
16
  import {
17
17
  fetchAsCredential
18
18
  } from "./chunk-EENGXQP2.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-MXYCC6TR.js";
21
+ } from "./chunk-X6LMBS26.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-5M2AA3G3.js";
25
+ } from "./chunk-FUZ3KIA2.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-V7EEPW7U.js";
16
+ } from "./chunk-2GHUVGB5.js";
17
17
  import {
18
18
  needsShell
19
19
  } from "./chunk-H6CL3T2S.js";
@@ -25,10 +25,10 @@ import {
25
25
  openClawDirectoriesToLookIn,
26
26
  openClawPluginFolder,
27
27
  openClawSetupReceiptDirectory
28
- } from "./chunk-MXYCC6TR.js";
28
+ } from "./chunk-X6LMBS26.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-OEQFFPBU.js";
31
+ } from "./chunk-QZ4YXAKG.js";
32
32
  import {
33
33
  readJsonSafe,
34
34
  writeJsonAtomic
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-E3P63UWQ.js";
3
+ } from "./chunk-L7KV5SEW.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-5M2AA3G3.js";
6
+ } from "./chunk-FUZ3KIA2.js";
7
7
  import {
8
8
  backupFile,
9
9
  readJsonSafe,
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-HJDNDZQI.js";
17
+ } from "./chunk-RCTJEXGN.js";
18
18
  import {
19
19
  describeRevokeAttempt,
20
20
  keyNoLongerAccepted,
@@ -29,16 +29,16 @@ import {
29
29
  isCI,
30
30
  terminalColumns,
31
31
  useColor
32
- } from "./chunk-YM2T76UM.js";
32
+ } from "./chunk-KMOVQIU7.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-G6QERYOX.js";
35
+ } from "./chunk-F6EPRJDF.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-E3P63UWQ.js";
38
+ } from "./chunk-L7KV5SEW.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-K3RPTQGZ.js";
41
+ } from "./chunk-4E6PCUYJ.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-G6QERYOX.js";
3
+ } from "./chunk-F6EPRJDF.js";
4
4
  import {
5
5
  KEY_SCOPE
6
6
  } from "./chunk-BEYMW4FP.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-VBQU3OFQ.js";
3
+ } from "./chunk-QIZO2G57.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-MXYCC6TR.js";
10
+ } from "./chunk-X6LMBS26.js";
11
11
  import {
12
12
  atLeast,
13
13
  parseVersion
14
- } from "./chunk-OEQFFPBU.js";
14
+ } from "./chunk-QZ4YXAKG.js";
15
15
  import {
16
16
  CURSOR_GATE_COVERAGE,
17
17
  CURSOR_GATE_SCRIPT,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YU2EUD7O.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-K3RPTQGZ.js";
12
+ } from "./chunk-4E6PCUYJ.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-TQDJSQTK.js";
4
+ } from "./chunk-BKG7F3AY.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-HWUMQCKI.js";
7
+ } from "./chunk-XBUFMVU7.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-DHA32CH3.js";
10
+ } from "./chunk-LQZYHSDL.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-NGGBXN6M.js";
13
+ } from "./chunk-6TBHP6RP.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-7MI43W6R.js";
3
+ } from "./chunk-7LOWA7WF.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
  realpath
3
- } from "./chunk-A5QLHC5S.js";
3
+ } from "./chunk-PW2ZTLGS.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-CYTPQDQY.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-OEQFFPBU.js";
15
+ } from "./chunk-QZ4YXAKG.js";
16
16
  import {
17
17
  CLAUDE_BRIDGE_CAPABILITY,
18
18
  CLAUDE_RESUME_CAPABILITY,
@@ -3,13 +3,13 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-OEQFFPBU.js";
6
+ } from "./chunk-QZ4YXAKG.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-TODDEIYG.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-K3RPTQGZ.js";
12
+ } from "./chunk-4E6PCUYJ.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
15
  } from "./chunk-BEYMW4FP.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-DHA32CH3.js";
4
+ } from "./chunk-LQZYHSDL.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-VBQU3OFQ.js";
7
+ } from "./chunk-QIZO2G57.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-MXYCC6TR.js";
11
+ } from "./chunk-X6LMBS26.js";
12
12
  import {
13
13
  isRecord
14
14
  } from "./chunk-BEYMW4FP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-MXYCC6TR.js";
3
+ } from "./chunk-X6LMBS26.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-UZVU4ZOC.js";
3
+ } from "./chunk-MVPRF6G3.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-YU2EUD7O.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-5M2AA3G3.js";
9
+ } from "./chunk-FUZ3KIA2.js";
10
10
  import {
11
11
  EXIT
12
12
  } from "./chunk-BG4HHB7E.js";
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-K5QMB6A7.js";
6
+ } from "./chunk-ZO2GP56D.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-N7ADBRB6.js";
9
+ } from "./chunk-DWWR4G3U.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,25 +18,25 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-FLDVCVHA.js";
21
+ } from "./chunk-VNODGGX7.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-MXYCC6TR.js";
26
+ } from "./chunk-X6LMBS26.js";
27
27
  import {
28
28
  execNpm,
29
29
  fetchLatestPublishedVersion,
30
30
  npmErrorMessage,
31
31
  readGlobalCliInstallAt,
32
32
  readGlobalPrefix
33
- } from "./chunk-OEQFFPBU.js";
33
+ } from "./chunk-QZ4YXAKG.js";
34
34
  import {
35
35
  EXIT
36
36
  } from "./chunk-BG4HHB7E.js";
37
37
  import {
38
38
  NPX_LATEST_COMMAND
39
- } from "./chunk-K3RPTQGZ.js";
39
+ } from "./chunk-4E6PCUYJ.js";
40
40
  import {
41
41
  commandsPackage,
42
42
  globalUpgradeEntry,
@@ -347,7 +347,8 @@ var forgetUnfinishedUpgrade = (record, upgradedFrom) => {
347
347
  var describeUpgradeStart = (subject, latest) => `Upgrading ${subject.name} ${subject.version} -> ${latest ?? "latest"}`;
348
348
  var upgradeInstalledPackage = async (subject, effects) => {
349
349
  const pendingFinish = effects.hasPendingFinish(subject.version);
350
- const latest = await effects.fetchLatest(subject.name);
350
+ const published = await effects.fetchLatest(subject.name);
351
+ const latest = published !== void 0 && isReleaseVersion(published) ? published : void 0;
351
352
  const newerPublished = latest !== void 0 && isNewerVersion(latest, subject.version);
352
353
  if (pendingFinish && !newerPublished) {
353
354
  const finish2 = await effects.finish(subject);
@@ -357,10 +358,11 @@ var upgradeInstalledPackage = async (subject, effects) => {
357
358
  }
358
359
  effects.recordFinished();
359
360
  }
360
- if (latest !== void 0 && !newerPublished) return { kind: "current", version: subject.version };
361
+ if (latest === void 0) return { kind: "install_failed", detail: "Could not resolve an exact published release. No package was installed; check the registry connection and retry." };
362
+ if (!newerPublished) return { kind: "current", version: subject.version };
361
363
  effects.announce(describeUpgradeStart(subject, latest));
362
364
  try {
363
- effects.install(subject.name);
365
+ effects.install(subject.name, latest);
364
366
  } catch (error) {
365
367
  return { kind: "install_failed", detail: npmErrorMessage(error) };
366
368
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-K3RPTQGZ.js";
3
+ } from "./chunk-4E6PCUYJ.js";
4
4
 
5
5
  // src/config.ts
6
6
  import { readFileSync } from "fs";
@@ -13,13 +13,13 @@ import {
13
13
  } from "./chunk-G66WIAST.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-7MI43W6R.js";
16
+ } from "./chunk-7LOWA7WF.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-5M2AA3G3.js";
19
+ } from "./chunk-FUZ3KIA2.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-K3RPTQGZ.js";
22
+ } from "./chunk-4E6PCUYJ.js";
23
23
  import {
24
24
  isValidApiKey
25
25
  } from "./chunk-BEYMW4FP.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-I54ERZRS.js";
3
+ } from "./chunk-RKBWMWPM.js";
4
4
  import {
5
5
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
6
6
  HERMES_COMMAND_ALLOWLIST_KEY,
7
7
  HERMES_GATE_TOOLS_KEY,
8
8
  HERMES_SHELL_TOOL
9
- } from "./chunk-KORCPXUS.js";
9
+ } from "./chunk-6VMXXBSZ.js";
10
10
  import {
11
11
  retryAgentCommand
12
- } from "./chunk-6QVR763H.js";
12
+ } from "./chunk-E2H5IGMP.js";
13
13
  import {
14
14
  NPX_LATEST_COMMAND
15
- } from "./chunk-K3RPTQGZ.js";
15
+ } from "./chunk-4E6PCUYJ.js";
16
16
 
17
17
  // src/setup/codex-trust.ts
18
18
  var CODEX_TRUST_TELEMETRY = {
@@ -1,3 +1,7 @@
1
+ import {
2
+ redactSecretsFromContent
3
+ } from "./chunk-BEYMW4FP.js";
4
+
1
5
  // src/cli/terminal-row.ts
2
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
3
7
  var clipToRow = (text, columns) => {
@@ -74,9 +78,9 @@ var describeError = (err) => {
74
78
  if (signalled.killed && signalled.signal === "SIGTERM") {
75
79
  return "timed out, check your network connection";
76
80
  }
77
- return err.message;
81
+ return redactSecretsFromContent(err.message);
78
82
  }
79
- return String(err);
83
+ return redactSecretsFromContent(String(err));
80
84
  };
81
85
  var createIo = (stream = process.stdout, context = {}) => {
82
86
  const color = useColor(context, stream);
@@ -134,5 +138,6 @@ export {
134
138
  ciMarker,
135
139
  isCI,
136
140
  describeCiReason,
141
+ describeError,
137
142
  createIo
138
143
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-5M2AA3G3.js";
3
+ } from "./chunk-FUZ3KIA2.js";
4
4
  import {
5
5
  normalizeInstallSource
6
6
  } from "./chunk-BEYMW4FP.js";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  announceSubscriptionRequired,
3
3
  isDeferAnswer
4
- } from "./chunk-ALTCTVBD.js";
4
+ } from "./chunk-ROBVIQWZ.js";
5
5
  import {
6
6
  askUser,
7
7
  isDecisionStopped,
8
8
  isQuestionLimitRefusal,
9
9
  waitForQuestion
10
- } from "./chunk-NGGBXN6M.js";
10
+ } from "./chunk-6TBHP6RP.js";
11
11
  import {
12
12
  SubscriptionRequiredError
13
- } from "./chunk-WDO3YKVN.js";
13
+ } from "./chunk-YOCSXG3N.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-HJW4HIGB.js";
16
+ } from "./chunk-YMCLBYAQ.js";
17
17
  import {
18
18
  ASK_CONTEXT_MAX,
19
19
  agentQuestionContext,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-BG4HHB7E.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-K3RPTQGZ.js";
6
+ } from "./chunk-4E6PCUYJ.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-WIIMW5YO.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-VBQU3OFQ.js";
4
+ } from "./chunk-QIZO2G57.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-6BUQ6KQ3.js";
7
+ } from "./chunk-ZYAPD2XN.js";
8
8
  import {
9
9
  compatibleToolLookup
10
10
  } from "./chunk-5EEIROLA.js";
@@ -19,7 +19,7 @@ import {
19
19
  isPusharyHook,
20
20
  registerHookEntry,
21
21
  removeClaudeMcpServers
22
- } from "./chunk-MXYCC6TR.js";
22
+ } from "./chunk-X6LMBS26.js";
23
23
  import {
24
24
  HOOK_COMPATIBLE_PROFILES,
25
25
  PHONE_ANSWERED_TOOLS,
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-H6CL3T2S.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-HJW4HIGB.js";
7
+ } from "./chunk-YMCLBYAQ.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-7MI43W6R.js";
10
+ } from "./chunk-7LOWA7WF.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-MXYCC6TR.js";
13
+ } from "./chunk-X6LMBS26.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-OEQFFPBU.js";
16
+ } from "./chunk-QZ4YXAKG.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-5M2AA3G3.js";
19
+ } from "./chunk-FUZ3KIA2.js";
20
20
  import {
21
21
  readJsonSafe,
22
22
  writeFileAtomic,
@@ -4,7 +4,7 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-6BUQ6KQ3.js";
7
+ } from "./chunk-ZYAPD2XN.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction