@quikit/quikpilot-runner 9.2.0-rc.7 → 9.3.0-rc.1
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 +32 -0
- package/dist/index.js +11413 -1830
- package/dist/index.js.map +4 -4
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -43,6 +43,38 @@ gains `targeting.loop_start`, `targeting.loop_turn`, `targeting.loop_refused`, `
|
|
|
43
43
|
and counts only, never content). Without the variable nothing changes. The workflow file is unchanged; the `env:` line
|
|
44
44
|
is the only edit, and it is optional.
|
|
45
45
|
|
|
46
|
+
**9.3.0 (release candidates) — the AI can run the project's tests while it writes (off by default).** Set
|
|
47
|
+
`QUIKPILOT_CODEGEN_MODE: loop-tests` in the runner step's `env:` (and have the AI Runtime's `PILOT_CODEGEN_LOOP_2_ENABLED` on) and the
|
|
48
|
+
code-writing loop gets one more tool, `run_tests`, which takes no arguments: the AI never supplies a command. A call writes the AI's
|
|
49
|
+
in-memory changes to the checkout, runs the project's WHOLE test command once, and puts every file back before it returns, whatever
|
|
50
|
+
happens. So files exist on disk only while a test run is in progress, and the baseline test run, which starts at the same time as code
|
|
51
|
+
writing, is waited for first. The checkout is fingerprinted (git status plus a hash of every file git lists and every file written)
|
|
52
|
+
before the write and after the restore; whatever the test run itself added (a snapshot file, a tracked file it changed or deleted,
|
|
53
|
+
something it staged) is cleaned up, and if the tree still differs, or git cannot report on it, the whole run ends: no per-file fallback,
|
|
54
|
+
no pull request. A file that was already changed or untracked before the call is never repaired or deleted; the report the baseline run
|
|
55
|
+
left behind is saved and put back. The per-file fallback refuses to start from a checkout that is not what it was when the loop began.
|
|
56
|
+
The tests run with the same allow-listed environment as every other repository command, in their own process group, with a time limit
|
|
57
|
+
of three times the baseline run (never under 2 minutes, never over 10); a suite whose baseline took over 10 minutes gets no `run_tests`
|
|
58
|
+
and the run record says so. At most three runs; the same failing tests twice in a row is answered `no_progress` and ends the runs. What
|
|
59
|
+
the AI is told is counts and the NAMES of failing tests, regressions first (a regression passed before the change); never a failure
|
|
60
|
+
message, a stack trace or file text, until QUIKTR-1474 is answered. The run record gains `contractVersion` and `testRuns` (counts and
|
|
61
|
+
flags only). Finishing after a green run is advised in the prompt, not required. Off unless `loop-tests` is set; with plain `loop` the
|
|
62
|
+
tool does not exist.
|
|
63
|
+
|
|
64
|
+
**9.2.0 (release candidates) — the code-writing loop tells the AI when a change breaks a JavaScript file (loop mode only).**
|
|
65
|
+
After every `edit_file` or `write_file` on a `.js`, `.mjs` or `.cjs` file, the runner parses the result in memory (no disk write, no test run,
|
|
66
|
+
a few milliseconds) and adds a plain warning to that tool result when the change introduced one of: a file that no longer parses (a name
|
|
67
|
+
declared twice, an `import` that is not at the top of the file, an unterminated string or a stray brace), a name that is not defined or
|
|
68
|
+
imported, or a `const`, `let` or class used higher up in the same function than the line that declares it. The change still applies, so the
|
|
69
|
+
AI can read the file at the reported line and fix it; the warning is a closed phrase and a line number, never file text. If the AI still
|
|
70
|
+
ends with such a file, the loop is thrown away and the files are written one at a time, as for any other ordinary failure (`syntax_error`
|
|
71
|
+
in the run record). Only what a change *introduces* is reported: a file that already had the problem, or that did not parse before (JSX,
|
|
72
|
+
Flow or decorators in a `.js` file), and TypeScript, JSX and every other language, are left alone; a new file is judged only once the
|
|
73
|
+
project's own files are known to parse, and a name the project's other files already use without defining (a global the build supplies) is
|
|
74
|
+
not reported. It does not find a wrong value, a wrong import path or any wrong behaviour; tests do. The log gains `syntaxWarnings` in the
|
|
75
|
+
loop record and a `codegen.loop_refused` line with `reason: "syntax_error"`. The parser and the scope analysis are bundled into the one file,
|
|
76
|
+
so the package still installs nothing. Off unless `QUIKPILOT_CODEGEN_MODE: loop` is set.
|
|
77
|
+
|
|
46
78
|
**9.2.0 (release candidates) — repository commands no longer see the runner's credentials (always on).** Your setup,
|
|
47
79
|
lint, format and test commands, and the baseline checks, run code nobody has reviewed yet (new tests, a dependency's install
|
|
48
80
|
script). They used to inherit the runner's whole environment, which includes the variables GitHub gives a job that has
|