@triedotdev/mcp 1.0.33 → 1.0.34

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CustomAgent,
3
3
  getAgentRegistry
4
- } from "./chunk-IYWVUUJU.js";
4
+ } from "./chunk-3NXWEJUV.js";
5
5
  import {
6
6
  ProgressReporter
7
7
  } from "./chunk-ARUHDATG.js";
@@ -6437,4 +6437,4 @@ export {
6437
6437
  loadConfig,
6438
6438
  TrieScanTool
6439
6439
  };
6440
- //# sourceMappingURL=chunk-RAN27XKJ.js.map
6440
+ //# sourceMappingURL=chunk-FPISHSPT.js.map
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  TrieScanTool
4
- } from "../chunk-RAN27XKJ.js";
5
- import "../chunk-IYWVUUJU.js";
4
+ } from "../chunk-FPISHSPT.js";
5
+ import "../chunk-3NXWEJUV.js";
6
6
  import "../chunk-3CS6Z2SL.js";
7
7
  import "../chunk-ARUHDATG.js";
8
8
  import {
package/dist/index.js CHANGED
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  TrieScanTool,
9
9
  loadConfig
10
- } from "./chunk-RAN27XKJ.js";
10
+ } from "./chunk-FPISHSPT.js";
11
11
  import {
12
12
  CRITICAL_REVIEW_CHECKLIST,
13
13
  SuperReviewerAgent,
14
14
  getAgentRegistry
15
- } from "./chunk-IYWVUUJU.js";
15
+ } from "./chunk-3NXWEJUV.js";
16
16
  import "./chunk-3CS6Z2SL.js";
17
17
  import "./chunk-ARUHDATG.js";
18
18
  import {
@@ -4363,8 +4363,8 @@ var ToolRegistry = class {
4363
4363
  defineToolSchemas() {
4364
4364
  this.definitions = [
4365
4365
  {
4366
- name: "scan",
4367
- description: "Scan code with intelligent agent selection. Scans entire codebase if no files specified.",
4366
+ name: "trie_scan",
4367
+ description: "Scan code with intelligent agent selection. Scans entire codebase if no files specified. Alias: scan",
4368
4368
  inputSchema: {
4369
4369
  type: "object",
4370
4370
  properties: {
@@ -4435,26 +4435,26 @@ var ToolRegistry = class {
4435
4435
  },
4436
4436
  {
4437
4437
  name: "trie",
4438
- description: "Quick menu of available Trie commands and aliases.",
4439
- inputSchema: {
4440
- type: "object",
4441
- properties: {}
4442
- }
4443
- },
4444
- {
4445
- name: "trie_scan",
4446
- description: "Alias for scan (same behavior as scan).",
4438
+ description: "Quick menu of available Trie commands and aliases. Call with `action` to run directly.",
4447
4439
  inputSchema: {
4448
4440
  type: "object",
4449
4441
  properties: {
4442
+ action: {
4443
+ type: "string",
4444
+ description: "Optional quick action: scan, security, privacy, bugs, types, devops, architecture, ux, clean, soc2, performance, e2e, visual_qa, data_flow, agent_smith, pr_review, watch, fix, explain"
4445
+ },
4446
+ agent: {
4447
+ type: "string",
4448
+ description: "Agent key when action=agent or when using a custom agent name"
4449
+ },
4450
4450
  files: {
4451
4451
  type: "array",
4452
4452
  items: { type: "string" },
4453
- description: "Files to scan (absolute paths). If empty, scans entire codebase."
4453
+ description: "Files to scan (absolute or relative)"
4454
4454
  },
4455
4455
  directory: {
4456
4456
  type: "string",
4457
- description: "Directory to scan (if files not specified). Defaults to current working directory."
4457
+ description: "Directory to scan (defaults to detected workspace)"
4458
4458
  },
4459
4459
  context: {
4460
4460
  type: "object",
@@ -4466,55 +4466,13 @@ var ToolRegistry = class {
4466
4466
  isNewFeature: { type: "boolean" },
4467
4467
  touchesUserData: { type: "boolean" }
4468
4468
  }
4469
- },
4470
- forceAgents: {
4471
- type: "array",
4472
- items: { type: "string" },
4473
- description: "Manually specify agents to run (overrides triaging)"
4474
- },
4475
- parallel: {
4476
- type: "boolean",
4477
- description: "Run agents in parallel (default true)"
4478
- },
4479
- cache: {
4480
- type: "boolean",
4481
- description: "Enable scan result caching (default true)"
4482
- },
4483
- maxConcurrency: {
4484
- type: "number",
4485
- description: "Max parallel agents"
4486
- },
4487
- timeoutMs: {
4488
- type: "number",
4489
- description: "Agent timeout in milliseconds"
4490
- },
4491
- streaming: {
4492
- type: "boolean",
4493
- description: "Stream progress updates"
4494
- },
4495
- interactive: {
4496
- type: "boolean",
4497
- description: "Enable interactive CLI dashboard (TTY only)"
4498
- },
4499
- format: {
4500
- type: "string",
4501
- enum: ["text", "json"],
4502
- description: "Output format for optional file output"
4503
- },
4504
- output: {
4505
- type: "string",
4506
- description: "Output file path when format is json"
4507
- },
4508
- workers: {
4509
- type: "boolean",
4510
- description: "Use worker threads for parallel execution"
4511
4469
  }
4512
4470
  }
4513
4471
  }
4514
4472
  },
4515
4473
  {
4516
- name: "fix",
4517
- description: "Apply high-confidence fixes to code",
4474
+ name: "trie_fix",
4475
+ description: "Apply high-confidence fixes to code. Alias: fix",
4518
4476
  inputSchema: {
4519
4477
  type: "object",
4520
4478
  properties: {
@@ -4531,8 +4489,8 @@ var ToolRegistry = class {
4531
4489
  }
4532
4490
  },
4533
4491
  {
4534
- name: "explain",
4535
- description: "Explain code, issues, or changes in plain language",
4492
+ name: "trie_explain",
4493
+ description: "Explain code, issues, or changes in plain language. Alias: explain",
4536
4494
  inputSchema: {
4537
4495
  type: "object",
4538
4496
  properties: {
@@ -4548,6 +4506,82 @@ var ToolRegistry = class {
4548
4506
  required: ["type", "target"]
4549
4507
  }
4550
4508
  },
4509
+ {
4510
+ name: "trie_test",
4511
+ description: "Generate or reason about tests. Alias: test",
4512
+ inputSchema: {
4513
+ type: "object",
4514
+ properties: {
4515
+ action: {
4516
+ type: "string",
4517
+ enum: ["generate", "coverage", "suggest", "run"],
4518
+ description: "Test action to perform"
4519
+ },
4520
+ files: {
4521
+ type: "array",
4522
+ items: { type: "string" },
4523
+ description: "Target source files"
4524
+ },
4525
+ framework: {
4526
+ type: "string",
4527
+ description: "Optional framework hint (jest, vitest, playwright, etc.)"
4528
+ },
4529
+ style: {
4530
+ type: "string",
4531
+ description: "Test style (unit, integration, e2e). Defaults to unit."
4532
+ }
4533
+ },
4534
+ required: ["action", "files"]
4535
+ }
4536
+ },
4537
+ {
4538
+ name: "trie_watch",
4539
+ description: "Autonomous watch mode. Alias: watch",
4540
+ inputSchema: {
4541
+ type: "object",
4542
+ properties: {
4543
+ action: {
4544
+ type: "string",
4545
+ enum: ["start", "stop", "status", "issues"],
4546
+ description: "Watch action"
4547
+ },
4548
+ directory: {
4549
+ type: "string",
4550
+ description: "Workspace directory to watch (optional, auto-detected)"
4551
+ },
4552
+ debounceMs: {
4553
+ type: "number",
4554
+ description: "Debounce time for scans (ms)"
4555
+ }
4556
+ },
4557
+ required: ["action"]
4558
+ }
4559
+ },
4560
+ {
4561
+ name: "trie_register_agent",
4562
+ description: "Register an agent by name and path. Alias: register_agent",
4563
+ inputSchema: {
4564
+ type: "object",
4565
+ properties: {
4566
+ name: { type: "string", description: "Name of the agent" },
4567
+ path: { type: "string", description: "Path to the agent implementation" }
4568
+ },
4569
+ required: ["name", "path"]
4570
+ }
4571
+ },
4572
+ {
4573
+ name: "trie_list_agents",
4574
+ description: "List built-in and custom agents. Alias: list_agents",
4575
+ inputSchema: {
4576
+ type: "object",
4577
+ properties: {
4578
+ includeBuiltin: {
4579
+ type: "boolean",
4580
+ description: "Include built-in agents (default true)"
4581
+ }
4582
+ }
4583
+ }
4584
+ },
4551
4585
  // Add remaining tool definitions...
4552
4586
  this.createAgentToolDefinitions(),
4553
4587
  this.createCustomAgentDefinitions(),
@@ -4570,8 +4604,8 @@ var ToolRegistry = class {
4570
4604
  { name: "soc2", desc: "SOC 2 compliance: access controls, secrets management, encryption, logging, change management" }
4571
4605
  ];
4572
4606
  return agentTypes.map((agent) => ({
4573
- name: agent.name,
4574
- description: `Run ${agent.name} agent: ${agent.desc}`,
4607
+ name: `trie_${agent.name}`,
4608
+ description: `Run ${agent.name} agent: ${agent.desc}. Alias: ${agent.name}`,
4575
4609
  inputSchema: {
4576
4610
  type: "object",
4577
4611
  properties: {
@@ -4589,8 +4623,8 @@ var ToolRegistry = class {
4589
4623
  createCustomAgentDefinitions() {
4590
4624
  return [
4591
4625
  {
4592
- name: "create_agent",
4593
- description: "\u{1F4DA} Step 1: Parse a document to create a custom agent. Returns extraction prompt for Claude to process.",
4626
+ name: "trie_create_agent",
4627
+ description: "\u{1F4DA} Step 1: Parse a document to create a custom agent. Returns extraction prompt for Claude to process. Alias: create_agent",
4594
4628
  inputSchema: {
4595
4629
  type: "object",
4596
4630
  properties: {
@@ -4614,8 +4648,8 @@ var ToolRegistry = class {
4614
4648
  }
4615
4649
  },
4616
4650
  {
4617
- name: "save_agent",
4618
- description: "\u{1F4E6} Step 2: Save the agent config after Claude extracts knowledge.",
4651
+ name: "trie_save_agent",
4652
+ description: "\u{1F4E6} Step 2: Save the agent config after Claude extracts knowledge. Alias: save_agent",
4619
4653
  inputSchema: {
4620
4654
  type: "object",
4621
4655
  properties: {
@@ -4651,8 +4685,8 @@ var ToolRegistry = class {
4651
4685
  createSpecialAgentDefinitions() {
4652
4686
  return [
4653
4687
  {
4654
- name: "visual_qa_browser",
4655
- description: "Capture screenshots at mobile/tablet/desktop viewports for visual QA.",
4688
+ name: "trie_visual_qa_browser",
4689
+ description: "Capture screenshots at mobile/tablet/desktop viewports for visual QA. Alias: visual_qa_browser",
4656
4690
  inputSchema: {
4657
4691
  type: "object",
4658
4692
  properties: {
@@ -4664,8 +4698,8 @@ var ToolRegistry = class {
4664
4698
  }
4665
4699
  },
4666
4700
  {
4667
- name: "pr_review",
4668
- description: "\u{1F50D} Interactive PR review: walks through changes file-by-file.",
4701
+ name: "trie_pr_review",
4702
+ description: "\u{1F50D} Interactive PR review: walks through changes file-by-file. Alias: pr_review",
4669
4703
  inputSchema: {
4670
4704
  type: "object",
4671
4705
  properties: {
@@ -4685,8 +4719,8 @@ var ToolRegistry = class {
4685
4719
  }
4686
4720
  },
4687
4721
  {
4688
- name: "agent_smith",
4689
- description: '\u{1F574}\uFE0F Agent Smith: Relentless pattern hunter. "It is... inevitable."',
4722
+ name: "trie_agent_smith",
4723
+ description: '\u{1F574}\uFE0F Agent Smith: Relentless pattern hunter. "It is... inevitable." Alias: agent_smith',
4690
4724
  inputSchema: {
4691
4725
  type: "object",
4692
4726
  properties: {
@@ -4711,8 +4745,8 @@ var ToolRegistry = class {
4711
4745
  }
4712
4746
  },
4713
4747
  {
4714
- name: "smith",
4715
- description: "\u{1F574}\uFE0F Agent Smith (alias): Hunt AI-generated code anti-patterns. 43 specialized hunters.",
4748
+ name: "trie_smith",
4749
+ description: "\u{1F574}\uFE0F Agent Smith (alias): Hunt AI-generated code anti-patterns. 43 specialized hunters. Alias: smith",
4716
4750
  inputSchema: {
4717
4751
  type: "object",
4718
4752
  properties: {
@@ -5206,7 +5240,7 @@ var RequestHandlers = class {
5206
5240
  try {
5207
5241
  switch (normalizedName) {
5208
5242
  case "trie":
5209
- return this.handleTrieMenu();
5243
+ return await this.handleTrieMenu(args);
5210
5244
  case "scan":
5211
5245
  return await this.toolRegistry.getTool("scan").execute(args);
5212
5246
  case "fix":
@@ -5299,39 +5333,55 @@ var RequestHandlers = class {
5299
5333
  }
5300
5334
  normalizeName(name) {
5301
5335
  const stripNamespace = (n) => {
5302
- const parts = n.split(":");
5303
- const base = parts[0] || n;
5336
+ const trimmed = n.trim();
5337
+ const withoutSlash = trimmed.startsWith("/") ? trimmed.slice(1) : trimmed;
5338
+ const parts = withoutSlash.split(":");
5339
+ const base = parts[0] || withoutSlash;
5304
5340
  const slashParts = base.split("/");
5305
5341
  return slashParts[slashParts.length - 1] || base;
5306
5342
  };
5307
5343
  const rawName = stripNamespace(name);
5308
5344
  return rawName.startsWith("trie_") ? rawName.slice("trie_".length) : rawName;
5309
5345
  }
5310
- handleTrieMenu() {
5346
+ async handleTrieMenu(args) {
5347
+ const actionInput = typeof args?.action === "string" ? args.action : null;
5348
+ if (actionInput) {
5349
+ const normalizedAction = this.normalizeName(actionInput);
5350
+ if (normalizedAction === "trie") {
5351
+ return {
5352
+ content: [{
5353
+ type: "text",
5354
+ text: 'Use `trie` without action for the menu, or provide a concrete action like "scan" or "security".'
5355
+ }]
5356
+ };
5357
+ }
5358
+ return await this.handleToolCall(normalizedAction, { ...args });
5359
+ }
5311
5360
  return {
5312
5361
  content: [{
5313
5362
  type: "text",
5314
5363
  text: [
5315
- "## Trie Menu",
5316
- "",
5317
- "**Scanning:**",
5318
- "- `scan` or `trie_scan`: Full intelligent scan (auto triage agents)",
5319
- "- `agent_smith` or `smith`: \u{1F574}\uFE0F AI code enforcer \u2014 43 specialized hunters",
5320
- "- `pr_review`: \u{1F50D} Interactive PR review \u2014 walks through changes file-by-file",
5364
+ "## Trie Quick Actions",
5321
5365
  "",
5322
- "**Individual Agents:**",
5323
- "- `security`, `privacy`, `legal`, `bugs`, `types`, `devops`, `architecture`, `ux`, `clean`, `soc2`, `performance`, `e2e`, `visual_qa`, `data_flow`",
5366
+ "**Most common:**",
5367
+ "- `trie` (no args) \u2014 show this menu",
5368
+ '- `trie` with `{ action: "scan", files?: [], directory?: "" }` \u2014 auto triage & scan',
5369
+ '- `trie` with `{ action: "security", files?: [] }` \u2014 single-agent run (any agent name works)',
5370
+ '- `trie` with `{ action: "agent_smith" }` \u2014 aggressive AI-pattern hunter',
5324
5371
  "",
5325
- "**Tools:**",
5326
- "- `fix`: Generate high-confidence fix prompts",
5327
- "- `explain`: Explain code/issues/risks",
5328
- "- `watch`: Watch mode (generate reports on change)",
5329
- "- `visual_qa_browser`: Screenshot app for vision analysis",
5372
+ "**Other actions:**",
5373
+ '- `action: "pr_review"` \u2014 interactive PR review',
5374
+ '- `action: "fix"` \u2014 high-confidence fixes',
5375
+ '- `action: "watch"` \u2014 start/stop/status autonomous watch',
5376
+ '- `action: "test"` \u2014 generate/coverage/suggest/run tests (requires `files` + `action`)',
5377
+ '- `action: "explain"` \u2014 explain code/issues/risks',
5378
+ '- `action: "list_agents"` \u2014 list built-in + custom agents',
5379
+ '- `action: "visual_qa_browser"` \u2014 screenshots for visual QA',
5330
5380
  "",
5331
- "**Custom Agents:**",
5332
- "- `create_agent`, `save_agent`, `list_agents`",
5381
+ "**Built-in agents:**",
5382
+ "`security`, `privacy`, `legal`, `accessibility`, `design`, `architecture`, `bugs`, `ux`, `types`, `devops`, `clean`, `soc2`, `performance`, `e2e`, `visual_qa`, `data_flow`",
5333
5383
  "",
5334
- "All commands accept `trie_` prefix (e.g., `trie_scan`, `trie_smith`)."
5384
+ "All commands accept `trie_` prefix (e.g., `trie_scan`, `trie_security`). Short names still work for compatibility."
5335
5385
  ].join("\n")
5336
5386
  }]
5337
5387
  };