pushary 1.9.230 → 1.9.232
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 +11 -0
- package/README.md +20 -18
- package/data/SKILL.md +8 -8
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/README.md +1 -1
- package/data/cursor-plugin/skills/pushary/SKILL.md +7 -7
- package/data/openclaw-plugin/README.md +3 -3
- package/data/openclaw-plugin/dist/gate-result.js +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +5 -0
- package/data/vscode-plugin/README.md +3 -3
- package/data/vscode-plugin/scripts/pushary-gate.mjs +2 -2
- package/data/vscode-plugin/skills/pushary/SKILL.md +7 -7
- package/dist/{api-VFQNIMMQ.js → api-OGSNXX5I.js} +12 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +31 -30
- package/dist/bin/pushary-bell.js +13 -12
- package/dist/bin/pushary-calls.js +21 -19
- package/dist/bin/pushary-claude.js +36 -35
- package/dist/bin/pushary-clean.js +47 -46
- package/dist/bin/pushary-codex-bridge.js +25 -24
- package/dist/bin/pushary-codex-hook.js +37 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +17 -16
- package/dist/bin/pushary-connect.js +37 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +71 -70
- package/dist/bin/pushary-disconnect.js +33 -32
- package/dist/bin/pushary-display-hook.js +20 -3
- package/dist/bin/pushary-doctor.js +78 -77
- package/dist/bin/pushary-elicitation-hook.js +28 -27
- package/dist/bin/pushary-gemini-bridge.js +20 -19
- package/dist/bin/pushary-gemini-hook.js +34 -33
- package/dist/bin/pushary-hook.js +38 -37
- package/dist/bin/pushary-login.js +24 -23
- package/dist/bin/pushary-logout.js +31 -30
- package/dist/bin/pushary-mcp.js +15 -14
- package/dist/bin/pushary-mode.js +17 -16
- package/dist/bin/pushary-notification-hook.js +28 -27
- package/dist/bin/pushary-opencode-bridge.js +27 -26
- package/dist/bin/pushary-opencode-hook.js +45 -44
- package/dist/bin/pushary-permission-denied-hook.js +37 -36
- package/dist/bin/pushary-permission-hook.js +38 -37
- package/dist/bin/pushary-post-hook.js +29 -28
- package/dist/bin/pushary-prompt-hook.js +28 -27
- package/dist/bin/pushary-session-end-hook.js +31 -30
- package/dist/bin/pushary-session-start-hook.js +41 -40
- package/dist/bin/pushary-sessions.js +13 -12
- package/dist/bin/pushary-setup.js +96 -94
- package/dist/bin/pushary-stats.js +7 -7
- package/dist/bin/pushary-status.js +38 -37
- package/dist/bin/pushary-stop-hook.js +28 -27
- package/dist/bin/pushary-stopfailure-hook.js +28 -27
- package/dist/bin/pushary-suggestions.js +17 -16
- package/dist/bin/pushary-transcript-register.js +18 -17
- package/dist/bin/pushary-transcripts.js +28 -27
- package/dist/bin/pushary-upgrade.js +65 -64
- package/dist/bin/pushary-wait.js +17 -16
- package/dist/bin/pushary.js +8 -7
- package/dist/{chunk-AHFVMYLC.js → chunk-22N3UUS4.js} +3 -3
- package/dist/{chunk-SYBYJBIC.js → chunk-2R5HU7EL.js} +13 -13
- package/dist/{chunk-NTXYJQMD.js → chunk-2SHF7DI5.js} +5 -3
- package/dist/{chunk-BQAAS4P4.js → chunk-2UUCN62T.js} +3 -3
- package/dist/{chunk-BVLYIGHM.js → chunk-32ZIGQNS.js} +1 -1
- package/dist/{chunk-45YY6DBO.js → chunk-3DME4GIN.js} +8 -8
- package/dist/{chunk-ZPHONVJD.js → chunk-3ZDGQGBL.js} +8 -8
- package/dist/{chunk-YQMZ4VE7.js → chunk-4PWUPWPY.js} +2 -2
- package/dist/{chunk-PL2EJ55K.js → chunk-4UKOA6F5.js} +3 -3
- package/dist/{chunk-TJYUSDL5.js → chunk-546OR2Y5.js} +4 -4
- package/dist/{chunk-NNBCKQC6.js → chunk-5F2FKQQ6.js} +2 -2
- package/dist/{chunk-J3GMEUVP.js → chunk-5JB4JJF5.js} +1 -1
- package/dist/chunk-6ICPEJY5.js +20 -0
- package/dist/{chunk-2ZLMVIB5.js → chunk-A54UFNGF.js} +1 -1
- package/dist/{chunk-NPCYWBY5.js → chunk-AAP2HENZ.js} +1 -1
- package/dist/{chunk-I3MD3R2D.js → chunk-ARBMPOYR.js} +3 -3
- package/dist/{chunk-7W6GRR6B.js → chunk-AX6S5V22.js} +1 -1
- package/dist/{chunk-MJIMTNKY.js → chunk-C4PGW3PU.js} +2 -2
- package/dist/{chunk-YEBUFSBO.js → chunk-C4SPXQAE.js} +2 -2
- package/dist/{chunk-QTJWBUA4.js → chunk-CIT3XX7B.js} +12 -12
- package/dist/{chunk-5GEKKXQK.js → chunk-DOC3PQTD.js} +1 -1
- package/dist/{chunk-ASAT72UO.js → chunk-E6XGP76X.js} +1 -1
- package/dist/{chunk-B2TX7FE7.js → chunk-ETIAYTAI.js} +1 -1
- package/dist/{chunk-B7NX5VK4.js → chunk-EVGZE3TK.js} +2 -2
- package/dist/{chunk-WKSI54F2.js → chunk-FFMM7VZH.js} +3 -3
- package/dist/{chunk-E4HPZ6G5.js → chunk-FG2EF7PP.js} +12 -30
- package/dist/{chunk-X7YGD2Y6.js → chunk-FZMLD3MF.js} +9 -4
- package/dist/{chunk-TCYIDR7T.js → chunk-G6ZSGVZL.js} +3 -3
- package/dist/{chunk-VLPIMIYD.js → chunk-GA4IZMXT.js} +3 -3
- package/dist/{chunk-YRV2GA2V.js → chunk-GIF3SFYU.js} +4 -4
- package/dist/{chunk-NTMFDJKD.js → chunk-GKWFLK7K.js} +7 -7
- package/dist/{chunk-YY2EAK3H.js → chunk-HCKJEXJJ.js} +1 -1
- package/dist/{chunk-XFWZ3WAD.js → chunk-HU5IFHHG.js} +3 -3
- package/dist/{chunk-MVIQ4BNA.js → chunk-HWQFHEHX.js} +2 -2
- package/dist/{chunk-7LP4B5KW.js → chunk-J2GQIBMK.js} +14 -2
- package/dist/{chunk-UCWQPCIX.js → chunk-J4X5T5DO.js} +25 -17
- package/dist/{chunk-TYOPOA3Q.js → chunk-JGEIHCPR.js} +6 -6
- package/dist/{chunk-VKYZ4YUV.js → chunk-JGVXURHK.js} +17 -15
- package/dist/{chunk-OUTUSZGR.js → chunk-JZZ62IV5.js} +4 -4
- package/dist/{chunk-JIQIHE3T.js → chunk-KABI55PA.js} +3 -3
- package/dist/{chunk-CA6V2O4P.js → chunk-KAO2GIZQ.js} +1 -1
- package/dist/{chunk-URDLHUQI.js → chunk-KBZJUOJJ.js} +8 -8
- package/dist/{chunk-ENOOKJOY.js → chunk-KGMSC4Y4.js} +10 -10
- package/dist/{chunk-XUT7PHS4.js → chunk-KHL6NLZN.js} +2 -2
- package/dist/{chunk-JTLRN6MU.js → chunk-KJMIFUE2.js} +4 -4
- package/dist/{chunk-E5T75JWL.js → chunk-KVLYD2EE.js} +1 -1
- package/dist/{chunk-WD7Q3TT5.js → chunk-LFJOCVHG.js} +2 -2
- package/dist/{chunk-TTJA2HH2.js → chunk-LW4AG6EP.js} +6 -6
- package/dist/{chunk-5QKFTPXC.js → chunk-LYO34MJ4.js} +7 -2
- package/dist/{chunk-3CM4LQEB.js → chunk-MBYHALGD.js} +1 -1
- package/dist/{chunk-M7QDLSPI.js → chunk-MHGXV2UI.js} +1 -1
- package/dist/{chunk-KMGLYAGI.js → chunk-ML6AWSKK.js} +5 -5
- package/dist/{chunk-COODHOGD.js → chunk-O2MMXX6P.js} +5 -5
- package/dist/{chunk-5W5R5XEI.js → chunk-OC5SCORI.js} +7 -7
- package/dist/{chunk-FR5PATBB.js → chunk-PKENJCUM.js} +2 -2
- package/dist/{chunk-3MRMHSJM.js → chunk-Q473YQNT.js} +4 -4
- package/dist/{chunk-WTOOX47X.js → chunk-QHR2T5EW.js} +10 -10
- package/dist/{chunk-W2J5RMI4.js → chunk-R24OYTI5.js} +4 -4
- package/dist/{chunk-DKH755WW.js → chunk-RXLKOYN3.js} +1 -1
- package/dist/{chunk-E3YL3XXV.js → chunk-RXXHQXMO.js} +1 -1
- package/dist/{chunk-33HUKRXZ.js → chunk-SHAZ6DT6.js} +5 -3
- package/dist/{chunk-LSBIDOLC.js → chunk-SOIG3VQU.js} +5 -5
- package/dist/{chunk-XDYSADIA.js → chunk-TAW3Z5NA.js} +4 -4
- package/dist/{chunk-77UIFRGZ.js → chunk-TJYY2ZNV.js} +2 -2
- package/dist/{chunk-BHOENP7P.js → chunk-TM5LRIUB.js} +5 -5
- package/dist/{chunk-EL4TJTOU.js → chunk-UDPXFSUQ.js} +2 -2
- package/dist/{chunk-Q7L4H2A3.js → chunk-UKBHJNN4.js} +5 -5
- package/dist/{chunk-P4P6M45X.js → chunk-URMAZGQN.js} +2 -2
- package/dist/{chunk-XFFPBUYX.js → chunk-V6YWRP4V.js} +10 -8
- package/dist/{chunk-UP6UNLLL.js → chunk-W6N2MU2G.js} +1 -1
- package/dist/{chunk-363PPP66.js → chunk-W7HK5KMH.js} +1 -1
- package/dist/{chunk-MMDZKAM2.js → chunk-WHMZT7EG.js} +2 -2
- package/dist/{chunk-AT65NHK5.js → chunk-WNSBSSTB.js} +1 -1
- package/dist/{chunk-5PPXE3SI.js → chunk-WNWN4U2V.js} +1 -1
- package/dist/{chunk-CW6LDFLM.js → chunk-WNZR4KFV.js} +10 -10
- package/dist/{chunk-RPPSP7JL.js → chunk-X275KIXO.js} +5 -5
- package/dist/{chunk-HKOJCK27.js → chunk-X2BMTMY2.js} +5 -5
- package/dist/{chunk-5IFPQWQS.js → chunk-X5M3LLDZ.js} +5 -5
- package/dist/{chunk-SLY7LXA7.js → chunk-X6GHL4KM.js} +25 -20
- package/dist/{chunk-ZVTROPFZ.js → chunk-XO64RMVL.js} +4 -4
- package/dist/{chunk-NNLYSNO2.js → chunk-XT7RG6WO.js} +7 -7
- package/dist/{codex-app-cards-switch-T7BFX3RY.js → codex-app-cards-switch-MBJFUQBT.js} +12 -11
- package/dist/{codex-card-routing-IU2IEJIJ.js → codex-card-routing-LAM2ADY2.js} +2 -2
- package/dist/{codex-desktop-launch-HHMQ66PO.js → codex-desktop-launch-LB4RWOSI.js} +7 -1
- package/dist/{codex-session-launch-6552APX5.js → codex-session-launch-PRWQGIGE.js} +22 -21
- package/dist/{config-SXJJPTEN.js → config-BBTWVECF.js} +3 -3
- package/dist/{global-upgrade-YTCJ6ASA.js → global-upgrade-C6HNF5OW.js} +10 -9
- package/dist/{identity-7SBDT3ZC.js → identity-7PUBPQNU.js} +5 -4
- package/dist/{live-capabilities-7CVCKDTW.js → live-capabilities-ZAQZQQR4.js} +5 -4
- package/dist/{paths-EHAWEAVV.js → paths-ZALQKETP.js} +4 -3
- package/dist/reapply-JWQ5H3RL.js +75 -0
- package/dist/src/index.d.ts +9 -10
- package/dist/src/index.js +34 -33
- package/dist/{upgrade-lock-GKQRE565.js → upgrade-lock-UWYE4CPX.js} +5 -4
- package/dist/{usage-5NEPL3OS.js → usage-BR4DQNAS.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-VF3F42SI.js +0 -74
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-V6YWRP4V.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JZZ62IV5.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J4X5T5DO.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FFMM7VZH.js";
|
|
28
28
|
import {
|
|
29
29
|
transcriptEnvironmentPreference,
|
|
30
30
|
transcriptsEnabled
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-W6N2MU2G.js";
|
|
32
32
|
import {
|
|
33
33
|
external_exports,
|
|
34
34
|
ownedOnlyByThisUser,
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
} from "./chunk-P6DUWKAO.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-A54UFNGF.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HU5IFHHG.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isHookSource,
|
|
62
62
|
isRecord,
|
|
63
63
|
redactSecretsFromContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-J2GQIBMK.js";
|
|
65
65
|
|
|
66
66
|
// src/transcript-registration.ts
|
|
67
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
} from "./chunk-WHB622LP.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HU5IFHHG.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl,
|
|
19
19
|
keyPrefixToShow
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
21
21
|
import {
|
|
22
22
|
NPX_LATEST_COMMAND
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LYO34MJ4.js";
|
|
24
24
|
import {
|
|
25
25
|
isValidApiKey
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-J2GQIBMK.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/login-ui.ts
|
|
29
29
|
import { hostname } from "os";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
atLeast,
|
|
3
|
-
formatVersion
|
|
3
|
+
formatVersion
|
|
4
|
+
} from "./chunk-6ICPEJY5.js";
|
|
5
|
+
import {
|
|
4
6
|
quoteIfNeeded,
|
|
5
7
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FG2EF7PP.js";
|
|
7
9
|
import {
|
|
8
10
|
writeFileAtomic
|
|
9
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -22,7 +24,7 @@ import {
|
|
|
22
24
|
PUSHARY_HOSTS,
|
|
23
25
|
PUSHARY_TOOL_PREFIX,
|
|
24
26
|
withHookHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-J2GQIBMK.js";
|
|
26
28
|
|
|
27
29
|
// src/setup/paths.ts
|
|
28
30
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TAW3Z5NA.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QHR2T5EW.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TM5LRIUB.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WNZR4KFV.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-J2GQIBMK.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JZZ62IV5.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6ICPEJY5.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-J2GQIBMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JZZ62IV5.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CIT3XX7B.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J4X5T5DO.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_ENFORCEMENT,
|
|
25
25
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
pusharyMissingReason,
|
|
33
33
|
refusalOutput,
|
|
34
34
|
withHookHoldBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-J2GQIBMK.js";
|
|
36
36
|
|
|
37
37
|
// src/config-document.ts
|
|
38
38
|
import { parse, stringify } from "smol-toml";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-J2GQIBMK.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CIT3XX7B.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J4X5T5DO.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
isLocalQuestionHandoff,
|
|
13
13
|
unavailableQuestionUnlessRefused,
|
|
14
14
|
waitForQuestion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WNZR4KFV.js";
|
|
16
16
|
import {
|
|
17
17
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-32ZIGQNS.js";
|
|
19
19
|
import {
|
|
20
20
|
hookMaxWaitSeconds,
|
|
21
21
|
hookWaitClamped,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-J2GQIBMK.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J2GQIBMK.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -4,19 +4,20 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-32ZIGQNS.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HU5IFHHG.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
14
14
|
import {
|
|
15
|
-
resolveGlobalBinary
|
|
16
|
-
|
|
15
|
+
resolveGlobalBinary,
|
|
16
|
+
withoutNpmInstallConsent
|
|
17
|
+
} from "./chunk-FG2EF7PP.js";
|
|
17
18
|
import {
|
|
18
19
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
20
21
|
import {
|
|
21
22
|
readJsonSafe,
|
|
22
23
|
writeFileAtomic,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
} from "./chunk-CXQWDQCJ.js";
|
|
33
34
|
import {
|
|
34
35
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-J2GQIBMK.js";
|
|
36
37
|
|
|
37
38
|
// src/daemon-entry-guard.ts
|
|
38
39
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -657,7 +658,8 @@ var spawnDetachedDaemon = (plan, options = {}) => {
|
|
|
657
658
|
detached: true,
|
|
658
659
|
stdio: "ignore",
|
|
659
660
|
windowsHide: true,
|
|
660
|
-
shell: plan.shell
|
|
661
|
+
shell: plan.shell,
|
|
662
|
+
env: withoutNpmInstallConsent(options.environment ?? process.env)
|
|
661
663
|
});
|
|
662
664
|
child.once?.("error", () => {
|
|
663
665
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KVLYD2EE.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HU5IFHHG.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X5M3LLDZ.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A54UFNGF.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KABI55PA.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
isRecord,
|
|
39
39
|
truncateLine,
|
|
40
40
|
waitEndAnswered
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-J2GQIBMK.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -498,15 +498,15 @@ var claimBlockedAction = async (apiKey, request, timeoutMs) => {
|
|
|
498
498
|
};
|
|
499
499
|
|
|
500
500
|
export {
|
|
501
|
-
isPolicyConfig,
|
|
502
|
-
isWaitForAnswerResponse,
|
|
503
|
-
isThePersonsStop,
|
|
504
|
-
askingProcessWaits,
|
|
505
501
|
CLIENT_REPORT_TIMEOUT_MS,
|
|
506
502
|
reportClientError,
|
|
507
503
|
exitAfterClientReports,
|
|
508
504
|
clientErrorKindOf,
|
|
509
505
|
writeDegraded,
|
|
506
|
+
isPolicyConfig,
|
|
507
|
+
isWaitForAnswerResponse,
|
|
508
|
+
isThePersonsStop,
|
|
509
|
+
askingProcessWaits,
|
|
510
510
|
isDecisionStopped,
|
|
511
511
|
isAwayPaused,
|
|
512
512
|
isStoredPastThePushCap,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Q473YQNT.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C4PGW3PU.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4UKOA6F5.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HU5IFHHG.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-J2GQIBMK.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3DME4GIN.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GA4IZMXT.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2UUCN62T.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-J2GQIBMK.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A54UFNGF.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4UKOA6F5.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KABI55PA.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J2GQIBMK.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -2,30 +2,30 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4PWUPWPY.js";
|
|
6
|
+
import {
|
|
7
|
+
claudeSettingsLocationFor,
|
|
8
|
+
readClaudePermissionRules
|
|
9
|
+
} from "./chunk-5F2FKQQ6.js";
|
|
6
10
|
import {
|
|
7
11
|
defersToNativeMode
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E6XGP76X.js";
|
|
9
13
|
import {
|
|
10
14
|
reportMachineDenial
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
claudeSettingsLocationFor,
|
|
14
|
-
readClaudePermissionRules
|
|
15
|
-
} from "./chunk-NNBCKQC6.js";
|
|
15
|
+
} from "./chunk-KJMIFUE2.js";
|
|
16
16
|
import {
|
|
17
17
|
isGatingMoment,
|
|
18
18
|
recordKeylessMoment
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W7HK5KMH.js";
|
|
20
20
|
import {
|
|
21
21
|
isAdmitted,
|
|
22
22
|
readAdmissionRules
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SOIG3VQU.js";
|
|
24
24
|
import {
|
|
25
25
|
activeHookSource,
|
|
26
26
|
activeIdentity,
|
|
27
27
|
namedSource
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TM5LRIUB.js";
|
|
29
29
|
import {
|
|
30
30
|
DEFAULT_SESSION,
|
|
31
31
|
allow,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
storedWaitDeadline,
|
|
67
67
|
sweepFilesOlderThan,
|
|
68
68
|
userScope
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-CIT3XX7B.js";
|
|
70
70
|
import {
|
|
71
71
|
UNNAMED_ACTION,
|
|
72
72
|
deriveAction,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
patchDeletesFiles,
|
|
78
78
|
permissionDeniedAction,
|
|
79
79
|
scopePathFor
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-J4X5T5DO.js";
|
|
81
81
|
import {
|
|
82
82
|
askUser,
|
|
83
83
|
cancelQuestion,
|
|
@@ -92,30 +92,30 @@ import {
|
|
|
92
92
|
sendNotification,
|
|
93
93
|
waitForQuestion,
|
|
94
94
|
withdrawQuestion
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-WNZR4KFV.js";
|
|
96
96
|
import {
|
|
97
97
|
branchFor,
|
|
98
98
|
projectNameFor,
|
|
99
99
|
repoKeyFor,
|
|
100
100
|
repositoryScopeFor
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-KVLYD2EE.js";
|
|
102
102
|
import {
|
|
103
103
|
getMachineId
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-32ZIGQNS.js";
|
|
105
105
|
import {
|
|
106
106
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-SHAZ6DT6.js";
|
|
108
108
|
import {
|
|
109
109
|
getApiKey,
|
|
110
110
|
getBaseUrl,
|
|
111
111
|
isMalformedApiKeyError
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-TJYY2ZNV.js";
|
|
113
113
|
import {
|
|
114
114
|
writeFileAtomic
|
|
115
115
|
} from "./chunk-PM2NRK6Y.js";
|
|
116
116
|
import {
|
|
117
117
|
NPX_LATEST_COMMAND
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-LYO34MJ4.js";
|
|
119
119
|
import {
|
|
120
120
|
AGENT_QUESTION_STRATEGY,
|
|
121
121
|
AGENT_QUESTION_TOOL,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
terminalStaysLiveForTheCall,
|
|
184
184
|
timeoutActionWithoutLocalPrompt,
|
|
185
185
|
unapprovedScopeReason
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-J2GQIBMK.js";
|
|
187
187
|
|
|
188
188
|
// src/terminal-answer-watch.ts
|
|
189
189
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -684,6 +684,11 @@ var handleKeyless = (input, keyError) => {
|
|
|
684
684
|
var claudePermissionRulesFor = (input) => ACTIVE_SOURCE === "claude" ? readClaudePermissionRules(claudeSettingsLocationFor(input.cwd)) : null;
|
|
685
685
|
var claudeRulesMayCover = (input, rules) => rules !== null && claudeConsultsItsAllowlist(input.permission_mode) && agentRulesAllowEveryInput(rules, input.tool_name, [input.tool_input ?? {}], input.cwd);
|
|
686
686
|
var currentBranchOfAPush = (toolName, toolInputs, cwd) => callMayPushTheCurrentBranch(toolName, toolInputs) ? branchFor(cwd) : void 0;
|
|
687
|
+
var CALLS_ARRIVE_UNDER_MAPPED_NAMES = ACTIVE_PROFILE !== void 0;
|
|
688
|
+
var deletesFilesOf = (input, reading) => {
|
|
689
|
+
if (reading) return reading.deletesFiles;
|
|
690
|
+
return CALLS_ARRIVE_UNDER_MAPPED_NAMES || patchDeletesFiles(input.tool_name, input.tool_input ?? {});
|
|
691
|
+
};
|
|
687
692
|
var claudeGateInput = (modeState, config, input, canonical) => {
|
|
688
693
|
const toolName = canonical?.toolName ?? input.tool_name;
|
|
689
694
|
const toolInputs = canonical?.toolInputs ?? [input.tool_input ?? {}];
|
|
@@ -700,7 +705,7 @@ var claudeGateInput = (modeState, config, input, canonical) => {
|
|
|
700
705
|
...repositoryScopeFor(input.cwd),
|
|
701
706
|
sessionId: input.session_id,
|
|
702
707
|
permissionMode: permissionsOffLineAppliesTo(ACTIVE_AGENT.type) ? input.permission_mode : void 0,
|
|
703
|
-
deletesFiles:
|
|
708
|
+
deletesFiles: deletesFilesOf(input, canonical),
|
|
704
709
|
currentBranch: currentBranchOfAPush(toolName, toolInputs, input.cwd)
|
|
705
710
|
};
|
|
706
711
|
};
|