@triedotdev/mcp 1.0.90 → 1.0.92
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 +1 -621
- package/dist/{agent-smith-KIFP2XG3.js → agent-smith-QYDXPFPJ.js} +5 -5
- package/dist/{agent-smith-runner-Z73W5DR5.js → agent-smith-runner-GXGDJTSR.js} +5 -5
- package/dist/cache-manager-7SKX3IGO.js +10 -0
- package/dist/{chunk-A44W6SZJ.js → chunk-3HDWOSLX.js} +55 -33
- package/dist/chunk-3HDWOSLX.js.map +1 -0
- package/dist/{chunk-BBEFK56U.js → chunk-5DQLHWTT.js} +141 -354
- package/dist/chunk-5DQLHWTT.js.map +1 -0
- package/dist/{chunk-GMKPXL4Q.js → chunk-74NPKTZV.js} +2 -2
- package/dist/chunk-76Q5DMYV.js +159 -0
- package/dist/chunk-76Q5DMYV.js.map +1 -0
- package/dist/{chunk-MIL54SAF.js → chunk-D25EIBPO.js} +14 -2
- package/dist/{chunk-MIL54SAF.js.map → chunk-D25EIBPO.js.map} +1 -1
- package/dist/{chunk-FCMAQSV7.js → chunk-FK3DUQ5T.js} +2 -2
- package/dist/chunk-HFQ5ORON.js +279 -0
- package/dist/chunk-HFQ5ORON.js.map +1 -0
- package/dist/{chunk-SH2JIQLB.js → chunk-IYMJTY27.js} +2 -2
- package/dist/{chunk-F3WW4FY2.js → chunk-KWDNYWOR.js} +5 -5
- package/dist/chunk-KWDNYWOR.js.map +1 -0
- package/dist/{chunk-JG2TAVAO.js → chunk-LP4MVJDW.js} +48 -4
- package/dist/chunk-LP4MVJDW.js.map +1 -0
- package/dist/{chunk-D35TI7NY.js → chunk-LT7MKIXU.js} +2 -2
- package/dist/chunk-MURGTWG4.js +279 -0
- package/dist/chunk-MURGTWG4.js.map +1 -0
- package/dist/{chunk-PFWGEHIA.js → chunk-NMGINYYX.js} +4 -4
- package/dist/{chunk-OXZKSR6J.js → chunk-P6XMIUD7.js} +8 -8
- package/dist/{chunk-G4DUCCMT.js → chunk-PSVRO76R.js} +17 -11
- package/dist/chunk-PSVRO76R.js.map +1 -0
- package/dist/{chunk-3HTPH3P2.js → chunk-R6YM6YSV.js} +47 -372
- package/dist/chunk-R6YM6YSV.js.map +1 -0
- package/dist/{chunk-D5VEUZLP.js → chunk-RDOJCRKJ.js} +2 -2
- package/dist/{chunk-QH5XB4K6.js → chunk-SJFJ6GLR.js} +2 -2
- package/dist/{chunk-CFE7FZU7.js → chunk-T5UOH56R.js} +3 -3
- package/dist/{chunk-TBL3FWWG.js → chunk-ZOKQJZKN.js} +13 -11
- package/dist/{chunk-TBL3FWWG.js.map → chunk-ZOKQJZKN.js.map} +1 -1
- package/dist/cli/create-agent.js +3 -3
- package/dist/cli/main.js +47 -28
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +25 -17
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/git-5WJHCMNO.js +29 -0
- package/dist/{goal-manager-7D3GUJVV.js → goal-manager-ESJCJXFS.js} +6 -6
- package/dist/guardian-agent-IXG3YWFP.js +21 -0
- package/dist/index.js +37 -32
- package/dist/index.js.map +1 -1
- package/dist/{issue-store-WTXCQZEA.js → issue-store-JZ2LCQEG.js} +8 -4
- package/dist/progress-PH6NNWZM.js +18 -0
- package/dist/progress-PH6NNWZM.js.map +1 -0
- package/dist/{vibe-code-signatures-X26VXSZ4.js → vibe-code-signatures-MHFK5KXF.js} +3 -3
- package/dist/vibe-code-signatures-MHFK5KXF.js.map +1 -0
- package/dist/{vulnerability-signatures-BER2HRDC.js → vulnerability-signatures-DRIYDFG3.js} +3 -3
- package/dist/vulnerability-signatures-DRIYDFG3.js.map +1 -0
- package/dist/workers/agent-worker.js +9 -8
- package/dist/workers/agent-worker.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-3HTPH3P2.js.map +0 -1
- package/dist/chunk-A44W6SZJ.js.map +0 -1
- package/dist/chunk-BBEFK56U.js.map +0 -1
- package/dist/chunk-F3WW4FY2.js.map +0 -1
- package/dist/chunk-G4DUCCMT.js.map +0 -1
- package/dist/chunk-JG2TAVAO.js.map +0 -1
- package/dist/guardian-agent-QBYV2JLR.js +0 -21
- /package/dist/{agent-smith-KIFP2XG3.js.map → agent-smith-QYDXPFPJ.js.map} +0 -0
- /package/dist/{agent-smith-runner-Z73W5DR5.js.map → agent-smith-runner-GXGDJTSR.js.map} +0 -0
- /package/dist/{goal-manager-7D3GUJVV.js.map → cache-manager-7SKX3IGO.js.map} +0 -0
- /package/dist/{chunk-GMKPXL4Q.js.map → chunk-74NPKTZV.js.map} +0 -0
- /package/dist/{chunk-FCMAQSV7.js.map → chunk-FK3DUQ5T.js.map} +0 -0
- /package/dist/{chunk-SH2JIQLB.js.map → chunk-IYMJTY27.js.map} +0 -0
- /package/dist/{chunk-D35TI7NY.js.map → chunk-LT7MKIXU.js.map} +0 -0
- /package/dist/{chunk-PFWGEHIA.js.map → chunk-NMGINYYX.js.map} +0 -0
- /package/dist/{chunk-OXZKSR6J.js.map → chunk-P6XMIUD7.js.map} +0 -0
- /package/dist/{chunk-D5VEUZLP.js.map → chunk-RDOJCRKJ.js.map} +0 -0
- /package/dist/{chunk-QH5XB4K6.js.map → chunk-SJFJ6GLR.js.map} +0 -0
- /package/dist/{chunk-CFE7FZU7.js.map → chunk-T5UOH56R.js.map} +0 -0
- /package/dist/{guardian-agent-QBYV2JLR.js.map → git-5WJHCMNO.js.map} +0 -0
- /package/dist/{issue-store-WTXCQZEA.js.map → goal-manager-ESJCJXFS.js.map} +0 -0
- /package/dist/{vibe-code-signatures-X26VXSZ4.js.map → guardian-agent-IXG3YWFP.js.map} +0 -0
- /package/dist/{vulnerability-signatures-BER2HRDC.js.map → issue-store-JZ2LCQEG.js.map} +0 -0
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SlackIntegration,
|
|
3
3
|
getGuardian
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PSVRO76R.js";
|
|
5
5
|
import {
|
|
6
6
|
Executor,
|
|
7
7
|
Triager,
|
|
8
8
|
buildSavedPatternIssues,
|
|
9
9
|
detectStack,
|
|
10
|
-
getChangedFilesSinceTimestamp,
|
|
11
10
|
getDetectionRuleAgents,
|
|
12
11
|
getSkillCategories,
|
|
13
12
|
getSkillsByCategory,
|
|
14
|
-
isGitRepo,
|
|
15
13
|
isTrieInitialized,
|
|
16
14
|
loadConfig,
|
|
17
15
|
loadSavedPatterns
|
|
18
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-R6YM6YSV.js";
|
|
17
|
+
import {
|
|
18
|
+
getChangedFilesSinceTimestamp,
|
|
19
|
+
isGitRepo
|
|
20
|
+
} from "./chunk-76Q5DMYV.js";
|
|
19
21
|
import {
|
|
20
22
|
getVulnerabilityStats,
|
|
21
23
|
getVulnerabilityTrie,
|
|
22
24
|
scanForVulnerabilities
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FK3DUQ5T.js";
|
|
24
26
|
import {
|
|
25
27
|
getGuardianState
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T5UOH56R.js";
|
|
27
29
|
import {
|
|
28
30
|
createSkillFromFile,
|
|
29
31
|
getSkillRegistry,
|
|
@@ -32,36 +34,38 @@ import {
|
|
|
32
34
|
listInstalledSkills,
|
|
33
35
|
loadContextState,
|
|
34
36
|
removeGlobalSkill,
|
|
35
|
-
runShellCommand,
|
|
36
37
|
updateContextAfterScan
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5DQLHWTT.js";
|
|
39
|
+
import {
|
|
40
|
+
runShellCommand
|
|
41
|
+
} from "./chunk-MURGTWG4.js";
|
|
38
42
|
import {
|
|
39
43
|
findCrossProjectPatterns
|
|
40
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LT7MKIXU.js";
|
|
45
|
+
import {
|
|
46
|
+
atomicWriteJSON,
|
|
47
|
+
getMemoryStats,
|
|
48
|
+
getRecentIssues,
|
|
49
|
+
searchIssues
|
|
50
|
+
} from "./chunk-LP4MVJDW.js";
|
|
41
51
|
import {
|
|
42
52
|
Trie
|
|
43
53
|
} from "./chunk-6NLHFIYA.js";
|
|
44
54
|
import {
|
|
45
55
|
getOutputManager
|
|
46
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-KWDNYWOR.js";
|
|
47
57
|
import {
|
|
48
58
|
isAIAvailable
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
atomicWriteJSON,
|
|
52
|
-
getMemoryStats,
|
|
53
|
-
getRecentIssues,
|
|
54
|
-
searchIssues
|
|
55
|
-
} from "./chunk-JG2TAVAO.js";
|
|
59
|
+
} from "./chunk-74NPKTZV.js";
|
|
56
60
|
import {
|
|
57
61
|
getTrieDirectory,
|
|
58
62
|
getWorkingDirectory
|
|
59
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RDOJCRKJ.js";
|
|
60
64
|
import {
|
|
61
65
|
ProgressReporter,
|
|
62
66
|
isInteractiveMode,
|
|
63
67
|
setInteractiveMode
|
|
64
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-D25EIBPO.js";
|
|
65
69
|
|
|
66
70
|
// src/utils/streaming.ts
|
|
67
71
|
var shouldSuppressConsole = () => isInteractiveMode();
|
|
@@ -1824,7 +1828,7 @@ var InteractiveDashboard = class {
|
|
|
1824
1828
|
const v = colors.border(box.vertical);
|
|
1825
1829
|
const topBorder = colors.border(box.topLeft + this.line(width - 2) + box.topRight);
|
|
1826
1830
|
const midBorder = colors.border(box.leftT + this.line(width - 2) + box.rightT);
|
|
1827
|
-
const brand = colors.brand("TRIE
|
|
1831
|
+
const brand = colors.brand("TRIE AGENT");
|
|
1828
1832
|
const rightContent = statusText + " " + watchLabel + alertText + " " + time;
|
|
1829
1833
|
const innerWidth = width - 5;
|
|
1830
1834
|
const brandLen = visibleLength(brand);
|
|
@@ -3393,7 +3397,7 @@ var InteractiveDashboard = class {
|
|
|
3393
3397
|
*/
|
|
3394
3398
|
async measureSemanticGoalBaseline(description, workDir) {
|
|
3395
3399
|
try {
|
|
3396
|
-
const { searchIssues: searchIssues2 } = await import("./issue-store-
|
|
3400
|
+
const { searchIssues: searchIssues2 } = await import("./issue-store-JZ2LCQEG.js");
|
|
3397
3401
|
const issues = await searchIssues2("", {
|
|
3398
3402
|
workDir,
|
|
3399
3403
|
limit: 1e3,
|
|
@@ -4504,7 +4508,7 @@ var InteractiveDashboard = class {
|
|
|
4504
4508
|
pLine(" " + colors.header(title));
|
|
4505
4509
|
};
|
|
4506
4510
|
console.log(colors.border(box.topLeft + this.line(w - 2) + box.topRight));
|
|
4507
|
-
pLine(" " + colors.brand("TRIE
|
|
4511
|
+
pLine(" " + colors.brand("TRIE AGENT") + " " + colors.dim("-") + " " + colors.header("KEYBOARD SHORTCUTS"));
|
|
4508
4512
|
console.log(colors.border(box.leftT + this.line(w - 2) + box.rightT));
|
|
4509
4513
|
section("Navigation");
|
|
4510
4514
|
keyLine("Tab", "Cycle main views (overview \u2192 issues \u2192 scouts \u2192 files)");
|
|
@@ -8069,9 +8073,9 @@ var IncrementalScanner = class {
|
|
|
8069
8073
|
* 1. Fast pre-check (mtime + size) - O(1), avoids file read
|
|
8070
8074
|
* 2. Hash comparison - O(n), only if pre-check fails
|
|
8071
8075
|
*/
|
|
8072
|
-
async scanFile(filePath,
|
|
8076
|
+
async scanFile(filePath, forceRescan2 = false) {
|
|
8073
8077
|
const cached = this.cache.files[filePath];
|
|
8074
|
-
if (!
|
|
8078
|
+
if (!forceRescan2 && cached) {
|
|
8075
8079
|
const preCheck = await this.fastPreCheck(filePath);
|
|
8076
8080
|
if (!preCheck.changed) {
|
|
8077
8081
|
return {
|
|
@@ -8091,7 +8095,7 @@ var IncrementalScanner = class {
|
|
|
8091
8095
|
return { vulnerabilities: [], fromCache: false, symbolCount: 0 };
|
|
8092
8096
|
}
|
|
8093
8097
|
const hash = this.computeHash(content);
|
|
8094
|
-
if (!
|
|
8098
|
+
if (!forceRescan2 && cached && cached.hash === hash) {
|
|
8095
8099
|
if (fileStats) {
|
|
8096
8100
|
cached.mtime = fileStats.mtime;
|
|
8097
8101
|
cached.size = fileStats.size;
|
|
@@ -8131,7 +8135,7 @@ var IncrementalScanner = class {
|
|
|
8131
8135
|
* 2. Parallel file scanning with concurrency limit
|
|
8132
8136
|
* 3. Fast pre-check (mtime + size) per file
|
|
8133
8137
|
*/
|
|
8134
|
-
async scanFiles(filePaths,
|
|
8138
|
+
async scanFiles(filePaths, forceRescan2 = false, onFileProgress) {
|
|
8135
8139
|
const startTime = Date.now();
|
|
8136
8140
|
getVulnerabilityTrie();
|
|
8137
8141
|
let filesScanned = 0;
|
|
@@ -8144,7 +8148,7 @@ var IncrementalScanner = class {
|
|
|
8144
8148
|
previousVulnerabilities.set(path, state.vulnerabilities);
|
|
8145
8149
|
}
|
|
8146
8150
|
let gitChangedFiles = null;
|
|
8147
|
-
if (!
|
|
8151
|
+
if (!forceRescan2) {
|
|
8148
8152
|
gitChangedFiles = await this.getGitChangedFiles();
|
|
8149
8153
|
if (gitChangedFiles && !isInteractiveMode()) {
|
|
8150
8154
|
console.error(` Git detected ${gitChangedFiles.size} changed files`);
|
|
@@ -8152,7 +8156,7 @@ var IncrementalScanner = class {
|
|
|
8152
8156
|
}
|
|
8153
8157
|
const scanResults = await this.parallelScan(
|
|
8154
8158
|
filePaths,
|
|
8155
|
-
|
|
8159
|
+
forceRescan2,
|
|
8156
8160
|
gitChangedFiles,
|
|
8157
8161
|
onFileProgress
|
|
8158
8162
|
);
|
|
@@ -8205,7 +8209,7 @@ var IncrementalScanner = class {
|
|
|
8205
8209
|
* Parallel file scanning with concurrency limit
|
|
8206
8210
|
* Processes SCAN_CONCURRENCY files at a time
|
|
8207
8211
|
*/
|
|
8208
|
-
async parallelScan(filePaths,
|
|
8212
|
+
async parallelScan(filePaths, forceRescan2, gitChangedFiles, onFileProgress) {
|
|
8209
8213
|
const results = [];
|
|
8210
8214
|
for (let i = 0; i < filePaths.length; i += SCAN_CONCURRENCY) {
|
|
8211
8215
|
const batch = filePaths.slice(i, i + SCAN_CONCURRENCY);
|
|
@@ -8224,7 +8228,7 @@ var IncrementalScanner = class {
|
|
|
8224
8228
|
};
|
|
8225
8229
|
}
|
|
8226
8230
|
}
|
|
8227
|
-
const result = await this.scanFile(filePath,
|
|
8231
|
+
const result = await this.scanFile(filePath, forceRescan2);
|
|
8228
8232
|
onFileProgress?.(filePath, result.fromCache);
|
|
8229
8233
|
return { filePath, result };
|
|
8230
8234
|
});
|
|
@@ -9253,12 +9257,29 @@ var TrieScanTool = class {
|
|
|
9253
9257
|
this.incrementalScanner = new IncrementalScanner(workDir);
|
|
9254
9258
|
await this.incrementalScanner.loadCache();
|
|
9255
9259
|
}
|
|
9260
|
+
if (cacheEnabled && !forceRescan) {
|
|
9261
|
+
try {
|
|
9262
|
+
const { getGitChangedFiles } = await import("./git-5WJHCMNO.js");
|
|
9263
|
+
const gitChangedFiles = await getGitChangedFiles(workDir);
|
|
9264
|
+
if (gitChangedFiles && gitChangedFiles.length > 0) {
|
|
9265
|
+
const { CacheManager } = await import("./cache-manager-7SKX3IGO.js");
|
|
9266
|
+
const cacheManager = new CacheManager(workDir);
|
|
9267
|
+
const invalidated = await cacheManager.cleanupStaleEntries(gitChangedFiles);
|
|
9268
|
+
if (invalidated > 0 && !isInteractiveMode()) {
|
|
9269
|
+
this.progress.update(`Invalidated ${invalidated} stale cache entries for changed files`);
|
|
9270
|
+
}
|
|
9271
|
+
}
|
|
9272
|
+
} catch (error) {
|
|
9273
|
+
}
|
|
9274
|
+
} else if (forceRescan && !isInteractiveMode()) {
|
|
9275
|
+
this.progress.update("Force rescan enabled - bypassing cache");
|
|
9276
|
+
}
|
|
9256
9277
|
this.progress.startPhase("reading", `Scanning ${validFiles.length} files...`);
|
|
9257
9278
|
const vulnStats = getVulnerabilityStats();
|
|
9258
9279
|
this.progress.update(`${vulnStats.total} vulnerability signatures loaded`);
|
|
9259
9280
|
const trieResult = await this.incrementalScanner.scanFiles(
|
|
9260
9281
|
validFiles,
|
|
9261
|
-
|
|
9282
|
+
forceRescan,
|
|
9262
9283
|
(filePath) => {
|
|
9263
9284
|
if (streamingManager) {
|
|
9264
9285
|
streamingManager.updateCurrentFile(filePath);
|
|
@@ -9538,7 +9559,8 @@ var TrieScanTool = class {
|
|
|
9538
9559
|
agentResults,
|
|
9539
9560
|
validFiles.length,
|
|
9540
9561
|
contextSignals,
|
|
9541
|
-
Date.now() - startTime
|
|
9562
|
+
Date.now() - startTime,
|
|
9563
|
+
validFiles
|
|
9542
9564
|
);
|
|
9543
9565
|
let userConfig;
|
|
9544
9566
|
if (config.user?.name) {
|
|
@@ -10016,4 +10038,4 @@ export {
|
|
|
10016
10038
|
InteractiveDashboard,
|
|
10017
10039
|
TrieScanTool
|
|
10018
10040
|
};
|
|
10019
|
-
//# sourceMappingURL=chunk-
|
|
10041
|
+
//# sourceMappingURL=chunk-3HDWOSLX.js.map
|