@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.
@@ -39399,7 +39399,21 @@ var relPath = z9.string().min(1).max(1024);
39399
39399
  var docsModernizePlanSchema = z9.object({
39400
39400
  root: z9.string().min(1),
39401
39401
  generatedAt: z9.string(),
39402
- mode: z9.enum(["tree", "store-only"]),
39402
+ // T14578: a reviewed `--store` plan (`storeRows`) is applied from a file too.
39403
+ mode: z9.enum(["tree", "store-only", "store"]),
39404
+ storeRows: z9.array(
39405
+ z9.object({
39406
+ attachmentId: z9.string().min(1),
39407
+ sha256: z9.string().regex(/^[0-9a-f]{64}$/),
39408
+ slug: z9.string().regex(/^[a-z0-9][a-z0-9-]*$/).nullable(),
39409
+ newSlug: z9.string().regex(/^[a-z0-9][a-z0-9-]*$/).nullable(),
39410
+ kind: z9.string().min(1).nullable(),
39411
+ newKind: z9.string().min(1),
39412
+ ownerTasks: z9.array(z9.string().regex(/^[TD]\d+$/)),
39413
+ reasons: z9.array(z9.string()),
39414
+ judgments: z9.array(judgmentSchema)
39415
+ })
39416
+ ).optional(),
39403
39417
  counts: z9.record(z9.enum(DOCS_MODERNIZE_DISPOSITIONS), z9.number()),
39404
39418
  rows: z9.array(
39405
39419
  z9.object({
@@ -40834,6 +40848,16 @@ var SYNC_WRITE_INVARIANTS = Object.freeze([
40834
40848
  sites: [],
40835
40849
  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"
40836
40850
  },
40851
+ // T14565 — a supersession names the doc, not the registry row of one of its
40852
+ // versions: when a docs update (or its modernize undo) moves the slug onto
40853
+ // another row, the supersedes / superseded_by pointers move with it.
40854
+ {
40855
+ id: "docs.supersession.follows-slug",
40856
+ class: "identity-layer",
40857
+ tables: ["docs_attachments", "conduit_attachments"],
40858
+ sites: [],
40859
+ 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"
40860
+ },
40837
40861
  // T13359 (D11165) — decisions-vs-ADRs link table; the natural composite key
40838
40862
  // makes identical links merge to one row, and the revoke is a one-way latch.
40839
40863
  // T13597: enforced at merge, not just by the local accessor — 'revoked' is an