@pushary/agent-hooks 1.9.145 → 1.9.148
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 +25 -0
- package/README.md +5 -4
- package/data/SKILL.md +3 -3
- package/data/cursor-plugin/scripts/redaction.mjs +2 -1
- package/data/cursor-plugin/skills/pushary/SKILL.md +2 -2
- package/data/openclaw-plugin/LICENSE +21 -0
- package/data/openclaw-plugin/README.md +113 -0
- package/data/openclaw-plugin/dist/api-key-shape.js +5 -0
- package/data/openclaw-plugin/dist/approval-hook.js +88 -0
- package/data/openclaw-plugin/dist/approval-question.js +66 -0
- package/data/openclaw-plugin/dist/connection.js +101 -0
- package/data/openclaw-plugin/dist/decision-reply.js +6 -0
- package/data/openclaw-plugin/dist/gate-result.js +58 -0
- package/data/openclaw-plugin/dist/gate.js +173 -0
- package/data/openclaw-plugin/dist/hook-budget.js +19 -0
- package/data/openclaw-plugin/dist/host-api.js +1 -0
- package/data/openclaw-plugin/dist/host-version.js +25 -0
- package/data/openclaw-plugin/dist/index.js +32 -0
- package/data/openclaw-plugin/dist/openclaw-paths.js +43 -0
- package/data/openclaw-plugin/dist/openclaw-write-guard.js +93 -0
- package/data/openclaw-plugin/dist/protected-writes.js +217 -0
- package/data/openclaw-plugin/dist/pushary-client.js +103 -0
- package/data/openclaw-plugin/dist/pushary-hosts.js +3 -0
- package/data/openclaw-plugin/dist/redaction.js +53 -0
- package/data/openclaw-plugin/dist/replies.js +65 -0
- package/data/openclaw-plugin/dist/settings.js +103 -0
- package/data/openclaw-plugin/openclaw.plugin.json +32 -0
- package/data/openclaw-plugin/package.json +70 -0
- package/data/vscode-plugin/scripts/redaction.mjs +2 -1
- package/data/vscode-plugin/skills/pushary/SKILL.md +2 -2
- package/dist/{api-KWJQMO6G.js → api-H7H75ARS.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 +11 -11
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +76 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +78 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +44 -43
- package/dist/bin/pushary-disconnect.js +28 -28
- package/dist/bin/pushary-display-hook.js +96 -44
- package/dist/bin/pushary-doctor.js +124 -55
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +33 -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-hook.js +31 -31
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- 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 +37 -36
- package/dist/bin/pushary-setup.js +144 -106
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +38 -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 +42 -41
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-6IWOMXUF.js → chunk-2VPRLAKF.js} +4 -4
- package/dist/{chunk-GK5X2ZTN.js → chunk-3AAQJ75F.js} +5 -5
- package/dist/{chunk-YNCVSKUW.js → chunk-3OPXQK4D.js} +5 -5
- package/dist/{chunk-ZORBUQFG.js → chunk-3T7RA7WJ.js} +2 -2
- package/dist/{chunk-PXZTCR4M.js → chunk-3WD3BEPB.js} +2 -2
- package/dist/{chunk-VTJ4WZOC.js → chunk-43NHQUCY.js} +24 -3
- package/dist/{chunk-S7HGPKCL.js → chunk-4L2IYNLC.js} +1 -1
- package/dist/{chunk-KFALRZIN.js → chunk-5IG3VPHT.js} +4 -4
- package/dist/{chunk-S3A4PCRR.js → chunk-5ZIYTFPW.js} +10 -10
- package/dist/{chunk-A2H256WR.js → chunk-6HO36P3A.js} +1 -1
- package/dist/{chunk-FCSPMSDC.js → chunk-6RYJ3XCD.js} +200 -59
- package/dist/{chunk-PY6CM4NK.js → chunk-6YX3VB5P.js} +19 -12
- package/dist/{chunk-BYKRAYGD.js → chunk-A3URJPYH.js} +1 -1
- package/dist/{chunk-KS3PNTRT.js → chunk-ABTQG6XU.js} +1 -1
- package/dist/{chunk-72LP4RPC.js → chunk-AQ7L2E2U.js} +98 -47
- package/dist/{chunk-FNAH3YJC.js → chunk-B6RTPP3X.js} +16 -16
- package/dist/{chunk-K2SKUBYY.js → chunk-BP5HLKR6.js} +12 -12
- package/dist/{chunk-4L5WPDTB.js → chunk-BPKB7BI4.js} +1 -1
- package/dist/{chunk-YRJZF5RG.js → chunk-CABBLJD5.js} +3 -3
- package/dist/{chunk-ZBMVOMFG.js → chunk-CAHULQIO.js} +1 -1
- package/dist/chunk-CBIS7IYQ.js +157 -0
- package/dist/{chunk-LJRPWUST.js → chunk-CDQOARIF.js} +3 -3
- package/dist/{chunk-ZSOCJHL7.js → chunk-CIRTRWHM.js} +309 -5
- package/dist/{chunk-NTMKJRQ3.js → chunk-CMTDMZPV.js} +2 -2
- package/dist/{chunk-WOSO4YFQ.js → chunk-CU5SYUMK.js} +3 -6
- package/dist/{chunk-L4OGTRVW.js → chunk-D3QT4S7U.js} +4 -4
- package/dist/{chunk-YU5XE6VC.js → chunk-DHCJDYBT.js} +8 -7
- package/dist/{chunk-2LGDEPVL.js → chunk-DLPI45DF.js} +6 -6
- package/dist/{chunk-ZJZNT2G5.js → chunk-ENRL4WFD.js} +4 -4
- package/dist/{chunk-6UK4K5RS.js → chunk-FQLS37AX.js} +1 -1
- package/dist/{chunk-B4JQIH5M.js → chunk-H6FFNTSR.js} +7 -7
- package/dist/{chunk-JKWUF776.js → chunk-HEOBF5H6.js} +3 -3
- package/dist/{chunk-MNU5N3CQ.js → chunk-JSZ6LKX5.js} +23 -12
- package/dist/{chunk-RO6EVL5C.js → chunk-JUEQUYAT.js} +2 -2
- package/dist/{chunk-GURIOZE7.js → chunk-KP6ERYOA.js} +8 -8
- package/dist/{chunk-QKTF7WS6.js → chunk-KWJJYZ3T.js} +4 -4
- package/dist/{chunk-EPWOARGR.js → chunk-KXNAB76Z.js} +16 -5
- package/dist/chunk-LC53HRZ6.js +36 -0
- package/dist/{chunk-52UXNCZG.js → chunk-M7HJZ7HO.js} +3 -3
- package/dist/{chunk-WMBWKPKJ.js → chunk-MT4GBXLM.js} +10 -74
- package/dist/{chunk-WPBWJMBZ.js → chunk-MUSINFEU.js} +5 -5
- package/dist/{chunk-LD4R2P6N.js → chunk-NHZV2H63.js} +1 -1
- package/dist/{chunk-USFZJAB4.js → chunk-NLED3JGR.js} +1 -1
- package/dist/{chunk-DZIZ3XFL.js → chunk-NRPQUU3D.js} +2 -2
- package/dist/{chunk-LQXUWXQP.js → chunk-O5ARO3JM.js} +33 -10
- package/dist/chunk-OYIN77HO.js +72 -0
- package/dist/{chunk-TJXJGMSP.js → chunk-PH3MVQCQ.js} +21 -11
- package/dist/{chunk-2ELNRGNX.js → chunk-PUTX5BBE.js} +7 -4
- package/dist/{chunk-R34RWVN2.js → chunk-PVBDITRS.js} +14 -5
- package/dist/{chunk-33BYPZ52.js → chunk-Q7GZKNMH.js} +1 -1
- package/dist/{chunk-7LTP2GHO.js → chunk-QSZYHL7Z.js} +2 -2
- package/dist/{chunk-CUR2DCZN.js → chunk-QTQRQZIU.js} +4 -4
- package/dist/{chunk-SQL5YXUH.js → chunk-R2JRRCZK.js} +1 -1
- package/dist/{chunk-4KDRT3OA.js → chunk-RMBY7JGO.js} +1 -1
- package/dist/{chunk-KKPT7ROP.js → chunk-RWTH5RYA.js} +2 -2
- package/dist/chunk-RYDDLS62.js +176 -0
- package/dist/{chunk-Q6P7G4NY.js → chunk-S3MEI2D2.js} +17 -5
- package/dist/{chunk-HOQH5CLZ.js → chunk-T3CMGGNW.js} +1 -1
- package/dist/{chunk-IIN26HL7.js → chunk-T4PX3DRF.js} +1 -1
- package/dist/{chunk-6LZ7MXHD.js → chunk-TXXAQRX4.js} +7 -5
- package/dist/{chunk-YZA3YBHX.js → chunk-UAHBSOO4.js} +2 -2
- package/dist/{chunk-LMU6NG2G.js → chunk-UFGFO7QB.js} +1 -1
- package/dist/{chunk-TRV3ETGY.js → chunk-UJUGFLVF.js} +5 -5
- package/dist/{chunk-IRPIMQ7U.js → chunk-UL2NNDKD.js} +3 -3
- package/dist/{chunk-BWREST4F.js → chunk-VPADWVYD.js} +1 -1
- package/dist/{chunk-5TWW7ZUL.js → chunk-VPMSV35B.js} +5 -5
- package/dist/{chunk-G3VSMI7K.js → chunk-WQEJCDMR.js} +2 -2
- package/dist/{chunk-JZT2LPRM.js → chunk-WQJ5NJ35.js} +1 -1
- package/dist/{chunk-63WX5KZN.js → chunk-X4OEGFOG.js} +3 -3
- package/dist/{chunk-RWLNTZK5.js → chunk-X4OQ5UMH.js} +5 -5
- package/dist/{chunk-MOC2DN42.js → chunk-XSBW6TUH.js} +2 -2
- package/dist/{chunk-WH4ODOCE.js → chunk-XZGQZDFP.js} +6 -6
- package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
- package/dist/{chunk-WUT3PO33.js → chunk-YOP7LFHW.js} +8 -8
- package/dist/{chunk-KGFB2LEB.js → chunk-YTD7RV6F.js} +3 -3
- package/dist/{chunk-IDLOJIIS.js → chunk-YWSIN7IH.js} +1 -1
- package/dist/{chunk-MKHVLDMN.js → chunk-ZCB5SCYM.js} +2 -2
- package/dist/{chunk-OONMKLUF.js → chunk-ZOATPL53.js} +4 -4
- package/dist/{chunk-Y7INHH5G.js → chunk-ZX2O66NS.js} +3 -3
- package/dist/{codex-app-cards-switch-F7WQ7Y3I.js → codex-app-cards-switch-BCM547E6.js} +11 -11
- package/dist/{codex-card-routing-EVL5L36G.js → codex-card-routing-222EKZJR.js} +2 -2
- package/dist/{codex-desktop-launch-PL6Z2ELZ.js → codex-desktop-launch-6AFOLMZ7.js} +1 -1
- package/dist/{codex-session-launch-7NQEAUDU.js → codex-session-launch-4YJR4ZGN.js} +20 -20
- package/dist/{config-KFFD4VWH.js → config-GWNPGS47.js} +3 -3
- package/dist/{global-upgrade-L3CY6EFF.js → global-upgrade-VRF6OSSU.js} +9 -9
- package/dist/{identity-DPYYIMHL.js → identity-PQIM7R2N.js} +4 -4
- package/dist/{live-capabilities-QJEXK6GH.js → live-capabilities-G3LMKZUB.js} +4 -4
- package/dist/{paths-PEF6C64P.js → paths-TFGIP5PU.js} +7 -3
- package/dist/{reapply-7APCQRRK.js → reapply-3IRAI6JF.js} +30 -29
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-A7OKXMRW.js → upgrade-lock-2G7ANYYO.js} +6 -4
- package/dist/{usage-HSS33762.js → usage-K3EGYCSU.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-D3UFDCTQ.js +0 -87
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
runBrowserLogin,
|
|
23
23
|
switchBackToTheShellKeyLine,
|
|
24
24
|
wrongAccountHintPlacement
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-ENRL4WFD.js";
|
|
26
26
|
import {
|
|
27
27
|
INSTALL_NODE_STEP,
|
|
28
28
|
NPM_FILE_IN_USE_STEP,
|
|
@@ -36,25 +36,33 @@ import {
|
|
|
36
36
|
renderCommandSurface,
|
|
37
37
|
teamOfferLines,
|
|
38
38
|
unverifiedKeyClosingReason
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-PH3MVQCQ.js";
|
|
40
|
+
import {
|
|
41
|
+
instructionsChannelFor,
|
|
42
|
+
pairingComputerOf,
|
|
43
|
+
planPhoneCheck
|
|
44
|
+
} from "../chunk-LC53HRZ6.js";
|
|
40
45
|
import {
|
|
41
46
|
coworkOutput,
|
|
42
47
|
coworkSelection
|
|
43
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-HEOBF5H6.js";
|
|
44
49
|
import "../chunk-PUZZELE6.js";
|
|
45
50
|
import {
|
|
46
51
|
readCodexHooksOnDisk
|
|
47
|
-
} from "../chunk-
|
|
48
|
-
import "../chunk-
|
|
52
|
+
} from "../chunk-KP6ERYOA.js";
|
|
53
|
+
import "../chunk-CMTDMZPV.js";
|
|
49
54
|
import {
|
|
50
55
|
clearDeclinedAgent,
|
|
51
56
|
declinedAgentForSetupChoice
|
|
52
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-RWTH5RYA.js";
|
|
53
58
|
import {
|
|
59
|
+
OPENCLAW_RESTART_NOTE,
|
|
60
|
+
describeOpenClawInstallFailure,
|
|
61
|
+
describeOpenClawState,
|
|
54
62
|
gateHermesShell,
|
|
55
63
|
readHermesShellGate,
|
|
56
64
|
saveSetupFailure
|
|
57
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-CBIS7IYQ.js";
|
|
58
66
|
import {
|
|
59
67
|
CODEX_NEEDS_A_NEWER_VERSION,
|
|
60
68
|
CODEX_SETTINGS_STOP_A_HOOK,
|
|
@@ -68,23 +76,26 @@ import {
|
|
|
68
76
|
describeHermesState,
|
|
69
77
|
hermesGateShellCommand,
|
|
70
78
|
needsCodexTrustStep
|
|
71
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-KWJJYZ3T.js";
|
|
72
80
|
import {
|
|
73
81
|
describeWaitLadder
|
|
74
82
|
} from "../chunk-CVWG2N3Y.js";
|
|
75
83
|
import {
|
|
76
84
|
writeJsonError,
|
|
77
85
|
writeStdoutFully
|
|
78
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-NHZV2H63.js";
|
|
79
87
|
import {
|
|
88
|
+
canShowPairingQr,
|
|
80
89
|
confirmAppConnection,
|
|
81
90
|
connectDevice,
|
|
82
91
|
connectViaAppPairing,
|
|
92
|
+
describeCancelledPairing,
|
|
83
93
|
describePairingEscape,
|
|
84
94
|
pairingEscapeApplies,
|
|
95
|
+
phoneAwaitsNotificationPermission,
|
|
85
96
|
printConnectInstructions,
|
|
86
97
|
waitForYourPhone
|
|
87
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-6RYJ3XCD.js";
|
|
88
99
|
import "../chunk-3EGEA4KH.js";
|
|
89
100
|
import {
|
|
90
101
|
SETUP_AGENT_NAME,
|
|
@@ -93,7 +104,7 @@ import {
|
|
|
93
104
|
roundTripEvidence,
|
|
94
105
|
roundTripWasAnswered,
|
|
95
106
|
verifyRoundTrip
|
|
96
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-6YX3VB5P.js";
|
|
97
108
|
import {
|
|
98
109
|
keepLinuxDaemonAfterLogout,
|
|
99
110
|
lingerReportOf
|
|
@@ -101,10 +112,10 @@ import {
|
|
|
101
112
|
import {
|
|
102
113
|
readManagedControlEvidence,
|
|
103
114
|
waitForMachineReadiness
|
|
104
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-X4OQ5UMH.js";
|
|
105
116
|
import {
|
|
106
117
|
ensureCodexTrustsPusharyHooks
|
|
107
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-3T7RA7WJ.js";
|
|
108
119
|
import {
|
|
109
120
|
describeSetupSideEffects,
|
|
110
121
|
installAgentSkill,
|
|
@@ -112,7 +123,7 @@ import {
|
|
|
112
123
|
} from "../chunk-XR27HPYC.js";
|
|
113
124
|
import {
|
|
114
125
|
codexEngineBehindLauncher
|
|
115
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-YTD7RV6F.js";
|
|
116
127
|
import "../chunk-XCEN33UP.js";
|
|
117
128
|
import {
|
|
118
129
|
CURSOR_PLUGIN_BACKUP_INFIX,
|
|
@@ -122,23 +133,25 @@ import {
|
|
|
122
133
|
soleGateFile,
|
|
123
134
|
soleGateReceipt,
|
|
124
135
|
soleGateReceiptFile
|
|
125
|
-
} from "../chunk-
|
|
136
|
+
} from "../chunk-2VPRLAKF.js";
|
|
126
137
|
import {
|
|
127
138
|
describeDetection,
|
|
128
139
|
detectAllAgents,
|
|
140
|
+
detectedAgentChoices,
|
|
129
141
|
isDetected,
|
|
130
142
|
pluginLocationSnippet,
|
|
131
143
|
registerPluginLocation,
|
|
132
144
|
shortenHome,
|
|
133
145
|
vscodeSettingsTargets
|
|
134
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-S3MEI2D2.js";
|
|
147
|
+
import "../chunk-OYIN77HO.js";
|
|
135
148
|
import {
|
|
136
149
|
mcpServerBearer,
|
|
137
150
|
readMacAppAgentKey
|
|
138
|
-
} from "../chunk-
|
|
151
|
+
} from "../chunk-5IG3VPHT.js";
|
|
139
152
|
import {
|
|
140
153
|
keyScopeOf
|
|
141
|
-
} from "../chunk-
|
|
154
|
+
} from "../chunk-UAHBSOO4.js";
|
|
142
155
|
import {
|
|
143
156
|
HERMES_CONFIG_FILE,
|
|
144
157
|
HERMES_GATE_TOOLS_KEY,
|
|
@@ -149,15 +162,23 @@ import {
|
|
|
149
162
|
hermesReceiptPaths,
|
|
150
163
|
hermesShellGateChoice,
|
|
151
164
|
inspectHermesWiring,
|
|
165
|
+
inspectOpenClawWiring,
|
|
152
166
|
installHermesPlugin,
|
|
167
|
+
installOpenClawPlugin,
|
|
153
168
|
isHermesWired,
|
|
169
|
+
openClawFilesNow,
|
|
154
170
|
routesHermesQuestions,
|
|
155
171
|
runsAnOlderPlugin,
|
|
156
172
|
shippedHermesPlugin
|
|
157
|
-
} from "../chunk-
|
|
173
|
+
} from "../chunk-CIRTRWHM.js";
|
|
158
174
|
import {
|
|
159
175
|
setHumanStream
|
|
160
176
|
} from "../chunk-QCGNGEGE.js";
|
|
177
|
+
import {
|
|
178
|
+
findOpenClawLauncher,
|
|
179
|
+
isOpenClawWired,
|
|
180
|
+
openClawPathsNow
|
|
181
|
+
} from "../chunk-RYDDLS62.js";
|
|
161
182
|
import {
|
|
162
183
|
FX_PICKS_UP_CONFIGURATION,
|
|
163
184
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -174,7 +195,7 @@ import {
|
|
|
174
195
|
readFxProfileForSetup,
|
|
175
196
|
withFxPusharyServer,
|
|
176
197
|
writeFxProfile
|
|
177
|
-
} from "../chunk-
|
|
198
|
+
} from "../chunk-3OPXQK4D.js";
|
|
178
199
|
import {
|
|
179
200
|
AgentConfigError,
|
|
180
201
|
afterAgentFailureNote,
|
|
@@ -187,10 +208,10 @@ import {
|
|
|
187
208
|
retryAgentCommand,
|
|
188
209
|
writeSetupConfigFile,
|
|
189
210
|
writeSetupConfigJson
|
|
190
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-PUTX5BBE.js";
|
|
191
212
|
import {
|
|
192
213
|
MCP_BRIDGE_BINARY
|
|
193
|
-
} from "../chunk-
|
|
214
|
+
} from "../chunk-M7HJZ7HO.js";
|
|
194
215
|
import {
|
|
195
216
|
OPENCODE_HOOK_BINARY,
|
|
196
217
|
addOpenCodeMcpServer,
|
|
@@ -208,12 +229,15 @@ import {
|
|
|
208
229
|
openCodePluginFile,
|
|
209
230
|
openCodeWired,
|
|
210
231
|
withOpenCodeAskRules
|
|
211
|
-
} from "../chunk-
|
|
232
|
+
} from "../chunk-3AAQJ75F.js";
|
|
212
233
|
import {
|
|
213
234
|
ansiPainter,
|
|
235
|
+
ciMarker,
|
|
214
236
|
createIo,
|
|
237
|
+
describeCiReason,
|
|
238
|
+
isCI,
|
|
215
239
|
useColor
|
|
216
|
-
} from "../chunk-
|
|
240
|
+
} from "../chunk-YM2T76UM.js";
|
|
217
241
|
import {
|
|
218
242
|
checkCodexInstall,
|
|
219
243
|
describeMissingControlPrerequisite,
|
|
@@ -224,16 +248,16 @@ import {
|
|
|
224
248
|
nodeCodexInstallProbe,
|
|
225
249
|
phoneStartIsRequired,
|
|
226
250
|
resolveControlPolicy
|
|
227
|
-
} from "../chunk-
|
|
251
|
+
} from "../chunk-ZX2O66NS.js";
|
|
228
252
|
import {
|
|
229
253
|
detectClaudeVersion
|
|
230
|
-
} from "../chunk-
|
|
254
|
+
} from "../chunk-NRPQUU3D.js";
|
|
231
255
|
import "../chunk-CYTPQDQY.js";
|
|
232
256
|
import {
|
|
233
257
|
describeAutoUpdateAnnouncement,
|
|
234
258
|
takeAutoUpdateAnnouncement
|
|
235
|
-
} from "../chunk-
|
|
236
|
-
import "../chunk-
|
|
259
|
+
} from "../chunk-ZCB5SCYM.js";
|
|
260
|
+
import "../chunk-D3QT4S7U.js";
|
|
237
261
|
import "../chunk-VAE5JBR5.js";
|
|
238
262
|
import "../chunk-G66WIAST.js";
|
|
239
263
|
import {
|
|
@@ -249,7 +273,7 @@ import {
|
|
|
249
273
|
compatibleRecord,
|
|
250
274
|
compatibleTargetPaths,
|
|
251
275
|
hasCompatibleHooks
|
|
252
|
-
} from "../chunk-
|
|
276
|
+
} from "../chunk-PVBDITRS.js";
|
|
253
277
|
import {
|
|
254
278
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
255
279
|
clearDaemonNeedsLogin,
|
|
@@ -268,7 +292,7 @@ import {
|
|
|
268
292
|
stopDaemonService,
|
|
269
293
|
versionManagerOf,
|
|
270
294
|
waitForDaemonRemoteProof
|
|
271
|
-
} from "../chunk-
|
|
295
|
+
} from "../chunk-XZGQZDFP.js";
|
|
272
296
|
import {
|
|
273
297
|
GEMINI_HOOK_BINARY,
|
|
274
298
|
GEMINI_HOOK_EVENTS,
|
|
@@ -284,47 +308,45 @@ import {
|
|
|
284
308
|
geminiWired,
|
|
285
309
|
planHooks,
|
|
286
310
|
pusharyHookExecutable
|
|
287
|
-
} from "../chunk-
|
|
311
|
+
} from "../chunk-QTQRQZIU.js";
|
|
288
312
|
import {
|
|
289
313
|
reportEvent
|
|
290
|
-
} from "../chunk-
|
|
291
|
-
import "../chunk-
|
|
314
|
+
} from "../chunk-BP5HLKR6.js";
|
|
315
|
+
import "../chunk-WQJ5NJ35.js";
|
|
292
316
|
import {
|
|
293
317
|
AGENT_CHOICES,
|
|
294
318
|
effectiveAgentSelection,
|
|
295
319
|
effectiveControlMode,
|
|
296
320
|
effectiveVerify,
|
|
297
321
|
parseSetupOptions
|
|
298
|
-
} from "../chunk-
|
|
299
|
-
import "../chunk-
|
|
322
|
+
} from "../chunk-CAHULQIO.js";
|
|
323
|
+
import "../chunk-R2JRRCZK.js";
|
|
300
324
|
import "../chunk-YPY4YCIZ.js";
|
|
301
325
|
import "../chunk-XMSDA5WA.js";
|
|
302
326
|
import {
|
|
303
327
|
transcriptPreferenceForSetup
|
|
304
|
-
} from "../chunk-
|
|
305
|
-
import "../chunk-
|
|
306
|
-
import "../chunk-
|
|
328
|
+
} from "../chunk-T3CMGGNW.js";
|
|
329
|
+
import "../chunk-FQLS37AX.js";
|
|
330
|
+
import "../chunk-DHCJDYBT.js";
|
|
307
331
|
import "../chunk-POFBE6ZY.js";
|
|
308
|
-
import "../chunk-
|
|
332
|
+
import "../chunk-MUSINFEU.js";
|
|
309
333
|
import {
|
|
310
334
|
checkApiKey,
|
|
311
335
|
describeKeyCheck,
|
|
312
336
|
samePusharyAccount
|
|
313
|
-
} from "../chunk-
|
|
314
|
-
import "../chunk-
|
|
337
|
+
} from "../chunk-CABBLJD5.js";
|
|
338
|
+
import "../chunk-CDQOARIF.js";
|
|
315
339
|
import "../chunk-H6CL3T2S.js";
|
|
316
|
-
import "../chunk-
|
|
317
|
-
import "../chunk-
|
|
318
|
-
import "../chunk-
|
|
340
|
+
import "../chunk-A3URJPYH.js";
|
|
341
|
+
import "../chunk-4L2IYNLC.js";
|
|
342
|
+
import "../chunk-ABTQG6XU.js";
|
|
319
343
|
import {
|
|
320
344
|
UsageError
|
|
321
345
|
} from "../chunk-YU2EUD7O.js";
|
|
322
346
|
import {
|
|
323
347
|
KEY_FILE_MODE,
|
|
324
|
-
exportLine,
|
|
325
348
|
installClaudeAlias,
|
|
326
349
|
keyPrefix,
|
|
327
|
-
manualKeyStepFor,
|
|
328
350
|
newTerminalsUseSavedKey,
|
|
329
351
|
readConfigFileKey,
|
|
330
352
|
readControlMode,
|
|
@@ -335,8 +357,8 @@ import {
|
|
|
335
357
|
resolveShellRc,
|
|
336
358
|
shellKeyWasReplaced,
|
|
337
359
|
writeKey
|
|
338
|
-
} from "../chunk-
|
|
339
|
-
import "../chunk-
|
|
360
|
+
} from "../chunk-CU5SYUMK.js";
|
|
361
|
+
import "../chunk-XSBW6TUH.js";
|
|
340
362
|
import {
|
|
341
363
|
CLINE_AUTO_APPROVE_STEP,
|
|
342
364
|
CLINE_RELOAD_STEP,
|
|
@@ -387,6 +409,7 @@ import {
|
|
|
387
409
|
guardNodeScript,
|
|
388
410
|
hookTakeoverReceipt,
|
|
389
411
|
isClaudeMcpSnapshot,
|
|
412
|
+
openClawPluginFolder,
|
|
390
413
|
pusharyConfigFile,
|
|
391
414
|
readCodexMcpAuth,
|
|
392
415
|
renderAgentInstructions,
|
|
@@ -395,7 +418,7 @@ import {
|
|
|
395
418
|
vscodePluginDir,
|
|
396
419
|
vscodePluginMcp,
|
|
397
420
|
writeInstructionBlock
|
|
398
|
-
} from "../chunk-
|
|
421
|
+
} from "../chunk-AQ7L2E2U.js";
|
|
399
422
|
import {
|
|
400
423
|
NpmMissingError,
|
|
401
424
|
compareVersion,
|
|
@@ -406,10 +429,10 @@ import {
|
|
|
406
429
|
plannedGlobalPackage,
|
|
407
430
|
resolveGlobalBinDir,
|
|
408
431
|
resolveGlobalBinary
|
|
409
|
-
} from "../chunk-
|
|
432
|
+
} from "../chunk-43NHQUCY.js";
|
|
410
433
|
import {
|
|
411
434
|
getBaseUrl
|
|
412
|
-
} from "../chunk-
|
|
435
|
+
} from "../chunk-VPADWVYD.js";
|
|
413
436
|
import {
|
|
414
437
|
EXIT
|
|
415
438
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -420,7 +443,7 @@ import {
|
|
|
420
443
|
import {
|
|
421
444
|
NPX_LATEST_COMMAND,
|
|
422
445
|
renderCommandHelp
|
|
423
|
-
} from "../chunk-
|
|
446
|
+
} from "../chunk-TXXAQRX4.js";
|
|
424
447
|
import {
|
|
425
448
|
getPackageVersion,
|
|
426
449
|
isNewerVersion,
|
|
@@ -435,11 +458,10 @@ import {
|
|
|
435
458
|
computerOsOfPlatform,
|
|
436
459
|
hookCompatibleProfile,
|
|
437
460
|
isApprovalMode,
|
|
438
|
-
isComputerAgent,
|
|
439
461
|
isRecord,
|
|
440
462
|
isTimeoutAction,
|
|
441
463
|
isValidApiKey
|
|
442
|
-
} from "../chunk-
|
|
464
|
+
} from "../chunk-O5ARO3JM.js";
|
|
443
465
|
import {
|
|
444
466
|
CODEX_ENGINE_DIRECTORY,
|
|
445
467
|
CODEX_ENGINE_ENTRYPOINT,
|
|
@@ -467,6 +489,7 @@ var agentSetupTargets = (exists) => ({
|
|
|
467
489
|
codex: [join(codexHome(), "config.toml"), codexHooksJson(), join(codexSkillDir(), "SKILL.md"), codexAgentsMd()],
|
|
468
490
|
gemini_cli: [geminiSettings(), geminiMd()],
|
|
469
491
|
hermes: [hermesPluginDirectory(defaultHermesHome()), join(defaultHermesHome(), HERMES_CONFIG_FILE)],
|
|
492
|
+
openclaw: [openClawPluginFolder(), openClawPathsNow().configFile],
|
|
470
493
|
cursor: [join(cursorPluginDir(), "mcp.json"), cursorUserHooks()],
|
|
471
494
|
vscode: [vscodePluginMcp(), ...vscodeSettingsTargets(exists)],
|
|
472
495
|
opencode: [
|
|
@@ -499,17 +522,6 @@ var enterKeyListener = (input2 = process.stdin) => {
|
|
|
499
522
|
var PHONE_START_OPT_OUT = "Turn it off with --control off.";
|
|
500
523
|
var describeServiceInstall = (servicePresent) => servicePresent ? `Updating the background service that lets your phone start agents. ${PHONE_START_OPT_OUT}` : `Installing a background service so your phone can start agents. ${PHONE_START_OPT_OUT}`;
|
|
501
524
|
|
|
502
|
-
// src/setup/phone-check.ts
|
|
503
|
-
var planPhoneCheck = (context) => {
|
|
504
|
-
if (context.locked) return "locked";
|
|
505
|
-
if (context.skipPhone) return "skip-phone";
|
|
506
|
-
if (context.verify === "none") return "verify-none";
|
|
507
|
-
if (!context.stdoutIsTty) return "instructions";
|
|
508
|
-
if (context.paired) return "confirm-pairing";
|
|
509
|
-
if (context.connectMode === "app") return context.interactive && !context.macAppInstalled ? "wait-for-app" : "reuse-app";
|
|
510
|
-
return "connect";
|
|
511
|
-
};
|
|
512
|
-
|
|
513
525
|
// src/setup/wait-guidance.ts
|
|
514
526
|
var UNAVAILABLE = "Approval settings unavailable. Run pushary wait before stepping away.";
|
|
515
527
|
var isPolicyRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -756,15 +768,6 @@ var guardVsCodeGateHooks = (document, gateScript) => {
|
|
|
756
768
|
return { kind: "guarded", document: { ...document, hooks: guarded } };
|
|
757
769
|
};
|
|
758
770
|
|
|
759
|
-
// src/setup/pairing-computer.ts
|
|
760
|
-
var LOCAL_NETWORK_SUFFIX = /\.local$/i;
|
|
761
|
-
var computerNameOfHost = (host) => host.replace(LOCAL_NETWORK_SUFFIX, "").trim() || null;
|
|
762
|
-
var pairingComputerOf = (host, platform, detectedAgents) => ({
|
|
763
|
-
computerName: computerNameOfHost(host),
|
|
764
|
-
os: computerOsOfPlatform(platform),
|
|
765
|
-
agents: detectedAgents.filter(isComputerAgent)
|
|
766
|
-
});
|
|
767
|
-
|
|
768
771
|
// bin/pushary-setup.ts
|
|
769
772
|
var CLAUDE_SETTINGS = claudeSettings();
|
|
770
773
|
var CLAUDE_JSON = claudeJson();
|
|
@@ -1107,6 +1110,47 @@ var setupHermes = async (_apiKey, context) => {
|
|
|
1107
1110
|
await offerHermesShellGate(context.hermesShellGate, receipts);
|
|
1108
1111
|
return hermesInspectionIsWired(outcome.inspection) ? "verified" : "configured";
|
|
1109
1112
|
};
|
|
1113
|
+
var openClawInspectionIsWired = (inspection) => inspection.kind === "inspected" && isOpenClawWired(inspection.state);
|
|
1114
|
+
var reportOpenClawInstall = (outcome) => {
|
|
1115
|
+
const { state } = outcome.inspection;
|
|
1116
|
+
console.log(` ${isOpenClawWired(state) ? check : yellow("!")} ${describeOpenClawState(state)}`);
|
|
1117
|
+
console.log();
|
|
1118
|
+
console.log(` ${dim("What this configured:")}`);
|
|
1119
|
+
console.log(` ${dim("\u2022")} Plugin ${outcome.version} from this CLI, installed from ${shortenHome(openClawPluginFolder())}`);
|
|
1120
|
+
console.log(` ${dim("\u2022")} Approvals: every exec call, and process input to a running session, waits for your yes in Pushary for up to about five minutes`);
|
|
1121
|
+
console.log(` ${dim("\u2022")} A no, no answer, a cancelled call or an unreachable server blocks the call`);
|
|
1122
|
+
console.log(` ${dim("\u2022")} More tools: add them to plugins.entries.pushary.config.gatedTools`);
|
|
1123
|
+
console.log(` ${dim(OPENCLAW_RESTART_NOTE)}`);
|
|
1124
|
+
if (!isOpenClawWired(state)) noteManual(`OpenClaw: ${describeOpenClawState(state)}`);
|
|
1125
|
+
};
|
|
1126
|
+
var setupOpenClaw = async (_apiKey) => {
|
|
1127
|
+
console.log(`
|
|
1128
|
+
${bold("Setting up OpenClaw")}
|
|
1129
|
+
`);
|
|
1130
|
+
if (!findOpenClawLauncher()) {
|
|
1131
|
+
console.log(` ${yellow("!")} OpenClaw CLI not found. Skipping.`);
|
|
1132
|
+
console.log(` ${dim("Install OpenClaw and re-run setup to configure.")}`);
|
|
1133
|
+
return "skipped";
|
|
1134
|
+
}
|
|
1135
|
+
const outcomes = [];
|
|
1136
|
+
await spinner("Installing the Pushary plugin into OpenClaw", async () => {
|
|
1137
|
+
outcomes.push(await installOpenClawPlugin({ files: openClawFilesNow() }));
|
|
1138
|
+
});
|
|
1139
|
+
const outcome = outcomes[0] ?? { kind: "no_launcher" };
|
|
1140
|
+
if (outcome.kind === "no_launcher") {
|
|
1141
|
+
console.log(` ${yellow("!")} OpenClaw CLI not found. Skipping.`);
|
|
1142
|
+
return "skipped";
|
|
1143
|
+
}
|
|
1144
|
+
if (outcome.kind === "failed") {
|
|
1145
|
+
const message = describeOpenClawInstallFailure(outcome.reason, outcome.detail);
|
|
1146
|
+
console.log(` ${yellow("!")} ${message}`);
|
|
1147
|
+
noteManual(message);
|
|
1148
|
+
return "skipped";
|
|
1149
|
+
}
|
|
1150
|
+
reportOpenClawInstall(outcome);
|
|
1151
|
+
const { state } = outcome.inspection;
|
|
1152
|
+
return state.kind === "wired" && state.gateVerified ? "verified" : "configured";
|
|
1153
|
+
};
|
|
1110
1154
|
var CODEX_HOOKS_JSON = join4(CODEX_HOME, "hooks.json");
|
|
1111
1155
|
var CODEX_HOOKS_MIN_VERSION = [0, 122, 0];
|
|
1112
1156
|
var codexOnPath = () => {
|
|
@@ -1624,7 +1668,6 @@ var saveApiKey = async (apiKey, origin, controlMode, transcriptSync, replacedKey
|
|
|
1624
1668
|
console.log(` ${yellow("!")} ${PUSHARY_CONFIG_FILE} did not parse. Saved a copy at ${dim(result.configBackupPath)}`);
|
|
1625
1669
|
}
|
|
1626
1670
|
const rc = result.rc;
|
|
1627
|
-
const keyStep = manualKeyStepFor(rc.kind, process.platform);
|
|
1628
1671
|
const savedInConfig = keySavedInConfigLine(result.configPath);
|
|
1629
1672
|
switch (rc.kind) {
|
|
1630
1673
|
case "updated":
|
|
@@ -1632,20 +1675,11 @@ var saveApiKey = async (apiKey, origin, controlMode, transcriptSync, replacedKey
|
|
|
1632
1675
|
break;
|
|
1633
1676
|
case "declined":
|
|
1634
1677
|
console.log(` ${yellow("!")} ${rc.path}:${rc.declinedLine} already sets ${cyan("PUSHARY_API_KEY")} in a form Pushary did not write.`);
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
console.log(` ${cyan(exportLine(apiKey))}`);
|
|
1638
|
-
} else {
|
|
1639
|
-
console.log(` ${dim(`It was left alone, and it will shadow the new key in new shells. Remove it. ${savedInConfig}`)}`);
|
|
1640
|
-
}
|
|
1678
|
+
console.log(` ${dim(`That line can override your saved key. Delete it, or set it to the same key. ${savedInConfig}`)}`);
|
|
1679
|
+
console.log(` ${dim("Then run unset PUSHARY_API_KEY, or open a new terminal.")}`);
|
|
1641
1680
|
break;
|
|
1642
1681
|
case "unavailable":
|
|
1643
|
-
|
|
1644
|
-
console.log(` ${yellow("!")} Could not update ${rc.path}${rc.detail ? dim(` (${rc.detail})`) : ""}. Add this line yourself:`);
|
|
1645
|
-
console.log(` ${cyan(exportLine(apiKey))}`);
|
|
1646
|
-
} else {
|
|
1647
|
-
console.log(` ${yellow("!")} Could not update ${rc.path}${rc.detail ? dim(` (${rc.detail})`) : ""}. ${savedInConfig}`);
|
|
1648
|
-
}
|
|
1682
|
+
console.log(` ${yellow("!")} Could not update ${rc.path}${rc.detail ? dim(` (${rc.detail})`) : ""}. ${savedInConfig}`);
|
|
1649
1683
|
break;
|
|
1650
1684
|
case "no-rc":
|
|
1651
1685
|
console.log(` ${dim(savedInConfig)}`);
|
|
@@ -1767,7 +1801,7 @@ var setupCline = async (apiKey) => {
|
|
|
1767
1801
|
noteManual(CLINE_RELOAD_STEP);
|
|
1768
1802
|
return "configured";
|
|
1769
1803
|
};
|
|
1770
|
-
var setupCustom = async (
|
|
1804
|
+
var setupCustom = async (_apiKey, context) => {
|
|
1771
1805
|
console.log(`
|
|
1772
1806
|
${bold("Connect any other agent (MCP or HTTP)")}
|
|
1773
1807
|
`);
|
|
@@ -1775,9 +1809,6 @@ var setupCustom = async (apiKey, context) => {
|
|
|
1775
1809
|
const wroteExport = ["written", "updated", "unchanged"].includes(rcKind);
|
|
1776
1810
|
if (wroteExport) {
|
|
1777
1811
|
console.log(` ${dim("Your key is saved as")} ${cyan("$PUSHARY_API_KEY")} ${dim("in your shell profile.")}`);
|
|
1778
|
-
} else if (manualKeyStepFor(rcKind, process.platform) === "paste-export") {
|
|
1779
|
-
console.log(` ${dim("Add this to your shell profile so")} ${cyan("$PUSHARY_API_KEY")} ${dim("resolves:")}`);
|
|
1780
|
-
console.log(` ${cyan(exportLine(apiKey))}`);
|
|
1781
1812
|
} else {
|
|
1782
1813
|
console.log(` ${dim(`Use the key saved in ${PUSHARY_CONFIG_FILE} wherever`)} ${cyan("$PUSHARY_API_KEY")} ${dim("appears below.")}`);
|
|
1783
1814
|
}
|
|
@@ -1969,6 +2000,8 @@ var agentIsWired = async (agent) => {
|
|
|
1969
2000
|
return clineWired();
|
|
1970
2001
|
case "hermes":
|
|
1971
2002
|
return hermesInspectionIsWired(await inspectHermesWiring());
|
|
2003
|
+
case "openclaw":
|
|
2004
|
+
return openClawInspectionIsWired(await inspectOpenClawWiring(openClawFilesNow()));
|
|
1972
2005
|
default: {
|
|
1973
2006
|
const profile = hookCompatibleProfile(agent);
|
|
1974
2007
|
if (!profile) return true;
|
|
@@ -2095,6 +2128,7 @@ var AGENT_SETUP = {
|
|
|
2095
2128
|
codex: setupCodex,
|
|
2096
2129
|
gemini_cli: setupGemini,
|
|
2097
2130
|
hermes: setupHermes,
|
|
2131
|
+
openclaw: setupOpenClaw,
|
|
2098
2132
|
cursor: setupCursor,
|
|
2099
2133
|
vscode: setupVsCode,
|
|
2100
2134
|
opencode: setupOpenCode,
|
|
@@ -2173,9 +2207,9 @@ var verifyKeyOrExit = async (apiKey, options, precomputed) => {
|
|
|
2173
2207
|
}
|
|
2174
2208
|
return result;
|
|
2175
2209
|
};
|
|
2176
|
-
var printPairingEscape = () => {
|
|
2210
|
+
var printPairingEscape = (lines) => {
|
|
2177
2211
|
console.log();
|
|
2178
|
-
for (const line of
|
|
2212
|
+
for (const line of lines) console.log(line === "" ? "" : ` ${line}`);
|
|
2179
2213
|
console.log();
|
|
2180
2214
|
};
|
|
2181
2215
|
var usableStoredKey = async (apiKey) => {
|
|
@@ -2201,6 +2235,7 @@ var AGENT_NAMES = {
|
|
|
2201
2235
|
codex: "Codex",
|
|
2202
2236
|
gemini_cli: "Gemini CLI",
|
|
2203
2237
|
hermes: "Hermes",
|
|
2238
|
+
openclaw: "OpenClaw",
|
|
2204
2239
|
cursor: "Cursor",
|
|
2205
2240
|
vscode: "VS Code",
|
|
2206
2241
|
opencode: "OpenCode",
|
|
@@ -2214,6 +2249,7 @@ var AGENT_CAPABILITIES = {
|
|
|
2214
2249
|
codex: "MCP + native hooks + auto-allowed tools",
|
|
2215
2250
|
gemini_cli: "MCP + native hooks + auto-allowed tools",
|
|
2216
2251
|
hermes: "native plugin + auto-error notifications",
|
|
2252
|
+
openclaw: "native plugin + exec approval gate",
|
|
2217
2253
|
cursor: "plugin + permission gate",
|
|
2218
2254
|
vscode: "agent plugin + permission gate",
|
|
2219
2255
|
opencode: "generated plugin + permission gate",
|
|
@@ -2264,9 +2300,7 @@ var detectAgents = () => {
|
|
|
2264
2300
|
}
|
|
2265
2301
|
return map;
|
|
2266
2302
|
};
|
|
2267
|
-
var
|
|
2268
|
-
var canRunBrowserLogin = () => process.stdout.isTTY === true && !process.env.CI;
|
|
2269
|
-
var canShowPairingQr = () => !process.env.CI;
|
|
2303
|
+
var canRunBrowserLogin = () => process.stdout.isTTY === true && !isCI();
|
|
2270
2304
|
var resolveAgents = async (options, context = { paired: false }) => {
|
|
2271
2305
|
if (options.agents.kind === "none") return [];
|
|
2272
2306
|
if (options.agents.kind === "explicit") {
|
|
@@ -2464,14 +2498,15 @@ var main = async () => {
|
|
|
2464
2498
|
const computer = pairingComputerOf(hostname(), process.platform, detectedAgentChoices());
|
|
2465
2499
|
const paired = await connectViaAppPairing({
|
|
2466
2500
|
computer,
|
|
2501
|
+
command: "setup",
|
|
2467
2502
|
onCancelled: async (exitCode2) => {
|
|
2468
|
-
printPairingEscape();
|
|
2503
|
+
printPairingEscape(describeCancelledPairing(exitCode2, describePairingEscape()));
|
|
2469
2504
|
await reportSetupAbort("pairing-cancelled", exitCode2);
|
|
2470
2505
|
}
|
|
2471
2506
|
});
|
|
2472
2507
|
if (paired.kind === "failed") {
|
|
2473
|
-
if (pairingEscapeApplies(paired)) printPairingEscape();
|
|
2474
|
-
process.exit(await abortWith(
|
|
2508
|
+
if (pairingEscapeApplies(paired)) printPairingEscape(describePairingEscape());
|
|
2509
|
+
process.exit(await abortWith("pairing-failed", EXIT.NOT_CONFIGURED));
|
|
2475
2510
|
}
|
|
2476
2511
|
trimmedKey = paired.apiKey;
|
|
2477
2512
|
keyOrigin = "created_by_this_cli";
|
|
@@ -2486,11 +2521,12 @@ var main = async () => {
|
|
|
2486
2521
|
}
|
|
2487
2522
|
console.log();
|
|
2488
2523
|
} else if (!canRunBrowserLogin()) {
|
|
2524
|
+
const ciCause = ciMarker();
|
|
2489
2525
|
if (pairingRequested) {
|
|
2490
|
-
console.log(` ${yellow("!")} ${cyan("--connect app")} will not draw a pairing QR in CI.`);
|
|
2526
|
+
console.log(` ${yellow("!")} ${cyan("--connect app")} will not draw a pairing QR in CI${describeCiReason(ciCause)}.`);
|
|
2491
2527
|
console.log(` ${dim("Pass --key <pk_xxx.xxx> or --key-stdin here. Outside CI, setup pairs with no terminal needed.")}`);
|
|
2492
|
-
} else if (
|
|
2493
|
-
console.log(` ${yellow("!")} No API key, and setup does not pair in CI.`);
|
|
2528
|
+
} else if (ciCause !== null) {
|
|
2529
|
+
console.log(` ${yellow("!")} No API key, and setup does not pair in CI${describeCiReason(ciCause)}.`);
|
|
2494
2530
|
console.log(` ${dim("Pass --key <pk_xxx.xxx>, or --key-stdin, or export PUSHARY_API_KEY.")}`);
|
|
2495
2531
|
} else {
|
|
2496
2532
|
console.log(` ${yellow("!")} No API key, and nothing here can acquire one.`);
|
|
@@ -2709,6 +2745,7 @@ var main = async () => {
|
|
|
2709
2745
|
interactive: !options.nonInteractive,
|
|
2710
2746
|
macAppInstalled: appBridgeAvailable
|
|
2711
2747
|
});
|
|
2748
|
+
const connectInstructions = { showQr: canShowPairingQr(), channel: instructionsChannelFor(connectMode) };
|
|
2712
2749
|
switch (phoneCheck) {
|
|
2713
2750
|
case "unverified":
|
|
2714
2751
|
console.log();
|
|
@@ -2727,17 +2764,17 @@ var main = async () => {
|
|
|
2727
2764
|
console.log(` ${dim("Skipping the delivery check (--verify none). Nothing here proves an approval reaches you.")}`);
|
|
2728
2765
|
break;
|
|
2729
2766
|
case "instructions":
|
|
2730
|
-
phone = await printConnectInstructions(trimmedKey);
|
|
2767
|
+
phone = await printConnectInstructions(trimmedKey, connectInstructions);
|
|
2731
2768
|
break;
|
|
2732
2769
|
case "confirm-pairing":
|
|
2733
2770
|
phone = await confirmAppConnection(trimmedKey);
|
|
2734
2771
|
break;
|
|
2735
2772
|
case "reuse-app":
|
|
2736
|
-
phone = await printConnectInstructions(trimmedKey);
|
|
2773
|
+
phone = await printConnectInstructions(trimmedKey, connectInstructions);
|
|
2737
2774
|
break;
|
|
2738
2775
|
case "wait-for-app": {
|
|
2739
2776
|
const skip = enterKeyListener();
|
|
2740
|
-
phone = skip === null ? await printConnectInstructions(trimmedKey) : await waitForYourPhone(trimmedKey, { skip });
|
|
2777
|
+
phone = skip === null ? await printConnectInstructions(trimmedKey, connectInstructions) : await waitForYourPhone(trimmedKey, { skip });
|
|
2741
2778
|
break;
|
|
2742
2779
|
}
|
|
2743
2780
|
case "connect":
|
|
@@ -2953,7 +2990,8 @@ var main = async () => {
|
|
|
2953
2990
|
roundTripAnswered: roundTripWasAnswered(roundTrip),
|
|
2954
2991
|
roundTripAnswer: roundTripAnswerOf(roundTrip),
|
|
2955
2992
|
appPlatforms: phone?.appPlatforms,
|
|
2956
|
-
codexApprovals
|
|
2993
|
+
codexApprovals,
|
|
2994
|
+
phoneAwaitsNotifications: phone !== null && phoneAwaitsNotificationPermission(phone)
|
|
2957
2995
|
});
|
|
2958
2996
|
console.log(` ${closing.ok ? green(bold(closing.headline)) : yellow(bold(closing.headline))}`);
|
|
2959
2997
|
if (failures.length > 0) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exitOnHelpFlag
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6HO36P3A.js";
|
|
5
5
|
import {
|
|
6
6
|
readLedgerSummary
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-Q7GZKNMH.js";
|
|
8
8
|
import {
|
|
9
9
|
getApiKey
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-VPADWVYD.js";
|
|
11
11
|
import "../chunk-BG4HHB7E.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-TXXAQRX4.js";
|
|
13
13
|
import "../chunk-WIIMW5YO.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-O5ARO3JM.js";
|
|
15
15
|
import "../chunk-MLKGABMK.js";
|
|
16
16
|
|
|
17
17
|
// bin/pushary-stats.ts
|