@triedotdev/mcp 1.0.115 → 1.0.117
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-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-ZYKEILVK.js → chunk-EWVU7QUG.js} +464 -88
- package/dist/chunk-EWVU7QUG.js.map +1 -0
- 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-MVNJPJBK.js → chunk-PPZYVTUO.js} +71 -5
- package/dist/{chunk-MVNJPJBK.js.map → chunk-PPZYVTUO.js.map} +1 -1
- package/dist/{chunk-55DOQNHJ.js → chunk-PRFHN2X6.js} +4 -4
- 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 +215 -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-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
package/dist/cli/yolo-daemon.js
CHANGED
|
@@ -3,30 +3,30 @@ import {
|
|
|
3
3
|
InteractiveDashboard,
|
|
4
4
|
StreamingManager,
|
|
5
5
|
TrieScanTool
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-EWVU7QUG.js";
|
|
7
|
+
import "../chunk-OMCEUJ5I.js";
|
|
8
|
+
import "../chunk-IQBHPTV7.js";
|
|
9
|
+
import "../chunk-I7XKF5XD.js";
|
|
10
|
+
import "../chunk-Y52SNUW5.js";
|
|
11
11
|
import {
|
|
12
12
|
isTrieInitialized
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-PPZYVTUO.js";
|
|
14
|
+
import "../chunk-FNW7Z7ZS.js";
|
|
15
|
+
import "../chunk-WRGSH5RT.js";
|
|
16
|
+
import "../chunk-PRFHN2X6.js";
|
|
17
|
+
import "../chunk-4BGAVEO6.js";
|
|
18
18
|
import "../chunk-F4NJ4CBP.js";
|
|
19
19
|
import "../chunk-IXO4G4D3.js";
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-55CBWOEZ.js";
|
|
21
|
+
import "../chunk-WHIQAGB7.js";
|
|
22
22
|
import "../chunk-6NLHFIYA.js";
|
|
23
23
|
import "../chunk-ZV2K6M7T.js";
|
|
24
24
|
import "../chunk-VRLMTOB6.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-7Q6I2CB4.js";
|
|
26
26
|
import "../chunk-43X6JBEM.js";
|
|
27
27
|
import {
|
|
28
28
|
getWorkingDirectory
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-45Y5TLQZ.js";
|
|
30
30
|
import {
|
|
31
31
|
isInteractiveMode,
|
|
32
32
|
setInteractiveMode
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
saveKeyToKeychain,
|
|
10
10
|
setAPIKey,
|
|
11
11
|
tryGetClient
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-WRGSH5RT.js";
|
|
13
|
+
import "./chunk-45Y5TLQZ.js";
|
|
14
14
|
import "./chunk-APMV77PU.js";
|
|
15
15
|
import "./chunk-DGUM43GV.js";
|
|
16
16
|
export {
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
setAPIKey,
|
|
26
26
|
tryGetClient
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=client-
|
|
28
|
+
//# sourceMappingURL=client-PMKE26IV.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
calculateAdaptiveScanFrequency,
|
|
5
5
|
clearGoalManagers,
|
|
6
6
|
getGoalManager
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-IQBHPTV7.js";
|
|
8
|
+
import "./chunk-Y52SNUW5.js";
|
|
9
|
+
import "./chunk-PRFHN2X6.js";
|
|
10
|
+
import "./chunk-4BGAVEO6.js";
|
|
11
|
+
import "./chunk-7Q6I2CB4.js";
|
|
12
12
|
import "./chunk-43X6JBEM.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-45Y5TLQZ.js";
|
|
14
14
|
import "./chunk-APMV77PU.js";
|
|
15
15
|
import "./chunk-DGUM43GV.js";
|
|
16
16
|
export {
|
|
@@ -20,4 +20,4 @@ export {
|
|
|
20
20
|
clearGoalManagers,
|
|
21
21
|
getGoalManager
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=goal-manager-
|
|
23
|
+
//# sourceMappingURL=goal-manager-JKTNFJQE.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getGuardianState
|
|
3
|
+
} from "./chunk-4BGAVEO6.js";
|
|
4
|
+
import "./chunk-43X6JBEM.js";
|
|
5
|
+
import "./chunk-45Y5TLQZ.js";
|
|
6
|
+
import "./chunk-APMV77PU.js";
|
|
7
|
+
import "./chunk-DGUM43GV.js";
|
|
8
|
+
|
|
9
|
+
// src/guardian/goal-validator.ts
|
|
10
|
+
async function getActiveGoals(projectPath) {
|
|
11
|
+
const guardianState = getGuardianState(projectPath);
|
|
12
|
+
await guardianState.load();
|
|
13
|
+
return guardianState.getAllGoals().filter((g) => g.status === "active");
|
|
14
|
+
}
|
|
15
|
+
async function recordGoalViolationCaught(goal, file, projectPath) {
|
|
16
|
+
const guardianState = getGuardianState(projectPath);
|
|
17
|
+
await guardianState.load();
|
|
18
|
+
const metadata = goal.metadata || {};
|
|
19
|
+
const caughtCount = (metadata.caughtCount || 0) + 1;
|
|
20
|
+
await guardianState.updateGoal(goal.id, {
|
|
21
|
+
metadata: {
|
|
22
|
+
...metadata,
|
|
23
|
+
caughtCount,
|
|
24
|
+
lastCaught: (/* @__PURE__ */ new Date()).toISOString(),
|
|
25
|
+
lastCaughtFile: file
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async function recordGoalViolationFixed(goal, file, projectPath) {
|
|
30
|
+
const guardianState = getGuardianState(projectPath);
|
|
31
|
+
await guardianState.load();
|
|
32
|
+
const metadata = goal.metadata || {};
|
|
33
|
+
const caughtCount = (metadata.caughtCount || 0) + 1;
|
|
34
|
+
const fixedCount = (metadata.fixedCount || 0) + 1;
|
|
35
|
+
await guardianState.updateGoal(goal.id, {
|
|
36
|
+
metadata: {
|
|
37
|
+
...metadata,
|
|
38
|
+
caughtCount,
|
|
39
|
+
fixedCount,
|
|
40
|
+
lastFixed: (/* @__PURE__ */ new Date()).toISOString(),
|
|
41
|
+
lastFixedFile: file
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
if (goal.type === "reduction") {
|
|
45
|
+
const newValue = Math.max(0, goal.currentValue - 1);
|
|
46
|
+
await guardianState.updateGoal(goal.id, {
|
|
47
|
+
currentValue: newValue
|
|
48
|
+
});
|
|
49
|
+
if (newValue <= goal.target) {
|
|
50
|
+
await guardianState.updateGoal(goal.id, {
|
|
51
|
+
status: "achieved",
|
|
52
|
+
achievedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
getActiveGoals,
|
|
59
|
+
recordGoalViolationCaught,
|
|
60
|
+
recordGoalViolationFixed
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=goal-validator-YSNN23D4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"],"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;AAClD,QAAM,cAAc,KAAK;AAEzB,QAAM,WAAW,KAAK,YAAY,CAAC;AACnC,QAAM,eAAe,SAAS,eAAe,KAAK;AAClD,QAAM,cAAc,SAAS,cAAc,KAAK;AAEhD,QAAM,cAAc,WAAW,KAAK,IAAI;AAAA,IACtC,UAAU;AAAA,MACR,GAAG;AAAA,MACH;AAAA,MACA;AAAA,MACA,YAAW,oBAAI,KAAK,GAAE,YAAY;AAAA,MAClC,eAAe;AAAA,IACjB;AAAA,EACF,CAAC;AAED,MAAI,KAAK,SAAS,aAAa;AAC7B,UAAM,WAAW,KAAK,IAAI,GAAG,KAAK,eAAe,CAAC;AAClD,UAAM,cAAc,WAAW,KAAK,IAAI;AAAA,MACtC,cAAc;AAAA,IAChB,CAAC;AAED,QAAI,YAAY,KAAK,QAAQ;AAC3B,YAAM,cAAc,WAAW,KAAK,IAAI;AAAA,QACtC,QAAQ;AAAA,QACR,aAAY,oBAAI,KAAK,GAAE,YAAY;AAAA,MACrC,CAAC;AAAA,IACH;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContextGraph
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-55CBWOEZ.js";
|
|
4
|
+
import "./chunk-45Y5TLQZ.js";
|
|
5
5
|
import "./chunk-APMV77PU.js";
|
|
6
6
|
import "./chunk-DGUM43GV.js";
|
|
7
7
|
export {
|
|
8
8
|
ContextGraph
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=graph-
|
|
10
|
+
//# sourceMappingURL=graph-PAUZ5EMP.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GuardianAgent,
|
|
3
|
+
getGuardian
|
|
4
|
+
} from "./chunk-OMCEUJ5I.js";
|
|
5
|
+
import "./chunk-IQBHPTV7.js";
|
|
6
|
+
import "./chunk-I7XKF5XD.js";
|
|
7
|
+
import "./chunk-Y52SNUW5.js";
|
|
8
|
+
import "./chunk-FNW7Z7ZS.js";
|
|
9
|
+
import "./chunk-WRGSH5RT.js";
|
|
10
|
+
import "./chunk-PRFHN2X6.js";
|
|
11
|
+
import "./chunk-4BGAVEO6.js";
|
|
12
|
+
import "./chunk-F4NJ4CBP.js";
|
|
13
|
+
import "./chunk-IXO4G4D3.js";
|
|
14
|
+
import "./chunk-55CBWOEZ.js";
|
|
15
|
+
import "./chunk-6NLHFIYA.js";
|
|
16
|
+
import "./chunk-7Q6I2CB4.js";
|
|
17
|
+
import "./chunk-43X6JBEM.js";
|
|
18
|
+
import "./chunk-45Y5TLQZ.js";
|
|
19
|
+
import "./chunk-APMV77PU.js";
|
|
20
|
+
import "./chunk-DGUM43GV.js";
|
|
21
|
+
export {
|
|
22
|
+
GuardianAgent,
|
|
23
|
+
getGuardian
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=guardian-agent-UY2G56FT.js.map
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
HypothesisEngine,
|
|
3
3
|
clearHypothesisEngines,
|
|
4
4
|
getHypothesisEngine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-I7XKF5XD.js";
|
|
6
|
+
import "./chunk-Y52SNUW5.js";
|
|
7
|
+
import "./chunk-PRFHN2X6.js";
|
|
8
|
+
import "./chunk-4BGAVEO6.js";
|
|
9
|
+
import "./chunk-7Q6I2CB4.js";
|
|
10
10
|
import "./chunk-43X6JBEM.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-45Y5TLQZ.js";
|
|
12
12
|
import "./chunk-APMV77PU.js";
|
|
13
13
|
import "./chunk-DGUM43GV.js";
|
|
14
14
|
export {
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
clearHypothesisEngines,
|
|
17
17
|
getHypothesisEngine
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=hypothesis-
|
|
19
|
+
//# sourceMappingURL=hypothesis-RUCJ74X7.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IncidentIndex
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WHIQAGB7.js";
|
|
4
4
|
import "./chunk-6NLHFIYA.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-45Y5TLQZ.js";
|
|
6
6
|
import "./chunk-APMV77PU.js";
|
|
7
7
|
import "./chunk-DGUM43GV.js";
|
|
8
8
|
export {
|
|
9
9
|
IncidentIndex
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=incident-index-
|
|
11
|
+
//# sourceMappingURL=incident-index-ZCDSJ42L.js.map
|