llm-wiki-kit 0.2.5 → 0.2.6

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": "llm-wiki-kit",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Hook-first living LLM Wiki runtime for Codex and Claude Code.",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,6 +1,7 @@
1
1
  import { spawnSync } from 'child_process';
2
2
  import { join, resolve } from 'path';
3
3
  import { cacheHome, readJson, writeJson } from './fs-utils.js';
4
+ import { isWindows } from './platform.js';
4
5
  import { commandForProject } from './projects.js';
5
6
  import { compareVersions, parseRegistryVersion } from './update.js';
6
7
  import { detectInstallSource, packageName, runtimeVersion } from './version.js';
@@ -62,6 +63,7 @@ function trimDetail(value) {
62
63
  function checkRegistry(target) {
63
64
  const result = spawnSync(npmCommand(), ['view', `${packageName()}@${target}`, 'version'], {
64
65
  encoding: 'utf8',
66
+ shell: isWindows(),
65
67
  timeout: timeoutMs(),
66
68
  });
67
69
  if (result.status !== 0 || result.error) {
package/src/update.js CHANGED
@@ -3,6 +3,7 @@ import { join, resolve } from 'path';
3
3
  import { exists } from './fs-utils.js';
4
4
  import { appendWikiLog } from './project.js';
5
5
  import { install } from './install.js';
6
+ import { isWindows } from './platform.js';
6
7
  import { applyProjectTemplateUpdate, inspectProjectState } from './project-state.js';
7
8
  import { knownProjectRoots, recordProject } from './projects.js';
8
9
  import { binPath, detectInstallSource, packageName, runtimeVersion } from './version.js';
@@ -24,7 +25,8 @@ async function runCommand(command, args, options = {}) {
24
25
  const killGraceMs = options.killGraceMs || 2000;
25
26
  const label = options.label || commandLine(command, args);
26
27
  const startedAt = Date.now();
27
- const detached = process.platform !== 'win32';
28
+ const windows = isWindows(options);
29
+ const detached = !windows;
28
30
  let stdout = '';
29
31
  let stderr = '';
30
32
  let settled = false;
@@ -67,6 +69,7 @@ async function runCommand(command, args, options = {}) {
67
69
  child = spawn(command, args, {
68
70
  detached,
69
71
  env: options.env || process.env,
72
+ shell: windows,
70
73
  stdio: ['ignore', 'pipe', 'pipe'],
71
74
  });
72
75
  } catch (error) {