@triedotdev/mcp 1.0.107 → 1.0.109
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-JT2OOIQX.js → chunk-FLBK5ILJ.js} +2 -2
- package/dist/{chunk-3YDNSKKP.js → chunk-G6EC4JNL.js} +65 -48
- package/dist/chunk-G6EC4JNL.js.map +1 -0
- package/dist/{chunk-S2WVHIFG.js → chunk-OTTR5JX4.js} +2 -2
- package/dist/chunk-OTTR5JX4.js.map +1 -0
- package/dist/{chunk-C5NK7EGK.js → chunk-SUHYYM2J.js} +2 -2
- package/dist/cli/main.js +2 -2
- package/dist/cli/yolo-daemon.js +3 -3
- package/dist/{guardian-agent-DX4ZQEZ7.js → guardian-agent-4UJN5QGX.js} +3 -3
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-3YDNSKKP.js.map +0 -1
- package/dist/chunk-S2WVHIFG.js.map +0 -1
- /package/dist/{chunk-JT2OOIQX.js.map → chunk-FLBK5ILJ.js.map} +0 -0
- /package/dist/{chunk-C5NK7EGK.js.map → chunk-SUHYYM2J.js.map} +0 -0
- /package/dist/{guardian-agent-DX4ZQEZ7.js.map → guardian-agent-4UJN5QGX.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContextGraph
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OTTR5JX4.js";
|
|
4
4
|
import {
|
|
5
5
|
scanForVibeCodeIssues
|
|
6
6
|
} from "./chunk-IXO4G4D3.js";
|
|
@@ -3726,4 +3726,4 @@ export {
|
|
|
3726
3726
|
loadContextState,
|
|
3727
3727
|
getContextForAI
|
|
3728
3728
|
};
|
|
3729
|
-
//# sourceMappingURL=chunk-
|
|
3729
|
+
//# sourceMappingURL=chunk-FLBK5ILJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGuardian
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SUHYYM2J.js";
|
|
4
4
|
import {
|
|
5
5
|
ContextGraph,
|
|
6
6
|
TieredStorage,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isAIAvailable,
|
|
10
10
|
runAIAnalysis,
|
|
11
11
|
setAPIKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OTTR5JX4.js";
|
|
13
13
|
import {
|
|
14
14
|
getGuardianState
|
|
15
15
|
} from "./chunk-6JPPYG7F.js";
|
|
@@ -1349,19 +1349,19 @@ function Footer() {
|
|
|
1349
1349
|
} else if (view === "hypotheses" && state.hypothesesPanel.inputMode === "add") {
|
|
1350
1350
|
contextHints = "enter save \xB7 esc cancel";
|
|
1351
1351
|
} else if (view === "goals") {
|
|
1352
|
-
contextHints = "j/k nav \xB7 a add \xB7 enter complete \xB7 d delete";
|
|
1352
|
+
contextHints = "tab views \xB7 j/k nav \xB7 a add \xB7 enter complete \xB7 d delete";
|
|
1353
1353
|
} else if (view === "hypotheses") {
|
|
1354
|
-
contextHints = "j/k nav \xB7 a add \xB7 v validate \xB7 x invalidate";
|
|
1354
|
+
contextHints = "tab views \xB7 j/k nav \xB7 a add \xB7 v validate \xB7 x invalidate";
|
|
1355
1355
|
} else if (view === "agent") {
|
|
1356
|
-
contextHints = "j/k nav \xB7 enter expand \xB7 d dismiss";
|
|
1356
|
+
contextHints = "tab views \xB7 j/k nav \xB7 enter expand \xB7 d dismiss";
|
|
1357
1357
|
} else if (view === "memory") {
|
|
1358
|
-
contextHints = "j/k nav \xB7 enter
|
|
1358
|
+
contextHints = "tab views \xB7 j/k nav \xB7 enter toggle section";
|
|
1359
1359
|
} else if (view === "chat") {
|
|
1360
|
-
contextHints = "type to ask \xB7 enter send \xB7 esc clear";
|
|
1360
|
+
contextHints = "tab views \xB7 type to ask \xB7 enter send \xB7 esc clear";
|
|
1361
1361
|
} else if (view === "rawlog") {
|
|
1362
|
-
contextHints = "n/p pages \xB7 b back";
|
|
1362
|
+
contextHints = "tab views \xB7 n/p pages \xB7 b back";
|
|
1363
1363
|
} else {
|
|
1364
|
-
contextHints = "n/p pages \xB7
|
|
1364
|
+
contextHints = "tab views \xB7 n/p pages \xB7 s settings";
|
|
1365
1365
|
}
|
|
1366
1366
|
return /* @__PURE__ */ jsxs2(Box2, { flexDirection: "column", paddingX: 1, children: [
|
|
1367
1367
|
/* @__PURE__ */ jsxs2(Box2, { justifyContent: "space-between", children: [
|
|
@@ -1745,9 +1745,11 @@ function AgentView() {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
if (alertCount === 0 && decCount === 0 && patCount === 0) {
|
|
1747
1747
|
return /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", paddingX: 1, children: [
|
|
1748
|
-
/* @__PURE__ */
|
|
1749
|
-
|
|
1750
|
-
|
|
1748
|
+
/* @__PURE__ */ jsxs6(Text6, { children: [
|
|
1749
|
+
/* @__PURE__ */ jsx7(Text6, { bold: true, children: "Trie" }),
|
|
1750
|
+
" ",
|
|
1751
|
+
/* @__PURE__ */ jsx7(Text6, { dimColor: true, children: "Proactive code guardian" })
|
|
1752
|
+
] }),
|
|
1751
1753
|
/* @__PURE__ */ jsx7(Text6, { children: " " }),
|
|
1752
1754
|
/* @__PURE__ */ jsxs6(Text6, { children: [
|
|
1753
1755
|
" ",
|
|
@@ -2606,34 +2608,41 @@ function ChatView() {
|
|
|
2606
2608
|
const workDir = getWorkingDirectory(void 0, true);
|
|
2607
2609
|
const storage = new TieredStorage(workDir);
|
|
2608
2610
|
const graph = new ContextGraph(workDir);
|
|
2609
|
-
const [decisions, blockers, snap] = await Promise.all([
|
|
2610
|
-
storage.queryDecisions({ limit: 10 }),
|
|
2611
|
-
storage.queryBlockers({ limit: 5 }),
|
|
2612
|
-
graph.getSnapshot()
|
|
2613
|
-
]);
|
|
2614
2611
|
const contextParts = [];
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
).join("\n"));
|
|
2612
|
+
try {
|
|
2613
|
+
const decisions = await storage.queryDecisions({ limit: 10 });
|
|
2614
|
+
if (decisions.length > 0) {
|
|
2615
|
+
contextParts.push("Recent decisions:\n" + decisions.map(
|
|
2616
|
+
(d) => `- ${d.decision} (${d.when}${d.hash ? `, hash: ${d.hash.slice(0, 8)}` : ""})`
|
|
2617
|
+
).join("\n"));
|
|
2618
|
+
}
|
|
2619
|
+
} catch {
|
|
2624
2620
|
}
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2621
|
+
try {
|
|
2622
|
+
const blockers = await storage.queryBlockers({ limit: 5 });
|
|
2623
|
+
if (blockers.length > 0) {
|
|
2624
|
+
contextParts.push("Active blockers:\n" + blockers.map(
|
|
2625
|
+
(b) => `- ${b.blocker} [${b.impact}]`
|
|
2626
|
+
).join("\n"));
|
|
2627
|
+
}
|
|
2628
|
+
} catch {
|
|
2631
2629
|
}
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2630
|
+
try {
|
|
2631
|
+
const snap = await graph.getSnapshot();
|
|
2632
|
+
const fileNodes = snap.nodes.filter((n) => n.type === "file");
|
|
2633
|
+
const riskFiles = fileNodes.filter((n) => n.data && "riskLevel" in n.data && (n.data.riskLevel === "critical" || n.data.riskLevel === "high")).slice(0, 10);
|
|
2634
|
+
if (riskFiles.length > 0) {
|
|
2635
|
+
contextParts.push("High-risk files:\n" + riskFiles.map(
|
|
2636
|
+
(n) => `- ${n.data.path} (${n.data.riskLevel})`
|
|
2637
|
+
).join("\n"));
|
|
2638
|
+
}
|
|
2639
|
+
const patternNodes = snap.nodes.filter((n) => n.type === "pattern").slice(0, 5);
|
|
2640
|
+
if (patternNodes.length > 0) {
|
|
2641
|
+
contextParts.push("Learned patterns:\n" + patternNodes.map(
|
|
2642
|
+
(n) => `- ${n.data.description} (${Math.round(n.data.confidence * 100)}% confidence)`
|
|
2643
|
+
).join("\n"));
|
|
2644
|
+
}
|
|
2645
|
+
} catch {
|
|
2637
2646
|
}
|
|
2638
2647
|
const contextBlock = contextParts.length > 0 ? contextParts.join("\n\n") : "No context data available yet.";
|
|
2639
2648
|
const result = await runAIAnalysis({
|
|
@@ -2670,20 +2679,28 @@ ${contextBlock}`,
|
|
|
2670
2679
|
});
|
|
2671
2680
|
if (!isAIAvailable()) {
|
|
2672
2681
|
return /* @__PURE__ */ jsxs11(Box11, { flexDirection: "column", paddingX: 1, children: [
|
|
2673
|
-
/* @__PURE__ */
|
|
2674
|
-
|
|
2675
|
-
|
|
2682
|
+
/* @__PURE__ */ jsxs11(Text11, { children: [
|
|
2683
|
+
/* @__PURE__ */ jsx12(Text11, { bold: true, children: "Chat" }),
|
|
2684
|
+
" ",
|
|
2685
|
+
/* @__PURE__ */ jsx12(Text11, { dimColor: true, children: "Ask Trie anything" })
|
|
2686
|
+
] }),
|
|
2676
2687
|
/* @__PURE__ */ jsx12(Text11, { children: " " }),
|
|
2677
2688
|
/* @__PURE__ */ jsx12(Text11, { dimColor: true, children: " AI is not available." }),
|
|
2678
|
-
/* @__PURE__ */ jsxs11(Text11, {
|
|
2679
|
-
"
|
|
2680
|
-
/* @__PURE__ */ jsx12(Text11, {
|
|
2681
|
-
"
|
|
2689
|
+
/* @__PURE__ */ jsxs11(Text11, { children: [
|
|
2690
|
+
" ",
|
|
2691
|
+
/* @__PURE__ */ jsx12(Text11, { dimColor: true, children: "Press" }),
|
|
2692
|
+
" ",
|
|
2693
|
+
/* @__PURE__ */ jsx12(Text11, { bold: true, children: "s" }),
|
|
2694
|
+
" ",
|
|
2695
|
+
/* @__PURE__ */ jsx12(Text11, { dimColor: true, children: "to open settings and add your Anthropic API key," })
|
|
2682
2696
|
] }),
|
|
2683
|
-
/* @__PURE__ */ jsxs11(Text11, {
|
|
2684
|
-
"
|
|
2697
|
+
/* @__PURE__ */ jsxs11(Text11, { children: [
|
|
2698
|
+
" ",
|
|
2699
|
+
/* @__PURE__ */ jsx12(Text11, { dimColor: true, children: "or set" }),
|
|
2700
|
+
" ",
|
|
2685
2701
|
/* @__PURE__ */ jsx12(Text11, { bold: true, children: "ANTHROPIC_API_KEY" }),
|
|
2686
|
-
"
|
|
2702
|
+
" ",
|
|
2703
|
+
/* @__PURE__ */ jsx12(Text11, { dimColor: true, children: "in your environment." })
|
|
2687
2704
|
] })
|
|
2688
2705
|
] });
|
|
2689
2706
|
}
|
|
@@ -2995,4 +3012,4 @@ export {
|
|
|
2995
3012
|
getOutputManager,
|
|
2996
3013
|
InteractiveDashboard
|
|
2997
3014
|
};
|
|
2998
|
-
//# sourceMappingURL=chunk-
|
|
3015
|
+
//# sourceMappingURL=chunk-G6EC4JNL.js.map
|