@triedotdev/mcp 1.0.124 → 1.0.126
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 +11 -0
- package/dist/{chunk-7J4ZOOAD.js → chunk-KCVXTYHO.js} +152 -56
- package/dist/chunk-KCVXTYHO.js.map +1 -0
- package/dist/cli/yolo-daemon.js +1 -1
- package/dist/codebase-index-ECJYAEZJ.js +197 -0
- package/dist/codebase-index-ECJYAEZJ.js.map +1 -0
- package/dist/goal-validator-4RA64F37.js +259 -0
- package/dist/goal-validator-4RA64F37.js.map +1 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-7J4ZOOAD.js.map +0 -1
- package/dist/goal-validator-CKFKJ46J.js +0 -188
- package/dist/goal-validator-CKFKJ46J.js.map +0 -1
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getGuardianState
|
|
3
|
-
} from "./chunk-UHMMANC2.js";
|
|
4
|
-
import "./chunk-WS6OA7H6.js";
|
|
5
|
-
import "./chunk-43X6JBEM.js";
|
|
6
|
-
import "./chunk-45Y5TLQZ.js";
|
|
7
|
-
import "./chunk-APMV77PU.js";
|
|
8
|
-
import "./chunk-DGUM43GV.js";
|
|
9
|
-
|
|
10
|
-
// src/guardian/goal-validator.ts
|
|
11
|
-
async function getActiveGoals(projectPath) {
|
|
12
|
-
const guardianState = getGuardianState(projectPath);
|
|
13
|
-
await guardianState.load();
|
|
14
|
-
return guardianState.getAllGoals().filter((g) => g.status === "active");
|
|
15
|
-
}
|
|
16
|
-
async function recordGoalViolationCaught(goal, file, projectPath) {
|
|
17
|
-
const guardianState = getGuardianState(projectPath);
|
|
18
|
-
await guardianState.load();
|
|
19
|
-
const metadata = goal.metadata || {};
|
|
20
|
-
const caughtCount = (metadata.caughtCount || 0) + 1;
|
|
21
|
-
await guardianState.updateGoal(goal.id, {
|
|
22
|
-
metadata: {
|
|
23
|
-
...metadata,
|
|
24
|
-
caughtCount,
|
|
25
|
-
lastCaught: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26
|
-
lastCaughtFile: file
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
async function recordGoalViolationFixed(goal, file, projectPath) {
|
|
31
|
-
const guardianState = getGuardianState(projectPath);
|
|
32
|
-
await guardianState.load();
|
|
33
|
-
const metadata = goal.metadata || {};
|
|
34
|
-
const caughtCount = (metadata.caughtCount || 0) + 1;
|
|
35
|
-
const fixedCount = (metadata.fixedCount || 0) + 1;
|
|
36
|
-
await guardianState.updateGoal(goal.id, {
|
|
37
|
-
metadata: {
|
|
38
|
-
...metadata,
|
|
39
|
-
caughtCount,
|
|
40
|
-
fixedCount,
|
|
41
|
-
lastFixed: (/* @__PURE__ */ new Date()).toISOString(),
|
|
42
|
-
lastFixedFile: file
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
if (goal.type === "reduction") {
|
|
46
|
-
const newValue = Math.max(0, goal.currentValue - 1);
|
|
47
|
-
await guardianState.updateGoal(goal.id, {
|
|
48
|
-
currentValue: newValue
|
|
49
|
-
});
|
|
50
|
-
if (newValue <= goal.target) {
|
|
51
|
-
await guardianState.updateGoal(goal.id, {
|
|
52
|
-
status: "achieved",
|
|
53
|
-
achievedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
async function checkFilesForGoalViolations(goals, projectPath, filesToCheck) {
|
|
59
|
-
const { isAIAvailable, runAIAnalysis } = await import("./client-EWP4SIG3.js");
|
|
60
|
-
if (!isAIAvailable()) {
|
|
61
|
-
throw new Error("AI not available - ANTHROPIC_API_KEY not set");
|
|
62
|
-
}
|
|
63
|
-
let files = [];
|
|
64
|
-
if (filesToCheck && filesToCheck.length > 0) {
|
|
65
|
-
files = filesToCheck;
|
|
66
|
-
} else {
|
|
67
|
-
const { execSync } = await import("child_process");
|
|
68
|
-
const { glob } = await import("glob");
|
|
69
|
-
try {
|
|
70
|
-
const gitOutput = execSync(
|
|
71
|
-
"git diff --name-only HEAD && git ls-files --modified && git ls-files --others --exclude-standard",
|
|
72
|
-
{ cwd: projectPath, encoding: "utf-8" }
|
|
73
|
-
).trim();
|
|
74
|
-
if (gitOutput) {
|
|
75
|
-
const gitFiles = new Set(gitOutput.split("\n").filter(Boolean));
|
|
76
|
-
files = Array.from(gitFiles).map((f) => `${projectPath}/${f}`).filter((f) => {
|
|
77
|
-
return /\.(ts|tsx|js|jsx|py|go|rs|java|c|cpp|h|hpp|cs|rb|php)$/.test(f);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
} catch {
|
|
81
|
-
}
|
|
82
|
-
if (files.length === 0) {
|
|
83
|
-
const pattern = `${projectPath}/**/*.{ts,tsx,js,jsx,py,go,rs,java,c,cpp,h,hpp,cs,rb,php}`;
|
|
84
|
-
const allFiles = await glob(pattern, {
|
|
85
|
-
ignore: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/.git/**"],
|
|
86
|
-
nodir: true
|
|
87
|
-
});
|
|
88
|
-
const { stat } = await import("fs/promises");
|
|
89
|
-
const withStats = await Promise.all(
|
|
90
|
-
allFiles.map(async (f) => {
|
|
91
|
-
try {
|
|
92
|
-
const stats = await stat(f);
|
|
93
|
-
return { file: f, mtime: stats.mtime.getTime() };
|
|
94
|
-
} catch {
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
);
|
|
99
|
-
files = withStats.filter((f) => f !== null).sort((a, b) => b.mtime - a.mtime).slice(0, 30).map((f) => f.file);
|
|
100
|
-
}
|
|
101
|
-
files = files.slice(0, 20);
|
|
102
|
-
}
|
|
103
|
-
if (files.length === 0) {
|
|
104
|
-
throw new Error("No files found to check");
|
|
105
|
-
}
|
|
106
|
-
const { readFile } = await import("fs/promises");
|
|
107
|
-
const fileContents = await Promise.all(
|
|
108
|
-
files.map(async (filePath) => {
|
|
109
|
-
try {
|
|
110
|
-
const content = await readFile(filePath, "utf-8");
|
|
111
|
-
const relativePath = filePath.replace(projectPath + "/", "");
|
|
112
|
-
return {
|
|
113
|
-
path: relativePath,
|
|
114
|
-
content: content.slice(0, 5e3)
|
|
115
|
-
// Limit content size
|
|
116
|
-
};
|
|
117
|
-
} catch {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
})
|
|
121
|
-
);
|
|
122
|
-
const validFiles = fileContents.filter((f) => f !== null);
|
|
123
|
-
if (validFiles.length === 0) {
|
|
124
|
-
throw new Error("Could not read any files");
|
|
125
|
-
}
|
|
126
|
-
const filesBlock = validFiles.map((f) => `--- ${f.path} ---
|
|
127
|
-
${f.content}`).join("\n\n");
|
|
128
|
-
const goalsSection = `
|
|
129
|
-
USER-DEFINED GOALS (check EVERY file against ALL goals):
|
|
130
|
-
${goals.map((g, i) => ` ${i + 1}. "${g.description}"`).join("\n")}
|
|
131
|
-
|
|
132
|
-
This is a MANUAL CHECK requested by the user. Report ALL goal violations you find.
|
|
133
|
-
For emoji detection, look for Unicode emoji characters (U+1F300-U+1F9FF, U+2600-U+27BF, etc.).
|
|
134
|
-
`;
|
|
135
|
-
const result = await runAIAnalysis({
|
|
136
|
-
systemPrompt: `You are checking code for GOAL VIOLATIONS ONLY.
|
|
137
|
-
${goalsSection}
|
|
138
|
-
Reply ONLY with a JSON array. Each element must have:
|
|
139
|
-
- "file": relative file path
|
|
140
|
-
- "severity": "critical" | "major" | "minor"
|
|
141
|
-
- "description": 1-sentence description of the goal violation with specific examples
|
|
142
|
-
- "confidence": number 0-100, how confident you are this is a violation
|
|
143
|
-
- "isGoalViolation": true (always true for this scan)
|
|
144
|
-
- "goalIndex": 0-based index of the violated goal
|
|
145
|
-
|
|
146
|
-
Be thorough. If a goal says "no emojis" and you see ANY emoji character (\u{1F4CA}, \u{1F4AA}, \u{1F525}, \u2713, \u25CF, etc.), report it with the specific emoji found. If a goal says "no console.log" and you see console.log, report it.
|
|
147
|
-
|
|
148
|
-
IMPORTANT: Emojis include any Unicode emoji characters like \u{1F4CA}\u{1F4AA}\u{1F525}\u2713\u25CF\u25CB\u25BA\u25C4\u25B2\u25BC\u2600\u2601\u26A0 etc.
|
|
149
|
-
|
|
150
|
-
If no violations found, reply with: []
|
|
151
|
-
Output ONLY the JSON array, no markdown fences, no commentary.`,
|
|
152
|
-
userPrompt: `Check these ${validFiles.length} files for goal violations:
|
|
153
|
-
|
|
154
|
-
${filesBlock}`,
|
|
155
|
-
maxTokens: 4096,
|
|
156
|
-
temperature: 0.1
|
|
157
|
-
});
|
|
158
|
-
let issues = [];
|
|
159
|
-
try {
|
|
160
|
-
const cleaned = result.content.replace(/```json?\n?|\n?```/g, "").trim();
|
|
161
|
-
issues = JSON.parse(cleaned);
|
|
162
|
-
if (!Array.isArray(issues)) issues = [];
|
|
163
|
-
} catch {
|
|
164
|
-
throw new Error("Failed to parse AI response");
|
|
165
|
-
}
|
|
166
|
-
const violations = [];
|
|
167
|
-
for (const issue of issues) {
|
|
168
|
-
if (!issue.isGoalViolation || issue.confidence < 50) continue;
|
|
169
|
-
if (issue.goalIndex == null || issue.goalIndex < 0 || issue.goalIndex >= goals.length) continue;
|
|
170
|
-
const goal = goals[issue.goalIndex];
|
|
171
|
-
const severity = issue.severity === "critical" ? "critical" : "warning";
|
|
172
|
-
const message = `Goal "${goal.description}" violated in ${issue.file}: ${issue.description} [${issue.confidence}% confidence]`;
|
|
173
|
-
violations.push({
|
|
174
|
-
file: issue.file,
|
|
175
|
-
message,
|
|
176
|
-
severity
|
|
177
|
-
});
|
|
178
|
-
await recordGoalViolationCaught(goal, issue.file, projectPath);
|
|
179
|
-
}
|
|
180
|
-
return violations;
|
|
181
|
-
}
|
|
182
|
-
export {
|
|
183
|
-
checkFilesForGoalViolations,
|
|
184
|
-
getActiveGoals,
|
|
185
|
-
recordGoalViolationCaught,
|
|
186
|
-
recordGoalViolationFixed
|
|
187
|
-
};
|
|
188
|
-
//# sourceMappingURL=goal-validator-CKFKJ46J.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/guardian/goal-validator.ts"],"sourcesContent":["/**\n * Goal Validator - Helpers for goal tracking\n * \n * Goal detection is handled entirely by the AI watcher in watch.ts.\n * The AI (Anthropic) checks every changed file against user-defined goals,\n * using the Trie's priority scoring for cost control.\n * \n * This module provides:\n * - getActiveGoals: loads active goals for the AI prompt\n * - recordGoalViolationCaught: tracks when a violation is detected\n * - recordGoalViolationFixed: tracks when a violation is auto-fixed\n */\n\nimport type { Goal } from './guardian-state.js';\nimport { getGuardianState } from './guardian-state.js';\n\n/**\n * Get active goals for a project (used by the AI watcher)\n */\nexport async function getActiveGoals(projectPath: string): Promise<Goal[]> {\n const guardianState = getGuardianState(projectPath);\n await guardianState.load();\n return guardianState.getAllGoals().filter(g => g.status === 'active');\n}\n\nexport async function recordGoalViolationCaught(\n goal: Goal,\n file: string,\n projectPath: string\n): Promise<void> {\n const guardianState = getGuardianState(projectPath);\n await guardianState.load();\n \n const metadata = goal.metadata || {};\n const caughtCount = (metadata.caughtCount || 0) + 1;\n \n await guardianState.updateGoal(goal.id, {\n metadata: {\n ...metadata,\n caughtCount,\n lastCaught: new Date().toISOString(),\n lastCaughtFile: file,\n },\n });\n}\n\nexport async function recordGoalViolationFixed(\n goal: Goal,\n file: string,\n projectPath: string\n): Promise<void> {\n const guardianState = getGuardianState(projectPath);\n await guardianState.load();\n \n const metadata = goal.metadata || {};\n const caughtCount = (metadata.caughtCount || 0) + 1;\n const fixedCount = (metadata.fixedCount || 0) + 1;\n \n await guardianState.updateGoal(goal.id, {\n metadata: {\n ...metadata,\n caughtCount,\n fixedCount,\n lastFixed: new Date().toISOString(),\n lastFixedFile: file,\n },\n });\n \n if (goal.type === 'reduction') {\n const newValue = Math.max(0, goal.currentValue - 1);\n await guardianState.updateGoal(goal.id, {\n currentValue: newValue,\n });\n \n if (newValue <= goal.target) {\n await guardianState.updateGoal(goal.id, {\n status: 'achieved',\n achievedAt: new Date().toISOString(),\n });\n }\n }\n}\n\n/**\n * Manually check files against goals\n * Returns violations found\n */\nexport async function checkFilesForGoalViolations(\n goals: Goal[],\n projectPath: string,\n filesToCheck?: string[]\n): Promise<Array<{ file: string; message: string; severity: 'critical' | 'warning' | 'info' }>> {\n // Import AI client\n const { isAIAvailable, runAIAnalysis } = await import('../ai/client.js');\n \n if (!isAIAvailable()) {\n throw new Error('AI not available - ANTHROPIC_API_KEY not set');\n }\n \n // Get files to check\n let files: string[] = [];\n if (filesToCheck && filesToCheck.length > 0) {\n files = filesToCheck;\n } else {\n // Find files to check - prioritize modified files, but fall back to all files if none modified\n const { execSync } = await import('child_process');\n const { glob } = await import('glob');\n \n try {\n // Try git first\n const gitOutput = execSync(\n 'git diff --name-only HEAD && git ls-files --modified && git ls-files --others --exclude-standard',\n { cwd: projectPath, encoding: 'utf-8' }\n ).trim();\n \n if (gitOutput) {\n const gitFiles = new Set(gitOutput.split('\\n').filter(Boolean));\n files = Array.from(gitFiles)\n .map(f => `${projectPath}/${f}`)\n .filter(f => {\n // Filter to code files only\n return /\\.(ts|tsx|js|jsx|py|go|rs|java|c|cpp|h|hpp|cs|rb|php)$/.test(f);\n });\n }\n } catch {\n // Git command failed, ignore\n }\n \n // If no git files, scan recently modified files\n if (files.length === 0) {\n const pattern = `${projectPath}/**/*.{ts,tsx,js,jsx,py,go,rs,java,c,cpp,h,hpp,cs,rb,php}`;\n const allFiles = await glob(pattern, {\n ignore: ['**/node_modules/**', '**/dist/**', '**/build/**', '**/.git/**'],\n nodir: true,\n });\n \n // Sort by modification time, take most recent 30\n const { stat } = await import('fs/promises');\n const withStats = await Promise.all(\n allFiles.map(async (f) => {\n try {\n const stats = await stat(f);\n return { file: f, mtime: stats.mtime.getTime() };\n } catch {\n return null;\n }\n })\n );\n \n files = withStats\n .filter((f): f is { file: string; mtime: number } => f !== null)\n .sort((a, b) => b.mtime - a.mtime)\n .slice(0, 30)\n .map(f => f.file);\n }\n \n // Final limit\n files = files.slice(0, 20);\n }\n \n if (files.length === 0) {\n throw new Error('No files found to check');\n }\n \n // Read file contents\n const { readFile } = await import('fs/promises');\n const fileContents = await Promise.all(\n files.map(async (filePath) => {\n try {\n const content = await readFile(filePath, 'utf-8');\n const relativePath = filePath.replace(projectPath + '/', '');\n return {\n path: relativePath,\n content: content.slice(0, 5000), // Limit content size\n };\n } catch {\n return null;\n }\n })\n );\n \n const validFiles = fileContents.filter((f): f is { path: string; content: string } => f !== null);\n \n if (validFiles.length === 0) {\n throw new Error('Could not read any files');\n }\n \n // Build files block for AI\n const filesBlock = validFiles\n .map(f => `--- ${f.path} ---\\n${f.content}`)\n .join('\\n\\n');\n \n // Build goals section\n const goalsSection = `\nUSER-DEFINED GOALS (check EVERY file against ALL goals):\n${goals.map((g, i) => ` ${i + 1}. \"${g.description}\"`).join('\\n')}\n\nThis is a MANUAL CHECK requested by the user. Report ALL goal violations you find.\nFor emoji detection, look for Unicode emoji characters (U+1F300-U+1F9FF, U+2600-U+27BF, etc.).\n`;\n \n // Run AI analysis\n const result = await runAIAnalysis({\n systemPrompt: `You are checking code for GOAL VIOLATIONS ONLY.\n${goalsSection}\nReply ONLY with a JSON array. Each element must have:\n- \"file\": relative file path\n- \"severity\": \"critical\" | \"major\" | \"minor\"\n- \"description\": 1-sentence description of the goal violation with specific examples\n- \"confidence\": number 0-100, how confident you are this is a violation\n- \"isGoalViolation\": true (always true for this scan)\n- \"goalIndex\": 0-based index of the violated goal\n\nBe thorough. If a goal says \"no emojis\" and you see ANY emoji character (📊, 💪, 🔥, ✓, ●, etc.), report it with the specific emoji found. If a goal says \"no console.log\" and you see console.log, report it.\n\nIMPORTANT: Emojis include any Unicode emoji characters like 📊💪🔥✓●○►◄▲▼☀☁⚠ etc.\n\nIf no violations found, reply with: []\nOutput ONLY the JSON array, no markdown fences, no commentary.`,\n userPrompt: `Check these ${validFiles.length} files for goal violations:\\n\\n${filesBlock}`,\n maxTokens: 4096,\n temperature: 0.1,\n });\n \n // Parse response\n let issues: Array<{\n file: string;\n severity: 'critical' | 'major' | 'minor';\n description: string;\n confidence: number;\n isGoalViolation: boolean;\n goalIndex?: number;\n }> = [];\n \n try {\n const cleaned = result.content.replace(/```json?\\n?|\\n?```/g, '').trim();\n issues = JSON.parse(cleaned);\n if (!Array.isArray(issues)) issues = [];\n } catch {\n // Parse failed\n throw new Error('Failed to parse AI response');\n }\n \n // Convert to violation format and record\n const violations: Array<{ file: string; message: string; severity: 'critical' | 'warning' | 'info' }> = [];\n \n for (const issue of issues) {\n if (!issue.isGoalViolation || issue.confidence < 50) continue;\n if (issue.goalIndex == null || issue.goalIndex < 0 || issue.goalIndex >= goals.length) continue;\n \n const goal = goals[issue.goalIndex]!;\n const severity = issue.severity === 'critical' ? 'critical' : 'warning';\n const message = `Goal \"${goal.description}\" violated in ${issue.file}: ${issue.description} [${issue.confidence}% confidence]`;\n \n violations.push({\n file: issue.file,\n message,\n severity,\n });\n \n // Record violation\n await recordGoalViolationCaught(goal, issue.file, projectPath);\n }\n \n return violations;\n}\n"],"mappings":";;;;;;;;;;AAmBA,eAAsB,eAAe,aAAsC;AACzE,QAAM,gBAAgB,iBAAiB,WAAW;AAClD,QAAM,cAAc,KAAK;AACzB,SAAO,cAAc,YAAY,EAAE,OAAO,OAAK,EAAE,WAAW,QAAQ;AACtE;AAEA,eAAsB,0BACpB,MACA,MACA,aACe;AACf,QAAM,gBAAgB,iBAAiB,WAAW;AAClD,QAAM,cAAc,KAAK;AAEzB,QAAM,WAAW,KAAK,YAAY,CAAC;AACnC,QAAM,eAAe,SAAS,eAAe,KAAK;AAElD,QAAM,cAAc,WAAW,KAAK,IAAI;AAAA,IACtC,UAAU;AAAA,MACR,GAAG;AAAA,MACH;AAAA,MACA,aAAY,oBAAI,KAAK,GAAE,YAAY;AAAA,MACnC,gBAAgB;AAAA,IAClB;AAAA,EACF,CAAC;AACH;AAEA,eAAsB,yBACpB,MACA,MACA,aACe;AACf,QAAM,gBAAgB,iBAAiB,WAAW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