@proxysoul/soulforge 2.6.5 → 2.8.0
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 +21 -2
- package/dist/index.js +23822 -14687
- package/dist/workers/intelligence.worker.js +31 -1
- package/package.json +3 -1
|
@@ -24160,6 +24160,7 @@ class RepoMap {
|
|
|
24160
24160
|
onStaleSymbols = null;
|
|
24161
24161
|
onError = null;
|
|
24162
24162
|
indexErrors = 0;
|
|
24163
|
+
lastRenderedPaths = [];
|
|
24163
24164
|
constructor(cwd) {
|
|
24164
24165
|
this.cwd = cwd;
|
|
24165
24166
|
const dbDir = join5(cwd, ".soulforge");
|
|
@@ -26418,6 +26419,7 @@ class RepoMap {
|
|
|
26418
26419
|
this.onStaleSymbols?.(stale);
|
|
26419
26420
|
}, 2000);
|
|
26420
26421
|
}
|
|
26422
|
+
this.lastRenderedPaths = currentPaths;
|
|
26421
26423
|
return lines.join(`
|
|
26422
26424
|
`);
|
|
26423
26425
|
}
|
|
@@ -26559,6 +26561,26 @@ class RepoMap {
|
|
|
26559
26561
|
endLine: r4.end_line
|
|
26560
26562
|
}));
|
|
26561
26563
|
}
|
|
26564
|
+
getFileDiffBlock(relPath) {
|
|
26565
|
+
const fileRow = this.db.query("SELECT id FROM files WHERE path = ?").get(relPath);
|
|
26566
|
+
if (!fileRow)
|
|
26567
|
+
return {
|
|
26568
|
+
blastRadius: 0,
|
|
26569
|
+
symbols: []
|
|
26570
|
+
};
|
|
26571
|
+
const blastRadius = this.db.query("SELECT COUNT(DISTINCT source_file_id) AS c FROM edges WHERE target_file_id = ?").get(fileRow.id)?.c ?? 0;
|
|
26572
|
+
const symbols = this.db.query(`SELECT s.name, s.kind, s.signature, s.line
|
|
26573
|
+
FROM symbols s
|
|
26574
|
+
WHERE s.file_id = ?
|
|
26575
|
+
AND s.is_exported = 1
|
|
26576
|
+
AND s.kind IN ('interface','type','class','function','enum','method')
|
|
26577
|
+
ORDER BY s.line
|
|
26578
|
+
LIMIT 10`).all(fileRow.id);
|
|
26579
|
+
return {
|
|
26580
|
+
blastRadius,
|
|
26581
|
+
symbols
|
|
26582
|
+
};
|
|
26583
|
+
}
|
|
26562
26584
|
getFileSymbolRanges(relPath) {
|
|
26563
26585
|
return this.db.query(`SELECT s.name, s.qualified_name, s.kind, s.line, s.end_line
|
|
26564
26586
|
FROM symbols s JOIN files f ON f.id = s.file_id
|
|
@@ -273054,7 +273076,14 @@ var handlers = {
|
|
|
273054
273076
|
},
|
|
273055
273077
|
onFileChanged: (absPath) => requireRepoMap().onFileChanged(absPath),
|
|
273056
273078
|
recheckModifiedFiles: () => requireRepoMap().recheckModifiedFiles(),
|
|
273057
|
-
render: (opts) =>
|
|
273079
|
+
render: (opts) => {
|
|
273080
|
+
const repoMap2 = requireRepoMap();
|
|
273081
|
+
const content = repoMap2.render(opts);
|
|
273082
|
+
return {
|
|
273083
|
+
content,
|
|
273084
|
+
paths: repoMap2.lastRenderedPaths
|
|
273085
|
+
};
|
|
273086
|
+
},
|
|
273058
273087
|
findSymbols: (name2) => requireRepoMap().findSymbols(name2),
|
|
273059
273088
|
findSymbol: (name2) => requireRepoMap().findSymbol(name2),
|
|
273060
273089
|
searchSymbolsSubstring: (query, limit) => requireRepoMap().searchSymbolsSubstring(query, limit),
|
|
@@ -273069,6 +273098,7 @@ var handlers = {
|
|
|
273069
273098
|
getFileCoChanges: (relPath) => requireRepoMap().getFileCoChanges(relPath),
|
|
273070
273099
|
getFileExportCount: (relPath) => requireRepoMap().getFileExportCount(relPath),
|
|
273071
273100
|
getFileBlastRadius: (relPath) => requireRepoMap().getFileBlastRadius(relPath),
|
|
273101
|
+
getFileDiffBlock: (relPath) => requireRepoMap().getFileDiffBlock(relPath),
|
|
273072
273102
|
getFilesByPackage: (pkg) => requireRepoMap().getFilesByPackage(pkg),
|
|
273073
273103
|
listDirectory: (dirPath) => requireRepoMap().listDirectory(dirPath),
|
|
273074
273104
|
getIdentifierFrequency: (limit) => requireRepoMap().getIdentifierFrequency(limit),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proxysoul/soulforge",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Graph-powered code intelligence — multi-agent coding with codebase-aware AI",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,11 +68,13 @@
|
|
|
68
68
|
"@ai-sdk/fireworks": "^2.0.43",
|
|
69
69
|
"@ai-sdk/google": "3.0.58",
|
|
70
70
|
"@ai-sdk/groq": "^3.0.33",
|
|
71
|
+
"@ai-sdk/mcp": "^1.0.35",
|
|
71
72
|
"@ai-sdk/mistral": "^3.0.28",
|
|
72
73
|
"@ai-sdk/openai": "3.0.50",
|
|
73
74
|
"@ai-sdk/xai": "3.0.77",
|
|
74
75
|
"@anthropic-ai/sdk": "0.82.0",
|
|
75
76
|
"@llmgateway/ai-sdk-provider": "3.5.0",
|
|
77
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
76
78
|
"@mozilla/readability": "0.6.0",
|
|
77
79
|
"@openrouter/ai-sdk-provider": "2.3.3",
|
|
78
80
|
"@opentui/react": "0.1.96",
|