@triedotdev/mcp 1.0.80 → 1.0.81
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 +64 -18
- package/dist/{agent-smith-XGYNJUCJ.js → agent-smith-MCKGNWPL.js} +3 -3
- package/dist/{agent-smith-runner-QHYGVRNR.js → agent-smith-runner-GP5HLL7E.js} +3 -3
- package/dist/{chunk-KCAWTZ7P.js → chunk-2BXLPYHR.js} +600 -135
- package/dist/chunk-2BXLPYHR.js.map +1 -0
- package/dist/{chunk-45NUFTNV.js → chunk-7OVM6KEY.js} +29 -2
- package/dist/chunk-7OVM6KEY.js.map +1 -0
- package/dist/chunk-B7CLAOEK.js +532 -0
- package/dist/chunk-B7CLAOEK.js.map +1 -0
- package/dist/{chunk-Z7N7KDK3.js → chunk-DCJKNE2L.js} +2 -1
- package/dist/{chunk-D3F7VKCN.js → chunk-FW435YKY.js} +300 -440
- package/dist/chunk-FW435YKY.js.map +1 -0
- package/dist/{chunk-432E2RYB.js → chunk-MVWRFARH.js} +112 -543
- package/dist/chunk-MVWRFARH.js.map +1 -0
- package/dist/{chunk-EWQF6INU.js → chunk-TBRU735C.js} +2 -2
- package/dist/{chunk-LKXDJESG.js → chunk-YKG4KIY7.js} +3 -3
- package/dist/cli/main.js +184 -60
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +8 -7
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{guardian-agent-UPLAQWJK.js → guardian-agent-GWYDNLWC.js} +7 -3
- package/dist/index.js +83 -16
- package/dist/index.js.map +1 -1
- package/dist/workers/agent-worker.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-432E2RYB.js.map +0 -1
- package/dist/chunk-45NUFTNV.js.map +0 -1
- package/dist/chunk-D3F7VKCN.js.map +0 -1
- package/dist/chunk-KCAWTZ7P.js.map +0 -1
- /package/dist/{agent-smith-XGYNJUCJ.js.map → agent-smith-MCKGNWPL.js.map} +0 -0
- /package/dist/{agent-smith-runner-QHYGVRNR.js.map → agent-smith-runner-GP5HLL7E.js.map} +0 -0
- /package/dist/{chunk-Z7N7KDK3.js.map → chunk-DCJKNE2L.js.map} +0 -0
- /package/dist/{chunk-EWQF6INU.js.map → chunk-TBRU735C.js.map} +0 -0
- /package/dist/{chunk-LKXDJESG.js.map → chunk-YKG4KIY7.js.map} +0 -0
- /package/dist/{guardian-agent-UPLAQWJK.js.map → guardian-agent-GWYDNLWC.js.map} +0 -0
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
- **Sets and tracks goals**: "Reduce login bugs by 50%" then actually measures progress and celebrates wins
|
|
11
11
|
- **Tests your theories**: "Mondays have more bugs" — Trie validates with real data and builds confidence over time
|
|
12
12
|
- **Learns from your incidents**: Train it on your specific patterns, not generic rules that don't fit your prompting
|
|
13
|
+
- **Predicts "Gotchas" proactively**: Ingests Linear tickets and correlates them with past failures to warn you before you even push code
|
|
13
14
|
|
|
14
15
|
## Goal
|
|
15
16
|
|
|
@@ -49,15 +50,15 @@ trie status
|
|
|
49
50
|
When bugs happen, tell Trie about them:
|
|
50
51
|
|
|
51
52
|
```bash
|
|
52
|
-
# Report
|
|
53
|
-
trie tell "Users can't log in after
|
|
53
|
+
# Report a specific incident
|
|
54
|
+
trie tell "Users can't log in after password reset"
|
|
54
55
|
|
|
55
|
-
#
|
|
56
|
-
trie
|
|
56
|
+
# Train Trie from your history (reverts/bugfixes)
|
|
57
|
+
trie learn
|
|
57
58
|
|
|
58
|
-
# Give feedback on
|
|
59
|
-
trie ok #
|
|
60
|
-
trie bad #
|
|
59
|
+
# Give feedback on patterns (staged files)
|
|
60
|
+
trie ok # Pattern is good
|
|
61
|
+
trie bad # Pattern is bad
|
|
61
62
|
```
|
|
62
63
|
|
|
63
64
|
## Why Trie Exists
|
|
@@ -172,6 +173,23 @@ trie watch
|
|
|
172
173
|
|
|
173
174
|
Interactive panels for goals, memory, scout activity, and more.
|
|
174
175
|
|
|
176
|
+
### JIT Defect Prediction ("Gotchas")
|
|
177
|
+
Trie connects to your issue tracker and project history to predict problems *while you work*:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# 1. Connect Linear
|
|
181
|
+
trie linear auth <your-api-key>
|
|
182
|
+
trie linear sync
|
|
183
|
+
|
|
184
|
+
# 2. Learn from history automatically
|
|
185
|
+
trie learn
|
|
186
|
+
|
|
187
|
+
# 3. Predict for current changes
|
|
188
|
+
trie gotcha
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Trie will warn you if your current task correlates with historical regressions or high-risk signatures.
|
|
192
|
+
|
|
175
193
|
### Integration with AI Coding Tools
|
|
176
194
|
|
|
177
195
|
Trie provides MCP (Model Context Protocol) tools for seamless integration with Claude, Cursor, and other AI assistants:
|
|
@@ -237,17 +255,41 @@ trie init
|
|
|
237
255
|
```
|
|
238
256
|
|
|
239
257
|
### API Key Configuration
|
|
240
|
-
|
|
258
|
+
Trie works best with these keys:
|
|
259
|
+
|
|
260
|
+
1. **ANTHROPIC_API_KEY**: Enables AI-powered analysis and explanations.
|
|
261
|
+
2. **LINEAR_API_KEY**: Enables JIT defect prediction by syncing your active tickets.
|
|
262
|
+
|
|
263
|
+
#### 1. Set via Environment (Recommended for MCP)
|
|
264
|
+
Add these to your `.env` file or shell config:
|
|
241
265
|
|
|
242
266
|
```bash
|
|
243
|
-
|
|
244
|
-
|
|
267
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
268
|
+
export LINEAR_API_KEY=lin_api_...
|
|
269
|
+
```
|
|
245
270
|
|
|
246
|
-
|
|
247
|
-
|
|
271
|
+
#### 2. Set via CLI (Persistent per project)
|
|
272
|
+
```bash
|
|
273
|
+
trie linear auth <your-key>
|
|
248
274
|
```
|
|
249
275
|
|
|
250
|
-
|
|
276
|
+
#### 3. Set in MCP Config (Cursor/Claude Code)
|
|
277
|
+
Add to your MCP server configuration:
|
|
278
|
+
|
|
279
|
+
```json
|
|
280
|
+
{
|
|
281
|
+
"mcpServers": {
|
|
282
|
+
"trie": {
|
|
283
|
+
"command": "npx",
|
|
284
|
+
"args": ["-y", "@triedotdev/mcp"],
|
|
285
|
+
"env": {
|
|
286
|
+
"ANTHROPIC_API_KEY": "your-key",
|
|
287
|
+
"LINEAR_API_KEY": "your-key"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
```
|
|
251
293
|
|
|
252
294
|
### AI Tool Integration
|
|
253
295
|
|
|
@@ -260,7 +302,8 @@ Add to your MCP settings:
|
|
|
260
302
|
"command": "trie",
|
|
261
303
|
"args": ["mcp"],
|
|
262
304
|
"env": {
|
|
263
|
-
"ANTHROPIC_API_KEY": "your-api-key-here"
|
|
305
|
+
"ANTHROPIC_API_KEY": "your-api-key-here",
|
|
306
|
+
"LINEAR_API_KEY": "your-key"
|
|
264
307
|
}
|
|
265
308
|
}
|
|
266
309
|
}
|
|
@@ -279,8 +322,8 @@ Cursor has built-in MCP support. Add the above configuration to your Cursor MCP
|
|
|
279
322
|
trie init # Set up Trie in your project
|
|
280
323
|
trie scan # Analyze codebase with intelligent skill selection
|
|
281
324
|
trie status # View project health and memory stats
|
|
282
|
-
trie
|
|
283
|
-
trie
|
|
325
|
+
trie learn # Train Trie from history or feedback
|
|
326
|
+
trie gotcha # Predict problems with current changes
|
|
284
327
|
```
|
|
285
328
|
|
|
286
329
|
### Memory Management
|
|
@@ -288,6 +331,7 @@ trie tell "<msg>" # Report an incident to build memory
|
|
|
288
331
|
trie memory search "auth" # Search incident history
|
|
289
332
|
trie memory stats # View memory statistics
|
|
290
333
|
trie memory purge smart # Clean up old/resolved issues
|
|
334
|
+
trie learn # Extract patterns from reverts/fixes
|
|
291
335
|
```
|
|
292
336
|
|
|
293
337
|
### Goals & Learning
|
|
@@ -295,12 +339,14 @@ trie memory purge smart # Clean up old/resolved issues
|
|
|
295
339
|
trie goal add "<goal>" # Set improvement goal
|
|
296
340
|
trie hypothesis add "<theory>" # Test a hypothesis
|
|
297
341
|
trie goal list # View progress
|
|
342
|
+
trie linear sync # Sync Linear tickets for intent context
|
|
298
343
|
```
|
|
299
344
|
|
|
300
345
|
### Feedback & Training
|
|
301
346
|
```bash
|
|
302
|
-
trie ok #
|
|
303
|
-
trie bad #
|
|
347
|
+
trie ok # Pattern is good (alias: learn ok)
|
|
348
|
+
trie bad # Pattern is bad (alias: learn bad)
|
|
349
|
+
trie learn # Learn from your git history
|
|
304
350
|
trie pause # Disable warnings for 1 hour
|
|
305
351
|
```
|
|
306
352
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentSmithSkill,
|
|
3
3
|
PATTERN_HUNTER_CONFIGS
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TBRU735C.js";
|
|
5
|
+
import "./chunk-DCJKNE2L.js";
|
|
6
6
|
import "./chunk-CM7EHNQK.js";
|
|
7
7
|
import "./chunk-MIL54SAF.js";
|
|
8
8
|
import "./chunk-DGUM43GV.js";
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
AgentSmithSkill,
|
|
12
12
|
PATTERN_HUNTER_CONFIGS
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=agent-smith-
|
|
14
|
+
//# sourceMappingURL=agent-smith-MCKGNWPL.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentSmithSkill
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TBRU735C.js";
|
|
4
4
|
import {
|
|
5
5
|
getAIStatusMessage,
|
|
6
6
|
isAIAvailable,
|
|
7
7
|
runAIAnalysis
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DCJKNE2L.js";
|
|
9
9
|
import {
|
|
10
10
|
getWorkingDirectory
|
|
11
11
|
} from "./chunk-CM7EHNQK.js";
|
|
@@ -570,4 +570,4 @@ ${getAIStatusMessage()}`);
|
|
|
570
570
|
export {
|
|
571
571
|
runAgentSmith
|
|
572
572
|
};
|
|
573
|
-
//# sourceMappingURL=agent-smith-runner-
|
|
573
|
+
//# sourceMappingURL=agent-smith-runner-GP5HLL7E.js.map
|