@quikit/quikpilot-runner 9.3.0-rc.82 → 9.3.0-rc.83

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/README.md CHANGED
@@ -194,6 +194,8 @@ wrong (a field that arrives from a database row or a request), so it only warns
194
194
 
195
195
  **9.3.0-rc.81 (also) - pytest and go test reports place their tests on files (QUIKTR-2465 item 3).** The Python and Go trial repositories' reports placed no test on a file, so the test-file list was empty and the AI Runtime's early check was off. pytest tests are placed by the longest dotted prefix that is a `.py` file of the listing; Go tests by go.mod's module and the one `_test.go` file of the package's folder that declares the function. Real reports: sqlparse 454 tests on 9 files, decimal 145 tests on 3 files, 0 unmapped each. A report that places none of its tests says so in the run's notes. JavaScript reports are unchanged.
196
196
 
197
+ **9.3.0-rc.83 - a `find` that matches nowhere in a test-conflict report says which line differs and how (QUIKTR-2630, second part).** The two G4 runs on rc.82 (11 Nov 2026, QTGO-23 and QTGO-24) followed the new rc.82 advice for an ambiguous `find` and added the following lines, but the retry was rejected `no_match` and the second contradicting test row stayed unreported. A replay on the real test file shows the rows the advice points to match when copied with their tabs, and fail with spaces or a different number of tabs. The reply to `no_match` now finds the place in the file where the most lines of `find` agree once spaces and tabs at the start and end of each line are ignored (of equal places, the one inside the named test) and says: when only whitespace differs, the lines it matches and the first line that differs, with how its start differs (for example `Line 1 of find starts with 8 space(s); line 3597 of the file starts with 2 tab(s)`), or that it differs only after the indent (spaces at the end, line endings); when a line differs for real, the first line of `find` that does not agree and the file line it was compared with; when no line equals the first line, that. Only line numbers, counts and kinds of whitespace are in the reply, never the file's text or the AI's own. A `find` that matches, the `ambiguous` reply of rc.82 and every other rejection word are unchanged; a test helper file (feature mode) keeps the plain sentence. New tests in `testConflict.nomatch.test.ts`, written first (five of seven were red): spaces for tabs, one tab too few, trailing space, a line that really differs, no first line, no echo of text, an exact find still recorded, and the copy inside the named test preferred.
198
+
197
199
  **9.3.0-rc.82 - an ambiguous `find` in a test-conflict report says where the copies are and how to make it unique (QUIKTR-2630).** The bench bug G4 (decimal, `ExpHullAbrham`) failed every time, in the rc.79 round and in both rc.81 runs, for one reason: the AI fixed the code, but could not report the second existing test row that asserts the bug (`{"-26.1", 2, "0"}`). That row stands in two tests (`TestDecimal_ExpHullAbrham` and `TestDecimal_ExpTaylor`) with the same rows around it, `find` must match once in the whole file, and the reply to "ambiguous" only said to make it longer. The AI tried one-row spans, then guessed, got `no_match`, and ran out of attempts; the frozen row then blocked the change. Now the reply to an ambiguous `report_test_conflict` lists the lines of every copy, names the copy that is in the named test, and says how many of the next lines (or, when those do not tell the copies apart, the lines before it) of that test make the text unique, for example: copies at lines 3597 and 3664, add the next 2 lines after it (up to line 3599). On the real G4 test file this is exactly the span that matches once. Only line numbers and counts are in the reply, never the file's text or the AI's own. A `find` that matches once, or nowhere, and every other rejection word, are unchanged; a test helper file (feature mode) keeps the plain sentence. Not built: an optional line argument to pick a copy by line (the argument list is the AI Runtime's). New tests in `testConflict.ambiguous.test.ts`, written first (the F8-style duplicated rows in miniature: advice after, advice before, two copies inside one test, no echo of text, unchanged unique and not-found).
198
200
 
199
201
  **9.3.0-rc.80 - a feature's new data must reach the screen that shows it (QUIKTR-2458).** In the live F7 rerun of 10 Nov 2026 (QTRIA-61, "Show the number of comments on each task card on the board", rc.79) the card was changed and the count was added to `GET /api/projects/[id]/grouped-board`, a route only the grouped-kanban screen loads. The board's cards come from `GET /api/issues` (`board-column.tsx`), so on the main board the count never showed, while the parts check said all three parts were built (since rc.73 a part is built when any file planned for it changed, and it cannot tell a right file from a plausible wrong one). New `dataPathCheck.ts`, run only where the parts check already runs (a feature with a design that lists parts, `QUIKPILOT_PARTS_CHECK=on`): it takes the screen files the change touched (a `screen` part's planned files, tsx, jsx, vue, svelte or html), the files that import them (found with `git grep` for a line that imports the module, confirmed by the file's import specifiers; a module named `index`, `page`, `layout`, `route` and the like is not searched for), the files that import those, and what all of these import (up to 60 files, never a test file, a denied path or a file outside the read listing), reads the server addresses they call (the first string address on or just after a client-call line, and any `/api/...` string), and takes the server routes the change touched for the `data` part, by the address their file layout gives (Next.js app and pages routes). If the screen's loading calls go to addresses none of those routes answers (segment by segment, `*` for one segment, `**` for anything below, a call written relative to a base path counts), that is a gap. At a code-phase finish the AI is sent back once (its own counter, `done_rule`, one sentence naming the screen, the file that loads its data and the address it calls, and the route that was changed instead; log `codegen.data_path` `sent`, then `kept`); at the last gate before the commit a gap that is still there adds one run note through the existing `warnings` (log `parts_check.data_path` `warned`) and never stops the run: the check reads the layout and the calls, it cannot be certain. The log lines carry the numbers of the scan (`files`, `calls`, `ms`), never text. The scan gives up after 8 seconds and works with what it has. Checked on the real F7 pull request (quikit1926 `QTRIA-61`): flagged in about one second, naming `board-column.tsx` and `/api/issues` against the grouped-board route; silent when `GET /api/issues` is the route that was changed, and silent when both were. Silent when it cannot tell: no calls found, no changed data route with a known address, a language other than JavaScript or TypeScript, a screen shown only by a server component, git not running. Switched off, a bug run, a design with no parts and one-phase paths: every request, log line and callback is what it was. No site, AI Runtime or callback change. New tests in `dataPathCheck.test.ts` (the F7 repository in miniature on a real git checkout), `codegenLoopDataPath.test.ts` and `run.parts.test.ts`; thirty mutations turn tests red (one more only changes how long the scan takes).
package/dist/index.js CHANGED
@@ -38768,7 +38768,7 @@ var REJECT_MESSAGES = {
38768
38768
  unsupported_language: "Only JavaScript, TypeScript, Python, Go and Java test files can be reported.",
38769
38769
  title_not_found: "No test with that title was found in that file. Copy the title exactly as the file writes it. For a test written once for each row of a table, that is the title in the file with its $name or %s placeholders as they are, not the name of one row.",
38770
38770
  title_not_unique: "More than one test in that file has that title, so it cannot be told which one you mean.",
38771
- no_match: "find was not found in that file. Copy it exactly as read_file shows it.",
38771
+ no_match: "find was not found in that file. Copy it exactly as read_file shows it, with its tabs and spaces.",
38772
38772
  ambiguous: "find matches more than once in that file. Make it longer so it matches once, with lines of this test just before or just after it.",
38773
38773
  find_outside_test: "find is not inside that test. It must be lines of that test.",
38774
38774
  beyond_expectations: "replace changes more than the test's expected values. Only the expect(...) statements (and the title) may differ from find; the set-up and the call the test makes must stay as they are.",
@@ -38813,6 +38813,56 @@ function ambiguityHint(lf, find, test) {
38813
38813
  }
38814
38814
  return `${head} Add lines of this test around it until it matches once.`;
38815
38815
  }
38816
+ function indentOf2(line2) {
38817
+ const lead = /^[ \t]*/.exec(line2)[0];
38818
+ let tabs = 0;
38819
+ for (const c of lead) if (c === " ") tabs++;
38820
+ return { tabs, spaces: lead.length - tabs };
38821
+ }
38822
+ function indentWords(i3) {
38823
+ const parts2 = [];
38824
+ if (i3.tabs > 0) parts2.push(`${i3.tabs} tab(s)`);
38825
+ if (i3.spaces > 0) parts2.push(`${i3.spaces} space(s)`);
38826
+ return parts2.length > 0 ? parts2.join(" and ") : "no indent";
38827
+ }
38828
+ function mismatchHint(lf, find, test) {
38829
+ const want = find.split(/\r?\n/);
38830
+ const have = lf.split("\n");
38831
+ const first = want[0].trim();
38832
+ let at2 = -1;
38833
+ let k = 0;
38834
+ let inTest = false;
38835
+ if (first !== "") {
38836
+ for (let s = 0; s < have.length; s++) {
38837
+ if (have[s].trim() !== first) continue;
38838
+ let n = 1;
38839
+ while (n < want.length && s + n < have.length && have[s + n].trim() === want[n].trim()) n++;
38840
+ const inside3 = test !== void 0 && s + 1 >= test.startLine && s + n <= test.endLine;
38841
+ if (n > k || n === k && inside3 && !inTest) {
38842
+ at2 = s;
38843
+ k = n;
38844
+ inTest = inside3;
38845
+ }
38846
+ }
38847
+ }
38848
+ if (at2 < 0) return "No line of that file equals the first line of find, even ignoring spaces and tabs. Copy whole lines as read_file shows them.";
38849
+ if (k < want.length) {
38850
+ const ends = at2 + k >= have.length;
38851
+ return `The first line of find is at line ${at2 + 1} of the file; lines 1 to ${k} of find agree there, but line ${k + 1} of find does not match ${ends ? "anything: the file ends" : `line ${at2 + k + 1} of the file`}, even ignoring spaces and tabs. Check line ${k + 1} of find against the file.`;
38852
+ }
38853
+ const head = `It matches lines ${at2 + 1} to ${at2 + k} of the file when spaces and tabs are ignored, so only whitespace differs.`;
38854
+ const tail2 = "Copy the lines exactly as read_file shows them, with their tabs and spaces.";
38855
+ for (let j = 0; j < want.length; j++) {
38856
+ const a = want[j];
38857
+ const b = have[at2 + j];
38858
+ if (a === b) continue;
38859
+ const ai = indentOf2(a);
38860
+ const bi = indentOf2(b);
38861
+ if (ai.tabs !== bi.tabs || ai.spaces !== bi.spaces) return `${head} Line ${j + 1} of find starts with ${indentWords(ai)}; line ${at2 + j + 1} of the file starts with ${indentWords(bi)}. ${tail2}`;
38862
+ return `${head} Line ${j + 1} of find differs from line ${at2 + j + 1} of the file only after its indent (spaces at the end of the line, or line endings). ${tail2}`;
38863
+ }
38864
+ return `${head} ${find.includes("\r") ? "find has Windows line endings; the file is read with plain ones. " : ""}${tail2}`;
38865
+ }
38816
38866
  var NOT_FOUND_LEAD = "The tests in that file are: ";
38817
38867
  var NOT_FOUND_TAIL = ". The title is the name of the test function.";
38818
38868
  function titlesHint(tests, room = Number.POSITIVE_INFINITY) {
@@ -39076,7 +39126,7 @@ var TestConflictTool = class {
39076
39126
  const isTable = index >= located.tests.length;
39077
39127
  const applied = applyEdits(lf, [{ find: r.find, replace: r.replace }]);
39078
39128
  if (!applied.ok) {
39079
- if (applied.refusals[0]?.kind !== "ambiguous") return this.reject("no_match");
39129
+ if (applied.refusals[0]?.kind !== "ambiguous") return this.reject("no_match", helper ? void 0 : mismatchHint(lf, r.find, test));
39080
39130
  return this.reject("ambiguous", helper ? void 0 : ambiguityHint(lf, r.find, test) || void 0);
39081
39131
  }
39082
39132
  const at2 = lf.indexOf(r.find);
@@ -54180,7 +54230,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
54180
54230
  var REPORT_COPY = "final-test-report.xml";
54181
54231
  var MAX_REPORT_BYTES = 5 * 1024 * 1024;
54182
54232
  var MAX_FILES = 200;
54183
- var RUNNER_VERSION = true ? "9.3.0-rc.82" : "dev";
54233
+ var RUNNER_VERSION = true ? "9.3.0-rc.83" : "dev";
54184
54234
  function safeDestination(base, repoPath) {
54185
54235
  if (!repoPath || (0, import_node_path28.isAbsolute)(repoPath)) return null;
54186
54236
  const destination = (0, import_node_path28.resolve)(base, repoPath);