@pushary/agent-hooks 1.9.152 → 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 (136) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{api-IQMAAMIS.js → api-U7VCJ5IJ.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 +11 -11
  6. package/dist/bin/pushary-claude.js +27 -27
  7. package/dist/bin/pushary-clean.js +37 -37
  8. package/dist/bin/pushary-codex-bridge.js +23 -23
  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 +16 -16
  12. package/dist/bin/pushary-connect.js +33 -33
  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 +28 -28
  16. package/dist/bin/pushary-display-hook.js +49 -42
  17. package/dist/bin/pushary-doctor.js +45 -45
  18. package/dist/bin/pushary-elicitation-hook.js +28 -28
  19. package/dist/bin/pushary-gemini-bridge.js +17 -17
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +35 -35
  22. package/dist/bin/pushary-login.js +22 -22
  23. package/dist/bin/pushary-logout.js +28 -28
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +16 -16
  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 +35 -35
  29. package/dist/bin/pushary-permission-hook.js +35 -35
  30. package/dist/bin/pushary-post-hook.js +28 -28
  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 +37 -37
  34. package/dist/bin/pushary-setup.js +61 -70
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +34 -34
  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 +16 -16
  40. package/dist/bin/pushary-transcript-register.js +17 -17
  41. package/dist/bin/pushary-transcripts.js +25 -25
  42. package/dist/bin/pushary-upgrade.js +43 -44
  43. package/dist/bin/pushary-wait.js +16 -16
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-3N5RC7KI.js → chunk-2GHUVGB5.js} +3 -3
  46. package/dist/{chunk-K73XYVAI.js → chunk-3OWCINUY.js} +8 -8
  47. package/dist/{chunk-P474YA7K.js → chunk-3UONQKDQ.js} +1 -1
  48. package/dist/{chunk-ZUS334Z2.js → chunk-4E6PCUYJ.js} +8 -2
  49. package/dist/{chunk-JKP27CWR.js → chunk-5EEIROLA.js} +1 -1
  50. package/dist/{chunk-VAXPBUY7.js → chunk-6DAAURLB.js} +2 -2
  51. package/dist/{chunk-PDALRESB.js → chunk-6EOSF7WR.js} +8 -8
  52. package/dist/{chunk-H3W3GRV6.js → chunk-6FGTTNP4.js} +1 -1
  53. package/dist/{chunk-F5KUZBN7.js → chunk-6TBHP6RP.js} +6 -6
  54. package/dist/{chunk-YELJYFSC.js → chunk-6VMXXBSZ.js} +4 -4
  55. package/dist/{chunk-KSQOSFWU.js → chunk-7LOWA7WF.js} +3 -3
  56. package/dist/{chunk-HZUVLAWB.js → chunk-AIQRVNWO.js} +6 -6
  57. package/dist/{chunk-MIVJN6UX.js → chunk-AM5FQTVF.js} +2 -2
  58. package/dist/{chunk-BEGXHUFW.js → chunk-BEYMW4FP.js} +7 -2
  59. package/dist/{chunk-K3RITWPY.js → chunk-BKG7F3AY.js} +4 -4
  60. package/dist/{chunk-HYKV5VFO.js → chunk-BR5Z4FYW.js} +3 -3
  61. package/dist/{chunk-IZIUWALV.js → chunk-C6KJ3X7U.js} +5 -5
  62. package/dist/{chunk-GBVNCGF5.js → chunk-DGLRLNQZ.js} +1 -1
  63. package/dist/{chunk-672GQ3QP.js → chunk-DWWR4G3U.js} +3 -3
  64. package/dist/{chunk-NWRILLTQ.js → chunk-E2H5IGMP.js} +3 -3
  65. package/dist/{chunk-AVB5ZJRA.js → chunk-EENGXQP2.js} +1 -1
  66. package/dist/{chunk-NPRN6U2N.js → chunk-ESATURKU.js} +4 -4
  67. package/dist/{chunk-43XJ7U63.js → chunk-EUAMAIHV.js} +2 -2
  68. package/dist/{chunk-UYWRWMVG.js → chunk-F6EPRJDF.js} +3 -3
  69. package/dist/{chunk-JHYXXSXE.js → chunk-FFFAXIYH.js} +11 -9
  70. package/dist/{chunk-LFMW5JU5.js → chunk-FUZ3KIA2.js} +1 -1
  71. package/dist/{chunk-WF4GAVIZ.js → chunk-H7TZUYPP.js} +4 -4
  72. package/dist/{chunk-W26FWH7E.js → chunk-IFYBTFGJ.js} +1 -1
  73. package/dist/{chunk-VJCNWZWT.js → chunk-JPXW7CB3.js} +1 -1
  74. package/dist/{chunk-ZYES37XJ.js → chunk-KCDOQU2Y.js} +4 -4
  75. package/dist/{chunk-YM2T76UM.js → chunk-KMOVQIU7.js} +7 -2
  76. package/dist/{chunk-H3PD7NM6.js → chunk-L7KV5SEW.js} +2 -2
  77. package/dist/{chunk-J7ZT4QIS.js → chunk-LJQKVACR.js} +5 -5
  78. package/dist/{chunk-YGC22HOG.js → chunk-LPAPVM5J.js} +1 -1
  79. package/dist/{chunk-2PWQQ5S4.js → chunk-LQFGVGHE.js} +1 -1
  80. package/dist/{chunk-RPGXFONU.js → chunk-LQZYHSDL.js} +5 -5
  81. package/dist/{chunk-ITQPLAJU.js → chunk-LROV5XIM.js} +6 -6
  82. package/dist/{chunk-BVI7NBGK.js → chunk-MIWMGFYJ.js} +3 -3
  83. package/dist/{chunk-AHAVUAFN.js → chunk-MPNAKEEI.js} +2 -2
  84. package/dist/{chunk-USJEAJBM.js → chunk-MRAC3IOW.js} +1 -1
  85. package/dist/{chunk-HDG5E3KL.js → chunk-MVPRF6G3.js} +3 -3
  86. package/dist/{chunk-GRKS5KRJ.js → chunk-O2DQIATJ.js} +1 -1
  87. package/dist/{chunk-ED6YWQEU.js → chunk-O5KXQCKS.js} +4 -4
  88. package/dist/{chunk-2PCWFDLS.js → chunk-OKOEWPAM.js} +5 -5
  89. package/dist/{chunk-7T75RUZJ.js → chunk-ORELODI4.js} +1 -1
  90. package/dist/{chunk-XNZT3Y3Y.js → chunk-PW2ZTLGS.js} +2 -2
  91. package/dist/{chunk-VMGVFV4F.js → chunk-QIZO2G57.js} +4 -4
  92. package/dist/{chunk-6B5OLJFA.js → chunk-QPOYAD62.js} +1 -1
  93. package/dist/{chunk-IQ6ZOIJW.js → chunk-QV6HCQ2K.js} +11 -11
  94. package/dist/{chunk-SI4WLQRD.js → chunk-QZ4YXAKG.js} +22 -23
  95. package/dist/{chunk-6U4HTJDH.js → chunk-RCTJEXGN.js} +6 -6
  96. package/dist/{chunk-7THR5LFY.js → chunk-RKBWMWPM.js} +2 -2
  97. package/dist/{chunk-SY75XL7K.js → chunk-ROBVIQWZ.js} +1 -1
  98. package/dist/{chunk-UBOZHYDV.js → chunk-RUVSBWXC.js} +2 -2
  99. package/dist/{chunk-43TBZRPG.js → chunk-S4GSEFRL.js} +1 -1
  100. package/dist/{chunk-X5ECZTDF.js → chunk-STDH6IE7.js} +8 -8
  101. package/dist/{chunk-2NEN7KVF.js → chunk-TJUUA3NF.js} +2 -2
  102. package/dist/{chunk-4RFLYU65.js → chunk-TTFJOZZN.js} +1 -1
  103. package/dist/{chunk-E2ZX6DAP.js → chunk-TVD6FKNF.js} +7 -7
  104. package/dist/{chunk-4LVISHV6.js → chunk-TVV7NN6T.js} +1 -1
  105. package/dist/{chunk-4P4G4AGP.js → chunk-UNHFYYUM.js} +3 -3
  106. package/dist/{chunk-4BUSJQJH.js → chunk-UWPNSMAA.js} +11 -9
  107. package/dist/{chunk-OOIX6OGT.js → chunk-VNODGGX7.js} +2 -2
  108. package/dist/{chunk-ESHJ67UO.js → chunk-X64VKAZJ.js} +4 -4
  109. package/dist/{chunk-YKCACY4F.js → chunk-X6LMBS26.js} +2 -2
  110. package/dist/{chunk-ADZQYXHK.js → chunk-X7IKZNRX.js} +5 -5
  111. package/dist/{chunk-4NZORVWS.js → chunk-XBUFMVU7.js} +10 -10
  112. package/dist/{chunk-6FIQQLB4.js → chunk-XWJVSAVU.js} +3 -3
  113. package/dist/{chunk-ISF5ESY4.js → chunk-YMCLBYAQ.js} +1 -1
  114. package/dist/{chunk-WUFOQ3BO.js → chunk-YOCSXG3N.js} +5 -5
  115. package/dist/{chunk-FT4V3IJ2.js → chunk-ZFYZV7WG.js} +16 -16
  116. package/dist/{chunk-QXD25T2R.js → chunk-ZGTQW6XD.js} +5 -5
  117. package/dist/{chunk-XVIPSHT3.js → chunk-ZJMS2BWD.js} +3 -3
  118. package/dist/{chunk-BKXMMYEJ.js → chunk-ZKFYBNHA.js} +5 -5
  119. package/dist/{chunk-DJCTVJR4.js → chunk-ZO2GP56D.js} +6 -23
  120. package/dist/{chunk-G7UI7IQN.js → chunk-ZWLH3BXV.js} +2 -2
  121. package/dist/{chunk-NLEUWI4M.js → chunk-ZYAPD2XN.js} +12 -12
  122. package/dist/{chunk-XTIUW3CE.js → chunk-ZZFNKGFE.js} +5 -5
  123. package/dist/{codex-app-cards-switch-ZC2QNMYV.js → codex-app-cards-switch-GNJRPEMD.js} +11 -11
  124. package/dist/{codex-card-routing-7S6SQSCN.js → codex-card-routing-KAAZTFYE.js} +2 -2
  125. package/dist/{codex-desktop-launch-7A7YFJEW.js → codex-desktop-launch-5YZ4WCA4.js} +1 -1
  126. package/dist/{codex-session-launch-6TN6U52H.js → codex-session-launch-P3ZUEJQI.js} +20 -20
  127. package/dist/{config-GC6NPWRS.js → config-HOIM5RUY.js} +4 -3
  128. package/dist/{global-upgrade-2QO2GEFD.js → global-upgrade-3TX5MDOW.js} +9 -9
  129. package/dist/{identity-7K2E5ZRO.js → identity-J2AVMZVV.js} +4 -4
  130. package/dist/{live-capabilities-6WMTLNQN.js → live-capabilities-CRNMW6RF.js} +4 -4
  131. package/dist/{paths-BJUKHDVE.js → paths-BWOEOPPJ.js} +3 -3
  132. package/dist/{reapply-ODUBZT4P.js → reapply-QQGXNOW5.js} +30 -30
  133. package/dist/src/index.js +34 -34
  134. package/dist/{upgrade-lock-N6FDN5Z7.js → upgrade-lock-ET4ON56I.js} +4 -6
  135. package/dist/{usage-4PYAM3IB.js → usage-NVLSP3QT.js} +3 -3
  136. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-6U4HTJDH.js";
3
+ } from "./chunk-RCTJEXGN.js";
4
4
  import {
5
5
  canChangeApprovalSettings
6
- } from "./chunk-MIVJN6UX.js";
6
+ } from "./chunk-AM5FQTVF.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-NWRILLTQ.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-ZUS334Z2.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,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-BEGXHUFW.js";
4
+ } from "./chunk-BEYMW4FP.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -1,8 +1,11 @@
1
+ import {
2
+ isReleaseVersion
3
+ } from "./chunk-WIIMW5YO.js";
1
4
  import {
2
5
  DISCONNECT_AGENT_IDS,
3
6
  SETUP_AGENT_CHOICES,
4
7
  isApprovalMode
5
- } from "./chunk-BEGXHUFW.js";
8
+ } from "./chunk-BEYMW4FP.js";
6
9
 
7
10
  // src/cli/mode-request.ts
8
11
  var parseDuration = (value) => {
@@ -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",
@@ -25,7 +25,7 @@ import {
25
25
  reportableSessionId,
26
26
  toToolLookup,
27
27
  truncateLine
28
- } from "./chunk-BEGXHUFW.js";
28
+ } from "./chunk-BEYMW4FP.js";
29
29
 
30
30
  // ../hook-mapping/src/commit-receipt.ts
31
31
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-YKCACY4F.js";
3
+ } from "./chunk-X6LMBS26.js";
4
4
  import {
5
5
  readRegularJsonFile,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-BEGXHUFW.js";
16
+ } from "./chunk-BEYMW4FP.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-AHAVUAFN.js";
3
+ } from "./chunk-MPNAKEEI.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-VAXPBUY7.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-QXD25T2R.js";
13
+ } from "./chunk-ZGTQW6XD.js";
14
14
  import {
15
15
  liveCursorGateCoverage
16
- } from "./chunk-K3RITWPY.js";
16
+ } from "./chunk-BKG7F3AY.js";
17
17
  import {
18
18
  compatibleConfigFile,
19
19
  compatibleHookEvents,
20
20
  grokHome,
21
21
  parseConfigDocument
22
- } from "./chunk-RPGXFONU.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-VMGVFV4F.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-YKCACY4F.js";
56
+ } from "./chunk-X6LMBS26.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-BEGXHUFW.js";
70
+ } from "./chunk-BEYMW4FP.js";
71
71
 
72
72
  // src/hook-wiring.ts
73
73
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-BEGXHUFW.js";
3
+ } from "./chunk-BEYMW4FP.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-WUFOQ3BO.js";
11
+ } from "./chunk-YOCSXG3N.js";
12
12
  import {
13
13
  installNetworkDefaults,
14
14
  isNetworkFailure
15
- } from "./chunk-HDG5E3KL.js";
15
+ } from "./chunk-MVPRF6G3.js";
16
16
  import {
17
17
  fetchAsCredential
18
- } from "./chunk-AVB5ZJRA.js";
18
+ } from "./chunk-EENGXQP2.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-YKCACY4F.js";
21
+ } from "./chunk-X6LMBS26.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-LFMW5JU5.js";
25
+ } from "./chunk-FUZ3KIA2.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -32,7 +32,7 @@ import {
32
32
  degradedLine,
33
33
  isDecisionStoppedReply,
34
34
  truncateLine
35
- } from "./chunk-BEGXHUFW.js";
35
+ } from "./chunk-BEYMW4FP.js";
36
36
 
37
37
  // src/api.ts
38
38
  import { randomUUID } from "crypto";
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-3N5RC7KI.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-YKCACY4F.js";
28
+ } from "./chunk-X6LMBS26.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-SI4WLQRD.js";
31
+ } from "./chunk-QZ4YXAKG.js";
32
32
  import {
33
33
  readJsonSafe,
34
34
  writeJsonAtomic
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-WIIMW5YO.js";
40
40
  import {
41
41
  isRecord
42
- } from "./chunk-BEGXHUFW.js";
42
+ } from "./chunk-BEYMW4FP.js";
43
43
 
44
44
  // src/hermes/plugin-payload.ts
45
45
  import { createHash } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-H3PD7NM6.js";
3
+ } from "./chunk-L7KV5SEW.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-LFMW5JU5.js";
6
+ } from "./chunk-FUZ3KIA2.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-BEGXHUFW.js";
17
+ } from "./chunk-BEYMW4FP.js";
18
18
 
19
19
  // src/shell-alias.ts
20
20
  import { homedir } from "os";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-6U4HTJDH.js";
17
+ } from "./chunk-RCTJEXGN.js";
18
18
  import {
19
19
  describeRevokeAttempt,
20
20
  keyNoLongerAccepted,
@@ -29,20 +29,20 @@ 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-UYWRWMVG.js";
35
+ } from "./chunk-F6EPRJDF.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-H3PD7NM6.js";
38
+ } from "./chunk-L7KV5SEW.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-ZUS334Z2.js";
41
+ } from "./chunk-4E6PCUYJ.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-BEGXHUFW.js";
45
+ } from "./chunk-BEYMW4FP.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-UYWRWMVG.js";
3
+ } from "./chunk-F6EPRJDF.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-BEGXHUFW.js";
6
+ } from "./chunk-BEYMW4FP.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1009,6 +1009,8 @@ var ANTIGRAVITY_CLI = {
1009
1009
  toolAliases: {
1010
1010
  run_command: "Bash",
1011
1011
  write_to_file: "Write",
1012
+ write_file: "Write",
1013
+ edit_file: "Edit",
1012
1014
  replace_file_content: "Edit",
1013
1015
  multi_replace_file_content: "Edit",
1014
1016
  view_file: "Read",
@@ -1017,11 +1019,14 @@ var ANTIGRAVITY_CLI = {
1017
1019
  },
1018
1020
  inputKeyAliases: {
1019
1021
  CodeContent: "content",
1022
+ Content: "content",
1020
1023
  TargetContent: "old_string",
1021
- ReplacementContent: "new_string"
1024
+ Target: "old_string",
1025
+ ReplacementContent: "new_string",
1026
+ Replacement: "new_string"
1022
1027
  },
1023
1028
  extraMatchers: [ANTIGRAVITY_MCP_TOOL],
1024
- pathInputKeys: ["TargetFile", "AbsolutePath"],
1029
+ pathInputKeys: ["TargetFile", "AbsolutePath", "Path"],
1025
1030
  shellCommandKeys: ["CommandLine"],
1026
1031
  shellContextKeys: ["Cwd"],
1027
1032
  events: ["PreToolUse", "PostToolUse", "Stop"],
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-VMGVFV4F.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-YKCACY4F.js";
10
+ } from "./chunk-X6LMBS26.js";
11
11
  import {
12
12
  atLeast,
13
13
  parseVersion
14
- } from "./chunk-SI4WLQRD.js";
14
+ } from "./chunk-QZ4YXAKG.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-BEGXHUFW.js";
24
+ } from "./chunk-BEYMW4FP.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-7T75RUZJ.js";
3
+ } from "./chunk-ORELODI4.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-ZUS334Z2.js";
12
+ } from "./chunk-4E6PCUYJ.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-BEGXHUFW.js";
20
+ } from "./chunk-BEYMW4FP.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-K3RITWPY.js";
4
+ } from "./chunk-BKG7F3AY.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-4NZORVWS.js";
7
+ } from "./chunk-XBUFMVU7.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-RPGXFONU.js";
10
+ } from "./chunk-LQZYHSDL.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-F5KUZBN7.js";
13
+ } from "./chunk-6TBHP6RP.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-BEGXHUFW.js";
19
+ } from "./chunk-BEYMW4FP.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,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-KSQOSFWU.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-XNZT3Y3Y.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-SI4WLQRD.js";
15
+ } from "./chunk-QZ4YXAKG.js";
16
16
  import {
17
17
  CLAUDE_BRIDGE_CAPABILITY,
18
18
  CLAUDE_RESUME_CAPABILITY,
@@ -23,7 +23,7 @@ import {
23
23
  MANAGED_PROVIDERS,
24
24
  SPAWN_CAPABILITY,
25
25
  sessionProvidersAdvertisedBy
26
- } from "./chunk-BEGXHUFW.js";
26
+ } from "./chunk-BEYMW4FP.js";
27
27
 
28
28
  // src/live-capabilities.ts
29
29
  import { accessSync, constants, statSync as statSync2 } from "fs";
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-SI4WLQRD.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-ZUS334Z2.js";
12
+ } from "./chunk-4E6PCUYJ.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-BEGXHUFW.js";
15
+ } from "./chunk-BEYMW4FP.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-BEGXHUFW.js";
8
+ } from "./chunk-BEYMW4FP.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-RPGXFONU.js";
4
+ } from "./chunk-LQZYHSDL.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-VMGVFV4F.js";
7
+ } from "./chunk-QIZO2G57.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-YKCACY4F.js";
11
+ } from "./chunk-X6LMBS26.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-BEGXHUFW.js";
14
+ } from "./chunk-BEYMW4FP.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-YKCACY4F.js";
3
+ } from "./chunk-X6LMBS26.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-BEGXHUFW.js";
9
+ } from "./chunk-BEYMW4FP.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-HDG5E3KL.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-LFMW5JU5.js";
9
+ } from "./chunk-FUZ3KIA2.js";
10
10
  import {
11
11
  EXIT
12
12
  } from "./chunk-BG4HHB7E.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-BEGXHUFW.js";
16
+ } from "./chunk-BEYMW4FP.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-DJCTVJR4.js";
6
+ } from "./chunk-ZO2GP56D.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-672GQ3QP.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-OOIX6OGT.js";
21
+ } from "./chunk-VNODGGX7.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-YKCACY4F.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-SI4WLQRD.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-ZUS334Z2.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-ZUS334Z2.js";
3
+ } from "./chunk-4E6PCUYJ.js";
4
4
 
5
5
  // src/config.ts
6
6
  import { readFileSync } from "fs";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-G66WIAST.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-KSQOSFWU.js";
16
+ } from "./chunk-7LOWA7WF.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-LFMW5JU5.js";
19
+ } from "./chunk-FUZ3KIA2.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-ZUS334Z2.js";
22
+ } from "./chunk-4E6PCUYJ.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-BEGXHUFW.js";
25
+ } from "./chunk-BEYMW4FP.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-BEGXHUFW.js";
5
+ } from "./chunk-BEYMW4FP.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";