pushary 1.9.283 → 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 +15 -0
- package/README.md +3 -1
- package/dist/{api-OJRU3MYI.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 +16 -1
- package/dist/bin/pushary-doctor.js +60 -54
- 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 +24 -24
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-K4YUNJDY.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-6VK43QVL.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-JSYYVEVW.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-RJ5HUNEE.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-TBCHTCA2.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-AKUQLREQ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-5YSFXK2C.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-7OOQJD33.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-J2UDVVCB.js → chunk-52XX2DYG.js} +6 -6
- package/dist/{chunk-SIP2BFVS.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-EGZUBQL6.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-VO22G4MS.js → chunk-5IJ252DT.js} +7 -7
- package/dist/{chunk-UOABAWQ4.js → chunk-6T367UEE.js} +6 -6
- package/dist/{chunk-I67ZGYEY.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-XKSIMUZM.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-EUO5U5V7.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-UIOTVHQB.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-M3MD5Y2O.js → chunk-745DB5AH.js} +5 -5
- package/dist/{chunk-CPNPPYQL.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-JWMDRKAO.js → chunk-7GHHQFHH.js} +10 -10
- package/dist/{chunk-26RKJL2X.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-EANJH5FQ.js → chunk-7U43GCFH.js} +5 -5
- package/dist/{chunk-XC2O4MA3.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-YSR7QVMN.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-AIBGURF2.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-7VL6QZ3C.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-QU2NSBXD.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-E4WNMH33.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-3B3UE65E.js → chunk-CE4D3FCO.js} +12 -12
- package/dist/{chunk-HX3RPHIH.js → chunk-CITB5W5V.js} +8 -8
- package/dist/{chunk-IASJJRQV.js → chunk-CP65XDI7.js} +3 -3
- package/dist/{chunk-N6RX3ZWB.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-ATWYNEN4.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-JP7RRADP.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-YARDFZND.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-GS4D3NTI.js → chunk-FLUKEERY.js} +5 -5
- package/dist/{chunk-B7SK3EXB.js → chunk-FQC76AYR.js} +5 -5
- package/dist/{chunk-JHYVJYGR.js → chunk-HHGZZIKD.js} +6 -6
- package/dist/{chunk-TVQWBXV2.js → chunk-HOAWHKM3.js} +20 -18
- package/dist/{chunk-SWGR226D.js → chunk-HWIDUN2Q.js} +10 -10
- package/dist/{chunk-L2BJVSVI.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-5RSXB22M.js → chunk-IVIG4LUZ.js} +4 -4
- package/dist/{chunk-VYLJWG3B.js → chunk-JBK7WRPB.js} +1 -1
- package/dist/{chunk-Y5INUJ2S.js → chunk-JMPGFGCM.js} +3 -3
- package/dist/{chunk-XOZZ7LFC.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-IP6BVZZL.js → chunk-KI6IY52L.js} +6 -6
- package/dist/{chunk-CA7VX4KS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-73SEBA5G.js → chunk-LAPJNDQG.js} +4 -4
- package/dist/{chunk-2JWCBGFX.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-SL6ZTQA2.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-OOSOLBO2.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QSPYUDHD.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-4RPG3SFC.js → chunk-NAD2JOKF.js} +16 -6
- package/dist/{chunk-6GCGRTR7.js → chunk-O2BQDYHI.js} +1 -1
- package/dist/{chunk-OYRQZWXW.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-CWQU75DS.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-FQWIGDXG.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-FIAXP3LF.js → chunk-PCKCLSGP.js} +1 -1
- package/dist/{chunk-T5D3F6ME.js → chunk-PGCMTR5N.js} +5 -5
- package/dist/{chunk-CBA4AVFT.js → chunk-PMHOO355.js} +4 -4
- package/dist/{chunk-7Y3NHQSD.js → chunk-PU5MHVE2.js} +5 -5
- package/dist/{chunk-SAFK3BQB.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7PRPLYOT.js → chunk-QTNBPBYN.js} +1 -1
- package/dist/{chunk-6MUWWEYX.js → chunk-QWBPCCFQ.js} +7 -7
- package/dist/{chunk-OTIXTZA6.js → chunk-RRDQYSNT.js} +2 -2
- package/dist/{chunk-M6T24IVX.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-HKXFHEB4.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-JPSCKMYH.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-IX2DKVF2.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-FNENGMPK.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-4ZWNL3CK.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DTYSJP6K.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-PUNIACRA.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-OQVYOMNI.js → chunk-WKXO22AI.js} +4 -4
- package/dist/{chunk-NWFO2WGB.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/{chunk-XGWKMWKM.js → chunk-WY2HGMNV.js} +3 -3
- package/dist/{chunk-YG5TIW73.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-ZUHELFIM.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-IPJRN56U.js → chunk-XV7ZL2JN.js} +5 -5
- package/dist/{chunk-KMMO3K2C.js → chunk-YJ6OARPK.js} +21 -14
- package/dist/{chunk-EDVQWYSU.js → chunk-YPDWI6KV.js} +4 -4
- package/dist/{chunk-AOLCAXRB.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-6RAIYGKT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{codex-app-cards-switch-2ZVORWWV.js → codex-app-cards-switch-JPDKYQ5R.js} +11 -11
- package/dist/{codex-card-routing-PLD74MXM.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-BDR7I3AT.js → codex-desktop-launch-WELLPX34.js} +3 -3
- package/dist/{codex-session-launch-HZJWXLWT.js → codex-session-launch-BAVV7JK7.js} +21 -21
- package/dist/{config-DY2KBMHL.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-H4CHC3PX.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-BEGPK37L.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-W4YZO6AH.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-J7L3IDOW.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-3ECJVIWC.js → reapply-DWXARPLQ.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UPLYK4CW.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-ZDDF7U5L.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) => {
|
|
@@ -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";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QWBPCCFQ.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VVXWDBZK.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6YVIWLL2.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAD2JOKF.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|