@triedotdev/mcp 1.0.123 → 1.0.124
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-QIS2VDJL.js → chunk-7J4ZOOAD.js} +50 -13
- package/dist/{chunk-QIS2VDJL.js.map → chunk-7J4ZOOAD.js.map} +1 -1
- package/dist/{chunk-F4ZIAHTZ.js → chunk-A4EDTN6R.js} +2 -2
- package/dist/{chunk-B46FDUKR.js → chunk-D2CGMX7K.js} +4 -4
- package/dist/{chunk-CKT2A33R.js → chunk-W2DEBKZ2.js} +2 -2
- package/dist/{chunk-WRGSH5RT.js → chunk-WMI44VIC.js} +2 -2
- package/dist/{chunk-WRGSH5RT.js.map → chunk-WMI44VIC.js.map} +1 -1
- package/dist/cli/main.js +2 -2
- package/dist/cli/yolo-daemon.js +5 -5
- package/dist/{client-PMKE26IV.js → client-EWP4SIG3.js} +2 -2
- package/dist/{goal-validator-XYA364W3.js → goal-validator-CKFKJ46J.js} +2 -2
- package/dist/{guardian-agent-PTC6G37Q.js → guardian-agent-5QVLDPKB.js} +5 -5
- package/dist/{hypothesis-WWDONGPU.js → hypothesis-HFYZNIMZ.js} +2 -2
- package/dist/index.js +147 -27
- package/dist/index.js.map +1 -1
- package/dist/ui/chat.html +821 -0
- package/dist/ui/goals.html +724 -0
- package/dist/ui/hypotheses.html +768 -0
- package/dist/ui/ledger.html +711 -0
- package/dist/ui/nudges.html +752 -0
- package/package.json +1 -1
- package/dist/ui/memory-viewer.html +0 -773
- package/dist/ui/pr-review.html +0 -742
- package/dist/ui/scan-dashboard.html +0 -741
- package/dist/ui/visual-qa.html +0 -762
- /package/dist/{chunk-F4ZIAHTZ.js.map → chunk-A4EDTN6R.js.map} +0 -0
- /package/dist/{chunk-B46FDUKR.js.map → chunk-D2CGMX7K.js.map} +0 -0
- /package/dist/{chunk-CKT2A33R.js.map → chunk-W2DEBKZ2.js.map} +0 -0
- /package/dist/{client-PMKE26IV.js.map → client-EWP4SIG3.js.map} +0 -0
- /package/dist/{goal-validator-XYA364W3.js.map → goal-validator-CKFKJ46J.js.map} +0 -0
- /package/dist/{guardian-agent-PTC6G37Q.js.map → guardian-agent-5QVLDPKB.js.map} +0 -0
- /package/dist/{hypothesis-WWDONGPU.js.map → hypothesis-HFYZNIMZ.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getGuardian
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D2CGMX7K.js";
|
|
4
4
|
import {
|
|
5
5
|
getChatStore
|
|
6
6
|
} from "./chunk-DFPVUMVE.js";
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
TieredStorage,
|
|
19
19
|
findCrossProjectPatterns,
|
|
20
20
|
getStorage
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-A4EDTN6R.js";
|
|
22
22
|
import {
|
|
23
23
|
getKeyFromKeychain,
|
|
24
24
|
isAIAvailable,
|
|
25
25
|
runAIWithTools,
|
|
26
26
|
setAPIKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WMI44VIC.js";
|
|
28
28
|
import {
|
|
29
29
|
getGuardianState
|
|
30
30
|
} from "./chunk-UHMMANC2.js";
|
|
@@ -537,8 +537,21 @@ function dashboardReducer(state, action) {
|
|
|
537
537
|
});
|
|
538
538
|
let s = { ...state, agentInsights: merged };
|
|
539
539
|
const newAlerts = newOnes.filter((i) => i.type === "warning" && !i.dismissed).length;
|
|
540
|
+
console.debug("[State] ADD_INSIGHTS nudge count logic:", {
|
|
541
|
+
newOnesCount: newOnes.length,
|
|
542
|
+
newWarnings: newOnes.filter((i) => i.type === "warning").length,
|
|
543
|
+
newAlertsFiltered: newAlerts,
|
|
544
|
+
currentUnreadCount: state.unreadNudgesCount,
|
|
545
|
+
willIncrement: newAlerts > 0,
|
|
546
|
+
newInsightTypes: newOnes.map((i) => ({ type: i.type, dismissed: i.dismissed }))
|
|
547
|
+
});
|
|
540
548
|
if (newAlerts > 0) {
|
|
541
549
|
s.unreadNudgesCount = state.unreadNudgesCount + newAlerts;
|
|
550
|
+
console.debug("[State] Incremented unread nudges:", {
|
|
551
|
+
from: state.unreadNudgesCount,
|
|
552
|
+
to: s.unreadNudgesCount,
|
|
553
|
+
increment: newAlerts
|
|
554
|
+
});
|
|
542
555
|
}
|
|
543
556
|
if (newOnes.length > 0) {
|
|
544
557
|
s = addActivity(s, `Trie Agent: ${newOnes.length} new insight${newOnes.length > 1 ? "s" : ""}`);
|
|
@@ -992,12 +1005,12 @@ function Footer() {
|
|
|
992
1005
|
const isCurrent = v === view;
|
|
993
1006
|
const isLast = idx === TAB_VIEWS.length - 1;
|
|
994
1007
|
return /* @__PURE__ */ jsxs2(React2.Fragment, { children: [
|
|
995
|
-
isCurrent ? /* @__PURE__ */ jsx3(Text2, { color: "
|
|
1008
|
+
isCurrent ? /* @__PURE__ */ jsx3(Text2, { color: "white", bold: true, children: labels[v] }) : isAgent && hasUnreadNudges ? /* @__PURE__ */ jsxs2(Text2, { color: "yellow", bold: true, children: [
|
|
996
1009
|
labels[v],
|
|
997
1010
|
" (",
|
|
998
1011
|
unreadNudgesCount,
|
|
999
1012
|
")"
|
|
1000
|
-
] }) : /* @__PURE__ */ jsx3(Text2, {
|
|
1013
|
+
] }) : /* @__PURE__ */ jsx3(Text2, { dimColor: true, children: labels[v] }),
|
|
1001
1014
|
!isLast && /* @__PURE__ */ jsx3(Text2, { dimColor: true, children: " \xB7 " })
|
|
1002
1015
|
] }, v);
|
|
1003
1016
|
}) }),
|
|
@@ -1872,7 +1885,7 @@ function GoalsView() {
|
|
|
1872
1885
|
if (!goal) return;
|
|
1873
1886
|
dispatch({ type: "ADD_ACTIVITY", message: `Checking goal: ${goal.description.slice(0, 30)}...` });
|
|
1874
1887
|
dispatch({ type: "SHOW_NOTIFICATION", message: `Scanning files for violations...`, severity: "info", autoHideMs: 3e3 });
|
|
1875
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-
|
|
1888
|
+
const { checkFilesForGoalViolations } = await import("./goal-validator-CKFKJ46J.js");
|
|
1876
1889
|
const violations = await checkFilesForGoalViolations([goal], workDir);
|
|
1877
1890
|
if (violations.length === 0) {
|
|
1878
1891
|
dispatch({ type: "SHOW_NOTIFICATION", message: `\u2713 No violations found for: ${goal.description.slice(0, 40)}`, severity: "info", autoHideMs: 5e3 });
|
|
@@ -2069,7 +2082,7 @@ function HypothesesView() {
|
|
|
2069
2082
|
if (!hypo) return;
|
|
2070
2083
|
dispatch({ type: "ADD_ACTIVITY", message: `Testing hypothesis: ${hypo.statement.slice(0, 30)}...` });
|
|
2071
2084
|
dispatch({ type: "SHOW_NOTIFICATION", message: `Gathering evidence for hypothesis...`, severity: "info", autoHideMs: 3e3 });
|
|
2072
|
-
const { gatherEvidenceForHypothesis } = await import("./hypothesis-
|
|
2085
|
+
const { gatherEvidenceForHypothesis } = await import("./hypothesis-HFYZNIMZ.js");
|
|
2073
2086
|
const evidence = await gatherEvidenceForHypothesis(hypoId, workDir);
|
|
2074
2087
|
if (evidence.length === 0) {
|
|
2075
2088
|
dispatch({ type: "SHOW_NOTIFICATION", message: `No evidence found for: ${hypo.statement.slice(0, 40)}`, severity: "info", autoHideMs: 5e3 });
|
|
@@ -5229,7 +5242,7 @@ ${truncated}`;
|
|
|
5229
5242
|
case "trie_scan_for_goal_violations": {
|
|
5230
5243
|
const goalId = input.goalId ? String(input.goalId).trim() : void 0;
|
|
5231
5244
|
try {
|
|
5232
|
-
const { checkFilesForGoalViolations, getActiveGoals } = await import("./goal-validator-
|
|
5245
|
+
const { checkFilesForGoalViolations, getActiveGoals } = await import("./goal-validator-CKFKJ46J.js");
|
|
5233
5246
|
const agentState = getGuardianState(directory);
|
|
5234
5247
|
await agentState.load();
|
|
5235
5248
|
const allGoals = await getActiveGoals(directory);
|
|
@@ -5850,7 +5863,7 @@ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
|
5850
5863
|
var MAIN_VIEWS = ["overview", "memory", "goals", "hypotheses", "agent", "chat"];
|
|
5851
5864
|
async function applyGoalFix(fix, dispatch) {
|
|
5852
5865
|
try {
|
|
5853
|
-
const { runAIAnalysis, isAIAvailable: isAIAvailable2 } = await import("./client-
|
|
5866
|
+
const { runAIAnalysis, isAIAvailable: isAIAvailable2 } = await import("./client-EWP4SIG3.js");
|
|
5854
5867
|
if (!isAIAvailable2()) {
|
|
5855
5868
|
dispatch({ type: "DISMISS_FIX", id: fix.id });
|
|
5856
5869
|
getOutputManager().nudge("AI not available for fix", "warning");
|
|
@@ -5885,7 +5898,7 @@ ${content}
|
|
|
5885
5898
|
fixedContent = fixedContent.replace(/^```\w*\n?/, "").replace(/\n?```$/, "");
|
|
5886
5899
|
}
|
|
5887
5900
|
await writeFile(fullPath, fixedContent, "utf-8");
|
|
5888
|
-
const { recordGoalViolationFixed, getActiveGoals } = await import("./goal-validator-
|
|
5901
|
+
const { recordGoalViolationFixed, getActiveGoals } = await import("./goal-validator-CKFKJ46J.js");
|
|
5889
5902
|
const goals = await getActiveGoals(projectPath);
|
|
5890
5903
|
const matchedGoal = goals.find((g) => g.description === fix.goalDescription);
|
|
5891
5904
|
if (matchedGoal) {
|
|
@@ -6002,23 +6015,47 @@ function DashboardApp({ onReady }) {
|
|
|
6002
6015
|
dispatchRef.current({ type: "STREAM_UPDATE", update: { type: "raw_log", data: { time, level, message }, timestamp: Date.now() } });
|
|
6003
6016
|
},
|
|
6004
6017
|
onNudge: (nudge) => {
|
|
6018
|
+
console.debug("[Dashboard] Nudge received:", {
|
|
6019
|
+
message: nudge.message.slice(0, 50) + "...",
|
|
6020
|
+
severity: nudge.severity,
|
|
6021
|
+
file: nudge.file,
|
|
6022
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
6023
|
+
});
|
|
6005
6024
|
const action = { type: "SHOW_NOTIFICATION", message: nudge.message, severity: nudge.severity };
|
|
6006
6025
|
if (nudge.file !== void 0) action.file = nudge.file;
|
|
6007
6026
|
if (nudge.autoHideMs !== void 0) action.autoHideMs = nudge.autoHideMs;
|
|
6008
6027
|
dispatchRef.current(action);
|
|
6009
6028
|
if (nudge.severity === "critical" || nudge.severity === "warning") {
|
|
6029
|
+
const isGoalViolation = nudge.message.includes('Goal "') || nudge.message.includes("violated");
|
|
6010
6030
|
const insight = {
|
|
6011
6031
|
id: `nudge-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
|
|
6012
6032
|
type: "warning",
|
|
6013
|
-
category: "quality",
|
|
6033
|
+
category: isGoalViolation ? "quality" : "general",
|
|
6014
6034
|
message: nudge.message,
|
|
6015
|
-
priority: nudge.severity === "critical" ? 9 : 6,
|
|
6035
|
+
priority: isGoalViolation ? 8 : nudge.severity === "critical" ? 9 : 6,
|
|
6036
|
+
// Goal violations get priority 8
|
|
6016
6037
|
timestamp: Date.now(),
|
|
6017
6038
|
suggestedAction: nudge.file ? `Review ${nudge.file}` : void 0,
|
|
6018
6039
|
relatedIssues: [],
|
|
6019
6040
|
dismissed: false
|
|
6020
6041
|
};
|
|
6042
|
+
console.debug("[Dashboard] Creating insight from nudge:", {
|
|
6043
|
+
id: insight.id,
|
|
6044
|
+
type: insight.type,
|
|
6045
|
+
priority: insight.priority,
|
|
6046
|
+
category: insight.category,
|
|
6047
|
+
isGoalViolation,
|
|
6048
|
+
severity: nudge.severity
|
|
6049
|
+
});
|
|
6021
6050
|
dispatchRef.current({ type: "ADD_INSIGHTS", insights: [insight] });
|
|
6051
|
+
if (isGoalViolation) {
|
|
6052
|
+
console.debug("[Dashboard] Goal violation - extending notification display");
|
|
6053
|
+
const extendedAction = { ...action };
|
|
6054
|
+
if (!extendedAction.autoHideMs || extendedAction.autoHideMs < 15e3) {
|
|
6055
|
+
extendedAction.autoHideMs = 15e3;
|
|
6056
|
+
}
|
|
6057
|
+
dispatchRef.current(extendedAction);
|
|
6058
|
+
}
|
|
6022
6059
|
}
|
|
6023
6060
|
}
|
|
6024
6061
|
});
|
|
@@ -6223,4 +6260,4 @@ export {
|
|
|
6223
6260
|
handleCheckpointTool,
|
|
6224
6261
|
InteractiveDashboard
|
|
6225
6262
|
};
|
|
6226
|
-
//# sourceMappingURL=chunk-
|
|
6263
|
+
//# sourceMappingURL=chunk-7J4ZOOAD.js.map
|