@quikit/quikpilot-runner 9.3.0-rc.34 → 9.3.0-rc.36

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
@@ -150,6 +150,10 @@ it, the callback carries it as `unsuppliedInputs` (at most 10 functions, 5 names
150
150
  noticed" as a check. This is the shape of a change whose new tests pass only because they hand the function the field themselves. It can be
151
151
  wrong (a field that arrives from a database row or a request), so it only warns and never blocks. TypeScript is not covered (QUIKTR-1547).
152
152
 
153
+ **9.3.0-rc.36 — the run record says what each step cost and what it could touch (QUIKTR-1582, S7).** Each loop turn now records its request size by part (the list of files or the repository summary, the test cases, the task, earlier answers, the AI's notes, the fixed instructions; the runner's own estimate) and what the AI Runtime said the call used (`tokensInput`, `tokensOutput`, `costEstimateUsd`, `latencyMs`), at most 30 rows per loop; each step's record also carries its totals over the whole job (every attempt, phase and fix). The record says which folder the run could change and which it could read, and its largest request, in the list view too (before, only in map mode). The report back carries `aiCostUsd`, the sum of the AI Runtime's cost estimate over every AI call of the job (the estimate leaves out the model's thinking; the early look's own cost is not included). The early look's first call now waits up to 150 seconds (it was 60), so a cold AI service no longer ends it at once; QuikProjects waits about 200 seconds for the whole look, so it cannot wait longer. Numbers only: no text from a request or a reply is kept.
154
+
155
+ **9.3.0-rc.35 — the AI's own notes, old looks shrunk to a stub, the end-of-turn recap, a folder's guidance, and the newer versions only where a repository needs them (QUIKTR-1581, S6 release B; contract §37).** On `targeting-loop-4` and `codegen-loop-6` (each behind its own AI Runtime flag; a refusal steps one version back, `-4` to `-3` and `-6` to `-5`, then as before) a loop request carries `loop.recap`, the LAST key of `loop`: the approved cases, the folders the AI may change and its own notes. A `TOOL_CALLS` reply may carry `notes`; they replace the notes kept so far (an empty string clears them, a reply without them keeps them), credentials are hidden, at most 1,500 characters are kept, and the run record keeps their length only. The answer of a look (`list_files`, `read_file`, `grep`, `find_definition`) from a turn older than the latest three shrinks to `{dropped: true, note: "read src/a.ts lines 120-220"}`; asking for it again is answered afresh, not as a repeat. The first read under a folder that has its own `AGENTS.md`, `CLAUDE.md` or `README.md` (not the repository root's, not one already shown in the repository map) carries that file once, credentials hidden, at most 2,000 characters, at most six a run. The early look's `findings` are cut to 6,000 characters of JSON before they are handed on (open questions first, never what the verdict stands on). **`QUIKPILOT_TOOLS2` now defaults to `auto`**: search tools v2 and the notes are asked for only when the repository needs them, that is in the map view or when its file list would cost `QUIKPILOT_TOOLS_MIN_TOKENS` (default 8,000) or more tokens; a small project keeps the loops it always had (`targeting-loop-1`, `codegen-loop-3`) and pays for no extra tool, response format or recap. `on` always asks for the newest version, `off` never asks, and `QUIKPILOT_NOTES=off` keeps the tools but never asks for the notes. The run logs `tools.decided`.
156
+
153
157
  **9.3.0-rc.34 — the first turn of a loop waits for a new response schema (QUIKTR-1581 follow-up).** The first call with a response schema the model provider has not seen recently is very slow (232 to 275 seconds measured on 19 Oct 2026 for a request that takes 5 to 8 once the provider has it) and fast afterwards. The targeting loop's turn limit was 180 seconds, the same as the AI Runtime's own provider timeout, so that first call was cut off every time, the provider never kept the schema, and runs fell back to the single targeting call (one found no file and failed). Now the FIRST turn of the targeting loop and of the code-writing loop waits up to 420 seconds; every later turn keeps its own limit (180 and 300), so a hung call does not cost the long wait twice. The targeting loop's whole-loop limit is 900 seconds (it was 600). A limit set by the caller still applies to every turn. Pair it with `OPENROUTER_TIMEOUT_SECONDS=420` on the AI Runtime (its default, 180, ends the call before the runner would). Nothing else changes.
154
158
 
155
159
  **9.3.0-rc.33 — search tools v2: small, pageable answers, an outline, `find_definition` (QUIKTR-1581, S6 release A; contract §36).** Needs the AI Runtime with `targeting-loop-3` and `codegen-loop-5` (each switched on by its own flag); without them every run is exactly as on rc.32 (the runner asks once, is refused before any model call, and goes on as the version it would have spoken). (1) **What the AI gets:** `list_files` shows one folder level (`path`) with file counts, or finds files by name or glob (`pattern`, the folder being changed first), 100 entries a page; `read_file` shows a 200-line window, answers a file over 400 lines or 20,000 characters with status `too_large` plus the file's outline and a suggested range (never the text), and with `mode: "outline"` lists a file's functions, classes and methods with their line ranges (JavaScript and TypeScript exactly, read with the parser the code checks already use; every other text file by keywords and indentation; no new dependency); `grep` first answers which files match and how often, and gives lines only with `mode: "lines"`, a page at a time (`limit`, `offset`); the new `find_definition` finds where a name is defined, nearest the asking file first, and exactly (marked `exact`) when the asking file imports it, through the project's own import shortcuts, a workspace package and up to 3 `export … from` barrels. Every cut answer carries `next.offset` and a sentence saying how to get the page. (2) **Stale edits:** an `edit_file` whose text is not found in a file this attempt changed since the AI read it answers `stale_read` ("read the lines again") instead of `no_match`. (3) **Only what is usable:** `loop.tools` lists the tools offered this run (no `call_function` unless it is on); the AI Runtime refuses a call to any other. (4) **Both views:** `targeting-loop-3` / `codegen-loop-5` carry either `workspaceListing` or `repoMap`; a refusal steps ONE version back (`targeting-loop-1` / `-2`, `codegen-loop-3` / `-4`) and a fix attempt does not ask again. Map mode keeps its rule of no per-file fallback. (5) `QUIKPILOT_TOOLS2=off` never asks for the v2 versions. (6) Listing mode and the earlier versions answer every tool byte for byte as before; the targeting loop record carries `contractVersion` only for `targeting-loop-3`. Checked on the real QuikIT checkout (a folder level 1,000 characters, a search's files 1,000, a big file's outline 3,400, a definition 200).