@turri-dev/cli 0.2.4-next.8422d0f → 0.2.4-next.efe96fe
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 +5 -6
- package/dist/bedrock-region.js +3 -3
- package/dist/chat-idle.d.ts +2 -2
- package/dist/chat-idle.js +2 -2
- package/dist/chat-models.d.ts +1 -1
- package/dist/chat-models.js +1 -1
- package/dist/chat-scope.d.ts +1 -3
- package/dist/chats.d.ts +2 -12
- package/dist/chats.js +3 -26
- package/dist/cli.js +11 -30
- package/dist/config-edit.d.ts +20 -8
- package/dist/config-edit.js +29 -23
- package/dist/config.d.ts +62 -71
- package/dist/config.js +170 -125
- package/dist/conform-cli.js +14 -3
- package/dist/conformance-switch.d.ts +13 -22
- package/dist/conformance-switch.js +37 -59
- package/dist/drift-cli.js +1 -1
- package/dist/extension.d.ts +8 -10
- package/dist/extension.js +257 -429
- package/dist/genome.js +9 -48
- package/dist/graph.js +3 -5
- package/dist/host-session.d.ts +5 -16
- package/dist/host-session.js +4 -6
- package/dist/host.d.ts +2 -4
- package/dist/host.js +4 -7
- package/dist/identity.js +0 -1
- package/dist/init-config.d.ts +0 -1
- package/dist/init-config.js +3 -10
- package/dist/installed-providers.d.ts +1 -1
- package/dist/installed-providers.js +1 -1
- package/dist/loop-cli.d.ts +4 -3
- package/dist/loop-cli.js +13 -11
- package/dist/loop-tools.d.ts +37 -18
- package/dist/loop-tools.js +118 -58
- package/dist/new-project.js +2 -2
- package/dist/parse-cli.js +2 -2
- package/dist/pi-launch.js +4 -1
- package/dist/pi-settings.d.ts +4 -0
- package/dist/pi-settings.js +39 -0
- package/dist/pi.js +12 -9
- package/dist/plain/check.d.ts +2 -9
- package/dist/plain/check.js +6 -39
- package/dist/plain-files.js +4 -4
- package/dist/regenerate/activity.d.ts +0 -7
- package/dist/regenerate/activity.js +2 -20
- package/dist/regenerate/agent-env.d.ts +1 -1
- package/dist/regenerate/agent-env.js +3 -3
- package/dist/regenerate/agent-shell.js +5 -3
- package/dist/regenerate/audit.js +9 -0
- package/dist/regenerate/base-folder.d.ts +2 -2
- package/dist/regenerate/base-folder.js +1 -1
- package/dist/regenerate/cases.js +7 -0
- package/dist/regenerate/chunk-plan.d.ts +5 -0
- package/dist/regenerate/chunk-plan.js +16 -1
- package/dist/regenerate/drift.d.ts +4 -0
- package/dist/regenerate/drift.js +26 -6
- package/dist/regenerate/failure-reports.d.ts +28 -0
- package/dist/regenerate/failure-reports.js +79 -0
- package/dist/regenerate/job-panel.js +3 -1
- package/dist/regenerate/jobs-tree.js +1 -1
- package/dist/regenerate/jobs.d.ts +4 -2
- package/dist/regenerate/jobs.js +14 -10
- package/dist/regenerate/ledger-view.d.ts +11 -24
- package/dist/regenerate/ledger-view.js +14 -60
- package/dist/regenerate/ledger.d.ts +2 -15
- package/dist/regenerate/ledger.js +1 -1
- package/dist/regenerate/loop.d.ts +48 -62
- package/dist/regenerate/loop.js +296 -131
- package/dist/regenerate/model-names.d.ts +33 -0
- package/dist/regenerate/{engine.js → model-names.js} +2 -28
- package/dist/regenerate/paths.d.ts +1 -1
- package/dist/regenerate/paths.js +2 -2
- package/dist/regenerate/records.d.ts +11 -0
- package/dist/regenerate/records.js +15 -0
- package/dist/regenerate/regenerate.d.ts +0 -2
- package/dist/regenerate/regenerate.js +4 -15
- package/dist/regenerate/renames.js +4 -4
- package/dist/regenerate/requires.d.ts +7 -0
- package/dist/regenerate/requires.js +24 -18
- package/dist/regenerate/scripts-being-written.d.ts +4 -4
- package/dist/regenerate/scripts-being-written.js +3 -3
- package/dist/regenerate/spec-map.js +3 -3
- package/dist/regenerate/standing.js +1 -1
- package/dist/regenerate/submit-work.d.ts +2 -0
- package/dist/regenerate/submit-work.js +8 -3
- package/dist/regenerate/test-scripts.d.ts +2 -1
- package/dist/regenerate/test-scripts.js +33 -23
- package/dist/regenerate/testing-steps.d.ts +16 -5
- package/dist/regenerate/testing-steps.js +28 -9
- package/dist/regenerate-cli.js +18 -9
- package/dist/self-invocation.d.ts +11 -0
- package/dist/self-invocation.js +33 -7
- package/dist/sentinel.js +8 -5
- package/dist/{config-command.d.ts → settings.d.ts} +13 -8
- package/dist/{config-command.js → settings.js} +155 -24
- package/dist/setup.d.ts +2 -2
- package/dist/setup.js +7 -7
- package/dist/skill.d.ts +0 -11
- package/dist/skill.js +0 -9
- package/dist/tools.js +2 -3
- package/dist/turri-versions.js +2 -1
- package/docs/README.md +2 -4
- package/docs/authoring-plain.md +3 -3
- package/docs/chats.md +4 -7
- package/docs/claude-subscription.md +2 -2
- package/docs/config.md +55 -45
- package/docs/deploy.md +1 -1
- package/docs/development.md +3 -4
- package/docs/headless.md +6 -5
- package/docs/hosting.md +11 -11
- package/docs/parser.md +3 -3
- package/docs/regenerating.md +27 -19
- package/docs/sentinel.md +6 -6
- package/docs/skills-and-gates.md +4 -9
- package/docs/using.md +20 -37
- package/genome/rules/project-model.md +2 -1
- package/genome/rules/test-plain-files.md +15 -7
- package/genome/rules/turri-regeneration.md +6 -9
- package/genome/skills/convert-old-syntax/SKILL.md +5 -5
- package/genome/skills/implement-conformance-testing-script/SKILL.md +2 -2
- package/genome/skills/implement-unit-testing-script/SKILL.md +3 -3
- package/package.json +1 -1
- package/dist/advisor-chat.d.ts +0 -63
- package/dist/advisor-chat.js +0 -290
- package/dist/change-plain-cli.d.ts +0 -1
- package/dist/change-plain-cli.js +0 -55
- package/dist/ledger-cli.d.ts +0 -1
- package/dist/ledger-cli.js +0 -50
- package/dist/ledger-tools.d.ts +0 -10
- package/dist/ledger-tools.js +0 -64
- package/dist/regenerate/advisor-records.d.ts +0 -93
- package/dist/regenerate/advisor-records.js +0 -110
- package/dist/regenerate/advisor-runs.d.ts +0 -87
- package/dist/regenerate/advisor-runs.js +0 -327
- package/dist/regenerate/engine.d.ts +0 -52
- package/dist/regenerate/test-advisor.d.ts +0 -101
- package/dist/regenerate/test-advisor.js +0 -379
- package/dist/spec-tools.d.ts +0 -36
- package/dist/spec-tools.js +0 -128
- package/dist/stacks.d.ts +0 -13
- package/dist/stacks.js +0 -96
- package/docs/test-advisor.md +0 -110
package/dist/config.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* ```yaml
|
|
7
7
|
* module: prism_cli.plain # what `turri regenerate` builds by default
|
|
8
|
-
* conformance-tests: false # whether scenarios are written and conformance tested - false: none
|
|
8
|
+
* conformance-tests: false # whether scenarios are written and conformance tested - false: none (default: false)
|
|
9
9
|
* test-dir: tests # where the test plain files are, a folder per module: tests/<module>/ (default: tests)
|
|
10
10
|
* base-folder: existing-app # a codebase that requires none starts as a copy of it - code to build on, assets to use
|
|
11
11
|
* harness-model: # the model you chat with in `turri`
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
* mutation-testing: false # give the coding agent and the reviewer can_it_fail (default: true)
|
|
21
21
|
* allow-to-stop-jobs: false # stop a running job the spec moved on from (default: true)
|
|
22
22
|
* release-after-pulse: true # release what each pulse lands, as its last stage, before the next pulse (default: false)
|
|
23
|
-
* test-advisor: false # check each new or changed functional spec with no scenarios for whether it needs them - on a yes, the chat writes them (default: true)
|
|
24
23
|
* sentinel: true # a chat of its own every finished pulse goes to, which tests the release and tells you what is wrong: true, false, or ask - the person asked before it first opens in a session (default: ask)
|
|
25
24
|
* rules-off: [integrations] # ***plain rules to leave out of the prompts, by name (default: none)
|
|
26
25
|
* unittests-script: test_scripts/run_unittests.sh # the testing scripts - see test-scripts.ts
|
|
@@ -44,79 +43,72 @@
|
|
|
44
43
|
* either of which may be left out; a bare string is the model alone. What a model leaves out it takes
|
|
45
44
|
* from the one it inherits: judge-model from coding-model, coding-model from harness-model. They are
|
|
46
45
|
* defaults: `--harness-model` / `--coding-model` / `--judge-model` on the command line win over them,
|
|
47
|
-
* and so does a model chosen during the conversation (pi's /model
|
|
46
|
+
* and so does a model chosen during the conversation (pi's /model) or named on a call. `model:` is read
|
|
48
47
|
* as `coding-model`, which it was before there were two.
|
|
49
48
|
*
|
|
50
49
|
* Keys are written with dashes; underscores are read the same (`conformance_tests`). Keys it
|
|
51
50
|
* does not know - another tool's `config.yaml`, read while it is the old file, may carry several - are ignored, and so is a value of
|
|
52
51
|
* the wrong type. Everything is optional, and what is given on the command line wins.
|
|
53
52
|
*
|
|
54
|
-
* A
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* from the
|
|
60
|
-
*
|
|
61
|
-
* stack's file.
|
|
53
|
+
* A module can have settings of its own in `config.turri.<module>.yaml` beside `config.turri.yaml`:
|
|
54
|
+
* `config.turri.backend.yaml` for `backend.plain` - its testing scripts, its toolchains, its models - laid over
|
|
55
|
+
* `config.turri.yaml` key by key, a model it names taking what it leaves out from the project's. A module with no file
|
|
56
|
+
* of its own takes the one of a module it requires - `config.turri.backend.yaml` builds `backend_auth.plain`, which
|
|
57
|
+
* requires `backend.plain` - and two among the modules it requires is an error (`configModuleFor`). Nobody chooses it:
|
|
58
|
+
* it is worked out from the module, and a pulse keeps the one it started with. `module:`, `harness-model:` and the
|
|
59
|
+
* other settings of the whole project are read from `config.turri.yaml` alone.
|
|
62
60
|
*/
|
|
63
61
|
/** turri's settings for a project, in a file of its own: a `config.yaml` beside it may be another tool's. */
|
|
64
62
|
export declare const CONFIG_FILE = "config.turri.yaml";
|
|
65
63
|
/**
|
|
66
64
|
* Where turri's settings were before they had a file of their own. A project with no `config.turri*.yaml` yet is read
|
|
67
|
-
* from it - and a `config.<name>.yaml` beside it as the
|
|
65
|
+
* from it - and a `config.<name>.yaml` beside it as the module `<name>`'s - and turri never writes it: the first setting
|
|
68
66
|
* turri writes copies them to the new names (`adoptLegacyConfig`), and from then on the old files are not read.
|
|
69
67
|
*/
|
|
70
68
|
export declare const LEGACY_CONFIG_FILE = "config.yaml";
|
|
71
|
-
/** A
|
|
72
|
-
export declare function
|
|
73
|
-
/** Whether a folder's settings are still in the old files: a config.yaml or a config.<
|
|
69
|
+
/** A module's config file's name: `config.turri.backend.yaml` for `backend.plain`. */
|
|
70
|
+
export declare function moduleConfigFile(module: string): string;
|
|
71
|
+
/** Whether a folder's settings are still in the old files: a config.yaml or a config.<module>.yaml, and no config.turri*.yaml. */
|
|
74
72
|
export declare function usesLegacyConfig(root: string): boolean;
|
|
75
73
|
/** The file the project's settings are read from, by name: config.turri.yaml, or config.yaml while the folder has only the old files. */
|
|
76
74
|
export declare function projectConfigFile(root: string): string;
|
|
77
|
-
/** The file a
|
|
78
|
-
export declare function
|
|
79
|
-
/** Whether a folder holds a project's settings: a config.turri.yaml, a
|
|
75
|
+
/** The file a module's own settings are read from, by name - the old name while the folder has only the old files. */
|
|
76
|
+
export declare function moduleConfigFileIn(root: string, module: string): string;
|
|
77
|
+
/** Whether a folder holds a project's settings: a config.turri.yaml, a module's file, or the old files. */
|
|
80
78
|
export declare function hasProjectConfig(root: string): boolean;
|
|
81
|
-
/** The
|
|
82
|
-
export declare function
|
|
79
|
+
/** The modules a project folder has config files for, by name. */
|
|
80
|
+
export declare function moduleConfigsOf(root: string): string[];
|
|
83
81
|
/**
|
|
84
82
|
* Before turri first writes a setting in a folder whose settings are still in the old files: config.yaml copied to
|
|
85
|
-
* config.turri.yaml, and each config.<
|
|
83
|
+
* config.turri.yaml, and each config.<module>.yaml to config.turri.<module>.yaml, so nothing is lost when the old files
|
|
86
84
|
* stop being read. The old files are left as they are. Gives back the files written, by name.
|
|
87
85
|
*/
|
|
88
86
|
export declare function adoptLegacyConfig(root: string, options?: {
|
|
89
87
|
projectFile?: boolean;
|
|
90
88
|
}): string[];
|
|
89
|
+
/** Inside a pulse - or work pinned like one - the module whose config file it runs with; none outside. */
|
|
90
|
+
export declare function pinnedConfigModule(): string | undefined;
|
|
91
|
+
/** Run `work` with `module`'s config file over the project's, whatever the files say meanwhile: a pulse keeps the one it started with. */
|
|
92
|
+
export declare function withConfigModule<T>(module: string | undefined, work: () => T): T;
|
|
93
|
+
/** Whether a module's config file is pinned here - by the pulse it runs in, or the work that plans it. */
|
|
94
|
+
export declare function configModulePinned(): boolean;
|
|
91
95
|
/**
|
|
92
|
-
* The
|
|
93
|
-
*
|
|
96
|
+
* The module whose config file builds a module - its `config.turri.<module>.yaml` laid over `config.turri.yaml` - or
|
|
97
|
+
* none, `config.turri.yaml` alone. The one pinned, inside a pulse; else the module's own file; else the one file among
|
|
98
|
+
* the modules it requires, all the way down - a module is built on their code, in one codebase, with their testing
|
|
99
|
+
* scripts. Two among them is an error: which one builds it cannot be told. Only `requires` counts, not imports.
|
|
94
100
|
*/
|
|
95
|
-
export declare function
|
|
101
|
+
export declare function configModuleFor(plainFile: string): string | undefined;
|
|
102
|
+
/** Why a module's config cannot be told: two or more of the modules it requires have a config file of their own. */
|
|
103
|
+
export declare function moduleConfigClash(module: string, below: string[], root: string): string;
|
|
96
104
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
105
|
+
* Every module a module requires, all the way down, by name - read from each file's frontmatter alone, found as the
|
|
106
|
+
* parser finds them (the module's folder, its template/ folder, PLAIN_TEMPLATE_DIRS). One that is not there, or does
|
|
107
|
+
* not read, ends its branch: the parse says what is wrong with it.
|
|
99
108
|
*/
|
|
100
|
-
export declare function
|
|
101
|
-
/**
|
|
102
|
-
export declare function
|
|
103
|
-
/** Whether a stack is pinned here - named by the call that asked for the work, or kept by the pulse it runs in. */
|
|
104
|
-
export declare function stackPinned(): boolean;
|
|
105
|
-
/**
|
|
106
|
-
* The stack a module is built with: the one pinned - named by the call, or kept by the pulse - else the stack named
|
|
107
|
-
* after the module, config.turri.backend.yaml for backend.plain, else the one chosen for the session; none, when none
|
|
108
|
-
* of them is.
|
|
109
|
-
*/
|
|
110
|
-
export declare function stackForModule(plainFile: string): string | undefined;
|
|
111
|
-
/** The words that choose no stack: the project's config alone. */
|
|
112
|
-
export declare const NO_STACK: string[];
|
|
113
|
-
/**
|
|
114
|
-
* The stack `name` names for the project at `root` - undefined for none - refused when the project has no file for
|
|
115
|
-
* it, with the stacks it has.
|
|
116
|
-
*/
|
|
117
|
-
export declare function stackNamed(root: string, name: string): string | undefined;
|
|
118
|
-
/** The stack a project folder is built with now: the one chosen, when the folder has a file for it. */
|
|
119
|
-
export declare function stackOf(root: string): string | undefined;
|
|
109
|
+
export declare function requiredModulesOf(plainFile: string): string[];
|
|
110
|
+
/** The module whose config file is pinned here, when the project folder has that file. */
|
|
111
|
+
export declare function configModuleOf(root: string): string | undefined;
|
|
120
112
|
export declare const THINKING_LEVELS: readonly ["off", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
121
113
|
export type ThinkingLevel = (typeof THINKING_LEVELS)[number];
|
|
122
114
|
/** A model, and how hard it thinks - either may be left to the one it inherits from. */
|
|
@@ -128,10 +120,9 @@ export interface ModelChoice {
|
|
|
128
120
|
/**
|
|
129
121
|
* The agents turri starts, by what they do - each can be given its own model, thinking and turn limit (`models:`).
|
|
130
122
|
* The code fixer of a conformance run and the repair agent are coding agents; the unit-test and conformance arbiters
|
|
131
|
-
* are both `arbiter`.
|
|
132
|
-
* are `advisor`.
|
|
123
|
+
* are both `arbiter`.
|
|
133
124
|
*/
|
|
134
|
-
export declare const AGENT_ROLES: readonly ["chat", "sentinel", "planner", "diagnosis", "release", "coding", "conformance", "explorer", "reviewer", "test-reviewer", "judge", "arbiter", "debugger"
|
|
125
|
+
export declare const AGENT_ROLES: readonly ["chat", "sentinel", "planner", "diagnosis", "release", "coding", "conformance", "explorer", "reviewer", "test-reviewer", "judge", "arbiter", "debugger"];
|
|
135
126
|
export type AgentRole = (typeof AGENT_ROLES)[number];
|
|
136
127
|
/**
|
|
137
128
|
* How hard each role thinks when nothing names a level - not the config's `models:`, nor a `:level` on the model it is
|
|
@@ -181,11 +172,6 @@ export declare function skillModel(root: string, role?: "harness" | "coding"): s
|
|
|
181
172
|
* The coding role always runs on what it is given: its config is already in it (projectModels).
|
|
182
173
|
*/
|
|
183
174
|
export declare function roleModel(config: Pick<ProjectConfig, "harnessModel" | "judgeModel" | "models">, role: AgentRole): ModelChoice | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* What the test advisor's calls run on: `models.advisor` - else `default` - and without either the coding
|
|
186
|
-
* model alone, thinking as the role has it (ROLE_THINKING). Undefined when the config names no model at all.
|
|
187
|
-
*/
|
|
188
|
-
export declare function advisorModel(config: ProjectConfig): string | undefined;
|
|
189
175
|
/** How long each turn of a role's agents may take, in milliseconds: its own, `default`'s, `turn-limit:`'s - or undefined, the harness's default. */
|
|
190
176
|
export declare function roleTurnLimitMs(config: Pick<ProjectConfig, "models" | "turnLimit">, role: AgentRole | undefined): number | undefined;
|
|
191
177
|
/** `sentinel:` - on, off, or `ask`: on once the person says so, asked before it first opens in a session. */
|
|
@@ -230,13 +216,6 @@ export interface ProjectConfig {
|
|
|
230
216
|
* asked, before it first opens in a session, whether to start it. Unset: ask.
|
|
231
217
|
*/
|
|
232
218
|
sentinel?: SentinelSetting;
|
|
233
|
-
/**
|
|
234
|
-
* Whether the test advisor starts by itself: in the chat and a host, each new or changed functional spec with no
|
|
235
|
-
* scenarios is classified in the background, and on a yes the chat writes its scenarios (docs/test-advisor.md). false
|
|
236
|
-
* turns off only that: the chat's evaluate_tests still works, and asked for scenarios, the chat writes them as before.
|
|
237
|
-
* Unset: true.
|
|
238
|
-
*/
|
|
239
|
-
testAdvisor?: boolean;
|
|
240
219
|
/**
|
|
241
220
|
* The folder of the test plain files, from the project's folder: a functional spec's scenarios are in its test plain
|
|
242
221
|
* file in `<test-dir>/<module>/`. Unset: `tests`.
|
|
@@ -244,9 +223,9 @@ export interface ProjectConfig {
|
|
|
244
223
|
testDir?: string;
|
|
245
224
|
/**
|
|
246
225
|
* Whether functional specs' scenarios are written and conformance tested (conformance-switch.ts). False: none - no
|
|
247
|
-
* conformance pulse, no conformance testing script, the
|
|
248
|
-
*
|
|
249
|
-
* on. Unset: false.
|
|
226
|
+
* conformance pulse, no conformance testing script, the chat's conform refused; the test plain
|
|
227
|
+
* files there are kept, and not tested. They make each change take about twice as long, so only the person turns them
|
|
228
|
+
* on - /conform, or this key. Unset: false.
|
|
250
229
|
*/
|
|
251
230
|
conformanceTests?: boolean;
|
|
252
231
|
/**
|
|
@@ -277,7 +256,7 @@ export interface ProjectConfig {
|
|
|
277
256
|
* session through a job is compacted between turns. The project's alone. Unset: 100k.
|
|
278
257
|
*/
|
|
279
258
|
compactAt?: number;
|
|
280
|
-
/** The most functional specs the planner puts in one pulse. Unset: 3. A
|
|
259
|
+
/** The most functional specs the planner puts in one pulse. Unset: 3. A module's own file wins. */
|
|
281
260
|
maxSpecsPerPulse?: number;
|
|
282
261
|
/** The most lines of spec - its functional specs and the definitions they bring - in one pulse; past it, split. Unset: 120. */
|
|
283
262
|
maxLinesPerPulse?: number;
|
|
@@ -328,7 +307,6 @@ export declare const CONFIG_KEYS: {
|
|
|
328
307
|
readonly allowToStopJobs: "allow-to-stop-jobs";
|
|
329
308
|
readonly releaseAfterPulse: "release-after-pulse";
|
|
330
309
|
readonly sentinel: "sentinel";
|
|
331
|
-
readonly testAdvisor: "test-advisor";
|
|
332
310
|
readonly testDir: "test-dir";
|
|
333
311
|
readonly conformanceTests: "conformance-tests";
|
|
334
312
|
readonly baseFolder: "base-folder";
|
|
@@ -350,10 +328,10 @@ export declare const CONFIG_KEYS: {
|
|
|
350
328
|
readonly turnLimit: "turn-limit";
|
|
351
329
|
};
|
|
352
330
|
/**
|
|
353
|
-
* The project's config - with a
|
|
331
|
+
* The project's config - with a module's own file over it, when one is named - or nothing of it when there is no file or it does
|
|
354
332
|
* not parse.
|
|
355
333
|
*/
|
|
356
|
-
export declare function readProjectConfig(root: string,
|
|
334
|
+
export declare function readProjectConfig(root: string, module?: string): ProjectConfig;
|
|
357
335
|
/**
|
|
358
336
|
* What a command's own options say of the config's keys - `turri regenerate --harness-model`, `--coding-model`,
|
|
359
337
|
* `--judge-model`, `--review`, `--mutation-testing` - read as if the file had them: each takes its key's value, and
|
|
@@ -375,13 +353,26 @@ export declare function overrideConfig(overrides: RunOverrides): void;
|
|
|
375
353
|
export declare function booleanOption(value: string): boolean | undefined;
|
|
376
354
|
/** Where the test plain files are when `test-dir:` does not say. */
|
|
377
355
|
export declare const DEFAULT_TEST_DIR = "tests";
|
|
378
|
-
/** The folder of a module's project's test plain files: `test-dir:` - its
|
|
356
|
+
/** The folder of a module's project's test plain files: `test-dir:` - its own file's over the project's - from the project's folder. */
|
|
379
357
|
export declare function testDirOf(plainFile: string): string;
|
|
380
|
-
/** The config a spec is built with: its project's, with its module's
|
|
358
|
+
/** The config a spec is built with: its project's, with its module's own file over it - or a required module's (`configModuleFor`). */
|
|
381
359
|
export declare function configForSpec(plainFile: string): ProjectConfig;
|
|
382
360
|
/**
|
|
383
361
|
* One config file, read, or nothing of it when it is not there or does not parse. Parsed again only once the file has
|
|
384
|
-
* changed - its size or its modification time - and each caller given its own copy.
|
|
362
|
+
* changed - its size or its modification time - and each caller given its own copy. A file modified less than a second
|
|
363
|
+
* before it was read is read again each time, as git treats a racily clean file: written again within the same tick of
|
|
364
|
+
* the file system's clock - milliseconds on Linux - and to the same size, its stamp would not change.
|
|
385
365
|
*/
|
|
386
366
|
export declare function readConfigFile(path: string): ProjectConfig;
|
|
367
|
+
/**
|
|
368
|
+
* The keys of the project's own config files - config.turri.yaml and each module's - that turri reads nothing of: a setting
|
|
369
|
+
* turri no longer has (`test-advisor`), or one misspelt. Said as turri starts, so a setting the person thinks is on is
|
|
370
|
+
* not silently ignored. config.yaml is left out: it may be another tool's, with keys of its own.
|
|
371
|
+
*/
|
|
372
|
+
export declare function unknownConfigKeys(root: string): Array<{
|
|
373
|
+
file: string;
|
|
374
|
+
keys: string[];
|
|
375
|
+
}>;
|
|
376
|
+
/** The banner's line for each config file with keys turri does not read. */
|
|
377
|
+
export declare function unknownConfigLines(root: string): string[];
|
|
387
378
|
export {};
|