@pushary/agent-hooks 1.9.161 → 1.9.162
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 +5 -0
- package/dist/{api-WHTSBK74.js → api-7NPCSUGY.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 +11 -11
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +38 -38
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +187 -52
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +34 -34
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +45 -45
- package/dist/bin/pushary-disconnect.js +29 -29
- package/dist/bin/pushary-doctor.js +46 -46
- 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 +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +29 -29
- 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 +33 -33
- 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 +38 -38
- package/dist/bin/pushary-setup.js +54 -54
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +35 -35
- 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 +43 -43
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-LRTRIDOC.js → chunk-2H7SDIM7.js} +1 -1
- package/dist/{chunk-6OSE2IRG.js → chunk-44DRCGP2.js} +2 -2
- package/dist/{chunk-OQAIMSHQ.js → chunk-4IBUBMMP.js} +1 -1
- package/dist/{chunk-PXLWR4TG.js → chunk-4U3GYVIW.js} +2 -2
- package/dist/{chunk-7AQTKVA6.js → chunk-53IBMDX2.js} +4 -4
- package/dist/{chunk-DLZ6RK2P.js → chunk-5TU26542.js} +3 -3
- package/dist/{chunk-R7RN3Z2T.js → chunk-5ZS73ZLX.js} +2 -2
- package/dist/{chunk-VYNC7EYV.js → chunk-644AKJMN.js} +2 -2
- package/dist/{chunk-OSCZ4MNE.js → chunk-6QQUGYH6.js} +5 -5
- package/dist/{chunk-KKDKPWGM.js → chunk-72SYV43F.js} +1 -1
- package/dist/{chunk-UZTGEACF.js → chunk-A5DXHJVS.js} +5 -5
- package/dist/{chunk-BTYHDCAP.js → chunk-AP26EU5H.js} +3 -3
- package/dist/{chunk-YEB7YWW7.js → chunk-AQKMKVAD.js} +8 -8
- package/dist/{chunk-G44FOBHN.js → chunk-BHT76IIB.js} +4 -4
- package/dist/{chunk-OOODAKCC.js → chunk-BMOGTNLK.js} +6 -6
- package/dist/{chunk-S6ARXVVZ.js → chunk-CSDB5VTI.js} +1 -1
- package/dist/{chunk-DHUWAUVL.js → chunk-CWH4LBUW.js} +1 -1
- package/dist/{chunk-7IHVTLHK.js → chunk-DAMTDSAE.js} +1 -1
- package/dist/{chunk-VIS3EVRH.js → chunk-DSWUG4NV.js} +1 -1
- package/dist/{chunk-WNIDBPT2.js → chunk-EFKJCBWA.js} +6 -6
- package/dist/{chunk-WTWBHE2Y.js → chunk-EKELMI3A.js} +5 -5
- package/dist/{chunk-W6FCSBTM.js → chunk-EPQTCF6A.js} +2 -2
- package/dist/{chunk-QLEFFGCN.js → chunk-FIR2MGSB.js} +1 -1
- package/dist/{chunk-Z5DOTAFI.js → chunk-G5IL6C6S.js} +3 -3
- package/dist/{chunk-26GVUJMR.js → chunk-G6M6YJK4.js} +1 -1
- package/dist/{chunk-ONMAG5BF.js → chunk-GJOHGES6.js} +2 -2
- package/dist/{chunk-YGHHDDIM.js → chunk-H7OY4AAT.js} +4 -4
- package/dist/{chunk-WAFJGQSE.js → chunk-HAOYL5JP.js} +4 -4
- package/dist/{chunk-2ABUBECK.js → chunk-I35XT5YY.js} +4 -4
- package/dist/{chunk-RZBCXPOV.js → chunk-I5ANEYUK.js} +1 -1
- package/dist/{chunk-GJA3KQ3T.js → chunk-I5HCOOAA.js} +5 -5
- package/dist/{chunk-HKI4RMZF.js → chunk-IUXXEM4Q.js} +7 -7
- package/dist/{chunk-AVRRD6AY.js → chunk-J6KDUXJF.js} +1 -1
- package/dist/{chunk-L2ADRR62.js → chunk-JCTS7COD.js} +5 -5
- package/dist/{chunk-UH7GJHOO.js → chunk-L3LFCZ5D.js} +3 -3
- package/dist/{chunk-EGEZKJHX.js → chunk-L44II2WD.js} +5 -5
- package/dist/{chunk-I5HXAELM.js → chunk-L6BMVCQQ.js} +3 -3
- package/dist/{chunk-WCXVPYSD.js → chunk-L6NG6EZS.js} +1 -1
- package/dist/{chunk-MPYQW4IV.js → chunk-LGR7WXI5.js} +2 -2
- package/dist/{chunk-ZIKSHD5M.js → chunk-LQDIOUVU.js} +2 -2
- package/dist/{chunk-U36COV3Z.js → chunk-LVRFOGQY.js} +11 -11
- package/dist/{chunk-55AHQF63.js → chunk-M2ZGNZRS.js} +2 -0
- package/dist/{chunk-Y23YO46U.js → chunk-M74WT5NA.js} +3 -3
- package/dist/{chunk-UJT32RSQ.js → chunk-NX3Y36VY.js} +6 -6
- package/dist/{chunk-KDHLOPSO.js → chunk-OH2WAG47.js} +1 -1
- package/dist/{chunk-7VXHWU7A.js → chunk-P4KAYIMX.js} +4 -4
- package/dist/{chunk-5UBV26GO.js → chunk-PIIKLAFY.js} +3 -3
- package/dist/{chunk-3F6HE5AK.js → chunk-QKNHNDOY.js} +2 -2
- package/dist/{chunk-6NWESDKK.js → chunk-RKURAOFK.js} +4 -4
- package/dist/{chunk-TYB2QGJD.js → chunk-RUAGEPUJ.js} +5 -5
- package/dist/{chunk-DHX5JZSH.js → chunk-SFYX32FX.js} +4 -4
- package/dist/{chunk-OZK75SFS.js → chunk-SKA3U7QI.js} +9 -9
- package/dist/{chunk-OXZ75E2Y.js → chunk-SQ4RPZ6O.js} +4 -4
- package/dist/{chunk-J36DDPJV.js → chunk-SRSXZINE.js} +1 -1
- package/dist/{chunk-AVGYUZVK.js → chunk-SVVZFXDX.js} +6 -6
- package/dist/{chunk-ANYLSZN3.js → chunk-SVWCMYR7.js} +6 -6
- package/dist/{chunk-LVGRSC44.js → chunk-TMDCIVZ2.js} +5 -5
- package/dist/{chunk-7WLKE7QN.js → chunk-TUXX7TKR.js} +2 -2
- package/dist/{chunk-GNHXDRO6.js → chunk-U4LHE5DH.js} +1 -1
- package/dist/{chunk-F5NJUDGA.js → chunk-UBY7NJCU.js} +18 -18
- package/dist/{chunk-BGU56XCS.js → chunk-UPCIKGWA.js} +1 -1
- package/dist/{chunk-2PY5DJTC.js → chunk-V3TWYF32.js} +1 -1
- package/dist/{chunk-E7K6YCWY.js → chunk-VGLIGBAJ.js} +2 -2
- package/dist/{chunk-HKCJZGAJ.js → chunk-VUGF2OC7.js} +3 -3
- package/dist/{chunk-YD45WNVQ.js → chunk-W3FE7GTH.js} +1 -1
- package/dist/{chunk-XWCLKWKP.js → chunk-WCWWO5QL.js} +1 -1
- package/dist/{chunk-DWMQZM52.js → chunk-WIFMTEQI.js} +1 -1
- package/dist/{chunk-HHNC6FWO.js → chunk-WWSR5LMP.js} +1 -1
- package/dist/{chunk-ATI5XO3E.js → chunk-X5QSIMXA.js} +3 -3
- package/dist/{chunk-IGSSDODQ.js → chunk-XIICM4TX.js} +1 -1
- package/dist/{chunk-MGOBIHXH.js → chunk-XOSSXRIR.js} +10 -10
- package/dist/{chunk-N4OKAE65.js → chunk-Y3ELKLNH.js} +15 -13
- package/dist/{chunk-FZCEPG6J.js → chunk-YEVRMDG7.js} +2 -2
- package/dist/{chunk-IHYKSPWH.js → chunk-YH6EHCKQ.js} +8 -6
- package/dist/{chunk-Y553AEQU.js → chunk-YPG3RXWO.js} +3 -3
- package/dist/{chunk-4ZNZS6FM.js → chunk-YUF3AYAP.js} +5 -5
- package/dist/{chunk-R7NAG65X.js → chunk-Z23SHFIC.js} +2 -2
- package/dist/{chunk-AT5ZLKMQ.js → chunk-ZC42UG7B.js} +5 -5
- package/dist/{chunk-5S66DHJS.js → chunk-ZT55PJSW.js} +3 -3
- package/dist/{chunk-U3FVVMB3.js → chunk-ZWNFP4HZ.js} +1 -1
- package/dist/{codex-app-cards-switch-DPCGWQSX.js → codex-app-cards-switch-PJEY3EU5.js} +11 -11
- package/dist/{codex-card-routing-NFIEH66Q.js → codex-card-routing-MNAMCRPO.js} +2 -2
- package/dist/{codex-desktop-launch-MARNBY23.js → codex-desktop-launch-AUNDRYOL.js} +1 -1
- package/dist/{codex-session-launch-LSNU7CUV.js → codex-session-launch-IZNSTT7N.js} +20 -20
- package/dist/{config-5D34OAYM.js → config-LG2RJO37.js} +3 -3
- package/dist/{global-upgrade-5XBO6FYU.js → global-upgrade-QE5Q3BYW.js} +9 -9
- package/dist/{identity-6QEFK7PW.js → identity-3BT6LWOP.js} +4 -4
- package/dist/{live-capabilities-6KOGY6KM.js → live-capabilities-IKTQBLVH.js} +4 -4
- package/dist/{paths-7M6V62NO.js → paths-VEUTZJOY.js} +3 -3
- package/dist/{reapply-ZECM5JRX.js → reapply-BC2AF55M.js} +31 -31
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-DI4JY2CU.js → upgrade-lock-NUGEPR75.js} +4 -4
- package/dist/{usage-X4BIHYR5.js → usage-TEB5CX2Y.js} +3 -3
- package/package.json +1 -1
|
@@ -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-AQKMKVAD.js";
|
|
5
|
+
import "../chunk-CSDB5VTI.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveProviderBinary
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-L3LFCZ5D.js";
|
|
9
|
+
import "../chunk-EPQTCF6A.js";
|
|
10
|
+
import "../chunk-ZWNFP4HZ.js";
|
|
11
11
|
import {
|
|
12
12
|
withSpawnProcessOwnership
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-LGR7WXI5.js";
|
|
14
14
|
import "../chunk-CYTPQDQY.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-PIIKLAFY.js";
|
|
16
16
|
import "../chunk-352FIVVH.js";
|
|
17
17
|
import {
|
|
18
18
|
transcriptsEnabled
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-W3FE7GTH.js";
|
|
20
20
|
import "../chunk-Y6ILCLKE.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-FIR2MGSB.js";
|
|
22
|
+
import "../chunk-YH6EHCKQ.js";
|
|
23
|
+
import "../chunk-OH2WAG47.js";
|
|
24
24
|
import "../chunk-POFBE6ZY.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-6QQUGYH6.js";
|
|
26
|
+
import "../chunk-WIFMTEQI.js";
|
|
27
|
+
import "../chunk-L6BMVCQQ.js";
|
|
28
|
+
import "../chunk-VUGF2OC7.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-DSWUG4NV.js";
|
|
32
|
+
import "../chunk-M74WT5NA.js";
|
|
33
|
+
import "../chunk-YEVRMDG7.js";
|
|
34
|
+
import "../chunk-TUXX7TKR.js";
|
|
35
|
+
import "../chunk-HAOYL5JP.js";
|
|
36
36
|
import {
|
|
37
37
|
getApiKey,
|
|
38
38
|
getBaseUrl
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-DAMTDSAE.js";
|
|
40
40
|
import "../chunk-YU2EUD7O.js";
|
|
41
41
|
import "../chunk-TODDEIYG.js";
|
|
42
42
|
import "../chunk-BG4HHB7E.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-I5ANEYUK.js";
|
|
44
44
|
import "../chunk-UQTQ6HPO.js";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-M2ZGNZRS.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-L6NG6EZS.js";
|
|
5
5
|
import {
|
|
6
6
|
parseCodexHookInput,
|
|
7
7
|
pushQuestionAndWait,
|
|
8
8
|
scopeQuestionOf
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-YUF3AYAP.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-SRSXZINE.js";
|
|
13
13
|
import {
|
|
14
14
|
askAgentQuestions
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-EKELMI3A.js";
|
|
16
16
|
import {
|
|
17
17
|
reportMachineDenial
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-ZT55PJSW.js";
|
|
19
19
|
import {
|
|
20
20
|
isGatingMoment,
|
|
21
21
|
recordKeylessMoment
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-WWSR5LMP.js";
|
|
23
23
|
import {
|
|
24
24
|
triggerAutoUpdate
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-QKNHNDOY.js";
|
|
26
26
|
import {
|
|
27
27
|
readHookInput
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
28
|
+
} from "../chunk-L44II2WD.js";
|
|
29
|
+
import "../chunk-P4KAYIMX.js";
|
|
30
30
|
import {
|
|
31
31
|
announceSubscriptionRequired,
|
|
32
32
|
isDeferAnswer
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
33
|
+
} from "../chunk-CWH4LBUW.js";
|
|
34
|
+
import "../chunk-XOSSXRIR.js";
|
|
35
35
|
import "../chunk-WHB622LP.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-TMDCIVZ2.js";
|
|
37
|
+
import "../chunk-EFKJCBWA.js";
|
|
38
|
+
import "../chunk-H7OY4AAT.js";
|
|
39
39
|
import {
|
|
40
40
|
CODEX_AGENT,
|
|
41
41
|
DEFAULT_SESSION,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
toPolicyLookup,
|
|
68
68
|
toPolicyLookups,
|
|
69
69
|
userScope
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-Y3ELKLNH.js";
|
|
71
71
|
import {
|
|
72
72
|
codexReviewerDenialsSince,
|
|
73
73
|
deriveActionBody,
|
|
@@ -80,19 +80,20 @@ import {
|
|
|
80
80
|
scanCodexGuardianReviews,
|
|
81
81
|
scopePathFor,
|
|
82
82
|
sessionIdentityOf
|
|
83
|
-
} from "../chunk-
|
|
84
|
-
import "../chunk-
|
|
85
|
-
import "../chunk-
|
|
83
|
+
} from "../chunk-G6M6YJK4.js";
|
|
84
|
+
import "../chunk-J6KDUXJF.js";
|
|
85
|
+
import "../chunk-V3TWYF32.js";
|
|
86
86
|
import "../chunk-YPY4YCIZ.js";
|
|
87
|
-
import "../chunk-
|
|
87
|
+
import "../chunk-PIIKLAFY.js";
|
|
88
88
|
import "../chunk-352FIVVH.js";
|
|
89
|
-
import "../chunk-
|
|
89
|
+
import "../chunk-W3FE7GTH.js";
|
|
90
90
|
import "../chunk-Y6ILCLKE.js";
|
|
91
91
|
import {
|
|
92
92
|
repoKeyFor,
|
|
93
93
|
repositoryScopeFor
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-FIR2MGSB.js";
|
|
95
95
|
import {
|
|
96
|
+
ABANDONED_WAIT,
|
|
96
97
|
cancelQuestion,
|
|
97
98
|
claimBlockedAction,
|
|
98
99
|
exitAfterClientReports,
|
|
@@ -100,28 +101,30 @@ import {
|
|
|
100
101
|
isQuestionLimitRefusal,
|
|
101
102
|
pollForAnswer,
|
|
102
103
|
requestGate,
|
|
103
|
-
sendNotification
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
sendNotification,
|
|
105
|
+
sleepUnlessAborted,
|
|
106
|
+
withdrawQuestion
|
|
107
|
+
} from "../chunk-YH6EHCKQ.js";
|
|
108
|
+
import "../chunk-OH2WAG47.js";
|
|
106
109
|
import "../chunk-POFBE6ZY.js";
|
|
107
110
|
import {
|
|
108
111
|
SubscriptionRequiredError
|
|
109
|
-
} from "../chunk-
|
|
110
|
-
import "../chunk-
|
|
111
|
-
import "../chunk-
|
|
112
|
-
import "../chunk-
|
|
112
|
+
} from "../chunk-6QQUGYH6.js";
|
|
113
|
+
import "../chunk-WIFMTEQI.js";
|
|
114
|
+
import "../chunk-L6BMVCQQ.js";
|
|
115
|
+
import "../chunk-VUGF2OC7.js";
|
|
113
116
|
import {
|
|
114
117
|
getMachineId
|
|
115
|
-
} from "../chunk-
|
|
116
|
-
import "../chunk-
|
|
117
|
-
import "../chunk-
|
|
118
|
+
} from "../chunk-DSWUG4NV.js";
|
|
119
|
+
import "../chunk-M74WT5NA.js";
|
|
120
|
+
import "../chunk-YEVRMDG7.js";
|
|
118
121
|
import {
|
|
119
122
|
canonicalJson
|
|
120
|
-
} from "../chunk-
|
|
121
|
-
import "../chunk-
|
|
123
|
+
} from "../chunk-TUXX7TKR.js";
|
|
124
|
+
import "../chunk-HAOYL5JP.js";
|
|
122
125
|
import {
|
|
123
126
|
getApiKey
|
|
124
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-DAMTDSAE.js";
|
|
125
128
|
import "../chunk-YU2EUD7O.js";
|
|
126
129
|
import {
|
|
127
130
|
writeFileAtomic
|
|
@@ -129,7 +132,7 @@ import {
|
|
|
129
132
|
import {
|
|
130
133
|
EXIT
|
|
131
134
|
} from "../chunk-BG4HHB7E.js";
|
|
132
|
-
import "../chunk-
|
|
135
|
+
import "../chunk-I5ANEYUK.js";
|
|
133
136
|
import "../chunk-UQTQ6HPO.js";
|
|
134
137
|
import {
|
|
135
138
|
CODEX_RESCUE_STOP_RESERVE_SECONDS,
|
|
@@ -151,20 +154,136 @@ import {
|
|
|
151
154
|
editGoesToTheAgentsPrompt,
|
|
152
155
|
effectiveWaitSeconds,
|
|
153
156
|
hookHoldWindowMs,
|
|
157
|
+
hookMaxWaitSeconds,
|
|
154
158
|
hookWaitDeadline,
|
|
155
159
|
isCodexQuestionTool,
|
|
160
|
+
isGateRefusal,
|
|
156
161
|
isPusharyOwnTool,
|
|
157
162
|
parseCodexQuestions,
|
|
158
163
|
questionHandedToTheTerminal,
|
|
159
164
|
refusesWhenUnanswered,
|
|
160
165
|
resolveGate,
|
|
161
166
|
unapprovedScopeReason
|
|
162
|
-
} from "../chunk-
|
|
167
|
+
} from "../chunk-M2ZGNZRS.js";
|
|
163
168
|
import "../chunk-MLKGABMK.js";
|
|
164
169
|
|
|
165
170
|
// bin/pushary-codex-hook.ts
|
|
166
171
|
import { basename } from "path";
|
|
167
172
|
|
|
173
|
+
// src/rule-watched-ask.ts
|
|
174
|
+
var SLOT_RETRY_MS = 5e3;
|
|
175
|
+
var MAX_SLOT_WAIT_SECONDS = 30;
|
|
176
|
+
var RULE_READ_BEFORE_RETRY_MS = 3e3;
|
|
177
|
+
var QUESTION_CREATE_ALLOWANCE_MS = 5e3;
|
|
178
|
+
var SLOT_ATTEMPT_MARGIN_MS = RULE_READ_BEFORE_RETRY_MS + QUESTION_CREATE_ALLOWANCE_MS;
|
|
179
|
+
var FIRST_RULE_RECHECK_MS = 4e3;
|
|
180
|
+
var LONGEST_RULE_RECHECK_MS = 15e3;
|
|
181
|
+
var RULE_RECHECK_GROWTH = 1.5;
|
|
182
|
+
var NO_RULE_CHANGE = { kind: "none" };
|
|
183
|
+
var RULE_ALLOWS = { kind: "allows" };
|
|
184
|
+
var COVERED_BY_RULE = { kind: "covered_by_rule" };
|
|
185
|
+
var NO_FREE_SLOT = { kind: "no_free_slot" };
|
|
186
|
+
var lastSlotAttemptAt = (startMs, waitSeconds, agent) => {
|
|
187
|
+
const budgetMs = hookMaxWaitSeconds(agent) * 1e3;
|
|
188
|
+
const windowMs = Math.min(Math.max(waitSeconds, 0) * 1e3, budgetMs);
|
|
189
|
+
const slotWaitMs = Math.min(windowMs, budgetMs - windowMs - SLOT_ATTEMPT_MARGIN_MS, MAX_SLOT_WAIT_SECONDS * 1e3);
|
|
190
|
+
return startMs + Math.max(slotWaitMs, 0);
|
|
191
|
+
};
|
|
192
|
+
var nextRuleRecheckMs = (previousMs) => Math.min(Math.round(previousMs * RULE_RECHECK_GROWTH), LONGEST_RULE_RECHECK_MS);
|
|
193
|
+
var ruleChangeOf = (verdict) => {
|
|
194
|
+
if (verdict.kind === "allow") return RULE_ALLOWS;
|
|
195
|
+
if (isGateRefusal(verdict)) return { kind: "refuses", verdict };
|
|
196
|
+
return NO_RULE_CHANGE;
|
|
197
|
+
};
|
|
198
|
+
var readRuleChange = async (deps, signal) => {
|
|
199
|
+
if (!deps.readsRules) return NO_RULE_CHANGE;
|
|
200
|
+
try {
|
|
201
|
+
return ruleChangeOf(await deps.readsRules(signal));
|
|
202
|
+
} catch {
|
|
203
|
+
return NO_RULE_CHANGE;
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
var readRuleChangeWithin = async (deps, limitMs) => {
|
|
207
|
+
const readOver = new AbortController();
|
|
208
|
+
const timeUp = deps.sleep(limitMs, readOver.signal).then(() => NO_RULE_CHANGE, () => NO_RULE_CHANGE);
|
|
209
|
+
try {
|
|
210
|
+
return await Promise.race([readRuleChange(deps, readOver.signal), timeUp]);
|
|
211
|
+
} finally {
|
|
212
|
+
readOver.abort();
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
var ruleSettlesAFailedAsk = (change, error) => change.kind === "refuses" || isQuestionLimitRefusal(error);
|
|
216
|
+
var outcomeOfRuleChange = (change) => {
|
|
217
|
+
if (change.kind === "allows") return COVERED_BY_RULE;
|
|
218
|
+
if (change.kind === "refuses") return { kind: "refused_by_rule", verdict: change.verdict };
|
|
219
|
+
return null;
|
|
220
|
+
};
|
|
221
|
+
var watchForARuleChange = async (deps, waitOver) => {
|
|
222
|
+
let intervalMs = FIRST_RULE_RECHECK_MS;
|
|
223
|
+
while (!waitOver.aborted) {
|
|
224
|
+
await deps.sleep(intervalMs, waitOver);
|
|
225
|
+
if (waitOver.aborted) return NO_RULE_CHANGE;
|
|
226
|
+
const change = await readRuleChange(deps, waitOver);
|
|
227
|
+
if (change.kind !== "none" && !waitOver.aborted) return change;
|
|
228
|
+
intervalMs = nextRuleRecheckMs(intervalMs);
|
|
229
|
+
}
|
|
230
|
+
return NO_RULE_CHANGE;
|
|
231
|
+
};
|
|
232
|
+
var isSettled = (answer) => answer.answered || isDecisionStopped(answer);
|
|
233
|
+
var wasAbandonedForARule = (answer) => answer.status === ABANDONED_WAIT.status;
|
|
234
|
+
var settleAfterARuleChange = async (deps, pushed, correlationId, change) => {
|
|
235
|
+
const late = correlationId.length > 0 ? await deps.withdraw(correlationId) : pushed.answer;
|
|
236
|
+
if (change.kind === "refuses") return { kind: "refused_by_rule", verdict: change.verdict };
|
|
237
|
+
return isSettled(late) ? { kind: "pushed", pushed: { ...pushed, answer: late } } : COVERED_BY_RULE;
|
|
238
|
+
};
|
|
239
|
+
var pushWatchingForARule = async (deps) => {
|
|
240
|
+
const ruleChanged = new AbortController();
|
|
241
|
+
const waitOver = new AbortController();
|
|
242
|
+
let correlationId = "";
|
|
243
|
+
let change = NO_RULE_CHANGE;
|
|
244
|
+
if (deps.readsRules) {
|
|
245
|
+
void watchForARuleChange(deps, waitOver.signal).catch(() => NO_RULE_CHANGE).then((seen) => {
|
|
246
|
+
if (seen.kind === "none") return;
|
|
247
|
+
change = seen;
|
|
248
|
+
ruleChanged.abort();
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
try {
|
|
252
|
+
let pushed;
|
|
253
|
+
try {
|
|
254
|
+
pushed = await deps.push({
|
|
255
|
+
signal: ruleChanged.signal,
|
|
256
|
+
onQuestionCreated: (created) => {
|
|
257
|
+
correlationId = created;
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
} catch (error) {
|
|
261
|
+
const ruled = ruleSettlesAFailedAsk(change, error) ? outcomeOfRuleChange(change) : null;
|
|
262
|
+
if (ruled) return ruled;
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
if (change.kind === "none" || !wasAbandonedForARule(pushed.answer)) return { kind: "pushed", pushed };
|
|
266
|
+
return await settleAfterARuleChange(deps, pushed, correlationId, change);
|
|
267
|
+
} finally {
|
|
268
|
+
waitOver.abort();
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
var slotRetryStillFits = (deps) => deps.now() + SLOT_RETRY_MS <= deps.lastSlotAttemptAtMs;
|
|
272
|
+
var ruleOutcomeBeforeRetry = async (deps) => outcomeOfRuleChange(await readRuleChangeWithin(deps, RULE_READ_BEFORE_RETRY_MS));
|
|
273
|
+
var askWatchingForARule = async (deps) => {
|
|
274
|
+
for (; ; ) {
|
|
275
|
+
try {
|
|
276
|
+
return await pushWatchingForARule(deps);
|
|
277
|
+
} catch (error) {
|
|
278
|
+
if (!isQuestionLimitRefusal(error)) throw error;
|
|
279
|
+
}
|
|
280
|
+
if (!slotRetryStillFits(deps)) return NO_FREE_SLOT;
|
|
281
|
+
await deps.sleep(SLOT_RETRY_MS);
|
|
282
|
+
const ruled = await ruleOutcomeBeforeRetry(deps);
|
|
283
|
+
if (ruled) return ruled;
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
168
287
|
// src/codex-call-decision.ts
|
|
169
288
|
import { createHash } from "crypto";
|
|
170
289
|
var CODEX_DECISION_TTL_MS = 60 * 1e3;
|
|
@@ -600,7 +719,7 @@ var callKeyFor = (input) => codexCallKey({
|
|
|
600
719
|
var START_MS2 = Date.now();
|
|
601
720
|
var agentNameFor = (input) => `Codex - ${basename(input.cwd ?? process.cwd())}`;
|
|
602
721
|
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");
|
|
603
|
-
var pushQuestion = (apiKey, input, lookup, waitSeconds, mode, noLocalSurface, scope) => {
|
|
722
|
+
var pushQuestion = (apiKey, input, lookup, waitSeconds, mode, noLocalSurface, scope, watch) => {
|
|
604
723
|
const description = describeFor(input, lookup);
|
|
605
724
|
return pushQuestionAndWait(apiKey, {
|
|
606
725
|
description,
|
|
@@ -624,7 +743,7 @@ var pushQuestion = (apiKey, input, lookup, waitSeconds, mode, noLocalSurface, sc
|
|
|
624
743
|
// the same way, instead of putting the same approval on the phone twice.
|
|
625
744
|
toolUseId: input.tool_use_id
|
|
626
745
|
}
|
|
627
|
-
}, { agent: "codex", startMs: START_MS2, waitSeconds, askFailure: "wait_as_unavailable" });
|
|
746
|
+
}, { agent: "codex", startMs: START_MS2, waitSeconds, askFailure: "wait_as_unavailable", signal: watch?.signal, onQuestionCreated: watch?.onQuestionCreated });
|
|
628
747
|
};
|
|
629
748
|
var codexStepsAside = (error, input) => {
|
|
630
749
|
announceSubscriptionRequired(error.upgradeUrl, input.session_id);
|
|
@@ -643,12 +762,12 @@ var notifyApprovalNeeded = async (apiKey, input, lookup) => {
|
|
|
643
762
|
} catch {
|
|
644
763
|
}
|
|
645
764
|
};
|
|
646
|
-
var codexGate = async (apiKey, input) => {
|
|
647
|
-
const modeState = await fetchModeState(apiKey, input.session_id);
|
|
765
|
+
var codexGate = async (apiKey, input, signal) => {
|
|
766
|
+
const modeState = await fetchModeState(apiKey, input.session_id, 0, signal);
|
|
648
767
|
const policyRequest = policyRequestFor("codex");
|
|
649
768
|
const lookup = toPolicyLookup(input.tool_name ?? "", input.tool_input ?? {}, input.cwd);
|
|
650
769
|
const lookups = toPolicyLookups(input.tool_name ?? "", input.tool_input ?? {}, input.cwd);
|
|
651
|
-
const config = await getPolicy(apiKey, modeState.policyVersion, policyRequest.agent, policyRequest.repoAware, input.session_id);
|
|
770
|
+
const config = await getPolicy(apiKey, modeState.policyVersion, policyRequest.agent, policyRequest.repoAware, input.session_id, signal);
|
|
652
771
|
const gateInput = {
|
|
653
772
|
modeState,
|
|
654
773
|
config,
|
|
@@ -663,6 +782,15 @@ var codexGate = async (apiKey, input) => {
|
|
|
663
782
|
};
|
|
664
783
|
return { verdict: resolveGate(gateInput), lookup, gateInput };
|
|
665
784
|
};
|
|
785
|
+
var SCOPE_BREACH_ASKS_ONCE = { lastSlotAttemptAtMs: START_MS2 };
|
|
786
|
+
var ruleWatchFor = (apiKey, input, scope, waitSeconds) => scope ? SCOPE_BREACH_ASKS_ONCE : {
|
|
787
|
+
readsRules: async (signal) => (await codexGate(apiKey, input, signal)).verdict,
|
|
788
|
+
lastSlotAttemptAtMs: lastSlotAttemptAt(START_MS2, waitSeconds, "codex")
|
|
789
|
+
};
|
|
790
|
+
var refusedByRule = async (input, lookup, verdict) => {
|
|
791
|
+
await reportMachineDenial({ ...input, tool_name: lookup.tool, tool_input: lookup.input }, verdict, CODEX_AGENT);
|
|
792
|
+
return codexDeny(verdict.kind === "kill" ? KILL_REASON : verdict.reason);
|
|
793
|
+
};
|
|
666
794
|
var callsPusharysOwnTool = (input) => input.tool_name !== void 0 && isPusharyOwnTool(input.tool_name);
|
|
667
795
|
var decidePermissionRequest = async (input) => {
|
|
668
796
|
if (callsPusharysOwnTool(input)) return codexPass();
|
|
@@ -772,10 +900,7 @@ var decidePreToolUse = async (input) => {
|
|
|
772
900
|
}
|
|
773
901
|
try {
|
|
774
902
|
const { verdict, lookup, gateInput } = await codexGate(apiKey, input);
|
|
775
|
-
if (verdict
|
|
776
|
-
await reportMachineDenial({ ...input, tool_name: lookup.tool, tool_input: lookup.input }, verdict, CODEX_AGENT);
|
|
777
|
-
return codexDeny(verdict.kind === "kill" ? KILL_REASON : verdict.reason);
|
|
778
|
-
}
|
|
903
|
+
if (isGateRefusal(verdict)) return await refusedByRule(input, lookup, verdict);
|
|
779
904
|
if (verdict.kind === "allow") return codexPass();
|
|
780
905
|
if (isCodexQuestionTool(input.tool_name)) return await answerCodexQuestion(apiKey, input, verdict, gateInput.modeState);
|
|
781
906
|
const scope = scopeQuestionOf(verdict);
|
|
@@ -793,17 +918,27 @@ var decidePreToolUse = async (input) => {
|
|
|
793
918
|
if (scope && gateInput.toolInputs.length > 1) return recordPreToolUse(callKey, codexDeny(SCOPE_BATCH_REASON));
|
|
794
919
|
const deliveryMode = delivery.policy.mode;
|
|
795
920
|
if (deliveryMode === "push_only" || deliveryMode === "push_first") {
|
|
796
|
-
|
|
921
|
+
const waitSeconds = effectiveWaitSeconds(toolPolicy.timeoutAction, toolPolicy.timeoutSeconds, "codex");
|
|
922
|
+
const noLocalSurface = codexHasNoPromptOfItsOwn(scope?.reason, input.permission_mode);
|
|
923
|
+
let asked;
|
|
797
924
|
try {
|
|
798
|
-
|
|
925
|
+
asked = await askWatchingForARule({
|
|
926
|
+
push: (watch) => pushQuestion(apiKey, input, lookup, waitSeconds, deliveryMode, noLocalSurface, scope, watch),
|
|
927
|
+
withdraw: (correlationId) => withdrawQuestion(apiKey, correlationId),
|
|
928
|
+
sleep: sleepUnlessAborted,
|
|
929
|
+
now: Date.now,
|
|
930
|
+
...ruleWatchFor(apiKey, input, scope, waitSeconds)
|
|
931
|
+
});
|
|
799
932
|
} catch (error) {
|
|
800
933
|
if (error instanceof SubscriptionRequiredError) return recordPreToolUse(callKey, codexStepsAside(error, input));
|
|
801
|
-
if (isQuestionLimitRefusal(error)) {
|
|
802
|
-
return recordPreToolUse(callKey, unansweredOutcome(scope, codexQuestionLimitDecision({ refusesUnanswered: refusesWhenUnanswered(delivery.policy), agentPromptFollows: false })));
|
|
803
|
-
}
|
|
804
934
|
return recordPreToolUse(callKey, codexDeny(UNVERIFIABLE_APPROVAL_REASON));
|
|
805
935
|
}
|
|
806
|
-
|
|
936
|
+
if (asked.kind === "covered_by_rule") return codexPass();
|
|
937
|
+
if (asked.kind === "refused_by_rule") return await refusedByRule(input, lookup, asked.verdict);
|
|
938
|
+
if (asked.kind === "no_free_slot") {
|
|
939
|
+
return recordPreToolUse(callKey, unansweredOutcome(scope, codexQuestionLimitDecision({ refusesUnanswered: refusesWhenUnanswered(delivery.policy), agentPromptFollows: false })));
|
|
940
|
+
}
|
|
941
|
+
const { answer, localHandoff, clampCut, paused } = asked.pushed;
|
|
807
942
|
if (isDecisionStopped(answer)) return codexDeny(DECISION_STOP_REASON);
|
|
808
943
|
if (localHandoff) return recordPreToolUse(callKey, keyboardOutcome(deliveryMode, scope, toolPolicy));
|
|
809
944
|
if (answer.answered) {
|
|
@@ -825,7 +960,7 @@ var decidePreToolUse = async (input) => {
|
|
|
825
960
|
};
|
|
826
961
|
var repairCodexHoldsQuietly = async () => {
|
|
827
962
|
try {
|
|
828
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
963
|
+
const { repairCodexHolds } = await import("../reapply-BC2AF55M.js");
|
|
829
964
|
repairCodexHolds();
|
|
830
965
|
} catch {
|
|
831
966
|
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-TEB5CX2Y.js")).exitOnHelpFlag("codex");
|
|
12
|
+
var loadWhatReadsTheAccount = () => Promise.all([import("../config-LG2RJO37.js"), import("../identity-3BT6LWOP.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-AUNDRYOL.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-AUNDRYOL.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-LG2RJO37.js"),
|
|
36
|
+
import("../identity-3BT6LWOP.js"),
|
|
37
|
+
import("../live-capabilities-IKTQBLVH.js"),
|
|
38
|
+
import("../codex-session-launch-IZNSTT7N.js")
|
|
39
39
|
]);
|
|
40
40
|
const binary = resolveProviderBinary("codex");
|
|
41
41
|
if (!binary) throw new Error("Install Codex first, then run pushary codex");
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reportEvent
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-Y3ELKLNH.js";
|
|
5
|
+
import "../chunk-G6M6YJK4.js";
|
|
6
|
+
import "../chunk-FIR2MGSB.js";
|
|
7
7
|
import {
|
|
8
8
|
askUser,
|
|
9
9
|
isDecisionStopped,
|
|
10
10
|
waitForAnswer
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-YH6EHCKQ.js";
|
|
12
|
+
import "../chunk-OH2WAG47.js";
|
|
13
13
|
import "../chunk-POFBE6ZY.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-6QQUGYH6.js";
|
|
15
|
+
import "../chunk-WIFMTEQI.js";
|
|
16
|
+
import "../chunk-L6BMVCQQ.js";
|
|
17
|
+
import "../chunk-VUGF2OC7.js";
|
|
18
18
|
import {
|
|
19
19
|
getMachineId
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-DSWUG4NV.js";
|
|
21
|
+
import "../chunk-YEVRMDG7.js";
|
|
22
|
+
import "../chunk-TUXX7TKR.js";
|
|
23
|
+
import "../chunk-HAOYL5JP.js";
|
|
24
24
|
import {
|
|
25
25
|
getApiKey
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-DAMTDSAE.js";
|
|
27
27
|
import "../chunk-YU2EUD7O.js";
|
|
28
28
|
import "../chunk-TODDEIYG.js";
|
|
29
29
|
import "../chunk-BG4HHB7E.js";
|
|
30
30
|
import {
|
|
31
31
|
NPX_LATEST_COMMAND
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-I5ANEYUK.js";
|
|
33
33
|
import "../chunk-UQTQ6HPO.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-M2ZGNZRS.js";
|
|
35
35
|
import "../chunk-MLKGABMK.js";
|
|
36
36
|
|
|
37
37
|
// bin/pushary-codex.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
pairingComputerOf,
|
|
4
4
|
planPairCommand
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-72SYV43F.js";
|
|
6
6
|
import {
|
|
7
7
|
canShowPairingQr,
|
|
8
8
|
checkPhoneWithoutPairing,
|
|
@@ -12,64 +12,64 @@ import {
|
|
|
12
12
|
pairAppWithThisComputer,
|
|
13
13
|
pairingAgainHelps,
|
|
14
14
|
printConnectInstructions
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-SVVZFXDX.js";
|
|
16
16
|
import "../chunk-3EGEA4KH.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-BMOGTNLK.js";
|
|
18
18
|
import {
|
|
19
19
|
printKeyCheck
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-IUXXEM4Q.js";
|
|
21
|
+
import "../chunk-44DRCGP2.js";
|
|
22
22
|
import {
|
|
23
23
|
detectedAgentChoices
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-ZC42UG7B.js";
|
|
25
25
|
import "../chunk-OYIN77HO.js";
|
|
26
26
|
import {
|
|
27
27
|
CONNECTED_THROUGH_MAC_APP,
|
|
28
28
|
PAIR_FROM_MAC_APP,
|
|
29
29
|
readMacAppConnection
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-SQ4RPZ6O.js";
|
|
31
31
|
import "../chunk-QCGNGEGE.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-X5QSIMXA.js";
|
|
33
|
+
import "../chunk-NX3Y36VY.js";
|
|
34
|
+
import "../chunk-4IBUBMMP.js";
|
|
35
|
+
import "../chunk-GJOHGES6.js";
|
|
36
36
|
import {
|
|
37
37
|
ciMarker,
|
|
38
38
|
createIo,
|
|
39
39
|
describeCiReason
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-WCWWO5QL.js";
|
|
41
41
|
import {
|
|
42
42
|
exitOnHelpFlag
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-XIICM4TX.js";
|
|
44
44
|
import "../chunk-CYTPQDQY.js";
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-TMDCIVZ2.js";
|
|
46
|
+
import "../chunk-H7OY4AAT.js";
|
|
47
|
+
import "../chunk-Y3ELKLNH.js";
|
|
48
|
+
import "../chunk-G6M6YJK4.js";
|
|
49
|
+
import "../chunk-J6KDUXJF.js";
|
|
50
|
+
import "../chunk-V3TWYF32.js";
|
|
51
51
|
import {
|
|
52
52
|
parseFlags
|
|
53
53
|
} from "../chunk-YPY4YCIZ.js";
|
|
54
54
|
import "../chunk-Y6ILCLKE.js";
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
57
|
-
import "../chunk-
|
|
55
|
+
import "../chunk-FIR2MGSB.js";
|
|
56
|
+
import "../chunk-YH6EHCKQ.js";
|
|
57
|
+
import "../chunk-OH2WAG47.js";
|
|
58
58
|
import "../chunk-POFBE6ZY.js";
|
|
59
|
-
import "../chunk-
|
|
60
|
-
import "../chunk-
|
|
59
|
+
import "../chunk-6QQUGYH6.js";
|
|
60
|
+
import "../chunk-WIFMTEQI.js";
|
|
61
61
|
import {
|
|
62
62
|
checkApiKey
|
|
63
|
-
} from "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
63
|
+
} from "../chunk-L6BMVCQQ.js";
|
|
64
|
+
import "../chunk-VUGF2OC7.js";
|
|
65
|
+
import "../chunk-DSWUG4NV.js";
|
|
66
66
|
import {
|
|
67
67
|
readKeySource
|
|
68
|
-
} from "../chunk-
|
|
69
|
-
import "../chunk-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
72
|
-
import "../chunk-
|
|
68
|
+
} from "../chunk-M74WT5NA.js";
|
|
69
|
+
import "../chunk-YEVRMDG7.js";
|
|
70
|
+
import "../chunk-TUXX7TKR.js";
|
|
71
|
+
import "../chunk-HAOYL5JP.js";
|
|
72
|
+
import "../chunk-DAMTDSAE.js";
|
|
73
73
|
import {
|
|
74
74
|
UsageError
|
|
75
75
|
} from "../chunk-YU2EUD7O.js";
|
|
@@ -79,9 +79,9 @@ import {
|
|
|
79
79
|
} from "../chunk-BG4HHB7E.js";
|
|
80
80
|
import {
|
|
81
81
|
isInvocationOf
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-I5ANEYUK.js";
|
|
83
83
|
import "../chunk-UQTQ6HPO.js";
|
|
84
|
-
import "../chunk-
|
|
84
|
+
import "../chunk-M2ZGNZRS.js";
|
|
85
85
|
import "../chunk-MLKGABMK.js";
|
|
86
86
|
|
|
87
87
|
// bin/pushary-connect.ts
|