@quikit/quikpilot-runner 9.3.0-rc.31 → 9.3.0-rc.33
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 +4 -0
- package/dist/index.js +11758 -10406
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
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.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).
|
|
154
|
+
|
|
155
|
+
**9.3.0-rc.32 — map mode: a one-page summary of a large repository instead of its file list (QUIKTR-1580, S5; contract §35).** Needs the AI Runtime with `targeting-loop-2` and `codegen-loop-4` (each switched on by its own flag) before a large repository can use it; a repository small enough for its list is exactly as before. (1) **When:** `QUIKPILOT_MAP=auto` (the default) switches map mode on only when the write folder's file list would cost more than 40,000 tokens on the wire, i.e. where the old way could not work (QuikProjects alone: about 69,000; the whole QuikIT repository: about 445,000; the pilot repository: about 1,000). `on` forces it on any repository, `off` never uses it. (2) **What the AI gets:** `repoMap` first in every request, in place of `workspaceListing`: the folder it may change, the folders it may read (that folder plus the local workspace packages its project depends on, read-only, at most 8, from the root `package.json` `workspaces` or `pnpm-workspace.yaml`), how many files they hold, a folder tree with counts, the file types, the project's own import shortcuts (tsconfig `paths`), packages and test layout, and its guidance files (`AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, `README.md` of the write folder and every folder above it: tracked, not protected, scrubbed, 2,000 characters each and 6,000 in all). At most 4,000 tokens, the same bytes on the same commit (QuikIT: 3,966 for QuikProjects, 3,915 for the whole repository). The AI finds files with `list_files`, `grep` and `read_file` as before. (3) **The runner's answers:** a read, list or search outside the readable folders is answered `outside_read_scope` (from the path alone, never saying whether a file exists there), a change outside the write folder `outside_write_scope`; `not_found` and `exists` as before. (4) **No fallback:** map mode needs both loops, so it switches them on whatever `QUIKPILOT_TARGETING_MODE` / `QUIKPILOT_CODEGEN_MODE` say, and needs a test command (without one the run stops before any work, saying so). There is no single targeting call and no per-file code call to fall back to (both need the list): a map run that cannot finish ends with a plain sentence, recorded as `map_failed`. (5) **Smaller requests:** the discovered test files go on the wire only while they cost under 12,000 tokens (else the report's own no-signal form), at most 100 existing tests are named on the wire (the runner still holds every one), and old read outputs are dropped from 40,000 tokens on (the hard ceiling stays 90,000). On QuikProjects the first targeting request is about 18,000 tokens where the list alone was 69,000. (6) **The record:** both loop records gain `view`, `fileCount`, `readRoots`, `mapTokens`, `peakRequestTokens` and `failReason`, in map mode only. The job log gains `map.built` (counts) and `map.mode`.
|
|
156
|
+
|
|
153
157
|
**9.3.0-rc.31 — long test suites: a clock, and only the tests that matter (QUIKTR-1579, S4).** Runner only; nothing the AI is asked changes, the contract, the statuses and the run record are untouched, and a project whose suite takes under three minutes, or that is not a plain vitest project, behaves as before. (1) The project's whole suite is no longer unbounded: the baseline gets about 40% of what is left of the job (5-25 minutes) and the final check after the change 2.5 baselines (5-20 minutes, never more than the job has left). A baseline that ran out of time stops the run with a plain message; a final check that ran out of time, or that had under a minute left, is a failure at the gate - never a silent pass, and nothing is healed; one test file is capped at 3 minutes. `QUIKPILOT_TEST_LIMITS=off` brings back the unbounded runs. (2) On a vitest project whose baseline took 3 minutes or more, the AI's own `run_tests` runs execute `vitest related` for the files it changed, its own new tests, and the tests that read files with `fs` (which no import graph can see); the final check is still the whole suite, once. A project is recognised only when its command is `[cd <folder> &&] npm|pnpm|yarn test [-- flags]` (or `vitest [run]`), nothing chained, its `test` script is exactly `vitest` or `vitest run`, it has no workspace or projects, and vitest is found from that folder; the flags may only be reporters, the output file and `--maxWorkers=` (which is passed on). A change to `package.json`, a lock file, a tsconfig, a vitest/vite config, a setup file, a prisma schema, an `.env` file or a shared helper under `__tests__/` runs the whole suite once instead. Related tests are switched off for the rest of the job when more than 40 tests read files, or when one related run took as long as the whole suite. When vitest fails whole (a file cannot be parsed) the test files are run directly (the AI's own, the tests that import a changed file, the file-reading ones); if none of them fails the answer is "no report", never a pass. The AI reads one fixed sentence, "Related tests only; the whole suite runs last." `QUIKPILOT_RELATED_TESTS=off|force` and `QUIKPILOT_RELATED_MIN_BASELINE_SECONDS` switch it without a release. (3) The job log gains `timing` (setup, format, lint, gate), `baseline.timeout`, `gate.timeout`, `related.adapter`, `related.off`, and a `plan` (counts and closed words, no names) on the `run_tests` events. Measured on the QuikProjects suite (4,611 tests in 348 files): `vitest related` picked every test that loads a changed file (24 of 24 sampled files), 6% of the tests on average, 6-27 s a run; two workers instead of one took the whole suite from 441 s to 177 s.
|
|
154
158
|
|
|
155
159
|
**9.3.0-rc.30 — the code checks read TypeScript (QUIKTR-1578, S3; QUIKTR-1547).** Runner only; nothing the AI is asked changes, and plain JavaScript is read exactly as before. TypeScript (`.ts`, `.tsx`, `.mts`, `.cts`) and JSX (`.jsx`, and a `.js` file that only parses with its JSX) are turned into plain JavaScript on the same lines by Sucrase, bundled into the runner (it never loads the project's own `typescript`), and the existing checks read that: (1) a file that no longer parses, at its line (no column: removed types move columns), which stops the hand-over as for JavaScript; (2) a name that is not defined or imported, or used above its declaration: in TypeScript a warning only (the AI is told at the edit, `codegen.name_warning` is logged at hand-over, the run is not stopped) until live runs show it is reliable there, because some names come from declaration files; (3) existing test files get the parser rule instead of the text rule, compared without types, so a widened import line or a typed helper is accepted and a change to a type annotation alone is not a change to a test; (4) the AI's own new tests cannot be emptied; (5) the missing-import check resolves `.ts`/`.tsx`, `./x.js` written for `x.ts` and `index.ts`, and counts a name a module exports only as a type as exported; (6) the unsupplied-inputs warning reads TypeScript. Declaration files (`.d.ts`) are never read; a file with decorators is not read (it counts as "did not parse", never as broken). On all 1,849 TypeScript files of a real monorepo app: every one read with no line moved, no unknown name, no existing test refused, no missing import and no false unsupplied-inputs warning. The bundle grows from 705 KB to 1.39 MB.
|