pushary 1.9.185 → 1.9.187
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/dist/{api-BRYBSBZK.js → api-6U7B4OY7.js} +13 -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 +27 -27
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +77 -50
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-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 +19 -19
- 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 +39 -39
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +118 -86
- 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 +44 -44
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-SIGAIBOE.js → chunk-2ACPOE77.js} +1 -1
- package/dist/{chunk-MM7DRYKU.js → chunk-2IBCLVJK.js} +2 -2
- package/dist/{chunk-SJRLILZR.js → chunk-2NHK4PUR.js} +10 -8
- package/dist/{chunk-FO5DHJSL.js → chunk-2PQY4TMQ.js} +2 -2
- package/dist/{chunk-LRA423VV.js → chunk-3JNBZF4G.js} +1 -1
- package/dist/{chunk-CXBOEYV6.js → chunk-3JU27SD5.js} +1 -0
- package/dist/{chunk-N7R5I2FE.js → chunk-4OSTVMM5.js} +18 -18
- package/dist/{chunk-LH5MUJNB.js → chunk-52CIHAC2.js} +6 -6
- package/dist/{chunk-M7KHET4S.js → chunk-5DSFBND4.js} +1 -1
- package/dist/{chunk-ULYZX6VZ.js → chunk-5O4MW5YS.js} +1 -1
- package/dist/{chunk-OLKEMRJS.js → chunk-5X7XEJTI.js} +2 -2
- package/dist/{chunk-BRFHSICQ.js → chunk-6D35FDXC.js} +1 -1
- package/dist/{chunk-LG4A3CWJ.js → chunk-6NUEY2FT.js} +3 -3
- package/dist/{chunk-ZZDJSFRO.js → chunk-6OJ7XVBR.js} +2 -2
- package/dist/{chunk-RNVHH6AN.js → chunk-6UICFJRW.js} +1 -1
- package/dist/{chunk-BMANIZY7.js → chunk-6ZSOD7VY.js} +5 -5
- package/dist/{chunk-FUEREMLD.js → chunk-7IG54T3H.js} +1 -1
- package/dist/{chunk-4XQN44EO.js → chunk-7P7ZKS2G.js} +1 -1
- package/dist/{chunk-TMXWZ523.js → chunk-AKAZRQLA.js} +2 -2
- package/dist/{chunk-5BCZSBRC.js → chunk-AO5BRDKS.js} +4 -4
- package/dist/{chunk-NAWYRZE5.js → chunk-AYM7IBC5.js} +1 -1
- package/dist/{chunk-EJ6HBNXC.js → chunk-BDJNHQFA.js} +4 -4
- package/dist/{chunk-756EI4Q3.js → chunk-BW6WGBJC.js} +4 -4
- package/dist/{chunk-JF4RHZLF.js → chunk-BWOQACK7.js} +2 -2
- package/dist/{chunk-APQZ3KX2.js → chunk-D35DKI3E.js} +5 -5
- package/dist/{chunk-FMU7EE4Z.js → chunk-DRY5YWUK.js} +2 -2
- package/dist/{chunk-JTNEB67J.js → chunk-E2CY63WZ.js} +5 -5
- package/dist/{chunk-3TXESHDA.js → chunk-EU6NQQNG.js} +2 -2
- package/dist/{chunk-AQSGAKFY.js → chunk-EXM3ZEUU.js} +9 -9
- package/dist/{chunk-VT4JY2AI.js → chunk-FWYOB3LW.js} +1 -1
- package/dist/{chunk-VD3Q2A5J.js → chunk-FYBS4VRT.js} +1 -1
- package/dist/{chunk-F6TCNSGN.js → chunk-FZQHKRQF.js} +11 -11
- package/dist/{chunk-2C5DS3GU.js → chunk-GBKMTVG6.js} +2 -2
- package/dist/{chunk-ULF4UJR4.js → chunk-GTEL6ZIH.js} +5 -5
- package/dist/{chunk-HMP72ZHV.js → chunk-GYIISS2S.js} +7 -7
- package/dist/{chunk-24F6XTB3.js → chunk-HKL7HXFD.js} +3 -3
- package/dist/{chunk-65LJ5GGF.js → chunk-HYZAL77U.js} +7 -7
- package/dist/{chunk-WNWAEFXM.js → chunk-I5C35DE5.js} +3 -3
- package/dist/{chunk-EGFBATFH.js → chunk-IYY7KRNS.js} +3 -3
- package/dist/{chunk-5JR6LPS2.js → chunk-J3JG5EKP.js} +1 -1
- package/dist/{chunk-J4LUUYXH.js → chunk-JFZPMVEC.js} +2 -2
- package/dist/{chunk-2M5CQWRP.js → chunk-JLVVFGYN.js} +4 -4
- package/dist/{chunk-R5VJTCXK.js → chunk-KOJJ2LPJ.js} +7 -6
- package/dist/{chunk-O4IWURQP.js → chunk-KZFNXNFH.js} +1 -1
- package/dist/{chunk-B4VU5JT6.js → chunk-L3BX56Y4.js} +3 -3
- package/dist/{chunk-L6NERUNF.js → chunk-L7BHOFTF.js} +3 -3
- package/dist/{chunk-S7MFDG4I.js → chunk-LTB54XBS.js} +4 -4
- package/dist/{chunk-BPZQVEPM.js → chunk-LV575VQE.js} +4 -4
- package/dist/{chunk-HME7GJ6U.js → chunk-LXHH33MX.js} +3 -3
- package/dist/{chunk-5LRVMXIZ.js → chunk-LXZ6APGN.js} +3 -3
- package/dist/{chunk-LSR6SAV7.js → chunk-NNHD7KVL.js} +1 -1
- package/dist/{chunk-JDDP7JOT.js → chunk-NXHIWGOL.js} +8 -8
- package/dist/{chunk-GU5FAWFF.js → chunk-O5IRXMPV.js} +1 -1
- package/dist/{chunk-WSMOSC7V.js → chunk-O7N2FQBH.js} +4 -4
- package/dist/{chunk-ZL2RR6WP.js → chunk-OCHXKVIN.js} +1 -1
- package/dist/{chunk-37XU75VG.js → chunk-OESNI7XN.js} +4 -4
- package/dist/{chunk-R4TTSINC.js → chunk-OLU5L3VB.js} +1 -1
- package/dist/{chunk-VAFNZO3R.js → chunk-PDVGAU7A.js} +6 -6
- package/dist/{chunk-AFH5LR76.js → chunk-PS4AKK26.js} +1 -1
- package/dist/{chunk-QLJGGIIC.js → chunk-QBPBNFDI.js} +5 -5
- package/dist/{chunk-NYHSZQ52.js → chunk-QJF5I7NR.js} +6 -6
- package/dist/{chunk-OJ7YBDPF.js → chunk-QNOXMVIX.js} +5 -5
- package/dist/{chunk-B4K5OVOE.js → chunk-QUXD5OW3.js} +3 -3
- package/dist/{chunk-CVJ6H2VK.js → chunk-RYBTDSQF.js} +1 -1
- package/dist/{chunk-HIHKYDIN.js → chunk-SIT46O4V.js} +10 -10
- package/dist/{chunk-5AF6JBCS.js → chunk-TBQT2TA6.js} +12 -12
- package/dist/{chunk-VD5V6F7F.js → chunk-TKGCDWPF.js} +2 -2
- package/dist/{chunk-TC5H6AI3.js → chunk-TYGNPI7L.js} +1 -1
- package/dist/{chunk-ME4RYRDR.js → chunk-UFAIL7YE.js} +2 -2
- package/dist/{chunk-55JWYWJV.js → chunk-URZAPVR6.js} +4 -4
- package/dist/{chunk-M5FGY54M.js → chunk-VECF23YI.js} +6 -5
- package/dist/{chunk-W5FLGEYD.js → chunk-WA5RGLKV.js} +2 -2
- package/dist/{chunk-FSIIKAGP.js → chunk-XF25RJEV.js} +3 -3
- package/dist/{chunk-HVX3JGGX.js → chunk-XO66RJJC.js} +5 -5
- package/dist/{chunk-Y5GMVVCF.js → chunk-YMJCE2TD.js} +2 -2
- package/dist/{chunk-Q7PIFWTG.js → chunk-YUG7PCPJ.js} +1 -1
- package/dist/{chunk-IDWNJ4DV.js → chunk-Z2RVYQON.js} +6 -6
- package/dist/{chunk-ZIFSPYWB.js → chunk-Z7OTSKAT.js} +4 -4
- package/dist/{chunk-PTV6A5SZ.js → chunk-ZKZL4EFA.js} +1 -1
- package/dist/{chunk-ZJG4C46N.js → chunk-ZL3UDLTC.js} +5 -5
- package/dist/{chunk-NQXVL6LF.js → chunk-ZUU4I2RK.js} +1 -1
- package/dist/{codex-app-cards-switch-NYYOAVLZ.js → codex-app-cards-switch-5B67TNLS.js} +11 -11
- package/dist/{codex-card-routing-WS72OC7Y.js → codex-card-routing-3HSUBI6U.js} +2 -2
- package/dist/{codex-desktop-launch-OGZO6ZJG.js → codex-desktop-launch-GG5K77QD.js} +1 -1
- package/dist/{codex-session-launch-DOWFJZA4.js → codex-session-launch-XR46HRYK.js} +20 -20
- package/dist/{config-4JVYJ27G.js → config-K7JUY27J.js} +3 -3
- package/dist/{global-upgrade-T4R5NZLD.js → global-upgrade-R24VOCK7.js} +9 -9
- package/dist/{identity-OJIHTE3W.js → identity-IMSNZJZL.js} +4 -4
- package/dist/{live-capabilities-LRILVMMZ.js → live-capabilities-BBUGAZJV.js} +4 -4
- package/dist/{paths-KHADVAWP.js → paths-HGLMPFAG.js} +3 -3
- package/dist/reapply-SYNZ2IZY.js +70 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-UISWFQ3X.js → upgrade-lock-FML33CIQ.js} +4 -4
- package/dist/{usage-SKO6G5XJ.js → usage-QMQZCRF2.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-6EIHGVRL.js +0 -70
|
@@ -15,31 +15,31 @@ import {
|
|
|
15
15
|
storedMacAppState,
|
|
16
16
|
storedPusharyKeychainServices,
|
|
17
17
|
waitForMacAppExit
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-2IBCLVJK.js";
|
|
19
19
|
import {
|
|
20
20
|
PUSHARY_SKILL_NAME,
|
|
21
21
|
PUSHARY_SKILL_SOURCE,
|
|
22
22
|
createGuards
|
|
23
23
|
} from "../chunk-UOPOVQ2P.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-L3BX56Y4.js";
|
|
25
25
|
import "../chunk-XCEN33UP.js";
|
|
26
26
|
import {
|
|
27
27
|
describeCliKeyRevocation,
|
|
28
28
|
planCliKeyRevocations,
|
|
29
29
|
readCliHeldKeys,
|
|
30
30
|
revokeCliKeys
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-XO66RJJC.js";
|
|
32
32
|
import "../chunk-U4P4NDVB.js";
|
|
33
33
|
import {
|
|
34
34
|
isCursorPluginLeftover,
|
|
35
35
|
releaseSoleGate,
|
|
36
36
|
withoutPusharyCursorHooks
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-BW6WGBJC.js";
|
|
38
38
|
import {
|
|
39
39
|
shortenHome,
|
|
40
40
|
unregisterPluginLocation,
|
|
41
41
|
vscodeSettingsTargets
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-QBPBNFDI.js";
|
|
43
43
|
import "../chunk-OYIN77HO.js";
|
|
44
44
|
import {
|
|
45
45
|
configFileHoldsMacAppKey,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
pusharyKey,
|
|
49
49
|
readMacAppAgentKey,
|
|
50
50
|
setupReceiptKey
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-LTB54XBS.js";
|
|
52
52
|
import {
|
|
53
53
|
HERMES_CONFIG_FILE,
|
|
54
54
|
defaultHermesHome,
|
|
@@ -57,18 +57,18 @@ import {
|
|
|
57
57
|
openClawRemovalLeavesThePluginInstalled,
|
|
58
58
|
removeHermesWiring,
|
|
59
59
|
removeOpenClawPlugin
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-Z7OTSKAT.js";
|
|
61
61
|
import "../chunk-QCGNGEGE.js";
|
|
62
62
|
import {
|
|
63
63
|
OPENCLAW_PLUGIN_PACKAGE
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-IYY7KRNS.js";
|
|
65
65
|
import {
|
|
66
66
|
planClineRemoval,
|
|
67
67
|
planFxRemoval,
|
|
68
68
|
removeClineServer
|
|
69
|
-
} from "../chunk-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
69
|
+
} from "../chunk-E2CY63WZ.js";
|
|
70
|
+
import "../chunk-HKL7HXFD.js";
|
|
71
|
+
import "../chunk-I5C35DE5.js";
|
|
72
72
|
import {
|
|
73
73
|
OPENCODE_ASKED_PERMISSIONS,
|
|
74
74
|
hasForeignPlugins,
|
|
@@ -79,22 +79,22 @@ import {
|
|
|
79
79
|
openCodePluginDir,
|
|
80
80
|
openCodePluginFile,
|
|
81
81
|
removeOpenCodeMcpServer
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-GYIISS2S.js";
|
|
83
83
|
import {
|
|
84
84
|
isOpenCodePluginOurs
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-NNHD7KVL.js";
|
|
86
86
|
import {
|
|
87
87
|
OPENCODE_PLUGIN_SIBLING,
|
|
88
88
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
89
|
-
} from "../chunk-
|
|
90
|
-
import "../chunk-
|
|
89
|
+
} from "../chunk-FWYOB3LW.js";
|
|
90
|
+
import "../chunk-WA5RGLKV.js";
|
|
91
91
|
import {
|
|
92
92
|
ansiPainter,
|
|
93
93
|
useColor
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-RYBTDSQF.js";
|
|
95
95
|
import {
|
|
96
96
|
exitOnHelpFlag
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-J3JG5EKP.js";
|
|
98
98
|
import "../chunk-TCE3J44Z.js";
|
|
99
99
|
import {
|
|
100
100
|
compatibleConfigFile,
|
|
@@ -107,34 +107,34 @@ import {
|
|
|
107
107
|
removeCompatibleHooks,
|
|
108
108
|
removeCompatibleMcpServer,
|
|
109
109
|
serializeConfigDocument
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-D35DKI3E.js";
|
|
111
111
|
import {
|
|
112
112
|
disableDaemonService
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-PDVGAU7A.js";
|
|
114
114
|
import {
|
|
115
115
|
hookOwnerOf,
|
|
116
116
|
isHookTakeoverReceipt,
|
|
117
117
|
removeGeminiSettings,
|
|
118
118
|
restoreHookTakeover,
|
|
119
119
|
restoreMcpServer
|
|
120
|
-
} from "../chunk-
|
|
121
|
-
import "../chunk-
|
|
122
|
-
import "../chunk-
|
|
123
|
-
import "../chunk-
|
|
124
|
-
import "../chunk-
|
|
120
|
+
} from "../chunk-O7N2FQBH.js";
|
|
121
|
+
import "../chunk-TBQT2TA6.js";
|
|
122
|
+
import "../chunk-3JNBZF4G.js";
|
|
123
|
+
import "../chunk-ZKZL4EFA.js";
|
|
124
|
+
import "../chunk-O5IRXMPV.js";
|
|
125
125
|
import {
|
|
126
126
|
parseFlags
|
|
127
127
|
} from "../chunk-BZIBNSQE.js";
|
|
128
128
|
import "../chunk-VRNGMRJA.js";
|
|
129
|
-
import "../chunk-
|
|
130
|
-
import "../chunk-
|
|
129
|
+
import "../chunk-2NHK4PUR.js";
|
|
130
|
+
import "../chunk-OLU5L3VB.js";
|
|
131
131
|
import "../chunk-POFBE6ZY.js";
|
|
132
|
-
import "../chunk-
|
|
133
|
-
import "../chunk-
|
|
134
|
-
import "../chunk-
|
|
135
|
-
import "../chunk-
|
|
136
|
-
import "../chunk-
|
|
137
|
-
import "../chunk-
|
|
132
|
+
import "../chunk-KOJJ2LPJ.js";
|
|
133
|
+
import "../chunk-6D35FDXC.js";
|
|
134
|
+
import "../chunk-7IG54T3H.js";
|
|
135
|
+
import "../chunk-L7BHOFTF.js";
|
|
136
|
+
import "../chunk-6NUEY2FT.js";
|
|
137
|
+
import "../chunk-AYM7IBC5.js";
|
|
138
138
|
import {
|
|
139
139
|
CANDIDATE_RCS,
|
|
140
140
|
exportedKeyFiles,
|
|
@@ -142,8 +142,8 @@ import {
|
|
|
142
142
|
isKeyLoaderLine,
|
|
143
143
|
removeClaudeAlias,
|
|
144
144
|
withoutKeyLines
|
|
145
|
-
} from "../chunk-
|
|
146
|
-
import "../chunk-
|
|
145
|
+
} from "../chunk-LXZ6APGN.js";
|
|
146
|
+
import "../chunk-GBKMTVG6.js";
|
|
147
147
|
import {
|
|
148
148
|
claudeConfigDir,
|
|
149
149
|
claudeJson,
|
|
@@ -188,17 +188,17 @@ import {
|
|
|
188
188
|
restoreCodexHookTrust,
|
|
189
189
|
vscodePluginDir,
|
|
190
190
|
vscodePluginMcp
|
|
191
|
-
} from "../chunk-
|
|
191
|
+
} from "../chunk-BWOQACK7.js";
|
|
192
192
|
import {
|
|
193
193
|
cleanNpmEnv,
|
|
194
194
|
globalPackageState,
|
|
195
195
|
npmIsOnPath,
|
|
196
196
|
readGlobalFolder,
|
|
197
197
|
readGlobalPrefix
|
|
198
|
-
} from "../chunk-
|
|
198
|
+
} from "../chunk-AO5BRDKS.js";
|
|
199
199
|
import {
|
|
200
200
|
getBaseUrl
|
|
201
|
-
} from "../chunk-
|
|
201
|
+
} from "../chunk-KZFNXNFH.js";
|
|
202
202
|
import "../chunk-CINBAX5G.js";
|
|
203
203
|
import "../chunk-PM2NRK6Y.js";
|
|
204
204
|
import {
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
} from "../chunk-BG4HHB7E.js";
|
|
207
207
|
import {
|
|
208
208
|
NPX_LATEST_COMMAND
|
|
209
|
-
} from "../chunk-
|
|
209
|
+
} from "../chunk-YUG7PCPJ.js";
|
|
210
210
|
import {
|
|
211
211
|
CLI_PACKAGE_NAMES,
|
|
212
212
|
globalPackageFolder,
|
|
@@ -220,7 +220,7 @@ import {
|
|
|
220
220
|
SUPPORT_EMAIL,
|
|
221
221
|
isValidApiKey,
|
|
222
222
|
redactSecrets
|
|
223
|
-
} from "../chunk-
|
|
223
|
+
} from "../chunk-3JU27SD5.js";
|
|
224
224
|
import "../chunk-MLKGABMK.js";
|
|
225
225
|
|
|
226
226
|
// bin/pushary-clean.ts
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runCodexBridge
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-NXHIWGOL.js";
|
|
5
|
+
import "../chunk-5O4MW5YS.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveProviderBinary
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-LXHH33MX.js";
|
|
9
|
+
import "../chunk-DRY5YWUK.js";
|
|
10
|
+
import "../chunk-PS4AKK26.js";
|
|
11
11
|
import {
|
|
12
12
|
withSpawnProcessOwnership
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-EU6NQQNG.js";
|
|
14
14
|
import "../chunk-TCE3J44Z.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-QUXD5OW3.js";
|
|
16
16
|
import "../chunk-55L4JSPA.js";
|
|
17
17
|
import {
|
|
18
18
|
transcriptsEnabled
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-TYGNPI7L.js";
|
|
20
20
|
import "../chunk-VRNGMRJA.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-2NHK4PUR.js";
|
|
22
|
+
import "../chunk-OLU5L3VB.js";
|
|
23
23
|
import "../chunk-POFBE6ZY.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-KOJJ2LPJ.js";
|
|
25
|
+
import "../chunk-6D35FDXC.js";
|
|
26
|
+
import "../chunk-7IG54T3H.js";
|
|
27
|
+
import "../chunk-L7BHOFTF.js";
|
|
28
|
+
import "../chunk-6NUEY2FT.js";
|
|
29
29
|
import {
|
|
30
30
|
getMachineId
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-AYM7IBC5.js";
|
|
32
|
+
import "../chunk-LXZ6APGN.js";
|
|
33
|
+
import "../chunk-GBKMTVG6.js";
|
|
34
|
+
import "../chunk-BWOQACK7.js";
|
|
35
|
+
import "../chunk-AO5BRDKS.js";
|
|
36
36
|
import {
|
|
37
37
|
getApiKey,
|
|
38
38
|
getBaseUrl
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-KZFNXNFH.js";
|
|
40
40
|
import "../chunk-CINBAX5G.js";
|
|
41
41
|
import "../chunk-PM2NRK6Y.js";
|
|
42
42
|
import "../chunk-BG4HHB7E.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-YUG7PCPJ.js";
|
|
44
44
|
import "../chunk-UQTQ6HPO.js";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-3JU27SD5.js";
|
|
46
46
|
import "../chunk-MLKGABMK.js";
|
|
47
47
|
|
|
48
48
|
// bin/pushary-codex-bridge.ts
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
takeHookHoldBudget
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5DSFBND4.js";
|
|
5
5
|
import {
|
|
6
6
|
parseCodexHookInput,
|
|
7
7
|
pushQuestionAndWait,
|
|
8
8
|
scopeQuestionOf
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-VECF23YI.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-7P7ZKS2G.js";
|
|
13
13
|
import {
|
|
14
14
|
askAgentQuestions
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-GTEL6ZIH.js";
|
|
16
16
|
import {
|
|
17
17
|
reportMachineDenial
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-LV575VQE.js";
|
|
19
19
|
import {
|
|
20
20
|
isGatingMoment,
|
|
21
21
|
recordKeylessMoment
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-FYBS4VRT.js";
|
|
23
23
|
import {
|
|
24
24
|
triggerAutoUpdate
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-2PQY4TMQ.js";
|
|
26
26
|
import {
|
|
27
27
|
readHookInput
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-6ZSOD7VY.js";
|
|
29
|
+
import "../chunk-JLVVFGYN.js";
|
|
30
30
|
import {
|
|
31
31
|
announceSubscriptionRequired,
|
|
32
32
|
isDeferAnswer
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
33
|
+
} from "../chunk-2ACPOE77.js";
|
|
34
|
+
import "../chunk-SIT46O4V.js";
|
|
35
35
|
import "../chunk-WHB622LP.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-D35DKI3E.js";
|
|
37
|
+
import "../chunk-PDVGAU7A.js";
|
|
38
|
+
import "../chunk-O7N2FQBH.js";
|
|
39
39
|
import {
|
|
40
40
|
CODEX_AGENT,
|
|
41
41
|
DEFAULT_SESSION,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
toPolicyLookups,
|
|
72
72
|
userScope,
|
|
73
73
|
withdrawLeftOpenQuestions
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-TBQT2TA6.js";
|
|
75
75
|
import {
|
|
76
76
|
codexReviewerDenialsSince,
|
|
77
77
|
deriveActionBody,
|
|
@@ -84,13 +84,13 @@ import {
|
|
|
84
84
|
scanCodexGuardianReviews,
|
|
85
85
|
scopePathFor,
|
|
86
86
|
sessionIdentityOf
|
|
87
|
-
} from "../chunk-
|
|
88
|
-
import "../chunk-
|
|
89
|
-
import "../chunk-
|
|
87
|
+
} from "../chunk-3JNBZF4G.js";
|
|
88
|
+
import "../chunk-ZKZL4EFA.js";
|
|
89
|
+
import "../chunk-O5IRXMPV.js";
|
|
90
90
|
import "../chunk-BZIBNSQE.js";
|
|
91
|
-
import "../chunk-
|
|
91
|
+
import "../chunk-QUXD5OW3.js";
|
|
92
92
|
import "../chunk-55L4JSPA.js";
|
|
93
|
-
import "../chunk-
|
|
93
|
+
import "../chunk-TYGNPI7L.js";
|
|
94
94
|
import "../chunk-VRNGMRJA.js";
|
|
95
95
|
import {
|
|
96
96
|
ABANDONED_WAIT,
|
|
@@ -106,35 +106,35 @@ import {
|
|
|
106
106
|
sendNotification,
|
|
107
107
|
sleepUnlessAborted,
|
|
108
108
|
withdrawQuestion
|
|
109
|
-
} from "../chunk-
|
|
110
|
-
import "../chunk-
|
|
109
|
+
} from "../chunk-2NHK4PUR.js";
|
|
110
|
+
import "../chunk-OLU5L3VB.js";
|
|
111
111
|
import "../chunk-POFBE6ZY.js";
|
|
112
112
|
import {
|
|
113
113
|
SubscriptionRequiredError
|
|
114
|
-
} from "../chunk-
|
|
114
|
+
} from "../chunk-KOJJ2LPJ.js";
|
|
115
115
|
import {
|
|
116
116
|
fetchAsCredential
|
|
117
|
-
} from "../chunk-
|
|
117
|
+
} from "../chunk-6D35FDXC.js";
|
|
118
118
|
import {
|
|
119
119
|
projectNameFor,
|
|
120
120
|
repoKeyFor,
|
|
121
121
|
repositoryScopeFor
|
|
122
|
-
} from "../chunk-
|
|
123
|
-
import "../chunk-
|
|
124
|
-
import "../chunk-
|
|
122
|
+
} from "../chunk-7IG54T3H.js";
|
|
123
|
+
import "../chunk-L7BHOFTF.js";
|
|
124
|
+
import "../chunk-6NUEY2FT.js";
|
|
125
125
|
import {
|
|
126
126
|
getMachineId
|
|
127
|
-
} from "../chunk-
|
|
128
|
-
import "../chunk-
|
|
129
|
-
import "../chunk-
|
|
127
|
+
} from "../chunk-AYM7IBC5.js";
|
|
128
|
+
import "../chunk-LXZ6APGN.js";
|
|
129
|
+
import "../chunk-GBKMTVG6.js";
|
|
130
130
|
import {
|
|
131
131
|
canonicalJson
|
|
132
|
-
} from "../chunk-
|
|
133
|
-
import "../chunk-
|
|
132
|
+
} from "../chunk-BWOQACK7.js";
|
|
133
|
+
import "../chunk-AO5BRDKS.js";
|
|
134
134
|
import {
|
|
135
135
|
getApiKey,
|
|
136
136
|
getBaseUrl
|
|
137
|
-
} from "../chunk-
|
|
137
|
+
} from "../chunk-KZFNXNFH.js";
|
|
138
138
|
import "../chunk-CINBAX5G.js";
|
|
139
139
|
import {
|
|
140
140
|
writeFileAtomic
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
import {
|
|
143
143
|
EXIT
|
|
144
144
|
} from "../chunk-BG4HHB7E.js";
|
|
145
|
-
import "../chunk-
|
|
145
|
+
import "../chunk-YUG7PCPJ.js";
|
|
146
146
|
import "../chunk-UQTQ6HPO.js";
|
|
147
147
|
import {
|
|
148
148
|
CALL_REFUSED_EVENT,
|
|
@@ -155,6 +155,7 @@ import {
|
|
|
155
155
|
KILL_REASON,
|
|
156
156
|
SCOPE_BATCH_REASON,
|
|
157
157
|
UNVERIFIABLE_APPROVAL_REASON,
|
|
158
|
+
approvesWhenUnanswered,
|
|
158
159
|
blockedActionIdentity,
|
|
159
160
|
callRefusalReasonWhenUnanswered,
|
|
160
161
|
codexDeferredPreToolUse,
|
|
@@ -178,7 +179,7 @@ import {
|
|
|
178
179
|
refusesWhenUnanswered,
|
|
179
180
|
resolveGate,
|
|
180
181
|
unapprovedScopeReason
|
|
181
|
-
} from "../chunk-
|
|
182
|
+
} from "../chunk-3JU27SD5.js";
|
|
182
183
|
import "../chunk-MLKGABMK.js";
|
|
183
184
|
|
|
184
185
|
// src/rule-watched-ask.ts
|
|
@@ -194,31 +195,47 @@ var NO_RULE_CHANGE = { kind: "none" };
|
|
|
194
195
|
var RULE_ALLOWS = { kind: "allows" };
|
|
195
196
|
var COVERED_BY_RULE = { kind: "covered_by_rule" };
|
|
196
197
|
var NO_FREE_SLOT = { kind: "no_free_slot" };
|
|
197
|
-
var
|
|
198
|
+
var slotWaitRoomOf = (waitSeconds, agent) => {
|
|
198
199
|
const budgetMs = hookMaxWaitSeconds(agent) * 1e3;
|
|
199
200
|
const windowMs = Math.min(Math.max(waitSeconds, 0) * 1e3, budgetMs);
|
|
200
|
-
|
|
201
|
+
return { windowMs, beforeTheLastWholeWindowMs: budgetMs - windowMs - SLOT_ATTEMPT_MARGIN_MS };
|
|
202
|
+
};
|
|
203
|
+
var lastSlotAttemptAt = (startMs, waitSeconds, agent) => {
|
|
204
|
+
const { windowMs, beforeTheLastWholeWindowMs } = slotWaitRoomOf(waitSeconds, agent);
|
|
205
|
+
const slotWaitMs = Math.min(windowMs, beforeTheLastWholeWindowMs, MAX_SLOT_WAIT_SECONDS * 1e3);
|
|
201
206
|
return startMs + Math.max(slotWaitMs, 0);
|
|
202
207
|
};
|
|
208
|
+
var lastSlotAttemptOutlastingEarlierWindowsAt = (startMs, waitSeconds, agent) => {
|
|
209
|
+
const { windowMs, beforeTheLastWholeWindowMs } = slotWaitRoomOf(waitSeconds, agent);
|
|
210
|
+
return windowMs > 0 ? startMs + Math.max(beforeTheLastWholeWindowMs, 0) : startMs;
|
|
211
|
+
};
|
|
212
|
+
var lastSlotAttemptFor = ({ startMs, waitSeconds, agent, silenceApproves }) => silenceApproves ? lastSlotAttemptOutlastingEarlierWindowsAt(startMs, waitSeconds, agent) : lastSlotAttemptAt(startMs, waitSeconds, agent);
|
|
213
|
+
var ruleStoppedApprovingUnanswered = (verdict) => verdict.kind === "gate" && !approvesWhenUnanswered(verdict.policy);
|
|
214
|
+
var slotWaitFor = (rule) => rule.silenceApproves ? { lastSlotAttemptAtMs: lastSlotAttemptFor(rule), slotWaitEndsOn: ruleStoppedApprovingUnanswered } : { lastSlotAttemptAtMs: lastSlotAttemptFor(rule) };
|
|
203
215
|
var nextRuleRecheckMs = (previousMs) => Math.min(Math.round(previousMs * RULE_RECHECK_GROWTH), LONGEST_RULE_RECHECK_MS);
|
|
204
216
|
var ruleChangeOf = (verdict) => {
|
|
205
217
|
if (verdict.kind === "allow") return RULE_ALLOWS;
|
|
206
218
|
if (isGateRefusal(verdict)) return { kind: "refuses", verdict };
|
|
207
219
|
return NO_RULE_CHANGE;
|
|
208
220
|
};
|
|
209
|
-
var
|
|
210
|
-
|
|
221
|
+
var RULES_UNREAD = null;
|
|
222
|
+
var readRules = async (deps, signal) => {
|
|
223
|
+
if (!deps.readsRules) return RULES_UNREAD;
|
|
211
224
|
try {
|
|
212
|
-
return
|
|
225
|
+
return await deps.readsRules(signal);
|
|
213
226
|
} catch {
|
|
214
|
-
return
|
|
227
|
+
return RULES_UNREAD;
|
|
215
228
|
}
|
|
216
229
|
};
|
|
217
|
-
var
|
|
230
|
+
var readRuleChange = async (deps, signal) => {
|
|
231
|
+
const verdict = await readRules(deps, signal);
|
|
232
|
+
return verdict === RULES_UNREAD ? NO_RULE_CHANGE : ruleChangeOf(verdict);
|
|
233
|
+
};
|
|
234
|
+
var readRulesWithin = async (deps, limitMs) => {
|
|
218
235
|
const readOver = new AbortController();
|
|
219
|
-
const timeUp = deps.sleep(limitMs, readOver.signal).then(() =>
|
|
236
|
+
const timeUp = deps.sleep(limitMs, readOver.signal).then(() => RULES_UNREAD, () => RULES_UNREAD);
|
|
220
237
|
try {
|
|
221
|
-
return await Promise.race([
|
|
238
|
+
return await Promise.race([readRules(deps, readOver.signal), timeUp]);
|
|
222
239
|
} finally {
|
|
223
240
|
readOver.abort();
|
|
224
241
|
}
|
|
@@ -280,7 +297,13 @@ var pushWatchingForARule = async (deps) => {
|
|
|
280
297
|
}
|
|
281
298
|
};
|
|
282
299
|
var slotRetryStillFits = (deps) => deps.now() + SLOT_RETRY_MS <= deps.lastSlotAttemptAtMs;
|
|
283
|
-
var ruleOutcomeBeforeRetry = async (deps) =>
|
|
300
|
+
var ruleOutcomeBeforeRetry = async (deps) => {
|
|
301
|
+
const verdict = await readRulesWithin(deps, RULE_READ_BEFORE_RETRY_MS);
|
|
302
|
+
if (verdict === RULES_UNREAD) return null;
|
|
303
|
+
const ruled = outcomeOfRuleChange(ruleChangeOf(verdict));
|
|
304
|
+
if (ruled) return ruled;
|
|
305
|
+
return deps.slotWaitEndsOn?.(verdict) ? NO_FREE_SLOT : null;
|
|
306
|
+
};
|
|
284
307
|
var askWatchingForARule = async (deps) => {
|
|
285
308
|
for (; ; ) {
|
|
286
309
|
try {
|
|
@@ -761,6 +784,9 @@ var REFUSAL_REPORT_DEADLINE_MS = START_MS2 + (HOOK_BUDGETS.codex.budgetSeconds -
|
|
|
761
784
|
var agentNameFor = (input) => `Codex - ${projectNameFor(input.cwd)}`;
|
|
762
785
|
var describeFor = (input, lookup) => input.tool_name === "apply_patch" ? describeApplyPatch(input.tool_input?.command) ?? describeToolCall(lookup.tool, lookup.input, "hook") : describeToolCall(lookup.tool, lookup.input, "hook");
|
|
763
786
|
var AGENT_PROMPT_FOLLOWS_A_PRE_TOOL_USE_REFUSAL = false;
|
|
787
|
+
var HOOK_BUDGET_MS = hookMaxWaitSeconds("codex") * 1e3;
|
|
788
|
+
var SHORTEST_ASK_MS = 1;
|
|
789
|
+
var untilTheHookBudgetEnds = () => AbortSignal.timeout(Math.max(START_MS2 + HOOK_BUDGET_MS - Date.now(), SHORTEST_ASK_MS));
|
|
764
790
|
var pushQuestion = (apiKey, input, lookup, waitSeconds, mode, noLocalSurface, scope, watch, preToolUse) => {
|
|
765
791
|
const description = describeFor(input, lookup);
|
|
766
792
|
return pushQuestionAndWait(apiKey, {
|
|
@@ -786,7 +812,7 @@ var pushQuestion = (apiKey, input, lookup, waitSeconds, mode, noLocalSurface, sc
|
|
|
786
812
|
toolUseId: input.tool_use_id,
|
|
787
813
|
...preToolUse ? { agentPromptFollows: AGENT_PROMPT_FOLLOWS_A_PRE_TOOL_USE_REFUSAL } : {}
|
|
788
814
|
}
|
|
789
|
-
}, { agent: "codex", startMs: START_MS2, waitSeconds, askFailure: "wait_as_unavailable", signal: watch?.signal, onQuestionCreated: watch?.onQuestionCreated, rejoinable: preToolUse?.rejoinable });
|
|
815
|
+
}, { agent: "codex", startMs: START_MS2, waitSeconds, askFailure: "wait_as_unavailable", askSignal: untilTheHookBudgetEnds(), signal: watch?.signal, onQuestionCreated: watch?.onQuestionCreated, rejoinable: preToolUse?.rejoinable });
|
|
790
816
|
};
|
|
791
817
|
var codexStepsAside = (error, input) => {
|
|
792
818
|
announceSubscriptionRequired(error.upgradeUrl, input.session_id);
|
|
@@ -826,9 +852,9 @@ var codexGate = async (apiKey, input, signal) => {
|
|
|
826
852
|
return { verdict: resolveGate(gateInput), lookup, gateInput };
|
|
827
853
|
};
|
|
828
854
|
var SCOPE_BREACH_ASKS_ONCE = { lastSlotAttemptAtMs: START_MS2 };
|
|
829
|
-
var ruleWatchFor = (apiKey, input, scope,
|
|
855
|
+
var ruleWatchFor = (apiKey, input, scope, slotWait) => scope ? SCOPE_BREACH_ASKS_ONCE : {
|
|
830
856
|
readsRules: async (signal) => (await codexGate(apiKey, input, signal)).verdict,
|
|
831
|
-
|
|
857
|
+
...slotWait
|
|
832
858
|
};
|
|
833
859
|
var sessionKeyOf = (input) => input.session_id || DEFAULT_SESSION;
|
|
834
860
|
var fingerprintOf = (input) => codexCallFingerprint({
|
|
@@ -1012,6 +1038,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1012
1038
|
const preToolUse = {
|
|
1013
1039
|
rejoinable: rejoinableCodexCall(callFingerprint, toolPolicy, scope)
|
|
1014
1040
|
};
|
|
1041
|
+
const slotWait = slotWaitFor({ startMs: START_MS2, waitSeconds, agent: "codex", silenceApproves: approvesWhenUnanswered(toolPolicy) });
|
|
1015
1042
|
let asked;
|
|
1016
1043
|
try {
|
|
1017
1044
|
asked = await askWatchingForARule({
|
|
@@ -1019,7 +1046,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1019
1046
|
withdraw: (correlationId) => withdrawQuestion(apiKey, correlationId),
|
|
1020
1047
|
sleep: sleepUnlessAborted,
|
|
1021
1048
|
now: Date.now,
|
|
1022
|
-
...ruleWatchFor(apiKey, input, scope,
|
|
1049
|
+
...ruleWatchFor(apiKey, input, scope, slotWait)
|
|
1023
1050
|
});
|
|
1024
1051
|
} catch (error) {
|
|
1025
1052
|
if (error instanceof SubscriptionRequiredError) return recordPreToolUse(callKey, codexStepsAside(error, input));
|
|
@@ -1053,7 +1080,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1053
1080
|
};
|
|
1054
1081
|
var repairCodexHoldsQuietly = async () => {
|
|
1055
1082
|
try {
|
|
1056
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
1083
|
+
const { repairCodexHolds } = await import("../reapply-SYNZ2IZY.js");
|
|
1057
1084
|
repairCodexHolds();
|
|
1058
1085
|
} catch {
|
|
1059
1086
|
return;
|
|
@@ -8,8 +8,8 @@ import "../chunk-MLKGABMK.js";
|
|
|
8
8
|
var args = process.argv.slice(2);
|
|
9
9
|
if (args[0] === "codex") args.shift();
|
|
10
10
|
var appBehindTheProxy = args[0] === "--desktop-proxy" && args[2] === "--" ? args[1] : void 0;
|
|
11
|
-
if (args[0] !== "--desktop-proxy") (await import("../usage-
|
|
12
|
-
var loadWhatReadsTheAccount = () => Promise.all([import("../config-
|
|
11
|
+
if (args[0] !== "--desktop-proxy") (await import("../usage-QMQZCRF2.js")).exitOnHelpFlag("codex");
|
|
12
|
+
var loadWhatReadsTheAccount = () => Promise.all([import("../config-K7JUY27J.js"), import("../identity-IMSNZJZL.js")]);
|
|
13
13
|
var loadedWhenThePassThroughStarted = appBehindTheProxy === void 0 ? null : loadWhatReadsTheAccount().catch(() => null);
|
|
14
14
|
var desktopAccount = async () => {
|
|
15
15
|
try {
|
|
@@ -19,7 +19,7 @@ var desktopAccount = async () => {
|
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
var desktopLaunch = await import("../codex-desktop-launch-
|
|
22
|
+
var desktopLaunch = await import("../codex-desktop-launch-GG5K77QD.js").catch(() => null);
|
|
23
23
|
if (desktopLaunch === null && appBehindTheProxy !== void 0) {
|
|
24
24
|
process.exitCode = await letCodexRunWithoutPushary(appBehindTheProxy, args.slice(3));
|
|
25
25
|
} else {
|
|
@@ -27,15 +27,15 @@ if (desktopLaunch === null && appBehindTheProxy !== void 0) {
|
|
|
27
27
|
const stop = () => abort.abort();
|
|
28
28
|
if (!args[0]?.startsWith("--desktop")) for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) process.on(signal, stop);
|
|
29
29
|
try {
|
|
30
|
-
const { codexDesktopCommand } = desktopLaunch ?? await import("../codex-desktop-launch-
|
|
30
|
+
const { codexDesktopCommand } = desktopLaunch ?? await import("../codex-desktop-launch-GG5K77QD.js");
|
|
31
31
|
const desktop = await codexDesktopCommand(args, [process.execPath, ...process.execArgv, process.argv[1], "codex"], desktopAccount);
|
|
32
32
|
if (desktop !== null) process.exitCode = desktop;
|
|
33
33
|
else {
|
|
34
34
|
const [{ getApiKey, getBaseUrl }, { getMachineId }, { resolveProviderBinary }, { codexSessionDirectory, launchCodexSession }] = await Promise.all([
|
|
35
|
-
import("../config-
|
|
36
|
-
import("../identity-
|
|
37
|
-
import("../live-capabilities-
|
|
38
|
-
import("../codex-session-launch-
|
|
35
|
+
import("../config-K7JUY27J.js"),
|
|
36
|
+
import("../identity-IMSNZJZL.js"),
|
|
37
|
+
import("../live-capabilities-BBUGAZJV.js"),
|
|
38
|
+
import("../codex-session-launch-XR46HRYK.js")
|
|
39
39
|
]);
|
|
40
40
|
const binary = resolveProviderBinary("codex");
|
|
41
41
|
if (!binary) throw new Error("Install Codex first, then run pushary codex");
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reportEvent
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-TBQT2TA6.js";
|
|
5
|
+
import "../chunk-3JNBZF4G.js";
|
|
6
6
|
import {
|
|
7
7
|
askUser,
|
|
8
8
|
isDecisionStopped,
|
|
9
9
|
waitForAnswer
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-2NHK4PUR.js";
|
|
11
|
+
import "../chunk-OLU5L3VB.js";
|
|
12
12
|
import "../chunk-POFBE6ZY.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-KOJJ2LPJ.js";
|
|
14
|
+
import "../chunk-6D35FDXC.js";
|
|
15
15
|
import {
|
|
16
16
|
projectNameFor
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-7IG54T3H.js";
|
|
18
|
+
import "../chunk-L7BHOFTF.js";
|
|
19
|
+
import "../chunk-6NUEY2FT.js";
|
|
20
20
|
import {
|
|
21
21
|
getMachineId
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-AYM7IBC5.js";
|
|
23
|
+
import "../chunk-GBKMTVG6.js";
|
|
24
|
+
import "../chunk-BWOQACK7.js";
|
|
25
|
+
import "../chunk-AO5BRDKS.js";
|
|
26
26
|
import {
|
|
27
27
|
getApiKey
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-KZFNXNFH.js";
|
|
29
29
|
import "../chunk-CINBAX5G.js";
|
|
30
30
|
import "../chunk-PM2NRK6Y.js";
|
|
31
31
|
import "../chunk-BG4HHB7E.js";
|
|
32
32
|
import {
|
|
33
33
|
NPX_LATEST_COMMAND
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-YUG7PCPJ.js";
|
|
35
35
|
import "../chunk-UQTQ6HPO.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-3JU27SD5.js";
|
|
37
37
|
import "../chunk-MLKGABMK.js";
|
|
38
38
|
|
|
39
39
|
// bin/pushary-codex.ts
|