pushary 1.9.235 → 1.9.236

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 (149) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
  3. package/data/cursor-plugin/CHANGELOG.md +4 -0
  4. package/data/cursor-plugin/scripts/redaction.mjs +2 -0
  5. package/data/openclaw-plugin/dist/redaction.js +2 -0
  6. package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
  7. package/data/vscode-plugin/CHANGELOG.md +4 -0
  8. package/data/vscode-plugin/scripts/redaction.mjs +2 -0
  9. package/dist/{api-UVFEVNJD.js → api-ZRAS6XVR.js} +11 -11
  10. package/dist/bin/pushary-audit.js +3 -3
  11. package/dist/bin/pushary-bell-hook.js +28 -28
  12. package/dist/bin/pushary-bell.js +12 -12
  13. package/dist/bin/pushary-calls.js +15 -15
  14. package/dist/bin/pushary-claude.js +26 -26
  15. package/dist/bin/pushary-clean.js +39 -39
  16. package/dist/bin/pushary-codex-bridge.js +23 -23
  17. package/dist/bin/pushary-codex-hook.js +34 -34
  18. package/dist/bin/pushary-codex-session.js +8 -8
  19. package/dist/bin/pushary-codex.js +16 -16
  20. package/dist/bin/pushary-connect.js +35 -35
  21. package/dist/bin/pushary-cowork.js +5 -5
  22. package/dist/bin/pushary-daemon.js +46 -46
  23. package/dist/bin/pushary-disconnect.js +30 -30
  24. package/dist/bin/pushary-display-hook.js +8 -0
  25. package/dist/bin/pushary-doctor.js +47 -47
  26. package/dist/bin/pushary-elicitation-hook.js +27 -27
  27. package/dist/bin/pushary-gemini-bridge.js +18 -18
  28. package/dist/bin/pushary-gemini-hook.js +31 -31
  29. package/dist/bin/pushary-hook.js +35 -35
  30. package/dist/bin/pushary-login.js +23 -23
  31. package/dist/bin/pushary-logout.js +31 -31
  32. package/dist/bin/pushary-mcp.js +12 -12
  33. package/dist/bin/pushary-mode.js +16 -16
  34. package/dist/bin/pushary-notification-hook.js +27 -27
  35. package/dist/bin/pushary-opencode-bridge.js +22 -22
  36. package/dist/bin/pushary-opencode-hook.js +32 -32
  37. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  38. package/dist/bin/pushary-permission-hook.js +35 -35
  39. package/dist/bin/pushary-post-hook.js +28 -28
  40. package/dist/bin/pushary-prompt-hook.js +27 -27
  41. package/dist/bin/pushary-session-end-hook.js +27 -27
  42. package/dist/bin/pushary-session-start-hook.js +39 -39
  43. package/dist/bin/pushary-sessions.js +12 -12
  44. package/dist/bin/pushary-setup.js +325 -67
  45. package/dist/bin/pushary-stats.js +5 -5
  46. package/dist/bin/pushary-status.js +36 -36
  47. package/dist/bin/pushary-stop-hook.js +27 -27
  48. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  49. package/dist/bin/pushary-suggestions.js +16 -16
  50. package/dist/bin/pushary-transcript-register.js +17 -17
  51. package/dist/bin/pushary-transcripts.js +26 -26
  52. package/dist/bin/pushary-upgrade.js +47 -47
  53. package/dist/bin/pushary-wait.js +16 -16
  54. package/dist/bin/pushary.js +7 -7
  55. package/dist/{chunk-FCQ52N4E.js → chunk-2H63TCPL.js} +8 -8
  56. package/dist/{chunk-3B5FQ542.js → chunk-2MB3FZAJ.js} +2 -2
  57. package/dist/{chunk-KTJHZVCD.js → chunk-35IY2SPK.js} +3 -3
  58. package/dist/{chunk-6H3RBEHP.js → chunk-37RAJAPB.js} +1 -1
  59. package/dist/{chunk-MN6DXDJR.js → chunk-3SEH5JU3.js} +6 -6
  60. package/dist/{chunk-3QQY5USW.js → chunk-3W7UZY2B.js} +4 -4
  61. package/dist/{chunk-4QQ3HXGR.js → chunk-4CUOYT5O.js} +3 -3
  62. package/dist/{chunk-SFIYMKWT.js → chunk-4OHGEWKF.js} +5 -5
  63. package/dist/{chunk-XYRXKL3V.js → chunk-4OLECRWP.js} +1 -1
  64. package/dist/{chunk-3C2XMGXE.js → chunk-5JRALQKT.js} +3 -3
  65. package/dist/{chunk-HI3LOBT5.js → chunk-5PWGMOHP.js} +112 -48
  66. package/dist/{chunk-TMN7LKDC.js → chunk-6LF7EQIZ.js} +7 -7
  67. package/dist/{chunk-FEVQDABQ.js → chunk-74MBT2PL.js} +2 -2
  68. package/dist/{chunk-CSXA4HMV.js → chunk-7HKBGKLY.js} +2 -2
  69. package/dist/{chunk-H4364HR3.js → chunk-7TGJ6FPW.js} +5 -5
  70. package/dist/{chunk-3K2S4OW7.js → chunk-ABQRDSE5.js} +7 -6
  71. package/dist/{chunk-ELP65DFC.js → chunk-B6GCLODI.js} +1 -1
  72. package/dist/{chunk-MHZSIN5K.js → chunk-BX3VDXXW.js} +3 -3
  73. package/dist/{chunk-JF4VX754.js → chunk-CFIZWE37.js} +1 -1
  74. package/dist/{chunk-GPD4BB76.js → chunk-CG2YLNCB.js} +1 -1
  75. package/dist/{chunk-JF3ONE4H.js → chunk-D6O4XDS5.js} +2 -2
  76. package/dist/{chunk-BBZ3BBZC.js → chunk-DEZKBMHO.js} +4 -4
  77. package/dist/{chunk-GSB62GNT.js → chunk-DKFM2NSF.js} +4 -4
  78. package/dist/{chunk-H5TBR4BB.js → chunk-EZ4QXQNX.js} +5 -5
  79. package/dist/{chunk-OSDIFFSP.js → chunk-FIIRS53K.js} +3 -3
  80. package/dist/{chunk-Z7LAWFZ7.js → chunk-GNCOGELX.js} +1 -1
  81. package/dist/{chunk-ZPQPTIIY.js → chunk-GQGV7H6W.js} +2 -2
  82. package/dist/{chunk-WMCF6PR5.js → chunk-GS2SPPBB.js} +3 -3
  83. package/dist/{chunk-7B2DHU32.js → chunk-HAZ72WZD.js} +16 -16
  84. package/dist/{chunk-A2GO3G2I.js → chunk-HB4BB66C.js} +6 -6
  85. package/dist/{chunk-LDX3KQMJ.js → chunk-HR7UASHX.js} +2 -2
  86. package/dist/{chunk-2QUYUFYQ.js → chunk-HTDRJMP5.js} +4 -4
  87. package/dist/{chunk-OV2XD2UY.js → chunk-HY27YNME.js} +1 -1
  88. package/dist/{chunk-JYFMVOML.js → chunk-J2JGO6SS.js} +1 -1
  89. package/dist/{chunk-NDXTGRZG.js → chunk-J65WHWPK.js} +1 -1
  90. package/dist/{chunk-FUJZW3R5.js → chunk-JZ272QIY.js} +1 -1
  91. package/dist/{chunk-7XCL66ON.js → chunk-KVGQYML5.js} +2 -2
  92. package/dist/{chunk-VPG6QENY.js → chunk-LZYSSSF3.js} +10 -10
  93. package/dist/{chunk-TAXOI6AK.js → chunk-M45REXUU.js} +4 -4
  94. package/dist/{chunk-XGW4PJPO.js → chunk-NEQMXQZQ.js} +2 -2
  95. package/dist/{chunk-WY2UKKLD.js → chunk-NH4HBX7J.js} +1 -1
  96. package/dist/{chunk-WVJFHP75.js → chunk-NSUIUOE7.js} +1 -1
  97. package/dist/{chunk-TWACA7ER.js → chunk-NVJQHRM3.js} +9 -9
  98. package/dist/{chunk-JM6EAV42.js → chunk-O3UOI6ML.js} +5 -5
  99. package/dist/{chunk-M64A2Z2F.js → chunk-OGFKB66L.js} +1 -1
  100. package/dist/{chunk-JFXYGMV5.js → chunk-OHMC3ZFE.js} +4 -4
  101. package/dist/{chunk-FZN7TKSM.js → chunk-OSRHNYI6.js} +1 -1
  102. package/dist/{chunk-G5EKU4RB.js → chunk-P3JLLHOO.js} +3 -3
  103. package/dist/{chunk-5QLIXOVT.js → chunk-P4ZXHSJX.js} +1 -1
  104. package/dist/{chunk-HPFGXE6Y.js → chunk-PDIDI2JS.js} +6 -6
  105. package/dist/{chunk-Q5SVRCFU.js → chunk-QFP4D7BE.js} +1 -1
  106. package/dist/{chunk-JPKOYDQJ.js → chunk-QKX4J66I.js} +6 -6
  107. package/dist/{chunk-5DRTR5FC.js → chunk-QNM5EW76.js} +5 -5
  108. package/dist/{chunk-AA54OZM2.js → chunk-RHML34U3.js} +5 -5
  109. package/dist/{chunk-7MRK2WXT.js → chunk-RXFLVAIV.js} +2 -2
  110. package/dist/{chunk-HJSW3MH2.js → chunk-SPGDOHHJ.js} +2 -2
  111. package/dist/{chunk-HDD23XYP.js → chunk-SU3M242B.js} +11 -11
  112. package/dist/{chunk-FMWG4X3D.js → chunk-T5OA2WR7.js} +5 -5
  113. package/dist/{chunk-G5OTSL26.js → chunk-TBHZAZPR.js} +3 -3
  114. package/dist/{chunk-K6PBTBLO.js → chunk-TJJEYS3S.js} +4 -4
  115. package/dist/{chunk-Z5EWWGD2.js → chunk-TKTZBQIL.js} +5 -5
  116. package/dist/{chunk-ULDUDSTW.js → chunk-U33VHYHK.js} +24 -0
  117. package/dist/{chunk-URDT623B.js → chunk-UBPTE3MH.js} +1 -1
  118. package/dist/{chunk-X4G5G2ZN.js → chunk-UKHFRW5M.js} +2 -2
  119. package/dist/{chunk-UIBQDALO.js → chunk-UODLZ2D6.js} +3 -3
  120. package/dist/{chunk-4CEGJAEB.js → chunk-UY6AOWQU.js} +162 -21
  121. package/dist/{chunk-DW7ZQX7L.js → chunk-VQXWLHLD.js} +1 -1
  122. package/dist/{chunk-V4ZQBKI6.js → chunk-VRV7MD3W.js} +1 -1
  123. package/dist/{chunk-52PIW2SN.js → chunk-VSNFCUGH.js} +3 -3
  124. package/dist/{chunk-DN6HPGCI.js → chunk-W4F6RVN5.js} +5 -5
  125. package/dist/{chunk-E6IFBGZF.js → chunk-WFUWUWCT.js} +2 -2
  126. package/dist/{chunk-FKX7SWNT.js → chunk-X3SEEC4X.js} +7 -7
  127. package/dist/{chunk-MQSO2S3H.js → chunk-XEXFRZS7.js} +1 -1
  128. package/dist/{chunk-4UIVOCDT.js → chunk-XX3Z4KQL.js} +1 -1
  129. package/dist/{chunk-V7ULGI7U.js → chunk-XYOB4W72.js} +4 -4
  130. package/dist/{chunk-RV5LIW3K.js → chunk-Y4GEE5VA.js} +12 -12
  131. package/dist/{chunk-EINN22XV.js → chunk-YKTCIWKY.js} +2 -2
  132. package/dist/{chunk-LIYQSMYK.js → chunk-Z3XPHDVP.js} +4 -4
  133. package/dist/{chunk-BJRPBKE7.js → chunk-ZAKG5GGJ.js} +4 -4
  134. package/dist/{chunk-ICLT2KA5.js → chunk-ZQ5NCJVO.js} +1 -1
  135. package/dist/{chunk-TGM2WHUG.js → chunk-ZT4PSGTB.js} +2 -2
  136. package/dist/{codex-app-cards-switch-DBFQJU3Y.js → codex-app-cards-switch-CEWQAZD2.js} +11 -11
  137. package/dist/{codex-card-routing-TKG7LOP4.js → codex-card-routing-VRLWXQ4Z.js} +2 -2
  138. package/dist/{codex-desktop-launch-UXMYKS5C.js → codex-desktop-launch-EU5BXQFP.js} +3 -3
  139. package/dist/{codex-session-launch-5NOJKDWN.js → codex-session-launch-7PSWFAOC.js} +20 -20
  140. package/dist/{config-HHUSXJZE.js → config-UQOFNS26.js} +3 -3
  141. package/dist/{global-upgrade-J2NB62DV.js → global-upgrade-WO2MIUOJ.js} +9 -9
  142. package/dist/{identity-7O3ZBVUY.js → identity-7UK4G6K7.js} +4 -4
  143. package/dist/{live-capabilities-773SVQWH.js → live-capabilities-HRJBL4FO.js} +4 -4
  144. package/dist/{paths-VZXMX35O.js → paths-2FPNRZAX.js} +3 -3
  145. package/dist/{reapply-7MIBK2WB.js → reapply-GH4LWS25.js} +34 -34
  146. package/dist/src/index.js +33 -33
  147. package/dist/{upgrade-lock-WWTTPOIZ.js → upgrade-lock-CA25EHHB.js} +4 -4
  148. package/dist/{usage-PHTLHFL2.js → usage-23UD3UL7.js} +3 -3
  149. package/package.json +1 -1
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-MN6DXDJR.js";
17
+ } from "./chunk-3SEH5JU3.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-FZN7TKSM.js";
32
+ } from "./chunk-OSRHNYI6.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-G5OTSL26.js";
35
+ } from "./chunk-TBHZAZPR.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-X4G5G2ZN.js";
38
+ } from "./chunk-UKHFRW5M.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-7MRK2WXT.js";
41
+ } from "./chunk-RXFLVAIV.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-ULDUDSTW.js";
45
+ } from "./chunk-U33VHYHK.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -474,13 +474,26 @@ var pairWaitingLabel = (elapsedMs, minutesLeft) => {
474
474
  var PAIR_GET_APP_LINE = "No app yet? Get it at pushary.com/download. Pairing keeps waiting.";
475
475
  var PAIRING_ESCAPE_KEY_COMMAND = `${NPX_LATEST_COMMAND} setup --key pk_...`;
476
476
  var PAIRING_ESCAPE_KEY_PAGE = "pushary.com/dashboard/agent/settings";
477
- var describePairingEscape = () => [
478
- `${yellow("!")} No app yet? Get it at ${cyan(PUSHARY_APP_DOWNLOAD_URL)}, then run setup again.`,
479
- "",
477
+ var keyEscapeLines = () => [
480
478
  ` ${dim("Already have a key? Use it instead:")}`,
481
479
  ` ${cyan(PAIRING_ESCAPE_KEY_COMMAND)}`,
482
480
  ` ${dim("Find it at")} ${cyan(PAIRING_ESCAPE_KEY_PAGE)}`
483
481
  ];
482
+ var describePairingEscape = () => [
483
+ `${yellow("!")} No app yet? Get it at ${cyan(PUSHARY_APP_DOWNLOAD_URL)}, then run setup again.`,
484
+ "",
485
+ ...keyEscapeLines()
486
+ ];
487
+ var describeSignInEscape = () => [
488
+ `${dim("Run")} ${cyan(`${NPX_LATEST_COMMAND} setup`)} ${dim("to sign in again.")}`,
489
+ "",
490
+ ...keyEscapeLines()
491
+ ];
492
+ var SIGN_IN_KEEP_RUNNING_LINES = [
493
+ "This command has to keep running until you sign in.",
494
+ "Run the same command again in the background, keep it running, and wait for it to finish."
495
+ ];
496
+ var describeCancelledSignIn = (exitCode) => exitCode === EXIT_TERMINATED ? SIGN_IN_KEEP_RUNNING_LINES.map((line) => dim(line)) : describeSignInEscape();
484
497
  var PAIRING_CANCELLED_LABEL = "Cancelled";
485
498
  var PAIRING_STOPPED_LABEL = "Stopped before your phone approved. The pairing code was cancelled.";
486
499
  var PAIRING_KEEP_RUNNING_LINES = [
@@ -599,6 +612,45 @@ var PAIR_TIMEOUT_MINUTES = Math.ceil(PAIR_TIMEOUT_MS / 6e4);
599
612
  var PAIRING_KEEPS_RUNNING_NOTICE = `This keeps running until your phone approves, for up to ${PAIR_TIMEOUT_MINUTES} minutes. Run it in the background and keep it running.`;
600
613
  var heldUntilTheSignalExits = () => new Promise(() => {
601
614
  });
615
+ var pollAppPairing = async (options) => {
616
+ let consecutiveFailures = 0;
617
+ while (options.clock.now() < options.deadline) {
618
+ if (options.stopped()) return { kind: "stopped" };
619
+ options.beforeEachPoll?.();
620
+ const claim = await claimPairing(options.pairId);
621
+ if (options.stopped()) return { kind: "stopped" };
622
+ if (claim === null) {
623
+ consecutiveFailures += 1;
624
+ if (consecutiveFailures >= PAIR_MAX_CONSECUTIVE_FAILURES) return { kind: "unreachable" };
625
+ await options.clock.sleep(PAIR_POLL_INTERVAL_MS);
626
+ continue;
627
+ }
628
+ consecutiveFailures = 0;
629
+ if (claim?.status === "authorized") {
630
+ let apiKey;
631
+ try {
632
+ apiKey = openSealedKey(claim.sealed, options.keypair);
633
+ } catch {
634
+ return { kind: "decrypt" };
635
+ }
636
+ await ackPairing(options.pairId);
637
+ return { kind: "paired", apiKey, handle: claim.siteSlug };
638
+ }
639
+ if (claim?.status === "expired") return { kind: "expired" };
640
+ if (claim?.status === "failed") return { kind: "failed", reason: claim.reason };
641
+ await options.clock.sleep(PAIR_POLL_INTERVAL_MS);
642
+ }
643
+ return { kind: "timeout" };
644
+ };
645
+ var keyLeftInPairing = async (pairId, keypair) => {
646
+ const claim = await claimPairing(pairId);
647
+ if (claim?.status !== "authorized") return null;
648
+ try {
649
+ return openSealedKey(claim.sealed, keypair);
650
+ } catch {
651
+ return null;
652
+ }
653
+ };
602
654
  var connectViaAppPairing = async (options) => {
603
655
  const clock = options.clock ?? SYSTEM_PAIR_CLOCK;
604
656
  const keypair = generateKeypair();
@@ -650,50 +702,40 @@ var connectViaAppPairing = async (options) => {
650
702
  };
651
703
  const stop = startSpinner(() => advisesInTheLabel ? pairWaitingLabel(elapsed(), minutesLeft()) : pairCountdownLabel(elapsed(), minutesLeft()));
652
704
  stopSpinner = stop;
653
- let consecutiveFailures = 0;
654
- while (clock.now() < deadline) {
655
- if (cancelled) return heldUntilTheSignalExits();
656
- if (!advisesInTheLabel) writeAdviceThatFellDue();
657
- const claim = await claimPairing(pairId);
658
- if (cancelled) return heldUntilTheSignalExits();
659
- if (claim === null) {
660
- consecutiveFailures += 1;
661
- if (consecutiveFailures >= PAIR_MAX_CONSECUTIVE_FAILURES) {
662
- stop(yellow("!"), `Can't reach pushary.com to finish pairing. Check your connection, then run ${rerun} again.`);
663
- await cancelPairing(pairId);
664
- return unlessSignalled(pairFailed("unreachable"));
665
- }
666
- await clock.sleep(PAIR_POLL_INTERVAL_MS);
667
- continue;
668
- }
669
- consecutiveFailures = 0;
670
- if (claim?.status === "authorized") {
671
- let apiKey;
672
- try {
673
- apiKey = openSealedKey(claim.sealed, keypair);
674
- } catch {
675
- stop(yellow("!"), `Pairing failed to decrypt. Re-run ${rerun} to try again.`);
676
- await cancelPairing(pairId);
677
- return unlessSignalled(pairFailed("decrypt"));
678
- }
679
- await ackPairing(pairId);
705
+ const polled = await pollAppPairing({
706
+ pairId,
707
+ keypair,
708
+ deadline,
709
+ clock,
710
+ stopped: () => cancelled,
711
+ beforeEachPoll: advisesInTheLabel ? void 0 : writeAdviceThatFellDue
712
+ });
713
+ switch (polled.kind) {
714
+ case "stopped":
715
+ return heldUntilTheSignalExits();
716
+ case "unreachable":
717
+ stop(yellow("!"), `Can't reach pushary.com to finish pairing. Check your connection, then run ${rerun} again.`);
718
+ await cancelPairing(pairId);
719
+ return unlessSignalled(pairFailed("unreachable"));
720
+ case "decrypt":
721
+ stop(yellow("!"), `Pairing failed to decrypt. Re-run ${rerun} to try again.`);
722
+ await cancelPairing(pairId);
723
+ return unlessSignalled(pairFailed("decrypt"));
724
+ case "paired":
680
725
  if (cancelled) return heldUntilTheSignalExits();
681
726
  stop(check, "App connected");
682
- return { kind: "paired", apiKey, handle: claim.siteSlug };
683
- }
684
- if (claim?.status === "expired") {
727
+ return { kind: "paired", apiKey: polled.apiKey, handle: polled.handle };
728
+ case "expired":
685
729
  stop(yellow("!"), `Pairing expired. Re-run ${rerun} to try again.`);
686
730
  return pairFailed("expired");
687
- }
688
- if (claim?.status === "failed") {
689
- stop(yellow("!"), describePairFailure(claim.reason, options.command));
731
+ case "failed":
732
+ stop(yellow("!"), describePairFailure(polled.reason, options.command));
690
733
  return pairFailed("rejected");
691
- }
692
- await clock.sleep(PAIR_POLL_INTERVAL_MS);
734
+ case "timeout":
735
+ stop(yellow("!"), "Timed out waiting for the app");
736
+ await cancelPairing(pairId);
737
+ return unlessSignalled(pairFailed("timeout"));
693
738
  }
694
- stop(yellow("!"), "Timed out waiting for the app");
695
- await cancelPairing(pairId);
696
- return unlessSignalled(pairFailed("timeout"));
697
739
  } catch (err) {
698
740
  finishWaitLine(yellow("!"), `Pairing error ${dim(`(${err instanceof Error ? err.message : "network"})`)}`);
699
741
  await cancelPairing(pairId);
@@ -728,6 +770,8 @@ var watchSkip = (listener) => {
728
770
  };
729
771
  var PHONE_WAIT_REPAIR_LINE = `Open the Pushary app, sign in with the same account, and allow notifications. Then run ${NPX_LATEST_COMMAND} doctor --roundtrip. Your agent configuration is saved; no reinstall is needed.`;
730
772
  var phoneWaitRepair = (verdict) => verdict.kind === "nobody" ? [PHONE_WAIT_REPAIR_LINE] : describeAppRepair(verdict) ?? [];
773
+ var PHONE_WAIT_SKIPPED = "skipped_at_the_terminal";
774
+ var phoneWaitWasSkipped = (phone) => phone?.detail === PHONE_WAIT_SKIPPED;
731
775
  var pollForYourPhone = async (apiKey, firstSeen, options) => {
732
776
  const clock = options.clock ?? SYSTEM_PAIR_CLOCK;
733
777
  const deadline = clock.now() + PHONE_WAIT_TIMEOUT_MS;
@@ -755,7 +799,11 @@ var pollForYourPhone = async (apiKey, firstSeen, options) => {
755
799
  }
756
800
  await Promise.race([clock.sleep(CONNECT_POLL_INTERVAL_MS), skip.woken]);
757
801
  }
758
- stop(yellow("!"), skip.skipped() ? "Skipped the phone check" : "No phone connected yet");
802
+ if (skip.skipped()) {
803
+ stop(yellow("!"), "Skipped the phone check");
804
+ return { kind: "skipped" };
805
+ }
806
+ stop(yellow("!"), "No phone connected yet");
759
807
  return { kind: "not_yet", lastSeen };
760
808
  } finally {
761
809
  skip.stop();
@@ -774,6 +822,7 @@ var waitForYourPhone = async (apiKey, options = {}) => {
774
822
  const waited = await pollForYourPhone(apiKey, probe.status, options);
775
823
  if (waited.kind === "connected") return sendAndConfirm(apiKey, waited.channels);
776
824
  if (waited.kind === "unauthorized" || waited.kind === "locked") return describeProbeFailure(waited);
825
+ if (waited.kind === "skipped") return phoneFailure(PHONE_WAIT_SKIPPED);
777
826
  const repair = phoneWaitRepair(reachVerdict(waited.lastSeen));
778
827
  for (const line of repair) console.log(` ${dim(line)}`);
779
828
  return phoneFailure("no_device", repair);
@@ -855,7 +904,10 @@ var pairAppWithThisComputer = async (apiKey, options) => {
855
904
  };
856
905
 
857
906
  export {
907
+ EXIT_ABORTED,
908
+ EXIT_TERMINATED,
858
909
  fetchChannels,
910
+ printQr,
859
911
  canShowPairingQr,
860
912
  connectDevice,
861
913
  confirmAppConnection,
@@ -863,12 +915,24 @@ export {
863
915
  pairingAgainHelps,
864
916
  checkPhoneWithoutPairing,
865
917
  printConnectInstructions,
918
+ PAIR_TIMEOUT_MS,
866
919
  describePairingEscape,
920
+ describeSignInEscape,
921
+ describeCancelledSignIn,
867
922
  describePairCommandEscape,
868
923
  describeCancelledPairing,
924
+ SYSTEM_PAIR_CLOCK,
925
+ startPairing,
926
+ describePairFailure,
927
+ cancelPairing,
869
928
  pairingEscapeApplies,
929
+ buildPairLinks,
930
+ heldUntilTheSignalExits,
931
+ pollAppPairing,
932
+ keyLeftInPairing,
870
933
  connectViaAppPairing,
871
934
  PHONE_WAIT_SKIP_KEY,
935
+ phoneWaitWasSkipped,
872
936
  waitForYourPhone,
873
937
  pairAppWithThisComputer
874
938
  };
@@ -2,31 +2,31 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-7XCL66ON.js";
5
+ } from "./chunk-KVGQYML5.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-ZPQPTIIY.js";
8
+ } from "./chunk-GQGV7H6W.js";
9
9
  import {
10
10
  createIo
11
- } from "./chunk-FZN7TKSM.js";
11
+ } from "./chunk-OSRHNYI6.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-G5OTSL26.js";
17
+ } from "./chunk-TBHZAZPR.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-WMCF6PR5.js";
20
+ } from "./chunk-GS2SPPBB.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-XGW4PJPO.js";
23
+ } from "./chunk-NEQMXQZQ.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-ULDUDSTW.js";
29
+ } from "./chunk-U33VHYHK.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  quoteIfNeeded,
7
7
  shellDoubleQuoted
8
- } from "./chunk-JFXYGMV5.js";
8
+ } from "./chunk-OHMC3ZFE.js";
9
9
  import {
10
10
  writeFileAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -24,7 +24,7 @@ import {
24
24
  PUSHARY_HOSTS,
25
25
  PUSHARY_TOOL_PREFIX,
26
26
  withHookHoldBudget
27
- } from "./chunk-ULDUDSTW.js";
27
+ } from "./chunk-U33VHYHK.js";
28
28
 
29
29
  // src/setup/paths.ts
30
30
  import { createHash as createHash2 } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  projectNameFor
3
- } from "./chunk-4UIVOCDT.js";
3
+ } from "./chunk-XX3Z4KQL.js";
4
4
  import {
5
5
  readConfigFileKey
6
- } from "./chunk-WMCF6PR5.js";
6
+ } from "./chunk-GS2SPPBB.js";
7
7
 
8
8
  // src/bell/fleet.ts
9
9
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-NDXTGRZG.js";
3
+ } from "./chunk-J65WHWPK.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-G5OTSL26.js";
6
+ } from "./chunk-TBHZAZPR.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-OSDIFFSP.js";
9
+ } from "./chunk-FIIRS53K.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-XGW4PJPO.js";
12
+ } from "./chunk-NEQMXQZQ.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-ULDUDSTW.js";
17
+ } from "./chunk-U33VHYHK.js";
18
18
 
19
19
  // src/retry.ts
20
20
  var isRetryable = (err) => {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  UNSET_IGNORED_SHELL_VALUE_STEP
3
- } from "./chunk-TAXOI6AK.js";
3
+ } from "./chunk-M45REXUU.js";
4
4
  import {
5
5
  notificationAnswerStep
6
- } from "./chunk-MN6DXDJR.js";
6
+ } from "./chunk-3SEH5JU3.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-MHZSIN5K.js";
10
+ } from "./chunk-BX3VDXXW.js";
11
11
  import {
12
12
  NPX_LATEST_COMMAND,
13
13
  npmExecSetupCommandFor
14
- } from "./chunk-7MRK2WXT.js";
14
+ } from "./chunk-RXFLVAIV.js";
15
15
  import {
16
16
  EXIT
17
17
  } from "./chunk-BG4HHB7E.js";
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  compatibleProfileFor,
23
23
  isCompatibleAgentType
24
- } from "./chunk-ULDUDSTW.js";
24
+ } from "./chunk-U33VHYHK.js";
25
25
 
26
26
  // src/setup/closing.ts
27
27
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -36,6 +36,7 @@ var TRANSCRIPT_SYNC_NOTICE = `Transcripts sync redacted and encrypted. Your phon
36
36
  var PAIR_PHONE_APP_HINT = `${NPX_LATEST_COMMAND} pair pair the Pushary app on your phone`;
37
37
  var ALLOW_NOTIFICATIONS_HINT = `${NPX_LATEST_COMMAND} doctor --roundtrip after you allow notifications in the Pushary app`;
38
38
  var unreachedPhoneHint = (facts) => facts.phoneAwaitsNotifications === true ? ALLOW_NOTIFICATIONS_HINT : PAIR_PHONE_APP_HINT;
39
+ var NO_PHONE_CONNECTED_LINE = "No phone is connected. Pushary cannot reach you away from this computer until one is.";
39
40
  var RESTART_AGENTS_LINE = "Restart any open agent sessions so they pick up Pushary.";
40
41
  var TRY_A_QUESTION_LINE = 'Try it: start a new agent session and say "Use Pushary to ask me a multiple-choice question, wait for my answer, then tell me what I picked."';
41
42
  var AGENTS_WITH_A_PUSHARY_QUESTION_TOOL = /* @__PURE__ */ new Set([
@@ -262,7 +263,7 @@ var describeClosing = (facts) => {
262
263
  headline: completeHeadline(codexGap),
263
264
  next: [
264
265
  ...codexApprovalsSteps(codexGap),
265
- "The phone check was skipped, so nothing here proves an approval reaches you.",
266
+ facts.phoneSkippedAtTheTerminal === true ? NO_PHONE_CONNECTED_LINE : "The phone check was skipped, so nothing here proves an approval reaches you.",
266
267
  "",
267
268
  ...nextSteps(facts, false)
268
269
  ],
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderCommandHelp
3
- } from "./chunk-7MRK2WXT.js";
3
+ } from "./chunk-RXFLVAIV.js";
4
4
  import {
5
5
  EXIT
6
6
  } from "./chunk-BG4HHB7E.js";
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-JFXYGMV5.js";
6
+ } from "./chunk-OHMC3ZFE.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-7MRK2WXT.js";
12
+ } from "./chunk-RXFLVAIV.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-ULDUDSTW.js";
15
+ } from "./chunk-U33VHYHK.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-ULDUDSTW.js";
4
+ } from "./chunk-U33VHYHK.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-JYFMVOML.js";
9
+ } from "./chunk-J2JGO6SS.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-FEVQDABQ.js";
6
+ } from "./chunk-74MBT2PL.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-CXQWDQCJ.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-ULDUDSTW.js";
20
+ } from "./chunk-U33VHYHK.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-FKX7SWNT.js";
3
+ } from "./chunk-X3SEEC4X.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-WMCF6PR5.js";
6
+ } from "./chunk-GS2SPPBB.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-FEVQDABQ.js";
9
+ } from "./chunk-74MBT2PL.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-PM2NRK6Y.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-ULDUDSTW.js";
16
+ } from "./chunk-U33VHYHK.js";
17
17
 
18
18
  // src/shared-mcp-key.ts
19
19
  var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-H4364HR3.js";
3
+ } from "./chunk-7TGJ6FPW.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-NDXTGRZG.js";
6
+ } from "./chunk-J65WHWPK.js";
7
7
  import {
8
8
  malformedApiKeyMessage
9
- } from "./chunk-XGW4PJPO.js";
9
+ } from "./chunk-NEQMXQZQ.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-7MRK2WXT.js";
12
+ } from "./chunk-RXFLVAIV.js";
13
13
 
14
14
  // src/mcp-stdio-bridge.ts
15
15
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-BBZ3BBZC.js";
8
+ } from "./chunk-DEZKBMHO.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-ZPQPTIIY.js";
11
+ } from "./chunk-GQGV7H6W.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-G5OTSL26.js";
14
+ } from "./chunk-TBHZAZPR.js";
15
15
  import {
16
16
  findExportedKeyLines,
17
17
  isAdoptedMacAppKey,
@@ -21,10 +21,10 @@ import {
21
21
  readConfigFileKey,
22
22
  readKeySource,
23
23
  readMacAppKeyPrefix
24
- } from "./chunk-WMCF6PR5.js";
24
+ } from "./chunk-GS2SPPBB.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-ULDUDSTW.js";
27
+ } from "./chunk-U33VHYHK.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-OV2XD2UY.js";
3
+ } from "./chunk-HY27YNME.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-XGW4PJPO.js";
6
+ } from "./chunk-NEQMXQZQ.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-ULDUDSTW.js";
16
+ } from "./chunk-U33VHYHK.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-ULDUDSTW.js";
12
+ } from "./chunk-U33VHYHK.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-G5OTSL26.js";
3
+ } from "./chunk-TBHZAZPR.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-ULDUDSTW.js";
6
+ } from "./chunk-U33VHYHK.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-X4G5G2ZN.js";
3
+ } from "./chunk-UKHFRW5M.js";
4
4
  import {
5
5
  apiKeyInForce,
6
6
  configFilePath,
7
7
  keyPrefixToShow
8
- } from "./chunk-XGW4PJPO.js";
8
+ } from "./chunk-NEQMXQZQ.js";
9
9
  import {
10
10
  backupFile,
11
11
  backupFileInto,
@@ -17,7 +17,7 @@ import {
17
17
  API_KEY_PREFIX_PATTERN,
18
18
  isRecord,
19
19
  isValidApiKey
20
- } from "./chunk-ULDUDSTW.js";
20
+ } from "./chunk-U33VHYHK.js";
21
21
 
22
22
  // src/shell-alias.ts
23
23
  import { homedir } from "os";