@cnc-tools/storm 0.10.0 → 0.11.0
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/dist/bin/storm.js +17 -9
- package/dist/build-info.js +1 -1
- package/dist/chunks/{chunk-YF3ICDBY.js → chunk-3ZZVZPMG.js} +1 -1
- package/dist/chunks/{chunk-JQ2HK4RN.js → chunk-4EU4AH7E.js} +141 -6
- package/dist/chunks/{chunk-ZJ2USLAT.js → chunk-4PRAB24Y.js} +2 -22
- package/dist/chunks/chunk-AMTYHUYB.js +257 -0
- package/dist/chunks/{chunk-WF4KJ7YG.js → chunk-ETCZ6WP7.js} +1 -1
- package/dist/chunks/chunk-FVMQKYTT.js +10 -0
- package/dist/chunks/{chunk-XHJGHJBW.js → chunk-GRMD7G4J.js} +33 -275
- package/dist/chunks/chunk-ICB4BZJX.js +22 -0
- package/dist/chunks/{chunk-AGWW3HDT.js → chunk-KR7WIYLG.js} +1826 -2201
- package/dist/chunks/{chunk-OVXD7GES.js → chunk-L4ZPMSKQ.js} +4 -37
- package/dist/chunks/chunk-NPPJ57W7.js +569 -0
- package/dist/chunks/{chunk-VJQLMGOH.js → chunk-O4BUT7BE.js} +361 -1716
- package/dist/chunks/chunk-OJOKQRM6.js +1457 -0
- package/dist/chunks/chunk-SLNKW4ZM.js +40 -0
- package/dist/chunks/{chunk-AKKNF3WZ.js → chunk-TRFEAYNC.js} +277 -348
- package/dist/chunks/chunk-VZZTHCBW.js +93 -0
- package/dist/chunks/chunk-WNIQA5J6.js +19 -0
- package/dist/chunks/chunk-WSIF7SR6.js +10 -0
- package/dist/chunks/{live-app-RIJM3QFD.js → live-app-LOGYUBKB.js} +52 -7
- package/dist/commands/exec/cleanup.d.ts +3 -3
- package/dist/commands/exec/cleanup.js +6 -2
- package/dist/commands/exec/command.d.ts +3 -3
- package/dist/commands/exec/command.js +17 -10
- package/dist/commands/exec/job-summary.d.ts +1 -1
- package/dist/commands/exec/job-summary.js +1 -1
- package/dist/commands/exec/live-view.js +5 -5
- package/dist/commands/exec/mint-failed.js +1 -1
- package/dist/commands/exec/outcomes.d.ts +2 -2
- package/dist/commands/exec/outcomes.js +7 -8
- package/dist/commands/exec/plan-run.d.ts +3 -5
- package/dist/commands/exec/progress.d.ts +3 -3
- package/dist/commands/exec/progress.js +6 -6
- package/dist/commands/exec/resource-refusals.d.ts +1 -1
- package/dist/commands/exec/resource-refusals.js +1 -1
- package/dist/commands/exec/run-command.d.ts +14 -9
- package/dist/commands/exec/run-command.js +91 -202
- package/dist/commands/exec/run-metadata.d.ts +2 -2
- package/dist/commands/exec/run-metadata.js +3 -3
- package/dist/commands/exec/test-plan.d.ts +1 -35
- package/dist/commands/exec/test-plan.js +4 -24
- package/dist/commands/exec/view.js +3 -3
- package/dist/commands/exec/waterfall.d.ts +3 -1
- package/dist/commands/exec/waterfall.js +18 -1
- package/dist/commands/runs/facts.d.ts +2 -1
- package/dist/commands/runs/facts.js +1 -1
- package/dist/commands/runs/list/command.js +10 -9
- package/dist/commands/runs/logs/command.js +14 -12
- package/dist/commands/runs/past-run.d.ts +3 -27
- package/dist/commands/runs/past-run.js +3 -37
- package/dist/commands/runs/show/command.js +24 -21
- package/dist/commands/runs/show/outcomes.js +2 -2
- package/dist/commands/vitest/command.d.ts +3 -3
- package/dist/commands/vitest/command.js +24 -17
- package/dist/commands/vitest/outcomes.d.ts +1 -1
- package/dist/commands/vitest/outcomes.js +1 -1
- package/dist/config/credential-resolver.d.ts +6 -3
- package/dist/config/credential-resolver.js +6 -5
- package/dist/context.d.ts +27 -9
- package/dist/context.js +19 -8
- package/dist/core/before-run.d.ts +5 -4
- package/dist/core/before-run.js +6 -6
- package/dist/core/definition-lookup.d.ts +22 -0
- package/dist/core/definition-lookup.js +34 -0
- package/dist/core/events.d.ts +5 -19
- package/dist/core/gateways.d.ts +22 -162
- package/dist/core/index.d.ts +10 -11
- package/dist/core/index.js +9 -11
- package/dist/core/launcher-supplies.js +2 -2
- package/dist/core/live/terminal-command-gateway.d.ts +8 -0
- package/dist/core/live/terminal-command-gateway.js +49 -0
- package/dist/core/presentations.d.ts +4 -3
- package/dist/core/presentations.js +4 -5
- package/dist/core/resource-registry.d.ts +35 -51
- package/dist/core/resource-registry.js +27 -54
- package/dist/core/resource-reports.d.ts +37 -4
- package/dist/core/resource-reports.js +34 -5
- package/dist/core/resources.d.ts +4 -3
- package/dist/core/resources.js +2 -4
- package/dist/core/run-state.d.ts +1 -1
- package/dist/core/run-state.js +1 -1
- package/dist/core/run.d.ts +19 -37
- package/dist/core/run.js +59 -114
- package/dist/core/timeline.js +2 -1
- package/dist/credential/events.d.ts +20 -0
- package/dist/credential/events.js +4 -0
- package/dist/credential/index.d.ts +2 -1
- package/dist/credential/index.js +6 -5
- package/dist/credential/source.d.ts +38 -26
- package/dist/credential/source.js +25 -34
- package/dist/extension-commands.d.ts +12 -6
- package/dist/extension-commands.js +18 -11
- package/dist/extensions/story/command-tree.d.ts +6 -0
- package/dist/extensions/story/command-tree.js +21 -0
- package/dist/extensions/story/commands/app.d.ts +23 -0
- package/dist/extensions/story/commands/app.js +5 -0
- package/dist/extensions/story/commands/run/command.d.ts +211 -0
- package/dist/extensions/story/commands/run/command.js +259 -0
- package/dist/extensions/story/commands/run/metadata.d.ts +4 -0
- package/dist/extensions/story/commands/run/metadata.js +8 -0
- package/dist/extensions/story/commands/run/outcomes.d.ts +101 -0
- package/dist/extensions/story/commands/run/outcomes.js +73 -0
- package/dist/extensions/story/commands/tree.d.ts +2 -0
- package/dist/extensions/story/commands/tree.js +6 -0
- package/dist/extensions/story/extension.d.ts +2 -0
- package/dist/extensions/story/extension.js +8 -0
- package/dist/extensions/testserver/command-tree.d.ts +1 -1
- package/dist/extensions/testserver/command-tree.js +0 -1
- package/dist/extensions/testserver/commands/pool/create/command.js +14 -8
- package/dist/extensions/testserver/commands/pool/list/command.js +8 -4
- package/dist/extensions/testserver/vitest/config.d.ts +7 -5
- package/dist/extensions/testserver/vitest/config.js +7 -5
- package/dist/extensions/testserver/vitest/fixtures.d.ts +2 -0
- package/dist/extensions/testserver/vitest/fixtures.js +36 -5
- package/dist/extensions.d.ts +12 -21
- package/dist/extensions.js +22 -34
- package/dist/forward-sigterm.d.ts +8 -0
- package/dist/forward-sigterm.js +18 -0
- package/dist/launcher-resolvers/index.d.ts +1 -0
- package/dist/launcher-resolvers/index.js +2 -1
- package/dist/launcher-resolvers/local-services.d.ts +57 -0
- package/dist/launcher-resolvers/local-services.js +7 -0
- package/dist/live-app.js +2 -1
- package/dist/local-services.d.ts +19 -0
- package/dist/local-services.js +37 -0
- package/dist/run-directory/gateways.d.ts +167 -0
- package/dist/run-directory/gateways.js +2 -0
- package/dist/run-directory/index.d.ts +8 -0
- package/dist/run-directory/index.js +13 -0
- package/dist/run-directory/plan.d.ts +35 -0
- package/dist/run-directory/plan.js +24 -0
- package/dist/run-directory/reader.d.ts +70 -0
- package/dist/run-directory/reader.js +51 -0
- package/dist/run-directory/recording.d.ts +92 -0
- package/dist/run-directory/recording.js +85 -0
- package/dist/{commands/exec → run-directory}/run-collector.d.ts +9 -8
- package/dist/{commands/exec → run-directory}/run-collector.js +8 -10
- package/dist/{core → run-directory}/run-directory.d.ts +3 -3
- package/dist/{core → run-directory}/run-directory.js +2 -2
- package/dist/{commands/exec → run-directory}/run-record.d.ts +29 -7
- package/dist/{commands/exec → run-directory}/run-record.js +79 -5
- package/dist/{commands/exec → run-directory}/timeline-facts.d.ts +4 -8
- package/dist/{commands/exec → run-directory}/timeline-facts.js +8 -24
- package/dist/runner/events.d.ts +6 -5
- package/dist/runner/index.d.ts +13 -17
- package/dist/runner/index.js +10 -14
- package/dist/runner/prepare.d.ts +28 -6
- package/dist/runner/prepare.js +15 -9
- package/dist/runner/recipe.d.ts +14 -0
- package/dist/runner/recipe.js +12 -0
- package/dist/runner/scope.d.ts +18 -11
- package/dist/runner/scope.js +12 -10
- package/dist/runner/session.d.ts +100 -0
- package/dist/runner/session.js +109 -0
- package/dist/runner/snapshot-save.d.ts +3 -2
- package/dist/runner/snapshot-save.js +6 -5
- package/dist/sdk/extension/ci.d.ts +2 -0
- package/dist/sdk/extension/ci.js +6 -0
- package/dist/sdk/extension/commands.d.ts +11 -13
- package/dist/sdk/extension/commands.js +5 -5
- package/dist/sdk/extension/index.d.ts +1 -0
- package/dist/sdk/extension/index.js +1 -0
- package/dist/sdk/extension/lifecycle.d.ts +4 -3
- package/dist/sdk/extension/progress.js +2 -2
- package/dist/sdk/extension/resource.js +1 -1
- package/dist/story/align.d.ts +1 -1
- package/dist/story/align.js +1 -1
- package/dist/story/command-line.d.ts +6 -16
- package/dist/story/command-line.js +11 -23
- package/dist/story/errors.d.ts +1 -1
- package/dist/story/errors.js +1 -1
- package/dist/story/host.d.ts +1 -1
- package/dist/story/host.js +2 -2
- package/dist/story/index.d.ts +2 -2
- package/dist/story/index.js +4 -3
- package/dist/story/launch.d.ts +70 -0
- package/dist/story/launch.js +77 -0
- package/dist/story/report.d.ts +2 -2
- package/dist/story/report.js +3 -4
- package/dist/story/settle.d.ts +7 -7
- package/dist/story/settle.js +5 -5
- package/dist/story/start.d.ts +2 -2
- package/dist/vendor/testserver-sdk/container/container.d.ts +11 -6
- package/dist/vendor/testserver-sdk/container/container.js +38 -16
- package/dist/vendor/testserver-sdk/testserver/failure.d.ts +4 -3
- package/dist/vendor/testserver-sdk/testserver/failure.js +4 -3
- package/package.json +1 -1
- package/skills/overview.md +3 -0
- package/skills/read-run-output.md +2 -2
- package/dist/chunks/chunk-H2VCSNVU.js +0 -351
- package/dist/chunks/chunk-J6ZNYUDV.js +0 -21
- package/dist/core/mint.d.ts +0 -10
- package/dist/core/mint.js +0 -14
- package/dist/story/mode.d.ts +0 -17
- package/dist/story/mode.js +0 -21
- /package/dist/{core → run-directory}/live/run-directory-gateway.d.ts +0 -0
- /package/dist/{core → run-directory}/live/run-directory-gateway.js +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// The story extension's own commands, `run`, which the registry mounts as `storm story`. It loads only Clinkr, the
|
|
2
|
+
// extension API's light entry and the tree's declaration, so `src/extension-commands.ts` mounts it for help without
|
|
3
|
+
// loading anything that runs.
|
|
4
|
+
import { defineExtensionCommands } from "../../sdk/extension/commands.js";
|
|
5
|
+
import { storyCommands } from "./commands/tree.js";
|
|
6
|
+
/**
|
|
7
|
+
* The story extension's commands, which take `StoryCommandApp` (`commands/app.ts`), projected from the launcher's app:
|
|
8
|
+
* the vitest and terminal local services, the launcher's environment and directory, and where the exit status goes.
|
|
9
|
+
*/
|
|
10
|
+
export const storyExtensionCommands = defineExtensionCommands({
|
|
11
|
+
description: "Run a package's stories on this machine, recording or comparing each story's tool calls.",
|
|
12
|
+
tree: storyCommands,
|
|
13
|
+
directory: "extensions/story/commands",
|
|
14
|
+
app: (launcherApp) => ({
|
|
15
|
+
vitest: launcherApp.vitest,
|
|
16
|
+
terminal: launcherApp.terminal,
|
|
17
|
+
env: launcherApp.env,
|
|
18
|
+
cwd: launcherApp.cwd,
|
|
19
|
+
exit: launcherApp.exit,
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TerminalService, VitestService } from "../../../launcher-resolvers/index.ts";
|
|
2
|
+
/** Where a command records the status storm exits with, past Clinkr's 0 or 1: the code of the command it ran. */
|
|
3
|
+
export interface StoryExit {
|
|
4
|
+
status: number | undefined;
|
|
5
|
+
}
|
|
6
|
+
/** What `storm story run` takes: the local services it uses, and the launcher's environment and directory. */
|
|
7
|
+
export interface StoryCommandApp {
|
|
8
|
+
/** Finds `vitest` from the launcher's directory. */
|
|
9
|
+
readonly vitest: VitestService;
|
|
10
|
+
/** Runs `vitest run` in the launcher's terminal. */
|
|
11
|
+
readonly terminal: TerminalService;
|
|
12
|
+
/** The launcher environment: the base of Vitest's environment, and whether `CI` is set. */
|
|
13
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
14
|
+
/** The launcher's working directory, where Vitest runs and a relative `--bin` program resolves. */
|
|
15
|
+
readonly cwd: string;
|
|
16
|
+
/** Where the command records Vitest's exit status, which storm exits with. */
|
|
17
|
+
readonly exit: StoryExit;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* What the story extension's mount reads of the launcher's app: what its commands take, which the mount copies field by
|
|
21
|
+
* field, so a command never holds the launcher's whole app.
|
|
22
|
+
*/
|
|
23
|
+
export type StoryLauncherApp = StoryCommandApp;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// The app the story extension's commands take, and what their mount reads of the launcher's app to build it
|
|
2
|
+
// (`StoryLauncherApp`), stated here so they import nothing from the composition layer. The extension's mount
|
|
3
|
+
// (`../command-tree.ts`) projects the launcher's app into this one, and the launcher checks its app against
|
|
4
|
+
// `StoryLauncherApp`.
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* `storm story run`: runs `vitest run --project <project>…` on this machine with the story launch in `STORM_STORY`
|
|
4
|
+
* (`story/launch.ts`), which hands the stories the answers level and the executable `--bin` names, resolved here, once
|
|
5
|
+
* (`resolveStoryExecutable`). It finds
|
|
6
|
+
* `vitest` on this machine as `storm vitest` does, runs it in the launcher's terminal with the launcher's
|
|
7
|
+
* environment and the launch, and exits with its code. Every argument that isn't one of its flags goes to `vitest run`
|
|
8
|
+
* unchanged, in order, after the projects; vitest's own dash options come after `--`, which Clinkr reads into the same
|
|
9
|
+
* `args`.
|
|
10
|
+
*/
|
|
11
|
+
declare const _default: import("@vercel/clinkr").CommandDefinition<z.ZodObject<{
|
|
12
|
+
project: z.ZodArray<z.ZodString>;
|
|
13
|
+
answers: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
accept: "accept";
|
|
15
|
+
add: "add";
|
|
16
|
+
check: "check";
|
|
17
|
+
}>>;
|
|
18
|
+
bin: z.ZodOptional<z.ZodString>;
|
|
19
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>, import("@vercel/clinkr").Outcomes<{
|
|
21
|
+
ran: z.ZodObject<{
|
|
22
|
+
projects: z.ZodArray<z.ZodString>;
|
|
23
|
+
answers: z.ZodEnum<{
|
|
24
|
+
accept: "accept";
|
|
25
|
+
add: "add";
|
|
26
|
+
check: "check";
|
|
27
|
+
}>;
|
|
28
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
29
|
+
file: z.ZodString;
|
|
30
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
31
|
+
}, z.core.$strict>>;
|
|
32
|
+
vitest: z.ZodString;
|
|
33
|
+
args: z.ZodArray<z.ZodString>;
|
|
34
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, {
|
|
38
|
+
ran: unknown;
|
|
39
|
+
}, {
|
|
40
|
+
vitestNotFound: z.ZodObject<{
|
|
41
|
+
cwd: z.ZodString;
|
|
42
|
+
searched: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
spawnFailed: z.ZodObject<{
|
|
45
|
+
projects: z.ZodArray<z.ZodString>;
|
|
46
|
+
answers: z.ZodEnum<{
|
|
47
|
+
accept: "accept";
|
|
48
|
+
add: "add";
|
|
49
|
+
check: "check";
|
|
50
|
+
}>;
|
|
51
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
file: z.ZodString;
|
|
53
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
vitest: z.ZodString;
|
|
56
|
+
args: z.ZodArray<z.ZodString>;
|
|
57
|
+
message: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
}, {
|
|
60
|
+
readonly vitestNotFound: {
|
|
61
|
+
readonly exitCode: 1;
|
|
62
|
+
readonly description: "No directory from the working directory up to the repository's root, or the filesystem's root outside a repository, has node_modules/.bin/vitest, so no story ran.";
|
|
63
|
+
readonly schema: z.ZodObject<{
|
|
64
|
+
cwd: z.ZodString;
|
|
65
|
+
searched: z.ZodArray<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
readonly render: ({ cwd, searched }: {
|
|
68
|
+
cwd: string;
|
|
69
|
+
searched: string[];
|
|
70
|
+
}) => {
|
|
71
|
+
message: string;
|
|
72
|
+
next: {
|
|
73
|
+
type: "text";
|
|
74
|
+
text: string;
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly spawnFailed: {
|
|
79
|
+
readonly exitCode: 1;
|
|
80
|
+
readonly description: "vitest couldn't start, so no story ran.";
|
|
81
|
+
readonly schema: z.ZodObject<{
|
|
82
|
+
projects: z.ZodArray<z.ZodString>;
|
|
83
|
+
answers: z.ZodEnum<{
|
|
84
|
+
accept: "accept";
|
|
85
|
+
add: "add";
|
|
86
|
+
check: "check";
|
|
87
|
+
}>;
|
|
88
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
89
|
+
file: z.ZodString;
|
|
90
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
vitest: z.ZodString;
|
|
93
|
+
args: z.ZodArray<z.ZodString>;
|
|
94
|
+
message: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
readonly render: ({ vitest, message }: {
|
|
97
|
+
projects: string[];
|
|
98
|
+
answers: "accept" | "add" | "check";
|
|
99
|
+
bin: {
|
|
100
|
+
file: string;
|
|
101
|
+
args: readonly string[];
|
|
102
|
+
} | null;
|
|
103
|
+
vitest: string;
|
|
104
|
+
args: string[];
|
|
105
|
+
message: string;
|
|
106
|
+
}) => {
|
|
107
|
+
message: string;
|
|
108
|
+
rows: [string, string][];
|
|
109
|
+
next: {
|
|
110
|
+
type: "text";
|
|
111
|
+
text: string;
|
|
112
|
+
}[];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}>, import("@vercel/clinkr").OutcomeOf<import("@vercel/clinkr").Outcomes<{
|
|
116
|
+
ran: z.ZodObject<{
|
|
117
|
+
projects: z.ZodArray<z.ZodString>;
|
|
118
|
+
answers: z.ZodEnum<{
|
|
119
|
+
accept: "accept";
|
|
120
|
+
add: "add";
|
|
121
|
+
check: "check";
|
|
122
|
+
}>;
|
|
123
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
124
|
+
file: z.ZodString;
|
|
125
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
vitest: z.ZodString;
|
|
128
|
+
args: z.ZodArray<z.ZodString>;
|
|
129
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
130
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
}, {
|
|
133
|
+
ran: unknown;
|
|
134
|
+
}, {
|
|
135
|
+
vitestNotFound: z.ZodObject<{
|
|
136
|
+
cwd: z.ZodString;
|
|
137
|
+
searched: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
spawnFailed: z.ZodObject<{
|
|
140
|
+
projects: z.ZodArray<z.ZodString>;
|
|
141
|
+
answers: z.ZodEnum<{
|
|
142
|
+
accept: "accept";
|
|
143
|
+
add: "add";
|
|
144
|
+
check: "check";
|
|
145
|
+
}>;
|
|
146
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
147
|
+
file: z.ZodString;
|
|
148
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
150
|
+
vitest: z.ZodString;
|
|
151
|
+
args: z.ZodArray<z.ZodString>;
|
|
152
|
+
message: z.ZodString;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
}, {
|
|
155
|
+
readonly vitestNotFound: {
|
|
156
|
+
readonly exitCode: 1;
|
|
157
|
+
readonly description: "No directory from the working directory up to the repository's root, or the filesystem's root outside a repository, has node_modules/.bin/vitest, so no story ran.";
|
|
158
|
+
readonly schema: z.ZodObject<{
|
|
159
|
+
cwd: z.ZodString;
|
|
160
|
+
searched: z.ZodArray<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
readonly render: ({ cwd, searched }: {
|
|
163
|
+
cwd: string;
|
|
164
|
+
searched: string[];
|
|
165
|
+
}) => {
|
|
166
|
+
message: string;
|
|
167
|
+
next: {
|
|
168
|
+
type: "text";
|
|
169
|
+
text: string;
|
|
170
|
+
}[];
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly spawnFailed: {
|
|
174
|
+
readonly exitCode: 1;
|
|
175
|
+
readonly description: "vitest couldn't start, so no story ran.";
|
|
176
|
+
readonly schema: z.ZodObject<{
|
|
177
|
+
projects: z.ZodArray<z.ZodString>;
|
|
178
|
+
answers: z.ZodEnum<{
|
|
179
|
+
accept: "accept";
|
|
180
|
+
add: "add";
|
|
181
|
+
check: "check";
|
|
182
|
+
}>;
|
|
183
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
184
|
+
file: z.ZodString;
|
|
185
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
186
|
+
}, z.core.$strict>>;
|
|
187
|
+
vitest: z.ZodString;
|
|
188
|
+
args: z.ZodArray<z.ZodString>;
|
|
189
|
+
message: z.ZodString;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
readonly render: ({ vitest, message }: {
|
|
192
|
+
projects: string[];
|
|
193
|
+
answers: "accept" | "add" | "check";
|
|
194
|
+
bin: {
|
|
195
|
+
file: string;
|
|
196
|
+
args: readonly string[];
|
|
197
|
+
} | null;
|
|
198
|
+
vitest: string;
|
|
199
|
+
args: string[];
|
|
200
|
+
message: string;
|
|
201
|
+
}) => {
|
|
202
|
+
message: string;
|
|
203
|
+
rows: [string, string][];
|
|
204
|
+
next: {
|
|
205
|
+
type: "text";
|
|
206
|
+
text: string;
|
|
207
|
+
}[];
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}>>, import("../app.ts").StoryCommandApp, false>;
|
|
211
|
+
export default _default;
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import {
|
|
2
|
+
storyCommands
|
|
3
|
+
} from "../../../../chunks/chunk-WSIF7SR6.js";
|
|
4
|
+
import "../../../../chunks/chunk-ICB4BZJX.js";
|
|
5
|
+
import {
|
|
6
|
+
isCi
|
|
7
|
+
} from "../../../../chunks/chunk-AMTYHUYB.js";
|
|
8
|
+
import {
|
|
9
|
+
defineOutcomes,
|
|
10
|
+
renderOutcome
|
|
11
|
+
} from "../../../../chunks/chunk-4PRAB24Y.js";
|
|
12
|
+
|
|
13
|
+
// src/extensions/story/commands/run/command.ts
|
|
14
|
+
import { z as z3 } from "zod";
|
|
15
|
+
|
|
16
|
+
// src/story/command-line.ts
|
|
17
|
+
import { isAbsolute, resolve } from "node:path";
|
|
18
|
+
var InvalidCommandLine = class extends Error {
|
|
19
|
+
name = "InvalidCommandLine";
|
|
20
|
+
};
|
|
21
|
+
function splitCommandLine(command) {
|
|
22
|
+
const words = [];
|
|
23
|
+
let word;
|
|
24
|
+
let index = 0;
|
|
25
|
+
const add = (text) => {
|
|
26
|
+
word = (word ?? "") + text;
|
|
27
|
+
};
|
|
28
|
+
while (index < command.length) {
|
|
29
|
+
const char = command[index] ?? "";
|
|
30
|
+
if (/\s/u.test(char)) {
|
|
31
|
+
if (word !== void 0) words.push(word);
|
|
32
|
+
word = void 0;
|
|
33
|
+
index += 1;
|
|
34
|
+
} else if (char === "'") {
|
|
35
|
+
const end = command.indexOf("'", index + 1);
|
|
36
|
+
if (end === -1) throw new InvalidCommandLine(`${JSON.stringify(command)} has an unclosed single quote`);
|
|
37
|
+
add(command.slice(index + 1, end));
|
|
38
|
+
index = end + 1;
|
|
39
|
+
} else if (char === '"') {
|
|
40
|
+
let text = "";
|
|
41
|
+
index += 1;
|
|
42
|
+
while (command[index] !== '"') {
|
|
43
|
+
if (index >= command.length) {
|
|
44
|
+
throw new InvalidCommandLine(`${JSON.stringify(command)} has an unclosed double quote`);
|
|
45
|
+
}
|
|
46
|
+
const next = command[index + 1] ?? "";
|
|
47
|
+
if (command[index] === "\\" && ['"', "\\", "$", "`"].includes(next)) {
|
|
48
|
+
text += next;
|
|
49
|
+
index += 2;
|
|
50
|
+
} else {
|
|
51
|
+
text += command[index] ?? "";
|
|
52
|
+
index += 1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
add(text);
|
|
56
|
+
index += 1;
|
|
57
|
+
} else if (char === "\\") {
|
|
58
|
+
if (index + 1 >= command.length) throw new InvalidCommandLine(`${JSON.stringify(command)} ends in a backslash`);
|
|
59
|
+
add(command[index + 1] ?? "");
|
|
60
|
+
index += 2;
|
|
61
|
+
} else if ("|&;<>()$`*?[~#".includes(char)) {
|
|
62
|
+
throw new InvalidCommandLine(
|
|
63
|
+
`${JSON.stringify(command)} has ${JSON.stringify(char)} outside quotes, and the harness runs no shell`
|
|
64
|
+
);
|
|
65
|
+
} else {
|
|
66
|
+
add(char);
|
|
67
|
+
index += 1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (word !== void 0) words.push(word);
|
|
71
|
+
return words;
|
|
72
|
+
}
|
|
73
|
+
function resolveStoryExecutable(commandLine, base) {
|
|
74
|
+
const [program, ...args] = splitCommandLine(commandLine);
|
|
75
|
+
if (program === void 0) throw new InvalidCommandLine(`${JSON.stringify(commandLine)} names no program`);
|
|
76
|
+
const file = program.includes("/") && !isAbsolute(program) ? resolve(base, program) : program;
|
|
77
|
+
return { file, args };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/story/launch.ts
|
|
81
|
+
import { z } from "zod";
|
|
82
|
+
var STORY_LAUNCH_VARIABLE = "STORM_STORY";
|
|
83
|
+
var storyAnswersLevelSchema = z.enum(["check", "add", "accept"]);
|
|
84
|
+
var storyExecutableSchema = z.object({ file: z.string().min(1), args: z.array(z.string()).readonly() }).strict();
|
|
85
|
+
var storyLaunchSchema = z.object({
|
|
86
|
+
version: z.literal(1),
|
|
87
|
+
answers: storyAnswersLevelSchema,
|
|
88
|
+
/** The executable `--bin` names (`storyExecutableSchema`); null without `--bin`. */
|
|
89
|
+
bin: storyExecutableSchema.nullable()
|
|
90
|
+
}).strict();
|
|
91
|
+
function storyLaunchEnv(launch) {
|
|
92
|
+
return { [STORY_LAUNCH_VARIABLE]: JSON.stringify(storyLaunchSchema.parse(launch)) };
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// src/extensions/story/commands/run/outcomes.ts
|
|
96
|
+
import { z as z2 } from "zod";
|
|
97
|
+
var launchedShape = {
|
|
98
|
+
/** The Vitest projects it ran, each from a `--project`, in order. */
|
|
99
|
+
projects: z2.array(z2.string()),
|
|
100
|
+
/** The answers level the stories got: `--answers`, or its default, `check` when `CI` is set and `add` elsewhere. */
|
|
101
|
+
answers: storyAnswersLevelSchema,
|
|
102
|
+
/**
|
|
103
|
+
* The executable `--bin` named for the stories to invoke, resolved: its program, a relative one against the working
|
|
104
|
+
* directory, and the words it gets before a story's own; null without `--bin`.
|
|
105
|
+
*/
|
|
106
|
+
bin: storyExecutableSchema.nullable(),
|
|
107
|
+
/** The `vitest` it ran: the nearest `node_modules/.bin/vitest` from the working directory. */
|
|
108
|
+
vitest: z2.string(),
|
|
109
|
+
/** What `vitest` got, after the executable: `run`, a `--project` for each project, then the rest, in order. */
|
|
110
|
+
args: z2.array(z2.string())
|
|
111
|
+
};
|
|
112
|
+
var outcomes = defineOutcomes({
|
|
113
|
+
results: {
|
|
114
|
+
ran: {
|
|
115
|
+
schema: z2.object({
|
|
116
|
+
...launchedShape,
|
|
117
|
+
/** Vitest's exit code; null when a signal ended it. */
|
|
118
|
+
exitCode: z2.number().nullable(),
|
|
119
|
+
/** The signal that ended vitest, such as `SIGINT`; null when it exited. */
|
|
120
|
+
signal: z2.string().nullable()
|
|
121
|
+
}),
|
|
122
|
+
description: "Vitest ran and ended. storm exits with its code, or 128 + n when signal n ended it, whatever this result's exit code.",
|
|
123
|
+
render: () => renderOutcome({})
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
errors: {
|
|
127
|
+
vitestNotFound: {
|
|
128
|
+
exitCode: 1,
|
|
129
|
+
description: "No directory from the working directory up to the repository's root, or the filesystem's root outside a repository, has node_modules/.bin/vitest, so no story ran.",
|
|
130
|
+
schema: z2.object({
|
|
131
|
+
/** The working directory, where vitest would run. */
|
|
132
|
+
cwd: z2.string(),
|
|
133
|
+
/** Every directory searched for `node_modules/.bin/vitest`, nearest first. */
|
|
134
|
+
searched: z2.array(z2.string())
|
|
135
|
+
}),
|
|
136
|
+
render: ({ cwd, searched }) => ({
|
|
137
|
+
message: `Couldn't find vitest for ${cwd} in node_modules/.bin of ${searched.join(", ")}.`,
|
|
138
|
+
next: [
|
|
139
|
+
{
|
|
140
|
+
type: "text",
|
|
141
|
+
text: "Run it from the package that holds the stories, once vitest is installed in its node_modules/.bin or one above it."
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
})
|
|
145
|
+
},
|
|
146
|
+
spawnFailed: {
|
|
147
|
+
exitCode: 1,
|
|
148
|
+
description: "vitest couldn't start, so no story ran.",
|
|
149
|
+
schema: z2.object({
|
|
150
|
+
...launchedShape,
|
|
151
|
+
/** What the OS said. */
|
|
152
|
+
message: z2.string()
|
|
153
|
+
}),
|
|
154
|
+
render: ({ vitest, message }) => ({
|
|
155
|
+
message: `Failed to start vitest. ${/[.!?]$/u.test(message) ? message : `${message}.`}`,
|
|
156
|
+
rows: [["Vitest", vitest]],
|
|
157
|
+
next: [{ type: "text", text: "Fix what the OS said about that vitest, then run it again." }]
|
|
158
|
+
})
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// src/extensions/story/commands/run/command.ts
|
|
164
|
+
var command_default = storyCommands.define({
|
|
165
|
+
requestSchema: z3.object({
|
|
166
|
+
project: z3.array(z3.string().min(1)).min(1),
|
|
167
|
+
answers: storyAnswersLevelSchema.optional(),
|
|
168
|
+
bin: z3.string().optional(),
|
|
169
|
+
args: z3.array(z3.string()).default([])
|
|
170
|
+
}),
|
|
171
|
+
cli: { positionals: ["args"] },
|
|
172
|
+
help: {
|
|
173
|
+
usages: [
|
|
174
|
+
"--project <PROJECT>... [--answers check|add|accept] [--bin <COMMAND>] [<vitest run args>...] [-- <vitest dash options>...]"
|
|
175
|
+
],
|
|
176
|
+
fields: {
|
|
177
|
+
project: {
|
|
178
|
+
valueLabel: "PROJECT",
|
|
179
|
+
description: "A Vitest project to run, such as a package's story lane; repeat it for several. Required: without it, vitest would run every project, the package's other test lanes among them."
|
|
180
|
+
},
|
|
181
|
+
answers: {
|
|
182
|
+
valueLabel: "LEVEL",
|
|
183
|
+
description: "How much each story may change its recording: check compares and writes nothing; add also rewrites what no longer fits the story (it records new calls, removes calls the story no longer makes, rewrites an unreadable recording and removes orphan recordings), but still fails on a divergence; accept also accepts each divergence as the new observation. Default: check when CI is set (to anything but empty, 0 or false), else add."
|
|
184
|
+
},
|
|
185
|
+
bin: {
|
|
186
|
+
valueLabel: "COMMAND",
|
|
187
|
+
description: "Another executable for the stories to invoke in place of the package's own, such as a port of the tool to another language, against the same recordings. Split as a POSIX shell splits words, with no shell operators or expansions; a relative program resolves against the working directory, a bare name against PATH."
|
|
188
|
+
},
|
|
189
|
+
args: {
|
|
190
|
+
valueLabel: "args",
|
|
191
|
+
description: "What vitest run gets after the projects, unchanged and in order: every argument that isn't one of storm's flags, such as story files, then everything after --, such as -t."
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
examples: [
|
|
195
|
+
{
|
|
196
|
+
argv: "--project story",
|
|
197
|
+
description: "Run the story lane, recording new calls and removing stale ones: add, the default outside CI."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
argv: "--project story --answers accept",
|
|
201
|
+
description: "Accept every divergence as the new observation, after a deliberate change to what the tool prints."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
argv: "--project story --answers check --bin ../go/bin/tool",
|
|
205
|
+
description: "Compare a port of the tool against the same recordings, writing nothing."
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
argv: "--project story test/story/list.story.test.ts -- -t lists",
|
|
209
|
+
description: "Run the stories named lists in one story file."
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
response: outcomes,
|
|
214
|
+
validate: ({ bin }) => binProblems(bin),
|
|
215
|
+
handler: async ({ app, signal }, request) => {
|
|
216
|
+
if (signal.aborted) return outcomes.canceled({ changed: "No story ran." });
|
|
217
|
+
const answers = request.answers ?? (isCi(app.env) ? "check" : "add");
|
|
218
|
+
const bin = request.bin === void 0 ? null : resolveStoryExecutable(request.bin, app.cwd);
|
|
219
|
+
const found = await app.vitest.find(app.cwd);
|
|
220
|
+
if (!found.ok) return outcomes.vitestNotFound({ cwd: app.cwd, searched: [...found.searched] });
|
|
221
|
+
if (signal.aborted) return outcomes.canceled({ changed: "No story ran." });
|
|
222
|
+
const args = ["run", ...request.project.flatMap((project) => ["--project", project]), ...request.args];
|
|
223
|
+
const launched = { projects: [...request.project], answers, bin, vitest: found.path, args };
|
|
224
|
+
const ended = await app.terminal.run({
|
|
225
|
+
argv: [found.path, ...args],
|
|
226
|
+
env: { ...presentEnv(app.env), ...storyLaunchEnv({ version: 1, answers, bin }) },
|
|
227
|
+
cwd: app.cwd,
|
|
228
|
+
signal
|
|
229
|
+
});
|
|
230
|
+
if (ended.kind === "spawn-failed") return outcomes.spawnFailed({ ...launched, message: ended.message });
|
|
231
|
+
app.exit.status = ended.status;
|
|
232
|
+
return outcomes.ran({
|
|
233
|
+
...launched,
|
|
234
|
+
exitCode: ended.kind === "exited" ? ended.code : null,
|
|
235
|
+
signal: ended.kind === "signaled" ? ended.signal : null
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
function binProblems(bin) {
|
|
240
|
+
if (bin === void 0) return [];
|
|
241
|
+
try {
|
|
242
|
+
resolveStoryExecutable(bin, "/");
|
|
243
|
+
} catch (error) {
|
|
244
|
+
if (!(error instanceof InvalidCommandLine)) throw error;
|
|
245
|
+
return [
|
|
246
|
+
{
|
|
247
|
+
field: "bin",
|
|
248
|
+
message: `--bin ${error.message}. Write it as a POSIX shell would split it into words, with no operators or expansions.`
|
|
249
|
+
}
|
|
250
|
+
];
|
|
251
|
+
}
|
|
252
|
+
return [];
|
|
253
|
+
}
|
|
254
|
+
function presentEnv(env) {
|
|
255
|
+
return Object.fromEntries(Object.entries(env).filter((entry) => entry[1] !== void 0));
|
|
256
|
+
}
|
|
257
|
+
export {
|
|
258
|
+
command_default as default
|
|
259
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// src/extensions/story/commands/run/metadata.ts
|
|
2
|
+
var metadata = {
|
|
3
|
+
description: "Run a package's stories on this machine: vitest run --project <project> for each --project, with the nearest node_modules/.bin/vitest from the working directory up to the repository's root, in the working directory, with this machine's environment. The stories get the answers level (--answers) and the executable to invoke (--bin) from the story launch, one private environment variable that only this command sets. Every other argument goes to vitest run unchanged, in order; put vitest's own dash options after --. Vitest owns the terminal: its output reaches it as it prints, and storm prints nothing of its own unless vitest can't start. storm exits with vitest's code, or 128 + n when signal n ended it. Ctrl+C reaches vitest directly, and storm waits for it to exit. A bare vitest run, an IDE's test runner or CI's story lanes, with no story launch, compares at check and writes nothing. It uses no runner sandbox, resource or run directory.",
|
|
4
|
+
summary: "Run a package's stories, recording or comparing their tool calls."
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
metadata
|
|
8
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* How `story run` ends. Vitest owns the terminal while it runs, so a run that started vitest prints nothing of its own:
|
|
4
|
+
* vitest's output is the report. Only a refusal before vitest starts prints an error.
|
|
5
|
+
*/
|
|
6
|
+
export declare const outcomes: import("@vercel/clinkr").Outcomes<{
|
|
7
|
+
ran: z.ZodObject<{
|
|
8
|
+
projects: z.ZodArray<z.ZodString>;
|
|
9
|
+
answers: z.ZodEnum<{
|
|
10
|
+
accept: "accept";
|
|
11
|
+
add: "add";
|
|
12
|
+
check: "check";
|
|
13
|
+
}>;
|
|
14
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
file: z.ZodString;
|
|
16
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
17
|
+
}, z.core.$strict>>;
|
|
18
|
+
vitest: z.ZodString;
|
|
19
|
+
args: z.ZodArray<z.ZodString>;
|
|
20
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
}, {
|
|
24
|
+
ran: unknown;
|
|
25
|
+
}, {
|
|
26
|
+
vitestNotFound: z.ZodObject<{
|
|
27
|
+
cwd: z.ZodString;
|
|
28
|
+
searched: z.ZodArray<z.ZodString>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
spawnFailed: z.ZodObject<{
|
|
31
|
+
projects: z.ZodArray<z.ZodString>;
|
|
32
|
+
answers: z.ZodEnum<{
|
|
33
|
+
accept: "accept";
|
|
34
|
+
add: "add";
|
|
35
|
+
check: "check";
|
|
36
|
+
}>;
|
|
37
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
file: z.ZodString;
|
|
39
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
vitest: z.ZodString;
|
|
42
|
+
args: z.ZodArray<z.ZodString>;
|
|
43
|
+
message: z.ZodString;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, {
|
|
46
|
+
readonly vitestNotFound: {
|
|
47
|
+
readonly exitCode: 1;
|
|
48
|
+
readonly description: "No directory from the working directory up to the repository's root, or the filesystem's root outside a repository, has node_modules/.bin/vitest, so no story ran.";
|
|
49
|
+
readonly schema: z.ZodObject<{
|
|
50
|
+
cwd: z.ZodString;
|
|
51
|
+
searched: z.ZodArray<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
readonly render: ({ cwd, searched }: {
|
|
54
|
+
cwd: string;
|
|
55
|
+
searched: string[];
|
|
56
|
+
}) => {
|
|
57
|
+
message: string;
|
|
58
|
+
next: {
|
|
59
|
+
type: "text";
|
|
60
|
+
text: string;
|
|
61
|
+
}[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly spawnFailed: {
|
|
65
|
+
readonly exitCode: 1;
|
|
66
|
+
readonly description: "vitest couldn't start, so no story ran.";
|
|
67
|
+
readonly schema: z.ZodObject<{
|
|
68
|
+
projects: z.ZodArray<z.ZodString>;
|
|
69
|
+
answers: z.ZodEnum<{
|
|
70
|
+
accept: "accept";
|
|
71
|
+
add: "add";
|
|
72
|
+
check: "check";
|
|
73
|
+
}>;
|
|
74
|
+
bin: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
file: z.ZodString;
|
|
76
|
+
args: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
vitest: z.ZodString;
|
|
79
|
+
args: z.ZodArray<z.ZodString>;
|
|
80
|
+
message: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
readonly render: ({ vitest, message }: {
|
|
83
|
+
projects: string[];
|
|
84
|
+
answers: "accept" | "add" | "check";
|
|
85
|
+
bin: {
|
|
86
|
+
file: string;
|
|
87
|
+
args: readonly string[];
|
|
88
|
+
} | null;
|
|
89
|
+
vitest: string;
|
|
90
|
+
args: string[];
|
|
91
|
+
message: string;
|
|
92
|
+
}) => {
|
|
93
|
+
message: string;
|
|
94
|
+
rows: [string, string][];
|
|
95
|
+
next: {
|
|
96
|
+
type: "text";
|
|
97
|
+
text: string;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}>;
|