@nathapp/nax 0.67.5 → 0.67.6
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 +7 -4
- package/package.json +1 -1
package/dist/nax.js
CHANGED
|
@@ -52634,6 +52634,9 @@ async function closeAllRunSessions(sessionManager, agentGetFn, opts) {
|
|
|
52634
52634
|
}
|
|
52635
52635
|
|
|
52636
52636
|
// src/execution/post-run.ts
|
|
52637
|
+
function shouldRollbackTddFailure(tddMode, failureCategory) {
|
|
52638
|
+
return tddMode?.rollbackEnabled === true && failureCategory === "isolation-violation";
|
|
52639
|
+
}
|
|
52637
52640
|
function extractPauseReason(phaseOutputs) {
|
|
52638
52641
|
for (const output of Object.values(phaseOutputs)) {
|
|
52639
52642
|
if (output !== null && typeof output === "object") {
|
|
@@ -52816,7 +52819,7 @@ async function decideStageAction(ctx, planResult, inspection, opts) {
|
|
|
52816
52819
|
const logger = getLogger();
|
|
52817
52820
|
const isTdd = opts.tddMode !== null;
|
|
52818
52821
|
const isLiteMode = opts.tddMode?.isLite ?? false;
|
|
52819
|
-
const shouldRollback = opts.tddMode
|
|
52822
|
+
const shouldRollback = shouldRollbackTddFailure(opts.tddMode, inspection.failureCategory);
|
|
52820
52823
|
const { agentResult, selfVerificationFailed, pauseReason, failureCategory, needsHumanReview, combinedOutput } = inspection;
|
|
52821
52824
|
if (planResult.rectificationExhausted && planResult.unfixedFindings && planResult.unfixedFindings.length > 0) {
|
|
52822
52825
|
const sources = new Set(planResult.unfixedFindings.map((f) => f.source));
|
|
@@ -56733,7 +56736,7 @@ var package_default;
|
|
|
56733
56736
|
var init_package = __esm(() => {
|
|
56734
56737
|
package_default = {
|
|
56735
56738
|
name: "@nathapp/nax",
|
|
56736
|
-
version: "0.67.
|
|
56739
|
+
version: "0.67.6",
|
|
56737
56740
|
description: "AI Coding Agent Orchestrator \u2014 loops until done",
|
|
56738
56741
|
type: "module",
|
|
56739
56742
|
bin: {
|
|
@@ -56828,8 +56831,8 @@ var init_version = __esm(() => {
|
|
|
56828
56831
|
NAX_VERSION = package_default.version;
|
|
56829
56832
|
NAX_COMMIT = (() => {
|
|
56830
56833
|
try {
|
|
56831
|
-
if (/^[0-9a-f]{6,10}$/.test("
|
|
56832
|
-
return "
|
|
56834
|
+
if (/^[0-9a-f]{6,10}$/.test("8e8f2b3a"))
|
|
56835
|
+
return "8e8f2b3a";
|
|
56833
56836
|
} catch {}
|
|
56834
56837
|
try {
|
|
56835
56838
|
const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
|