novahiz 0.11.3 → 0.11.4

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,17 @@ 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.4] - 2026-10-22
9
+
10
+ ### Fixed
11
+
12
+ - **`novahiz setup` now completes on Linux** - `runSync()` executed
13
+ `home/src/cli.ts` directly with Node, which cannot read TypeScript
14
+ without `--experimental-strip-types`. On a fresh global install the home
15
+ has no `dist/` build, so the sync step failed with
16
+ `ERR_UNKNOWN_FILE_EXTENSION`. The flag is now added so the two-pass
17
+ install (core then extras) completes on Linux, macOS and Windows.
18
+
8
19
  ## [0.11.3] - 2026-10-22
9
20
 
10
21
  ### Fixed
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  17 catégories, 94 skills, 13 gate rules, 8 MCP providers — tout déterministe, tout local, tout JSON.
6
6
 
7
- > **Version 0.11.0** — `npm install -g novahiz` pose le CLI, et le premier `novahiz` lancé termine l'installation (core puis extras). `CHANGELOG.md` et `scripts/` sont dans le tarball.
7
+ > **Version 0.11.3** — `npm install -g novahiz` pose le CLI, et le premier `novahiz` lancé termine l'installation (core puis extras). `CHANGELOG.md` et `scripts/` sont dans le tarball.
8
8
 
9
9
  ```
10
10
  ┌──────────────────────────────────────────────────────────────────────────┐
package/dist/cli.js CHANGED
@@ -35,7 +35,10 @@ function runSync() {
35
35
  const home = homeDir();
36
36
  const cli = join(home, "src", "cli.ts");
37
37
  if (existsSync(cli)) {
38
- spawnSync(process.execPath, [cli, "sync"], {
38
+ // src/cli.ts est du TypeScript : Node ne le lit pas nativement. On ajoute
39
+ // --experimental-strip-types pour pouvoir l'exécuter depuis le home,
40
+ // qui ne contient pas le build dist/ (réservé au paquet publié).
41
+ spawnSync(process.execPath, ["--experimental-strip-types", cli, "sync"], {
39
42
  encoding: "utf8",
40
43
  stdio: "inherit",
41
44
  env: { ...process.env, NOVAHIZ_HOME: home }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "novahiz",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
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",
package/src/cli.ts CHANGED
@@ -39,7 +39,10 @@ function runSync(): void {
39
39
  const home = homeDir();
40
40
  const cli = join(home, "src", "cli.ts");
41
41
  if (existsSync(cli)) {
42
- spawnSync(process.execPath, [cli, "sync"], {
42
+ // src/cli.ts est du TypeScript : Node ne le lit pas nativement. On ajoute
43
+ // --experimental-strip-types pour pouvoir l'exécuter depuis le home,
44
+ // qui ne contient pas le build dist/ (réservé au paquet publié).
45
+ spawnSync(process.execPath, ["--experimental-strip-types", cli, "sync"], {
43
46
  encoding: "utf8",
44
47
  stdio: "inherit",
45
48
  env: { ...process.env, NOVAHIZ_HOME: home }