pushary 1.9.192 → 1.9.194

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 (127) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{api-XPS2NPJH.js → api-7WWLO6B4.js} +10 -10
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +24 -24
  5. package/dist/bin/pushary-bell.js +10 -10
  6. package/dist/bin/pushary-calls.js +16 -16
  7. package/dist/bin/pushary-claude.js +23 -23
  8. package/dist/bin/pushary-clean.js +34 -34
  9. package/dist/bin/pushary-codex-bridge.js +20 -20
  10. package/dist/bin/pushary-codex-hook.js +29 -29
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +13 -13
  13. package/dist/bin/pushary-connect.js +29 -29
  14. package/dist/bin/pushary-cowork.js +4 -4
  15. package/dist/bin/pushary-daemon.js +40 -40
  16. package/dist/bin/pushary-disconnect.js +25 -25
  17. package/dist/bin/pushary-display-hook.js +9 -8
  18. package/dist/bin/pushary-doctor.js +40 -40
  19. package/dist/bin/pushary-elicitation-hook.js +24 -24
  20. package/dist/bin/pushary-gemini-bridge.js +16 -15
  21. package/dist/bin/pushary-gemini-hook.js +27 -27
  22. package/dist/bin/pushary-hook.js +30 -30
  23. package/dist/bin/pushary-login.js +20 -20
  24. package/dist/bin/pushary-logout.js +23 -23
  25. package/dist/bin/pushary-mcp.js +11 -11
  26. package/dist/bin/pushary-mode.js +17 -17
  27. package/dist/bin/pushary-notification-hook.js +23 -23
  28. package/dist/bin/pushary-opencode-bridge.js +18 -18
  29. package/dist/bin/pushary-opencode-hook.js +27 -27
  30. package/dist/bin/pushary-permission-denied-hook.js +29 -29
  31. package/dist/bin/pushary-permission-hook.js +29 -29
  32. package/dist/bin/pushary-post-hook.js +24 -24
  33. package/dist/bin/pushary-prompt-hook.js +23 -23
  34. package/dist/bin/pushary-session-end-hook.js +23 -23
  35. package/dist/bin/pushary-session-start-hook.js +33 -33
  36. package/dist/bin/pushary-sessions.js +12 -12
  37. package/dist/bin/pushary-setup.js +231 -100
  38. package/dist/bin/pushary-stats.js +4 -4
  39. package/dist/bin/pushary-status.js +28 -28
  40. package/dist/bin/pushary-stop-hook.js +23 -23
  41. package/dist/bin/pushary-stopfailure-hook.js +23 -23
  42. package/dist/bin/pushary-suggestions.js +14 -14
  43. package/dist/bin/pushary-transcript-register.js +15 -15
  44. package/dist/bin/pushary-transcripts.js +24 -24
  45. package/dist/bin/pushary-upgrade.js +40 -40
  46. package/dist/bin/pushary-wait.js +14 -14
  47. package/dist/bin/pushary.js +10 -10
  48. package/dist/{chunk-5WT6DLL2.js → chunk-23NHXO6T.js} +4 -4
  49. package/dist/{chunk-2HOKEC2I.js → chunk-25CMVBTJ.js} +2 -2
  50. package/dist/{chunk-YMULPOSH.js → chunk-3ZUDRXVV.js} +4 -4
  51. package/dist/{chunk-GR46QR45.js → chunk-44SARVA4.js} +5 -5
  52. package/dist/{chunk-T4GV5MOC.js → chunk-4BC4YDVL.js} +3 -3
  53. package/dist/{chunk-OTJEIINV.js → chunk-5AGLZUDK.js} +6 -5
  54. package/dist/{chunk-F326QJEJ.js → chunk-5C74GHZG.js} +5 -5
  55. package/dist/{chunk-DQI4647T.js → chunk-5JQQ5IQC.js} +2 -2
  56. package/dist/{chunk-EBIPQ3ZE.js → chunk-5NFHLMY3.js} +83 -17
  57. package/dist/{chunk-XSJON4TV.js → chunk-5YJSZFZ6.js} +1 -1
  58. package/dist/{chunk-ETT24EIH.js → chunk-62YIQ2P2.js} +2 -2
  59. package/dist/{chunk-7K5AYNDY.js → chunk-64LDWQKR.js} +4 -4
  60. package/dist/{chunk-GGKGVCUN.js → chunk-6J4KRJP4.js} +2 -2
  61. package/dist/{chunk-5WC6N3HA.js → chunk-6ONF5BPB.js} +6 -6
  62. package/dist/{chunk-UF6RZBTL.js → chunk-AJ6Q42KT.js} +2 -2
  63. package/dist/{chunk-FY7WHRDJ.js → chunk-BLVTNQZV.js} +2 -2
  64. package/dist/{chunk-JXZQ4XFL.js → chunk-BQGNF6BN.js} +2 -2
  65. package/dist/{chunk-XMNETXQ4.js → chunk-BXAVWEE4.js} +4 -4
  66. package/dist/{chunk-CDXD6W4N.js → chunk-CH7WFVC5.js} +1 -1
  67. package/dist/{chunk-RNPEOAPC.js → chunk-CMQCKXCF.js} +1 -1
  68. package/dist/{chunk-X4ENTDFT.js → chunk-D4BHK52K.js} +1 -1
  69. package/dist/{chunk-GUZLBFER.js → chunk-DFTVEK72.js} +5 -5
  70. package/dist/{chunk-GUBY4KIU.js → chunk-DWLG2IIV.js} +4 -4
  71. package/dist/{chunk-R2NYUOTC.js → chunk-ENEMHGBE.js} +7 -7
  72. package/dist/{chunk-4FVKGWWZ.js → chunk-ERVXMMGO.js} +1 -1
  73. package/dist/{chunk-AD7R7TNQ.js → chunk-G3HAAQ65.js} +8 -8
  74. package/dist/{chunk-FZWUUGC2.js → chunk-GHMCSDAN.js} +3 -3
  75. package/dist/{chunk-3APYAOZF.js → chunk-GZAU5W3K.js} +2 -2
  76. package/dist/{chunk-CDEJHIYQ.js → chunk-HNHRPMND.js} +5 -5
  77. package/dist/{chunk-Y2H5TF7T.js → chunk-IC5BBT2K.js} +1 -1
  78. package/dist/{chunk-LWUDOZHE.js → chunk-IYYWAP6P.js} +3 -3
  79. package/dist/{chunk-PUVD22DY.js → chunk-J7D27BKP.js} +21 -10
  80. package/dist/{chunk-NCN7ANYA.js → chunk-KFSWRIH2.js} +9 -9
  81. package/dist/{chunk-UV5ROHY2.js → chunk-LFCLDWHZ.js} +1 -1
  82. package/dist/{chunk-DHD54IIT.js → chunk-LOQWIBVV.js} +3 -3
  83. package/dist/{chunk-X7FIYMHC.js → chunk-M7O33GTP.js} +2 -2
  84. package/dist/{chunk-XONHTLMX.js → chunk-MAPYE7MM.js} +7 -7
  85. package/dist/{chunk-H6CBRJKT.js → chunk-MIO242ZB.js} +3 -3
  86. package/dist/{chunk-A4QFVUEY.js → chunk-N3TX5LLG.js} +3 -3
  87. package/dist/{chunk-7QUPTDT2.js → chunk-NFFWCJMJ.js} +1 -1
  88. package/dist/{chunk-ZCR5VTOC.js → chunk-OM7CKAVY.js} +3 -3
  89. package/dist/{chunk-EJ56NJQ4.js → chunk-OPRRDN5R.js} +5 -5
  90. package/dist/{chunk-WB5DD232.js → chunk-ORV2JLNH.js} +1 -1
  91. package/dist/{chunk-23WKGMTI.js → chunk-PEUODRKS.js} +1 -1
  92. package/dist/{chunk-P6NACIBR.js → chunk-PY3VOJQY.js} +3 -3
  93. package/dist/{chunk-JJBM5FYH.js → chunk-QOWEXH34.js} +1 -1
  94. package/dist/{chunk-GAAPUS5J.js → chunk-QQLYMBKM.js} +1 -1
  95. package/dist/{chunk-C2B4LPJU.js → chunk-RDO4NPVU.js} +2 -2
  96. package/dist/{chunk-DAHGMBRE.js → chunk-RE6TWTNY.js} +2 -2
  97. package/dist/{chunk-SHAHZQTQ.js → chunk-RL5LF7JZ.js} +4 -4
  98. package/dist/{chunk-O7ZCWGYA.js → chunk-S5YA65CK.js} +2 -2
  99. package/dist/{chunk-ITPAUHJ4.js → chunk-SRIFCDTY.js} +1 -1
  100. package/dist/{chunk-URVW3D2J.js → chunk-SS5PB32H.js} +10 -10
  101. package/dist/{chunk-6C7DT36Z.js → chunk-T3IU6PWU.js} +13 -13
  102. package/dist/{chunk-VNCN3Z4T.js → chunk-T776F2FQ.js} +1 -1
  103. package/dist/{chunk-VRNGMRJA.js → chunk-TFMIG3VP.js} +1 -1
  104. package/dist/{chunk-E65O7RMA.js → chunk-U2LLYPDS.js} +3 -3
  105. package/dist/{chunk-NFK2QF74.js → chunk-UPGPPX7W.js} +4 -4
  106. package/dist/{chunk-DP6YHOKF.js → chunk-UYAKT6PO.js} +1 -1
  107. package/dist/{chunk-6TNKY3DC.js → chunk-V3PMKMAO.js} +4 -4
  108. package/dist/{chunk-AQLIBG2P.js → chunk-V4R37DFH.js} +4 -4
  109. package/dist/{chunk-OYZUPSD7.js → chunk-V6OR4WLF.js} +7 -7
  110. package/dist/{chunk-6CJSVFAD.js → chunk-VD57H3ZU.js} +1 -1
  111. package/dist/{chunk-UQTQ6HPO.js → chunk-YJHBDJIW.js} +2 -0
  112. package/dist/{chunk-VDJMYP54.js → chunk-YLMBNJWN.js} +1 -1
  113. package/dist/{chunk-KERLAXHG.js → chunk-ZDROZABP.js} +3 -3
  114. package/dist/{chunk-P4JYK7WB.js → chunk-ZGS5TMMV.js} +2 -2
  115. package/dist/{codex-app-cards-switch-UEN23QFT.js → codex-app-cards-switch-NCSFAEUY.js} +13 -12
  116. package/dist/{codex-desktop-launch-DKOOCOTD.js → codex-desktop-launch-I6UPDWTQ.js} +1 -1
  117. package/dist/{codex-session-launch-UHNV5Z3D.js → codex-session-launch-4OT4CC2W.js} +17 -17
  118. package/dist/{config-EVDZ6OAI.js → config-2AGOCKSO.js} +3 -3
  119. package/dist/{global-upgrade-KZQWNABB.js → global-upgrade-OG6RLR36.js} +9 -9
  120. package/dist/{identity-A2BK7P2A.js → identity-57VX4O7Z.js} +5 -4
  121. package/dist/{live-capabilities-43YRGYAR.js → live-capabilities-6SRTZJ5A.js} +5 -4
  122. package/dist/{paths-67D2435E.js → paths-M47UHTQ4.js} +4 -3
  123. package/dist/{reapply-APVASEGC.js → reapply-3BXOHGEE.js} +26 -26
  124. package/dist/src/index.js +29 -29
  125. package/dist/{upgrade-lock-TG4UOPN7.js → upgrade-lock-EIPMFXKR.js} +5 -4
  126. package/dist/{usage-FVDJIMCB.js → usage-YSVHDBHO.js} +3 -3
  127. package/package.json +1 -1
@@ -8,47 +8,47 @@ import {
8
8
  } from "../chunk-CVWG2N3Y.js";
9
9
  import {
10
10
  exitOnFailedSettingsRequest
11
- } from "../chunk-EJ56NJQ4.js";
12
- import "../chunk-C2B4LPJU.js";
11
+ } from "../chunk-OPRRDN5R.js";
12
+ import "../chunk-RDO4NPVU.js";
13
13
  import {
14
14
  APPROVAL_RULES_PATH,
15
15
  PUSH_WINDOW_COMMAND,
16
16
  PUSH_WINDOW_RESET_COMMAND
17
- } from "../chunk-6CJSVFAD.js";
17
+ } from "../chunk-VD57H3ZU.js";
18
18
  import {
19
19
  createIo
20
20
  } from "../chunk-5QP7DVQF.js";
21
21
  import {
22
22
  exitOnHelpFlag
23
- } from "../chunk-AQLIBG2P.js";
23
+ } from "../chunk-V4R37DFH.js";
24
24
  import {
25
25
  parseFlags
26
26
  } from "../chunk-BZIBNSQE.js";
27
27
  import {
28
28
  absoluteUrl
29
- } from "../chunk-3APYAOZF.js";
29
+ } from "../chunk-GZAU5W3K.js";
30
30
  import {
31
31
  pusharyFetch
32
- } from "../chunk-T4GV5MOC.js";
33
- import "../chunk-XSJON4TV.js";
34
- import "../chunk-FY7WHRDJ.js";
35
- import "../chunk-DP6YHOKF.js";
36
- import "../chunk-2HOKEC2I.js";
37
- import "../chunk-EBIPQ3ZE.js";
32
+ } from "../chunk-4BC4YDVL.js";
33
+ import "../chunk-5YJSZFZ6.js";
34
+ import "../chunk-BLVTNQZV.js";
35
+ import "../chunk-UYAKT6PO.js";
36
+ import "../chunk-25CMVBTJ.js";
37
+ import "../chunk-5NFHLMY3.js";
38
38
  import {
39
39
  getApiKey,
40
40
  getBaseUrl
41
- } from "../chunk-Y2H5TF7T.js";
41
+ } from "../chunk-IC5BBT2K.js";
42
42
  import {
43
43
  UsageError,
44
44
  exitCodeFor
45
45
  } from "../chunk-CINBAX5G.js";
46
46
  import "../chunk-PM2NRK6Y.js";
47
+ import "../chunk-QQLYMBKM.js";
47
48
  import {
48
49
  EXIT
49
50
  } from "../chunk-BG4HHB7E.js";
50
- import "../chunk-GAAPUS5J.js";
51
- import "../chunk-UQTQ6HPO.js";
51
+ import "../chunk-YJHBDJIW.js";
52
52
  import "../chunk-HMMVGDL3.js";
53
53
  import "../chunk-MLKGABMK.js";
54
54
 
@@ -1,24 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  installNetworkDefaults
4
- } from "../chunk-T4GV5MOC.js";
5
- import "../chunk-XSJON4TV.js";
6
- import "../chunk-2HOKEC2I.js";
7
- import "../chunk-EBIPQ3ZE.js";
8
- import "../chunk-Y2H5TF7T.js";
4
+ } from "../chunk-4BC4YDVL.js";
5
+ import "../chunk-5YJSZFZ6.js";
6
+ import "../chunk-25CMVBTJ.js";
7
+ import "../chunk-5NFHLMY3.js";
8
+ import "../chunk-IC5BBT2K.js";
9
9
  import "../chunk-CINBAX5G.js";
10
10
  import "../chunk-PM2NRK6Y.js";
11
- import {
12
- EXIT
13
- } from "../chunk-BG4HHB7E.js";
14
11
  import {
15
12
  LISTED_COMMANDS,
16
13
  renderHelp,
17
14
  resolveCommandName
18
- } from "../chunk-GAAPUS5J.js";
15
+ } from "../chunk-QQLYMBKM.js";
16
+ import {
17
+ EXIT
18
+ } from "../chunk-BG4HHB7E.js";
19
19
  import {
20
20
  getPackageVersion
21
- } from "../chunk-UQTQ6HPO.js";
21
+ } from "../chunk-YJHBDJIW.js";
22
22
  import "../chunk-HMMVGDL3.js";
23
23
  import "../chunk-MLKGABMK.js";
24
24
 
@@ -18,18 +18,18 @@ import {
18
18
  settingSnapshot,
19
19
  writeHermesSetting,
20
20
  writeSetupReceipt
21
- } from "./chunk-CDEJHIYQ.js";
21
+ } from "./chunk-HNHRPMND.js";
22
22
  import {
23
23
  OPENCLAW_MIN_VERSION,
24
24
  OPENCLAW_PLUGIN_ID,
25
25
  OPENCLAW_PLUGIN_PACKAGE
26
- } from "./chunk-KERLAXHG.js";
26
+ } from "./chunk-ZDROZABP.js";
27
27
  import {
28
28
  retryAgentCommand
29
- } from "./chunk-P4JYK7WB.js";
29
+ } from "./chunk-ZGS5TMMV.js";
30
30
  import {
31
31
  configFilePath
32
- } from "./chunk-Y2H5TF7T.js";
32
+ } from "./chunk-IC5BBT2K.js";
33
33
  import {
34
34
  readJsonSafe,
35
35
  writeJsonAtomic
@@ -3,13 +3,13 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-EBIPQ3ZE.js";
6
+ } from "./chunk-5NFHLMY3.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  cmdShimScriptOf
12
- } from "./chunk-UQTQ6HPO.js";
12
+ } from "./chunk-YJHBDJIW.js";
13
13
  import {
14
14
  CLAUDE_MCP_PRETOOLUSE_MATCHER,
15
15
  CLAUDE_PRETOOLUSE_MATCHER,
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-KERLAXHG.js";
3
+ } from "./chunk-ZDROZABP.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-DHD54IIT.js";
6
+ } from "./chunk-LOQWIBVV.js";
7
7
  import {
8
8
  nativeClaudeInstallPath
9
9
  } from "./chunk-TCE3J44Z.js";
10
10
  import {
11
11
  grokHome
12
- } from "./chunk-ZCR5VTOC.js";
12
+ } from "./chunk-OM7CKAVY.js";
13
13
  import {
14
14
  claudeConfigDir,
15
15
  clineDataDirectory,
16
16
  codexHomeFrom,
17
17
  openClawEnvironmentOf,
18
18
  openClawPathsFrom
19
- } from "./chunk-2HOKEC2I.js";
19
+ } from "./chunk-25CMVBTJ.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
22
  } from "./chunk-HMMVGDL3.js";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  APPROVAL_RULES_PATH,
3
3
  canChangeApprovalSettings
4
- } from "./chunk-6CJSVFAD.js";
4
+ } from "./chunk-VD57H3ZU.js";
5
5
  import {
6
6
  callMcpTool
7
- } from "./chunk-H6CBRJKT.js";
7
+ } from "./chunk-MIO242ZB.js";
8
8
  import {
9
9
  absoluteUrl
10
- } from "./chunk-3APYAOZF.js";
10
+ } from "./chunk-GZAU5W3K.js";
11
11
  import {
12
12
  getBaseUrl
13
- } from "./chunk-Y2H5TF7T.js";
13
+ } from "./chunk-IC5BBT2K.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-GAAPUS5J.js";
16
+ } from "./chunk-QQLYMBKM.js";
17
17
  import {
18
18
  AGENT_STOP_DEFAULT_SECONDS,
19
19
  APPROVAL_MODE_META,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-XSJON4TV.js";
3
+ } from "./chunk-5YJSZFZ6.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-Y2H5TF7T.js";
6
+ } from "./chunk-IC5BBT2K.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
10
10
  import {
11
11
  getPackageVersion
12
- } from "./chunk-UQTQ6HPO.js";
12
+ } from "./chunk-YJHBDJIW.js";
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-H6CBRJKT.js";
11
+ } from "./chunk-MIO242ZB.js";
12
12
  import {
13
13
  fetchAsCredential
14
14
  } from "./chunk-VEE2MRUN.js";
15
15
  import {
16
16
  installNetworkDefaults,
17
17
  isNetworkFailure
18
- } from "./chunk-T4GV5MOC.js";
18
+ } from "./chunk-4BC4YDVL.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-2HOKEC2I.js";
21
+ } from "./chunk-25CMVBTJ.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-Y2H5TF7T.js";
25
+ } from "./chunk-IC5BBT2K.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -235,7 +235,8 @@ var exitAfterClientReports = async (code) => {
235
235
  await Promise.all(inFlightReports);
236
236
  return process.exit(code);
237
237
  };
238
- var clientErrorKindOf = (error) => isNetworkFailure(error) ? "network" : "unexpected";
238
+ var causeOf = (error) => error instanceof Error ? error.cause : void 0;
239
+ var clientErrorKindOf = (error) => isNetworkFailure(error) || isNetworkFailure(causeOf(error)) ? "network" : "unexpected";
239
240
  var writeDegraded = (subsystem, report) => {
240
241
  process.stderr.write(`${degradedLine(subsystem, report)}
241
242
  `);
@@ -6,7 +6,7 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-23WKGMTI.js";
9
+ } from "./chunk-PEUODRKS.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
@@ -16,24 +16,24 @@ import {
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-X4ENTDFT.js";
19
+ } from "./chunk-D4BHK52K.js";
20
20
  import {
21
21
  spawnClaude
22
- } from "./chunk-VRNGMRJA.js";
22
+ } from "./chunk-TFMIG3VP.js";
23
23
  import {
24
24
  isAskUserResponse,
25
25
  isDecisionStopped,
26
26
  isWaitForAnswerResponse,
27
27
  withdrawQuestion,
28
28
  writeDegraded
29
- } from "./chunk-OTJEIINV.js";
29
+ } from "./chunk-5AGLZUDK.js";
30
30
  import {
31
31
  readCommandAck
32
32
  } from "./chunk-5IPXL33D.js";
33
33
  import {
34
34
  callMcpTool,
35
35
  isRetryable
36
- } from "./chunk-H6CBRJKT.js";
36
+ } from "./chunk-MIO242ZB.js";
37
37
  import {
38
38
  projectNameFor,
39
39
  repositoryScopeFor
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-EJJBM4OB.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-ITPAUHJ4.js";
6
+ } from "./chunk-SRIFCDTY.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -16,7 +16,7 @@ import {
16
16
  isBridgeLocator,
17
17
  isProtectedByScope,
18
18
  registerHookEntry
19
- } from "./chunk-2HOKEC2I.js";
19
+ } from "./chunk-25CMVBTJ.js";
20
20
  import {
21
21
  CURSOR_GATE_EVENTS,
22
22
  HOOK_BUDGETS,
@@ -1,3 +1,6 @@
1
+ import {
2
+ EXIT
3
+ } from "./chunk-BG4HHB7E.js";
1
4
  import {
2
5
  CLI_PACKAGE_NAMES,
3
6
  LATEST_DIST_TAG,
@@ -9,10 +12,11 @@ import {
9
12
  globalInstallTarget,
10
13
  globalPackageFolder,
11
14
  globalRootFor,
15
+ isKnownReleaseVersion,
12
16
  isNewerVersion,
13
17
  isReleaseVersion,
14
18
  ownPackageName
15
- } from "./chunk-UQTQ6HPO.js";
19
+ } from "./chunk-YJHBDJIW.js";
16
20
  import {
17
21
  redactSecretsFromContent
18
22
  } from "./chunk-HMMVGDL3.js";
@@ -22,8 +26,9 @@ var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
22
26
 
23
27
  // src/npm.ts
24
28
  import { promisify } from "util";
25
- import { exec, execFile, execFileSync, execSync } from "child_process";
29
+ import { exec, execFile, execFileSync, execSync, spawn } from "child_process";
26
30
  import { existsSync, readFileSync, readlinkSync, realpathSync } from "fs";
31
+ import { constants as osConstants } from "os";
27
32
  import { dirname, isAbsolute, join, relative, resolve, win32 } from "path";
28
33
  var latestReleaseUrl = (packageName) => `https://registry.npmjs.org/${packageName}/latest`;
29
34
  var REGISTRY_TIMEOUT_MS = 5e3;
@@ -493,6 +498,56 @@ var newestReleaseNpmAllows = (target, installed, published, runNpm = execNpm) =>
493
498
  }
494
499
  };
495
500
  var describeReleaseNpmHolds = (published) => `${published} is not yet allowed by this machine's npm settings, such as min-release-age`;
501
+ var NPM_RELEASE_AGE_SETTINGS_QUERY = "config get min-release-age before --global --no-workspaces";
502
+ var MIN_RELEASE_AGE_SETTING = "min-release-age";
503
+ var BEFORE_SETTING = "before";
504
+ var UNSET_SETTING_VALUES = /* @__PURE__ */ new Set(["", "null", "undefined"]);
505
+ var NO_RELEASE_AGE_RULE = { kind: "none" };
506
+ var UNREADABLE_RELEASE_AGE_RULE = { kind: "unreadable" };
507
+ var npmSettingIn = (output, setting) => {
508
+ const line = output.split(/\r?\n/).map((text) => text.trim()).find((text) => text.startsWith(`${setting}=`));
509
+ const value = line?.slice(setting.length + 1).trim();
510
+ return value === void 0 || UNSET_SETTING_VALUES.has(value) ? void 0 : value;
511
+ };
512
+ var minReleaseAgeDaysIn = (output) => {
513
+ const days = Number(npmSettingIn(output, MIN_RELEASE_AGE_SETTING));
514
+ return Number.isFinite(days) && days > 0 ? days : void 0;
515
+ };
516
+ var npmReleaseAgeRuleIn = (output) => {
517
+ const days = minReleaseAgeDaysIn(output);
518
+ if (days !== void 0) return { kind: "min_release_age", days };
519
+ const cutoff = npmSettingIn(output, BEFORE_SETTING);
520
+ return cutoff === void 0 ? NO_RELEASE_AGE_RULE : { kind: "before", cutoff };
521
+ };
522
+ var readNpmReleaseAgeRule = (runNpm = execNpm) => {
523
+ try {
524
+ return npmReleaseAgeRuleIn(npmOutputText(runNpm(NPM_RELEASE_AGE_SETTINGS_QUERY, { timeout: DISCOVERY_TIMEOUT_MS })));
525
+ } catch {
526
+ return UNREADABLE_RELEASE_AGE_RULE;
527
+ }
528
+ };
529
+ var npmHoldsReleasesBack = (rule) => rule.kind === "min_release_age" || rule.kind === "before";
530
+ var NPM_NOT_STARTED = { kind: "not_started" };
531
+ var SIGNALLED_EXIT_BASE = 128;
532
+ var exitCodeOfNpm = (code, signal) => code ?? (signal === null ? EXIT.FAILED : SIGNALLED_EXIT_BASE + osConstants.signals[signal]);
533
+ var npmLaunchFor = (args, platform) => platform === "win32" ? { command: ["npm", ...args.map((arg) => quoteIfNeeded(arg, platform))].join(" "), args: [], shell: true } : { command: "npm", args, shell: false };
534
+ var spellingOf = (name) => name.toLowerCase();
535
+ var npmTerminalEnvironment = (inherited, overrides) => {
536
+ const overridden = new Set(Object.keys(overrides).map(spellingOf));
537
+ const kept = Object.entries(inherited).filter(([name]) => !overridden.has(spellingOf(name)));
538
+ return { ...Object.fromEntries(kept), ...overrides };
539
+ };
540
+ var runNpmInTerminal = (command) => new Promise((resolve2) => {
541
+ const launch = npmLaunchFor(command.args, process.platform);
542
+ const child = spawn(launch.command, [...launch.args], {
543
+ stdio: "inherit",
544
+ env: npmTerminalEnvironment(cleanNpmEnv(), command.env),
545
+ shell: launch.shell,
546
+ windowsHide: true
547
+ });
548
+ child.once("error", () => resolve2(NPM_NOT_STARTED));
549
+ child.once("exit", (code, signal) => resolve2({ kind: "exited", code: exitCodeOfNpm(code, signal) }));
550
+ });
496
551
  var needsGlobalInstall = (requested, installed, binaryPresent) => requested !== installed || !binaryPresent;
497
552
  var setupWouldDowngrade = (requested, installed) => installed !== void 0 && isReleaseVersion(installed) && isReleaseVersion(requested) && isNewerVersion(installed, requested);
498
553
  var planGlobalInstall = (platform) => {
@@ -505,10 +560,21 @@ var installedVersionOf = (prefix, name, platform) => {
505
560
  const folder = readGlobalFolder(globalRootFor(prefix, platform), name, platform);
506
561
  return folder.kind === "ours" ? folder.installed.version : void 0;
507
562
  };
563
+ var readPlannedSetupInstall = (platform = process.platform) => {
564
+ const { prefix, packageName } = planGlobalInstall(platform);
565
+ if (prefix === void 0) return { prefix, packageName, installedVersion: void 0, binsPresent: false };
566
+ return {
567
+ prefix,
568
+ packageName,
569
+ installedVersion: installedVersionOf(prefix, packageName, platform),
570
+ binsPresent: globalPackageBinsPresent(packageName, prefix, platform)
571
+ };
572
+ };
573
+ var setupNeedsGlobalInstall = (version, planned) => planned.prefix === void 0 || needsGlobalInstall(version, planned.installedVersion, planned.binsPresent);
508
574
  var asCachedResult = (result) => result === "installed" ? "cached" : result;
509
575
  var installState;
510
576
  var installGlobally = (options) => {
511
- if (!isReleaseVersion(options.version) || options.version === "0.0.0") {
577
+ if (!isKnownReleaseVersion(options.version)) {
512
578
  return Promise.reject(new NpmInstallError("Setup requires a known release version. Run an official versioned release; no global package was installed."));
513
579
  }
514
580
  if (installState) {
@@ -516,25 +582,19 @@ var installGlobally = (options) => {
516
582
  }
517
583
  const started = (async () => {
518
584
  if (!npmIsOnPath()) throw new NpmMissingError();
519
- const { withUpgradeLock } = await import("./global-upgrade-KZQWNABB.js");
520
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-TG4UOPN7.js");
521
- const { autoUpdateLock } = await import("./paths-67D2435E.js");
585
+ const { withUpgradeLock } = await import("./global-upgrade-OG6RLR36.js");
586
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-EIPMFXKR.js");
587
+ const { autoUpdateLock } = await import("./paths-M47UHTQ4.js");
522
588
  let result = "skipped";
523
589
  const install = async () => {
524
- const platform = process.platform;
525
- const { prefix, packageName } = planGlobalInstall(platform);
526
- const installed = prefix === void 0 ? void 0 : installedVersionOf(prefix, packageName, platform);
527
- if (setupWouldDowngrade(options.version, installed)) {
528
- throw new NpmInstallError(`Setup ${options.version} is older than the installed ${packageName} ${installed}. Run setup from the installed version or a newer policy-eligible release; Pushary did not downgrade the runtime.`);
590
+ const planned = readPlannedSetupInstall(process.platform);
591
+ if (setupWouldDowngrade(options.version, planned.installedVersion)) {
592
+ throw new NpmInstallError(`Setup ${options.version} is older than the installed ${planned.packageName} ${planned.installedVersion}. Run setup from the installed version or a newer policy-eligible release; Pushary did not downgrade the runtime.`);
529
593
  }
530
- if (prefix !== void 0 && !needsGlobalInstall(
531
- options.version,
532
- installed,
533
- globalPackageBinsPresent(packageName, prefix, platform)
534
- )) {
594
+ if (!setupNeedsGlobalInstall(options.version, planned)) {
535
595
  return;
536
596
  }
537
- installWithUpgradeLock({ packageName, version: options.version, timeoutMs: options.timeoutMs ?? 12e4 }, options.lockPath);
597
+ installWithUpgradeLock({ packageName: planned.packageName, version: options.version, timeoutMs: options.timeoutMs ?? 12e4 }, options.lockPath);
538
598
  result = "installed";
539
599
  };
540
600
  if (ownsUpgradeLock(options.lockPath ?? autoUpdateLock())) {
@@ -605,6 +665,12 @@ export {
605
665
  chosenRelease,
606
666
  newestReleaseNpmAllows,
607
667
  describeReleaseNpmHolds,
668
+ readNpmReleaseAgeRule,
669
+ npmHoldsReleasesBack,
670
+ runNpmInTerminal,
671
+ setupWouldDowngrade,
608
672
  plannedGlobalPackage,
673
+ readPlannedSetupInstall,
674
+ setupNeedsGlobalInstall,
609
675
  installGlobally
610
676
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-2HOKEC2I.js";
3
+ } from "./chunk-25CMVBTJ.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";
@@ -536,7 +536,7 @@ var loadedOnce = (load) => {
536
536
  };
537
537
 
538
538
  // src/codex-desktop-proxy.ts
539
- var loadThePhone = () => import("./api-XPS2NPJH.js");
539
+ var loadThePhone = () => import("./api-7WWLO6B4.js");
540
540
  var loadTheCardRouting = () => import("./codex-card-routing-CJZT26VA.js");
541
541
  var theFirstCardLoadsAgain = () => {
542
542
  };
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1097
1097
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1098
1098
  }
1099
1099
  if (args[0] === APP_CARDS_FLAG) {
1100
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-UEN23QFT.js");
1100
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-NCSFAEUY.js");
1101
1101
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1102
1102
  }
1103
1103
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-LWUDOZHE.js";
4
+ } from "./chunk-IYYWAP6P.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-XONHTLMX.js";
7
+ } from "./chunk-MAPYE7MM.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-ZCR5VTOC.js";
10
+ } from "./chunk-OM7CKAVY.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-OTJEIINV.js";
13
+ } from "./chunk-5AGLZUDK.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
@@ -10,10 +10,10 @@ import {
10
10
  isLocalQuestionHandoff,
11
11
  unavailableQuestionUnlessRefused,
12
12
  waitForQuestion
13
- } from "./chunk-OTJEIINV.js";
13
+ } from "./chunk-5AGLZUDK.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-XSJON4TV.js";
16
+ } from "./chunk-5YJSZFZ6.js";
17
17
  import {
18
18
  hookMaxWaitSeconds,
19
19
  hookWaitClamped,
@@ -3,27 +3,27 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-UF6RZBTL.js";
6
+ } from "./chunk-AJ6Q42KT.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-OYZUPSD7.js";
13
+ } from "./chunk-V6OR4WLF.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-XSJON4TV.js";
16
+ } from "./chunk-5YJSZFZ6.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeySource
20
- } from "./chunk-FY7WHRDJ.js";
20
+ } from "./chunk-BLVTNQZV.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-Y2H5TF7T.js";
23
+ } from "./chunk-IC5BBT2K.js";
24
24
  import {
25
25
  getPackageVersion
26
- } from "./chunk-UQTQ6HPO.js";
26
+ } from "./chunk-YJHBDJIW.js";
27
27
 
28
28
  // src/machines.ts
29
29
  import { hostname } from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-RNPEOAPC.js";
3
+ } from "./chunk-CMQCKXCF.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-TCE3J44Z.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-EBIPQ3ZE.js";
15
+ } from "./chunk-5NFHLMY3.js";
16
16
  import {
17
17
  AGENTS,
18
18
  CLAUDE_BRIDGE_CAPABILITY,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-DP6YHOKF.js";
3
+ } from "./chunk-UYAKT6PO.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-Y2H5TF7T.js";
6
+ } from "./chunk-IC5BBT2K.js";
7
7
  import {
8
8
  backupFile,
9
9
  backupFileInto,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-PUVD22DY.js";
4
+ } from "./chunk-J7D27BKP.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-2HOKEC2I.js";
7
+ } from "./chunk-25CMVBTJ.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-GR46QR45.js";
17
+ } from "./chunk-44SARVA4.js";
18
18
  import {
19
19
  describeRevokeAttempt,
20
20
  keyNoLongerAccepted,
@@ -32,13 +32,13 @@ import {
32
32
  } from "./chunk-5QP7DVQF.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-3APYAOZF.js";
35
+ } from "./chunk-GZAU5W3K.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-DP6YHOKF.js";
38
+ } from "./chunk-UYAKT6PO.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-GAAPUS5J.js";
41
+ } from "./chunk-QQLYMBKM.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-FY7WHRDJ.js";
3
+ } from "./chunk-BLVTNQZV.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-TCE3J44Z.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-EBIPQ3ZE.js";
6
+ } from "./chunk-5NFHLMY3.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-HMMVGDL3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-2HOKEC2I.js";
3
+ } from "./chunk-25CMVBTJ.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-PM2NRK6Y.js";