@triedotdev/mcp 1.0.36 → 1.0.37
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 +187 -8
- package/dist/{chunk-ZTQ2QWUQ.js → chunk-QFTSX2BX.js} +1831 -209
- package/dist/chunk-QFTSX2BX.js.map +1 -0
- package/dist/{chunk-OKCVAJDR.js → chunk-VSCPOIWS.js} +2 -2
- package/dist/cli/yolo-daemon.js +2 -2
- package/dist/index.js +2 -2
- package/dist/workers/agent-worker.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZTQ2QWUQ.js.map +0 -1
- /package/dist/{chunk-OKCVAJDR.js.map → chunk-VSCPOIWS.js.map} +0 -0
package/README.md
CHANGED
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
I like Claude Code Skills, but I found myself wanting more control. Trie keeps one code-first harness (registry + triager) across MCP, CLI, and CI, so the same agents and policies run everywhere—no shuffling separate .md skills per tool. It can turn my docs (PDF/TXT/MD/RTF) into agents (ingests, compresses, builds prompts, saves to `.trie/agents/`), lets me version and test them in TypeScript/JSON with identical behavior locally and in CI, and triager logs show which agents ran and why—no implicit routing. Trie is for people who want to build and govern their own agents with source-controlled prompts and transparent routing.
|
|
10
10
|
|
|
11
11
|
## What's New (latest updates)
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
- Agent Smith speedups: single-pass file loading (skips binaries/giants), shared content across hunters, and stable memory hashes for better resurrected-issue tracking.
|
|
12
|
+
- **Legal Agent v2.0**: Complete rewrite, now the most comprehensive legal compliance agent for app development. Covers 21 categories: open source licensing (GPL/AGPL/MIT), Terms of Service, API terms compliance, intellectual property, ADA/WCAG accessibility, GDPR/CCPA data protection, e-commerce/PCI, CAN-SPAM/TCPA marketing, COPPA child safety, export controls, DMCA, and more.
|
|
13
|
+
|
|
14
|
+
- **Design Engineer v2.0**: Complete rewrite with 5-layer design intelligence architecture, AI slop detection (surface hierarchy, neon colors, purple overuse), verified token systems from Radix/Tailwind, WCAG contrast validation and domain-specific recommendations for fitness, fintech, ecommerce, and more.
|
|
16
15
|
|
|
17
16
|
---
|
|
18
17
|
|
|
@@ -24,6 +23,8 @@ I like Claude Code Skills, but I found myself wanting more control. Trie keeps o
|
|
|
24
23
|
- [MCP Tools](#mcp-tools)
|
|
25
24
|
- [CLI](#cli)
|
|
26
25
|
- [Built-in Agents](#built-in-agents)
|
|
26
|
+
- [Legal Agent (v2.0)](#legal-agent-v20)
|
|
27
|
+
- [Design Engineer (v2.0)](#design-engineer-v20)
|
|
27
28
|
- [Special Agents](#special-agents)
|
|
28
29
|
- [Custom Agents](#custom-agents)
|
|
29
30
|
- [AI-Enhanced Mode](#ai-enhanced-mode)
|
|
@@ -168,14 +169,14 @@ Run a specific agent directly:
|
|
|
168
169
|
| `trie_security` | SQL injection, XSS, hardcoded secrets, auth bypasses, OWASP Top 10 |
|
|
169
170
|
| `trie_privacy` | GDPR/CCPA/PCI-DSS compliance, PII exposure, logging sensitive data |
|
|
170
171
|
| `trie_soc2` | Access control gaps, missing audit logs, encryption issues |
|
|
171
|
-
| `trie_legal` |
|
|
172
|
+
| `trie_legal` | Licensing, ToS, accessibility, IP, GDPR/CCPA, e-commerce, marketing, COPPA |
|
|
172
173
|
| `trie_accessibility` | WCAG 2.1 compliance, keyboard nav, screen readers, color contrast |
|
|
173
174
|
| `trie_architecture` | Code organization, SOLID principles, N+1 queries, scalability |
|
|
174
175
|
| `trie_bugs` | Null safety, edge cases, async issues, common bugs |
|
|
175
176
|
| `trie_types` | Type errors, missing annotations, null checks |
|
|
176
177
|
| `trie_devops` | Config issues, logging, environment variables, deployment patterns |
|
|
177
178
|
| `trie_clean` | Clean up AI-generated code: find vibe-coded patterns and quick fixes |
|
|
178
|
-
| `trie_design` |
|
|
179
|
+
| `trie_design` | Design intelligence with AI slop detection, verified token systems, contrast validation |
|
|
179
180
|
| `trie_ux` | Simulate happy path, security tester, confused user, impatient user |
|
|
180
181
|
|
|
181
182
|
---
|
|
@@ -233,7 +234,7 @@ trie-agent agents
|
|
|
233
234
|
| **Security** | SQL injection, XSS, hardcoded secrets, auth bypasses, OWASP Top 10 |
|
|
234
235
|
| **Privacy** | GDPR/CCPA/PCI-DSS compliance, PII exposure, data encryption |
|
|
235
236
|
| **SOC 2** | Access control gaps, missing audit logs, encryption, secrets management |
|
|
236
|
-
| **Legal** |
|
|
237
|
+
| **Legal** | Comprehensive app legal: licensing, ToS, accessibility, IP, GDPR/CCPA, e-commerce, COPPA, marketing compliance |
|
|
237
238
|
|
|
238
239
|
### Code Quality (6 agents)
|
|
239
240
|
|
|
@@ -251,7 +252,7 @@ trie-agent agents
|
|
|
251
252
|
| Agent | Description |
|
|
252
253
|
|-------|-------------|
|
|
253
254
|
| **Accessibility** | WCAG 2.1 compliance, keyboard nav, screen readers, color contrast |
|
|
254
|
-
| **Design Engineer** |
|
|
255
|
+
| **Design Engineer** | AI slop detection, verified token systems, contrast validation, design health scoring, domain-aware recommendations |
|
|
255
256
|
| **User Testing** | Simulate happy path, security tester, confused user, impatient user |
|
|
256
257
|
| **Visual QA** | Visual regression, responsive design, cross-browser issues |
|
|
257
258
|
| **E2E** | End-to-end test coverage, user flow validation |
|
|
@@ -266,6 +267,184 @@ trie-agent agents
|
|
|
266
267
|
|
|
267
268
|
---
|
|
268
269
|
|
|
270
|
+
## Legal Agent (v2.0)
|
|
271
|
+
|
|
272
|
+
The Legal Agent has been completely rebuilt to be the most comprehensive legal compliance scanner for app development—covering everything from open source licensing to international data protection.
|
|
273
|
+
|
|
274
|
+
### What It Covers (21 Categories)
|
|
275
|
+
|
|
276
|
+
#### License & Open Source
|
|
277
|
+
|
|
278
|
+
| Issue | Description |
|
|
279
|
+
|-------|-------------|
|
|
280
|
+
| **GPL/Copyleft Detection** | Flags GPL/AGPL code that may require your project to be open-sourced |
|
|
281
|
+
| **AGPL Network Use** | Critical warning for AGPL's SaaS/network copyleft provisions |
|
|
282
|
+
| **License Headers** | Missing SPDX identifiers in source files |
|
|
283
|
+
| **Dependency Audit** | Recommends license-checker tools for third-party packages |
|
|
284
|
+
| **Attribution Requirements** | MIT/BSD/Apache attribution obligations |
|
|
285
|
+
|
|
286
|
+
#### Terms & Legal Documents
|
|
287
|
+
|
|
288
|
+
| Issue | Description |
|
|
289
|
+
|-------|-------------|
|
|
290
|
+
| **Missing ToS** | User registration without Terms of Service reference |
|
|
291
|
+
| **Pre-checked Consent** | ToS acceptance boxes that are pre-checked (unenforceable) |
|
|
292
|
+
| **Privacy Policy** | Data collection without privacy policy disclosure |
|
|
293
|
+
| **CalOPPA** | California Online Privacy Protection Act requirements |
|
|
294
|
+
|
|
295
|
+
#### Third-Party & API Compliance
|
|
296
|
+
|
|
297
|
+
| Issue | Description |
|
|
298
|
+
|-------|-------------|
|
|
299
|
+
| **API Terms** | Detects OpenAI, Stripe, Meta, Google, Twilio, AWS, YouTube usage |
|
|
300
|
+
| **Font Licensing** | Flags font files that may require commercial licenses |
|
|
301
|
+
| **Stock Assets** | Attribution requirements for Unsplash, Pexels, etc. |
|
|
302
|
+
|
|
303
|
+
#### Intellectual Property
|
|
304
|
+
|
|
305
|
+
| Issue | Description |
|
|
306
|
+
|-------|-------------|
|
|
307
|
+
| **Code Attribution** | Stack Overflow code (CC BY-SA), copied code comments |
|
|
308
|
+
| **Trademark Usage** | Apple, Google, Microsoft, Amazon brand guideline compliance |
|
|
309
|
+
|
|
310
|
+
#### Accessibility (Legal)
|
|
311
|
+
|
|
312
|
+
| Issue | Description |
|
|
313
|
+
|-------|-------------|
|
|
314
|
+
| **ADA/Section 508** | Images without alt text, keyboard accessibility |
|
|
315
|
+
| **WCAG Violations** | Color-only indicators, missing video captions |
|
|
316
|
+
|
|
317
|
+
#### Data Protection
|
|
318
|
+
|
|
319
|
+
| Issue | Description |
|
|
320
|
+
|-------|-------------|
|
|
321
|
+
| **GDPR/CCPA** | Consent management, data portability, right to erasure |
|
|
322
|
+
| **Analytics Consent** | Tracking scripts without cookie consent |
|
|
323
|
+
| **Data Retention** | Missing retention policies and deletion procedures |
|
|
324
|
+
|
|
325
|
+
#### E-Commerce & Payments
|
|
326
|
+
|
|
327
|
+
| Issue | Description |
|
|
328
|
+
|-------|-------------|
|
|
329
|
+
| **PCI DSS** | Direct card handling instead of tokenization (Stripe, etc.) |
|
|
330
|
+
| **Price Transparency** | Hidden taxes/fees before checkout |
|
|
331
|
+
| **Subscription Cancellation** | FTC Click-to-Cancel Rule compliance |
|
|
332
|
+
| **Refund Policy** | Missing return/refund policy disclosure |
|
|
333
|
+
|
|
334
|
+
#### Marketing & Advertising
|
|
335
|
+
|
|
336
|
+
| Issue | Description |
|
|
337
|
+
|-------|-------------|
|
|
338
|
+
| **CAN-SPAM** | Marketing emails without unsubscribe mechanism |
|
|
339
|
+
| **TCPA** | SMS marketing without express written consent |
|
|
340
|
+
| **FTC Disclosure** | Affiliate links, sponsored content without disclosure |
|
|
341
|
+
| **Fake Reviews** | Synthetic/AI-generated testimonials |
|
|
342
|
+
|
|
343
|
+
#### Age & Child Safety
|
|
344
|
+
|
|
345
|
+
| Issue | Description |
|
|
346
|
+
|-------|-------------|
|
|
347
|
+
| **COPPA** | Child-directed content without parental consent |
|
|
348
|
+
| **Age Verification** | Alcohol, gambling, adult content without age gates |
|
|
349
|
+
|
|
350
|
+
#### Export & International
|
|
351
|
+
|
|
352
|
+
| Issue | Description |
|
|
353
|
+
|-------|-------------|
|
|
354
|
+
| **Export Controls (EAR)** | Strong encryption with international distribution |
|
|
355
|
+
| **OFAC Sanctions** | Missing sanctions screening for international users |
|
|
356
|
+
| **GDPR (EU)** | EU market without GDPR compliance |
|
|
357
|
+
| **LGPD (Brazil)** | Brazil market without LGPD compliance |
|
|
358
|
+
| **Cross-Border Transfers** | International data transfers without SCCs |
|
|
359
|
+
|
|
360
|
+
#### User Content & Moderation
|
|
361
|
+
|
|
362
|
+
| Issue | Description |
|
|
363
|
+
|-------|-------------|
|
|
364
|
+
| **Content Moderation** | User-generated content without moderation system |
|
|
365
|
+
| **DMCA Safe Harbor** | File uploads without takedown procedures |
|
|
366
|
+
|
|
367
|
+
#### Contracts & Liability
|
|
368
|
+
|
|
369
|
+
| Issue | Description |
|
|
370
|
+
|-------|-------------|
|
|
371
|
+
| **Clickwrap Enforceability** | Agreement acceptance without scroll/read verification |
|
|
372
|
+
| **Consent Recording** | Terms acceptance without timestamp/version logging |
|
|
373
|
+
| **Warranty Disclaimers** | Missing "AS IS" and limitation of liability |
|
|
374
|
+
| **Security Disclosure** | Missing security.txt or vulnerability disclosure process |
|
|
375
|
+
|
|
376
|
+
### Severity Levels
|
|
377
|
+
|
|
378
|
+
| Level | Examples |
|
|
379
|
+
|-------|----------|
|
|
380
|
+
| **Critical** | AGPL in SaaS, PCI violations, TCPA SMS marketing, fake reviews |
|
|
381
|
+
| **Serious** | Missing ToS, no consent management, CAN-SPAM violations, COPPA |
|
|
382
|
+
| **Moderate** | Missing data portability, license attribution, content moderation |
|
|
383
|
+
| **Low** | License headers, security.txt, warranty disclaimers |
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Design Engineer (v2.0)
|
|
388
|
+
|
|
389
|
+
The Design Engineer agent has been rebuilt with a comprehensive 5-layer design intelligence architecture to detect "AI slop" and enforce professional design standards.
|
|
390
|
+
|
|
391
|
+
### What It Detects
|
|
392
|
+
|
|
393
|
+
| Issue | Description |
|
|
394
|
+
|-------|-------------|
|
|
395
|
+
| **Surface Hierarchy** | Dark-on-dark surfaces with <8% lightness delta |
|
|
396
|
+
| **Neon Colors** | Oversaturated colors (>80% saturation) that look amateur |
|
|
397
|
+
| **Purple Overuse** | >40% violet/purple palette (common AI tell) |
|
|
398
|
+
| **Accent Rainbow** | Multiple accent hue families (>1) in same view |
|
|
399
|
+
| **Typography Uniformity** | Single font-weight usage lacking hierarchy |
|
|
400
|
+
| **Missing Modern Fonts** | System-only font stacks without Inter/Geist |
|
|
401
|
+
| **Magic Numbers** | Spacing values not on 4px grid |
|
|
402
|
+
| **Low Contrast** | Text failing WCAG AA (4.5:1 ratio) |
|
|
403
|
+
|
|
404
|
+
### Design Health Score
|
|
405
|
+
|
|
406
|
+
Each scan produces a **Design Health Score** (0-100) with breakdown:
|
|
407
|
+
- Token adoption %
|
|
408
|
+
- Contrast compliance %
|
|
409
|
+
- Spacing consistency %
|
|
410
|
+
- Typography system %
|
|
411
|
+
- Surface hierarchy %
|
|
412
|
+
|
|
413
|
+
### Domain-Aware Recommendations
|
|
414
|
+
|
|
415
|
+
The agent detects your product type and provides tailored guidance:
|
|
416
|
+
|
|
417
|
+
| Domain | Default Mode | Accent Suggestions | Reference |
|
|
418
|
+
|--------|--------------|-------------------|-----------|
|
|
419
|
+
| **Fitness** | Dark | Orange, Tomato, Amber | Strava, Peloton |
|
|
420
|
+
| **Fintech** | Light | Sky, Teal, Grass | Mercury, Stripe |
|
|
421
|
+
| **Creative Tools** | Dark | Violet, Pink, Sky | Figma, Linear |
|
|
422
|
+
| **E-commerce** | Light | Tomato, Pink, Amber | Shopify, Glossier |
|
|
423
|
+
| **Dashboard** | Light | Blue, Indigo, Cyan | Vercel, Linear |
|
|
424
|
+
|
|
425
|
+
### Verified Token Sources
|
|
426
|
+
|
|
427
|
+
Instead of hardcoding colors, the agent references external sources:
|
|
428
|
+
- **Radix Colors** — radix-ui.com/colors (contrast-guaranteed)
|
|
429
|
+
- **Tailwind CSS** — tailwindcss.com/docs (zinc/slate scales)
|
|
430
|
+
- **shadcn/ui** — ui.shadcn.com (production themes)
|
|
431
|
+
|
|
432
|
+
### Exported Constants
|
|
433
|
+
|
|
434
|
+
Design tokens are exported for use in other tools:
|
|
435
|
+
|
|
436
|
+
```typescript
|
|
437
|
+
import {
|
|
438
|
+
DESIGN_TOKEN_SOURCES,
|
|
439
|
+
TYPOGRAPHY_TOKENS,
|
|
440
|
+
SPACING_TOKENS,
|
|
441
|
+
MOTION_DESIGN_TOKENS,
|
|
442
|
+
DOMAIN_DESIGN_RULES,
|
|
443
|
+
} from '@triedotdev/mcp/agents/design-engineer';
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
---
|
|
447
|
+
|
|
269
448
|
## Special Agents
|
|
270
449
|
|
|
271
450
|
These agents are **manually invoked**—they don't run during `trie_scan`.
|