@cleocode/adapters 2026.11.9 → 2026.11.10

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.
@@ -13879,7 +13879,21 @@ var relPath = z9.string().min(1).max(1024);
13879
13879
  var docsModernizePlanSchema = z9.object({
13880
13880
  root: z9.string().min(1),
13881
13881
  generatedAt: z9.string(),
13882
- mode: z9.enum(["tree", "store-only"]),
13882
+ // T14578: a reviewed `--store` plan (`storeRows`) is applied from a file too.
13883
+ mode: z9.enum(["tree", "store-only", "store"]),
13884
+ storeRows: z9.array(
13885
+ z9.object({
13886
+ attachmentId: z9.string().min(1),
13887
+ sha256: z9.string().regex(/^[0-9a-f]{64}$/),
13888
+ slug: z9.string().regex(/^[a-z0-9][a-z0-9-]*$/).nullable(),
13889
+ newSlug: z9.string().regex(/^[a-z0-9][a-z0-9-]*$/).nullable(),
13890
+ kind: z9.string().min(1).nullable(),
13891
+ newKind: z9.string().min(1),
13892
+ ownerTasks: z9.array(z9.string().regex(/^[TD]\d+$/)),
13893
+ reasons: z9.array(z9.string()),
13894
+ judgments: z9.array(judgmentSchema)
13895
+ })
13896
+ ).optional(),
13883
13897
  counts: z9.record(z9.enum(DOCS_MODERNIZE_DISPOSITIONS), z9.number()),
13884
13898
  rows: z9.array(
13885
13899
  z9.object({
@@ -15317,6 +15331,16 @@ var SYNC_WRITE_INVARIANTS = Object.freeze([
15317
15331
  sites: [],
15318
15332
  reason: "a rename moves the live slug on docs_attachments and conduit_attachments in one transaction and records the old slug as an alias of the immutable doc uid, so every replica resolves the old and the new slug to one doc"
15319
15333
  },
15334
+ // T14565 — a supersession names the doc, not the registry row of one of its
15335
+ // versions: when a docs update (or its modernize undo) moves the slug onto
15336
+ // another row, the supersedes / superseded_by pointers move with it.
15337
+ {
15338
+ id: "docs.supersession.follows-slug",
15339
+ class: "identity-layer",
15340
+ tables: ["docs_attachments", "conduit_attachments"],
15341
+ sites: [],
15342
+ reason: "supersedes and superseded_by name registry rows, and a docs update moves the slug to another row: the row taking the slug takes the pointers and every row naming the old one is re-pointed in the same transaction, then the identity rows are mirrored, so every replica keeps resolving a superseded doc to its successor"
15343
+ },
15320
15344
  // T13359 (D11165) — decisions-vs-ADRs link table; the natural composite key
15321
15345
  // makes identical links merge to one row, and the revoke is a one-way latch.
15322
15346
  // T13597: enforced at merge, not just by the local accessor — 'revoked' is an