mio-agent-runtime 0.3.8 → 0.3.9
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/observe/observer.js +4 -3
- package/package.json +1 -1
package/observe/observer.js
CHANGED
|
@@ -614,7 +614,7 @@ function runOpencodeQuery(sql) {
|
|
|
614
614
|
try {
|
|
615
615
|
res = bin
|
|
616
616
|
? spawnSync(bin, args, { encoding: 'utf8', timeout: 90000, windowsHide: true, maxBuffer: 256 * 1024 * 1024 })
|
|
617
|
-
: spawnSync('opencode', args, { encoding: 'utf8', timeout: 90000, shell: true, maxBuffer: 256 * 1024 * 1024 })
|
|
617
|
+
: spawnSync('opencode', args, { encoding: 'utf8', timeout: 90000, shell: true, windowsHide: true, maxBuffer: 256 * 1024 * 1024 })
|
|
618
618
|
} catch (_) {
|
|
619
619
|
return null
|
|
620
620
|
}
|
|
@@ -1111,7 +1111,7 @@ function runHermesCycle(home, state, sinks, opts) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
return out
|
|
1113
1113
|
}
|
|
1114
|
-
|
|
1114
|
+
|
|
1115
1115
|
|
|
1116
1116
|
// ---------------------------------------------------------------------------
|
|
1117
1117
|
// cycle
|
|
@@ -1264,6 +1264,7 @@ function startBackground(home) {
|
|
|
1264
1264
|
detached: true,
|
|
1265
1265
|
stdio: 'ignore',
|
|
1266
1266
|
windowsHide: true,
|
|
1267
|
+
cwd: home,
|
|
1267
1268
|
})
|
|
1268
1269
|
child.unref()
|
|
1269
1270
|
fs.mkdirSync(home, { recursive: true })
|
|
@@ -1302,4 +1303,4 @@ module.exports = {
|
|
|
1302
1303
|
stopBackground,
|
|
1303
1304
|
isRunning,
|
|
1304
1305
|
readPid,
|
|
1305
|
-
}
|
|
1306
|
+
}
|