pushary 1.9.212 → 1.9.214
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 +8 -0
- package/dist/{api-SNFXRUBO.js → api-4PUPB24W.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 +28 -28
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +24 -24
- package/dist/bin/pushary-codex-hook.js +34 -34
- 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 -47
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +84 -2
- package/dist/bin/pushary-doctor.js +48 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +19 -19
- 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 +24 -24
- 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 -40
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +62 -64
- 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 +22 -20
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +49 -50
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-NCPBMIR5.js → chunk-27AOD6AJ.js} +4 -4
- package/dist/{chunk-KQRWWJLF.js → chunk-2WKMK3MA.js} +1 -1
- package/dist/{chunk-WXWWCODY.js → chunk-3NS3MQID.js} +1 -1
- package/dist/{chunk-A4I6XOX3.js → chunk-3RMKNFAK.js} +3 -3
- package/dist/{chunk-ID7W4YBQ.js → chunk-3ZJWAE7Y.js} +1 -1
- package/dist/{chunk-ARTOOCLW.js → chunk-4IASS2L5.js} +1 -1
- package/dist/{chunk-GDWAKBBT.js → chunk-4TTCW5NU.js} +6 -4
- package/dist/{chunk-RE5KA47K.js → chunk-67DK2CIW.js} +3 -3
- package/dist/{chunk-UXQI33VO.js → chunk-6CD5QFP6.js} +6 -6
- package/dist/{chunk-PRRJZZAF.js → chunk-6PMNHW55.js} +3 -3
- package/dist/{chunk-5E7QI7VP.js → chunk-6UG6HV4Y.js} +9 -9
- package/dist/{chunk-6FN7NPOE.js → chunk-7JG5HH7Z.js} +2 -2
- package/dist/{chunk-7H6BFJU5.js → chunk-7OBWD2XH.js} +1 -1
- package/dist/{chunk-ZXQNUTK3.js → chunk-A3PPXX6R.js} +8 -8
- package/dist/{chunk-5B5PPHJH.js → chunk-ACYVHNR2.js} +1 -1
- package/dist/{chunk-Y3OHWGZV.js → chunk-AWDT7VQI.js} +2 -2
- package/dist/{chunk-LWFFQJ3Y.js → chunk-B7W3VGWO.js} +3 -3
- package/dist/{chunk-FYAEQIYF.js → chunk-BOAESLW5.js} +4 -4
- package/dist/{chunk-W2LDJTM6.js → chunk-BQTO3K5X.js} +5 -5
- package/dist/{chunk-D347AAH7.js → chunk-BW74KYAH.js} +30 -10
- package/dist/{chunk-NYJXBV6G.js → chunk-CSY3KGUK.js} +5 -5
- package/dist/{chunk-NDYH6TS3.js → chunk-D7IVASAJ.js} +2 -2
- package/dist/{chunk-7TROI3WY.js → chunk-DA2VDGD4.js} +3 -3
- package/dist/{chunk-65QMCTQ3.js → chunk-DXGH7C47.js} +2 -2
- package/dist/{chunk-KSAE6TKK.js → chunk-E3XVIY5H.js} +5 -5
- package/dist/{chunk-PSKPKVM6.js → chunk-FB5CFFNH.js} +1 -1
- package/dist/{chunk-V3QWU2WK.js → chunk-FFJKZYQA.js} +4 -4
- package/dist/{chunk-O3375GQ5.js → chunk-FKREGRCQ.js} +2 -2
- package/dist/{chunk-NMG6GB3W.js → chunk-FWCMADJS.js} +5 -5
- package/dist/{chunk-LLCNGORA.js → chunk-GE6BQL5V.js} +3 -3
- package/dist/{chunk-ZYXC6ZEQ.js → chunk-GHMNWVIT.js} +1 -1
- package/dist/{chunk-GJ5XTWNZ.js → chunk-GX7NST6J.js} +1 -1
- package/dist/{chunk-BLQ2JF2F.js → chunk-HIYWW2EL.js} +1 -1
- package/dist/{chunk-E5BZJAJ7.js → chunk-HY2DPLMM.js} +7 -7
- package/dist/{chunk-DOPDHW6I.js → chunk-IAAARTZD.js} +141 -7
- package/dist/{chunk-V2R6Y4ES.js → chunk-IALNFQJX.js} +2 -2
- package/dist/{chunk-HCILDIRX.js → chunk-JBP6KADX.js} +2 -2
- package/dist/{chunk-VLV34V6X.js → chunk-JZOKFZ27.js} +15 -17
- package/dist/{chunk-CVZMRD73.js → chunk-KG6AOJOA.js} +4 -4
- package/dist/{chunk-SGOP6D4K.js → chunk-KMT24TVI.js} +1 -1
- package/dist/{chunk-UQQN6ST3.js → chunk-L5EZLYKM.js} +7 -4
- package/dist/{chunk-AINVDTY2.js → chunk-LBN3RGJS.js} +4 -4
- package/dist/{chunk-3KADQBEQ.js → chunk-LD7QJLE6.js} +5 -5
- package/dist/{chunk-4NJBLOER.js → chunk-LUR57S72.js} +2 -2
- package/dist/{chunk-7MPVFAYZ.js → chunk-M6I2EQ7J.js} +1 -1
- package/dist/{chunk-VKGJ4XY5.js → chunk-MEONDMJP.js} +1 -1
- package/dist/{chunk-Q73RI245.js → chunk-MPP7EEJJ.js} +5 -5
- package/dist/{chunk-RIGWC5YP.js → chunk-MWMN5LUH.js} +2 -2
- package/dist/{chunk-AUDKOK2X.js → chunk-O5CC4CF6.js} +6 -6
- package/dist/{chunk-FUZSKAEQ.js → chunk-OF6AUDV5.js} +3 -3
- package/dist/{chunk-RS6WYORY.js → chunk-OIGBUSHM.js} +5 -5
- package/dist/{chunk-QLKIY3FD.js → chunk-OXTKCSQH.js} +1 -1
- package/dist/{chunk-NETM5KD2.js → chunk-P2HYWAEX.js} +2 -2
- package/dist/{chunk-ZNF5ATIQ.js → chunk-P6BE3IE6.js} +12 -12
- package/dist/{chunk-I2ZILRS4.js → chunk-PIZ2VDOF.js} +6 -6
- package/dist/{chunk-HVBMU7HP.js → chunk-PUNSO7UP.js} +6 -6
- package/dist/{chunk-74RTPZ2B.js → chunk-Q2F7H5AO.js} +16 -16
- package/dist/{chunk-POXHWH73.js → chunk-Q4CX35CK.js} +138 -43
- package/dist/{chunk-Z5OUGH4K.js → chunk-QDW4H4BE.js} +23 -13
- package/dist/{chunk-N4D5YYO2.js → chunk-R2ZVMZRM.js} +2 -2
- package/dist/{chunk-FCIJEVDH.js → chunk-S33W45N6.js} +1 -1
- package/dist/{chunk-CR5X46JQ.js → chunk-SQRYZMBT.js} +1 -1
- package/dist/{chunk-HTLG7JIU.js → chunk-SW3YNO4E.js} +1 -1
- package/dist/{chunk-2FFSF562.js → chunk-T56AUJS3.js} +5 -5
- package/dist/{chunk-PIXOAUE6.js → chunk-TFN65TCT.js} +6 -6
- package/dist/{chunk-PKDU2BY4.js → chunk-UCEHVBFY.js} +3 -3
- package/dist/{chunk-3NEKVCP2.js → chunk-US2O2BCI.js} +4 -4
- package/dist/{chunk-LMQDIQI4.js → chunk-UXQADKBJ.js} +5 -5
- package/dist/{chunk-GWDAFH4B.js → chunk-V7BM5U5N.js} +2 -2
- package/dist/{chunk-I7KUHNSA.js → chunk-VCZQZJIX.js} +3 -3
- package/dist/{chunk-R4BUYRSV.js → chunk-WAXSCVF3.js} +5 -5
- package/dist/{chunk-7KTLZJGF.js → chunk-XATTYXWT.js} +3 -3
- package/dist/{chunk-GKTQXPUM.js → chunk-XTHQV6DP.js} +1 -1
- package/dist/{chunk-HCBPEZXH.js → chunk-YOOH4XZM.js} +7 -7
- package/dist/{chunk-HFDNWC2K.js → chunk-ZKTFWYT4.js} +1 -1
- package/dist/{chunk-ZJYSZDFR.js → chunk-ZMEZWQ7O.js} +1 -1
- package/dist/{chunk-VY7UHIPW.js → chunk-ZOT4PHSL.js} +2 -2
- package/dist/{chunk-ZWT4WF2W.js → chunk-ZPUSBUTT.js} +9 -6
- package/dist/{chunk-QQEJDPYK.js → chunk-ZSIVPFCH.js} +1 -1
- package/dist/{codex-app-cards-switch-3TCXMVNB.js → codex-app-cards-switch-T7UULQ5T.js} +11 -11
- package/dist/{codex-card-routing-SYP6VQTQ.js → codex-card-routing-TTRI27CG.js} +2 -2
- package/dist/{codex-desktop-launch-4JX7HA66.js → codex-desktop-launch-W34FG52F.js} +1 -1
- package/dist/{codex-session-launch-ITEGM77S.js → codex-session-launch-ZMWMRTP5.js} +20 -20
- package/dist/{config-KVGNGI6J.js → config-5EIPFQTD.js} +3 -3
- package/dist/{global-upgrade-SSWKV5NF.js → global-upgrade-BW22HRDL.js} +9 -9
- package/dist/{identity-BMEZY3ST.js → identity-URZS4PNH.js} +4 -4
- package/dist/{live-capabilities-AXVWZKBK.js → live-capabilities-IPUVJWHV.js} +4 -4
- package/dist/{paths-EFJCRBNQ.js → paths-M7UGQE4K.js} +3 -3
- package/dist/reapply-423JE23N.js +74 -0
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-FCKMP6W2.js → upgrade-lock-GMEQWSHI.js} +4 -4
- package/dist/{usage-NCJLUCAW.js → usage-SHIUXLVP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-UP2JWLPI.js +0 -78
- package/dist/reapply-S26S7GHW.js +0 -75
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-L5EZLYKM.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestion,
|
|
@@ -48,45 +48,45 @@ import {
|
|
|
48
48
|
waitForQuestion,
|
|
49
49
|
waitsForThePhone,
|
|
50
50
|
writeDegraded
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-PUNSO7UP.js";
|
|
52
52
|
import {
|
|
53
53
|
RETRY_ACK,
|
|
54
54
|
readCommandAck,
|
|
55
55
|
refusedReceiptMessage
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-3ZJWAE7Y.js";
|
|
57
57
|
import {
|
|
58
58
|
SubscriptionRequiredError,
|
|
59
59
|
isRetryable,
|
|
60
60
|
withRetry
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-MPP7EEJJ.js";
|
|
62
62
|
import {
|
|
63
63
|
fetchAsCredential
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-ZKTFWYT4.js";
|
|
65
65
|
import {
|
|
66
66
|
branchFor,
|
|
67
67
|
projectNameFor,
|
|
68
68
|
repoKeyFor
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-OXTKCSQH.js";
|
|
70
70
|
import {
|
|
71
71
|
getMachineId
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HIYWW2EL.js";
|
|
73
73
|
import {
|
|
74
74
|
reportedInstallSource
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-AWDT7VQI.js";
|
|
76
76
|
import {
|
|
77
77
|
IDLE_PROMPT_NOTIFICATION,
|
|
78
78
|
NOTIFICATION_PUSH_TYPES,
|
|
79
79
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
80
80
|
claudeConfigDir
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-FKREGRCQ.js";
|
|
82
82
|
import {
|
|
83
83
|
compareVersion,
|
|
84
84
|
parseVersion
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-4TTCW5NU.js";
|
|
86
86
|
import {
|
|
87
87
|
getApiKey,
|
|
88
88
|
getBaseUrl
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-ZMEZWQ7O.js";
|
|
90
90
|
import {
|
|
91
91
|
writeFileAtomic,
|
|
92
92
|
writeJsonAtomicDurable
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
resolveAutoResolveOrigin,
|
|
145
145
|
resolvePolicy,
|
|
146
146
|
unansweredRefusalReason
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-Q4CX35CK.js";
|
|
148
148
|
|
|
149
149
|
// src/pending.ts
|
|
150
150
|
import { join } from "path";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P2HYWAEX.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XATTYXWT.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZOT4PHSL.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FKREGRCQ.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4TTCW5NU.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2WKMK3MA.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MPP7EEJJ.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZKTFWYT4.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GE6BQL5V.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FKREGRCQ.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZMEZWQ7O.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
isRecord,
|
|
39
39
|
truncateLine,
|
|
40
40
|
waitEndAnswered
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Q4CX35CK.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -2,30 +2,30 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DXGH7C47.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JBP6KADX.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M6I2EQ7J.js";
|
|
13
13
|
import {
|
|
14
14
|
reportMachineDenial
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KG6AOJOA.js";
|
|
16
16
|
import {
|
|
17
17
|
isGatingMoment,
|
|
18
18
|
recordKeylessMoment
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XTHQV6DP.js";
|
|
20
20
|
import {
|
|
21
21
|
isAdmitted,
|
|
22
22
|
readAdmissionRules
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-E3XVIY5H.js";
|
|
24
24
|
import {
|
|
25
25
|
activeHookSource,
|
|
26
26
|
activeIdentity,
|
|
27
27
|
namedSource
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BQTO3K5X.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-P6BE3IE6.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-L5EZLYKM.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-PUNSO7UP.js";
|
|
95
95
|
import {
|
|
96
96
|
branchFor,
|
|
97
97
|
projectNameFor,
|
|
98
98
|
repoKeyFor,
|
|
99
99
|
repositoryScopeFor
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-OXTKCSQH.js";
|
|
101
101
|
import {
|
|
102
102
|
getMachineId
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-HIYWW2EL.js";
|
|
104
104
|
import {
|
|
105
105
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-FKREGRCQ.js";
|
|
107
107
|
import {
|
|
108
108
|
getApiKey,
|
|
109
109
|
getBaseUrl
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-ZMEZWQ7O.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-2WKMK3MA.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-Q4CX35CK.js";
|
|
184
184
|
|
|
185
185
|
// src/terminal-answer-watch.ts
|
|
186
186
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -3094,6 +3094,40 @@ var powerShellCommandHasAVisibleConsequence = (command, judge) => {
|
|
|
3094
3094
|
return powerShellReadingIsDestructive(reading, judge) || stages.some((stage) => stageHasAVisibleConsequence(stage, judge)) || reading.statements.some(listsRecursivelyIntoARemoval) || runsFetchedPowerShellCode(stages, judge) || runsADownloadedFile(stages, judge) || reading.posixCommands.some((words) => judge.commandShowsAConsequence(words));
|
|
3095
3095
|
};
|
|
3096
3096
|
|
|
3097
|
+
// ../contracts/src/approval-risk.ts
|
|
3098
|
+
var APPROVAL_RISK_LEVEL = {
|
|
3099
|
+
normal: "normal",
|
|
3100
|
+
risky: "risky",
|
|
3101
|
+
mismatch: "mismatch"
|
|
3102
|
+
};
|
|
3103
|
+
var RISK_REASON = {
|
|
3104
|
+
deletesFiles: "deletes_files",
|
|
3105
|
+
forcePushes: "force_pushes",
|
|
3106
|
+
discardsLocalChanges: "discards_local_changes",
|
|
3107
|
+
deletesUntrackedFiles: "deletes_untracked_files",
|
|
3108
|
+
deletesABranch: "deletes_a_branch",
|
|
3109
|
+
dropsATableOrDatabase: "drops_a_table_or_database",
|
|
3110
|
+
deletesRows: "deletes_rows",
|
|
3111
|
+
truncates: "truncates",
|
|
3112
|
+
publishesAPackage: "publishes_a_package",
|
|
3113
|
+
runsAsRoot: "runs_as_root",
|
|
3114
|
+
opensFilePermissions: "opens_file_permissions",
|
|
3115
|
+
deletesClusterResources: "deletes_cluster_resources",
|
|
3116
|
+
changesInfrastructure: "changes_infrastructure",
|
|
3117
|
+
prunesDocker: "prunes_docker",
|
|
3118
|
+
deploysOrReleases: "deploys_or_releases",
|
|
3119
|
+
touchesSecrets: "touches_secrets",
|
|
3120
|
+
touchesDeployFiles: "touches_deploy_files",
|
|
3121
|
+
changesCi: "changes_ci",
|
|
3122
|
+
changesDependencies: "changes_dependencies",
|
|
3123
|
+
notWhatYouAsked: "not_what_you_asked",
|
|
3124
|
+
couldNotCheck: "could_not_check"
|
|
3125
|
+
};
|
|
3126
|
+
var RISK_REASONS_PER_STEP_MAX = 2;
|
|
3127
|
+
var NORMAL_APPROVAL_RISK = { level: APPROVAL_RISK_LEVEL.normal, reasons: [] };
|
|
3128
|
+
var UNCHECKED_STEP_RISK = { level: APPROVAL_RISK_LEVEL.risky, reasons: [RISK_REASON.couldNotCheck] };
|
|
3129
|
+
var remoteApproveFor = (risk) => risk.level === APPROVAL_RISK_LEVEL.normal;
|
|
3130
|
+
|
|
3097
3131
|
// ../contracts/src/release-version.ts
|
|
3098
3132
|
var RELEASE_VERSION_PATTERN = /^(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})$/;
|
|
3099
3133
|
var parseReleaseVersion = (version) => {
|
|
@@ -8725,6 +8759,11 @@ var textNeedsAPersonFor = (toolNamesADatabase) => (field, text3) => textNamesAWe
|
|
|
8725
8759
|
var mcpToolInputOnlyReads = (toolName, toolInput) => !toolInputTooLargeToRead(toolInput) && !anyToolInputText(toolInput, UNNAMED_TOOL_INPUT_FIELD, 0, textNeedsAPersonFor(mcpToolNamesADatabase(toolName)));
|
|
8726
8760
|
var allowsSessionToolGrant = (toolName) => SESSION_TOOL_GRANT_TOOLS.has(toolName) || mcpToolOnlyReads(toolName);
|
|
8727
8761
|
var isSessionToolGrant = (policy) => Boolean(policy.sessionId) && allowsSessionToolGrant(policy.tool) && isAutoApprove(policy);
|
|
8762
|
+
var DELTA_SIGNAL = {
|
|
8763
|
+
match: "match",
|
|
8764
|
+
unclear: "unclear",
|
|
8765
|
+
mismatch: "mismatch"
|
|
8766
|
+
};
|
|
8728
8767
|
var ACTION_BODY_MAX = 4e3;
|
|
8729
8768
|
var DECISION_LINE_MAX = 500;
|
|
8730
8769
|
var ASK_QUESTION_MAX = 8e3;
|
|
@@ -8738,23 +8777,37 @@ var truncateLine = (text3, max, mark = TRUNCATION_MARK) => {
|
|
|
8738
8777
|
const keep = isHighSurrogate(text3.charCodeAt(end - 1)) ? end - 1 : end;
|
|
8739
8778
|
return `${text3.slice(0, keep)}${mark}`;
|
|
8740
8779
|
};
|
|
8741
|
-
var
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
/\
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
/
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8780
|
+
var GIT_GLOBAL_OPTION = String.raw`(?:\s+-\S*(?:\s+[^\s-]\S*)?)`;
|
|
8781
|
+
var sameCommandBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)[^\n;&|])*?`;
|
|
8782
|
+
var sameLineBeforeAnother = (program) => String.raw`(?:(?!\b${program}\b)[^\n])*?`;
|
|
8783
|
+
var DESTRUCTIVE_ACTION_RISK_PATTERNS = [
|
|
8784
|
+
{ pattern: /\brm\s+-[a-z]*r/i, reason: RISK_REASON.deletesFiles },
|
|
8785
|
+
{ pattern: new RegExp(String.raw`\brm\b${sameCommandBeforeAnother("rm")}\s(?:-[a-z]*r[a-z]*|--recursive)\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8786
|
+
{ pattern: new RegExp(String.raw`\brm\b${sameCommandBeforeAnother("rm")}\s\$\{?[A-Za-z_][A-Za-z0-9_]*\}?\s+[^\s;&|]`), reason: RISK_REASON.deletesFiles },
|
|
8787
|
+
{ pattern: /\brmdir\b/i, reason: RISK_REASON.deletesFiles },
|
|
8788
|
+
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-delete\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8789
|
+
{ pattern: new RegExp(String.raw`\bfind\b${sameCommandBeforeAnother("find")}\s-(?:exec|execdir|ok|okdir)\s+(?:\S*\/)?rm\b`, "i"), reason: RISK_REASON.deletesFiles },
|
|
8790
|
+
{ pattern: /git\s+push[^\n]*(--force|--force-with-lease|\s-f\b)/i, reason: RISK_REASON.forcePushes },
|
|
8791
|
+
{ pattern: new RegExp(String.raw`\bgit${GIT_GLOBAL_OPTION}+\s+push${sameLineBeforeAnother("git")}(?:--force|--force-with-lease|\s-f\b)`, "i"), reason: RISK_REASON.forcePushes },
|
|
8792
|
+
{ pattern: /git\s+reset\s+--hard/i, reason: RISK_REASON.discardsLocalChanges },
|
|
8793
|
+
{ pattern: new RegExp(String.raw`\bgit${GIT_GLOBAL_OPTION}+\s+reset\s+--hard`, "i"), reason: RISK_REASON.discardsLocalChanges },
|
|
8794
|
+
{ pattern: /git\s+clean\s+-[a-z]*f/i, reason: RISK_REASON.deletesUntrackedFiles },
|
|
8795
|
+
{ pattern: new RegExp(String.raw`\bgit${GIT_GLOBAL_OPTION}+\s+clean\s+-[a-z]*f`, "i"), reason: RISK_REASON.deletesUntrackedFiles },
|
|
8796
|
+
{ pattern: new RegExp(String.raw`\bgit${GIT_GLOBAL_OPTION}*\s+branch\b${sameCommandBeforeAnother("git")}\s-[a-zA-Z]*D`), reason: RISK_REASON.deletesABranch },
|
|
8797
|
+
{ pattern: new RegExp(String.raw`\bgit${GIT_GLOBAL_OPTION}*\s+branch\b(?=${sameCommandBeforeAnother("git")}\s(?:--delete|-[a-z]*d[a-z]*)\b)(?=${sameCommandBeforeAnother("git")}\s(?:--force|-[a-z]*f[a-z]*)\b)`), reason: RISK_REASON.deletesABranch },
|
|
8798
|
+
{ pattern: new RegExp(String.raw`\bgit${GIT_GLOBAL_OPTION}*\s+push\b${sameCommandBeforeAnother("git")}\s(?:--delete\b|-d\b|:[^\s:])`), reason: RISK_REASON.deletesABranch },
|
|
8799
|
+
{ pattern: /\bdrop\s+(table|database|schema)\b/i, reason: RISK_REASON.dropsATableOrDatabase },
|
|
8800
|
+
{ pattern: /\bdelete\s+from\b/i, reason: RISK_REASON.deletesRows },
|
|
8801
|
+
{ pattern: /\btruncate\b/i, reason: RISK_REASON.truncates },
|
|
8802
|
+
{ pattern: /\b(deploy|publish|release)\b/i, reason: RISK_REASON.deploysOrReleases },
|
|
8803
|
+
{ pattern: /\bnpm\s+publish\b/i, reason: RISK_REASON.publishesAPackage },
|
|
8804
|
+
{ pattern: /\bsudo\b/i, reason: RISK_REASON.runsAsRoot },
|
|
8805
|
+
{ pattern: /chmod\s+-?R?\s*777/i, reason: RISK_REASON.opensFilePermissions },
|
|
8806
|
+
{ pattern: /\bkubectl\s+delete\b/i, reason: RISK_REASON.deletesClusterResources },
|
|
8807
|
+
{ pattern: /\bterraform\s+(apply|destroy)\b/i, reason: RISK_REASON.changesInfrastructure },
|
|
8808
|
+
{ pattern: /\bdocker\s+system\s+prune\b/i, reason: RISK_REASON.prunesDocker }
|
|
8757
8809
|
];
|
|
8810
|
+
var APPROVAL_FATIGUE_FLAG_PATTERNS = DESTRUCTIVE_ACTION_RISK_PATTERNS.map(({ pattern }) => pattern);
|
|
8758
8811
|
var DELTA_STOPWORDS = /* @__PURE__ */ new Set([
|
|
8759
8812
|
"the",
|
|
8760
8813
|
"a",
|
|
@@ -8768,14 +8821,21 @@ var DELTA_STOPWORDS = /* @__PURE__ */ new Set([
|
|
|
8768
8821
|
"on",
|
|
8769
8822
|
"with"
|
|
8770
8823
|
]);
|
|
8771
|
-
var
|
|
8772
|
-
/(^|[\\/])\.env(\.|$|[\\/])/i,
|
|
8773
|
-
/secrets?/i,
|
|
8774
|
-
/credentials?/i,
|
|
8775
|
-
/(^|[\\/])deploy/i,
|
|
8776
|
-
/\.github[\\/]workflows/i,
|
|
8777
|
-
/package\.json/i
|
|
8824
|
+
var HIGH_CONSEQUENCE_RISK_PATTERNS = [
|
|
8825
|
+
{ pattern: /(^|[\\/])\.env(\.|$|[\\/])/i, reason: RISK_REASON.touchesSecrets },
|
|
8826
|
+
{ pattern: /secrets?/i, reason: RISK_REASON.touchesSecrets },
|
|
8827
|
+
{ pattern: /credentials?/i, reason: RISK_REASON.touchesSecrets },
|
|
8828
|
+
{ pattern: /(^|[\\/])deploy/i, reason: RISK_REASON.touchesDeployFiles },
|
|
8829
|
+
{ pattern: /\.github[\\/]workflows/i, reason: RISK_REASON.changesCi },
|
|
8830
|
+
{ pattern: /package\.json/i, reason: RISK_REASON.changesDependencies }
|
|
8778
8831
|
];
|
|
8832
|
+
var HIGH_CONSEQUENCE_PATTERNS = HIGH_CONSEQUENCE_RISK_PATTERNS.map(({ pattern }) => pattern);
|
|
8833
|
+
var reasonsMatching = (patterns, parts) => [...new Set(patterns.filter(({ pattern }) => parts.some((part) => pattern.test(part))).map(({ reason }) => reason))];
|
|
8834
|
+
var isAKeywordOnlyReason = (reason) => reason === RISK_REASON.deploysOrReleases;
|
|
8835
|
+
var preferNamedReasons = (matched) => {
|
|
8836
|
+
const named = matched.filter((reason) => !isAKeywordOnlyReason(reason));
|
|
8837
|
+
return named.length > 0 ? named : matched;
|
|
8838
|
+
};
|
|
8779
8839
|
var isCommandTool = (toolName) => {
|
|
8780
8840
|
const name = (toolName ?? "").toLowerCase();
|
|
8781
8841
|
return name === "bash" || name === "shell" || name === "run_shell_command" || name === "apply_patch" || name.includes("command");
|
|
@@ -8789,8 +8849,7 @@ ${body}`;
|
|
|
8789
8849
|
const path = command ? "" : target;
|
|
8790
8850
|
const scanText = command ? commandText : `${path}
|
|
8791
8851
|
${body}`;
|
|
8792
|
-
|
|
8793
|
-
return { isCommand: command, commandText, path, highConsequence };
|
|
8852
|
+
return { isCommand: command, commandText, path, highConsequenceReasons: reasonsMatching(HIGH_CONSEQUENCE_RISK_PATTERNS, [scanText]) };
|
|
8794
8853
|
};
|
|
8795
8854
|
var isDestructive = (toolName, commandText) => namesADestructiveAction(toolName ?? "", commandText);
|
|
8796
8855
|
var addAlnumTokens = (source, set) => {
|
|
@@ -8798,6 +8857,7 @@ var addAlnumTokens = (source, set) => {
|
|
|
8798
8857
|
if (raw) set.add(raw);
|
|
8799
8858
|
}
|
|
8800
8859
|
};
|
|
8860
|
+
var DELTA_COMMAND_WORDS_MAX = 32;
|
|
8801
8861
|
var tokenize = (text3) => {
|
|
8802
8862
|
const set = /* @__PURE__ */ new Set();
|
|
8803
8863
|
for (const raw of text3.toLowerCase().split(/[^a-z0-9]+/)) {
|
|
@@ -8805,12 +8865,25 @@ var tokenize = (text3) => {
|
|
|
8805
8865
|
}
|
|
8806
8866
|
return set;
|
|
8807
8867
|
};
|
|
8808
|
-
var
|
|
8868
|
+
var TRAILING_PATH_SEPARATORS = /[\\/]+$/;
|
|
8869
|
+
var FILE_EXTENSION_AFTER_A_NAME = /(?!^)\.[^.]*$/;
|
|
8870
|
+
var isCommandFlag = (word) => word.startsWith("-");
|
|
8871
|
+
var wordName = (word) => basenameOf(word.replace(TRAILING_PATH_SEPARATORS, "")).replace(FILE_EXTENSION_AFTER_A_NAME, "");
|
|
8872
|
+
var commandTargetWords = (commandText) => commandText.trim().split(/\s+/).filter((word) => word.length > 0 && !isCommandFlag(word)).slice(0, DELTA_COMMAND_WORDS_MAX);
|
|
8873
|
+
var signalTargetTokenSet = (target) => {
|
|
8874
|
+
const set = /* @__PURE__ */ new Set();
|
|
8875
|
+
if (target.isCommand) {
|
|
8876
|
+
for (const word of commandTargetWords(target.commandText)) addAlnumTokens(wordName(word), set);
|
|
8877
|
+
} else {
|
|
8878
|
+
addAlnumTokens(target.path, set);
|
|
8879
|
+
}
|
|
8880
|
+
return set;
|
|
8881
|
+
};
|
|
8882
|
+
var GATING_COMMAND_WORDS = 2;
|
|
8883
|
+
var gatingTargetTokenSet = (target) => {
|
|
8809
8884
|
const set = /* @__PURE__ */ new Set();
|
|
8810
8885
|
if (target.isCommand) {
|
|
8811
|
-
const
|
|
8812
|
-
if (parts[0]) addAlnumTokens(basenameOf(parts[0]), set);
|
|
8813
|
-
if (parts[1]) addAlnumTokens(basenameOf(parts[1]), set);
|
|
8886
|
+
for (const word of target.commandText.trim().split(/\s+/).filter(Boolean).slice(0, GATING_COMMAND_WORDS)) addAlnumTokens(basenameOf(word), set);
|
|
8814
8887
|
} else {
|
|
8815
8888
|
addAlnumTokens(target.path, set);
|
|
8816
8889
|
}
|
|
@@ -8822,23 +8895,42 @@ var intersectionSize = (a, b) => {
|
|
|
8822
8895
|
for (const token of small) if (large.has(token)) count += 1;
|
|
8823
8896
|
return count;
|
|
8824
8897
|
};
|
|
8898
|
+
var missesTheRequest = (intentTokens, targetTokens) => targetTokens.size > 0 && intersectionSize(intentTokens, targetTokens) === 0;
|
|
8899
|
+
var riskyStepOf = (reasons) => ({ level: APPROVAL_RISK_LEVEL.risky, reasons: reasons.slice(0, RISK_REASONS_PER_STEP_MAX) });
|
|
8900
|
+
var mismatchedStepOf = (reasons) => ({ level: APPROVAL_RISK_LEVEL.mismatch, reasons: [RISK_REASON.notWhatYouAsked, ...reasons.slice(0, 1)] });
|
|
8901
|
+
var flaggedStepOf = (reasons, readsAsAMismatch) => readsAsAMismatch ? mismatchedStepOf(reasons) : riskyStepOf(reasons);
|
|
8902
|
+
var unaskedStepRiskOf = (destructiveReasons) => destructiveReasons.length === 0 ? NORMAL_APPROVAL_RISK : riskyStepOf(destructiveReasons);
|
|
8903
|
+
var askedStepRiskOf = (step) => {
|
|
8904
|
+
if (step.destructiveReasons.length > 0) return flaggedStepOf(step.destructiveReasons, step.signalMissesTheRequest);
|
|
8905
|
+
if (step.highConsequenceReasons.length > 0 && step.gatingMissesTheRequest) return flaggedStepOf(step.highConsequenceReasons, step.signalMissesTheRequest);
|
|
8906
|
+
return NORMAL_APPROVAL_RISK;
|
|
8907
|
+
};
|
|
8908
|
+
var isConsequentialStep = (step) => step.destructiveReasons.length > 0 || step.highConsequenceReasons.length > 0;
|
|
8909
|
+
var deltaResultOf = (deltaSignal, deltaScore, approvalRisk) => ({
|
|
8910
|
+
deltaSignal,
|
|
8911
|
+
deltaScore,
|
|
8912
|
+
remoteApprove: remoteApproveFor(approvalRisk),
|
|
8913
|
+
approvalRisk
|
|
8914
|
+
});
|
|
8915
|
+
var askedDeltaOf = (step) => {
|
|
8916
|
+
const approvalRisk = askedStepRiskOf(step);
|
|
8917
|
+
if (step.signalMissesTheRequest && isConsequentialStep(step)) return deltaResultOf(DELTA_SIGNAL.mismatch, 1, approvalRisk);
|
|
8918
|
+
if (step.signalMissesTheRequest) return deltaResultOf(DELTA_SIGNAL.unclear, 0.5, approvalRisk);
|
|
8919
|
+
return deltaResultOf(DELTA_SIGNAL.match, 0, approvalRisk);
|
|
8920
|
+
};
|
|
8825
8921
|
var computeDeltaSignal = (input) => {
|
|
8826
8922
|
const target = normalizeTarget(input.toolName, input.toolTarget, input.actionBody);
|
|
8827
|
-
const
|
|
8923
|
+
const destructiveReasons = destructiveReasonsOf(input.toolName ?? "", target.commandText);
|
|
8828
8924
|
if (!input.intent || input.intent.trim().length === 0) {
|
|
8829
|
-
return
|
|
8925
|
+
return deltaResultOf(DELTA_SIGNAL.unclear, 0, unaskedStepRiskOf(destructiveReasons));
|
|
8830
8926
|
}
|
|
8831
8927
|
const intentTokens = tokenize(input.intent);
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8836
|
-
|
|
8837
|
-
}
|
|
8838
|
-
if (zeroOverlap) {
|
|
8839
|
-
return { deltaSignal: "unclear", deltaScore: 0.5, remoteApprove: true };
|
|
8840
|
-
}
|
|
8841
|
-
return { deltaSignal: "match", deltaScore: 0, remoteApprove: !destructive };
|
|
8928
|
+
return askedDeltaOf({
|
|
8929
|
+
destructiveReasons,
|
|
8930
|
+
highConsequenceReasons: target.highConsequenceReasons,
|
|
8931
|
+
gatingMissesTheRequest: missesTheRequest(intentTokens, gatingTargetTokenSet(target)),
|
|
8932
|
+
signalMissesTheRequest: missesTheRequest(intentTokens, signalTargetTokenSet(target))
|
|
8933
|
+
});
|
|
8842
8934
|
};
|
|
8843
8935
|
var AUTHORIZATION_CANONICAL_VERSION = "pushary.authz.v1";
|
|
8844
8936
|
var AUTHORIZATION_CANONICAL_FIXTURE = [
|
|
@@ -8973,7 +9065,9 @@ var commandTextThatCanAct = (command) => {
|
|
|
8973
9065
|
};
|
|
8974
9066
|
var destructiveKeywordTarget = (toolName, toolTarget) => toolName === "Bash" ? commandTextThatCanAct(toolTarget) : toolTarget;
|
|
8975
9067
|
var matchesAnyPattern = (patterns, parts) => parts.some((part) => patterns.some((re) => re.test(part)));
|
|
8976
|
-
var
|
|
9068
|
+
var destructiveKeywordParts = (toolName, toolTarget) => [toolName, destructiveKeywordTarget(toolName, toolTarget)];
|
|
9069
|
+
var namesADestructiveAction = (toolName, toolTarget) => matchesAnyPattern(APPROVAL_FATIGUE_FLAG_PATTERNS, destructiveKeywordParts(toolName, toolTarget));
|
|
9070
|
+
var destructiveReasonsOf = (toolName, toolTarget) => preferNamedReasons(reasonsMatching(DESTRUCTIVE_ACTION_RISK_PATTERNS, destructiveKeywordParts(toolName, toolTarget)));
|
|
8977
9071
|
var classifyDecisionRisk = (toolName, toolTarget) => {
|
|
8978
9072
|
const target = toolTarget ?? "";
|
|
8979
9073
|
if (namesADestructiveAction(toolName, target)) return "destructive";
|
|
@@ -9023,7 +9117,8 @@ var CAPABILITY_PATTERNS = {
|
|
|
9023
9117
|
};
|
|
9024
9118
|
var MAX_PUSH_WINDOW_SECONDS = 300;
|
|
9025
9119
|
var DECISION_EPISODE_SCHEMA_VERSION = 1;
|
|
9026
|
-
var
|
|
9120
|
+
var DELTA_TOKEN_RULE_VERSION = 2;
|
|
9121
|
+
var DECISION_FEATURE_EXTRACTOR = `pushary-hooks/schema-${DECISION_EPISODE_SCHEMA_VERSION}/delta-${DELTA_TOKEN_RULE_VERSION}`;
|
|
9027
9122
|
var DECISION_ORIGIN = {
|
|
9028
9123
|
human: "human",
|
|
9029
9124
|
autopilot: "autopilot",
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6CD5QFP6.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-27AOD6AJ.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L5EZLYKM.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,31 +24,31 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-67DK2CIW.js";
|
|
28
|
+
import {
|
|
29
|
+
transcriptEnvironmentPreference,
|
|
30
|
+
transcriptsEnabled
|
|
31
|
+
} from "./chunk-GX7NST6J.js";
|
|
28
32
|
import {
|
|
29
33
|
external_exports,
|
|
30
34
|
ownedOnlyByThisUser,
|
|
31
35
|
savedTranscriptReadPositions
|
|
32
36
|
} from "./chunk-P6DUWKAO.js";
|
|
33
|
-
import {
|
|
34
|
-
transcriptEnvironmentPreference,
|
|
35
|
-
transcriptsEnabled
|
|
36
|
-
} from "./chunk-GJ5XTWNZ.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ZKTFWYT4.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UCEHVBFY.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-FKREGRCQ.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZMEZWQ7O.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isHookSource,
|
|
62
62
|
isRecord,
|
|
63
63
|
redactSecretsFromContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-Q4CX35CK.js";
|
|
65
65
|
|
|
66
66
|
// src/transcript-registration.ts
|
|
67
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -1253,6 +1253,15 @@ var closesSession = (source, input) => {
|
|
|
1253
1253
|
if (typeof event !== "string") return false;
|
|
1254
1254
|
return event === SESSION_END_EVENT || isHookSource(source) && hookMeaning(source, event)?.kind === "session_closed";
|
|
1255
1255
|
};
|
|
1256
|
+
var workFromTheHomeFolderOnWindows = (platform = process.platform, home = homedir2, changeDirectory = (path) => process.chdir(path)) => {
|
|
1257
|
+
if (platform !== "win32") return false;
|
|
1258
|
+
try {
|
|
1259
|
+
changeDirectory(home());
|
|
1260
|
+
return true;
|
|
1261
|
+
} catch {
|
|
1262
|
+
return false;
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1256
1265
|
var registerTranscript = (source, input, startDaemon = () => {
|
|
1257
1266
|
void ensureDaemonRunning({ waitTimeoutMs: 0 }).catch(() => {
|
|
1258
1267
|
});
|
|
@@ -1423,6 +1432,7 @@ export {
|
|
|
1423
1432
|
snapshotRecipientPinFile,
|
|
1424
1433
|
clearSnapshotRecipientPins,
|
|
1425
1434
|
registeredTranscriptEnabled,
|
|
1435
|
+
workFromTheHomeFolderOnWindows,
|
|
1426
1436
|
registerTranscript,
|
|
1427
1437
|
startRegisteredTranscripts
|
|
1428
1438
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DA2VDGD4.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q4CX35CK.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|