@quikit/quikpilot-runner 9.3.0-rc.30 → 9.3.0-rc.31
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 +2 -0
- package/dist/index.js +2622 -2177
- package/dist/index.js.map +4 -4
- package/package.json +30 -30
package/README.md
CHANGED
|
@@ -150,6 +150,8 @@ 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.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
|
+
|
|
153
155
|
**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.
|
|
154
156
|
|
|
155
157
|
**9.3.0-rc.29 — what the AI sees, and how it finds the right files (QUIKTR-1577, S2b).** Runner only; nothing the AI is asked changes, and a project with no tsconfig, no test report and clean files behaves as before. (1) The path aliases a project declares in its own `tsconfig.json` / `jsconfig.json` (`paths`, with `extends` followed) are followed for the files a changed file imports, so `@/lib/x` now finds the file; an alias that leaves the workspace folder (`@quikit/ui`) is counted (`outsideImports`) and not read. (2) A file's existing tests are found by who imports it, wherever they sit (up to 3 per file, about 24 KB), after the beside-the-file pairs. (3) A file in a bare `test/` or `tests/` folder is a test only if the project's test report lists it or its name says so (`.test.`, `.spec.`, `test_*.py`, `_test.go`, `FooTest.java`); with no report the folder still decides. `__tests__/` folders and `.test.`/`.spec.` names never depend on it. The list of existing tests sent to the AI Runtime (still capped at 300) is ordered: tests already shown, test targets, the nearest tests, then the rest. (4) Lock files of other ecosystems (`uv.lock`, `Gemfile.lock`, `composer.lock`, ...) are never read or written; `.npmrc`, `*.pem`, `*.key`, `*.tfvars`, `*credentials*.json` and `docker-compose*` are never read, listed, searched or shown (the edit gates keep the project's own list); `edit_file` refuses a file whose first five lines say `@generated` or `DO NOT EDIT` (`generated_file`); a binary file is never shown as context. (5) A search no longer stops early in a large folder: media files are not opened and binary files no longer count against its 20 MB budget (`apps/quikprojects`: all 2,171 text files, 1.5 s). (6) Credentials are hidden from the AI on every phase, not only the early look: private keys, cloud keys, passwords in web addresses, the usual credential shapes and the run's own tokens, in every file, search excerpt, diff and test message it is shown. The rule that hides any quoted value under a name like `password` stays in the early look only, because in code it also hides ordinary test data. The AI's own writes and the files on disk are never changed. An `NAME=value` line is now also found behind the line number `read_file` prints.
|