@quikit/quikpilot-runner 9.2.0-rc.2 → 9.2.0-rc.4
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 +21 -0
- package/dist/index.js +2318 -1502
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,27 @@ 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.2.0 (release candidates) — the AI can look at the code and edit as it writes it (off by default).** Set
|
|
47
|
+
`QUIKPILOT_CODEGEN_MODE: loop` in the runner step's `env:` and the code-writing step stops making one blind call per file:
|
|
48
|
+
over several short turns the AI may use five tools, the three read-only ones above plus `edit_file` (replace one piece of
|
|
49
|
+
text in an existing file; the text must match exactly one place) and `write_file` (create a new file). Every change is held in
|
|
50
|
+
memory and nothing is written to the checkout until the AI says it is finished, and then the result goes through exactly the
|
|
51
|
+
checks a one-file-at-a-time run goes through (scope, overlap, test placement, format, lint, the regression gate, the
|
|
52
|
+
coverage check, protected paths). A test file that already existed may only be added to: every character of the matched text
|
|
53
|
+
must stay, in the same order, and the only change is one block of whole new lines that declares a new test (`it`, `test` or
|
|
54
|
+
`describe`) or new `import` lines, placed before the matched text, after it or between two of its lines (JavaScript and
|
|
55
|
+
TypeScript files; other languages keep the older rule of new text before or after the match). Anything else is answered
|
|
56
|
+
`protected`, an ordinary result the AI reads and tries again from, so a test is never weakened to make code pass. The AI cannot finish before it has
|
|
57
|
+
changed something and written a test for every case it was given. If the loop cannot finish for an ordinary reason (an
|
|
58
|
+
older runtime, a timeout, a refused edit it cannot recover from, a cut-short file) everything it held is thrown away and the
|
|
59
|
+
files are written one at a time, and the run's warnings say so. A budget or credential refusal from the AI Runtime is never
|
|
60
|
+
retried (the one-at-a-time attempt would be refused again or paid for twice). A protected path is refused to the AI as an
|
|
61
|
+
ordinary answer, never read, listed or written, and the run carries on. Limits are told to the AI as ordinary answers: 20 turns, 40 actions, 60,000 characters read, 120,000 written, and the
|
|
62
|
+
same 90,000-token ceiling per turn. The callback gains an optional `codegenLoop` record (paths, counts, statuses and the AI's
|
|
63
|
+
short note per step; never file text) that QuikProjects shows as "What QuikPilot did". Without the variable nothing
|
|
64
|
+
changes. The workflow file is unchanged; the `env:` line is the only edit, and it is optional. The AI Runtime must have
|
|
65
|
+
`PILOT_CODEGEN_LOOP_ENABLED` on; while it is off the runner simply falls back.
|
|
66
|
+
|
|
46
67
|
**9.1.0 — the code-writing step sees the files the changed file imports.** For every existing file a run changes (code or
|
|
47
68
|
test), the runner now reads that file's own imports (JavaScript and TypeScript, one hop, never what those files import)
|
|
48
69
|
and sends the repository files they point to as extra context. They come after the files targeting named and never in
|