@proxysoul/soulforge 1.5.1 → 1.5.3
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/dist/bin.sh +6 -8
- package/dist/index.js +32 -6
- package/dist/workers/intelligence.worker.js +7 -2
- package/package.json +1 -1
package/dist/bin.sh
CHANGED
|
@@ -8,13 +8,11 @@ if ! command -v bun >/dev/null 2>&1; then
|
|
|
8
8
|
echo "Then run: soulforge" >&2
|
|
9
9
|
exit 1
|
|
10
10
|
fi
|
|
11
|
-
# Resolve symlinks (bun
|
|
11
|
+
# Resolve symlinks — follow chain (pnpm/bun can nest multiple levels)
|
|
12
12
|
SELF="$0"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
esac
|
|
19
|
-
fi
|
|
13
|
+
while [ -L "$SELF" ]; do
|
|
14
|
+
DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
15
|
+
SELF="$(readlink "$SELF")"
|
|
16
|
+
case "$SELF" in /*) ;; *) SELF="$DIR/$SELF" ;; esac
|
|
17
|
+
done
|
|
20
18
|
exec bun "$(cd "$(dirname "$SELF")" && pwd)/index.js" "$@"
|
package/dist/index.js
CHANGED
|
@@ -57814,7 +57814,7 @@ var package_default;
|
|
|
57814
57814
|
var init_package = __esm(() => {
|
|
57815
57815
|
package_default = {
|
|
57816
57816
|
name: "@proxysoul/soulforge",
|
|
57817
|
-
version: "1.5.
|
|
57817
|
+
version: "1.5.3",
|
|
57818
57818
|
description: "Graph-powered code intelligence \u2014 multi-agent coding with codebase-aware AI",
|
|
57819
57819
|
repository: {
|
|
57820
57820
|
type: "git",
|
|
@@ -312186,7 +312186,8 @@ async function collectFiles(dir, depth = 0) {
|
|
|
312186
312186
|
if (gitFiles)
|
|
312187
312187
|
return gitFiles;
|
|
312188
312188
|
}
|
|
312189
|
-
|
|
312189
|
+
const result = await Promise.race([collectFilesWalk(dir, depth), new Promise((r) => setTimeout(() => r([]), 60000))]);
|
|
312190
|
+
return result;
|
|
312190
312191
|
}
|
|
312191
312192
|
async function collectFilesViaGit(dir) {
|
|
312192
312193
|
try {
|
|
@@ -312195,8 +312196,12 @@ async function collectFilesViaGit(dir) {
|
|
|
312195
312196
|
stdout: "pipe",
|
|
312196
312197
|
stderr: "ignore"
|
|
312197
312198
|
});
|
|
312199
|
+
const code = await Promise.race([proc.exited, new Promise((r) => setTimeout(() => r("timeout"), 30000))]);
|
|
312200
|
+
if (code === "timeout") {
|
|
312201
|
+
proc.kill();
|
|
312202
|
+
return null;
|
|
312203
|
+
}
|
|
312198
312204
|
const text2 = await new Response(proc.stdout).text();
|
|
312199
|
-
const code = await proc.exited;
|
|
312200
312205
|
if (code !== 0)
|
|
312201
312206
|
return null;
|
|
312202
312207
|
const files = [];
|
|
@@ -360673,6 +360678,7 @@ import { homedir as homedir16 } from "os";
|
|
|
360673
360678
|
import { join as join27 } from "path";
|
|
360674
360679
|
var IS_COMPILED2, IS_DIST2, IntelligenceClient;
|
|
360675
360680
|
var init_intelligence_client = __esm(() => {
|
|
360681
|
+
init_errors();
|
|
360676
360682
|
init_workers();
|
|
360677
360683
|
IS_COMPILED2 = import.meta.url.includes("$bunfs");
|
|
360678
360684
|
IS_DIST2 = !IS_COMPILED2 && import.meta.dir.includes("/dist");
|
|
@@ -360692,7 +360698,7 @@ var init_intelligence_client = __esm(() => {
|
|
|
360692
360698
|
onProgress = null;
|
|
360693
360699
|
onScanComplete = null;
|
|
360694
360700
|
onStaleSymbols = null;
|
|
360695
|
-
static
|
|
360701
|
+
static SCAN_IDLE_TIMEOUT = 120000;
|
|
360696
360702
|
constructor(cwd2) {
|
|
360697
360703
|
const workerPath = IS_COMPILED2 ? join27(homedir16(), ".soulforge", "workers", "intelligence.worker.js") : IS_DIST2 ? join27(import.meta.dir, "workers", "intelligence.worker.js") : join27(import.meta.dir, "intelligence.worker.ts");
|
|
360698
360704
|
super(workerPath, {
|
|
@@ -360760,7 +360766,27 @@ var init_intelligence_client = __esm(() => {
|
|
|
360760
360766
|
return this._cwd;
|
|
360761
360767
|
}
|
|
360762
360768
|
async scan() {
|
|
360763
|
-
|
|
360769
|
+
let timer;
|
|
360770
|
+
const resetTimer = () => {
|
|
360771
|
+
if (timer)
|
|
360772
|
+
clearTimeout(timer);
|
|
360773
|
+
timer = setTimeout(() => {
|
|
360774
|
+
this.off("progress", resetTimer);
|
|
360775
|
+
}, IntelligenceClient.SCAN_IDLE_TIMEOUT);
|
|
360776
|
+
};
|
|
360777
|
+
this.on("progress", resetTimer);
|
|
360778
|
+
resetTimer();
|
|
360779
|
+
try {
|
|
360780
|
+
await this.call("scan");
|
|
360781
|
+
} catch (err2) {
|
|
360782
|
+
const msg = err2 instanceof Error ? err2.message : String(err2);
|
|
360783
|
+
logBackgroundError("Soul Map", `Scan failed: ${msg}`);
|
|
360784
|
+
throw err2;
|
|
360785
|
+
} finally {
|
|
360786
|
+
if (timer)
|
|
360787
|
+
clearTimeout(timer);
|
|
360788
|
+
this.off("progress", resetTimer);
|
|
360789
|
+
}
|
|
360764
360790
|
}
|
|
360765
360791
|
async close() {
|
|
360766
360792
|
await this.call("close");
|
|
@@ -360802,7 +360828,7 @@ var init_intelligence_client = __esm(() => {
|
|
|
360802
360828
|
return this.call("generateSyntheticSummaries", limit);
|
|
360803
360829
|
}
|
|
360804
360830
|
async generateSemanticSummaries(maxSymbols) {
|
|
360805
|
-
return this.callWithTimeout(
|
|
360831
|
+
return this.callWithTimeout(300000, "generateSemanticSummaries", maxSymbols);
|
|
360806
360832
|
}
|
|
360807
360833
|
clearFreeSummaries() {
|
|
360808
360834
|
this.fire("clearFreeSummaries");
|
|
@@ -18751,7 +18751,8 @@ async function collectFiles(dir, depth = 0) {
|
|
|
18751
18751
|
if (gitFiles)
|
|
18752
18752
|
return gitFiles;
|
|
18753
18753
|
}
|
|
18754
|
-
|
|
18754
|
+
const result = await Promise.race([collectFilesWalk(dir, depth), new Promise((r4) => setTimeout(() => r4([]), 60000))]);
|
|
18755
|
+
return result;
|
|
18755
18756
|
}
|
|
18756
18757
|
async function collectFilesViaGit(dir) {
|
|
18757
18758
|
try {
|
|
@@ -18760,8 +18761,12 @@ async function collectFilesViaGit(dir) {
|
|
|
18760
18761
|
stdout: "pipe",
|
|
18761
18762
|
stderr: "ignore"
|
|
18762
18763
|
});
|
|
18764
|
+
const code = await Promise.race([proc.exited, new Promise((r4) => setTimeout(() => r4("timeout"), 30000))]);
|
|
18765
|
+
if (code === "timeout") {
|
|
18766
|
+
proc.kill();
|
|
18767
|
+
return null;
|
|
18768
|
+
}
|
|
18763
18769
|
const text2 = await new Response(proc.stdout).text();
|
|
18764
|
-
const code = await proc.exited;
|
|
18765
18770
|
if (code !== 0)
|
|
18766
18771
|
return null;
|
|
18767
18772
|
const files = [];
|