@triedotdev/mcp 1.0.154 → 1.0.156
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/dist/{autonomy-config-RKLZW4XL.js → autonomy-config-FSERX3O3.js} +4 -4
- package/dist/{chat-store-O3IJ5PMN.js → chat-store-JNGNTDSN.js} +4 -4
- package/dist/{chunk-L4FODDDB.js → chunk-5BYSJ7XT.js} +2 -2
- package/dist/{chunk-LFNH3CSN.js → chunk-5TRCQAOE.js} +4 -4
- package/dist/{chunk-CBAMZERA.js → chunk-ACU2RJUJ.js} +2 -2
- package/dist/{chunk-LJISDV3A.js → chunk-CYKJIQNG.js} +13 -13
- package/dist/{chunk-EMJ7RVWB.js → chunk-EJKVKVWM.js} +18 -18
- package/dist/chunk-EJKVKVWM.js.map +1 -0
- package/dist/{chunk-ALSCZ7WR.js → chunk-FNZPMR62.js} +14 -3
- package/dist/chunk-FNZPMR62.js.map +1 -0
- package/dist/{chunk-UL337UDQ.js → chunk-FQ45QP5A.js} +2 -2
- package/dist/{chunk-FTOF3FHT.js → chunk-GDWA3CH3.js} +3 -3
- package/dist/{chunk-4ZAFQEP6.js → chunk-IRZXBQVQ.js} +4 -4
- package/dist/{chunk-3CYMLM35.js → chunk-JVMBCWKS.js} +2 -2
- package/dist/{chunk-JKEEQAG2.js → chunk-KDHN2ZQE.js} +2 -2
- package/dist/chunk-KDHN2ZQE.js.map +1 -0
- package/dist/{chunk-QAM5X5HM.js → chunk-LGDZXKC5.js} +107 -53
- package/dist/chunk-LGDZXKC5.js.map +1 -0
- package/dist/{chunk-NVZZUUEU.js → chunk-LR46VMIE.js} +5 -5
- package/dist/{chunk-XD2HKZVB.js → chunk-ME2OERF5.js} +2 -2
- package/dist/{chunk-FXZAABXO.js → chunk-OLNZJ3XV.js} +2 -2
- package/dist/{chunk-2LAJKFWU.js → chunk-OMR4YCBS.js} +2 -2
- package/dist/{chunk-OWSGJUUR.js → chunk-OMZSQAQ2.js} +6 -6
- package/dist/{chunk-YEQXKKZQ.js → chunk-Q5EKA5YA.js} +2 -2
- package/dist/{chunk-Z2E7X4WI.js → chunk-SSNOHUHY.js} +7 -7
- package/dist/{chunk-WO7CC5FH.js → chunk-SY6KQG44.js} +2 -2
- package/dist/{chunk-T7UAH7GE.js → chunk-T63OHG4Q.js} +2 -2
- package/dist/{chunk-KYKADM7P.js → chunk-TN5WEKWI.js} +2 -2
- package/dist/{chunk-KLMJKM63.js → chunk-VR4VWXXU.js} +3 -3
- package/dist/chunk-VR4VWXXU.js.map +1 -0
- package/dist/{chunk-JYWGYUKX.js → chunk-VUL52BQL.js} +6 -6
- package/dist/chunk-VUL52BQL.js.map +1 -0
- package/dist/{chunk-7F2R2ITA.js → chunk-VVITXIHN.js} +2 -2
- package/dist/{chunk-HD5H7YSW.js → chunk-Y4B3VEL7.js} +2 -2
- package/dist/{chunk-OVSYTWUU.js → chunk-ZBXW244P.js} +2 -2
- package/dist/cli/create-agent.js +2 -2
- package/dist/cli/main.js +86 -40
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +39 -25
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{client-ZHOLZTRW.js → client-NJPZE5JT.js} +4 -4
- package/dist/{codebase-index-N37NDF2A.js → codebase-index-VAPF32XX.js} +4 -4
- package/dist/{fast-analyzer-U6URGNQT.js → fast-analyzer-CRWPDN6C.js} +6 -6
- package/dist/github-ingester-TFBDUDIY.js +11 -0
- package/dist/{goal-manager-5QDITJKE.js → goal-manager-D6XKE3FY.js} +8 -8
- package/dist/{goal-validator-FU5QWDQT.js → goal-validator-4E5ZLCDH.js} +7 -7
- package/dist/graph-B3NA4S7I.js +10 -0
- package/dist/{hypothesis-JURDWVDC.js → hypothesis-RI3Q33JB.js} +8 -8
- package/dist/incident-index-EFNUSGWL.js +11 -0
- package/dist/index.js +29 -29
- package/dist/{insight-store-AMEP5PPF.js → insight-store-EC4PLSAW.js} +4 -4
- package/dist/{issue-store-RM3XLLKG.js → issue-store-DUR5UTYK.js} +5 -5
- package/dist/{ledger-PLE3C3X4.js → ledger-ZTR63P3L.js} +4 -4
- package/dist/linear-ingester-PLES2BRS.js +11 -0
- package/dist/{output-manager-FX4V7ERT.js → output-manager-JNMEAXFO.js} +3 -3
- package/dist/{progress-PAYTY7BF.js → progress-SRQ2V3BP.js} +2 -2
- package/dist/tiered-storage-SUYPBYJL.js +12 -0
- package/dist/trie-agent-GL3VQPCD.js +27 -0
- package/dist/{vibe-code-signatures-J4GD4JOV.js → vibe-code-signatures-F6URTBW3.js} +3 -3
- package/dist/{vulnerability-signatures-EIKOHFPK.js → vulnerability-signatures-T7SKHORW.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ALSCZ7WR.js.map +0 -1
- package/dist/chunk-EMJ7RVWB.js.map +0 -1
- package/dist/chunk-JKEEQAG2.js.map +0 -1
- package/dist/chunk-JYWGYUKX.js.map +0 -1
- package/dist/chunk-KLMJKM63.js.map +0 -1
- package/dist/chunk-QAM5X5HM.js.map +0 -1
- package/dist/github-ingester-AR5A4RAC.js +0 -11
- package/dist/graph-JO7GG65P.js +0 -10
- package/dist/incident-index-7CAXUNTL.js +0 -11
- package/dist/linear-ingester-NHFMKJBZ.js +0 -11
- package/dist/tiered-storage-3TUUR3L2.js +0 -12
- package/dist/trie-agent-QHPS4C5Z.js +0 -27
- /package/dist/{autonomy-config-RKLZW4XL.js.map → autonomy-config-FSERX3O3.js.map} +0 -0
- /package/dist/{chat-store-O3IJ5PMN.js.map → chat-store-JNGNTDSN.js.map} +0 -0
- /package/dist/{chunk-L4FODDDB.js.map → chunk-5BYSJ7XT.js.map} +0 -0
- /package/dist/{chunk-LFNH3CSN.js.map → chunk-5TRCQAOE.js.map} +0 -0
- /package/dist/{chunk-CBAMZERA.js.map → chunk-ACU2RJUJ.js.map} +0 -0
- /package/dist/{chunk-LJISDV3A.js.map → chunk-CYKJIQNG.js.map} +0 -0
- /package/dist/{chunk-UL337UDQ.js.map → chunk-FQ45QP5A.js.map} +0 -0
- /package/dist/{chunk-FTOF3FHT.js.map → chunk-GDWA3CH3.js.map} +0 -0
- /package/dist/{chunk-4ZAFQEP6.js.map → chunk-IRZXBQVQ.js.map} +0 -0
- /package/dist/{chunk-3CYMLM35.js.map → chunk-JVMBCWKS.js.map} +0 -0
- /package/dist/{chunk-NVZZUUEU.js.map → chunk-LR46VMIE.js.map} +0 -0
- /package/dist/{chunk-XD2HKZVB.js.map → chunk-ME2OERF5.js.map} +0 -0
- /package/dist/{chunk-FXZAABXO.js.map → chunk-OLNZJ3XV.js.map} +0 -0
- /package/dist/{chunk-2LAJKFWU.js.map → chunk-OMR4YCBS.js.map} +0 -0
- /package/dist/{chunk-OWSGJUUR.js.map → chunk-OMZSQAQ2.js.map} +0 -0
- /package/dist/{chunk-YEQXKKZQ.js.map → chunk-Q5EKA5YA.js.map} +0 -0
- /package/dist/{chunk-Z2E7X4WI.js.map → chunk-SSNOHUHY.js.map} +0 -0
- /package/dist/{chunk-WO7CC5FH.js.map → chunk-SY6KQG44.js.map} +0 -0
- /package/dist/{chunk-T7UAH7GE.js.map → chunk-T63OHG4Q.js.map} +0 -0
- /package/dist/{chunk-KYKADM7P.js.map → chunk-TN5WEKWI.js.map} +0 -0
- /package/dist/{chunk-7F2R2ITA.js.map → chunk-VVITXIHN.js.map} +0 -0
- /package/dist/{chunk-HD5H7YSW.js.map → chunk-Y4B3VEL7.js.map} +0 -0
- /package/dist/{chunk-OVSYTWUU.js.map → chunk-ZBXW244P.js.map} +0 -0
- /package/dist/{client-ZHOLZTRW.js.map → client-NJPZE5JT.js.map} +0 -0
- /package/dist/{codebase-index-N37NDF2A.js.map → codebase-index-VAPF32XX.js.map} +0 -0
- /package/dist/{fast-analyzer-U6URGNQT.js.map → fast-analyzer-CRWPDN6C.js.map} +0 -0
- /package/dist/{github-ingester-AR5A4RAC.js.map → github-ingester-TFBDUDIY.js.map} +0 -0
- /package/dist/{goal-manager-5QDITJKE.js.map → goal-manager-D6XKE3FY.js.map} +0 -0
- /package/dist/{goal-validator-FU5QWDQT.js.map → goal-validator-4E5ZLCDH.js.map} +0 -0
- /package/dist/{graph-JO7GG65P.js.map → graph-B3NA4S7I.js.map} +0 -0
- /package/dist/{hypothesis-JURDWVDC.js.map → hypothesis-RI3Q33JB.js.map} +0 -0
- /package/dist/{incident-index-7CAXUNTL.js.map → incident-index-EFNUSGWL.js.map} +0 -0
- /package/dist/{insight-store-AMEP5PPF.js.map → insight-store-EC4PLSAW.js.map} +0 -0
- /package/dist/{issue-store-RM3XLLKG.js.map → issue-store-DUR5UTYK.js.map} +0 -0
- /package/dist/{ledger-PLE3C3X4.js.map → ledger-ZTR63P3L.js.map} +0 -0
- /package/dist/{linear-ingester-NHFMKJBZ.js.map → linear-ingester-PLES2BRS.js.map} +0 -0
- /package/dist/{output-manager-FX4V7ERT.js.map → output-manager-JNMEAXFO.js.map} +0 -0
- /package/dist/{progress-PAYTY7BF.js.map → progress-SRQ2V3BP.js.map} +0 -0
- /package/dist/{tiered-storage-3TUUR3L2.js.map → tiered-storage-SUYPBYJL.js.map} +0 -0
- /package/dist/{trie-agent-QHPS4C5Z.js.map → trie-agent-GL3VQPCD.js.map} +0 -0
- /package/dist/{vibe-code-signatures-J4GD4JOV.js.map → vibe-code-signatures-F6URTBW3.js.map} +0 -0
- /package/dist/{vulnerability-signatures-EIKOHFPK.js.map → vulnerability-signatures-T7SKHORW.js.map} +0 -0
package/dist/cli/main.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
loadProjectInfo,
|
|
8
8
|
needsBootstrap,
|
|
9
9
|
projectInfoExists
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-ZBXW244P.js";
|
|
11
11
|
import {
|
|
12
12
|
LinearIngester
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-OLNZJ3XV.js";
|
|
14
14
|
import {
|
|
15
15
|
LearningEngine,
|
|
16
16
|
exportToJson,
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
isTrieInitialized,
|
|
21
21
|
perceiveCurrentChanges,
|
|
22
22
|
reasonAboutChangesHumanReadable
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-EJKVKVWM.js";
|
|
24
24
|
import {
|
|
25
25
|
loadConfig,
|
|
26
26
|
saveConfig
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-GDWA3CH3.js";
|
|
28
28
|
import {
|
|
29
29
|
IncidentIndex
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-TN5WEKWI.js";
|
|
31
31
|
import "../chunk-ZV2K6M7T.js";
|
|
32
32
|
import {
|
|
33
33
|
GotchaPredictor,
|
|
@@ -37,30 +37,30 @@ import {
|
|
|
37
37
|
listTrackedProjects,
|
|
38
38
|
searchGlobalPatterns,
|
|
39
39
|
updateGlobalMemoryMd
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-OMZSQAQ2.js";
|
|
41
41
|
import {
|
|
42
42
|
ContextGraph
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-VUL52BQL.js";
|
|
44
44
|
import {
|
|
45
45
|
measureInitialGoalValue
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-SSNOHUHY.js";
|
|
47
|
+
import "../chunk-FQ45QP5A.js";
|
|
48
48
|
import {
|
|
49
49
|
getProjectState
|
|
50
|
-
} from "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
50
|
+
} from "../chunk-5BYSJ7XT.js";
|
|
51
|
+
import "../chunk-SY6KQG44.js";
|
|
52
|
+
import "../chunk-OMR4YCBS.js";
|
|
53
53
|
import "../chunk-6NLHFIYA.js";
|
|
54
54
|
import {
|
|
55
55
|
getStorage
|
|
56
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-FNZPMR62.js";
|
|
57
57
|
import {
|
|
58
58
|
getAutonomyConfig,
|
|
59
59
|
recordBypass,
|
|
60
60
|
shouldAutoFix,
|
|
61
61
|
shouldBlockPush,
|
|
62
62
|
trackIssueOccurrence
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-ME2OERF5.js";
|
|
64
64
|
import {
|
|
65
65
|
getDailyLogs,
|
|
66
66
|
getMemoryStats,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
markIssueResolved,
|
|
69
69
|
purgeIssues,
|
|
70
70
|
searchIssues
|
|
71
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-IRZXBQVQ.js";
|
|
72
72
|
import "../chunk-EFWVF6TI.js";
|
|
73
73
|
import {
|
|
74
74
|
compressOldBlocks,
|
|
@@ -91,13 +91,13 @@ import {
|
|
|
91
91
|
shouldCompress,
|
|
92
92
|
syncLedgerFromShared,
|
|
93
93
|
verifyLedger
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-Y4B3VEL7.js";
|
|
95
95
|
import "../chunk-43X6JBEM.js";
|
|
96
96
|
import {
|
|
97
97
|
getTrieDirectory,
|
|
98
98
|
getWorkingDirectory
|
|
99
|
-
} from "../chunk-
|
|
100
|
-
import "../chunk-
|
|
99
|
+
} from "../chunk-VVITXIHN.js";
|
|
100
|
+
import "../chunk-KDHN2ZQE.js";
|
|
101
101
|
import {
|
|
102
102
|
__require
|
|
103
103
|
} from "../chunk-DGUM43GV.js";
|
|
@@ -868,7 +868,7 @@ import { writeFile, mkdir, chmod } from "fs/promises";
|
|
|
868
868
|
import { join } from "path";
|
|
869
869
|
import { existsSync } from "fs";
|
|
870
870
|
import pc2 from "picocolors";
|
|
871
|
-
import {
|
|
871
|
+
import { dirname } from "path";
|
|
872
872
|
import { fileURLToPath } from "url";
|
|
873
873
|
async function installGitHooks2() {
|
|
874
874
|
const workDir = getWorkingDirectory(void 0, true);
|
|
@@ -953,32 +953,78 @@ var __filename2 = fileURLToPath(import.meta.url);
|
|
|
953
953
|
var __dirname2 = dirname(__filename2);
|
|
954
954
|
async function handlePreCommitCommand(_args) {
|
|
955
955
|
console.log(pc2.cyan("\u{1F50D} Running pre-commit hook..."));
|
|
956
|
+
console.log(pc2.dim("Checking ledger for issues in staged files...\n"));
|
|
956
957
|
try {
|
|
957
|
-
const {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
958
|
+
const { execSync } = await import("child_process");
|
|
959
|
+
const workDir = getWorkingDirectory(void 0, true);
|
|
960
|
+
let stagedFiles;
|
|
961
|
+
try {
|
|
962
|
+
const output = execSync("git diff --cached --name-only --diff-filter=ACMR", {
|
|
963
|
+
cwd: workDir,
|
|
964
|
+
encoding: "utf-8"
|
|
965
|
+
});
|
|
966
|
+
stagedFiles = output.trim().split("\n").filter(Boolean);
|
|
967
|
+
if (stagedFiles.length === 0) {
|
|
968
|
+
console.log(pc2.green("\u2713 No staged files to check"));
|
|
969
|
+
process.exit(0);
|
|
970
|
+
}
|
|
971
|
+
console.log(pc2.dim(`Checking ${stagedFiles.length} staged file(s)...
|
|
972
|
+
`));
|
|
973
|
+
} catch (error) {
|
|
974
|
+
console.error(pc2.yellow("\u26A0 Could not get staged files, skipping pre-commit check"));
|
|
975
|
+
process.exit(0);
|
|
963
976
|
}
|
|
964
|
-
const
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
const
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
|
|
977
|
+
const { searchIssues: searchIssues2 } = await import("../issue-store-DUR5UTYK.js");
|
|
978
|
+
let criticalIssues = 0;
|
|
979
|
+
let totalIssues = 0;
|
|
980
|
+
const issuesByFile = /* @__PURE__ */ new Map();
|
|
981
|
+
for (const file of stagedFiles) {
|
|
982
|
+
const results = await searchIssues2(file, {
|
|
983
|
+
workDir,
|
|
984
|
+
limit: 100,
|
|
985
|
+
includeResolved: false
|
|
986
|
+
// Only unresolved issues
|
|
987
|
+
});
|
|
988
|
+
if (results.length > 0) {
|
|
989
|
+
totalIssues += results.length;
|
|
990
|
+
const issues = results.map((r) => ({
|
|
991
|
+
severity: r.issue.severity,
|
|
992
|
+
issue: r.issue.issue
|
|
993
|
+
}));
|
|
994
|
+
const critical = issues.filter((i) => i.severity === "critical").length;
|
|
995
|
+
criticalIssues += critical;
|
|
996
|
+
issuesByFile.set(file, issues);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
if (criticalIssues > 0) {
|
|
1000
|
+
console.log(pc2.red(`\u2717 Found ${criticalIssues} critical issue(s) in staged files
|
|
1001
|
+
`));
|
|
1002
|
+
for (const [file, issues] of issuesByFile.entries()) {
|
|
1003
|
+
const critical = issues.filter((i) => i.severity === "critical");
|
|
1004
|
+
if (critical.length > 0) {
|
|
1005
|
+
console.log(pc2.red(` ${file}:`));
|
|
1006
|
+
for (const issue of critical) {
|
|
1007
|
+
console.log(pc2.dim(` \u2022 ${issue.issue.slice(0, 80)}...`));
|
|
1008
|
+
}
|
|
1009
|
+
console.log();
|
|
1010
|
+
}
|
|
977
1011
|
}
|
|
978
|
-
|
|
979
|
-
|
|
1012
|
+
console.log(pc2.dim("Fix critical issues before committing, or use:"));
|
|
1013
|
+
console.log(pc2.dim(" git commit --no-verify (to skip this check)\n"));
|
|
1014
|
+
process.exit(1);
|
|
1015
|
+
} else if (totalIssues > 0) {
|
|
1016
|
+
console.log(pc2.yellow(`\u26A0 Found ${totalIssues} non-critical issue(s) in staged files`));
|
|
1017
|
+
console.log(pc2.dim("(Not blocking commit - only critical issues block commits)\n"));
|
|
1018
|
+
process.exit(0);
|
|
1019
|
+
} else {
|
|
1020
|
+
console.log(pc2.green("\u2713 No issues found in staged files"));
|
|
1021
|
+
console.log(pc2.dim("Commit allowed\n"));
|
|
1022
|
+
process.exit(0);
|
|
1023
|
+
}
|
|
980
1024
|
} catch (error) {
|
|
981
1025
|
console.error(pc2.red("Error in pre-commit hook:"), error);
|
|
1026
|
+
console.log(pc2.yellow("\n\u26A0 Pre-commit check failed, but not blocking commit"));
|
|
1027
|
+
console.log(pc2.dim("(Hook errors never block commits)\n"));
|
|
982
1028
|
process.exit(0);
|
|
983
1029
|
}
|
|
984
1030
|
}
|