@triedotdev/mcp 1.0.148 → 1.0.151
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/LICENSE +21 -0
- package/README.md +225 -78
- package/dist/{autonomy-config-ZCOSTMPD.js → autonomy-config-3APNC6QF.js} +3 -3
- package/dist/{chat-store-OJLJCJFI.js → chat-store-HMTDL7I2.js} +3 -3
- package/dist/{chunk-LD7ZEFNY.js → chunk-3KZBC3RJ.js} +2 -2
- package/dist/{chunk-SH7H3WRU.js → chunk-4TQQP7JD.js} +3 -3
- package/dist/{chunk-SH7H3WRU.js.map → chunk-4TQQP7JD.js.map} +1 -1
- package/dist/{chunk-N2EDZTKG.js → chunk-4UDBGYI3.js} +13 -13
- package/dist/{chunk-XTTZAQWJ.js → chunk-74R4XSFB.js} +5 -5
- package/dist/{chunk-T6PS3MXJ.js → chunk-7HYOJ4Q7.js} +8 -8
- package/dist/{chunk-T6PS3MXJ.js.map → chunk-7HYOJ4Q7.js.map} +1 -1
- package/dist/{chunk-3MUCUZ46.js → chunk-ABY2R7OK.js} +3 -3
- package/dist/chunk-ED7PLRQA.js +782 -0
- package/dist/chunk-ED7PLRQA.js.map +1 -0
- package/dist/{chunk-4MJ52WBH.js → chunk-EFWVF6TI.js} +4 -2
- package/dist/chunk-EFWVF6TI.js.map +1 -0
- package/dist/{chunk-23RJT5WT.js → chunk-F7BMFOZ6.js} +2 -2
- package/dist/{chunk-4PAAGLKO.js → chunk-G7Q23IGF.js} +36 -9
- package/dist/{chunk-4PAAGLKO.js.map → chunk-G7Q23IGF.js.map} +1 -1
- package/dist/{chunk-LT6VUZG2.js → chunk-GLY76TSI.js} +3 -3
- package/dist/{chunk-WMDFK7LI.js → chunk-IFBEAOHH.js} +5 -5
- package/dist/{chunk-YEIJW6X6.js → chunk-JIS2OCZR.js} +4 -4
- package/dist/{chunk-FG467PDD.js → chunk-LNUMECBJ.js} +2 -2
- package/dist/{chunk-FPEMP54L.js → chunk-OJXFQRUE.js} +2 -2
- package/dist/{chunk-5KJ4UJOY.js → chunk-QQG42HCI.js} +2 -2
- package/dist/{chunk-7OJ6JIPL.js → chunk-REHKDCI6.js} +7 -150
- package/dist/chunk-REHKDCI6.js.map +1 -0
- package/dist/{chunk-J7CEBSEB.js → chunk-SU3WCAC4.js} +102 -163
- package/dist/chunk-SU3WCAC4.js.map +1 -0
- package/dist/{chunk-4C67GV3O.js → chunk-TCNCNWGV.js} +2 -2
- package/dist/{chunk-NKHO34UZ.js → chunk-TU7D5DEW.js} +2 -2
- package/dist/{chunk-62POBLFC.js → chunk-TWPX6PHF.js} +453 -986
- package/dist/chunk-TWPX6PHF.js.map +1 -0
- package/dist/{chunk-FH335WL5.js → chunk-TWQPOVRA.js} +2 -2
- package/dist/{chunk-YOJGSRZK.js → chunk-V3O7C2LY.js} +2 -2
- package/dist/{chunk-V7AY2EJO.js → chunk-WOTLY5NA.js} +2 -2
- package/dist/cli/create-agent.js +8 -40
- package/dist/cli/create-agent.js.map +1 -1
- package/dist/cli/main.js +121 -164
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +31 -155
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{client-INNE2GGZ.js → client-5L64D5SQ.js} +3 -3
- package/dist/{codebase-index-FMIULFZQ.js → codebase-index-OOE7OAHP.js} +3 -3
- package/dist/{fast-analyzer-MWKCDRGD.js → fast-analyzer-FMU3X4AZ.js} +5 -5
- package/dist/github-ingester-C66ZRUYC.js +11 -0
- package/dist/{goal-manager-ZBWKWEML.js → goal-manager-VTBFFYN4.js} +8 -7
- package/dist/{goal-validator-DA3JQ6JN.js → goal-validator-EM5XVWVC.js} +7 -6
- package/dist/{graph-J4OGTYCO.js → graph-26JPZ3DF.js} +3 -3
- package/dist/{hypothesis-JCUMZKTG.js → hypothesis-4UPE7KXU.js} +8 -7
- package/dist/{incident-index-BWW2UEY7.js → incident-index-H6APJ4S3.js} +3 -3
- package/dist/index.js +116 -397
- package/dist/index.js.map +1 -1
- package/dist/{insight-store-A5XXMFD6.js → insight-store-QEEUQR5L.js} +4 -4
- package/dist/{issue-store-LZWZIGM7.js → issue-store-C6XYENE5.js} +7 -4
- package/dist/ledger-VNA4DX3Z.js +51 -0
- package/dist/linear-ingester-WIUBWF55.js +11 -0
- package/dist/{tiered-storage-VZL7KK64.js → tiered-storage-P6Z3NV2Q.js} +3 -3
- package/dist/trie-agent-GJJJCL6P.js +27 -0
- package/dist/trie-agent-GJJJCL6P.js.map +1 -0
- package/package.json +8 -6
- package/dist/chunk-4MJ52WBH.js.map +0 -1
- package/dist/chunk-62POBLFC.js.map +0 -1
- package/dist/chunk-7OJ6JIPL.js.map +0 -1
- package/dist/chunk-G76DYVGX.js +0 -136
- package/dist/chunk-G76DYVGX.js.map +0 -1
- package/dist/chunk-J7CEBSEB.js.map +0 -1
- package/dist/comprehension-46F7ZNKL.js +0 -821
- package/dist/comprehension-46F7ZNKL.js.map +0 -1
- package/dist/github-ingester-J2ZFYXVE.js +0 -11
- package/dist/linear-ingester-JRDQAIAA.js +0 -11
- package/dist/trie-agent-6A7YBNTQ.js +0 -26
- package/dist/workers/agent-worker.d.ts +0 -2
- package/dist/workers/agent-worker.js +0 -28
- package/dist/workers/agent-worker.js.map +0 -1
- /package/dist/{autonomy-config-ZCOSTMPD.js.map → autonomy-config-3APNC6QF.js.map} +0 -0
- /package/dist/{chat-store-OJLJCJFI.js.map → chat-store-HMTDL7I2.js.map} +0 -0
- /package/dist/{chunk-LD7ZEFNY.js.map → chunk-3KZBC3RJ.js.map} +0 -0
- /package/dist/{chunk-N2EDZTKG.js.map → chunk-4UDBGYI3.js.map} +0 -0
- /package/dist/{chunk-XTTZAQWJ.js.map → chunk-74R4XSFB.js.map} +0 -0
- /package/dist/{chunk-3MUCUZ46.js.map → chunk-ABY2R7OK.js.map} +0 -0
- /package/dist/{chunk-23RJT5WT.js.map → chunk-F7BMFOZ6.js.map} +0 -0
- /package/dist/{chunk-LT6VUZG2.js.map → chunk-GLY76TSI.js.map} +0 -0
- /package/dist/{chunk-WMDFK7LI.js.map → chunk-IFBEAOHH.js.map} +0 -0
- /package/dist/{chunk-YEIJW6X6.js.map → chunk-JIS2OCZR.js.map} +0 -0
- /package/dist/{chunk-FG467PDD.js.map → chunk-LNUMECBJ.js.map} +0 -0
- /package/dist/{chunk-FPEMP54L.js.map → chunk-OJXFQRUE.js.map} +0 -0
- /package/dist/{chunk-5KJ4UJOY.js.map → chunk-QQG42HCI.js.map} +0 -0
- /package/dist/{chunk-4C67GV3O.js.map → chunk-TCNCNWGV.js.map} +0 -0
- /package/dist/{chunk-NKHO34UZ.js.map → chunk-TU7D5DEW.js.map} +0 -0
- /package/dist/{chunk-FH335WL5.js.map → chunk-TWQPOVRA.js.map} +0 -0
- /package/dist/{chunk-YOJGSRZK.js.map → chunk-V3O7C2LY.js.map} +0 -0
- /package/dist/{chunk-V7AY2EJO.js.map → chunk-WOTLY5NA.js.map} +0 -0
- /package/dist/{client-INNE2GGZ.js.map → client-5L64D5SQ.js.map} +0 -0
- /package/dist/{codebase-index-FMIULFZQ.js.map → codebase-index-OOE7OAHP.js.map} +0 -0
- /package/dist/{fast-analyzer-MWKCDRGD.js.map → fast-analyzer-FMU3X4AZ.js.map} +0 -0
- /package/dist/{github-ingester-J2ZFYXVE.js.map → github-ingester-C66ZRUYC.js.map} +0 -0
- /package/dist/{goal-manager-ZBWKWEML.js.map → goal-manager-VTBFFYN4.js.map} +0 -0
- /package/dist/{goal-validator-DA3JQ6JN.js.map → goal-validator-EM5XVWVC.js.map} +0 -0
- /package/dist/{graph-J4OGTYCO.js.map → graph-26JPZ3DF.js.map} +0 -0
- /package/dist/{hypothesis-JCUMZKTG.js.map → hypothesis-4UPE7KXU.js.map} +0 -0
- /package/dist/{incident-index-BWW2UEY7.js.map → incident-index-H6APJ4S3.js.map} +0 -0
- /package/dist/{insight-store-A5XXMFD6.js.map → insight-store-QEEUQR5L.js.map} +0 -0
- /package/dist/{issue-store-LZWZIGM7.js.map → issue-store-C6XYENE5.js.map} +0 -0
- /package/dist/{linear-ingester-JRDQAIAA.js.map → ledger-VNA4DX3Z.js.map} +0 -0
- /package/dist/{tiered-storage-VZL7KK64.js.map → linear-ingester-WIUBWF55.js.map} +0 -0
- /package/dist/{trie-agent-6A7YBNTQ.js.map → tiered-storage-P6Z3NV2Q.js.map} +0 -0
package/dist/cli/yolo-daemon.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
InteractiveDashboard,
|
|
4
|
-
StreamingManager
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-N2EDZTKG.js";
|
|
4
|
+
StreamingManager
|
|
5
|
+
} from "../chunk-SU3WCAC4.js";
|
|
6
|
+
import "../chunk-F7BMFOZ6.js";
|
|
7
|
+
import "../chunk-4UDBGYI3.js";
|
|
9
8
|
import "../chunk-TIMIKBY2.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-JIS2OCZR.js";
|
|
10
|
+
import "../chunk-74R4XSFB.js";
|
|
11
|
+
import "../chunk-ABY2R7OK.js";
|
|
13
12
|
import {
|
|
14
13
|
isTrieInitialized
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-G7Q23IGF.js";
|
|
15
|
+
import "../chunk-TU7D5DEW.js";
|
|
16
|
+
import "../chunk-TCNCNWGV.js";
|
|
18
17
|
import "../chunk-ZV2K6M7T.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-IFBEAOHH.js";
|
|
19
|
+
import "../chunk-TWQPOVRA.js";
|
|
20
|
+
import "../chunk-7HYOJ4Q7.js";
|
|
21
|
+
import "../chunk-OJXFQRUE.js";
|
|
22
|
+
import "../chunk-GLY76TSI.js";
|
|
24
23
|
import "../chunk-F4NJ4CBP.js";
|
|
25
24
|
import "../chunk-IXO4G4D3.js";
|
|
26
25
|
import "../chunk-6NLHFIYA.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-LNUMECBJ.js";
|
|
27
|
+
import "../chunk-QQG42HCI.js";
|
|
28
|
+
import "../chunk-ED7PLRQA.js";
|
|
29
|
+
import "../chunk-EFWVF6TI.js";
|
|
30
|
+
import "../chunk-TWPX6PHF.js";
|
|
31
31
|
import "../chunk-43X6JBEM.js";
|
|
32
32
|
import {
|
|
33
33
|
getWorkingDirectory
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-4TQQP7JD.js";
|
|
35
35
|
import {
|
|
36
36
|
isInteractiveMode,
|
|
37
37
|
setInteractiveMode
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
import "../chunk-DGUM43GV.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/yolo-daemon.ts
|
|
42
|
-
import { watch, existsSync, statSync
|
|
42
|
+
import { watch, existsSync, statSync } from "fs";
|
|
43
43
|
import { readdir } from "fs/promises";
|
|
44
44
|
import { join, extname, basename, resolve } from "path";
|
|
45
45
|
var WATCH_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
@@ -71,7 +71,6 @@ var SKIP_DIRS = /* @__PURE__ */ new Set([
|
|
|
71
71
|
var WatchDaemon = class {
|
|
72
72
|
config;
|
|
73
73
|
stats;
|
|
74
|
-
scanTool = new TrieScanTool();
|
|
75
74
|
watchers = /* @__PURE__ */ new Map();
|
|
76
75
|
pendingFiles = /* @__PURE__ */ new Set();
|
|
77
76
|
debounceTimer = null;
|
|
@@ -101,12 +100,12 @@ var WatchDaemon = class {
|
|
|
101
100
|
}
|
|
102
101
|
process.exit(1);
|
|
103
102
|
}
|
|
104
|
-
this.log("info", "Starting Trie
|
|
103
|
+
this.log("info", "Starting Trie Watch", {
|
|
105
104
|
directory: this.config.directory,
|
|
106
105
|
debounceMs: this.config.debounceMs
|
|
107
106
|
});
|
|
108
107
|
if (!isInteractiveMode()) {
|
|
109
|
-
console.error("\
|
|
108
|
+
console.error("\nTrie is watching for goal violations.\n");
|
|
110
109
|
}
|
|
111
110
|
if (!existsSync(this.config.directory)) {
|
|
112
111
|
this.log("error", "Directory not found", { directory: this.config.directory });
|
|
@@ -118,17 +117,11 @@ var WatchDaemon = class {
|
|
|
118
117
|
this.streamingManager.subscribe((update) => this.dashboard?.handleStreamUpdate(update));
|
|
119
118
|
await this.dashboard.start();
|
|
120
119
|
this.streamingManager.reportWatchStatus({
|
|
121
|
-
watching:
|
|
120
|
+
watching: true,
|
|
122
121
|
directories: 0,
|
|
123
122
|
debounceMs: this.config.debounceMs
|
|
124
123
|
});
|
|
125
124
|
}
|
|
126
|
-
this.log("info", "Running initial scan...");
|
|
127
|
-
await this.runScan(this.config.files);
|
|
128
|
-
if (this.config.runOnce) {
|
|
129
|
-
this.log("info", "Run-once mode: exiting after initial scan", { ...this.stats });
|
|
130
|
-
process.exit(this.stats.issuesFound > 0 ? 1 : 0);
|
|
131
|
-
}
|
|
132
125
|
await this.watchDirectory(this.config.directory);
|
|
133
126
|
this.streamingManager?.reportWatchStatus({
|
|
134
127
|
watching: true,
|
|
@@ -141,89 +134,6 @@ var WatchDaemon = class {
|
|
|
141
134
|
process.on("SIGINT", () => this.shutdown("SIGINT"));
|
|
142
135
|
process.on("SIGTERM", () => this.shutdown("SIGTERM"));
|
|
143
136
|
}
|
|
144
|
-
/**
|
|
145
|
-
* Run a scan on all files or specific files
|
|
146
|
-
*/
|
|
147
|
-
async runScan(files) {
|
|
148
|
-
try {
|
|
149
|
-
const scanArgs = files ? { files } : { directory: this.config.directory };
|
|
150
|
-
if (this.config.format) scanArgs.format = this.config.format;
|
|
151
|
-
if (this.config.output) scanArgs.output = this.config.output;
|
|
152
|
-
if (this.config.parallel !== void 0) scanArgs.parallel = this.config.parallel;
|
|
153
|
-
if (this.config.cache !== void 0) scanArgs.cache = this.config.cache;
|
|
154
|
-
if (this.config.maxConcurrency) scanArgs.maxConcurrency = this.config.maxConcurrency;
|
|
155
|
-
if (this.config.streaming !== void 0) scanArgs.streaming = this.config.streaming;
|
|
156
|
-
if (this.config.interactive !== void 0) scanArgs.interactive = this.config.interactive;
|
|
157
|
-
if (this.config.workers !== void 0) scanArgs.workers = this.config.workers;
|
|
158
|
-
if (this.config.timeoutMs) scanArgs.timeoutMs = this.config.timeoutMs;
|
|
159
|
-
if (this.config.forceScouts) scanArgs.forceAgents = this.config.forceScouts;
|
|
160
|
-
if (this.dashboard && typeof this.dashboard.getAgentConfig === "function") {
|
|
161
|
-
const agentConfig = this.dashboard.getAgentConfig();
|
|
162
|
-
scanArgs.parallel = agentConfig.performance.parallel;
|
|
163
|
-
scanArgs.cache = agentConfig.performance.cache;
|
|
164
|
-
scanArgs.maxConcurrency = agentConfig.performance.maxConcurrency;
|
|
165
|
-
scanArgs.timeoutMs = agentConfig.performance.timeoutMs;
|
|
166
|
-
scanArgs.workers = agentConfig.performance.workers;
|
|
167
|
-
scanArgs.streaming = agentConfig.performance.streaming;
|
|
168
|
-
}
|
|
169
|
-
if (this.streamingManager) scanArgs.streamingManager = this.streamingManager;
|
|
170
|
-
if (this.dashboard) scanArgs.dashboard = this.dashboard;
|
|
171
|
-
const result = await this.scanTool.execute(scanArgs);
|
|
172
|
-
const resultText = result.content?.[0]?.text || "";
|
|
173
|
-
if (resultText && this.config.runOnce && !isInteractiveMode()) {
|
|
174
|
-
console.log(resultText);
|
|
175
|
-
}
|
|
176
|
-
let issueCount = 0;
|
|
177
|
-
if (this.config.format === "json" && this.config.output && existsSync(this.config.output)) {
|
|
178
|
-
try {
|
|
179
|
-
const report = JSON.parse(readFileSync(this.config.output, "utf-8"));
|
|
180
|
-
issueCount = report?.results?.totalIssues ?? 0;
|
|
181
|
-
} catch {
|
|
182
|
-
issueCount = 0;
|
|
183
|
-
}
|
|
184
|
-
} else {
|
|
185
|
-
const patterns = [
|
|
186
|
-
/(\d+)\s+actionable\s+issues?\s+found/i,
|
|
187
|
-
// "30 actionable issues found"
|
|
188
|
-
/(\d+)\s+Issues?\s+Found/i,
|
|
189
|
-
// "30 Issues Found"
|
|
190
|
-
/Found\s+(\d+)\s+issues?/i,
|
|
191
|
-
// "Found 30 issues"
|
|
192
|
-
/\[COMPLETE\]\s+(\d+)\s+issues?/i,
|
|
193
|
-
// "[COMPLETE] 30 issues"
|
|
194
|
-
/(\d+)\s+total/i
|
|
195
|
-
// "30 total" (fallback)
|
|
196
|
-
];
|
|
197
|
-
for (const pattern of patterns) {
|
|
198
|
-
const match = resultText.match(pattern);
|
|
199
|
-
if (match && match[1]) {
|
|
200
|
-
issueCount = parseInt(match[1], 10);
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
this.stats.filesScanned += files?.length || 1;
|
|
206
|
-
this.stats.issuesFound += issueCount;
|
|
207
|
-
if (issueCount > 0) {
|
|
208
|
-
const criticalMatch = resultText.match(/(\d+)\s+critical/i);
|
|
209
|
-
const seriousMatch = resultText.match(/(\d+)\s+serious|(\d+)\s+important/i);
|
|
210
|
-
if (criticalMatch && criticalMatch[1] && parseInt(criticalMatch[1], 10) > 0) {
|
|
211
|
-
this.log("error", "Critical issues detected", { count: parseInt(criticalMatch[1], 10) });
|
|
212
|
-
}
|
|
213
|
-
if (seriousMatch && (seriousMatch[1] || seriousMatch[2])) {
|
|
214
|
-
const count = parseInt(seriousMatch[1] || seriousMatch[2] || "0", 10);
|
|
215
|
-
if (count > 0) {
|
|
216
|
-
this.log("warn", "Serious issues detected", { count });
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
} catch (error) {
|
|
221
|
-
this.stats.errors++;
|
|
222
|
-
this.log("error", "Scan failed", {
|
|
223
|
-
error: error instanceof Error ? error.message : String(error)
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
137
|
/**
|
|
228
138
|
* Watch a directory recursively
|
|
229
139
|
*/
|
|
@@ -277,7 +187,7 @@ var WatchDaemon = class {
|
|
|
277
187
|
count: files.length,
|
|
278
188
|
files: files.map((f) => basename(f))
|
|
279
189
|
});
|
|
280
|
-
|
|
190
|
+
this.log("info", "File changes detected", { files: files.length });
|
|
281
191
|
this.isProcessing = false;
|
|
282
192
|
}
|
|
283
193
|
/**
|
|
@@ -334,7 +244,6 @@ function parseArgs() {
|
|
|
334
244
|
directory: getWorkingDirectory(void 0, true),
|
|
335
245
|
debounceMs: 1e3,
|
|
336
246
|
jsonOutput: false,
|
|
337
|
-
runOnce: false,
|
|
338
247
|
// Default to interactive mode for TTY terminals
|
|
339
248
|
interactive: process.stdout.isTTY === true
|
|
340
249
|
};
|
|
@@ -415,16 +324,6 @@ function parseArgs() {
|
|
|
415
324
|
i++;
|
|
416
325
|
}
|
|
417
326
|
break;
|
|
418
|
-
case "--scouts":
|
|
419
|
-
case "--agents":
|
|
420
|
-
if (nextArg) {
|
|
421
|
-
config2.forceScouts = nextArg.split(",").map((s) => s.trim()).filter(Boolean);
|
|
422
|
-
i++;
|
|
423
|
-
}
|
|
424
|
-
break;
|
|
425
|
-
case "--once":
|
|
426
|
-
config2.runOnce = true;
|
|
427
|
-
break;
|
|
428
327
|
case "--users":
|
|
429
328
|
case "-u":
|
|
430
329
|
config2.userCount = parseInt(nextArg || "250", 10);
|
|
@@ -433,49 +332,26 @@ function parseArgs() {
|
|
|
433
332
|
case "--help":
|
|
434
333
|
case "-h":
|
|
435
334
|
console.log(`
|
|
436
|
-
Trie
|
|
335
|
+
Trie Watch - File Watcher
|
|
437
336
|
|
|
438
337
|
USAGE:
|
|
439
|
-
trie watch [options] Watch for changes
|
|
440
|
-
trie scan [options] Scan once and exit
|
|
338
|
+
trie watch [options] Watch for changes
|
|
441
339
|
|
|
442
340
|
OPTIONS:
|
|
443
|
-
--dir, -d <path> Directory to watch
|
|
341
|
+
--dir, -d <path> Directory to watch (default: current directory)
|
|
444
342
|
--debounce, -D <ms> Debounce time in ms (default: 1000)
|
|
445
|
-
--scouts <list> Comma-separated scouts to run (e.g., security,legal)
|
|
446
|
-
--agents <list> Alias for --scouts (backward compatibility)
|
|
447
|
-
--files <list> Comma-separated file list to scan
|
|
448
343
|
--users, -u <count> User count for cost estimation (default: 250)
|
|
449
344
|
|
|
450
345
|
OUTPUT:
|
|
451
346
|
--json Output as JSON (for log aggregation)
|
|
452
|
-
--format <text|json> Scan output format
|
|
453
|
-
--output <path> Output file path for json format
|
|
454
|
-
|
|
455
|
-
PERFORMANCE:
|
|
456
|
-
--parallel Enable parallel execution
|
|
457
|
-
--no-parallel Disable parallel execution
|
|
458
|
-
--cache Enable result caching
|
|
459
|
-
--no-cache Disable result caching
|
|
460
|
-
--force-rescan Force rescan (bypasses cache, same as --no-cache)
|
|
461
|
-
--max-concurrency <n> Max parallel scouts
|
|
462
|
-
--streaming Enable streaming updates
|
|
463
|
-
--no-streaming Disable streaming updates
|
|
464
|
-
--workers Use worker threads for scouts
|
|
465
|
-
--no-workers Disable worker threads
|
|
466
|
-
--timeout <ms> Scout timeout in ms
|
|
467
347
|
|
|
468
348
|
DISPLAY:
|
|
469
349
|
--interactive Enable interactive dashboard (default for TTY)
|
|
470
350
|
--no-interactive Disable interactive dashboard (for CI/scripts)
|
|
471
351
|
|
|
472
352
|
EXAMPLES:
|
|
473
|
-
trie watch
|
|
474
|
-
trie
|
|
475
|
-
trie scan --scouts security,legal # Scan with specific scouts
|
|
476
|
-
trie scan --users 1000 --industry fintech # Scale for fintech with 1K users
|
|
477
|
-
trie watch --no-interactive # CI mode: watch without dashboard
|
|
478
|
-
trie scan --json --output report.json
|
|
353
|
+
trie watch # Watch current directory
|
|
354
|
+
trie watch --no-interactive # CI mode: watch without dashboard
|
|
479
355
|
`);
|
|
480
356
|
process.exit(0);
|
|
481
357
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli/yolo-daemon.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Trie Watch - File Watcher & Scanner\n * \n * Watches a directory and reports issues as they occur.\n * Also handles one-shot scanning via --once flag.\n * \n * Usage:\n * trie watch [options] # Watch for changes\n * trie scan [options] # Scan once and exit\n * \n * See `trie watch --help` for all options.\n */\n\nimport { watch, existsSync, statSync, readFileSync } from 'fs';\nimport { readdir } from 'fs/promises';\nimport { join, extname, basename, resolve } from 'path';\nimport { TrieScanTool } from '../tools/scan.js';\nimport { StreamingManager } from '../utils/streaming.js';\nimport { InteractiveDashboard } from './interactive-dashboard.js';\nimport { getWorkingDirectory } from '../utils/workspace.js';\nimport { isInteractiveMode, setInteractiveMode } from '../utils/progress.js';\nimport { isTrieInitialized } from '../utils/trie-init.js';\n\n// File extensions to watch\nconst WATCH_EXTENSIONS = new Set([\n '.ts', '.tsx', '.js', '.jsx', '.mjs',\n '.vue', '.svelte', '.astro',\n '.py', '.go', '.rs'\n]);\n\n// Directories to skip\nconst SKIP_DIRS = new Set([\n 'node_modules', '.git', 'dist', 'build', '.next', '.nuxt',\n 'coverage', '.turbo', '.cache', '__pycache__', '.venv'\n]);\n\ninterface DaemonConfig {\n directory: string;\n debounceMs: number;\n jsonOutput: boolean;\n runOnce: boolean;\n format?: 'text' | 'json';\n output?: string;\n parallel?: boolean;\n cache?: boolean;\n maxConcurrency?: number;\n streaming?: boolean;\n interactive?: boolean;\n workers?: boolean;\n timeoutMs?: number;\n files?: string[];\n /** Comma-separated list of scouts to run (e.g., \"security,legal\") */\n forceScouts?: string[];\n /** User count for cost estimation (default: 250) */\n userCount?: number;\n}\n\ninterface DaemonStats {\n filesScanned: number;\n issuesFound: number;\n errors: number;\n startTime: number;\n}\n\nclass WatchDaemon {\n private config: DaemonConfig;\n private stats: DaemonStats;\n private scanTool = new TrieScanTool();\n private watchers: Map<string, ReturnType<typeof watch>> = new Map();\n private pendingFiles: Set<string> = new Set();\n private debounceTimer: NodeJS.Timeout | null = null;\n private isProcessing = false;\n private streamingManager: StreamingManager | undefined = undefined;\n private dashboard: InteractiveDashboard | undefined = undefined;\n\n constructor(config: DaemonConfig) {\n this.config = config;\n this.stats = {\n filesScanned: 0,\n issuesFound: 0,\n errors: 0,\n startTime: Date.now()\n };\n }\n\n /**\n * Start the daemon\n */\n async start(): Promise<void> {\n // Enable global interactive mode when TTY and not explicitly disabled\n if (this.config.interactive !== false && process.stdout.isTTY) {\n setInteractiveMode(true);\n }\n if (!isTrieInitialized(this.config.directory)) {\n if (!isInteractiveMode()) {\n console.error('Trie is not initialized for this project.');\n console.error('Run `trie init` first.');\n }\n process.exit(1);\n }\n\n this.log('info', 'Starting Trie Agent', {\n directory: this.config.directory,\n debounceMs: this.config.debounceMs\n });\n if (!isInteractiveMode()) {\n console.error('\\nYour Trie agent is watching over your codebase.\\n');\n }\n\n // Validate directory\n if (!existsSync(this.config.directory)) {\n this.log('error', 'Directory not found', { directory: this.config.directory });\n process.exit(1);\n }\n\n // Start interactive dashboard if enabled\n if (isInteractiveMode()) {\n this.streamingManager = new StreamingManager();\n this.dashboard = new InteractiveDashboard();\n this.streamingManager.subscribe(update => this.dashboard?.handleStreamUpdate(update));\n await this.dashboard.start();\n this.streamingManager.reportWatchStatus({\n watching: !this.config.runOnce,\n directories: 0,\n debounceMs: this.config.debounceMs\n });\n }\n\n // Run initial scan\n this.log('info', 'Running initial scan...');\n await this.runScan(this.config.files);\n\n // If run-once mode, exit after initial scan\n if (this.config.runOnce) {\n this.log('info', 'Run-once mode: exiting after initial scan', { ...this.stats });\n process.exit(this.stats.issuesFound > 0 ? 1 : 0);\n }\n\n // Start watching\n await this.watchDirectory(this.config.directory);\n this.streamingManager?.reportWatchStatus({\n watching: true,\n directories: this.watchers.size,\n debounceMs: this.config.debounceMs\n });\n this.log('info', 'Watching for changes...', { \n directories: this.watchers.size \n });\n\n // Handle graceful shutdown\n process.on('SIGINT', () => this.shutdown('SIGINT'));\n process.on('SIGTERM', () => this.shutdown('SIGTERM'));\n }\n\n /**\n * Run a scan on all files or specific files\n */\n private async runScan(files?: string[]): Promise<void> {\n try {\n const scanArgs: Record<string, unknown> = files\n ? { files }\n : { directory: this.config.directory };\n\n if (this.config.format) scanArgs.format = this.config.format;\n if (this.config.output) scanArgs.output = this.config.output;\n if (this.config.parallel !== undefined) scanArgs.parallel = this.config.parallel;\n if (this.config.cache !== undefined) scanArgs.cache = this.config.cache;\n if (this.config.maxConcurrency) scanArgs.maxConcurrency = this.config.maxConcurrency;\n if (this.config.streaming !== undefined) scanArgs.streaming = this.config.streaming;\n if (this.config.interactive !== undefined) scanArgs.interactive = this.config.interactive;\n if (this.config.workers !== undefined) scanArgs.workers = this.config.workers;\n if (this.config.timeoutMs) scanArgs.timeoutMs = this.config.timeoutMs;\n if (this.config.forceScouts) scanArgs.forceAgents = this.config.forceScouts;\n if (this.dashboard && typeof this.dashboard.getAgentConfig === 'function') {\n const agentConfig = this.dashboard.getAgentConfig();\n scanArgs.parallel = agentConfig.performance.parallel;\n scanArgs.cache = agentConfig.performance.cache;\n scanArgs.maxConcurrency = agentConfig.performance.maxConcurrency;\n scanArgs.timeoutMs = agentConfig.performance.timeoutMs;\n scanArgs.workers = agentConfig.performance.workers;\n scanArgs.streaming = agentConfig.performance.streaming;\n }\n\n if (this.streamingManager) scanArgs.streamingManager = this.streamingManager;\n if (this.dashboard) scanArgs.dashboard = this.dashboard;\n\n const result = await this.scanTool.execute(scanArgs);\n const resultText = result.content?.[0]?.text || '';\n\n // PRINT THE FULL REPORT TO STDOUT (for terminal/chat display)\n if (resultText && this.config.runOnce && !isInteractiveMode()) {\n console.log(resultText);\n }\n\n // Parse results - try multiple patterns to extract issue count\n let issueCount = 0;\n if (this.config.format === 'json' && this.config.output && existsSync(this.config.output)) {\n try {\n const report = JSON.parse(readFileSync(this.config.output, 'utf-8'));\n issueCount = report?.results?.totalIssues ?? 0;\n } catch {\n issueCount = 0;\n }\n } else {\n // Try multiple patterns to catch issue counts\n const patterns = [\n /(\\d+)\\s+actionable\\s+issues?\\s+found/i, // \"30 actionable issues found\"\n /(\\d+)\\s+Issues?\\s+Found/i, // \"30 Issues Found\"\n /Found\\s+(\\d+)\\s+issues?/i, // \"Found 30 issues\"\n /\\[COMPLETE\\]\\s+(\\d+)\\s+issues?/i, // \"[COMPLETE] 30 issues\"\n /(\\d+)\\s+total/i, // \"30 total\" (fallback)\n ];\n \n for (const pattern of patterns) {\n const match = resultText.match(pattern);\n if (match && match[1]) {\n issueCount = parseInt(match[1], 10);\n break;\n }\n }\n }\n\n this.stats.filesScanned += files?.length || 1;\n this.stats.issuesFound += issueCount;\n\n // Don't log \"No issues found\" after a full scan that displayed a report\n // The report already shows the issue count prominently\n if (issueCount > 0) {\n // Parse severity breakdown for additional logging\n const criticalMatch = resultText.match(/(\\d+)\\s+critical/i);\n const seriousMatch = resultText.match(/(\\d+)\\s+serious|(\\d+)\\s+important/i);\n\n if (criticalMatch && criticalMatch[1] && parseInt(criticalMatch[1], 10) > 0) {\n this.log('error', 'Critical issues detected', { count: parseInt(criticalMatch[1], 10) });\n }\n if (seriousMatch && (seriousMatch[1] || seriousMatch[2])) {\n const count = parseInt(seriousMatch[1] || seriousMatch[2] || '0', 10);\n if (count > 0) {\n this.log('warn', 'Serious issues detected', { count });\n }\n }\n }\n // NOTE: Removed the \"No issues found\" log because it was confusing\n // when printed after a full scan report that already shows issue counts\n } catch (error) {\n this.stats.errors++;\n this.log('error', 'Scan failed', { \n error: error instanceof Error ? error.message : String(error) \n });\n }\n }\n\n /**\n * Watch a directory recursively\n */\n private async watchDirectory(dir: string): Promise<void> {\n if (!existsSync(dir)) return;\n\n try {\n const stat = statSync(dir);\n if (!stat.isDirectory()) return;\n\n const dirName = basename(dir);\n if (SKIP_DIRS.has(dirName) || dirName.startsWith('.')) return;\n\n // Watch this directory\n const watcher = watch(dir, { persistent: true }, (_eventType, filename) => {\n if (!filename) return;\n\n const fullPath = join(dir, filename);\n const ext = extname(filename).toLowerCase();\n\n if (!WATCH_EXTENSIONS.has(ext)) return;\n if (!existsSync(fullPath)) return;\n\n this.pendingFiles.add(fullPath);\n this.streamingManager?.reportWatchChange(fullPath);\n this.scheduleProcessing();\n });\n\n this.watchers.set(dir, watcher);\n\n // Recursively watch subdirectories\n const entries = await readdir(dir, { withFileTypes: true });\n for (const entry of entries) {\n if (entry.isDirectory()) {\n await this.watchDirectory(join(dir, entry.name));\n }\n }\n } catch (error) {\n // Skip inaccessible directories\n }\n }\n\n /**\n * Schedule processing of pending files (debounced)\n */\n private scheduleProcessing(): void {\n if (this.debounceTimer) {\n clearTimeout(this.debounceTimer);\n }\n\n this.debounceTimer = setTimeout(() => {\n this.processPendingFiles();\n }, this.config.debounceMs);\n }\n\n /**\n * Process all pending files\n */\n private async processPendingFiles(): Promise<void> {\n if (this.isProcessing || this.pendingFiles.size === 0) return;\n\n this.isProcessing = true;\n const files = Array.from(this.pendingFiles);\n this.pendingFiles.clear();\n\n this.log('info', 'Processing changed files', { \n count: files.length,\n files: files.map(f => basename(f))\n });\n\n await this.runScan(files);\n this.isProcessing = false;\n }\n\n\n /**\n * Log a message\n */\n private log(level: 'info' | 'warn' | 'error', message: string, data?: Record<string, unknown>): void {\n const timestamp = new Date().toISOString();\n const uptime = Math.round((Date.now() - this.stats.startTime) / 1000);\n\n // Suppress human-readable logs when interactive dashboard is active\n if (!this.config.jsonOutput && isInteractiveMode()) {\n return;\n }\n\n if (this.config.jsonOutput) {\n console.log(JSON.stringify({\n timestamp,\n level,\n message,\n uptime,\n ...data,\n stats: this.stats\n }));\n } else {\n const levelEmoji = { info: '[i]', warn: '[!]', error: '[X]' }[level];\n const dataStr = data ? ` ${JSON.stringify(data)}` : '';\n console.log(`[${timestamp}] ${levelEmoji} ${message}${dataStr}`);\n }\n }\n\n /**\n * Graceful shutdown\n */\n private shutdown(signal: string): void {\n this.log('info', 'Shutting down', { signal, stats: this.stats });\n\n // Close all watchers\n for (const watcher of this.watchers.values()) {\n watcher.close();\n }\n\n // Clear timers\n if (this.debounceTimer) {\n clearTimeout(this.debounceTimer);\n }\n\n if (this.streamingManager) {\n this.streamingManager.reportWatchStatus({\n watching: false,\n directories: 0\n });\n }\n if (this.dashboard) {\n this.dashboard.stop();\n }\n\n process.exit(0);\n }\n}\n\n/**\n * Parse command line arguments\n */\nfunction parseArgs(): DaemonConfig {\n const args = process.argv.slice(2);\n const config: DaemonConfig = {\n // Silent mode for initial workspace detection (TUI will handle display)\n directory: getWorkingDirectory(undefined, true),\n debounceMs: 1000,\n jsonOutput: false,\n runOnce: false,\n // Default to interactive mode for TTY terminals\n interactive: process.stdout.isTTY === true\n };\n\n for (let i = 0; i < args.length; i++) {\n const arg = args[i];\n const nextArg = args[i + 1];\n\n switch (arg) {\n case '--dir':\n case '-d':\n config.directory = resolve(nextArg || '.');\n i++;\n break;\n case '--debounce':\n case '-D':\n config.debounceMs = parseInt(nextArg || '1000', 10);\n i++;\n break;\n case '--json':\n config.jsonOutput = true;\n break;\n case '--format':\n if (nextArg) {\n config.format = nextArg === 'json' ? 'json' : 'text';\n i++;\n }\n break;\n case '--output':\n if (nextArg) {\n config.output = nextArg;\n i++;\n }\n break;\n case '--parallel':\n config.parallel = true;\n break;\n case '--no-parallel':\n config.parallel = false;\n break;\n case '--cache':\n config.cache = true;\n break;\n case '--no-cache':\n config.cache = false;\n break;\n case '--force-rescan':\n case '--force':\n config.cache = false; // Force rescan by disabling cache\n break;\n case '--max-concurrency':\n config.maxConcurrency = parseInt(nextArg || '4', 10);\n i++;\n break;\n case '--streaming':\n config.streaming = true;\n break;\n case '--no-streaming':\n config.streaming = false;\n break;\n case '--interactive':\n config.interactive = true;\n break;\n case '--no-interactive':\n config.interactive = false;\n break;\n case '--workers':\n config.workers = true;\n break;\n case '--no-workers':\n config.workers = false;\n break;\n case '--timeout':\n config.timeoutMs = parseInt(nextArg || '120000', 10);\n i++;\n break;\n case '--files':\n if (nextArg) {\n config.files = nextArg.split(',').map(f => f.trim()).filter(Boolean);\n i++;\n }\n break;\n case '--scouts':\n case '--agents': // Alias for backward compatibility\n if (nextArg) {\n config.forceScouts = nextArg.split(',').map(s => s.trim()).filter(Boolean);\n i++;\n }\n break;\n case '--once':\n config.runOnce = true;\n break;\n case '--users':\n case '-u':\n config.userCount = parseInt(nextArg || '250', 10);\n i++;\n break;\n case '--help':\n case '-h':\n console.log(`\nTrie Agent - File Watcher & Scanner\n\nUSAGE:\n trie watch [options] Watch for changes and scan continuously\n trie scan [options] Scan once and exit\n\nOPTIONS:\n --dir, -d <path> Directory to watch/scan (default: current directory)\n --debounce, -D <ms> Debounce time in ms (default: 1000)\n --scouts <list> Comma-separated scouts to run (e.g., security,legal)\n --agents <list> Alias for --scouts (backward compatibility)\n --files <list> Comma-separated file list to scan\n --users, -u <count> User count for cost estimation (default: 250)\n\nOUTPUT:\n --json Output as JSON (for log aggregation)\n --format <text|json> Scan output format\n --output <path> Output file path for json format\n\nPERFORMANCE:\n --parallel Enable parallel execution\n --no-parallel Disable parallel execution\n --cache Enable result caching\n --no-cache Disable result caching\n --force-rescan Force rescan (bypasses cache, same as --no-cache)\n --max-concurrency <n> Max parallel scouts\n --streaming Enable streaming updates\n --no-streaming Disable streaming updates\n --workers Use worker threads for scouts\n --no-workers Disable worker threads\n --timeout <ms> Scout timeout in ms\n\nDISPLAY:\n --interactive Enable interactive dashboard (default for TTY)\n --no-interactive Disable interactive dashboard (for CI/scripts)\n\nEXAMPLES:\n trie watch # Watch current directory\n trie scan # Scan once and exit\n trie scan --scouts security,legal # Scan with specific scouts\n trie scan --users 1000 --industry fintech # Scale for fintech with 1K users\n trie watch --no-interactive # CI mode: watch without dashboard\n trie scan --json --output report.json\n`);\n process.exit(0);\n }\n }\n\n return config;\n}\n\n// Run the daemon\nconst config = parseArgs();\nconst daemon = new WatchDaemon(config);\ndaemon.start().catch(error => {\n if (!process.stdout.isTTY || process.argv.includes('--non-interactive')) {\n console.error('Failed to start daemon:', error);\n }\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAAS,OAAO,YAAY,UAAU,oBAAoB;AAC1D,SAAS,eAAe;AACxB,SAAS,MAAM,SAAS,UAAU,eAAe;AASjD,IAAM,mBAAmB,oBAAI,IAAI;AAAA,EAC/B;AAAA,EAAO;AAAA,EAAQ;AAAA,EAAO;AAAA,EAAQ;AAAA,EAC9B;AAAA,EAAQ;AAAA,EAAW;AAAA,EACnB;AAAA,EAAO;AAAA,EAAO;AAChB,CAAC;AAGD,IAAM,YAAY,oBAAI,IAAI;AAAA,EACxB;AAAA,EAAgB;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAS;AAAA,EAAS;AAAA,EAClD;AAAA,EAAY;AAAA,EAAU;AAAA,EAAU;AAAA,EAAe;AACjD,CAAC;AA8BD,IAAM,cAAN,MAAkB;AAAA,EACR;AAAA,EACA;AAAA,EACA,WAAW,IAAI,aAAa;AAAA,EAC5B,WAAkD,oBAAI,IAAI;AAAA,EAC1D,eAA4B,oBAAI,IAAI;AAAA,EACpC,gBAAuC;AAAA,EACvC,eAAe;AAAA,EACf,mBAAiD;AAAA,EACjD,YAA8C;AAAA,EAEtD,YAAYA,SAAsB;AAChC,SAAK,SAASA;AACd,SAAK,QAAQ;AAAA,MACX,cAAc;AAAA,MACd,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,WAAW,KAAK,IAAI;AAAA,IACtB;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,QAAuB;AAE3B,QAAI,KAAK,OAAO,gBAAgB,SAAS,QAAQ,OAAO,OAAO;AAC7D,yBAAmB,IAAI;AAAA,IACzB;AACA,QAAI,CAAC,kBAAkB,KAAK,OAAO,SAAS,GAAG;AAC7C,UAAI,CAAC,kBAAkB,GAAG;AACxB,gBAAQ,MAAM,2CAA2C;AACzD,gB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A;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CA4CnB;AACO,gBAAQ,KAAK,CAAC;AAAA,IAClB;AAAA,EACF;AAEA,SAAOA;AACT;AAGA,IAAM,SAAS,UAAU;AACzB,IAAM,SAAS,IAAI,YAAY,MAAM;AACrC,OAAO,MAAM,EAAE,MAAM,WAAS;AAC5B,MAAI,CAAC,QAAQ,OAAO,SAAS,QAAQ,KAAK,SAAS,mBAAmB,GAAG;AACvE,YAAQ,MAAM,2BAA2B,KAAK;AAAA,EAChD;AACA,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":["config"]}
|
|
1
|
+
{"version":3,"sources":["../../src/cli/yolo-daemon.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Trie Watch - File Watcher\n * \n * Watches a directory for changes and checks for goal violations.\n * \n * Usage:\n * trie watch [options] # Watch for changes\n * \n * See `trie watch --help` for all options.\n */\n\nimport { watch, existsSync, statSync } from 'fs';\nimport { readdir } from 'fs/promises';\nimport { join, extname, basename, resolve } from 'path';\nimport { StreamingManager } from '../utils/streaming.js';\nimport { InteractiveDashboard } from './interactive-dashboard.js';\nimport { getWorkingDirectory } from '../utils/workspace.js';\nimport { isInteractiveMode, setInteractiveMode } from '../utils/progress.js';\nimport { isTrieInitialized } from '../utils/trie-init.js';\n\n// File extensions to watch\nconst WATCH_EXTENSIONS = new Set([\n '.ts', '.tsx', '.js', '.jsx', '.mjs',\n '.vue', '.svelte', '.astro',\n '.py', '.go', '.rs'\n]);\n\n// Directories to skip\nconst SKIP_DIRS = new Set([\n 'node_modules', '.git', 'dist', 'build', '.next', '.nuxt',\n 'coverage', '.turbo', '.cache', '__pycache__', '.venv'\n]);\n\ninterface DaemonConfig {\n directory: string;\n debounceMs: number;\n jsonOutput: boolean;\n format?: 'text' | 'json';\n output?: string;\n parallel?: boolean;\n cache?: boolean;\n maxConcurrency?: number;\n streaming?: boolean;\n interactive?: boolean;\n workers?: boolean;\n timeoutMs?: number;\n files?: string[];\n /** User count for cost estimation (default: 250) */\n userCount?: number;\n}\n\ninterface DaemonStats {\n filesScanned: number;\n issuesFound: number;\n errors: number;\n startTime: number;\n}\n\nclass WatchDaemon {\n private config: DaemonConfig;\n private stats: DaemonStats;\n private watchers: Map<string, ReturnType<typeof watch>> = new Map();\n private pendingFiles: Set<string> = new Set();\n private debounceTimer: NodeJS.Timeout | null = null;\n private isProcessing = false;\n private streamingManager: StreamingManager | undefined = undefined;\n private dashboard: InteractiveDashboard | undefined = undefined;\n\n constructor(config: DaemonConfig) {\n this.config = config;\n this.stats = {\n filesScanned: 0,\n issuesFound: 0,\n errors: 0,\n startTime: Date.now()\n };\n }\n\n /**\n * Start the daemon\n */\n async start(): Promise<void> {\n // Enable global interactive mode when TTY and not explicitly disabled\n if (this.config.interactive !== false && process.stdout.isTTY) {\n setInteractiveMode(true);\n }\n if (!isTrieInitialized(this.config.directory)) {\n if (!isInteractiveMode()) {\n console.error('Trie is not initialized for this project.');\n console.error('Run `trie init` first.');\n }\n process.exit(1);\n }\n\n this.log('info', 'Starting Trie Watch', {\n directory: this.config.directory,\n debounceMs: this.config.debounceMs\n });\n if (!isInteractiveMode()) {\n console.error('\\nTrie is watching for goal violations.\\n');\n }\n\n // Validate directory\n if (!existsSync(this.config.directory)) {\n this.log('error', 'Directory not found', { directory: this.config.directory });\n process.exit(1);\n }\n\n // Start interactive dashboard if enabled\n if (isInteractiveMode()) {\n this.streamingManager = new StreamingManager();\n this.dashboard = new InteractiveDashboard();\n this.streamingManager.subscribe(update => this.dashboard?.handleStreamUpdate(update));\n await this.dashboard.start();\n this.streamingManager.reportWatchStatus({\n watching: true,\n directories: 0,\n debounceMs: this.config.debounceMs\n });\n }\n\n // Start watching\n await this.watchDirectory(this.config.directory);\n this.streamingManager?.reportWatchStatus({\n watching: true,\n directories: this.watchers.size,\n debounceMs: this.config.debounceMs\n });\n this.log('info', 'Watching for changes...', { \n directories: this.watchers.size \n });\n\n // Handle graceful shutdown\n process.on('SIGINT', () => this.shutdown('SIGINT'));\n process.on('SIGTERM', () => this.shutdown('SIGTERM'));\n }\n\n /**\n * Watch a directory recursively\n */\n private async watchDirectory(dir: string): Promise<void> {\n if (!existsSync(dir)) return;\n\n try {\n const stat = statSync(dir);\n if (!stat.isDirectory()) return;\n\n const dirName = basename(dir);\n if (SKIP_DIRS.has(dirName) || dirName.startsWith('.')) return;\n\n // Watch this directory\n const watcher = watch(dir, { persistent: true }, (_eventType, filename) => {\n if (!filename) return;\n\n const fullPath = join(dir, filename);\n const ext = extname(filename).toLowerCase();\n\n if (!WATCH_EXTENSIONS.has(ext)) return;\n if (!existsSync(fullPath)) return;\n\n this.pendingFiles.add(fullPath);\n this.streamingManager?.reportWatchChange(fullPath);\n this.scheduleProcessing();\n });\n\n this.watchers.set(dir, watcher);\n\n // Recursively watch subdirectories\n const entries = await readdir(dir, { withFileTypes: true });\n for (const entry of entries) {\n if (entry.isDirectory()) {\n await this.watchDirectory(join(dir, entry.name));\n }\n }\n } catch (error) {\n // Skip inaccessible directories\n }\n }\n\n /**\n * Schedule processing of pending files (debounced)\n */\n private scheduleProcessing(): void {\n if (this.debounceTimer) {\n clearTimeout(this.debounceTimer);\n }\n\n this.debounceTimer = setTimeout(() => {\n this.processPendingFiles();\n }, this.config.debounceMs);\n }\n\n /**\n * Process all pending files\n */\n private async processPendingFiles(): Promise<void> {\n if (this.isProcessing || this.pendingFiles.size === 0) return;\n\n this.isProcessing = true;\n const files = Array.from(this.pendingFiles);\n this.pendingFiles.clear();\n\n this.log('info', 'Processing changed files', { \n count: files.length,\n files: files.map(f => basename(f))\n });\n\n // TODO: Check for goal violations\n // For now, just log that files changed\n this.log('info', 'File changes detected', { files: files.length });\n \n this.isProcessing = false;\n }\n\n\n /**\n * Log a message\n */\n private log(level: 'info' | 'warn' | 'error', message: string, data?: Record<string, unknown>): void {\n const timestamp = new Date().toISOString();\n const uptime = Math.round((Date.now() - this.stats.startTime) / 1000);\n\n // Suppress human-readable logs when interactive dashboard is active\n if (!this.config.jsonOutput && isInteractiveMode()) {\n return;\n }\n\n if (this.config.jsonOutput) {\n console.log(JSON.stringify({\n timestamp,\n level,\n message,\n uptime,\n ...data,\n stats: this.stats\n }));\n } else {\n const levelEmoji = { info: '[i]', warn: '[!]', error: '[X]' }[level];\n const dataStr = data ? ` ${JSON.stringify(data)}` : '';\n console.log(`[${timestamp}] ${levelEmoji} ${message}${dataStr}`);\n }\n }\n\n /**\n * Graceful shutdown\n */\n private shutdown(signal: string): void {\n this.log('info', 'Shutting down', { signal, stats: this.stats });\n\n // Close all watchers\n for (const watcher of this.watchers.values()) {\n watcher.close();\n }\n\n // Clear timers\n if (this.debounceTimer) {\n clearTimeout(this.debounceTimer);\n }\n\n if (this.streamingManager) {\n this.streamingManager.reportWatchStatus({\n watching: false,\n directories: 0\n });\n }\n if (this.dashboard) {\n this.dashboard.stop();\n }\n\n process.exit(0);\n }\n}\n\n/**\n * Parse command line arguments\n */\nfunction parseArgs(): DaemonConfig {\n const args = process.argv.slice(2);\n const config: DaemonConfig = {\n // Silent mode for initial workspace detection (TUI will handle display)\n directory: getWorkingDirectory(undefined, true),\n debounceMs: 1000,\n jsonOutput: false,\n // Default to interactive mode for TTY terminals\n interactive: process.stdout.isTTY === true\n };\n\n for (let i = 0; i < args.length; i++) {\n const arg = args[i];\n const nextArg = args[i + 1];\n\n switch (arg) {\n case '--dir':\n case '-d':\n config.directory = resolve(nextArg || '.');\n i++;\n break;\n case '--debounce':\n case '-D':\n config.debounceMs = parseInt(nextArg || '1000', 10);\n i++;\n break;\n case '--json':\n config.jsonOutput = true;\n break;\n case '--format':\n if (nextArg) {\n config.format = nextArg === 'json' ? 'json' : 'text';\n i++;\n }\n break;\n case '--output':\n if (nextArg) {\n config.output = nextArg;\n i++;\n }\n break;\n case '--parallel':\n config.parallel = true;\n break;\n case '--no-parallel':\n config.parallel = false;\n break;\n case '--cache':\n config.cache = true;\n break;\n case '--no-cache':\n config.cache = false;\n break;\n case '--force-rescan':\n case '--force':\n config.cache = false; // Force rescan by disabling cache\n break;\n case '--max-concurrency':\n config.maxConcurrency = parseInt(nextArg || '4', 10);\n i++;\n break;\n case '--streaming':\n config.streaming = true;\n break;\n case '--no-streaming':\n config.streaming = false;\n break;\n case '--interactive':\n config.interactive = true;\n break;\n case '--no-interactive':\n config.interactive = false;\n break;\n case '--workers':\n config.workers = true;\n break;\n case '--no-workers':\n config.workers = false;\n break;\n case '--timeout':\n config.timeoutMs = parseInt(nextArg || '120000', 10);\n i++;\n break;\n case '--files':\n if (nextArg) {\n config.files = nextArg.split(',').map(f => f.trim()).filter(Boolean);\n i++;\n }\n break;\n case '--users':\n case '-u':\n config.userCount = parseInt(nextArg || '250', 10);\n i++;\n break;\n case '--help':\n case '-h':\n console.log(`\nTrie Watch - File Watcher\n\nUSAGE:\n trie watch [options] Watch for changes\n\nOPTIONS:\n --dir, -d <path> Directory to watch (default: current directory)\n --debounce, -D <ms> Debounce time in ms (default: 1000)\n --users, -u <count> User count for cost estimation (default: 250)\n\nOUTPUT:\n --json Output as JSON (for log aggregation)\n\nDISPLAY:\n --interactive Enable interactive dashboard (default for TTY)\n --no-interactive Disable interactive dashboard (for CI/scripts)\n\nEXAMPLES:\n trie watch # Watch current directory\n trie watch --no-interactive # CI mode: watch without dashboard\n`);\n process.exit(0);\n }\n }\n\n return config;\n}\n\n// Run the daemon\nconst config = parseArgs();\nconst daemon = new WatchDaemon(config);\ndaemon.start().catch(error => {\n if (!process.stdout.isTTY || process.argv.includes('--non-interactive')) {\n console.error('Failed to start daemon:', error);\n }\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,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H,QAAAA,QAAO,UAAU;AACjB;AAAA,MACF,KAAK;AACH,QAAAA,QAAO,YAAY,SAAS,WAAW,UAAU,EAAE;AACnD;AACA;AAAA,MACF,KAAK;AACH,YAAI,SAAS;AACX,UAAAA,QAAO,QAAQ,QAAQ,MAAM,GAAG,EAAE,IAAI,OAAK,EAAE,KAAK,CAAC,EAAE,OAAO,OAAO;AACnE;AAAA,QACF;AACA;AAAA,MACF,KAAK;AAAA,MACL,KAAK;AACH,QAAAA,QAAO,YAAY,SAAS,WAAW,OAAO,EAAE;AAChD;AACA;AAAA,MACF,KAAK;AAAA,MACL,KAAK;AACH,gBAAQ,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAqBnB;AACO,gBAAQ,KAAK,CAAC;AAAA,IAClB;AAAA,EACF;AAEA,SAAOA;AACT;AAGA,IAAM,SAAS,UAAU;AACzB,IAAM,SAAS,IAAI,YAAY,MAAM;AACrC,OAAO,MAAM,EAAE,MAAM,WAAS;AAC5B,MAAI,CAAC,QAAQ,OAAO,SAAS,QAAQ,KAAK,SAAS,mBAAmB,GAAG;AACvE,YAAQ,MAAM,2BAA2B,KAAK;AAAA,EAChD;AACA,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":["config"]}
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
saveKeyToKeychain,
|
|
10
10
|
setAPIKey,
|
|
11
11
|
tryGetClient
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-OJXFQRUE.js";
|
|
13
|
+
import "./chunk-4TQQP7JD.js";
|
|
14
14
|
import "./chunk-APMV77PU.js";
|
|
15
15
|
import "./chunk-DGUM43GV.js";
|
|
16
16
|
export {
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
setAPIKey,
|
|
26
26
|
tryGetClient
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=client-
|
|
28
|
+
//# sourceMappingURL=client-5L64D5SQ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CodebaseIndex
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WOTLY5NA.js";
|
|
4
4
|
import "./chunk-6NLHFIYA.js";
|
|
5
5
|
import "./chunk-43X6JBEM.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-4TQQP7JD.js";
|
|
7
7
|
import "./chunk-APMV77PU.js";
|
|
8
8
|
import "./chunk-DGUM43GV.js";
|
|
9
9
|
export {
|
|
10
10
|
CodebaseIndex
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=codebase-index-
|
|
12
|
+
//# sourceMappingURL=codebase-index-OOE7OAHP.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CodebaseIndex
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WOTLY5NA.js";
|
|
4
4
|
import "./chunk-6NLHFIYA.js";
|
|
5
5
|
import "./chunk-43X6JBEM.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-4TQQP7JD.js";
|
|
7
7
|
import "./chunk-APMV77PU.js";
|
|
8
8
|
import "./chunk-DGUM43GV.js";
|
|
9
9
|
|
|
@@ -37,7 +37,7 @@ async function analyzeFilesRapidly(goals, projectPath, options = {}) {
|
|
|
37
37
|
onProgress
|
|
38
38
|
);
|
|
39
39
|
} else {
|
|
40
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-
|
|
40
|
+
const { checkFilesForGoalViolations } = await import("./goal-validator-EM5XVWVC.js");
|
|
41
41
|
newViolations = await checkFilesForGoalViolations(
|
|
42
42
|
goals,
|
|
43
43
|
projectPath,
|
|
@@ -171,7 +171,7 @@ async function analyzeWithSmartBatching(codebaseIndex, filesToScan, goals, proje
|
|
|
171
171
|
const end = Math.min(start + adaptiveBatchSize, filesToScan.length);
|
|
172
172
|
const batchFiles = filesToScan.slice(start, end);
|
|
173
173
|
onProgress?.(`Fast analysis (${i + 1}/${totalBatches}): ${batchFiles.length} files...`);
|
|
174
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-
|
|
174
|
+
const { checkFilesForGoalViolations } = await import("./goal-validator-EM5XVWVC.js");
|
|
175
175
|
const batchResults = await checkFilesForGoalViolations(
|
|
176
176
|
goals,
|
|
177
177
|
projectPath,
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
analyzeFilesRapidly,
|
|
214
214
|
getAnalysisStats
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=fast-analyzer-
|
|
216
|
+
//# sourceMappingURL=fast-analyzer-FMU3X4AZ.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GitHubIngester
|
|
3
|
+
} from "./chunk-V3O7C2LY.js";
|
|
4
|
+
import "./chunk-TU7D5DEW.js";
|
|
5
|
+
import "./chunk-4TQQP7JD.js";
|
|
6
|
+
import "./chunk-APMV77PU.js";
|
|
7
|
+
import "./chunk-DGUM43GV.js";
|
|
8
|
+
export {
|
|
9
|
+
GitHubIngester
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=github-ingester-C66ZRUYC.js.map
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
calculateAdaptiveScanFrequency,
|
|
5
5
|
clearGoalManagers,
|
|
6
6
|
getGoalManager
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JIS2OCZR.js";
|
|
8
|
+
import "./chunk-ABY2R7OK.js";
|
|
9
|
+
import "./chunk-GLY76TSI.js";
|
|
10
|
+
import "./chunk-ED7PLRQA.js";
|
|
11
|
+
import "./chunk-EFWVF6TI.js";
|
|
12
|
+
import "./chunk-TWPX6PHF.js";
|
|
12
13
|
import "./chunk-43X6JBEM.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-4TQQP7JD.js";
|
|
14
15
|
import "./chunk-APMV77PU.js";
|
|
15
16
|
import "./chunk-DGUM43GV.js";
|
|
16
17
|
export {
|
|
@@ -20,4 +21,4 @@ export {
|
|
|
20
21
|
clearGoalManagers,
|
|
21
22
|
getGoalManager
|
|
22
23
|
};
|
|
23
|
-
//# sourceMappingURL=goal-manager-
|
|
24
|
+
//# sourceMappingURL=goal-manager-VTBFFYN4.js.map
|
|
@@ -4,12 +4,13 @@ import {
|
|
|
4
4
|
measureInitialGoalValue,
|
|
5
5
|
recordGoalViolationCaught,
|
|
6
6
|
recordGoalViolationFixed
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-7HYOJ4Q7.js";
|
|
8
|
+
import "./chunk-GLY76TSI.js";
|
|
9
|
+
import "./chunk-ED7PLRQA.js";
|
|
10
|
+
import "./chunk-EFWVF6TI.js";
|
|
11
|
+
import "./chunk-TWPX6PHF.js";
|
|
11
12
|
import "./chunk-43X6JBEM.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4TQQP7JD.js";
|
|
13
14
|
import "./chunk-APMV77PU.js";
|
|
14
15
|
import "./chunk-DGUM43GV.js";
|
|
15
16
|
export {
|
|
@@ -19,4 +20,4 @@ export {
|
|
|
19
20
|
recordGoalViolationCaught,
|
|
20
21
|
recordGoalViolationFixed
|
|
21
22
|
};
|
|
22
|
-
//# sourceMappingURL=goal-validator-
|
|
23
|
+
//# sourceMappingURL=goal-validator-EM5XVWVC.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ContextGraph
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TWQPOVRA.js";
|
|
4
|
+
import "./chunk-4TQQP7JD.js";
|
|
5
5
|
import "./chunk-APMV77PU.js";
|
|
6
6
|
import "./chunk-DGUM43GV.js";
|
|
7
7
|
export {
|
|
8
8
|
ContextGraph
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=graph-
|
|
10
|
+
//# sourceMappingURL=graph-26JPZ3DF.js.map
|
|
@@ -3,13 +3,14 @@ import {
|
|
|
3
3
|
clearHypothesisEngines,
|
|
4
4
|
gatherEvidenceForHypothesis,
|
|
5
5
|
getHypothesisEngine
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-74R4XSFB.js";
|
|
7
|
+
import "./chunk-ABY2R7OK.js";
|
|
8
|
+
import "./chunk-GLY76TSI.js";
|
|
9
|
+
import "./chunk-ED7PLRQA.js";
|
|
10
|
+
import "./chunk-EFWVF6TI.js";
|
|
11
|
+
import "./chunk-TWPX6PHF.js";
|
|
11
12
|
import "./chunk-43X6JBEM.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4TQQP7JD.js";
|
|
13
14
|
import "./chunk-APMV77PU.js";
|
|
14
15
|
import "./chunk-DGUM43GV.js";
|
|
15
16
|
export {
|
|
@@ -18,4 +19,4 @@ export {
|
|
|
18
19
|
gatherEvidenceForHypothesis,
|
|
19
20
|
getHypothesisEngine
|
|
20
21
|
};
|
|
21
|
-
//# sourceMappingURL=hypothesis-
|
|
22
|
+
//# sourceMappingURL=hypothesis-4UPE7KXU.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IncidentIndex
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TCNCNWGV.js";
|
|
4
4
|
import "./chunk-6NLHFIYA.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-4TQQP7JD.js";
|
|
6
6
|
import "./chunk-APMV77PU.js";
|
|
7
7
|
import "./chunk-DGUM43GV.js";
|
|
8
8
|
export {
|
|
9
9
|
IncidentIndex
|
|
10
10
|
};
|
|
11
|
-
//# sourceMappingURL=incident-index-
|
|
11
|
+
//# sourceMappingURL=incident-index-H6APJ4S3.js.map
|