pushary 1.9.220 → 1.9.222
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 +10 -0
- package/dist/{api-PRURB2MI.js → api-5FMENCWV.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +45 -38
- 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-display-hook.js +30 -7
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +34 -34
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +34 -34
- 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 +57 -57
- 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 +46 -46
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-OE6DXYKW.js → chunk-2ODL2KHZ.js} +5 -5
- package/dist/{chunk-KWQCFWMU.js → chunk-3SROGHN7.js} +1 -1
- package/dist/{chunk-HCORWUDA.js → chunk-3UNLHFAQ.js} +5 -5
- package/dist/{chunk-7CW4CDI2.js → chunk-3ZELWDAG.js} +10 -10
- package/dist/{chunk-F2QVGRAI.js → chunk-4L274ET5.js} +3 -3
- package/dist/{chunk-6XNOPB55.js → chunk-4PIHRM37.js} +5 -5
- package/dist/{chunk-CZQDJASK.js → chunk-4XY5VHBW.js} +4 -4
- package/dist/{chunk-KTMAERWS.js → chunk-5CHF6KSC.js} +1 -1
- package/dist/{chunk-R337OH3O.js → chunk-5PEALQVY.js} +6 -6
- package/dist/{chunk-6LKQZBYL.js → chunk-5R3PKRBZ.js} +4 -4
- package/dist/{chunk-SC2ZCI5A.js → chunk-62OI7PJ6.js} +6 -6
- package/dist/{chunk-HJZ5LS6L.js → chunk-66M7UB7P.js} +2 -2
- package/dist/{chunk-IBPIRG4Z.js → chunk-7DQ4NJHO.js} +3 -3
- package/dist/{chunk-RD6OPNMA.js → chunk-AJDNOASW.js} +3 -3
- package/dist/{chunk-CAK3LKEE.js → chunk-AJXODCEY.js} +3 -3
- package/dist/{chunk-AIKND7YL.js → chunk-AQQ2EATU.js} +2 -2
- package/dist/{chunk-7IMXCIQ6.js → chunk-B5B2W6RF.js} +1 -1
- package/dist/{chunk-VWW4WDV5.js → chunk-B7BT6S66.js} +2 -2
- package/dist/{chunk-CB6EWSLA.js → chunk-BVBKGIAH.js} +5 -5
- package/dist/{chunk-XBIJOKKN.js → chunk-CCWBBHOQ.js} +1 -1
- package/dist/{chunk-IFEI3PYH.js → chunk-CJOSYTSG.js} +2 -2
- package/dist/{chunk-M2QFG72W.js → chunk-CQMJ5YLX.js} +1 -1
- package/dist/{chunk-HXWYUYDF.js → chunk-DZUEOUFB.js} +7 -7
- package/dist/{chunk-MHDYRWEV.js → chunk-E3H56JAS.js} +2 -2
- package/dist/{chunk-QIDGUS3F.js → chunk-FERJXII2.js} +2 -2
- package/dist/{chunk-NIUBSNWX.js → chunk-FLI4GFL2.js} +8 -8
- package/dist/{chunk-ZAODDQWM.js → chunk-G7GAOYPA.js} +1 -1
- package/dist/{chunk-4VG5W7G5.js → chunk-GHYB66LW.js} +1 -1
- package/dist/{chunk-2UTMMLJG.js → chunk-GNPULK7J.js} +16 -16
- package/dist/{chunk-O7YA2YEC.js → chunk-H5GFXPBU.js} +1 -1
- package/dist/{chunk-7CDNCQNK.js → chunk-HDYOAYWZ.js} +6 -6
- package/dist/{chunk-QL4ZQU2V.js → chunk-HG76GEOE.js} +1 -1
- package/dist/{chunk-WODG7KLO.js → chunk-HNRN7K22.js} +2 -2
- package/dist/{chunk-5VEGOZHD.js → chunk-IDY5NK64.js} +3 -3
- package/dist/{chunk-WBKZN3QV.js → chunk-J7E3CS5N.js} +4 -4
- package/dist/{chunk-UZGD23XJ.js → chunk-JDTSLDKU.js} +5 -5
- package/dist/{chunk-OJW3DBTS.js → chunk-JEKST75E.js} +12 -12
- package/dist/{chunk-WR67BS44.js → chunk-JMTFCHR3.js} +5 -5
- package/dist/{chunk-EEZT2CKB.js → chunk-JRQCXNT3.js} +1 -1
- package/dist/{chunk-JSLJQ7IW.js → chunk-JZOOJH63.js} +2 -2
- package/dist/{chunk-72IZH2FG.js → chunk-K2RNGCIH.js} +1 -1
- package/dist/{chunk-QUS6YUYD.js → chunk-KESEXC6J.js} +4 -4
- package/dist/{chunk-PIGUCAHE.js → chunk-KQUOVCCS.js} +19 -10
- package/dist/{chunk-V7CO5PU6.js → chunk-LHSKKRGC.js} +5 -5
- package/dist/{chunk-HZAOD2CL.js → chunk-LRZKYIQ6.js} +1 -1
- package/dist/{chunk-D63IRSS4.js → chunk-MJOKUFFE.js} +3 -3
- package/dist/{chunk-5PZ4ABS6.js → chunk-MNUYTEPY.js} +4 -4
- package/dist/{chunk-AVHOWM7T.js → chunk-MXX4JRBI.js} +42 -16
- package/dist/{chunk-U6KM44CA.js → chunk-N4GJ7UEG.js} +2 -2
- package/dist/{chunk-WNARZAOC.js → chunk-O5YMM4NC.js} +3 -3
- package/dist/{chunk-PRQNSXDT.js → chunk-OLBZ2IR4.js} +5 -5
- package/dist/{chunk-R7LLIEXS.js → chunk-PAPMVRHR.js} +1 -1
- package/dist/{chunk-BEUL5CS3.js → chunk-QQHOFBU6.js} +12 -12
- package/dist/{chunk-Q2HBPXTJ.js → chunk-REGGASP3.js} +5 -5
- package/dist/{chunk-PMSQI2SU.js → chunk-RJCLIWNI.js} +6 -6
- package/dist/{chunk-XTOJLJDO.js → chunk-SBQX7DNO.js} +3 -3
- package/dist/{chunk-S3ZXBJP5.js → chunk-STXX44Q2.js} +6 -6
- package/dist/{chunk-Q75DLN2O.js → chunk-SYMM37D5.js} +3 -3
- package/dist/{chunk-JQLWMBRO.js → chunk-TMBHLGDG.js} +3 -3
- package/dist/{chunk-4OEB2CHW.js → chunk-TY26HQND.js} +3 -3
- package/dist/{chunk-M6WSKZW7.js → chunk-TY5UXKIU.js} +5 -5
- package/dist/{chunk-6VAJIILL.js → chunk-U4TBTVKC.js} +7 -7
- package/dist/{chunk-KAJVXYB6.js → chunk-U7734QBB.js} +2 -2
- package/dist/{chunk-MXGTEWOT.js → chunk-UG52X3L4.js} +1 -1
- package/dist/{chunk-SMZGLNQO.js → chunk-UO224FD7.js} +2 -2
- package/dist/{chunk-UWYAU25V.js → chunk-VV7XYIC6.js} +9 -9
- package/dist/{chunk-4QQLBYAR.js → chunk-W35HZ5LB.js} +2 -2
- package/dist/{chunk-KOVR5ZQB.js → chunk-W5BHO4UE.js} +1 -1
- package/dist/{chunk-KH64HWU7.js → chunk-W75STRF5.js} +4 -4
- package/dist/{chunk-VFU7V6ZI.js → chunk-WM5DVEHF.js} +1 -1
- package/dist/{chunk-3KU6ZNA3.js → chunk-XAFLPVOH.js} +4 -4
- package/dist/{chunk-AEKCXWJN.js → chunk-XKF65PRO.js} +1 -1
- package/dist/{chunk-4GDE7ENQ.js → chunk-XRANKHLM.js} +1 -1
- package/dist/{chunk-SFUR4I2B.js → chunk-YDLNKHUC.js} +1 -1
- package/dist/{chunk-SKRM7KFJ.js → chunk-YIIGUJP3.js} +4 -4
- package/dist/{chunk-KJ5ZCFR6.js → chunk-Z2JCNR7O.js} +1 -1
- package/dist/{chunk-JUJ35WEB.js → chunk-ZB5CQM3S.js} +1 -1
- package/dist/{chunk-BJ63TJDR.js → chunk-ZIE3LCHE.js} +4 -4
- package/dist/{chunk-3L732D6Q.js → chunk-ZQYAGL5J.js} +2 -2
- package/dist/{codex-app-cards-switch-YYFIY4PE.js → codex-app-cards-switch-WIMAJIB7.js} +11 -11
- package/dist/{codex-card-routing-DCFMF5HS.js → codex-card-routing-XCFEMXOH.js} +2 -2
- package/dist/{codex-desktop-launch-UFZRH4XD.js → codex-desktop-launch-SIWL62HT.js} +1 -1
- package/dist/{codex-session-launch-U3CG5HZW.js → codex-session-launch-LUCQNTVP.js} +20 -20
- package/dist/{config-XVZK2UAF.js → config-CB7VGWF7.js} +3 -3
- package/dist/{global-upgrade-XDSQ2M64.js → global-upgrade-34UV333H.js} +9 -9
- package/dist/{identity-XMK4J35G.js → identity-GTVFP3LV.js} +4 -4
- package/dist/{live-capabilities-6QYUI2GO.js → live-capabilities-RG7STBKW.js} +4 -4
- package/dist/{paths-WIIOD7OX.js → paths-IIFXE7O2.js} +3 -3
- package/dist/reapply-ZN6LLFVB.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-H7PM7O6A.js → upgrade-lock-GFNGLGR3.js} +4 -4
- package/dist/{usage-V5IV7YRA.js → usage-AJ2MWOQT.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-NQNUT7VY.js +0 -74
|
@@ -2,30 +2,30 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E3H56JAS.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W35HZ5LB.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G7GAOYPA.js";
|
|
13
13
|
import {
|
|
14
14
|
reportMachineDenial
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KESEXC6J.js";
|
|
16
16
|
import {
|
|
17
17
|
isGatingMoment,
|
|
18
18
|
recordKeylessMoment
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WM5DVEHF.js";
|
|
20
20
|
import {
|
|
21
21
|
isAdmitted,
|
|
22
22
|
readAdmissionRules
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-REGGASP3.js";
|
|
24
24
|
import {
|
|
25
25
|
activeHookSource,
|
|
26
26
|
activeIdentity,
|
|
27
27
|
namedSource
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3UNLHFAQ.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_SESSION,
|
|
31
31
|
allow,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
storedWaitDeadline,
|
|
66
66
|
sweepFilesOlderThan,
|
|
67
67
|
userScope
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-QQHOFBU6.js";
|
|
69
69
|
import {
|
|
70
70
|
UNNAMED_ACTION,
|
|
71
71
|
deriveAction,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
patchDeletesFiles,
|
|
77
77
|
permissionDeniedAction,
|
|
78
78
|
scopePathFor
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-KQUOVCCS.js";
|
|
80
80
|
import {
|
|
81
81
|
askUser,
|
|
82
82
|
cancelQuestion,
|
|
@@ -91,29 +91,29 @@ import {
|
|
|
91
91
|
sendNotification,
|
|
92
92
|
waitForQuestion,
|
|
93
93
|
withdrawQuestion
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-STXX44Q2.js";
|
|
95
95
|
import {
|
|
96
96
|
branchFor,
|
|
97
97
|
projectNameFor,
|
|
98
98
|
repoKeyFor,
|
|
99
99
|
repositoryScopeFor
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-3SROGHN7.js";
|
|
101
101
|
import {
|
|
102
102
|
getMachineId
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-B5B2W6RF.js";
|
|
104
104
|
import {
|
|
105
105
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-UO224FD7.js";
|
|
107
107
|
import {
|
|
108
108
|
getApiKey,
|
|
109
109
|
getBaseUrl
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
111
111
|
import {
|
|
112
112
|
writeFileAtomic
|
|
113
113
|
} from "./chunk-PM2NRK6Y.js";
|
|
114
114
|
import {
|
|
115
115
|
NPX_LATEST_COMMAND
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-XRANKHLM.js";
|
|
117
117
|
import {
|
|
118
118
|
AGENT_QUESTION_STRATEGY,
|
|
119
119
|
AGENT_QUESTION_TOOL,
|
|
@@ -180,7 +180,7 @@ import {
|
|
|
180
180
|
terminalStaysLiveForTheCall,
|
|
181
181
|
timeoutActionWithoutLocalPrompt,
|
|
182
182
|
unapprovedScopeReason
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-MXX4JRBI.js";
|
|
184
184
|
|
|
185
185
|
// src/terminal-answer-watch.ts
|
|
186
186
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-62OI7PJ6.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
isCI,
|
|
30
30
|
terminalColumns,
|
|
31
31
|
useColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5CHF6KSC.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4L274ET5.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZQYAGL5J.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XRANKHLM.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MXX4JRBI.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UO224FD7.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MXX4JRBI.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K2RNGCIH.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MXX4JRBI.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-WHB622LP.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SYMM37D5.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XRANKHLM.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MXX4JRBI.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QQHOFBU6.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KQUOVCCS.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
isLocalQuestionHandoff,
|
|
13
13
|
unavailableQuestionUnlessRefused,
|
|
14
14
|
waitForQuestion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-STXX44Q2.js";
|
|
16
16
|
import {
|
|
17
17
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B5B2W6RF.js";
|
|
19
19
|
import {
|
|
20
20
|
hookMaxWaitSeconds,
|
|
21
21
|
hookWaitClamped,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MXX4JRBI.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7DQ4NJHO.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W75STRF5.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BVBKGIAH.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DZUEOUFB.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-N4GJ7UEG.js";
|
|
43
43
|
import {
|
|
44
44
|
addCompatibleHooks,
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3UNLHFAQ.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4XY5VHBW.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-UG52X3L4.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-SYMM37D5.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -110,13 +110,13 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-UO224FD7.js";
|
|
114
114
|
import {
|
|
115
115
|
formatVersion,
|
|
116
116
|
hookCommandsUseBareNames,
|
|
117
117
|
resolveGlobalBinDir,
|
|
118
118
|
resolveGlobalBinary
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-MNUYTEPY.js";
|
|
120
120
|
import {
|
|
121
121
|
readJsonSafe,
|
|
122
122
|
writeFileAtomic,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
HOOK_COMPATIBLE_PROFILES,
|
|
127
127
|
isCompatibleAgentType,
|
|
128
128
|
isRecord
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-MXX4JRBI.js";
|
|
130
130
|
|
|
131
131
|
// src/reapply.ts
|
|
132
132
|
import { dirname, join } from "path";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XAFLPVOH.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CJOSYTSG.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4L274ET5.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SYMM37D5.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MXX4JRBI.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IDY5NK64.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UO224FD7.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MXX4JRBI.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QQHOFBU6.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KQUOVCCS.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3SROGHN7.js";
|
|
15
15
|
import {
|
|
16
16
|
PERMISSION_ALLOWED_EVENT,
|
|
17
17
|
PERMISSION_DENIED_EVENT,
|
|
18
18
|
machineApprovalFor,
|
|
19
19
|
machineDecisionFor,
|
|
20
20
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MXX4JRBI.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
isClaudeWakePrompt,
|
|
19
19
|
isRecord,
|
|
20
20
|
isTokenCount,
|
|
21
|
+
isWindowsRootedPath,
|
|
21
22
|
namesAFilePath,
|
|
22
23
|
parseCommitId,
|
|
23
24
|
parseMcpToolName,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
reportableSessionId,
|
|
27
28
|
toToolLookup,
|
|
28
29
|
truncateLine
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MXX4JRBI.js";
|
|
30
31
|
|
|
31
32
|
// ../hook-mapping/src/commit-receipt.ts
|
|
32
33
|
var COMMIT_OUTPUT_MAX_LENGTH = 65536;
|
|
@@ -52,7 +53,7 @@ function commitIdFromResult(result) {
|
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
// ../hook-mapping/src/describe.ts
|
|
55
|
-
import { isAbsolute, relative, resolve } from "path";
|
|
56
|
+
import { isAbsolute, relative, resolve, win32 } from "path";
|
|
56
57
|
var hookPrefixes = {
|
|
57
58
|
Bash: (input) => `bash: ${input.command ?? "(no command)"}`,
|
|
58
59
|
PowerShell: (input) => `powershell: ${input.command ?? "(no command)"}`,
|
|
@@ -229,6 +230,13 @@ var OPENCODE_TOOL_NAMES = {
|
|
|
229
230
|
subagent: "Task"
|
|
230
231
|
};
|
|
231
232
|
var PATCH_ARG_KEYS = ["command", "patch", "input"];
|
|
233
|
+
var HOST_PATH_RULES = { isAbsolute, relative, resolve };
|
|
234
|
+
var pathRulesForCwd = (cwd) => isWindowsRootedPath(cwd) ? win32 : HOST_PATH_RULES;
|
|
235
|
+
var absolutePathOf = (path, cwd) => {
|
|
236
|
+
if (!cwd) return path;
|
|
237
|
+
const rules = pathRulesForCwd(cwd);
|
|
238
|
+
return rules.isAbsolute(path) ? path : rules.resolve(cwd, path);
|
|
239
|
+
};
|
|
232
240
|
var patchedFilesIn = (input) => [...new Set(PATCH_ARG_KEYS.flatMap((key) => parseApplyPatchFiles(input[key])))];
|
|
233
241
|
var lookupsForInput = (profile, toolName, input, absolute) => {
|
|
234
242
|
const gateInput = profile.source === "grok" && toolName === "apply_patch" ? { patch: input.patch, diff: input.patch } : input;
|
|
@@ -239,7 +247,7 @@ var lookupsForInput = (profile, toolName, input, absolute) => {
|
|
|
239
247
|
return files.slice(0, GATE_MAX_TOOL_INPUTS + 1).map((file) => toToolLookup(profile, toolName, { ...gateInput, file_path: absolute(file) }, absolute));
|
|
240
248
|
};
|
|
241
249
|
var compatibleToolLookup = (profile, toolName, input, cwd) => {
|
|
242
|
-
const absolute = (path) =>
|
|
250
|
+
const absolute = (path) => absolutePathOf(path, cwd);
|
|
243
251
|
const lookups = lookupsForInput(profile, toolName, input, absolute);
|
|
244
252
|
const first = lookups[0];
|
|
245
253
|
if (!first) return { tool: canonicalToolName(profile, toolName), input, unreadable: true };
|
|
@@ -252,7 +260,7 @@ var compatibleToolLookup = (profile, toolName, input, cwd) => {
|
|
|
252
260
|
};
|
|
253
261
|
};
|
|
254
262
|
var compatibleGateInputs = (profile, toolName, toolInputs, cwd) => {
|
|
255
|
-
const absolute = (path) =>
|
|
263
|
+
const absolute = (path) => absolutePathOf(path, cwd);
|
|
256
264
|
const lookups = toolInputs.flatMap((input) => lookupsForInput(profile, toolName, input, absolute));
|
|
257
265
|
if (lookups.length > GATE_MAX_TOOL_INPUTS) return null;
|
|
258
266
|
if (lookups.some((lookup) => lookup.unreadable)) return null;
|
|
@@ -267,7 +275,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
|
|
|
267
275
|
if (paths.length > GATE_MAX_TOOL_INPUTS) return null;
|
|
268
276
|
return {
|
|
269
277
|
toolName: "Edit",
|
|
270
|
-
toolInputs: paths.length === 0 ? toolInputs.map((input) => ({ file_path: input.command })) : paths.map((path) => ({ file_path:
|
|
278
|
+
toolInputs: paths.length === 0 ? toolInputs.map((input) => ({ file_path: input.command })) : paths.map((path) => ({ file_path: absolutePathOf(path, cwd) }))
|
|
271
279
|
};
|
|
272
280
|
}
|
|
273
281
|
if (source === "opencode") {
|
|
@@ -276,7 +284,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
|
|
|
276
284
|
toolName: canonical2,
|
|
277
285
|
toolInputs: toolInputs.map((input) => {
|
|
278
286
|
const path = input.file_path;
|
|
279
|
-
return typeof path === "string" && path.length > 0
|
|
287
|
+
return typeof path === "string" && path.length > 0 ? { ...input, file_path: absolutePathOf(path, cwd) } : input;
|
|
280
288
|
})
|
|
281
289
|
};
|
|
282
290
|
}
|
|
@@ -328,7 +336,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
|
|
|
328
336
|
return { toolName: canonical2, toolInputs: inputs.map((input) => {
|
|
329
337
|
if (canonical2 === "Bash") return { ...input, command: [input.command, input.commandLine, input.command_line, input.cmd, input.script, input.input, input.text].find((value) => typeof value === "string") };
|
|
330
338
|
const path = input.file_path ?? input.filePath ?? input.path;
|
|
331
|
-
return typeof path === "string" ? { ...input, file_path:
|
|
339
|
+
return typeof path === "string" ? { ...input, file_path: absolutePathOf(path, cwd) } : input;
|
|
332
340
|
}) };
|
|
333
341
|
}
|
|
334
342
|
const profile = hookCompatibleProfileBySource(source);
|
|
@@ -343,7 +351,7 @@ var canonicalGateInputs = (source, toolName, toolInputs, cwd) => {
|
|
|
343
351
|
toolName: canonical,
|
|
344
352
|
toolInputs: toolInputs.map((input) => {
|
|
345
353
|
const path = [input.file_path, input.absolute_path, input.path].find((value) => typeof value === "string" && value.length > 0);
|
|
346
|
-
return path ? { file_path:
|
|
354
|
+
return path ? { file_path: absolutePathOf(path, cwd) } : {};
|
|
347
355
|
})
|
|
348
356
|
};
|
|
349
357
|
};
|
|
@@ -377,8 +385,9 @@ var toolResultErrorText = (toolResult) => {
|
|
|
377
385
|
}
|
|
378
386
|
};
|
|
379
387
|
var relativizeReceiptPath = (filePath, cwd) => {
|
|
380
|
-
if (!cwd
|
|
381
|
-
|
|
388
|
+
if (!cwd) return filePath;
|
|
389
|
+
const rules = pathRulesForCwd(cwd);
|
|
390
|
+
return rules.isAbsolute(filePath) ? rules.relative(cwd, filePath) : filePath;
|
|
382
391
|
};
|
|
383
392
|
function receiptHasFailedExit(result) {
|
|
384
393
|
if (!result || typeof result !== "object" || Array.isArray(result)) return false;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K2RNGCIH.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4L274ET5.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O5YMM4NC.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CCWBBHOQ.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MXX4JRBI.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MNUYTEPY.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XRANKHLM.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MXX4JRBI.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MXX4JRBI.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -600,9 +600,9 @@ var installGlobally = (options) => {
|
|
|
600
600
|
}
|
|
601
601
|
const started = (async () => {
|
|
602
602
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
603
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
604
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
605
|
-
const { autoUpdateLock } = await import("./paths-
|
|
603
|
+
const { withUpgradeLock } = await import("./global-upgrade-34UV333H.js");
|
|
604
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-GFNGLGR3.js");
|
|
605
|
+
const { autoUpdateLock } = await import("./paths-IIFXE7O2.js");
|
|
606
606
|
let result = "skipped";
|
|
607
607
|
const install = async () => {
|
|
608
608
|
const planned = readPlannedSetupInstall(process.platform);
|