@turri-dev/cli 0.1.2 → 0.1.3-next.162a2c3
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 +1 -1
- package/dist/chat-skills.js +1 -1
- package/dist/cli-options.js +82 -0
- package/dist/config.js +26 -3
- package/dist/conform-cli.js +13 -5
- package/dist/environment.js +19 -0
- package/dist/extension.js +174 -62
- package/dist/identity.js +1 -1
- package/dist/init-config.js +3 -3
- package/dist/loop-cli.js +157 -29
- package/dist/loop-tools.js +1 -1
- package/dist/pi-launch.js +18 -4
- package/dist/pi.js +14 -2
- package/dist/picture-row.js +21 -0
- package/dist/plain/errors.js +1 -1
- package/dist/plain/files.js +1 -1
- package/dist/plain/liquid.js +2 -2
- package/dist/question-dialog.js +5 -1
- package/dist/regenerate/activity.js +19 -0
- package/dist/regenerate/confine.js +1 -0
- package/dist/regenerate/conformance-agents.js +220 -11
- package/dist/regenerate/conformance.js +87 -33
- package/dist/regenerate/debugger.js +27 -3
- package/dist/regenerate/environment-error.js +63 -9
- package/dist/regenerate/loop.js +78 -6
- package/dist/regenerate/panel-dock.js +86 -0
- package/dist/regenerate/prompt.js +4 -2
- package/dist/regenerate/regenerate.js +24 -6
- package/dist/regenerate/release.js +8 -6
- package/dist/regenerate/requires.js +55 -2
- package/dist/regenerate/side-panel.js +14 -4
- package/dist/regenerate/stop-report.js +13 -0
- package/dist/regenerate/test-scripts.js +45 -9
- package/dist/regenerate/unit-review.js +11 -0
- package/dist/regenerate-cli.js +24 -29
- package/dist/resume-line.js +4 -0
- package/dist/run-report.js +289 -0
- package/dist/setup.js +35 -16
- package/dist/spec-diff-cli.js +17 -6
- package/dist/spec-tools.js +8 -44
- package/docs/config.md +25 -13
- package/docs/development.md +7 -0
- package/docs/headless.md +170 -16
- package/docs/installation.md +1 -1
- package/docs/parser.md +1 -1
- package/docs/regenerating.md +72 -17
- package/docs/using.md +16 -5
- package/genome/skills/implement-conformance-testing-script/SKILL.md +1 -1
- package/package.json +3 -3
package/docs/regenerating.md
CHANGED
|
@@ -112,6 +112,10 @@ the planner's, the spec-steps agent's, the conformance agents' - is laid out in
|
|
|
112
112
|
A module that `requires` another inherits its functional specs; one that `import`s another
|
|
113
113
|
inherits its definitions, implementation reqs and test reqs.
|
|
114
114
|
|
|
115
|
+
An import module - one a `.plain` file imports, or one kept in a `template/` folder - is no codebase of its own. A
|
|
116
|
+
change to it is built in the modules that import it, through any import modules between, whose code is started; when
|
|
117
|
+
none is, nothing is built, and the change goes in with the first of them built.
|
|
118
|
+
|
|
115
119
|
Template search order: the plain file's own directory, then a sibling `template/`, then
|
|
116
120
|
`--template-dir`, then `PLAIN_TEMPLATE_DIRS`.
|
|
117
121
|
|
|
@@ -160,6 +164,10 @@ runs the unit testing script itself**, and only that run counts (see
|
|
|
160
164
|
tried. An agent circles a cause it has not thought of - an in-memory database every connection opens
|
|
161
165
|
empty, a test runner that leaves the code off its path - and this is the way out. The rounds go on as
|
|
162
166
|
before, up to 20; should the same failure come round three times again, the debugger looks again.
|
|
167
|
+
**A run the time limit stopped** is looked at by the debugger at once, told how long the run had and that the limit
|
|
168
|
+
stopped it: it finds what hangs - the root cause and the fix, as above - or that nothing does, the run getting on up
|
|
169
|
+
to the limit and needing more time than a test run may take. Then the pulse stops, rolled back and not retried, and
|
|
170
|
+
the person is told to raise `TURRI_COMMAND_TIMEOUT` or make the suite faster.
|
|
163
171
|
- **It goes round in circles in its own runs.** An agent stuck on a failure can try the same few changes in
|
|
164
172
|
turn - three signatures of a stand-in function, say - and run the tests after each, dozens of times in one
|
|
165
173
|
turn. Its own `run_unit_tests` runs are watched (`createLoopWatch` in `test-scripts.ts`): the code folder back
|
|
@@ -218,7 +226,7 @@ and the `implement-unit-testing-script` and `implement-conformance-testing-scrip
|
|
|
218
226
|
- **The formatting is the agents'.** The harness formats nothing: the scripts check, and leave their inputs as they
|
|
219
227
|
found them. Every agent that writes code or tests is told to run, in its shell, the formatter its script checks with,
|
|
220
228
|
on the files it changes, before the final run.
|
|
221
|
-
- **A toolchain missing** where the checks run - exit 69, 127, `command not found` - stops the pulse as it does for the
|
|
229
|
+
- **A toolchain missing** where the checks run - exit 69, 127, a `command not found` the run ended on - stops the pulse as it does for the
|
|
222
230
|
tests: the person installs it, the agents install nothing.
|
|
223
231
|
|
|
224
232
|
### Checking its own work
|
|
@@ -262,7 +270,8 @@ Passing unit tests prove only what they check, and a coding agent is quick to wr
|
|
|
262
270
|
next to nothing - that a function exists, that a result is not empty, that a status is 200 - or code
|
|
263
271
|
that no test reaches. So, with `review: true` in the [config](config.md), once the unit testing script
|
|
264
272
|
passes a reviewer on the judge model reads what the work wrote, beside the spec, and changes nothing. It
|
|
265
|
-
reviews both halves
|
|
273
|
+
reviews both halves, with the unit testing script word for word in its prompt: a test the script never reaches is
|
|
274
|
+
not run, and checks nothing. The review is off by default - `review: false`, or the key left out - and so is the
|
|
266
275
|
conformance tests' review: the work goes on once its tests pass.
|
|
267
276
|
|
|
268
277
|
- **The code.** Every behaviour, edge case, validation rule and error the spec states for this work
|
|
@@ -495,20 +504,23 @@ scripts are not linked from the specs; a link to one is ignored.
|
|
|
495
504
|
They are required: a build with no unit testing script, or with conformance on and no conformance
|
|
496
505
|
testing script, stops before it starts and says which skill adds it.
|
|
497
506
|
|
|
498
|
-
**The prepare script** is
|
|
507
|
+
**The prepare script** is optional: turri never writes one, and runs one the project has -
|
|
499
508
|
`prepare-environment-script:` in the config, else the one `prepare_environment*.sh` at the root, else in
|
|
500
509
|
`test_scripts/` - on the build, before every run of the conformance testing script: the harness's own, and the agents'
|
|
501
510
|
`run_conformance_tests`. Both get the same build folder - the code in place, or the same fresh copy - so what it sets up
|
|
502
|
-
for that build, the conformance testing script finds. With conformance off it is not run.
|
|
503
|
-
|
|
511
|
+
for that build, the conformance testing script finds. With conformance off it is not run. Every agent shown the
|
|
512
|
+
conformance testing script - the explorer, the conformance agent, the judge, the code fixer and the repair agent - is
|
|
513
|
+
shown it too, before the conformance testing script.
|
|
504
514
|
|
|
505
515
|
**Where they run.** On this machine, as you would run them: unfenced - no sandbox, no command check, no audit - in
|
|
506
516
|
your own environment with this machine's toolchains, turri's model providers' API keys alone left out. They are yours,
|
|
507
517
|
and whatever they do is your doing. That is the only way the two scripts are ever run: the harness's own runs, and the
|
|
508
518
|
agents' `run_unit_tests` and `run_conformance_tests`, which run them exactly as the harness does - through the host
|
|
509
519
|
runner, in a process group of their own, so the time limit and a stopped job end the script and all it started. A
|
|
510
|
-
toolchain the script needs and this machine lacks - exit 69, exit 127, or a `command not found` /
|
|
511
|
-
|
|
520
|
+
toolchain the script needs and this machine lacks - exit 69, exit 127, or a run that ended on a `command not found` /
|
|
521
|
+
`failed to run command`, the last line it printed (`missingToolchain`) - is yours to install. Only on that evidence: a
|
|
522
|
+
`command not found` earlier in the output, the run going on after it and failing for its own reasons, is a warning -
|
|
523
|
+
a shell profile's, an optional tool probed for - and the failure is the agent's to fix. A missing toolchain is yours to install, never the agent's: the agent is told to report it
|
|
512
524
|
with `report_environment_error` rather than work around it, and the pulse stops at the harness's first run of either
|
|
513
525
|
script - unit or conformance - that cannot find it, rolled back, saying what to install (see
|
|
514
526
|
[when the environment lacks something](#when-the-environment-lacks-something)). The code and the tests an agent wrote run unfenced inside the script too: what an agent runs with its own
|
|
@@ -562,7 +574,7 @@ It is raised two ways:
|
|
|
562
574
|
is shown its output once, and a report made again after that stands. A report that stands ends its turn, the pulse
|
|
563
575
|
stops, and what it said goes to you as it is;
|
|
564
576
|
- **by the harness itself**: a testing script - the unit or the conformance one, in a code pulse, a conformance pulse or
|
|
565
|
-
the whole-suite run - that cannot find its toolchain (exit 69 or 127, `command not found`), or
|
|
577
|
+
the whole-suite run - that cannot find its toolchain (exit 69 or 127, a `command not found` the run ended on), or
|
|
566
578
|
a credential `agent-env:` names that is not there when the pulse starts - before any agent does. What the harness
|
|
567
579
|
found it works out at once - the diagnosis, not after a second failure - to say how to fix it on this machine.
|
|
568
580
|
|
|
@@ -575,10 +587,20 @@ not an install:
|
|
|
575
587
|
> **lunch stopped: turri's sandbox kept its agents from reading `…/mise/installs/node/24.16.0/lib/node_modules/npm/bin/npm-cli.js` - it is on this machine; nothing is missing.**
|
|
576
588
|
> To fix: let the agents read that toolchain - add its folder to `toolchains:` in config.turri.yaml, keeping what is there: `toolchains: [/Users/…/mise/installs/node/24.16.0]`. Nothing needs installing.
|
|
577
589
|
|
|
590
|
+
A write the sandbox refused is told apart from a read - a report naming a lock file (`*.lock`, `*.lck`, `lockfile`, even
|
|
591
|
+
one never made), or saying a write, a create or a lock not taken. No setting lets the agents write outside their
|
|
592
|
+
module's folders, their own home and temporary folder and the package caches, and `toolchains:` only lets them read; so
|
|
593
|
+
the stop names the lock and what fixes it instead. In your home - a tool that found it without `$HOME`, as a JVM does for
|
|
594
|
+
`user.home` - it is having the tool use `$HOME` (`-Duser.home=$HOME` where the build starts its JVM); in a toolchain's own
|
|
595
|
+
install, it is a setting of the tool's that keeps the write elsewhere, or a copy of the toolchain that keeps its writes in
|
|
596
|
+
its cache. The agents are told such a refusal is the sandbox's, to report at once - not to work around it for half an
|
|
597
|
+
hour.
|
|
598
|
+
|
|
578
599
|
**The conversation heals it.** Told of the stop, it never regenerates the module again before the cause is fixed - a pulse
|
|
579
600
|
stopped on its environment stops the same way again - and fixes what it can:
|
|
580
601
|
|
|
581
|
-
- **hidden by the sandbox**: it adds the folder to `toolchains:` itself, says so in a line, and resumes
|
|
602
|
+
- **hidden by the sandbox**: it adds the folder to `toolchains:` itself, says so in a line, and resumes - a refused
|
|
603
|
+
write, which no setting fixes, it fixes in the project's own files when it can, and otherwise tells you what to do;
|
|
582
604
|
- **a toolchain or a tool missing** - a JDK, Maven, Go, uv: it looks first for one installed off the PATH - Homebrew's opt
|
|
583
605
|
folders, `/Library/Java/JavaVirtualMachines`, mise, asdf, sdkman, nvm - then asks you, with the exact command for this
|
|
584
606
|
machine (`brew install openjdk@21`, `mise use -g java@21`), and on your yes runs it in its shell, checks the command is
|
|
@@ -685,7 +707,7 @@ change to the code brings that module's code in, so the codebase stops: it has t
|
|
|
685
707
|
and conformance tests taken out, committed so its history keeps them, and the chain built again from the
|
|
686
708
|
bottom. That is never done unasked. In the chat the model asks the person, saying why, and calls
|
|
687
709
|
`regenerate` with `from_scratch` once they agree; `turri regenerate` and `spec-diff` ask at the terminal, and
|
|
688
|
-
`--start-over` agrees in advance - with no terminal and no flag,
|
|
710
|
+
`--start-over` agrees in advance - with no terminal and no flag, the run stops there, exit 1, saying so.
|
|
689
711
|
|
|
690
712
|
## Conformance tests
|
|
691
713
|
|
|
@@ -820,7 +842,8 @@ coding agent that fixes the code is told the same of the tests: it can read them
|
|
|
820
842
|
Before the test author starts, an explorer - an agent in
|
|
821
843
|
the code's folder with the file tools alone: it reads the code, runs nothing and changes nothing - hands over everything
|
|
822
844
|
the author needs, in parts: how to build and run it; how the conformance tests reach it as the project's
|
|
823
|
-
conformance testing script runs them - the explorer is given the script, and
|
|
845
|
+
conformance testing script runs them - the explorer is given the script, and the prepare script before it where there
|
|
846
|
+
is one, and says what they build or
|
|
824
847
|
installs and what the tests depend on or start (a package, a module, an entry point, by its exact name);
|
|
825
848
|
how each functionality is reached from outside
|
|
826
849
|
(the command, or the route, method and the request and response fields); what it needs around it; and
|
|
@@ -894,10 +917,17 @@ agent is told that a failure of the software itself - it does not build or start
|
|
|
894
917
|
spec says it must not - is not the tests' to work around. When it fails, a judge - an agent that reads
|
|
895
918
|
the code and the tests, changes neither, and holds both to the spec - decides which is wrong. It has the
|
|
896
919
|
file tools and the web (`web_search`, `web_fetch`), to look up what a service the code calls answers - no shell: it
|
|
897
|
-
judges from the code, the tests, the spec and the failing run's output,
|
|
920
|
+
judges from the code, the tests, the spec, the conformance testing script word for word and the failing run's output,
|
|
921
|
+
and its file tools write nothing. The explorer's account of how the code is invoked is in its prompt too, marked as
|
|
922
|
+
written before the run and possibly wrong: the judge checks what it uses of it against the script and the files, and
|
|
923
|
+
gives in `evidence` what it found itself. The script is fixed - neither agent can change it - so it is never the
|
|
924
|
+
culprit: what it does with the tests, the tests fit; what it needs of the build, the code provides.
|
|
898
925
|
|
|
899
926
|
- **the code:** the coding agent - in the code's folder, reading the tests but never changing them - fixes it,
|
|
900
|
-
and keeps its unit tests passing
|
|
927
|
+
and keeps its unit tests passing. The judge quotes the spec's own words the code does not meet, or the testing
|
|
928
|
+
script's for what it needs of the build (`script_needs`: a build output, an entry point, a module) - each checked
|
|
929
|
+
by the harness against the text it quotes. The acceptance tests are in that text, labelled as their tests are:
|
|
930
|
+
for a spec change, those of every functional spec it touches, not only the last one's;
|
|
901
931
|
- **the tests:** the conformance agent corrects them to what the spec says;
|
|
902
932
|
- **the spec:** two functional specs cannot both hold, whatever the code does;
|
|
903
933
|
- **the environment:** neither the code nor the tests can fix it - only the person can, in what the run is given:
|
|
@@ -939,16 +969,41 @@ spending the rest of its 20 attempts on it. Two failures are the same once what
|
|
|
939
969
|
taken out of their lines - numbers, times, paths, colour codes, and the ids a service makes up for each
|
|
940
970
|
response, a UUID or a correlation id. Nothing changes either when the agent sent to fix the code or the tests
|
|
941
971
|
changes no file: two such fixes in a row, and the run stops. The conformance agent has the testing script in its prompt,
|
|
942
|
-
and is told to fit the tests' own build to it.
|
|
972
|
+
and is told to fit the tests' own build to it. The code fixer has the testing scripts its fixes are run by - the
|
|
973
|
+
conformance testing script, the prepare script before it, and the unit testing script - word for word in its task:
|
|
974
|
+
what the conformance testing script needs of the build, it reads there, not only in the judge's quote of it.
|
|
975
|
+
|
|
976
|
+
**Escalation.** A failure judged the tests' goes to the conformance agent first: it owns the tests. When the run then
|
|
977
|
+
fails the same way - the fix changed nothing, or nothing that mattered - the judge is asked again, now whether the
|
|
978
|
+
failure belongs to the code rather than the tests: the run failing on something the code is meant to produce (a build
|
|
979
|
+
output, an entry point, a module the testing script needs), or the tests running and the behaviour itself being
|
|
980
|
+
wrong. Its verdict, either way, has to rest on evidence it gathered: each piece from a file it opened (the harness
|
|
981
|
+
keeps track of what it read, listed and searched), the testing script or the failing run - and not the run alone.
|
|
982
|
+
A verdict without it is sent back; a verdict of code still without it is taken as the tests'. Judged the tests'
|
|
983
|
+
again, the failure stays with the conformance agent, and a fix that changes nothing counts towards stopping as
|
|
984
|
+
before. Judged the code's, it is escalated to the coding agent, handed the script's error, the conformance tests as
|
|
985
|
+
they stand and the judge's reason and evidence (`the script runs dist/cli.js; the build emits dist/src/cli.js`). Its
|
|
986
|
+
fix has to build and pass the unit tests, then the suite runs again. Should the run still fail the same way - or the
|
|
987
|
+
fix change nothing - the run stops there, with the judge's reasoning and evidence in what the person is told. Each of
|
|
988
|
+
these runs is one of the run's 20 attempts, so a failure neither agent can fix stops in three of them.
|
|
943
989
|
|
|
944
990
|
Every attempt is written into the working notes' pitfalls by the harness as cause and effect - what
|
|
945
991
|
the run failed with, how it was judged, and which files the agent sent to fix it changed; the next
|
|
946
992
|
attempt's line says what came of it - and each judge reads them first, so it does not send a
|
|
947
993
|
failure the way that already failed. A run that does not pass is undone whole, its notes with it.
|
|
948
994
|
|
|
949
|
-
Then the suite runs again. A run
|
|
950
|
-
|
|
951
|
-
|
|
995
|
+
Then the suite runs again. A run that exits 80 goes back to the conformance agent without a judge - the tests pass and
|
|
996
|
+
only their static checks do not (see [the static checks](#the-static-checks)): the findings are the tests'.
|
|
997
|
+
|
|
998
|
+
**Timing.** Every run is shown to the judge, the debugger and whoever fixes it with how long it ran against its time
|
|
999
|
+
limit (`runTiming` in `test-scripts.ts`): `This run ended on its own - exit 1, after 37.2s of the 120.0s a test run
|
|
1000
|
+
may take`, or `The time limit stopped this run: it had run 120.0s of the 120.0s ...` - so none takes a run that
|
|
1001
|
+
ended on its own for one the limit stopped, or the other way. A run the time limit stopped is judged like any other,
|
|
1002
|
+
and the judge is told what keeps a run from finishing: the code hangs (it waits on input, keeps a server in the
|
|
1003
|
+
foreground, never exits) - the code's; a test waits for what never comes - the tests'; or nothing hangs, the output
|
|
1004
|
+
showing the run getting on up to the limit, and it needs more time than a test run may take - the environment. That
|
|
1005
|
+
verdict stops the pulse at once, rolled back and not retried, and the person is told to raise `TURRI_COMMAND_TIMEOUT`
|
|
1006
|
+
or make the suite faster - no agent can give a run more time. A run whose script cannot find its
|
|
952
1007
|
toolchain stops the pulse instead - see [when the environment lacks something](#when-the-environment-lacks-something).
|
|
953
1008
|
Unit tests failing after the suite passes go to the coding agent. It goes round up to 20 times; still failing, the work is undone.
|
|
954
1009
|
|
package/docs/using.md
CHANGED
|
@@ -13,8 +13,10 @@ banner - the jellyfish it is named after, swimming until the conversation fills
|
|
|
13
13
|
terminal that shows images (Kitty, Ghostty, WezTerm, Warp, iTerm2), and drawn in text in any other, tmux
|
|
14
14
|
included - swimming a stroke a loop, its tentacles following its bell, frames `scripts/jellyfish-frames.mjs`
|
|
15
15
|
writes -
|
|
16
|
-
|
|
17
|
-
and resource list; `turri --verbose` shows
|
|
16
|
+
turri's version (and, run from a clone, the commit it is on, and whether the clone has changes), where commands
|
|
17
|
+
will run, the rules and skills loaded - rather than pi's startup header and resource list; `turri --verbose` shows
|
|
18
|
+
those too. pi's "Update Available" notice is left out - turri's pi is a pinned dependency `pi update` never
|
|
19
|
+
touches - and the terminal's tab reads `🪼 turri - <folder>`, not pi's `π`. Talk to it: ask it to start a
|
|
18
20
|
project, add a feature, render a module, fix a spec. It decides which skill or tool applies - but
|
|
19
21
|
not *how* a skill runs: `cultivate` hands the work to the gated runner, which owns the steps, the
|
|
20
22
|
gates and the judges (see [skills and gates](skills-and-gates.md)).
|
|
@@ -125,10 +127,13 @@ come waits for a free slot, and says so.
|
|
|
125
127
|
as GitHub names a hunk's function: each section is named once.
|
|
126
128
|
- **The side panel** (`ctrl+h`, as it was left - but on the pulse that last failed, stopped or did not pass, when one has
|
|
127
129
|
since it was last opened: the live panel that showed it is gone with the last pulse, and its announcement in the chat
|
|
128
|
-
says `ctrl+h shows this pulse`; **`/
|
|
130
|
+
says `ctrl+h shows this pulse`; **`/pulses`** on the pulses; not `ctrl+j`, which a terminal without the Kitty
|
|
129
131
|
keyboard protocol sends as a line feed, the same as `shift+enter`, and which a dialog takes for
|
|
130
132
|
`enter`; both stay pi's new-line keys. `ctrl+h` is the byte old terminals sent for backspace; a
|
|
131
|
-
terminal set to send `^H` for its Backspace key would open the panel on it) takes the whole screen - the panel or the chat, one at a time
|
|
133
|
+
terminal set to send `^H` for its Backspace key would open the panel on it) takes the whole screen - the panel or the chat, one at a time -
|
|
134
|
+
or, `s`, sits beside the chat: the chat on the left, the panel in the right half of the screen, and `s` again
|
|
135
|
+
over the whole screen. It opens as it was last left, for the conversation; a terminal under 100 columns has
|
|
136
|
+
no room for both and shows the panel over the whole screen.
|
|
132
137
|
It opens on **regen**: the spec itself, in full, with how much of it the code has been regenerated from drawn
|
|
133
138
|
onto it.
|
|
134
139
|
|
|
@@ -212,7 +217,13 @@ come waits for a free slot, and says so.
|
|
|
212
217
|
closes when it moves to another section. What is open is kept while the panel is closed. What the agents
|
|
213
218
|
said and did is not shown - it is in each pulse's log (see [Agent logs](#agent-logs)).
|
|
214
219
|
|
|
215
|
-
`ctrl+h` again, or `esc`, closes it and goes back to the chat.
|
|
220
|
+
`ctrl+h` again, or `esc`, closes it and goes back to the chat. Beside the chat, a click decides which side has
|
|
221
|
+
the keys - the chat or the panel, the one clicked, or the one `⌥⌘←` / `⌥⌘→` points at (on a
|
|
222
|
+
terminal that passes ⌘ on, over the Kitty keyboard protocol - Ghostty, kitty, WezTerm, iTerm2; not Apple's Terminal);
|
|
223
|
+
the other is drawn faint - and `esc` gives the chat the keys too, the panel staying and
|
|
224
|
+
following the pulses; `ctrl+h` gives the panel the keys again, and from the panel closes it. (pi's regular screen,
|
|
225
|
+
`--tui-mode regular`, reads no mouse: there it is the keys alone.)
|
|
226
|
+
While the panel has the keys, every key is the panel's,
|
|
216
227
|
whatever else happens: a question the chat model asks in the background (`ask_user`) waits in the chat,
|
|
217
228
|
unanswered - an `enter` in the panel never answers it - and the panel's top line says "the chat is waiting
|
|
218
229
|
for your answer". Back in the chat, the question is there, with the keys.
|
|
@@ -36,7 +36,7 @@ bash run_conformance_tests_<lang>.sh <build_folder> <conformance_tests_folder>
|
|
|
36
36
|
|
|
37
37
|
Both arguments are absolute paths: `<build_folder>` is the module's generated code (`plain_modules/<module>/code`), and `<conformance_tests_folder>` is the folder holding the whole suite. The harness runs the script on the person's machine - macOS, Linux or WSL, with its toolchains, in the person's own environment - and its exit code alone decides whether the conformance tests pass.
|
|
38
38
|
|
|
39
|
-
Every conformance script is self-contained: toolchain check, argument validation, stage the build into `<temp>/<lang>_<basename of $1>`, install dependencies there in isolation, check the tests in `$2` statically, run the suite in `$2` against it, clean up on exit. Nothing is prepared ahead of time by another script - unless the project already has a `prepare_environment*.sh` (
|
|
39
|
+
Every conformance script is self-contained: toolchain check, argument validation, stage the build into `<temp>/<lang>_<basename of $1>`, install dependencies there in isolation, check the tests in `$2` statically, run the suite in `$2` against it, clean up on exit. Nothing is prepared ahead of time by another script - unless the project already has a `prepare_environment*.sh` (a prepare script the project brought, or one `prepare-environment-script:` names): turri runs it on the same build before every run of the conformance script, so keep it, and let the conformance script rely on what it sets up rather than doing it again. Never write a prepare script yourself.
|
|
40
40
|
|
|
41
41
|
## How conformance scripts differ from unit-test scripts
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turri-dev/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-next.162a2c3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"grammar:sync": "node scripts/sync-plyn-grammar.mjs"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@earendil-works/pi-coding-agent": "^1.
|
|
37
|
-
"@earendil-works/pi-tui": "^1.
|
|
36
|
+
"@earendil-works/pi-coding-agent": "^1.2.0",
|
|
37
|
+
"@earendil-works/pi-tui": "^1.2.0",
|
|
38
38
|
"@langchain/langgraph": "1.4.15",
|
|
39
39
|
"gray-matter": "^4.0.3",
|
|
40
40
|
"js-yaml": "^5.4.2",
|