@kurvball/rehearse 0.0.0-stage → 1.3.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/LICENSE +21 -0
- package/README.md +107 -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 +30 -0
- package/dist/commands/command.js +38 -0
- package/dist/commands/compare.d.ts +4 -0
- package/dist/commands/compare.js +89 -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 +84 -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 +53 -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 +83 -0
- package/dist/compare/compare.js +335 -0
- package/dist/compare/diff.d.ts +15 -0
- package/dist/compare/diff.js +105 -0
- package/dist/compare/index.d.ts +5 -0
- package/dist/compare/index.js +5 -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 +90 -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/git/seed.d.ts +3 -0
- package/dist/git/seed.js +115 -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 +412 -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 +63 -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 +245 -0
- package/dist/manifest/types.d.ts +255 -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 +5 -0
- package/dist/run/index.js +4 -0
- package/dist/run/observation.d.ts +27 -0
- package/dist/run/observation.js +1 -0
- package/dist/run/parallel.d.ts +28 -0
- package/dist/run/parallel.js +140 -0
- package/dist/run/session.d.ts +35 -0
- package/dist/run/session.js +399 -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 +23 -0
- package/dist/services/service.js +313 -0
- package/dist/stage/api.d.ts +30 -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 +33 -0
- package/dist/stage/server.js +253 -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 +434 -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,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/comparison.schema.json",
|
|
4
|
+
"title": "Rehearse v1: rehearse compare --json",
|
|
5
|
+
"description": "Scenarios run on a base and on a head, compared after what is set aside, each sorted into one verdict.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"v",
|
|
9
|
+
"ok",
|
|
10
|
+
"base",
|
|
11
|
+
"head",
|
|
12
|
+
"line",
|
|
13
|
+
"counts",
|
|
14
|
+
"scenarios",
|
|
15
|
+
"notRun",
|
|
16
|
+
"gone",
|
|
17
|
+
"announcedUnchanged",
|
|
18
|
+
"byChange"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"v": {
|
|
22
|
+
"$ref": "common.schema.json#/$defs/v"
|
|
23
|
+
},
|
|
24
|
+
"ok": {
|
|
25
|
+
"description": "true when both sides came up, every scenario ran, and nothing fails on the head or changed without saying so.",
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
},
|
|
28
|
+
"base": {
|
|
29
|
+
"$ref": "#/$defs/side"
|
|
30
|
+
},
|
|
31
|
+
"head": {
|
|
32
|
+
"$ref": "#/$defs/side"
|
|
33
|
+
},
|
|
34
|
+
"line": {
|
|
35
|
+
"description": "The comparison in one line, as a gate shows it.",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"examples": [
|
|
38
|
+
"11 as on the base · 1 new · 1 changed and said so · 5 changed without saying so · 1 fails on the head"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"counts": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["same", "said", "unsaid", "new", "fails", "gone", "notRun"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"same": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"minimum": 0
|
|
48
|
+
},
|
|
49
|
+
"said": {
|
|
50
|
+
"type": "integer",
|
|
51
|
+
"minimum": 0
|
|
52
|
+
},
|
|
53
|
+
"announced": {
|
|
54
|
+
"description": "Of said: announced by the change.",
|
|
55
|
+
"type": "integer",
|
|
56
|
+
"minimum": 0
|
|
57
|
+
},
|
|
58
|
+
"edited": {
|
|
59
|
+
"description": "Of said: the scenario's own definition was edited.",
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"minimum": 0
|
|
62
|
+
},
|
|
63
|
+
"unsaid": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"minimum": 0
|
|
66
|
+
},
|
|
67
|
+
"new": {
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"minimum": 0
|
|
70
|
+
},
|
|
71
|
+
"fails": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"minimum": 0
|
|
74
|
+
},
|
|
75
|
+
"failsOnBoth": {
|
|
76
|
+
"description": "Of fails: failing on the base as well, so not this change's doing.",
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 0
|
|
79
|
+
},
|
|
80
|
+
"gone": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 0
|
|
83
|
+
},
|
|
84
|
+
"notRun": {
|
|
85
|
+
"description": "Scenarios that couldn't be run on a side, so have no verdict.",
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"minimum": 0
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"scenarios": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"required": [
|
|
96
|
+
"scenario",
|
|
97
|
+
"verdict",
|
|
98
|
+
"changed",
|
|
99
|
+
"said",
|
|
100
|
+
"failsOnBase",
|
|
101
|
+
"failsOnHead",
|
|
102
|
+
"differences",
|
|
103
|
+
"setAside"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"scenario": {
|
|
107
|
+
"$ref": "common.schema.json#/$defs/scenarioRef"
|
|
108
|
+
},
|
|
109
|
+
"verdict": {
|
|
110
|
+
"$ref": "common.schema.json#/$defs/verdict"
|
|
111
|
+
},
|
|
112
|
+
"changed": {
|
|
113
|
+
"description": "Whether its observation differs, after what is set aside.",
|
|
114
|
+
"type": "boolean"
|
|
115
|
+
},
|
|
116
|
+
"said": {
|
|
117
|
+
"description": "announced when the change announced it (this wins, since it carries why), else edited when its own definition changed, else null.",
|
|
118
|
+
"enum": ["announced", "edited", null]
|
|
119
|
+
},
|
|
120
|
+
"why": {
|
|
121
|
+
"description": "The announcement's line, when it was announced.",
|
|
122
|
+
"type": ["string", "null"]
|
|
123
|
+
},
|
|
124
|
+
"failsOnBase": {
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
},
|
|
127
|
+
"failsOnHead": {
|
|
128
|
+
"type": "boolean"
|
|
129
|
+
},
|
|
130
|
+
"differences": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"items": {
|
|
133
|
+
"$ref": "common.schema.json#/$defs/difference"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"setAside": {
|
|
137
|
+
"$ref": "common.schema.json#/$defs/setAside"
|
|
138
|
+
},
|
|
139
|
+
"failures": {
|
|
140
|
+
"description": "How it fails on the head.",
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": {
|
|
143
|
+
"$ref": "common.schema.json#/$defs/failure"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"baseFailures": {
|
|
147
|
+
"description": "How it fails on the base.",
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"$ref": "common.schema.json#/$defs/failure"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"cached": {
|
|
154
|
+
"description": "Whether the base's observation came from the cache.",
|
|
155
|
+
"type": "boolean"
|
|
156
|
+
},
|
|
157
|
+
"observations": {
|
|
158
|
+
"description": "Where the two observations are kept, for the stage.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"properties": {
|
|
161
|
+
"base": {
|
|
162
|
+
"type": ["string", "null"]
|
|
163
|
+
},
|
|
164
|
+
"head": {
|
|
165
|
+
"type": ["string", "null"]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"edited": {
|
|
170
|
+
"description": "Whether its own definition changed between base and head, whatever said is.",
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"gone": {
|
|
177
|
+
"description": "Scenarios on the base that the head no longer has.",
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": {
|
|
180
|
+
"$ref": "common.schema.json#/$defs/scenarioRef"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"announcedUnchanged": {
|
|
184
|
+
"description": "Scenarios the change announced that didn't change: a note for the reader, never a failure.",
|
|
185
|
+
"type": "array",
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"required": ["scenario", "why"],
|
|
189
|
+
"properties": {
|
|
190
|
+
"scenario": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"why": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"byChange": {
|
|
200
|
+
"description": "Changes made without saying so, grouped by what changed: one change in many scenarios is one thing to look at.",
|
|
201
|
+
"type": "array",
|
|
202
|
+
"items": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"required": ["path", "scenarios"],
|
|
205
|
+
"properties": {
|
|
206
|
+
"path": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"scenarios": {
|
|
210
|
+
"type": "array",
|
|
211
|
+
"items": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"standins": {
|
|
219
|
+
"type": "array",
|
|
220
|
+
"items": {
|
|
221
|
+
"$ref": "common.schema.json#/$defs/standin"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"ms": {
|
|
225
|
+
"type": "integer",
|
|
226
|
+
"minimum": 0
|
|
227
|
+
},
|
|
228
|
+
"notRun": {
|
|
229
|
+
"description": "Scenarios that couldn't be run on one side while the side itself came up: a world, the sign-in or the runner broke for them. They have no verdict.",
|
|
230
|
+
"type": "array",
|
|
231
|
+
"items": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"required": ["scenario", "side", "step", "says"],
|
|
234
|
+
"properties": {
|
|
235
|
+
"scenario": {
|
|
236
|
+
"$ref": "common.schema.json#/$defs/scenarioRef"
|
|
237
|
+
},
|
|
238
|
+
"side": {
|
|
239
|
+
"enum": ["base", "head"]
|
|
240
|
+
},
|
|
241
|
+
"step": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"examples": ["world", "signIn", "runner", "driver"]
|
|
244
|
+
},
|
|
245
|
+
"says": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"refused": {
|
|
252
|
+
"description": "Scenario files Rehearse couldn't read, on either side.",
|
|
253
|
+
"type": "array",
|
|
254
|
+
"items": {
|
|
255
|
+
"allOf": [
|
|
256
|
+
{
|
|
257
|
+
"$ref": "common.schema.json#/$defs/refused"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "object",
|
|
261
|
+
"required": ["side"],
|
|
262
|
+
"properties": {
|
|
263
|
+
"side": {
|
|
264
|
+
"enum": ["base", "head"]
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"$defs": {
|
|
273
|
+
"side": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"required": ["checkout", "ok"],
|
|
276
|
+
"properties": {
|
|
277
|
+
"checkout": {
|
|
278
|
+
"$ref": "common.schema.json#/$defs/checkout"
|
|
279
|
+
},
|
|
280
|
+
"ok": {
|
|
281
|
+
"description": "false when this side couldn't be prepared or its services didn't come up; then no scenario has a verdict.",
|
|
282
|
+
"type": "boolean"
|
|
283
|
+
},
|
|
284
|
+
"step": {
|
|
285
|
+
"type": ["string", "null"]
|
|
286
|
+
},
|
|
287
|
+
"says": {
|
|
288
|
+
"type": ["string", "null"]
|
|
289
|
+
},
|
|
290
|
+
"cached": {
|
|
291
|
+
"description": "How many observations came from the cache.",
|
|
292
|
+
"type": "integer",
|
|
293
|
+
"minimum": 0
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/dependents.schema.json",
|
|
4
|
+
"title": "Rehearse v1: what Rehearse reads from an import graph",
|
|
5
|
+
"description": "What `ashlar dependents <files...> --json` prints, run at the repository's root, for rehearse list --affected. Every file given appears either as a key of dependents (with [] when nothing reaches it) or in unknown. Each key lists every file that reaches it through imports, directly or not, the file itself excluded. Paths are relative to the root, with forward slashes. The command exits 0 and prints this one object on stdout; any other exit, or stdout that isn't this object, is a failure, and Rehearse falls back to packages and says why. v is the version of Rehearse's contract, not of the tool. Any other import-graph tool may print the same and be named in rehearse.yaml under affected.graph.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["v", "dependents"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"v": {
|
|
10
|
+
"$ref": "common.schema.json#/$defs/v"
|
|
11
|
+
},
|
|
12
|
+
"dependents": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"uniqueItems": true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unknown": {
|
|
23
|
+
"description": "Files given that the graph doesn't hold (not source, or outside what it reads).",
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/drive.schema.json",
|
|
4
|
+
"title": "Rehearse v1: rehearse drive --json",
|
|
5
|
+
"description": "One step's result, in the drive result shape ({ok, command, ms, file, tree} or {ok: false, command, ms, failure, says}, as Ashlar's DriveResult reads it), with v and driver added, so a reader of that shape reads it unchanged. Two commands are Rehearse's own: start (it starts the driver) and fill (it fills a field by its name, in Rehearse's browser only); a service's own driver may have neither. Exit codes: 0 done, 1 failed, 2 usage.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": ["v", "ok", "command", "ms", "file", "tree", "driver"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"v": {
|
|
12
|
+
"$ref": "common.schema.json#/$defs/v"
|
|
13
|
+
},
|
|
14
|
+
"ok": {
|
|
15
|
+
"const": true
|
|
16
|
+
},
|
|
17
|
+
"command": {
|
|
18
|
+
"$ref": "#/$defs/command"
|
|
19
|
+
},
|
|
20
|
+
"ms": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0
|
|
23
|
+
},
|
|
24
|
+
"file": {
|
|
25
|
+
"description": "The file a screenshot or a recording saved.",
|
|
26
|
+
"type": ["string", "null"]
|
|
27
|
+
},
|
|
28
|
+
"tree": {
|
|
29
|
+
"description": "The accessibility tree a snapshot printed.",
|
|
30
|
+
"type": ["string", "null"]
|
|
31
|
+
},
|
|
32
|
+
"driver": {
|
|
33
|
+
"description": "Which driver did it; null for a stop when nothing was being driven.",
|
|
34
|
+
"oneOf": [
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/$defs/driver"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "null"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"errors": {
|
|
44
|
+
"description": "Errors the page logged during the step.",
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"said": {
|
|
51
|
+
"description": "Anything the driver couldn't do, such as signing in as a person.",
|
|
52
|
+
"type": ["string", "null"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": ["v", "ok", "command", "ms", "failure", "says", "driver"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"v": {
|
|
61
|
+
"$ref": "common.schema.json#/$defs/v"
|
|
62
|
+
},
|
|
63
|
+
"ok": {
|
|
64
|
+
"const": false
|
|
65
|
+
},
|
|
66
|
+
"command": {
|
|
67
|
+
"oneOf": [
|
|
68
|
+
{
|
|
69
|
+
"$ref": "#/$defs/command"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "null"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"ms": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"minimum": 0
|
|
79
|
+
},
|
|
80
|
+
"failure": {
|
|
81
|
+
"description": "Why a step failed; more may come.",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"examples": ["usage", "not_found", "ambiguous", "not_running", "timed_out", "crashed"]
|
|
84
|
+
},
|
|
85
|
+
"says": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"driver": {
|
|
89
|
+
"oneOf": [
|
|
90
|
+
{
|
|
91
|
+
"$ref": "#/$defs/driver"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "null"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"$defs": {
|
|
102
|
+
"command": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"examples": ["start", "click", "type", "key", "fill", "snapshot", "screenshot", "record", "stop"]
|
|
105
|
+
},
|
|
106
|
+
"driver": {
|
|
107
|
+
"description": "service: the service's own driver. browser: Rehearse's browser. More may come.",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"examples": ["service", "browser"]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/error.schema.json",
|
|
4
|
+
"title": "Rehearse v1: a refusal",
|
|
5
|
+
"description": "What any command prints with --json when it can't do what it was asked. It exits 2 for a usage error and 1 otherwise.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["v", "ok", "error"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"v": { "$ref": "common.schema.json#/$defs/v" },
|
|
10
|
+
"ok": { "const": false },
|
|
11
|
+
"error": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["code", "says"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"code": {
|
|
16
|
+
"description": "A stable word for the kind of refusal, such as usage, no_manifest, manifest, no_scenario, service, git.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^[a-z][a-z_]*$"
|
|
19
|
+
},
|
|
20
|
+
"says": { "description": "What went wrong and what to do, in plain words.", "type": "string" },
|
|
21
|
+
"file": { "type": "string" },
|
|
22
|
+
"line": { "type": "integer", "minimum": 1 }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/file-scenario.schema.json",
|
|
4
|
+
"title": "*.rehearse.yaml",
|
|
5
|
+
"description": "A file scenario: an input, a run, and the output it writes, compared by its own layout. Placeholders: {{input}} (the input file), {{output}} (a scratch folder for the output), {{here}} (this file's folder), {{checkout}}, {{manifest}}, {{world}}, {{person}}, and each service's {{<name>_url}}.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name", "run", "output"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"description": "What it tries, in plain words.",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1
|
|
13
|
+
},
|
|
14
|
+
"describe": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"world": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"person": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"services": {
|
|
24
|
+
"description": "Services that must be up while it runs.",
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"covers": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"input": {
|
|
37
|
+
"description": "The input: a file beside this one, or a command that writes {{input}}.",
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"file": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"command": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"name": {
|
|
47
|
+
"description": "The input file's name in the scratch folder, when a command writes it. Default input.",
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"minProperties": 1,
|
|
52
|
+
"additionalProperties": false
|
|
53
|
+
},
|
|
54
|
+
"run": {
|
|
55
|
+
"description": "The command that turns the input into the output, run in the checkout.",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"minLength": 1
|
|
58
|
+
},
|
|
59
|
+
"cwd": {
|
|
60
|
+
"description": "Where run runs, relative to the checkout.",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"env": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": {
|
|
66
|
+
"type": ["string", "number", "boolean"]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"timeout": {
|
|
70
|
+
"description": "Seconds. Default 120.",
|
|
71
|
+
"type": "number",
|
|
72
|
+
"exclusiveMinimum": 0
|
|
73
|
+
},
|
|
74
|
+
"output": {
|
|
75
|
+
"oneOf": [
|
|
76
|
+
{
|
|
77
|
+
"$ref": "#/$defs/output"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"$ref": "#/$defs/output"
|
|
83
|
+
},
|
|
84
|
+
"minItems": 1
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"setAside": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"columns": {
|
|
92
|
+
"description": "Columns never compared, such as a generated id or a timestamp.",
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"values": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"keep": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"$defs": {
|
|
116
|
+
"output": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"required": ["file", "layout"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"file": {
|
|
121
|
+
"description": "The output file, relative to {{output}}, or an absolute path such as {{checkout}}/out/report.csv.",
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"layout": {
|
|
125
|
+
"enum": ["csv", "tsv", "json", "lines", "fixed", "zip"]
|
|
126
|
+
},
|
|
127
|
+
"header": {
|
|
128
|
+
"description": "csv and tsv: whether the first row names the columns. Default true.",
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"columns": {
|
|
132
|
+
"description": "csv and tsv without a header: the columns' names. fixed: each column's name, start and width.",
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"oneOf": [
|
|
136
|
+
{
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "object",
|
|
141
|
+
"required": ["name", "start", "width"],
|
|
142
|
+
"properties": {
|
|
143
|
+
"name": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
},
|
|
146
|
+
"start": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 1
|
|
149
|
+
},
|
|
150
|
+
"width": {
|
|
151
|
+
"type": "integer",
|
|
152
|
+
"minimum": 1
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"unordered": {
|
|
161
|
+
"description": "Compare rows (or array items) without their order.",
|
|
162
|
+
"type": "boolean"
|
|
163
|
+
},
|
|
164
|
+
"entries": {
|
|
165
|
+
"description": "zip: the layout of each entry, by glob. Entries no glob matches are compared as lines. skip compares only that an entry is there (for one that carries its own render time, such as a PDF); zip reads an archive inside the archive.",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": {
|
|
168
|
+
"enum": ["csv", "tsv", "json", "lines", "zip", "skip"]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"additionalProperties": false
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|