pushary 1.9.282 → 1.9.285
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/README.md +3 -1
- package/dist/{api-WBSDPSHN.js → api-4MGFAW5H.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +11 -11
- package/dist/bin/pushary-calls.js +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +38 -36
- 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 +115 -52
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +18 -4
- package/dist/bin/pushary-doctor.js +72 -73
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +46 -43
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- 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 +35 -35
- 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 +12 -12
- package/dist/bin/pushary-setup.js +65 -61
- 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 +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +54 -50
- package/dist/bin/pushary-wait.js +67 -30
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-JUZC524C.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-GS6XPW45.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-MYXHCXD3.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-36CZVHOH.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-SIZMK3SF.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-67D6KDPJ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-PATTVCJS.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-YQNGHX3P.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-O6LVUSRY.js → chunk-52XX2DYG.js} +6 -6
- package/dist/{chunk-3FCGMTG2.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-PUDKDFOZ.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-T2JHF3E4.js → chunk-5IJ252DT.js} +7 -7
- package/dist/{chunk-3AKD2IMA.js → chunk-6T367UEE.js} +6 -6
- package/dist/{chunk-VY7Q5MEQ.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-KSHM2X7A.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-TCQ3SHEC.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-7OV4MW6B.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-R5P25UN2.js → chunk-745DB5AH.js} +5 -5
- package/dist/{chunk-XV54WWNB.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-2SE3TSWT.js → chunk-7GHHQFHH.js} +10 -10
- package/dist/{chunk-7WCBGOXC.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-3I6Z6YKA.js → chunk-7U43GCFH.js} +5 -5
- package/dist/{chunk-HPYVOBVO.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-QXPI7LOZ.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-IJOGKO3Z.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-L25W4SZ2.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-USRBNJJX.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-M4B3D76U.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-SCR7JFIZ.js → chunk-CE4D3FCO.js} +12 -12
- package/dist/{chunk-QGQA4VUR.js → chunk-CITB5W5V.js} +8 -8
- package/dist/{chunk-LKL7VIWF.js → chunk-CP65XDI7.js} +3 -3
- package/dist/{chunk-KV65OAIF.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-ZL46IS5W.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-2562EGWD.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-7CCJLPFF.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-AGBCUPRE.js → chunk-FLUKEERY.js} +5 -5
- package/dist/{chunk-ODSUVMII.js → chunk-FQC76AYR.js} +5 -5
- package/dist/{chunk-DLRZZHXC.js → chunk-HHGZZIKD.js} +6 -6
- package/dist/{chunk-RECYGQIM.js → chunk-HOAWHKM3.js} +20 -18
- package/dist/{chunk-G6EN7DLG.js → chunk-HWIDUN2Q.js} +10 -10
- package/dist/{chunk-NL4NVNSD.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-URYZAUMK.js → chunk-IVIG4LUZ.js} +4 -4
- package/dist/{chunk-MZPWMXPX.js → chunk-JBK7WRPB.js} +2 -10
- package/dist/{chunk-VYMBV6M5.js → chunk-JMPGFGCM.js} +3 -3
- package/dist/{chunk-D35MHKUM.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-Q5MYEDCP.js → chunk-KI6IY52L.js} +6 -6
- package/dist/{chunk-6SJ3YYPS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-5WZAL3IG.js → chunk-LAPJNDQG.js} +4 -4
- package/dist/{chunk-4EJ6BFQ6.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-HJ25OOZL.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-DEGZHZLH.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QG742PJG.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-LE2GNKVF.js → chunk-NAD2JOKF.js} +19 -9
- package/dist/{chunk-JKMX5HMU.js → chunk-O2BQDYHI.js} +1 -1
- package/dist/{chunk-RI6C7WBQ.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-DGIMLJ7N.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-JP545GB4.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-XKTBFWO2.js → chunk-PCKCLSGP.js} +1 -1
- package/dist/{chunk-6TC6Y5FE.js → chunk-PGCMTR5N.js} +5 -5
- package/dist/{chunk-NQCIACTR.js → chunk-PMHOO355.js} +4 -4
- package/dist/{chunk-GOMIXT5C.js → chunk-PU5MHVE2.js} +5 -5
- package/dist/{chunk-7CIMT2QH.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7DZ7UZQE.js → chunk-QTNBPBYN.js} +31 -6
- package/dist/{chunk-GBMURSB4.js → chunk-QWBPCCFQ.js} +7 -7
- package/dist/{chunk-FYGOACNH.js → chunk-RRDQYSNT.js} +2 -2
- package/dist/{chunk-ENTFHIJ5.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-KKPI7MVG.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-I2OOSUJN.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-YEQF4H76.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-VSF3OSWI.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-DI7VQ4PL.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DPTI6ZTZ.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-Z7F7SITX.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-OPWXKDXN.js → chunk-WKXO22AI.js} +4 -4
- package/dist/{chunk-JXVZO2TC.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/chunk-WY2HGMNV.js +42 -0
- package/dist/{chunk-H5BATWAL.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-2NNCVW26.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-DWL2XZNZ.js → chunk-XV7ZL2JN.js} +5 -5
- package/dist/{chunk-OVUJLLPD.js → chunk-YJ6OARPK.js} +36 -24
- package/dist/{chunk-I5RNSFXB.js → chunk-YPDWI6KV.js} +4 -4
- package/dist/{chunk-YM3TSHT2.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-7FUEG6WT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{codex-app-cards-switch-DGTEKXMX.js → codex-app-cards-switch-JPDKYQ5R.js} +11 -11
- package/dist/{codex-card-routing-ESKPXKXS.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-HCEBT2IM.js → codex-desktop-launch-WELLPX34.js} +3 -3
- package/dist/{codex-session-launch-PXWW7EDP.js → codex-session-launch-BAVV7JK7.js} +21 -21
- package/dist/{config-PFH6OQ6M.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-UU3H3EFW.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-JHCLWMLI.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-3K6DM4A3.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-TMTWXB5B.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-RT4T77RQ.js → reapply-DWXARPLQ.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-NGYIAYBZ.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-LGGUWLJM.js → usage-YDADZALP.js} +3 -3
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BCYXPGOQ.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-4KPUTQPG.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-7U43GCFH.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QWBPCCFQ.js";
|
|
40
40
|
import {
|
|
41
41
|
addCompatibleHooks,
|
|
42
42
|
compatibleConfigFile,
|
|
43
43
|
compatibleInstructionsFile,
|
|
44
44
|
hasCompatibleHooks
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-KI6IY52L.js";
|
|
46
46
|
import {
|
|
47
47
|
GEMINI_HOOK_BINARY,
|
|
48
48
|
addGeminiHooks,
|
|
@@ -54,16 +54,16 @@ import {
|
|
|
54
54
|
geminiWired,
|
|
55
55
|
hasGeminiHooks,
|
|
56
56
|
planHooks
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
58
58
|
import {
|
|
59
59
|
detectClaudeVersion
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-YV7BK4UO.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-44RAWLI3.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VVXWDBZK.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
replaceCodexMcpEmbeddedKey,
|
|
114
114
|
supportedClaudeEvents,
|
|
115
115
|
vscodePluginMcp
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-6YVIWLL2.js";
|
|
117
117
|
import {
|
|
118
118
|
formatVersion
|
|
119
119
|
} from "./chunk-6ICPEJY5.js";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
hookCommandsUseBareNames,
|
|
122
122
|
resolveGlobalBinDir,
|
|
123
123
|
resolveGlobalBinary
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-SNR7BUWT.js";
|
|
125
125
|
import {
|
|
126
126
|
readJsonSafe,
|
|
127
127
|
writeFileAtomic,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
HOOK_COMPATIBLE_PROFILES,
|
|
132
132
|
isCompatibleAgentType,
|
|
133
133
|
isRecord
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-NAD2JOKF.js";
|
|
135
135
|
|
|
136
136
|
// src/reapply.ts
|
|
137
137
|
import { dirname, join } from "path";
|
|
@@ -6,37 +6,37 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O2BQDYHI.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MBUENM7S.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-P47NDCPH.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
23
23
|
import {
|
|
24
24
|
readCommandAck
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CDOFQJ2Z.js";
|
|
26
26
|
import {
|
|
27
27
|
isDecisionStopped,
|
|
28
28
|
isWaitForAnswerResponse,
|
|
29
29
|
withdrawQuestion,
|
|
30
30
|
writeDegraded
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5IJ252DT.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6T367UEE.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YQVGPAZV.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NAD2JOKF.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-3EGEA4KH.js";
|
|
10
10
|
import {
|
|
11
11
|
testTrafficHeaders
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5IJ252DT.js";
|
|
13
13
|
import {
|
|
14
14
|
getBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JPCVW3BA.js";
|
|
16
16
|
import {
|
|
17
17
|
CLI_LOCAL_BIND_PATH,
|
|
18
18
|
LOCAL_CONFIRM_HOST,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isLocalConfirmToken,
|
|
24
24
|
isPhonePass,
|
|
25
25
|
localTerminalEntryUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NAD2JOKF.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/login-ui.ts
|
|
29
29
|
import { hostname } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A533F6TF.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NAD2JOKF.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YJ6OARPK.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ESTQIKTS.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
askUser,
|
|
12
12
|
unavailableQuestionUnlessRefused,
|
|
13
13
|
waitForQuestion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5IJ252DT.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SRGKENVI.js";
|
|
18
18
|
import {
|
|
19
19
|
hookMaxWaitSeconds,
|
|
20
20
|
hookWaitClamped,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NAD2JOKF.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P4FD4WGC.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QWBPCCFQ.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KI6IY52L.js";
|
|
10
10
|
import {
|
|
11
11
|
nativeClaudeInstallPath
|
|
12
12
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6YVIWLL2.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NAD2JOKF.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-52XX2DYG.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-DBBLMMBL.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-A533F6TF.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VVXWDBZK.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BETDBGC7.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NAD2JOKF.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -7,30 +7,30 @@ import {
|
|
|
7
7
|
restorePhoneApprovals,
|
|
8
8
|
setAsidePhoneApprovalsOfOtherCalls,
|
|
9
9
|
takePhoneApproval
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RRDQYSNT.js";
|
|
11
11
|
import {
|
|
12
12
|
defersToNativeMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ACAMCU2Y.js";
|
|
14
14
|
import {
|
|
15
15
|
reportMachineDenial
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YPDWI6KV.js";
|
|
17
17
|
import {
|
|
18
18
|
claudeSettingsLocationFor,
|
|
19
19
|
readClaudePermissionRules
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-L4PIOZIP.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7ZCIUEBP.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XV7ZL2JN.js";
|
|
29
29
|
import {
|
|
30
30
|
activeHookSource,
|
|
31
31
|
activeIdentity,
|
|
32
32
|
namedSource
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KI6IY52L.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_SESSION,
|
|
36
36
|
allow,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
storedWaitDeadline,
|
|
72
72
|
sweepFilesOlderThan,
|
|
73
73
|
userScope
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-YJ6OARPK.js";
|
|
75
75
|
import {
|
|
76
76
|
UNNAMED_ACTION,
|
|
77
77
|
deriveAction,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
patchDeletesFiles,
|
|
83
83
|
permissionDeniedAction,
|
|
84
84
|
scopePathFor
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-ESTQIKTS.js";
|
|
86
86
|
import {
|
|
87
87
|
isDeferAnswer
|
|
88
88
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -99,30 +99,30 @@ import {
|
|
|
99
99
|
sendNotification,
|
|
100
100
|
waitForQuestion,
|
|
101
101
|
withdrawQuestion
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-5IJ252DT.js";
|
|
103
103
|
import {
|
|
104
104
|
branchFor,
|
|
105
105
|
projectNameFor,
|
|
106
106
|
repoKeyFor,
|
|
107
107
|
repositoryScopeFor
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-YQVGPAZV.js";
|
|
109
109
|
import {
|
|
110
110
|
getMachineId
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-SRGKENVI.js";
|
|
112
112
|
import {
|
|
113
113
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-6YVIWLL2.js";
|
|
115
115
|
import {
|
|
116
116
|
getApiKey,
|
|
117
117
|
getBaseUrl,
|
|
118
118
|
isMalformedApiKeyError
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-JPCVW3BA.js";
|
|
120
120
|
import {
|
|
121
121
|
writeFileAtomic
|
|
122
122
|
} from "./chunk-PM2NRK6Y.js";
|
|
123
123
|
import {
|
|
124
124
|
NPX_LATEST_COMMAND
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-BETDBGC7.js";
|
|
126
126
|
import {
|
|
127
127
|
AGENT_QUESTION_STRATEGY,
|
|
128
128
|
AGENT_QUESTION_TOOL,
|
|
@@ -160,6 +160,7 @@ import {
|
|
|
160
160
|
denyReasonFrom,
|
|
161
161
|
editGoesToTheAgentsPrompt,
|
|
162
162
|
effectiveWaitSeconds,
|
|
163
|
+
gateOutranksTheNativeMode,
|
|
163
164
|
hasNativeApprovalPrompt,
|
|
164
165
|
hookCompatibleProfileBySource,
|
|
165
166
|
hookHoldWindowMs,
|
|
@@ -183,6 +184,7 @@ import {
|
|
|
183
184
|
mcpToolSendsSomethingOut,
|
|
184
185
|
missedAnswerHandBack,
|
|
185
186
|
namedRouteWaitsForSomeoneElse,
|
|
187
|
+
onlyAnExplicitAnswerRunsTheCall,
|
|
186
188
|
parseAgentQuestions,
|
|
187
189
|
permissionsOffAskReason,
|
|
188
190
|
permissionsOffLineAppliesTo,
|
|
@@ -194,7 +196,7 @@ import {
|
|
|
194
196
|
terminalStaysLiveForTheCall,
|
|
195
197
|
timeoutActionWithoutLocalPrompt,
|
|
196
198
|
unapprovedScopeReason
|
|
197
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-NAD2JOKF.js";
|
|
198
200
|
|
|
199
201
|
// src/terminal-answer-watch.ts
|
|
200
202
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -890,7 +892,7 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
890
892
|
if (isMcpCallInClaudeCode(input) && !heldForMcp) return settledAs("mcp_tool", void 0);
|
|
891
893
|
if (await claimedBlockedActionRetry(apiKey, input)) return settledAs("asked", allow(BLOCKED_ACTION_ALLOW_REASON));
|
|
892
894
|
if (remindedOfApprovedRetry(input)) return settledAs("denied", deny(BLOCKED_ACTION_CHANGED_RETRY_REASON));
|
|
893
|
-
if (!(verdict
|
|
895
|
+
if (!gateOutranksTheNativeMode(verdict) && !approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode) && !heldForMcpRoute && shouldDeferToNativeMode(input.permission_mode, input.tool_name)) {
|
|
894
896
|
return settledAs("native_mode", void 0);
|
|
895
897
|
}
|
|
896
898
|
if (claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudePermissionRulesFor(input))) return settledAs("claude_allowlist", void 0);
|
|
@@ -1055,7 +1057,7 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
|
1055
1057
|
const scopeQuestion = verdict.kind === "gate" && Boolean(verdict.scopeReason);
|
|
1056
1058
|
const preToolUseRanForTheCall = PRETOOLUSE_HANDLED_TOOLS.has(input.tool_name) && isAdmitted(readAdmissionRules(), "claude", "PreToolUse");
|
|
1057
1059
|
const preToolUseAskedTheScopeQuestion = scopeQuestion && terminalLive && preToolUseRanForTheCall;
|
|
1058
|
-
const preToolUseOwnsTheCall = !scopeQuestion && !preToolUseAllowLeftThePrompt && !claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudeRules) && (isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) || preToolUseRanForTheCall && approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode));
|
|
1060
|
+
const preToolUseOwnsTheCall = !scopeQuestion && !preToolUseAllowLeftThePrompt && !claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudeRules) && (isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) || preToolUseRanForTheCall && (approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode) || onlyAnExplicitAnswerRunsTheCall(verdict)));
|
|
1059
1061
|
if (!handedOff && (preToolUseAskedTheScopeQuestion || preToolUseOwnsTheCall)) return void 0;
|
|
1060
1062
|
const terminalLiveDispatch = handedOff ? { holdBudgetSeconds } : void 0;
|
|
1061
1063
|
const replayTheYes = async (call) => answerOfTheReplay(
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4PIOZIP.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6ZRSO6PM.js";
|
|
8
8
|
import {
|
|
9
9
|
liveCursorGateCoverage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XCPZ64EV.js";
|
|
11
11
|
import {
|
|
12
12
|
OPENCODE_HOOK_BINARY,
|
|
13
13
|
openCodeConfigDir,
|
|
14
14
|
openCodePluginFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QWBPCCFQ.js";
|
|
16
16
|
import {
|
|
17
17
|
openCodePluginArgv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MTSTB2GL.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KI6IY52L.js";
|
|
24
24
|
import {
|
|
25
25
|
parseConfigDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LP2VGPHZ.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
29
29
|
GEMINI_HOOK_BINARY,
|
|
30
30
|
GEMINI_HOOK_EVENTS,
|
|
31
31
|
hooksAt
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
33
33
|
import {
|
|
34
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
35
35
|
CODEX_HOOK_BINARY,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
parseHookArgv,
|
|
58
58
|
parseHookCommand,
|
|
59
59
|
supportedClaudeEvents
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6YVIWLL2.js";
|
|
61
61
|
import {
|
|
62
62
|
readRegularJsonFile,
|
|
63
63
|
readRegularTextFile
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
OPENCODE_APPROVAL_EVENT,
|
|
72
72
|
isRecord,
|
|
73
73
|
matcherMatchesEveryCall
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-NAD2JOKF.js";
|
|
75
75
|
|
|
76
76
|
// src/hook-wiring.ts
|
|
77
77
|
import { createHash } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YVIWLL2.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SNR7BUWT.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KI6IY52L.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6YVIWLL2.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NAD2JOKF.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isApprovalMode,
|
|
3
|
-
isRecord
|
|
4
|
-
|
|
5
|
-
} from "./chunk-LE2GNKVF.js";
|
|
3
|
+
isRecord
|
|
4
|
+
} from "./chunk-NAD2JOKF.js";
|
|
6
5
|
|
|
7
6
|
// src/cli/settings-response.ts
|
|
8
7
|
var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
@@ -12,16 +11,10 @@ var modeResponse = (value) => {
|
|
|
12
11
|
if (!isRecord(value) || value.override !== null && !isModeOverride(value.override) || value.permanent !== void 0 && typeof value.permanent !== "boolean") throw new Error("Invalid mode response");
|
|
13
12
|
return { override: value.override, ...typeof value.permanent === "boolean" ? { permanent: value.permanent } : {} };
|
|
14
13
|
};
|
|
15
|
-
var isWaitPolicy = (value) => isRecord(value) && typeof value.tool === "string" && isApprovalMode(value.mode) && isTimeoutAction(value.timeoutAction) && isWaitSeconds(value.timeoutSeconds) && isWaitSeconds(value.pushFirstSeconds);
|
|
16
14
|
var waitWindowResponse = (value) => {
|
|
17
15
|
if (!isRecord(value) || !isWaitSeconds(value.defaultPushFirstSeconds)) throw new Error("Invalid wait response");
|
|
18
16
|
return value.defaultPushFirstSeconds;
|
|
19
17
|
};
|
|
20
|
-
var waitResponse = (value) => {
|
|
21
|
-
const defaultPushFirstSeconds = waitWindowResponse(value);
|
|
22
|
-
if (!isRecord(value) || !Array.isArray(value.policies) || !value.policies.every(isWaitPolicy) || value.modeOverride !== null && !isApprovalMode(value.modeOverride)) throw new Error("Invalid wait response");
|
|
23
|
-
return { policies: value.policies, defaultPushFirstSeconds, modeOverride: value.modeOverride };
|
|
24
|
-
};
|
|
25
18
|
var isSuggestion = (value) => isRecord(value) && typeof value.id === "string" && typeof value.toolPattern === "string" && (value.kind === "auto_approve" || value.kind === "always_deny") && isFiniteNumber(value.evidenceApproved) && isFiniteNumber(value.evidenceDenied) && isFiniteNumber(value.windowDays);
|
|
26
19
|
var suggestionsResponse = (value) => {
|
|
27
20
|
if (!isRecord(value) || !Array.isArray(value.suggestions) || !value.suggestions.every(isSuggestion)) throw new Error("Invalid suggestions response");
|
|
@@ -31,6 +24,5 @@ var suggestionsResponse = (value) => {
|
|
|
31
24
|
export {
|
|
32
25
|
modeResponse,
|
|
33
26
|
waitWindowResponse,
|
|
34
|
-
waitResponse,
|
|
35
27
|
suggestionsResponse
|
|
36
28
|
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PCKCLSGP.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPCVW3BA.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-NAD2JOKF.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseConfigDocument
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LP2VGPHZ.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_CODE_AGENT
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YJ6OARPK.js";
|
|
11
11
|
import {
|
|
12
12
|
compatibleToolLookup
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ESTQIKTS.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_HOOK_EVENTS,
|
|
16
16
|
PUSHARY_MCP_URL,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
isPusharyHook,
|
|
23
23
|
registerHookEntry,
|
|
24
24
|
removeClaudeMcpServers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6YVIWLL2.js";
|
|
26
26
|
import {
|
|
27
27
|
AGENT_ENFORCEMENT,
|
|
28
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
pusharyMissingReason,
|
|
37
37
|
refusalOutput,
|
|
38
38
|
withHookHoldBudget
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NAD2JOKF.js";
|
|
40
40
|
|
|
41
41
|
// src/compatible-config.ts
|
|
42
42
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YVIWLL2.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NAD2JOKF.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|