@triedotdev/mcp 1.0.78 → 1.0.80
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 +27 -2
- package/dist/{chunk-UPKBO5EM.js → chunk-432E2RYB.js} +29 -20
- package/dist/chunk-432E2RYB.js.map +1 -0
- package/dist/{chunk-RRDDAD5N.js → chunk-45NUFTNV.js} +6 -6
- package/dist/{chunk-35FAFFHE.js → chunk-75J4HQTD.js} +2 -2
- package/dist/{chunk-53URTRWH.js → chunk-D3F7VKCN.js} +2 -2
- package/dist/{chunk-P6VLSYXN.js → chunk-EWIEXQES.js} +2 -2
- package/dist/{chunk-LNLLZQWH.js → chunk-KCAWTZ7P.js} +12 -11
- package/dist/{chunk-LNLLZQWH.js.map → chunk-KCAWTZ7P.js.map} +1 -1
- package/dist/{chunk-3RKY55HZ.js → chunk-LKXDJESG.js} +671 -81
- package/dist/chunk-LKXDJESG.js.map +1 -0
- package/dist/{chunk-AIC4HOOQ.js → chunk-U5P3O5G5.js} +3 -3
- package/dist/{chunk-6QKDEGWR.js → chunk-WGECLUDQ.js} +4 -4
- package/dist/chunk-WGECLUDQ.js.map +1 -0
- package/dist/cli/main.js +115 -7
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +8 -8
- package/dist/{goal-manager-NI4LJ2SX.js → goal-manager-NHPEUWFY.js} +4 -4
- package/dist/{guardian-agent-R5HX7UWJ.js → guardian-agent-UPLAQWJK.js} +6 -6
- package/dist/index.js +39 -41
- package/dist/index.js.map +1 -1
- package/dist/{issue-store-MULGOF6B.js → issue-store-RKJVOKSJ.js} +2 -2
- package/dist/ui/memory-viewer.html +4 -4
- package/dist/ui/pr-review.html +4 -4
- package/dist/ui/scan-dashboard.html +4 -4
- package/dist/ui/visual-qa.html +4 -4
- package/dist/workers/agent-worker.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-3RKY55HZ.js.map +0 -1
- package/dist/chunk-6QKDEGWR.js.map +0 -1
- package/dist/chunk-UPKBO5EM.js.map +0 -1
- /package/dist/{chunk-RRDDAD5N.js.map → chunk-45NUFTNV.js.map} +0 -0
- /package/dist/{chunk-35FAFFHE.js.map → chunk-75J4HQTD.js.map} +0 -0
- /package/dist/{chunk-53URTRWH.js.map → chunk-D3F7VKCN.js.map} +0 -0
- /package/dist/{chunk-P6VLSYXN.js.map → chunk-EWIEXQES.js.map} +0 -0
- /package/dist/{chunk-AIC4HOOQ.js.map → chunk-U5P3O5G5.js.map} +0 -0
- /package/dist/{goal-manager-NI4LJ2SX.js.map → goal-manager-NHPEUWFY.js.map} +0 -0
- /package/dist/{guardian-agent-R5HX7UWJ.js.map → guardian-agent-UPLAQWJK.js.map} +0 -0
- /package/dist/{issue-store-MULGOF6B.js.map → issue-store-RKJVOKSJ.js.map} +0 -0
package/dist/cli/yolo-daemon.js
CHANGED
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
InteractiveDashboard,
|
|
4
4
|
StreamingManager,
|
|
5
5
|
TrieScanTool
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-432E2RYB.js";
|
|
7
7
|
import "../chunk-FCMAQSV7.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-45NUFTNV.js";
|
|
9
|
+
import "../chunk-U5P3O5G5.js";
|
|
10
10
|
import {
|
|
11
11
|
isTrieInitialized
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-KCAWTZ7P.js";
|
|
13
|
+
import "../chunk-75J4HQTD.js";
|
|
14
|
+
import "../chunk-LKXDJESG.js";
|
|
15
|
+
import "../chunk-EWIEXQES.js";
|
|
16
16
|
import "../chunk-SH2JIQLB.js";
|
|
17
17
|
import "../chunk-6NLHFIYA.js";
|
|
18
18
|
import "../chunk-EWQF6INU.js";
|
|
19
19
|
import "../chunk-Z7N7KDK3.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-WGECLUDQ.js";
|
|
21
21
|
import {
|
|
22
22
|
getWorkingDirectory
|
|
23
23
|
} from "../chunk-CM7EHNQK.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
calculateAdaptiveScanFrequency,
|
|
5
5
|
clearGoalManagers,
|
|
6
6
|
getGoalManager
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-U5P3O5G5.js";
|
|
8
|
+
import "./chunk-75J4HQTD.js";
|
|
9
|
+
import "./chunk-WGECLUDQ.js";
|
|
10
10
|
import "./chunk-CM7EHNQK.js";
|
|
11
11
|
import "./chunk-MIL54SAF.js";
|
|
12
12
|
import "./chunk-DGUM43GV.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
clearGoalManagers,
|
|
18
18
|
getGoalManager
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=goal-manager-
|
|
20
|
+
//# sourceMappingURL=goal-manager-NHPEUWFY.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GuardianAgent,
|
|
3
3
|
getGuardian
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-45NUFTNV.js";
|
|
5
|
+
import "./chunk-U5P3O5G5.js";
|
|
6
|
+
import "./chunk-75J4HQTD.js";
|
|
7
|
+
import "./chunk-EWIEXQES.js";
|
|
8
8
|
import "./chunk-Z7N7KDK3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WGECLUDQ.js";
|
|
10
10
|
import "./chunk-CM7EHNQK.js";
|
|
11
11
|
import "./chunk-MIL54SAF.js";
|
|
12
12
|
import "./chunk-DGUM43GV.js";
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
GuardianAgent,
|
|
15
15
|
getGuardian
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=guardian-agent-
|
|
17
|
+
//# sourceMappingURL=guardian-agent-UPLAQWJK.js.map
|
package/dist/index.js
CHANGED
|
@@ -24,20 +24,20 @@ import {
|
|
|
24
24
|
reasonAboutChangesHumanReadable,
|
|
25
25
|
saveCheckpoint,
|
|
26
26
|
trackIssueOccurrence
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-D3F7VKCN.js";
|
|
28
28
|
import {
|
|
29
29
|
InteractiveDashboard,
|
|
30
30
|
StreamingManager,
|
|
31
31
|
TrieScanTool,
|
|
32
32
|
loadConfig
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-432E2RYB.js";
|
|
34
34
|
import "./chunk-FCMAQSV7.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-45NUFTNV.js";
|
|
36
|
+
import "./chunk-U5P3O5G5.js";
|
|
37
37
|
import {
|
|
38
38
|
isTrieInitialized
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-KCAWTZ7P.js";
|
|
40
|
+
import "./chunk-75J4HQTD.js";
|
|
41
41
|
import {
|
|
42
42
|
CRITICAL_REVIEW_CHECKLIST,
|
|
43
43
|
SuperReviewerSkill,
|
|
@@ -52,14 +52,15 @@ import {
|
|
|
52
52
|
loadContextState,
|
|
53
53
|
loadProjectInfo,
|
|
54
54
|
projectInfoExists,
|
|
55
|
+
runShellCommandSync,
|
|
55
56
|
updateProjectSection
|
|
56
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LKXDJESG.js";
|
|
57
58
|
import {
|
|
58
59
|
findCrossProjectPatterns,
|
|
59
60
|
getGlobalMemoryStats,
|
|
60
61
|
listTrackedProjects,
|
|
61
62
|
searchGlobalPatterns
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-EWIEXQES.js";
|
|
63
64
|
import "./chunk-SH2JIQLB.js";
|
|
64
65
|
import "./chunk-6NLHFIYA.js";
|
|
65
66
|
import {
|
|
@@ -73,7 +74,7 @@ import {
|
|
|
73
74
|
markIssueResolved,
|
|
74
75
|
purgeIssues,
|
|
75
76
|
searchIssues
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-WGECLUDQ.js";
|
|
77
78
|
import {
|
|
78
79
|
getWorkingDirectory
|
|
79
80
|
} from "./chunk-CM7EHNQK.js";
|
|
@@ -2963,7 +2964,7 @@ Use \`trie_watch start\` to begin autonomous scanning.`
|
|
|
2963
2964
|
).join("\n");
|
|
2964
2965
|
let agencyStatus = "";
|
|
2965
2966
|
try {
|
|
2966
|
-
const { getGuardian } = await import("./guardian-agent-
|
|
2967
|
+
const { getGuardian } = await import("./guardian-agent-UPLAQWJK.js");
|
|
2967
2968
|
const guardian = getGuardian(getWorkingDirectory(void 0, true));
|
|
2968
2969
|
await guardian.initialize();
|
|
2969
2970
|
const status = await guardian.getAgencyStatus();
|
|
@@ -4227,9 +4228,22 @@ var TrieListAgentsTool = class {
|
|
|
4227
4228
|
import { readFile as readFile5 } from "fs/promises";
|
|
4228
4229
|
import { existsSync as existsSync7 } from "fs";
|
|
4229
4230
|
import { join as join5, basename as basename5, resolve as resolve5, isAbsolute as isAbsolute5 } from "path";
|
|
4230
|
-
import { execSync } from "child_process";
|
|
4231
4231
|
var TriePRReviewTool = class {
|
|
4232
4232
|
agent = new SuperReviewerSkill();
|
|
4233
|
+
exec(command, cwd, maxBuffer) {
|
|
4234
|
+
const opts = {
|
|
4235
|
+
captureOutput: false,
|
|
4236
|
+
redactOutput: true,
|
|
4237
|
+
...cwd ? { cwd } : {},
|
|
4238
|
+
...maxBuffer ? { maxBuffer } : {}
|
|
4239
|
+
};
|
|
4240
|
+
const { stdout } = runShellCommandSync(
|
|
4241
|
+
command,
|
|
4242
|
+
{ actor: "tool:pr-review", triggeredBy: "manual", targetPath: cwd ?? getWorkingDirectory(void 0, true) },
|
|
4243
|
+
opts
|
|
4244
|
+
);
|
|
4245
|
+
return stdout.trimEnd();
|
|
4246
|
+
}
|
|
4233
4247
|
async execute(args) {
|
|
4234
4248
|
const {
|
|
4235
4249
|
pr,
|
|
@@ -4315,11 +4329,10 @@ Usage:
|
|
|
4315
4329
|
return this.getPRFromGitHub(pr);
|
|
4316
4330
|
}
|
|
4317
4331
|
try {
|
|
4318
|
-
|
|
4319
|
-
const prJson =
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
}).trim();
|
|
4332
|
+
this.exec("git branch --show-current");
|
|
4333
|
+
const prJson = this.exec(
|
|
4334
|
+
`gh pr view --json number,title,author,headRefName,baseRefName`
|
|
4335
|
+
);
|
|
4323
4336
|
const prData = JSON.parse(prJson);
|
|
4324
4337
|
return {
|
|
4325
4338
|
success: true,
|
|
@@ -4346,10 +4359,9 @@ Usage:
|
|
|
4346
4359
|
*/
|
|
4347
4360
|
async getPRFromGitHub(prNumber) {
|
|
4348
4361
|
try {
|
|
4349
|
-
const prJson =
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
}).trim();
|
|
4362
|
+
const prJson = this.exec(
|
|
4363
|
+
`gh pr view ${prNumber} --json number,title,author,headRefName,baseRefName`
|
|
4364
|
+
);
|
|
4353
4365
|
const prData = JSON.parse(prJson);
|
|
4354
4366
|
return {
|
|
4355
4367
|
success: true,
|
|
@@ -4374,27 +4386,13 @@ Usage:
|
|
|
4374
4386
|
let diffOutput;
|
|
4375
4387
|
try {
|
|
4376
4388
|
if (prInfo.type === "github" && prInfo.number) {
|
|
4377
|
-
diffOutput =
|
|
4378
|
-
encoding: "utf-8",
|
|
4379
|
-
maxBuffer: 50 * 1024 * 1024
|
|
4380
|
-
// 50MB buffer for large PRs
|
|
4381
|
-
});
|
|
4389
|
+
diffOutput = this.exec(`gh pr diff ${prInfo.number}`, void 0, 50 * 1024 * 1024);
|
|
4382
4390
|
} else if (prInfo.type === "worktree" && prInfo.path) {
|
|
4383
|
-
diffOutput =
|
|
4384
|
-
encoding: "utf-8",
|
|
4385
|
-
cwd: prInfo.path,
|
|
4386
|
-
maxBuffer: 50 * 1024 * 1024
|
|
4387
|
-
});
|
|
4391
|
+
diffOutput = this.exec(`git diff HEAD`, prInfo.path, 50 * 1024 * 1024);
|
|
4388
4392
|
} else {
|
|
4389
|
-
diffOutput =
|
|
4390
|
-
encoding: "utf-8",
|
|
4391
|
-
maxBuffer: 50 * 1024 * 1024
|
|
4392
|
-
});
|
|
4393
|
+
diffOutput = this.exec(`git diff HEAD`, void 0, 50 * 1024 * 1024);
|
|
4393
4394
|
if (!diffOutput.trim()) {
|
|
4394
|
-
diffOutput =
|
|
4395
|
-
encoding: "utf-8",
|
|
4396
|
-
maxBuffer: 50 * 1024 * 1024
|
|
4397
|
-
});
|
|
4395
|
+
diffOutput = this.exec(`git diff --cached`, void 0, 50 * 1024 * 1024);
|
|
4398
4396
|
}
|
|
4399
4397
|
}
|
|
4400
4398
|
} catch {
|
|
@@ -4476,7 +4474,7 @@ Usage:
|
|
|
4476
4474
|
*/
|
|
4477
4475
|
getGitUser() {
|
|
4478
4476
|
try {
|
|
4479
|
-
return
|
|
4477
|
+
return this.exec("git config user.name");
|
|
4480
4478
|
} catch {
|
|
4481
4479
|
return "unknown";
|
|
4482
4480
|
}
|
|
@@ -5013,8 +5011,8 @@ var TrieMemorySearchTool = class {
|
|
|
5013
5011
|
"",
|
|
5014
5012
|
`**Memory is at maximum capacity (${cap.current}/${cap.max} issues, ${cap.percentFull}%)**`,
|
|
5015
5013
|
"",
|
|
5016
|
-
"Trie caps issue storage at
|
|
5017
|
-
"
|
|
5014
|
+
"Trie caps issue storage at 10,000 for performance. New repeats are deduplicated.",
|
|
5015
|
+
"Older issues are compacted into summaries, and if it still exceeds the cap the oldest/lowest-value issues are pruned.",
|
|
5018
5016
|
"",
|
|
5019
5017
|
"**Options to free up space:**",
|
|
5020
5018
|
"- `trie memory purge smart` - Remove resolved and old low-priority issues (recommended)",
|