pushary 1.9.187 → 1.9.192
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 +23 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +34 -6
- package/data/openclaw-plugin/README.md +2 -2
- package/data/openclaw-plugin/dist/protected-writes.js +3 -2
- package/data/openclaw-plugin/package.json +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/pushary-gate.mjs +34 -6
- package/dist/{api-6U7B4OY7.js → api-XPS2NPJH.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 +27 -27
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +50 -50
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +8 -0
- package/dist/bin/pushary-doctor.js +75 -53
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +61 -24
- package/dist/bin/pushary-opencode-hook.js +45 -40
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +55 -55
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +44 -44
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-5O4MW5YS.js → chunk-23WKGMTI.js} +4 -2
- package/dist/{chunk-BWOQACK7.js → chunk-2HOKEC2I.js} +2 -2
- package/dist/{chunk-L7BHOFTF.js → chunk-3APYAOZF.js} +3 -3
- package/dist/{chunk-3JNBZF4G.js → chunk-3ULFLONL.js} +1 -1
- package/dist/{chunk-5X7XEJTI.js → chunk-4FVKGWWZ.js} +2 -2
- package/dist/{chunk-NNHD7KVL.js → chunk-4TIZJD3Q.js} +5 -5
- package/dist/{chunk-OLU5L3VB.js → chunk-5IPXL33D.js} +1 -1
- package/dist/{chunk-RYBTDSQF.js → chunk-5QP7DVQF.js} +1 -1
- package/dist/{chunk-QNOXMVIX.js → chunk-5WC6N3HA.js} +5 -5
- package/dist/{chunk-ZL3UDLTC.js → chunk-5WT6DLL2.js} +5 -5
- package/dist/{chunk-4OSTVMM5.js → chunk-6C7DT36Z.js} +18 -18
- package/dist/{chunk-WA5RGLKV.js → chunk-6CJSVFAD.js} +2 -2
- package/dist/{chunk-PS4AKK26.js → chunk-6EZY7IXB.js} +1 -1
- package/dist/{chunk-AKAZRQLA.js → chunk-6TNKY3DC.js} +2 -2
- package/dist/{chunk-6ZSOD7VY.js → chunk-7K5AYNDY.js} +5 -5
- package/dist/chunk-7QUPTDT2.js +92 -0
- package/dist/{chunk-6OJ7XVBR.js → chunk-A4QFVUEY.js} +2 -2
- package/dist/{chunk-URZAPVR6.js → chunk-AD7R7TNQ.js} +4 -4
- package/dist/{chunk-J3JG5EKP.js → chunk-AQLIBG2P.js} +1 -1
- package/dist/{chunk-UFAIL7YE.js → chunk-C2B4LPJU.js} +2 -2
- package/dist/{chunk-Z7OTSKAT.js → chunk-CDEJHIYQ.js} +4 -4
- package/dist/{chunk-TYGNPI7L.js → chunk-CDXD6W4N.js} +1 -1
- package/dist/{chunk-I5C35DE5.js → chunk-DAHGMBRE.js} +3 -3
- package/dist/{chunk-GYIISS2S.js → chunk-DHD54IIT.js} +7 -7
- package/dist/{chunk-GBKMTVG6.js → chunk-DP6YHOKF.js} +2 -2
- package/dist/{chunk-O7N2FQBH.js → chunk-DQI4647T.js} +4 -4
- package/dist/{chunk-BW6WGBJC.js → chunk-E65O7RMA.js} +4 -4
- package/dist/{chunk-AO5BRDKS.js → chunk-EBIPQ3ZE.js} +20 -4
- package/dist/{chunk-HYZAL77U.js → chunk-EJ56NJQ4.js} +7 -7
- package/dist/{chunk-ZKZL4EFA.js → chunk-EJJBM4OB.js} +1 -1
- package/dist/{chunk-ZUU4I2RK.js → chunk-EPNYDS4H.js} +1 -1
- package/dist/{chunk-L3BX56Y4.js → chunk-ETT24EIH.js} +3 -3
- package/dist/{chunk-NXHIWGOL.js → chunk-F326QJEJ.js} +8 -8
- package/dist/{chunk-LXZ6APGN.js → chunk-FY7WHRDJ.js} +3 -3
- package/dist/{chunk-LTB54XBS.js → chunk-FZWUUGC2.js} +4 -4
- package/dist/{chunk-YUG7PCPJ.js → chunk-GAAPUS5J.js} +1 -1
- package/dist/{chunk-VECF23YI.js → chunk-GGKGVCUN.js} +4 -4
- package/dist/{chunk-QJF5I7NR.js → chunk-GR46QR45.js} +6 -6
- package/dist/{chunk-GTEL6ZIH.js → chunk-GUBY4KIU.js} +8 -6
- package/dist/{chunk-E2CY63WZ.js → chunk-GUZLBFER.js} +5 -5
- package/dist/{chunk-KOJJ2LPJ.js → chunk-H6CBRJKT.js} +5 -5
- package/dist/{chunk-3JU27SD5.js → chunk-HMMVGDL3.js} +10 -4
- package/dist/{chunk-O5IRXMPV.js → chunk-ITPAUHJ4.js} +1 -1
- package/dist/{chunk-FYBS4VRT.js → chunk-IYOA3NWO.js} +1 -1
- package/dist/{chunk-JFZPMVEC.js → chunk-JJBM5FYH.js} +2 -2
- package/dist/{chunk-YMJCE2TD.js → chunk-JXZQ4XFL.js} +2 -2
- package/dist/{chunk-IYY7KRNS.js → chunk-KERLAXHG.js} +3 -3
- package/dist/{chunk-JLVVFGYN.js → chunk-LWUDOZHE.js} +4 -4
- package/dist/{chunk-Z2RVYQON.js → chunk-NCN7ANYA.js} +6 -6
- package/dist/{chunk-XO66RJJC.js → chunk-NFK2QF74.js} +5 -5
- package/dist/{chunk-2IBCLVJK.js → chunk-O7ZCWGYA.js} +2 -2
- package/dist/{chunk-2NHK4PUR.js → chunk-OTJEIINV.js} +6 -6
- package/dist/{chunk-PDVGAU7A.js → chunk-OYZUPSD7.js} +6 -6
- package/dist/{chunk-HKL7HXFD.js → chunk-P4JYK7WB.js} +3 -3
- package/dist/{chunk-BDJNHQFA.js → chunk-P6NACIBR.js} +4 -4
- package/dist/{chunk-TBQT2TA6.js → chunk-PUVD22DY.js} +12 -12
- package/dist/{chunk-EXM3ZEUU.js → chunk-R2NYUOTC.js} +9 -9
- package/dist/{chunk-DRY5YWUK.js → chunk-RNPEOAPC.js} +2 -2
- package/dist/{chunk-OESNI7XN.js → chunk-SHAHZQTQ.js} +4 -4
- package/dist/{chunk-6NUEY2FT.js → chunk-T4GV5MOC.js} +3 -3
- package/dist/{chunk-5DSFBND4.js → chunk-TP47JHGJ.js} +1 -1
- package/dist/{chunk-LXHH33MX.js → chunk-UF6RZBTL.js} +3 -3
- package/dist/{chunk-FZQHKRQF.js → chunk-URVW3D2J.js} +11 -11
- package/dist/{chunk-2ACPOE77.js → chunk-UV5ROHY2.js} +1 -1
- package/dist/{chunk-OCHXKVIN.js → chunk-UVNH4UGJ.js} +1 -1
- package/dist/{chunk-7P7ZKS2G.js → chunk-UXQVXB7Q.js} +1 -1
- package/dist/{chunk-XF25RJEV.js → chunk-VDJMYP54.js} +3 -3
- package/dist/{chunk-6D35FDXC.js → chunk-VEE2MRUN.js} +1 -1
- package/dist/{chunk-7IG54T3H.js → chunk-VH5DPURH.js} +1 -1
- package/dist/{chunk-TKGCDWPF.js → chunk-VNCN3Z4T.js} +2 -2
- package/dist/{chunk-QUXD5OW3.js → chunk-WB5DD232.js} +3 -3
- package/dist/{chunk-FWYOB3LW.js → chunk-WNCTMTMG.js} +1 -1
- package/dist/{chunk-EU6NQQNG.js → chunk-X4ENTDFT.js} +2 -2
- package/dist/{chunk-2PQY4TMQ.js → chunk-X7FIYMHC.js} +2 -2
- package/dist/{chunk-52CIHAC2.js → chunk-XMNETXQ4.js} +6 -6
- package/dist/{chunk-SIT46O4V.js → chunk-XONHTLMX.js} +10 -10
- package/dist/{chunk-AYM7IBC5.js → chunk-XSJON4TV.js} +1 -1
- package/dist/{chunk-KZFNXNFH.js → chunk-Y2H5TF7T.js} +1 -1
- package/dist/{chunk-6UICFJRW.js → chunk-YLZRG4U5.js} +1 -1
- package/dist/{chunk-QBPBNFDI.js → chunk-YMULPOSH.js} +5 -5
- package/dist/{chunk-D35DKI3E.js → chunk-ZCR5VTOC.js} +5 -5
- package/dist/{codex-app-cards-switch-5B67TNLS.js → codex-app-cards-switch-UEN23QFT.js} +11 -11
- package/dist/{codex-card-routing-3HSUBI6U.js → codex-card-routing-CJZT26VA.js} +2 -2
- package/dist/{codex-desktop-launch-GG5K77QD.js → codex-desktop-launch-DKOOCOTD.js} +1 -1
- package/dist/{codex-session-launch-XR46HRYK.js → codex-session-launch-UHNV5Z3D.js} +20 -20
- package/dist/{config-K7JUY27J.js → config-EVDZ6OAI.js} +3 -3
- package/dist/{global-upgrade-R24VOCK7.js → global-upgrade-KZQWNABB.js} +9 -9
- package/dist/{identity-IMSNZJZL.js → identity-A2BK7P2A.js} +4 -4
- package/dist/{live-capabilities-BBUGAZJV.js → live-capabilities-43YRGYAR.js} +4 -4
- package/dist/{paths-HGLMPFAG.js → paths-67D2435E.js} +3 -3
- package/dist/reapply-APVASEGC.js +70 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-FML33CIQ.js → upgrade-lock-TG4UOPN7.js} +4 -4
- package/dist/{usage-QMQZCRF2.js → usage-FVDJIMCB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-LV575VQE.js +0 -62
- package/dist/reapply-SYNZ2IZY.js +0 -70
|
@@ -6,30 +6,30 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
CommandReceipts,
|
|
8
8
|
controllerCommandSchema
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-6EZY7IXB.js";
|
|
10
10
|
import {
|
|
11
11
|
SESSION_IDLE_TIMEOUT_MS,
|
|
12
12
|
describeIdleWindow,
|
|
13
13
|
startProcessOwnership,
|
|
14
14
|
withSpawnProcessOwnership
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-X4ENTDFT.js";
|
|
16
16
|
import "../chunk-TCE3J44Z.js";
|
|
17
17
|
import {
|
|
18
18
|
announceSubscriptionRequired,
|
|
19
19
|
isDeferAnswer
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-UV5ROHY2.js";
|
|
21
21
|
import {
|
|
22
22
|
claudeTranscriptPath,
|
|
23
23
|
redactDraft,
|
|
24
24
|
registerTranscript,
|
|
25
25
|
registeredTranscriptEnabled,
|
|
26
26
|
startDraftPublisher
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-XONHTLMX.js";
|
|
28
28
|
import "../chunk-WHB622LP.js";
|
|
29
29
|
import {
|
|
30
30
|
ensureDaemonRunning
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-
|
|
31
|
+
} from "../chunk-OYZUPSD7.js";
|
|
32
|
+
import "../chunk-DQI4647T.js";
|
|
33
33
|
import {
|
|
34
34
|
DEFAULT_SESSION,
|
|
35
35
|
PHONE_DRIVER,
|
|
@@ -44,24 +44,24 @@ import {
|
|
|
44
44
|
removePendingCommand,
|
|
45
45
|
reportEvent,
|
|
46
46
|
savePendingCommand
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-PUVD22DY.js";
|
|
48
48
|
import {
|
|
49
49
|
UNNAMED_ACTION,
|
|
50
50
|
deriveToolTarget,
|
|
51
51
|
describeStopFailure,
|
|
52
52
|
describeToolCall,
|
|
53
53
|
scopePathFor
|
|
54
|
-
} from "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
54
|
+
} from "../chunk-3ULFLONL.js";
|
|
55
|
+
import "../chunk-EJJBM4OB.js";
|
|
56
|
+
import "../chunk-ITPAUHJ4.js";
|
|
57
57
|
import "../chunk-BZIBNSQE.js";
|
|
58
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-WB5DD232.js";
|
|
59
59
|
import {
|
|
60
60
|
external_exports
|
|
61
61
|
} from "../chunk-55L4JSPA.js";
|
|
62
62
|
import {
|
|
63
63
|
transcriptsEnabled
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-CDXD6W4N.js";
|
|
65
65
|
import {
|
|
66
66
|
needsShell,
|
|
67
67
|
spawnClaude
|
|
@@ -79,44 +79,44 @@ import {
|
|
|
79
79
|
waitRetryPauseMs,
|
|
80
80
|
waitsForThePhone,
|
|
81
81
|
withdrawQuestion
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-OTJEIINV.js";
|
|
83
83
|
import {
|
|
84
84
|
RETRY_ACK,
|
|
85
85
|
commandAckIsFinal,
|
|
86
86
|
readCommandAck,
|
|
87
87
|
refusedReceiptMessage
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-5IPXL33D.js";
|
|
89
89
|
import "../chunk-POFBE6ZY.js";
|
|
90
90
|
import {
|
|
91
91
|
SubscriptionRequiredError
|
|
92
|
-
} from "../chunk-
|
|
93
|
-
import "../chunk-
|
|
92
|
+
} from "../chunk-H6CBRJKT.js";
|
|
93
|
+
import "../chunk-VEE2MRUN.js";
|
|
94
94
|
import {
|
|
95
95
|
projectNameFor,
|
|
96
96
|
repoKeyFor,
|
|
97
97
|
repositoryScopeFor
|
|
98
|
-
} from "../chunk-
|
|
99
|
-
import "../chunk-
|
|
100
|
-
import "../chunk-
|
|
98
|
+
} from "../chunk-VH5DPURH.js";
|
|
99
|
+
import "../chunk-3APYAOZF.js";
|
|
100
|
+
import "../chunk-T4GV5MOC.js";
|
|
101
101
|
import {
|
|
102
102
|
getMachineId
|
|
103
|
-
} from "../chunk-
|
|
104
|
-
import "../chunk-
|
|
105
|
-
import "../chunk-
|
|
103
|
+
} from "../chunk-XSJON4TV.js";
|
|
104
|
+
import "../chunk-FY7WHRDJ.js";
|
|
105
|
+
import "../chunk-DP6YHOKF.js";
|
|
106
106
|
import {
|
|
107
107
|
claudeConfigDir
|
|
108
|
-
} from "../chunk-
|
|
109
|
-
import "../chunk-
|
|
108
|
+
} from "../chunk-2HOKEC2I.js";
|
|
109
|
+
import "../chunk-EBIPQ3ZE.js";
|
|
110
110
|
import {
|
|
111
111
|
getApiKey,
|
|
112
112
|
getBaseUrl
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-Y2H5TF7T.js";
|
|
114
114
|
import "../chunk-CINBAX5G.js";
|
|
115
115
|
import "../chunk-PM2NRK6Y.js";
|
|
116
116
|
import "../chunk-BG4HHB7E.js";
|
|
117
117
|
import {
|
|
118
118
|
NPX_LATEST_COMMAND
|
|
119
|
-
} from "../chunk-
|
|
119
|
+
} from "../chunk-GAAPUS5J.js";
|
|
120
120
|
import "../chunk-UQTQ6HPO.js";
|
|
121
121
|
import {
|
|
122
122
|
DECISION_STOP_REASON,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
refusesWhenUnanswered,
|
|
131
131
|
resolveGate,
|
|
132
132
|
timeoutActionWithoutLocalPrompt
|
|
133
|
-
} from "../chunk-
|
|
133
|
+
} from "../chunk-HMMVGDL3.js";
|
|
134
134
|
import "../chunk-MLKGABMK.js";
|
|
135
135
|
|
|
136
136
|
// src/wrapper/localPassthrough.ts
|
|
@@ -15,31 +15,31 @@ import {
|
|
|
15
15
|
storedMacAppState,
|
|
16
16
|
storedPusharyKeychainServices,
|
|
17
17
|
waitForMacAppExit
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-O7ZCWGYA.js";
|
|
19
19
|
import {
|
|
20
20
|
PUSHARY_SKILL_NAME,
|
|
21
21
|
PUSHARY_SKILL_SOURCE,
|
|
22
22
|
createGuards
|
|
23
23
|
} from "../chunk-UOPOVQ2P.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-ETT24EIH.js";
|
|
25
25
|
import "../chunk-XCEN33UP.js";
|
|
26
26
|
import {
|
|
27
27
|
describeCliKeyRevocation,
|
|
28
28
|
planCliKeyRevocations,
|
|
29
29
|
readCliHeldKeys,
|
|
30
30
|
revokeCliKeys
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-NFK2QF74.js";
|
|
32
32
|
import "../chunk-U4P4NDVB.js";
|
|
33
33
|
import {
|
|
34
34
|
isCursorPluginLeftover,
|
|
35
35
|
releaseSoleGate,
|
|
36
36
|
withoutPusharyCursorHooks
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-E65O7RMA.js";
|
|
38
38
|
import {
|
|
39
39
|
shortenHome,
|
|
40
40
|
unregisterPluginLocation,
|
|
41
41
|
vscodeSettingsTargets
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-YMULPOSH.js";
|
|
43
43
|
import "../chunk-OYIN77HO.js";
|
|
44
44
|
import {
|
|
45
45
|
configFileHoldsMacAppKey,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
pusharyKey,
|
|
49
49
|
readMacAppAgentKey,
|
|
50
50
|
setupReceiptKey
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-FZWUUGC2.js";
|
|
52
52
|
import {
|
|
53
53
|
HERMES_CONFIG_FILE,
|
|
54
54
|
defaultHermesHome,
|
|
@@ -57,18 +57,18 @@ import {
|
|
|
57
57
|
openClawRemovalLeavesThePluginInstalled,
|
|
58
58
|
removeHermesWiring,
|
|
59
59
|
removeOpenClawPlugin
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-CDEJHIYQ.js";
|
|
61
61
|
import "../chunk-QCGNGEGE.js";
|
|
62
62
|
import {
|
|
63
63
|
OPENCLAW_PLUGIN_PACKAGE
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-KERLAXHG.js";
|
|
65
65
|
import {
|
|
66
66
|
planClineRemoval,
|
|
67
67
|
planFxRemoval,
|
|
68
68
|
removeClineServer
|
|
69
|
-
} from "../chunk-
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-
|
|
69
|
+
} from "../chunk-GUZLBFER.js";
|
|
70
|
+
import "../chunk-P4JYK7WB.js";
|
|
71
|
+
import "../chunk-DAHGMBRE.js";
|
|
72
72
|
import {
|
|
73
73
|
OPENCODE_ASKED_PERMISSIONS,
|
|
74
74
|
hasForeignPlugins,
|
|
@@ -79,22 +79,22 @@ import {
|
|
|
79
79
|
openCodePluginDir,
|
|
80
80
|
openCodePluginFile,
|
|
81
81
|
removeOpenCodeMcpServer
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-DHD54IIT.js";
|
|
83
83
|
import {
|
|
84
84
|
isOpenCodePluginOurs
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-4TIZJD3Q.js";
|
|
86
86
|
import {
|
|
87
87
|
OPENCODE_PLUGIN_SIBLING,
|
|
88
88
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
89
|
-
} from "../chunk-
|
|
90
|
-
import "../chunk-
|
|
89
|
+
} from "../chunk-WNCTMTMG.js";
|
|
90
|
+
import "../chunk-6CJSVFAD.js";
|
|
91
91
|
import {
|
|
92
92
|
ansiPainter,
|
|
93
93
|
useColor
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-5QP7DVQF.js";
|
|
95
95
|
import {
|
|
96
96
|
exitOnHelpFlag
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-AQLIBG2P.js";
|
|
98
98
|
import "../chunk-TCE3J44Z.js";
|
|
99
99
|
import {
|
|
100
100
|
compatibleConfigFile,
|
|
@@ -107,34 +107,34 @@ import {
|
|
|
107
107
|
removeCompatibleHooks,
|
|
108
108
|
removeCompatibleMcpServer,
|
|
109
109
|
serializeConfigDocument
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-ZCR5VTOC.js";
|
|
111
111
|
import {
|
|
112
112
|
disableDaemonService
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-OYZUPSD7.js";
|
|
114
114
|
import {
|
|
115
115
|
hookOwnerOf,
|
|
116
116
|
isHookTakeoverReceipt,
|
|
117
117
|
removeGeminiSettings,
|
|
118
118
|
restoreHookTakeover,
|
|
119
119
|
restoreMcpServer
|
|
120
|
-
} from "../chunk-
|
|
121
|
-
import "../chunk-
|
|
122
|
-
import "../chunk-
|
|
123
|
-
import "../chunk-
|
|
124
|
-
import "../chunk-
|
|
120
|
+
} from "../chunk-DQI4647T.js";
|
|
121
|
+
import "../chunk-PUVD22DY.js";
|
|
122
|
+
import "../chunk-3ULFLONL.js";
|
|
123
|
+
import "../chunk-EJJBM4OB.js";
|
|
124
|
+
import "../chunk-ITPAUHJ4.js";
|
|
125
125
|
import {
|
|
126
126
|
parseFlags
|
|
127
127
|
} from "../chunk-BZIBNSQE.js";
|
|
128
128
|
import "../chunk-VRNGMRJA.js";
|
|
129
|
-
import "../chunk-
|
|
130
|
-
import "../chunk-
|
|
129
|
+
import "../chunk-OTJEIINV.js";
|
|
130
|
+
import "../chunk-5IPXL33D.js";
|
|
131
131
|
import "../chunk-POFBE6ZY.js";
|
|
132
|
-
import "../chunk-
|
|
133
|
-
import "../chunk-
|
|
134
|
-
import "../chunk-
|
|
135
|
-
import "../chunk-
|
|
136
|
-
import "../chunk-
|
|
137
|
-
import "../chunk-
|
|
132
|
+
import "../chunk-H6CBRJKT.js";
|
|
133
|
+
import "../chunk-VEE2MRUN.js";
|
|
134
|
+
import "../chunk-VH5DPURH.js";
|
|
135
|
+
import "../chunk-3APYAOZF.js";
|
|
136
|
+
import "../chunk-T4GV5MOC.js";
|
|
137
|
+
import "../chunk-XSJON4TV.js";
|
|
138
138
|
import {
|
|
139
139
|
CANDIDATE_RCS,
|
|
140
140
|
exportedKeyFiles,
|
|
@@ -142,8 +142,8 @@ import {
|
|
|
142
142
|
isKeyLoaderLine,
|
|
143
143
|
removeClaudeAlias,
|
|
144
144
|
withoutKeyLines
|
|
145
|
-
} from "../chunk-
|
|
146
|
-
import "../chunk-
|
|
145
|
+
} from "../chunk-FY7WHRDJ.js";
|
|
146
|
+
import "../chunk-DP6YHOKF.js";
|
|
147
147
|
import {
|
|
148
148
|
claudeConfigDir,
|
|
149
149
|
claudeJson,
|
|
@@ -188,17 +188,17 @@ import {
|
|
|
188
188
|
restoreCodexHookTrust,
|
|
189
189
|
vscodePluginDir,
|
|
190
190
|
vscodePluginMcp
|
|
191
|
-
} from "../chunk-
|
|
191
|
+
} from "../chunk-2HOKEC2I.js";
|
|
192
192
|
import {
|
|
193
193
|
cleanNpmEnv,
|
|
194
194
|
globalPackageState,
|
|
195
195
|
npmIsOnPath,
|
|
196
196
|
readGlobalFolder,
|
|
197
197
|
readGlobalPrefix
|
|
198
|
-
} from "../chunk-
|
|
198
|
+
} from "../chunk-EBIPQ3ZE.js";
|
|
199
199
|
import {
|
|
200
200
|
getBaseUrl
|
|
201
|
-
} from "../chunk-
|
|
201
|
+
} from "../chunk-Y2H5TF7T.js";
|
|
202
202
|
import "../chunk-CINBAX5G.js";
|
|
203
203
|
import "../chunk-PM2NRK6Y.js";
|
|
204
204
|
import {
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
} from "../chunk-BG4HHB7E.js";
|
|
207
207
|
import {
|
|
208
208
|
NPX_LATEST_COMMAND
|
|
209
|
-
} from "../chunk-
|
|
209
|
+
} from "../chunk-GAAPUS5J.js";
|
|
210
210
|
import {
|
|
211
211
|
CLI_PACKAGE_NAMES,
|
|
212
212
|
globalPackageFolder,
|
|
@@ -220,7 +220,7 @@ import {
|
|
|
220
220
|
SUPPORT_EMAIL,
|
|
221
221
|
isValidApiKey,
|
|
222
222
|
redactSecrets
|
|
223
|
-
} from "../chunk-
|
|
223
|
+
} from "../chunk-HMMVGDL3.js";
|
|
224
224
|
import "../chunk-MLKGABMK.js";
|
|
225
225
|
|
|
226
226
|
// bin/pushary-clean.ts
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runCodexBridge
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-F326QJEJ.js";
|
|
5
|
+
import "../chunk-23WKGMTI.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveProviderBinary
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-UF6RZBTL.js";
|
|
9
|
+
import "../chunk-RNPEOAPC.js";
|
|
10
|
+
import "../chunk-6EZY7IXB.js";
|
|
11
11
|
import {
|
|
12
12
|
withSpawnProcessOwnership
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-X4ENTDFT.js";
|
|
14
14
|
import "../chunk-TCE3J44Z.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-WB5DD232.js";
|
|
16
16
|
import "../chunk-55L4JSPA.js";
|
|
17
17
|
import {
|
|
18
18
|
transcriptsEnabled
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-CDXD6W4N.js";
|
|
20
20
|
import "../chunk-VRNGMRJA.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-OTJEIINV.js";
|
|
22
|
+
import "../chunk-5IPXL33D.js";
|
|
23
23
|
import "../chunk-POFBE6ZY.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-H6CBRJKT.js";
|
|
25
|
+
import "../chunk-VEE2MRUN.js";
|
|
26
|
+
import "../chunk-VH5DPURH.js";
|
|
27
|
+
import "../chunk-3APYAOZF.js";
|
|
28
|
+
import "../chunk-T4GV5MOC.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-XSJON4TV.js";
|
|
32
|
+
import "../chunk-FY7WHRDJ.js";
|
|
33
|
+
import "../chunk-DP6YHOKF.js";
|
|
34
|
+
import "../chunk-2HOKEC2I.js";
|
|
35
|
+
import "../chunk-EBIPQ3ZE.js";
|
|
36
36
|
import {
|
|
37
37
|
getApiKey,
|
|
38
38
|
getBaseUrl
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-Y2H5TF7T.js";
|
|
40
40
|
import "../chunk-CINBAX5G.js";
|
|
41
41
|
import "../chunk-PM2NRK6Y.js";
|
|
42
42
|
import "../chunk-BG4HHB7E.js";
|
|
43
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-GAAPUS5J.js";
|
|
44
44
|
import "../chunk-UQTQ6HPO.js";
|
|
45
|
-
import "../chunk-
|
|
45
|
+
import "../chunk-HMMVGDL3.js";
|
|
46
46
|
import "../chunk-MLKGABMK.js";
|
|
47
47
|
|
|
48
48
|
// bin/pushary-codex-bridge.ts
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
takeHookHoldBudget
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TP47JHGJ.js";
|
|
5
5
|
import {
|
|
6
6
|
parseCodexHookInput,
|
|
7
7
|
pushQuestionAndWait,
|
|
8
8
|
scopeQuestionOf
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-GGKGVCUN.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-UXQVXB7Q.js";
|
|
13
13
|
import {
|
|
14
14
|
askAgentQuestions
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-GUBY4KIU.js";
|
|
16
16
|
import {
|
|
17
|
-
reportMachineDenial
|
|
18
|
-
|
|
17
|
+
reportMachineDenial,
|
|
18
|
+
reportRuleCoveredRun
|
|
19
|
+
} from "../chunk-7QUPTDT2.js";
|
|
19
20
|
import {
|
|
20
21
|
isGatingMoment,
|
|
21
22
|
recordKeylessMoment
|
|
22
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-IYOA3NWO.js";
|
|
23
24
|
import {
|
|
24
25
|
triggerAutoUpdate
|
|
25
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-X7FIYMHC.js";
|
|
26
27
|
import {
|
|
27
28
|
readHookInput
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
29
|
+
} from "../chunk-7K5AYNDY.js";
|
|
30
|
+
import "../chunk-LWUDOZHE.js";
|
|
30
31
|
import {
|
|
31
32
|
announceSubscriptionRequired,
|
|
32
33
|
isDeferAnswer
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-
|
|
34
|
+
} from "../chunk-UV5ROHY2.js";
|
|
35
|
+
import "../chunk-XONHTLMX.js";
|
|
35
36
|
import "../chunk-WHB622LP.js";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-ZCR5VTOC.js";
|
|
38
|
+
import "../chunk-OYZUPSD7.js";
|
|
39
|
+
import "../chunk-DQI4647T.js";
|
|
39
40
|
import {
|
|
40
41
|
CODEX_AGENT,
|
|
41
42
|
DEFAULT_SESSION,
|
|
@@ -71,7 +72,7 @@ import {
|
|
|
71
72
|
toPolicyLookups,
|
|
72
73
|
userScope,
|
|
73
74
|
withdrawLeftOpenQuestions
|
|
74
|
-
} from "../chunk-
|
|
75
|
+
} from "../chunk-PUVD22DY.js";
|
|
75
76
|
import {
|
|
76
77
|
codexReviewerDenialsSince,
|
|
77
78
|
deriveActionBody,
|
|
@@ -84,13 +85,13 @@ import {
|
|
|
84
85
|
scanCodexGuardianReviews,
|
|
85
86
|
scopePathFor,
|
|
86
87
|
sessionIdentityOf
|
|
87
|
-
} from "../chunk-
|
|
88
|
-
import "../chunk-
|
|
89
|
-
import "../chunk-
|
|
88
|
+
} from "../chunk-3ULFLONL.js";
|
|
89
|
+
import "../chunk-EJJBM4OB.js";
|
|
90
|
+
import "../chunk-ITPAUHJ4.js";
|
|
90
91
|
import "../chunk-BZIBNSQE.js";
|
|
91
|
-
import "../chunk-
|
|
92
|
+
import "../chunk-WB5DD232.js";
|
|
92
93
|
import "../chunk-55L4JSPA.js";
|
|
93
|
-
import "../chunk-
|
|
94
|
+
import "../chunk-CDXD6W4N.js";
|
|
94
95
|
import "../chunk-VRNGMRJA.js";
|
|
95
96
|
import {
|
|
96
97
|
ABANDONED_WAIT,
|
|
@@ -106,35 +107,35 @@ import {
|
|
|
106
107
|
sendNotification,
|
|
107
108
|
sleepUnlessAborted,
|
|
108
109
|
withdrawQuestion
|
|
109
|
-
} from "../chunk-
|
|
110
|
-
import "../chunk-
|
|
110
|
+
} from "../chunk-OTJEIINV.js";
|
|
111
|
+
import "../chunk-5IPXL33D.js";
|
|
111
112
|
import "../chunk-POFBE6ZY.js";
|
|
112
113
|
import {
|
|
113
114
|
SubscriptionRequiredError
|
|
114
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-H6CBRJKT.js";
|
|
115
116
|
import {
|
|
116
117
|
fetchAsCredential
|
|
117
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-VEE2MRUN.js";
|
|
118
119
|
import {
|
|
119
120
|
projectNameFor,
|
|
120
121
|
repoKeyFor,
|
|
121
122
|
repositoryScopeFor
|
|
122
|
-
} from "../chunk-
|
|
123
|
-
import "../chunk-
|
|
124
|
-
import "../chunk-
|
|
123
|
+
} from "../chunk-VH5DPURH.js";
|
|
124
|
+
import "../chunk-3APYAOZF.js";
|
|
125
|
+
import "../chunk-T4GV5MOC.js";
|
|
125
126
|
import {
|
|
126
127
|
getMachineId
|
|
127
|
-
} from "../chunk-
|
|
128
|
-
import "../chunk-
|
|
129
|
-
import "../chunk-
|
|
128
|
+
} from "../chunk-XSJON4TV.js";
|
|
129
|
+
import "../chunk-FY7WHRDJ.js";
|
|
130
|
+
import "../chunk-DP6YHOKF.js";
|
|
130
131
|
import {
|
|
131
132
|
canonicalJson
|
|
132
|
-
} from "../chunk-
|
|
133
|
-
import "../chunk-
|
|
133
|
+
} from "../chunk-2HOKEC2I.js";
|
|
134
|
+
import "../chunk-EBIPQ3ZE.js";
|
|
134
135
|
import {
|
|
135
136
|
getApiKey,
|
|
136
137
|
getBaseUrl
|
|
137
|
-
} from "../chunk-
|
|
138
|
+
} from "../chunk-Y2H5TF7T.js";
|
|
138
139
|
import "../chunk-CINBAX5G.js";
|
|
139
140
|
import {
|
|
140
141
|
writeFileAtomic
|
|
@@ -142,7 +143,7 @@ import {
|
|
|
142
143
|
import {
|
|
143
144
|
EXIT
|
|
144
145
|
} from "../chunk-BG4HHB7E.js";
|
|
145
|
-
import "../chunk-
|
|
146
|
+
import "../chunk-GAAPUS5J.js";
|
|
146
147
|
import "../chunk-UQTQ6HPO.js";
|
|
147
148
|
import {
|
|
148
149
|
CALL_REFUSED_EVENT,
|
|
@@ -179,7 +180,7 @@ import {
|
|
|
179
180
|
refusesWhenUnanswered,
|
|
180
181
|
resolveGate,
|
|
181
182
|
unapprovedScopeReason
|
|
182
|
-
} from "../chunk-
|
|
183
|
+
} from "../chunk-HMMVGDL3.js";
|
|
183
184
|
import "../chunk-MLKGABMK.js";
|
|
184
185
|
|
|
185
186
|
// src/rule-watched-ask.ts
|
|
@@ -192,8 +193,6 @@ var FIRST_RULE_RECHECK_MS = 4e3;
|
|
|
192
193
|
var LONGEST_RULE_RECHECK_MS = 15e3;
|
|
193
194
|
var RULE_RECHECK_GROWTH = 1.5;
|
|
194
195
|
var NO_RULE_CHANGE = { kind: "none" };
|
|
195
|
-
var RULE_ALLOWS = { kind: "allows" };
|
|
196
|
-
var COVERED_BY_RULE = { kind: "covered_by_rule" };
|
|
197
196
|
var NO_FREE_SLOT = { kind: "no_free_slot" };
|
|
198
197
|
var slotWaitRoomOf = (waitSeconds, agent) => {
|
|
199
198
|
const budgetMs = hookMaxWaitSeconds(agent) * 1e3;
|
|
@@ -214,7 +213,7 @@ var ruleStoppedApprovingUnanswered = (verdict) => verdict.kind === "gate" && !ap
|
|
|
214
213
|
var slotWaitFor = (rule) => rule.silenceApproves ? { lastSlotAttemptAtMs: lastSlotAttemptFor(rule), slotWaitEndsOn: ruleStoppedApprovingUnanswered } : { lastSlotAttemptAtMs: lastSlotAttemptFor(rule) };
|
|
215
214
|
var nextRuleRecheckMs = (previousMs) => Math.min(Math.round(previousMs * RULE_RECHECK_GROWTH), LONGEST_RULE_RECHECK_MS);
|
|
216
215
|
var ruleChangeOf = (verdict) => {
|
|
217
|
-
if (verdict.kind === "allow") return
|
|
216
|
+
if (verdict.kind === "allow") return { kind: "allows", verdict };
|
|
218
217
|
if (isGateRefusal(verdict)) return { kind: "refuses", verdict };
|
|
219
218
|
return NO_RULE_CHANGE;
|
|
220
219
|
};
|
|
@@ -241,11 +240,8 @@ var readRulesWithin = async (deps, limitMs) => {
|
|
|
241
240
|
}
|
|
242
241
|
};
|
|
243
242
|
var ruleSettlesAFailedAsk = (change, error) => change.kind === "refuses" || isQuestionLimitRefusal(error);
|
|
244
|
-
var
|
|
245
|
-
|
|
246
|
-
if (change.kind === "refuses") return { kind: "refused_by_rule", verdict: change.verdict };
|
|
247
|
-
return null;
|
|
248
|
-
};
|
|
243
|
+
var ruledOutcomeOf = (change) => change.kind === "allows" ? { kind: "covered_by_rule", verdict: change.verdict } : { kind: "refused_by_rule", verdict: change.verdict };
|
|
244
|
+
var outcomeOfRuleChange = (change) => change.kind === "none" ? null : ruledOutcomeOf(change);
|
|
249
245
|
var watchForARuleChange = async (deps, waitOver) => {
|
|
250
246
|
let intervalMs = FIRST_RULE_RECHECK_MS;
|
|
251
247
|
while (!waitOver.aborted) {
|
|
@@ -261,8 +257,8 @@ var isSettled = (answer) => answer.answered || isDecisionStopped(answer);
|
|
|
261
257
|
var wasAbandonedForARule = (answer) => answer.status === ABANDONED_WAIT.status;
|
|
262
258
|
var settleAfterARuleChange = async (deps, pushed, correlationId, change) => {
|
|
263
259
|
const late = correlationId.length > 0 ? await deps.withdraw(correlationId) : pushed.answer;
|
|
264
|
-
if (change.kind === "
|
|
265
|
-
return
|
|
260
|
+
if (change.kind === "allows" && isSettled(late)) return { kind: "pushed", pushed: { ...pushed, answer: late } };
|
|
261
|
+
return ruledOutcomeOf(change);
|
|
266
262
|
};
|
|
267
263
|
var pushWatchingForARule = async (deps) => {
|
|
268
264
|
const ruleChanged = new AbortController();
|
|
@@ -780,7 +776,7 @@ var callKeyFor = (input) => codexCallKey({
|
|
|
780
776
|
toolInput: input.tool_input
|
|
781
777
|
});
|
|
782
778
|
var START_MS2 = Date.now();
|
|
783
|
-
var
|
|
779
|
+
var REPORT_DEADLINE_MS = START_MS2 + (HOOK_BUDGETS.codex.budgetSeconds - 1) * 1e3;
|
|
784
780
|
var agentNameFor = (input) => `Codex - ${projectNameFor(input.cwd)}`;
|
|
785
781
|
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");
|
|
786
782
|
var AGENT_PROMPT_FOLLOWS_A_PRE_TOOL_USE_REFUSAL = false;
|
|
@@ -882,6 +878,10 @@ var passedByRule = async (input, callFingerprint) => {
|
|
|
882
878
|
await withdrawQuestionsLeftOpen(input, questionsAPassWithdraws(callFingerprint));
|
|
883
879
|
return codexPass();
|
|
884
880
|
};
|
|
881
|
+
var passedByARuleWhileHeld = async (input, lookup, verdict, callFingerprint) => {
|
|
882
|
+
await reportRuleCoveredRun({ ...input, tool_name: lookup.tool, tool_input: lookup.input }, verdict, CODEX_AGENT, REPORT_DEADLINE_MS);
|
|
883
|
+
return passedByRule(input, callFingerprint);
|
|
884
|
+
};
|
|
885
885
|
var callsPusharysOwnTool = (input) => input.tool_name !== void 0 && isPusharyOwnTool(input.tool_name);
|
|
886
886
|
var decidePermissionRequest = async (input) => {
|
|
887
887
|
if (callsPusharysOwnTool(input)) return codexPass();
|
|
@@ -946,7 +946,7 @@ var reportIfRefused = (apiKey, input, lookup, deliveryMode, reason, decision) =>
|
|
|
946
946
|
reason,
|
|
947
947
|
deliveryMode,
|
|
948
948
|
waitedSeconds: wholeSecondsBetween(START_MS2, Date.now())
|
|
949
|
-
},
|
|
949
|
+
}, REPORT_DEADLINE_MS);
|
|
950
950
|
}
|
|
951
951
|
return decision;
|
|
952
952
|
};
|
|
@@ -1052,7 +1052,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1052
1052
|
if (error instanceof SubscriptionRequiredError) return recordPreToolUse(callKey, codexStepsAside(error, input));
|
|
1053
1053
|
return recordPreToolUse(callKey, codexDeny(UNVERIFIABLE_APPROVAL_REASON));
|
|
1054
1054
|
}
|
|
1055
|
-
if (asked.kind === "covered_by_rule") return await
|
|
1055
|
+
if (asked.kind === "covered_by_rule") return await passedByARuleWhileHeld(input, lookup, asked.verdict, callFingerprint);
|
|
1056
1056
|
if (asked.kind === "refused_by_rule") return await refusedByRule(input, lookup, asked.verdict, callFingerprint);
|
|
1057
1057
|
if (asked.kind === "no_free_slot") {
|
|
1058
1058
|
return reportIfRefused(apiKey, input, lookup, deliveryMode, "no_free_slot", recordPreToolUse(callKey, unansweredOutcome(scope, codexQuestionLimitDecision({ refusesUnanswered: refusesWhenUnanswered(delivery.policy), agentPromptFollows: AGENT_PROMPT_FOLLOWS_A_PRE_TOOL_USE_REFUSAL }))));
|
|
@@ -1080,7 +1080,7 @@ var decidePreToolUse = async (input) => {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
var repairCodexHoldsQuietly = async () => {
|
|
1082
1082
|
try {
|
|
1083
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
1083
|
+
const { repairCodexHolds } = await import("../reapply-APVASEGC.js");
|
|
1084
1084
|
repairCodexHolds();
|
|
1085
1085
|
} catch {
|
|
1086
1086
|
return;
|