@triedotdev/mcp 1.0.148 → 1.0.149
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 +134 -73
- package/dist/{chunk-4PAAGLKO.js → chunk-53KUI7RQ.js} +6 -4
- package/dist/{chunk-4PAAGLKO.js.map → chunk-53KUI7RQ.js.map} +1 -1
- package/dist/{chunk-XTTZAQWJ.js → chunk-72KSLD7A.js} +4 -4
- package/dist/{chunk-WMDFK7LI.js → chunk-B2AHQ2IR.js} +12 -12
- package/dist/{chunk-LT6VUZG2.js → chunk-CU5VDH6F.js} +2 -2
- package/dist/{chunk-4MJ52WBH.js → chunk-EFWVF6TI.js} +4 -2
- package/dist/chunk-EFWVF6TI.js.map +1 -0
- package/dist/{chunk-N2EDZTKG.js → chunk-GAL7OIYU.js} +11 -11
- package/dist/{chunk-J7CEBSEB.js → chunk-HYNDXZAU.js} +23 -112
- package/dist/chunk-HYNDXZAU.js.map +1 -0
- package/dist/{chunk-YEIJW6X6.js → chunk-ILGMFND2.js} +4 -4
- package/dist/{chunk-3MUCUZ46.js → chunk-OTQEFXHU.js} +2 -2
- package/dist/chunk-QH77RQB3.js +783 -0
- package/dist/chunk-QH77RQB3.js.map +1 -0
- package/dist/{chunk-T6PS3MXJ.js → chunk-ZDDE442Q.js} +5 -5
- package/dist/{chunk-62POBLFC.js → chunk-ZUEAHFSY.js} +180 -965
- package/dist/chunk-ZUEAHFSY.js.map +1 -0
- package/dist/cli/main.js +85 -90
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +24 -148
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{fast-analyzer-MWKCDRGD.js → fast-analyzer-CTT3MCPE.js} +3 -3
- package/dist/{goal-manager-ZBWKWEML.js → goal-manager-IGUMDGCA.js} +7 -6
- package/dist/{goal-validator-DA3JQ6JN.js → goal-validator-DV6DRSGF.js} +6 -5
- package/dist/{hypothesis-JCUMZKTG.js → hypothesis-O72ZLVOW.js} +7 -6
- package/dist/index.js +30 -116
- package/dist/index.js.map +1 -1
- package/dist/{insight-store-A5XXMFD6.js → insight-store-Q62UGMTF.js} +3 -3
- package/dist/{issue-store-LZWZIGM7.js → issue-store-4FPABLC6.js} +6 -3
- package/dist/ledger-43SIVE7X.js +43 -0
- package/dist/{trie-agent-6A7YBNTQ.js → trie-agent-ET3DAP5Y.js} +11 -10
- package/dist/trie-agent-ET3DAP5Y.js.map +1 -0
- package/package.json +5 -1
- package/dist/chunk-4MJ52WBH.js.map +0 -1
- package/dist/chunk-62POBLFC.js.map +0 -1
- package/dist/chunk-J7CEBSEB.js.map +0 -1
- /package/dist/{chunk-XTTZAQWJ.js.map → chunk-72KSLD7A.js.map} +0 -0
- /package/dist/{chunk-WMDFK7LI.js.map → chunk-B2AHQ2IR.js.map} +0 -0
- /package/dist/{chunk-LT6VUZG2.js.map → chunk-CU5VDH6F.js.map} +0 -0
- /package/dist/{chunk-N2EDZTKG.js.map → chunk-GAL7OIYU.js.map} +0 -0
- /package/dist/{chunk-YEIJW6X6.js.map → chunk-ILGMFND2.js.map} +0 -0
- /package/dist/{chunk-3MUCUZ46.js.map → chunk-OTQEFXHU.js.map} +0 -0
- /package/dist/{chunk-T6PS3MXJ.js.map → chunk-ZDDE442Q.js.map} +0 -0
- /package/dist/{fast-analyzer-MWKCDRGD.js.map → fast-analyzer-CTT3MCPE.js.map} +0 -0
- /package/dist/{goal-manager-ZBWKWEML.js.map → goal-manager-IGUMDGCA.js.map} +0 -0
- /package/dist/{goal-validator-DA3JQ6JN.js.map → goal-validator-DV6DRSGF.js.map} +0 -0
- /package/dist/{hypothesis-JCUMZKTG.js.map → hypothesis-O72ZLVOW.js.map} +0 -0
- /package/dist/{insight-store-A5XXMFD6.js.map → insight-store-Q62UGMTF.js.map} +0 -0
- /package/dist/{issue-store-LZWZIGM7.js.map → issue-store-4FPABLC6.js.map} +0 -0
- /package/dist/{trie-agent-6A7YBNTQ.js.map → ledger-43SIVE7X.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -43,26 +43,25 @@ import {
|
|
|
43
43
|
TrieGetRelatedGovernanceTool,
|
|
44
44
|
TriePipelineTool,
|
|
45
45
|
TrieQueryContextTool,
|
|
46
|
-
TrieScanTool,
|
|
47
46
|
TrieTellTool,
|
|
48
47
|
getPrompt,
|
|
49
48
|
getSystemPrompt,
|
|
50
49
|
handleCheckpointTool
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HYNDXZAU.js";
|
|
52
51
|
import "./chunk-23RJT5WT.js";
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-GAL7OIYU.js";
|
|
54
53
|
import {
|
|
55
54
|
getOutputManager
|
|
56
55
|
} from "./chunk-TIMIKBY2.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-ILGMFND2.js";
|
|
57
|
+
import "./chunk-72KSLD7A.js";
|
|
58
|
+
import "./chunk-OTQEFXHU.js";
|
|
60
59
|
import {
|
|
61
60
|
exportToJson,
|
|
62
61
|
formatFriendlyError,
|
|
63
62
|
importFromJson,
|
|
64
63
|
isTrieInitialized
|
|
65
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-53KUI7RQ.js";
|
|
66
65
|
import {
|
|
67
66
|
loadConfig
|
|
68
67
|
} from "./chunk-NKHO34UZ.js";
|
|
@@ -73,22 +72,32 @@ import {
|
|
|
73
72
|
getGlobalMemoryStats,
|
|
74
73
|
listTrackedProjects,
|
|
75
74
|
searchGlobalPatterns
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-B2AHQ2IR.js";
|
|
76
|
+
import {
|
|
77
|
+
getStorage
|
|
78
|
+
} from "./chunk-FG467PDD.js";
|
|
77
79
|
import {
|
|
78
80
|
ContextGraph
|
|
79
81
|
} from "./chunk-FH335WL5.js";
|
|
80
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-ZDDE442Q.js";
|
|
81
83
|
import {
|
|
82
84
|
isAIAvailable,
|
|
83
85
|
runAIAnalysis
|
|
84
86
|
} from "./chunk-FPEMP54L.js";
|
|
85
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-CU5VDH6F.js";
|
|
88
|
+
import {
|
|
89
|
+
findSimilarIssues,
|
|
90
|
+
getMemoryStats,
|
|
91
|
+
getRecentIssues,
|
|
92
|
+
markIssueResolved,
|
|
93
|
+
purgeIssues,
|
|
94
|
+
searchIssues,
|
|
95
|
+
storeIssues
|
|
96
|
+
} from "./chunk-QH77RQB3.js";
|
|
97
|
+
import "./chunk-EFWVF6TI.js";
|
|
86
98
|
import "./chunk-F4NJ4CBP.js";
|
|
87
99
|
import "./chunk-IXO4G4D3.js";
|
|
88
100
|
import "./chunk-6NLHFIYA.js";
|
|
89
|
-
import {
|
|
90
|
-
getStorage
|
|
91
|
-
} from "./chunk-FG467PDD.js";
|
|
92
101
|
import {
|
|
93
102
|
getSkillRegistry
|
|
94
103
|
} from "./chunk-G76DYVGX.js";
|
|
@@ -96,18 +105,10 @@ import {
|
|
|
96
105
|
getAutonomyConfig
|
|
97
106
|
} from "./chunk-5KJ4UJOY.js";
|
|
98
107
|
import {
|
|
99
|
-
findSimilarIssues,
|
|
100
108
|
getChangedFilesSinceTimestamp,
|
|
101
109
|
getGitChangedFiles,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
markIssueResolved,
|
|
105
|
-
purgeIssues,
|
|
106
|
-
runShellCommandSync,
|
|
107
|
-
searchIssues,
|
|
108
|
-
storeIssues
|
|
109
|
-
} from "./chunk-62POBLFC.js";
|
|
110
|
-
import "./chunk-4MJ52WBH.js";
|
|
110
|
+
runShellCommandSync
|
|
111
|
+
} from "./chunk-ZUEAHFSY.js";
|
|
111
112
|
import "./chunk-43X6JBEM.js";
|
|
112
113
|
import {
|
|
113
114
|
getTrieDirectory,
|
|
@@ -1277,7 +1278,7 @@ ${f.content.slice(0, 1e3)}`
|
|
|
1277
1278
|
async checkAndGenerateHypotheses(projectPath) {
|
|
1278
1279
|
if (!isAIAvailable()) return;
|
|
1279
1280
|
try {
|
|
1280
|
-
const { getHypothesisEngine } = await import("./hypothesis-
|
|
1281
|
+
const { getHypothesisEngine } = await import("./hypothesis-O72ZLVOW.js");
|
|
1281
1282
|
const { getOutputManager: getOutputManager2 } = await import("./output-manager-DZO5LGSG.js");
|
|
1282
1283
|
const hypothesisEngine = getHypothesisEngine(projectPath);
|
|
1283
1284
|
const recentIssues = Array.from(this.state.issueCache.values()).flat();
|
|
@@ -1487,7 +1488,7 @@ ${f.content.slice(0, 1e3)}`
|
|
|
1487
1488
|
if (remaining < 500) return;
|
|
1488
1489
|
try {
|
|
1489
1490
|
const graph = new ContextGraph(projectPath);
|
|
1490
|
-
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-
|
|
1491
|
+
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-DV6DRSGF.js");
|
|
1491
1492
|
console.debug("[AI Watcher] Loading active goals...");
|
|
1492
1493
|
const activeGoals = await getActiveGoals(projectPath);
|
|
1493
1494
|
const hasGoals = activeGoals.length > 0;
|
|
@@ -1739,7 +1740,7 @@ ${filesBlock}`,
|
|
|
1739
1740
|
const projectPath = this.watchedDirectory || getWorkingDirectory(void 0, true);
|
|
1740
1741
|
console.debug("[Initial Hypothesis] Starting initial hypothesis generation", { projectPath });
|
|
1741
1742
|
try {
|
|
1742
|
-
const { getHypothesisEngine } = await import("./hypothesis-
|
|
1743
|
+
const { getHypothesisEngine } = await import("./hypothesis-O72ZLVOW.js");
|
|
1743
1744
|
const hypothesisEngine = getHypothesisEngine(projectPath);
|
|
1744
1745
|
console.debug("[Initial Hypothesis] Running AI-powered hypothesis generation...");
|
|
1745
1746
|
const generated = await hypothesisEngine.generateHypothesesWithAI({
|
|
@@ -1797,7 +1798,7 @@ ${filesBlock}`,
|
|
|
1797
1798
|
const projectPath = this.watchedDirectory || getWorkingDirectory(void 0, true);
|
|
1798
1799
|
console.debug("[Initial Scan] Starting initial goal compliance scan", { projectPath });
|
|
1799
1800
|
try {
|
|
1800
|
-
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-
|
|
1801
|
+
const { getActiveGoals, recordGoalViolationCaught } = await import("./goal-validator-DV6DRSGF.js");
|
|
1801
1802
|
const activeGoals = await getActiveGoals(projectPath);
|
|
1802
1803
|
console.debug("[Initial Scan] Loaded goals for initial scan:", {
|
|
1803
1804
|
goalCount: activeGoals.length,
|
|
@@ -2074,7 +2075,7 @@ Use \`trie_watch start\` to begin autonomous scanning.`
|
|
|
2074
2075
|
).join("\n");
|
|
2075
2076
|
let agencyStatus = "";
|
|
2076
2077
|
try {
|
|
2077
|
-
const { getTrieAgent } = await import("./trie-agent-
|
|
2078
|
+
const { getTrieAgent } = await import("./trie-agent-ET3DAP5Y.js");
|
|
2078
2079
|
const trieAgent = getTrieAgent(this.watchedDirectory || getWorkingDirectory(void 0, true));
|
|
2079
2080
|
await trieAgent.initialize();
|
|
2080
2081
|
const status = await trieAgent.getAgencyStatus();
|
|
@@ -3528,7 +3529,6 @@ var ToolRegistry = class {
|
|
|
3528
3529
|
this.defineToolSchemas();
|
|
3529
3530
|
}
|
|
3530
3531
|
initializeTools() {
|
|
3531
|
-
this.tools.set("scan", new TrieScanTool());
|
|
3532
3532
|
this.tools.set("fix", new TrieFixTool());
|
|
3533
3533
|
this.tools.set("cloud_fix", new TrieCloudFixTool());
|
|
3534
3534
|
this.tools.set("explain", new TrieExplainTool());
|
|
@@ -3560,81 +3560,6 @@ var ToolRegistry = class {
|
|
|
3560
3560
|
}
|
|
3561
3561
|
defineToolSchemas() {
|
|
3562
3562
|
this.definitions = [
|
|
3563
|
-
{
|
|
3564
|
-
name: "trie_scan",
|
|
3565
|
-
description: "Scan code with intelligent agent selection. Scans entire codebase if no files specified. Auto-updates .trie/AGENTS.md with results. Alias: scan",
|
|
3566
|
-
inputSchema: {
|
|
3567
|
-
type: "object",
|
|
3568
|
-
properties: {
|
|
3569
|
-
files: {
|
|
3570
|
-
type: "array",
|
|
3571
|
-
items: { type: "string" },
|
|
3572
|
-
description: "Files to scan (absolute paths). If empty, scans entire codebase."
|
|
3573
|
-
},
|
|
3574
|
-
directory: {
|
|
3575
|
-
type: "string",
|
|
3576
|
-
description: "Directory to scan (if files not specified). Defaults to current working directory."
|
|
3577
|
-
},
|
|
3578
|
-
context: {
|
|
3579
|
-
type: "object",
|
|
3580
|
-
properties: {
|
|
3581
|
-
changeType: {
|
|
3582
|
-
type: "string",
|
|
3583
|
-
enum: ["ui", "api", "database", "auth", "payment", "general"]
|
|
3584
|
-
},
|
|
3585
|
-
isNewFeature: { type: "boolean" },
|
|
3586
|
-
touchesUserData: { type: "boolean" }
|
|
3587
|
-
}
|
|
3588
|
-
},
|
|
3589
|
-
forceAgents: {
|
|
3590
|
-
type: "array",
|
|
3591
|
-
items: { type: "string" },
|
|
3592
|
-
description: "Manually specify agents to run (overrides triaging)"
|
|
3593
|
-
},
|
|
3594
|
-
parallel: {
|
|
3595
|
-
type: "boolean",
|
|
3596
|
-
description: "Run agents in parallel (default true)"
|
|
3597
|
-
},
|
|
3598
|
-
cache: {
|
|
3599
|
-
type: "boolean",
|
|
3600
|
-
description: "Enable scan result caching (default true)"
|
|
3601
|
-
},
|
|
3602
|
-
maxConcurrency: {
|
|
3603
|
-
type: "number",
|
|
3604
|
-
description: "Max parallel agents"
|
|
3605
|
-
},
|
|
3606
|
-
timeoutMs: {
|
|
3607
|
-
type: "number",
|
|
3608
|
-
description: "Agent timeout in milliseconds"
|
|
3609
|
-
},
|
|
3610
|
-
streaming: {
|
|
3611
|
-
type: "boolean",
|
|
3612
|
-
description: "Stream progress updates"
|
|
3613
|
-
},
|
|
3614
|
-
interactive: {
|
|
3615
|
-
type: "boolean",
|
|
3616
|
-
description: "Enable interactive CLI dashboard (TTY only)"
|
|
3617
|
-
},
|
|
3618
|
-
format: {
|
|
3619
|
-
type: "string",
|
|
3620
|
-
enum: ["text", "json"],
|
|
3621
|
-
description: "Output format for optional file output"
|
|
3622
|
-
},
|
|
3623
|
-
output: {
|
|
3624
|
-
type: "string",
|
|
3625
|
-
description: "Output file path when format is json"
|
|
3626
|
-
},
|
|
3627
|
-
workers: {
|
|
3628
|
-
type: "boolean",
|
|
3629
|
-
description: "Use worker threads for parallel execution"
|
|
3630
|
-
}
|
|
3631
|
-
}
|
|
3632
|
-
},
|
|
3633
|
-
// MCP Apps: Interactive scan dashboard
|
|
3634
|
-
_meta: {
|
|
3635
|
-
ui: { resourceUri: "ui://trie/scan-dashboard" }
|
|
3636
|
-
}
|
|
3637
|
-
},
|
|
3638
3563
|
{
|
|
3639
3564
|
name: "trie",
|
|
3640
3565
|
description: "Quick menu of available Trie commands. TIP: Read trie://context first for project state and priorities. Call with `action` to run directly.",
|
|
@@ -3643,7 +3568,7 @@ var ToolRegistry = class {
|
|
|
3643
3568
|
properties: {
|
|
3644
3569
|
action: {
|
|
3645
3570
|
type: "string",
|
|
3646
|
-
description: "Optional quick action:
|
|
3571
|
+
description: "Optional quick action: security, legal, bugs, types, devops, architecture, ux, clean, soc2, performance, e2e, visual_qa, data_flow, agent_smith, pr_review, watch, fix, explain"
|
|
3647
3572
|
},
|
|
3648
3573
|
agent: {
|
|
3649
3574
|
type: "string",
|
|
@@ -3657,17 +3582,6 @@ var ToolRegistry = class {
|
|
|
3657
3582
|
directory: {
|
|
3658
3583
|
type: "string",
|
|
3659
3584
|
description: "Directory to scan (defaults to detected workspace)"
|
|
3660
|
-
},
|
|
3661
|
-
context: {
|
|
3662
|
-
type: "object",
|
|
3663
|
-
properties: {
|
|
3664
|
-
changeType: {
|
|
3665
|
-
type: "string",
|
|
3666
|
-
enum: ["ui", "api", "database", "auth", "payment", "general"]
|
|
3667
|
-
},
|
|
3668
|
-
isNewFeature: { type: "boolean" },
|
|
3669
|
-
touchesUserData: { type: "boolean" }
|
|
3670
|
-
}
|
|
3671
3585
|
}
|
|
3672
3586
|
}
|
|
3673
3587
|
}
|