@nathapp/nax 0.42.8 → 0.42.9
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/bin/nax.ts +9 -0
- package/dist/nax.js +10 -3
- package/package.json +1 -1
package/bin/nax.ts
CHANGED
|
@@ -656,6 +656,14 @@ program
|
|
|
656
656
|
// Load config
|
|
657
657
|
const config = await loadConfig(workdir);
|
|
658
658
|
|
|
659
|
+
// Initialize logger — writes to nax/features/<feature>/plan-<timestamp>.jsonl
|
|
660
|
+
const featureLogDir = join(naxDir, "features", options.feature);
|
|
661
|
+
mkdirSync(featureLogDir, { recursive: true });
|
|
662
|
+
const planLogId = new Date().toISOString().replace(/:/g, "-").replace(/\..+/, "");
|
|
663
|
+
const planLogPath = join(featureLogDir, `plan-${planLogId}.jsonl`);
|
|
664
|
+
initLogger({ level: "info", filePath: planLogPath, useChalk: false, headless: true });
|
|
665
|
+
console.log(chalk.dim(` [Plan log: ${planLogPath}]`));
|
|
666
|
+
|
|
659
667
|
try {
|
|
660
668
|
const prdPath = await planCommand(workdir, config, {
|
|
661
669
|
from: options.from,
|
|
@@ -666,6 +674,7 @@ program
|
|
|
666
674
|
|
|
667
675
|
console.log(chalk.green("\n[OK] PRD generated"));
|
|
668
676
|
console.log(chalk.dim(` PRD: ${prdPath}`));
|
|
677
|
+
console.log(chalk.dim(` Log: ${planLogPath}`));
|
|
669
678
|
console.log(chalk.dim(`\nNext: nax run -f ${options.feature}`));
|
|
670
679
|
} catch (err) {
|
|
671
680
|
console.error(chalk.red(`Error: ${(err as Error).message}`));
|
package/dist/nax.js
CHANGED
|
@@ -21924,7 +21924,7 @@ var package_default;
|
|
|
21924
21924
|
var init_package = __esm(() => {
|
|
21925
21925
|
package_default = {
|
|
21926
21926
|
name: "@nathapp/nax",
|
|
21927
|
-
version: "0.42.
|
|
21927
|
+
version: "0.42.9",
|
|
21928
21928
|
description: "AI Coding Agent Orchestrator \u2014 loops until done",
|
|
21929
21929
|
type: "module",
|
|
21930
21930
|
bin: {
|
|
@@ -21997,8 +21997,8 @@ var init_version = __esm(() => {
|
|
|
21997
21997
|
NAX_VERSION = package_default.version;
|
|
21998
21998
|
NAX_COMMIT = (() => {
|
|
21999
21999
|
try {
|
|
22000
|
-
if (/^[0-9a-f]{6,10}$/.test("
|
|
22001
|
-
return "
|
|
22000
|
+
if (/^[0-9a-f]{6,10}$/.test("9e750da"))
|
|
22001
|
+
return "9e750da";
|
|
22002
22002
|
} catch {}
|
|
22003
22003
|
try {
|
|
22004
22004
|
const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
|
|
@@ -76996,6 +76996,12 @@ Use: nax plan -f <feature> --from <spec>`));
|
|
|
76996
76996
|
process.exit(1);
|
|
76997
76997
|
}
|
|
76998
76998
|
const config2 = await loadConfig(workdir);
|
|
76999
|
+
const featureLogDir = join43(naxDir, "features", options.feature);
|
|
77000
|
+
mkdirSync6(featureLogDir, { recursive: true });
|
|
77001
|
+
const planLogId = new Date().toISOString().replace(/:/g, "-").replace(/\..+/, "");
|
|
77002
|
+
const planLogPath = join43(featureLogDir, `plan-${planLogId}.jsonl`);
|
|
77003
|
+
initLogger({ level: "info", filePath: planLogPath, useChalk: false, headless: true });
|
|
77004
|
+
console.log(source_default.dim(` [Plan log: ${planLogPath}]`));
|
|
76999
77005
|
try {
|
|
77000
77006
|
const prdPath = await planCommand(workdir, config2, {
|
|
77001
77007
|
from: options.from,
|
|
@@ -77006,6 +77012,7 @@ Use: nax plan -f <feature> --from <spec>`));
|
|
|
77006
77012
|
console.log(source_default.green(`
|
|
77007
77013
|
[OK] PRD generated`));
|
|
77008
77014
|
console.log(source_default.dim(` PRD: ${prdPath}`));
|
|
77015
|
+
console.log(source_default.dim(` Log: ${planLogPath}`));
|
|
77009
77016
|
console.log(source_default.dim(`
|
|
77010
77017
|
Next: nax run -f ${options.feature}`));
|
|
77011
77018
|
} catch (err) {
|