@triedotdev/mcp 1.0.169 → 1.0.171
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 +62 -540
- package/dist/chunk-2YXOBNKW.js +619 -0
- package/dist/chunk-2YXOBNKW.js.map +1 -0
- package/dist/chunk-QR64Y5TI.js +363 -0
- package/dist/chunk-QR64Y5TI.js.map +1 -0
- package/dist/cli/main.d.ts +0 -15
- package/dist/cli/main.js +356 -3098
- package/dist/cli/main.js.map +1 -1
- package/dist/index.js +2 -34
- package/dist/index.js.map +1 -1
- package/dist/server/mcp-server.js +2 -34
- package/package.json +8 -31
- package/dist/autonomy-config-FSERX3O3.js +0 -30
- package/dist/autonomy-config-FSERX3O3.js.map +0 -1
- package/dist/chat-store-JNGNTDSN.js +0 -15
- package/dist/chat-store-JNGNTDSN.js.map +0 -1
- package/dist/chunk-2HF65EHQ.js +0 -311
- package/dist/chunk-2HF65EHQ.js.map +0 -1
- package/dist/chunk-3XR6WVAW.js +0 -4011
- package/dist/chunk-3XR6WVAW.js.map +0 -1
- package/dist/chunk-43X6JBEM.js +0 -36
- package/dist/chunk-43X6JBEM.js.map +0 -1
- package/dist/chunk-6NLHFIYA.js +0 -344
- package/dist/chunk-6NLHFIYA.js.map +0 -1
- package/dist/chunk-7IO4YUI3.js +0 -1827
- package/dist/chunk-7IO4YUI3.js.map +0 -1
- package/dist/chunk-AHD2CBQ7.js +0 -846
- package/dist/chunk-AHD2CBQ7.js.map +0 -1
- package/dist/chunk-BUTOP5EB.js +0 -931
- package/dist/chunk-BUTOP5EB.js.map +0 -1
- package/dist/chunk-DGUM43GV.js +0 -11
- package/dist/chunk-DGUM43GV.js.map +0 -1
- package/dist/chunk-EFWVF6TI.js +0 -267
- package/dist/chunk-EFWVF6TI.js.map +0 -1
- package/dist/chunk-F6WFNUAY.js +0 -216
- package/dist/chunk-F6WFNUAY.js.map +0 -1
- package/dist/chunk-FBNURWRY.js +0 -662
- package/dist/chunk-FBNURWRY.js.map +0 -1
- package/dist/chunk-FQ45QP5A.js +0 -361
- package/dist/chunk-FQ45QP5A.js.map +0 -1
- package/dist/chunk-FVRO5RN3.js +0 -1306
- package/dist/chunk-FVRO5RN3.js.map +0 -1
- package/dist/chunk-G2TGF6TR.js +0 -573
- package/dist/chunk-G2TGF6TR.js.map +0 -1
- package/dist/chunk-G3I7SZLW.js +0 -354
- package/dist/chunk-G3I7SZLW.js.map +0 -1
- package/dist/chunk-GTKYBOXL.js +0 -700
- package/dist/chunk-GTKYBOXL.js.map +0 -1
- package/dist/chunk-HVCDY3AK.js +0 -850
- package/dist/chunk-HVCDY3AK.js.map +0 -1
- package/dist/chunk-I2O5OYQT.js +0 -727
- package/dist/chunk-I2O5OYQT.js.map +0 -1
- package/dist/chunk-JVMBCWKS.js +0 -348
- package/dist/chunk-JVMBCWKS.js.map +0 -1
- package/dist/chunk-KCUOWRPX.js +0 -816
- package/dist/chunk-KCUOWRPX.js.map +0 -1
- package/dist/chunk-KDHN2ZQE.js +0 -313
- package/dist/chunk-KDHN2ZQE.js.map +0 -1
- package/dist/chunk-ME2OERF5.js +0 -345
- package/dist/chunk-ME2OERF5.js.map +0 -1
- package/dist/chunk-OBQ74FOU.js +0 -27
- package/dist/chunk-OBQ74FOU.js.map +0 -1
- package/dist/chunk-Q5EKA5YA.js +0 -254
- package/dist/chunk-Q5EKA5YA.js.map +0 -1
- package/dist/chunk-Q63FFI6D.js +0 -132
- package/dist/chunk-Q63FFI6D.js.map +0 -1
- package/dist/chunk-SASNMSB5.js +0 -12597
- package/dist/chunk-SASNMSB5.js.map +0 -1
- package/dist/chunk-T63OHG4Q.js +0 -440
- package/dist/chunk-T63OHG4Q.js.map +0 -1
- package/dist/chunk-TN5WEKWI.js +0 -173
- package/dist/chunk-TN5WEKWI.js.map +0 -1
- package/dist/chunk-VUL52BQL.js +0 -402
- package/dist/chunk-VUL52BQL.js.map +0 -1
- package/dist/chunk-VVITXIHN.js +0 -189
- package/dist/chunk-VVITXIHN.js.map +0 -1
- package/dist/chunk-WCN7S3EI.js +0 -14
- package/dist/chunk-WCN7S3EI.js.map +0 -1
- package/dist/chunk-XPZZFPBZ.js +0 -491
- package/dist/chunk-XPZZFPBZ.js.map +0 -1
- package/dist/chunk-ZJF5FTBX.js +0 -1396
- package/dist/chunk-ZJF5FTBX.js.map +0 -1
- package/dist/chunk-ZV2K6M7T.js +0 -74
- package/dist/chunk-ZV2K6M7T.js.map +0 -1
- package/dist/cli/create-agent.d.ts +0 -1
- package/dist/cli/create-agent.js +0 -1050
- package/dist/cli/create-agent.js.map +0 -1
- package/dist/cli/yolo-daemon.d.ts +0 -1
- package/dist/cli/yolo-daemon.js +0 -421
- package/dist/cli/yolo-daemon.js.map +0 -1
- package/dist/client-NJPZE5JT.js +0 -28
- package/dist/client-NJPZE5JT.js.map +0 -1
- package/dist/codebase-index-VAPF32XX.js +0 -12
- package/dist/codebase-index-VAPF32XX.js.map +0 -1
- package/dist/fast-analyzer-3GCCZMLK.js +0 -216
- package/dist/fast-analyzer-3GCCZMLK.js.map +0 -1
- package/dist/git-EO5SRFMN.js +0 -28
- package/dist/git-EO5SRFMN.js.map +0 -1
- package/dist/github-ingester-ZOKK6GRS.js +0 -11
- package/dist/github-ingester-ZOKK6GRS.js.map +0 -1
- package/dist/goal-manager-QUKX2W6C.js +0 -25
- package/dist/goal-manager-QUKX2W6C.js.map +0 -1
- package/dist/goal-validator-2SFSKKVU.js +0 -24
- package/dist/goal-validator-2SFSKKVU.js.map +0 -1
- package/dist/graph-B3NA4S7I.js +0 -10
- package/dist/graph-B3NA4S7I.js.map +0 -1
- package/dist/hypothesis-KCPBR652.js +0 -23
- package/dist/hypothesis-KCPBR652.js.map +0 -1
- package/dist/incident-index-EFNUSGWL.js +0 -11
- package/dist/incident-index-EFNUSGWL.js.map +0 -1
- package/dist/insight-store-EC4PLSAW.js +0 -22
- package/dist/insight-store-EC4PLSAW.js.map +0 -1
- package/dist/issue-store-YAXTNRRY.js +0 -36
- package/dist/issue-store-YAXTNRRY.js.map +0 -1
- package/dist/ledger-TWZTGDFA.js +0 -58
- package/dist/ledger-TWZTGDFA.js.map +0 -1
- package/dist/linear-ingester-XXPAZZRW.js +0 -11
- package/dist/linear-ingester-XXPAZZRW.js.map +0 -1
- package/dist/output-manager-RVJ37XKA.js +0 -13
- package/dist/output-manager-RVJ37XKA.js.map +0 -1
- package/dist/parse-goal-violation-SACGFG3C.js +0 -8
- package/dist/parse-goal-violation-SACGFG3C.js.map +0 -1
- package/dist/pattern-discovery-F7LU5K6E.js +0 -8
- package/dist/pattern-discovery-F7LU5K6E.js.map +0 -1
- package/dist/progress-SRQ2V3BP.js +0 -18
- package/dist/progress-SRQ2V3BP.js.map +0 -1
- package/dist/project-state-AHPA77SM.js +0 -28
- package/dist/project-state-AHPA77SM.js.map +0 -1
- package/dist/sync-M2FSWPBC.js +0 -12
- package/dist/sync-M2FSWPBC.js.map +0 -1
- package/dist/terminal-spawn-5YXDMUCF.js +0 -157
- package/dist/terminal-spawn-5YXDMUCF.js.map +0 -1
- package/dist/tiered-storage-DYNC5CQ6.js +0 -13
- package/dist/tiered-storage-DYNC5CQ6.js.map +0 -1
- package/dist/trie-agent-I3HAHY2G.js +0 -26
- package/dist/trie-agent-I3HAHY2G.js.map +0 -1
- package/dist/ui/chat.html +0 -1014
- package/dist/ui/goals.html +0 -967
- package/dist/ui/hypotheses.html +0 -1011
- package/dist/ui/ledger.html +0 -954
- package/dist/ui/nudges.html +0 -995
- package/dist/vibe-code-signatures-5ZULYP3D.js +0 -987
- package/dist/vibe-code-signatures-5ZULYP3D.js.map +0 -1
- package/dist/vulnerability-signatures-2URZSXAQ.js +0 -983
- package/dist/vulnerability-signatures-2URZSXAQ.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodebaseIndex
|
|
3
|
-
} from "./chunk-Q5EKA5YA.js";
|
|
4
|
-
import "./chunk-6NLHFIYA.js";
|
|
5
|
-
import "./chunk-43X6JBEM.js";
|
|
6
|
-
import "./chunk-VVITXIHN.js";
|
|
7
|
-
import "./chunk-KDHN2ZQE.js";
|
|
8
|
-
import "./chunk-DGUM43GV.js";
|
|
9
|
-
export {
|
|
10
|
-
CodebaseIndex
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=codebase-index-VAPF32XX.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodebaseIndex
|
|
3
|
-
} from "./chunk-Q5EKA5YA.js";
|
|
4
|
-
import "./chunk-6NLHFIYA.js";
|
|
5
|
-
import "./chunk-43X6JBEM.js";
|
|
6
|
-
import "./chunk-VVITXIHN.js";
|
|
7
|
-
import "./chunk-KDHN2ZQE.js";
|
|
8
|
-
import "./chunk-DGUM43GV.js";
|
|
9
|
-
|
|
10
|
-
// src/agent/fast-analyzer.ts
|
|
11
|
-
async function analyzeFilesRapidly(goals, projectPath, options = {}) {
|
|
12
|
-
const startTime = Date.now();
|
|
13
|
-
const { maxFiles = 50, enableSmartBatching = true, onProgress } = options;
|
|
14
|
-
const codebaseIndex = new CodebaseIndex(projectPath);
|
|
15
|
-
onProgress?.("Optimizing analysis cache...");
|
|
16
|
-
await preIndexRecentFiles(codebaseIndex, projectPath, maxFiles * 2);
|
|
17
|
-
const filesToAnalyze = await getSmartFileSelection(projectPath, maxFiles);
|
|
18
|
-
if (filesToAnalyze.length === 0) {
|
|
19
|
-
return {
|
|
20
|
-
violations: [],
|
|
21
|
-
cacheHitRatio: 1,
|
|
22
|
-
filesAnalyzed: 0,
|
|
23
|
-
timeMs: Date.now() - startTime
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const cacheResults = await performRapidCacheLookup(codebaseIndex, filesToAnalyze, goals);
|
|
27
|
-
const cacheHitRatio = cacheResults.cacheHits / filesToAnalyze.length;
|
|
28
|
-
onProgress?.(`Cache hit ratio: ${Math.round(cacheHitRatio * 100)}% (${cacheResults.cacheHits}/${filesToAnalyze.length})`);
|
|
29
|
-
let newViolations = [];
|
|
30
|
-
if (cacheResults.filesToScan.length > 0) {
|
|
31
|
-
if (enableSmartBatching) {
|
|
32
|
-
newViolations = await analyzeWithSmartBatching(
|
|
33
|
-
codebaseIndex,
|
|
34
|
-
cacheResults.filesToScan,
|
|
35
|
-
goals,
|
|
36
|
-
projectPath,
|
|
37
|
-
onProgress
|
|
38
|
-
);
|
|
39
|
-
} else {
|
|
40
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-2SFSKKVU.js");
|
|
41
|
-
newViolations = await checkFilesForGoalViolations(
|
|
42
|
-
goals,
|
|
43
|
-
projectPath,
|
|
44
|
-
cacheResults.filesToScan,
|
|
45
|
-
onProgress
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
await codebaseIndex.save();
|
|
50
|
-
return {
|
|
51
|
-
violations: [...cacheResults.cachedViolations, ...newViolations],
|
|
52
|
-
cacheHitRatio,
|
|
53
|
-
filesAnalyzed: filesToAnalyze.length,
|
|
54
|
-
timeMs: Date.now() - startTime
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
async function preIndexRecentFiles(codebaseIndex, projectPath, maxFiles) {
|
|
58
|
-
if (!codebaseIndex.isEmpty()) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const { glob } = await import("glob");
|
|
62
|
-
const { stat } = await import("fs/promises");
|
|
63
|
-
const pattern = `${projectPath}/**/*.{ts,tsx,js,jsx,py,go,rs,java,c,cpp,h,hpp,cs,rb,php,css,scss,html,vue,svelte,astro}`;
|
|
64
|
-
const allFiles = await glob(pattern, {
|
|
65
|
-
ignore: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/.git/**", "**/.trie/**", "**/coverage/**"],
|
|
66
|
-
nodir: true
|
|
67
|
-
});
|
|
68
|
-
const withStats = await Promise.all(
|
|
69
|
-
allFiles.map(async (f) => {
|
|
70
|
-
try {
|
|
71
|
-
const stats = await stat(f);
|
|
72
|
-
return { file: f, mtime: stats.mtime.getTime() };
|
|
73
|
-
} catch {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
);
|
|
78
|
-
const recentFiles = withStats.filter((f) => f !== null).sort((a, b) => b.mtime - a.mtime).slice(0, maxFiles).map((f) => f.file);
|
|
79
|
-
const indexPromises = recentFiles.map(async (filePath) => {
|
|
80
|
-
let relativePath = filePath;
|
|
81
|
-
if (filePath.toLowerCase().startsWith(projectPath.toLowerCase() + "/")) {
|
|
82
|
-
relativePath = filePath.slice(projectPath.length + 1);
|
|
83
|
-
}
|
|
84
|
-
return codebaseIndex.indexFile(relativePath);
|
|
85
|
-
});
|
|
86
|
-
await Promise.all(indexPromises);
|
|
87
|
-
}
|
|
88
|
-
async function getSmartFileSelection(projectPath, maxFiles) {
|
|
89
|
-
const { glob } = await import("glob");
|
|
90
|
-
const { stat } = await import("fs/promises");
|
|
91
|
-
const pattern = `${projectPath}/**/*.{ts,tsx,js,jsx,py,go,rs,java,c,cpp,h,hpp,cs,rb,php}`;
|
|
92
|
-
const allFiles = await glob(pattern, {
|
|
93
|
-
ignore: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/.git/**", "**/.trie/**", "**/coverage/**"],
|
|
94
|
-
nodir: true
|
|
95
|
-
});
|
|
96
|
-
const scoredFiles = await Promise.all(
|
|
97
|
-
allFiles.map(async (filePath) => {
|
|
98
|
-
try {
|
|
99
|
-
const stats = await stat(filePath);
|
|
100
|
-
let score = 0;
|
|
101
|
-
const daysSinceModified = (Date.now() - stats.mtime.getTime()) / (1e3 * 60 * 60 * 24);
|
|
102
|
-
score += Math.max(0, 100 - daysSinceModified);
|
|
103
|
-
const ext = filePath.split(".").pop()?.toLowerCase() || "";
|
|
104
|
-
const typeScores = {
|
|
105
|
-
"ts": 50,
|
|
106
|
-
"tsx": 50,
|
|
107
|
-
"js": 40,
|
|
108
|
-
"jsx": 40,
|
|
109
|
-
"py": 30,
|
|
110
|
-
"go": 30,
|
|
111
|
-
"rs": 30,
|
|
112
|
-
"java": 25
|
|
113
|
-
};
|
|
114
|
-
score += typeScores[ext] || 10;
|
|
115
|
-
const sizeKB = stats.size / 1024;
|
|
116
|
-
if (sizeKB < 5) score -= 20;
|
|
117
|
-
else if (sizeKB > 500) score -= 30;
|
|
118
|
-
else score += 20;
|
|
119
|
-
return { file: filePath, score };
|
|
120
|
-
} catch {
|
|
121
|
-
return { file: filePath, score: 0 };
|
|
122
|
-
}
|
|
123
|
-
})
|
|
124
|
-
);
|
|
125
|
-
return scoredFiles.sort((a, b) => b.score - a.score).slice(0, maxFiles).map((f) => f.file);
|
|
126
|
-
}
|
|
127
|
-
async function performRapidCacheLookup(codebaseIndex, files, goals) {
|
|
128
|
-
const cachedViolations = [];
|
|
129
|
-
const filesToScan = [];
|
|
130
|
-
let cacheHits = 0;
|
|
131
|
-
for (const filePath of files) {
|
|
132
|
-
let relativePath = filePath;
|
|
133
|
-
if (filePath.toLowerCase().startsWith(filePath.split("/").slice(0, -1).join("/").toLowerCase() + "/")) {
|
|
134
|
-
relativePath = filePath.split("/").pop() || filePath;
|
|
135
|
-
}
|
|
136
|
-
const hasChanged = await codebaseIndex.hasChanged(relativePath);
|
|
137
|
-
if (hasChanged) {
|
|
138
|
-
await codebaseIndex.indexFile(relativePath);
|
|
139
|
-
filesToScan.push(filePath);
|
|
140
|
-
} else {
|
|
141
|
-
let foundCachedResult = false;
|
|
142
|
-
for (const goal of goals) {
|
|
143
|
-
const cached = codebaseIndex.getCachedViolations(relativePath, goal.id);
|
|
144
|
-
if (cached && cached.length > 0) {
|
|
145
|
-
const violation = cached[0];
|
|
146
|
-
if (violation && violation.found) {
|
|
147
|
-
cachedViolations.push({
|
|
148
|
-
file: relativePath,
|
|
149
|
-
message: `Goal "${goal.description}" violated: ${violation.details || "Cached violation"} [${violation.confidence || 90}% confidence]`,
|
|
150
|
-
severity: "warning"
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
foundCachedResult = true;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
if (foundCachedResult) {
|
|
157
|
-
cacheHits++;
|
|
158
|
-
} else {
|
|
159
|
-
filesToScan.push(filePath);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return { cachedViolations, filesToScan, cacheHits };
|
|
164
|
-
}
|
|
165
|
-
async function analyzeWithSmartBatching(codebaseIndex, filesToScan, goals, projectPath, onProgress) {
|
|
166
|
-
const adaptiveBatchSize = Math.min(10, filesToScan.length);
|
|
167
|
-
const totalBatches = Math.ceil(filesToScan.length / adaptiveBatchSize);
|
|
168
|
-
const allViolations = [];
|
|
169
|
-
for (let i = 0; i < totalBatches; i++) {
|
|
170
|
-
const start = i * adaptiveBatchSize;
|
|
171
|
-
const end = Math.min(start + adaptiveBatchSize, filesToScan.length);
|
|
172
|
-
const batchFiles = filesToScan.slice(start, end);
|
|
173
|
-
onProgress?.(`Fast analysis (${i + 1}/${totalBatches}): ${batchFiles.length} files...`);
|
|
174
|
-
const { checkFilesForGoalViolations } = await import("./goal-validator-2SFSKKVU.js");
|
|
175
|
-
const batchResults = await checkFilesForGoalViolations(
|
|
176
|
-
goals,
|
|
177
|
-
projectPath,
|
|
178
|
-
batchFiles,
|
|
179
|
-
void 0
|
|
180
|
-
// Don't pass progress callback to avoid nested messages
|
|
181
|
-
);
|
|
182
|
-
allViolations.push(...batchResults);
|
|
183
|
-
for (const violation of batchResults) {
|
|
184
|
-
const relativePath = violation.file.includes("/") ? violation.file.split("/").pop() || violation.file : violation.file;
|
|
185
|
-
const goalMatch = violation.message.match(/Goal "([^"]+)"/);
|
|
186
|
-
if (goalMatch) {
|
|
187
|
-
const goalDesc = goalMatch[1];
|
|
188
|
-
const goal = goals.find((g) => g.description === goalDesc);
|
|
189
|
-
if (goal) {
|
|
190
|
-
codebaseIndex.setCachedViolations(relativePath, goal.id, [{
|
|
191
|
-
goalId: goal.id,
|
|
192
|
-
goalDescription: goal.description,
|
|
193
|
-
found: true,
|
|
194
|
-
details: violation.message,
|
|
195
|
-
confidence: 90,
|
|
196
|
-
timestamp: Date.now()
|
|
197
|
-
}]);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return allViolations;
|
|
203
|
-
}
|
|
204
|
-
async function getAnalysisStats(projectPath) {
|
|
205
|
-
const codebaseIndex = new CodebaseIndex(projectPath);
|
|
206
|
-
return {
|
|
207
|
-
indexedFiles: codebaseIndex.getFileCount(),
|
|
208
|
-
cacheSize: `${Math.round(codebaseIndex.getCacheSize() / 1024)}KB`,
|
|
209
|
-
lastUpdated: codebaseIndex.getLastUpdated()
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
export {
|
|
213
|
-
analyzeFilesRapidly,
|
|
214
|
-
getAnalysisStats
|
|
215
|
-
};
|
|
216
|
-
//# sourceMappingURL=fast-analyzer-3GCCZMLK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/agent/fast-analyzer.ts"],"sourcesContent":["/**\n * Fast Analyzer - Optimized file analysis using RAG and caching\n *\n * This module provides blazing-fast file analysis by:\n * 1. Leveraging the CodebaseIndex aggressively\n * 2. Using semantic search on cached violations\n * 3. Smart batch sizing based on cache hit ratio\n * 4. Pre-emptive indexing of likely-to-be-analyzed files\n */\n\nimport { CodebaseIndex } from '../context/codebase-index.js';\nimport type { Goal } from './project-state.js';\n\nexport interface FastAnalysisOptions {\n maxFiles?: number;\n enableSmartBatching?: boolean;\n enableSemanticSearch?: boolean;\n onProgress?: (message: string) => void;\n}\n\nexport interface FastAnalysisResult {\n violations: Array<{ file: string; message: string; severity: 'critical' | 'warning' | 'info' }>;\n cacheHitRatio: number;\n filesAnalyzed: number;\n timeMs: number;\n}\n\n/**\n * Fast path for common analysis patterns\n */\nexport async function analyzeFilesRapidly(\n goals: Goal[],\n projectPath: string,\n options: FastAnalysisOptions = {}\n): Promise<FastAnalysisResult> {\n const startTime = Date.now();\n const { maxFiles = 50, enableSmartBatching = true, onProgress } = options;\n\n // Initialize codebase index\n const codebaseIndex = new CodebaseIndex(projectPath);\n\n // Smart pre-indexing: index recently modified files first\n onProgress?.('Optimizing analysis cache...');\n await preIndexRecentFiles(codebaseIndex, projectPath, maxFiles * 2);\n\n // Get files to analyze with intelligent selection\n const filesToAnalyze = await getSmartFileSelection(projectPath, maxFiles);\n\n if (filesToAnalyze.length === 0) {\n return {\n violations: [],\n cacheHitRatio: 1.0,\n filesAnalyzed: 0,\n timeMs: Date.now() - startTime\n };\n }\n\n // Fast cache lookup first\n const cacheResults = await performRapidCacheLookup(codebaseIndex, filesToAnalyze, goals);\n const cacheHitRatio = cacheResults.cacheHits / filesToAnalyze.length;\n\n onProgress?.(`Cache hit ratio: ${Math.round(cacheHitRatio * 100)}% (${cacheResults.cacheHits}/${filesToAnalyze.length})`);\n\n // Only analyze files that aren't cached\n let newViolations: any[] = [];\n if (cacheResults.filesToScan.length > 0) {\n if (enableSmartBatching) {\n newViolations = await analyzeWithSmartBatching(\n codebaseIndex,\n cacheResults.filesToScan,\n goals,\n projectPath,\n onProgress\n );\n } else {\n // Fallback to existing batch logic\n const { checkFilesForGoalViolations } = await import('./goal-validator.js');\n newViolations = await checkFilesForGoalViolations(\n goals,\n projectPath,\n cacheResults.filesToScan,\n onProgress\n );\n }\n }\n\n await codebaseIndex.save();\n\n return {\n violations: [...cacheResults.cachedViolations, ...newViolations],\n cacheHitRatio,\n filesAnalyzed: filesToAnalyze.length,\n timeMs: Date.now() - startTime\n };\n}\n\n/**\n * Pre-index recently modified files to improve cache hits\n */\nasync function preIndexRecentFiles(\n codebaseIndex: CodebaseIndex,\n projectPath: string,\n maxFiles: number\n): Promise<void> {\n if (!codebaseIndex.isEmpty()) {\n return; // Already has index\n }\n\n const { glob } = await import('glob');\n const { stat } = await import('fs/promises');\n\n const pattern = `${projectPath}/**/*.{ts,tsx,js,jsx,py,go,rs,java,c,cpp,h,hpp,cs,rb,php,css,scss,html,vue,svelte,astro}`;\n const allFiles = await glob(pattern, {\n ignore: ['**/node_modules/**', '**/dist/**', '**/build/**', '**/.git/**', '**/.trie/**', '**/coverage/**'],\n nodir: true,\n });\n\n // Sort by modification time\n const withStats = await Promise.all(\n allFiles.map(async (f) => {\n try {\n const stats = await stat(f);\n return { file: f, mtime: stats.mtime.getTime() };\n } catch {\n return null;\n }\n })\n );\n\n const recentFiles = withStats\n .filter((f): f is { file: string; mtime: number } => f !== null)\n .sort((a, b) => b.mtime - a.mtime)\n .slice(0, maxFiles)\n .map((f) => f.file);\n\n // Index files in parallel for speed\n const indexPromises = recentFiles.map(async (filePath) => {\n let relativePath = filePath;\n if (filePath.toLowerCase().startsWith(projectPath.toLowerCase() + '/')) {\n relativePath = filePath.slice(projectPath.length + 1);\n }\n return codebaseIndex.indexFile(relativePath);\n });\n\n await Promise.all(indexPromises);\n}\n\n/**\n * Intelligent file selection based on git changes, file types, and size\n */\nasync function getSmartFileSelection(projectPath: string, maxFiles: number): Promise<string[]> {\n const { glob } = await import('glob');\n const { stat } = await import('fs/promises');\n\n // Start with recently modified files\n const pattern = `${projectPath}/**/*.{ts,tsx,js,jsx,py,go,rs,java,c,cpp,h,hpp,cs,rb,php}`;\n const allFiles = await glob(pattern, {\n ignore: ['**/node_modules/**', '**/dist/**', '**/build/**', '**/.git/**', '**/.trie/**', '**/coverage/**'],\n nodir: true,\n });\n\n // Score files by relevance\n const scoredFiles = await Promise.all(\n allFiles.map(async (filePath) => {\n try {\n const stats = await stat(filePath);\n let score = 0;\n\n // Recency score (higher for recently modified)\n const daysSinceModified = (Date.now() - stats.mtime.getTime()) / (1000 * 60 * 60 * 24);\n score += Math.max(0, 100 - daysSinceModified);\n\n // File type score (higher for important types)\n const ext = filePath.split('.').pop()?.toLowerCase() || '';\n const typeScores: Record<string, number> = {\n 'ts': 50, 'tsx': 50, 'js': 40, 'jsx': 40,\n 'py': 30, 'go': 30, 'rs': 30, 'java': 25\n };\n score += typeScores[ext] || 10;\n\n // Size score (prefer medium-sized files)\n const sizeKB = stats.size / 1024;\n if (sizeKB < 5) score -= 20; // Too small, likely not important\n else if (sizeKB > 500) score -= 30; // Too large, likely generated\n else score += 20; // Good size\n\n return { file: filePath, score };\n } catch {\n return { file: filePath, score: 0 };\n }\n })\n );\n\n return scoredFiles\n .sort((a, b) => b.score - a.score)\n .slice(0, maxFiles)\n .map(f => f.file);\n}\n\n/**\n * Rapid cache lookup for all goals across all files\n */\nasync function performRapidCacheLookup(\n codebaseIndex: CodebaseIndex,\n files: string[],\n goals: Goal[]\n): Promise<{\n cachedViolations: any[];\n filesToScan: string[];\n cacheHits: number;\n}> {\n const cachedViolations: any[] = [];\n const filesToScan: string[] = [];\n let cacheHits = 0;\n\n for (const filePath of files) {\n let relativePath = filePath;\n if (filePath.toLowerCase().startsWith(filePath.split('/').slice(0, -1).join('/').toLowerCase() + '/')) {\n relativePath = filePath.split('/').pop() || filePath;\n }\n\n const hasChanged = await codebaseIndex.hasChanged(relativePath);\n\n if (hasChanged) {\n // File changed - needs scanning\n await codebaseIndex.indexFile(relativePath);\n filesToScan.push(filePath);\n } else {\n // Check cache for all goals\n let foundCachedResult = false;\n\n for (const goal of goals) {\n const cached = codebaseIndex.getCachedViolations(relativePath, goal.id);\n if (cached && cached.length > 0) {\n const violation = cached[0];\n if (violation && violation.found) {\n cachedViolations.push({\n file: relativePath,\n message: `Goal \"${goal.description}\" violated: ${violation.details || 'Cached violation'} [${violation.confidence || 90}% confidence]`,\n severity: 'warning' as const,\n });\n }\n foundCachedResult = true;\n }\n }\n\n if (foundCachedResult) {\n cacheHits++;\n } else {\n // No cache for this file - needs scanning\n filesToScan.push(filePath);\n }\n }\n }\n\n return { cachedViolations, filesToScan, cacheHits };\n}\n\n/**\n * Smart batching that adjusts batch size based on cache performance\n */\nasync function analyzeWithSmartBatching(\n codebaseIndex: CodebaseIndex,\n filesToScan: string[],\n goals: Goal[],\n projectPath: string,\n onProgress?: (message: string) => void\n): Promise<any[]> {\n // Start with smaller batches for faster feedback\n const adaptiveBatchSize = Math.min(10, filesToScan.length);\n const totalBatches = Math.ceil(filesToScan.length / adaptiveBatchSize);\n\n const allViolations: any[] = [];\n\n for (let i = 0; i < totalBatches; i++) {\n const start = i * adaptiveBatchSize;\n const end = Math.min(start + adaptiveBatchSize, filesToScan.length);\n const batchFiles = filesToScan.slice(start, end);\n\n onProgress?.(`Fast analysis (${i + 1}/${totalBatches}): ${batchFiles.length} files...`);\n\n // Use existing analysis but with smaller batches\n const { checkFilesForGoalViolations } = await import('./goal-validator.js');\n const batchResults = await checkFilesForGoalViolations(\n goals,\n projectPath,\n batchFiles,\n undefined // Don't pass progress callback to avoid nested messages\n );\n\n allViolations.push(...batchResults);\n\n // Cache results immediately for next time\n for (const violation of batchResults) {\n const relativePath = violation.file.includes('/')\n ? violation.file.split('/').pop() || violation.file\n : violation.file;\n\n // Extract goal from violation message\n const goalMatch = violation.message.match(/Goal \"([^\"]+)\"/);\n if (goalMatch) {\n const goalDesc = goalMatch[1];\n const goal = goals.find(g => g.description === goalDesc);\n if (goal) {\n codebaseIndex.setCachedViolations(relativePath, goal.id, [{\n goalId: goal.id,\n goalDescription: goal.description,\n found: true,\n details: violation.message,\n confidence: 90,\n timestamp: Date.now()\n }]);\n }\n }\n }\n }\n\n return allViolations;\n}\n\n/**\n * Get analysis stats for debugging/monitoring\n */\nexport async function getAnalysisStats(projectPath: string): Promise<{\n indexedFiles: number;\n cacheSize: string;\n lastUpdated: string | null;\n}> {\n const codebaseIndex = new CodebaseIndex(projectPath);\n\n return {\n indexedFiles: codebaseIndex.getFileCount(),\n cacheSize: `${Math.round(codebaseIndex.getCacheSize() / 1024)}KB`,\n lastUpdated: codebaseIndex.getLastUpdated()\n };\n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B,IAAI,MAAM,OAAO,8BAAqB;AAC1E,UAAM,eAAe,MAAM;AAAA,MACzB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IACF;AAEA,kBAAc,KAAK,GAAG,YAAY;AAGlC,eAAW,aAAa,cAAc;AACpC,YAAM,eAAe,UAAU,KAAK,SAAS,GAAG,IAC5C,UAAU,KAAK,MAAM,GAAG,EAAE,IAAI,KAAK,UAAU,OAC7C,UAAU;AAGd,YAAM,YAAY,UAAU,QAAQ,MAAM,gBAAgB;AAC1D,UAAI,WAAW;AACb,cAAM,WAAW,UAAU,CAAC;AAC5B,cAAM,OAAO,MAAM,KAAK,OAAK,EAAE,gBAAgB,QAAQ;AACvD,YAAI,MAAM;AACR,wBAAc,oBAAoB,cAAc,KAAK,IAAI,CAAC;AAAA,YACxD,QAAQ,KAAK;AAAA,YACb,iBAAiB,KAAK;AAAA,YACtB,OAAO;AAAA,YACP,SAAS,UAAU;AAAA,YACnB,YAAY;AAAA,YACZ,WAAW,KAAK,IAAI;AAAA,UACtB,CAAC,CAAC;AAAA,QACJ;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;AAKA,eAAsB,iBAAiB,aAIpC;AACD,QAAM,gBAAgB,IAAI,cAAc,WAAW;AAEnD,SAAO;AAAA,IACL,cAAc,cAAc,aAAa;AAAA,IACzC,WAAW,GAAG,KAAK,MAAM,cAAc,aAAa,IAAI,IAAI,CAAC;AAAA,IAC7D,aAAa,cAAc,eAAe;AAAA,EAC5C;AACF;","names":[]}
|
package/dist/git-EO5SRFMN.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getChangedFilesSinceTimestamp,
|
|
3
|
-
getDiff,
|
|
4
|
-
getGitChangedFiles,
|
|
5
|
-
getLastCommit,
|
|
6
|
-
getRecentCommits,
|
|
7
|
-
getStagedChanges,
|
|
8
|
-
getUncommittedChanges,
|
|
9
|
-
getUnpushedCommits,
|
|
10
|
-
getWorkingTreeDiff,
|
|
11
|
-
isGitRepo,
|
|
12
|
-
resolveRepoPath
|
|
13
|
-
} from "./chunk-2HF65EHQ.js";
|
|
14
|
-
import "./chunk-DGUM43GV.js";
|
|
15
|
-
export {
|
|
16
|
-
getChangedFilesSinceTimestamp,
|
|
17
|
-
getDiff,
|
|
18
|
-
getGitChangedFiles,
|
|
19
|
-
getLastCommit,
|
|
20
|
-
getRecentCommits,
|
|
21
|
-
getStagedChanges,
|
|
22
|
-
getUncommittedChanges,
|
|
23
|
-
getUnpushedCommits,
|
|
24
|
-
getWorkingTreeDiff,
|
|
25
|
-
isGitRepo,
|
|
26
|
-
resolveRepoPath
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=git-EO5SRFMN.js.map
|
package/dist/git-EO5SRFMN.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GitHubIngester
|
|
3
|
-
} from "./chunk-F6WFNUAY.js";
|
|
4
|
-
import "./chunk-XPZZFPBZ.js";
|
|
5
|
-
import "./chunk-VVITXIHN.js";
|
|
6
|
-
import "./chunk-KDHN2ZQE.js";
|
|
7
|
-
import "./chunk-DGUM43GV.js";
|
|
8
|
-
export {
|
|
9
|
-
GitHubIngester
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=github-ingester-ZOKK6GRS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GoalManager,
|
|
3
|
-
adaptScanFrequency,
|
|
4
|
-
calculateAdaptiveScanFrequency,
|
|
5
|
-
clearGoalManagers,
|
|
6
|
-
getGoalManager
|
|
7
|
-
} from "./chunk-FBNURWRY.js";
|
|
8
|
-
import "./chunk-T63OHG4Q.js";
|
|
9
|
-
import "./chunk-KCUOWRPX.js";
|
|
10
|
-
import "./chunk-ZJF5FTBX.js";
|
|
11
|
-
import "./chunk-GTKYBOXL.js";
|
|
12
|
-
import "./chunk-EFWVF6TI.js";
|
|
13
|
-
import "./chunk-43X6JBEM.js";
|
|
14
|
-
import "./chunk-VVITXIHN.js";
|
|
15
|
-
import "./chunk-KDHN2ZQE.js";
|
|
16
|
-
import "./chunk-2HF65EHQ.js";
|
|
17
|
-
import "./chunk-DGUM43GV.js";
|
|
18
|
-
export {
|
|
19
|
-
GoalManager,
|
|
20
|
-
adaptScanFrequency,
|
|
21
|
-
calculateAdaptiveScanFrequency,
|
|
22
|
-
clearGoalManagers,
|
|
23
|
-
getGoalManager
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=goal-manager-QUKX2W6C.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
checkFilesForGoalViolations,
|
|
3
|
-
getActiveGoals,
|
|
4
|
-
measureInitialGoalValue,
|
|
5
|
-
recordGoalViolationCaught,
|
|
6
|
-
recordGoalViolationFixed
|
|
7
|
-
} from "./chunk-G3I7SZLW.js";
|
|
8
|
-
import "./chunk-KCUOWRPX.js";
|
|
9
|
-
import "./chunk-ZJF5FTBX.js";
|
|
10
|
-
import "./chunk-GTKYBOXL.js";
|
|
11
|
-
import "./chunk-EFWVF6TI.js";
|
|
12
|
-
import "./chunk-43X6JBEM.js";
|
|
13
|
-
import "./chunk-VVITXIHN.js";
|
|
14
|
-
import "./chunk-KDHN2ZQE.js";
|
|
15
|
-
import "./chunk-2HF65EHQ.js";
|
|
16
|
-
import "./chunk-DGUM43GV.js";
|
|
17
|
-
export {
|
|
18
|
-
checkFilesForGoalViolations,
|
|
19
|
-
getActiveGoals,
|
|
20
|
-
measureInitialGoalValue,
|
|
21
|
-
recordGoalViolationCaught,
|
|
22
|
-
recordGoalViolationFixed
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=goal-validator-2SFSKKVU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/graph-B3NA4S7I.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HypothesisEngine,
|
|
3
|
-
clearHypothesisEngines,
|
|
4
|
-
gatherEvidenceForHypothesis,
|
|
5
|
-
getHypothesisEngine
|
|
6
|
-
} from "./chunk-I2O5OYQT.js";
|
|
7
|
-
import "./chunk-T63OHG4Q.js";
|
|
8
|
-
import "./chunk-KCUOWRPX.js";
|
|
9
|
-
import "./chunk-ZJF5FTBX.js";
|
|
10
|
-
import "./chunk-GTKYBOXL.js";
|
|
11
|
-
import "./chunk-EFWVF6TI.js";
|
|
12
|
-
import "./chunk-43X6JBEM.js";
|
|
13
|
-
import "./chunk-VVITXIHN.js";
|
|
14
|
-
import "./chunk-KDHN2ZQE.js";
|
|
15
|
-
import "./chunk-2HF65EHQ.js";
|
|
16
|
-
import "./chunk-DGUM43GV.js";
|
|
17
|
-
export {
|
|
18
|
-
HypothesisEngine,
|
|
19
|
-
clearHypothesisEngines,
|
|
20
|
-
gatherEvidenceForHypothesis,
|
|
21
|
-
getHypothesisEngine
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=hypothesis-KCPBR652.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IncidentIndex
|
|
3
|
-
} from "./chunk-TN5WEKWI.js";
|
|
4
|
-
import "./chunk-6NLHFIYA.js";
|
|
5
|
-
import "./chunk-VVITXIHN.js";
|
|
6
|
-
import "./chunk-KDHN2ZQE.js";
|
|
7
|
-
import "./chunk-DGUM43GV.js";
|
|
8
|
-
export {
|
|
9
|
-
IncidentIndex
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=incident-index-EFNUSGWL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
InsightDetailsSchema,
|
|
3
|
-
InsightSchema,
|
|
4
|
-
InsightStore,
|
|
5
|
-
InsightStoreDataSchema,
|
|
6
|
-
clearInsightStores,
|
|
7
|
-
getInsightStore
|
|
8
|
-
} from "./chunk-T63OHG4Q.js";
|
|
9
|
-
import "./chunk-EFWVF6TI.js";
|
|
10
|
-
import "./chunk-43X6JBEM.js";
|
|
11
|
-
import "./chunk-VVITXIHN.js";
|
|
12
|
-
import "./chunk-KDHN2ZQE.js";
|
|
13
|
-
import "./chunk-DGUM43GV.js";
|
|
14
|
-
export {
|
|
15
|
-
InsightDetailsSchema,
|
|
16
|
-
InsightSchema,
|
|
17
|
-
InsightStore,
|
|
18
|
-
InsightStoreDataSchema,
|
|
19
|
-
clearInsightStores,
|
|
20
|
-
getInsightStore
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=insight-store-EC4PLSAW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
autoResolveIssues,
|
|
3
|
-
findSimilarIssues,
|
|
4
|
-
getDailyLogs,
|
|
5
|
-
getIssueHash,
|
|
6
|
-
getIssueLedgerEntry,
|
|
7
|
-
getMemoryStats,
|
|
8
|
-
getRecentIssues,
|
|
9
|
-
markIssueResolved,
|
|
10
|
-
purgeIssues,
|
|
11
|
-
resolveGoalViolation,
|
|
12
|
-
searchIssues,
|
|
13
|
-
storeIssues
|
|
14
|
-
} from "./chunk-KCUOWRPX.js";
|
|
15
|
-
import "./chunk-ZJF5FTBX.js";
|
|
16
|
-
import "./chunk-EFWVF6TI.js";
|
|
17
|
-
import "./chunk-43X6JBEM.js";
|
|
18
|
-
import "./chunk-VVITXIHN.js";
|
|
19
|
-
import "./chunk-KDHN2ZQE.js";
|
|
20
|
-
import "./chunk-2HF65EHQ.js";
|
|
21
|
-
import "./chunk-DGUM43GV.js";
|
|
22
|
-
export {
|
|
23
|
-
autoResolveIssues,
|
|
24
|
-
findSimilarIssues,
|
|
25
|
-
getDailyLogs,
|
|
26
|
-
getIssueHash,
|
|
27
|
-
getIssueLedgerEntry,
|
|
28
|
-
getMemoryStats,
|
|
29
|
-
getRecentIssues,
|
|
30
|
-
markIssueResolved,
|
|
31
|
-
purgeIssues,
|
|
32
|
-
resolveGoalViolation,
|
|
33
|
-
searchIssues,
|
|
34
|
-
storeIssues
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=issue-store-YAXTNRRY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/ledger-TWZTGDFA.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ConcurrentModificationError,
|
|
3
|
-
appendIssuesToLedger,
|
|
4
|
-
compressOldBlocks,
|
|
5
|
-
computeMerkleRoot,
|
|
6
|
-
correctLedgerEntries,
|
|
7
|
-
detectLegacyLedger,
|
|
8
|
-
getCorrectionStats,
|
|
9
|
-
getEntryCorrectionHistory,
|
|
10
|
-
getLedgerBlocks,
|
|
11
|
-
getLedgerBlocksWithHash,
|
|
12
|
-
getLedgerEntries,
|
|
13
|
-
getLedgerSyncStatus,
|
|
14
|
-
getStorageStats,
|
|
15
|
-
initializeSharedLedger,
|
|
16
|
-
loadArchivedBlocks,
|
|
17
|
-
migrateLegacyLedger,
|
|
18
|
-
pushLedgerToShared,
|
|
19
|
-
saveLedgerOptimistic,
|
|
20
|
-
shouldCompress,
|
|
21
|
-
signLedgerEntry,
|
|
22
|
-
syncLedgerFromShared,
|
|
23
|
-
verifyBlockSignatures,
|
|
24
|
-
verifyLedger,
|
|
25
|
-
verifyLedgerEntry
|
|
26
|
-
} from "./chunk-ZJF5FTBX.js";
|
|
27
|
-
import "./chunk-43X6JBEM.js";
|
|
28
|
-
import "./chunk-VVITXIHN.js";
|
|
29
|
-
import "./chunk-KDHN2ZQE.js";
|
|
30
|
-
import "./chunk-2HF65EHQ.js";
|
|
31
|
-
import "./chunk-DGUM43GV.js";
|
|
32
|
-
export {
|
|
33
|
-
ConcurrentModificationError,
|
|
34
|
-
appendIssuesToLedger,
|
|
35
|
-
compressOldBlocks,
|
|
36
|
-
computeMerkleRoot,
|
|
37
|
-
correctLedgerEntries,
|
|
38
|
-
detectLegacyLedger,
|
|
39
|
-
getCorrectionStats,
|
|
40
|
-
getEntryCorrectionHistory,
|
|
41
|
-
getLedgerBlocks,
|
|
42
|
-
getLedgerBlocksWithHash,
|
|
43
|
-
getLedgerEntries,
|
|
44
|
-
getLedgerSyncStatus,
|
|
45
|
-
getStorageStats,
|
|
46
|
-
initializeSharedLedger,
|
|
47
|
-
loadArchivedBlocks,
|
|
48
|
-
migrateLegacyLedger,
|
|
49
|
-
pushLedgerToShared,
|
|
50
|
-
saveLedgerOptimistic,
|
|
51
|
-
shouldCompress,
|
|
52
|
-
signLedgerEntry,
|
|
53
|
-
syncLedgerFromShared,
|
|
54
|
-
verifyBlockSignatures,
|
|
55
|
-
verifyLedger,
|
|
56
|
-
verifyLedgerEntry
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=ledger-TWZTGDFA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
LinearIngester
|
|
3
|
-
} from "./chunk-Q63FFI6D.js";
|
|
4
|
-
import "./chunk-XPZZFPBZ.js";
|
|
5
|
-
import "./chunk-VVITXIHN.js";
|
|
6
|
-
import "./chunk-KDHN2ZQE.js";
|
|
7
|
-
import "./chunk-DGUM43GV.js";
|
|
8
|
-
export {
|
|
9
|
-
LinearIngester
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=linear-ingester-XXPAZZRW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getOutputManager,
|
|
3
|
-
output,
|
|
4
|
-
resetOutputManager
|
|
5
|
-
} from "./chunk-G2TGF6TR.js";
|
|
6
|
-
import "./chunk-KDHN2ZQE.js";
|
|
7
|
-
import "./chunk-DGUM43GV.js";
|
|
8
|
-
export {
|
|
9
|
-
getOutputManager,
|
|
10
|
-
output,
|
|
11
|
-
resetOutputManager
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=output-manager-RVJ37XKA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AgentProgressReporter,
|
|
3
|
-
ProgressReporter,
|
|
4
|
-
getProgressReporter,
|
|
5
|
-
isInteractiveMode,
|
|
6
|
-
resetProgressReporter,
|
|
7
|
-
setInteractiveMode
|
|
8
|
-
} from "./chunk-KDHN2ZQE.js";
|
|
9
|
-
import "./chunk-DGUM43GV.js";
|
|
10
|
-
export {
|
|
11
|
-
AgentProgressReporter,
|
|
12
|
-
ProgressReporter,
|
|
13
|
-
getProgressReporter,
|
|
14
|
-
isInteractiveMode,
|
|
15
|
-
resetProgressReporter,
|
|
16
|
-
setInteractiveMode
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=progress-SRQ2V3BP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|