@authorbot/schemas 0.1.25 → 0.1.26
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/CHANGELOG.md +25 -19
- package/dist/annotation.d.ts +2 -2
- package/dist/annotation.js +2 -2
- package/dist/attribution.d.ts +1 -1
- package/dist/attribution.js +1 -1
- package/dist/book.d.ts +1 -1
- package/dist/book.js +3 -3
- package/dist/build.d.ts +1 -1
- package/dist/build.js +1 -1
- package/dist/chapter.d.ts +1 -1
- package/dist/chapter.js +1 -1
- package/dist/character.d.ts +1 -1
- package/dist/character.js +1 -1
- package/dist/decision.d.ts +1 -1
- package/dist/decision.js +1 -1
- package/dist/instance.d.ts +2 -2
- package/dist/instance.js +2 -2
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/story-graph.d.ts +1 -1
- package/dist/story-graph.js +1 -1
- package/dist/timeline.d.ts +1 -1
- package/dist/timeline.js +1 -1
- package/dist/work-item.d.ts +1 -1
- package/dist/work-item.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
What changed in each release, and why it mattered. Written for the person
|
|
4
|
-
deciding whether to upgrade, not for the person who wrote the commit
|
|
4
|
+
deciding whether to upgrade, not for the person who wrote the commit - so a
|
|
5
5
|
release that fixed something serious says what was broken and what it did to
|
|
6
6
|
you, rather than naming the function that changed.
|
|
7
7
|
|
|
@@ -9,11 +9,17 @@ Every published package shares this version. A tag builds, tests, and publishes
|
|
|
9
9
|
all of them together, so `@authorbot/cli@0.1.15` and `@authorbot/api@0.1.15` are
|
|
10
10
|
always the same commit.
|
|
11
11
|
|
|
12
|
+
## 0.1.26
|
|
13
|
+
|
|
14
|
+
- Removed every em-dash and en-dash from the tool's output, docs, and code. No
|
|
15
|
+
behaviour change; the wizard, error messages, and generated files now use
|
|
16
|
+
plain hyphens.
|
|
17
|
+
|
|
12
18
|
## 0.1.25
|
|
13
19
|
|
|
14
20
|
- **The collaborator skill.** `npx skills add JoeMattie/authorbot` installs a
|
|
15
|
-
skill that teaches an agent to contribute to an Authorbot book
|
|
16
|
-
the safety rules, per-role guidance, and the full API reference
|
|
21
|
+
skill that teaches an agent to contribute to an Authorbot book - the loop,
|
|
22
|
+
the safety rules, per-role guidance, and the full API reference - into Claude
|
|
17
23
|
Code and any other supported agent tooling. Also installable as a Claude Code
|
|
18
24
|
plugin (`/plugin marketplace add JoeMattie/authorbot`). The `agent` stage now
|
|
19
25
|
points at it.
|
|
@@ -21,7 +27,7 @@ always the same commit.
|
|
|
21
27
|
## 0.1.24
|
|
22
28
|
|
|
23
29
|
- **`collaborate` commits and pushes what it writes.** It used to ask you to do
|
|
24
|
-
it "when you are ready"
|
|
30
|
+
it "when you are ready" - and until that push lands, the API cannot project
|
|
25
31
|
your book, so the settings page reports that it cannot read its own
|
|
26
32
|
configuration, with nothing connecting the two.
|
|
27
33
|
- **The agent stage stopped asking for a maintainer bearer token.** No author
|
|
@@ -29,7 +35,7 @@ always the same commit.
|
|
|
29
35
|
credential from elsewhere. `AUTHORBOT_API_TOKEN` still works for that case,
|
|
30
36
|
and everyone else is sent to the button on the settings page.
|
|
31
37
|
- Declining an optional step no longer tells you to run that step "to
|
|
32
|
-
continue", which made every optional thing look unfinished
|
|
38
|
+
continue", which made every optional thing look unfinished - `upgrade` most
|
|
33
39
|
of all, on a book far too new to need it.
|
|
34
40
|
|
|
35
41
|
## 0.1.23
|
|
@@ -44,7 +50,7 @@ always the same commit.
|
|
|
44
50
|
- **You can create an agent token from your book's settings.** Until now
|
|
45
51
|
nothing in Authorbot could make one: the API needs a maintainer session,
|
|
46
52
|
which only a browser holds, and the settings page could list and revoke
|
|
47
|
-
tokens but not create them
|
|
53
|
+
tokens but not create them - while the setup wizard asked for a bearer token
|
|
48
54
|
no author has ever been issued. The control sits under Agent tokens, shows
|
|
49
55
|
the value once, and defaults to the narrowest scopes an agent needs to read
|
|
50
56
|
chapters, claim work, and submit a draft.
|
|
@@ -53,7 +59,7 @@ always the same commit.
|
|
|
53
59
|
|
|
54
60
|
- **Installing the GitHub App no longer lands you on a 404.** GitHub was asked
|
|
55
61
|
to run its OAuth flow during installation, which redirected to a callback
|
|
56
|
-
that cannot exist yet
|
|
62
|
+
that cannot exist yet - the Worker's config needs the installation id that
|
|
57
63
|
installing is in the middle of producing. It now returns you to your book's
|
|
58
64
|
own site.
|
|
59
65
|
- **The agent stage stopped asking for a credential nobody has.** It wanted "a
|
|
@@ -68,8 +74,8 @@ always the same commit.
|
|
|
68
74
|
- **The GitHub App key was stored in a format the Worker cannot read.** GitHub's
|
|
69
75
|
manifest hands back a PKCS#1 key; WebCrypto, which is all a Cloudflare Worker
|
|
70
76
|
has, can only import PKCS#8. So every book reported its integration as
|
|
71
|
-
`invalid` and did no Git work at all
|
|
72
|
-
projection never ran, settings could not read `book.yml`
|
|
77
|
+
`invalid` and did no Git work at all - chapters could not be saved, the
|
|
78
|
+
projection never ran, settings could not read `book.yml` - with all three
|
|
73
79
|
credentials present and correct. **Books set up before this release need
|
|
74
80
|
their GitHub App deleted and `collaborate` run again**, because the key was
|
|
75
81
|
stored once and cannot be re-read.
|
|
@@ -81,7 +87,7 @@ always the same commit.
|
|
|
81
87
|
|
|
82
88
|
## 0.1.19
|
|
83
89
|
|
|
84
|
-
- Spinners with an elapsed timer on the steps that take minutes
|
|
90
|
+
- Spinners with an elapsed timer on the steps that take minutes - installing
|
|
85
91
|
the toolchain, waiting for a site to answer, checking the API. Silence for
|
|
86
92
|
four minutes reads as a hang.
|
|
87
93
|
- The mark is centred on the terminal's true width.
|
|
@@ -99,7 +105,7 @@ always the same commit.
|
|
|
99
105
|
- **`npm install` failed for everyone who started the documented way.** npx
|
|
100
106
|
exports its own configuration as `npm_config_*`, the wizard's `npm install`
|
|
101
107
|
inherited it, and resolved against npx's cache directory instead of your
|
|
102
|
-
book
|
|
108
|
+
book - so the install failed and you were left without a
|
|
103
109
|
`package-lock.json`, which both generated workflows refuse to run without. It
|
|
104
110
|
worked fine for anyone running the built binary directly, which is why it
|
|
105
111
|
looked like a problem with the machine.
|
|
@@ -113,10 +119,10 @@ always the same commit.
|
|
|
113
119
|
- **`unpublish` and `teardown`.** `npx @authorbot/create unpublish` removes the
|
|
114
120
|
Worker, the database and the GitHub App, leaving your repository and its
|
|
115
121
|
history alone so `publish` can put the site back. `teardown` also deletes the
|
|
116
|
-
remote repository, then tells you what to type to remove the local copy
|
|
122
|
+
remote repository, then tells you what to type to remove the local copy - it
|
|
117
123
|
never deletes files on your own disk.
|
|
118
124
|
- **The wizard is drawn rather than printed**: boxed stage headings, an arrow
|
|
119
|
-
for steps, and check/triangle/cross for outcomes
|
|
125
|
+
for steps, and check/triangle/cross for outcomes - each degrading to plain
|
|
120
126
|
ASCII under `NO_COLOR`, in a pipe, or on a dumb terminal.
|
|
121
127
|
- **A changelog**, here and inside every published package.
|
|
122
128
|
|
|
@@ -124,7 +130,7 @@ always the same commit.
|
|
|
124
130
|
|
|
125
131
|
- **The wizard can tell whether your book can actually save anything.** It used
|
|
126
132
|
to finish by checking that the API refused an anonymous caller, which a
|
|
127
|
-
completely unusable deployment does just as correctly as a healthy one
|
|
133
|
+
completely unusable deployment does just as correctly as a healthy one - see
|
|
128
134
|
0.1.14. New `GET /v1/health` reports whether the GitHub App is usable, and
|
|
129
135
|
`collaborate` refuses to switch a book's collaboration controls on when the
|
|
130
136
|
answer is no.
|
|
@@ -134,14 +140,14 @@ always the same commit.
|
|
|
134
140
|
- **Collaboration never worked on any book this wizard created.** The Worker
|
|
135
141
|
needs three GitHub App credentials and received two: the app id was read,
|
|
136
142
|
used to poll for the installation, and then dropped. With one missing it does
|
|
137
|
-
no Git work at all
|
|
143
|
+
no Git work at all - so chapters could not be saved, the projection never
|
|
138
144
|
ran, and settings could not read the book's own `book.yml`, while every
|
|
139
145
|
read-only page answered perfectly. If you set up a book before this release,
|
|
140
146
|
re-run `create-authorbot collaborate`.
|
|
141
147
|
- **You can sign out.** There was no way to. Two routes created a session and
|
|
142
148
|
none ended one, so a reader on a shared machine stayed signed in until the
|
|
143
149
|
cookie expired.
|
|
144
|
-
- **An account strip in the site header**
|
|
150
|
+
- **An account strip in the site header** - sign in, sign out, and the way into
|
|
145
151
|
Settings and the work queue. Previously a book with no chapters had no
|
|
146
152
|
sign-in anywhere, and `/settings/` and `/work/` were linked from nowhere.
|
|
147
153
|
- The API health check polls instead of judging on its first answer, which was
|
|
@@ -157,7 +163,7 @@ always the same commit.
|
|
|
157
163
|
|
|
158
164
|
- **A book with collaboration on showed no sign-in and no annotations.**
|
|
159
165
|
`book.yml` said annotations were public; the Worker was never told, so the
|
|
160
|
-
API refused every anonymous read
|
|
166
|
+
API refused every anonymous read - and the site gives up and renders nothing
|
|
161
167
|
when its first read fails, removing the very control that would have fixed
|
|
162
168
|
it.
|
|
163
169
|
|
|
@@ -194,7 +200,7 @@ always the same commit.
|
|
|
194
200
|
## 0.1.7
|
|
195
201
|
|
|
196
202
|
- **A successful deploy was reported as a failure** when the local resolver
|
|
197
|
-
still had the new hostname cached as non-existent
|
|
203
|
+
still had the new hostname cached as non-existent - which the wizard's own
|
|
198
204
|
domain check made near-certain.
|
|
199
205
|
- Every "run this to carry on" hint named `create-authorbot`, a binary `npx`
|
|
200
206
|
never installs.
|
|
@@ -212,7 +218,7 @@ always the same commit.
|
|
|
212
218
|
## 0.1.5
|
|
213
219
|
|
|
214
220
|
- Pointing the wizard at a directory that did not exist yet failed with a bare
|
|
215
|
-
ENOENT
|
|
221
|
+
ENOENT - including for the `directory: ./my-book` its own example config
|
|
216
222
|
prints.
|
|
217
223
|
- The pinned GitHub Actions moved off a deprecated line.
|
|
218
224
|
|
package/dist/annotation.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const blockTargetSchema: z.ZodObject<{
|
|
|
63
63
|
}, z.core.$strict>;
|
|
64
64
|
export type BlockTarget = z.infer<typeof blockTargetSchema>;
|
|
65
65
|
/**
|
|
66
|
-
* Annotation frontmatter `.authorbot/annotations/<id>/annotation.md`
|
|
66
|
+
* Annotation frontmatter `.authorbot/annotations/<id>/annotation.md` -
|
|
67
67
|
* `authorbot.annotation/v1` (contract section 4). `target` is required for
|
|
68
68
|
* `range` and `block` scopes and forbidden for `chapter` scope.
|
|
69
69
|
*/
|
|
@@ -154,7 +154,7 @@ export declare const annotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
154
154
|
}, z.core.$strict>], "scope">;
|
|
155
155
|
export type Annotation = z.infer<typeof annotationSchema>;
|
|
156
156
|
/**
|
|
157
|
-
* Reply frontmatter `.authorbot/annotations/<id>/replies/<reply-id>.md`
|
|
157
|
+
* Reply frontmatter `.authorbot/annotations/<id>/replies/<reply-id>.md` -
|
|
158
158
|
* `authorbot.reply/v1`. The contract pins only the schema ID; fields follow
|
|
159
159
|
* the Reply entity of design section 9.1 (ID, annotation ID, optional parent
|
|
160
160
|
* reply, author, timestamps). The reply body is the Markdown content itself.
|
package/dist/annotation.js
CHANGED
|
@@ -58,7 +58,7 @@ const annotationBaseFields = {
|
|
|
58
58
|
created_at: timestampSchema,
|
|
59
59
|
};
|
|
60
60
|
/**
|
|
61
|
-
* Annotation frontmatter `.authorbot/annotations/<id>/annotation.md`
|
|
61
|
+
* Annotation frontmatter `.authorbot/annotations/<id>/annotation.md` -
|
|
62
62
|
* `authorbot.annotation/v1` (contract section 4). `target` is required for
|
|
63
63
|
* `range` and `block` scopes and forbidden for `chapter` scope.
|
|
64
64
|
*/
|
|
@@ -79,7 +79,7 @@ export const annotationSchema = z.discriminatedUnion("scope", [
|
|
|
79
79
|
}),
|
|
80
80
|
]);
|
|
81
81
|
/**
|
|
82
|
-
* Reply frontmatter `.authorbot/annotations/<id>/replies/<reply-id>.md`
|
|
82
|
+
* Reply frontmatter `.authorbot/annotations/<id>/replies/<reply-id>.md` -
|
|
83
83
|
* `authorbot.reply/v1`. The contract pins only the schema ID; fields follow
|
|
84
84
|
* the Reply entity of design section 9.1 (ID, annotation ID, optional parent
|
|
85
85
|
* reply, author, timestamps). The reply body is the Markdown content itself.
|
package/dist/attribution.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const attributionEntrySchema: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strict>;
|
|
8
8
|
export type AttributionEntry = z.infer<typeof attributionEntrySchema>;
|
|
9
9
|
/**
|
|
10
|
-
* Attribution record `.authorbot/attribution/<chapter-id>.yml`
|
|
10
|
+
* Attribution record `.authorbot/attribution/<chapter-id>.yml` -
|
|
11
11
|
* `authorbot.attribution/v1` (contract section 4). At least one entry: the
|
|
12
12
|
* file only exists once a chapter revision has an author to attribute.
|
|
13
13
|
*/
|
package/dist/attribution.js
CHANGED
|
@@ -7,7 +7,7 @@ export const attributionEntrySchema = z.strictObject({
|
|
|
7
7
|
commit: commitShaSchema.optional(),
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
-
* Attribution record `.authorbot/attribution/<chapter-id>.yml`
|
|
10
|
+
* Attribution record `.authorbot/attribution/<chapter-id>.yml` -
|
|
11
11
|
* `authorbot.attribution/v1` (contract section 4). At least one entry: the
|
|
12
12
|
* file only exists once a chapter revision has an author to attribute.
|
|
13
13
|
*/
|
package/dist/book.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const annotationPolicySchema: z.ZodEnum<{
|
|
|
15
15
|
}>;
|
|
16
16
|
export type AnnotationPolicyMode = (typeof ANNOTATION_POLICY_MODES)[number];
|
|
17
17
|
/**
|
|
18
|
-
* Book config `book.yml`
|
|
18
|
+
* Book config `book.yml` - `authorbot.book/v1` (design section 8.2).
|
|
19
19
|
* Optional sections default at load time; the schema does not inject defaults.
|
|
20
20
|
*/
|
|
21
21
|
export declare const bookConfigSchema: z.ZodObject<{
|
package/dist/book.js
CHANGED
|
@@ -16,7 +16,7 @@ export const ANNOTATION_POLICY_MODES = [
|
|
|
16
16
|
];
|
|
17
17
|
export const annotationPolicySchema = z.enum(ANNOTATION_POLICY_MODES);
|
|
18
18
|
/**
|
|
19
|
-
* Book config `book.yml`
|
|
19
|
+
* Book config `book.yml` - `authorbot.book/v1` (design section 8.2).
|
|
20
20
|
* Optional sections default at load time; the schema does not inject defaults.
|
|
21
21
|
*/
|
|
22
22
|
export const bookConfigSchema = z.strictObject({
|
|
@@ -69,7 +69,7 @@ export const bookConfigSchema = z.strictObject({
|
|
|
69
69
|
* `annotation_policy` is who may comment and suggest, and whether what they
|
|
70
70
|
* write appears immediately: `open`, `approval-gated`, `collaborators-only`
|
|
71
71
|
* (the default when the section is absent), or `locked`. It lives in
|
|
72
|
-
* `book.yml`
|
|
72
|
+
* `book.yml` - versioned, diffable, reviewable - because it is an editorial
|
|
73
73
|
* decision about the book, made deliberately and changed rarely.
|
|
74
74
|
*
|
|
75
75
|
* The emergency controls deliberately do NOT live here. Freeze and
|
|
@@ -84,7 +84,7 @@ export const bookConfigSchema = z.strictObject({
|
|
|
84
84
|
.optional(),
|
|
85
85
|
/**
|
|
86
86
|
* Governance rules (Phase 6 contract section 3.6, amending Phase 3 section
|
|
87
|
-
* 3). Rules live here
|
|
87
|
+
* 3). Rules live here - versioned, diffable, and reviewable alongside the
|
|
88
88
|
* prose they govern, and therefore editable from the Settings view. The
|
|
89
89
|
* `RULES_JSON` environment variable remains a *bootstrap default* for a book
|
|
90
90
|
* that has not set them; once `governance.rules` exists it wins outright.
|
package/dist/build.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const buildManifestChapterSchema: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strict>;
|
|
18
18
|
export type BuildManifestChapter = z.infer<typeof buildManifestChapterSchema>;
|
|
19
19
|
/**
|
|
20
|
-
* Build manifest `authorbot-build.json`
|
|
20
|
+
* Build manifest `authorbot-build.json` - `authorbot.build/v1` (Phase 1
|
|
21
21
|
* contract section 3). `commit` is null when the build ran outside a git
|
|
22
22
|
* work tree; `chapters` lists every chapter included in the build.
|
|
23
23
|
*/
|
package/dist/build.js
CHANGED
|
@@ -13,7 +13,7 @@ export const buildManifestChapterSchema = z.strictObject({
|
|
|
13
13
|
status: chapterStatusSchema,
|
|
14
14
|
});
|
|
15
15
|
/**
|
|
16
|
-
* Build manifest `authorbot-build.json`
|
|
16
|
+
* Build manifest `authorbot-build.json` - `authorbot.build/v1` (Phase 1
|
|
17
17
|
* contract section 3). `commit` is null when the build ran outside a git
|
|
18
18
|
* work tree; `chapters` lists every chapter included in the build.
|
|
19
19
|
*/
|
package/dist/chapter.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const chapterStatusSchema: z.ZodEnum<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type ChapterStatus = z.infer<typeof chapterStatusSchema>;
|
|
11
11
|
/**
|
|
12
|
-
* Chapter frontmatter
|
|
12
|
+
* Chapter frontmatter - `authorbot.chapter/v1` (design section 8.3,
|
|
13
13
|
* contract section 4).
|
|
14
14
|
*/
|
|
15
15
|
export declare const chapterFrontmatterSchema: z.ZodObject<{
|
package/dist/chapter.js
CHANGED
|
@@ -9,7 +9,7 @@ export const CHAPTER_STATUSES = [
|
|
|
9
9
|
];
|
|
10
10
|
export const chapterStatusSchema = z.enum(CHAPTER_STATUSES);
|
|
11
11
|
/**
|
|
12
|
-
* Chapter frontmatter
|
|
12
|
+
* Chapter frontmatter - `authorbot.chapter/v1` (design section 8.3,
|
|
13
13
|
* contract section 4).
|
|
14
14
|
*/
|
|
15
15
|
export const chapterFrontmatterSchema = z.strictObject({
|
package/dist/character.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* Character frontmatter `story/characters/*.md`
|
|
3
|
+
* Character frontmatter `story/characters/*.md` - `authorbot.character/v1`
|
|
4
4
|
* (contract section 4).
|
|
5
5
|
*/
|
|
6
6
|
export declare const characterSchema: z.ZodObject<{
|
package/dist/character.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { nodeIdOf } from "./primitives.js";
|
|
3
3
|
/**
|
|
4
|
-
* Character frontmatter `story/characters/*.md`
|
|
4
|
+
* Character frontmatter `story/characters/*.md` - `authorbot.character/v1`
|
|
5
5
|
* (contract section 4).
|
|
6
6
|
*/
|
|
7
7
|
export const characterSchema = z.strictObject({
|
package/dist/decision.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const decisionResultSchema: z.ZodEnum<{
|
|
|
9
9
|
}>;
|
|
10
10
|
export type DecisionResult = z.infer<typeof decisionResultSchema>;
|
|
11
11
|
/**
|
|
12
|
-
* Decision record `.authorbot/decisions/<id>.yml`
|
|
12
|
+
* Decision record `.authorbot/decisions/<id>.yml` - `authorbot.decision/v1`
|
|
13
13
|
* (contract section 4). `effective_at` is required; only `work_item_id` and
|
|
14
14
|
* `override_reason` are optional per the contract wording.
|
|
15
15
|
*/
|
package/dist/decision.js
CHANGED
|
@@ -9,7 +9,7 @@ export const DECISION_RESULTS = [
|
|
|
9
9
|
];
|
|
10
10
|
export const decisionResultSchema = z.enum(DECISION_RESULTS);
|
|
11
11
|
/**
|
|
12
|
-
* Decision record `.authorbot/decisions/<id>.yml`
|
|
12
|
+
* Decision record `.authorbot/decisions/<id>.yml` - `authorbot.decision/v1`
|
|
13
13
|
* (contract section 4). `effective_at` is required; only `work_item_id` and
|
|
14
14
|
* `override_reason` are optional per the contract wording.
|
|
15
15
|
*/
|
package/dist/instance.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export type DeclarativeRule = z.infer<typeof declarativeRuleSchema>;
|
|
|
109
109
|
/** Rule name: the key of a `rules` mapping (design sections 11.1 / 25). */
|
|
110
110
|
export declare const ruleNameSchema: z.ZodString;
|
|
111
111
|
/**
|
|
112
|
-
* The `rules` mapping
|
|
112
|
+
* The `rules` mapping - `{ "<rule_name>": { version, when, action } }`.
|
|
113
113
|
*
|
|
114
114
|
* Shared by `authorbot.instance/v1` (`rules`, the bootstrap default carried by
|
|
115
115
|
* the `RULES_JSON` environment variable) and `authorbot.book/v1`
|
|
@@ -163,7 +163,7 @@ export declare const rulesMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
163
163
|
}, z.core.$strict>>;
|
|
164
164
|
export type RulesMap = z.infer<typeof rulesMapSchema>;
|
|
165
165
|
/**
|
|
166
|
-
* Instance (deployment) config
|
|
166
|
+
* Instance (deployment) config - `authorbot.instance/v1` (design section 25).
|
|
167
167
|
* Every section is optional: the file overrides defaults, and defaults are
|
|
168
168
|
* applied by the loader, not by this schema. Secrets never belong here.
|
|
169
169
|
*/
|
package/dist/instance.js
CHANGED
|
@@ -37,7 +37,7 @@ export const ruleNameSchema = z
|
|
|
37
37
|
.string()
|
|
38
38
|
.regex(/^[a-z][a-z0-9_]*$/, "must be a snake_case rule name");
|
|
39
39
|
/**
|
|
40
|
-
* The `rules` mapping
|
|
40
|
+
* The `rules` mapping - `{ "<rule_name>": { version, when, action } }`.
|
|
41
41
|
*
|
|
42
42
|
* Shared by `authorbot.instance/v1` (`rules`, the bootstrap default carried by
|
|
43
43
|
* the `RULES_JSON` environment variable) and `authorbot.book/v1`
|
|
@@ -47,7 +47,7 @@ export const ruleNameSchema = z
|
|
|
47
47
|
*/
|
|
48
48
|
export const rulesMapSchema = z.record(ruleNameSchema, declarativeRuleSchema);
|
|
49
49
|
/**
|
|
50
|
-
* Instance (deployment) config
|
|
50
|
+
* Instance (deployment) config - `authorbot.instance/v1` (design section 25).
|
|
51
51
|
* Every section is optional: the file overrides defaults, and defaults are
|
|
52
52
|
* applied by the loader, not by this schema. Secrets never belong here.
|
|
53
53
|
*/
|
package/dist/release.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* Release manifest `.authorbot/releases/<id>.yml`
|
|
3
|
+
* Release manifest `.authorbot/releases/<id>.yml` - `authorbot.release/v1`
|
|
4
4
|
* (contract section 4). A release pins at least one chapter revision.
|
|
5
5
|
*/
|
|
6
6
|
export declare const releaseSchema: z.ZodObject<{
|
package/dist/release.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { timestampSchema, uuidv7Schema } from "./primitives.js";
|
|
3
3
|
/**
|
|
4
|
-
* Release manifest `.authorbot/releases/<id>.yml`
|
|
4
|
+
* Release manifest `.authorbot/releases/<id>.yml` - `authorbot.release/v1`
|
|
5
5
|
* (contract section 4). A release pins at least one chapter revision.
|
|
6
6
|
*/
|
|
7
7
|
export const releaseSchema = z.strictObject({
|
package/dist/story-graph.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export declare const storyGraphLinkSchema: z.ZodObject<{
|
|
|
83
83
|
}, z.core.$strict>;
|
|
84
84
|
export type StoryGraphLink = z.infer<typeof storyGraphLinkSchema>;
|
|
85
85
|
/**
|
|
86
|
-
* Story graph `story/outline.yml`
|
|
86
|
+
* Story graph `story/outline.yml` - `authorbot.story-graph/v1`
|
|
87
87
|
* (design section 8.5, contract section 4).
|
|
88
88
|
*/
|
|
89
89
|
export declare const storyGraphSchema: z.ZodObject<{
|
package/dist/story-graph.js
CHANGED
|
@@ -45,7 +45,7 @@ export const storyGraphLinkSchema = z.strictObject({
|
|
|
45
45
|
type: z.string().min(1),
|
|
46
46
|
});
|
|
47
47
|
/**
|
|
48
|
-
* Story graph `story/outline.yml`
|
|
48
|
+
* Story graph `story/outline.yml` - `authorbot.story-graph/v1`
|
|
49
49
|
* (design section 8.5, contract section 4).
|
|
50
50
|
*/
|
|
51
51
|
export const storyGraphSchema = z.strictObject({
|
package/dist/timeline.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const timelineEventSchema: z.ZodObject<{
|
|
|
11
11
|
}, z.core.$strict>;
|
|
12
12
|
export type TimelineEvent = z.infer<typeof timelineEventSchema>;
|
|
13
13
|
/**
|
|
14
|
-
* Timeline `story/timeline.yml`
|
|
14
|
+
* Timeline `story/timeline.yml` - `authorbot.timeline/v1`
|
|
15
15
|
* (design section 8.6, contract section 4).
|
|
16
16
|
*/
|
|
17
17
|
export declare const timelineSchema: z.ZodObject<{
|
package/dist/timeline.js
CHANGED
|
@@ -11,7 +11,7 @@ export const timelineEventSchema = z.strictObject({
|
|
|
11
11
|
facts: z.array(z.string().min(1)).optional(),
|
|
12
12
|
});
|
|
13
13
|
/**
|
|
14
|
-
* Timeline `story/timeline.yml`
|
|
14
|
+
* Timeline `story/timeline.yml` - `authorbot.timeline/v1`
|
|
15
15
|
* (design section 8.6, contract section 4).
|
|
16
16
|
*/
|
|
17
17
|
export const timelineSchema = z.strictObject({
|
package/dist/work-item.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare const workItemPrioritySchema: z.ZodEnum<{
|
|
|
31
31
|
}>;
|
|
32
32
|
export type WorkItemPriority = z.infer<typeof workItemPrioritySchema>;
|
|
33
33
|
/**
|
|
34
|
-
* Work item frontmatter `.authorbot/work-items/<id>.md`
|
|
34
|
+
* Work item frontmatter `.authorbot/work-items/<id>.md` -
|
|
35
35
|
* `authorbot.work-item/v1` (design section 13, contract section 4).
|
|
36
36
|
* Stable paths with status in frontmatter (contract ADR over design 8.1).
|
|
37
37
|
* `source_annotation_id`, `chapter_id`, and `base_revision` are optional at
|
package/dist/work-item.js
CHANGED
|
@@ -25,7 +25,7 @@ export const workItemStatusSchema = z.enum(WORK_ITEM_STATUSES);
|
|
|
25
25
|
export const WORK_ITEM_PRIORITIES = ["low", "normal", "high"];
|
|
26
26
|
export const workItemPrioritySchema = z.enum(WORK_ITEM_PRIORITIES);
|
|
27
27
|
/**
|
|
28
|
-
* Work item frontmatter `.authorbot/work-items/<id>.md`
|
|
28
|
+
* Work item frontmatter `.authorbot/work-items/<id>.md` -
|
|
29
29
|
* `authorbot.work-item/v1` (design section 13, contract section 4).
|
|
30
30
|
* Stable paths with status in frontmatter (contract ADR over design 8.1).
|
|
31
31
|
* `source_annotation_id`, `chapter_id`, and `base_revision` are optional at
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authorbot/schemas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Zod v4 schemas, inferred TypeScript types, and generated JSON Schemas for Authorbot book-repository artifacts (Phase 0 contract section 4)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authorbot",
|