@triedotdev/mcp 1.0.39 → 1.0.40
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 +145 -2
- package/dist/{chunk-HG5AWUH7.js → chunk-G2GNVUMP.js} +19 -4
- package/dist/chunk-G2GNVUMP.js.map +1 -0
- package/dist/chunk-Q4RVENDE.js +229 -0
- package/dist/chunk-Q4RVENDE.js.map +1 -0
- package/dist/cli/main.js +105 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +2 -1
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/index.js +299 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-HG5AWUH7.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Specialized agents scan your code for security, privacy, compliance, and bugs—all running in parallel with intelligent caching and real-time streaming.
|
|
6
6
|
|
|
7
|
+
Also try the agentic workspace for shipping AI-generated code: https://www.trie.dev
|
|
8
|
+
|
|
7
9
|
## Why Trie
|
|
8
10
|
|
|
9
11
|
Trie is purpose-built for the last mile of shipping AI-generated code.
|
|
@@ -12,6 +14,8 @@ The last mile of shipping is where things break—not because your code doesn't
|
|
|
12
14
|
|
|
13
15
|
## What's New (latest updates)
|
|
14
16
|
|
|
17
|
+
- **Project Info Registry**: Store important project context in `.trie/PROJECT.md` that travels with you across Claude Code, Cursor, GitHub Actions, and CLI. Define your project description, tech stack, conventions, architecture, and custom AI instructions—all in one place.
|
|
18
|
+
|
|
15
19
|
- **Accessibility Agent (v2.0)**: Comprehensive WCAG 2.1 AA compliance. Detects icon-only buttons, touch targets, skipped headings, positive tabIndex, ARIA validation, color-only indicators, and 20+ more checks with WCAG criterion references.
|
|
16
20
|
|
|
17
21
|
- **Health Score Triaging**: Your health score (0-100) now actively controls what agents run. Below 50%? All agents run automatically. Agents that found issues before get boosted priority in future scans.
|
|
@@ -36,6 +40,7 @@ The last mile of shipping is where things break—not because your code doesn't
|
|
|
36
40
|
- [Design Engineer (v2.0)](#design-engineer-v20)
|
|
37
41
|
- [Special Agents](#special-agents)
|
|
38
42
|
- [Custom Agents](#custom-agents)
|
|
43
|
+
- [Project Info Registry](#project-info-registry)
|
|
39
44
|
- [AI-Enhanced Mode](#ai-enhanced-mode)
|
|
40
45
|
- [CI/CD Integration](#cicd-integration)
|
|
41
46
|
- [VS Code Extension](#vs-code-extension)
|
|
@@ -386,6 +391,7 @@ These tools are available when using Trie via MCP (Cursor, Claude Code, etc.).
|
|
|
386
391
|
| `trie_watch` | Watch mode—automatically scan files as you code |
|
|
387
392
|
| `trie_fix` | Generate fix recommendations for detected issues |
|
|
388
393
|
| `trie_explain` | Explain code, issues, or changes in plain language |
|
|
394
|
+
| `trie_project` | View and manage project info (.trie/PROJECT.md) |
|
|
389
395
|
|
|
390
396
|
### Custom Agent Tools
|
|
391
397
|
|
|
@@ -943,6 +949,141 @@ Custom agents are stored in `.trie/agents/` in your project directory.
|
|
|
943
949
|
|
|
944
950
|
---
|
|
945
951
|
|
|
952
|
+
## Project Info Registry
|
|
953
|
+
|
|
954
|
+
Store important project-specific information in `.trie/PROJECT.md` that's automatically available to all AI tools.
|
|
955
|
+
|
|
956
|
+
### Why Project Info?
|
|
957
|
+
|
|
958
|
+
When you work across multiple tools (Cursor, Claude Code, GitHub Actions, CLI), context gets lost. The Project Info Registry solves this by providing a single source of truth for:
|
|
959
|
+
|
|
960
|
+
- Project description and purpose
|
|
961
|
+
- Technology stack and frameworks
|
|
962
|
+
- Architecture decisions and patterns
|
|
963
|
+
- Coding conventions and style guidelines
|
|
964
|
+
- Environment info (URLs, API endpoints)
|
|
965
|
+
- Team ownership and contacts
|
|
966
|
+
- Compliance requirements
|
|
967
|
+
- Custom instructions for AI assistants
|
|
968
|
+
|
|
969
|
+
### Create PROJECT.md
|
|
970
|
+
|
|
971
|
+
**Using CLI:**
|
|
972
|
+
```bash
|
|
973
|
+
trie-agent project init
|
|
974
|
+
```
|
|
975
|
+
|
|
976
|
+
**Using MCP (Cursor/Claude Code):**
|
|
977
|
+
```
|
|
978
|
+
trie_project action="init"
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
This creates a template at `.trie/PROJECT.md` with sections ready to fill in.
|
|
982
|
+
|
|
983
|
+
### View Project Info
|
|
984
|
+
|
|
985
|
+
**CLI:**
|
|
986
|
+
```bash
|
|
987
|
+
trie-agent project
|
|
988
|
+
```
|
|
989
|
+
|
|
990
|
+
**MCP:**
|
|
991
|
+
```
|
|
992
|
+
trie_project action="view"
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
**MCP Resource:**
|
|
996
|
+
```
|
|
997
|
+
Read trie://project
|
|
998
|
+
```
|
|
999
|
+
|
|
1000
|
+
### Update Sections
|
|
1001
|
+
|
|
1002
|
+
**MCP:**
|
|
1003
|
+
```
|
|
1004
|
+
trie_project action="update" section="Technology Stack" content="- **Language:** TypeScript\n- **Framework:** Next.js 14\n- **Database:** PostgreSQL"
|
|
1005
|
+
```
|
|
1006
|
+
|
|
1007
|
+
### How It Works
|
|
1008
|
+
|
|
1009
|
+
```
|
|
1010
|
+
your-project/
|
|
1011
|
+
├── .trie/
|
|
1012
|
+
│ └── PROJECT.md ← Your project context
|
|
1013
|
+
├── src/
|
|
1014
|
+
└── package.json
|
|
1015
|
+
```
|
|
1016
|
+
|
|
1017
|
+
The PROJECT.md file is:
|
|
1018
|
+
- **Committed to git** — context travels with your code
|
|
1019
|
+
- **Available via `trie://project`** — AI tools can read it directly
|
|
1020
|
+
- **Integrated into `trie://context`** — included in overall project context
|
|
1021
|
+
- **Per-project** — each project has its own file
|
|
1022
|
+
|
|
1023
|
+
### Template Sections
|
|
1024
|
+
|
|
1025
|
+
| Section | What to Include |
|
|
1026
|
+
|---------|-----------------|
|
|
1027
|
+
| **Project Overview** | What does this project do? Who is it for? |
|
|
1028
|
+
| **Technology Stack** | Languages, frameworks, databases, cloud services |
|
|
1029
|
+
| **Architecture** | Key patterns, system design, important decisions |
|
|
1030
|
+
| **Coding Conventions** | Style rules, naming conventions, patterns to follow |
|
|
1031
|
+
| **Environment** | Dev/staging/prod URLs, API endpoints |
|
|
1032
|
+
| **Team** | Who owns what, contact info |
|
|
1033
|
+
| **Compliance** | GDPR, SOC2, HIPAA requirements |
|
|
1034
|
+
| **AI Instructions** | Special instructions for AI assistants |
|
|
1035
|
+
|
|
1036
|
+
### Example PROJECT.md
|
|
1037
|
+
|
|
1038
|
+
```markdown
|
|
1039
|
+
## Project Overview
|
|
1040
|
+
|
|
1041
|
+
E-commerce platform for sustainable products.
|
|
1042
|
+
Focus on fast checkout and mobile-first UX.
|
|
1043
|
+
|
|
1044
|
+
## Technology Stack
|
|
1045
|
+
|
|
1046
|
+
- **Language:** TypeScript
|
|
1047
|
+
- **Framework:** Next.js 14 (App Router)
|
|
1048
|
+
- **Database:** PostgreSQL with Prisma ORM
|
|
1049
|
+
- **Hosting:** Vercel + Supabase
|
|
1050
|
+
|
|
1051
|
+
## Architecture
|
|
1052
|
+
|
|
1053
|
+
- Server Components by default, Client Components only when needed
|
|
1054
|
+
- tRPC for type-safe API calls
|
|
1055
|
+
- Zustand for client state
|
|
1056
|
+
|
|
1057
|
+
## Coding Conventions
|
|
1058
|
+
|
|
1059
|
+
- Use `pnpm` for package management
|
|
1060
|
+
- Prefer named exports over default exports
|
|
1061
|
+
- Use Tailwind CSS, no inline styles
|
|
1062
|
+
- Tests required for payment-related code
|
|
1063
|
+
|
|
1064
|
+
## AI Instructions
|
|
1065
|
+
|
|
1066
|
+
When working on this project:
|
|
1067
|
+
1. Always use Server Components unless client interactivity is needed
|
|
1068
|
+
2. Check for accessibility issues (we target WCAG AA)
|
|
1069
|
+
3. Payment code must be reviewed by security agent before commit
|
|
1070
|
+
```
|
|
1071
|
+
|
|
1072
|
+
### Multi-Project Support
|
|
1073
|
+
|
|
1074
|
+
Each project has its own `.trie/PROJECT.md`:
|
|
1075
|
+
|
|
1076
|
+
```
|
|
1077
|
+
~/projects/
|
|
1078
|
+
├── project-a/.trie/PROJECT.md ← Project A's context
|
|
1079
|
+
├── project-b/.trie/PROJECT.md ← Project B's context
|
|
1080
|
+
└── project-c/.trie/PROJECT.md ← Project C's context
|
|
1081
|
+
```
|
|
1082
|
+
|
|
1083
|
+
When you open Project A in Cursor, it reads Project A's context. Switch to Project B, and it reads Project B's context. No configuration needed.
|
|
1084
|
+
|
|
1085
|
+
---
|
|
1086
|
+
|
|
946
1087
|
## AI-Enhanced Mode
|
|
947
1088
|
|
|
948
1089
|
Trie works in two modes:
|
|
@@ -1091,14 +1232,16 @@ Trie auto-detects your project root by looking for `package.json`, `.git`, `Carg
|
|
|
1091
1232
|
<summary>MCP Resources (click to expand)</summary>
|
|
1092
1233
|
|
|
1093
1234
|
```
|
|
1094
|
-
trie://context #
|
|
1235
|
+
trie://context # Combined context (PROJECT.md + scan results)
|
|
1236
|
+
trie://project # User-defined project info (PROJECT.md)
|
|
1095
1237
|
trie://context/state # Detailed JSON state
|
|
1096
1238
|
trie://agents # Available agents
|
|
1097
1239
|
trie://config # Current configuration
|
|
1098
1240
|
```
|
|
1099
1241
|
|
|
1100
1242
|
Files stored:
|
|
1101
|
-
- `.trie/
|
|
1243
|
+
- `.trie/PROJECT.md` - User-defined project context (description, stack, conventions, AI instructions)
|
|
1244
|
+
- `.trie/AGENTS.md` - Auto-generated scan context
|
|
1102
1245
|
- `.trie/state.json` - Machine-readable state for programmatic access
|
|
1103
1246
|
|
|
1104
1247
|
</details>
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loadProjectInfo,
|
|
3
|
+
projectInfoExists
|
|
4
|
+
} from "./chunk-Q4RVENDE.js";
|
|
1
5
|
import {
|
|
2
6
|
CustomAgent,
|
|
3
7
|
getAgentRegistry
|
|
@@ -974,8 +978,19 @@ _Run a scan to identify hot files._
|
|
|
974
978
|
}
|
|
975
979
|
async function getContextForAI() {
|
|
976
980
|
const state = await loadContextState();
|
|
977
|
-
const
|
|
978
|
-
|
|
981
|
+
const workDir = getWorkingDirectory(void 0, true);
|
|
982
|
+
const lines = [];
|
|
983
|
+
if (projectInfoExists(workDir)) {
|
|
984
|
+
const projectInfo = await loadProjectInfo(workDir);
|
|
985
|
+
if (projectInfo) {
|
|
986
|
+
lines.push(projectInfo);
|
|
987
|
+
lines.push("");
|
|
988
|
+
lines.push("---");
|
|
989
|
+
lines.push("");
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
lines.push(
|
|
993
|
+
"## Trie Scan Context",
|
|
979
994
|
"",
|
|
980
995
|
`**Health Score:** ${state.healthScore}%`,
|
|
981
996
|
`**Last Scan:** ${state.lastScan ? new Date(state.lastScan.timestamp).toLocaleString() : "Never"}`,
|
|
@@ -983,7 +998,7 @@ async function getContextForAI() {
|
|
|
983
998
|
"**Active Priorities:**",
|
|
984
999
|
...state.activePriorities.map((p) => `- ${p}`),
|
|
985
1000
|
""
|
|
986
|
-
|
|
1001
|
+
);
|
|
987
1002
|
if (state.lastScan) {
|
|
988
1003
|
lines.push(
|
|
989
1004
|
"**Recent Issues:**",
|
|
@@ -6912,4 +6927,4 @@ export {
|
|
|
6912
6927
|
getContextForAI,
|
|
6913
6928
|
TrieScanTool
|
|
6914
6929
|
};
|
|
6915
|
-
//# sourceMappingURL=chunk-
|
|
6930
|
+
//# sourceMappingURL=chunk-G2GNVUMP.js.map
|