@pushary/agent-hooks 1.9.63 → 1.9.64
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 +1 -1
- package/dist/{api-UHUUAONF.js → api-HDLTZTVR.js} +10 -11
- package/dist/bin/pushary-bell-hook.js +27 -30
- package/dist/bin/pushary-bell.js +12 -13
- package/dist/bin/pushary-claude.js +28 -31
- package/dist/bin/pushary-clean.js +63 -43
- package/dist/bin/pushary-codex-bridge.js +22 -24
- package/dist/bin/pushary-codex-hook.js +34 -37
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +13 -15
- package/dist/bin/pushary-connect.js +26 -29
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +39 -42
- package/dist/bin/pushary-disconnect.js +62 -43
- package/dist/bin/pushary-doctor.js +85 -44
- package/dist/bin/pushary-elicitation-hook.js +27 -30
- package/dist/bin/pushary-gemini-bridge.js +16 -18
- package/dist/bin/pushary-gemini-hook.js +29 -32
- package/dist/bin/pushary-hook.js +31 -34
- package/dist/bin/pushary-login.js +19 -20
- package/dist/bin/pushary-logout.js +26 -29
- package/dist/bin/pushary-mcp.js +11 -12
- package/dist/bin/pushary-mode.js +14 -15
- package/dist/bin/pushary-notification-hook.js +26 -29
- package/dist/bin/pushary-opencode-hook.js +28 -31
- package/dist/bin/pushary-permission-denied-hook.js +31 -34
- package/dist/bin/pushary-permission-hook.js +30 -33
- package/dist/bin/pushary-post-hook.js +26 -29
- package/dist/bin/pushary-prompt-hook.js +26 -29
- package/dist/bin/pushary-session-end-hook.js +28 -31
- package/dist/bin/pushary-session-start-hook.js +35 -38
- package/dist/bin/pushary-setup.js +108 -69
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +31 -34
- package/dist/bin/pushary-stop-hook.js +26 -29
- package/dist/bin/pushary-stopfailure-hook.js +26 -29
- package/dist/bin/pushary-suggestions.js +14 -15
- package/dist/bin/pushary-transcript-register.js +18 -21
- package/dist/bin/pushary-transcripts.js +17 -18
- package/dist/bin/pushary-upgrade.js +40 -44
- package/dist/bin/pushary-wait.js +14 -15
- package/dist/bin/pushary.js +7 -8
- package/dist/{chunk-OU3BYBJ3.js → chunk-2CEVEMJE.js} +3 -3
- package/dist/{chunk-HAIXS4OX.js → chunk-2EY4HGLG.js} +3 -3
- package/dist/{chunk-ELAK46NR.js → chunk-2KID4FK4.js} +4 -4
- package/dist/{chunk-WUOOZE5S.js → chunk-2PKHGHMA.js} +2 -2
- package/dist/{chunk-V5W3CK7F.js → chunk-2VADJ6JH.js} +2 -2
- package/dist/{chunk-KUCL7ETL.js → chunk-2YXBCZ3Z.js} +1 -1
- package/dist/{chunk-3GVV7XVT.js → chunk-2Z7I7DHT.js} +1 -1
- package/dist/{chunk-7GRQGXF4.js → chunk-3KXBRSL3.js} +1 -1
- package/dist/{chunk-T3GHXR6N.js → chunk-42PD2MQH.js} +5 -5
- package/dist/{chunk-T6XQNOZV.js → chunk-57PU5OBL.js} +12 -12
- package/dist/{chunk-4WFAP6QN.js → chunk-5NP3OJ5P.js} +9 -11
- package/dist/{chunk-5JK3DQGZ.js → chunk-5TNGBDIE.js} +2 -2
- package/dist/{chunk-OJEIS5L2.js → chunk-5TUDGSDC.js} +1 -1
- package/dist/{chunk-TMGJAFSD.js → chunk-66FRMK7V.js} +3 -3
- package/dist/{chunk-GNUARBRZ.js → chunk-6HPLEGUP.js} +4 -4
- package/dist/{chunk-BQFL2ECS.js → chunk-6QPDBD7Q.js} +3 -57
- package/dist/{chunk-GZS72NCF.js → chunk-7UBDBJTG.js} +4 -4
- package/dist/{chunk-CLABCSZC.js → chunk-A5KQXZR7.js} +5 -5
- package/dist/{chunk-L5CDGXPO.js → chunk-ADRPW7KU.js} +4 -4
- package/dist/{chunk-75ODMNOM.js → chunk-AN7C3CHH.js} +1 -1
- package/dist/{chunk-XBTWG2VL.js → chunk-AQAPPSDV.js} +5 -5
- package/dist/{chunk-6Z2VR3BA.js → chunk-BAGBCSXA.js} +1 -1
- package/dist/{chunk-IOH2T3CB.js → chunk-BLAIETMP.js} +4 -4
- package/dist/{chunk-5LOP4AVD.js → chunk-BSZIPIFA.js} +128 -26
- package/dist/{chunk-QC2W42DE.js → chunk-CCNH4PJ2.js} +12 -12
- package/dist/{chunk-FAF5AW3P.js → chunk-CJADXAJU.js} +4 -4
- package/dist/{chunk-HOIO66DU.js → chunk-DCMRNIDM.js} +4 -4
- package/dist/{chunk-QW3FRUFB.js → chunk-DVYVGBPB.js} +1 -1
- package/dist/{chunk-TBKHQWIH.js → chunk-E23RKH3T.js} +5 -5
- package/dist/{chunk-EQ26IKZM.js → chunk-E2LB6JNV.js} +6 -6
- package/dist/{chunk-VFJSVPNL.js → chunk-EEM65CGJ.js} +3 -3
- package/dist/chunk-H4BKC2GN.js +1201 -0
- package/dist/{chunk-RAJ3QEIL.js → chunk-HVOQUPSO.js} +1 -1
- package/dist/{chunk-OY6Z4IKB.js → chunk-IZTDX2MX.js} +3 -3
- package/dist/{chunk-VHZAJ6IB.js → chunk-JTOBQUIL.js} +3 -3
- package/dist/{chunk-OW6VBXXI.js → chunk-JX3DHGZX.js} +46 -34
- package/dist/{chunk-SKUSGWFK.js → chunk-KA7JIMTG.js} +6 -6
- package/dist/{chunk-LGZ545TA.js → chunk-KX3RMF6T.js} +12 -6
- package/dist/{chunk-VN7XH6TU.js → chunk-LA7CKRZN.js} +2 -2
- package/dist/{chunk-FEAGK25K.js → chunk-LMC5UPL7.js} +1 -1
- package/dist/{chunk-YK6GR4GU.js → chunk-LV6DX4P6.js} +2 -2
- package/dist/{chunk-PXAOEFJZ.js → chunk-MIPJ2VXP.js} +14 -16
- package/dist/{chunk-3QLFB2EY.js → chunk-ML2Q6WWE.js} +37 -214
- package/dist/{chunk-7NCLUA65.js → chunk-MNKIR2ZB.js} +11 -0
- package/dist/{chunk-DMNLFWGY.js → chunk-MPPTIZ2G.js} +210 -151
- package/dist/{chunk-VUFHYMSP.js → chunk-MXPOLQZH.js} +1 -1
- package/dist/{chunk-SARPHHTT.js → chunk-NOH3EJFH.js} +1 -1
- package/dist/{chunk-OP5IBEV7.js → chunk-NUEPJ5W6.js} +2 -2
- package/dist/{chunk-S2Z6VWHH.js → chunk-NYV45Q25.js} +6 -7
- package/dist/{chunk-HZ72EMJE.js → chunk-O7PCNYEY.js} +2 -2
- package/dist/{chunk-PIQ4HHA2.js → chunk-OQKSF5ST.js} +4 -6
- package/dist/{chunk-PJ34FOIV.js → chunk-PLMX3IHG.js} +5 -5
- package/dist/{chunk-KLZZI5TU.js → chunk-PMLQRB3D.js} +1 -1
- package/dist/{chunk-P6RF4RQN.js → chunk-Q6ID23SU.js} +6 -6
- package/dist/{chunk-EHHTQURL.js → chunk-QECRQWLV.js} +5 -5
- package/dist/{chunk-AB3VAQ25.js → chunk-QNATBOUH.js} +3 -3
- package/dist/{chunk-VDBXSUXP.js → chunk-QPPBH5NY.js} +7 -7
- package/dist/{chunk-BCVCUDFI.js → chunk-QSW3HAKI.js} +1 -1
- package/dist/{chunk-FVERRWDP.js → chunk-RY4EPMZX.js} +2 -2
- package/dist/{chunk-XE5N352V.js → chunk-SROWUG5W.js} +1 -1
- package/dist/{chunk-V7N5NOZV.js → chunk-TJUJAK5L.js} +1 -1
- package/dist/{chunk-KL76XWZ7.js → chunk-TR3GP5MH.js} +1 -1
- package/dist/{chunk-MRCVYYPW.js → chunk-VHKK3US3.js} +3 -3
- package/dist/{chunk-LTT54NOU.js → chunk-VNRWQCGU.js} +8 -8
- package/dist/{chunk-2MZ6ROWZ.js → chunk-XF3AWNMO.js} +6 -6
- package/dist/{chunk-XO3KAH7K.js → chunk-XJIIU36L.js} +1 -1
- package/dist/{chunk-BUQU3OPX.js → chunk-Y64JGYTB.js} +1 -1
- package/dist/{chunk-YMZOM6BD.js → chunk-YUDZCJYC.js} +10 -10
- package/dist/{codex-app-cards-switch-LXMAIOFB.js → codex-app-cards-switch-JQ6356VX.js} +11 -12
- package/dist/{codex-desktop-launch-VE5RLFUU.js → codex-desktop-launch-YUB2LOAG.js} +1 -1
- package/dist/{codex-session-launch-XZZWXCPK.js → codex-session-launch-UKMAORXS.js} +19 -21
- package/dist/{config-PPX25AV5.js → config-YY54G3CC.js} +3 -3
- package/dist/{global-upgrade-NRMHNLNU.js → global-upgrade-Y4USGPS2.js} +10 -12
- package/dist/{identity-ZFQR7JNW.js → identity-W5CYL5RC.js} +4 -5
- package/dist/{live-capabilities-SJRYRKNB.js → live-capabilities-JRNNA5EP.js} +5 -7
- package/dist/{paths-7VTVOQXJ.js → paths-4MEBINV3.js} +7 -3
- package/dist/reapply-ZN7C3CB3.js +63 -0
- package/dist/src/index.js +20 -23
- package/dist/{upgrade-lock-VAYJZVTB.js → upgrade-lock-QAWUV2DO.js} +4 -5
- package/dist/{usage-C4DIYUR6.js → usage-43C2DHDU.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-6ICPEJY5.js +0 -20
- package/dist/chunk-MK4USZYQ.js +0 -615
- package/dist/chunk-QENTGE75.js +0 -86
- package/dist/chunk-VC3HFFMQ.js +0 -41
- package/dist/reapply-WOANOIRZ.js +0 -64
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findNativeClaudeInstall
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MXPOLQZH.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BSZIPIFA.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MNKIR2ZB.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callMcpTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2KID4FK4.js";
|
|
4
4
|
import {
|
|
5
5
|
NPX_LATEST_COMMAND
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BAGBCSXA.js";
|
|
7
7
|
import {
|
|
8
8
|
classifyConfirmResponse,
|
|
9
9
|
isAnswerSource
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MNKIR2ZB.js";
|
|
11
11
|
|
|
12
12
|
// src/reach.ts
|
|
13
13
|
var reachVerdict = (channels) => {
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LV6DX4P6.js";
|
|
4
4
|
import {
|
|
5
|
-
CODEX_INSTRUCTIONS_LABEL,
|
|
6
|
-
GEMINI_INSTRUCTIONS_LABEL,
|
|
7
|
-
OPENCODE_INSTRUCTIONS_LABEL,
|
|
8
5
|
fxIgnoresInstructionsFile,
|
|
9
6
|
fxInstructionsBody,
|
|
10
7
|
fxServerHolder,
|
|
11
8
|
macAppFxBridge,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./chunk-DMNLFWGY.js";
|
|
9
|
+
refreshClineKey
|
|
10
|
+
} from "./chunk-MPPTIZ2G.js";
|
|
15
11
|
import {
|
|
16
12
|
OPENCODE_HOOK_BINARY,
|
|
17
13
|
agentHookOwner,
|
|
@@ -21,19 +17,16 @@ import {
|
|
|
21
17
|
openCodeInstructionsFile,
|
|
22
18
|
openCodePluginDir,
|
|
23
19
|
openCodeWired
|
|
24
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VNRWQCGU.js";
|
|
25
21
|
import {
|
|
26
22
|
detectClaudeVersion
|
|
27
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IZTDX2MX.js";
|
|
28
24
|
import {
|
|
29
|
-
addClaudeMcpServer,
|
|
30
25
|
addCompatibleHooks,
|
|
31
|
-
addPusharyHooks,
|
|
32
|
-
addPusharyToolPermissions,
|
|
33
26
|
compatibleConfigFile,
|
|
34
27
|
compatibleInstructionsFile,
|
|
35
28
|
hasCompatibleHooks
|
|
36
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ML2Q6WWE.js";
|
|
37
30
|
import {
|
|
38
31
|
claudeUnprovenHolds,
|
|
39
32
|
claudeWired,
|
|
@@ -41,34 +34,33 @@ import {
|
|
|
41
34
|
codexWired,
|
|
42
35
|
geminiWired,
|
|
43
36
|
planHooks
|
|
44
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KA7JIMTG.js";
|
|
45
38
|
import {
|
|
46
|
-
CLAUDE_HOOK_BINARY,
|
|
47
|
-
CLAUDE_HOOK_EVENTS,
|
|
48
39
|
GEMINI_HOOK_BINARY,
|
|
49
40
|
addGeminiHooks,
|
|
50
41
|
addGeminiMcpServer,
|
|
51
|
-
hasGeminiHooks
|
|
52
|
-
|
|
53
|
-
registrationSignatures,
|
|
54
|
-
supportedClaudeEvents
|
|
55
|
-
} from "./chunk-BQFL2ECS.js";
|
|
56
|
-
import {
|
|
57
|
-
formatVersion
|
|
58
|
-
} from "./chunk-6ICPEJY5.js";
|
|
59
|
-
import {
|
|
60
|
-
readJsonSafe,
|
|
61
|
-
writeFileAtomic,
|
|
62
|
-
writeJsonAtomic
|
|
63
|
-
} from "./chunk-QENTGE75.js";
|
|
42
|
+
hasGeminiHooks
|
|
43
|
+
} from "./chunk-6QPDBD7Q.js";
|
|
64
44
|
import {
|
|
45
|
+
CLAUDE_HOOK_BINARY,
|
|
46
|
+
CLAUDE_HOOK_EVENTS,
|
|
47
|
+
CLINE_LABEL,
|
|
65
48
|
CODEX_HOOK_BINARY,
|
|
49
|
+
CODEX_INSTRUCTIONS_LABEL,
|
|
50
|
+
GEMINI_INSTRUCTIONS_LABEL,
|
|
51
|
+
OPENCODE_INSTRUCTIONS_LABEL,
|
|
52
|
+
addClaudeMcpServer,
|
|
66
53
|
addCodexHookTrust,
|
|
67
54
|
addCodexHooks,
|
|
68
55
|
addCodexMcpServer,
|
|
56
|
+
addPusharyHooks,
|
|
57
|
+
addPusharyToolPermissions,
|
|
69
58
|
claudeJson,
|
|
70
59
|
claudeRegistrationReceipt,
|
|
71
60
|
claudeSettings,
|
|
61
|
+
clineInstructionsBody,
|
|
62
|
+
clineMcpSettings,
|
|
63
|
+
clineRules,
|
|
72
64
|
codexAgentsMd,
|
|
73
65
|
codexConfigToml,
|
|
74
66
|
codexHookPositions,
|
|
@@ -84,20 +76,29 @@ import {
|
|
|
84
76
|
guardBinary,
|
|
85
77
|
hasCodexHooks,
|
|
86
78
|
namesOurBinary,
|
|
79
|
+
needsReregistration,
|
|
87
80
|
pusharyDir,
|
|
81
|
+
refreshInstructionBlock,
|
|
88
82
|
registeredCommands,
|
|
89
83
|
registrationHolderOf,
|
|
84
|
+
registrationSignatures,
|
|
85
|
+
renderAgentInstructions,
|
|
86
|
+
supportedClaudeEvents,
|
|
90
87
|
vscodePluginMcp
|
|
91
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-H4BKC2GN.js";
|
|
92
89
|
import {
|
|
90
|
+
formatVersion,
|
|
91
|
+
readJsonSafe,
|
|
93
92
|
resolveGlobalBinDir,
|
|
94
|
-
resolveGlobalBinary
|
|
95
|
-
|
|
93
|
+
resolveGlobalBinary,
|
|
94
|
+
writeFileAtomic,
|
|
95
|
+
writeJsonAtomic
|
|
96
|
+
} from "./chunk-BSZIPIFA.js";
|
|
96
97
|
import {
|
|
97
98
|
HOOK_COMPATIBLE_PROFILES,
|
|
98
99
|
isCompatibleAgentType,
|
|
99
100
|
isRecord
|
|
100
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-MNKIR2ZB.js";
|
|
101
102
|
|
|
102
103
|
// src/reapply.ts
|
|
103
104
|
import { dirname, join } from "path";
|
|
@@ -382,11 +383,19 @@ var reapplyCompatibleHooks = (profile, paths = {}) => {
|
|
|
382
383
|
var CONFIGURED_AND_UNCHANGED = { configured: true, reapplied: false, hooks: false, mcp: false };
|
|
383
384
|
var fxHolder = () => fxServerHolder(fxMcpProfile(), macAppFxBridge(pusharyDir()));
|
|
384
385
|
var inspectFxWiring = () => fxHolder() === "cli" ? CONFIGURED_AND_UNCHANGED : NOT_CONFIGURED;
|
|
386
|
+
var REFRESHED_MCP = { configured: true, reapplied: true, hooks: false, mcp: true };
|
|
387
|
+
var CLINE_REAPPLY_RESULTS = {
|
|
388
|
+
refreshed: REFRESHED_MCP,
|
|
389
|
+
unchanged: CONFIGURED_AND_UNCHANGED,
|
|
390
|
+
"not-configured": NOT_CONFIGURED
|
|
391
|
+
};
|
|
392
|
+
var reapplyClineSettings = (apiKey, settingsPath = clineMcpSettings()) => CLINE_REAPPLY_RESULTS[refreshClineKey(settingsPath, apiKey)];
|
|
385
393
|
var compatibleInstructionTarget = (profile) => {
|
|
386
394
|
const file = compatibleInstructionsFile(profile);
|
|
387
395
|
return file && profile.instructions ? { file, body: renderAgentInstructions(profile.instructions.label) } : null;
|
|
388
396
|
};
|
|
389
397
|
var fxInstructionTarget = () => fxIgnoresInstructionsFile(fxAgentsMd(), fxConfigDir()) ? null : { file: fxAgentsMd(), body: fxInstructionsBody() };
|
|
398
|
+
var clineInstructionTarget = () => ({ file: clineRules(), body: clineInstructionsBody() });
|
|
390
399
|
var instructionTargetOrNull = (target) => {
|
|
391
400
|
try {
|
|
392
401
|
return target();
|
|
@@ -405,7 +414,8 @@ var SETUP_CHOICE_BY_REAPPLY_ID = {
|
|
|
405
414
|
cursor: "cursor",
|
|
406
415
|
vscode: "vscode",
|
|
407
416
|
opencode: "opencode",
|
|
408
|
-
fx: "fx"
|
|
417
|
+
fx: "fx",
|
|
418
|
+
cline: "cline"
|
|
409
419
|
};
|
|
410
420
|
var setupChoiceOf = (id) => isCompatibleAgentType(id) ? id : SETUP_CHOICE_BY_REAPPLY_ID[id];
|
|
411
421
|
var reapplyHookOwner = (id, appAvailable) => agentHookOwner(setupChoiceOf(id), appAvailable);
|
|
@@ -440,6 +450,7 @@ var reapplyAllAgents = (apiKey, options = {}) => {
|
|
|
440
450
|
instructions: () => ({ file: openCodeInstructionsFile(), body: renderAgentInstructions(OPENCODE_INSTRUCTIONS_LABEL) })
|
|
441
451
|
},
|
|
442
452
|
{ id: "fx", label: "fx", run: inspectFxWiring, instructions: fxInstructionTarget },
|
|
453
|
+
{ id: "cline", label: CLINE_LABEL, run: () => reapplyClineSettings(apiKey), instructions: clineInstructionTarget },
|
|
443
454
|
...HOOK_COMPATIBLE_PROFILES.map((profile) => ({
|
|
444
455
|
id: profile.agentType,
|
|
445
456
|
label: profile.label,
|
|
@@ -478,6 +489,7 @@ export {
|
|
|
478
489
|
reapplyVsCodePlugin,
|
|
479
490
|
reapplyOpenCodePlugin,
|
|
480
491
|
reapplyCompatibleHooks,
|
|
492
|
+
reapplyClineSettings,
|
|
481
493
|
reapplyAllAgents,
|
|
482
494
|
ensureCodexTrustAfterReapply
|
|
483
495
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CLAUDE_HOOK_EVENTS,
|
|
3
2
|
GEMINI_HOOK_EVENTS,
|
|
4
3
|
hasGeminiHooks
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6QPDBD7Q.js";
|
|
6
5
|
import {
|
|
7
6
|
AGENT_CHOICES
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SROWUG5W.js";
|
|
9
8
|
import {
|
|
10
9
|
BELL_HOOK_BINARY
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PMLQRB3D.js";
|
|
12
11
|
import {
|
|
12
|
+
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
CODEX_HOOK_EVENTS,
|
|
14
14
|
HOOK_SHELL,
|
|
15
15
|
hasCodexHooks,
|
|
16
16
|
holdBudgetOf
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H4BKC2GN.js";
|
|
18
18
|
import {
|
|
19
19
|
CURSOR_GATE_EVENTS,
|
|
20
20
|
HOOK_LOCATOR_BINARY,
|
|
21
21
|
hookCommandHoldBudget
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MNKIR2ZB.js";
|
|
23
23
|
|
|
24
24
|
// src/diagnostics/bridge.ts
|
|
25
25
|
import { execFileSync } from "child_process";
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VNRWQCGU.js";
|
|
4
4
|
import {
|
|
5
5
|
nativeClaudeInstallPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MXPOLQZH.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ML2Q6WWE.js";
|
|
10
10
|
import {
|
|
11
11
|
claudeConfigDir,
|
|
12
|
+
clineDataDirectory,
|
|
12
13
|
codexHomeFrom
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H4BKC2GN.js";
|
|
14
15
|
import {
|
|
15
16
|
resolvePathBinary
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BSZIPIFA.js";
|
|
17
18
|
import {
|
|
18
19
|
HOOK_COMPATIBLE_PROFILES
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MNKIR2ZB.js";
|
|
20
21
|
|
|
21
22
|
// src/hermes-config.ts
|
|
22
23
|
import { execFileSync } from "child_process";
|
|
@@ -558,6 +559,11 @@ var agentProbes = (home = homedir3(), platform = process.platform) => ({
|
|
|
558
559
|
paths: [join3(home, ".fx", "settings.json"), join3(home, ".fx", "sessions"), join3(home, ".fx", "history.jsonl")],
|
|
559
560
|
configMarkers: []
|
|
560
561
|
},
|
|
562
|
+
cline: {
|
|
563
|
+
binary: "cline",
|
|
564
|
+
paths: [clineDataDirectory({ home, environment: process.env })],
|
|
565
|
+
configMarkers: []
|
|
566
|
+
},
|
|
561
567
|
...compatibleProbes(),
|
|
562
568
|
grok: { binary: "grok", paths: [join3(home, ".local", "bin", "grok")], configMarkers: [grokHome(home)] },
|
|
563
569
|
// "Other" is a set of printed instructions for any MCP or HTTP client. There is
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H4BKC2GN.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BSZIPIFA.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-QTOLNRET.js";
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IDLE_PROMPT_NOTIFICATION,
|
|
3
|
-
NOTIFICATION_PUSH_TYPES,
|
|
4
|
-
POSTTOOLUSE_MIRROR_ONLY_TOOLS
|
|
5
|
-
} from "./chunk-VC3HFFMQ.js";
|
|
6
1
|
import {
|
|
7
2
|
repoKeyFor
|
|
8
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3KXBRSL3.js";
|
|
9
4
|
import {
|
|
10
5
|
cancelQuestion,
|
|
11
6
|
clientErrorKindOf,
|
|
@@ -13,26 +8,29 @@ import {
|
|
|
13
8
|
reportClientError,
|
|
14
9
|
sendNotification,
|
|
15
10
|
waitForAnswer
|
|
16
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-E23RKH3T.js";
|
|
17
12
|
import {
|
|
18
13
|
withRetry
|
|
19
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2KID4FK4.js";
|
|
20
15
|
import {
|
|
21
16
|
getMachineId
|
|
22
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ADRPW7KU.js";
|
|
23
18
|
import {
|
|
24
19
|
reportedInstallSource
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
writeFileAtomic
|
|
28
|
-
} from "./chunk-QENTGE75.js";
|
|
20
|
+
} from "./chunk-2VADJ6JH.js";
|
|
29
21
|
import {
|
|
22
|
+
IDLE_PROMPT_NOTIFICATION,
|
|
23
|
+
NOTIFICATION_PUSH_TYPES,
|
|
24
|
+
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
30
25
|
canonicalJson
|
|
31
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-H4BKC2GN.js";
|
|
27
|
+
import {
|
|
28
|
+
writeFileAtomic
|
|
29
|
+
} from "./chunk-BSZIPIFA.js";
|
|
32
30
|
import {
|
|
33
31
|
getApiKey,
|
|
34
32
|
getBaseUrl
|
|
35
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Y64JGYTB.js";
|
|
36
34
|
import {
|
|
37
35
|
ACTION_BODY_MAX,
|
|
38
36
|
AGENTS,
|
|
@@ -67,7 +65,7 @@ import {
|
|
|
67
65
|
toToolLookup,
|
|
68
66
|
truncateLine,
|
|
69
67
|
unansweredRefusalReason
|
|
70
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-MNKIR2ZB.js";
|
|
71
69
|
|
|
72
70
|
// ../hook-mapping/src/describe.ts
|
|
73
71
|
import { isAbsolute, relative, resolve } from "path";
|