@agenit/cli 1.0.3 → 1.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +39 -16
  2. package/cli.js +687 -522
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,9 +3,43 @@
3
3
  All notable changes to `@agenit/cli` are documented here. The project
4
4
  follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
- ## [1.0.3] - 2026-05-07
6
+ ## [1.0.4] - 2026-05-08
7
+
8
+ ### Added
9
+
10
+ - **`agenit init` now seeds `.gemini/` for the user's project.** Copies
11
+ every skill from `<flowHome>/.gemini/skills/` into
12
+ `<project>/.gemini/skills/` and writes a `<project>/.gemini/settings.json`
13
+ derived from TheFlow's, with all relative hook paths
14
+ (`./.flow/hooks/foo.py`) rewritten to absolute paths so the hooks
15
+ fire correctly regardless of cwd. Without this step the cwd fix
16
+ introduced in 1.0.3 left Gemini-CLI unable to discover any skills or
17
+ hooks when running from the user's project — `/feature` runs would
18
+ silently degrade to a generic persona. Use `--no-skills` to opt out;
19
+ an existing `<project>/.gemini/settings.json` is preserved.
20
+ - New `tests/gemini-assets.test.ts` covers skill copying, hook-path
21
+ rewriting, and existing-settings preservation.
22
+
23
+ ## [1.0.3] - 2026-05-08
24
+
25
+ ### Added
26
+
27
+ - **Cross-platform Gemini CLI discovery.** `binary` in `flow.toml` can
28
+ now be a bare command name (`"gemini"` is the new default) — agenIT
29
+ searches `PATH` (with `PATHEXT` extensions on Windows) and falls
30
+ back to well-known install dirs per OS:
31
+ - macOS: `/opt/homebrew/bin`, `/usr/local/bin`, `~/.npm-global/bin`
32
+ - Linux: `/usr/local/bin`, `/usr/bin`, `/home/linuxbrew/.linuxbrew/bin`,
33
+ `~/.npm-global/bin`, `~/.local/bin`
34
+ - Windows: `%APPDATA%\npm`, `%ProgramFiles%\nodejs`,
35
+ `%LOCALAPPDATA%\Programs\gemini-cli`
36
+
37
+ Absolute paths are still honoured verbatim. On Windows the spawned
38
+ process uses `shell: true` so `.cmd` / `.bat` shims execute correctly
39
+ when invoked without their extension.
7
40
 
8
41
  ### Fixed
42
+
9
43
  - **Artefacts now land in the user's project, not in the install repo.**
10
44
  Previously every relative path in `flow.toml` (gemini `working_dir`,
11
45
  `memory_dir`, `codedigest_dir`, `mempalace`, sona/reasoning/rvf)
@@ -25,29 +59,18 @@ follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
25
59
  shows "Spec-Kit (specify → plan → tasks)" and "Export spec → SWE.1"
26
60
  before the V-Model nodes start firing their own stage updates.
27
61
 
28
- ### Added
29
- - **Cross-platform Gemini CLI discovery.** `binary` in `flow.toml` can
30
- now be a bare command name (`"gemini"` is the new default) — agenIT
31
- searches `PATH` (with `PATHEXT` extensions on Windows) and falls
32
- back to well-known install dirs per OS:
33
- - macOS: `/opt/homebrew/bin`, `/usr/local/bin`, `~/.npm-global/bin`
34
- - Linux: `/usr/local/bin`, `/usr/bin`, `/home/linuxbrew/.linuxbrew/bin`,
35
- `~/.npm-global/bin`, `~/.local/bin`
36
- - Windows: `%APPDATA%\npm`, `%ProgramFiles%\nodejs`,
37
- `%LOCALAPPDATA%\Programs\gemini-cli`
38
-
39
- Absolute paths are still honoured verbatim. On Windows the spawned
40
- process uses `shell: true` so `.cmd` / `.bat` shims execute correctly
41
- when invoked without their extension.
42
-
43
62
  ### Changed
63
+
44
64
  - Default `flow.toml` ships `binary = "gemini"` (was the macOS
45
65
  Homebrew absolute path) and drops the leading `../` from
46
66
  `memory_dir` / `codedigest_dir` so artefacts land *inside* the
47
67
  user's project.
48
68
 
49
69
  ### Tests
70
+
50
71
  - New `tests/config-paths.test.ts` pins the install vs project anchor
51
72
  split and the absolute-path passthrough.
52
73
  - New `tests/binary-resolver.test.ts` covers PATH walking, absolute
53
74
  path probing, and missing-binary handling.
75
+ - New `tests/gemini-assets.test.ts` covers skill copying, hook-path
76
+ rewriting, and existing-settings preservation.