first draft

Initial cut of corvus.run: atproto lexicons for the document + edit model, a pnpm monorepo, and a reference edit applier as the first package. - lexicons/run/corvus/docblock.json — 11 block types (header, horizontalRule, tableOfContents, dateTime, mention, link, orderedList, unorderedList, prose, checkbox, code); facet system for inline formatting on prose; dual-use types (mention/link/dateTime/checkbox/code) work as both standalone docblocks and facet features. - lexicons/run/corvus/edit.json — PDS-level edit record as a commit holding N block-edits. Carries createdAt, parents (0..N), replaces (0..N); each block-edit has one blockId and a transactional body of commands. Nine command types: create, replace, setValue, addChild, removeChild, moveChild, addFacet, removeFacet, setFacetValue. - fixtures/ — 10 edit/docblock pairs that round-trip through the applier. - packages/applier (@corvus/applier) — TypeScript reference implementation: BlockStore, applyEdit/applyStream, orderEdits. Fuzzy text-anchor and id-anchor resolvers (Levenshtein + linear positional penalty, clamp + fallback). Facet auto-shift rules on prose text edits. Zero runtime deps; tsdown for the build, vitest for tests. 67 tests passing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>


Author
Co-author Claude Opus 4.7 (1M context) Date Commit