mio-agent-runtime 0.3.8 → 0.3.10

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.
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mio-agent-runtime",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "Mio Agent Runtime installer and MCP intelligence layer",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -3,6 +3,7 @@
3
3
 
4
4
  const fs = require('fs')
5
5
  const path = require('path')
6
+ const os = require('os')
6
7
  const crypto = require('crypto')
7
8
  const readline = require('readline')
8
9
  const { execFileSync } = require('child_process')
@@ -11,7 +12,9 @@ const SERVER_INFO = { name: 'mio-intelligence-mcp', version: '0.1.0' }
11
12
  const PROTOCOL_VERSION = '2024-11-05'
12
13
 
13
14
  const dataDir = path.resolve(
14
- process.env.MIO_DATA_DIR || path.join(process.cwd(), '.mio-intelligence')
15
+ process.env.MIO_DATA_DIR ||
16
+ process.env.MIO_HOME ||
17
+ path.join(os.homedir(), '.mio-intelligence')
15
18
  )
16
19
  const memoryPath = path.join(dataDir, 'memory.jsonl')
17
20
  const tracePath = path.join(dataDir, 'traces.jsonl')