@pushary/agent-hooks 1.9.144 → 1.9.147
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 +24 -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-ZV7TT25P.js → api-2KDVLXHT.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 +103 -44
- package/dist/bin/pushary-doctor.js +139 -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 +209 -89
- 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-LUVSHGLH.js → chunk-2EETRVCZ.js} +1 -1
- package/dist/{chunk-YESBU4VQ.js → chunk-2G54YLN3.js} +3 -3
- package/dist/{chunk-WGOTBZ23.js → chunk-2I6A34GJ.js} +15 -5
- package/dist/{chunk-WGT5LCIB.js → chunk-2QY2BD4T.js} +5 -5
- package/dist/{chunk-HGIW56MU.js → chunk-2RAIG6NF.js} +2 -2
- package/dist/{chunk-QLGLUUOP.js → chunk-2YNAQ5TX.js} +1 -1
- package/dist/{chunk-44WPMZGQ.js → chunk-37ZBJB2Q.js} +5 -5
- package/dist/{chunk-4EBJ4PTZ.js → chunk-3NMX4725.js} +1 -1
- package/dist/{chunk-E32SRYTE.js → chunk-3TTXOU6G.js} +3 -3
- package/dist/{chunk-GV3FDGQH.js → chunk-4P3ML7HP.js} +200 -59
- package/dist/{chunk-22CXL7YI.js → chunk-526XSNMS.js} +3 -3
- package/dist/{chunk-B4VIT5N3.js → chunk-57GVGSOQ.js} +1 -1
- package/dist/{chunk-6LALK6GI.js → chunk-5II3USXS.js} +2 -2
- package/dist/{chunk-WWCM6UL7.js → chunk-5K65H6OO.js} +1 -1
- package/dist/{chunk-56HFENZK.js → chunk-6C5QRJIH.js} +5 -5
- package/dist/{chunk-EOKUIOMT.js → chunk-6EPTMB7L.js} +4 -4
- package/dist/{chunk-C5LIS3XM.js → chunk-6JBX55K4.js} +38 -8
- package/dist/{chunk-23CGCD5L.js → chunk-6YVGY2ZX.js} +7 -7
- package/dist/{chunk-WC25Z4XS.js → chunk-72S6PF2I.js} +2 -2
- package/dist/{chunk-YY5YVMBA.js → chunk-7P32YU2M.js} +10 -74
- package/dist/{chunk-WTBFPSTR.js → chunk-7TVSWGAV.js} +8 -6
- package/dist/{chunk-S7WVJ6AR.js → chunk-7WDEJTNX.js} +4 -4
- package/dist/{chunk-AJQ4TTPJ.js → chunk-7XIJD7NL.js} +3 -3
- package/dist/{chunk-PYT4WXXR.js → chunk-A5MSVNFS.js} +10 -10
- package/dist/{chunk-FC2ENROR.js → chunk-ANLR5G2W.js} +4 -4
- package/dist/{chunk-7VMVMC4H.js → chunk-BEDAQAEN.js} +1 -1
- package/dist/{chunk-4JTZZXB3.js → chunk-BHGSNYG5.js} +3 -3
- package/dist/{chunk-5I3UQEAX.js → chunk-BU2J4P7P.js} +3 -3
- package/dist/{chunk-EMODTMHE.js → chunk-BYVLAPCF.js} +1 -1
- package/dist/{chunk-5BTAIFVV.js → chunk-CSNG5NQR.js} +1 -1
- package/dist/{chunk-7QWH257P.js → chunk-D7ZWJYXB.js} +1 -1
- package/dist/{chunk-AGUL2JDK.js → chunk-ELRZO6A7.js} +3 -3
- package/dist/{chunk-Z2WQD2W6.js → chunk-EV54ZQ5J.js} +4 -4
- package/dist/{chunk-5TZYAMGW.js → chunk-FHBJJOMF.js} +1 -1
- package/dist/{chunk-74QCFZKV.js → chunk-FKGWP4MF.js} +8 -7
- package/dist/{chunk-MCI6KYN7.js → chunk-FMAIUTVU.js} +3 -3
- package/dist/{chunk-WTULK73V.js → chunk-FWCECQTY.js} +2 -2
- package/dist/{chunk-ZVJIJPQY.js → chunk-GGCUXNZN.js} +1 -1
- package/dist/{chunk-VP4T5352.js → chunk-GIWI5IHB.js} +6 -6
- package/dist/{chunk-RPXSGCRG.js → chunk-GJV5RVUU.js} +98 -47
- package/dist/chunk-GPAMD5JG.js +157 -0
- package/dist/{chunk-ZGYGKKXF.js → chunk-I72UU75H.js} +16 -16
- package/dist/{chunk-CV4EIXPV.js → chunk-ISM6XF3V.js} +494 -15
- package/dist/{chunk-HNFYZPNJ.js → chunk-ISOP4ENY.js} +17 -5
- package/dist/{chunk-R7FSMUHG.js → chunk-JDIKCM2N.js} +6 -5
- package/dist/{chunk-BHNX7XNO.js → chunk-KDJIDRJS.js} +3 -3
- package/dist/{chunk-DDJHPMBJ.js → chunk-KFL7OWLI.js} +1 -1
- package/dist/{chunk-5AXDNDUJ.js → chunk-KH27X5CW.js} +2 -2
- package/dist/{chunk-BHKODM4L.js → chunk-KXMIDDUN.js} +2 -2
- package/dist/{chunk-3KRGT5AZ.js → chunk-L2M6D2N4.js} +67 -4
- package/dist/{chunk-KEBI7NYU.js → chunk-L6BTSIKF.js} +4 -4
- package/dist/{chunk-YFK3MJGZ.js → chunk-LO52V6WG.js} +2 -2
- package/dist/{chunk-LVOHE66T.js → chunk-MI7GHNTO.js} +5 -5
- package/dist/{chunk-4524ZR2U.js → chunk-MYJJNLT2.js} +2 -2
- package/dist/{chunk-CZOMD2IW.js → chunk-NAGF5ZJ2.js} +8 -8
- package/dist/{chunk-53KLGXFL.js → chunk-NMUEUDTT.js} +4 -3
- package/dist/{chunk-C6SKS6IU.js → chunk-OSYULPJO.js} +23 -12
- package/dist/{chunk-F37YD4YE.js → chunk-OXDKZYBO.js} +1 -1
- package/dist/chunk-OYIN77HO.js +72 -0
- package/dist/{chunk-XLMJEEW3.js → chunk-P6W2V2AP.js} +2 -2
- package/dist/{chunk-ZKKZEVNI.js → chunk-Q3JW44JV.js} +2 -2
- package/dist/{chunk-EY5CVFDL.js → chunk-Q6POCQOV.js} +12 -12
- package/dist/{chunk-P5QXH5QI.js → chunk-Q767Y4LY.js} +1 -1
- package/dist/{chunk-UK5DKLZY.js → chunk-QGKFDSEO.js} +8 -8
- package/dist/{chunk-YD376BLV.js → chunk-RZGR4G5G.js} +5 -5
- package/dist/{chunk-OZG6CGYW.js → chunk-RZJHCHEA.js} +6 -6
- package/dist/{chunk-H33CFJOF.js → chunk-T274HRSR.js} +4 -4
- package/dist/chunk-T2CR5REM.js +176 -0
- package/dist/{chunk-QESEICW4.js → chunk-T3TVMMXJ.js} +1 -1
- package/dist/{chunk-44BLJJPH.js → chunk-TZ7CBPCD.js} +2 -2
- package/dist/{chunk-YCU7Y77H.js → chunk-UGPNLU4O.js} +1 -1
- package/dist/{chunk-BE5LO5VW.js → chunk-UR55VBLY.js} +2 -2
- package/dist/{chunk-EC7VHNHE.js → chunk-WLKW2TF7.js} +19 -12
- package/dist/{chunk-CWWO3JTD.js → chunk-WNV3X2VU.js} +3 -3
- package/dist/{chunk-HIIXYZYV.js → chunk-XQOBM3E6.js} +3 -3
- package/dist/{chunk-JK7DTAQH.js → chunk-YICO6HEW.js} +5 -5
- package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
- package/dist/chunk-YOVJOHM5.js +36 -0
- package/dist/{chunk-LS6BU5RM.js → chunk-ZKAQWXGO.js} +1 -1
- package/dist/{codex-app-cards-switch-5PWB62W3.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
- package/dist/{codex-card-routing-I6YOJBTT.js → codex-card-routing-JTS75442.js} +2 -2
- package/dist/{codex-desktop-launch-BCPUKOCV.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
- package/dist/{codex-session-launch-4ZUBROFZ.js → codex-session-launch-QYZZGVSQ.js} +20 -20
- package/dist/{config-2CHOLFNB.js → config-5ATI6KPI.js} +3 -3
- package/dist/{global-upgrade-4IKWJHLE.js → global-upgrade-K4HWVUMI.js} +9 -9
- package/dist/{identity-I2VWLZAQ.js → identity-V2GZCPJV.js} +4 -4
- package/dist/{live-capabilities-4CLCROSP.js → live-capabilities-PD62FO4K.js} +4 -4
- package/dist/{paths-YMHQKLFX.js → paths-WPJEIHUE.js} +7 -3
- package/dist/{reapply-FBQ7VR6L.js → reapply-ZEWMGDXT.js} +30 -29
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-7ONNXM6V.js → upgrade-lock-7OR6V323.js} +4 -4
- package/dist/{usage-GWUTCS5A.js → usage-GWZ3UGZG.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-I6HXZIER.js +0 -31
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
runBrowserLogin,
|
|
23
23
|
switchBackToTheShellKeyLine,
|
|
24
24
|
wrongAccountHintPlacement
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-T274HRSR.js";
|
|
26
26
|
import {
|
|
27
27
|
INSTALL_NODE_STEP,
|
|
28
28
|
NPM_FILE_IN_USE_STEP,
|
|
@@ -36,23 +36,33 @@ import {
|
|
|
36
36
|
renderCommandSurface,
|
|
37
37
|
teamOfferLines,
|
|
38
38
|
unverifiedKeyClosingReason
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-7TVSWGAV.js";
|
|
40
|
+
import {
|
|
41
|
+
instructionsChannelFor,
|
|
42
|
+
pairingComputerOf,
|
|
43
|
+
planPhoneCheck
|
|
44
|
+
} from "../chunk-YOVJOHM5.js";
|
|
40
45
|
import {
|
|
41
46
|
coworkOutput,
|
|
42
47
|
coworkSelection
|
|
43
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-BHGSNYG5.js";
|
|
44
49
|
import "../chunk-PUZZELE6.js";
|
|
45
50
|
import {
|
|
46
51
|
readCodexHooksOnDisk
|
|
47
|
-
} from "../chunk-
|
|
48
|
-
import "../chunk-
|
|
52
|
+
} from "../chunk-QGKFDSEO.js";
|
|
53
|
+
import "../chunk-TZ7CBPCD.js";
|
|
49
54
|
import {
|
|
50
55
|
clearDeclinedAgent,
|
|
51
56
|
declinedAgentForSetupChoice
|
|
52
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-P6W2V2AP.js";
|
|
53
58
|
import {
|
|
59
|
+
OPENCLAW_RESTART_NOTE,
|
|
60
|
+
describeOpenClawInstallFailure,
|
|
61
|
+
describeOpenClawState,
|
|
62
|
+
gateHermesShell,
|
|
63
|
+
readHermesShellGate,
|
|
54
64
|
saveSetupFailure
|
|
55
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-GPAMD5JG.js";
|
|
56
66
|
import {
|
|
57
67
|
CODEX_NEEDS_A_NEWER_VERSION,
|
|
58
68
|
CODEX_SETTINGS_STOP_A_HOOK,
|
|
@@ -61,25 +71,31 @@ import {
|
|
|
61
71
|
codexTrustOutcome,
|
|
62
72
|
describeCodexTrustConfirmation,
|
|
63
73
|
describeHermesInstallFailure,
|
|
74
|
+
describeHermesShellGate,
|
|
75
|
+
describeHermesShellGateFailure,
|
|
64
76
|
describeHermesState,
|
|
77
|
+
hermesGateShellCommand,
|
|
65
78
|
needsCodexTrustStep
|
|
66
|
-
} from "../chunk-
|
|
79
|
+
} from "../chunk-L2M6D2N4.js";
|
|
67
80
|
import {
|
|
68
81
|
describeWaitLadder
|
|
69
82
|
} from "../chunk-CVWG2N3Y.js";
|
|
70
83
|
import {
|
|
71
84
|
writeJsonError,
|
|
72
85
|
writeStdoutFully
|
|
73
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-2YNAQ5TX.js";
|
|
74
87
|
import {
|
|
88
|
+
canShowPairingQr,
|
|
75
89
|
confirmAppConnection,
|
|
76
90
|
connectDevice,
|
|
77
91
|
connectViaAppPairing,
|
|
92
|
+
describeCancelledPairing,
|
|
78
93
|
describePairingEscape,
|
|
79
94
|
pairingEscapeApplies,
|
|
95
|
+
phoneAwaitsNotificationPermission,
|
|
80
96
|
printConnectInstructions,
|
|
81
97
|
waitForYourPhone
|
|
82
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-4P3ML7HP.js";
|
|
83
99
|
import "../chunk-3EGEA4KH.js";
|
|
84
100
|
import {
|
|
85
101
|
SETUP_AGENT_NAME,
|
|
@@ -88,7 +104,7 @@ import {
|
|
|
88
104
|
roundTripEvidence,
|
|
89
105
|
roundTripWasAnswered,
|
|
90
106
|
verifyRoundTrip
|
|
91
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-WLKW2TF7.js";
|
|
92
108
|
import {
|
|
93
109
|
keepLinuxDaemonAfterLogout,
|
|
94
110
|
lingerReportOf
|
|
@@ -96,10 +112,10 @@ import {
|
|
|
96
112
|
import {
|
|
97
113
|
readManagedControlEvidence,
|
|
98
114
|
waitForMachineReadiness
|
|
99
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-YICO6HEW.js";
|
|
100
116
|
import {
|
|
101
117
|
ensureCodexTrustsPusharyHooks
|
|
102
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-5II3USXS.js";
|
|
103
119
|
import {
|
|
104
120
|
describeSetupSideEffects,
|
|
105
121
|
installAgentSkill,
|
|
@@ -107,7 +123,7 @@ import {
|
|
|
107
123
|
} from "../chunk-XR27HPYC.js";
|
|
108
124
|
import {
|
|
109
125
|
codexEngineBehindLauncher
|
|
110
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-7XIJD7NL.js";
|
|
111
127
|
import "../chunk-XCEN33UP.js";
|
|
112
128
|
import {
|
|
113
129
|
CURSOR_PLUGIN_BACKUP_INFIX,
|
|
@@ -117,39 +133,52 @@ import {
|
|
|
117
133
|
soleGateFile,
|
|
118
134
|
soleGateReceipt,
|
|
119
135
|
soleGateReceiptFile
|
|
120
|
-
} from "../chunk-
|
|
136
|
+
} from "../chunk-EV54ZQ5J.js";
|
|
121
137
|
import {
|
|
122
138
|
describeDetection,
|
|
123
139
|
detectAllAgents,
|
|
140
|
+
detectedAgentChoices,
|
|
124
141
|
isDetected,
|
|
125
142
|
pluginLocationSnippet,
|
|
126
143
|
registerPluginLocation,
|
|
127
144
|
shortenHome,
|
|
128
145
|
vscodeSettingsTargets
|
|
129
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-ISOP4ENY.js";
|
|
147
|
+
import "../chunk-OYIN77HO.js";
|
|
130
148
|
import {
|
|
131
149
|
mcpServerBearer,
|
|
132
150
|
readMacAppAgentKey
|
|
133
|
-
} from "../chunk-
|
|
151
|
+
} from "../chunk-6EPTMB7L.js";
|
|
134
152
|
import {
|
|
135
153
|
keyScopeOf
|
|
136
|
-
} from "../chunk-
|
|
154
|
+
} from "../chunk-LO52V6WG.js";
|
|
137
155
|
import {
|
|
138
156
|
HERMES_CONFIG_FILE,
|
|
157
|
+
HERMES_GATE_TOOLS_KEY,
|
|
158
|
+
HERMES_SHELL_TOOL,
|
|
139
159
|
defaultHermesHome,
|
|
140
160
|
findHermesLauncher,
|
|
141
161
|
hermesPluginDirectory,
|
|
142
162
|
hermesReceiptPaths,
|
|
163
|
+
hermesShellGateChoice,
|
|
143
164
|
inspectHermesWiring,
|
|
165
|
+
inspectOpenClawWiring,
|
|
144
166
|
installHermesPlugin,
|
|
167
|
+
installOpenClawPlugin,
|
|
145
168
|
isHermesWired,
|
|
169
|
+
openClawFilesNow,
|
|
146
170
|
routesHermesQuestions,
|
|
147
171
|
runsAnOlderPlugin,
|
|
148
172
|
shippedHermesPlugin
|
|
149
|
-
} from "../chunk-
|
|
173
|
+
} from "../chunk-ISM6XF3V.js";
|
|
150
174
|
import {
|
|
151
175
|
setHumanStream
|
|
152
176
|
} from "../chunk-QCGNGEGE.js";
|
|
177
|
+
import {
|
|
178
|
+
findOpenClawLauncher,
|
|
179
|
+
isOpenClawWired,
|
|
180
|
+
openClawPathsNow
|
|
181
|
+
} from "../chunk-T2CR5REM.js";
|
|
153
182
|
import {
|
|
154
183
|
FX_PICKS_UP_CONFIGURATION,
|
|
155
184
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -166,7 +195,7 @@ import {
|
|
|
166
195
|
readFxProfileForSetup,
|
|
167
196
|
withFxPusharyServer,
|
|
168
197
|
writeFxProfile
|
|
169
|
-
} from "../chunk-
|
|
198
|
+
} from "../chunk-RZGR4G5G.js";
|
|
170
199
|
import {
|
|
171
200
|
AgentConfigError,
|
|
172
201
|
afterAgentFailureNote,
|
|
@@ -179,10 +208,10 @@ import {
|
|
|
179
208
|
retryAgentCommand,
|
|
180
209
|
writeSetupConfigFile,
|
|
181
210
|
writeSetupConfigJson
|
|
182
|
-
} from "../chunk-
|
|
211
|
+
} from "../chunk-FMAIUTVU.js";
|
|
183
212
|
import {
|
|
184
213
|
MCP_BRIDGE_BINARY
|
|
185
|
-
} from "../chunk-
|
|
214
|
+
} from "../chunk-KDJIDRJS.js";
|
|
186
215
|
import {
|
|
187
216
|
OPENCODE_HOOK_BINARY,
|
|
188
217
|
addOpenCodeMcpServer,
|
|
@@ -200,12 +229,15 @@ import {
|
|
|
200
229
|
openCodePluginFile,
|
|
201
230
|
openCodeWired,
|
|
202
231
|
withOpenCodeAskRules
|
|
203
|
-
} from "../chunk-
|
|
232
|
+
} from "../chunk-MI7GHNTO.js";
|
|
204
233
|
import {
|
|
205
234
|
ansiPainter,
|
|
235
|
+
ciMarker,
|
|
206
236
|
createIo,
|
|
237
|
+
describeCiReason,
|
|
238
|
+
isCI,
|
|
207
239
|
useColor
|
|
208
|
-
} from "../chunk-
|
|
240
|
+
} from "../chunk-YM2T76UM.js";
|
|
209
241
|
import {
|
|
210
242
|
checkCodexInstall,
|
|
211
243
|
describeMissingControlPrerequisite,
|
|
@@ -216,16 +248,16 @@ import {
|
|
|
216
248
|
nodeCodexInstallProbe,
|
|
217
249
|
phoneStartIsRequired,
|
|
218
250
|
resolveControlPolicy
|
|
219
|
-
} from "../chunk-
|
|
251
|
+
} from "../chunk-ELRZO6A7.js";
|
|
220
252
|
import {
|
|
221
253
|
detectClaudeVersion
|
|
222
|
-
} from "../chunk-
|
|
254
|
+
} from "../chunk-UR55VBLY.js";
|
|
223
255
|
import "../chunk-CYTPQDQY.js";
|
|
224
256
|
import {
|
|
225
257
|
describeAutoUpdateAnnouncement,
|
|
226
258
|
takeAutoUpdateAnnouncement
|
|
227
|
-
} from "../chunk-
|
|
228
|
-
import "../chunk-
|
|
259
|
+
} from "../chunk-MYJJNLT2.js";
|
|
260
|
+
import "../chunk-7WDEJTNX.js";
|
|
229
261
|
import "../chunk-VAE5JBR5.js";
|
|
230
262
|
import "../chunk-G66WIAST.js";
|
|
231
263
|
import {
|
|
@@ -241,7 +273,7 @@ import {
|
|
|
241
273
|
compatibleRecord,
|
|
242
274
|
compatibleTargetPaths,
|
|
243
275
|
hasCompatibleHooks
|
|
244
|
-
} from "../chunk-
|
|
276
|
+
} from "../chunk-2I6A34GJ.js";
|
|
245
277
|
import {
|
|
246
278
|
DAEMON_COLD_START_TIMEOUT_MS,
|
|
247
279
|
clearDaemonNeedsLogin,
|
|
@@ -260,7 +292,7 @@ import {
|
|
|
260
292
|
stopDaemonService,
|
|
261
293
|
versionManagerOf,
|
|
262
294
|
waitForDaemonRemoteProof
|
|
263
|
-
} from "../chunk-
|
|
295
|
+
} from "../chunk-GIWI5IHB.js";
|
|
264
296
|
import {
|
|
265
297
|
GEMINI_HOOK_BINARY,
|
|
266
298
|
GEMINI_HOOK_EVENTS,
|
|
@@ -276,38 +308,38 @@ import {
|
|
|
276
308
|
geminiWired,
|
|
277
309
|
planHooks,
|
|
278
310
|
pusharyHookExecutable
|
|
279
|
-
} from "../chunk-
|
|
311
|
+
} from "../chunk-L6BTSIKF.js";
|
|
280
312
|
import {
|
|
281
313
|
reportEvent
|
|
282
|
-
} from "../chunk-
|
|
283
|
-
import "../chunk-
|
|
314
|
+
} from "../chunk-Q6POCQOV.js";
|
|
315
|
+
import "../chunk-D7ZWJYXB.js";
|
|
284
316
|
import {
|
|
285
317
|
AGENT_CHOICES,
|
|
286
318
|
effectiveAgentSelection,
|
|
287
319
|
effectiveControlMode,
|
|
288
320
|
effectiveVerify,
|
|
289
321
|
parseSetupOptions
|
|
290
|
-
} from "../chunk-
|
|
291
|
-
import "../chunk-
|
|
322
|
+
} from "../chunk-NMUEUDTT.js";
|
|
323
|
+
import "../chunk-OXDKZYBO.js";
|
|
292
324
|
import "../chunk-YPY4YCIZ.js";
|
|
293
325
|
import "../chunk-XMSDA5WA.js";
|
|
294
326
|
import {
|
|
295
327
|
transcriptPreferenceForSetup
|
|
296
|
-
} from "../chunk-
|
|
297
|
-
import "../chunk-
|
|
298
|
-
import "../chunk-
|
|
328
|
+
} from "../chunk-BEDAQAEN.js";
|
|
329
|
+
import "../chunk-BYVLAPCF.js";
|
|
330
|
+
import "../chunk-FKGWP4MF.js";
|
|
299
331
|
import "../chunk-POFBE6ZY.js";
|
|
300
|
-
import "../chunk-
|
|
332
|
+
import "../chunk-2QY2BD4T.js";
|
|
301
333
|
import {
|
|
302
334
|
checkApiKey,
|
|
303
335
|
describeKeyCheck,
|
|
304
336
|
samePusharyAccount
|
|
305
|
-
} from "../chunk-
|
|
306
|
-
import "../chunk-
|
|
337
|
+
} from "../chunk-3TTXOU6G.js";
|
|
338
|
+
import "../chunk-2G54YLN3.js";
|
|
307
339
|
import "../chunk-H6CL3T2S.js";
|
|
308
|
-
import "../chunk-
|
|
309
|
-
import "../chunk-
|
|
310
|
-
import "../chunk-
|
|
340
|
+
import "../chunk-GGCUXNZN.js";
|
|
341
|
+
import "../chunk-UGPNLU4O.js";
|
|
342
|
+
import "../chunk-CSNG5NQR.js";
|
|
311
343
|
import {
|
|
312
344
|
UsageError
|
|
313
345
|
} from "../chunk-YU2EUD7O.js";
|
|
@@ -327,8 +359,8 @@ import {
|
|
|
327
359
|
resolveShellRc,
|
|
328
360
|
shellKeyWasReplaced,
|
|
329
361
|
writeKey
|
|
330
|
-
} from "../chunk-
|
|
331
|
-
import "../chunk-
|
|
362
|
+
} from "../chunk-XQOBM3E6.js";
|
|
363
|
+
import "../chunk-KXMIDDUN.js";
|
|
332
364
|
import {
|
|
333
365
|
CLINE_AUTO_APPROVE_STEP,
|
|
334
366
|
CLINE_RELOAD_STEP,
|
|
@@ -379,6 +411,7 @@ import {
|
|
|
379
411
|
guardNodeScript,
|
|
380
412
|
hookTakeoverReceipt,
|
|
381
413
|
isClaudeMcpSnapshot,
|
|
414
|
+
openClawPluginFolder,
|
|
382
415
|
pusharyConfigFile,
|
|
383
416
|
readCodexMcpAuth,
|
|
384
417
|
renderAgentInstructions,
|
|
@@ -387,7 +420,7 @@ import {
|
|
|
387
420
|
vscodePluginDir,
|
|
388
421
|
vscodePluginMcp,
|
|
389
422
|
writeInstructionBlock
|
|
390
|
-
} from "../chunk-
|
|
423
|
+
} from "../chunk-GJV5RVUU.js";
|
|
391
424
|
import {
|
|
392
425
|
NpmMissingError,
|
|
393
426
|
compareVersion,
|
|
@@ -398,10 +431,10 @@ import {
|
|
|
398
431
|
plannedGlobalPackage,
|
|
399
432
|
resolveGlobalBinDir,
|
|
400
433
|
resolveGlobalBinary
|
|
401
|
-
} from "../chunk-
|
|
434
|
+
} from "../chunk-BU2J4P7P.js";
|
|
402
435
|
import {
|
|
403
436
|
getBaseUrl
|
|
404
|
-
} from "../chunk-
|
|
437
|
+
} from "../chunk-3NMX4725.js";
|
|
405
438
|
import {
|
|
406
439
|
EXIT
|
|
407
440
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -412,7 +445,7 @@ import {
|
|
|
412
445
|
import {
|
|
413
446
|
NPX_LATEST_COMMAND,
|
|
414
447
|
renderCommandHelp
|
|
415
|
-
} from "../chunk-
|
|
448
|
+
} from "../chunk-JDIKCM2N.js";
|
|
416
449
|
import {
|
|
417
450
|
getPackageVersion,
|
|
418
451
|
isNewerVersion,
|
|
@@ -427,11 +460,10 @@ import {
|
|
|
427
460
|
computerOsOfPlatform,
|
|
428
461
|
hookCompatibleProfile,
|
|
429
462
|
isApprovalMode,
|
|
430
|
-
isComputerAgent,
|
|
431
463
|
isRecord,
|
|
432
464
|
isTimeoutAction,
|
|
433
465
|
isValidApiKey
|
|
434
|
-
} from "../chunk-
|
|
466
|
+
} from "../chunk-6JBX55K4.js";
|
|
435
467
|
import {
|
|
436
468
|
CODEX_ENGINE_DIRECTORY,
|
|
437
469
|
CODEX_ENGINE_ENTRYPOINT,
|
|
@@ -459,6 +491,7 @@ var agentSetupTargets = (exists) => ({
|
|
|
459
491
|
codex: [join(codexHome(), "config.toml"), codexHooksJson(), join(codexSkillDir(), "SKILL.md"), codexAgentsMd()],
|
|
460
492
|
gemini_cli: [geminiSettings(), geminiMd()],
|
|
461
493
|
hermes: [hermesPluginDirectory(defaultHermesHome()), join(defaultHermesHome(), HERMES_CONFIG_FILE)],
|
|
494
|
+
openclaw: [openClawPluginFolder(), openClawPathsNow().configFile],
|
|
462
495
|
cursor: [join(cursorPluginDir(), "mcp.json"), cursorUserHooks()],
|
|
463
496
|
vscode: [vscodePluginMcp(), ...vscodeSettingsTargets(exists)],
|
|
464
497
|
opencode: [
|
|
@@ -491,17 +524,6 @@ var enterKeyListener = (input2 = process.stdin) => {
|
|
|
491
524
|
var PHONE_START_OPT_OUT = "Turn it off with --control off.";
|
|
492
525
|
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}`;
|
|
493
526
|
|
|
494
|
-
// src/setup/phone-check.ts
|
|
495
|
-
var planPhoneCheck = (context) => {
|
|
496
|
-
if (context.locked) return "locked";
|
|
497
|
-
if (context.skipPhone) return "skip-phone";
|
|
498
|
-
if (context.verify === "none") return "verify-none";
|
|
499
|
-
if (!context.stdoutIsTty) return "instructions";
|
|
500
|
-
if (context.paired) return "confirm-pairing";
|
|
501
|
-
if (context.connectMode === "app") return context.interactive && !context.macAppInstalled ? "wait-for-app" : "reuse-app";
|
|
502
|
-
return "connect";
|
|
503
|
-
};
|
|
504
|
-
|
|
505
527
|
// src/setup/wait-guidance.ts
|
|
506
528
|
var UNAVAILABLE = "Approval settings unavailable. Run pushary wait before stepping away.";
|
|
507
529
|
var isPolicyRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -748,15 +770,6 @@ var guardVsCodeGateHooks = (document, gateScript) => {
|
|
|
748
770
|
return { kind: "guarded", document: { ...document, hooks: guarded } };
|
|
749
771
|
};
|
|
750
772
|
|
|
751
|
-
// src/setup/pairing-computer.ts
|
|
752
|
-
var LOCAL_NETWORK_SUFFIX = /\.local$/i;
|
|
753
|
-
var computerNameOfHost = (host) => host.replace(LOCAL_NETWORK_SUFFIX, "").trim() || null;
|
|
754
|
-
var pairingComputerOf = (host, platform, detectedAgents) => ({
|
|
755
|
-
computerName: computerNameOfHost(host),
|
|
756
|
-
os: computerOsOfPlatform(platform),
|
|
757
|
-
agents: detectedAgents.filter(isComputerAgent)
|
|
758
|
-
});
|
|
759
|
-
|
|
760
773
|
// bin/pushary-setup.ts
|
|
761
774
|
var CLAUDE_SETTINGS = claudeSettings();
|
|
762
775
|
var CLAUDE_JSON = claudeJson();
|
|
@@ -1017,7 +1030,59 @@ var reportHermesInstall = (outcome, version) => {
|
|
|
1017
1030
|
}
|
|
1018
1031
|
};
|
|
1019
1032
|
var hermesInspectionIsWired = (inspection) => inspection.kind === "inspected" && isHermesWired(inspection.state);
|
|
1020
|
-
var
|
|
1033
|
+
var HERMES_SHELL_GATE_QUESTION = `Ask on your phone before every ${HERMES_SHELL_TOOL} command Hermes runs? That includes read-only ones like ls, so a busy agent asks often.`;
|
|
1034
|
+
var reportHermesShellGateOutcome = (outcome, receipts) => {
|
|
1035
|
+
switch (outcome.kind) {
|
|
1036
|
+
case "gated":
|
|
1037
|
+
console.log(` ${check} ${HERMES_GATE_TOOLS_KEY} is now ${bold(outcome.value)}. ${dim(`${NPX_LATEST_COMMAND} clean puts the old value back.`)}`);
|
|
1038
|
+
console.log(` ${yellow("!")} Restart Hermes so it reads the new setting: ${bold(HERMES_RESTART_COMMAND)}`);
|
|
1039
|
+
noteManual(`Restart Hermes so it gates ${HERMES_SHELL_TOOL} commands: ${HERMES_RESTART_COMMAND}`);
|
|
1040
|
+
return;
|
|
1041
|
+
case "already_gated":
|
|
1042
|
+
console.log(` ${check} ${HERMES_GATE_TOOLS_KEY} already includes ${HERMES_SHELL_TOOL}`);
|
|
1043
|
+
return;
|
|
1044
|
+
case "failed": {
|
|
1045
|
+
const message = describeHermesShellGateFailure(outcome.reason, shortenHome(receipts.receiptPath));
|
|
1046
|
+
console.log(` ${yellow("!")} ${message}`);
|
|
1047
|
+
noteManual(message);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
var reportHermesShellGateWithoutOffer = (state, report, choice) => {
|
|
1052
|
+
if (report.tone === "warn") {
|
|
1053
|
+
console.log();
|
|
1054
|
+
console.log(` ${yellow("!")} ${report.label}`);
|
|
1055
|
+
console.log(` ${dim(`${report.detail}. To fix it, ${report.fix}.`)}`);
|
|
1056
|
+
noteManual(`${report.label}: ${report.fix}`);
|
|
1057
|
+
return;
|
|
1058
|
+
}
|
|
1059
|
+
if (state.kind === "pushary_gates") {
|
|
1060
|
+
console.log(` ${check} ${report.label} ${dim(`(${report.detail})`)}`);
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
if (choice === "apply") console.log(` ${dim(`${report.label} (${report.detail}), so ${HERMES_GATE_TOOLS_KEY} was left as it is.`)}`);
|
|
1064
|
+
};
|
|
1065
|
+
var offerHermesShellGate = async (choice, receipts) => {
|
|
1066
|
+
const launcher = findHermesLauncher();
|
|
1067
|
+
if (!launcher) return;
|
|
1068
|
+
const state = await readHermesShellGate(launcher);
|
|
1069
|
+
const report = describeHermesShellGate(state);
|
|
1070
|
+
if (state.kind !== "ungated") {
|
|
1071
|
+
reportHermesShellGateWithoutOffer(state, report, choice);
|
|
1072
|
+
return;
|
|
1073
|
+
}
|
|
1074
|
+
console.log();
|
|
1075
|
+
console.log(` ${yellow("!")} ${report.label}`);
|
|
1076
|
+
console.log(` ${dim(`${report.detail}.`)}`);
|
|
1077
|
+
const wanted = choice === "apply" || choice === "ask" && await confirm({ message: HERMES_SHELL_GATE_QUESTION, default: false });
|
|
1078
|
+
if (!wanted) {
|
|
1079
|
+
console.log(` ${dim("To gate them later:")} ${bold(hermesGateShellCommand())}`);
|
|
1080
|
+
noteManual(`To gate Hermes ${HERMES_SHELL_TOOL} commands on the ${state.backend} backend: ${hermesGateShellCommand()}`);
|
|
1081
|
+
return;
|
|
1082
|
+
}
|
|
1083
|
+
reportHermesShellGateOutcome(await gateHermesShell({ launcher, receipts }), receipts);
|
|
1084
|
+
};
|
|
1085
|
+
var setupHermes = async (_apiKey, context) => {
|
|
1021
1086
|
console.log(`
|
|
1022
1087
|
${bold("Setting up Hermes Agent")}
|
|
1023
1088
|
`);
|
|
@@ -1044,8 +1109,50 @@ var setupHermes = async (_apiKey) => {
|
|
|
1044
1109
|
return "skipped";
|
|
1045
1110
|
}
|
|
1046
1111
|
reportHermesInstall(outcome, plugin.version);
|
|
1112
|
+
await offerHermesShellGate(context.hermesShellGate, receipts);
|
|
1047
1113
|
return hermesInspectionIsWired(outcome.inspection) ? "verified" : "configured";
|
|
1048
1114
|
};
|
|
1115
|
+
var openClawInspectionIsWired = (inspection) => inspection.kind === "inspected" && isOpenClawWired(inspection.state);
|
|
1116
|
+
var reportOpenClawInstall = (outcome) => {
|
|
1117
|
+
const { state } = outcome.inspection;
|
|
1118
|
+
console.log(` ${isOpenClawWired(state) ? check : yellow("!")} ${describeOpenClawState(state)}`);
|
|
1119
|
+
console.log();
|
|
1120
|
+
console.log(` ${dim("What this configured:")}`);
|
|
1121
|
+
console.log(` ${dim("\u2022")} Plugin ${outcome.version} from this CLI, installed from ${shortenHome(openClawPluginFolder())}`);
|
|
1122
|
+
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`);
|
|
1123
|
+
console.log(` ${dim("\u2022")} A no, no answer, a cancelled call or an unreachable server blocks the call`);
|
|
1124
|
+
console.log(` ${dim("\u2022")} More tools: add them to plugins.entries.pushary.config.gatedTools`);
|
|
1125
|
+
console.log(` ${dim(OPENCLAW_RESTART_NOTE)}`);
|
|
1126
|
+
if (!isOpenClawWired(state)) noteManual(`OpenClaw: ${describeOpenClawState(state)}`);
|
|
1127
|
+
};
|
|
1128
|
+
var setupOpenClaw = async (_apiKey) => {
|
|
1129
|
+
console.log(`
|
|
1130
|
+
${bold("Setting up OpenClaw")}
|
|
1131
|
+
`);
|
|
1132
|
+
if (!findOpenClawLauncher()) {
|
|
1133
|
+
console.log(` ${yellow("!")} OpenClaw CLI not found. Skipping.`);
|
|
1134
|
+
console.log(` ${dim("Install OpenClaw and re-run setup to configure.")}`);
|
|
1135
|
+
return "skipped";
|
|
1136
|
+
}
|
|
1137
|
+
const outcomes = [];
|
|
1138
|
+
await spinner("Installing the Pushary plugin into OpenClaw", async () => {
|
|
1139
|
+
outcomes.push(await installOpenClawPlugin({ files: openClawFilesNow() }));
|
|
1140
|
+
});
|
|
1141
|
+
const outcome = outcomes[0] ?? { kind: "no_launcher" };
|
|
1142
|
+
if (outcome.kind === "no_launcher") {
|
|
1143
|
+
console.log(` ${yellow("!")} OpenClaw CLI not found. Skipping.`);
|
|
1144
|
+
return "skipped";
|
|
1145
|
+
}
|
|
1146
|
+
if (outcome.kind === "failed") {
|
|
1147
|
+
const message = describeOpenClawInstallFailure(outcome.reason, outcome.detail);
|
|
1148
|
+
console.log(` ${yellow("!")} ${message}`);
|
|
1149
|
+
noteManual(message);
|
|
1150
|
+
return "skipped";
|
|
1151
|
+
}
|
|
1152
|
+
reportOpenClawInstall(outcome);
|
|
1153
|
+
const { state } = outcome.inspection;
|
|
1154
|
+
return state.kind === "wired" && state.gateVerified ? "verified" : "configured";
|
|
1155
|
+
};
|
|
1049
1156
|
var CODEX_HOOKS_JSON = join4(CODEX_HOME, "hooks.json");
|
|
1050
1157
|
var CODEX_HOOKS_MIN_VERSION = [0, 122, 0];
|
|
1051
1158
|
var codexOnPath = () => {
|
|
@@ -1908,6 +2015,8 @@ var agentIsWired = async (agent) => {
|
|
|
1908
2015
|
return clineWired();
|
|
1909
2016
|
case "hermes":
|
|
1910
2017
|
return hermesInspectionIsWired(await inspectHermesWiring());
|
|
2018
|
+
case "openclaw":
|
|
2019
|
+
return openClawInspectionIsWired(await inspectOpenClawWiring(openClawFilesNow()));
|
|
1911
2020
|
default: {
|
|
1912
2021
|
const profile = hookCompatibleProfile(agent);
|
|
1913
2022
|
if (!profile) return true;
|
|
@@ -2034,6 +2143,7 @@ var AGENT_SETUP = {
|
|
|
2034
2143
|
codex: setupCodex,
|
|
2035
2144
|
gemini_cli: setupGemini,
|
|
2036
2145
|
hermes: setupHermes,
|
|
2146
|
+
openclaw: setupOpenClaw,
|
|
2037
2147
|
cursor: setupCursor,
|
|
2038
2148
|
vscode: setupVsCode,
|
|
2039
2149
|
opencode: setupOpenCode,
|
|
@@ -2112,9 +2222,9 @@ var verifyKeyOrExit = async (apiKey, options, precomputed) => {
|
|
|
2112
2222
|
}
|
|
2113
2223
|
return result;
|
|
2114
2224
|
};
|
|
2115
|
-
var printPairingEscape = () => {
|
|
2225
|
+
var printPairingEscape = (lines) => {
|
|
2116
2226
|
console.log();
|
|
2117
|
-
for (const line of
|
|
2227
|
+
for (const line of lines) console.log(line === "" ? "" : ` ${line}`);
|
|
2118
2228
|
console.log();
|
|
2119
2229
|
};
|
|
2120
2230
|
var usableStoredKey = async (apiKey) => {
|
|
@@ -2140,6 +2250,7 @@ var AGENT_NAMES = {
|
|
|
2140
2250
|
codex: "Codex",
|
|
2141
2251
|
gemini_cli: "Gemini CLI",
|
|
2142
2252
|
hermes: "Hermes",
|
|
2253
|
+
openclaw: "OpenClaw",
|
|
2143
2254
|
cursor: "Cursor",
|
|
2144
2255
|
vscode: "VS Code",
|
|
2145
2256
|
opencode: "OpenCode",
|
|
@@ -2153,6 +2264,7 @@ var AGENT_CAPABILITIES = {
|
|
|
2153
2264
|
codex: "MCP + native hooks + auto-allowed tools",
|
|
2154
2265
|
gemini_cli: "MCP + native hooks + auto-allowed tools",
|
|
2155
2266
|
hermes: "native plugin + auto-error notifications",
|
|
2267
|
+
openclaw: "native plugin + exec approval gate",
|
|
2156
2268
|
cursor: "plugin + permission gate",
|
|
2157
2269
|
vscode: "agent plugin + permission gate",
|
|
2158
2270
|
opencode: "generated plugin + permission gate",
|
|
@@ -2203,9 +2315,7 @@ var detectAgents = () => {
|
|
|
2203
2315
|
}
|
|
2204
2316
|
return map;
|
|
2205
2317
|
};
|
|
2206
|
-
var
|
|
2207
|
-
var canRunBrowserLogin = () => process.stdout.isTTY === true && !process.env.CI;
|
|
2208
|
-
var canShowPairingQr = () => !process.env.CI;
|
|
2318
|
+
var canRunBrowserLogin = () => process.stdout.isTTY === true && !isCI();
|
|
2209
2319
|
var resolveAgents = async (options, context = { paired: false }) => {
|
|
2210
2320
|
if (options.agents.kind === "none") return [];
|
|
2211
2321
|
if (options.agents.kind === "explicit") {
|
|
@@ -2403,14 +2513,15 @@ var main = async () => {
|
|
|
2403
2513
|
const computer = pairingComputerOf(hostname(), process.platform, detectedAgentChoices());
|
|
2404
2514
|
const paired = await connectViaAppPairing({
|
|
2405
2515
|
computer,
|
|
2516
|
+
command: "setup",
|
|
2406
2517
|
onCancelled: async (exitCode2) => {
|
|
2407
|
-
printPairingEscape();
|
|
2518
|
+
printPairingEscape(describeCancelledPairing(exitCode2, describePairingEscape()));
|
|
2408
2519
|
await reportSetupAbort("pairing-cancelled", exitCode2);
|
|
2409
2520
|
}
|
|
2410
2521
|
});
|
|
2411
2522
|
if (paired.kind === "failed") {
|
|
2412
|
-
if (pairingEscapeApplies(paired)) printPairingEscape();
|
|
2413
|
-
process.exit(await abortWith(
|
|
2523
|
+
if (pairingEscapeApplies(paired)) printPairingEscape(describePairingEscape());
|
|
2524
|
+
process.exit(await abortWith("pairing-failed", EXIT.NOT_CONFIGURED));
|
|
2414
2525
|
}
|
|
2415
2526
|
trimmedKey = paired.apiKey;
|
|
2416
2527
|
keyOrigin = "created_by_this_cli";
|
|
@@ -2425,11 +2536,12 @@ var main = async () => {
|
|
|
2425
2536
|
}
|
|
2426
2537
|
console.log();
|
|
2427
2538
|
} else if (!canRunBrowserLogin()) {
|
|
2539
|
+
const ciCause = ciMarker();
|
|
2428
2540
|
if (pairingRequested) {
|
|
2429
|
-
console.log(` ${yellow("!")} ${cyan("--connect app")} will not draw a pairing QR in CI.`);
|
|
2541
|
+
console.log(` ${yellow("!")} ${cyan("--connect app")} will not draw a pairing QR in CI${describeCiReason(ciCause)}.`);
|
|
2430
2542
|
console.log(` ${dim("Pass --key <pk_xxx.xxx> or --key-stdin here. Outside CI, setup pairs with no terminal needed.")}`);
|
|
2431
|
-
} else if (
|
|
2432
|
-
console.log(` ${yellow("!")} No API key, and setup does not pair in CI.`);
|
|
2543
|
+
} else if (ciCause !== null) {
|
|
2544
|
+
console.log(` ${yellow("!")} No API key, and setup does not pair in CI${describeCiReason(ciCause)}.`);
|
|
2433
2545
|
console.log(` ${dim("Pass --key <pk_xxx.xxx>, or --key-stdin, or export PUSHARY_API_KEY.")}`);
|
|
2434
2546
|
} else {
|
|
2435
2547
|
console.log(` ${yellow("!")} No API key, and nothing here can acquire one.`);
|
|
@@ -2506,7 +2618,13 @@ var main = async () => {
|
|
|
2506
2618
|
if (keyCheck.kind === "ok") clearDaemonNeedsLogin();
|
|
2507
2619
|
markStep("resolve-agents");
|
|
2508
2620
|
const agents = await resolveAgents(options, { paired: keyFromPairing });
|
|
2509
|
-
const context = {
|
|
2621
|
+
const context = {
|
|
2622
|
+
rc,
|
|
2623
|
+
hermesShellGate: hermesShellGateChoice({
|
|
2624
|
+
requested: options.hermesGateTerminal,
|
|
2625
|
+
canAsk: canAskAtTheTerminal({ stdoutIsTty: process.stdout.isTTY === true, nonInteractive: options.nonInteractive, dryRun: options.dryRun })
|
|
2626
|
+
})
|
|
2627
|
+
};
|
|
2510
2628
|
const accountChecks = /* @__PURE__ */ new Map();
|
|
2511
2629
|
if (keyCheck) accountChecks.set(trimmedKey, Promise.resolve(keyCheck));
|
|
2512
2630
|
const accountCheckFor = (key) => {
|
|
@@ -2642,6 +2760,7 @@ var main = async () => {
|
|
|
2642
2760
|
interactive: !options.nonInteractive,
|
|
2643
2761
|
macAppInstalled: appBridgeAvailable
|
|
2644
2762
|
});
|
|
2763
|
+
const connectInstructions = { showQr: canShowPairingQr(), channel: instructionsChannelFor(connectMode) };
|
|
2645
2764
|
switch (phoneCheck) {
|
|
2646
2765
|
case "unverified":
|
|
2647
2766
|
console.log();
|
|
@@ -2660,17 +2779,17 @@ var main = async () => {
|
|
|
2660
2779
|
console.log(` ${dim("Skipping the delivery check (--verify none). Nothing here proves an approval reaches you.")}`);
|
|
2661
2780
|
break;
|
|
2662
2781
|
case "instructions":
|
|
2663
|
-
phone = await printConnectInstructions(trimmedKey);
|
|
2782
|
+
phone = await printConnectInstructions(trimmedKey, connectInstructions);
|
|
2664
2783
|
break;
|
|
2665
2784
|
case "confirm-pairing":
|
|
2666
2785
|
phone = await confirmAppConnection(trimmedKey);
|
|
2667
2786
|
break;
|
|
2668
2787
|
case "reuse-app":
|
|
2669
|
-
phone = await printConnectInstructions(trimmedKey);
|
|
2788
|
+
phone = await printConnectInstructions(trimmedKey, connectInstructions);
|
|
2670
2789
|
break;
|
|
2671
2790
|
case "wait-for-app": {
|
|
2672
2791
|
const skip = enterKeyListener();
|
|
2673
|
-
phone = skip === null ? await printConnectInstructions(trimmedKey) : await waitForYourPhone(trimmedKey, { skip });
|
|
2792
|
+
phone = skip === null ? await printConnectInstructions(trimmedKey, connectInstructions) : await waitForYourPhone(trimmedKey, { skip });
|
|
2674
2793
|
break;
|
|
2675
2794
|
}
|
|
2676
2795
|
case "connect":
|
|
@@ -2886,7 +3005,8 @@ var main = async () => {
|
|
|
2886
3005
|
roundTripAnswered: roundTripWasAnswered(roundTrip),
|
|
2887
3006
|
roundTripAnswer: roundTripAnswerOf(roundTrip),
|
|
2888
3007
|
appPlatforms: phone?.appPlatforms,
|
|
2889
|
-
codexApprovals
|
|
3008
|
+
codexApprovals,
|
|
3009
|
+
phoneAwaitsNotifications: phone !== null && phoneAwaitsNotificationPermission(phone)
|
|
2890
3010
|
});
|
|
2891
3011
|
console.log(` ${closing.ok ? green(bold(closing.headline)) : yellow(bold(closing.headline))}`);
|
|
2892
3012
|
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-T3TVMMXJ.js";
|
|
5
5
|
import {
|
|
6
6
|
readLedgerSummary
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-FHBJJOMF.js";
|
|
8
8
|
import {
|
|
9
9
|
getApiKey
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-3NMX4725.js";
|
|
11
11
|
import "../chunk-BG4HHB7E.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-JDIKCM2N.js";
|
|
13
13
|
import "../chunk-WIIMW5YO.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-6JBX55K4.js";
|
|
15
15
|
import "../chunk-MLKGABMK.js";
|
|
16
16
|
|
|
17
17
|
// bin/pushary-stats.ts
|