pushary 1.9.198 → 1.9.200
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 +9 -0
- package/data/SKILL.md +4 -4
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/skills/pushary/SKILL.md +3 -3
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/skills/pushary/SKILL.md +3 -3
- package/dist/{api-JB2YWCFT.js → api-OUFAFWVY.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 +30 -32
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +36 -36
- 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 +47 -47
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- 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 +34 -34
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- 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 +40 -40
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +197 -92
- 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 +25 -25
- 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-B6S622H7.js → chunk-23W7FAZL.js} +5 -5
- package/dist/{chunk-QILIXLIP.js → chunk-247LVLEC.js} +3 -3
- package/dist/{chunk-SS62EXPR.js → chunk-2BVH7JC7.js} +13 -13
- package/dist/{chunk-KRNRLNUK.js → chunk-2SHEWMGU.js} +2 -2
- package/dist/{chunk-X6EXXBII.js → chunk-3RUQKPHU.js} +7 -7
- package/dist/{chunk-GSYXA26X.js → chunk-3XSDSKAX.js} +1 -1
- package/dist/{chunk-3ULFLONL.js → chunk-4DTKZQKO.js} +1 -1
- package/dist/{chunk-KJBXYZEZ.js → chunk-4SHFFJTL.js} +7 -7
- package/dist/{chunk-MA3UM44V.js → chunk-57E7NOZO.js} +4 -4
- package/dist/{chunk-TBHC4AJ3.js → chunk-5STI67CK.js} +5 -5
- package/dist/{chunk-4CJ7PQL7.js → chunk-6KMMY7DI.js} +24 -6
- package/dist/{chunk-MWF4L55C.js → chunk-6ZYUYRR2.js} +3 -3
- package/dist/{chunk-53X7ESKH.js → chunk-72EKTJ2U.js} +5 -5
- package/dist/{chunk-YOD3EXM2.js → chunk-7SCBP4U7.js} +9 -9
- package/dist/{chunk-JTROZAZT.js → chunk-A6TVXDTE.js} +2 -2
- package/dist/{chunk-2SJ5EAIM.js → chunk-AQB2LUX5.js} +5 -5
- package/dist/chunk-AVFPHV4N.js +10 -0
- package/dist/{chunk-KINS3YH7.js → chunk-AXJCUWLD.js} +6 -6
- package/dist/{chunk-XYGNLWWA.js → chunk-B3STTU5D.js} +4 -4
- package/dist/{chunk-5IPXL33D.js → chunk-BYYU5QS3.js} +1 -1
- package/dist/{chunk-VFAK5JLU.js → chunk-CDWR23BU.js} +8 -8
- package/dist/{chunk-TC65PME7.js → chunk-CFWOZBUQ.js} +6 -6
- package/dist/{chunk-I7HXYNZL.js → chunk-DFA42X45.js} +4 -4
- package/dist/{chunk-375XMDXC.js → chunk-DGZYM676.js} +1 -1
- package/dist/{chunk-6ORKZ2XF.js → chunk-DQGTFUXX.js} +5 -5
- package/dist/{chunk-RSVVUJT4.js → chunk-ECG372D5.js} +1 -1
- package/dist/{chunk-HMMVGDL3.js → chunk-F75727GN.js} +2 -0
- package/dist/{chunk-RHCC3WET.js → chunk-FR7XIHSN.js} +10 -10
- package/dist/{chunk-EJJBM4OB.js → chunk-FUY7TPTQ.js} +1 -1
- package/dist/{chunk-QVG6M24J.js → chunk-FWPN4AHK.js} +4 -4
- package/dist/{chunk-H6SVMUCS.js → chunk-HIPEE6RH.js} +4 -4
- package/dist/{chunk-A355NHU4.js → chunk-HN6ABA2B.js} +4 -4
- package/dist/{chunk-5L7DFTHX.js → chunk-HQUYQOWZ.js} +2 -2
- package/dist/{chunk-MXD4XEHV.js → chunk-I3ZOD5I4.js} +3 -3
- package/dist/{chunk-UVNH4UGJ.js → chunk-I4EHOHYH.js} +1 -1
- package/dist/{chunk-LVMWDCLN.js → chunk-JFUTFHB6.js} +6 -6
- package/dist/{chunk-F7J5DE66.js → chunk-JKD642VE.js} +3 -3
- package/dist/{chunk-WNCTMTMG.js → chunk-JTZMPMXH.js} +1 -1
- package/dist/{chunk-5QP7DVQF.js → chunk-KCSTT6KQ.js} +1 -1
- package/dist/{chunk-MGIZ2XRJ.js → chunk-LECDW27E.js} +1 -1
- package/dist/{chunk-IOCJDGAQ.js → chunk-LEUQ37WR.js} +2 -2
- package/dist/{chunk-VEE2MRUN.js → chunk-LGV3U2KK.js} +1 -1
- package/dist/{chunk-IDZ2KKTJ.js → chunk-LS2VJJFJ.js} +6 -6
- package/dist/{chunk-XCPED5AY.js → chunk-LXWHMYOS.js} +3 -3
- package/dist/{chunk-EEI3UGYX.js → chunk-M2S6BBSR.js} +6 -6
- package/dist/{chunk-IYOA3NWO.js → chunk-MOCDN7B3.js} +1 -1
- package/dist/{chunk-VH5DPURH.js → chunk-MRG7AEJA.js} +1 -1
- package/dist/{chunk-JGLVWR2K.js → chunk-O4E4ISTO.js} +2 -2
- package/dist/{chunk-OEUO6C6O.js → chunk-OK3GVZNU.js} +2 -2
- package/dist/{chunk-3ET6SSBR.js → chunk-OMJ6ISJW.js} +2 -2
- package/dist/{chunk-EPNYDS4H.js → chunk-OPBYHXZP.js} +1 -1
- package/dist/{chunk-YLZRG4U5.js → chunk-P4VF3DZW.js} +1 -1
- package/dist/{chunk-4T2UCDTT.js → chunk-PHFQV5MO.js} +12 -12
- package/dist/{chunk-UXQVXB7Q.js → chunk-PWJ2YNLB.js} +1 -1
- package/dist/{chunk-KZODVCLP.js → chunk-Q7W4TEWC.js} +3 -3
- package/dist/{chunk-FVWDT7EJ.js → chunk-QM3YURHW.js} +3 -3
- package/dist/{chunk-NJZ3U2XM.js → chunk-QOV5MVKT.js} +4 -4
- package/dist/{chunk-SVJRFO2D.js → chunk-RDECWGBJ.js} +1 -1
- package/dist/{chunk-KSSVKU7Y.js → chunk-RHQ5FDU4.js} +4 -4
- package/dist/{chunk-FWP5KQJR.js → chunk-RMWPSYJG.js} +2 -2
- package/dist/{chunk-TP47JHGJ.js → chunk-RXNQ3GJM.js} +1 -1
- package/dist/{chunk-CY7POKS3.js → chunk-SJUE6CFP.js} +4 -4
- package/dist/{chunk-247FA7KI.js → chunk-SUUATETY.js} +1 -1
- package/dist/{chunk-IZYAD6FA.js → chunk-SYO4XLTG.js} +2 -2
- package/dist/{chunk-ZAI54UZ6.js → chunk-TQDTYV27.js} +1 -1
- package/dist/{chunk-5V2NNWPV.js → chunk-TZD42VJP.js} +5 -5
- package/dist/{chunk-H74WROTN.js → chunk-UJERPPET.js} +2 -2
- package/dist/{chunk-VAUSK462.js → chunk-UQOEZQ6G.js} +2 -2
- package/dist/{chunk-CKIHZUS4.js → chunk-UUMBN6AU.js} +2 -2
- package/dist/{chunk-JJD2E7UW.js → chunk-VCTMCQCU.js} +2 -2
- package/dist/{chunk-HOFT6RAL.js → chunk-VEOVR6Z2.js} +1 -1
- package/dist/{chunk-MDO4BGRM.js → chunk-VU7LK6KI.js} +18 -18
- package/dist/{chunk-IX7DFY4W.js → chunk-WFE2YHWQ.js} +2 -2
- package/dist/{chunk-3SLTSIVQ.js → chunk-WGGEF3XC.js} +5 -5
- package/dist/{chunk-HPWOVFQV.js → chunk-WHDNAGFI.js} +5 -5
- package/dist/{chunk-MHQDLVQX.js → chunk-WRZFEG6A.js} +3 -3
- package/dist/{chunk-F76ZUFUW.js → chunk-X3TBNXPX.js} +3 -3
- package/dist/{chunk-4TIZJD3Q.js → chunk-XKFL7XBP.js} +1 -1
- package/dist/{chunk-PAHL3VTG.js → chunk-XQNSJWFD.js} +5 -5
- package/dist/{chunk-OBDHGAEE.js → chunk-XTFN2YTA.js} +3 -3
- package/dist/{chunk-UGGXQKVC.js → chunk-YB64X4IQ.js} +1 -1
- package/dist/{chunk-HX4NDLO7.js → chunk-YGRPTTER.js} +2 -2
- package/dist/{chunk-WGODS5EB.js → chunk-ZEVNSFFV.js} +4 -4
- package/dist/{codex-app-cards-switch-NL4F2GTH.js → codex-app-cards-switch-WV7RKIVN.js} +11 -11
- package/dist/{codex-card-routing-CJZT26VA.js → codex-card-routing-HQRJF2NY.js} +2 -2
- package/dist/{codex-desktop-launch-YKRZ474G.js → codex-desktop-launch-LDA7CWEX.js} +1 -1
- package/dist/{codex-session-launch-TDDMSWX3.js → codex-session-launch-LS75CYUV.js} +20 -20
- package/dist/{config-EARKOD24.js → config-WFIMGEI5.js} +3 -3
- package/dist/{global-upgrade-E2LPCPTA.js → global-upgrade-XMQVRK7X.js} +9 -9
- package/dist/{identity-RMCGMU2G.js → identity-J5O4WLQQ.js} +4 -4
- package/dist/{live-capabilities-MFOTOB2Q.js → live-capabilities-JMVAIHR3.js} +4 -4
- package/dist/{paths-LMXYUYFK.js → paths-OFQDG25M.js} +3 -3
- package/dist/reapply-JTMPSOEG.js +75 -0
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-THQ5BOFX.js → upgrade-lock-77W22ICV.js} +4 -4
- package/dist/{usage-CRVWVD5D.js → usage-MQWUFNYJ.js} +3 -3
- package/package.json +4 -1
- package/dist/reapply-FMKSUMPS.js +0 -75
|
@@ -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-M2S6BBSR.js";
|
|
5
|
+
import "../chunk-UQOEZQ6G.js";
|
|
6
6
|
import {
|
|
7
7
|
WRONG_ACCOUNT_HINT,
|
|
8
8
|
canAskAtTheTerminal,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
someoneIsAtTheTerminal,
|
|
25
25
|
switchBackToTheShellKeyLine,
|
|
26
26
|
wrongAccountHintPlacement
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-57E7NOZO.js";
|
|
28
28
|
import {
|
|
29
29
|
INSTALL_NODE_STEP,
|
|
30
30
|
NPM_FILE_IN_USE_STEP,
|
|
@@ -38,34 +38,34 @@ import {
|
|
|
38
38
|
renderCommandSurface,
|
|
39
39
|
teamOfferLines,
|
|
40
40
|
unverifiedKeyClosingReason
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-6KMMY7DI.js";
|
|
42
42
|
import {
|
|
43
43
|
instructionsChannelFor,
|
|
44
44
|
pairingComputerOf,
|
|
45
45
|
planPhoneCheck
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-I4EHOHYH.js";
|
|
47
47
|
import {
|
|
48
48
|
coworkOutput,
|
|
49
49
|
coworkSelection
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-JKD642VE.js";
|
|
51
51
|
import "../chunk-PUZZELE6.js";
|
|
52
52
|
import {
|
|
53
53
|
readCodexHooksOnDisk
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-7SCBP4U7.js";
|
|
55
55
|
import {
|
|
56
56
|
hermesHistoryHelperRecordPath,
|
|
57
57
|
hermesHistoryNeedsTheCliHelper,
|
|
58
58
|
recordInstalledHermesHistoryHelper
|
|
59
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-SYO4XLTG.js";
|
|
60
60
|
import {
|
|
61
61
|
macAppHistoryDecision,
|
|
62
62
|
nativeBridgeAccount
|
|
63
63
|
} from "../chunk-TWWOQKXK.js";
|
|
64
|
-
import "../chunk-
|
|
64
|
+
import "../chunk-VCTMCQCU.js";
|
|
65
65
|
import {
|
|
66
66
|
clearDeclinedAgent,
|
|
67
67
|
declinedAgentForSetupChoice
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-LEUQ37WR.js";
|
|
69
69
|
import {
|
|
70
70
|
OPENCLAW_RESTART_NOTE,
|
|
71
71
|
describeOpenClawInstallFailure,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
gateHermesShell,
|
|
74
74
|
readHermesShellGate,
|
|
75
75
|
saveSetupFailure
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-WHDNAGFI.js";
|
|
77
77
|
import {
|
|
78
78
|
CODEX_NEEDS_A_NEWER_VERSION,
|
|
79
79
|
CODEX_SETTINGS_STOP_A_HOOK,
|
|
@@ -89,14 +89,14 @@ import {
|
|
|
89
89
|
describeHermesState,
|
|
90
90
|
hermesGateShellCommand,
|
|
91
91
|
needsCodexTrustStep
|
|
92
|
-
} from "../chunk-
|
|
92
|
+
} from "../chunk-HN6ABA2B.js";
|
|
93
93
|
import {
|
|
94
94
|
describeWaitLadder
|
|
95
95
|
} from "../chunk-CVWG2N3Y.js";
|
|
96
96
|
import {
|
|
97
97
|
writeJsonError,
|
|
98
98
|
writeStdoutFully
|
|
99
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-OPBYHXZP.js";
|
|
100
100
|
import {
|
|
101
101
|
canShowPairingQr,
|
|
102
102
|
confirmAppConnection,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
phoneAwaitsNotificationPermission,
|
|
109
109
|
printConnectInstructions,
|
|
110
110
|
waitForYourPhone
|
|
111
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-CFWOZBUQ.js";
|
|
112
112
|
import "../chunk-3EGEA4KH.js";
|
|
113
113
|
import {
|
|
114
114
|
SETUP_AGENT_NAME,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
roundTripEvidence,
|
|
118
118
|
roundTripWasAnswered,
|
|
119
119
|
verifyRoundTrip
|
|
120
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-AXJCUWLD.js";
|
|
121
121
|
import {
|
|
122
122
|
keepLinuxDaemonAfterLogout,
|
|
123
123
|
lingerReportOf
|
|
@@ -125,10 +125,13 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
readManagedControlEvidence,
|
|
127
127
|
waitForMachineReadiness
|
|
128
|
-
} from "../chunk-
|
|
128
|
+
} from "../chunk-72EKTJ2U.js";
|
|
129
129
|
import {
|
|
130
130
|
ensureCodexTrustsPusharyHooks
|
|
131
|
-
} from "../chunk-
|
|
131
|
+
} from "../chunk-HQUYQOWZ.js";
|
|
132
|
+
import {
|
|
133
|
+
scheduleWithTimer
|
|
134
|
+
} from "../chunk-AVFPHV4N.js";
|
|
132
135
|
import {
|
|
133
136
|
describeSetupSideEffects,
|
|
134
137
|
installAgentSkill,
|
|
@@ -136,7 +139,7 @@ import {
|
|
|
136
139
|
} from "../chunk-UOPOVQ2P.js";
|
|
137
140
|
import {
|
|
138
141
|
codexEngineBehindLauncher
|
|
139
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-WRZFEG6A.js";
|
|
140
143
|
import "../chunk-XCEN33UP.js";
|
|
141
144
|
import {
|
|
142
145
|
CODEX_ENGINE_DIRECTORY,
|
|
@@ -152,7 +155,7 @@ import {
|
|
|
152
155
|
soleGateFile,
|
|
153
156
|
soleGateReceipt,
|
|
154
157
|
soleGateReceiptFile
|
|
155
|
-
} from "../chunk-
|
|
158
|
+
} from "../chunk-HIPEE6RH.js";
|
|
156
159
|
import {
|
|
157
160
|
describeDetection,
|
|
158
161
|
detectAllAgents,
|
|
@@ -162,12 +165,12 @@ import {
|
|
|
162
165
|
registerPluginLocation,
|
|
163
166
|
shortenHome,
|
|
164
167
|
vscodeSettingsTargets
|
|
165
|
-
} from "../chunk-
|
|
168
|
+
} from "../chunk-XQNSJWFD.js";
|
|
166
169
|
import "../chunk-OYIN77HO.js";
|
|
167
170
|
import {
|
|
168
171
|
mcpServerBearer,
|
|
169
172
|
readMacAppAgentKey
|
|
170
|
-
} from "../chunk-
|
|
173
|
+
} from "../chunk-DFA42X45.js";
|
|
171
174
|
import {
|
|
172
175
|
HERMES_CONFIG_FILE,
|
|
173
176
|
HERMES_GATE_TOOLS_KEY,
|
|
@@ -186,7 +189,7 @@ import {
|
|
|
186
189
|
routesHermesQuestions,
|
|
187
190
|
runsAnOlderPlugin,
|
|
188
191
|
shippedHermesPlugin
|
|
189
|
-
} from "../chunk-
|
|
192
|
+
} from "../chunk-RHQ5FDU4.js";
|
|
190
193
|
import {
|
|
191
194
|
setHumanStream
|
|
192
195
|
} from "../chunk-QCGNGEGE.js";
|
|
@@ -194,7 +197,7 @@ import {
|
|
|
194
197
|
findOpenClawLauncher,
|
|
195
198
|
isOpenClawWired,
|
|
196
199
|
openClawPathsNow
|
|
197
|
-
} from "../chunk-
|
|
200
|
+
} from "../chunk-6ZYUYRR2.js";
|
|
198
201
|
import {
|
|
199
202
|
FX_PICKS_UP_CONFIGURATION,
|
|
200
203
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -211,7 +214,7 @@ import {
|
|
|
211
214
|
readFxProfileForSetup,
|
|
212
215
|
withFxPusharyServer,
|
|
213
216
|
writeFxProfile
|
|
214
|
-
} from "../chunk-
|
|
217
|
+
} from "../chunk-TZD42VJP.js";
|
|
215
218
|
import {
|
|
216
219
|
AgentConfigError,
|
|
217
220
|
afterAgentFailureNote,
|
|
@@ -224,10 +227,10 @@ import {
|
|
|
224
227
|
retryAgentCommand,
|
|
225
228
|
writeSetupConfigFile,
|
|
226
229
|
writeSetupConfigJson
|
|
227
|
-
} from "../chunk-
|
|
230
|
+
} from "../chunk-XTFN2YTA.js";
|
|
228
231
|
import {
|
|
229
232
|
MCP_BRIDGE_BINARY
|
|
230
|
-
} from "../chunk-
|
|
233
|
+
} from "../chunk-I3ZOD5I4.js";
|
|
231
234
|
import {
|
|
232
235
|
OPENCODE_HOOK_BINARY,
|
|
233
236
|
addOpenCodeMcpServer,
|
|
@@ -246,12 +249,12 @@ import {
|
|
|
246
249
|
openCodePluginFile,
|
|
247
250
|
openCodeWired,
|
|
248
251
|
withOpenCodeAskRules
|
|
249
|
-
} from "../chunk-
|
|
250
|
-
import "../chunk-
|
|
251
|
-
import "../chunk-
|
|
252
|
+
} from "../chunk-3RUQKPHU.js";
|
|
253
|
+
import "../chunk-XKFL7XBP.js";
|
|
254
|
+
import "../chunk-JTZMPMXH.js";
|
|
252
255
|
import {
|
|
253
256
|
keyScopeOf
|
|
254
|
-
} from "../chunk-
|
|
257
|
+
} from "../chunk-WFE2YHWQ.js";
|
|
255
258
|
import {
|
|
256
259
|
ansiPainter,
|
|
257
260
|
ciMarker,
|
|
@@ -260,7 +263,7 @@ import {
|
|
|
260
263
|
describeError,
|
|
261
264
|
isCI,
|
|
262
265
|
useColor
|
|
263
|
-
} from "../chunk-
|
|
266
|
+
} from "../chunk-KCSTT6KQ.js";
|
|
264
267
|
import {
|
|
265
268
|
checkCodexInstall,
|
|
266
269
|
describeMissingControlPrerequisite,
|
|
@@ -273,16 +276,16 @@ import {
|
|
|
273
276
|
nodeCodexInstallProbe,
|
|
274
277
|
phoneStartIsRequired,
|
|
275
278
|
resolveControlPolicy
|
|
276
|
-
} from "../chunk-
|
|
279
|
+
} from "../chunk-247LVLEC.js";
|
|
277
280
|
import {
|
|
278
281
|
detectClaudeVersion
|
|
279
|
-
} from "../chunk-
|
|
282
|
+
} from "../chunk-OK3GVZNU.js";
|
|
280
283
|
import "../chunk-TCE3J44Z.js";
|
|
281
284
|
import {
|
|
282
285
|
describeAutoUpdateAnnouncement,
|
|
283
286
|
takeAutoUpdateAnnouncement
|
|
284
|
-
} from "../chunk-
|
|
285
|
-
import "../chunk-
|
|
287
|
+
} from "../chunk-YGRPTTER.js";
|
|
288
|
+
import "../chunk-FWPN4AHK.js";
|
|
286
289
|
import "../chunk-WHB622LP.js";
|
|
287
290
|
import {
|
|
288
291
|
addCompatibleHooks,
|
|
@@ -297,7 +300,7 @@ import {
|
|
|
297
300
|
compatibleRecord,
|
|
298
301
|
compatibleTargetPaths,
|
|
299
302
|
hasCompatibleHooks
|
|
300
|
-
} from "../chunk-
|
|
303
|
+
} from "../chunk-5STI67CK.js";
|
|
301
304
|
import {
|
|
302
305
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
303
306
|
clearDaemonNeedsLogin,
|
|
@@ -316,7 +319,7 @@ import {
|
|
|
316
319
|
stopDaemonService,
|
|
317
320
|
versionManagerOf,
|
|
318
321
|
waitForDaemonRemoteProof
|
|
319
|
-
} from "../chunk-
|
|
322
|
+
} from "../chunk-JFUTFHB6.js";
|
|
320
323
|
import {
|
|
321
324
|
GEMINI_HOOK_BINARY,
|
|
322
325
|
GEMINI_HOOK_EVENTS,
|
|
@@ -332,38 +335,38 @@ import {
|
|
|
332
335
|
geminiWired,
|
|
333
336
|
planHooks,
|
|
334
337
|
pusharyHookExecutable
|
|
335
|
-
} from "../chunk-
|
|
338
|
+
} from "../chunk-ZEVNSFFV.js";
|
|
336
339
|
import {
|
|
337
340
|
reportEvent
|
|
338
|
-
} from "../chunk-
|
|
339
|
-
import "../chunk-
|
|
341
|
+
} from "../chunk-PHFQV5MO.js";
|
|
342
|
+
import "../chunk-4DTKZQKO.js";
|
|
340
343
|
import {
|
|
341
344
|
AGENT_CHOICES,
|
|
342
345
|
effectiveAgentSelection,
|
|
343
346
|
effectiveControlMode,
|
|
344
347
|
effectiveVerify,
|
|
345
348
|
parseSetupOptions
|
|
346
|
-
} from "../chunk-
|
|
347
|
-
import "../chunk-
|
|
349
|
+
} from "../chunk-FUY7TPTQ.js";
|
|
350
|
+
import "../chunk-LECDW27E.js";
|
|
348
351
|
import "../chunk-BZIBNSQE.js";
|
|
349
352
|
import "../chunk-P6DUWKAO.js";
|
|
350
353
|
import {
|
|
351
354
|
transcriptPreferenceForSetup
|
|
352
|
-
} from "../chunk-
|
|
355
|
+
} from "../chunk-SUUATETY.js";
|
|
353
356
|
import "../chunk-3PSNUHC5.js";
|
|
354
|
-
import "../chunk-
|
|
355
|
-
import "../chunk-
|
|
357
|
+
import "../chunk-LS2VJJFJ.js";
|
|
358
|
+
import "../chunk-BYYU5QS3.js";
|
|
356
359
|
import "../chunk-POFBE6ZY.js";
|
|
357
|
-
import "../chunk-
|
|
358
|
-
import "../chunk-
|
|
359
|
-
import "../chunk-
|
|
360
|
+
import "../chunk-DQGTFUXX.js";
|
|
361
|
+
import "../chunk-LGV3U2KK.js";
|
|
362
|
+
import "../chunk-MRG7AEJA.js";
|
|
360
363
|
import {
|
|
361
364
|
checkApiKey,
|
|
362
365
|
describeKeyCheck,
|
|
363
366
|
samePusharyAccount
|
|
364
|
-
} from "../chunk-
|
|
365
|
-
import "../chunk-
|
|
366
|
-
import "../chunk-
|
|
367
|
+
} from "../chunk-QM3YURHW.js";
|
|
368
|
+
import "../chunk-Q7W4TEWC.js";
|
|
369
|
+
import "../chunk-DGZYM676.js";
|
|
367
370
|
import {
|
|
368
371
|
KEY_FILE_MODE,
|
|
369
372
|
installClaudeAlias,
|
|
@@ -379,8 +382,8 @@ import {
|
|
|
379
382
|
resolveShellRc,
|
|
380
383
|
shellKeyWasReplaced,
|
|
381
384
|
writeKey
|
|
382
|
-
} from "../chunk-
|
|
383
|
-
import "../chunk-
|
|
385
|
+
} from "../chunk-LXWHMYOS.js";
|
|
386
|
+
import "../chunk-UUMBN6AU.js";
|
|
384
387
|
import {
|
|
385
388
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
386
389
|
CLINE_AUTO_APPROVE_STEP,
|
|
@@ -442,7 +445,7 @@ import {
|
|
|
442
445
|
vscodePluginDir,
|
|
443
446
|
vscodePluginMcp,
|
|
444
447
|
writeInstructionBlock
|
|
445
|
-
} from "../chunk-
|
|
448
|
+
} from "../chunk-A6TVXDTE.js";
|
|
446
449
|
import {
|
|
447
450
|
NpmMissingError,
|
|
448
451
|
compareVersion,
|
|
@@ -462,10 +465,10 @@ import {
|
|
|
462
465
|
runNpmInTerminal,
|
|
463
466
|
setupNeedsGlobalInstall,
|
|
464
467
|
setupWouldDowngrade
|
|
465
|
-
} from "../chunk-
|
|
468
|
+
} from "../chunk-B3STTU5D.js";
|
|
466
469
|
import {
|
|
467
470
|
getBaseUrl
|
|
468
|
-
} from "../chunk-
|
|
471
|
+
} from "../chunk-YB64X4IQ.js";
|
|
469
472
|
import {
|
|
470
473
|
UsageError
|
|
471
474
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -477,7 +480,7 @@ import {
|
|
|
477
480
|
NPX_LATEST_COMMAND,
|
|
478
481
|
isInvocationOf,
|
|
479
482
|
renderCommandHelp
|
|
480
|
-
} from "../chunk-
|
|
483
|
+
} from "../chunk-RDECWGBJ.js";
|
|
481
484
|
import {
|
|
482
485
|
EXIT
|
|
483
486
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -499,7 +502,7 @@ import {
|
|
|
499
502
|
isRecord,
|
|
500
503
|
isTimeoutAction,
|
|
501
504
|
isValidApiKey
|
|
502
|
-
} from "../chunk-
|
|
505
|
+
} from "../chunk-F75727GN.js";
|
|
503
506
|
import "../chunk-MLKGABMK.js";
|
|
504
507
|
|
|
505
508
|
// bin/pushary-setup.ts
|
|
@@ -507,13 +510,114 @@ import { existsSync as existsSync2, readFileSync, writeFileSync, mkdirSync, cpSy
|
|
|
507
510
|
import { join as join5, dirname as dirname3, basename } from "path";
|
|
508
511
|
import { homedir, hostname } from "os";
|
|
509
512
|
import { execSync } from "child_process";
|
|
510
|
-
import {
|
|
513
|
+
import { input, confirm } from "@inquirer/prompts";
|
|
511
514
|
import { fileURLToPath } from "url";
|
|
512
515
|
import { parse as parseTOML, stringify as stringifyTOML } from "smol-toml";
|
|
513
516
|
|
|
514
517
|
// src/cli/exit.ts
|
|
515
518
|
var isExitPromptError = (err) => err instanceof Error && (err.name === "ExitPromptError" || err.message.includes("User force closed") || /force closed the prompt/i.test(err.message));
|
|
516
|
-
|
|
519
|
+
|
|
520
|
+
// src/setup/agent-picker.ts
|
|
521
|
+
import {
|
|
522
|
+
createPrompt,
|
|
523
|
+
isDownKey,
|
|
524
|
+
isEnterKey,
|
|
525
|
+
isNumberKey,
|
|
526
|
+
isSpaceKey,
|
|
527
|
+
isUpKey,
|
|
528
|
+
makeTheme,
|
|
529
|
+
useEffect,
|
|
530
|
+
useKeypress,
|
|
531
|
+
usePagination,
|
|
532
|
+
usePrefix,
|
|
533
|
+
useState
|
|
534
|
+
} from "@inquirer/core";
|
|
535
|
+
import { cursorHide } from "@inquirer/ansi";
|
|
536
|
+
import figures from "@inquirer/figures";
|
|
537
|
+
import { styleText } from "util";
|
|
538
|
+
var PAGE_SIZE = 7;
|
|
539
|
+
var SELECT_ALL_KEY = "a";
|
|
540
|
+
var INVERT_KEY = "i";
|
|
541
|
+
var KEY_HELP = [
|
|
542
|
+
["\u2191\u2193", "navigate"],
|
|
543
|
+
["space", "select"],
|
|
544
|
+
[SELECT_ALL_KEY, "all"],
|
|
545
|
+
[INVERT_KEY, "invert"],
|
|
546
|
+
["\u23CE", "submit"]
|
|
547
|
+
];
|
|
548
|
+
var tickedAgents = (choices) => choices.filter((choice) => choice.checked).map((choice) => choice.value);
|
|
549
|
+
var withToggleAt = (choices, position) => choices.map((choice, index) => index === position ? { ...choice, checked: !choice.checked } : choice);
|
|
550
|
+
var withEveryChoiceSetTo = (choices, checked) => choices.map((choice) => ({ ...choice, checked }));
|
|
551
|
+
var withSelectAllApplied = (choices) => withEveryChoiceSetTo(choices, choices.some((choice) => !choice.checked));
|
|
552
|
+
var withEveryChoiceFlipped = (choices) => choices.map((choice) => ({ ...choice, checked: !choice.checked }));
|
|
553
|
+
var cursorMovedBy = (active, offset, length) => (active + offset + length) % length;
|
|
554
|
+
var outcomeWhenIdle = (keystrokes, choices) => keystrokes === 0 ? { kind: "idle-before-any-key" } : { kind: "idle-after-keys", agents: tickedAgents(choices) };
|
|
555
|
+
var PICKER_THEME = makeTheme();
|
|
556
|
+
var renderedRow = ({ item, isActive }) => {
|
|
557
|
+
const cursor = isActive ? figures.pointer : " ";
|
|
558
|
+
const box = item.checked ? styleText("green", figures.circleFilled) : figures.circle;
|
|
559
|
+
const row = `${cursor}${box} ${item.name}`;
|
|
560
|
+
return isActive ? PICKER_THEME.style.highlight(row) : row;
|
|
561
|
+
};
|
|
562
|
+
var renderedKeyHelp = () => KEY_HELP.map(([key, action]) => `${styleText("bold", key)} ${styleText("dim", action)}`).join(styleText("dim", " \u2022 "));
|
|
563
|
+
var renderedAnswer = (choices) => PICKER_THEME.style.answer(choices.filter((choice) => choice.checked).map((choice) => choice.short).join(", "));
|
|
564
|
+
var renderAgentPicker = (config, done) => {
|
|
565
|
+
const [status, setStatus] = useState("idle");
|
|
566
|
+
const [choices, setChoices] = useState(config.choices);
|
|
567
|
+
const [active, setActive] = useState(0);
|
|
568
|
+
const [error, setError] = useState(void 0);
|
|
569
|
+
const [keystrokes, setKeystrokes] = useState(0);
|
|
570
|
+
const prefix = usePrefix({ status, theme: PICKER_THEME });
|
|
571
|
+
const scheduleIdle = config.scheduleIdle ?? scheduleWithTimer;
|
|
572
|
+
const settle = (outcome) => {
|
|
573
|
+
setStatus("done");
|
|
574
|
+
done(outcome);
|
|
575
|
+
};
|
|
576
|
+
useEffect(() => scheduleIdle(() => settle(outcomeWhenIdle(keystrokes, choices)), config.idleLimitMs), [keystrokes]);
|
|
577
|
+
const submit = () => {
|
|
578
|
+
const picked = tickedAgents(choices);
|
|
579
|
+
const verdict = config.validate(picked);
|
|
580
|
+
if (verdict === true) settle({ kind: "answered", agents: picked });
|
|
581
|
+
else setError(verdict);
|
|
582
|
+
};
|
|
583
|
+
const moveCursor = (offset) => {
|
|
584
|
+
setError(void 0);
|
|
585
|
+
setActive(cursorMovedBy(active, offset, choices.length));
|
|
586
|
+
};
|
|
587
|
+
const toggleActiveChoice = () => {
|
|
588
|
+
setError(void 0);
|
|
589
|
+
setChoices(withToggleAt(choices, active));
|
|
590
|
+
};
|
|
591
|
+
const toggleNumberedChoice = (key) => {
|
|
592
|
+
const position = Number(key.name) - 1;
|
|
593
|
+
if (position < 0 || position >= choices.length) return;
|
|
594
|
+
setActive(position);
|
|
595
|
+
setChoices(withToggleAt(choices, position));
|
|
596
|
+
};
|
|
597
|
+
const respondToKey = (key) => {
|
|
598
|
+
setKeystrokes(keystrokes + 1);
|
|
599
|
+
if (isEnterKey(key)) submit();
|
|
600
|
+
else if (isUpKey(key)) moveCursor(-1);
|
|
601
|
+
else if (isDownKey(key)) moveCursor(1);
|
|
602
|
+
else if (isSpaceKey(key)) toggleActiveChoice();
|
|
603
|
+
else if (isNumberKey(key)) toggleNumberedChoice(key);
|
|
604
|
+
else if (key.name === SELECT_ALL_KEY) setChoices(withSelectAllApplied(choices));
|
|
605
|
+
else if (key.name === INVERT_KEY) setChoices(withEveryChoiceFlipped(choices));
|
|
606
|
+
};
|
|
607
|
+
useKeypress(respondToKey);
|
|
608
|
+
const message = PICKER_THEME.style.message(config.message, status);
|
|
609
|
+
const page = usePagination({ items: choices, active, renderItem: renderedRow, pageSize: PAGE_SIZE, loop: true });
|
|
610
|
+
if (status === "done") return [prefix, message, renderedAnswer(choices)].filter(Boolean).join(" ");
|
|
611
|
+
const lines = [
|
|
612
|
+
[prefix, message].filter(Boolean).join(" "),
|
|
613
|
+
page,
|
|
614
|
+
" ",
|
|
615
|
+
error ? PICKER_THEME.style.error(error) : "",
|
|
616
|
+
renderedKeyHelp()
|
|
617
|
+
].filter(Boolean).join("\n").trimEnd();
|
|
618
|
+
return `${lines}${cursorHide}`;
|
|
619
|
+
};
|
|
620
|
+
var pickAgentsUntilIdle = createPrompt(renderAgentPicker);
|
|
517
621
|
|
|
518
622
|
// src/setup/agent-targets.ts
|
|
519
623
|
import { join } from "path";
|
|
@@ -2471,25 +2575,8 @@ var detectAgents = () => {
|
|
|
2471
2575
|
var canRunBrowserLogin = () => process.stdout.isTTY === true && !isCI();
|
|
2472
2576
|
var AGENT_PICKER_IDLE_LIMIT_MS = 2e4;
|
|
2473
2577
|
var answeredWith = (agents) => ({ agents, nobodyAnswered: false });
|
|
2474
|
-
var
|
|
2475
|
-
|
|
2476
|
-
const expire = () => controller.abort();
|
|
2477
|
-
let timer = setTimeout(expire, idleMs);
|
|
2478
|
-
timer.unref();
|
|
2479
|
-
const restart = () => {
|
|
2480
|
-
clearTimeout(timer);
|
|
2481
|
-
timer = setTimeout(expire, idleMs);
|
|
2482
|
-
timer.unref();
|
|
2483
|
-
};
|
|
2484
|
-
process.stdin.on("keypress", restart);
|
|
2485
|
-
return {
|
|
2486
|
-
signal: controller.signal,
|
|
2487
|
-
stop: () => {
|
|
2488
|
-
clearTimeout(timer);
|
|
2489
|
-
process.stdin.off("keypress", restart);
|
|
2490
|
-
}
|
|
2491
|
-
};
|
|
2492
|
-
};
|
|
2578
|
+
var AGENT_PICKER_IDLE_SECONDS = AGENT_PICKER_IDLE_LIMIT_MS / 1e3;
|
|
2579
|
+
var CHOOSE_WITH_AGENTS_FLAG = "(--agents to choose)";
|
|
2493
2580
|
var selectDetectedAgents = async (detected) => {
|
|
2494
2581
|
const picked = Object.keys(detected).filter((agent) => detected[agent].found);
|
|
2495
2582
|
if (picked.length === 0) {
|
|
@@ -2498,9 +2585,32 @@ var selectDetectedAgents = async (detected) => {
|
|
|
2498
2585
|
console.log();
|
|
2499
2586
|
process.exit(await abortWith("no-agents-detected", EXIT.PROBLEMS_FOUND));
|
|
2500
2587
|
}
|
|
2501
|
-
console.log(` ${check} Selected automatically: ${picked.map((a) => AGENT_NAMES[a]).join(", ")} ${dim(
|
|
2588
|
+
console.log(` ${check} Selected automatically: ${picked.map((a) => AGENT_NAMES[a]).join(", ")} ${dim(CHOOSE_WITH_AGENTS_FLAG)}`);
|
|
2502
2589
|
return picked;
|
|
2503
2590
|
};
|
|
2591
|
+
var noAgentDetected = (detected) => !Object.values(detected).some((agent) => agent.found);
|
|
2592
|
+
var selectAgentsTickedWhenIdle = async (ticked, detected) => {
|
|
2593
|
+
if (ticked.length === 0 && noAgentDetected(detected)) return selectDetectedAgents(detected);
|
|
2594
|
+
if (ticked.length === 0) {
|
|
2595
|
+
console.log(` ${yellow("!")} Nothing was pressed for ${AGENT_PICKER_IDLE_SECONDS} seconds and no agent was ticked, so nothing was configured. Your API key is saved.`);
|
|
2596
|
+
console.log(` ${dim("Re-run setup and tick one, name one with --agents <id>, or pass --agents none to accept this.")}`);
|
|
2597
|
+
console.log();
|
|
2598
|
+
process.exit(await abortWith("interrupted", EXIT.PROBLEMS_FOUND));
|
|
2599
|
+
}
|
|
2600
|
+
console.log(` ${yellow("!")} Nothing was pressed for ${AGENT_PICKER_IDLE_SECONDS} seconds, so setup is using what you ticked: ${ticked.map((agent) => AGENT_NAMES[agent]).join(", ")} ${dim(CHOOSE_WITH_AGENTS_FLAG)}`);
|
|
2601
|
+
return ticked;
|
|
2602
|
+
};
|
|
2603
|
+
var agentResolutionFromPicker = async (outcome, detected) => {
|
|
2604
|
+
switch (outcome.kind) {
|
|
2605
|
+
case "answered":
|
|
2606
|
+
return answeredWith(outcome.agents);
|
|
2607
|
+
case "idle-before-any-key":
|
|
2608
|
+
console.log(` ${yellow("!")} Nothing was pressed at the agent question for ${AGENT_PICKER_IDLE_SECONDS} seconds.`);
|
|
2609
|
+
return { agents: await selectDetectedAgents(detected), nobodyAnswered: true };
|
|
2610
|
+
case "idle-after-keys":
|
|
2611
|
+
return { agents: await selectAgentsTickedWhenIdle(outcome.agents, detected), nobodyAnswered: true };
|
|
2612
|
+
}
|
|
2613
|
+
};
|
|
2504
2614
|
var resolveAgents = async (options) => {
|
|
2505
2615
|
if (options.agents.kind === "none") return answeredWith([]);
|
|
2506
2616
|
if (options.agents.kind === "explicit") {
|
|
@@ -2520,9 +2630,8 @@ var resolveAgents = async (options) => {
|
|
|
2520
2630
|
});
|
|
2521
2631
|
if (selection.kind === "auto") return answeredWith(await selectDetectedAgents(detected));
|
|
2522
2632
|
const hint = hasDetectedAgents ? "(detected agents pre-selected)" : "(space = toggle, enter = confirm)";
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
return answeredWith(await checkbox({
|
|
2633
|
+
return agentResolutionFromPicker(
|
|
2634
|
+
await pickAgentsUntilIdle({
|
|
2526
2635
|
message: "Which agents do you use? " + dim(hint),
|
|
2527
2636
|
choices: Object.keys(AGENT_LABELS).map((agent) => ({
|
|
2528
2637
|
// The evidence rides along so a detection the user disagrees with is
|
|
@@ -2533,15 +2642,11 @@ var resolveAgents = async (options) => {
|
|
|
2533
2642
|
checked: detected[agent].found
|
|
2534
2643
|
})),
|
|
2535
2644
|
// Today an empty selection skips the loop and still prints "Setup complete."
|
|
2536
|
-
validate: (picked) => picked.length > 0 || "Select at least one agent, or re-run with --agents none."
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
return { agents: await selectDetectedAgents(detected), nobodyAnswered: true };
|
|
2542
|
-
} finally {
|
|
2543
|
-
deadline.stop();
|
|
2544
|
-
}
|
|
2645
|
+
validate: (picked) => picked.length > 0 || "Select at least one agent, or re-run with --agents none.",
|
|
2646
|
+
idleLimitMs: AGENT_PICKER_IDLE_LIMIT_MS
|
|
2647
|
+
}),
|
|
2648
|
+
detected
|
|
2649
|
+
);
|
|
2545
2650
|
};
|
|
2546
2651
|
var AGENT_TARGETS = agentSetupTargets(existsSync2);
|
|
2547
2652
|
var reportDryRun = (apiKey, agents, keyCheck, controlMode) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exitOnHelpFlag
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-3XSDSKAX.js";
|
|
5
5
|
import {
|
|
6
6
|
readLedgerSummary
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-MOCDN7B3.js";
|
|
8
8
|
import {
|
|
9
9
|
getApiKey
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-YB64X4IQ.js";
|
|
11
|
+
import "../chunk-RDECWGBJ.js";
|
|
12
12
|
import "../chunk-BG4HHB7E.js";
|
|
13
13
|
import "../chunk-CXQWDQCJ.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-F75727GN.js";
|
|
15
15
|
import "../chunk-MLKGABMK.js";
|
|
16
16
|
|
|
17
17
|
// bin/pushary-stats.ts
|