@quikit/quikpilot-runner 9.3.0-rc.1 → 9.3.0-rc.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.
package/dist/index.js CHANGED
@@ -12831,7 +12831,11 @@ function perFile(p) {
12831
12831
  }
12832
12832
  async function runCodegenStep(p) {
12833
12833
  if (p.mode !== "loop" && p.mode !== "loop-tests") return perFile(p);
12834
- const treeAtStart = p.mode === "loop-tests" && p.tests ? captureTree(p.tests.root, [], p.tests.tree) : null;
12834
+ const testSetup = p.mode === "loop-tests" ? p.tests : void 0;
12835
+ const treeAtStart = testSetup ? testSetup.baseline().then(
12836
+ () => captureTree(testSetup.root, [], testSetup.tree),
12837
+ () => captureTree(testSetup.root, [], testSetup.tree)
12838
+ ).catch(() => null) : null;
12835
12839
  const context = collectLoopContext({ targets: p.targets, listing: p.workspaceListing, deniedPaths: p.deniedPaths, ...p.readFile ? { readFile: p.readFile } : {} });
12836
12840
  p.contextLog.push(...context.records);
12837
12841
  console.log(
@@ -12872,7 +12876,8 @@ async function runCodegenStep(p) {
12872
12876
  const w = `The code-writing loop could not finish (${failure.reason}${said}), so the files were written one at a time instead.`;
12873
12877
  p.warnings.push(w);
12874
12878
  console.warn(`QuikPilot codegen warning (not blocking): ${w}`);
12875
- if (treeAtStart && p.tests) assertTreeUnchanged(p.tests.root, treeAtStart, [], p.tests.tree);
12879
+ const before = treeAtStart ? await treeAtStart : null;
12880
+ if (before && p.tests) assertTreeUnchanged(p.tests.root, before, [], p.tests.tree);
12876
12881
  return perFile(p);
12877
12882
  }
12878
12883
  }
@@ -13323,7 +13328,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
13323
13328
  var REPORT_COPY = "final-test-report.xml";
13324
13329
  var MAX_REPORT_BYTES = 5 * 1024 * 1024;
13325
13330
  var MAX_FILES = 200;
13326
- var RUNNER_VERSION = true ? "9.3.0-rc.1" : "dev";
13331
+ var RUNNER_VERSION = true ? "9.3.0-rc.2" : "dev";
13327
13332
  function safeDestination(base, repoPath) {
13328
13333
  if (!repoPath || (0, import_node_path12.isAbsolute)(repoPath)) return null;
13329
13334
  const destination = (0, import_node_path12.resolve)(base, repoPath);