@triedotdev/mcp 1.0.161 → 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.
@@ -12,10 +12,10 @@ import {
12
12
  SlackIntegration,
13
13
  findCrossProjectPatterns,
14
14
  recordToGlobalMemory
15
- } from "./chunk-OWYOC5DX.js";
15
+ } from "./chunk-HFVPHQL3.js";
16
16
  import {
17
17
  getStorage
18
- } from "./chunk-XMW2WTZB.js";
18
+ } from "./chunk-LLDZDU2Y.js";
19
19
  import {
20
20
  ContextGraph
21
21
  } from "./chunk-VUL52BQL.js";
@@ -1587,7 +1587,7 @@ var TrieAgent = class {
1587
1587
  } catch {
1588
1588
  }
1589
1589
  try {
1590
- const { getStorage: getStorage2 } = await import("./tiered-storage-THHKROJF.js");
1590
+ const { getStorage: getStorage2 } = await import("./tiered-storage-FHHAJR4P.js");
1591
1591
  const storage = getStorage2(this.projectPath);
1592
1592
  const resolvedIssueIds = [...this.lastIssueHashes].filter((h) => !currentHashes.has(h)).map((h) => {
1593
1593
  return h.split(":").join("-");
@@ -1824,4 +1824,4 @@ export {
1824
1824
  TrieAgent,
1825
1825
  getTrieAgent
1826
1826
  };
1827
- //# sourceMappingURL=chunk-ZGVPZZFM.js.map
1827
+ //# sourceMappingURL=chunk-ERMLZJTK.js.map
@@ -32,16 +32,18 @@ import {
32
32
  TrieGetBlockersTool,
33
33
  TrieGetDecisionsTool,
34
34
  TrieGetGovernanceTool,
35
+ TrieGetNudgesTool,
35
36
  TrieGetRelatedDecisionsTool,
36
37
  TrieGetRelatedGovernanceTool,
37
38
  TriePipelineTool,
38
39
  TrieQueryContextTool,
40
+ TrieQueryLedgerBlocksTool,
39
41
  TrieTellTool,
40
42
  TrieWatchTool,
41
43
  getPrompt,
42
44
  getSystemPrompt,
43
45
  handleCheckpointTool
44
- } from "./chunk-MPHYM7M6.js";
46
+ } from "./chunk-XSKLOBD2.js";
45
47
  import {
46
48
  CodebaseIndex
47
49
  } from "./chunk-Q5EKA5YA.js";
@@ -59,7 +61,10 @@ import {
59
61
  getGlobalMemoryStats,
60
62
  listTrackedProjects,
61
63
  searchGlobalPatterns
62
- } from "./chunk-OWYOC5DX.js";
64
+ } from "./chunk-HFVPHQL3.js";
65
+ import {
66
+ getStorage
67
+ } from "./chunk-LLDZDU2Y.js";
63
68
  import {
64
69
  ContextGraph
65
70
  } from "./chunk-VUL52BQL.js";
@@ -2137,6 +2142,8 @@ var ToolRegistry = class {
2137
2142
  this.tools.set("get_governance", new TrieGetGovernanceTool());
2138
2143
  this.tools.set("get_decisions", new TrieGetDecisionsTool());
2139
2144
  this.tools.set("get_blockers", new TrieGetBlockersTool());
2145
+ this.tools.set("get_nudges", new TrieGetNudgesTool());
2146
+ this.tools.set("query_ledger_blocks", new TrieQueryLedgerBlocksTool());
2140
2147
  this.tools.set("get_related_governance", new TrieGetRelatedGovernanceTool());
2141
2148
  this.tools.set("get_related_decisions", new TrieGetRelatedDecisionsTool());
2142
2149
  this.tools.set("query_context", new TrieQueryContextTool());
@@ -2655,7 +2662,7 @@ var ToolRegistry = class {
2655
2662
  },
2656
2663
  {
2657
2664
  name: "trie_get_blockers",
2658
- description: "Get active blockers from governance ledger. Returns only unresolved blockers to avoid noise.",
2665
+ description: 'Get active blockers from governance ledger. Returns only unresolved blockers. NOT the same as "blocks" (ledger chain) \u2014 use trie_query_ledger_blocks for that.',
2659
2666
  inputSchema: {
2660
2667
  type: "object",
2661
2668
  properties: {
@@ -2665,6 +2672,31 @@ var ToolRegistry = class {
2665
2672
  }
2666
2673
  }
2667
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
+ },
2688
+ {
2689
+ name: "trie_query_ledger_blocks",
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.',
2691
+ inputSchema: {
2692
+ type: "object",
2693
+ properties: {
2694
+ analysis: { type: "string", enum: ["summary", "issues", "all"], description: "What to analyze: summary, issues (default), or all" },
2695
+ limit: { type: "number", description: "Max blocks to include (default 50)" },
2696
+ directory: { type: "string", description: "Working directory" }
2697
+ }
2698
+ }
2699
+ },
2668
2700
  {
2669
2701
  name: "trie_get_related_governance",
2670
2702
  description: "Find governance records related to a specific governance record, file, or topic. Targeted context retrieval.",
@@ -3066,6 +3098,21 @@ var ResourceManager = class {
3066
3098
  }
3067
3099
  } catch {
3068
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
+ }
3069
3116
  try {
3070
3117
  const patterns = await findCrossProjectPatterns(2);
3071
3118
  if (patterns.length > 0) {
@@ -3090,7 +3137,8 @@ var ResourceManager = class {
3090
3137
  summary.push("| Tool | Purpose |");
3091
3138
  summary.push("|------|---------|");
3092
3139
  summary.push("| `trie_fix` | Apply high-confidence fixes |");
3093
- summary.push("| `trie_fix` | Generate fix recommendations |");
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 |");
3094
3142
  summary.push("| `trie_memory` | Search issue history |");
3095
3143
  summary.push("| `trie_init` | Initialize bootstrap files |");
3096
3144
  summary.push("");
@@ -3980,4 +4028,4 @@ export {
3980
4028
  MCPServer,
3981
4029
  startServer
3982
4030
  };
3983
- //# sourceMappingURL=chunk-XBXII4FC.js.map
4031
+ //# sourceMappingURL=chunk-GL62CXU4.js.map