@turri-dev/cli 0.4.2-next.a6867e8 → 0.4.3-next.3fc888b

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 (128) hide show
  1. package/README.md +1 -0
  2. package/dist/background-skills.d.ts +4 -1
  3. package/dist/background-skills.js +9 -1
  4. package/dist/capture/agents.d.ts +391 -0
  5. package/dist/capture/agents.js +338 -0
  6. package/dist/capture/area.d.ts +58 -0
  7. package/dist/capture/area.js +197 -0
  8. package/dist/capture/assemble.d.ts +122 -0
  9. package/dist/capture/assemble.js +452 -0
  10. package/dist/capture/capture.d.ts +116 -0
  11. package/dist/capture/capture.js +1281 -0
  12. package/dist/capture/chat.d.ts +29 -0
  13. package/dist/capture/chat.js +94 -0
  14. package/dist/capture/checks.d.ts +142 -0
  15. package/dist/capture/checks.js +643 -0
  16. package/dist/capture/config.d.ts +13 -0
  17. package/dist/capture/config.js +60 -0
  18. package/dist/capture/interface.d.ts +71 -0
  19. package/dist/capture/interface.js +199 -0
  20. package/dist/capture/map.d.ts +58 -0
  21. package/dist/capture/map.js +530 -0
  22. package/dist/capture/plan.d.ts +8 -0
  23. package/dist/capture/plan.js +13 -0
  24. package/dist/capture/progress.d.ts +109 -0
  25. package/dist/capture/progress.js +240 -0
  26. package/dist/capture/report.d.ts +75 -0
  27. package/dist/capture/report.js +268 -0
  28. package/dist/capture/scripts.d.ts +26 -0
  29. package/dist/capture/scripts.js +33 -0
  30. package/dist/capture/state.d.ts +299 -0
  31. package/dist/capture/state.js +43 -0
  32. package/dist/capture/trial.d.ts +34 -0
  33. package/dist/capture/trial.js +89 -0
  34. package/dist/capture-cli.d.ts +1 -0
  35. package/dist/capture-cli.js +77 -0
  36. package/dist/chat-commands.d.ts +2 -10
  37. package/dist/chat-commands.js +3 -57
  38. package/dist/chat-tab-header.d.ts +15 -0
  39. package/dist/chat-tab-header.js +78 -0
  40. package/dist/chat-tabs.d.ts +26 -0
  41. package/dist/chat-tabs.js +100 -0
  42. package/dist/chat-terminal.js +57 -8
  43. package/dist/chat-waiting.d.ts +4 -1
  44. package/dist/chat-waiting.js +7 -4
  45. package/dist/chats.d.ts +12 -7
  46. package/dist/chats.js +35 -21
  47. package/dist/cli.js +32 -14
  48. package/dist/config-edit.js +4 -2
  49. package/dist/config.d.ts +15 -2
  50. package/dist/config.js +62 -4
  51. package/dist/extension.d.ts +1 -0
  52. package/dist/extension.js +262 -136
  53. package/dist/identity.js +3 -2
  54. package/dist/init-config.js +2 -0
  55. package/dist/loop-cli.js +5 -1
  56. package/dist/loop-tools.d.ts +2 -3
  57. package/dist/loop-tools.js +12 -13
  58. package/dist/new-project.d.ts +5 -0
  59. package/dist/new-project.js +11 -0
  60. package/dist/pi-launch.js +2 -0
  61. package/dist/pi-themes.d.ts +3 -0
  62. package/dist/pi-themes.js +21 -0
  63. package/dist/pi.js +2 -2
  64. package/dist/plain-code-blocks.d.ts +14 -0
  65. package/dist/plain-code-blocks.js +56 -0
  66. package/dist/pointer-hover.d.ts +12 -0
  67. package/dist/pointer-hover.js +48 -0
  68. package/dist/question-dialog.d.ts +5 -0
  69. package/dist/question-dialog.js +20 -1
  70. package/dist/regenerate/chunk-plan.d.ts +2 -11
  71. package/dist/regenerate/chunk-plan.js +9 -20
  72. package/dist/regenerate/command-check.d.ts +9 -0
  73. package/dist/regenerate/command-check.js +163 -14
  74. package/dist/regenerate/job-panel.d.ts +5 -107
  75. package/dist/regenerate/job-panel.js +4 -289
  76. package/dist/regenerate/jobs-tree.d.ts +1 -0
  77. package/dist/regenerate/jobs-tree.js +5 -1
  78. package/dist/regenerate/loop.d.ts +6 -14
  79. package/dist/regenerate/loop.js +51 -35
  80. package/dist/regenerate/side-panel.d.ts +6 -1
  81. package/dist/regenerate/side-panel.js +158 -22
  82. package/dist/regenerate/spec-map-view.d.ts +11 -3
  83. package/dist/regenerate/spec-map-view.js +22 -2
  84. package/dist/regenerate/test-scripts.d.ts +8 -0
  85. package/dist/regenerate/test-scripts.js +20 -5
  86. package/dist/reopen.d.ts +29 -0
  87. package/dist/reopen.js +47 -0
  88. package/dist/resume-line.d.ts +4 -1
  89. package/dist/resume-line.js +5 -2
  90. package/dist/sentinel-chat.js +7 -2
  91. package/dist/sentinel.d.ts +1 -1
  92. package/dist/sentinel.js +4 -2
  93. package/dist/setup.js +9 -1
  94. package/dist/terminal-notifications.d.ts +31 -0
  95. package/dist/terminal-notifications.js +134 -0
  96. package/docs/README.md +2 -0
  97. package/docs/capture.md +207 -0
  98. package/docs/chats.md +8 -7
  99. package/docs/config.md +18 -3
  100. package/docs/development.md +4 -1
  101. package/docs/hosting.md +2 -2
  102. package/docs/launch.md +2 -2
  103. package/docs/regenerating.md +9 -8
  104. package/docs/sandbox.md +3 -1
  105. package/docs/sentinel.md +11 -11
  106. package/docs/skills-and-gates.md +1 -1
  107. package/docs/theming.md +3 -3
  108. package/docs/using.md +12 -5
  109. package/genome/capture/capture.md +26 -0
  110. package/genome/capture/check-conventions.md +5 -0
  111. package/genome/capture/check-reference.md +11 -0
  112. package/genome/capture/compact.md +7 -0
  113. package/genome/capture/concepts.md +3 -0
  114. package/genome/capture/divide.md +9 -0
  115. package/genome/capture/feature.md +45 -0
  116. package/genome/capture/interface.md +9 -0
  117. package/genome/capture/modules.md +23 -0
  118. package/genome/capture/outline.md +11 -0
  119. package/genome/capture/readability.md +12 -0
  120. package/genome/capture/reference.md +10 -0
  121. package/genome/capture/split.md +9 -0
  122. package/genome/capture/survey.md +37 -0
  123. package/genome/capture/trial.md +18 -0
  124. package/genome/capture/verify.md +7 -0
  125. package/genome/rules/turri-regeneration.md +2 -2
  126. package/package.json +3 -3
  127. package/dist/regenerate/steer.d.ts +0 -34
  128. package/dist/regenerate/steer.js +0 -91
package/README.md CHANGED
@@ -190,6 +190,7 @@ Start at the [documentation index](docs/README.md), or go straight to a page:
190
190
  | [Using **turri**](docs/using.md) | the conversation, skills, tools, pulses and regen, choosing models, the command line |
191
191
  | [The project config](docs/config.md) | `config.turri.yaml` and a module's own `config.turri.<module>.yaml`: every key, models and their inheritance, conformance, the testing scripts, which file builds a module, the old `config.yaml` |
192
192
  | [Launch](docs/launch.md) | trying what is built: a commit in `dist/<module>`, started on your machine in the background - after every pulse too - nothing installed without asking |
193
+ | [Capture](docs/capture.md) | an existing codebase captured into \*\*\*plain - offline, at any size - to work on from then on instead of the code |
193
194
  | [Running unattended](docs/headless.md) | regenerating \*\*\*plain overnight or in CI: the command, keeping it running, the results, resuming, rebuilding one functionality |
194
195
  | [Authoring \*\*\*plain](docs/authoring-plain.md) | what \*\*\*plain is made of, the authoring rules, the skills that write and fix it, checking it |
195
196
  | [Regenerating](docs/regenerating.md) | what each build does and in which order: functionalities, modules, regeneration, changes to \*\*\*plain, conformance and acceptance tests, working notes, what the code is built from |
@@ -14,7 +14,10 @@ export interface SkillRunEnd {
14
14
  ok: boolean;
15
15
  /** The line it is drawn as. */
16
16
  line: string;
17
- /** When it did not do its work: what the chat's agent is told, in a turn of its own. */
17
+ /**
18
+ * What the chat's agent is told, in a turn of its own: when it did not do its work - or when what it did is for the
19
+ * chat to tell, as a capture's report is. A run that did its work with a task is drawn as its line too.
20
+ */
18
21
  task?: string;
19
22
  /** The testing script it writes, when it writes one. */
20
23
  kind?: ScriptKind;
@@ -64,6 +64,8 @@ export function failedTask(skill, why, output, kind) {
64
64
  }
65
65
  /** The line drawn for a background run, in the transcript and in no model's context. */
66
66
  const SKILL_RUN_ENTRY = "turri_skill_run";
67
+ /** What a background run that did its work has for the chat's agent, unseen. */
68
+ const SKILL_REPORT_ENTRY = "turri_skill_report";
67
69
  /** How long an end waits before the chat is looked at again, while the person types or it cannot be told yet. */
68
70
  const RECHECK_MS = 2000;
69
71
  /** A chat's background runs' ends: held until it is idle - its agent done, nothing typed - then told together. */
@@ -96,13 +98,19 @@ export function skillRunDelivery(pi, link, context) {
96
98
  }
97
99
  const now = waiting.splice(0);
98
100
  const failed = now.filter((end) => !end.ok && end.task !== undefined);
101
+ const reported = now.filter((end) => end.ok && end.task !== undefined);
99
102
  try {
100
103
  for (const end of now.filter((end) => end.ok))
101
104
  pi.appendEntry(SKILL_RUN_ENTRY, { text: end.line });
105
+ // A follow-up, never a steer: should a turn start in between, this waits for it to end.
102
106
  if (failed.length > 0) {
103
- // A follow-up, never a steer: should a turn start in between, this waits for it to end.
104
107
  void pi.sendMessage({ customType: SKILL_RUN_ENTRY, content: failed.map((end) => end.task).join("\n\n---\n\n"), display: false, details: { skills: failed.map((end) => end.skill), runs: failed.map((end) => ({ skill: end.skill, ...runDetails(end.kind, end.plainFile) })) } }, { triggerTurn: true, deliverAs: "followUp" });
105
108
  }
109
+ // What a run that did its work has for the chat - a capture's report: a message of its own, which a host never
110
+ // shows as a run that did not finish.
111
+ if (reported.length > 0) {
112
+ void pi.sendMessage({ customType: SKILL_REPORT_ENTRY, content: reported.map((end) => end.task).join("\n\n---\n\n"), display: false, details: { skills: reported.map((end) => end.skill) } }, { triggerTurn: true, deliverAs: "followUp" });
113
+ }
106
114
  }
107
115
  catch {
108
116
  // Not bound to its session yet: kept, and tried again.
@@ -0,0 +1,391 @@
1
+ import { Type, type TSchema } from "typebox";
2
+ /**
3
+ * Capture's agents, each fresh, each with one thing to hand over through a submit tool of its own: the survey, its
4
+ * conventions checked, a split, an outline, a part's features divided, a feature, the interface no feature captured, a
5
+ * part's features gathered into modules, concepts reconciled, a module's readability pass, its interface checked against the code,
6
+ * its scenarios tried on the original. The harness checks what each hands over and sends it back with what is wrong, a
7
+ * few times at most; what still does not hold is the harness's to deal with - a feature left uncaptured, the report
8
+ * saying so - never a stop of the whole capture.
9
+ */
10
+ /** How many times an answer that does not hold is sent back. */
11
+ export declare const RETRIES = 2;
12
+ /** How long one turn of a capture agent may take, unless the config says: exploring takes a while. */
13
+ export declare const CAPTURE_TURN_LIMIT_MS: number;
14
+ /** One of capture's prompts, from genome/capture. */
15
+ export declare function capturePrompt(name: string): string;
16
+ export interface AgentOptions {
17
+ /** The capture's output folder: where turri keeps the agent's logs, never what it reads. */
18
+ plainDir: string;
19
+ /** The codebase, which the agent reads. */
20
+ root: string;
21
+ role: "capture" | "capture-analysis";
22
+ model?: string;
23
+ label: string;
24
+ /** Its prompt's name in genome/capture, after the shared one - or several, in order. */
25
+ prompt: string | string[];
26
+ /** What it is given for this run: its part of the map, its feature, ... */
27
+ context: string;
28
+ /** Whether it reads the codebase - not the agents that work from ***plain alone. */
29
+ reads: boolean;
30
+ /** Whether it gets the ***plain rules - the agents that write ***plain. */
31
+ rules: boolean;
32
+ /** Tool calls before it is told to hand over. */
33
+ calls: number;
34
+ /**
35
+ * A shell of its own, on this machine behind every wall an agent's shell has, and file tools that read and write `workdir`
36
+ * alone - in place of the read-only tools over the codebase: the agent that runs a copy of the original. Its home, its
37
+ * temporary folder and its package caches are kept under `home`.
38
+ */
39
+ shell?: {
40
+ workdir: string;
41
+ home: string;
42
+ };
43
+ /** The least a turn of it may take, whatever the config says - unless it turns the limit off: an agent with much to run. */
44
+ turnAtLeastMs?: number;
45
+ /** Who watches it at work: the capture's status. */
46
+ watch?: AgentWatch;
47
+ /** Stops it mid-turn: the capture stopped. */
48
+ signal?: AbortSignal;
49
+ }
50
+ /** Who watches an agent at work - the capture's status: when it starts, what it does, what it costs, when it ends. */
51
+ export interface AgentWatch {
52
+ started(): void;
53
+ /** A tool call it made, or a result worth a line: `○ read app/main.py`. */
54
+ did(line: string): void;
55
+ /** What it is at this moment - thinking, waiting for the model, writing a call - or nothing. */
56
+ now(label: string | undefined): void;
57
+ /** What one model response cost, in dollars. */
58
+ spent(cost: number): void;
59
+ ended(): void;
60
+ }
61
+ /** Ask an agent for one answer, sending it back with what is wrong until it holds. Undefined, with the last problems, when it never did. */
62
+ export declare function askAgent<A>(options: AgentOptions, tool: {
63
+ name: string;
64
+ label: string;
65
+ description: string;
66
+ parameters: TSchema;
67
+ convert: (params: Record<string, unknown>) => A;
68
+ }, check: (answer: A) => string[]): Promise<{
69
+ answer?: A;
70
+ problems: string[];
71
+ }>;
72
+ /** Work of agents its watch sees from start to end - each tool call, each answer's cost - and the capture's stop ends. */
73
+ export declare function watched<T>(watch: AgentWatch | undefined, signal: AbortSignal | undefined, work: () => Promise<T>): Promise<T>;
74
+ /** A list of strings an agent handed over, its blanks dropped. */
75
+ export declare function strings(value: unknown): string[];
76
+ declare function records(value: unknown): Array<Record<string, unknown>>;
77
+ declare function text(value: unknown): string;
78
+ export declare function definitionsOf(value: unknown): Array<{
79
+ concept: string;
80
+ text: string;
81
+ }>;
82
+ export declare function leftOutOf(value: unknown): Array<{
83
+ path: string;
84
+ why: string;
85
+ }>;
86
+ export declare const CONVENTIONS_TOOL: {
87
+ name: string;
88
+ label: string;
89
+ description: string;
90
+ parameters: Type.TObject<{
91
+ conventions: Type.TArray<Type.TObject<{
92
+ text: Type.TString;
93
+ where: Type.TArray<Type.TString>;
94
+ }>>;
95
+ changes: Type.TArray<Type.TString>;
96
+ }>;
97
+ };
98
+ export declare const SURVEY_TOOL: {
99
+ name: string;
100
+ label: string;
101
+ description: string;
102
+ parameters: Type.TObject<{
103
+ parts: Type.TArray<Type.TObject<{
104
+ name: Type.TString;
105
+ about: Type.TString;
106
+ paths: Type.TArray<Type.TString>;
107
+ stdlib_stack: Type.TOptional<Type.TString>;
108
+ stdlib_conformance: Type.TOptional<Type.TBoolean>;
109
+ implementation_reqs: Type.TArray<Type.TString>;
110
+ conventions: Type.TOptional<Type.TArray<Type.TObject<{
111
+ text: Type.TString;
112
+ where: Type.TArray<Type.TString>;
113
+ }>>>;
114
+ test_reqs: Type.TArray<Type.TString>;
115
+ definitions: Type.TArray<Type.TObject<{
116
+ concept: Type.TString;
117
+ text: Type.TString;
118
+ }>>;
119
+ }>>;
120
+ left_out: Type.TArray<Type.TObject<{
121
+ path: Type.TString;
122
+ why: Type.TString;
123
+ }>>;
124
+ assumptions: Type.TArray<Type.TString>;
125
+ }>;
126
+ };
127
+ export declare const REFERENCE_TOOL: {
128
+ name: string;
129
+ label: string;
130
+ description: string;
131
+ parameters: Type.TObject<{
132
+ entries: Type.TArray<Type.TObject<{
133
+ kind: Type.TUnion<[Type.TLiteral<"command">, Type.TLiteral<"argument">, Type.TLiteral<"option">, Type.TLiteral<"route">, Type.TLiteral<"env">, Type.TLiteral<"other">]>;
134
+ name: Type.TString;
135
+ aliases: Type.TArray<Type.TString>;
136
+ command: Type.TOptional<Type.TString>;
137
+ takes: Type.TOptional<Type.TString>;
138
+ choices: Type.TArray<Type.TString>;
139
+ default: Type.TOptional<Type.TString>;
140
+ repeatable: Type.TOptional<Type.TBoolean>;
141
+ required: Type.TOptional<Type.TBoolean>;
142
+ hidden: Type.TOptional<Type.TBoolean>;
143
+ help: Type.TOptional<Type.TString>;
144
+ details: Type.TArray<Type.TString>;
145
+ where: Type.TString;
146
+ also: Type.TArray<Type.TString>;
147
+ }>>;
148
+ excluded: Type.TArray<Type.TObject<{
149
+ name: Type.TString;
150
+ path: Type.TString;
151
+ why: Type.TString;
152
+ }>>;
153
+ }>;
154
+ };
155
+ export declare const REFERENCE_CHECKED_TOOL: {
156
+ name: string;
157
+ label: string;
158
+ description: string;
159
+ parameters: Type.TObject<{
160
+ changes: Type.TArray<Type.TString>;
161
+ entries: Type.TArray<Type.TObject<{
162
+ kind: Type.TUnion<[Type.TLiteral<"command">, Type.TLiteral<"argument">, Type.TLiteral<"option">, Type.TLiteral<"route">, Type.TLiteral<"env">, Type.TLiteral<"other">]>;
163
+ name: Type.TString;
164
+ aliases: Type.TArray<Type.TString>;
165
+ command: Type.TOptional<Type.TString>;
166
+ takes: Type.TOptional<Type.TString>;
167
+ choices: Type.TArray<Type.TString>;
168
+ default: Type.TOptional<Type.TString>;
169
+ repeatable: Type.TOptional<Type.TBoolean>;
170
+ required: Type.TOptional<Type.TBoolean>;
171
+ hidden: Type.TOptional<Type.TBoolean>;
172
+ help: Type.TOptional<Type.TString>;
173
+ details: Type.TArray<Type.TString>;
174
+ where: Type.TString;
175
+ also: Type.TArray<Type.TString>;
176
+ }>>;
177
+ excluded: Type.TArray<Type.TObject<{
178
+ name: Type.TString;
179
+ path: Type.TString;
180
+ why: Type.TString;
181
+ }>>;
182
+ }>;
183
+ };
184
+ export declare const AREAS_TOOL: {
185
+ name: string;
186
+ label: string;
187
+ description: string;
188
+ parameters: Type.TObject<{
189
+ areas: Type.TArray<Type.TObject<{
190
+ name: Type.TString;
191
+ about: Type.TString;
192
+ paths: Type.TArray<Type.TString>;
193
+ }>>;
194
+ left_out: Type.TArray<Type.TObject<{
195
+ path: Type.TString;
196
+ why: Type.TString;
197
+ }>>;
198
+ }>;
199
+ };
200
+ export declare const FEATURES_TOOL: {
201
+ name: string;
202
+ label: string;
203
+ description: string;
204
+ parameters: Type.TObject<{
205
+ features: Type.TArray<Type.TObject<{
206
+ name: Type.TString;
207
+ title: Type.TString;
208
+ about: Type.TString;
209
+ paths: Type.TArray<Type.TString>;
210
+ }>>;
211
+ left_out: Type.TArray<Type.TObject<{
212
+ path: Type.TString;
213
+ why: Type.TString;
214
+ }>>;
215
+ }>;
216
+ };
217
+ export declare const OWNERS_TOOL: {
218
+ name: string;
219
+ label: string;
220
+ description: string;
221
+ parameters: Type.TObject<{
222
+ features: Type.TArray<Type.TObject<{
223
+ feature: Type.TString;
224
+ owns: Type.TString;
225
+ }>>;
226
+ merged: Type.TArray<Type.TObject<{
227
+ feature: Type.TString;
228
+ into: Type.TArray<Type.TString>;
229
+ why: Type.TString;
230
+ }>>;
231
+ }>;
232
+ };
233
+ export declare const FEATURE_TOOL: {
234
+ name: string;
235
+ label: string;
236
+ description: string;
237
+ parameters: Type.TObject<{
238
+ functional_specs: Type.TArray<Type.TObject<{
239
+ func_id: Type.TString;
240
+ text: Type.TString;
241
+ conformance: Type.TOptional<Type.TArray<Type.TObject<{
242
+ scenario_id: Type.TString;
243
+ text: Type.TString;
244
+ }>>>;
245
+ acceptance: Type.TOptional<Type.TArray<Type.TObject<{
246
+ scenario_id: Type.TString;
247
+ text: Type.TString;
248
+ }>>>;
249
+ }>>;
250
+ definitions: Type.TArray<Type.TObject<{
251
+ concept: Type.TString;
252
+ text: Type.TString;
253
+ }>>;
254
+ assumptions: Type.TArray<Type.TString>;
255
+ uncertain: Type.TArray<Type.TString>;
256
+ dropped: Type.TArray<Type.TString>;
257
+ }>;
258
+ };
259
+ export declare const INTERFACE_TOOL: {
260
+ name: string;
261
+ label: string;
262
+ description: string;
263
+ parameters: Type.TObject<{
264
+ dropped: Type.TArray<Type.TString>;
265
+ functional_specs: Type.TArray<Type.TObject<{
266
+ func_id: Type.TString;
267
+ text: Type.TString;
268
+ conformance: Type.TOptional<Type.TArray<Type.TObject<{
269
+ scenario_id: Type.TString;
270
+ text: Type.TString;
271
+ }>>>;
272
+ acceptance: Type.TOptional<Type.TArray<Type.TObject<{
273
+ scenario_id: Type.TString;
274
+ text: Type.TString;
275
+ }>>>;
276
+ }>>;
277
+ definitions: Type.TArray<Type.TObject<{
278
+ concept: Type.TString;
279
+ text: Type.TString;
280
+ }>>;
281
+ assumptions: Type.TArray<Type.TString>;
282
+ uncertain: Type.TArray<Type.TString>;
283
+ title: Type.TString;
284
+ }>;
285
+ };
286
+ export declare const COMPACT_TOOL: {
287
+ name: string;
288
+ label: string;
289
+ description: string;
290
+ parameters: Type.TObject<{
291
+ feature: Type.TOptional<Type.TObject<{
292
+ functional_specs: Type.TArray<Type.TObject<{
293
+ func_id: Type.TString;
294
+ text: Type.TString;
295
+ conformance: Type.TOptional<Type.TArray<Type.TObject<{
296
+ scenario_id: Type.TString;
297
+ text: Type.TString;
298
+ }>>>;
299
+ acceptance: Type.TOptional<Type.TArray<Type.TObject<{
300
+ scenario_id: Type.TString;
301
+ text: Type.TString;
302
+ }>>>;
303
+ }>>;
304
+ definitions: Type.TArray<Type.TObject<{
305
+ concept: Type.TString;
306
+ text: Type.TString;
307
+ }>>;
308
+ assumptions: Type.TArray<Type.TString>;
309
+ uncertain: Type.TArray<Type.TString>;
310
+ dropped: Type.TArray<Type.TString>;
311
+ }>>;
312
+ expand: Type.TOptional<Type.TString>;
313
+ }>;
314
+ };
315
+ export declare const CORRECTIONS_TOOL: {
316
+ name: string;
317
+ label: string;
318
+ description: string;
319
+ parameters: Type.TObject<{
320
+ corrections: Type.TArray<Type.TObject<{
321
+ func_id: Type.TString;
322
+ scenario_id: Type.TOptional<Type.TString>;
323
+ text: Type.TString;
324
+ why: Type.TString;
325
+ }>>;
326
+ }>;
327
+ };
328
+ export declare const MODULES_TOOL: {
329
+ name: string;
330
+ label: string;
331
+ description: string;
332
+ parameters: Type.TObject<{
333
+ modules: Type.TArray<Type.TObject<{
334
+ name: Type.TString;
335
+ about: Type.TString;
336
+ features: Type.TArray<Type.TString>;
337
+ needs: Type.TArray<Type.TString>;
338
+ }>>;
339
+ rewrites: Type.TArray<Type.TObject<{
340
+ feature: Type.TString;
341
+ func_id: Type.TString;
342
+ scenario_id: Type.TString;
343
+ text: Type.TString;
344
+ why: Type.TString;
345
+ }>>;
346
+ }>;
347
+ };
348
+ export declare const TRIAL_TOOL: {
349
+ name: string;
350
+ label: string;
351
+ description: string;
352
+ parameters: Type.TObject<{
353
+ scenarios: Type.TArray<Type.TObject<{
354
+ func_id: Type.TString;
355
+ scenario_id: Type.TString;
356
+ outcome: Type.TUnion<[Type.TLiteral<"held">, Type.TLiteral<"corrected">, Type.TLiteral<"removed">, Type.TLiteral<"untried">]>;
357
+ ran: Type.TString;
358
+ text: Type.TOptional<Type.TString>;
359
+ why: Type.TOptional<Type.TString>;
360
+ }>>;
361
+ functional_specs: Type.TArray<Type.TObject<{
362
+ func_id: Type.TString;
363
+ text: Type.TString;
364
+ why: Type.TString;
365
+ }>>;
366
+ test_reqs: Type.TArray<Type.TString>;
367
+ }>;
368
+ };
369
+ export declare const CONCEPTS_TOOL: {
370
+ name: string;
371
+ label: string;
372
+ description: string;
373
+ parameters: Type.TObject<{
374
+ definitions: Type.TArray<Type.TObject<{
375
+ concept: Type.TString;
376
+ text: Type.TString;
377
+ }>>;
378
+ }>;
379
+ };
380
+ export declare const EDITS_TOOL: {
381
+ name: string;
382
+ label: string;
383
+ description: string;
384
+ parameters: Type.TObject<{
385
+ edits: Type.TArray<Type.TObject<{
386
+ func_id: Type.TString;
387
+ text: Type.TString;
388
+ }>>;
389
+ }>;
390
+ };
391
+ export { records, text };