@triedotdev/mcp 1.0.141 → 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/dist/{chunk-GXF6JOCN.js → chunk-4PAAGLKO.js} +7 -7
- package/dist/{chunk-LHPWSUVT.js → chunk-N2EDZTKG.js} +5 -5
- package/dist/{chunk-75ADWWUF.js → chunk-T6PS3MXJ.js} +2 -2
- package/dist/{chunk-AF2APASP.js → chunk-V7AY2EJO.js} +4 -4
- package/dist/{chunk-M5R6DZQY.js → chunk-WMDFK7LI.js} +10 -10
- package/dist/{chunk-ROVR5OHR.js → chunk-Y2LYDCJD.js} +19 -19
- package/dist/cli/main.js +16 -16
- 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-CZ5CGATT.js → trie-agent-6A7YBNTQ.js} +6 -6
- package/package.json +1 -1
- /package/dist/{chunk-GXF6JOCN.js.map → chunk-4PAAGLKO.js.map} +0 -0
- /package/dist/{chunk-LHPWSUVT.js.map → chunk-N2EDZTKG.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-M5R6DZQY.js.map → chunk-WMDFK7LI.js.map} +0 -0
- /package/dist/{chunk-ROVR5OHR.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-CZ5CGATT.js.map → trie-agent-6A7YBNTQ.js.map} +0 -0
|
@@ -7,6 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
ContextGraph
|
|
9
9
|
} from "./chunk-FH335WL5.js";
|
|
10
|
+
import {
|
|
11
|
+
scanForVulnerabilities
|
|
12
|
+
} from "./chunk-F4NJ4CBP.js";
|
|
13
|
+
import {
|
|
14
|
+
scanForVibeCodeIssues
|
|
15
|
+
} from "./chunk-IXO4G4D3.js";
|
|
10
16
|
import {
|
|
11
17
|
getDiff,
|
|
12
18
|
getRecentCommits,
|
|
@@ -15,12 +21,6 @@ import {
|
|
|
15
21
|
getWorkingTreeDiff,
|
|
16
22
|
storeIssues
|
|
17
23
|
} from "./chunk-62POBLFC.js";
|
|
18
|
-
import {
|
|
19
|
-
scanForVulnerabilities
|
|
20
|
-
} from "./chunk-F4NJ4CBP.js";
|
|
21
|
-
import {
|
|
22
|
-
scanForVibeCodeIssues
|
|
23
|
-
} from "./chunk-IXO4G4D3.js";
|
|
24
24
|
import {
|
|
25
25
|
getTrieDirectory,
|
|
26
26
|
getWorkingDirectory
|
|
@@ -1454,4 +1454,4 @@ export {
|
|
|
1454
1454
|
handleCheckpointCommand,
|
|
1455
1455
|
isTrieInitialized
|
|
1456
1456
|
};
|
|
1457
|
-
//# sourceMappingURL=chunk-
|
|
1457
|
+
//# sourceMappingURL=chunk-4PAAGLKO.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SlackIntegration,
|
|
13
13
|
findCrossProjectPatterns,
|
|
14
14
|
recordToGlobalMemory
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WMDFK7LI.js";
|
|
16
16
|
import {
|
|
17
17
|
ContextGraph
|
|
18
18
|
} from "./chunk-FH335WL5.js";
|
|
@@ -23,6 +23,9 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
getProjectState
|
|
25
25
|
} from "./chunk-LT6VUZG2.js";
|
|
26
|
+
import {
|
|
27
|
+
getStorage
|
|
28
|
+
} from "./chunk-FG467PDD.js";
|
|
26
29
|
import {
|
|
27
30
|
autoResolveIssues,
|
|
28
31
|
getHistoricalInsights,
|
|
@@ -30,9 +33,6 @@ import {
|
|
|
30
33
|
searchIssues,
|
|
31
34
|
storeIssues
|
|
32
35
|
} from "./chunk-62POBLFC.js";
|
|
33
|
-
import {
|
|
34
|
-
getStorage
|
|
35
|
-
} from "./chunk-FG467PDD.js";
|
|
36
36
|
|
|
37
37
|
// src/agent/trie-agent.ts
|
|
38
38
|
import { basename as basename2 } from "path";
|
|
@@ -1810,4 +1810,4 @@ export {
|
|
|
1810
1810
|
TrieAgent,
|
|
1811
1811
|
getTrieAgent
|
|
1812
1812
|
};
|
|
1813
|
-
//# sourceMappingURL=chunk-
|
|
1813
|
+
//# sourceMappingURL=chunk-N2EDZTKG.js.map
|
|
@@ -89,7 +89,7 @@ async function measureInitialGoalValue(description, projectPath) {
|
|
|
89
89
|
}
|
|
90
90
|
async function checkFilesForGoalViolations(goals, projectPath, filesToCheck, onProgress, signal) {
|
|
91
91
|
const { isAIAvailable, runAIAnalysis } = await import("./client-INNE2GGZ.js");
|
|
92
|
-
const { CodebaseIndex } = await import("./codebase-index-
|
|
92
|
+
const { CodebaseIndex } = await import("./codebase-index-FMIULFZQ.js");
|
|
93
93
|
if (!isAIAvailable()) {
|
|
94
94
|
throw new Error("AI not available - ANTHROPIC_API_KEY not set");
|
|
95
95
|
}
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
measureInitialGoalValue,
|
|
352
352
|
checkFilesForGoalViolations
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-T6PS3MXJ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
atomicWriteJSON
|
|
3
|
-
} from "./chunk-43X6JBEM.js";
|
|
4
1
|
import {
|
|
5
2
|
Trie
|
|
6
3
|
} from "./chunk-6NLHFIYA.js";
|
|
4
|
+
import {
|
|
5
|
+
atomicWriteJSON
|
|
6
|
+
} from "./chunk-43X6JBEM.js";
|
|
7
7
|
import {
|
|
8
8
|
getTrieDirectory
|
|
9
9
|
} from "./chunk-SH7H3WRU.js";
|
|
@@ -251,4 +251,4 @@ var CodebaseIndex = class {
|
|
|
251
251
|
export {
|
|
252
252
|
CodebaseIndex
|
|
253
253
|
};
|
|
254
|
-
//# sourceMappingURL=chunk-
|
|
254
|
+
//# sourceMappingURL=chunk-V7AY2EJO.js.map
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryGetClient
|
|
3
3
|
} from "./chunk-FPEMP54L.js";
|
|
4
|
+
import {
|
|
5
|
+
scanForVulnerabilities
|
|
6
|
+
} from "./chunk-F4NJ4CBP.js";
|
|
7
|
+
import {
|
|
8
|
+
scanForVibeCodeIssues
|
|
9
|
+
} from "./chunk-IXO4G4D3.js";
|
|
10
|
+
import {
|
|
11
|
+
getStorage
|
|
12
|
+
} from "./chunk-FG467PDD.js";
|
|
4
13
|
import {
|
|
5
14
|
searchIssues
|
|
6
15
|
} from "./chunk-62POBLFC.js";
|
|
@@ -12,15 +21,6 @@ import {
|
|
|
12
21
|
import {
|
|
13
22
|
atomicWriteJSON
|
|
14
23
|
} from "./chunk-43X6JBEM.js";
|
|
15
|
-
import {
|
|
16
|
-
scanForVulnerabilities
|
|
17
|
-
} from "./chunk-F4NJ4CBP.js";
|
|
18
|
-
import {
|
|
19
|
-
scanForVibeCodeIssues
|
|
20
|
-
} from "./chunk-IXO4G4D3.js";
|
|
21
|
-
import {
|
|
22
|
-
getStorage
|
|
23
|
-
} from "./chunk-FG467PDD.js";
|
|
24
24
|
|
|
25
25
|
// src/memory/global-memory.ts
|
|
26
26
|
import { mkdir, writeFile, readFile, readdir } from "fs/promises";
|
|
@@ -821,4 +821,4 @@ export {
|
|
|
821
821
|
SlackIntegration,
|
|
822
822
|
GotchaPredictor
|
|
823
823
|
};
|
|
824
|
-
//# sourceMappingURL=chunk-
|
|
824
|
+
//# sourceMappingURL=chunk-WMDFK7LI.js.map
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-23RJT5WT.js";
|
|
4
4
|
import {
|
|
5
5
|
getTrieAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N2EDZTKG.js";
|
|
7
|
+
import {
|
|
8
|
+
getOutputManager
|
|
9
|
+
} from "./chunk-TIMIKBY2.js";
|
|
7
10
|
import {
|
|
8
11
|
LearningEngine,
|
|
9
12
|
exportToJson,
|
|
@@ -13,7 +16,7 @@ import {
|
|
|
13
16
|
perceiveCurrentChanges,
|
|
14
17
|
reasonAboutChangesHumanReadable,
|
|
15
18
|
saveCheckpoint
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4PAAGLKO.js";
|
|
17
20
|
import {
|
|
18
21
|
loadConfig,
|
|
19
22
|
saveConfig
|
|
@@ -23,13 +26,13 @@ import {
|
|
|
23
26
|
} from "./chunk-4C67GV3O.js";
|
|
24
27
|
import {
|
|
25
28
|
findCrossProjectPatterns
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WMDFK7LI.js";
|
|
27
30
|
import {
|
|
28
31
|
ContextGraph
|
|
29
32
|
} from "./chunk-FH335WL5.js";
|
|
30
33
|
import {
|
|
31
34
|
measureInitialGoalValue
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-T6PS3MXJ.js";
|
|
33
36
|
import {
|
|
34
37
|
getKeyFromKeychain,
|
|
35
38
|
isAIAvailable,
|
|
@@ -39,10 +42,6 @@ import {
|
|
|
39
42
|
import {
|
|
40
43
|
getProjectState
|
|
41
44
|
} from "./chunk-LT6VUZG2.js";
|
|
42
|
-
import {
|
|
43
|
-
deleteBlocks,
|
|
44
|
-
getLedgerBlocks
|
|
45
|
-
} from "./chunk-62POBLFC.js";
|
|
46
45
|
import {
|
|
47
46
|
TieredStorage,
|
|
48
47
|
getStorage
|
|
@@ -51,13 +50,14 @@ import {
|
|
|
51
50
|
loadAutonomyConfig,
|
|
52
51
|
saveAutonomyConfig
|
|
53
52
|
} from "./chunk-5KJ4UJOY.js";
|
|
53
|
+
import {
|
|
54
|
+
deleteBlocks,
|
|
55
|
+
getLedgerBlocks
|
|
56
|
+
} from "./chunk-62POBLFC.js";
|
|
54
57
|
import {
|
|
55
58
|
getTrieDirectory,
|
|
56
59
|
getWorkingDirectory
|
|
57
60
|
} from "./chunk-SH7H3WRU.js";
|
|
58
|
-
import {
|
|
59
|
-
getOutputManager
|
|
60
|
-
} from "./chunk-TIMIKBY2.js";
|
|
61
61
|
import {
|
|
62
62
|
isInteractiveMode
|
|
63
63
|
} from "./chunk-APMV77PU.js";
|
|
@@ -1220,7 +1220,7 @@ function ConfigDialog({ onClose }) {
|
|
|
1220
1220
|
const loadStats = async () => {
|
|
1221
1221
|
try {
|
|
1222
1222
|
const workDir = getWorkingDirectory(void 0, true);
|
|
1223
|
-
const { CodebaseIndex } = await import("./codebase-index-
|
|
1223
|
+
const { CodebaseIndex } = await import("./codebase-index-FMIULFZQ.js");
|
|
1224
1224
|
const index = new CodebaseIndex(workDir);
|
|
1225
1225
|
const stats = index.getStats();
|
|
1226
1226
|
let lastUpdatedDisplay = "Never";
|
|
@@ -1413,7 +1413,7 @@ function ConfigDialog({ onClose }) {
|
|
|
1413
1413
|
const loadStats = async () => {
|
|
1414
1414
|
try {
|
|
1415
1415
|
const workDir = getWorkingDirectory(void 0, true);
|
|
1416
|
-
const { CodebaseIndex } = await import("./codebase-index-
|
|
1416
|
+
const { CodebaseIndex } = await import("./codebase-index-FMIULFZQ.js");
|
|
1417
1417
|
const index = new CodebaseIndex(workDir);
|
|
1418
1418
|
const stats = index.getStats();
|
|
1419
1419
|
setIndexStats({
|
|
@@ -1488,7 +1488,7 @@ function ConfigDialog({ onClose }) {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
async function reindexCodebase() {
|
|
1490
1490
|
const workDir = getWorkingDirectory(void 0, true);
|
|
1491
|
-
const { CodebaseIndex } = await import("./codebase-index-
|
|
1491
|
+
const { CodebaseIndex } = await import("./codebase-index-FMIULFZQ.js");
|
|
1492
1492
|
const { glob } = await import("glob");
|
|
1493
1493
|
const index = new CodebaseIndex(workDir);
|
|
1494
1494
|
const indexPattern = `${workDir}/**/*.{ts,tsx,js,jsx,mjs,vue,svelte,astro,py,go,rs,java,c,cpp,h,hpp,cs,rb,php,css,scss,html}`;
|
|
@@ -2303,7 +2303,7 @@ function GoalsView() {
|
|
|
2303
2303
|
dispatch({ type: "SET_GOAL_SCANNING", goalId, progress: "Starting scan..." });
|
|
2304
2304
|
dispatch({ type: "ADD_ACTIVITY", message: `Scanning goal: ${goalSummary.description}...` });
|
|
2305
2305
|
dispatch({ type: "SET_GOAL_SCANNING", goalId, progress: "Loading goal configuration..." });
|
|
2306
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-
|
|
2306
|
+
const { checkFilesForGoalViolations } = await import("./goal-validator-DA3JQ6JN.js");
|
|
2307
2307
|
const agentState = getProjectState(workDir);
|
|
2308
2308
|
await agentState.load();
|
|
2309
2309
|
const fullGoal = agentState.getAllGoals().find((g) => g.id === goalId);
|
|
@@ -7022,7 +7022,7 @@ ${truncated}`;
|
|
|
7022
7022
|
const goalId = input.goalId ? String(input.goalId).trim() : void 0;
|
|
7023
7023
|
try {
|
|
7024
7024
|
onProgress?.("Loading goals...");
|
|
7025
|
-
const { getActiveGoals } = await import("./goal-validator-
|
|
7025
|
+
const { getActiveGoals } = await import("./goal-validator-DA3JQ6JN.js");
|
|
7026
7026
|
const agentState = getProjectState(directory);
|
|
7027
7027
|
await agentState.load();
|
|
7028
7028
|
const allGoals = await getActiveGoals(directory);
|
|
@@ -7031,7 +7031,7 @@ ${truncated}`;
|
|
|
7031
7031
|
return goalId ? `No active goal found with ID: ${goalId}` : "No active goals to check. Add goals in the Goals view first.";
|
|
7032
7032
|
}
|
|
7033
7033
|
onProgress?.("Scanning codebase for violations...");
|
|
7034
|
-
const { analyzeFilesRapidly } = await import("./fast-analyzer-
|
|
7034
|
+
const { analyzeFilesRapidly } = await import("./fast-analyzer-MWKCDRGD.js");
|
|
7035
7035
|
const analysisOptions = {
|
|
7036
7036
|
maxFiles: 50,
|
|
7037
7037
|
enableSmartBatching: true
|
|
@@ -8014,7 +8014,7 @@ ${content}
|
|
|
8014
8014
|
fixedContent = fixedContent.replace(/^```\w*\n?/, "").replace(/\n?```$/, "");
|
|
8015
8015
|
}
|
|
8016
8016
|
await writeFile(fullPath, fixedContent, "utf-8");
|
|
8017
|
-
const { recordGoalViolationFixed, getActiveGoals } = await import("./goal-validator-
|
|
8017
|
+
const { recordGoalViolationFixed, getActiveGoals } = await import("./goal-validator-DA3JQ6JN.js");
|
|
8018
8018
|
const goals = await getActiveGoals(projectPath);
|
|
8019
8019
|
const matchedGoal = goals.find((g) => g.description === fix.goalDescription);
|
|
8020
8020
|
if (matchedGoal) {
|
|
@@ -8399,4 +8399,4 @@ export {
|
|
|
8399
8399
|
GitHubBranchesTool,
|
|
8400
8400
|
InteractiveDashboard
|
|
8401
8401
|
};
|
|
8402
|
-
//# sourceMappingURL=chunk-
|
|
8402
|
+
//# sourceMappingURL=chunk-Y2LYDCJD.js.map
|
package/dist/cli/main.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isTrieInitialized,
|
|
22
22
|
perceiveCurrentChanges,
|
|
23
23
|
reasonAboutChangesHumanReadable
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-4PAAGLKO.js";
|
|
25
25
|
import {
|
|
26
26
|
loadConfig,
|
|
27
27
|
saveConfig
|
|
@@ -38,17 +38,30 @@ import {
|
|
|
38
38
|
listTrackedProjects,
|
|
39
39
|
searchGlobalPatterns,
|
|
40
40
|
updateGlobalMemoryMd
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-WMDFK7LI.js";
|
|
42
42
|
import {
|
|
43
43
|
ContextGraph
|
|
44
44
|
} from "../chunk-FH335WL5.js";
|
|
45
45
|
import {
|
|
46
46
|
measureInitialGoalValue
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-T6PS3MXJ.js";
|
|
48
48
|
import "../chunk-FPEMP54L.js";
|
|
49
49
|
import {
|
|
50
50
|
getProjectState
|
|
51
51
|
} from "../chunk-LT6VUZG2.js";
|
|
52
|
+
import "../chunk-F4NJ4CBP.js";
|
|
53
|
+
import "../chunk-IXO4G4D3.js";
|
|
54
|
+
import "../chunk-6NLHFIYA.js";
|
|
55
|
+
import {
|
|
56
|
+
getStorage
|
|
57
|
+
} from "../chunk-FG467PDD.js";
|
|
58
|
+
import {
|
|
59
|
+
getAutonomyConfig,
|
|
60
|
+
recordBypass,
|
|
61
|
+
shouldAutoFix,
|
|
62
|
+
shouldBlockPush,
|
|
63
|
+
trackIssueOccurrence
|
|
64
|
+
} from "../chunk-5KJ4UJOY.js";
|
|
52
65
|
import {
|
|
53
66
|
compressOldBlocks,
|
|
54
67
|
deleteAllBlocks,
|
|
@@ -79,19 +92,6 @@ import {
|
|
|
79
92
|
} from "../chunk-62POBLFC.js";
|
|
80
93
|
import "../chunk-4MJ52WBH.js";
|
|
81
94
|
import "../chunk-43X6JBEM.js";
|
|
82
|
-
import "../chunk-F4NJ4CBP.js";
|
|
83
|
-
import "../chunk-IXO4G4D3.js";
|
|
84
|
-
import "../chunk-6NLHFIYA.js";
|
|
85
|
-
import {
|
|
86
|
-
getStorage
|
|
87
|
-
} from "../chunk-FG467PDD.js";
|
|
88
|
-
import {
|
|
89
|
-
getAutonomyConfig,
|
|
90
|
-
recordBypass,
|
|
91
|
-
shouldAutoFix,
|
|
92
|
-
shouldBlockPush,
|
|
93
|
-
trackIssueOccurrence
|
|
94
|
-
} from "../chunk-5KJ4UJOY.js";
|
|
95
95
|
import {
|
|
96
96
|
getTrieDirectory,
|
|
97
97
|
getWorkingDirectory
|
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();
|