@nathapp/nax 0.73.4 → 0.73.5

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 +17 -6
  2. package/package.json +1 -1
package/dist/nax.js CHANGED
@@ -41815,7 +41815,7 @@ var package_default;
41815
41815
  var init_package = __esm(() => {
41816
41816
  package_default = {
41817
41817
  name: "@nathapp/nax",
41818
- version: "0.73.4",
41818
+ version: "0.73.5",
41819
41819
  description: "AI Coding Agent Orchestrator \u2014 loops until done",
41820
41820
  type: "module",
41821
41821
  bin: {
@@ -41916,8 +41916,8 @@ var init_version = __esm(() => {
41916
41916
  NAX_VERSION = package_default.version;
41917
41917
  NAX_COMMIT = (() => {
41918
41918
  try {
41919
- if (/^[0-9a-f]{6,10}$/.test("ec04b570"))
41920
- return "ec04b570";
41919
+ if (/^[0-9a-f]{6,10}$/.test("6aa6f9d9"))
41920
+ return "6aa6f9d9";
41921
41921
  } catch {}
41922
41922
  try {
41923
41923
  const result = Bun.spawnSync(["git", "rev-parse", "--short", "HEAD"], {
@@ -57896,15 +57896,26 @@ function recordOscillations(store, storyId, delta) {
57896
57896
  function getOscillations(store, storyId) {
57897
57897
  return store.get(storyId) ?? 0;
57898
57898
  }
57899
+ function sourceSet(findings) {
57900
+ return new Set((Array.isArray(findings) ? findings : []).map((f) => f.source));
57901
+ }
57899
57902
  function countOscillationOutcomes(iterations) {
57903
+ const resolvedSources = new Set;
57900
57904
  let count = 0;
57901
57905
  for (const iteration of iterations) {
57902
- if (iteration.outcome === OSCILLATION_OUTCOME)
57903
- count += 1;
57906
+ const beforeSources = sourceSet(iteration.findingsBefore);
57907
+ const afterSources = sourceSet(iteration.findingsAfter);
57908
+ for (const source of afterSources) {
57909
+ if (resolvedSources.has(source))
57910
+ count += 1;
57911
+ }
57912
+ for (const source of beforeSources) {
57913
+ if (!afterSources.has(source))
57914
+ resolvedSources.add(source);
57915
+ }
57904
57916
  }
57905
57917
  return count;
57906
57918
  }
57907
- var OSCILLATION_OUTCOME = "regressed-different-source";
57908
57919
 
57909
57920
  // src/execution/checkpoint/resume-plan.ts
57910
57921
  function buildResumePlan(cp, current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nax",
3
- "version": "0.73.4",
3
+ "version": "0.73.5",
4
4
  "description": "AI Coding Agent Orchestrator — loops until done",
5
5
  "type": "module",
6
6
  "bin": {