@triedotdev/mcp 1.0.140 → 1.0.142
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/README.md +42 -7
- package/dist/{chunk-GXF6JOCN.js → chunk-4PAAGLKO.js} +7 -7
- package/dist/{chunk-OQ4A3RDY.js → chunk-N2EDZTKG.js} +6 -359
- package/dist/chunk-N2EDZTKG.js.map +1 -0
- package/dist/{chunk-75ADWWUF.js → chunk-T6PS3MXJ.js} +2 -2
- package/dist/{chunk-AF2APASP.js → chunk-V7AY2EJO.js} +4 -4
- package/dist/{chunk-UOSTOLU7.js → chunk-WMDFK7LI.js} +365 -10
- package/dist/chunk-WMDFK7LI.js.map +1 -0
- package/dist/{chunk-4O2KRHK4.js → chunk-Y2LYDCJD.js} +19 -19
- package/dist/cli/main.js +669 -441
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +9 -9
- package/dist/{codebase-index-5SEOESWM.js → codebase-index-FMIULFZQ.js} +3 -3
- package/dist/{fast-analyzer-AYLZB5TW.js → fast-analyzer-MWKCDRGD.js} +5 -5
- package/dist/{goal-validator-HNXXUCPW.js → goal-validator-DA3JQ6JN.js} +2 -2
- package/dist/index.js +91 -31
- package/dist/index.js.map +1 -1
- package/dist/{trie-agent-M6PHM6UD.js → trie-agent-6A7YBNTQ.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-OQ4A3RDY.js.map +0 -1
- package/dist/chunk-UOSTOLU7.js.map +0 -1
- /package/dist/{chunk-GXF6JOCN.js.map → chunk-4PAAGLKO.js.map} +0 -0
- /package/dist/{chunk-75ADWWUF.js.map → chunk-T6PS3MXJ.js.map} +0 -0
- /package/dist/{chunk-AF2APASP.js.map → chunk-V7AY2EJO.js.map} +0 -0
- /package/dist/{chunk-4O2KRHK4.js.map → chunk-Y2LYDCJD.js.map} +0 -0
- /package/dist/{codebase-index-5SEOESWM.js.map → codebase-index-FMIULFZQ.js.map} +0 -0
- /package/dist/{fast-analyzer-AYLZB5TW.js.map → fast-analyzer-MWKCDRGD.js.map} +0 -0
- /package/dist/{goal-validator-HNXXUCPW.js.map → goal-validator-DA3JQ6JN.js.map} +0 -0
- /package/dist/{trie-agent-M6PHM6UD.js.map → trie-agent-6A7YBNTQ.js.map} +0 -0
package/dist/cli/yolo-daemon.js
CHANGED
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
InteractiveDashboard,
|
|
4
4
|
StreamingManager,
|
|
5
5
|
TrieScanTool
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-Y2LYDCJD.js";
|
|
7
7
|
import "../chunk-23RJT5WT.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-N2EDZTKG.js";
|
|
9
|
+
import "../chunk-TIMIKBY2.js";
|
|
9
10
|
import "../chunk-YEIJW6X6.js";
|
|
10
11
|
import "../chunk-XTTZAQWJ.js";
|
|
11
12
|
import "../chunk-3MUCUZ46.js";
|
|
12
13
|
import {
|
|
13
14
|
isTrieInitialized
|
|
14
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-4PAAGLKO.js";
|
|
15
16
|
import "../chunk-NKHO34UZ.js";
|
|
16
17
|
import "../chunk-4C67GV3O.js";
|
|
17
18
|
import "../chunk-ZV2K6M7T.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-WMDFK7LI.js";
|
|
19
20
|
import "../chunk-FH335WL5.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-T6PS3MXJ.js";
|
|
21
22
|
import "../chunk-FPEMP54L.js";
|
|
22
23
|
import "../chunk-LT6VUZG2.js";
|
|
23
|
-
import "../chunk-62POBLFC.js";
|
|
24
|
-
import "../chunk-4MJ52WBH.js";
|
|
25
|
-
import "../chunk-43X6JBEM.js";
|
|
26
24
|
import "../chunk-F4NJ4CBP.js";
|
|
27
25
|
import "../chunk-IXO4G4D3.js";
|
|
28
26
|
import "../chunk-6NLHFIYA.js";
|
|
29
27
|
import "../chunk-FG467PDD.js";
|
|
30
28
|
import "../chunk-5KJ4UJOY.js";
|
|
29
|
+
import "../chunk-62POBLFC.js";
|
|
30
|
+
import "../chunk-4MJ52WBH.js";
|
|
31
|
+
import "../chunk-43X6JBEM.js";
|
|
31
32
|
import {
|
|
32
33
|
getWorkingDirectory
|
|
33
34
|
} from "../chunk-SH7H3WRU.js";
|
|
34
|
-
import "../chunk-TIMIKBY2.js";
|
|
35
35
|
import {
|
|
36
36
|
isInteractiveMode,
|
|
37
37
|
setInteractiveMode
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CodebaseIndex
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-43X6JBEM.js";
|
|
3
|
+
} from "./chunk-V7AY2EJO.js";
|
|
5
4
|
import "./chunk-6NLHFIYA.js";
|
|
5
|
+
import "./chunk-43X6JBEM.js";
|
|
6
6
|
import "./chunk-SH7H3WRU.js";
|
|
7
7
|
import "./chunk-APMV77PU.js";
|
|
8
8
|
import "./chunk-DGUM43GV.js";
|
|
9
9
|
export {
|
|
10
10
|
CodebaseIndex
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=codebase-index-
|
|
12
|
+
//# sourceMappingURL=codebase-index-FMIULFZQ.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CodebaseIndex
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-43X6JBEM.js";
|
|
3
|
+
} from "./chunk-V7AY2EJO.js";
|
|
5
4
|
import "./chunk-6NLHFIYA.js";
|
|
5
|
+
import "./chunk-43X6JBEM.js";
|
|
6
6
|
import "./chunk-SH7H3WRU.js";
|
|
7
7
|
import "./chunk-APMV77PU.js";
|
|
8
8
|
import "./chunk-DGUM43GV.js";
|
|
@@ -37,7 +37,7 @@ async function analyzeFilesRapidly(goals, projectPath, options = {}) {
|
|
|
37
37
|
onProgress
|
|
38
38
|
);
|
|
39
39
|
} else {
|
|
40
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-
|
|
40
|
+
const { checkFilesForGoalViolations } = await import("./goal-validator-DA3JQ6JN.js");
|
|
41
41
|
newViolations = await checkFilesForGoalViolations(
|
|
42
42
|
goals,
|
|
43
43
|
projectPath,
|
|
@@ -171,7 +171,7 @@ async function analyzeWithSmartBatching(codebaseIndex, filesToScan, goals, proje
|
|
|
171
171
|
const end = Math.min(start + adaptiveBatchSize, filesToScan.length);
|
|
172
172
|
const batchFiles = filesToScan.slice(start, end);
|
|
173
173
|
onProgress?.(`Fast analysis (${i + 1}/${totalBatches}): ${batchFiles.length} files...`);
|
|
174
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-
|
|
174
|
+
const { checkFilesForGoalViolations } = await import("./goal-validator-DA3JQ6JN.js");
|
|
175
175
|
const batchResults = await checkFilesForGoalViolations(
|
|
176
176
|
goals,
|
|
177
177
|
projectPath,
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
analyzeFilesRapidly,
|
|
214
214
|
getAnalysisStats
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=fast-analyzer-
|
|
216
|
+
//# sourceMappingURL=fast-analyzer-MWKCDRGD.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
measureInitialGoalValue,
|
|
5
5
|
recordGoalViolationCaught,
|
|
6
6
|
recordGoalViolationFixed
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T6PS3MXJ.js";
|
|
8
8
|
import "./chunk-LT6VUZG2.js";
|
|
9
9
|
import "./chunk-62POBLFC.js";
|
|
10
10
|
import "./chunk-4MJ52WBH.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
recordGoalViolationCaught,
|
|
20
20
|
recordGoalViolationFixed
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=goal-validator-
|
|
22
|
+
//# sourceMappingURL=goal-validator-DA3JQ6JN.js.map
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YOJGSRZK.js";
|
|
5
5
|
import {
|
|
6
6
|
CodebaseIndex
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V7AY2EJO.js";
|
|
8
8
|
import {
|
|
9
9
|
appendToSection,
|
|
10
10
|
completeBootstrap,
|
|
@@ -46,9 +46,12 @@ import {
|
|
|
46
46
|
getPrompt,
|
|
47
47
|
getSystemPrompt,
|
|
48
48
|
handleCheckpointTool
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-Y2LYDCJD.js";
|
|
50
50
|
import "./chunk-23RJT5WT.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-N2EDZTKG.js";
|
|
52
|
+
import {
|
|
53
|
+
getOutputManager
|
|
54
|
+
} from "./chunk-TIMIKBY2.js";
|
|
52
55
|
import "./chunk-YEIJW6X6.js";
|
|
53
56
|
import "./chunk-XTTZAQWJ.js";
|
|
54
57
|
import "./chunk-3MUCUZ46.js";
|
|
@@ -57,7 +60,7 @@ import {
|
|
|
57
60
|
formatFriendlyError,
|
|
58
61
|
importFromJson,
|
|
59
62
|
isTrieInitialized
|
|
60
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-4PAAGLKO.js";
|
|
61
64
|
import {
|
|
62
65
|
loadConfig
|
|
63
66
|
} from "./chunk-NKHO34UZ.js";
|
|
@@ -68,30 +71,16 @@ import {
|
|
|
68
71
|
getGlobalMemoryStats,
|
|
69
72
|
listTrackedProjects,
|
|
70
73
|
searchGlobalPatterns
|
|
71
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-WMDFK7LI.js";
|
|
72
75
|
import {
|
|
73
76
|
ContextGraph
|
|
74
77
|
} from "./chunk-FH335WL5.js";
|
|
75
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-T6PS3MXJ.js";
|
|
76
79
|
import {
|
|
77
80
|
isAIAvailable,
|
|
78
81
|
runAIAnalysis
|
|
79
82
|
} from "./chunk-FPEMP54L.js";
|
|
80
83
|
import "./chunk-LT6VUZG2.js";
|
|
81
|
-
import {
|
|
82
|
-
findSimilarIssues,
|
|
83
|
-
getChangedFilesSinceTimestamp,
|
|
84
|
-
getGitChangedFiles,
|
|
85
|
-
getMemoryStats,
|
|
86
|
-
getRecentIssues,
|
|
87
|
-
markIssueResolved,
|
|
88
|
-
purgeIssues,
|
|
89
|
-
runShellCommandSync,
|
|
90
|
-
searchIssues,
|
|
91
|
-
storeIssues
|
|
92
|
-
} from "./chunk-62POBLFC.js";
|
|
93
|
-
import "./chunk-4MJ52WBH.js";
|
|
94
|
-
import "./chunk-43X6JBEM.js";
|
|
95
84
|
import "./chunk-F4NJ4CBP.js";
|
|
96
85
|
import "./chunk-IXO4G4D3.js";
|
|
97
86
|
import "./chunk-6NLHFIYA.js";
|
|
@@ -106,13 +95,24 @@ import {
|
|
|
106
95
|
loadAutonomyConfig,
|
|
107
96
|
saveAutonomyConfig
|
|
108
97
|
} from "./chunk-5KJ4UJOY.js";
|
|
98
|
+
import {
|
|
99
|
+
findSimilarIssues,
|
|
100
|
+
getChangedFilesSinceTimestamp,
|
|
101
|
+
getGitChangedFiles,
|
|
102
|
+
getMemoryStats,
|
|
103
|
+
getRecentIssues,
|
|
104
|
+
markIssueResolved,
|
|
105
|
+
purgeIssues,
|
|
106
|
+
runShellCommandSync,
|
|
107
|
+
searchIssues,
|
|
108
|
+
storeIssues
|
|
109
|
+
} from "./chunk-62POBLFC.js";
|
|
110
|
+
import "./chunk-4MJ52WBH.js";
|
|
111
|
+
import "./chunk-43X6JBEM.js";
|
|
109
112
|
import {
|
|
110
113
|
getTrieDirectory,
|
|
111
114
|
getWorkingDirectory
|
|
112
115
|
} from "./chunk-SH7H3WRU.js";
|
|
113
|
-
import {
|
|
114
|
-
getOutputManager
|
|
115
|
-
} from "./chunk-TIMIKBY2.js";
|
|
116
116
|
import {
|
|
117
117
|
isInteractiveMode
|
|
118
118
|
} from "./chunk-APMV77PU.js";
|
|
@@ -461,10 +461,11 @@ var TrieFixTool = class {
|
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
async routeIssues(issueIds) {
|
|
464
|
+
await loadPendingFixesFromMemory();
|
|
464
465
|
const pending = getPendingFixes();
|
|
465
466
|
if (pending.length === 0) {
|
|
466
467
|
return {
|
|
467
|
-
content: [{ type: "text", text: "No pending issues. Run
|
|
468
|
+
content: [{ type: "text", text: "No pending issues. Run trie_scan to detect new issues, or check memory with trie_memory action:recent." }]
|
|
468
469
|
};
|
|
469
470
|
}
|
|
470
471
|
const issues = pending.map((p) => ({
|
|
@@ -830,6 +831,32 @@ ${footer}
|
|
|
830
831
|
function getPendingFixes() {
|
|
831
832
|
return Array.from(pendingFixes.values());
|
|
832
833
|
}
|
|
834
|
+
async function loadPendingFixesFromMemory() {
|
|
835
|
+
try {
|
|
836
|
+
const { getRecentIssues: getRecentIssues2 } = await import("./issue-store-LZWZIGM7.js");
|
|
837
|
+
pendingFixes.clear();
|
|
838
|
+
const recentIssues = await getRecentIssues2({ limit: 50, includeResolved: false });
|
|
839
|
+
for (const storedIssue of recentIssues) {
|
|
840
|
+
const fix = {
|
|
841
|
+
id: storedIssue.id,
|
|
842
|
+
file: storedIssue.file,
|
|
843
|
+
line: storedIssue.line || 0,
|
|
844
|
+
issue: storedIssue.issue,
|
|
845
|
+
suggestedFix: storedIssue.fix,
|
|
846
|
+
confidence: 0.8,
|
|
847
|
+
// Default confidence for memory issues
|
|
848
|
+
status: "pending",
|
|
849
|
+
severity: storedIssue.severity,
|
|
850
|
+
autoFixable: true,
|
|
851
|
+
// Memory issues are generally auto-fixable
|
|
852
|
+
category: storedIssue.category
|
|
853
|
+
};
|
|
854
|
+
pendingFixes.set(fix.id, fix);
|
|
855
|
+
}
|
|
856
|
+
} catch (error) {
|
|
857
|
+
console.warn("Failed to load pending fixes from memory:", error);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
833
860
|
|
|
834
861
|
// src/tools/cloud-fix.ts
|
|
835
862
|
import { readFile as readFile2, writeFile, mkdir } from "fs/promises";
|
|
@@ -1033,13 +1060,16 @@ var TrieCloudFixTool = class {
|
|
|
1033
1060
|
// dispatch
|
|
1034
1061
|
// --------------------------------------------------------------------------
|
|
1035
1062
|
async dispatch(args) {
|
|
1063
|
+
console.log("Cloud dispatch starting...");
|
|
1036
1064
|
const workDir = getWorkingDirectory(void 0, true);
|
|
1037
1065
|
const apiKey = await this.resolveApiKey(workDir);
|
|
1038
1066
|
if (!apiKey) return this.setupGuard();
|
|
1039
1067
|
const config = await loadAutonomyConfig(workDir);
|
|
1040
|
-
|
|
1068
|
+
console.log("About to resolve issues...");
|
|
1069
|
+
const allIssues = await this.resolveIssues(args?.issueIds);
|
|
1070
|
+
console.log(`Resolved ${allIssues.length} issues`);
|
|
1041
1071
|
if (allIssues.length === 0) {
|
|
1042
|
-
return this.text("No issues to dispatch. Run trie_scan
|
|
1072
|
+
return this.text("No issues to dispatch. Run trie_scan to detect new issues, or check memory with trie_memory action:recent.");
|
|
1043
1073
|
}
|
|
1044
1074
|
const { results, summary } = triageIssues(allIssues, void 0, void 0, config);
|
|
1045
1075
|
const lines = [];
|
|
@@ -1202,8 +1232,38 @@ var TrieCloudFixTool = class {
|
|
|
1202
1232
|
'Cloud Agent dispatch requires a Cursor API key.\n\nGet your key at: cursor.com/settings \u2192 API Keys\nThen run: trie_cloud_fix action:configure apiKey:"key-..."\n\nOr set the environment variable: export CURSOR_API_KEY="key-..."'
|
|
1203
1233
|
);
|
|
1204
1234
|
}
|
|
1205
|
-
resolveIssues(issueIds) {
|
|
1206
|
-
|
|
1235
|
+
async resolveIssues(issueIds) {
|
|
1236
|
+
let pending = getPendingFixes();
|
|
1237
|
+
if (pending.length === 0) {
|
|
1238
|
+
try {
|
|
1239
|
+
console.log("Loading issues from memory...");
|
|
1240
|
+
const { getRecentIssues: getRecentIssues2 } = await import("./issue-store-LZWZIGM7.js");
|
|
1241
|
+
const recentIssues = await getRecentIssues2({ limit: 50, includeResolved: false });
|
|
1242
|
+
console.log(`Found ${recentIssues.length} recent issues in memory`);
|
|
1243
|
+
const memoryIssues = recentIssues.map((storedIssue) => ({
|
|
1244
|
+
id: storedIssue.id,
|
|
1245
|
+
severity: storedIssue.severity || "moderate",
|
|
1246
|
+
issue: storedIssue.issue,
|
|
1247
|
+
fix: storedIssue.fix,
|
|
1248
|
+
file: storedIssue.file,
|
|
1249
|
+
line: storedIssue.line,
|
|
1250
|
+
confidence: 0.8,
|
|
1251
|
+
// Default confidence for memory issues
|
|
1252
|
+
autoFixable: true,
|
|
1253
|
+
// Memory issues are generally auto-fixable
|
|
1254
|
+
agent: storedIssue.agent,
|
|
1255
|
+
category: storedIssue.category
|
|
1256
|
+
}));
|
|
1257
|
+
console.log(`Converted ${memoryIssues.length} memory issues for cloud dispatch`);
|
|
1258
|
+
if (issueIds && issueIds.length > 0) {
|
|
1259
|
+
return memoryIssues.filter((i) => issueIds.includes(i.id));
|
|
1260
|
+
}
|
|
1261
|
+
return memoryIssues;
|
|
1262
|
+
} catch (error) {
|
|
1263
|
+
console.warn("Failed to load issues from memory:", error);
|
|
1264
|
+
console.warn("Error details:", error);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1207
1267
|
const issues = pending.map((p) => ({
|
|
1208
1268
|
id: p.id,
|
|
1209
1269
|
severity: p.severity ?? "moderate",
|
|
@@ -2457,7 +2517,7 @@ ${f.content.slice(0, 1e3)}`
|
|
|
2457
2517
|
if (remaining < 500) return;
|
|
2458
2518
|
try {
|
|
2459
2519
|
const graph = new ContextGraph(projectPath);
|
|
2460
|
-
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-
|
|
2520
|
+
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-DA3JQ6JN.js");
|
|
2461
2521
|
console.debug("[AI Watcher] Loading active goals...");
|
|
2462
2522
|
const activeGoals = await getActiveGoals(projectPath);
|
|
2463
2523
|
const hasGoals = activeGoals.length > 0;
|
|
@@ -2767,7 +2827,7 @@ ${filesBlock}`,
|
|
|
2767
2827
|
const projectPath = this.watchedDirectory || getWorkingDirectory(void 0, true);
|
|
2768
2828
|
console.debug("[Initial Scan] Starting initial goal compliance scan", { projectPath });
|
|
2769
2829
|
try {
|
|
2770
|
-
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-
|
|
2830
|
+
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-DA3JQ6JN.js");
|
|
2771
2831
|
const activeGoals = await getActiveGoals(projectPath);
|
|
2772
2832
|
console.debug("[Initial Scan] Loaded goals for initial scan:", {
|
|
2773
2833
|
goalCount: activeGoals.length,
|
|
@@ -3044,7 +3104,7 @@ Use \`trie_watch start\` to begin autonomous scanning.`
|
|
|
3044
3104
|
).join("\n");
|
|
3045
3105
|
let agencyStatus = "";
|
|
3046
3106
|
try {
|
|
3047
|
-
const { getTrieAgent } = await import("./trie-agent-
|
|
3107
|
+
const { getTrieAgent } = await import("./trie-agent-6A7YBNTQ.js");
|
|
3048
3108
|
const trieAgent = getTrieAgent(this.watchedDirectory || getWorkingDirectory(void 0, true));
|
|
3049
3109
|
await trieAgent.initialize();
|
|
3050
3110
|
const status = await trieAgent.getAgencyStatus();
|