@quikit/quikpilot-runner 9.3.0-rc.55 → 9.3.0-rc.57
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 +302 -75
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -164,6 +164,10 @@ wrong (a field that arrives from a database row or a request), so it only warns
|
|
|
164
164
|
|
|
165
165
|
**9.3.0-rc.46 — the existing tests to read first include the ones that reach the code through one file in between (QUIKTR-1845).** On the live bug-6 run (QTRIA-17) the design changed `lib/services/issueFilters.ts`, and the two tests that assert the bug import `app/api/issues/route.ts`, which imports it, so the list of existing tests the AI reads before writing (`testsToCheck`, rc.44) was empty. When fewer than 3 test files are found by name or a direct import, the runner now takes one more step: of the files the tests import (code, not a test, not under a denied path; the 150 most shared first) it keeps the ones that import a changed file, and adds the tests that import them, after the others and up to 10 in all. A file in between imported by more than 12 tests only brings the tests named after it (a route by its folder) or after the changed file. Paths only, as before. With 3 or more found the list is exactly as in rc.45. Also in rc.46: everything in rc.45. Nothing else changes.
|
|
166
166
|
|
|
167
|
+
**9.3.0-rc.57 - rc.56 and rc.55 together.** rc.56 (QUIKTR-1701 release 2) was built and published from a source that did not yet contain rc.55's turn recovery (QUIKTR-1853: a cut-off answer or a slow turn is asked again once in a smaller step instead of ending the attempt), so a project pinned to rc.56 lost it. rc.57 is the merge of the two and nothing else: everything in rc.56 and everything in rc.55. Also in rc.57: everything in rc.54.
|
|
168
|
+
|
|
169
|
+
**9.3.0-rc.56 - outline and find_definition for eight languages, the last test-file names, and the AI's own tests kept in Python, Go and Java (QUIKTR-1701, release 2).** (1) `definitions.ts` reads the definitions of a Python, Go, Java, Kotlin, C#, Rust, Ruby or PHP file from its tree-sitter tree - functions, classes, methods, structs, interfaces, enums, modules, with exact line ranges and nesting (a Java or C# method, a Kotlin `fun`, a Ruby `valid?` and `def self.x`, a Rust `impl`). `read_file` mode "outline" and the too-large answer use it (`engine: "treesitter"`), and `find_definition` looks a name up in the tree of every file that holds it (at most 80 files are parsed per call; the rest, a file that does not parse and any other language keep the line patterns). The name rule is widened to any language: a letter of any script, `_` or `$`, then letters, digits, `_` or `$`, optionally a Ruby-style `?` or `!` at the end (the AI service checks the same rule first: deploy it BEFORE this runner), and a regular-expression character in a name can no longer break the pattern. The grammars are loaded once at the start of a run for the languages in the repository. (2) Test-file names: Surefire's `Test*.java` and `*TestCase.java`, Failsafe's `*IT.java`, Kotest and ScalaTest `FooSpec.kt/.scala`, Django `tests.py` and every file of a C# test project (`Acme.Tests/`) are test files (same table in the AI service and QuikProjects). (3) A fix may correct a test the AI wrote in this run in a Python, Go or Java file but not remove it, skip it (`@pytest.mark.skip`, `t.Skip()`, `@Disabled`) or leave it with fewer checks (assertion statements, `t.Error`/`t.Fatal`, `pytest.raises`, `fail(...)`), as for JavaScript. `QUIKPILOT_LANG_CHECKS=js` and `QUIKPILOT_TEST_LOCATE=js` switch the readers off. Also in rc.56: everything in rc.54 (rc.55 is QUIKTR-1853, built on its own branch).
|
|
170
|
+
|
|
167
171
|
**9.3.0-rc.55 - a cut-off answer or a slow turn continues in a smaller step instead of ending the attempt (QUIKTR-1853).** Until now one turn that the AI Runtime cut off for length (`output_too_large`) or that ran past the turn limit (`turn_timeout`) threw the whole code-writing attempt away, and with two attempts per job two such turns ended a job with nothing written, though the AI was making progress (QTRIA-21: one slow turn, then one cut-off answer while writing tests, nothing written, $1.70). Nothing the attempt holds changes with a lost turn (the overlay, the transcript and the counters change only after a reply comes back as an answer), so the runner now asks again, once: the AI's transcript gets one fixed sentence of the runner's own - "your last answer was too long and was cut off / your last step took too long, so none of it was run. Take a smaller step: fewer files and fewer edits in one turn, and make each edit a small find-and-replace change" - as a refused turn with the shared rule word `length`, which every AI Runtime version already accepts, so nothing is deployed on the AI Runtime (`turnRecovery.ts`). It is never counted as a refusal or as a turn that changed nothing, so it cannot force `refused_repeatedly` or `no_progress`; it uses a turn and the attempt deadline and the step clock still bound it. It never happens twice in a row: a second lost turn straight after the first, and any lost turn on the final turn, end the attempt as before, and the failure message then says "a second time in a row, even after the AI was asked to take a smaller step". The run log gets `codegen.loop_recovered` (turn, reason, the service's code) and `afterRecovery` on `codegen.attempt_end`; the recovered turn appears in the record as a refused turn with the rule `length`. The AI Runtime's own log `output.measured` names the model that was cut off. `QUIKPILOT_TURN_RECOVERY=off` returns to ending the attempt. Also in rc.55: everything in rc.54.
|
|
168
172
|
|
|
169
173
|
**9.3.0-rc.54 - eight languages share one tree-sitter base: a syntax check and "never weaken an existing test" by structure (QUIKTR-1701, release 1).** Until now the runner's safety checks read code with a JavaScript parser and switched off for any other language: nothing noticed a broken Go or Ruby file, and an existing test in another language was protected only by the text rule, which lets any text be added in front of or behind the matched part (`t.Skip()`, an early `return`, `@pytest.mark.skip`, `@Disabled`, a shadowing `test_a = lambda: None` all passed). Now `languages.ts` is the one table of the languages read with tree-sitter - Python, Go, Java, Kotlin, C#, Rust, Ruby and PHP (JavaScript and TypeScript keep acorn and sucrase and every check they have). (1) Syntax: after each edit the code-writing loop tells the AI "the file no longer parses (a syntax error at line N)" when a file that parsed does not, and at hand-over a file that parsed before and does not now stops the run, exactly as for JavaScript; a file that was already broken, or a language whose grammar is not loaded, is never judged. (2) Existing tests (`existingTestsLang.ts`): every unit of the test file as it was before the run (a function, a class, an import, a statement - with its decorators, annotations and modifiers) must still be there, byte for byte and in order; a class, module, `impl` or RSpec `describe` is compared by what is around its body and then by its own units; an import may only gain names or a whole new import may be added; comments between units are free; a NEW unit may only declare something whose name no unit of that level has, and may not be a hook that runs around every test (`setUp`, `TestMain`, `init`, `@BeforeEach`, `[SetUp]`, a constructor, an RSpec `before`/`let`, a fixture, a static or `init` block, an inner attribute), a build constraint, a statement that declares nothing (`pytest.skip(...)` at module level), or a Rust attribute in front of an old item. The reasons are the same closed words as for JavaScript (`changed_text`, `removed_text`, `moved_block`, `affects_existing`). A file that does not parse falls back to the text rule. Size: the five new grammars are vendored brotli-compressed and embedded the same way (each decoded on first use, 2-25 ms), and the published source map no longer copies the source text, so the package is about 1.4 MB (rc.53: about 1.9 MB). `QUIKPILOT_LANG_CHECKS=js` turns both checks back to the old behaviour. Also in rc.54: everything in rc.53.
|