@authorbot/schemas 0.1.29 → 0.1.31

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,42 @@ 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.31
13
+
14
+ - **Suggestion cards take you back to the prose they reference.** Clicking a
15
+ suggestion now scrolls its anchored section into view, with unit and browser
16
+ coverage for the complete interaction.
17
+ - **Configured books cannot silently skip D1 migrations.** Publish workflows
18
+ now use the standard `DB` binding whenever `@authorbot/api` is installed and
19
+ fail before deployment if that binding is missing or invalid. Static-only
20
+ books still skip the step cleanly.
21
+ - Existing generated publish workflows receive that safety fix through the
22
+ `0001-fail-safe-d1-migrations` book-format migration during
23
+ `authorbot upgrade`.
24
+ - Agent setup instructions now include `AUTHORBOT_PROJECT`, so collaborators
25
+ can target the book without probing the API for its project slug.
26
+ - No D1 database migration is required for this release.
27
+
28
+ ## 0.1.30
29
+
30
+ - **Agents can create chapter drafts without guessing the API.** The
31
+ collaborator skill now documents the direct draft schema, includes a
32
+ dependency-free Python client, and sets a descriptive user agent so
33
+ Cloudflare does not reject Python `urllib` requests before they reach the
34
+ book.
35
+ - **Draft creation no longer runs out of Worker subrequests on larger books.**
36
+ Chapter order is projected into D1 instead of rereading every chapter through
37
+ GitHub whenever an agent starts a draft.
38
+ - **Notes and replies get out of the way as soon as they are submitted.** Their
39
+ forms clear and close immediately, with the exact draft restored if the
40
+ request fails. The desktop notes rail now shares the page's vertical scroll
41
+ instead of trapping the wheel or trackpad inside a second scrollbar.
42
+ - **Agent bylines use the token name.** Published chapters keep the durable
43
+ actor reference in frontmatter while showing the readable agent token name.
44
+ - This release includes database migration `0008_chapter_order.sql`. Book CI
45
+ applies it before deploying the new Worker. No book-format migration is
46
+ required.
47
+
12
48
  ## 0.1.29
13
49
 
14
50
  - **The chapter edit box stays aligned with the reading column.** It no longer
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.29",
3
+ "version": "0.1.31",
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",