@triedotdev/mcp 1.0.65 → 1.0.66
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/{agent-smith-ILGLKYRT.js → agent-smith-ETBGA5KG.js} +4 -4
- package/dist/{agent-smith-runner-NWJGTREO.js → agent-smith-runner-DM422WAM.js} +64 -64
- package/dist/agent-smith-runner-DM422WAM.js.map +1 -0
- package/dist/{chunk-AQCAMIQQ.js → chunk-2YRZTA37.js} +4 -4
- package/dist/{chunk-AQCAMIQQ.js.map → chunk-2YRZTA37.js.map} +1 -1
- package/dist/{chunk-3RQPPRM3.js → chunk-43B2IFPT.js} +12 -12
- package/dist/chunk-43B2IFPT.js.map +1 -0
- package/dist/{chunk-4YSLDGBL.js → chunk-AAD7ZAPE.js} +5 -5
- package/dist/chunk-AAD7ZAPE.js.map +1 -0
- package/dist/{chunk-KOFQ47YW.js → chunk-CWSK3V57.js} +5 -5
- package/dist/chunk-CWSK3V57.js.map +1 -0
- package/dist/{chunk-TSHZQKCM.js → chunk-HQKILHTM.js} +4 -4
- package/dist/chunk-HQKILHTM.js.map +1 -0
- package/dist/{chunk-7KHT2NKR.js → chunk-I7BSCFTW.js} +2 -2
- package/dist/{chunk-MVUCBUBR.js → chunk-ICNTAY6P.js} +2 -2
- package/dist/{chunk-MVUCBUBR.js.map → chunk-ICNTAY6P.js.map} +1 -1
- package/dist/{chunk-GWSNINKX.js → chunk-JCYCDJHV.js} +2 -2
- package/dist/{chunk-DQ4FYOHV.js → chunk-KJS6PREO.js} +413 -199
- package/dist/chunk-KJS6PREO.js.map +1 -0
- package/dist/{chunk-PBOVCPKE.js → chunk-L47EYGRW.js} +41 -41
- package/dist/chunk-L47EYGRW.js.map +1 -0
- package/dist/{chunk-H5MDUTL3.js → chunk-NVH4CNK7.js} +13 -13
- package/dist/chunk-NVH4CNK7.js.map +1 -0
- package/dist/{chunk-JP4U3OMW.js → chunk-PQXVQHJB.js} +3 -3
- package/dist/{chunk-ULOW5HSH.js → chunk-Q5BWAPMT.js} +2 -2
- package/dist/{chunk-ULOW5HSH.js.map → chunk-Q5BWAPMT.js.map} +1 -1
- package/dist/{chunk-D3DMONAJ.js → chunk-XWG7WDAX.js} +138 -11
- package/dist/chunk-XWG7WDAX.js.map +1 -0
- package/dist/{chunk-NM35UECE.js → chunk-ZCTGVK5N.js} +5 -5
- package/dist/chunk-ZCTGVK5N.js.map +1 -0
- package/dist/cli/create-agent.js +17 -17
- package/dist/cli/create-agent.js.map +1 -1
- package/dist/cli/main.js +30 -30
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +16 -16
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{goal-manager-KFBOAP4X.js → goal-manager-YO75O76E.js} +5 -5
- package/dist/guardian-agent-RX7Q4VOH.js +17 -0
- package/dist/index.js +76 -76
- package/dist/index.js.map +1 -1
- package/dist/{issue-store-QRDF3X55.js → issue-store-ERSBEOS2.js} +3 -3
- package/dist/{vibe-code-signatures-TGMQXYGO.js → vibe-code-signatures-Q44DRSPU.js} +2 -2
- package/dist/{vulnerability-signatures-GOVD4Q24.js → vulnerability-signatures-ZTAPN7JA.js} +2 -2
- package/dist/workers/agent-worker.js +7 -7
- package/package.json +1 -1
- package/dist/agent-smith-runner-NWJGTREO.js.map +0 -1
- package/dist/chunk-3RQPPRM3.js.map +0 -1
- package/dist/chunk-4YSLDGBL.js.map +0 -1
- package/dist/chunk-D3DMONAJ.js.map +0 -1
- package/dist/chunk-DQ4FYOHV.js.map +0 -1
- package/dist/chunk-H5MDUTL3.js.map +0 -1
- package/dist/chunk-KOFQ47YW.js.map +0 -1
- package/dist/chunk-NM35UECE.js.map +0 -1
- package/dist/chunk-PBOVCPKE.js.map +0 -1
- package/dist/chunk-TSHZQKCM.js.map +0 -1
- package/dist/guardian-agent-PULK546O.js +0 -17
- /package/dist/{agent-smith-ILGLKYRT.js.map → agent-smith-ETBGA5KG.js.map} +0 -0
- /package/dist/{chunk-7KHT2NKR.js.map → chunk-I7BSCFTW.js.map} +0 -0
- /package/dist/{chunk-GWSNINKX.js.map → chunk-JCYCDJHV.js.map} +0 -0
- /package/dist/{chunk-JP4U3OMW.js.map → chunk-PQXVQHJB.js.map} +0 -0
- /package/dist/{goal-manager-KFBOAP4X.js.map → goal-manager-YO75O76E.js.map} +0 -0
- /package/dist/{guardian-agent-PULK546O.js.map → guardian-agent-RX7Q4VOH.js.map} +0 -0
- /package/dist/{issue-store-QRDF3X55.js.map → issue-store-ERSBEOS2.js.map} +0 -0
- /package/dist/{vibe-code-signatures-TGMQXYGO.js.map → vibe-code-signatures-Q44DRSPU.js.map} +0 -0
- /package/dist/{vulnerability-signatures-GOVD4Q24.js.map → vulnerability-signatures-ZTAPN7JA.js.map} +0 -0
package/dist/cli/main.js
CHANGED
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
shouldAutoFix,
|
|
18
18
|
shouldBlockPush,
|
|
19
19
|
trackIssueOccurrence
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-PQXVQHJB.js";
|
|
21
21
|
import {
|
|
22
22
|
SKILL_CATEGORIES,
|
|
23
23
|
detectStack,
|
|
24
24
|
getSkillCategories,
|
|
25
25
|
getSkillsByCategory,
|
|
26
26
|
isTrieInitialized
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-43B2IFPT.js";
|
|
28
28
|
import {
|
|
29
29
|
getGuardianState
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-AAD7ZAPE.js";
|
|
31
31
|
import {
|
|
32
32
|
initProjectInfo,
|
|
33
33
|
installSkill,
|
|
@@ -37,28 +37,28 @@ import {
|
|
|
37
37
|
projectInfoExists,
|
|
38
38
|
recordSkillInstalled,
|
|
39
39
|
removeSkill
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-NVH4CNK7.js";
|
|
41
41
|
import {
|
|
42
42
|
findCrossProjectPatterns,
|
|
43
43
|
getGlobalMemoryStats,
|
|
44
44
|
listTrackedProjects,
|
|
45
45
|
searchGlobalPatterns,
|
|
46
46
|
updateGlobalMemoryMd
|
|
47
|
-
} from "../chunk-
|
|
48
|
-
import "../chunk-
|
|
47
|
+
} from "../chunk-I7BSCFTW.js";
|
|
48
|
+
import "../chunk-ICNTAY6P.js";
|
|
49
49
|
import "../chunk-6NLHFIYA.js";
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-ZCTGVK5N.js";
|
|
51
|
+
import "../chunk-2YRZTA37.js";
|
|
52
52
|
import {
|
|
53
53
|
getDailyLogs,
|
|
54
54
|
getMemoryStats,
|
|
55
55
|
getRecentIssues,
|
|
56
56
|
markIssueResolved,
|
|
57
57
|
searchIssues
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-HQKILHTM.js";
|
|
59
59
|
import {
|
|
60
60
|
getWorkingDirectory
|
|
61
|
-
} from "../chunk-
|
|
61
|
+
} from "../chunk-CWSK3V57.js";
|
|
62
62
|
import "../chunk-RAZUNSBI.js";
|
|
63
63
|
import {
|
|
64
64
|
__require
|
|
@@ -311,7 +311,7 @@ TRIE_BIN="$(command -v trie || command -v trie-agent || true)"
|
|
|
311
311
|
if [ -n "$TRIE_BIN" ]; then
|
|
312
312
|
# Check for bypass
|
|
313
313
|
if [ "$TRIE_BYPASS" = "1" ] || [ "$TRIE_BYPASS" = "true" ]; then
|
|
314
|
-
echo "
|
|
314
|
+
echo "Trie push blocking bypassed (TRIE_BYPASS=1)"
|
|
315
315
|
"$TRIE_BIN" pre-push --bypassed || true
|
|
316
316
|
exit 0
|
|
317
317
|
fi
|
|
@@ -326,7 +326,7 @@ if [ -n "$TRIE_BIN" ]; then
|
|
|
326
326
|
# Exit code 2 = blocked but bypassable
|
|
327
327
|
echo ""
|
|
328
328
|
echo "\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501"
|
|
329
|
-
echo "
|
|
329
|
+
echo "Push blocked by Trie due to critical issues."
|
|
330
330
|
echo ""
|
|
331
331
|
echo "To bypass (not recommended):"
|
|
332
332
|
echo " TRIE_BYPASS=1 git push"
|
|
@@ -837,7 +837,7 @@ async function handlePrePushCommand(args) {
|
|
|
837
837
|
try {
|
|
838
838
|
const autonomyConfig = await getAutonomyConfig(projectPath);
|
|
839
839
|
if (options.bypassed) {
|
|
840
|
-
console.error(pc.yellow("
|
|
840
|
+
console.error(pc.yellow("Pre-push check bypassed by user"));
|
|
841
841
|
if (autonomyConfig.pushBlocking.logBypasses) {
|
|
842
842
|
await recordBypass(
|
|
843
843
|
projectPath,
|
|
@@ -880,13 +880,13 @@ async function handlePrePushCommand(args) {
|
|
|
880
880
|
if (blockResult.blocked) {
|
|
881
881
|
console.error("");
|
|
882
882
|
console.error(pc.red("\u2501".repeat(60)));
|
|
883
|
-
console.error(pc.bold(pc.red("
|
|
883
|
+
console.error(pc.bold(pc.red("PUSH BLOCKED")));
|
|
884
884
|
console.error(pc.red("\u2501".repeat(60)));
|
|
885
885
|
console.error("");
|
|
886
886
|
console.error(pc.yellow(`Found ${blockResult.blockingIssues.length} blocking issue(s):`));
|
|
887
887
|
console.error("");
|
|
888
888
|
for (const issue of blockResult.blockingIssues.slice(0, 5)) {
|
|
889
|
-
const icon = issue.severity === "critical" ? "
|
|
889
|
+
const icon = issue.severity === "critical" ? "[!]" : "[!]";
|
|
890
890
|
console.error(` ${icon} ${pc.dim(issue.file)}${issue.line ? `:${issue.line}` : ""}`);
|
|
891
891
|
console.error(` ${issue.issue.slice(0, 80)}${issue.issue.length > 80 ? "..." : ""}`);
|
|
892
892
|
}
|
|
@@ -909,7 +909,7 @@ async function handlePrePushCommand(args) {
|
|
|
909
909
|
console.error("");
|
|
910
910
|
process.exit(2);
|
|
911
911
|
} else if (blockResult.bypassed) {
|
|
912
|
-
console.error(pc.yellow(
|
|
912
|
+
console.error(pc.yellow(`Bypassed: ${blockResult.blockingIssues.length} issue(s) ignored`));
|
|
913
913
|
}
|
|
914
914
|
}
|
|
915
915
|
const riskLevel = reasoning.original?.riskLevel || "low";
|
|
@@ -921,7 +921,7 @@ async function handlePrePushCommand(args) {
|
|
|
921
921
|
process.exit(0);
|
|
922
922
|
} catch (error) {
|
|
923
923
|
const friendly = formatFriendlyError(error);
|
|
924
|
-
console.error(pc.yellow(
|
|
924
|
+
console.error(pc.yellow(`Pre-push check error: ${friendly.userMessage}`));
|
|
925
925
|
console.error(pc.dim("Allowing push to continue."));
|
|
926
926
|
process.exit(0);
|
|
927
927
|
}
|
|
@@ -1306,7 +1306,7 @@ async function listGoals(guardianState) {
|
|
|
1306
1306
|
return;
|
|
1307
1307
|
}
|
|
1308
1308
|
console.error("");
|
|
1309
|
-
console.error(pc3.bold("
|
|
1309
|
+
console.error(pc3.bold("Goals"));
|
|
1310
1310
|
console.error("");
|
|
1311
1311
|
const active = goals.filter((g) => g.status === "active");
|
|
1312
1312
|
const achieved = goals.filter((g) => g.status === "achieved");
|
|
@@ -1325,14 +1325,14 @@ async function listGoals(guardianState) {
|
|
|
1325
1325
|
if (achieved.length > 0) {
|
|
1326
1326
|
console.error(pc3.green("Achieved:"));
|
|
1327
1327
|
for (const goal of achieved) {
|
|
1328
|
-
console.error(`
|
|
1328
|
+
console.error(` [+] ${goal.description}`);
|
|
1329
1329
|
}
|
|
1330
1330
|
console.error("");
|
|
1331
1331
|
}
|
|
1332
1332
|
if (other.length > 0) {
|
|
1333
1333
|
console.error(pc3.dim("Other:"));
|
|
1334
1334
|
for (const goal of other) {
|
|
1335
|
-
const icon = goal.status === "failed" ? "
|
|
1335
|
+
const icon = goal.status === "failed" ? "[X]" : goal.status === "paused" ? "[P]" : "\u2022";
|
|
1336
1336
|
console.error(` ${icon} ${goal.description} (${goal.status})`);
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
@@ -1355,7 +1355,7 @@ async function completeGoal(guardianState, goalId) {
|
|
|
1355
1355
|
achievedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1356
1356
|
});
|
|
1357
1357
|
console.error("");
|
|
1358
|
-
console.error(pc3.green("
|
|
1358
|
+
console.error(pc3.green("Goal achieved!"));
|
|
1359
1359
|
console.error(pc3.bold(goal.description));
|
|
1360
1360
|
console.error("");
|
|
1361
1361
|
}
|
|
@@ -1484,7 +1484,7 @@ async function listHypotheses(guardianState) {
|
|
|
1484
1484
|
return;
|
|
1485
1485
|
}
|
|
1486
1486
|
console.error("");
|
|
1487
|
-
console.error(pc3.bold("
|
|
1487
|
+
console.error(pc3.bold("Hypotheses"));
|
|
1488
1488
|
console.error("");
|
|
1489
1489
|
const testing = hypotheses.filter((h) => h.status === "testing");
|
|
1490
1490
|
const validated = hypotheses.filter((h) => h.status === "validated");
|
|
@@ -1494,7 +1494,7 @@ async function listHypotheses(guardianState) {
|
|
|
1494
1494
|
for (const hypo of testing) {
|
|
1495
1495
|
const conf = Math.round(hypo.confidence * 100);
|
|
1496
1496
|
const confColor = conf >= 70 ? pc3.green : conf >= 40 ? pc3.yellow : pc3.red;
|
|
1497
|
-
console.error(`
|
|
1497
|
+
console.error(` [?] "${hypo.statement}" ${confColor(`(${conf}% confidence)`)}`);
|
|
1498
1498
|
console.error(pc3.dim(` ID: ${hypo.id} | Evidence: ${hypo.evidence.length} points`));
|
|
1499
1499
|
}
|
|
1500
1500
|
console.error("");
|
|
@@ -1502,14 +1502,14 @@ async function listHypotheses(guardianState) {
|
|
|
1502
1502
|
if (validated.length > 0) {
|
|
1503
1503
|
console.error(pc3.green("Validated:"));
|
|
1504
1504
|
for (const hypo of validated) {
|
|
1505
|
-
console.error(`
|
|
1505
|
+
console.error(` [+] "${hypo.statement}" (${Math.round(hypo.confidence * 100)}%)`);
|
|
1506
1506
|
}
|
|
1507
1507
|
console.error("");
|
|
1508
1508
|
}
|
|
1509
1509
|
if (invalidated.length > 0) {
|
|
1510
1510
|
console.error(pc3.red("Invalidated:"));
|
|
1511
1511
|
for (const hypo of invalidated) {
|
|
1512
|
-
console.error(`
|
|
1512
|
+
console.error(` [X] "${hypo.statement}"`);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
@@ -1529,7 +1529,7 @@ async function validateHypothesis(guardianState, hypoId) {
|
|
|
1529
1529
|
confidence: 0.9,
|
|
1530
1530
|
validatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
1531
1531
|
});
|
|
1532
|
-
console.error(pc3.green(
|
|
1532
|
+
console.error(pc3.green(`Hypothesis validated: "${hypo.statement}"`));
|
|
1533
1533
|
}
|
|
1534
1534
|
async function invalidateHypothesis(guardianState, hypoId) {
|
|
1535
1535
|
if (!hypoId) {
|
|
@@ -1546,7 +1546,7 @@ async function invalidateHypothesis(guardianState, hypoId) {
|
|
|
1546
1546
|
status: "invalidated",
|
|
1547
1547
|
confidence: 0.1
|
|
1548
1548
|
});
|
|
1549
|
-
console.error(pc3.red(
|
|
1549
|
+
console.error(pc3.red(`Hypothesis invalidated: "${hypo.statement}"`));
|
|
1550
1550
|
}
|
|
1551
1551
|
async function deleteHypothesis(guardianState, hypoId) {
|
|
1552
1552
|
if (!hypoId) {
|
|
@@ -1885,7 +1885,7 @@ ${pc4.bold("REQUIRED SECRETS:")}
|
|
|
1885
1885
|
}
|
|
1886
1886
|
const template = isMinimal ? WORKFLOW_MINIMAL : WORKFLOW_TEMPLATE;
|
|
1887
1887
|
if (isDryRun) {
|
|
1888
|
-
console.log(pc4.bold("\
|
|
1888
|
+
console.log(pc4.bold("\nWorkflow Preview:\n"));
|
|
1889
1889
|
console.log(pc4.dim("\u2500".repeat(60)));
|
|
1890
1890
|
console.log(template);
|
|
1891
1891
|
console.log(pc4.dim("\u2500".repeat(60)));
|
|
@@ -1893,7 +1893,7 @@ ${pc4.bold("REQUIRED SECRETS:")}
|
|
|
1893
1893
|
return;
|
|
1894
1894
|
}
|
|
1895
1895
|
if (existsSync2(workflowPath)) {
|
|
1896
|
-
console.log(pc4.yellow("
|
|
1896
|
+
console.log(pc4.yellow("Workflow already exists: .github/workflows/trie-scan.yml"));
|
|
1897
1897
|
console.log(pc4.dim(" Run with --dry-run to preview what would be written."));
|
|
1898
1898
|
console.log(pc4.dim(" Delete the existing file to regenerate."));
|
|
1899
1899
|
return;
|
|
@@ -2040,7 +2040,7 @@ MCP TOOLS (use via Cursor/Claude Desktop):
|
|
|
2040
2040
|
function showSetup() {
|
|
2041
2041
|
console.log(`
|
|
2042
2042
|
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
2043
|
-
\u2551
|
|
2043
|
+
\u2551 Trie Agent Setup \u2551
|
|
2044
2044
|
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
2045
2045
|
|
|
2046
2046
|
No API key required! Trie uses your AI tool's built-in Claude.
|