@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,388 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/observation.schema.json",
|
|
4
|
+
"title": "Rehearse v1: rehearse run --json",
|
|
5
|
+
"description": "One observation: a scenario run once on one checkout, as one person, from one world. Stored raw; what is set aside is applied only when comparing. Tokens are scrubbed.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"v",
|
|
9
|
+
"ok",
|
|
10
|
+
"scenario",
|
|
11
|
+
"checkout",
|
|
12
|
+
"world",
|
|
13
|
+
"person",
|
|
14
|
+
"standins",
|
|
15
|
+
"failures",
|
|
16
|
+
"observed",
|
|
17
|
+
"ms",
|
|
18
|
+
"at",
|
|
19
|
+
"rehearse"
|
|
20
|
+
],
|
|
21
|
+
"properties": {
|
|
22
|
+
"v": {
|
|
23
|
+
"$ref": "common.schema.json#/$defs/v"
|
|
24
|
+
},
|
|
25
|
+
"ok": {
|
|
26
|
+
"description": "Whether the scenario ran and its own checks held. false means it fails: a call's status or assert, a file run that exited non-zero, a flow step that stopped, a piece that threw.",
|
|
27
|
+
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"scenario": {
|
|
30
|
+
"$ref": "common.schema.json#/$defs/scenarioRef"
|
|
31
|
+
},
|
|
32
|
+
"checkout": {
|
|
33
|
+
"$ref": "common.schema.json#/$defs/checkout"
|
|
34
|
+
},
|
|
35
|
+
"world": {
|
|
36
|
+
"type": ["string", "null"]
|
|
37
|
+
},
|
|
38
|
+
"person": {
|
|
39
|
+
"$ref": "common.schema.json#/$defs/person"
|
|
40
|
+
},
|
|
41
|
+
"standins": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"$ref": "common.schema.json#/$defs/standin"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"failures": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"$ref": "common.schema.json#/$defs/failure"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"broke": {
|
|
54
|
+
"description": "Set when something around the scenario broke, not the scenario: the checkout wasn't prepared, a service didn't come up, the sign-in or the world failed. Such a run is never cached.",
|
|
55
|
+
"oneOf": [
|
|
56
|
+
{
|
|
57
|
+
"type": "null"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["step", "says"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"step": {
|
|
64
|
+
"description": "Where it broke. More may come.",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"examples": ["prepare", "overlay", "up", "ready", "signIn", "world", "driver", "runner"]
|
|
67
|
+
},
|
|
68
|
+
"says": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"observed": {
|
|
76
|
+
"description": "What the kind observes; its shape depends on scenario.kind. null when broke is set and nothing was observed.",
|
|
77
|
+
"oneOf": [
|
|
78
|
+
{
|
|
79
|
+
"type": "null"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"$ref": "#/$defs/call"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"$ref": "#/$defs/file"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"$ref": "#/$defs/flow"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"$ref": "#/$defs/piece"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"$ref": "#/$defs/other"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"artifacts": {
|
|
99
|
+
"description": "Files the run kept: screenshots, outputs, logs.",
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["kind", "path"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"kind": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"path": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"label": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"ms": {
|
|
118
|
+
"type": "integer",
|
|
119
|
+
"minimum": 0
|
|
120
|
+
},
|
|
121
|
+
"at": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "date-time"
|
|
124
|
+
},
|
|
125
|
+
"rehearse": {
|
|
126
|
+
"description": "The Rehearse version that ran it.",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"cached": {
|
|
130
|
+
"description": "True when this observation was read from the baseline cache.",
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
133
|
+
"runner": {
|
|
134
|
+
"description": "The kind runner's version that observed it: part of the cache key.",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"cacheKey": {
|
|
138
|
+
"description": "The key it is cached under, when its checkout is a clean commit.",
|
|
139
|
+
"type": ["string", "null"]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"$defs": {
|
|
143
|
+
"call": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"required": ["kind", "request", "who", "status"],
|
|
146
|
+
"properties": {
|
|
147
|
+
"kind": {
|
|
148
|
+
"const": "call"
|
|
149
|
+
},
|
|
150
|
+
"request": {
|
|
151
|
+
"description": "The method and path, with variables unfilled.",
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"who": {
|
|
155
|
+
"description": "Who it was sent as: a person's name, nobody, or a token for no one.",
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"status": {
|
|
159
|
+
"type": ["integer", "null"]
|
|
160
|
+
},
|
|
161
|
+
"contentType": {
|
|
162
|
+
"type": ["string", "null"]
|
|
163
|
+
},
|
|
164
|
+
"body": {
|
|
165
|
+
"description": "The answer's body: parsed JSON when it is JSON, else its text, clipped."
|
|
166
|
+
},
|
|
167
|
+
"tries": {
|
|
168
|
+
"description": "Each try's status, for a call that retries.",
|
|
169
|
+
"type": "array",
|
|
170
|
+
"items": {
|
|
171
|
+
"type": ["integer", "null"]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"before": {
|
|
175
|
+
"description": "How many earlier calls in its file ran first, for their captures.",
|
|
176
|
+
"type": "integer"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"file": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"required": ["kind", "exit", "outputs"],
|
|
183
|
+
"properties": {
|
|
184
|
+
"kind": {
|
|
185
|
+
"const": "file"
|
|
186
|
+
},
|
|
187
|
+
"exit": {
|
|
188
|
+
"type": ["integer", "null"]
|
|
189
|
+
},
|
|
190
|
+
"log": {
|
|
191
|
+
"description": "The last lines the run printed.",
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"outputs": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"$ref": "#/$defs/output"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"output": {
|
|
203
|
+
"type": "object",
|
|
204
|
+
"required": ["file", "layout"],
|
|
205
|
+
"properties": {
|
|
206
|
+
"file": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"layout": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"examples": ["csv", "tsv", "json", "lines", "fixed", "zip", "missing"]
|
|
212
|
+
},
|
|
213
|
+
"columns": {
|
|
214
|
+
"type": "array",
|
|
215
|
+
"items": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"rows": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"lines": {
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"json": {},
|
|
235
|
+
"entries": {
|
|
236
|
+
"type": "array",
|
|
237
|
+
"items": {
|
|
238
|
+
"$ref": "#/$defs/output"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"flow": {
|
|
244
|
+
"type": "object",
|
|
245
|
+
"required": ["kind", "driver", "steps"],
|
|
246
|
+
"properties": {
|
|
247
|
+
"kind": {
|
|
248
|
+
"const": "flow"
|
|
249
|
+
},
|
|
250
|
+
"driver": {
|
|
251
|
+
"description": "service: the service's own driver. browser: Rehearse's browser. More may come.",
|
|
252
|
+
"type": "string",
|
|
253
|
+
"examples": ["service", "browser"]
|
|
254
|
+
},
|
|
255
|
+
"said": {
|
|
256
|
+
"description": "Anything the driver couldn't do, such as signing in as a person.",
|
|
257
|
+
"type": ["string", "null"]
|
|
258
|
+
},
|
|
259
|
+
"steps": {
|
|
260
|
+
"type": "array",
|
|
261
|
+
"items": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"required": ["n", "step", "ok"],
|
|
264
|
+
"properties": {
|
|
265
|
+
"n": {
|
|
266
|
+
"type": "integer",
|
|
267
|
+
"minimum": 1
|
|
268
|
+
},
|
|
269
|
+
"step": {
|
|
270
|
+
"type": "object"
|
|
271
|
+
},
|
|
272
|
+
"ok": {
|
|
273
|
+
"type": "boolean"
|
|
274
|
+
},
|
|
275
|
+
"says": {
|
|
276
|
+
"type": ["string", "null"]
|
|
277
|
+
},
|
|
278
|
+
"tree": {
|
|
279
|
+
"description": "The accessibility tree after the step.",
|
|
280
|
+
"type": ["string", "null"]
|
|
281
|
+
},
|
|
282
|
+
"screenshot": {
|
|
283
|
+
"type": ["string", "null"]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"errors": {
|
|
289
|
+
"description": "What the page logged as errors while the flow ran (Rehearse's browser only). Compared, as a piece's are.",
|
|
290
|
+
"type": "array",
|
|
291
|
+
"items": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"piece": {
|
|
298
|
+
"type": "object",
|
|
299
|
+
"required": ["kind", "schemes"],
|
|
300
|
+
"properties": {
|
|
301
|
+
"kind": {
|
|
302
|
+
"const": "piece"
|
|
303
|
+
},
|
|
304
|
+
"storyId": {
|
|
305
|
+
"description": "Its Storybook id, when its title could be read.",
|
|
306
|
+
"type": ["string", "null"]
|
|
307
|
+
},
|
|
308
|
+
"schemes": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"propertyNames": {
|
|
311
|
+
"enum": ["light", "dark"]
|
|
312
|
+
},
|
|
313
|
+
"additionalProperties": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"required": ["tree", "errors", "violations"],
|
|
316
|
+
"properties": {
|
|
317
|
+
"tree": {
|
|
318
|
+
"type": ["string", "null"]
|
|
319
|
+
},
|
|
320
|
+
"threw": {
|
|
321
|
+
"type": ["string", "null"]
|
|
322
|
+
},
|
|
323
|
+
"errors": {
|
|
324
|
+
"type": "array",
|
|
325
|
+
"items": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"violations": {
|
|
330
|
+
"type": "array",
|
|
331
|
+
"items": {
|
|
332
|
+
"type": "object",
|
|
333
|
+
"required": ["id", "help"],
|
|
334
|
+
"properties": {
|
|
335
|
+
"id": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"help": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"nodes": {
|
|
342
|
+
"type": "integer"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"screenshot": {
|
|
348
|
+
"type": ["string", "null"]
|
|
349
|
+
},
|
|
350
|
+
"pixels": {
|
|
351
|
+
"description": "A hash of the screenshot, compared only when the manifest asks.",
|
|
352
|
+
"type": ["string", "null"]
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"other": {
|
|
360
|
+
"description": "A later or repository-defined kind.",
|
|
361
|
+
"type": "object",
|
|
362
|
+
"required": ["kind"],
|
|
363
|
+
"properties": {
|
|
364
|
+
"kind": {
|
|
365
|
+
"not": {
|
|
366
|
+
"enum": ["call", "file", "flow", "piece"]
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"if": {
|
|
373
|
+
"properties": {
|
|
374
|
+
"observed": {
|
|
375
|
+
"type": "null"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"required": ["observed"]
|
|
379
|
+
},
|
|
380
|
+
"then": {
|
|
381
|
+
"required": ["broke"],
|
|
382
|
+
"properties": {
|
|
383
|
+
"broke": {
|
|
384
|
+
"type": "object"
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/open.schema.json",
|
|
4
|
+
"title": "Rehearse v1: rehearse open --json",
|
|
5
|
+
"description": "Where a person tries a scenario on the stage.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["v", "url", "scenario", "started"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"v": { "$ref": "common.schema.json#/$defs/v" },
|
|
10
|
+
"url": { "type": "string" },
|
|
11
|
+
"scenario": { "type": "string" },
|
|
12
|
+
"started": { "description": "Whether this command started the stage.", "type": "boolean" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/people.schema.json",
|
|
4
|
+
"title": "Rehearse v1: rehearse people --json",
|
|
5
|
+
"description": "Who you can sign in as. people keeps the sign-in shape: each signed-in person's token, with the fields the sign-in gave beside it (each field becomes a <name>_<key> variable). Everyone the manifest declares, signed in or not, is described in about. Tokens appear only with --json, and only when the sign-in ran.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["v", "people", "variables", "about"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"v": {
|
|
10
|
+
"$ref": "common.schema.json#/$defs/v"
|
|
11
|
+
},
|
|
12
|
+
"people": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"propertyNames": {
|
|
15
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_-]*$",
|
|
16
|
+
"not": {
|
|
17
|
+
"enum": ["you", "nobody", "api"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"additionalProperties": {
|
|
21
|
+
"oneOf": [
|
|
22
|
+
{
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "The person's token."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["token"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"token": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": {
|
|
35
|
+
"type": ["string", "number", "boolean"]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"variables": {
|
|
42
|
+
"description": "Values the sign-in gave beside the people, such as an organization's id.",
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"signedIn": {
|
|
49
|
+
"description": "Whether the sign-in command ran and gave tokens.",
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"said": {
|
|
53
|
+
"description": "Why there are no tokens, when there are none.",
|
|
54
|
+
"type": ["string", "null"]
|
|
55
|
+
},
|
|
56
|
+
"about": {
|
|
57
|
+
"description": "Every person, signed in or not: how real they are, whether scenarios run as them by default, and who they are.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["real", "default", "signedIn"],
|
|
62
|
+
"properties": {
|
|
63
|
+
"real": {
|
|
64
|
+
"description": "local (a sign-in the local services trust), stand-in (a fake identity), real (a real account). More may come.",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"examples": ["local", "stand-in", "real"]
|
|
67
|
+
},
|
|
68
|
+
"default": {
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"describe": {
|
|
72
|
+
"type": ["string", "null"]
|
|
73
|
+
},
|
|
74
|
+
"signedIn": {
|
|
75
|
+
"description": "Whether the sign-in gave this person a token.",
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"propertyNames": {
|
|
81
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_-]*$",
|
|
82
|
+
"not": {
|
|
83
|
+
"enum": ["you", "nobody", "api"]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": 1,
|
|
3
|
+
"ok": true,
|
|
4
|
+
"manifest": "/work/acme/rehearse.yaml",
|
|
5
|
+
"checkout": "/work/acme",
|
|
6
|
+
"base": "main",
|
|
7
|
+
"services": 2,
|
|
8
|
+
"people": 2,
|
|
9
|
+
"worlds": 2,
|
|
10
|
+
"standins": 1,
|
|
11
|
+
"scenarios": { "piece": 12, "flow": 3, "call": 18, "file": 1 },
|
|
12
|
+
"refused": []
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "v": 1, "removed": ["/work/acme/.rehearse/checkouts/2d24f5e1aaaa"] }
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": 1,
|
|
3
|
+
"ok": false,
|
|
4
|
+
"base": {
|
|
5
|
+
"checkout": {
|
|
6
|
+
"path": "/work/acme/.rehearse/checkouts/2d24f5e1",
|
|
7
|
+
"ref": "main",
|
|
8
|
+
"commit": "2d24f5e1aaaa0000000000000000000000000000",
|
|
9
|
+
"dirty": false
|
|
10
|
+
},
|
|
11
|
+
"ok": true,
|
|
12
|
+
"step": null,
|
|
13
|
+
"says": null,
|
|
14
|
+
"cached": 17
|
|
15
|
+
},
|
|
16
|
+
"head": {
|
|
17
|
+
"checkout": {
|
|
18
|
+
"path": "/work/acme",
|
|
19
|
+
"ref": null,
|
|
20
|
+
"commit": "b4a57d57d0000000000000000000000000000000",
|
|
21
|
+
"dirty": true
|
|
22
|
+
},
|
|
23
|
+
"ok": true,
|
|
24
|
+
"step": null,
|
|
25
|
+
"says": null,
|
|
26
|
+
"cached": 0
|
|
27
|
+
},
|
|
28
|
+
"line": "11 as on the base · 1 new · 1 changed and said so · 4 changed without saying so · 1 fails on the head",
|
|
29
|
+
"counts": {
|
|
30
|
+
"same": 11,
|
|
31
|
+
"said": 1,
|
|
32
|
+
"announced": 1,
|
|
33
|
+
"edited": 0,
|
|
34
|
+
"unsaid": 4,
|
|
35
|
+
"new": 1,
|
|
36
|
+
"fails": 1,
|
|
37
|
+
"failsOnBoth": 0,
|
|
38
|
+
"gone": 0,
|
|
39
|
+
"notRun": 0
|
|
40
|
+
},
|
|
41
|
+
"scenarios": [
|
|
42
|
+
{
|
|
43
|
+
"scenario": {
|
|
44
|
+
"id": "apps/api/src/routes/members.hurl#The owner sees every member",
|
|
45
|
+
"kind": "call",
|
|
46
|
+
"name": "The owner sees every member",
|
|
47
|
+
"file": "apps/api/src/routes/members.hurl",
|
|
48
|
+
"line": 6,
|
|
49
|
+
"area": "@acme/api",
|
|
50
|
+
"from": "checkout",
|
|
51
|
+
"definition": "aa11"
|
|
52
|
+
},
|
|
53
|
+
"verdict": "unsaid",
|
|
54
|
+
"changed": true,
|
|
55
|
+
"said": null,
|
|
56
|
+
"why": null,
|
|
57
|
+
"failsOnBase": false,
|
|
58
|
+
"failsOnHead": false,
|
|
59
|
+
"differences": [
|
|
60
|
+
{
|
|
61
|
+
"path": "$.items[*].activeCapabilityCodes",
|
|
62
|
+
"base": "[\"identity.account_state.manage\",…",
|
|
63
|
+
"head": "[]",
|
|
64
|
+
"count": 4
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"setAside": { "ids": 6, "times": 2 },
|
|
68
|
+
"cached": true,
|
|
69
|
+
"edited": false
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"gone": [],
|
|
73
|
+
"announcedUnchanged": [],
|
|
74
|
+
"byChange": [
|
|
75
|
+
{
|
|
76
|
+
"path": "$.items[*].activeCapabilityCodes",
|
|
77
|
+
"scenarios": ["apps/api/src/routes/members.hurl#The owner sees every member"]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"standins": [],
|
|
81
|
+
"ms": 2300,
|
|
82
|
+
"notRun": []
|
|
83
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: A weekly batch of orders becomes one export file
|
|
2
|
+
world: one-shop
|
|
3
|
+
input:
|
|
4
|
+
command: node scripts/make-orders.mjs --config {{here}}/weekly.json --out {{input}}
|
|
5
|
+
run: poetry run export --in {{input}} --out {{output}}
|
|
6
|
+
output:
|
|
7
|
+
file: export.txt
|
|
8
|
+
layout: fixed
|
|
9
|
+
columns:
|
|
10
|
+
- { name: customer, start: 1, width: 10 }
|
|
11
|
+
- { name: item_quantity, start: 11, width: 6 }
|
|
12
|
+
setAside:
|
|
13
|
+
columns: [batch_id]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "v": 1, "file": "/work/acme/rehearse.yaml", "replaced": false }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": 1,
|
|
3
|
+
"by": "packages",
|
|
4
|
+
"files": ["apps/api/src/routes/members.ts"],
|
|
5
|
+
"said": "No import graph is here (no Ashlar, no affected.graph), so Rehearse took the touched packages and the packages that depend on them. v1 reads workspace links for JavaScript packages only: other languages’ packages count as folders.",
|
|
6
|
+
"scenarios": [
|
|
7
|
+
{
|
|
8
|
+
"id": "apps/api/src/routes/members.hurl#A member isn't told the directory exists",
|
|
9
|
+
"kind": "call",
|
|
10
|
+
"name": "A member isn't told the directory exists",
|
|
11
|
+
"file": "apps/api/src/routes/members.hurl",
|
|
12
|
+
"line": 48,
|
|
13
|
+
"area": "@acme/api",
|
|
14
|
+
"from": "checkout",
|
|
15
|
+
"definition": "3f2a9c0d1e2b4a5c",
|
|
16
|
+
"world": "one-org",
|
|
17
|
+
"person": "member",
|
|
18
|
+
"service": "api",
|
|
19
|
+
"reachedBy": ["it is in @acme/api, which the change touches"]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"refused": [],
|
|
23
|
+
"graph": null
|
|
24
|
+
}
|