@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.
Files changed (39) hide show
  1. package/README.md +27 -2
  2. package/dist/{chunk-UPKBO5EM.js → chunk-432E2RYB.js} +29 -20
  3. package/dist/chunk-432E2RYB.js.map +1 -0
  4. package/dist/{chunk-RRDDAD5N.js → chunk-45NUFTNV.js} +6 -6
  5. package/dist/{chunk-35FAFFHE.js → chunk-75J4HQTD.js} +2 -2
  6. package/dist/{chunk-53URTRWH.js → chunk-D3F7VKCN.js} +2 -2
  7. package/dist/{chunk-P6VLSYXN.js → chunk-EWIEXQES.js} +2 -2
  8. package/dist/{chunk-LNLLZQWH.js → chunk-KCAWTZ7P.js} +12 -11
  9. package/dist/{chunk-LNLLZQWH.js.map → chunk-KCAWTZ7P.js.map} +1 -1
  10. package/dist/{chunk-3RKY55HZ.js → chunk-LKXDJESG.js} +671 -81
  11. package/dist/chunk-LKXDJESG.js.map +1 -0
  12. package/dist/{chunk-AIC4HOOQ.js → chunk-U5P3O5G5.js} +3 -3
  13. package/dist/{chunk-6QKDEGWR.js → chunk-WGECLUDQ.js} +4 -4
  14. package/dist/chunk-WGECLUDQ.js.map +1 -0
  15. package/dist/cli/main.js +115 -7
  16. package/dist/cli/main.js.map +1 -1
  17. package/dist/cli/yolo-daemon.js +8 -8
  18. package/dist/{goal-manager-NI4LJ2SX.js → goal-manager-NHPEUWFY.js} +4 -4
  19. package/dist/{guardian-agent-R5HX7UWJ.js → guardian-agent-UPLAQWJK.js} +6 -6
  20. package/dist/index.js +39 -41
  21. package/dist/index.js.map +1 -1
  22. package/dist/{issue-store-MULGOF6B.js → issue-store-RKJVOKSJ.js} +2 -2
  23. package/dist/ui/memory-viewer.html +4 -4
  24. package/dist/ui/pr-review.html +4 -4
  25. package/dist/ui/scan-dashboard.html +4 -4
  26. package/dist/ui/visual-qa.html +4 -4
  27. package/dist/workers/agent-worker.js +3 -3
  28. package/package.json +1 -1
  29. package/dist/chunk-3RKY55HZ.js.map +0 -1
  30. package/dist/chunk-6QKDEGWR.js.map +0 -1
  31. package/dist/chunk-UPKBO5EM.js.map +0 -1
  32. /package/dist/{chunk-RRDDAD5N.js.map → chunk-45NUFTNV.js.map} +0 -0
  33. /package/dist/{chunk-35FAFFHE.js.map → chunk-75J4HQTD.js.map} +0 -0
  34. /package/dist/{chunk-53URTRWH.js.map → chunk-D3F7VKCN.js.map} +0 -0
  35. /package/dist/{chunk-P6VLSYXN.js.map → chunk-EWIEXQES.js.map} +0 -0
  36. /package/dist/{chunk-AIC4HOOQ.js.map → chunk-U5P3O5G5.js.map} +0 -0
  37. /package/dist/{goal-manager-NI4LJ2SX.js.map → goal-manager-NHPEUWFY.js.map} +0 -0
  38. /package/dist/{guardian-agent-R5HX7UWJ.js.map → guardian-agent-UPLAQWJK.js.map} +0 -0
  39. /package/dist/{issue-store-MULGOF6B.js.map → issue-store-RKJVOKSJ.js.map} +0 -0
@@ -3,21 +3,21 @@ import {
3
3
  InteractiveDashboard,
4
4
  StreamingManager,
5
5
  TrieScanTool
6
- } from "../chunk-UPKBO5EM.js";
6
+ } from "../chunk-432E2RYB.js";
7
7
  import "../chunk-FCMAQSV7.js";
8
- import "../chunk-RRDDAD5N.js";
9
- import "../chunk-AIC4HOOQ.js";
8
+ import "../chunk-45NUFTNV.js";
9
+ import "../chunk-U5P3O5G5.js";
10
10
  import {
11
11
  isTrieInitialized
12
- } from "../chunk-LNLLZQWH.js";
13
- import "../chunk-35FAFFHE.js";
14
- import "../chunk-3RKY55HZ.js";
15
- import "../chunk-P6VLSYXN.js";
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-6QKDEGWR.js";
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-AIC4HOOQ.js";
8
- import "./chunk-35FAFFHE.js";
9
- import "./chunk-6QKDEGWR.js";
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-NI4LJ2SX.js.map
20
+ //# sourceMappingURL=goal-manager-NHPEUWFY.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GuardianAgent,
3
3
  getGuardian
4
- } from "./chunk-RRDDAD5N.js";
5
- import "./chunk-AIC4HOOQ.js";
6
- import "./chunk-35FAFFHE.js";
7
- import "./chunk-P6VLSYXN.js";
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-6QKDEGWR.js";
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-R5HX7UWJ.js.map
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-53URTRWH.js";
27
+ } from "./chunk-D3F7VKCN.js";
28
28
  import {
29
29
  InteractiveDashboard,
30
30
  StreamingManager,
31
31
  TrieScanTool,
32
32
  loadConfig
33
- } from "./chunk-UPKBO5EM.js";
33
+ } from "./chunk-432E2RYB.js";
34
34
  import "./chunk-FCMAQSV7.js";
35
- import "./chunk-RRDDAD5N.js";
36
- import "./chunk-AIC4HOOQ.js";
35
+ import "./chunk-45NUFTNV.js";
36
+ import "./chunk-U5P3O5G5.js";
37
37
  import {
38
38
  isTrieInitialized
39
- } from "./chunk-LNLLZQWH.js";
40
- import "./chunk-35FAFFHE.js";
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-3RKY55HZ.js";
57
+ } from "./chunk-LKXDJESG.js";
57
58
  import {
58
59
  findCrossProjectPatterns,
59
60
  getGlobalMemoryStats,
60
61
  listTrackedProjects,
61
62
  searchGlobalPatterns
62
- } from "./chunk-P6VLSYXN.js";
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-6QKDEGWR.js";
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-R5HX7UWJ.js");
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
- execSync("git branch --show-current", { encoding: "utf-8" }).trim();
4319
- const prJson = execSync(`gh pr view --json number,title,author,headRefName,baseRefName`, {
4320
- encoding: "utf-8",
4321
- stdio: ["pipe", "pipe", "pipe"]
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 = execSync(`gh pr view ${prNumber} --json number,title,author,headRefName,baseRefName`, {
4350
- encoding: "utf-8",
4351
- stdio: ["pipe", "pipe", "pipe"]
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 = execSync(`gh pr diff ${prInfo.number}`, {
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 = execSync(`git diff HEAD`, {
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 = execSync(`git diff HEAD`, {
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 = execSync(`git diff --cached`, {
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 execSync("git config user.name", { encoding: "utf-8" }).trim();
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 1,000 for performance. New issues are being deduplicated",
5017
- "and old issues are being automatically compacted into summaries.",
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)",