@agenit/cli 1.0.2 → 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 +76 -0
  2. package/cli.js +790 -532
  3. package/package.json +2 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,76 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@agenit/cli` are documented here. The project
4
+ follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+
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.
40
+
41
+ ### Fixed
42
+
43
+ - **Artefacts now land in the user's project, not in the install repo.**
44
+ Previously every relative path in `flow.toml` (gemini `working_dir`,
45
+ `memory_dir`, `codedigest_dir`, `mempalace`, sona/reasoning/rvf)
46
+ resolved against the directory holding `flow.toml`, so spec.md /
47
+ hld.md / generated source from a `/feature` run landed inside the
48
+ agenIT install repo regardless of where you invoked `agenit`.
49
+ Project-side paths now resolve against the directory you ran
50
+ `agenit` from. Install-side paths (`soul_path`, `prompts_dir`,
51
+ `templates_dir`, `tools_dir`, `flow_home`) still resolve against
52
+ the install dir, so shipped assets remain shared.
53
+ - **Terminal resize no longer duplicates / corrupts REPL output.** The
54
+ Ink frontend now subscribes to `stdout`'s `resize` event, so Box
55
+ widths stay in sync with the actual terminal width and the
56
+ `<Static>` block diffs cleanly instead of re-flushing history.
57
+ - **`/feature` side rail updates during the speckit / export phases.**
58
+ The first ~2 minutes of a run no longer look frozen — the rail
59
+ shows "Spec-Kit (specify → plan → tasks)" and "Export spec → SWE.1"
60
+ before the V-Model nodes start firing their own stage updates.
61
+
62
+ ### Changed
63
+
64
+ - Default `flow.toml` ships `binary = "gemini"` (was the macOS
65
+ Homebrew absolute path) and drops the leading `../` from
66
+ `memory_dir` / `codedigest_dir` so artefacts land *inside* the
67
+ user's project.
68
+
69
+ ### Tests
70
+
71
+ - New `tests/config-paths.test.ts` pins the install vs project anchor
72
+ split and the absolute-path passthrough.
73
+ - New `tests/binary-resolver.test.ts` covers PATH walking, absolute
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.