pushary 1.9.236 → 1.9.237
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 +4 -0
- package/dist/{api-ZRAS6XVR.js → api-HJSGVYQY.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 +8 -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 +289 -62
- 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-RXFLVAIV.js → chunk-3BNYU7LA.js} +1 -1
- package/dist/{chunk-XX3Z4KQL.js → chunk-3XEOKKCT.js} +1 -1
- package/dist/{chunk-NH4HBX7J.js → chunk-47UJLOWC.js} +1 -1
- package/dist/{chunk-VQXWLHLD.js → chunk-4QFQH4DE.js} +1 -1
- package/dist/{chunk-J65WHWPK.js → chunk-56ZVNO4C.js} +1 -1
- package/dist/{chunk-PDIDI2JS.js → chunk-5V2X63OJ.js} +6 -6
- package/dist/{chunk-NEQMXQZQ.js → chunk-5Y5FFPNI.js} +2 -2
- package/dist/{chunk-5JRALQKT.js → chunk-66KEOAAB.js} +3 -3
- package/dist/{chunk-DEZKBMHO.js → chunk-6SSWRXJ3.js} +4 -4
- package/dist/{chunk-4OLECRWP.js → chunk-74Z7L2LQ.js} +1 -1
- package/dist/{chunk-BX3VDXXW.js → chunk-77FFXRKW.js} +3 -3
- package/dist/{chunk-CFIZWE37.js → chunk-7BRTSKYT.js} +1 -1
- package/dist/{chunk-X3SEEC4X.js → chunk-7RMOKXHS.js} +7 -7
- package/dist/{chunk-HAZ72WZD.js → chunk-A636SGRV.js} +16 -16
- package/dist/{chunk-HR7UASHX.js → chunk-BQS4RV3T.js} +2 -2
- package/dist/{chunk-2MB3FZAJ.js → chunk-BUFXSMY6.js} +2 -2
- package/dist/{chunk-UKHFRW5M.js → chunk-BWYM4X2Z.js} +2 -2
- package/dist/{chunk-5PWGMOHP.js → chunk-BZ2LBE2K.js} +10 -7
- package/dist/{chunk-HB4BB66C.js → chunk-CKBAQUE3.js} +6 -6
- package/dist/{chunk-WFUWUWCT.js → chunk-CLDEQACG.js} +2 -2
- package/dist/{chunk-XEXFRZS7.js → chunk-CWZCWIQT.js} +1 -1
- package/dist/{chunk-EZ4QXQNX.js → chunk-DF6TLBHZ.js} +5 -5
- package/dist/{chunk-HTDRJMP5.js → chunk-DFHMD7G7.js} +4 -4
- package/dist/{chunk-XYOB4W72.js → chunk-DHU22BBS.js} +4 -4
- package/dist/{chunk-M45REXUU.js → chunk-DJ67SBPF.js} +4 -4
- package/dist/{chunk-W4F6RVN5.js → chunk-DK4BKL43.js} +5 -5
- package/dist/{chunk-GNCOGELX.js → chunk-DZJ4WO7T.js} +1 -1
- package/dist/{chunk-VSNFCUGH.js → chunk-E7RUE3HG.js} +3 -3
- package/dist/{chunk-FIIRS53K.js → chunk-EFYTCLOR.js} +3 -3
- package/dist/{chunk-GQGV7H6W.js → chunk-FMU5CMVS.js} +2 -2
- package/dist/{chunk-QKX4J66I.js → chunk-GEEQ5JLH.js} +6 -6
- package/dist/{chunk-GS2SPPBB.js → chunk-GM4YH5PP.js} +3 -3
- package/dist/{chunk-P4ZXHSJX.js → chunk-HBB2B6YX.js} +1 -1
- package/dist/{chunk-35IY2SPK.js → chunk-HMIFIDPC.js} +3 -3
- package/dist/{chunk-J2JGO6SS.js → chunk-HSLZ2ZJI.js} +1 -1
- package/dist/{chunk-3W7UZY2B.js → chunk-HYE5ARRS.js} +4 -4
- package/dist/{chunk-T5OA2WR7.js → chunk-I3OCBCNT.js} +5 -5
- package/dist/{chunk-KVGQYML5.js → chunk-I4RKTMEX.js} +2 -2
- package/dist/{chunk-NVJQHRM3.js → chunk-IBIKEGDF.js} +9 -9
- package/dist/{chunk-NSUIUOE7.js → chunk-ITDN4EH5.js} +1 -1
- package/dist/{chunk-O3UOI6ML.js → chunk-JN23XJFF.js} +5 -5
- package/dist/{chunk-QNM5EW76.js → chunk-JOQ4H6NH.js} +5 -5
- package/dist/{chunk-YKTCIWKY.js → chunk-JVAMUEHS.js} +2 -2
- package/dist/{chunk-ZT4PSGTB.js → chunk-JWRCNFPM.js} +2 -2
- package/dist/{chunk-OSRHNYI6.js → chunk-JX5R7WCL.js} +1 -1
- package/dist/{chunk-TBHZAZPR.js → chunk-KJ2WZOHD.js} +3 -3
- package/dist/{chunk-ZQ5NCJVO.js → chunk-KJJTE4HC.js} +1 -1
- package/dist/{chunk-CG2YLNCB.js → chunk-LVSQJNUN.js} +1 -1
- package/dist/{chunk-UODLZ2D6.js → chunk-M6CLKAF6.js} +3 -3
- package/dist/{chunk-DKFM2NSF.js → chunk-MODLPJPU.js} +4 -4
- package/dist/{chunk-UY6AOWQU.js → chunk-MSTQIKS4.js} +16 -4
- package/dist/{chunk-SPGDOHHJ.js → chunk-N3IM3JEH.js} +2 -2
- package/dist/{chunk-37RAJAPB.js → chunk-NBTUSWX2.js} +1 -1
- package/dist/{chunk-HY27YNME.js → chunk-OOPL7BL2.js} +1 -1
- package/dist/{chunk-LZYSSSF3.js → chunk-ORCSR77N.js} +10 -10
- package/dist/{chunk-UBPTE3MH.js → chunk-OTRVJVKS.js} +1 -1
- package/dist/{chunk-4CUOYT5O.js → chunk-PJHG34QL.js} +3 -3
- package/dist/{chunk-74MBT2PL.js → chunk-PMJKR7WR.js} +2 -2
- package/dist/{chunk-7HKBGKLY.js → chunk-PNLG2FXX.js} +2 -2
- package/dist/{chunk-OHMC3ZFE.js → chunk-Q43WP2LP.js} +4 -4
- package/dist/{chunk-B6GCLODI.js → chunk-Q6F3FM5A.js} +1 -1
- package/dist/{chunk-TJJEYS3S.js → chunk-Q6KONQHQ.js} +4 -4
- package/dist/{chunk-2H63TCPL.js → chunk-QIWVSIK2.js} +8 -8
- package/dist/{chunk-U33VHYHK.js → chunk-QXIDU6YJ.js} +9 -0
- package/dist/{chunk-D6O4XDS5.js → chunk-RZANH42A.js} +2 -2
- package/dist/{chunk-ABQRDSE5.js → chunk-T5WMBVKG.js} +5 -5
- package/dist/{chunk-Z3XPHDVP.js → chunk-TOAPYOT6.js} +4 -4
- package/dist/{chunk-SU3M242B.js → chunk-U7HEUEZQ.js} +11 -11
- package/dist/{chunk-Y4GEE5VA.js → chunk-UEZLE5S5.js} +12 -12
- package/dist/{chunk-ZAKG5GGJ.js → chunk-UN7PMXBY.js} +4 -4
- package/dist/{chunk-6LF7EQIZ.js → chunk-US4WGPDI.js} +7 -7
- package/dist/{chunk-VRV7MD3W.js → chunk-USOOH77B.js} +1 -1
- package/dist/{chunk-3SEH5JU3.js → chunk-UX62CHEU.js} +6 -6
- package/dist/{chunk-P3JLLHOO.js → chunk-V2P2NUCI.js} +3 -3
- package/dist/{chunk-RHML34U3.js → chunk-VC4EBXGF.js} +5 -5
- package/dist/{chunk-7TGJ6FPW.js → chunk-VJTMLOV4.js} +5 -5
- package/dist/{chunk-OGFKB66L.js → chunk-VO4VXPCH.js} +1 -1
- package/dist/{chunk-QFP4D7BE.js → chunk-XIMXQ4OB.js} +1 -1
- package/dist/{chunk-4OHGEWKF.js → chunk-XKWYE3ZY.js} +5 -5
- package/dist/{chunk-TKTZBQIL.js → chunk-XWL2QPIG.js} +5 -5
- package/dist/{chunk-JZ272QIY.js → chunk-Z5SJDN5J.js} +1 -1
- package/dist/{codex-app-cards-switch-CEWQAZD2.js → codex-app-cards-switch-FY5HJYZR.js} +11 -11
- package/dist/{codex-card-routing-VRLWXQ4Z.js → codex-card-routing-3TVI3V2W.js} +2 -2
- package/dist/{codex-desktop-launch-EU5BXQFP.js → codex-desktop-launch-OOSA2UHI.js} +3 -3
- package/dist/{codex-session-launch-7PSWFAOC.js → codex-session-launch-6BNQDMCH.js} +20 -20
- package/dist/{config-UQOFNS26.js → config-WOG7M4P2.js} +3 -3
- package/dist/{global-upgrade-WO2MIUOJ.js → global-upgrade-QGWLB3XX.js} +9 -9
- package/dist/{identity-7UK4G6K7.js → identity-DSZ5C7LA.js} +4 -4
- package/dist/{live-capabilities-HRJBL4FO.js → live-capabilities-ARZLZCZC.js} +4 -4
- package/dist/{paths-2FPNRZAX.js → paths-6QS77FBA.js} +3 -3
- package/dist/{reapply-GH4LWS25.js → reapply-TXPOSMJF.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-CA25EHHB.js → upgrade-lock-6777RDS5.js} +4 -4
- package/dist/{usage-23UD3UL7.js → usage-4EOFN3X4.js} +3 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
withUpgradeLock
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5V2X63OJ.js";
|
|
5
|
+
import "../chunk-CLDEQACG.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-
|
|
17
|
+
} from "../chunk-MSTQIKS4.js";
|
|
18
18
|
import {
|
|
19
19
|
INSTALL_NODE_STEP,
|
|
20
20
|
NPM_FILE_IN_USE_STEP,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
renderCommandSurface,
|
|
29
29
|
teamOfferLines,
|
|
30
30
|
unverifiedKeyClosingReason
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-T5WMBVKG.js";
|
|
32
32
|
import {
|
|
33
33
|
WRONG_ACCOUNT_HINT,
|
|
34
34
|
canAskAtTheTerminal,
|
|
@@ -51,32 +51,32 @@ import {
|
|
|
51
51
|
someoneIsAtTheTerminal,
|
|
52
52
|
switchBackToTheShellKeyLine,
|
|
53
53
|
wrongAccountHintPlacement
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-DJ67SBPF.js";
|
|
55
55
|
import {
|
|
56
56
|
instructionsChannelFor,
|
|
57
57
|
pairingComputerOf,
|
|
58
58
|
planPhoneCheck
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-47UJLOWC.js";
|
|
60
60
|
import {
|
|
61
61
|
coworkOutput,
|
|
62
62
|
coworkSelection
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-66KEOAAB.js";
|
|
64
64
|
import {
|
|
65
65
|
canOpenBrowser,
|
|
66
66
|
openInBrowser
|
|
67
67
|
} from "../chunk-PUZZELE6.js";
|
|
68
68
|
import {
|
|
69
69
|
readCodexHooksOnDisk
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-IBIKEGDF.js";
|
|
71
71
|
import {
|
|
72
72
|
macAppHistoryDecision,
|
|
73
73
|
nativeBridgeAccount
|
|
74
74
|
} from "../chunk-TWWOQKXK.js";
|
|
75
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-BQS4RV3T.js";
|
|
76
76
|
import {
|
|
77
77
|
clearDeclinedAgent,
|
|
78
78
|
declinedAgentForSetupChoice
|
|
79
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-JVAMUEHS.js";
|
|
80
80
|
import {
|
|
81
81
|
OPENCLAW_RESTART_NOTE,
|
|
82
82
|
describeOpenClawInstallFailure,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
gateHermesShell,
|
|
85
85
|
readHermesShellGate,
|
|
86
86
|
saveSetupFailure
|
|
87
|
-
} from "../chunk-
|
|
87
|
+
} from "../chunk-XWL2QPIG.js";
|
|
88
88
|
import {
|
|
89
89
|
CODEX_NEEDS_A_NEWER_VERSION,
|
|
90
90
|
CODEX_SETTINGS_STOP_A_HOOK,
|
|
@@ -100,19 +100,20 @@ import {
|
|
|
100
100
|
describeHermesState,
|
|
101
101
|
hermesGateShellCommand,
|
|
102
102
|
needsCodexTrustStep
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-HYE5ARRS.js";
|
|
104
104
|
import {
|
|
105
105
|
describeWaitLadder
|
|
106
106
|
} from "../chunk-CVWG2N3Y.js";
|
|
107
107
|
import {
|
|
108
108
|
writeJsonError,
|
|
109
109
|
writeStdoutFully
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-CWZCWIQT.js";
|
|
111
111
|
import {
|
|
112
112
|
EXIT_ABORTED,
|
|
113
113
|
EXIT_TERMINATED,
|
|
114
114
|
PAIR_TIMEOUT_MS,
|
|
115
115
|
PHONE_WAIT_SKIP_KEY,
|
|
116
|
+
PHONE_WAIT_SKIP_LINE,
|
|
116
117
|
SYSTEM_PAIR_CLOCK,
|
|
117
118
|
buildPairLinks,
|
|
118
119
|
canShowPairingQr,
|
|
@@ -134,8 +135,9 @@ import {
|
|
|
134
135
|
printConnectInstructions,
|
|
135
136
|
printQr,
|
|
136
137
|
startPairing,
|
|
137
|
-
waitForYourPhone
|
|
138
|
-
|
|
138
|
+
waitForYourPhone,
|
|
139
|
+
writeStatusLine
|
|
140
|
+
} from "../chunk-BZ2LBE2K.js";
|
|
139
141
|
import {
|
|
140
142
|
generateKeypair,
|
|
141
143
|
publicKeyFingerprint
|
|
@@ -147,7 +149,7 @@ import {
|
|
|
147
149
|
roundTripEvidence,
|
|
148
150
|
roundTripWasAnswered,
|
|
149
151
|
verifyRoundTrip
|
|
150
|
-
} from "../chunk-
|
|
152
|
+
} from "../chunk-UX62CHEU.js";
|
|
151
153
|
import {
|
|
152
154
|
keepLinuxDaemonAfterLogout,
|
|
153
155
|
lingerReportOf
|
|
@@ -155,13 +157,13 @@ import {
|
|
|
155
157
|
import {
|
|
156
158
|
readManagedControlEvidence,
|
|
157
159
|
waitForMachineReadiness
|
|
158
|
-
} from "../chunk-
|
|
160
|
+
} from "../chunk-JOQ4H6NH.js";
|
|
159
161
|
import {
|
|
160
162
|
ensureCodexTrustsPusharyHooks,
|
|
161
163
|
hermesHistoryHelperRecordPath,
|
|
162
164
|
hermesHistoryNeedsTheCliHelper,
|
|
163
165
|
recordInstalledHermesHistoryHelper
|
|
164
|
-
} from "../chunk-
|
|
166
|
+
} from "../chunk-HMIFIDPC.js";
|
|
165
167
|
import {
|
|
166
168
|
scheduleWithTimer
|
|
167
169
|
} from "../chunk-AVFPHV4N.js";
|
|
@@ -172,7 +174,7 @@ import {
|
|
|
172
174
|
} from "../chunk-UOPOVQ2P.js";
|
|
173
175
|
import {
|
|
174
176
|
codexEngineBehindLauncher
|
|
175
|
-
} from "../chunk-
|
|
177
|
+
} from "../chunk-TOAPYOT6.js";
|
|
176
178
|
import "../chunk-XCEN33UP.js";
|
|
177
179
|
import {
|
|
178
180
|
CODEX_ENGINE_DIRECTORY,
|
|
@@ -189,7 +191,7 @@ import {
|
|
|
189
191
|
soleGateLeftAloneFor,
|
|
190
192
|
soleGateReceipt,
|
|
191
193
|
soleGateReceiptFile
|
|
192
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-UN7PMXBY.js";
|
|
193
195
|
import {
|
|
194
196
|
describeDetection,
|
|
195
197
|
detectAllAgents,
|
|
@@ -199,14 +201,14 @@ import {
|
|
|
199
201
|
registerPluginLocation,
|
|
200
202
|
shortenHome,
|
|
201
203
|
vscodeSettingsTargets
|
|
202
|
-
} from "../chunk-
|
|
204
|
+
} from "../chunk-JN23XJFF.js";
|
|
203
205
|
import {
|
|
204
206
|
revokeOwnKey
|
|
205
207
|
} from "../chunk-OYIN77HO.js";
|
|
206
208
|
import {
|
|
207
209
|
mcpServerBearer,
|
|
208
210
|
readMacAppAgentKey
|
|
209
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-6SSWRXJ3.js";
|
|
210
212
|
import {
|
|
211
213
|
HERMES_CONFIG_FILE,
|
|
212
214
|
HERMES_GATE_TOOLS_KEY,
|
|
@@ -225,7 +227,7 @@ import {
|
|
|
225
227
|
routesHermesQuestions,
|
|
226
228
|
runsAnOlderPlugin,
|
|
227
229
|
shippedHermesPlugin
|
|
228
|
-
} from "../chunk-
|
|
230
|
+
} from "../chunk-DFHMD7G7.js";
|
|
229
231
|
import {
|
|
230
232
|
setHumanStream
|
|
231
233
|
} from "../chunk-QCGNGEGE.js";
|
|
@@ -233,7 +235,7 @@ import {
|
|
|
233
235
|
findOpenClawLauncher,
|
|
234
236
|
isOpenClawWired,
|
|
235
237
|
openClawPathsNow
|
|
236
|
-
} from "../chunk-
|
|
238
|
+
} from "../chunk-PJHG34QL.js";
|
|
237
239
|
import {
|
|
238
240
|
FX_PICKS_UP_CONFIGURATION,
|
|
239
241
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -250,7 +252,7 @@ import {
|
|
|
250
252
|
readFxProfileForSetup,
|
|
251
253
|
withFxPusharyServer,
|
|
252
254
|
writeFxProfile
|
|
253
|
-
} from "../chunk-
|
|
255
|
+
} from "../chunk-XKWYE3ZY.js";
|
|
254
256
|
import {
|
|
255
257
|
AgentConfigError,
|
|
256
258
|
afterAgentFailureNote,
|
|
@@ -263,10 +265,10 @@ import {
|
|
|
263
265
|
retryAgentCommand,
|
|
264
266
|
writeSetupConfigFile,
|
|
265
267
|
writeSetupConfigJson
|
|
266
|
-
} from "../chunk-
|
|
268
|
+
} from "../chunk-77FFXRKW.js";
|
|
267
269
|
import {
|
|
268
270
|
MCP_BRIDGE_BINARY
|
|
269
|
-
} from "../chunk-
|
|
271
|
+
} from "../chunk-MODLPJPU.js";
|
|
270
272
|
import {
|
|
271
273
|
OPENCODE_HOOK_BINARY,
|
|
272
274
|
addOpenCodeMcpServer,
|
|
@@ -285,12 +287,12 @@ import {
|
|
|
285
287
|
openCodePluginFile,
|
|
286
288
|
openCodeWired,
|
|
287
289
|
withOpenCodeAskRules
|
|
288
|
-
} from "../chunk-
|
|
289
|
-
import "../chunk-
|
|
290
|
-
import "../chunk-
|
|
290
|
+
} from "../chunk-7RMOKXHS.js";
|
|
291
|
+
import "../chunk-LVSQJNUN.js";
|
|
292
|
+
import "../chunk-HSLZ2ZJI.js";
|
|
291
293
|
import {
|
|
292
294
|
keyScopeOf
|
|
293
|
-
} from "../chunk-
|
|
295
|
+
} from "../chunk-FMU5CMVS.js";
|
|
294
296
|
import {
|
|
295
297
|
ansiPainter,
|
|
296
298
|
ciMarker,
|
|
@@ -299,7 +301,7 @@ import {
|
|
|
299
301
|
describeError,
|
|
300
302
|
isCI,
|
|
301
303
|
useColor
|
|
302
|
-
} from "../chunk-
|
|
304
|
+
} from "../chunk-JX5R7WCL.js";
|
|
303
305
|
import {
|
|
304
306
|
checkCodexInstall,
|
|
305
307
|
describeMissingControlPrerequisite,
|
|
@@ -312,16 +314,16 @@ import {
|
|
|
312
314
|
nodeCodexInstallProbe,
|
|
313
315
|
phoneStartIsRequired,
|
|
314
316
|
resolveControlPolicy
|
|
315
|
-
} from "../chunk-
|
|
317
|
+
} from "../chunk-V2P2NUCI.js";
|
|
316
318
|
import {
|
|
317
319
|
detectClaudeVersion
|
|
318
|
-
} from "../chunk-
|
|
320
|
+
} from "../chunk-XIMXQ4OB.js";
|
|
319
321
|
import "../chunk-TCE3J44Z.js";
|
|
320
322
|
import {
|
|
321
323
|
describeAutoUpdateAnnouncement,
|
|
322
324
|
takeAutoUpdateAnnouncement
|
|
323
|
-
} from "../chunk-
|
|
324
|
-
import "../chunk-
|
|
325
|
+
} from "../chunk-RZANH42A.js";
|
|
326
|
+
import "../chunk-M6CLKAF6.js";
|
|
325
327
|
import "../chunk-WHB622LP.js";
|
|
326
328
|
import {
|
|
327
329
|
addCompatibleHooks,
|
|
@@ -336,7 +338,7 @@ import {
|
|
|
336
338
|
compatibleRecord,
|
|
337
339
|
compatibleTargetPaths,
|
|
338
340
|
hasCompatibleHooks
|
|
339
|
-
} from "../chunk-
|
|
341
|
+
} from "../chunk-I3OCBCNT.js";
|
|
340
342
|
import {
|
|
341
343
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
342
344
|
clearDaemonNeedsLogin,
|
|
@@ -355,7 +357,7 @@ import {
|
|
|
355
357
|
stopDaemonService,
|
|
356
358
|
versionManagerOf,
|
|
357
359
|
waitForDaemonRemoteProof
|
|
358
|
-
} from "../chunk-
|
|
360
|
+
} from "../chunk-GEEQ5JLH.js";
|
|
359
361
|
import {
|
|
360
362
|
GEMINI_HOOK_BINARY,
|
|
361
363
|
GEMINI_HOOK_EVENTS,
|
|
@@ -371,38 +373,38 @@ import {
|
|
|
371
373
|
geminiWired,
|
|
372
374
|
planHooks,
|
|
373
375
|
pusharyHookExecutable
|
|
374
|
-
} from "../chunk-
|
|
376
|
+
} from "../chunk-Q6KONQHQ.js";
|
|
375
377
|
import {
|
|
376
378
|
reportEvent
|
|
377
|
-
} from "../chunk-
|
|
378
|
-
import "../chunk-
|
|
379
|
+
} from "../chunk-U7HEUEZQ.js";
|
|
380
|
+
import "../chunk-ITDN4EH5.js";
|
|
379
381
|
import {
|
|
380
382
|
AGENT_CHOICES,
|
|
381
383
|
effectiveAgentSelection,
|
|
382
384
|
effectiveControlMode,
|
|
383
385
|
effectiveVerify,
|
|
384
386
|
parseSetupOptions
|
|
385
|
-
} from "../chunk-
|
|
386
|
-
import "../chunk-
|
|
387
|
+
} from "../chunk-DZJ4WO7T.js";
|
|
388
|
+
import "../chunk-HBB2B6YX.js";
|
|
387
389
|
import "../chunk-BZIBNSQE.js";
|
|
388
390
|
import {
|
|
389
391
|
transcriptPreferenceForSetup
|
|
390
|
-
} from "../chunk-
|
|
392
|
+
} from "../chunk-74Z7L2LQ.js";
|
|
391
393
|
import "../chunk-P6DUWKAO.js";
|
|
392
394
|
import "../chunk-3PSNUHC5.js";
|
|
393
|
-
import "../chunk-
|
|
394
|
-
import "../chunk-
|
|
395
|
+
import "../chunk-CKBAQUE3.js";
|
|
396
|
+
import "../chunk-VO4VXPCH.js";
|
|
395
397
|
import "../chunk-POFBE6ZY.js";
|
|
396
|
-
import "../chunk-
|
|
397
|
-
import "../chunk-
|
|
398
|
-
import "../chunk-
|
|
398
|
+
import "../chunk-VJTMLOV4.js";
|
|
399
|
+
import "../chunk-56ZVNO4C.js";
|
|
400
|
+
import "../chunk-3XEOKKCT.js";
|
|
399
401
|
import {
|
|
400
402
|
checkApiKey,
|
|
401
403
|
describeKeyCheck,
|
|
402
404
|
samePusharyAccount
|
|
403
|
-
} from "../chunk-
|
|
404
|
-
import "../chunk-
|
|
405
|
-
import "../chunk-
|
|
405
|
+
} from "../chunk-KJ2WZOHD.js";
|
|
406
|
+
import "../chunk-EFYTCLOR.js";
|
|
407
|
+
import "../chunk-OOPL7BL2.js";
|
|
406
408
|
import {
|
|
407
409
|
KEY_FILE_MODE,
|
|
408
410
|
installClaudeAlias,
|
|
@@ -417,8 +419,10 @@ import {
|
|
|
417
419
|
resolveShellRc,
|
|
418
420
|
shellKeyWasReplaced,
|
|
419
421
|
writeKey
|
|
420
|
-
} from "../chunk-
|
|
421
|
-
import
|
|
422
|
+
} from "../chunk-GM4YH5PP.js";
|
|
423
|
+
import {
|
|
424
|
+
reportedInstallSource
|
|
425
|
+
} from "../chunk-BWYM4X2Z.js";
|
|
422
426
|
import {
|
|
423
427
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
424
428
|
CLINE_AUTO_APPROVE_STEP,
|
|
@@ -480,7 +484,7 @@ import {
|
|
|
480
484
|
vscodePluginDir,
|
|
481
485
|
vscodePluginMcp,
|
|
482
486
|
writeInstructionBlock
|
|
483
|
-
} from "../chunk-
|
|
487
|
+
} from "../chunk-PMJKR7WR.js";
|
|
484
488
|
import {
|
|
485
489
|
compareVersion,
|
|
486
490
|
parseVersion
|
|
@@ -502,11 +506,11 @@ import {
|
|
|
502
506
|
runNpmInTerminal,
|
|
503
507
|
setupNeedsGlobalInstall,
|
|
504
508
|
setupWouldDowngrade
|
|
505
|
-
} from "../chunk-
|
|
509
|
+
} from "../chunk-Q43WP2LP.js";
|
|
506
510
|
import {
|
|
507
511
|
getBaseUrl,
|
|
508
512
|
readApiKey
|
|
509
|
-
} from "../chunk-
|
|
513
|
+
} from "../chunk-5Y5FFPNI.js";
|
|
510
514
|
import {
|
|
511
515
|
UsageError
|
|
512
516
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -518,7 +522,7 @@ import {
|
|
|
518
522
|
NPX_LATEST_COMMAND,
|
|
519
523
|
isInvocationOf,
|
|
520
524
|
renderCommandHelp
|
|
521
|
-
} from "../chunk-
|
|
525
|
+
} from "../chunk-3BNYU7LA.js";
|
|
522
526
|
import {
|
|
523
527
|
EXIT
|
|
524
528
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -532,16 +536,18 @@ import {
|
|
|
532
536
|
import {
|
|
533
537
|
CURSOR_GATE_SCRIPT,
|
|
534
538
|
HOOK_COMPATIBLE_PROFILES,
|
|
539
|
+
PHONE_SIGN_IN_CLIENT_HEADER,
|
|
535
540
|
PRETOOLUSE_GATED_TOOLS,
|
|
536
541
|
SETUP_STOPPED_PATH,
|
|
537
542
|
SUPPORT_EMAIL,
|
|
543
|
+
TERMINAL_PHONE_SIGN_IN_CLIENT,
|
|
538
544
|
computerOsOfPlatform,
|
|
539
545
|
hookCompatibleProfile,
|
|
540
546
|
isApprovalMode,
|
|
541
547
|
isRecord,
|
|
542
548
|
isTimeoutAction,
|
|
543
549
|
isValidApiKey
|
|
544
|
-
} from "../chunk-
|
|
550
|
+
} from "../chunk-QXIDU6YJ.js";
|
|
545
551
|
import "../chunk-MLKGABMK.js";
|
|
546
552
|
|
|
547
553
|
// bin/pushary-setup.ts
|
|
@@ -729,6 +735,49 @@ var singleKeyListener = (key, input2 = process.stdin, interrupt = interruptThisP
|
|
|
729
735
|
};
|
|
730
736
|
};
|
|
731
737
|
};
|
|
738
|
+
var ENTER = "\r";
|
|
739
|
+
var ENTER_VARIANTS = /* @__PURE__ */ new Set(["\n", "\r\n"]);
|
|
740
|
+
var keyPressedAlone = (typed) => ENTER_VARIANTS.has(typed) ? ENTER : typed;
|
|
741
|
+
var keyRouter = (input2 = process.stdin, interrupt = interruptThisProcess) => {
|
|
742
|
+
if (input2.isTTY !== true) return null;
|
|
743
|
+
const handlers = /* @__PURE__ */ new Map();
|
|
744
|
+
const wasRaw = input2.isRaw === true;
|
|
745
|
+
let listening = false;
|
|
746
|
+
const onData = (chunk) => {
|
|
747
|
+
const typed = chunk.toString().toLowerCase();
|
|
748
|
+
if (typed.includes(CONTROL_C)) return interrupt();
|
|
749
|
+
handlers.get(keyPressedAlone(typed))?.();
|
|
750
|
+
};
|
|
751
|
+
const startListening = () => {
|
|
752
|
+
if (listening) return;
|
|
753
|
+
listening = true;
|
|
754
|
+
input2.setRawMode(true);
|
|
755
|
+
input2.on("data", onData);
|
|
756
|
+
input2.resume();
|
|
757
|
+
};
|
|
758
|
+
const stopListening = () => {
|
|
759
|
+
if (!listening) return;
|
|
760
|
+
listening = false;
|
|
761
|
+
input2.off("data", onData);
|
|
762
|
+
input2.setRawMode(wasRaw);
|
|
763
|
+
input2.pause();
|
|
764
|
+
};
|
|
765
|
+
return {
|
|
766
|
+
listenerFor: (key) => (onKey) => {
|
|
767
|
+
const wanted = key.toLowerCase();
|
|
768
|
+
handlers.set(wanted, onKey);
|
|
769
|
+
startListening();
|
|
770
|
+
return () => {
|
|
771
|
+
if (handlers.get(wanted) === onKey) handlers.delete(wanted);
|
|
772
|
+
if (handlers.size === 0) stopListening();
|
|
773
|
+
};
|
|
774
|
+
},
|
|
775
|
+
close: () => {
|
|
776
|
+
handlers.clear();
|
|
777
|
+
stopListening();
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
};
|
|
732
781
|
|
|
733
782
|
// src/setup/restart-steps.ts
|
|
734
783
|
var AND_LIST = new Intl.ListFormat("en", { style: "long", type: "conjunction" });
|
|
@@ -1081,7 +1130,7 @@ var signInForSetup = async (ui, options, deps = {}) => {
|
|
|
1081
1130
|
pending.delete(finished.via);
|
|
1082
1131
|
if (finished.via === "browser") {
|
|
1083
1132
|
const state = finished.report.state;
|
|
1084
|
-
if (state.kind === "authorized") return await finishWith({ kind: "browser", apiKey: state.apiKey, siteSlug: state.siteSlug });
|
|
1133
|
+
if (state.kind === "authorized") return await finishWith({ kind: "browser", apiKey: state.apiKey, siteSlug: state.siteSlug, phonePass: state.phonePass });
|
|
1085
1134
|
if (state.kind === "rejected") return await finishWith({ kind: "rejected" });
|
|
1086
1135
|
continue;
|
|
1087
1136
|
}
|
|
@@ -1105,6 +1154,177 @@ var signInForSetup = async (ui, options, deps = {}) => {
|
|
|
1105
1154
|
}
|
|
1106
1155
|
};
|
|
1107
1156
|
|
|
1157
|
+
// src/setup/phone-sign-in.ts
|
|
1158
|
+
var START_PATH = "/api/phone-sign-in/start";
|
|
1159
|
+
var REQUEST_PATH = "/api/phone-sign-in/request";
|
|
1160
|
+
var DECIDE_PATH = "/api/phone-sign-in/decide";
|
|
1161
|
+
var CANCEL_PATH = "/api/phone-sign-in/cancel";
|
|
1162
|
+
var PHONE_SIGN_IN_LINK_PATH = "/app/phone-sign-in";
|
|
1163
|
+
var REQUEST_TIMEOUT_MS = 1e4;
|
|
1164
|
+
var PHONE_SIGN_IN_POLL_MS = 2e3;
|
|
1165
|
+
var PHONE_SIGN_IN_ID = /^[0-9a-f]{32}$/;
|
|
1166
|
+
var PHONE_CODE = /^\d{6}$/;
|
|
1167
|
+
var PHONE_ALLOW_KEY = "\r";
|
|
1168
|
+
var PHONE_DENY_KEY = "n";
|
|
1169
|
+
var PHONE_SIGN_IN_SCAN_LINE = "Scan this with your phone's camera to sign the Pushary app in to this account.";
|
|
1170
|
+
var PHONE_SIGN_IN_ENDED_LINE = "The QR stopped working. Sign in to the Pushary app with the same account instead.";
|
|
1171
|
+
var ALLOWED_STATES = /* @__PURE__ */ new Set(["approved", "issuing", "issued", "completed"]);
|
|
1172
|
+
var STILL_WAITING_STATES = /* @__PURE__ */ new Set(["waiting", "claimed", "unavailable"]);
|
|
1173
|
+
var isRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1174
|
+
var terminalHeaders = (pass) => ({
|
|
1175
|
+
"Content-Type": "application/json",
|
|
1176
|
+
[PHONE_SIGN_IN_CLIENT_HEADER]: TERMINAL_PHONE_SIGN_IN_CLIENT,
|
|
1177
|
+
Authorization: `Bearer ${pass}`
|
|
1178
|
+
});
|
|
1179
|
+
var spacedCode = (code) => `${code.slice(0, 3)} ${code.slice(3)}`;
|
|
1180
|
+
var startTerminalPhoneSignIn = async (pass, computer, installSource, deps = {}) => {
|
|
1181
|
+
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
1182
|
+
const baseUrl = deps.baseUrl ?? getBaseUrl();
|
|
1183
|
+
try {
|
|
1184
|
+
const response = await fetchImpl(`${baseUrl}${START_PATH}`, {
|
|
1185
|
+
method: "POST",
|
|
1186
|
+
headers: terminalHeaders(pass),
|
|
1187
|
+
body: JSON.stringify({
|
|
1188
|
+
cliPublicKey: generateKeypair().publicKeyB64,
|
|
1189
|
+
...computer.computerName === null ? {} : { computerName: computer.computerName },
|
|
1190
|
+
...computer.os === null ? {} : { os: computer.os },
|
|
1191
|
+
...computer.agents === null ? {} : { agents: computer.agents },
|
|
1192
|
+
installSource
|
|
1193
|
+
}),
|
|
1194
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
1195
|
+
});
|
|
1196
|
+
if (!response.ok) return null;
|
|
1197
|
+
const body = await response.json();
|
|
1198
|
+
const id = isRecord2(body) ? body.phoneSignInId : null;
|
|
1199
|
+
if (typeof id !== "string" || !PHONE_SIGN_IN_ID.test(id)) return null;
|
|
1200
|
+
return { id, pass, baseUrl, link: `${baseUrl}${PHONE_SIGN_IN_LINK_PATH}?id=${id}` };
|
|
1201
|
+
} catch {
|
|
1202
|
+
return null;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
var phoneSignInStateOf = (body) => {
|
|
1206
|
+
if (!isRecord2(body) || typeof body.status !== "string") return { kind: "waiting" };
|
|
1207
|
+
if (body.status === "claimed" && typeof body.code === "string" && PHONE_CODE.test(body.code)) return { kind: "asking", code: body.code };
|
|
1208
|
+
if (ALLOWED_STATES.has(body.status)) return { kind: "allowed" };
|
|
1209
|
+
if (STILL_WAITING_STATES.has(body.status)) return { kind: "waiting" };
|
|
1210
|
+
return { kind: "ended" };
|
|
1211
|
+
};
|
|
1212
|
+
var readTerminalPhoneSignIn = async (signIn, deps = {}) => {
|
|
1213
|
+
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
1214
|
+
try {
|
|
1215
|
+
const response = await fetchImpl(`${signIn.baseUrl}${REQUEST_PATH}?id=${signIn.id}`, {
|
|
1216
|
+
headers: terminalHeaders(signIn.pass),
|
|
1217
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
1218
|
+
});
|
|
1219
|
+
if (response.status === 401) return { kind: "ended" };
|
|
1220
|
+
return response.ok ? phoneSignInStateOf(await response.json()) : { kind: "waiting" };
|
|
1221
|
+
} catch {
|
|
1222
|
+
return { kind: "waiting" };
|
|
1223
|
+
}
|
|
1224
|
+
};
|
|
1225
|
+
var postAsTheTerminal = async (signIn, path, body, deps) => {
|
|
1226
|
+
const fetchImpl = deps.fetchImpl ?? fetch;
|
|
1227
|
+
try {
|
|
1228
|
+
const response = await fetchImpl(`${signIn.baseUrl}${path}`, {
|
|
1229
|
+
method: "POST",
|
|
1230
|
+
headers: terminalHeaders(signIn.pass),
|
|
1231
|
+
body: JSON.stringify(body),
|
|
1232
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
1233
|
+
});
|
|
1234
|
+
return response.ok;
|
|
1235
|
+
} catch {
|
|
1236
|
+
return false;
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
var cancelTerminalPhoneSignIn = (signIn, deps = {}) => postAsTheTerminal(signIn, CANCEL_PATH, { id: signIn.id }, deps);
|
|
1240
|
+
var allowOrDeny = (allow, deny, stopped) => new Promise((resolve) => {
|
|
1241
|
+
const releases = [];
|
|
1242
|
+
const settle = (choice) => {
|
|
1243
|
+
for (const release of releases) release();
|
|
1244
|
+
resolve(choice);
|
|
1245
|
+
};
|
|
1246
|
+
releases.push(allow(() => settle("allow")), deny(() => settle("deny")));
|
|
1247
|
+
void stopped.then(() => settle("stopped"));
|
|
1248
|
+
});
|
|
1249
|
+
var approveThePhoneWhenItAsks = async (signIn, ui, options, deps = {}) => {
|
|
1250
|
+
const clock = deps.clock ?? SYSTEM_PAIR_CLOCK;
|
|
1251
|
+
while (!options.stopped()) {
|
|
1252
|
+
const state = await readTerminalPhoneSignIn(signIn, deps);
|
|
1253
|
+
if (options.stopped()) return "stopped";
|
|
1254
|
+
if (state.kind === "allowed") return "allowed";
|
|
1255
|
+
if (state.kind === "ended") {
|
|
1256
|
+
writeStatusLine(ui.dim(PHONE_SIGN_IN_ENDED_LINE));
|
|
1257
|
+
return "ended";
|
|
1258
|
+
}
|
|
1259
|
+
if (state.kind === "asking") {
|
|
1260
|
+
writeStatusLine(`${ui.yellow("!")} A phone wants to sign in to this account. Code ${ui.bold(spacedCode(state.code))}`);
|
|
1261
|
+
writeStatusLine(ui.dim("If your phone shows the same code, press Enter to allow it. Press N to deny."));
|
|
1262
|
+
const choice = await allowOrDeny(options.allow, options.deny, options.woken);
|
|
1263
|
+
if (choice === "stopped") return "stopped";
|
|
1264
|
+
const approve = choice === "allow";
|
|
1265
|
+
const decided = await postAsTheTerminal(signIn, DECIDE_PATH, { id: signIn.id, code: state.code, approve }, deps);
|
|
1266
|
+
if (approve && decided) {
|
|
1267
|
+
writeStatusLine(`${ui.done} Allowed. Finish on your phone.`);
|
|
1268
|
+
return "allowed";
|
|
1269
|
+
}
|
|
1270
|
+
writeStatusLine(approve ? ui.dim(PHONE_SIGN_IN_ENDED_LINE) : `${ui.yellow("!")} Denied. That phone was not signed in.`);
|
|
1271
|
+
return approve ? "ended" : "denied";
|
|
1272
|
+
}
|
|
1273
|
+
await Promise.race([clock.sleep(PHONE_SIGN_IN_POLL_MS), options.woken]);
|
|
1274
|
+
}
|
|
1275
|
+
return "stopped";
|
|
1276
|
+
};
|
|
1277
|
+
var showTerminalPhoneSignIn = async (signIn, ui) => {
|
|
1278
|
+
ui.say(` ${ui.bold("Connect your phone")}`);
|
|
1279
|
+
ui.say(` ${PHONE_SIGN_IN_SCAN_LINE}`);
|
|
1280
|
+
await printQr(signIn.link);
|
|
1281
|
+
ui.say(` ${ui.dim("Or open on your phone:")} ${ui.cyan(signIn.link)}`);
|
|
1282
|
+
ui.say(` ${ui.dim(PHONE_WAIT_SKIP_LINE)}`);
|
|
1283
|
+
};
|
|
1284
|
+
var waitForYourPhoneToSignIn = async (apiKey, signIn, keys, ui, deps = {}) => {
|
|
1285
|
+
const exit = deps.exit ?? ((code) => process.exit(code));
|
|
1286
|
+
let stopped = false;
|
|
1287
|
+
let wake = () => {
|
|
1288
|
+
};
|
|
1289
|
+
const woken = new Promise((resolve) => {
|
|
1290
|
+
wake = resolve;
|
|
1291
|
+
});
|
|
1292
|
+
let approval = Promise.resolve("stopped");
|
|
1293
|
+
const stopWaiting = () => {
|
|
1294
|
+
stopped = true;
|
|
1295
|
+
wake();
|
|
1296
|
+
};
|
|
1297
|
+
const cancelOnSignal = (exitCode) => () => {
|
|
1298
|
+
stopWaiting();
|
|
1299
|
+
keys.close();
|
|
1300
|
+
void cancelTerminalPhoneSignIn(signIn, deps).finally(() => exit(exitCode));
|
|
1301
|
+
};
|
|
1302
|
+
const onInterrupt = cancelOnSignal(EXIT_ABORTED);
|
|
1303
|
+
const onTerminate = cancelOnSignal(EXIT_TERMINATED);
|
|
1304
|
+
process.once("SIGINT", onInterrupt);
|
|
1305
|
+
process.once("SIGTERM", onTerminate);
|
|
1306
|
+
try {
|
|
1307
|
+
return await waitForYourPhone(apiKey, {
|
|
1308
|
+
skip: keys.listenerFor(PHONE_WAIT_SKIP_KEY),
|
|
1309
|
+
...deps.clock ? { clock: deps.clock } : {},
|
|
1310
|
+
intro: async () => {
|
|
1311
|
+
await showTerminalPhoneSignIn(signIn, ui);
|
|
1312
|
+
approval = approveThePhoneWhenItAsks(signIn, ui, {
|
|
1313
|
+
allow: keys.listenerFor(PHONE_ALLOW_KEY),
|
|
1314
|
+
deny: keys.listenerFor(PHONE_DENY_KEY),
|
|
1315
|
+
stopped: () => stopped,
|
|
1316
|
+
woken
|
|
1317
|
+
}, deps);
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
} finally {
|
|
1321
|
+
process.off("SIGINT", onInterrupt);
|
|
1322
|
+
process.off("SIGTERM", onTerminate);
|
|
1323
|
+
stopWaiting();
|
|
1324
|
+
if (await approval !== "allowed") await cancelTerminalPhoneSignIn(signIn, deps);
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1108
1328
|
// src/setup/telemetry.ts
|
|
1109
1329
|
import { randomUUID } from "crypto";
|
|
1110
1330
|
var roundTripOutcome = (outcome) => {
|
|
@@ -3207,6 +3427,7 @@ var main = async () => {
|
|
|
3207
3427
|
let trimmedKey;
|
|
3208
3428
|
let keyOrigin = "supplied";
|
|
3209
3429
|
let keyFromPairing = false;
|
|
3430
|
+
let phonePass = null;
|
|
3210
3431
|
const storedKey = readConfigFileKey();
|
|
3211
3432
|
const pairingRequested = connectMode === "app" && options.connectExplicit && !options.skipPhone;
|
|
3212
3433
|
const ambientEligible = flagKey === void 0 && !pairingRequested;
|
|
@@ -3295,6 +3516,7 @@ var main = async () => {
|
|
|
3295
3516
|
process.exit(await abortWith("pairing-failed", EXIT.NOT_CONFIGURED));
|
|
3296
3517
|
}
|
|
3297
3518
|
trimmedKey = signedIn2.apiKey;
|
|
3519
|
+
phonePass = signedIn2.kind === "browser" ? signedIn2.phonePass : null;
|
|
3298
3520
|
keyOrigin = "created_by_this_cli";
|
|
3299
3521
|
keyFromPairing = signedIn2.kind === "app";
|
|
3300
3522
|
pairedHandle = signedIn2.kind === "app" && signedIn2.handle ? `@${signedIn2.handle}` : null;
|
|
@@ -3360,6 +3582,7 @@ var main = async () => {
|
|
|
3360
3582
|
);
|
|
3361
3583
|
if (outcome.kind === "ok") {
|
|
3362
3584
|
trimmedKey = outcome.apiKey;
|
|
3585
|
+
phonePass = outcome.phonePass;
|
|
3363
3586
|
keyOrigin = "created_by_this_cli";
|
|
3364
3587
|
console.log();
|
|
3365
3588
|
console.log(` ${check} Signed in${outcome.siteSlug ? ` ${dim(`(${outcome.siteSlug})`)}` : ""}`);
|
|
@@ -3608,8 +3831,12 @@ var main = async () => {
|
|
|
3608
3831
|
phone = await printConnectInstructions(trimmedKey, connectInstructions);
|
|
3609
3832
|
break;
|
|
3610
3833
|
case "wait-for-app": {
|
|
3611
|
-
const
|
|
3612
|
-
|
|
3834
|
+
const keys = keyRouter();
|
|
3835
|
+
const phoneSignIn = keys !== null && phonePass !== null && connectInstructions.showQr ? await startTerminalPhoneSignIn(phonePass, pairingComputerOf(hostname2(), process.platform, detectedAgentChoices()), reportedInstallSource()) : null;
|
|
3836
|
+
if (keys === null) phone = await printConnectInstructions(trimmedKey, connectInstructions);
|
|
3837
|
+
else if (phoneSignIn === null) phone = await waitForYourPhone(trimmedKey, { skip: keys.listenerFor(PHONE_WAIT_SKIP_KEY) });
|
|
3838
|
+
else phone = await waitForYourPhoneToSignIn(trimmedKey, phoneSignIn, keys, { say: (line) => console.log(line), bold, dim, cyan, yellow, done: check });
|
|
3839
|
+
keys?.close();
|
|
3613
3840
|
break;
|
|
3614
3841
|
}
|
|
3615
3842
|
case "connect":
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exitOnHelpFlag
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Q6F3FM5A.js";
|
|
5
5
|
import {
|
|
6
6
|
readLedgerSummary
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-OTRVJVKS.js";
|
|
8
8
|
import {
|
|
9
9
|
getApiKey
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-5Y5FFPNI.js";
|
|
11
|
+
import "../chunk-3BNYU7LA.js";
|
|
12
12
|
import "../chunk-BG4HHB7E.js";
|
|
13
13
|
import "../chunk-CXQWDQCJ.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-QXIDU6YJ.js";
|
|
15
15
|
import "../chunk-MLKGABMK.js";
|
|
16
16
|
|
|
17
17
|
// bin/pushary-stats.ts
|