@nathapp/nax 0.75.1 → 0.75.2

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 +8 -10
  2. package/package.json +1 -1
package/dist/nax.js CHANGED
@@ -36873,11 +36873,11 @@ var init_adversarial_review = __esm(() => {
36873
36873
  category: f.category
36874
36874
  });
36875
36875
  }
36876
- const hadBlockingSeverity = accepted.some((f) => isBlockingSeverity(f.severity, threshold));
36877
- const passed = blocking.length === 0 && (parsed.passed || hadBlockingSeverity);
36876
+ const passed = blocking.length === 0 && (parsed.passed || accepted.length > 0);
36878
36877
  return {
36879
36878
  ...parsed,
36880
36879
  passed,
36880
+ modelPassed: parsed.passed,
36881
36881
  findings: accepted,
36882
36882
  normalizedFindings: toAdversarialReviewFindings(blocking, { isTestFile: testFileMatch }),
36883
36883
  advisoryFindings: [
@@ -42493,7 +42493,7 @@ var package_default;
42493
42493
  var init_package = __esm(() => {
42494
42494
  package_default = {
42495
42495
  name: "@nathapp/nax",
42496
- version: "0.75.1",
42496
+ version: "0.75.2",
42497
42497
  description: "AI Coding Agent Orchestrator \u2014 loops until done",
42498
42498
  type: "module",
42499
42499
  bin: {
@@ -42596,8 +42596,8 @@ var init_version = __esm(() => {
42596
42596
  NAX_VERSION = package_default.version;
42597
42597
  NAX_COMMIT = (() => {
42598
42598
  try {
42599
- if (/^[0-9a-f]{6,10}$/.test("928c0354"))
42600
- return "928c0354";
42599
+ if (/^[0-9a-f]{6,10}$/.test("8538e8f4"))
42600
+ return "8538e8f4";
42601
42601
  } catch {}
42602
42602
  try {
42603
42603
  const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
@@ -43110,12 +43110,10 @@ ${formatFindings(blockingFindings)}` : "Adversarial review failed (no findings)"
43110
43110
  cost: llmCost
43111
43111
  };
43112
43112
  }
43113
- if (!opResult.passed && acDropped.length > 0) {
43114
- const allHallucinated = acDropped.every((d) => d.code === "ac_quote_not_substring");
43115
- if (allHallucinated) {
43113
+ if (!opResult.modelPassed && acDropped.length > 0) {
43114
+ if (acDropped.every((d) => d.code === "ac_quote_not_substring")) {
43116
43115
  const demotedFindings = toAdversarialReviewFindings(acDropped.map((d) => ({ ...d.finding, severity: "warning", acQuote: undefined, acIndex: undefined })), { isTestFile: testFileMatch });
43117
- const existingAdvisory = advisoryFindings.length > 0 ? advisoryFindingsAsFindings : [];
43118
- const allAdvisory = [...existingAdvisory, ...demotedFindings];
43116
+ const allAdvisory = [...advisoryFindingsAsFindings, ...demotedFindings];
43119
43117
  logger?.warn("review", "Adversarial review passed: all blocking findings discarded as hallucinated AC quotes", {
43120
43118
  storyId: story.id,
43121
43119
  durationMs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nax",
3
- "version": "0.75.1",
3
+ "version": "0.75.2",
4
4
  "description": "AI Coding Agent Orchestrator — loops until done",
5
5
  "type": "module",
6
6
  "bin": {