@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.
Files changed (143) hide show
  1. package/README.md +5 -6
  2. package/dist/bedrock-region.js +3 -3
  3. package/dist/chat-idle.d.ts +2 -2
  4. package/dist/chat-idle.js +2 -2
  5. package/dist/chat-models.d.ts +1 -1
  6. package/dist/chat-models.js +1 -1
  7. package/dist/chat-scope.d.ts +1 -3
  8. package/dist/chats.d.ts +2 -12
  9. package/dist/chats.js +3 -26
  10. package/dist/cli.js +11 -30
  11. package/dist/config-edit.d.ts +20 -8
  12. package/dist/config-edit.js +29 -23
  13. package/dist/config.d.ts +62 -71
  14. package/dist/config.js +170 -125
  15. package/dist/conform-cli.js +14 -3
  16. package/dist/conformance-switch.d.ts +13 -22
  17. package/dist/conformance-switch.js +37 -59
  18. package/dist/drift-cli.js +1 -1
  19. package/dist/extension.d.ts +8 -10
  20. package/dist/extension.js +257 -429
  21. package/dist/genome.js +9 -48
  22. package/dist/graph.js +3 -5
  23. package/dist/host-session.d.ts +5 -16
  24. package/dist/host-session.js +4 -6
  25. package/dist/host.d.ts +2 -4
  26. package/dist/host.js +4 -7
  27. package/dist/identity.js +0 -1
  28. package/dist/init-config.d.ts +0 -1
  29. package/dist/init-config.js +3 -10
  30. package/dist/installed-providers.d.ts +1 -1
  31. package/dist/installed-providers.js +1 -1
  32. package/dist/loop-cli.d.ts +4 -3
  33. package/dist/loop-cli.js +13 -11
  34. package/dist/loop-tools.d.ts +37 -18
  35. package/dist/loop-tools.js +118 -58
  36. package/dist/new-project.js +2 -2
  37. package/dist/parse-cli.js +2 -2
  38. package/dist/pi-launch.js +4 -1
  39. package/dist/pi-settings.d.ts +4 -0
  40. package/dist/pi-settings.js +39 -0
  41. package/dist/pi.js +12 -9
  42. package/dist/plain/check.d.ts +2 -9
  43. package/dist/plain/check.js +6 -39
  44. package/dist/plain-files.js +4 -4
  45. package/dist/regenerate/activity.d.ts +0 -7
  46. package/dist/regenerate/activity.js +2 -20
  47. package/dist/regenerate/agent-env.d.ts +1 -1
  48. package/dist/regenerate/agent-env.js +3 -3
  49. package/dist/regenerate/agent-shell.js +5 -3
  50. package/dist/regenerate/audit.js +9 -0
  51. package/dist/regenerate/base-folder.d.ts +2 -2
  52. package/dist/regenerate/base-folder.js +1 -1
  53. package/dist/regenerate/cases.js +7 -0
  54. package/dist/regenerate/chunk-plan.d.ts +5 -0
  55. package/dist/regenerate/chunk-plan.js +16 -1
  56. package/dist/regenerate/drift.d.ts +4 -0
  57. package/dist/regenerate/drift.js +26 -6
  58. package/dist/regenerate/failure-reports.d.ts +28 -0
  59. package/dist/regenerate/failure-reports.js +79 -0
  60. package/dist/regenerate/job-panel.js +3 -1
  61. package/dist/regenerate/jobs-tree.js +1 -1
  62. package/dist/regenerate/jobs.d.ts +4 -2
  63. package/dist/regenerate/jobs.js +14 -10
  64. package/dist/regenerate/ledger-view.d.ts +11 -24
  65. package/dist/regenerate/ledger-view.js +14 -60
  66. package/dist/regenerate/ledger.d.ts +2 -15
  67. package/dist/regenerate/ledger.js +1 -1
  68. package/dist/regenerate/loop.d.ts +48 -62
  69. package/dist/regenerate/loop.js +296 -131
  70. package/dist/regenerate/model-names.d.ts +33 -0
  71. package/dist/regenerate/{engine.js → model-names.js} +2 -28
  72. package/dist/regenerate/paths.d.ts +1 -1
  73. package/dist/regenerate/paths.js +2 -2
  74. package/dist/regenerate/records.d.ts +11 -0
  75. package/dist/regenerate/records.js +15 -0
  76. package/dist/regenerate/regenerate.d.ts +0 -2
  77. package/dist/regenerate/regenerate.js +4 -15
  78. package/dist/regenerate/renames.js +4 -4
  79. package/dist/regenerate/requires.d.ts +7 -0
  80. package/dist/regenerate/requires.js +24 -18
  81. package/dist/regenerate/scripts-being-written.d.ts +4 -4
  82. package/dist/regenerate/scripts-being-written.js +3 -3
  83. package/dist/regenerate/spec-map.js +3 -3
  84. package/dist/regenerate/standing.js +1 -1
  85. package/dist/regenerate/submit-work.d.ts +2 -0
  86. package/dist/regenerate/submit-work.js +8 -3
  87. package/dist/regenerate/test-scripts.d.ts +2 -1
  88. package/dist/regenerate/test-scripts.js +33 -23
  89. package/dist/regenerate/testing-steps.d.ts +16 -5
  90. package/dist/regenerate/testing-steps.js +28 -9
  91. package/dist/regenerate-cli.js +18 -9
  92. package/dist/self-invocation.d.ts +11 -0
  93. package/dist/self-invocation.js +33 -7
  94. package/dist/sentinel.js +8 -5
  95. package/dist/{config-command.d.ts → settings.d.ts} +13 -8
  96. package/dist/{config-command.js → settings.js} +155 -24
  97. package/dist/setup.d.ts +2 -2
  98. package/dist/setup.js +7 -7
  99. package/dist/skill.d.ts +0 -11
  100. package/dist/skill.js +0 -9
  101. package/dist/tools.js +2 -3
  102. package/dist/turri-versions.js +2 -1
  103. package/docs/README.md +2 -4
  104. package/docs/authoring-plain.md +3 -3
  105. package/docs/chats.md +4 -7
  106. package/docs/claude-subscription.md +2 -2
  107. package/docs/config.md +55 -45
  108. package/docs/deploy.md +1 -1
  109. package/docs/development.md +3 -4
  110. package/docs/headless.md +6 -5
  111. package/docs/hosting.md +11 -11
  112. package/docs/parser.md +3 -3
  113. package/docs/regenerating.md +27 -19
  114. package/docs/sentinel.md +6 -6
  115. package/docs/skills-and-gates.md +4 -9
  116. package/docs/using.md +20 -37
  117. package/genome/rules/project-model.md +2 -1
  118. package/genome/rules/test-plain-files.md +15 -7
  119. package/genome/rules/turri-regeneration.md +6 -9
  120. package/genome/skills/convert-old-syntax/SKILL.md +5 -5
  121. package/genome/skills/implement-conformance-testing-script/SKILL.md +2 -2
  122. package/genome/skills/implement-unit-testing-script/SKILL.md +3 -3
  123. package/package.json +1 -1
  124. package/dist/advisor-chat.d.ts +0 -63
  125. package/dist/advisor-chat.js +0 -290
  126. package/dist/change-plain-cli.d.ts +0 -1
  127. package/dist/change-plain-cli.js +0 -55
  128. package/dist/ledger-cli.d.ts +0 -1
  129. package/dist/ledger-cli.js +0 -50
  130. package/dist/ledger-tools.d.ts +0 -10
  131. package/dist/ledger-tools.js +0 -64
  132. package/dist/regenerate/advisor-records.d.ts +0 -93
  133. package/dist/regenerate/advisor-records.js +0 -110
  134. package/dist/regenerate/advisor-runs.d.ts +0 -87
  135. package/dist/regenerate/advisor-runs.js +0 -327
  136. package/dist/regenerate/engine.d.ts +0 -52
  137. package/dist/regenerate/test-advisor.d.ts +0 -101
  138. package/dist/regenerate/test-advisor.js +0 -379
  139. package/dist/spec-tools.d.ts +0 -36
  140. package/dist/spec-tools.js +0 -128
  141. package/dist/stacks.d.ts +0 -13
  142. package/dist/stacks.js +0 -96
  143. 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, the test advisor off (default: false)
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, engine). `model:` is read
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 project whose parts do not share a stack - a Python backend and a React frontend beside each other - keeps a
55
- * stack's own settings in `config.turri.<stack>.yaml` beside `config.turri.yaml`: `config.turri.backend.yaml` for the
56
- * stack `backend` - its testing scripts, its toolchains. A stack is chosen, never worked out: `/stack` in the chat,
57
- * `--stack <name>` (or `TURRI_STACK`) on the command line. With one chosen, everything turri builds from then on is
58
- * built with `config.turri.yaml` and the stack's file over it, key by key - a model it names takes what it leaves out
59
- * from the project's - and a pulse already running keeps the stack it started with. With none, `config.turri.yaml`
60
- * alone. `module:` and `harness-model:` are the project's alone - there is one conversation - and are not read from a
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 stack `<name>` - and turri never writes it: the first setting
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 stack's config file's name: `config.turri.backend.yaml` for the stack `backend`. */
72
- export declare function stackConfigFile(stack: string): string;
73
- /** Whether a folder's settings are still in the old files: a config.yaml or a config.<stack>.yaml, and no config.turri*.yaml. */
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 stack's settings are read from, by name - the old name while the folder has only the old files. */
78
- export declare function stackConfigFileIn(root: string, stack: string): string;
79
- /** Whether a folder holds a project's settings: a config.turri.yaml, a stack's file, or the old files. */
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 stacks a project folder has files for, by name. */
82
- export declare function stacksOf(root: string): string[];
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.<stack>.yaml to config.turri.<stack>.yaml, so nothing is lost when the old files
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 stack chosen now - the chat's own (`/stack` in it), else `--stack` or `TURRI_STACK` - or, inside a pulse, the one
93
- * it started with.
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 chosenStack(): string | undefined;
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
- * Choose the stack everything is built with from now on - or none, the project's config alone. In a chat, for that
98
- * chat alone; outside one, kept in TURRI_STACK.
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 chooseStack(stack: string | undefined): void;
101
- /** Run `work` with `stack` as the one chosen, whatever is chosen meanwhile: a pulse keeps the stack it started with. */
102
- export declare function withStack<T>(stack: string | undefined, work: () => T): T;
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`. The test advisor's calls - classifying a functional spec, its probes, its readers, its verifier -
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", "advisor"];
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 test advisor and the chat's conform and evaluate_tests off; the
248
- * test plain files there are kept, and not tested. The person asking for tests, or agreeing to the chat's offer, turns it
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 stack's file wins. */
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 stack's over it, when one is named - or nothing of it when there is no file or it does
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, stack?: string): ProjectConfig;
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 stack's over the project's - from the project's folder. */
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 stack over it (`stackForModule`). */
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 {};