@triedotdev/mcp 1.0.162 → 1.0.163
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-UDQBOLIR.js → chunk-GL62CXU4.js} +37 -3
- package/dist/chunk-GL62CXU4.js.map +1 -0
- package/dist/chunk-WCN7S3EI.js +14 -0
- package/dist/chunk-WCN7S3EI.js.map +1 -0
- package/dist/{chunk-Q4K7CFCK.js → chunk-XSKLOBD2.js} +110 -33
- package/dist/chunk-XSKLOBD2.js.map +1 -0
- package/dist/cli/main.js +3 -3
- package/dist/cli/yolo-daemon.js +3 -2
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/parse-goal-violation-SACGFG3C.js +8 -0
- package/dist/parse-goal-violation-SACGFG3C.js.map +1 -0
- package/dist/server/mcp-server.js +4 -3
- package/package.json +1 -1
- package/dist/chunk-Q4K7CFCK.js.map +0 -1
- package/dist/chunk-UDQBOLIR.js.map +0 -1
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
TrieGetBlockersTool,
|
|
33
33
|
TrieGetDecisionsTool,
|
|
34
34
|
TrieGetGovernanceTool,
|
|
35
|
+
TrieGetNudgesTool,
|
|
35
36
|
TrieGetRelatedDecisionsTool,
|
|
36
37
|
TrieGetRelatedGovernanceTool,
|
|
37
38
|
TriePipelineTool,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
getPrompt,
|
|
43
44
|
getSystemPrompt,
|
|
44
45
|
handleCheckpointTool
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XSKLOBD2.js";
|
|
46
47
|
import {
|
|
47
48
|
CodebaseIndex
|
|
48
49
|
} from "./chunk-Q5EKA5YA.js";
|
|
@@ -61,6 +62,9 @@ import {
|
|
|
61
62
|
listTrackedProjects,
|
|
62
63
|
searchGlobalPatterns
|
|
63
64
|
} from "./chunk-HFVPHQL3.js";
|
|
65
|
+
import {
|
|
66
|
+
getStorage
|
|
67
|
+
} from "./chunk-LLDZDU2Y.js";
|
|
64
68
|
import {
|
|
65
69
|
ContextGraph
|
|
66
70
|
} from "./chunk-VUL52BQL.js";
|
|
@@ -2138,6 +2142,7 @@ var ToolRegistry = class {
|
|
|
2138
2142
|
this.tools.set("get_governance", new TrieGetGovernanceTool());
|
|
2139
2143
|
this.tools.set("get_decisions", new TrieGetDecisionsTool());
|
|
2140
2144
|
this.tools.set("get_blockers", new TrieGetBlockersTool());
|
|
2145
|
+
this.tools.set("get_nudges", new TrieGetNudgesTool());
|
|
2141
2146
|
this.tools.set("query_ledger_blocks", new TrieQueryLedgerBlocksTool());
|
|
2142
2147
|
this.tools.set("get_related_governance", new TrieGetRelatedGovernanceTool());
|
|
2143
2148
|
this.tools.set("get_related_decisions", new TrieGetRelatedDecisionsTool());
|
|
@@ -2667,6 +2672,19 @@ var ToolRegistry = class {
|
|
|
2667
2672
|
}
|
|
2668
2673
|
}
|
|
2669
2674
|
},
|
|
2675
|
+
{
|
|
2676
|
+
name: "trie_get_nudges",
|
|
2677
|
+
description: "Get unresolved nudges (goal violations). Use when automating fixes: call trie_get_nudges, then trie_propose_fix or trie_propose_fixes_batch with file/goal/violation from results.",
|
|
2678
|
+
inputSchema: {
|
|
2679
|
+
type: "object",
|
|
2680
|
+
properties: {
|
|
2681
|
+
limit: { type: "number", description: "Max results (default 20)" },
|
|
2682
|
+
severity: { type: "string", enum: ["critical", "high", "warning", "info"], description: "Filter by severity" },
|
|
2683
|
+
file: { type: "string", description: "Filter by file path" },
|
|
2684
|
+
directory: { type: "string", description: "Working directory" }
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
},
|
|
2670
2688
|
{
|
|
2671
2689
|
name: "trie_query_ledger_blocks",
|
|
2672
2690
|
description: 'Query the ledger chain blocks \u2014 the tamper-evident chain of recorded issues. Use when user asks about "blocks", "ledger chain", "what issues in my blocks", "most frequent issues in blocks", etc. Returns block summary and aggregation by file, severity, and agent.',
|
|
@@ -3080,6 +3098,21 @@ var ResourceManager = class {
|
|
|
3080
3098
|
}
|
|
3081
3099
|
} catch {
|
|
3082
3100
|
}
|
|
3101
|
+
try {
|
|
3102
|
+
const storage = getStorage(workDir);
|
|
3103
|
+
await storage.initialize();
|
|
3104
|
+
const nudges = await storage.queryNudges({ resolved: false, limit: 5 });
|
|
3105
|
+
if (nudges.length > 0) {
|
|
3106
|
+
summary.push("## Recent Goal Violations (Nudges)", "");
|
|
3107
|
+
summary.push("> Use `trie_get_nudges` for full list, then `trie_propose_fix` or `trie_propose_fixes_batch` to automate fixes.", "");
|
|
3108
|
+
nudges.forEach((n) => {
|
|
3109
|
+
const file = n.file || "unknown";
|
|
3110
|
+
summary.push(`- [${n.severity}] ${n.message.slice(0, 60)}${n.message.length > 60 ? "..." : ""} (\`${file.split("/").pop()}\`)`);
|
|
3111
|
+
});
|
|
3112
|
+
summary.push("");
|
|
3113
|
+
}
|
|
3114
|
+
} catch {
|
|
3115
|
+
}
|
|
3083
3116
|
try {
|
|
3084
3117
|
const patterns = await findCrossProjectPatterns(2);
|
|
3085
3118
|
if (patterns.length > 0) {
|
|
@@ -3104,7 +3137,8 @@ var ResourceManager = class {
|
|
|
3104
3137
|
summary.push("| Tool | Purpose |");
|
|
3105
3138
|
summary.push("|------|---------|");
|
|
3106
3139
|
summary.push("| `trie_fix` | Apply high-confidence fixes |");
|
|
3107
|
-
summary.push("| `
|
|
3140
|
+
summary.push("| `trie_get_nudges` | Get goal violations for automation |");
|
|
3141
|
+
summary.push("| `trie_propose_fix` / `trie_propose_fixes_batch` | Fix nudges from trie_get_nudges |");
|
|
3108
3142
|
summary.push("| `trie_memory` | Search issue history |");
|
|
3109
3143
|
summary.push("| `trie_init` | Initialize bootstrap files |");
|
|
3110
3144
|
summary.push("");
|
|
@@ -3994,4 +4028,4 @@ export {
|
|
|
3994
4028
|
MCPServer,
|
|
3995
4029
|
startServer
|
|
3996
4030
|
};
|
|
3997
|
-
//# sourceMappingURL=chunk-
|
|
4031
|
+
//# sourceMappingURL=chunk-GL62CXU4.js.map
|