@nathapp/nax 0.29.0 → 0.30.0
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 +10 -0
- package/bin/nax.ts +2 -3
- package/dist/nax.js +439 -377
- package/package.json +2 -2
- package/src/cli/analyze.ts +2 -7
- package/src/execution/lifecycle/headless-formatter.ts +2 -4
- package/src/prompts/builder.ts +12 -69
- package/src/prompts/sections/isolation.ts +38 -8
- package/src/prompts/sections/role-task.ts +79 -19
- package/src/prompts/templates/implementer.ts +0 -6
- package/src/prompts/templates/single-session.ts +0 -6
- package/src/prompts/templates/test-writer.ts +0 -6
- package/src/prompts/templates/verifier.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.30.0] - 2026-03-08
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Global install crash:** `bin/nax.ts`, `headless-formatter.ts`, and `cli/analyze.ts` were reading `package.json` at runtime via `import.meta.dir`-relative paths. In a global bun install, these paths resolve incorrectly, causing an ENOENT crash on launch. All three now use the static `NAX_VERSION` constant (baked in at build time).
|
|
12
|
+
|
|
13
|
+
### Refactored
|
|
14
|
+
- **Prompt Builder wired to sections:** `PromptBuilder` now calls `buildRoleTaskSection()`, `buildIsolationSection()`, `buildStorySection()`, and `buildConventionsSection()` from `src/prompts/sections/` instead of duplicated inline functions. Eliminates 80+ lines of dead code.
|
|
15
|
+
- **Sections expanded:** `role-task.ts` and `isolation.ts` now cover all 4 roles (`implementer`, `test-writer`, `verifier`, `single-session`). Previously only covered 1–2 roles each.
|
|
16
|
+
- **Template stubs removed:** `src/prompts/templates/` directory deleted — all 4 stub files (`implementer.ts`, `test-writer.ts`, `verifier.ts`, `single-session.ts`) were empty and unused.
|
|
17
|
+
|
|
8
18
|
## [0.29.0] - 2026-03-08
|
|
9
19
|
|
|
10
20
|
### Added
|
package/bin/nax.ts
CHANGED
|
@@ -70,12 +70,11 @@ import { loadHooksConfig } from "../src/hooks";
|
|
|
70
70
|
import { type LogLevel, initLogger } from "../src/logger";
|
|
71
71
|
import { countStories, loadPRD } from "../src/prd";
|
|
72
72
|
import { PipelineEventEmitter, type StoryDisplayState, renderTui } from "../src/tui";
|
|
73
|
-
|
|
74
|
-
const pkg = await Bun.file(join(import.meta.dir, "..", "package.json")).json();
|
|
73
|
+
import { NAX_VERSION } from "../src/version";
|
|
75
74
|
|
|
76
75
|
const program = new Command();
|
|
77
76
|
|
|
78
|
-
program.name("nax").description("AI Coding Agent Orchestrator — loops until done").version(
|
|
77
|
+
program.name("nax").description("AI Coding Agent Orchestrator — loops until done").version(NAX_VERSION);
|
|
79
78
|
|
|
80
79
|
// ── init ─────────────────────────────────────────────
|
|
81
80
|
program
|