novahiz 0.11.5 → 0.11.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/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.11.6] - 2026-10-23
9
+
10
+ ### Fixed
11
+
12
+ - **Installer spawnSync arguments** - `spawnSync(...cmd, opts)` spread the
13
+ command array into separate positional arguments, causing
14
+ `ERR_INVALID_ARG_TYPE` on the options object during the catalog sync step
15
+ of `novahiz setup`. All 5 call sites now use
16
+ `spawnSync(cmd[0], cmd.slice(1), opts)`.
17
+
8
18
  ## [0.11.5] - 2026-10-23
9
19
 
10
20
  ### Fixed
@@ -505,7 +505,7 @@ async function main() {
505
505
  const cmd = cliSpawnArgs(home, "sync");
506
506
  if (cmd) {
507
507
  note("Building catalog (sync)");
508
- const result = spawnSync(...cmd, {
508
+ const result = spawnSync(cmd[0], cmd.slice(1), {
509
509
  encoding: "utf8",
510
510
  env: { ...process.env, NOVAHIZ_HOME: home }
511
511
  });
@@ -534,7 +534,8 @@ async function main() {
534
534
  ? providersChoice
535
535
  : Boolean(flags["install-providers"]) || config?.providers?.autoInstall !== false;
536
536
  note("Checking dependencies");
537
- const check = spawnSync(...cliSpawnArgs(home, "deps"), {
537
+ const checkArgs = cliSpawnArgs(home, "deps");
538
+ const check = spawnSync(checkArgs[0], checkArgs.slice(1), {
538
539
  encoding: "utf8",
539
540
  env: { ...process.env, NOVAHIZ_HOME: home }
540
541
  });
@@ -548,7 +549,8 @@ async function main() {
548
549
  note(autoInstall
549
550
  ? "Installing dependencies and providers (toolchain, MCP, skills, commands)"
550
551
  : "Installing core system dependencies (toolchain: python, uv — npm health)");
551
- const result = spawnSync(...cliSpawnArgs(home, ...args), {
552
+ const installArgs = cliSpawnArgs(home, ...args);
553
+ const result = spawnSync(installArgs[0], installArgs.slice(1), {
552
554
  encoding: "utf8",
553
555
  env: { ...process.env, NOVAHIZ_HOME: home }
554
556
  });
@@ -861,7 +863,7 @@ async function main() {
861
863
  const vaultCmd = cliSpawnArgs(home, "second-memory", "init");
862
864
  if (vaultCmd) {
863
865
  note("Creating the second-memory vault (structure + Obsidian plugins, ~10 downloads)...");
864
- const vault = spawnSync(...vaultCmd, {
866
+ const vault = spawnSync(vaultCmd[0], vaultCmd.slice(1), {
865
867
  encoding: "utf8",
866
868
  timeout: 180000,
867
869
  env: { ...process.env, NOVAHIZ_HOME: home }
@@ -949,7 +951,7 @@ async function main() {
949
951
  const cleanupCmd = cliSpawnArgs(home, "sync");
950
952
  if (cleanupCmd) {
951
953
  note("Rebuilding catalog after cleanup (sync)");
952
- const rebuild = spawnSync(...cleanupCmd, {
954
+ const rebuild = spawnSync(cleanupCmd[0], cleanupCmd.slice(1), {
953
955
  encoding: "utf8",
954
956
  env: { ...process.env, NOVAHIZ_HOME: home }
955
957
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "novahiz",
3
- "version": "0.11.5",
3
+ "version": "0.11.6",
4
4
  "description": "Enforce AI agent skills before every file edit: prompt classifier, skill catalog, and pre-edit gate.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",