@authorbot/schemas 0.1.28 → 0.1.30

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 CHANGED
@@ -9,6 +9,32 @@ 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.30
13
+
14
+ - **Agents can create chapter drafts without guessing the API.** The
15
+ collaborator skill now documents the direct draft schema, includes a
16
+ dependency-free Python client, and sets a descriptive user agent so
17
+ Cloudflare does not reject Python `urllib` requests before they reach the
18
+ book.
19
+ - **Draft creation no longer runs out of Worker subrequests on larger books.**
20
+ Chapter order is projected into D1 instead of rereading every chapter through
21
+ GitHub whenever an agent starts a draft.
22
+ - **Notes and replies get out of the way as soon as they are submitted.** Their
23
+ forms clear and close immediately, with the exact draft restored if the
24
+ request fails. The desktop notes rail now shares the page's vertical scroll
25
+ instead of trapping the wheel or trackpad inside a second scrollbar.
26
+ - **Agent bylines use the token name.** Published chapters keep the durable
27
+ actor reference in frontmatter while showing the readable agent token name.
28
+ - This release includes database migration `0008_chapter_order.sql`. Book CI
29
+ applies it before deploying the new Worker. No book-format migration is
30
+ required.
31
+
32
+ ## 0.1.29
33
+
34
+ - **The chapter edit box stays aligned with the reading column.** It no longer
35
+ stretches across the full browser width at the bottom of a chapter.
36
+ - No book-format migration or database migration is required for this release.
37
+
12
38
  ## 0.1.28
13
39
 
14
40
  - **Review draft can read the chapter in deployed books again.** The redesigned
package/dist/chapter.d.ts CHANGED
@@ -28,6 +28,7 @@ export declare const chapterFrontmatterSchema: z.ZodObject<{
28
28
  published_at: z.ZodOptional<z.ZodString>;
29
29
  authors: z.ZodArray<z.ZodObject<{
30
30
  actor: z.ZodString;
31
+ name: z.ZodOptional<z.ZodString>;
31
32
  }, z.core.$strict>>;
32
33
  summary: z.ZodOptional<z.ZodString>;
33
34
  timeline_refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
package/dist/chapter.js CHANGED
@@ -21,7 +21,13 @@ export const chapterFrontmatterSchema = z.strictObject({
21
21
  status: chapterStatusSchema,
22
22
  revision: z.number().int().min(1),
23
23
  published_at: timestampSchema.optional(),
24
- authors: z.array(z.strictObject({ actor: actorRefSchema })).min(1),
24
+ authors: z
25
+ .array(z.strictObject({
26
+ actor: actorRefSchema,
27
+ /** Display label captured when the actor is an agent token. */
28
+ name: z.string().min(1).optional(),
29
+ }))
30
+ .min(1),
25
31
  summary: z.string().optional(),
26
32
  timeline_refs: z.array(nodeIdOf("event")).optional(),
27
33
  character_refs: z.array(nodeIdOf("character")).optional(),
@@ -99,6 +99,7 @@ export declare const artifactSchemas: {
99
99
  published_at: z.ZodOptional<z.ZodString>;
100
100
  authors: z.ZodArray<z.ZodObject<{
101
101
  actor: z.ZodString;
102
+ name: z.ZodOptional<z.ZodString>;
102
103
  }, z.core.$strict>>;
103
104
  summary: z.ZodOptional<z.ZodString>;
104
105
  timeline_refs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -49,6 +49,10 @@
49
49
  "actor": {
50
50
  "type": "string",
51
51
  "pattern": "^(?:github|agent|system):[A-Za-z0-9][A-Za-z0-9._-]*$"
52
+ },
53
+ "name": {
54
+ "type": "string",
55
+ "minLength": 1
52
56
  }
53
57
  },
54
58
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authorbot/schemas",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
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",