@nathapp/nax 0.54.10 → 0.54.11
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/dist/nax.js +6 -6
- package/package.json +1 -1
package/dist/nax.js
CHANGED
|
@@ -22370,7 +22370,7 @@ var package_default;
|
|
|
22370
22370
|
var init_package = __esm(() => {
|
|
22371
22371
|
package_default = {
|
|
22372
22372
|
name: "@nathapp/nax",
|
|
22373
|
-
version: "0.54.
|
|
22373
|
+
version: "0.54.11",
|
|
22374
22374
|
description: "AI Coding Agent Orchestrator \u2014 loops until done",
|
|
22375
22375
|
type: "module",
|
|
22376
22376
|
bin: {
|
|
@@ -22449,8 +22449,8 @@ var init_version = __esm(() => {
|
|
|
22449
22449
|
NAX_VERSION = package_default.version;
|
|
22450
22450
|
NAX_COMMIT = (() => {
|
|
22451
22451
|
try {
|
|
22452
|
-
if (/^[0-9a-f]{6,10}$/.test("
|
|
22453
|
-
return "
|
|
22452
|
+
if (/^[0-9a-f]{6,10}$/.test("9ffd760"))
|
|
22453
|
+
return "9ffd760";
|
|
22454
22454
|
} catch {}
|
|
22455
22455
|
try {
|
|
22456
22456
|
const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
|
|
@@ -35228,6 +35228,9 @@ ${missing.join(`
|
|
|
35228
35228
|
validateStoryId(storyId);
|
|
35229
35229
|
const worktreePath = join50(projectRoot, ".nax-wt", storyId);
|
|
35230
35230
|
const branchName = `nax/${storyId}`;
|
|
35231
|
+
try {
|
|
35232
|
+
await this.remove(projectRoot, storyId);
|
|
35233
|
+
} catch {}
|
|
35231
35234
|
try {
|
|
35232
35235
|
const proc = _managerDeps.spawn(["git", "worktree", "add", worktreePath, "-b", branchName], {
|
|
35233
35236
|
cwd: projectRoot,
|
|
@@ -35244,9 +35247,6 @@ ${missing.join(`
|
|
|
35244
35247
|
if (error48.message.includes("not a git repository")) {
|
|
35245
35248
|
throw new Error(`Not a git repository: ${projectRoot}`);
|
|
35246
35249
|
}
|
|
35247
|
-
if (error48.message.includes("already exists")) {
|
|
35248
|
-
throw new Error(`Worktree for story ${storyId} already exists at ${worktreePath}`);
|
|
35249
|
-
}
|
|
35250
35250
|
throw error48;
|
|
35251
35251
|
}
|
|
35252
35252
|
throw new Error(`Failed to create worktree: ${String(error48)}`);
|