@kurvball/rehearse 0.0.0-stage → 1.2.1
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/LICENSE +21 -0
- package/README.md +102 -2
- package/dist/affected/affected.d.ts +22 -0
- package/dist/affected/affected.js +162 -0
- package/dist/affected/index.d.ts +1 -0
- package/dist/affected/index.js +1 -0
- package/dist/args.d.ts +12 -0
- package/dist/args.js +42 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +100 -0
- package/dist/commands/check.d.ts +2 -0
- package/dist/commands/check.js +42 -0
- package/dist/commands/clean.d.ts +2 -0
- package/dist/commands/clean.js +37 -0
- package/dist/commands/command.d.ts +29 -0
- package/dist/commands/command.js +29 -0
- package/dist/commands/compare.d.ts +4 -0
- package/dist/commands/compare.js +84 -0
- package/dist/commands/drive.d.ts +2 -0
- package/dist/commands/drive.js +244 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.js +32 -0
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.js +19 -0
- package/dist/commands/list.d.ts +2 -0
- package/dist/commands/list.js +69 -0
- package/dist/commands/open.d.ts +2 -0
- package/dist/commands/open.js +60 -0
- package/dist/commands/people.d.ts +2 -0
- package/dist/commands/people.js +49 -0
- package/dist/commands/run.d.ts +4 -0
- package/dist/commands/run.js +82 -0
- package/dist/commands/services.d.ts +28 -0
- package/dist/commands/services.js +51 -0
- package/dist/commands/stage.d.ts +7 -0
- package/dist/commands/stage.js +49 -0
- package/dist/commands/up.d.ts +3 -0
- package/dist/commands/up.js +77 -0
- package/dist/commands/validate.d.ts +2 -0
- package/dist/commands/validate.js +35 -0
- package/dist/commands/worlds.d.ts +2 -0
- package/dist/commands/worlds.js +15 -0
- package/dist/compare/announce.d.ts +6 -0
- package/dist/compare/announce.js +27 -0
- package/dist/compare/compare.d.ts +82 -0
- package/dist/compare/compare.js +310 -0
- package/dist/compare/diff.d.ts +15 -0
- package/dist/compare/diff.js +105 -0
- package/dist/compare/index.d.ts +4 -0
- package/dist/compare/index.js +4 -0
- package/dist/compare/setaside.d.ts +29 -0
- package/dist/compare/setaside.js +121 -0
- package/dist/compare/verdict.d.ts +21 -0
- package/dist/compare/verdict.js +30 -0
- package/dist/drive/aria.d.ts +8 -0
- package/dist/drive/aria.js +12 -0
- package/dist/drive/browser.d.ts +34 -0
- package/dist/drive/browser.js +216 -0
- package/dist/drive/daemon.d.ts +1 -0
- package/dist/drive/daemon.js +171 -0
- package/dist/drive/grammar.d.ts +93 -0
- package/dist/drive/grammar.js +303 -0
- package/dist/drive/index.d.ts +4 -0
- package/dist/drive/index.js +4 -0
- package/dist/drive/names.d.ts +24 -0
- package/dist/drive/names.js +97 -0
- package/dist/drive/state.d.ts +13 -0
- package/dist/drive/state.js +28 -0
- package/dist/errors.d.ts +26 -0
- package/dist/errors.js +32 -0
- package/dist/exec.d.ts +16 -0
- package/dist/exec.js +43 -0
- package/dist/git/checkout.d.ts +11 -0
- package/dist/git/checkout.js +84 -0
- package/dist/git/git.d.ts +7 -0
- package/dist/git/git.js +27 -0
- package/dist/git/index.d.ts +2 -0
- package/dist/git/index.js +2 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +15 -0
- package/dist/kinds/all.d.ts +4 -0
- package/dist/kinds/all.js +4 -0
- package/dist/kinds/call/check.d.ts +29 -0
- package/dist/kinds/call/check.js +187 -0
- package/dist/kinds/call/definition.d.ts +16 -0
- package/dist/kinds/call/definition.js +33 -0
- package/dist/kinds/call/hurl.d.ts +65 -0
- package/dist/kinds/call/hurl.js +333 -0
- package/dist/kinds/call/kind.d.ts +8 -0
- package/dist/kinds/call/kind.js +122 -0
- package/dist/kinds/call/send.d.ts +32 -0
- package/dist/kinds/call/send.js +152 -0
- package/dist/kinds/call/words.d.ts +22 -0
- package/dist/kinds/call/words.js +24 -0
- package/dist/kinds/file/kind.d.ts +44 -0
- package/dist/kinds/file/kind.js +331 -0
- package/dist/kinds/file/layouts.d.ts +14 -0
- package/dist/kinds/file/layouts.js +103 -0
- package/dist/kinds/flow/kind.d.ts +21 -0
- package/dist/kinds/flow/kind.js +401 -0
- package/dist/kinds/flow/literal.d.ts +8 -0
- package/dist/kinds/flow/literal.js +148 -0
- package/dist/kinds/index.d.ts +10 -0
- package/dist/kinds/index.js +8 -0
- package/dist/kinds/kind.d.ts +57 -0
- package/dist/kinds/kind.js +21 -0
- package/dist/kinds/piece/canvas.d.ts +18 -0
- package/dist/kinds/piece/canvas.js +165 -0
- package/dist/kinds/piece/conventions.d.ts +12 -0
- package/dist/kinds/piece/conventions.js +101 -0
- package/dist/kinds/piece/csf.d.ts +10 -0
- package/dist/kinds/piece/csf.js +304 -0
- package/dist/kinds/piece/kind.d.ts +12 -0
- package/dist/kinds/piece/kind.js +297 -0
- package/dist/kinds/piece/server.d.ts +23 -0
- package/dist/kinds/piece/server.js +236 -0
- package/dist/manifest/fill.d.ts +4 -0
- package/dist/manifest/fill.js +7 -0
- package/dist/manifest/index.d.ts +5 -0
- package/dist/manifest/index.js +5 -0
- package/dist/manifest/init.d.ts +1 -0
- package/dist/manifest/init.js +47 -0
- package/dist/manifest/load.d.ts +7 -0
- package/dist/manifest/load.js +244 -0
- package/dist/manifest/types.d.ts +253 -0
- package/dist/manifest/types.js +7 -0
- package/dist/manifest/yaml.d.ts +5 -0
- package/dist/manifest/yaml.js +47 -0
- package/dist/people/index.d.ts +1 -0
- package/dist/people/index.js +1 -0
- package/dist/people/people.d.ts +39 -0
- package/dist/people/people.js +139 -0
- package/dist/run/cache.d.ts +20 -0
- package/dist/run/cache.js +98 -0
- package/dist/run/index.d.ts +4 -0
- package/dist/run/index.js +3 -0
- package/dist/run/observation.d.ts +27 -0
- package/dist/run/observation.js +1 -0
- package/dist/run/session.d.ts +32 -0
- package/dist/run/session.js +258 -0
- package/dist/run/vars.d.ts +3 -0
- package/dist/run/vars.js +13 -0
- package/dist/scenarios/area.d.ts +6 -0
- package/dist/scenarios/area.js +37 -0
- package/dist/scenarios/files.d.ts +9 -0
- package/dist/scenarios/files.js +26 -0
- package/dist/scenarios/glob.d.ts +6 -0
- package/dist/scenarios/glob.js +106 -0
- package/dist/scenarios/index.d.ts +4 -0
- package/dist/scenarios/index.js +4 -0
- package/dist/scenarios/read.d.ts +18 -0
- package/dist/scenarios/read.js +54 -0
- package/dist/scenarios/scenario.d.ts +34 -0
- package/dist/scenarios/scenario.js +10 -0
- package/dist/schema.d.ts +14 -0
- package/dist/schema.js +122 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +2 -0
- package/dist/services/registry.d.ts +23 -0
- package/dist/services/registry.js +49 -0
- package/dist/services/service.d.ts +22 -0
- package/dist/services/service.js +284 -0
- package/dist/stage/api.d.ts +28 -0
- package/dist/stage/api.js +206 -0
- package/dist/stage/client/client/api.js +11 -0
- package/dist/stage/client/client/index.js +1 -0
- package/dist/stage/client/features/canvas/call.js +65 -0
- package/dist/stage/client/features/canvas/context.js +1 -0
- package/dist/stage/client/features/canvas/file.js +36 -0
- package/dist/stage/client/features/canvas/flow.js +59 -0
- package/dist/stage/client/features/canvas/index.js +1 -0
- package/dist/stage/client/features/canvas/observed.js +8 -0
- package/dist/stage/client/features/canvas/parts.js +24 -0
- package/dist/stage/client/features/canvas/piece.js +31 -0
- package/dist/stage/client/features/canvas/reach.js +6 -0
- package/dist/stage/client/features/canvas/views.js +16 -0
- package/dist/stage/client/features/list/index.js +1 -0
- package/dist/stage/client/features/list/list.js +53 -0
- package/dist/stage/client/features/list/reach.js +10 -0
- package/dist/stage/client/features/scenario/heading.js +14 -0
- package/dist/stage/client/features/scenario/index.js +1 -0
- package/dist/stage/client/features/scenario/reach.js +9 -0
- package/dist/stage/client/features/scenario/scenario.js +145 -0
- package/dist/stage/client/features/try/index.js +1 -0
- package/dist/stage/client/features/try/reach.js +12 -0
- package/dist/stage/client/features/try/try.js +65 -0
- package/dist/stage/client/index.html +16 -0
- package/dist/stage/client/main.js +24 -0
- package/dist/stage/client/primitives/busy.js +6 -0
- package/dist/stage/client/primitives/focus.js +21 -0
- package/dist/stage/client/primitives/h.js +25 -0
- package/dist/stage/client/primitives/index.js +6 -0
- package/dist/stage/client/primitives/keyed.js +16 -0
- package/dist/stage/client/primitives/say.js +6 -0
- package/dist/stage/client/primitives/state.js +21 -0
- package/dist/stage/client/primitives/types.js +1 -0
- package/dist/stage/client/primitives/verdicts.js +8 -0
- package/dist/stage/client/stage.css +652 -0
- package/dist/stage/compared.d.ts +20 -0
- package/dist/stage/compared.js +58 -0
- package/dist/stage/files.d.ts +4 -0
- package/dist/stage/files.js +59 -0
- package/dist/stage/guard.d.ts +3 -0
- package/dist/stage/guard.js +20 -0
- package/dist/stage/http.d.ts +12 -0
- package/dist/stage/http.js +34 -0
- package/dist/stage/index.d.ts +1 -0
- package/dist/stage/index.js +1 -0
- package/dist/stage/sending.d.ts +18 -0
- package/dist/stage/sending.js +66 -0
- package/dist/stage/server.d.ts +31 -0
- package/dist/stage/server.js +250 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +5 -0
- package/dist/worlds/define.d.ts +16 -0
- package/dist/worlds/define.js +45 -0
- package/dist/worlds/index.d.ts +2 -0
- package/dist/worlds/index.js +2 -0
- package/dist/worlds/worlds.d.ts +15 -0
- package/dist/worlds/worlds.js +46 -0
- package/llms.txt +46 -0
- package/package.json +84 -3
- package/schema/v1/announce.schema.json +28 -0
- package/schema/v1/check.schema.json +67 -0
- package/schema/v1/clean.schema.json +19 -0
- package/schema/v1/common.schema.json +210 -0
- package/schema/v1/comparison.schema.json +298 -0
- package/schema/v1/dependents.schema.json +30 -0
- package/schema/v1/drive.schema.json +112 -0
- package/schema/v1/error.schema.json +26 -0
- package/schema/v1/file-scenario.schema.json +175 -0
- package/schema/v1/flow.schema.json +216 -0
- package/schema/v1/init.schema.json +20 -0
- package/schema/v1/list.schema.json +70 -0
- package/schema/v1/manifest.schema.json +430 -0
- package/schema/v1/observation.schema.json +388 -0
- package/schema/v1/open.schema.json +14 -0
- package/schema/v1/people.schema.json +88 -0
- package/schema/v1/samples/announce.yaml +5 -0
- package/schema/v1/samples/check.json +13 -0
- package/schema/v1/samples/clean.json +1 -0
- package/schema/v1/samples/comparison.json +83 -0
- package/schema/v1/samples/dependents.json +7 -0
- package/schema/v1/samples/drive.json +10 -0
- package/schema/v1/samples/error.json +10 -0
- package/schema/v1/samples/file-scenario.yaml +13 -0
- package/schema/v1/samples/flow.yaml +13 -0
- package/schema/v1/samples/init.json +1 -0
- package/schema/v1/samples/list.json +24 -0
- package/schema/v1/samples/manifest.yaml +55 -0
- package/schema/v1/samples/observation.json +49 -0
- package/schema/v1/samples/open.json +6 -0
- package/schema/v1/samples/people.json +11 -0
- package/schema/v1/samples/services.json +27 -0
- package/schema/v1/samples/stage.json +6 -0
- package/schema/v1/samples/try.json +13 -0
- package/schema/v1/samples/up.json +16 -0
- package/schema/v1/samples/validate.json +7 -0
- package/schema/v1/samples/worlds.json +21 -0
- package/schema/v1/services.schema.json +72 -0
- package/schema/v1/stage.schema.json +14 -0
- package/schema/v1/try.schema.json +56 -0
- package/schema/v1/up.schema.json +55 -0
- package/schema/v1/validate.schema.json +40 -0
- package/schema/v1/worlds.schema.json +33 -0
- package/skill/rehearse/SKILL.md +148 -0
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/manifest.schema.json",
|
|
4
|
+
"title": "rehearse.yaml",
|
|
5
|
+
"description": "What a repository has: the branch production runs, its services, people, worlds, stand-ins and scenarios. Every block is optional. Commands run in the checkout, with placeholders such as {{port}}, {{url}}, {{checkout}}, {{manifest}}, {{world}}, {{person}} and {{scratch}} filled in.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": { "description": "The manifest's version. Only 1 exists.", "const": 1 },
|
|
9
|
+
"base": {
|
|
10
|
+
"description": "The branch production runs, main or dev. Comparisons use it as the base unless told otherwise.",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"default": "main"
|
|
14
|
+
},
|
|
15
|
+
"checkout": {
|
|
16
|
+
"description": "The checkout to run in when none is given, relative to this file. Useful when the manifest is kept outside the product.",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"prepare": {
|
|
20
|
+
"description": "Run once in a fresh checkout of a base commit, before anything else: installing dependencies, building.",
|
|
21
|
+
"$ref": "#/$defs/command"
|
|
22
|
+
},
|
|
23
|
+
"overlay": {
|
|
24
|
+
"description": "Files copied into each checkout after prepare, for a manifest kept outside the product. In a repository that adopts Rehearse, commit them instead.",
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["from", "to"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"from": { "description": "A file or folder, relative to this file.", "type": "string" },
|
|
31
|
+
"to": { "description": "Where it goes, relative to the checkout.", "type": "string" }
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"services": {
|
|
37
|
+
"description": "What can come up: a server, an app, a daemon.",
|
|
38
|
+
"type": "object",
|
|
39
|
+
"propertyNames": { "$ref": "#/$defs/name" },
|
|
40
|
+
"additionalProperties": { "$ref": "#/$defs/service" }
|
|
41
|
+
},
|
|
42
|
+
"signIn": {
|
|
43
|
+
"description": "A command that prints the people you can sign in as, with their tokens, in the sign-in shape: {\"people\": {\"name\": \"token\" | {\"token\": ..., ...}}, \"variables\": {...}}.",
|
|
44
|
+
"oneOf": [
|
|
45
|
+
{ "type": "string", "minLength": 1 },
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"required": ["command"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"command": { "type": "string", "minLength": 1 },
|
|
51
|
+
"service": { "description": "The service that must be up for it to run.", "type": "string" },
|
|
52
|
+
"cwd": { "type": "string" }
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"people": {
|
|
59
|
+
"description": "Who you can sign in as.",
|
|
60
|
+
"type": "object",
|
|
61
|
+
"propertyNames": { "$ref": "#/$defs/name", "not": { "enum": ["you", "nobody", "api"] } },
|
|
62
|
+
"additionalProperties": { "$ref": "#/$defs/person" }
|
|
63
|
+
},
|
|
64
|
+
"worlds": {
|
|
65
|
+
"description": "Named starting states. A world extends another and adds to it.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"propertyNames": { "$ref": "#/$defs/name" },
|
|
68
|
+
"additionalProperties": { "$ref": "#/$defs/world" }
|
|
69
|
+
},
|
|
70
|
+
"standins": {
|
|
71
|
+
"description": "Fakes for what can't run locally, chosen at run time and named in every result.",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"propertyNames": { "$ref": "#/$defs/name" },
|
|
74
|
+
"additionalProperties": { "$ref": "#/$defs/standin" }
|
|
75
|
+
},
|
|
76
|
+
"scenarios": {
|
|
77
|
+
"description": "Where the scenarios are, by kind. A path that starts with ./ or ../ is read beside this file, the same on both sides; any other path is read from each checkout.",
|
|
78
|
+
"type": "object",
|
|
79
|
+
"properties": {
|
|
80
|
+
"pieces": { "$ref": "#/$defs/pieces" },
|
|
81
|
+
"flows": { "$ref": "#/$defs/flows" },
|
|
82
|
+
"calls": { "$ref": "#/$defs/calls" },
|
|
83
|
+
"files": { "$ref": "#/$defs/files" }
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
},
|
|
87
|
+
"defaults": {
|
|
88
|
+
"description": "What a scenario runs with when it says nothing.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"service": { "type": "string" },
|
|
92
|
+
"world": { "type": "string" },
|
|
93
|
+
"person": { "type": "string" }
|
|
94
|
+
},
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
},
|
|
97
|
+
"setAside": { "$ref": "#/$defs/setAside" },
|
|
98
|
+
"affected": {
|
|
99
|
+
"description": "How rehearse list --affected finds what a change reaches.",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"graph": {
|
|
103
|
+
"description": "A command that prints the dependents of the files appended to it, as schema/v1/dependents.schema.json says. By default, Ashlar's when Ashlar is present.",
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
},
|
|
109
|
+
"budget": {
|
|
110
|
+
"description": "How much may run at once on this machine.",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"services": {
|
|
114
|
+
"description": "Sets of services up at once. Default 1.",
|
|
115
|
+
"type": "integer",
|
|
116
|
+
"minimum": 1,
|
|
117
|
+
"maximum": 4
|
|
118
|
+
},
|
|
119
|
+
"checkouts": {
|
|
120
|
+
"description": "Base checkouts kept under .rehearse/checkouts. Default 3.",
|
|
121
|
+
"type": "integer",
|
|
122
|
+
"minimum": 1
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"$defs": {
|
|
130
|
+
"name": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_-]*$" },
|
|
131
|
+
"command": { "type": "string", "minLength": 1 },
|
|
132
|
+
"env": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"propertyNames": { "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
135
|
+
"additionalProperties": { "type": ["string", "number", "boolean"] }
|
|
136
|
+
},
|
|
137
|
+
"service": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": ["up"],
|
|
140
|
+
"properties": {
|
|
141
|
+
"describe": { "type": "string" },
|
|
142
|
+
"up": {
|
|
143
|
+
"description": "Brings it up. It may keep running, or start a daemon and exit 0.",
|
|
144
|
+
"$ref": "#/$defs/command"
|
|
145
|
+
},
|
|
146
|
+
"cwd": { "description": "Where up runs, relative to the checkout.", "type": "string" },
|
|
147
|
+
"port": {
|
|
148
|
+
"description": "The port it listens on; auto picks a free one and gives it as {{port}}.",
|
|
149
|
+
"oneOf": [{ "type": "integer", "minimum": 1, "maximum": 65535 }, { "const": "auto" }]
|
|
150
|
+
},
|
|
151
|
+
"url": {
|
|
152
|
+
"description": "Where it answers. Default http://127.0.0.1:{{port}} when it has a port.",
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"ready": {
|
|
156
|
+
"description": "How Rehearse knows it is ready: a URL that answers, a command that exits 0, or a line in its log.",
|
|
157
|
+
"oneOf": [
|
|
158
|
+
{ "type": "string", "minLength": 1 },
|
|
159
|
+
{
|
|
160
|
+
"type": "object",
|
|
161
|
+
"properties": {
|
|
162
|
+
"http": { "type": "string" },
|
|
163
|
+
"command": { "type": "string" },
|
|
164
|
+
"log": {
|
|
165
|
+
"description": "A regular expression its output matches when ready.",
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"minProperties": 1,
|
|
170
|
+
"maxProperties": 1,
|
|
171
|
+
"additionalProperties": false
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"timeout": {
|
|
176
|
+
"description": "Seconds to wait until ready. Default 60.",
|
|
177
|
+
"type": "number",
|
|
178
|
+
"exclusiveMinimum": 0
|
|
179
|
+
},
|
|
180
|
+
"down": {
|
|
181
|
+
"description": "Stops it. By default its process group is ended.",
|
|
182
|
+
"$ref": "#/$defs/command"
|
|
183
|
+
},
|
|
184
|
+
"env": { "$ref": "#/$defs/env" },
|
|
185
|
+
"isolate": {
|
|
186
|
+
"description": "How two copies (base and head) keep apart: a scratch folder per copy, given through an environment variable.",
|
|
187
|
+
"type": "object",
|
|
188
|
+
"required": ["env"],
|
|
189
|
+
"properties": { "env": { "type": "string" } },
|
|
190
|
+
"additionalProperties": false
|
|
191
|
+
},
|
|
192
|
+
"drive": {
|
|
193
|
+
"description": "The service's own driver for flows and rehearse drive, such as 'pnpm drive'. It takes the drive steps and answers in the drive result JSON (drive.schema.json).",
|
|
194
|
+
"$ref": "#/$defs/command"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"additionalProperties": false
|
|
198
|
+
},
|
|
199
|
+
"person": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"describe": { "type": "string" },
|
|
203
|
+
"real": {
|
|
204
|
+
"description": "How real the person is: local (a sign-in the local services trust), stand-in (a fake identity), real (a real account).",
|
|
205
|
+
"enum": ["local", "stand-in", "real"],
|
|
206
|
+
"default": "local"
|
|
207
|
+
},
|
|
208
|
+
"default": { "type": "boolean" },
|
|
209
|
+
"token": {
|
|
210
|
+
"description": "Where this person's credential comes from when signIn doesn't give it.",
|
|
211
|
+
"type": "object",
|
|
212
|
+
"properties": {
|
|
213
|
+
"command": { "type": "string" },
|
|
214
|
+
"env": { "type": "string" }
|
|
215
|
+
},
|
|
216
|
+
"minProperties": 1,
|
|
217
|
+
"maxProperties": 1,
|
|
218
|
+
"additionalProperties": false
|
|
219
|
+
},
|
|
220
|
+
"browser": {
|
|
221
|
+
"description": "How a browser signs in as this person: a header on every request, values put in storage, or sign-in steps. {{token}} is the person's token.",
|
|
222
|
+
"type": "object",
|
|
223
|
+
"properties": {
|
|
224
|
+
"headers": { "type": "object", "additionalProperties": { "type": "string" } },
|
|
225
|
+
"storage": { "type": "object", "additionalProperties": { "type": "string" } },
|
|
226
|
+
"cookies": {
|
|
227
|
+
"type": "array",
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"required": ["name", "value"],
|
|
231
|
+
"properties": {
|
|
232
|
+
"name": { "type": "string" },
|
|
233
|
+
"value": { "type": "string" },
|
|
234
|
+
"path": { "type": "string" }
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"steps": { "$ref": "flow.schema.json#/properties/steps" }
|
|
240
|
+
},
|
|
241
|
+
"additionalProperties": false
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"additionalProperties": false
|
|
245
|
+
},
|
|
246
|
+
"world": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"describe": { "type": "string" },
|
|
250
|
+
"extends": { "description": "The world this one builds on.", "type": "string" },
|
|
251
|
+
"add": {
|
|
252
|
+
"description": "Adds this world on top of the one it extends, once services are up.",
|
|
253
|
+
"$ref": "#/$defs/command"
|
|
254
|
+
},
|
|
255
|
+
"before": {
|
|
256
|
+
"description": "Adds this world before services come up, such as files the services read when they start. No service is up yet, so {{port}}, {{url}} and {{scratch}} are not filled.",
|
|
257
|
+
"$ref": "#/$defs/command"
|
|
258
|
+
},
|
|
259
|
+
"default": { "type": "boolean" }
|
|
260
|
+
},
|
|
261
|
+
"additionalProperties": false
|
|
262
|
+
},
|
|
263
|
+
"standin": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"required": ["replaces"],
|
|
266
|
+
"properties": {
|
|
267
|
+
"replaces": { "description": "What it stands in for.", "type": "string" },
|
|
268
|
+
"by": { "description": "What plays it: a file, a package, a command.", "type": "string" },
|
|
269
|
+
"fidelity": {
|
|
270
|
+
"description": "fake: written by hand. recorded: replays real answers. local: the real thing, run locally.",
|
|
271
|
+
"enum": ["fake", "recorded", "local"],
|
|
272
|
+
"default": "fake"
|
|
273
|
+
},
|
|
274
|
+
"services": {
|
|
275
|
+
"description": "The services it applies to. Default all.",
|
|
276
|
+
"type": "array",
|
|
277
|
+
"items": { "type": "string" }
|
|
278
|
+
},
|
|
279
|
+
"env": { "description": "Set on those services while the stand-in is used.", "$ref": "#/$defs/env" },
|
|
280
|
+
"real": {
|
|
281
|
+
"description": "How to use the real dependency instead (--real <name>). Without it, the real one can't be chosen locally.",
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": { "env": { "$ref": "#/$defs/env" } },
|
|
284
|
+
"additionalProperties": false
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"additionalProperties": false
|
|
288
|
+
},
|
|
289
|
+
"paths": {
|
|
290
|
+
"description": "Globs: * stops at /, ** crosses folders. Or entries that also say which files they cover.",
|
|
291
|
+
"type": "array",
|
|
292
|
+
"items": {
|
|
293
|
+
"oneOf": [
|
|
294
|
+
{ "type": "string", "minLength": 1 },
|
|
295
|
+
{
|
|
296
|
+
"type": "object",
|
|
297
|
+
"required": ["path"],
|
|
298
|
+
"properties": {
|
|
299
|
+
"path": { "type": "string", "minLength": 1 },
|
|
300
|
+
"covers": {
|
|
301
|
+
"description": "Files whose change reaches these scenarios, for rehearse list --affected.",
|
|
302
|
+
"type": "array",
|
|
303
|
+
"items": { "type": "string" }
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"additionalProperties": false
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"pieces": {
|
|
312
|
+
"oneOf": [
|
|
313
|
+
{ "$ref": "#/$defs/paths" },
|
|
314
|
+
{
|
|
315
|
+
"type": "object",
|
|
316
|
+
"required": ["paths"],
|
|
317
|
+
"properties": {
|
|
318
|
+
"paths": { "$ref": "#/$defs/paths" },
|
|
319
|
+
"preview": {
|
|
320
|
+
"description": "A Storybook-style preview module (decorators, parameters, global styles), relative to the piece's package.",
|
|
321
|
+
"type": "string"
|
|
322
|
+
},
|
|
323
|
+
"styles": {
|
|
324
|
+
"description": "A stylesheet every piece loads, relative to the piece's package.",
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"config": {
|
|
328
|
+
"description": "The Vite config to use, relative to the piece's package.",
|
|
329
|
+
"type": "string"
|
|
330
|
+
},
|
|
331
|
+
"schemes": {
|
|
332
|
+
"description": "The colour schemes each piece is observed in. Default light.",
|
|
333
|
+
"type": "array",
|
|
334
|
+
"items": { "enum": ["light", "dark"] },
|
|
335
|
+
"minItems": 1,
|
|
336
|
+
"uniqueItems": true
|
|
337
|
+
},
|
|
338
|
+
"compare": {
|
|
339
|
+
"description": "What is compared. Default tree, errors and violations; screenshot only when named.",
|
|
340
|
+
"type": "array",
|
|
341
|
+
"items": { "enum": ["tree", "errors", "violations", "screenshot"] },
|
|
342
|
+
"minItems": 1,
|
|
343
|
+
"uniqueItems": true
|
|
344
|
+
},
|
|
345
|
+
"viewport": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"required": ["width", "height"],
|
|
348
|
+
"properties": { "width": { "type": "integer" }, "height": { "type": "integer" } },
|
|
349
|
+
"additionalProperties": false
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"additionalProperties": false
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
"flows": {
|
|
357
|
+
"oneOf": [
|
|
358
|
+
{ "$ref": "#/$defs/paths" },
|
|
359
|
+
{
|
|
360
|
+
"type": "object",
|
|
361
|
+
"required": ["paths"],
|
|
362
|
+
"properties": {
|
|
363
|
+
"paths": { "$ref": "#/$defs/paths" },
|
|
364
|
+
"service": { "description": "The service flows open when they name none.", "type": "string" }
|
|
365
|
+
},
|
|
366
|
+
"additionalProperties": false
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"calls": {
|
|
371
|
+
"oneOf": [
|
|
372
|
+
{ "$ref": "#/$defs/paths" },
|
|
373
|
+
{
|
|
374
|
+
"type": "object",
|
|
375
|
+
"required": ["paths"],
|
|
376
|
+
"properties": {
|
|
377
|
+
"paths": { "$ref": "#/$defs/paths" },
|
|
378
|
+
"service": {
|
|
379
|
+
"description": "The service whose URL is {{api}}. Default the one named api, else the first with a URL.",
|
|
380
|
+
"type": "string"
|
|
381
|
+
},
|
|
382
|
+
"variables": {
|
|
383
|
+
"description": "More variables every call file can use.",
|
|
384
|
+
"type": "object",
|
|
385
|
+
"additionalProperties": { "type": "string" }
|
|
386
|
+
},
|
|
387
|
+
"unordered": {
|
|
388
|
+
"description": "Compare arrays in answers without their order.",
|
|
389
|
+
"type": "boolean"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"additionalProperties": false
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"files": {
|
|
397
|
+
"oneOf": [
|
|
398
|
+
{ "$ref": "#/$defs/paths" },
|
|
399
|
+
{
|
|
400
|
+
"type": "object",
|
|
401
|
+
"required": ["paths"],
|
|
402
|
+
"properties": { "paths": { "$ref": "#/$defs/paths" } },
|
|
403
|
+
"additionalProperties": false
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
"setAside": {
|
|
408
|
+
"description": "More to set aside before comparing, and what never to set aside.",
|
|
409
|
+
"type": "object",
|
|
410
|
+
"properties": {
|
|
411
|
+
"keys": {
|
|
412
|
+
"description": "Regular expressions over JSON keys whose values are set aside.",
|
|
413
|
+
"type": "array",
|
|
414
|
+
"items": { "type": "string" }
|
|
415
|
+
},
|
|
416
|
+
"values": {
|
|
417
|
+
"description": "Regular expressions over values (or text) that are set aside.",
|
|
418
|
+
"type": "array",
|
|
419
|
+
"items": { "type": "string" }
|
|
420
|
+
},
|
|
421
|
+
"keep": {
|
|
422
|
+
"description": "JSON paths or column names never set aside, such as $.expiresAt.",
|
|
423
|
+
"type": "array",
|
|
424
|
+
"items": { "type": "string" }
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"additionalProperties": false
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|