@kurvball/rehearse 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/stage.js +19 -3
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +1 -0
- package/dist/stage/client/client/api.js +4 -1
- package/dist/stage/client/client/index.js +1 -0
- package/dist/stage/client/client/static.js +28 -0
- package/dist/stage/client/features/canvas/call.js +12 -3
- package/dist/stage/client/features/canvas/file.js +4 -2
- package/dist/stage/client/features/canvas/piece.js +12 -2
- package/dist/stage/client/features/list/list.js +6 -1
- package/dist/stage/client/features/scenario/heading.js +3 -2
- package/dist/stage/client/features/scenario/scenario.js +8 -4
- package/dist/stage/client/main.js +7 -3
- package/dist/stage/client/stage.css +11 -0
- package/dist/stage/compared.d.ts +7 -1
- package/dist/stage/compared.js +16 -4
- package/dist/stage/files.d.ts +1 -0
- package/dist/stage/files.js +6 -4
- package/dist/stage/index.d.ts +1 -0
- package/dist/stage/index.js +1 -0
- package/dist/stage/public.d.ts +9 -0
- package/dist/stage/public.js +107 -0
- package/dist/stage/server.js +2 -2
- package/dist/stage/static.d.ts +22 -0
- package/dist/stage/static.js +241 -0
- package/llms.txt +2 -1
- package/package.json +1 -1
- package/schema/v1/samples/static.json +21 -0
- package/schema/v1/static.schema.json +34 -0
- package/schema/vendor/acta/LICENSE +21 -0
- package/schema/vendor/acta/README.md +12 -0
- package/schema/vendor/acta/v1/canonical.schema.json +818 -0
- package/schema/vendor/acta/v1/check.schema.json +35 -0
- package/schema/vendor/acta/v1/record.schema.json +1443 -0
- package/schema/vendor/acta/v1/run-model.schema.json +1074 -0
- package/skill/rehearse/SKILL.md +1 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { copyFileSync, cpSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync, } from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { RehearseError } from '../errors.js';
|
|
5
|
+
import { validate } from '../schema.js';
|
|
6
|
+
import { stateDir } from '../services/index.js';
|
|
7
|
+
import { baseAsked, ofThisHeadAndBase } from './compared.js';
|
|
8
|
+
import { BUILT_PAGE } from './files.js';
|
|
9
|
+
import { anImage, asPlainText, manifestPlaceholder, placeholdersFor, publishableFrom, textScrubbed, } from './public.js';
|
|
10
|
+
const MARKED_AS_A_STATIC_COPY = 'data-stage="static"';
|
|
11
|
+
const WRITTEN_BY_AN_EARLIER_COPY = ['index.html', 'page', 'data'];
|
|
12
|
+
const ARTIFACTS_THE_PAGE_SHOWS = new Set(['screenshot', 'input']);
|
|
13
|
+
const COMPARISONS = [
|
|
14
|
+
['whole', 'latest.json'],
|
|
15
|
+
['partial', 'latest-partial.json'],
|
|
16
|
+
];
|
|
17
|
+
const shortHash = (text) => createHash('sha256').update(text).digest('hex').slice(0, 16);
|
|
18
|
+
export const headWords = (head) => `${head.commit ? head.commit.slice(0, 8) : (head.ref ?? path.basename(head.path))}${head.dirty ? ' + changes' : ''}`;
|
|
19
|
+
export const baseWords = (base) => `${base.ref ?? base.path}${base.commit ? `@${base.commit.slice(0, 8)}` : ''}`;
|
|
20
|
+
function chosenComparison(m, head, base) {
|
|
21
|
+
const found = [];
|
|
22
|
+
let unreadable = null;
|
|
23
|
+
let ofAnother = false;
|
|
24
|
+
for (const [kind, name] of COMPARISONS) {
|
|
25
|
+
const file = path.join(stateDir(m.dir), 'compare', name);
|
|
26
|
+
if (!existsSync(file))
|
|
27
|
+
continue;
|
|
28
|
+
let read;
|
|
29
|
+
try {
|
|
30
|
+
read = JSON.parse(readFileSync(file, 'utf8'));
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
unreadable ??= `${file} isn't JSON`;
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const invalid = validate('comparison', read);
|
|
37
|
+
if (invalid.length > 0) {
|
|
38
|
+
unreadable ??= `${file} isn't a comparison Rehearse can read (${invalid[0].says})`;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (!ofThisHeadAndBase(read, head, base)) {
|
|
42
|
+
ofAnother = true;
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
found.push({ kind, at: statSync(file).mtime, comparison: read });
|
|
46
|
+
}
|
|
47
|
+
const newest = found.sort((a, b) => b.at.getTime() - a.at.getTime())[0];
|
|
48
|
+
if (newest)
|
|
49
|
+
return newest;
|
|
50
|
+
throw new RehearseError('no_comparison', unreadable
|
|
51
|
+
? `${unreadable}: run rehearse compare again.`
|
|
52
|
+
: ofAnother
|
|
53
|
+
? `The latest comparison isn't of this checkout with ${base.ref}: run rehearse compare --base ${base.ref} here, or give --static the --base it compared with.`
|
|
54
|
+
: 'There is no comparison to copy yet: run rehearse compare first, then rehearse stage --static again.');
|
|
55
|
+
}
|
|
56
|
+
function builtPage(page) {
|
|
57
|
+
const html = path.join(page, 'index.html');
|
|
58
|
+
if (!existsSync(path.join(page, 'main.js')) || !existsSync(html))
|
|
59
|
+
throw new RehearseError('stage', "The stage's page isn't built: run pnpm build in Rehearse.");
|
|
60
|
+
return readFileSync(html, 'utf8')
|
|
61
|
+
.replace('<html ', `<html ${MARKED_AS_A_STATIC_COPY} `)
|
|
62
|
+
.replace(/\b(href|src)="(?![a-z]+:)/g, '$1="page/');
|
|
63
|
+
}
|
|
64
|
+
const anEarlierCopy = (dir) => {
|
|
65
|
+
try {
|
|
66
|
+
return readFileSync(path.join(dir, 'index.html'), 'utf8').includes(MARKED_AS_A_STATIC_COPY);
|
|
67
|
+
}
|
|
68
|
+
catch {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
function readiedFolder(dir) {
|
|
73
|
+
if (!existsSync(dir)) {
|
|
74
|
+
mkdirSync(dir, { recursive: true });
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (!statSync(dir).isDirectory())
|
|
78
|
+
throw new RehearseError('exists', `${dir} is a file: give a folder for the static copy.`);
|
|
79
|
+
if (readdirSync(dir).length === 0)
|
|
80
|
+
return;
|
|
81
|
+
if (!anEarlierCopy(dir))
|
|
82
|
+
throw new RehearseError('exists', `${dir} holds other files: give an empty folder, or one an earlier rehearse stage --static wrote.`);
|
|
83
|
+
for (const own of WRITTEN_BY_AN_EARLIER_COPY)
|
|
84
|
+
rmSync(path.join(dir, own), { recursive: true, force: true });
|
|
85
|
+
}
|
|
86
|
+
function artifactsToPublish(m, c, placed) {
|
|
87
|
+
const publishable = publishableFrom({
|
|
88
|
+
state: stateDir(m.dir),
|
|
89
|
+
checkouts: [c.head.checkout.path, c.base.checkout.path],
|
|
90
|
+
});
|
|
91
|
+
const copies = new Map();
|
|
92
|
+
const published = (a) => {
|
|
93
|
+
if (!ARTIFACTS_THE_PAGE_SHOWS.has(a.kind))
|
|
94
|
+
return [];
|
|
95
|
+
const real = publishable(a.path);
|
|
96
|
+
if (!real)
|
|
97
|
+
return [];
|
|
98
|
+
const name = path.basename(a.path);
|
|
99
|
+
const image = anImage(name, real);
|
|
100
|
+
if (a.kind === 'screenshot' && !image)
|
|
101
|
+
return [];
|
|
102
|
+
let copy = copies.get(real);
|
|
103
|
+
if (!copy) {
|
|
104
|
+
const bytes = image ? null : textScrubbed(readFileSync(real), placed);
|
|
105
|
+
copy = {
|
|
106
|
+
to: `data/files/${shortHash(bytes ?? readFileSync(real))}/${image ? name : asPlainText(name)}`,
|
|
107
|
+
bytes,
|
|
108
|
+
};
|
|
109
|
+
copies.set(real, copy);
|
|
110
|
+
}
|
|
111
|
+
return [{ ...a, path: copy.to, ...(!image && { name }) }];
|
|
112
|
+
};
|
|
113
|
+
return { published, copies };
|
|
114
|
+
}
|
|
115
|
+
function readObservation(file) {
|
|
116
|
+
if (!file || !existsSync(file))
|
|
117
|
+
return null;
|
|
118
|
+
let read;
|
|
119
|
+
try {
|
|
120
|
+
read = JSON.parse(readFileSync(file, 'utf8'));
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
throw new RehearseError('no_comparison', `${file} isn't JSON: run rehearse compare again.`);
|
|
124
|
+
}
|
|
125
|
+
const invalid = validate('observation', read);
|
|
126
|
+
if (invalid.length > 0)
|
|
127
|
+
throw new RehearseError('no_comparison', `${file} isn't an observation Rehearse can read (${invalid[0].says}): run rehearse compare again.`);
|
|
128
|
+
return read;
|
|
129
|
+
}
|
|
130
|
+
const shownRef = (s) => ({
|
|
131
|
+
id: s.id,
|
|
132
|
+
kind: s.kind,
|
|
133
|
+
name: s.name,
|
|
134
|
+
file: s.file,
|
|
135
|
+
...(s.line !== undefined && { line: s.line }),
|
|
136
|
+
area: s.area,
|
|
137
|
+
});
|
|
138
|
+
const shownComparison = (e) => ({
|
|
139
|
+
verdict: e.verdict,
|
|
140
|
+
changed: e.changed,
|
|
141
|
+
said: e.said,
|
|
142
|
+
why: e.why,
|
|
143
|
+
failsOnBase: e.failsOnBase,
|
|
144
|
+
failsOnHead: e.failsOnHead,
|
|
145
|
+
differences: e.differences,
|
|
146
|
+
setAside: e.setAside,
|
|
147
|
+
});
|
|
148
|
+
export function writeStaticCopy(m, dir, o) {
|
|
149
|
+
const { kind, at, comparison: c } = chosenComparison(m, o.head, baseAsked(o.head, o.base, o.cwd));
|
|
150
|
+
const page = o.page ?? BUILT_PAGE;
|
|
151
|
+
const html = builtPage(page);
|
|
152
|
+
const placed = placeholdersFor([
|
|
153
|
+
[m.dir, manifestPlaceholder(m.dir, c.head.checkout.path)],
|
|
154
|
+
[c.base.checkout.path, '{{checkout}}'],
|
|
155
|
+
[c.head.checkout.path, '{{checkout}}'],
|
|
156
|
+
]);
|
|
157
|
+
const { published, copies } = artifactsToPublish(m, c, placed);
|
|
158
|
+
const shown = (ob) => ob && {
|
|
159
|
+
ok: ob.ok,
|
|
160
|
+
failures: ob.failures,
|
|
161
|
+
broke: ob.broke ?? null,
|
|
162
|
+
observed: ob.observed,
|
|
163
|
+
artifacts: (ob.artifacts ?? []).flatMap(published),
|
|
164
|
+
};
|
|
165
|
+
const notRun = new Map();
|
|
166
|
+
for (const n of c.notRun) {
|
|
167
|
+
const seen = notRun.get(n.scenario.id) ?? { scenario: n.scenario, sides: [] };
|
|
168
|
+
seen.sides.push({ side: n.side, step: n.step, says: n.says });
|
|
169
|
+
notRun.set(n.scenario.id, seen);
|
|
170
|
+
}
|
|
171
|
+
const each = [
|
|
172
|
+
...c.scenarios.map((e) => ({ scenario: e.scenario, entry: e, sides: [] })),
|
|
173
|
+
...[...notRun.values()].map((n) => ({ scenario: n.scenario, entry: null, sides: n.sides })),
|
|
174
|
+
];
|
|
175
|
+
const details = each.map(({ scenario, entry, sides }) => {
|
|
176
|
+
const base = readObservation(entry?.observations?.base);
|
|
177
|
+
const head = readObservation(entry?.observations?.head);
|
|
178
|
+
return {
|
|
179
|
+
data: `data/scenarios/${shortHash(scenario.id)}.json`,
|
|
180
|
+
row: { ...shownRef(scenario), verdict: entry?.verdict ?? null },
|
|
181
|
+
detail: {
|
|
182
|
+
v: 1,
|
|
183
|
+
scenario: { ...shownRef(scenario), world: head?.world ?? null, person: head?.person ?? null },
|
|
184
|
+
spec: null,
|
|
185
|
+
...placed({
|
|
186
|
+
comparison: entry && shownComparison(entry),
|
|
187
|
+
base: shown(base),
|
|
188
|
+
head: shown(head),
|
|
189
|
+
notRun: sides,
|
|
190
|
+
}),
|
|
191
|
+
tries: [],
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
const index = {
|
|
196
|
+
v: 1,
|
|
197
|
+
head: {
|
|
198
|
+
path: '{{checkout}}',
|
|
199
|
+
ref: c.head.checkout.ref,
|
|
200
|
+
commit: c.head.checkout.commit,
|
|
201
|
+
dirty: c.head.checkout.dirty,
|
|
202
|
+
},
|
|
203
|
+
base: { ref: c.base.checkout.ref, commit: c.base.checkout.commit },
|
|
204
|
+
line: placed(c.line),
|
|
205
|
+
comparedAt: at.toISOString(),
|
|
206
|
+
comparison: kind,
|
|
207
|
+
scenarios: details.map((d) => ({ ...d.row, data: d.data })),
|
|
208
|
+
people: [],
|
|
209
|
+
person: null,
|
|
210
|
+
worlds: [],
|
|
211
|
+
world: null,
|
|
212
|
+
};
|
|
213
|
+
readiedFolder(dir);
|
|
214
|
+
cpSync(page, path.join(dir, 'page'), {
|
|
215
|
+
recursive: true,
|
|
216
|
+
filter: (from) => from !== path.join(page, 'index.html'),
|
|
217
|
+
});
|
|
218
|
+
writeFileSync(path.join(dir, 'index.html'), html);
|
|
219
|
+
mkdirSync(path.join(dir, 'data', 'scenarios'), { recursive: true });
|
|
220
|
+
for (const d of details)
|
|
221
|
+
writeFileSync(path.join(dir, d.data), `${JSON.stringify(d.detail)}\n`);
|
|
222
|
+
writeFileSync(path.join(dir, 'data', 'index.json'), `${JSON.stringify(index)}\n`);
|
|
223
|
+
for (const [real, copy] of copies) {
|
|
224
|
+
mkdirSync(path.dirname(path.join(dir, copy.to)), { recursive: true });
|
|
225
|
+
if (copy.bytes)
|
|
226
|
+
writeFileSync(path.join(dir, copy.to), copy.bytes);
|
|
227
|
+
else
|
|
228
|
+
copyFileSync(real, path.join(dir, copy.to));
|
|
229
|
+
}
|
|
230
|
+
return {
|
|
231
|
+
v: 1,
|
|
232
|
+
dir,
|
|
233
|
+
comparison: kind,
|
|
234
|
+
comparedAt: at.toISOString(),
|
|
235
|
+
base: c.base.checkout,
|
|
236
|
+
head: c.head.checkout,
|
|
237
|
+
line: c.line,
|
|
238
|
+
scenarios: details.length,
|
|
239
|
+
artifacts: copies.size,
|
|
240
|
+
};
|
|
241
|
+
}
|
package/llms.txt
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- `rehearse announce [<id or glob>…] [--draft] [--base] [--head] [--announce <file>] [--announce-from changesets] [--said <id>]… [--format yaml|changeset] --json`: what a comparison would read as announced (schema announce); with --draft (and compare's own options) it compares and proposes {scenario, why} for each scenario whose verdict is unsaid, its why the first difference, for you to rewrite as the reason. --format changeset prints an `announce` block for a changeset. It writes no file; refuses with code not_compared when the base or head doesn't come up.
|
|
15
15
|
- `rehearse drive start [--service <name> | --piece <id>] [--world] [--as <person>] [--scheme light|dark]` (or DRIVE_SCHEME), then `rehearse drive click --name <name> [--role <role>] | fill --name <name> --with <text> | type <text> | key <key> | snapshot [--name <name> [--role <role>]] | screenshot <file.png> | stop`, each with --json: the drive result shape {ok, command, ms, file, tree} plus v and driver (schema drive). Exit 0 done, 1 failed, 2 usage.
|
|
16
16
|
- `rehearse stage [--base] [--head] [--port] [--announce <file>] [--announce-from changesets] [--said <id>]…`: the stage on 127.0.0.1 (default port 4400): every scenario in Base, Head and Diff, with Works, Doesn't and a note (kept in .rehearse/tries.jsonl, schema try).
|
|
17
|
+
- `rehearse stage --static <dir> [--base <ref>] [--json]`: writes the stage of the latest comparison of this checkout with the base (the newer of .rehearse/compare/latest.json and latest-partial.json; --base as compare was given it) into <dir> as plain files with relative addresses, for any static host, such as a pull request's preview, then exits (schema static). It runs nothing; Run, Compare, Send, Works and a piece's live canvas aren't there. For a public preview it turns local paths (the checkouts, the home folder, and any /home/<name>, /Users/<name>, /root or C:\Users\<name>, also JSON-escaped or percent-encoded) into {{checkout}} and ~, copies an input only when git tracks it unchanged, copies from .rehearse only what runs made, and copies anything but a PNG, JPEG, WebP or GIF as scrubbed plain text; a home with a space in its name can slip through, so read a copy made on your own machine before publishing it. --base matches a ref by name and a folder by path; the newer comparison is the one written later. Refuses with code no_comparison when there is no comparison of this checkout with the base it can read, and exists when <dir> holds files an earlier copy didn't write.
|
|
17
18
|
- `rehearse open <scenario> [--json]`: the stage's address for a scenario (schema open), starting the stage if none runs.
|
|
18
19
|
- `rehearse clean [--all]`: removes old base checkouts, runs and comparisons (schema clean).
|
|
19
20
|
- `rehearse validate <schema> [file]`: checks a JSON or YAML file, or stdin, against a v1 schema (schema validate).
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
## Schemas (schema/v1/)
|
|
37
38
|
|
|
38
39
|
- manifest.schema.json: rehearse.yaml. flow.schema.json: *.flow.yaml. file-scenario.schema.json: *.rehearse.yaml. announce.schema.json: announcements, and what `rehearse announce --json` prints.
|
|
39
|
-
- check, init, services, people, worlds, list, up, observation, comparison, drive, open, try, clean, validate, error: one per command's --json output, each with a sample in schema/v1/samples/.
|
|
40
|
+
- check, init, services, people, worlds, list, up, observation, comparison, drive, open, static, try, clean, validate, error: one per command's --json output, each with a sample in schema/v1/samples/.
|
|
40
41
|
- dependents.schema.json: what Rehearse reads from an import graph (`ashlar dependents <files> --json`, or the manifest's affected.graph).
|
|
41
42
|
- Within v1 an output only gains optional fields, and open string fields may gain values: readers ignore what they don't know.
|
|
42
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kurvball/rehearse",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Rehearse a change before it ships: bring the product up, sign in as named people, start from named worlds, and compare any scenario on the base and on the head.",
|
|
5
5
|
"homepage": "https://rehearse.kurvball.ca/",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"v": 1,
|
|
3
|
+
"dir": "/work/shop/preview",
|
|
4
|
+
"comparison": "whole",
|
|
5
|
+
"comparedAt": "2026-12-04T06:42:04.343Z",
|
|
6
|
+
"base": {
|
|
7
|
+
"path": "/work/shop/.rehearse/checkouts/39a0af8209c8",
|
|
8
|
+
"ref": "main",
|
|
9
|
+
"commit": "39a0af8209c8a9bd628886ecc2c79d1da48a6ef6",
|
|
10
|
+
"dirty": false
|
|
11
|
+
},
|
|
12
|
+
"head": {
|
|
13
|
+
"path": "/work/shop",
|
|
14
|
+
"ref": null,
|
|
15
|
+
"commit": "7fdc0ca2c6284cfa66f9afb28e9781a8dd67cc08",
|
|
16
|
+
"dirty": false
|
|
17
|
+
},
|
|
18
|
+
"line": "2 as on the base · 1 new · 2 changed and said so (2 edited) · 2 changed without saying so · 1 fails on the head · 1 gone",
|
|
19
|
+
"scenarios": 8,
|
|
20
|
+
"artifacts": 2
|
|
21
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://rehearse.kurvball.ca/schema/v1/static.schema.json",
|
|
4
|
+
"title": "Rehearse v1: rehearse stage --static <dir> --json",
|
|
5
|
+
"description": "The static copy of the stage that rehearse stage --static wrote: the latest comparison, as plain files any static host serves.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["v", "dir", "comparison", "comparedAt", "base", "head", "line", "scenarios", "artifacts"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"v": { "$ref": "common.schema.json#/$defs/v" },
|
|
10
|
+
"dir": { "description": "The folder it wrote, an absolute path.", "type": "string" },
|
|
11
|
+
"comparison": {
|
|
12
|
+
"description": "Which comparison it copied, the newer of the two that compare this checkout with the base: whole, of every scenario (.rehearse/compare/latest.json), or partial, of a few (latest-partial.json).",
|
|
13
|
+
"enum": ["whole", "partial"]
|
|
14
|
+
},
|
|
15
|
+
"comparedAt": {
|
|
16
|
+
"description": "When that comparison was written.",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "date-time"
|
|
19
|
+
},
|
|
20
|
+
"base": { "$ref": "common.schema.json#/$defs/checkout" },
|
|
21
|
+
"head": { "$ref": "common.schema.json#/$defs/checkout" },
|
|
22
|
+
"line": { "description": "The comparison's line, as the copy's top shows it.", "type": "string" },
|
|
23
|
+
"scenarios": {
|
|
24
|
+
"description": "How many scenarios the copy lists: each compared one, and each that didn't run.",
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"minimum": 0
|
|
27
|
+
},
|
|
28
|
+
"artifacts": {
|
|
29
|
+
"description": "How many files it copied from the observations for the page to show: screenshots, and inputs git tracks, as plain text unless they are images.",
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"minimum": 0
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kurvball
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Acta's run record schemas, v1
|
|
2
|
+
|
|
3
|
+
Copied unchanged from Acta 0.4.0 (`package/schema/v1/` in its release), the version Rehearse signed off on. Each keeps
|
|
4
|
+
its own `$id`, under `https://acta.kurvball.ca/schema/v1/`, so a reader resolves it as Acta's.
|
|
5
|
+
|
|
6
|
+
Rehearse's agent kind reads Acta's records and canonical forms through these. Within v1, Acta only adds optional fields
|
|
7
|
+
and event types, so a newer v1 record still meets them; a new shape is Acta's `schema/v2/`.
|
|
8
|
+
|
|
9
|
+
Acta is MIT-licensed, Copyright (c) 2026 Kurvball: see [LICENSE](LICENSE), copied with them.
|
|
10
|
+
|
|
11
|
+
To update: download a later v1 release of Acta, copy its `schema/v1/*.schema.json` here unchanged, and run
|
|
12
|
+
`pnpm lint`, which checks no file names a reserved project.
|