@nathapp/nax 0.67.0 → 0.67.1
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 +29 -7
- package/package.json +1 -1
package/dist/nax.js
CHANGED
|
@@ -37189,10 +37189,32 @@ async function runRectificationLoop(opts) {
|
|
|
37189
37189
|
}
|
|
37190
37190
|
}
|
|
37191
37191
|
});
|
|
37192
|
-
|
|
37193
|
-
|
|
37194
|
-
|
|
37195
|
-
|
|
37192
|
+
let initialFailure = { testOutput, testSummary };
|
|
37193
|
+
if (rectificationConfig.abortOnIncreasingFailures) {
|
|
37194
|
+
const preCheck = await _rectificationDeps.runVerification({
|
|
37195
|
+
workdir,
|
|
37196
|
+
expectedFiles: getExpectedFiles(story),
|
|
37197
|
+
command: testCommand,
|
|
37198
|
+
timeoutSeconds,
|
|
37199
|
+
forceExit: config2.quality.forceExit,
|
|
37200
|
+
detectOpenHandles: config2.quality.detectOpenHandles,
|
|
37201
|
+
detectOpenHandlesRetries: config2.quality.detectOpenHandlesRetries,
|
|
37202
|
+
timeoutRetryCount: 0,
|
|
37203
|
+
gracePeriodMs: config2.quality.gracePeriodMs,
|
|
37204
|
+
drainTimeoutMs: config2.quality.drainTimeoutMs,
|
|
37205
|
+
shell: config2.quality.shell,
|
|
37206
|
+
stripEnvVars: config2.quality.stripEnvVars
|
|
37207
|
+
});
|
|
37208
|
+
if (preCheck.output) {
|
|
37209
|
+
const preCheckSummary = parseTestOutput(preCheck.output);
|
|
37210
|
+
initialFailure = { testOutput: preCheck.output, testSummary: preCheckSummary };
|
|
37211
|
+
} else {
|
|
37212
|
+
logger?.warn("rectification", "pre-check returned no output \u2014 abort baseline may be scope-mismatched", {
|
|
37213
|
+
storyId: story.id,
|
|
37214
|
+
preCheckStatus: preCheck.status
|
|
37215
|
+
});
|
|
37216
|
+
}
|
|
37217
|
+
}
|
|
37196
37218
|
const outcome = await runRetryLoop({
|
|
37197
37219
|
stage: "rectification",
|
|
37198
37220
|
storyId: story.id,
|
|
@@ -59160,7 +59182,7 @@ var package_default;
|
|
|
59160
59182
|
var init_package = __esm(() => {
|
|
59161
59183
|
package_default = {
|
|
59162
59184
|
name: "@nathapp/nax",
|
|
59163
|
-
version: "0.67.
|
|
59185
|
+
version: "0.67.1",
|
|
59164
59186
|
description: "AI Coding Agent Orchestrator \u2014 loops until done",
|
|
59165
59187
|
type: "module",
|
|
59166
59188
|
bin: {
|
|
@@ -59255,8 +59277,8 @@ var init_version = __esm(() => {
|
|
|
59255
59277
|
NAX_VERSION = package_default.version;
|
|
59256
59278
|
NAX_COMMIT = (() => {
|
|
59257
59279
|
try {
|
|
59258
|
-
if (/^[0-9a-f]{6,10}$/.test("
|
|
59259
|
-
return "
|
|
59280
|
+
if (/^[0-9a-f]{6,10}$/.test("be0f8521"))
|
|
59281
|
+
return "be0f8521";
|
|
59260
59282
|
} catch {}
|
|
59261
59283
|
try {
|
|
59262
59284
|
const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
|