@nathapp/nax 0.70.2 → 0.70.3

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.
Files changed (2) hide show
  1. package/dist/nax.js +20 -11
  2. package/package.json +1 -1
package/dist/nax.js CHANGED
@@ -39413,6 +39413,7 @@ var init__finding_to_check = __esm(() => {
39413
39413
  function makeAutofixImplementerStrategy(story, config2, sink, opts = {}) {
39414
39414
  const claimsAdversarial = opts.includeAdversarialReview === true;
39415
39415
  const adversarialReviewByFixTarget = opts.adversarialReviewByFixTarget;
39416
+ const blockingThreshold = opts.promptSeverityFloor ?? config2.review?.blockingThreshold;
39416
39417
  return {
39417
39418
  name: "autofix-implementer",
39418
39419
  appliesTo: (f) => (f.fixTarget === "source" || f.fixTarget == null) && IMPLEMENTER_SOURCES.has(f.source) || adversarialReviewByFixTarget !== undefined && f.source === "adversarial-review" && f.fixTarget === adversarialReviewByFixTarget || adversarialReviewByFixTarget === undefined && claimsAdversarial && f.source === "adversarial-review",
@@ -39420,7 +39421,8 @@ function makeAutofixImplementerStrategy(story, config2, sink, opts = {}) {
39420
39421
  buildInput: (findings, _prior, _cycleCtx) => ({
39421
39422
  failedChecks: findingsToFailedChecks(findings),
39422
39423
  story,
39423
- findings
39424
+ findings,
39425
+ blockingThreshold
39424
39426
  }),
39425
39427
  extractApplied: (output) => {
39426
39428
  for (const decl of output.testEditDeclarations) {
@@ -39449,6 +39451,7 @@ var init_autofix_implementer_strategy = __esm(() => {
39449
39451
  // src/operations/autofix-test-writer-strategy.ts
39450
39452
  function makeAutofixTestWriterStrategy(story, config2, sink, opts = {}) {
39451
39453
  const includeAdversarial = opts.includeAdversarialReview !== false;
39454
+ const blockingThreshold = opts.promptSeverityFloor ?? config2.review?.blockingThreshold;
39452
39455
  return {
39453
39456
  name: "autofix-test-writer",
39454
39457
  appliesTo: (f) => f.fixTarget === "test" || includeAdversarial && f.source === "adversarial-review" || sink.mockHandoffs.length > 0,
@@ -39473,7 +39476,7 @@ function makeAutofixTestWriterStrategy(story, config2, sink, opts = {}) {
39473
39476
  failedChecks: findingsToFailedChecks(findings),
39474
39477
  story,
39475
39478
  mode: "mock-restructure",
39476
- blockingThreshold: config2.review?.blockingThreshold,
39479
+ blockingThreshold,
39477
39480
  handoffReason,
39478
39481
  handoffFiles
39479
39482
  };
@@ -39481,7 +39484,7 @@ function makeAutofixTestWriterStrategy(story, config2, sink, opts = {}) {
39481
39484
  return {
39482
39485
  failedChecks: findingsToFailedChecks(findings),
39483
39486
  story,
39484
- blockingThreshold: config2.review?.blockingThreshold
39487
+ blockingThreshold
39485
39488
  };
39486
39489
  },
39487
39490
  maxAttempts: config2.execution.rectification.maxAttemptsPerStrategy,
@@ -56047,18 +56050,24 @@ async function buildPlanForStrategy(ctx, story, config2, testStrategy, inputs) {
56047
56050
  const nbSink = makeDeclarationSink();
56048
56051
  if (nbf.scope === "source") {
56049
56052
  nbStrategies.push(makeAutofixImplementerStrategy(story, config2, nbSink, {
56050
- includeAdversarialReview: true
56053
+ includeAdversarialReview: true,
56054
+ promptSeverityFloor: "info"
56051
56055
  }));
56052
56056
  } else if (nbf.scope === "triage") {
56053
56057
  nbStrategies.push(makeAutofixImplementerStrategy(story, config2, nbSink, {
56054
- adversarialReviewByFixTarget: "source"
56058
+ adversarialReviewByFixTarget: "source",
56059
+ promptSeverityFloor: "info"
56055
56060
  }), makeAutofixTestWriterStrategy(story, config2, nbSink, {
56056
- includeAdversarialReview: false
56061
+ includeAdversarialReview: false,
56062
+ promptSeverityFloor: "info"
56057
56063
  }));
56058
56064
  } else {
56059
56065
  nbStrategies.push(makeAutofixImplementerStrategy(story, config2, nbSink, {
56060
- includeAdversarialReview: false
56061
- }), makeAutofixTestWriterStrategy(story, config2, nbSink));
56066
+ includeAdversarialReview: false,
56067
+ promptSeverityFloor: "info"
56068
+ }), makeAutofixTestWriterStrategy(story, config2, nbSink, {
56069
+ promptSeverityFloor: "info"
56070
+ }));
56062
56071
  }
56063
56072
  nbStrategies.push(makeFullSuiteRectifyStrategy(story, config2, nbSink));
56064
56073
  const nbPostValidate = async (findings, _validateCtx) => {
@@ -60691,7 +60700,7 @@ var package_default;
60691
60700
  var init_package = __esm(() => {
60692
60701
  package_default = {
60693
60702
  name: "@nathapp/nax",
60694
- version: "0.70.2",
60703
+ version: "0.70.3",
60695
60704
  description: "AI Coding Agent Orchestrator \u2014 loops until done",
60696
60705
  type: "module",
60697
60706
  bin: {
@@ -60791,8 +60800,8 @@ var init_version = __esm(() => {
60791
60800
  NAX_VERSION = package_default.version;
60792
60801
  NAX_COMMIT = (() => {
60793
60802
  try {
60794
- if (/^[0-9a-f]{6,10}$/.test("0e202cfa"))
60795
- return "0e202cfa";
60803
+ if (/^[0-9a-f]{6,10}$/.test("c399b5b4"))
60804
+ return "c399b5b4";
60796
60805
  } catch {}
60797
60806
  try {
60798
60807
  const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nax",
3
- "version": "0.70.2",
3
+ "version": "0.70.3",
4
4
  "description": "AI Coding Agent Orchestrator — loops until done",
5
5
  "type": "module",
6
6
  "bin": {