@turri-dev/cli 0.4.3-next.a60ada5 → 0.4.3-next.fd01774
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 +23 -3
- package/dist/banner.js +248 -0
- package/dist/capture-cli.js +4 -4
- package/dist/capture-view.js +99 -0
- package/dist/chat-commands.js +6 -6
- package/dist/chat-models.js +17 -15
- package/dist/chat-tab-header.js +21 -9
- package/dist/chat-tabs.js +1 -1
- package/dist/chat-terminal.js +127 -67
- package/dist/chat-waiting.js +0 -20
- package/dist/cli-options.js +11 -7
- package/dist/cli-root.js +101 -0
- package/dist/cli.js +20 -26
- package/dist/conform-cli.js +4 -6
- package/dist/cultivate-cli.js +65 -97
- package/dist/doctor-cli.js +99 -0
- package/dist/drift-cli.js +2 -7
- package/dist/entry-renderers.js +107 -0
- package/dist/extension.js +14 -3355
- package/dist/init-config-cli.js +209 -0
- package/dist/launch-cli.js +55 -91
- package/dist/lineage-cli.js +2 -4
- package/dist/loop-cli.js +118 -237
- package/dist/panel-view.js +409 -0
- package/dist/parse-cli.js +5 -2
- package/dist/pi-launch.js +41 -13
- package/dist/pi-themes.js +2 -2
- package/dist/plain-code-blocks.js +1 -1
- package/dist/print-mode.js +20 -0
- package/dist/question-dialog.js +10 -6
- package/dist/quiet.js +7 -106
- package/dist/regenerate/diff-view.js +6 -87
- package/dist/regenerate/jobs-tree.js +2 -17
- package/dist/regenerate/spec-map-view.js +3 -68
- package/dist/regenerate-cli.js +7 -11
- package/dist/reopen.js +40 -7
- package/dist/skill-progress.js +25 -0
- package/dist/skill-report.js +52 -0
- package/dist/terminal-marks.js +21 -0
- package/dist/terminal-notifications.js +116 -31
- package/dist/terminal-view.js +275 -0
- package/dist/turri-versions.js +64 -6
- package/docs/README.md +2 -2
- package/docs/capture.md +47 -11
- package/docs/chats.md +7 -5
- package/docs/claude-subscription.md +1 -1
- package/docs/config.md +10 -7
- package/docs/development.md +30 -64
- package/docs/headless.md +3 -1
- package/docs/hosting.md +3 -251
- package/docs/installation.md +5 -3
- package/docs/launch.md +1 -1
- package/docs/sandbox.md +2 -0
- package/docs/sentinel.md +4 -4
- package/docs/using.md +3 -3
- package/package.json +13 -31
- package/dist/ask.d.ts +0 -90
- package/dist/ask.js +0 -170
- package/dist/background-skills.d.ts +0 -56
- package/dist/background-skills.js +0 -129
- package/dist/bedrock-region.d.ts +0 -66
- package/dist/bedrock-region.js +0 -144
- package/dist/brand.d.ts +0 -13
- package/dist/btw.d.ts +0 -69
- package/dist/btw.js +0 -174
- package/dist/capture/agents.d.ts +0 -361
- package/dist/capture/agents.js +0 -332
- package/dist/capture/area.d.ts +0 -58
- package/dist/capture/area.js +0 -197
- package/dist/capture/assemble.d.ts +0 -122
- package/dist/capture/assemble.js +0 -452
- package/dist/capture/capture.d.ts +0 -116
- package/dist/capture/capture.js +0 -1228
- package/dist/capture/chat.d.ts +0 -29
- package/dist/capture/chat.js +0 -94
- package/dist/capture/checks.d.ts +0 -142
- package/dist/capture/checks.js +0 -643
- package/dist/capture/config.d.ts +0 -13
- package/dist/capture/config.js +0 -60
- package/dist/capture/interface.d.ts +0 -71
- package/dist/capture/interface.js +0 -199
- package/dist/capture/map.d.ts +0 -56
- package/dist/capture/map.js +0 -530
- package/dist/capture/progress.d.ts +0 -108
- package/dist/capture/progress.js +0 -234
- package/dist/capture/report.d.ts +0 -75
- package/dist/capture/report.js +0 -267
- package/dist/capture/scripts.d.ts +0 -26
- package/dist/capture/scripts.js +0 -33
- package/dist/capture/state.d.ts +0 -296
- package/dist/capture/state.js +0 -43
- package/dist/capture/trial.d.ts +0 -34
- package/dist/capture/trial.js +0 -89
- package/dist/capture-cli.d.ts +0 -1
- package/dist/chat-commands.d.ts +0 -17
- package/dist/chat-idle.d.ts +0 -7
- package/dist/chat-idle.js +0 -20
- package/dist/chat-models.d.ts +0 -22
- package/dist/chat-records.d.ts +0 -50
- package/dist/chat-records.js +0 -107
- package/dist/chat-scope.d.ts +0 -14
- package/dist/chat-scope.js +0 -15
- package/dist/chat-skills.d.ts +0 -17
- package/dist/chat-skills.js +0 -18
- package/dist/chat-tab-header.d.ts +0 -15
- package/dist/chat-tabs.d.ts +0 -26
- package/dist/chat-terminal.d.ts +0 -24
- package/dist/chat-ui.d.ts +0 -33
- package/dist/chat-waiting.d.ts +0 -67
- package/dist/chats.d.ts +0 -343
- package/dist/chats.js +0 -1010
- package/dist/cli-options.d.ts +0 -24
- package/dist/cli.d.ts +0 -9
- package/dist/config-edit.d.ts +0 -83
- package/dist/config-edit.js +0 -391
- package/dist/config.d.ts +0 -428
- package/dist/config.js +0 -811
- package/dist/conform-cli.d.ts +0 -1
- package/dist/conformance-switch.d.ts +0 -25
- package/dist/conformance-switch.js +0 -86
- package/dist/cultivate-cli.d.ts +0 -1
- package/dist/doctor-tool.d.ts +0 -11
- package/dist/doctor-tool.js +0 -33
- package/dist/drift-cli.d.ts +0 -1
- package/dist/environment.d.ts +0 -37
- package/dist/environment.js +0 -109
- package/dist/extension.d.ts +0 -209
- package/dist/genome.d.ts +0 -77
- package/dist/genome.js +0 -288
- package/dist/graph.d.ts +0 -52
- package/dist/graph.js +0 -247
- package/dist/host-session.d.ts +0 -112
- package/dist/host-session.js +0 -103
- package/dist/host.d.ts +0 -40
- package/dist/host.js +0 -54
- package/dist/identity.d.ts +0 -7
- package/dist/identity.js +0 -75
- package/dist/init-config.d.ts +0 -169
- package/dist/init-config.js +0 -841
- package/dist/installed-providers.d.ts +0 -40
- package/dist/installed-providers.js +0 -98
- package/dist/jellyfish.d.ts +0 -40
- package/dist/judge.d.ts +0 -25
- package/dist/judge.js +0 -62
- package/dist/launch-agent.d.ts +0 -62
- package/dist/launch-agent.js +0 -339
- package/dist/launch-cli.d.ts +0 -1
- package/dist/launch-session.d.ts +0 -68
- package/dist/launch-session.js +0 -225
- package/dist/launch-tools.d.ts +0 -28
- package/dist/launch-tools.js +0 -72
- package/dist/launch-track.d.ts +0 -175
- package/dist/launch-track.js +0 -497
- package/dist/lineage-cli.d.ts +0 -1
- package/dist/loop-cli.d.ts +0 -35
- package/dist/loop-tools.d.ts +0 -103
- package/dist/loop-tools.js +0 -361
- package/dist/model-check.d.ts +0 -72
- package/dist/model-check.js +0 -162
- package/dist/module-report.d.ts +0 -9
- package/dist/new-project.d.ts +0 -10
- package/dist/new-project.js +0 -42
- package/dist/notice.d.ts +0 -115
- package/dist/notice.js +0 -61
- package/dist/parse-cli.d.ts +0 -1
- package/dist/parse-tool.d.ts +0 -9
- package/dist/parse-tool.js +0 -33
- package/dist/pi-launch.d.ts +0 -1
- package/dist/pi-settings.d.ts +0 -4
- package/dist/pi-themes.d.ts +0 -3
- package/dist/pi.d.ts +0 -248
- package/dist/pi.js +0 -889
- package/dist/picture-row.d.ts +0 -10
- package/dist/plain/check.d.ts +0 -63
- package/dist/plain/check.js +0 -236
- package/dist/plain/concepts.d.ts +0 -37
- package/dist/plain/concepts.js +0 -283
- package/dist/plain/cycles.d.ts +0 -21
- package/dist/plain/cycles.js +0 -190
- package/dist/plain/errors.d.ts +0 -26
- package/dist/plain/errors.js +0 -50
- package/dist/plain/files.d.ts +0 -47
- package/dist/plain/files.js +0 -161
- package/dist/plain/graph.d.ts +0 -107
- package/dist/plain/graph.js +0 -194
- package/dist/plain/highlight.d.ts +0 -43
- package/dist/plain/highlight.js +0 -196
- package/dist/plain/index.d.ts +0 -18
- package/dist/plain/index.js +0 -18
- package/dist/plain/liquid.d.ts +0 -22
- package/dist/plain/liquid.js +0 -124
- package/dist/plain/markdown.d.ts +0 -103
- package/dist/plain/markdown.js +0 -330
- package/dist/plain/module-concepts.d.ts +0 -32
- package/dist/plain/module-concepts.js +0 -80
- package/dist/plain/parser.d.ts +0 -163
- package/dist/plain/parser.js +0 -930
- package/dist/plain/plain.tmLanguage.json +0 -150
- package/dist/plain/project.d.ts +0 -48
- package/dist/plain/project.js +0 -155
- package/dist/plain/spec.d.ts +0 -152
- package/dist/plain/spec.js +0 -265
- package/dist/plain/stdlib.d.ts +0 -16
- package/dist/plain/stdlib.js +0 -48
- package/dist/plain/test-plain-file.d.ts +0 -59
- package/dist/plain/test-plain-file.js +0 -232
- package/dist/plain-code-blocks.d.ts +0 -14
- package/dist/plain-files.d.ts +0 -21
- package/dist/plain-files.js +0 -156
- package/dist/pointer-hover.d.ts +0 -12
- package/dist/question-dialog.d.ts +0 -60
- package/dist/questioning.d.ts +0 -55
- package/dist/questioning.js +0 -109
- package/dist/quiet.d.ts +0 -34
- package/dist/regenerate/activity.d.ts +0 -227
- package/dist/regenerate/activity.js +0 -250
- package/dist/regenerate/agent-env.d.ts +0 -51
- package/dist/regenerate/agent-env.js +0 -311
- package/dist/regenerate/agent-shell.d.ts +0 -54
- package/dist/regenerate/agent-shell.js +0 -121
- package/dist/regenerate/arbiter.d.ts +0 -68
- package/dist/regenerate/arbiter.js +0 -133
- package/dist/regenerate/audit.d.ts +0 -69
- package/dist/regenerate/audit.js +0 -212
- package/dist/regenerate/base-folder.d.ts +0 -70
- package/dist/regenerate/base-folder.js +0 -186
- package/dist/regenerate/cases.d.ts +0 -12
- package/dist/regenerate/cases.js +0 -149
- package/dist/regenerate/change-view.d.ts +0 -23
- package/dist/regenerate/change-view.js +0 -153
- package/dist/regenerate/chunk-plan.d.ts +0 -217
- package/dist/regenerate/chunk-plan.js +0 -937
- package/dist/regenerate/codebase.d.ts +0 -21
- package/dist/regenerate/codebase.js +0 -75
- package/dist/regenerate/command-check.d.ts +0 -66
- package/dist/regenerate/command-check.js +0 -577
- package/dist/regenerate/compaction.d.ts +0 -13
- package/dist/regenerate/compaction.js +0 -20
- package/dist/regenerate/confine.d.ts +0 -69
- package/dist/regenerate/confine.js +0 -311
- package/dist/regenerate/conform.d.ts +0 -66
- package/dist/regenerate/conform.js +0 -132
- package/dist/regenerate/conformance-agents.d.ts +0 -388
- package/dist/regenerate/conformance-agents.js +0 -1162
- package/dist/regenerate/conformance.d.ts +0 -191
- package/dist/regenerate/conformance.js +0 -1035
- package/dist/regenerate/conversation-writes.d.ts +0 -10
- package/dist/regenerate/conversation-writes.js +0 -100
- package/dist/regenerate/credentials.d.ts +0 -18
- package/dist/regenerate/credentials.js +0 -88
- package/dist/regenerate/debug-log.d.ts +0 -56
- package/dist/regenerate/debug-log.js +0 -236
- package/dist/regenerate/debugger.d.ts +0 -36
- package/dist/regenerate/debugger.js +0 -133
- package/dist/regenerate/delivery.d.ts +0 -2
- package/dist/regenerate/diagnose-job.d.ts +0 -2
- package/dist/regenerate/diagnose-job.js +0 -40
- package/dist/regenerate/diagnose.d.ts +0 -46
- package/dist/regenerate/diagnose.js +0 -92
- package/dist/regenerate/diff-view.d.ts +0 -64
- package/dist/regenerate/drift.d.ts +0 -120
- package/dist/regenerate/drift.js +0 -285
- package/dist/regenerate/environment-error.d.ts +0 -167
- package/dist/regenerate/environment-error.js +0 -342
- package/dist/regenerate/failure-reports.d.ts +0 -28
- package/dist/regenerate/failure-reports.js +0 -79
- package/dist/regenerate/job-log.d.ts +0 -30
- package/dist/regenerate/job-log.js +0 -105
- package/dist/regenerate/job-panel.d.ts +0 -20
- package/dist/regenerate/job-panel.js +0 -54
- package/dist/regenerate/jobs-tree.d.ts +0 -76
- package/dist/regenerate/jobs.d.ts +0 -231
- package/dist/regenerate/jobs.js +0 -522
- package/dist/regenerate/lanes.d.ts +0 -16
- package/dist/regenerate/lanes.js +0 -32
- package/dist/regenerate/launch.d.ts +0 -256
- package/dist/regenerate/launch.js +0 -689
- package/dist/regenerate/ledger-view.d.ts +0 -87
- package/dist/regenerate/ledger-view.js +0 -325
- package/dist/regenerate/ledger.d.ts +0 -368
- package/dist/regenerate/ledger.js +0 -357
- package/dist/regenerate/lineage.d.ts +0 -105
- package/dist/regenerate/lineage.js +0 -485
- package/dist/regenerate/list-arguments.d.ts +0 -21
- package/dist/regenerate/list-arguments.js +0 -121
- package/dist/regenerate/loop.d.ts +0 -423
- package/dist/regenerate/loop.js +0 -2087
- package/dist/regenerate/masking.d.ts +0 -19
- package/dist/regenerate/masking.js +0 -95
- package/dist/regenerate/model-names.d.ts +0 -33
- package/dist/regenerate/model-names.js +0 -92
- package/dist/regenerate/notes.d.ts +0 -159
- package/dist/regenerate/notes.js +0 -446
- package/dist/regenerate/os-sandbox.d.ts +0 -93
- package/dist/regenerate/os-sandbox.js +0 -283
- package/dist/regenerate/panel-dock.d.ts +0 -23
- package/dist/regenerate/paths.d.ts +0 -110
- package/dist/regenerate/paths.js +0 -190
- package/dist/regenerate/plain-palette.d.ts +0 -34
- package/dist/regenerate/prompt.d.ts +0 -230
- package/dist/regenerate/prompt.js +0 -741
- package/dist/regenerate/pulse-files.d.ts +0 -14
- package/dist/regenerate/pulse-files.js +0 -63
- package/dist/regenerate/records.d.ts +0 -132
- package/dist/regenerate/records.js +0 -327
- package/dist/regenerate/regenerate.d.ts +0 -106
- package/dist/regenerate/regenerate.js +0 -660
- package/dist/regenerate/regression.d.ts +0 -58
- package/dist/regenerate/regression.js +0 -188
- package/dist/regenerate/renames.d.ts +0 -42
- package/dist/regenerate/renames.js +0 -185
- package/dist/regenerate/requires.d.ts +0 -117
- package/dist/regenerate/requires.js +0 -377
- package/dist/regenerate/resources.d.ts +0 -57
- package/dist/regenerate/resources.js +0 -162
- package/dist/regenerate/scripts-being-written.d.ts +0 -19
- package/dist/regenerate/scripts-being-written.js +0 -30
- package/dist/regenerate/self-check.d.ts +0 -29
- package/dist/regenerate/self-check.js +0 -119
- package/dist/regenerate/services.d.ts +0 -28
- package/dist/regenerate/services.js +0 -158
- package/dist/regenerate/shell.d.ts +0 -91
- package/dist/regenerate/shell.js +0 -320
- package/dist/regenerate/side-panel.d.ts +0 -64
- package/dist/regenerate/spec-map-view.d.ts +0 -147
- package/dist/regenerate/spec-map.d.ts +0 -160
- package/dist/regenerate/spec-map.js +0 -596
- package/dist/regenerate/spec-steps.d.ts +0 -180
- package/dist/regenerate/spec-steps.js +0 -729
- package/dist/regenerate/standing.d.ts +0 -28
- package/dist/regenerate/standing.js +0 -30
- package/dist/regenerate/state.d.ts +0 -21
- package/dist/regenerate/state.js +0 -10
- package/dist/regenerate/steering.d.ts +0 -56
- package/dist/regenerate/steering.js +0 -119
- package/dist/regenerate/stop-report.d.ts +0 -43
- package/dist/regenerate/stop-report.js +0 -160
- package/dist/regenerate/submit-work.d.ts +0 -44
- package/dist/regenerate/submit-work.js +0 -76
- package/dist/regenerate/test-kinds.d.ts +0 -85
- package/dist/regenerate/test-kinds.js +0 -171
- package/dist/regenerate/test-scripts.d.ts +0 -240
- package/dist/regenerate/test-scripts.js +0 -847
- package/dist/regenerate/testing-steps.d.ts +0 -52
- package/dist/regenerate/testing-steps.js +0 -129
- package/dist/regenerate/testing.d.ts +0 -150
- package/dist/regenerate/testing.js +0 -438
- package/dist/regenerate/transcript-view.d.ts +0 -21
- package/dist/regenerate/unit-gate.d.ts +0 -27
- package/dist/regenerate/unit-gate.js +0 -20
- package/dist/regenerate/unit-review.d.ts +0 -152
- package/dist/regenerate/unit-review.js +0 -361
- package/dist/regenerate/web.d.ts +0 -61
- package/dist/regenerate/web.js +0 -256
- package/dist/regenerate/workspace.d.ts +0 -12
- package/dist/regenerate/workspace.js +0 -99
- package/dist/regenerate-cli.d.ts +0 -1
- package/dist/reopen.d.ts +0 -29
- package/dist/resume-line.d.ts +0 -5
- package/dist/review/live.d.ts +0 -72
- package/dist/review/live.js +0 -166
- package/dist/rules.d.ts +0 -20
- package/dist/rules.js +0 -47
- package/dist/run-report.d.ts +0 -88
- package/dist/run-report.js +0 -338
- package/dist/screen-padding.d.ts +0 -28
- package/dist/self-invocation.d.ts +0 -36
- package/dist/self-invocation.js +0 -137
- package/dist/sentinel-chat.d.ts +0 -19
- package/dist/sentinel-chat.js +0 -226
- package/dist/sentinel-check.d.ts +0 -36
- package/dist/sentinel-check.js +0 -78
- package/dist/sentinel.d.ts +0 -107
- package/dist/sentinel.js +0 -601
- package/dist/settings.d.ts +0 -45
- package/dist/settings.js +0 -378
- package/dist/setup.d.ts +0 -97
- package/dist/setup.js +0 -436
- package/dist/skill-progress.d.ts +0 -46
- package/dist/skill.d.ts +0 -102
- package/dist/skill.js +0 -147
- package/dist/skills.d.ts +0 -54
- package/dist/skills.js +0 -111
- package/dist/spawn-async.d.ts +0 -18
- package/dist/spawn-async.js +0 -35
- package/dist/stack.d.ts +0 -80
- package/dist/stack.js +0 -206
- package/dist/stdlib.d.ts +0 -43
- package/dist/stdlib.js +0 -118
- package/dist/surface.d.ts +0 -5
- package/dist/surface.js +0 -18
- package/dist/terminal-images.d.ts +0 -2
- package/dist/terminal-notifications.d.ts +0 -31
- package/dist/test-plain-files.d.ts +0 -41
- package/dist/test-plain-files.js +0 -172
- package/dist/tools.d.ts +0 -101
- package/dist/tools.js +0 -242
- package/dist/turri-versions.d.ts +0 -71
- package/genome/capture/capture.md +0 -26
- package/genome/capture/check-conventions.md +0 -5
- package/genome/capture/check-reference.md +0 -11
- package/genome/capture/concepts.md +0 -3
- package/genome/capture/divide.md +0 -9
- package/genome/capture/feature.md +0 -45
- package/genome/capture/interface.md +0 -9
- package/genome/capture/modules.md +0 -23
- package/genome/capture/outline.md +0 -11
- package/genome/capture/readability.md +0 -12
- package/genome/capture/reference.md +0 -10
- package/genome/capture/split.md +0 -9
- package/genome/capture/survey.md +0 -37
- package/genome/capture/trial.md +0 -18
- package/genome/capture/verify.md +0 -7
- package/genome/rules/bullet-continuation.md +0 -61
- package/genome/rules/concise-specs-examples.md +0 -460
- package/genome/rules/concise-specs-integration-examples.md +0 -281
- package/genome/rules/concise-specs.md +0 -80
- package/genome/rules/definitions.md +0 -107
- package/genome/rules/examples/integration-embedded-testing/run_conformance_tests_java.sh +0 -161
- package/genome/rules/examples/integration-embedded-testing/run_unittests_java.sh +0 -50
- package/genome/rules/exported-concepts.md +0 -39
- package/genome/rules/func-specs.md +0 -164
- package/genome/rules/impl-reqs.md +0 -68
- package/genome/rules/import-modules.md +0 -49
- package/genome/rules/integration-embedded-testing.md +0 -273
- package/genome/rules/integration-embedded.md +0 -171
- package/genome/rules/integration-standalone.md +0 -135
- package/genome/rules/integrations.md +0 -136
- package/genome/rules/linked-resources.md +0 -76
- package/genome/rules/module-structure.md +0 -112
- package/genome/rules/project-model.md +0 -69
- package/genome/rules/required-concepts.md +0 -44
- package/genome/rules/requires-modules.md +0 -81
- package/genome/rules/semantic-ids.md +0 -49
- package/genome/rules/stdlib.md +0 -37
- package/genome/rules/test-plain-files.md +0 -138
- package/genome/rules/test-reqs.md +0 -57
- package/genome/rules/turri-regeneration.md +0 -66
- package/genome/skills/analyze-2-func-specs/SKILL.md +0 -116
- package/genome/skills/analyze-func-specs/SKILL.md +0 -137
- package/genome/skills/break-down-func-spec/SKILL.md +0 -229
- package/genome/skills/consolidate-concepts/SKILL.md +0 -192
- package/genome/skills/convert-old-syntax/SKILL.md +0 -68
- package/genome/skills/convert-old-syntax/references/rubric.md +0 -11
- package/genome/skills/debug-specs/SKILL.md +0 -194
- package/genome/skills/implement-conformance-testing-script/SKILL.md +0 -247
- package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_cypress.ps1 +0 -337
- package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_golang.ps1 +0 -111
- package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_java.sh +0 -151
- package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.ps1 +0 -103
- package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.sh +0 -146
- package/genome/skills/implement-unit-testing-script/SKILL.md +0 -171
- package/genome/skills/implement-unit-testing-script/assets/run_unittests_flutter.ps1 +0 -87
- package/genome/skills/implement-unit-testing-script/assets/run_unittests_golang.ps1 +0 -73
- package/genome/skills/implement-unit-testing-script/assets/run_unittests_java.sh +0 -82
- package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.ps1 +0 -81
- package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.sh +0 -102
- package/genome/skills/implement-unit-testing-script/assets/run_unittests_react.ps1 +0 -87
- package/genome/skills/refactor-module/SKILL.md +0 -218
- package/genome/skills/resolve-section-ownership/SKILL.md +0 -64
- package/genome/skills/resolve-spec-conflict/SKILL.md +0 -102
- package/stdlib/backend/common.plain +0 -25
- package/stdlib/backend/conformance/common.plain +0 -12
- package/stdlib/backend/conformance/go-gin.plain +0 -9
- package/stdlib/backend/conformance/go-nethttp.plain +0 -9
- package/stdlib/backend/conformance/java-springboot.plain +0 -9
- package/stdlib/backend/conformance/python-django.plain +0 -9
- package/stdlib/backend/conformance/python-fastapi.plain +0 -9
- package/stdlib/backend/conformance/python-flask.plain +0 -9
- package/stdlib/backend/conformance/rust-axum.plain +0 -9
- package/stdlib/backend/conformance/typescript-express.plain +0 -9
- package/stdlib/backend/conformance/typescript-fastify.plain +0 -9
- package/stdlib/backend/conformance/typescript-nestjs.plain +0 -9
- package/stdlib/backend/go-gin.plain +0 -18
- package/stdlib/backend/go-nethttp.plain +0 -18
- package/stdlib/backend/java-springboot.plain +0 -19
- package/stdlib/backend/python-django.plain +0 -19
- package/stdlib/backend/python-fastapi.plain +0 -23
- package/stdlib/backend/python-flask.plain +0 -23
- package/stdlib/backend/rust-axum.plain +0 -17
- package/stdlib/backend/typescript-express.plain +0 -19
- package/stdlib/backend/typescript-fastify.plain +0 -19
- package/stdlib/backend/typescript-nestjs.plain +0 -19
- package/stdlib/cli/common.plain +0 -17
- package/stdlib/cli/conformance/common.plain +0 -11
- package/stdlib/cli/conformance/go-cobra.plain +0 -9
- package/stdlib/cli/conformance/go-flag.plain +0 -9
- package/stdlib/cli/conformance/java-picocli.plain +0 -9
- package/stdlib/cli/conformance/python-argparse.plain +0 -9
- package/stdlib/cli/conformance/python-click.plain +0 -9
- package/stdlib/cli/conformance/python-typer.plain +0 -9
- package/stdlib/cli/conformance/rust-clap.plain +0 -9
- package/stdlib/cli/conformance/typescript-commander.plain +0 -9
- package/stdlib/cli/go-cobra.plain +0 -14
- package/stdlib/cli/go-flag.plain +0 -14
- package/stdlib/cli/java-picocli.plain +0 -15
- package/stdlib/cli/python-argparse.plain +0 -18
- package/stdlib/cli/python-click.plain +0 -16
- package/stdlib/cli/python-typer.plain +0 -16
- package/stdlib/cli/rust-clap.plain +0 -14
- package/stdlib/cli/typescript-commander.plain +0 -17
- package/stdlib/frontend/angular.plain +0 -17
- package/stdlib/frontend/common.plain +0 -17
- package/stdlib/frontend/conformance/angular.plain +0 -5
- package/stdlib/frontend/conformance/common.plain +0 -11
- package/stdlib/frontend/conformance/react-vite.plain +0 -5
- package/stdlib/frontend/conformance/sveltekit-spa.plain +0 -5
- package/stdlib/frontend/conformance/vue-vite.plain +0 -5
- package/stdlib/frontend/react-vite.plain +0 -16
- package/stdlib/frontend/sveltekit-spa.plain +0 -16
- package/stdlib/frontend/vue-vite.plain +0 -16
- package/stdlib/lang/go.plain +0 -13
- package/stdlib/lang/java.plain +0 -12
- package/stdlib/lang/python.plain +0 -18
- package/stdlib/lang/rust.plain +0 -12
- package/stdlib/lang/typescript.plain +0 -13
- package/stdlib/library/common.plain +0 -15
- package/stdlib/library/conformance/common.plain +0 -9
- package/stdlib/library/conformance/go.plain +0 -9
- package/stdlib/library/conformance/java-gradle.plain +0 -9
- package/stdlib/library/conformance/java-maven.plain +0 -9
- package/stdlib/library/conformance/python.plain +0 -9
- package/stdlib/library/conformance/rust.plain +0 -9
- package/stdlib/library/conformance/typescript.plain +0 -9
- package/stdlib/library/go.plain +0 -12
- package/stdlib/library/java-gradle.plain +0 -13
- package/stdlib/library/java-maven.plain +0 -13
- package/stdlib/library/python.plain +0 -13
- package/stdlib/library/rust.plain +0 -12
- package/stdlib/library/typescript.plain +0 -15
package/docs/capture.md
CHANGED
|
@@ -10,7 +10,17 @@ turri capture ../other-app --harness-model anthropic/claude-opus-4-5 --coding-mo
|
|
|
10
10
|
|
|
11
11
|
In the chat, `/capture [path]` does the same in the background. Only you start it: the chat can tell you about it, but cannot run it, since a capture turns conformance tests on in the project it writes (`src/capture/`).
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The chat that started `/capture` keeps a trace you can scroll back through. Each milestone shows elapsed time and, once reported, the model cost so far. For example:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
capture · 0s · compact capture: 10/64 source, test and contract files, 305/4000 lines, 0/24 mapped interface entries - within all three limits
|
|
17
|
+
capture · 1s · survey · plan: I’ll trace the calculator’s commands and check how its tests exercise them.
|
|
18
|
+
capture · 14s · $0.08 · survey: Both arithmetic commands reject invalid arguments before computing a result.
|
|
19
|
+
capture · 14s · $0.08 · surveyed: calc-cli
|
|
20
|
+
capture · 1m 12s · $0.42 · captured calc-cli in one pass: 3 functional specs
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Each agent, including a testing-script writer, opens with a **plan**: one sentence about what it will inspect, write or test. If it goes straight to a tool, the trace shows its assigned task instead. Each capture agent reports a concrete finding in its existing submission: what it discovered, corrected or could not verify. Once the harness accepts that submission, the finding appears by the agent's name alongside the progress lines. Testing-script writers describe what their scripts check. Neither the plan nor the finding needs a separate model call. These transcript entries do not start a chat turn or enter the chat model's context. While capture runs, the widget above the input shows finer detail, including what each agent is doing right now (`src/capture/progress.ts`):
|
|
14
24
|
|
|
15
25
|
```
|
|
16
26
|
capture shorty ✓ survey ━ ✓ outline ━ ⠋ features ─ ○ concepts ─ ○ readability ─ ○ interface ─ ○ trial ─ ○ scripts phase 3 of 8
|
|
@@ -20,7 +30,7 @@ capture shorty ✓ survey ━ ✓ outline ━ ⠋ features ─ ○ concepts ─
|
|
|
20
30
|
captured shorty#service-info: 1 functional spec
|
|
21
31
|
```
|
|
22
32
|
|
|
23
|
-
- **The phases
|
|
33
|
+
- **The phases** of the selected pipeline: those done ticked, the current one spinning and those to come. Compact captures have five; staged captures have eight.
|
|
24
34
|
- **Under them, the phase's own work,** where it is counted, as the regen panel draws functional specs: done in green, at work in the accent colour, waiting `▓`. Then that work in words - while outlining, the features outlined so far and the areas still to outline; then the features captured of those to capture - how long the capture has taken, and what its models have cost.
|
|
25
35
|
- **A line for each agent at work:** what it captures, for how long, the last file it read or searched, and what it is doing now.
|
|
26
36
|
- **The last line:** what the capture said last.
|
|
@@ -46,9 +56,22 @@ When it ends, turri asks whether to open the captured project. A chat works on t
|
|
|
46
56
|
|
|
47
57
|
**Offline.** No capture agent can ask anything. Whatever the code leaves open, each agent decides itself, and says so. The [report](#the-report) collects every such decision.
|
|
48
58
|
|
|
59
|
+
## How capture scales
|
|
60
|
+
|
|
61
|
+
For Python libraries the interface reference also records statically declared package exports, import paths used in the original tests, callable signatures and fields of their result types. When Python 3 is available, a helper reads syntax trees without importing the project. Dynamic exports still need the agents' source check. These literal details belong in the linked reference, leaving the functional specs to describe behaviour. A survey that already found distinct concerns too large for a single module can hand that decision directly to the staged writers.
|
|
62
|
+
|
|
63
|
+
Capture chooses a pipeline automatically, before the first model call. The CLI says which it chose and why; the report records the choice. It uses the map rather than asking an agent to estimate the work.
|
|
64
|
+
|
|
65
|
+
Size selects **staged** if **any one** of three counts exceeds its limit: **more than 64** source, test and contract files, **more than 4,000** lines across those files, or **more than 24** interface entries outside tests. Otherwise capture starts **compact**. A count exactly at its limit does not exceed it. Bytes, assets, docs and dependency lock files do not enter the decision.
|
|
66
|
+
|
|
67
|
+
- **Compact:** after the survey and interface reference, **one writer** reads the program and its tests and writes one module directly. There is no separate feature outline, writer per feature, module planner, concept reconciliation or readability pass. The conventions and reference still get checked, a fresh agent verifies the module against the code, and the scenarios are still tried on the original. Testing scripts and the parser check are the same on both paths.
|
|
68
|
+
- **Staged:** the code is outlined by area, written by feature and checked by module. `TURRI_CAPTURE_LEAF_LINES` controls splitting within this pipeline. Division runs only across multiple leaves, reconciliation only for conflicting definitions. Reference and trial work is batched and independent writers run up to `--parallel` at a time.
|
|
69
|
+
|
|
70
|
+
A short program need not be simple. A compact capture checks the same three limits again using the discovered interface. Independently of size, it switches to staged if the survey finds multiple parts, or the writer cannot fit the behaviour and scenarios into one module of up to eight functional specs. A writer can ask to expand rather than omit behaviour; an invalid draft that still fails the normal checks after retries also expands. Capture reuses the survey, conventions and reference. The choice is saved with its checkpoints; captures started before compact mode resume on the staged path.
|
|
71
|
+
|
|
49
72
|
## How it works
|
|
50
73
|
|
|
51
|
-
|
|
74
|
+
Both pipelines share the map, survey, interface reference and final checks. The numbered steps below describe the staged pipeline in full.
|
|
52
75
|
|
|
53
76
|
1. **The map** (`src/capture/map.ts`), with no model. Every file the codebase holds, read through git when it is a repo, so what git ignores is left out. Also left out: dependencies, caches, capture's own output folder, and any turri project inside the codebase (a folder with a `config.turri.yaml`, an earlier capture's among them), since its \*\*\*plain is not the code. Each file gets:
|
|
54
77
|
- its kind: source, test, doc, asset, contract, manifest
|
|
@@ -78,7 +101,7 @@ The cost of a capture follows the number of features, not lines of code. However
|
|
|
78
101
|
5. **The split.** An area of more than 6000 lines (`TURRI_CAPTURE_LEAF_LINES`) goes to an agent that splits it into smaller areas by what they do. Each smaller area that is still too large is split again, so depth grows only slowly with size. The harness puts the areas in the order of their code: an area whose files import another's comes after it. The modules are gathered by concern and put in the order their behaviour is built in once the features are written (step 10).
|
|
79
102
|
6. **The outline.** An area that fits is outlined by one agent into features, in build order. Each feature is something a user can do, with the files where it is built. The agent sees the stack's templates too: infrastructure they settle - settings, logging, error bodies, middleware - is no feature, and is left out as settled by the stack, unless a user would notice the original does it differently.
|
|
80
103
|
7. **The features divided.** Once every area of a part is outlined, one agent sees all its features, area by area, with what each is about and where it is built, and gives each behaviour to one feature. The outlines are made area by area from each area's own files, so the same behaviour can be outlined twice - an option parsed in one area and acted on in another, a message printed in a third - and written twice it reads twice, in different words, and contradicts itself. Each feature that stays gets a line of what it alone owns; a feature that is a slice of another's behaviour is merged into it, its files the other's, and not written. A part outlined as one area is not divided: one agent saw all of it. A division that never holds leaves each feature owning what it was outlined for.
|
|
81
|
-
8. **The features, side by side.** One agent per feature, up to `--parallel` (
|
|
104
|
+
8. **The features, side by side.** One agent per feature, up to `--parallel` (8 by default) at once. Each is given the full text of the `stdlib/` templates its part is built on - the stack, its kind's `common`, its language's - as the default it never restates, the part's conventions, every feature of the part with what it owns, and the reference's entries in its feature's files, with what the map found there that the reference does not list: it captures what each piece its feature owns does, by its exact name, using the part's interface concept - what one takes, its choices, its default and its help left to the reference, said only where a behaviour turns on them and never otherwise - and never another feature's behaviour, even where its code or tests touch it. Each follows the feature's surfaces through the code, reads the original's tests of it, then writes:
|
|
82
105
|
- at most 8 functional specs
|
|
83
106
|
- the concepts they need beyond the part's
|
|
84
107
|
- its scenarios, mimicking the original's black-box tests - a test that runs the software through its interface, in its own process or the test's - and spent where those are densest: a functional spec the original tests twenty ways gets several, error cases no larger share than the original gives them. Where the original has no test of a spec, it gets scenarios only when it can fail silently, can be read two ways, or is costly when wrong. A feature may have 8 scenarios, and one more for every 50 lines of the original's tests in its files, up to 30; its agent is shown those test files, their lines and their tests' names. Each scenario expects what the original does under the test reqs: output that is not a terminal unless they give one, a local server rather than the internet - never a unit test that mocks a library, recast.
|
|
@@ -89,7 +112,7 @@ The cost of a capture follows the number of features, not lines of code. However
|
|
|
89
112
|
13. **The interface checked against the code.** For each module, an agent is given its \*\*\*plain - functional specs with their scenarios - the reference's entries in its features' files, and the options the \*\*\*plain names that the reference does not have, found mechanically, and checks every interface fact against the reference and the code that decides it: each option's names, value, choices and default; each route's method, path, fields and status codes; each message, format and exit code. It corrects what is wrong or left out, a functional spec's text or a scenario's, citing the code - over the readability pass, which never sees the code. A correction that never holds is not made.
|
|
90
113
|
14. **The scenarios tried on the original** (`src/capture/trial.ts`, `genome/capture/trial.md`). Every agent before this one read the original and never ran it, so a scenario can expect a terminal its test will not give, a site on the internet, output wrapped at a width nobody set, or a message the original never prints. For each module, a copy of the original - the files the map has, so none of its installed dependencies, nor turri's own config files, and the lock files beside its manifests, so it installs what the original pins - is made under `.turri/capture/trial/<module>/`, and agents with a shell on it, 20 scenarios each, one after another, install the original there and run each scenario as its conformance test will: from outside, through its interface, under the part's test reqs and its stack's conformance template. Their shell is a coding agent's - the command check, a home, temporary folder and package caches of its own, the OS sandbox and the audit - fenced to the copy. Each scenario comes back `held`, with what was run and what the original answered; `corrected` to what the original does, keeping what it checks - a local server for a site on the internet, the option that forces colour where the test's output is no terminal; `removed`, when nothing outside can check it; or `untried`, with why, when the original would not run here - kept as written. A functional spec the original contradicts is corrected with its scenario, and what every test must set up for the original to act as the scenarios say - `COLUMNS`, a configuration folder of its own, an update check off - joins the part's test reqs. What only some scenarios need - a file one sends, a server answering one exact body, a pseudo-terminal for one prompt - is never a test req, which every conformance test of every module is written under: those scenarios are corrected to say it themselves, and a test req that names a scenario or a functional spec is sent back. The harness checks that every scenario has one result and that each held or corrected one says what was run. The copy is removed once the module's agents are done. An agent that never holds leaves its scenarios as written, and the report says so.
|
|
91
114
|
15. **The files.** The modules, their scenarios, the interface references and the config are written, once.
|
|
92
|
-
16. **The testing scripts.**
|
|
115
|
+
16. **The testing scripts.** Capture first checks whether a reusable runner fits the surveyed setup. A single Python part with `requirements.txt` and ordinary pytest discovery can use the stock unit runner. Its external suite can use pytest or Bats, including a helper's build-folder and interpreter variables. For a standard installable `pyproject.toml` package, the pytest runner installs the staged package in its own venv so imports and console entry points work. It recognises the manifest's Black/isort/flake8/mypy toolset and `dev` extra. A custom invocation, installation or service setup still needs a writer. Reused scripts are copied into the project and named in its config without a model call. For each unmatched kind, `implement-unit-testing-script` or `implement-conformance-testing-script` writes the runner on the writing tier. The report says which runner was used, or why one could not be written.
|
|
93
116
|
17. **The check and the report.** The parser checks every module.
|
|
94
117
|
|
|
95
118
|
The harness checks every answer before keeping it, and sends it back with what is wrong, twice at most (`src/capture/checks.ts`). It checks:
|
|
@@ -119,6 +142,8 @@ Only a survey that never holds stops the capture, before anything is written.
|
|
|
119
142
|
|
|
120
143
|
## What it writes
|
|
121
144
|
|
|
145
|
+
When a captured program itself uses Liquid templates, literal tags and expressions in its examples are emitted as literal text. Markdown backticks alone do not prevent Liquid from evaluating them before the module is parsed. This applies to shared requirements, functional specs and their scenarios.
|
|
146
|
+
|
|
122
147
|
```
|
|
123
148
|
my-app/
|
|
124
149
|
... the original - read only, never written
|
|
@@ -140,7 +165,8 @@ my-app/
|
|
|
140
165
|
- **Concepts.** A concept stays in the module that defines it when only that module uses it. A concept used across modules goes to the part's import module, along with every concept its definition uses.
|
|
141
166
|
- **The codebase is never written to.** Capture's agents only read it - read, grep, find, ls, and no shell - but for those that try the scenarios, which run the original in a copy of it, removed once they are done.
|
|
142
167
|
- **Assets.** The assets are copied rather than linked, so the original can be deleted without breaking anything. `base-folder: assets` puts them in the first module's code before its first pulse, at the paths they had.
|
|
143
|
-
- **The config.**
|
|
168
|
+
- **The config.** Capture inherits `config.turri.yaml` from the project in which the chat or `turri capture` was started. That keeps the person's models, thinking, reviews and limits. With no config to inherit, capture writes the full `turri init-config` template. A named harness model selects its vendor's pair: for example, a global Bedrock Claude harness gets Haiku low for coding. `--coding-model` overrides that choice. A custom provider with no preset keeps its named model. The capture agents use their [own three tiers](#models).
|
|
169
|
+
- **Capture-specific settings.** Capture turns on `conformance-tests` and wires up the captured project's own unit and conformance runners. The original project's script paths, `module`, `base-folder` and `test-dir` do not carry over. In the chat, the current chat model and thinking and any coding model given at startup take precedence; on the command line, `--harness-model` and `--coding-model` do. A config that does not parse stops capture before anything is written ([details](config.md#a-config-that-does-not-parse)).
|
|
144
170
|
|
|
145
171
|
## The report
|
|
146
172
|
|
|
@@ -174,12 +200,22 @@ Its first lines are the summary the command line and the chat show. In the chat,
|
|
|
174
200
|
|
|
175
201
|
## Models
|
|
176
202
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
203
|
+
| Role | Work | Default |
|
|
204
|
+
| --- | --- | --- |
|
|
205
|
+
| `capture-exploration` | Gather facts from source for the public interface reference. | **Haiku, low** |
|
|
206
|
+
| `capture-analysis` | Check conventions, reference entries and the module's interface against the code, split and outline areas, divide features, and try draft scenarios against the original. | **Sonnet, low** |
|
|
207
|
+
| `capture` | Reason about the stack and requirements, write the specs, organise modules, reconcile concepts, revise the text and write custom testing scripts. | **Opus, medium** |
|
|
208
|
+
|
|
209
|
+
`init-config` writes all three entries as active configuration. For example, with Anthropic:
|
|
210
|
+
|
|
211
|
+
```yaml
|
|
212
|
+
models:
|
|
213
|
+
capture-exploration: anthropic/claude-haiku-5-5:low
|
|
214
|
+
capture-analysis: anthropic/claude-sonnet-5-5:low
|
|
215
|
+
capture: anthropic/claude-opus-5-5:medium
|
|
216
|
+
```
|
|
181
217
|
|
|
182
|
-
|
|
218
|
+
The three entries are independent, each overriding its tier's default. Headless capture resolves the same defaults without needing `init-config`; a Bedrock Claude harness uses its inference geography. A non-Claude harness keeps its configured provider models: coding for exploration and analysis, harness for writing. Capture prints the resolved models at startup, and each agent's elapsed time and cost at completion. Capture turns have ten minutes unless a role, `models.default` or `turn-limit` sets a limit; scenario trials get at least thirty minutes unless the limit is off.
|
|
183
219
|
|
|
184
220
|
`--harness-model` and `--coding-model` are also written into the new project's config, for the chat and the regeneration that follow.
|
|
185
221
|
|
package/docs/chats.md
CHANGED
|
@@ -8,7 +8,7 @@ Each chat has its own:
|
|
|
8
8
|
|
|
9
9
|
- **history** - what was said in it, and nothing said in another; a chat asked about another's says so and asks;
|
|
10
10
|
- **turns** - a hidden chat keeps working, and starts a turn of its own when a pulse it asked for ends;
|
|
11
|
-
- **model and thinking level** - [pi](https://pi.dev)'s `/model
|
|
11
|
+
- **model and thinking level** - it starts on `harness-model`, and is put on it again whenever `harness-model` changes; [pi](https://pi.dev)'s `/model` chooses another for it until then. While `harness-model` cannot be reached - no such model here, its provider not signed in, or a `config.turri.yaml` that [does not parse](config.md#a-config-that-does-not-parse) naming none for certain - a line above the input says why, and the chat sends nothing to a model, rather than running on [pi](https://pi.dev)'s own choice: the footer shows it on `turri/nothing-sent`, turri's stand-in, which ends any turn at once saying why. `/login`, another `harness-model` with `/settings`, or the file put right, and it goes on;
|
|
12
12
|
- **questions** - what it asks waits in it until you look at it.
|
|
13
13
|
|
|
14
14
|
The session's, shared by every chat:
|
|
@@ -35,16 +35,18 @@ Each finished pulse appears in the session's notifications. When the [sentinel](
|
|
|
35
35
|
| `/resume` | a saved chat, opened as a chat of its own beside the others - or shown, when it is open |
|
|
36
36
|
| `ctrl+c` | what the chat shown is doing, stopped - its turn, a skill or a tool in it, a `!` command, a compaction; in a chat doing nothing, a draft in the editor cleared, else turri left, every chat with it |
|
|
37
37
|
|
|
38
|
-
The
|
|
38
|
+
The welcome banner appears only in the first tab. Typing or pasting a draft leaves it visible. Submitting a non-empty message or slash command, including `/regenerate`, hides it for the rest of the session. After that, and in new chats, only the tab row remains above the conversation.
|
|
39
|
+
|
|
40
|
+
When the tabs scroll away, they stay at the top of the fullscreen terminal. A fresh session starts with one tab and a `+` button. Click `+` to open a chat, a tab's title to switch to it, or its `×` to close it. The active tab has the accent fill and a `▸` marker when there is room. Moving the pointer over a control highlights and underlines that target, including the close button independently of its tab. Each tab shows its number and title - "new chat" until the first message, unless `/name` gives it a name - and a spinner while it works, `?` while a question waits, or `•` when it said something since you last looked. In `--tui-mode regular` the tabs scroll with the terminal; use the commands or keys to switch.
|
|
39
41
|
|
|
40
42
|
A message you send while a chat's agent works is shown under the chat at once, shaded and marked `not read yet`, and stays under what the agent writes and the tools it calls until the agent reads it - at the end of its current step - when it goes into the chat as a normal message, where it was read. `alt+up` takes the messages waiting back into the editor (`src/chat-waiting.ts`). While a skill runs in the chat its own agent is the one at work, and the chat's waits for the whole run: what you type then goes to the skill's agent, shown waiting until it reads it, at the end of its current step - and is in the chat from then, where it was read. The chat's agent is told what you said to the skill when the run ends. A message the skill's agent has not read when the run ends goes to the chat's agent instead.
|
|
41
43
|
|
|
42
|
-
On macOS, `alt` is Option (⌥), and reaches turri only when the terminal sends Option as Meta - otherwise ⌥N is the dead key for ñ and ⌥1 types `¡`, and nothing reaches turri. turri says so as a
|
|
44
|
+
On macOS, `alt` is Option (⌥), and reaches turri only when the terminal sends Option as Meta - otherwise ⌥N is the dead key for ñ and ⌥1 types `¡`, and nothing reaches turri. turri says so as you open a second chat - not as the sentinel's opens. To turn it on: Ghostty, `macos-option-as-alt = true` in its config; iTerm2, Profiles → Keys → Left Option key: Esc+; Terminal.app, Profiles → Keyboard → Use Option as Meta key; Kitty, `macos_option_as_alt yes`; WezTerm, `send_composed_key_when_left_alt_is_pressed = false`. `/chat` works without it.
|
|
43
45
|
|
|
44
46
|
- **A hidden chat's questions** wait until you show it, then come up one after another. What it says in passing is said as you show it; what it keeps on the screen - a skill's progress, the job panel - is put back each time; what you had typed in its editor and not sent is still there.
|
|
45
47
|
- **The side panel** belongs to the session and stays open when you switch chats. Click `***plain ›` at the right end of the chat tabs to open it; click `***plain ‹` to close it. The button turns pink and spins while turri plans or runs pulses. Its tabs are `***plain`, `pulses` and `notifications`; `× close` also closes it. From the keyboard, `ctrl+h` opens the panel, `p` switches between the map and pulses, and `n` opens notifications. A terminal under 104 columns shows the panel full screen.
|
|
46
48
|
- **A long command** - `/regenerate`, planning a module from scratch - does its work in the background once it is under way: the chat, and switching to another, stay free while the planner plans.
|
|
47
|
-
- **`ctrl+c`** reaches the chat shown and nothing else: another chat's turn and skill go on, and so do the pulses - `/halt` stops one. A skill stopped keeps its run, for the model to continue with `resume`. At a question - the chat's `ask_user`, a skill's interview - `ctrl+c` declines it, and the asker is told so and goes on - each question it is pressed at, however many in a row. A skill is stopped by `ctrl+c` with no question open. A second press straight after one that stopped something does nothing, so pressing twice to be sure does not leave turri; once the chat is doing nothing, the next one does - with what every other chat is doing.
|
|
49
|
+
- **`ctrl+c`** reaches the chat shown and nothing else: another chat's turn and skill go on, and so do the pulses - `/halt` stops one. A skill stopped keeps its run, for the model to continue with `resume`. At a question - the chat's `ask_user`, a skill's interview - `ctrl+c` declines it, and the asker is told so and goes on - each question it is pressed at, however many in a row. A skill is stopped by `ctrl+c` with no question open. A second press straight after one that stopped something does nothing, so pressing twice to be sure does not leave turri; once the chat is doing nothing, the next one does - with what every other chat is doing. Another front end of the core has the same as `Chat.stop()`, and `Chat.decline()` for a question ([the core's interface](https://github.com/turri-oss/turri-core/blob/main/docs/core.md)).
|
|
48
50
|
- **The sentinel** is a chat in the strip like the others, `sentinel`, and never shown by itself: it closes like any chat, and the next pulse that finishes opens it again. Each pulse it checks in a fresh conversation, replacing the one in its tab. With it on, you open up to eight chats - the ninth slot is its. See [the sentinel](sentinel.md).
|
|
49
51
|
- **The last chat** of yours is not closed: `/quit` leaves turri. Leaving turri leaves the terminal as it was: the conversation is not written out to it, nor a line on how to resume - the command run is all that stays. `turri --continue` opens the chats again.
|
|
50
52
|
- **`/fork`** and **`/reload`** work on the chat shown, as [pi](https://pi.dev)'s do: the chat's history forked, or turri's extension rebuilt in it.
|
|
@@ -69,7 +71,7 @@ In [debug mode](config.md#debug-mode) nothing is deleted.
|
|
|
69
71
|
|
|
70
72
|
## In a host
|
|
71
73
|
|
|
72
|
-
A host - turri's desktop app - runs the same session with `createTurri`, opening, closing and showing chats in its own windows: see [running turri in a host](hosting.md
|
|
74
|
+
A host - turri's desktop app - runs the same session with the core's `createTurri`, opening, closing and showing chats in its own windows: see [running turri in a host](hosting.md).
|
|
73
75
|
|
|
74
76
|
## How it works
|
|
75
77
|
|
|
@@ -107,7 +107,7 @@ Each step says what you should see; the first one that does not is where it stop
|
|
|
107
107
|
|
|
108
108
|
## In turri-desktop
|
|
109
109
|
|
|
110
|
-
The desktop app runs turri's chats itself, and finds the extension as the terminal does: install it and sign in to Claude Code as above - in a terminal, once - and choose **Claude subscription** among the vendors of a new project. The app's engine runs with your login shell's PATH, so it finds the `claude` your terminal finds. The sign-in sheet shows `claude-code` among the providers, connected once Claude Code is signed in; its sign-in is Claude Code's own - `claude auth login` in a terminal - not the app's, and its button says so. Doctor's sheet has the `Claude subscription` line of step 3. A host's own part in it is in [
|
|
110
|
+
The desktop app runs turri's chats itself, and finds the extension as the terminal does: install it and sign in to Claude Code as above - in a terminal, once - and choose **Claude subscription** among the vendors of a new project. The app's engine runs with your login shell's PATH, so it finds the `claude` your terminal finds. The sign-in sheet shows `claude-code` among the providers, connected once Claude Code is signed in; its sign-in is Claude Code's own - `claude auth login` in a terminal - not the app's, and its button says so. Doctor's sheet has the `Claude subscription` line of step 3. A host's own part in it is in [the core's interface](https://github.com/turri-oss/turri-core/blob/main/docs/core.md).
|
|
111
111
|
|
|
112
112
|
## What to know
|
|
113
113
|
|
package/docs/config.md
CHANGED
|
@@ -18,7 +18,7 @@ Amazon Bedrock asks three more things, from [pi](https://pi.dev)'s catalogue: wh
|
|
|
18
18
|
|
|
19
19
|
`--harness-model` and `--coding-model` name the two models instead, for any vendor: provider/model-id without a thinking level - `turri init-config --harness-model amazon-bedrock/global.xai.grok-4.7 --coding-model amazon-bedrock/global.xai.grok-4.6`. They are written wherever the vendor's own would be - the two models with their thinking, the commented-out `judge-model` and `models:` examples - and the vendor, maker and geography are read from them. `--judge-model` names the strong one the judging examples use, the harness model unless given. Each is checked against [pi](https://pi.dev)'s catalogue first: one it does not have, or that is not a chat model, is named, with the closest it has, and nothing is written.
|
|
20
20
|
|
|
21
|
-
Each is written with how hard it thinks - `harness-model: openai/gpt-6-astra:medium`, `coding-model: openai/gpt-6-luna:low` - so the file shows it. The reviews and judges run on the coding model but think medium (see [models per role](#models-per-role)).
|
|
21
|
+
Each is written with how hard it thinks - `harness-model: openai/gpt-6-astra:medium`, `coding-model: openai/gpt-6-luna:low` - so the file shows it. `init-config` also writes and prints the three active capture tiers. On an existing config it fills in missing capture entries and preserves explicit overrides. The reviews and judges of a regeneration run on the coding model but think medium (see [models per role](#models-per-role)).
|
|
22
22
|
|
|
23
23
|
They are an example, not a requirement - any model [pi](https://pi.dev) supports works, signed in any way [pi](https://pi.dev) supports; `other` is the starting point for another provider. What we recommend is that split, a capable model to talk to and a smaller, cheaper one for the coding. Once written, it says what to do next: the key to set in your shell - or `/login` in turri, which [pi](https://pi.dev) keeps in `~/.pi/agent/auth.json` - and that the file belongs to that folder: turri reads the nearest `config.turri.yaml` upwards from where it starts, so one written anywhere else is not seen.
|
|
24
24
|
|
|
@@ -139,7 +139,9 @@ Keys are written with dashes; underscores are read the same (`mutation_testing`)
|
|
|
139
139
|
| `chat` | `turri`'s model - the same as `harness-model`, which it wins over |
|
|
140
140
|
| `sentinel` | [the sentinel](sentinel.md): checks every finished pulse, and tests what was launched. Unnamed, the chat's model |
|
|
141
141
|
| `planner` | the conversation's side: the planner's agents. Unnamed, the chat's model |
|
|
142
|
-
| `capture` | the
|
|
142
|
+
| `capture-exploration` | gathers the interface reference from the original code. Claude default: Haiku low |
|
|
143
|
+
| `capture-analysis` | checks evidence and conventions, outlines areas and features, and trials scenarios on the original. Claude default: Sonnet low |
|
|
144
|
+
| `capture` | reasons about requirements, writes and revises \*\*\*plain and writes custom runners. Claude default: Opus medium. `init-config` writes all three active [capture tiers](capture.md#models); setting one does not change the others |
|
|
143
145
|
| `diagnosis` | the diagnosis of a job that failed for good: why it did not land, and what to do. Unnamed, the coding model the job ran on, thinking medium |
|
|
144
146
|
| `launch` | the launch agent - the chat's `launch`, `turri launch` and launch-after-pulse's: it follows steps - a script, a start command - so it runs on the coding model, thinking low |
|
|
145
147
|
| `coding` | the coding agent, the code fixer of a conformance run and the repair agent - the same as `coding-model`, which it wins over. `--model` on the command line, or a model a call to `regenerate` or `conform` names, wins over both |
|
|
@@ -153,7 +155,7 @@ Keys are written with dashes; underscores are read the same (`mutation_testing`)
|
|
|
153
155
|
|
|
154
156
|
What an entry leaves out it takes from `default`: `reviewer: { thinking: low }` runs the default model, thinking little. A turn limit is the role's own, else `default`'s, else `turn-limit:`, else two minutes. A module's `config.turri.<module>.yaml` lays its own `models:` over the project's, role by role - all but `chat`, the project's alone.
|
|
155
157
|
|
|
156
|
-
A role whose thinking nothing names - neither its entry, `default`'s, nor a `:level` on the model it runs on - thinks as its kind of work needs: **low** for
|
|
158
|
+
A role whose thinking nothing names - neither its entry, `default`'s, nor a `:level` on the model it runs on - thinks as its kind of work needs: **low** for `coding`, `conformance`, `explorer`, `launch` and `capture-analysis`, and **medium** for `reviewer`, `test-reviewer`, `judge`, `arbiter`, `debugger`, `planner`, `capture` and `diagnosis`. Capture analysis and a judging role that falls back on the coding model take its model alone, not its thinking. The conversation keeps its own level, as [pi](https://pi.dev) sets it.
|
|
157
159
|
|
|
158
160
|
The thinking level reaches the model as each provider takes it. OpenAI's models on Bedrock are sent it as their reasoning effort (`none`, `low`, `medium`, `high`, `xhigh`) by turri itself, as [pi](https://pi.dev) sends them none.
|
|
159
161
|
|
|
@@ -181,11 +183,11 @@ They are defaults. What is asked for wins over them:
|
|
|
181
183
|
|
|
182
184
|
| model | wins over the config |
|
|
183
185
|
| --- | --- |
|
|
184
|
-
| harness |
|
|
185
|
-
| coding |
|
|
186
|
-
| judge | - |
|
|
186
|
+
| harness | `--harness-model <m>` (or [pi](https://pi.dev)'s own `--model`, for `turri`), and [pi](https://pi.dev)'s `/model` in the conversation |
|
|
187
|
+
| coding | `--coding-model <m>` (or `--model`, for a command) |
|
|
188
|
+
| judge | `--judge-model <m>`, for `turri regenerate`, `conform` and `doctor` |
|
|
187
189
|
|
|
188
|
-
`turri regenerate` and `conform`
|
|
190
|
+
The options are read as the keys themselves, for that run: `turri`, `turri regenerate` and `conform` - and `--review` and `--mutation-testing` for the two commands - take each key's value as if the file had it, in its place in the order above, so a `models:` entry still wins over it. A headless run is the same as a chat with those keys in the file.
|
|
189
191
|
|
|
190
192
|
A job keeps the model it was queued with: choosing another holds for what is queued after.
|
|
191
193
|
|
|
@@ -294,6 +296,7 @@ Keys turri does not read - another tool's `verbose`, `api-key`, `build-folder`,
|
|
|
294
296
|
A `config.turri.yaml` - or a module's own file, or a `config.yaml` turri still reads - that is not valid YAML is read as empty: none of it applies, and turri would run on its defaults and [pi](https://pi.dev)'s, the models among them - pi's own default model, which may not be one your credentials reach. A key set twice is the usual way in: a second config pasted under the first. So turri says it, never silently (`configProblems` in `src/config.ts`), naming the file, the line and what is wrong - `config.turri.yaml, line 13: conformance-tests is set twice`:
|
|
295
297
|
|
|
296
298
|
- **The chat** says it under the banner, in the error colour, as it starts.
|
|
299
|
+
- **The chat sends nothing to a model the project did not name.** Read as empty, the file would leave the chat on [pi](https://pi.dev)'s own choice - the first provider with credentials, billed unseen. So the chat runs on the model the file still names for certain: its `harness-model:` line and `models:` block, read on their own - each there once, and valid YAML alone - so it can put the file right when asked to. When they do not name one for certain, the chat sends nothing at all: the line above the input names the file's problem, the footer shows the chat on `turri/nothing-sent`, and what is typed is refused. Fix the file by hand then, or name `harness-model` in it once - turri sees the change within a second.
|
|
297
300
|
- **Nothing is regenerated with it.** `regenerate`, `conform`, `/regenerate`, `/conform` and `turri regenerate` refuse to start a pulse until it parses, saying why - as they refuse a module that cannot be built with its config.
|
|
298
301
|
- **A capture** started where it is in use refuses to start, since the captured project starts as that config ([capture](capture.md)).
|
|
299
302
|
- **`turri doctor`** lists it first among the project's checks.
|
package/docs/development.md
CHANGED
|
@@ -1,78 +1,44 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Developing turri's CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
npm run typecheck # types
|
|
5
|
-
npm test # the whole suite, about a minute
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
The suite runs the projects' testing scripts on this machine, as turri does. The fixture scripts stage each run in a folder of their own, as test files running side by side would otherwise share one.
|
|
3
|
+
This repository publishes `@turri-dev/cli`: the `turri` command and the terminal. [`@turri-dev/core`](https://github.com/turri-oss/turri-core) owns the session, harness, agents, parser, genome and standard library; the terminal is one front end of its session, as a [desktop host](hosting.md) is another. A change to how turri builds goes there; a change to how the terminal shows it goes here. The CLI imports the core's five public entries alone - `@turri-dev/core`, `/plain`, `/project`, `/models` and `/system` - as [the core's interface](https://github.com/turri-oss/turri-core/blob/main/docs/core.md) describes them.
|
|
9
4
|
|
|
10
|
-
|
|
5
|
+
## Linked development
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
With a released core, `npm ci` installs the pinned version. To use a core checkout instead, install its dependencies there first (`npm ci`), then run this **in the CLI checkout**:
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
```bash
|
|
10
|
+
npm run link:core -- ../turri-core # or the path to a core worktree
|
|
11
|
+
export NODE_OPTIONS=--conditions=turri-source
|
|
12
|
+
node bin/turri.mjs # the CLI and the core both run from src/
|
|
13
|
+
npm run typecheck
|
|
14
|
+
npm test
|
|
15
|
+
```
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
In PowerShell set `$env:NODE_OPTIONS = '--conditions=turri-source'`. The link helper also links the core's installed pi and pi-tui into the CLI: the terminal must patch the same pi classes that own its chats. It does not change either manifest or lockfile. `npm ci` restores the release dependencies once that version is on npm. Use the source condition only with a linked checkout: the npm packages ship compiled JS and declarations, not TypeScript sources.
|
|
21
18
|
|
|
22
|
-
##
|
|
19
|
+
## Checking a change
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
`npm test` runs the CLI and terminal suite without calling a model. `npm run typecheck` checks `src/`; with a linked core it follows the `turri-source` condition. To run one file: `npx vitest run tests/regenerate/jobs-tree.test.ts`. The harness suite and mutation tests run [in the core](https://github.com/turri-oss/turri-core/blob/main/docs/development.md).
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
- a GitHub Release tagged `vX.Y.Z`, published by hand, publishes `X.Y.Z` as `latest` (or under `next`, if the release is marked a pre-release). The tag is the version: it is set in the runner and never committed, so `package.json`'s version on `main` is stale by design. Once npm has a release on `latest`, it is posted to the Discord channel whose webhook is the repository secret `DISCORD_RELEASE_WEBHOOK` - its name, its notes and the command that updates; without the secret nothing is posted.
|
|
23
|
+
`npm run build` compiles the CLI against the core's built declarations. On an unbuilt core checkout, run its `npm run build` first. `npm run test:package` installs the packed CLI in a temporary project and runs its commands there. Pass the core checkout to pack and install both packages, including before the core version is published - the clone is installed as the version the CLI pins, as its own package.json keeps the version it was last given:
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
```bash
|
|
26
|
+
npm run test:package -- ../turri-core
|
|
27
|
+
```
|
|
30
28
|
|
|
31
29
|
## Layout
|
|
32
30
|
|
|
33
|
-
|
|
|
34
|
-
|
|
35
|
-
| `bin/turri.mjs` |
|
|
36
|
-
| `src/cli.ts` | the `
|
|
37
|
-
| `src/
|
|
38
|
-
| `src/
|
|
39
|
-
| `src/
|
|
40
|
-
| `src/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
| `src/skill.ts` | parses `SKILL.md` into steps and gates |
|
|
44
|
-
| `src/graph.ts` | compiles a skill into a LangGraph `StateGraph`: step -> gate -> route |
|
|
45
|
-
| `src/judge.ts` | runs independent judges, applies the quorum, builds the critique |
|
|
46
|
-
| `src/genome.ts` | `runSkill()` - the one entry point the CLI and the extension share |
|
|
47
|
-
| `src/pi.ts` | [pi](https://pi.dev) session factories for executors, sub-agents and judges |
|
|
48
|
-
| `src/loop-tools.ts` | `regenerate`, `drift` and `halt` - one definition each, for the conversation and the skills alike |
|
|
49
|
-
| `src/plain/` | the [\*\*\*plain](https://plainlang.org/docs/) parser - see [parser](parser.md) - and `highlight.ts`, which highlights \*\*\*plain with turri's own grammar, `plain.tmLanguage.json` - started from [plyn](https://github.com/plainlang/plyn)'s at `f9c02b8`, and changed here since: test plain files' sections and keys, the `# <id>` heading |
|
|
50
|
-
| `src/regenerate/conformance.ts` | conformance tests: writing them, and fixing the test or the code until they pass |
|
|
51
|
-
| `src/regenerate/regenerate.ts`, `src/regenerate/conform.ts` | a code job - a \*\*\*plain diff regenerated in the code - and a conformance job |
|
|
52
|
-
| `src/regenerate/loop.ts`, `src/regenerate/records.ts`, `src/regenerate/drift.ts`, `src/regenerate/jobs.ts` | the work loop, the records and the work derived from them, and background jobs |
|
|
53
|
-
| `src/regenerate/chunk-plan.ts`, `src/regenerate/cases.ts` | cutting the work into jobs, and what a job's agents are told by its cases |
|
|
54
|
-
| `src/regenerate/regression.ts` | the whole conformance suite run, and the repair agent that may not touch tests |
|
|
55
|
-
| `src/regenerate/lineage.ts` | module history in `.plaingit` |
|
|
56
|
-
| `src/regenerate/launch.ts`, `src/launch-track.ts`, `src/launch-session.ts`, `src/launch-agent.ts`, `src/launch-tools.ts`, `src/launch-cli.ts` | launch: a commit to `dist/<module>`, the launch track, the launch agent and what it starts on the host - see [launch](launch.md) |
|
|
57
|
-
| `src/regenerate/confine.ts`, `src/regenerate/agent-shell.ts`, `src/regenerate/command-check.ts`, `src/regenerate/os-sandbox.ts`, `src/regenerate/audit.ts`, `src/regenerate/agent-env.ts`, `src/regenerate/shell.ts` | the file-tool fence and the walls around every agent command: the check, the OS sandbox, the audit, the module's environment, the host runner - see [sandbox](sandbox.md) |
|
|
58
|
-
| `src/regenerate/model-names.ts` | resolving a model named as the person said it - for a call's `model` and the `settings` tool |
|
|
59
|
-
| `src/regenerate/job-panel.ts`, `src/regenerate/transcript-view.ts`, `src/regenerate/diff-view.ts` | the job panel, the side panel's colours, and a \*\*\*plain diff as they show it - highlighted and banded |
|
|
60
|
-
| `src/regenerate/side-panel.ts`, `src/regenerate/panel-dock.ts` | the side panel, and the chat narrowed beside it when it is docked |
|
|
61
|
-
| `src/screen-padding.ts` | the blank row above and below the whole screen and the two columns either side, in both of [pi](https://pi.dev)'s ways of drawing it |
|
|
62
|
-
| `src/regenerate/spec-map.ts`, `src/regenerate/spec-map-view.ts` | regen: each item's mark, from the records, the `.plain` files and the work loop's plan (`mapPlan`), and the map drawn |
|
|
63
|
-
| `src/regenerate/debug-log.ts` | each regenerating agent's whole conversation, streamed to `.turri/debug/` - while its pulse runs, and kept in debug mode |
|
|
64
|
-
| `src/regenerate/pulse-files.ts` | what a pulse writes only for a person - its logs, outputs, temporary files, its chain's installed dependencies - removed as it ends outside debug mode |
|
|
65
|
-
| `src/regenerate/failure-reports.ts` | why a pulse that failed or finished without landing did - what `pulses` says of it - kept in `.turri/pulses/<id>.md` whatever the debug setting, for a later session |
|
|
66
|
-
| `src/regenerate/ledger.ts`, `src/regenerate/ledger-view.ts` | the ledger: what turri did, as typed facts, in `.turri/ledger/` - `record()`, read back for `pulses` - see [the ledger](using.md#the-ledger) |
|
|
67
|
-
| `src/capture/`, `src/capture-cli.ts` | [capture](capture.md): the map, areas folded to a budget, the agents and the checks of what they hand over, assembling the modules, the testing scripts, the report, resuming, its status while it runs - and `turri capture` |
|
|
68
|
-
| `src/reopen.ts` | a chat opened again in another folder by `turri` once it quits - into the project a capture wrote |
|
|
69
|
-
| `src/plain-code-blocks.ts` | \*\*\*plain fenced as ` ```plain ` in the chat, highlighted by turri's grammar - pi-tui's Markdown patched |
|
|
70
|
-
| `genome/` | what turri knows and can do: `genome/skills/`, the skill library, `genome/rules/`, the \*\*\*plain authoring rules, and `genome/capture/`, capture's prompts |
|
|
31
|
+
| Where | What it owns |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `bin/turri.mjs`, `src/cli.ts`, `src/*-cli.ts` | Node checks, argument parsing, command dispatch, printing and exit status. `regenerate`, `conform`, `launch` and `cultivate` open a session with no front end; `loop-cli.ts` prints a run from its events. |
|
|
34
|
+
| `src/cli-root.ts`, `src/turri-versions.ts`, `src/reopen.ts` | This turri: its identity for the core (`client`), its version line, update and PATH checks, and the handoff between `turri` and the chat process after a capture. |
|
|
35
|
+
| `src/pi-launch.ts`, `src/extension.ts` | Prepare terminal images, open the process's session before pi's `main` and build its extension into pi. The banner and themes come from this package; the genome comes from the core. |
|
|
36
|
+
| `src/terminal-view.ts`, `src/banner.ts`, `src/entry-renderers.ts` | The terminal's `Frontend` - what it shows, how it asks, its surface - drawn from the session's events; the welcome screen and transcript rendering. |
|
|
37
|
+
| `src/panel-view.ts`, `src/terminal-notifications.ts`, `src/regenerate/*-view.ts`, `src/regenerate/jobs-tree.ts` | The side panel: regen, pulses, the inbox of notifications and keyboard focus. |
|
|
38
|
+
| `src/chat-*.ts`, `src/pi-settings.ts`, `src/skill-progress.ts`, `src/capture-view.ts` | The chats on pi's screen (`sessions: external`), their stand-in UI while hidden, tabs and keys, the settings menu and progress widgets. |
|
|
39
|
+
|
|
40
|
+
## Publishing
|
|
71
41
|
|
|
72
|
-
|
|
42
|
+
The compatible core version must be available on npm before releasing the CLI. Pin that version with npm and keep its lockfile resolution. The CLI's `prepack` builds `dist/`; the package includes the CLI's assets, themes, launcher and docs, and exports nothing but its `package.json`. The core is a normal versioned dependency.
|
|
73
43
|
|
|
74
|
-
|
|
75
|
-
- The executor keeps one session across steps and retries, so context builds up with attempts. Long skills want compaction or a session per step.
|
|
76
|
-
- A gate's escalation lives in memory (LangGraph's `MemorySaver`): it must be answered in the same run.
|
|
77
|
-
- The gate machinery has no automated coverage; see [trying the gate semantics](skills-and-gates.md#trying-the-gate-semantics).
|
|
78
|
-
- Jobs live in memory: there is no resuming a job after [pi](https://pi.dev) exits. The work itself is on disk, so a killed job leaves a partial build rather than nothing.
|
|
44
|
+
The typecheck, suite and packed consumer check run in `.github/workflows/test.yml`, on the core the CLI pins, installed with `npm ci`. `.github/workflows/publish.yml` uses npm trusted publishing: a push to `main` publishes a prerelease under `next`; a GitHub release tagged `vX.Y.Z` publishes that version under `latest`, or `next` for a prerelease. See [contributing](../CONTRIBUTING.md) for the commit checks.
|
package/docs/headless.md
CHANGED
|
@@ -65,7 +65,7 @@ Useful options - `turri regenerate --help` lists all of them:
|
|
|
65
65
|
| `--from-scratch` | delete the module's code and conformance tests (its lineage keeps them) and regenerate all of it |
|
|
66
66
|
| `--from-scratch-chain` | the same for every module of its requires chain, the base's included, built again from the bottom |
|
|
67
67
|
| `turri conform --from-scratch` | take out the tests folder at the tip of the module's chain (its lineage keeps it) and write the tests again from a copy of the tests of the module the tip requires, the code untouched; `--from-scratch-chain`, from nothing |
|
|
68
|
-
| `--start-over` | start over, unasked, a codebase built without a module it now requires - without a terminal
|
|
68
|
+
| `--start-over` | start over, unasked, a codebase built without a module it now requires - without it, a terminal is asked: a no regenerates the rest of the chain, the run ending incomplete; with no terminal, the run stops there |
|
|
69
69
|
| `--build-dir <dir>` | as the run ends, export the code there - see below |
|
|
70
70
|
| `--report <file.json>` | write [the run report](#the-run-report) there |
|
|
71
71
|
|
|
@@ -181,6 +181,8 @@ A module that `requires` others is built in its own codebase on top of theirs: t
|
|
|
181
181
|
|
|
182
182
|
## If it stopped
|
|
183
183
|
|
|
184
|
+
`Ctrl-C` stops a run as it would end: its running pulses stopped and rolled back, nothing more started, the code exported to `--build-dir` and the report written - `interrupted`, exit `130`. A second `Ctrl-C` leaves at once. `SIGTERM` and `SIGHUP` leave at once too, what its agents started stopped with it.
|
|
185
|
+
|
|
184
186
|
Run the same command again. Functionalities already built from the current \*\*\*plain description are left alone, and modules that are complete are skipped, so it picks up where it stopped - after a crash, a provider outage, or a machine that went to sleep anyway. Whatever the stopped run left half-written is undone first: each step starts from the module's last commit. A functionality whose \*\*\*plain has changed since counts as not built, so editing \*\*\*plain and re-running rebuilds what changed. `--from-scratch` rebuilds the module; `--from-scratch-chain` rebuilds every module of its chain.
|
|
185
187
|
|
|
186
188
|
## Rebuilding one functionality
|