@quikit/quikpilot-runner 9.3.0-rc.29 → 9.3.0-rc.30

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,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.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
+
153
155
  **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.
154
156
 
155
157
  **9.3.0-rc.28 — safety for a big monorepo (QUIKTR-1577, S2a).** Runner only; nothing the AI is asked changes, and a project with no workspace folder set behaves exactly as before. (1) The folder QuikPilot may change is now enforced: `write_file`, `edit_file`, `revert_file`, `show_changes` and a kept change refuse a path outside the packet's `workspaceRoot` (`outside_workspace`), the finished result is checked again before anything is written, a planned target outside it is refused, and the commit stages only that folder, so a file a setup, format or lint command changed elsewhere is left out of the pull request and counted (`scope.left_out`). A `workspaceRoot` that cannot be understood (`..`, absolute, backslash, pattern characters) stops the run instead of being read as the whole repository. (2) The invented-import check judges only the imports a change adds, and a package another file under the folder already imports is accepted (proof it resolves here); an invented name is still blocked. (3) Where the project has no test command, or its test command writes no per-test report, tests-first is skipped with a note (`two_phase.off`) instead of failing the run. (4) The file list is read with `-z` and a 64 MiB buffer (accented names are exact; a 17,000-file repository no longer sits at 91% of the limit). (5) The whole-repository scan for unsupplied inputs is skipped when the change holds no plain JavaScript file it could judge. (6) `call_function` is not offered when the change targets TypeScript or another language it cannot load (`call_function.off`).