@mingxy/cerebro 1.20.1 → 1.20.2
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/package.json +1 -1
- package/src/web-server.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mingxy/cerebro",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
4
4
|
"description": "Cerebro persistent memory plugin for OpenCode — auto-recall, auto-capture, 9 memory tools with clustering, project-scoped memory isolation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
package/src/web-server.ts
CHANGED
|
@@ -119,9 +119,13 @@ export async function startWebServer(
|
|
|
119
119
|
const childJs = path.resolve(__dirname, "web-server-child.js");
|
|
120
120
|
const childPath = fs.existsSync(childTs) ? childTs : childJs;
|
|
121
121
|
|
|
122
|
+
// Use the same executor as the parent process (tsx, node, etc.)
|
|
123
|
+
// so the child can run .ts files. Also inherit execArgv (--import tsx, etc.)
|
|
122
124
|
const child = fork(childPath, [], {
|
|
123
125
|
detached: true,
|
|
124
126
|
stdio: ["pipe", "pipe", "pipe", "ipc"],
|
|
127
|
+
execPath: process.execPath,
|
|
128
|
+
execArgv: process.execArgv,
|
|
125
129
|
});
|
|
126
130
|
|
|
127
131
|
// Drain stdout/stderr to prevent pipe buffer from blocking the child
|