@triedotdev/mcp 1.0.115 → 1.0.116
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/{autonomy-config-JXB7WCZ2.js → autonomy-config-QA6ATWLJ.js} +3 -3
- package/dist/{chunk-ZYKEILVK.js → chunk-2764RZVV.js} +305 -86
- package/dist/chunk-2764RZVV.js.map +1 -0
- package/dist/{chunk-R4AAPFXC.js → chunk-45Y5TLQZ.js} +2 -2
- package/dist/{chunk-R4AAPFXC.js.map → chunk-45Y5TLQZ.js.map} +1 -1
- package/dist/{chunk-KRH642MT.js → chunk-4BGAVEO6.js} +2 -2
- package/dist/{chunk-NS2MSZMB.js → chunk-55CBWOEZ.js} +2 -2
- package/dist/{chunk-YR4BMGYO.js → chunk-7Q6I2CB4.js} +2 -2
- package/dist/{chunk-TKMV7JKN.js → chunk-DFHMB44X.js} +2 -2
- package/dist/{chunk-D3EXBJE2.js → chunk-FNW7Z7ZS.js} +5 -5
- package/dist/{chunk-DZREHOGW.js → chunk-I7XKF5XD.js} +5 -5
- package/dist/{chunk-2SIFK7OW.js → chunk-IQBHPTV7.js} +4 -4
- package/dist/{chunk-AOFYU6T3.js → chunk-OMCEUJ5I.js} +12 -12
- package/dist/{chunk-55DOQNHJ.js → chunk-PRFHN2X6.js} +4 -4
- package/dist/{chunk-MVNJPJBK.js → chunk-SRQ4DNOP.js} +5 -5
- package/dist/{chunk-2GIAROBF.js → chunk-WHIQAGB7.js} +2 -2
- package/dist/{chunk-SWSK7ANT.js → chunk-WRGSH5RT.js} +2 -2
- package/dist/{chunk-6LXSA2OZ.js → chunk-Y52SNUW5.js} +3 -3
- package/dist/{chunk-I2GFI3AM.js → chunk-ZEXMMTIQ.js} +2 -2
- package/dist/cli/create-agent.js +1 -1
- package/dist/cli/main.js +66 -32
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +14 -14
- package/dist/{client-7XZHCMD3.js → client-PMKE26IV.js} +3 -3
- package/dist/{goal-manager-LMS6ZJB7.js → goal-manager-JKTNFJQE.js} +7 -7
- package/dist/goal-validator-YSNN23D4.js +62 -0
- package/dist/goal-validator-YSNN23D4.js.map +1 -0
- package/dist/{graph-U5JWSAB5.js → graph-PAUZ5EMP.js} +3 -3
- package/dist/guardian-agent-UY2G56FT.js +25 -0
- package/dist/{hypothesis-KGC3P54C.js → hypothesis-RUCJ74X7.js} +7 -7
- package/dist/{incident-index-PNIVT47T.js → incident-index-ZCDSJ42L.js} +3 -3
- package/dist/index.js +65 -128
- package/dist/index.js.map +1 -1
- package/dist/{ledger-SR6OEBLO.js → ledger-JMPGJGLB.js} +3 -3
- package/package.json +1 -1
- package/dist/auto-fix-apply-PCAHWLXF.js +0 -10
- package/dist/chunk-DJ2YAGHK.js +0 -50
- package/dist/chunk-DJ2YAGHK.js.map +0 -1
- package/dist/chunk-ZYKEILVK.js.map +0 -1
- package/dist/goal-validator-T5HEYBC5.js +0 -186
- package/dist/goal-validator-T5HEYBC5.js.map +0 -1
- package/dist/guardian-agent-EXP7APLC.js +0 -25
- package/dist/ledger-SR6OEBLO.js.map +0 -1
- /package/dist/{auto-fix-apply-PCAHWLXF.js.map → autonomy-config-QA6ATWLJ.js.map} +0 -0
- /package/dist/{chunk-KRH642MT.js.map → chunk-4BGAVEO6.js.map} +0 -0
- /package/dist/{chunk-NS2MSZMB.js.map → chunk-55CBWOEZ.js.map} +0 -0
- /package/dist/{chunk-YR4BMGYO.js.map → chunk-7Q6I2CB4.js.map} +0 -0
- /package/dist/{chunk-TKMV7JKN.js.map → chunk-DFHMB44X.js.map} +0 -0
- /package/dist/{chunk-D3EXBJE2.js.map → chunk-FNW7Z7ZS.js.map} +0 -0
- /package/dist/{chunk-DZREHOGW.js.map → chunk-I7XKF5XD.js.map} +0 -0
- /package/dist/{chunk-2SIFK7OW.js.map → chunk-IQBHPTV7.js.map} +0 -0
- /package/dist/{chunk-AOFYU6T3.js.map → chunk-OMCEUJ5I.js.map} +0 -0
- /package/dist/{chunk-55DOQNHJ.js.map → chunk-PRFHN2X6.js.map} +0 -0
- /package/dist/{chunk-MVNJPJBK.js.map → chunk-SRQ4DNOP.js.map} +0 -0
- /package/dist/{chunk-2GIAROBF.js.map → chunk-WHIQAGB7.js.map} +0 -0
- /package/dist/{chunk-SWSK7ANT.js.map → chunk-WRGSH5RT.js.map} +0 -0
- /package/dist/{chunk-6LXSA2OZ.js.map → chunk-Y52SNUW5.js.map} +0 -0
- /package/dist/{chunk-I2GFI3AM.js.map → chunk-ZEXMMTIQ.js.map} +0 -0
- /package/dist/{autonomy-config-JXB7WCZ2.js.map → client-PMKE26IV.js.map} +0 -0
- /package/dist/{client-7XZHCMD3.js.map → goal-manager-JKTNFJQE.js.map} +0 -0
- /package/dist/{goal-manager-LMS6ZJB7.js.map → graph-PAUZ5EMP.js.map} +0 -0
- /package/dist/{graph-U5JWSAB5.js.map → guardian-agent-UY2G56FT.js.map} +0 -0
- /package/dist/{guardian-agent-EXP7APLC.js.map → hypothesis-RUCJ74X7.js.map} +0 -0
- /package/dist/{hypothesis-KGC3P54C.js.map → incident-index-ZCDSJ42L.js.map} +0 -0
- /package/dist/{incident-index-PNIVT47T.js.map → ledger-JMPGJGLB.js.map} +0 -0
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
appendIssuesToLedger,
|
|
3
3
|
computeMerkleRoot,
|
|
4
4
|
verifyLedger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7Q6I2CB4.js";
|
|
6
6
|
import "./chunk-43X6JBEM.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-45Y5TLQZ.js";
|
|
8
8
|
import "./chunk-APMV77PU.js";
|
|
9
9
|
import "./chunk-DGUM43GV.js";
|
|
10
10
|
export {
|
|
@@ -12,4 +12,4 @@ export {
|
|
|
12
12
|
computeMerkleRoot,
|
|
13
13
|
verifyLedger
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=ledger-
|
|
15
|
+
//# sourceMappingURL=ledger-JMPGJGLB.js.map
|
package/package.json
CHANGED
package/dist/chunk-DJ2YAGHK.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// src/utils/auto-fix-apply.ts
|
|
2
|
-
import { readFile, writeFile } from "fs/promises";
|
|
3
|
-
import { existsSync } from "fs";
|
|
4
|
-
async function applyAutoFix(fix) {
|
|
5
|
-
try {
|
|
6
|
-
if (!existsSync(fix.file)) {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
const content = await readFile(fix.file, "utf-8");
|
|
10
|
-
const lines = content.split("\n");
|
|
11
|
-
if (fix.line === void 0 || fix.line < 1 || fix.line > lines.length) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
const lineIndex = fix.line - 1;
|
|
15
|
-
let newContent;
|
|
16
|
-
if (fix.type === "remove-console-log" || fix.type === "remove-debugger" || fix.fixed === "") {
|
|
17
|
-
lines.splice(lineIndex, 1);
|
|
18
|
-
newContent = lines.join("\n");
|
|
19
|
-
} else if (fix.type === "remove-emoji") {
|
|
20
|
-
const emojiPattern = /[\u{1F300}-\u{1F9FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}]/gu;
|
|
21
|
-
lines[lineIndex] = lines[lineIndex].replace(emojiPattern, "");
|
|
22
|
-
newContent = lines.join("\n");
|
|
23
|
-
} else if (fix.fixed) {
|
|
24
|
-
lines[lineIndex] = fix.fixed;
|
|
25
|
-
newContent = lines.join("\n");
|
|
26
|
-
} else {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
await writeFile(fix.file, newContent);
|
|
30
|
-
return true;
|
|
31
|
-
} catch {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
async function applyAutoFixes(fixes) {
|
|
36
|
-
let applied = 0;
|
|
37
|
-
for (const fix of fixes) {
|
|
38
|
-
const success = await applyAutoFix(fix);
|
|
39
|
-
if (success) {
|
|
40
|
-
applied++;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return applied;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
applyAutoFix,
|
|
48
|
-
applyAutoFixes
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=chunk-DJ2YAGHK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/auto-fix-apply.ts"],"sourcesContent":["/**\n * Auto-Fix Apply - Apply auto-fix actions to files\n * \n * Extracted from auto-fix.ts for reuse by watch mode and other tools\n */\n\nimport { readFile, writeFile } from 'fs/promises';\nimport { existsSync } from 'fs';\nimport type { AutoFixAction } from '../types/autonomy.js';\n\n/**\n * Apply a single fix to a file\n * Returns true if successful, false otherwise\n */\nexport async function applyAutoFix(fix: AutoFixAction): Promise<boolean> {\n try {\n if (!existsSync(fix.file)) {\n return false;\n }\n \n const content = await readFile(fix.file, 'utf-8');\n const lines = content.split('\\n');\n \n if (fix.line === undefined || fix.line < 1 || fix.line > lines.length) {\n return false;\n }\n \n const lineIndex = fix.line - 1;\n \n // Apply the fix based on type\n let newContent: string;\n \n if (fix.type === 'remove-console-log' || \n fix.type === 'remove-debugger' ||\n fix.fixed === '') {\n // Remove the entire line\n lines.splice(lineIndex, 1);\n newContent = lines.join('\\n');\n } else if (fix.type === 'remove-emoji') {\n // Remove emojis from the line\n const emojiPattern = /[\\u{1F300}-\\u{1F9FF}\\u{2600}-\\u{26FF}\\u{2700}-\\u{27BF}]/gu;\n lines[lineIndex] = lines[lineIndex]!.replace(emojiPattern, '');\n newContent = lines.join('\\n');\n } else if (fix.fixed) {\n // Replace the line\n lines[lineIndex] = fix.fixed;\n newContent = lines.join('\\n');\n } else {\n return false;\n }\n \n // Write the file\n await writeFile(fix.file, newContent);\n \n return true;\n \n } catch {\n return false;\n }\n}\n\n/**\n * Apply multiple fixes to files\n * Returns the number of successfully applied fixes\n */\nexport async function applyAutoFixes(fixes: AutoFixAction[]): Promise<number> {\n let applied = 0;\n \n for (const fix of fixes) {\n const success = await applyAutoFix(fix);\n if (success) {\n applied++;\n }\n }\n \n return applied;\n}\n"],"mappings":";AAMA,SAAS,UAAU,iBAAiB;AACpC,SAAS,kBAAkB;AAO3B,eAAsB,aAAa,KAAsC;AACvE,MAAI;AACF,QAAI,CAAC,WAAW,IAAI,IAAI,GAAG;AACzB,aAAO;AAAA,IACT;AAEA,UAAM,UAAU,MAAM,SAAS,IAAI,MAAM,OAAO;AAChD,UAAM,QAAQ,QAAQ,MAAM,IAAI;AAEhC,QAAI,IAAI,SAAS,UAAa,IAAI,OAAO,KAAK,IAAI,OAAO,MAAM,QAAQ;AACrE,aAAO;AAAA,IACT;AAEA,UAAM,YAAY,IAAI,OAAO;AAG7B,QAAI;AAEJ,QAAI,IAAI,SAAS,wBACb,IAAI,SAAS,qBACb,IAAI,UAAU,IAAI;AAEpB,YAAM,OAAO,WAAW,CAAC;AACzB,mBAAa,MAAM,KAAK,IAAI;AAAA,IAC9B,WAAW,IAAI,SAAS,gBAAgB;AAEtC,YAAM,eAAe;AACrB,YAAM,SAAS,IAAI,MAAM,SAAS,EAAG,QAAQ,cAAc,EAAE;AAC7D,mBAAa,MAAM,KAAK,IAAI;AAAA,IAC9B,WAAW,IAAI,OAAO;AAEpB,YAAM,SAAS,IAAI,IAAI;AACvB,mBAAa,MAAM,KAAK,IAAI;AAAA,IAC9B,OAAO;AACL,aAAO;AAAA,IACT;AAGA,UAAM,UAAU,IAAI,MAAM,UAAU;AAEpC,WAAO;AAAA,EAET,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAMA,eAAsB,eAAe,OAAyC;AAC5E,MAAI,UAAU;AAEd,aAAW,OAAO,OAAO;AACvB,UAAM,UAAU,MAAM,aAAa,GAAG;AACtC,QAAI,SAAS;AACX;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|