pushary 1.9.253 → 1.9.254

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 (143) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{api-HDETVYCD.js → api-QY6VQJFI.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +29 -29
  5. package/dist/bin/pushary-bell.js +12 -12
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +26 -26
  8. package/dist/bin/pushary-clean.js +40 -40
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +35 -35
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +16 -16
  13. package/dist/bin/pushary-connect.js +36 -36
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +47 -47
  16. package/dist/bin/pushary-disconnect.js +31 -31
  17. package/dist/bin/pushary-doctor.js +48 -48
  18. package/dist/bin/pushary-elicitation-hook.js +28 -28
  19. package/dist/bin/pushary-gemini-bridge.js +18 -18
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +36 -36
  22. package/dist/bin/pushary-login.js +23 -23
  23. package/dist/bin/pushary-logout.js +32 -32
  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 +28 -28
  27. package/dist/bin/pushary-opencode-bridge.js +22 -22
  28. package/dist/bin/pushary-opencode-hook.js +33 -33
  29. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  30. package/dist/bin/pushary-permission-hook.js +36 -36
  31. package/dist/bin/pushary-post-hook.js +29 -29
  32. package/dist/bin/pushary-prompt-hook.js +28 -28
  33. package/dist/bin/pushary-session-end-hook.js +28 -28
  34. package/dist/bin/pushary-session-start-hook.js +40 -40
  35. package/dist/bin/pushary-sessions.js +12 -12
  36. package/dist/bin/pushary-setup.js +131 -75
  37. package/dist/bin/pushary-stats.js +5 -5
  38. package/dist/bin/pushary-status.js +37 -37
  39. package/dist/bin/pushary-stop-hook.js +28 -28
  40. package/dist/bin/pushary-stopfailure-hook.js +28 -28
  41. package/dist/bin/pushary-suggestions.js +16 -16
  42. package/dist/bin/pushary-transcript-register.js +17 -17
  43. package/dist/bin/pushary-transcripts.js +26 -26
  44. package/dist/bin/pushary-upgrade.js +48 -48
  45. package/dist/bin/pushary-wait.js +16 -16
  46. package/dist/bin/pushary.js +7 -7
  47. package/dist/{chunk-GAX2UUKP.js → chunk-2NBKOBF4.js} +2 -2
  48. package/dist/{chunk-M4ZP7SGR.js → chunk-3BN74JWK.js} +1 -1
  49. package/dist/{chunk-23WMHZ3S.js → chunk-3J6A7KQX.js} +5 -5
  50. package/dist/{chunk-LUWFNQEB.js → chunk-3L2W4LLI.js} +6 -6
  51. package/dist/{chunk-JDTDZMIQ.js → chunk-4FY7R645.js} +4 -4
  52. package/dist/{chunk-TKJIBVHJ.js → chunk-4KLGPKC2.js} +2 -2
  53. package/dist/{chunk-WL3WLBDO.js → chunk-4XTUCLYD.js} +1 -1
  54. package/dist/{chunk-4IT57V3A.js → chunk-5BSRXXGB.js} +3 -3
  55. package/dist/{chunk-LQRYXA4E.js → chunk-5HHU6D5A.js} +3 -3
  56. package/dist/{chunk-UTP7PN5S.js → chunk-642JCWTI.js} +4 -4
  57. package/dist/{chunk-GM4CMN4A.js → chunk-67IFG5NZ.js} +1 -1
  58. package/dist/{chunk-7D25WOPT.js → chunk-7BV26BFH.js} +1 -1
  59. package/dist/{chunk-N7HFPPDR.js → chunk-7DJLYHXC.js} +2 -2
  60. package/dist/{chunk-5LK3UY46.js → chunk-7OWKHNU3.js} +1 -1
  61. package/dist/{chunk-5QFLGM7U.js → chunk-7WE4KEVO.js} +12 -6
  62. package/dist/{chunk-SUCVVSV6.js → chunk-ABSMY77L.js} +11 -11
  63. package/dist/{chunk-M773UCGU.js → chunk-AC5AJSGU.js} +1 -1
  64. package/dist/{chunk-6S6ASGR3.js → chunk-AVYEY7Q5.js} +3 -3
  65. package/dist/{chunk-VA573E2C.js → chunk-BCYNGMS5.js} +1 -1
  66. package/dist/{chunk-RJOS3AEP.js → chunk-BRSXM66U.js} +4 -4
  67. package/dist/{chunk-EVG4SHZR.js → chunk-CG5W5LPA.js} +3 -3
  68. package/dist/{chunk-UWD3IGPJ.js → chunk-CIPK5AF5.js} +10 -10
  69. package/dist/{chunk-5VC3BZEW.js → chunk-DRDHWOOW.js} +5 -5
  70. package/dist/{chunk-IRWWJ6GZ.js → chunk-E3CRPS7D.js} +3 -3
  71. package/dist/{chunk-UKQ5MEOA.js → chunk-EHEA7IA7.js} +1 -1
  72. package/dist/{chunk-YUV6X65O.js → chunk-G2GOAQHZ.js} +4 -4
  73. package/dist/{chunk-CIJG74KZ.js → chunk-GEPZJS32.js} +1 -1
  74. package/dist/{chunk-UUDXTZND.js → chunk-GMN6X7FV.js} +3 -3
  75. package/dist/{chunk-LM7GN5SQ.js → chunk-GSAHQCDT.js} +1 -1
  76. package/dist/{chunk-76OCRCIM.js → chunk-H2VFPD2R.js} +6 -6
  77. package/dist/{chunk-24MGJAU6.js → chunk-H52M2TRV.js} +1 -1
  78. package/dist/{chunk-TXRII4O4.js → chunk-HRZACRZZ.js} +1 -1
  79. package/dist/{chunk-MERKWOJA.js → chunk-I5N5WXGX.js} +2 -2
  80. package/dist/{chunk-SQMYR6SW.js → chunk-ICQYKYWS.js} +5 -5
  81. package/dist/{chunk-WEHPMIAG.js → chunk-IMV3OTCO.js} +8 -8
  82. package/dist/{chunk-44GOUZCE.js → chunk-JLQHY75G.js} +6 -6
  83. package/dist/{chunk-6WHXLA4Y.js → chunk-JQCTVTIB.js} +2 -2
  84. package/dist/{chunk-HPL432EE.js → chunk-KLDAKOVH.js} +2 -2
  85. package/dist/{chunk-D7TUN2MX.js → chunk-KX46VMRW.js} +16 -16
  86. package/dist/{chunk-4LTASS5P.js → chunk-L6Z3VDAS.js} +1 -1
  87. package/dist/{chunk-ICWPQWXJ.js → chunk-LLHESE5J.js} +5 -5
  88. package/dist/{chunk-CVVHT4KY.js → chunk-LQN5YB2V.js} +3 -3
  89. package/dist/{chunk-XOXSCTXN.js → chunk-M3JY4QP2.js} +2 -2
  90. package/dist/{chunk-NMADZVTC.js → chunk-MKBPHFPR.js} +1 -1
  91. package/dist/{chunk-GK7DZPLY.js → chunk-MY7M5H5A.js} +12 -12
  92. package/dist/{chunk-GNMEBYBT.js → chunk-MYHEISKF.js} +5 -5
  93. package/dist/{chunk-6I3NVT36.js → chunk-NBIAPFRB.js} +4 -4
  94. package/dist/{chunk-UIUN2AIM.js → chunk-NCWKTSRI.js} +4 -4
  95. package/dist/{chunk-6CQT3VM3.js → chunk-NOIBGLBE.js} +5 -5
  96. package/dist/{chunk-APPAY2PH.js → chunk-O4J5GVKF.js} +6 -6
  97. package/dist/{chunk-7LRR6GEH.js → chunk-ODLPEMVY.js} +3 -3
  98. package/dist/{chunk-3P5KVOFE.js → chunk-OETPIQ4R.js} +6 -6
  99. package/dist/{chunk-3YUQ7NDR.js → chunk-OP2ZMO4X.js} +3 -3
  100. package/dist/{chunk-O4VX3PYZ.js → chunk-OWJFWFE6.js} +5 -5
  101. package/dist/{chunk-MMEUYJTO.js → chunk-OYGL6J2D.js} +3 -3
  102. package/dist/{chunk-6JVSKDBD.js → chunk-PM4ER2NJ.js} +2 -2
  103. package/dist/{chunk-XIZWKMF2.js → chunk-QBA6GMAT.js} +5 -5
  104. package/dist/{chunk-ECXLAR6D.js → chunk-QLY2U3EX.js} +2 -2
  105. package/dist/{chunk-VFZEUKWI.js → chunk-QOKK74EW.js} +1 -1
  106. package/dist/{chunk-IXLXPPSD.js → chunk-QYR7VUU4.js} +1 -1
  107. package/dist/{chunk-JIZNXYN5.js → chunk-R46QOMKS.js} +2 -2
  108. package/dist/{chunk-6OFIPAJD.js → chunk-RVPDHRMO.js} +4 -4
  109. package/dist/{chunk-XB4GIETP.js → chunk-RVS6JPBJ.js} +1 -1
  110. package/dist/{chunk-SJWGQ5LF.js → chunk-SSLV3YRY.js} +3 -3
  111. package/dist/{chunk-VKBZEIFU.js → chunk-SUOHEXOJ.js} +7 -7
  112. package/dist/{chunk-CMSBS2K4.js → chunk-SVCNDCTR.js} +4 -4
  113. package/dist/{chunk-XEEUUUFY.js → chunk-U3AXTMV7.js} +4 -4
  114. package/dist/{chunk-FM4ULVPT.js → chunk-U3JBGAVX.js} +1 -1
  115. package/dist/{chunk-R4JAJBHJ.js → chunk-U62LMG5F.js} +1 -1
  116. package/dist/{chunk-N7RKXLJR.js → chunk-UYJNAYBK.js} +1 -1
  117. package/dist/{chunk-5UXIPTWM.js → chunk-VLKTJDUJ.js} +2 -2
  118. package/dist/{chunk-O5BD64JZ.js → chunk-VX5BPPHN.js} +1 -1
  119. package/dist/{chunk-GQLHV36Q.js → chunk-WJQJUKGE.js} +1 -1
  120. package/dist/{chunk-IFQROMKD.js → chunk-WTFSVKNI.js} +2 -2
  121. package/dist/{chunk-QZESFXVG.js → chunk-Y3IWISL4.js} +15 -5
  122. package/dist/{chunk-PXGN373Y.js → chunk-YG3TBL4J.js} +5 -5
  123. package/dist/{chunk-3XSQBXNQ.js → chunk-YXIGD5EM.js} +7 -7
  124. package/dist/{chunk-AYVW4G3V.js → chunk-ZDP2L7ZA.js} +1 -1
  125. package/dist/{chunk-CZ4EG35M.js → chunk-ZFS7EORW.js} +1 -1
  126. package/dist/{chunk-5Y4DOTXC.js → chunk-ZJ2TFSPR.js} +6 -6
  127. package/dist/{chunk-SZMGZ3C5.js → chunk-ZLNUJLNE.js} +3 -0
  128. package/dist/{chunk-4DOUCVU6.js → chunk-ZMXCW2N7.js} +10 -10
  129. package/dist/{codex-app-cards-switch-NN625ND3.js → codex-app-cards-switch-CFBQWFPT.js} +12 -12
  130. package/dist/{codex-card-routing-5CT7DOHG.js → codex-card-routing-GQTCHTH5.js} +2 -2
  131. package/dist/{codex-desktop-launch-ZKAL5O2T.js → codex-desktop-launch-IKO5DFQH.js} +3 -3
  132. package/dist/{codex-session-launch-4OFEQV4L.js → codex-session-launch-LBAI42YT.js} +20 -20
  133. package/dist/{config-SZ2H3UZ3.js → config-ZLV45K4O.js} +3 -3
  134. package/dist/{global-upgrade-TLFBH3Z7.js → global-upgrade-OIYQREDI.js} +9 -9
  135. package/dist/{identity-HYFFEFTV.js → identity-3Q7SYQSF.js} +4 -4
  136. package/dist/{live-capabilities-DUDIPA3U.js → live-capabilities-NKJTOXAA.js} +4 -4
  137. package/dist/{paths-3UYWAUJ4.js → paths-ZMSRGIIE.js} +3 -3
  138. package/dist/reapply-WKPRZZSZ.js +76 -0
  139. package/dist/src/index.js +34 -34
  140. package/dist/{upgrade-lock-3733DY3A.js → upgrade-lock-OW5SDV7B.js} +4 -4
  141. package/dist/{usage-ZZMBG3QZ.js → usage-DNGUMZZM.js} +3 -3
  142. package/package.json +1 -1
  143. package/dist/reapply-4ECHOBPO.js +0 -76
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  withUpgradeLock
4
- } from "../chunk-5Y4DOTXC.js";
5
- import "../chunk-MERKWOJA.js";
4
+ } from "../chunk-ZJ2TFSPR.js";
5
+ import "../chunk-I5N5WXGX.js";
6
6
  import {
7
7
  browserEntryUrl,
8
8
  cancelLogin,
@@ -14,7 +14,7 @@ import {
14
14
  runBrowserLogin,
15
15
  startLogin,
16
16
  waitForLogin
17
- } from "../chunk-JIZNXYN5.js";
17
+ } from "../chunk-R46QOMKS.js";
18
18
  import {
19
19
  FREE_DISK_SPACE_STEP,
20
20
  INSTALL_NODE_STEP,
@@ -23,13 +23,15 @@ import {
23
23
  RETRY_AGENT_LABEL,
24
24
  TRANSCRIPT_SYNC_NOTICE,
25
25
  agentFailureFollowUps,
26
+ closingActionOf,
26
27
  describeAgentFailures,
27
28
  describeClosing,
28
29
  phoneStartServiceState,
29
30
  renderCommandSurface,
31
+ stepsBlockingAgentsFirst,
30
32
  teamOfferLines,
31
33
  unverifiedKeyClosingReason
32
- } from "../chunk-5QFLGM7U.js";
34
+ } from "../chunk-7WE4KEVO.js";
33
35
  import {
34
36
  WRONG_ACCOUNT_HINT,
35
37
  canAskAtTheTerminal,
@@ -48,37 +50,38 @@ import {
48
50
  keyAccountHandle,
49
51
  keyReuseConfirmation,
50
52
  pickReusableKey,
53
+ previousKeyStandingOf,
51
54
  replacedShellKeyChoice,
52
55
  someoneIsAtTheTerminal,
53
56
  switchBackToTheShellKeyLine,
54
57
  wrongAccountHintPlacement
55
- } from "../chunk-QZESFXVG.js";
58
+ } from "../chunk-Y3IWISL4.js";
56
59
  import {
57
60
  NO_AGENT_CONNECTED_LINE,
58
61
  instructionsChannelFor,
59
62
  pairingComputerOf,
60
63
  planPhoneCheck
61
- } from "../chunk-O5BD64JZ.js";
64
+ } from "../chunk-VX5BPPHN.js";
62
65
  import {
63
66
  coworkOutput,
64
67
  coworkSelection
65
- } from "../chunk-SJWGQ5LF.js";
68
+ } from "../chunk-SSLV3YRY.js";
66
69
  import {
67
70
  canOpenBrowser,
68
71
  openInBrowser
69
72
  } from "../chunk-PUZZELE6.js";
70
73
  import {
71
74
  readCodexHooksOnDisk
72
- } from "../chunk-UWD3IGPJ.js";
75
+ } from "../chunk-CIPK5AF5.js";
73
76
  import {
74
77
  macAppHistoryDecision,
75
78
  nativeBridgeAccount
76
79
  } from "../chunk-TWWOQKXK.js";
77
- import "../chunk-6WHXLA4Y.js";
80
+ import "../chunk-JQCTVTIB.js";
78
81
  import {
79
82
  clearDeclinedAgent,
80
83
  declinedAgentForSetupChoice
81
- } from "../chunk-XOXSCTXN.js";
84
+ } from "../chunk-M3JY4QP2.js";
82
85
  import {
83
86
  OPENCLAW_RESTART_NOTE,
84
87
  describeOpenClawInstallFailure,
@@ -86,7 +89,7 @@ import {
86
89
  gateHermesShell,
87
90
  readHermesShellGate,
88
91
  saveSetupFailure
89
- } from "../chunk-O4VX3PYZ.js";
92
+ } from "../chunk-OWJFWFE6.js";
90
93
  import {
91
94
  CODEX_NEEDS_A_NEWER_VERSION,
92
95
  CODEX_SETTINGS_STOP_A_HOOK,
@@ -102,14 +105,14 @@ import {
102
105
  describeHermesState,
103
106
  hermesGateShellCommand,
104
107
  needsCodexTrustStep
105
- } from "../chunk-CMSBS2K4.js";
108
+ } from "../chunk-SVCNDCTR.js";
106
109
  import {
107
110
  describeWaitLadder
108
111
  } from "../chunk-CVWG2N3Y.js";
109
112
  import {
110
113
  writeJsonError,
111
114
  writeStdoutFully
112
- } from "../chunk-AYVW4G3V.js";
115
+ } from "../chunk-ZDP2L7ZA.js";
113
116
  import {
114
117
  EXIT_ABORTED,
115
118
  EXIT_TERMINATED,
@@ -139,7 +142,7 @@ import {
139
142
  startPairing,
140
143
  waitForYourPhone,
141
144
  writeStatusLine
142
- } from "../chunk-LUWFNQEB.js";
145
+ } from "../chunk-3L2W4LLI.js";
143
146
  import {
144
147
  generateKeypair,
145
148
  publicKeyFingerprint
@@ -151,7 +154,7 @@ import {
151
154
  roundTripEvidence,
152
155
  roundTripWasAnswered,
153
156
  verifyRoundTrip
154
- } from "../chunk-APPAY2PH.js";
157
+ } from "../chunk-O4J5GVKF.js";
155
158
  import {
156
159
  keepLinuxDaemonAfterLogout,
157
160
  lingerReportOf
@@ -159,13 +162,13 @@ import {
159
162
  import {
160
163
  readManagedControlEvidence,
161
164
  waitForMachineReadiness
162
- } from "../chunk-XIZWKMF2.js";
165
+ } from "../chunk-QBA6GMAT.js";
163
166
  import {
164
167
  ensureCodexTrustsPusharyHooks,
165
168
  hermesHistoryHelperRecordPath,
166
169
  hermesHistoryNeedsTheCliHelper,
167
170
  recordInstalledHermesHistoryHelper
168
- } from "../chunk-EVG4SHZR.js";
171
+ } from "../chunk-CG5W5LPA.js";
169
172
  import {
170
173
  scheduleWithTimer
171
174
  } from "../chunk-AVFPHV4N.js";
@@ -176,7 +179,7 @@ import {
176
179
  } from "../chunk-XNF5DVAF.js";
177
180
  import {
178
181
  codexEngineBehindLauncher
179
- } from "../chunk-YUV6X65O.js";
182
+ } from "../chunk-G2GOAQHZ.js";
180
183
  import "../chunk-XCEN33UP.js";
181
184
  import {
182
185
  CODEX_ENGINE_DIRECTORY,
@@ -193,7 +196,7 @@ import {
193
196
  soleGateLeftAloneFor,
194
197
  soleGateReceipt,
195
198
  soleGateReceiptFile
196
- } from "../chunk-RJOS3AEP.js";
199
+ } from "../chunk-BRSXM66U.js";
197
200
  import {
198
201
  describeDetection,
199
202
  detectAllAgents,
@@ -203,14 +206,14 @@ import {
203
206
  registerPluginLocation,
204
207
  shortenHome,
205
208
  vscodeSettingsTargets
206
- } from "../chunk-GNMEBYBT.js";
209
+ } from "../chunk-MYHEISKF.js";
207
210
  import {
208
211
  revokeOwnKey
209
212
  } from "../chunk-OYIN77HO.js";
210
213
  import {
211
214
  mcpServerBearer,
212
215
  readMacAppAgentKey
213
- } from "../chunk-6OFIPAJD.js";
216
+ } from "../chunk-RVPDHRMO.js";
214
217
  import {
215
218
  HERMES_CONFIG_FILE,
216
219
  HERMES_GATE_TOOLS_KEY,
@@ -229,7 +232,7 @@ import {
229
232
  routesHermesQuestions,
230
233
  runsAnOlderPlugin,
231
234
  shippedHermesPlugin
232
- } from "../chunk-JDTDZMIQ.js";
235
+ } from "../chunk-4FY7R645.js";
233
236
  import {
234
237
  setHumanStream
235
238
  } from "../chunk-QCGNGEGE.js";
@@ -237,7 +240,7 @@ import {
237
240
  findOpenClawLauncher,
238
241
  isOpenClawWired,
239
242
  openClawPathsNow
240
- } from "../chunk-7LRR6GEH.js";
243
+ } from "../chunk-ODLPEMVY.js";
241
244
  import {
242
245
  FX_PICKS_UP_CONFIGURATION,
243
246
  FX_PUSHARY_TOOLS_RULE,
@@ -254,7 +257,7 @@ import {
254
257
  readFxProfileForSetup,
255
258
  withFxPusharyServer,
256
259
  writeFxProfile
257
- } from "../chunk-ICWPQWXJ.js";
260
+ } from "../chunk-LLHESE5J.js";
258
261
  import {
259
262
  AgentConfigError,
260
263
  afterAgentFailureNote,
@@ -267,10 +270,10 @@ import {
267
270
  retryAgentCommand,
268
271
  writeSetupConfigFile,
269
272
  writeSetupConfigJson
270
- } from "../chunk-MMEUYJTO.js";
273
+ } from "../chunk-OYGL6J2D.js";
271
274
  import {
272
275
  MCP_BRIDGE_BINARY
273
- } from "../chunk-UIUN2AIM.js";
276
+ } from "../chunk-NCWKTSRI.js";
274
277
  import {
275
278
  OPENCODE_HOOK_BINARY,
276
279
  addOpenCodeMcpServer,
@@ -289,12 +292,12 @@ import {
289
292
  openCodePluginFile,
290
293
  openCodeWired,
291
294
  withOpenCodeAskRules
292
- } from "../chunk-3XSQBXNQ.js";
293
- import "../chunk-CIJG74KZ.js";
294
- import "../chunk-LM7GN5SQ.js";
295
+ } from "../chunk-YXIGD5EM.js";
296
+ import "../chunk-GEPZJS32.js";
297
+ import "../chunk-GSAHQCDT.js";
295
298
  import {
296
299
  keyScopeOf
297
- } from "../chunk-HPL432EE.js";
300
+ } from "../chunk-KLDAKOVH.js";
298
301
  import {
299
302
  ansiPainter,
300
303
  ciMarker,
@@ -303,7 +306,7 @@ import {
303
306
  describeError,
304
307
  isCI,
305
308
  useColor
306
- } from "../chunk-M4ZP7SGR.js";
309
+ } from "../chunk-3BN74JWK.js";
307
310
  import {
308
311
  checkCodexInstall,
309
312
  describeMissingControlPrerequisite,
@@ -316,16 +319,16 @@ import {
316
319
  nodeCodexInstallProbe,
317
320
  phoneStartIsRequired,
318
321
  resolveControlPolicy
319
- } from "../chunk-LQRYXA4E.js";
322
+ } from "../chunk-5HHU6D5A.js";
320
323
  import {
321
324
  detectClaudeVersion
322
- } from "../chunk-24MGJAU6.js";
325
+ } from "../chunk-H52M2TRV.js";
323
326
  import "../chunk-TCE3J44Z.js";
324
327
  import {
325
328
  describeAutoUpdateAnnouncement,
326
329
  takeAutoUpdateAnnouncement
327
- } from "../chunk-GAX2UUKP.js";
328
- import "../chunk-IRWWJ6GZ.js";
330
+ } from "../chunk-2NBKOBF4.js";
331
+ import "../chunk-E3CRPS7D.js";
329
332
  import "../chunk-WHB622LP.js";
330
333
  import {
331
334
  addCompatibleHooks,
@@ -340,8 +343,8 @@ import {
340
343
  compatibleRecord,
341
344
  compatibleTargetPaths,
342
345
  hasCompatibleHooks
343
- } from "../chunk-76OCRCIM.js";
344
- import "../chunk-5LK3UY46.js";
346
+ } from "../chunk-H2VFPD2R.js";
347
+ import "../chunk-7OWKHNU3.js";
345
348
  import {
346
349
  DAEMON_COLD_START_TIMEOUT_MS,
347
350
  clearDaemonNeedsLogin,
@@ -360,7 +363,7 @@ import {
360
363
  stopDaemonService,
361
364
  versionManagerOf,
362
365
  waitForDaemonRemoteProof
363
- } from "../chunk-44GOUZCE.js";
366
+ } from "../chunk-JLQHY75G.js";
364
367
  import {
365
368
  GEMINI_HOOK_BINARY,
366
369
  GEMINI_HOOK_EVENTS,
@@ -374,38 +377,38 @@ import {
374
377
  geminiWired,
375
378
  planHooks,
376
379
  pusharyHookExecutable
377
- } from "../chunk-UTP7PN5S.js";
380
+ } from "../chunk-642JCWTI.js";
378
381
  import {
379
382
  reportEvent
380
- } from "../chunk-SUCVVSV6.js";
381
- import "../chunk-IXLXPPSD.js";
383
+ } from "../chunk-ABSMY77L.js";
384
+ import "../chunk-QYR7VUU4.js";
382
385
  import {
383
386
  AGENT_CHOICES,
384
387
  effectiveAgentSelection,
385
388
  effectiveControlMode,
386
389
  effectiveVerify,
387
390
  parseSetupOptions
388
- } from "../chunk-FM4ULVPT.js";
389
- import "../chunk-TXRII4O4.js";
391
+ } from "../chunk-U3JBGAVX.js";
392
+ import "../chunk-HRZACRZZ.js";
390
393
  import "../chunk-BZIBNSQE.js";
391
394
  import {
392
395
  transcriptPreferenceForSetup
393
- } from "../chunk-CZ4EG35M.js";
396
+ } from "../chunk-ZFS7EORW.js";
394
397
  import "../chunk-P6DUWKAO.js";
395
398
  import "../chunk-3PSNUHC5.js";
396
- import "../chunk-3P5KVOFE.js";
397
- import "../chunk-XB4GIETP.js";
399
+ import "../chunk-OETPIQ4R.js";
400
+ import "../chunk-RVS6JPBJ.js";
398
401
  import "../chunk-POFBE6ZY.js";
399
- import "../chunk-5VC3BZEW.js";
400
- import "../chunk-M773UCGU.js";
401
- import "../chunk-R4JAJBHJ.js";
402
+ import "../chunk-DRDHWOOW.js";
403
+ import "../chunk-AC5AJSGU.js";
404
+ import "../chunk-U62LMG5F.js";
402
405
  import {
403
406
  checkApiKey,
404
407
  describeKeyCheck,
405
408
  samePusharyAccount
406
- } from "../chunk-4IT57V3A.js";
407
- import "../chunk-UUDXTZND.js";
408
- import "../chunk-WL3WLBDO.js";
409
+ } from "../chunk-5BSRXXGB.js";
410
+ import "../chunk-GMN6X7FV.js";
411
+ import "../chunk-4XTUCLYD.js";
409
412
  import {
410
413
  KEY_FILE_MODE,
411
414
  keyEnvFilePath,
@@ -419,10 +422,10 @@ import {
419
422
  resolveShellRc,
420
423
  shellKeyWasReplaced,
421
424
  writeKey
422
- } from "../chunk-6S6ASGR3.js";
425
+ } from "../chunk-AVYEY7Q5.js";
423
426
  import {
424
427
  reportedInstallSource
425
- } from "../chunk-6JVSKDBD.js";
428
+ } from "../chunk-PM4ER2NJ.js";
426
429
  import {
427
430
  CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
428
431
  CLINE_AUTO_APPROVE_STEP,
@@ -482,7 +485,7 @@ import {
482
485
  vscodePluginDir,
483
486
  vscodePluginMcp,
484
487
  writeInstructionBlock
485
- } from "../chunk-N7HFPPDR.js";
488
+ } from "../chunk-7DJLYHXC.js";
486
489
  import {
487
490
  compareVersion,
488
491
  parseVersion
@@ -504,11 +507,11 @@ import {
504
507
  runNpmInTerminal,
505
508
  setupNeedsGlobalInstall,
506
509
  setupWouldDowngrade
507
- } from "../chunk-6I3NVT36.js";
510
+ } from "../chunk-NBIAPFRB.js";
508
511
  import {
509
512
  getBaseUrl,
510
513
  readApiKey
511
- } from "../chunk-5UXIPTWM.js";
514
+ } from "../chunk-VLKTJDUJ.js";
512
515
  import {
513
516
  UsageError
514
517
  } from "../chunk-CINBAX5G.js";
@@ -520,7 +523,7 @@ import {
520
523
  NPX_LATEST_COMMAND,
521
524
  isInvocationOf,
522
525
  renderCommandHelp
523
- } from "../chunk-VA573E2C.js";
526
+ } from "../chunk-BCYNGMS5.js";
524
527
  import {
525
528
  EXIT
526
529
  } from "../chunk-BG4HHB7E.js";
@@ -545,7 +548,7 @@ import {
545
548
  isRecord,
546
549
  isTimeoutAction,
547
550
  isValidApiKey
548
- } from "../chunk-SZMGZ3C5.js";
551
+ } from "../chunk-ZLNUJLNE.js";
549
552
  import "../chunk-MLKGABMK.js";
550
553
 
551
554
  // bin/pushary-setup.ts
@@ -857,6 +860,9 @@ var CLEAR_PROGRESS_LINE = `\r${ERASE_TO_END_OF_LINE}`;
857
860
  var PHONE_START_OPT_OUT = "Turn it off with --control off.";
858
861
  var describeServiceInstall = (servicePresent) => servicePresent ? null : `Installing a background service so your phone can start agents. ${PHONE_START_OPT_OUT}`;
859
862
 
863
+ // src/setup/primary-action.ts
864
+ var PRIMARY_ACTION_MARK = "\u2192";
865
+
860
866
  // src/setup/wait-guidance.ts
861
867
  var isPolicyRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
862
868
  var isWaitSeconds = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
@@ -1023,19 +1029,29 @@ var releasePairingLeftOver = async (pairing, keypair, loser) => {
1023
1029
  if (lateKey !== null) await revokeKeyThatArrivedLate(lateKey);
1024
1030
  await cancelPairing(pairing.pairId);
1025
1031
  };
1032
+ var primaryAction = (ui, text) => ` ${ui.bold(`${PRIMARY_ACTION_MARK} ${text}`)}`;
1033
+ var codeLine = (ui, login) => `${ui.dim("Go to")} ${ui.cyan(login.verificationUrl)} ${ui.dim("on any device and enter")} ${ui.bold(login.userCode)}`;
1026
1034
  var printSignInScreen = async (screen) => {
1027
1035
  const { ui, login, pairing } = screen;
1036
+ const browserIsPrimary = login !== null && screen.offersEnter;
1037
+ const codeIsPrimary = login !== null && !screen.offersEnter;
1028
1038
  ui.say("");
1029
1039
  ui.say(` ${ui.bold("Sign in to Pushary")}`);
1030
1040
  ui.say("");
1031
- if (login !== null) {
1032
- if (screen.offersEnter) ui.say(" Press Enter to sign in with your browser.");
1033
- ui.say(` ${screen.offersEnter ? "Or go to" : "Go to"} ${ui.cyan(login.verificationUrl)} on any device and enter ${ui.bold(login.userCode)}`);
1041
+ if (browserIsPrimary) ui.say(primaryAction(ui, "Press Enter to sign in with your browser."));
1042
+ if (codeIsPrimary) ui.say(primaryAction(ui, `Go to ${login.verificationUrl} on any device and enter ${login.userCode}`));
1043
+ if (login === null && pairing !== null) ui.say(primaryAction(ui, "Scan this with your phone's camera or the Pushary app."));
1044
+ if (browserIsPrimary) {
1045
+ ui.say("");
1046
+ ui.say(` ${ui.dim("Other ways to sign in")}`);
1047
+ ui.say(` ${codeLine(ui, login)}`);
1034
1048
  }
1035
1049
  if (pairing !== null) {
1036
1050
  const links = buildPairLinks(pairing.pairId, screen.keypair.publicKeyB64, void 0, pairing.code);
1037
- ui.say("");
1038
- ui.say(login === null ? " Scan this with your phone's camera or the Pushary app." : " Have the Pushary app? Scan this with your phone instead.");
1051
+ if (login !== null) {
1052
+ ui.say("");
1053
+ ui.say(` ${ui.dim("Have the Pushary app? Scan this with your phone instead.")}`);
1054
+ }
1039
1055
  await printQr(links.qrLink);
1040
1056
  ui.say(` ${ui.dim("Or open on your phone:")} ${ui.cyan(links.universalLink)}`);
1041
1057
  }
@@ -1108,10 +1124,15 @@ var signInForSetup = async (ui, options, deps = {}) => {
1108
1124
  try {
1109
1125
  await printSignInScreen({ ui, login, pairing, keypair, offersEnter: enter !== null });
1110
1126
  if (interruptedWith !== null) return heldUntilTheSignalExits();
1127
+ let browserOpenAnnounced = false;
1111
1128
  const openTheBrowser = () => {
1112
1129
  if (login === null) return;
1113
- if (openBrowser(browserEntryUrl(login, listener))) ui.say(` ${ui.dim("Opened your browser.")}`);
1114
- else ui.say(` ${ui.yellow("!")} Couldn't open a browser. Go to ${ui.cyan(login.verificationUrl)} and enter ${ui.bold(login.userCode)}`);
1130
+ if (!openBrowser(browserEntryUrl(login, listener))) {
1131
+ ui.say(` ${ui.yellow("!")} Couldn't open a browser. Go to ${ui.cyan(login.verificationUrl)} and enter ${ui.bold(login.userCode)}`);
1132
+ return;
1133
+ }
1134
+ if (!browserOpenAnnounced) ui.say(` ${ui.dim("Opened your browser.")}`);
1135
+ browserOpenAnnounced = true;
1115
1136
  };
1116
1137
  if (enter !== null && !enterReleased) releaseEnter = enter(openTheBrowser);
1117
1138
  if (login !== null) {
@@ -1376,6 +1397,12 @@ var waitForYourPhoneToSignIn = async (apiKey, signIn, keys, ui, deps = {}) => {
1376
1397
  if (await approval !== "allowed") await cancelTerminalPhoneSignIn(current, deps);
1377
1398
  }
1378
1399
  };
1400
+ var phoneSignInOutcomeOf = (attempt) => {
1401
+ if (!attempt.canShowQr) return "not_offered";
1402
+ if (!attempt.signedInThroughTheBrowser) return "no_login";
1403
+ if (!attempt.passArrived) return "no_pass";
1404
+ return attempt.started ? "qr_shown" : "qr_failed";
1405
+ };
1379
1406
 
1380
1407
  // src/setup/telemetry.ts
1381
1408
  import { randomUUID } from "crypto";
@@ -1415,6 +1442,10 @@ var recordedCodexTrust = null;
1415
1442
  var recordCodexTrust = (outcome) => {
1416
1443
  recordedCodexTrust = outcome;
1417
1444
  };
1445
+ var recordedPhoneSignIn = null;
1446
+ var recordPhoneSignIn = (outcome) => {
1447
+ recordedPhoneSignIn = outcome;
1448
+ };
1418
1449
  var emitted = false;
1419
1450
  var SETUP_COMPLETED_EVENT = "agent_setup_completed";
1420
1451
  var SETUP_AGENT_TYPE = "setup";
@@ -1453,6 +1484,7 @@ var defaultDeps = {
1453
1484
  var completeBeacon = (run) => ({
1454
1485
  ...run,
1455
1486
  codexTrust: recordedCodexTrust,
1487
+ phoneSignIn: recordedPhoneSignIn,
1456
1488
  cliVersion: getPackageVersion(),
1457
1489
  os: computerOsOfPlatform(process.platform)
1458
1490
  });
@@ -1662,6 +1694,11 @@ var manualSteps = [];
1662
1694
  var noteManual = (step) => {
1663
1695
  manualSteps.push(step);
1664
1696
  };
1697
+ var stepsThatBlockAgents = /* @__PURE__ */ new Set();
1698
+ var noteStepThatBlocksAgents = (step) => {
1699
+ stepsThatBlockAgents.add(step);
1700
+ noteManual(step);
1701
+ };
1665
1702
  var stepsShownOnTheirRow = [];
1666
1703
  var noteShownOnItsRow = (step) => {
1667
1704
  stepsShownOnTheirRow.push(step);
@@ -3389,7 +3426,9 @@ var printManualStepsNotYetShown = () => {
3389
3426
  ...describeRestarts(newRestarts.map((noted) => noted.restart))
3390
3427
  ];
3391
3428
  console.log(` ${bold("Still to do")}`);
3392
- for (const step of steps) console.log(` ${dim("\u2022")} ${step}`);
3429
+ for (const step of stepsBlockingAgentsFirst(steps, stepsThatBlockAgents)) {
3430
+ console.log(stepsThatBlockAgents.has(step) ? ` ${yellow("!")} ${bold(step)}` : ` ${dim("\u2022")} ${step}`);
3431
+ }
3393
3432
  console.log();
3394
3433
  };
3395
3434
  var showManualStepsSoFar = () => {
@@ -3451,15 +3490,23 @@ var main = async () => {
3451
3490
  let keyOrigin = "supplied";
3452
3491
  let keyFromPairing = false;
3453
3492
  let phonePass = null;
3493
+ let signedInThroughTheBrowser = false;
3454
3494
  const storedKey = readConfigFileKey();
3455
3495
  const pairingRequested = connectMode === "app" && options.connectExplicit && !options.skipPhone;
3456
3496
  const ambientEligible = flagKey === void 0 && !pairingRequested;
3457
- const envCheck = ambientEligible && envKey && isValidApiKey(envKey) ? await usableStoredKey(envKey) : null;
3497
+ const probedKeys = /* @__PURE__ */ new Map();
3498
+ const probeKey = async (key) => {
3499
+ const probe = await usableStoredKey(key);
3500
+ probedKeys.set(key, probe);
3501
+ return probe;
3502
+ };
3503
+ const previousKeyStanding = (key) => previousKeyStandingOf(key === null ? void 0 : probedKeys.get(key));
3504
+ const envCheck = ambientEligible && envKey && isValidApiKey(envKey) ? await probeKey(envKey) : null;
3458
3505
  const envKeyWasReplaced = shellKeyWasReplaced({ shellKey: envKey, savedKey: storedKey, replacedKeyPrefix: readReplacedKeyPrefix() });
3459
3506
  const storedCheck = ambientEligible && (envCheck === null || envKeyWasReplaced) && storedKey !== null && isValidApiKey(storedKey) && // login writes both, so without this the same key is probed twice.
3460
- storedKey !== envKey ? await usableStoredKey(storedKey) : null;
3507
+ storedKey !== envKey ? await probeKey(storedKey) : null;
3461
3508
  const appKey = ambientEligible && envCheck === null && storedCheck === null ? pickAppKey({ fromAgents: AGENT_CHOICES.map(appMcpKeyIfReadable), storedKey, envKey }) : null;
3462
- const appKeyCheck = appKey === null ? null : await usableStoredKey(appKey);
3509
+ const appKeyCheck = appKey === null ? null : await probeKey(appKey);
3463
3510
  const appBridgeAvailable = macAppBridgeAvailable();
3464
3511
  const canPairWithApp = canShowPairingQr() && !options.skipPhone;
3465
3512
  const keyReuse = keyReuseConfirmation({
@@ -3540,13 +3587,14 @@ var main = async () => {
3540
3587
  }
3541
3588
  trimmedKey = signedIn2.apiKey;
3542
3589
  phonePass = signedIn2.kind === "browser" ? signedIn2.phonePass : null;
3590
+ signedInThroughTheBrowser = signedIn2.kind === "browser";
3543
3591
  keyOrigin = "created_by_this_cli";
3544
3592
  keyFromPairing = signedIn2.kind === "app";
3545
3593
  pairedHandle = signedIn2.kind === "app" && signedIn2.handle ? `@${signedIn2.handle}` : null;
3546
3594
  console.log();
3547
3595
  if (signedIn2.kind === "app") console.log(` ${check} Your phone approved this computer`);
3548
3596
  if (pairedHandle) console.log(` ${check} Connected to ${cyan(pairedHandle)}`);
3549
- const previousKeyLeftActive = describePreviousKeyLeftActive(previous.key, trimmedKey);
3597
+ const previousKeyLeftActive = describePreviousKeyLeftActive(previous.key, trimmedKey, previousKeyStanding(previous.key));
3550
3598
  if (previousKeyLeftActive !== null) {
3551
3599
  console.log(` ${yellow("!")} ${previousKeyLeftActive}`);
3552
3600
  console.log(` ${dim("Revoke it at")} ${cyan("pushary.com/dashboard/agent/settings")} ${dim("if nothing else uses it.")}`);
@@ -3575,7 +3623,7 @@ var main = async () => {
3575
3623
  if (pairedHandle) {
3576
3624
  console.log(` ${check} Connected to ${cyan(pairedHandle)}`);
3577
3625
  }
3578
- const previousKeyLeftActive = describePreviousKeyLeftActive(previous.key, trimmedKey);
3626
+ const previousKeyLeftActive = describePreviousKeyLeftActive(previous.key, trimmedKey, previousKeyStanding(previous.key));
3579
3627
  if (previousKeyLeftActive !== null) {
3580
3628
  console.log(` ${yellow("!")} ${previousKeyLeftActive}`);
3581
3629
  console.log(` ${dim("Revoke it at")} ${cyan("pushary.com/dashboard/agent/settings")} ${dim("if nothing else uses it.")}`);
@@ -3605,6 +3653,7 @@ var main = async () => {
3605
3653
  if (outcome.kind === "ok") {
3606
3654
  trimmedKey = outcome.apiKey;
3607
3655
  phonePass = outcome.phonePass;
3656
+ signedInThroughTheBrowser = true;
3608
3657
  keyOrigin = "created_by_this_cli";
3609
3658
  console.log();
3610
3659
  } else if (outcome.kind === "rejected") {
@@ -3656,7 +3705,7 @@ var main = async () => {
3656
3705
  const transcriptSync = transcriptPreferenceForSetup(options.transcripts);
3657
3706
  if (transcriptSync) {
3658
3707
  console.log();
3659
- console.log(` ${TRANSCRIPT_SYNC_NOTICE}`);
3708
+ console.log(` ${dim(TRANSCRIPT_SYNC_NOTICE)}`);
3660
3709
  }
3661
3710
  const rc = await saveApiKey(trimmedKey, keyOrigin, controlMode, transcriptSync, replacedKeyRecordWasHonoured);
3662
3711
  if (isKeyHeldByMacApp(trimmedKey, macAppHolder)) recordMacAppKeyPrefix(trimmedKey);
@@ -3700,7 +3749,7 @@ var main = async () => {
3700
3749
  const ignoredEnvironmentKey = shellKeyDiffersFromSavedKey && envKey !== void 0 && isIgnoredShellValue(envKey);
3701
3750
  const staleEnvironmentKey = shellKeyDiffersFromSavedKey && !ignoredEnvironmentKey;
3702
3751
  if (envKey && shellKeyDiffersFromSavedKey) {
3703
- noteManual(describeShellKeyShadow({
3752
+ noteStepThatBlocksAgents(describeShellKeyShadow({
3704
3753
  shellKey: envKey,
3705
3754
  shellAccount: envCheck === null ? null : describeKeyAccount(envCheck),
3706
3755
  savedAccount: describeKeyAccount(keyCheck),
@@ -3849,6 +3898,12 @@ var main = async () => {
3849
3898
  const startPhoneSignInWith = (pass) => (replacing) => startTerminalPhoneSignIn(pass, pairingComputerOf(hostname2(), process.platform, detectedAgentChoices()), reportedInstallSource(), {}, replacing ?? null);
3850
3899
  const startPhoneSignInHere = phonePass === null ? void 0 : startPhoneSignInWith(phonePass);
3851
3900
  const phoneSignIn = keys !== null && startPhoneSignInHere !== void 0 && connectInstructions.showQr ? await startPhoneSignInHere() : null;
3901
+ recordPhoneSignIn(phoneSignInOutcomeOf({
3902
+ canShowQr: keys !== null && connectInstructions.showQr,
3903
+ signedInThroughTheBrowser,
3904
+ passArrived: startPhoneSignInHere !== void 0,
3905
+ started: phoneSignIn !== null
3906
+ }));
3852
3907
  const reportStoppedAtThePhone = async (exitCode2) => {
3853
3908
  await abortWith("interrupted", exitCode2, keyCheck.kind, { completed, skipped, failures, connectOutcome: connectOutcomeOf(null, null) });
3854
3909
  };
@@ -4082,7 +4137,8 @@ var main = async () => {
4082
4137
  printAgentFailures(failures, setupAccount);
4083
4138
  }
4084
4139
  console.log();
4085
- for (const line of closing.next) console.log(` ${line}`);
4140
+ const closingAction = closingActionOf(closing);
4141
+ for (const line of closing.next) console.log(line === closingAction ? ` ${bold(`${PRIMARY_ACTION_MARK} ${line}`)}` : ` ${line}`);
4086
4142
  console.log();
4087
4143
  console.log(` ${dim("Useful:")}`);
4088
4144
  for (const line of renderCommandSurface()) console.log(` ${dim(line)}`);
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exitOnHelpFlag
4
- } from "../chunk-4LTASS5P.js";
4
+ } from "../chunk-L6Z3VDAS.js";
5
5
  import {
6
6
  readLedgerSummary
7
- } from "../chunk-NMADZVTC.js";
7
+ } from "../chunk-MKBPHFPR.js";
8
8
  import {
9
9
  getApiKey
10
- } from "../chunk-5UXIPTWM.js";
11
- import "../chunk-VA573E2C.js";
10
+ } from "../chunk-VLKTJDUJ.js";
11
+ import "../chunk-BCYNGMS5.js";
12
12
  import "../chunk-BG4HHB7E.js";
13
13
  import "../chunk-CXQWDQCJ.js";
14
- import "../chunk-SZMGZ3C5.js";
14
+ import "../chunk-ZLNUJLNE.js";
15
15
  import "../chunk-MLKGABMK.js";
16
16
 
17
17
  // bin/pushary-stats.ts