mixdog 0.9.126 → 0.9.127

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixdog",
3
- "version": "0.9.126",
3
+ "version": "0.9.127",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Standalone mixdog coding-agent CLI/TUI workspace.",
@@ -9,6 +9,8 @@ import { existsSync } from 'node:fs';
9
9
  import { createInterface } from 'node:readline';
10
10
  import { hiddenSpawnOpts } from '../../../../shared/spawn-flags.mjs';
11
11
  import { invalidateBuiltinResultCache } from './cache-layers.mjs';
12
+ import { getPluginData } from '../../config.mjs';
13
+ import { ensureGraphBinary } from '../graph-binary-fetcher.mjs';
12
14
 
13
15
  const RESTART_BACKOFF_MS = 30_000;
14
16
  const REQUEST_TIMEOUT_MS = 20_000;
@@ -179,7 +181,8 @@ export async function warmNativeSearchServer(timeoutMs = 5_000) {
179
181
  try {
180
182
  if (!_resolveBinary()) {
181
183
  const mod = await import('../code-graph/graph-binary.mjs');
182
- const candidate = mod.graphBinaryPath?.() || mod.resolveGraphBinaryPath?.() || null;
184
+ let candidate = mod.graphBinaryPath?.() || mod.resolveGraphBinaryPath?.() || null;
185
+ if (!candidate) candidate = await ensureGraphBinary(getPluginData());
183
186
  if (candidate && existsSync(candidate)) _binaryPath = candidate;
184
187
  else if (_binaryPath === undefined) _binaryPath = null;
185
188
  }
@@ -118,6 +118,11 @@ export class NativeSpawnChild extends EventEmitter {
118
118
 
119
119
  function _resolveBinary() {
120
120
  if (_binaryPath !== undefined) return _binaryPath;
121
+ const explicit = String(process.env.MIXDOG_SPAWN_SERVER_BIN || '').trim();
122
+ if (explicit && existsSync(explicit)) {
123
+ _binaryPath = explicit;
124
+ return _binaryPath;
125
+ }
121
126
  _binaryPath = findCachedSpawnBinary(getPluginData());
122
127
  return _binaryPath;
123
128
  }