@quikit/quikpilot-runner 9.1.0 → 9.2.0-rc.3
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 +34 -0
- package/dist/index.js +1718 -196
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,6 +26,40 @@ Releases follow [SemVer](https://semver.org/): a major version bump means the wo
|
|
|
26
26
|
shape changed (inputs, permissions) and requires a new pull request regardless of this package's
|
|
27
27
|
version; minor/patch releases are runner-logic fixes safe to pick up on the next re-bootstrap.
|
|
28
28
|
|
|
29
|
+
**9.2.0 — the AI can look at the code before it chooses which files to change (off by default).** Set
|
|
30
|
+
`QUIKPILOT_TARGETING_MODE: loop` in the runner step's `env:` and the targeting step stops guessing from the file listing
|
|
31
|
+
alone: over a few short turns it may use three read-only tools, `list_files`, `read_file` and `grep` (a plain-text
|
|
32
|
+
search, not a pattern), and then gives the same answer as before, which goes through the same checks. A denied path is
|
|
33
|
+
never read, listed, searched or counted; nothing outside the checkout and no symbolic link is followed; every limit
|
|
34
|
+
(turns, calls, characters read) is told to the AI as an ordinary answer, never an error. Each turn's
|
|
35
|
+
request is also kept under a ceiling of 90,000 tokens (counted conservatively: a path listing and non-ASCII text cost
|
|
36
|
+
far more than characters divided by four): a result that would push the next request over it is not sent, the AI is told
|
|
37
|
+
to answer with what it has, and if even that would not fit the run falls back to the single call. Characters read per run
|
|
38
|
+
are capped at 60,000. If the loop cannot finish
|
|
39
|
+
for an ordinary reason (an older runtime, a timeout, a malformed reply) the run falls back to the single call and says
|
|
40
|
+
so in its warnings; a protected path in the answer, or the runtime refusing the run itself, is never retried. The log
|
|
41
|
+
gains `targeting.loop_start`, `targeting.loop_turn`, `targeting.loop_refused`, `targeting.loop_done` and
|
|
42
|
+
`targeting.loop_fallback` lines, and the targeting record gains an optional `loop` field listing what was read (paths
|
|
43
|
+
and counts only, never content). Without the variable nothing changes. The workflow file is unchanged; the `env:` line
|
|
44
|
+
is the only edit, and it is optional.
|
|
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: an edit must keep the original text
|
|
53
|
+
and put the new text before or after it, so a test is never weakened to make code pass. The AI cannot finish before it has
|
|
54
|
+
changed something and written a test for every case it was given. If the loop cannot finish for an ordinary reason (an
|
|
55
|
+
older runtime, a timeout, a refused edit it cannot recover from, a cut-short file) everything it held is thrown away and the
|
|
56
|
+
files are written one at a time, and the run's warnings say so; a protected path, a budget or credential refusal is never
|
|
57
|
+
retried. Limits are told to the AI as ordinary answers: 20 turns, 40 actions, 60,000 characters read, 120,000 written, and the
|
|
58
|
+
same 90,000-token ceiling per turn. The callback gains an optional `codegenLoop` record (paths, counts, statuses and the AI's
|
|
59
|
+
short note per step; never file text) that QuikProjects shows as "What QuikPilot did". Without the variable nothing
|
|
60
|
+
changes. The workflow file is unchanged; the `env:` line is the only edit, and it is optional. The AI Runtime must have
|
|
61
|
+
`PILOT_CODEGEN_LOOP_ENABLED` on; while it is off the runner simply falls back.
|
|
62
|
+
|
|
29
63
|
**9.1.0 — the code-writing step sees the files the changed file imports.** For every existing file a run changes (code or
|
|
30
64
|
test), the runner now reads that file's own imports (JavaScript and TypeScript, one hop, never what those files import)
|
|
31
65
|
and sends the repository files they point to as extra context. They come after the files targeting named and never in
|