pushary 1.9.234 → 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.
- package/CHANGELOG.md +20 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/redaction.mjs +2 -0
- package/data/openclaw-plugin/dist/redaction.js +2 -0
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/redaction.mjs +2 -0
- package/dist/{api-M67GCEPF.js → api-ZRAS6XVR.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +9 -0
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +634 -118
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-VNEKDZRS.js → chunk-2H63TCPL.js} +8 -8
- package/dist/{chunk-T6KURDWS.js → chunk-2MB3FZAJ.js} +2 -2
- package/dist/{chunk-WMELBTKZ.js → chunk-35IY2SPK.js} +3 -3
- package/dist/{chunk-ADMVVNW2.js → chunk-37RAJAPB.js} +1 -1
- package/dist/{chunk-XW7UUCSM.js → chunk-3SEH5JU3.js} +6 -6
- package/dist/{chunk-U6HLDWKF.js → chunk-3W7UZY2B.js} +4 -4
- package/dist/{chunk-RGJ6YCGT.js → chunk-4CUOYT5O.js} +3 -3
- package/dist/{chunk-NDPIHRLT.js → chunk-4OHGEWKF.js} +5 -5
- package/dist/{chunk-2JM3H72Y.js → chunk-4OLECRWP.js} +1 -1
- package/dist/{chunk-TZDZ3QGG.js → chunk-5JRALQKT.js} +3 -3
- package/dist/{chunk-AS326WXH.js → chunk-5PWGMOHP.js} +115 -49
- package/dist/{chunk-4JJDUPF5.js → chunk-6LF7EQIZ.js} +7 -7
- package/dist/{chunk-ZGQCZKNY.js → chunk-74MBT2PL.js} +2 -2
- package/dist/{chunk-6XKHPCFW.js → chunk-7HKBGKLY.js} +2 -2
- package/dist/{chunk-KKVTBTX5.js → chunk-7TGJ6FPW.js} +5 -5
- package/dist/{chunk-YUBMSPWE.js → chunk-ABQRDSE5.js} +12 -34
- package/dist/{chunk-5ZTBYRTQ.js → chunk-B6GCLODI.js} +1 -1
- package/dist/{chunk-GRWWQNKA.js → chunk-BX3VDXXW.js} +3 -3
- package/dist/{chunk-DXB3WZQH.js → chunk-CFIZWE37.js} +1 -1
- package/dist/{chunk-7O766ACL.js → chunk-CG2YLNCB.js} +1 -1
- package/dist/{chunk-KAHKKD4R.js → chunk-D6O4XDS5.js} +2 -2
- package/dist/{chunk-BBPSHOSK.js → chunk-DEZKBMHO.js} +4 -4
- package/dist/{chunk-6RMGY4KP.js → chunk-DKFM2NSF.js} +4 -4
- package/dist/{chunk-EKCCDM3D.js → chunk-EZ4QXQNX.js} +5 -5
- package/dist/{chunk-746XV434.js → chunk-FIIRS53K.js} +3 -3
- package/dist/{chunk-OVM54QWV.js → chunk-GNCOGELX.js} +4 -3
- package/dist/{chunk-E7QTBSY2.js → chunk-GQGV7H6W.js} +2 -2
- package/dist/{chunk-2X7O2QE3.js → chunk-GS2SPPBB.js} +3 -3
- package/dist/{chunk-OI5PIRYC.js → chunk-HAZ72WZD.js} +16 -16
- package/dist/{chunk-EA6DCQMW.js → chunk-HB4BB66C.js} +6 -6
- package/dist/{chunk-MNVPOPER.js → chunk-HR7UASHX.js} +2 -2
- package/dist/{chunk-WOH6BCX7.js → chunk-HTDRJMP5.js} +4 -4
- package/dist/{chunk-J3LMHXHV.js → chunk-HY27YNME.js} +1 -1
- package/dist/{chunk-N5FLIE3B.js → chunk-J2JGO6SS.js} +1 -1
- package/dist/{chunk-Q3LFQVDS.js → chunk-J65WHWPK.js} +1 -1
- package/dist/{chunk-E4XS75YY.js → chunk-JZ272QIY.js} +1 -1
- package/dist/{chunk-256X3DP6.js → chunk-KVGQYML5.js} +2 -2
- package/dist/{chunk-BWGJWF7M.js → chunk-LZYSSSF3.js} +10 -10
- package/dist/{chunk-FQNL4HE7.js → chunk-M45REXUU.js} +4 -4
- package/dist/{chunk-A4QB2DOJ.js → chunk-NEQMXQZQ.js} +2 -2
- package/dist/{chunk-6MKKNXW6.js → chunk-NH4HBX7J.js} +1 -1
- package/dist/{chunk-NHKJDBKZ.js → chunk-NSUIUOE7.js} +1 -1
- package/dist/{chunk-AJCFOXEE.js → chunk-NVJQHRM3.js} +9 -9
- package/dist/{chunk-DECR2ASU.js → chunk-O3UOI6ML.js} +5 -5
- package/dist/{chunk-3ABPJTSC.js → chunk-OGFKB66L.js} +1 -1
- package/dist/{chunk-R3VB6IWK.js → chunk-OHMC3ZFE.js} +4 -4
- package/dist/{chunk-VWELQENE.js → chunk-OSRHNYI6.js} +1 -1
- package/dist/{chunk-FHMZFJJI.js → chunk-P3JLLHOO.js} +3 -3
- package/dist/{chunk-3JIMXIO5.js → chunk-P4ZXHSJX.js} +1 -1
- package/dist/{chunk-PIEQTKMS.js → chunk-PDIDI2JS.js} +6 -6
- package/dist/{chunk-WC4WLJ6L.js → chunk-QFP4D7BE.js} +1 -1
- package/dist/{chunk-PIEQVLWA.js → chunk-QKX4J66I.js} +6 -6
- package/dist/{chunk-V7DKNNN3.js → chunk-QNM5EW76.js} +5 -5
- package/dist/{chunk-A3V2JCN3.js → chunk-RHML34U3.js} +5 -5
- package/dist/{chunk-HXYZSB4U.js → chunk-RXFLVAIV.js} +3 -2
- package/dist/{chunk-BEEJ3QJP.js → chunk-SPGDOHHJ.js} +2 -2
- package/dist/{chunk-3FW2QYX2.js → chunk-SU3M242B.js} +11 -11
- package/dist/{chunk-HEOH4JH3.js → chunk-T5OA2WR7.js} +5 -5
- package/dist/{chunk-LT2X6GMR.js → chunk-TBHZAZPR.js} +3 -3
- package/dist/{chunk-DXLNLE7C.js → chunk-TJJEYS3S.js} +4 -4
- package/dist/{chunk-Z6VYPLVI.js → chunk-TKTZBQIL.js} +5 -5
- package/dist/{chunk-QU6OSEUV.js → chunk-U33VHYHK.js} +26 -0
- package/dist/{chunk-MCJGCJUQ.js → chunk-UBPTE3MH.js} +1 -1
- package/dist/{chunk-ZHPK2JGH.js → chunk-UKHFRW5M.js} +2 -2
- package/dist/{chunk-JMHS55ZS.js → chunk-UODLZ2D6.js} +3 -3
- package/dist/{chunk-JD67C7KL.js → chunk-UY6AOWQU.js} +162 -21
- package/dist/{chunk-2BSSRM5U.js → chunk-VQXWLHLD.js} +1 -1
- package/dist/{chunk-7KIEBY2I.js → chunk-VRV7MD3W.js} +1 -1
- package/dist/{chunk-VTCM3LRD.js → chunk-VSNFCUGH.js} +3 -3
- package/dist/{chunk-IPVZPZBT.js → chunk-W4F6RVN5.js} +5 -5
- package/dist/{chunk-BM4WXLS6.js → chunk-WFUWUWCT.js} +2 -2
- package/dist/{chunk-KNM3GFV5.js → chunk-X3SEEC4X.js} +7 -7
- package/dist/{chunk-ZATM23SV.js → chunk-XEXFRZS7.js} +1 -1
- package/dist/{chunk-IAUCVHGV.js → chunk-XX3Z4KQL.js} +1 -1
- package/dist/{chunk-J6CSPMZF.js → chunk-XYOB4W72.js} +4 -4
- package/dist/{chunk-E43Q5IZQ.js → chunk-Y4GEE5VA.js} +12 -12
- package/dist/{chunk-G6Y63AZ2.js → chunk-YKTCIWKY.js} +2 -2
- package/dist/{chunk-WXSWR2FG.js → chunk-Z3XPHDVP.js} +4 -4
- package/dist/{chunk-JCRH5R45.js → chunk-ZAKG5GGJ.js} +12 -4
- package/dist/{chunk-JO7YECNL.js → chunk-ZQ5NCJVO.js} +1 -1
- package/dist/{chunk-IX2DIIR5.js → chunk-ZT4PSGTB.js} +2 -2
- package/dist/{codex-app-cards-switch-FCF22YK6.js → codex-app-cards-switch-CEWQAZD2.js} +11 -11
- package/dist/{codex-card-routing-33FTWY2U.js → codex-card-routing-VRLWXQ4Z.js} +2 -2
- package/dist/{codex-desktop-launch-CMMBCQDF.js → codex-desktop-launch-EU5BXQFP.js} +3 -3
- package/dist/{codex-session-launch-VW4737L5.js → codex-session-launch-7PSWFAOC.js} +20 -20
- package/dist/{config-GPO476YL.js → config-UQOFNS26.js} +3 -3
- package/dist/{global-upgrade-6DOQCXZJ.js → global-upgrade-WO2MIUOJ.js} +9 -9
- package/dist/{identity-4OD6GQPB.js → identity-7UK4G6K7.js} +4 -4
- package/dist/{live-capabilities-X6O5HJCK.js → live-capabilities-HRJBL4FO.js} +4 -4
- package/dist/{paths-LYVFVRQM.js → paths-2FPNRZAX.js} +3 -3
- package/dist/{reapply-GKXG74LO.js → reapply-GH4LWS25.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-LZIWY4Q6.js → upgrade-lock-CA25EHHB.js} +4 -4
- package/dist/{usage-RN5ED6TT.js → usage-23UD3UL7.js} +3 -3
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
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-
|
|
32
|
+
} from "./chunk-OSRHNYI6.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TBHZAZPR.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UKHFRW5M.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RXFLVAIV.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
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
|
|
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
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
await
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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);
|
|
@@ -704,7 +746,8 @@ var connectViaAppPairing = async (options) => {
|
|
|
704
746
|
}
|
|
705
747
|
};
|
|
706
748
|
var PHONE_WAIT_TIMEOUT_MS = 10 * 6e4;
|
|
707
|
-
var
|
|
749
|
+
var PHONE_WAIT_SKIP_KEY = "s";
|
|
750
|
+
var PHONE_WAIT_SKIP_LINE = `Press S to skip. You can connect a phone later with ${NPX_LATEST_COMMAND} setup.`;
|
|
708
751
|
var describePhoneWait = (skipOffered) => [
|
|
709
752
|
bold("Connect your phone"),
|
|
710
753
|
"Open the Pushary app on your phone and allow notifications.",
|
|
@@ -727,6 +770,8 @@ var watchSkip = (listener) => {
|
|
|
727
770
|
};
|
|
728
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.`;
|
|
729
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;
|
|
730
775
|
var pollForYourPhone = async (apiKey, firstSeen, options) => {
|
|
731
776
|
const clock = options.clock ?? SYSTEM_PAIR_CLOCK;
|
|
732
777
|
const deadline = clock.now() + PHONE_WAIT_TIMEOUT_MS;
|
|
@@ -754,7 +799,11 @@ var pollForYourPhone = async (apiKey, firstSeen, options) => {
|
|
|
754
799
|
}
|
|
755
800
|
await Promise.race([clock.sleep(CONNECT_POLL_INTERVAL_MS), skip.woken]);
|
|
756
801
|
}
|
|
757
|
-
|
|
802
|
+
if (skip.skipped()) {
|
|
803
|
+
stop(yellow("!"), "Skipped the phone check");
|
|
804
|
+
return { kind: "skipped" };
|
|
805
|
+
}
|
|
806
|
+
stop(yellow("!"), "No phone connected yet");
|
|
758
807
|
return { kind: "not_yet", lastSeen };
|
|
759
808
|
} finally {
|
|
760
809
|
skip.stop();
|
|
@@ -773,6 +822,7 @@ var waitForYourPhone = async (apiKey, options = {}) => {
|
|
|
773
822
|
const waited = await pollForYourPhone(apiKey, probe.status, options);
|
|
774
823
|
if (waited.kind === "connected") return sendAndConfirm(apiKey, waited.channels);
|
|
775
824
|
if (waited.kind === "unauthorized" || waited.kind === "locked") return describeProbeFailure(waited);
|
|
825
|
+
if (waited.kind === "skipped") return phoneFailure(PHONE_WAIT_SKIPPED);
|
|
776
826
|
const repair = phoneWaitRepair(reachVerdict(waited.lastSeen));
|
|
777
827
|
for (const line of repair) console.log(` ${dim(line)}`);
|
|
778
828
|
return phoneFailure("no_device", repair);
|
|
@@ -854,7 +904,10 @@ var pairAppWithThisComputer = async (apiKey, options) => {
|
|
|
854
904
|
};
|
|
855
905
|
|
|
856
906
|
export {
|
|
907
|
+
EXIT_ABORTED,
|
|
908
|
+
EXIT_TERMINATED,
|
|
857
909
|
fetchChannels,
|
|
910
|
+
printQr,
|
|
858
911
|
canShowPairingQr,
|
|
859
912
|
connectDevice,
|
|
860
913
|
confirmAppConnection,
|
|
@@ -862,11 +915,24 @@ export {
|
|
|
862
915
|
pairingAgainHelps,
|
|
863
916
|
checkPhoneWithoutPairing,
|
|
864
917
|
printConnectInstructions,
|
|
918
|
+
PAIR_TIMEOUT_MS,
|
|
865
919
|
describePairingEscape,
|
|
920
|
+
describeSignInEscape,
|
|
921
|
+
describeCancelledSignIn,
|
|
866
922
|
describePairCommandEscape,
|
|
867
923
|
describeCancelledPairing,
|
|
924
|
+
SYSTEM_PAIR_CLOCK,
|
|
925
|
+
startPairing,
|
|
926
|
+
describePairFailure,
|
|
927
|
+
cancelPairing,
|
|
868
928
|
pairingEscapeApplies,
|
|
929
|
+
buildPairLinks,
|
|
930
|
+
heldUntilTheSignalExits,
|
|
931
|
+
pollAppPairing,
|
|
932
|
+
keyLeftInPairing,
|
|
869
933
|
connectViaAppPairing,
|
|
934
|
+
PHONE_WAIT_SKIP_KEY,
|
|
935
|
+
phoneWaitWasSkipped,
|
|
870
936
|
waitForYourPhone,
|
|
871
937
|
pairAppWithThisComputer
|
|
872
938
|
};
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KVGQYML5.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GQGV7H6W.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OSRHNYI6.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TBHZAZPR.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GS2SPPBB.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
+
} from "./chunk-XX3Z4KQL.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-J65WHWPK.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TBHZAZPR.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FIIRS53K.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NEQMXQZQ.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-U33VHYHK.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M45REXUU.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3SEH5JU3.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
canChangeApprovalSettings
|
|
13
|
-
} from "./chunk-E7QTBSY2.js";
|
|
10
|
+
} from "./chunk-BX3VDXXW.js";
|
|
14
11
|
import {
|
|
15
12
|
NPX_LATEST_COMMAND,
|
|
16
13
|
npmExecSetupCommandFor
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RXFLVAIV.js";
|
|
18
15
|
import {
|
|
19
16
|
EXIT
|
|
20
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -24,7 +21,7 @@ import {
|
|
|
24
21
|
import {
|
|
25
22
|
compatibleProfileFor,
|
|
26
23
|
isCompatibleAgentType
|
|
27
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-U33VHYHK.js";
|
|
28
25
|
|
|
29
26
|
// src/setup/closing.ts
|
|
30
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -39,6 +36,7 @@ var TRANSCRIPT_SYNC_NOTICE = `Transcripts sync redacted and encrypted. Your phon
|
|
|
39
36
|
var PAIR_PHONE_APP_HINT = `${NPX_LATEST_COMMAND} pair pair the Pushary app on your phone`;
|
|
40
37
|
var ALLOW_NOTIFICATIONS_HINT = `${NPX_LATEST_COMMAND} doctor --roundtrip after you allow notifications in the Pushary app`;
|
|
41
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.";
|
|
42
40
|
var RESTART_AGENTS_LINE = "Restart any open agent sessions so they pick up Pushary.";
|
|
43
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."';
|
|
44
42
|
var AGENTS_WITH_A_PUSHARY_QUESTION_TOOL = /* @__PURE__ */ new Set([
|
|
@@ -91,28 +89,15 @@ var describeAnsweredHeadline = (answer) => isSimulatedAnswer(answer) ? SIMULATED
|
|
|
91
89
|
var describeAnsweredHeadlineWithCodexGap = (answer, gap) => `${isSimulatedAnswer(answer) ? SIMULATED_ANSWER_HEADLINE : describeAnswer(answer)} ${CODEX_APPROVALS_GAPS[gap]}`;
|
|
92
90
|
var answeredHeadline = (answer, gap) => gap === null ? describeAnsweredHeadline(answer) : describeAnsweredHeadlineWithCodexGap(answer, gap);
|
|
93
91
|
var completeHeadline = (gap) => gap === null ? SETUP_COMPLETE_HEADLINE : `Agents configured. ${CODEX_APPROVALS_GAPS[gap]}`;
|
|
94
|
-
var
|
|
95
|
-
{ command: "pushary mode", summary: "choose where approval requests appear" },
|
|
96
|
-
{ command: "pushary wait", summary: "show or set how long approvals wait for your phone" }
|
|
97
|
-
];
|
|
98
|
-
var READABLE_APPROVAL_COMMANDS = [
|
|
99
|
-
{ command: "pushary mode", summary: "show where approval requests appear" },
|
|
100
|
-
{ command: "pushary wait", summary: "show how long approvals wait for your phone" }
|
|
101
|
-
];
|
|
102
|
-
var approvalCommandSummaries = (canChange) => canChange ? CHANGEABLE_APPROVAL_COMMANDS : READABLE_APPROVAL_COMMANDS;
|
|
103
|
-
var commandSurfaceFor = (keyScope) => [
|
|
92
|
+
var COMMAND_SURFACE = [
|
|
104
93
|
{ command: "pushary status", summary: "what this machine is connected to" },
|
|
105
|
-
...approvalCommandSummaries(canChangeApprovalSettings(keyScope)),
|
|
106
|
-
{ command: "pushary stats", summary: "what your agents have been asking" },
|
|
107
94
|
{ command: "pushary calls on", summary: "get a phone call when an approval waits" },
|
|
108
|
-
{ command: "pushary claude", summary: "run Claude Code with encrypted transcript support" },
|
|
109
95
|
{ command: "pushary doctor", summary: "check the install" }
|
|
110
96
|
];
|
|
111
97
|
var surfaceColumnOf = (surface) => Math.max(...surface.map((entry) => entry.command.length)) + 2;
|
|
112
|
-
var renderCommandSurface = (
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
return surface.map((entry) => `${entry.command.padEnd(column)}${entry.summary}`);
|
|
98
|
+
var renderCommandSurface = () => {
|
|
99
|
+
const column = surfaceColumnOf(COMMAND_SURFACE);
|
|
100
|
+
return COMMAND_SURFACE.map((entry) => `${entry.command.padEnd(column)}${entry.summary}`);
|
|
116
101
|
};
|
|
117
102
|
var PHONE_START_VERIFIED_LINE = "Phone-start and steering: local and server checks passed just now. Recheck after sleep or network changes.";
|
|
118
103
|
var PHONE_START_UNVERIFIED_LINE = "Phone-start and steering: unverified. Run pushary doctor to check the provider, background service and server route.";
|
|
@@ -160,8 +145,7 @@ var phoneStartProblemSteps = (facts) => {
|
|
|
160
145
|
return missing ? [PHONE_START_CANNOT_RUN_LINE, ...WHAT_PHONE_START_NEEDS[missing], STOP_REQUIRING_PHONE_START_STEP] : PHONE_START_UNVERIFIED_STEPS;
|
|
161
146
|
};
|
|
162
147
|
var nextSteps = (facts, reachable) => {
|
|
163
|
-
const lines =
|
|
164
|
-
lines.push("Before stepping away, run pushary wait to see how long phone approvals wait and what happens if you do not answer.");
|
|
148
|
+
const lines = facts.managedControlReady === true ? [] : [phoneStartStatusLine(facts)];
|
|
165
149
|
if (facts.staleEnvironmentKey) {
|
|
166
150
|
lines.push("Open a new terminal or unset PUSHARY_API_KEY, then run pushary doctor before starting an agent.");
|
|
167
151
|
}
|
|
@@ -171,16 +155,10 @@ var nextSteps = (facts, reachable) => {
|
|
|
171
155
|
if (facts.transcriptSync === false) {
|
|
172
156
|
lines.push("Transcripts: disabled on this machine.");
|
|
173
157
|
lines.push("pushary setup --transcripts on enable encrypted transcript sync");
|
|
174
|
-
} else {
|
|
175
|
-
lines.push(TRANSCRIPT_SYNC_NOTICE);
|
|
176
|
-
}
|
|
177
|
-
if (facts.completed.includes("claude_code")) {
|
|
178
|
-
lines.push("pushary claude launch a managed Claude Code session");
|
|
179
158
|
}
|
|
180
159
|
if (!reachable) {
|
|
181
160
|
lines.push(unreachedPhoneHint(facts));
|
|
182
161
|
}
|
|
183
|
-
lines.push("pushary doctor re-check everything");
|
|
184
162
|
return lines;
|
|
185
163
|
};
|
|
186
164
|
var describeClosing = (facts) => {
|
|
@@ -285,7 +263,7 @@ var describeClosing = (facts) => {
|
|
|
285
263
|
headline: completeHeadline(codexGap),
|
|
286
264
|
next: [
|
|
287
265
|
...codexApprovalsSteps(codexGap),
|
|
288
|
-
"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.",
|
|
289
267
|
"",
|
|
290
268
|
...nextSteps(facts, false)
|
|
291
269
|
],
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
12
|
+
} from "./chunk-RXFLVAIV.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U33VHYHK.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
3
|
+
} from "./chunk-X3SEEC4X.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GS2SPPBB.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
3
|
+
} from "./chunk-7TGJ6FPW.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J65WHWPK.js";
|
|
7
7
|
import {
|
|
8
8
|
malformedApiKeyMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NEQMXQZQ.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
8
|
+
} from "./chunk-DEZKBMHO.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GQGV7H6W.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
24
|
+
} from "./chunk-GS2SPPBB.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-HY27YNME.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
12
|
+
} from "./chunk-U33VHYHK.js";
|
|
13
13
|
|
|
14
14
|
// src/setup/options.ts
|
|
15
15
|
var AGENT_CHOICES = SETUP_AGENT_CHOICES;
|
|
@@ -39,7 +39,7 @@ var effectiveVerify = (options, context) => {
|
|
|
39
39
|
};
|
|
40
40
|
var effectiveAgentSelection = (selection, context) => selection.kind === "ask" && !context.someoneCanAnswer ? { kind: "auto" } : selection;
|
|
41
41
|
var SETUP_FLAGS = {
|
|
42
|
-
bools: ["key-stdin", "skip-phone", "yes", "y", "json", "dry-run", "take-over-hooks", "hermes-gate-terminal", "help", "h"],
|
|
42
|
+
bools: ["key-stdin", "skip-phone", "yes", "y", "json", "dry-run", "take-over-hooks", "hermes-gate-terminal", "verbose", "help", "h"],
|
|
43
43
|
values: ["key", "connect", "agents", "verify", "control", "transcripts"]
|
|
44
44
|
};
|
|
45
45
|
var effectiveControlMode = (options, stored) => options.controlExplicit ? options.control : stored ?? options.control;
|
|
@@ -125,7 +125,8 @@ var parseSetupOptions = (input) => {
|
|
|
125
125
|
controlExplicit: controlRaw !== void 0,
|
|
126
126
|
transcripts: transcriptsRaw === void 0 ? null : transcriptsRaw === "on",
|
|
127
127
|
takeOverHooks: flags.bools.has("take-over-hooks"),
|
|
128
|
-
hermesGateTerminal: flags.bools.has("hermes-gate-terminal")
|
|
128
|
+
hermesGateTerminal: flags.bools.has("hermes-gate-terminal"),
|
|
129
|
+
verbose: flags.bools.has("verbose")
|
|
129
130
|
};
|
|
130
131
|
};
|
|
131
132
|
|