SPB Git

Repository Public

Page 2 · 53 commits on main
  1. Thu, Nov 19, 202612 commits

    1. Simon-Pierre Boucher 2 files +314 −5
    2. Simon-Pierre Boucher 2 files +45 −24
    3. feat(sync): entity sync — feed with kinds and the cursor rule, tombstones and soft deletes of the new kinds, task outbox with client ids, canvases with three-way merge and visible conflicts; Tasks/Canvas repositories; fake backend becomes the SPNotesTestSupport library with a 3.0 level
      ···
      - engine: /api/meta features (cached), kinds in the feed, restart from 0 when the kinds set changes, reset with entities,
        full-copy cleanup of entities; pushEntityOps (tasks create/update/delete, ordered, idempotent, rejected ops kept),
        pushCanvases (PUT baseVersion, 409 → CanvasDocument.merge, conflicts recorded, compare-and-set on editSeq)
      - store: edge/reference index keys of API-NEXT, retryEntityOps(state:), expediteEntityOps, canvas compare-and-set saves
      - api: PageType.canvas
      - a 2.x server (no /api/meta) keeps the engine on the 1.0 behaviour; whole suite green with SPN_FAKE_API_LEVEL=2
      - tests: entity feed, task outbox, canvas sync, randomised convergence (tasks + canvases, 1212 seeds green)
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 26 files +2,922 −146
    4. docs+tests: 2.0.0 — MIGRATION-V2, store/document/API/sync docs, CHANGELOG, server fixtures for the 3.0 nodes, end-to-end sync test
      ···
      The backend's published fixtures (tests/fixtures/next-nodes: 4 documents with expected .md/.txt/.html)
      pass byte for byte. Reference copies of the server sources the port follows are in docs/reference/next.
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 31 files +2,111 −6
    5. feat(document): typed support for the 3.0 nodes (mermaid, drawing, chart, queryView, citation, bibliography, pdf, blockRef, runCode, audio, canvasLink)
      ···
      NodeType / Schema sets / defaults / validator, Markdown + plain text + HTML ported line by line from the
      server's next-nodes.ts (521 documents recorded from the server's own functions match byte for byte),
      typed views with init?(node:) / node() that keep unknown attributes, block ids on list items and the new
      blocks (server ID_TYPES), task due / priority / taskId, aiBlock sources / action, callout kinds.
      Attachment and page references now include the files and targets of the new nodes; transcript and
      annotation text are part of the plain text (search index, word count).
      JS number formatting follows ECMAScript (1e-7, not 1e-07).
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 14 files +2,327 −30
    6. Simon-Pierre Boucher 7 files +2,086
    7. feat(design): SPNotesDesign — Note Visual System 2.0 tokens, motions and components (SwiftUI)
      ···
      NVColor (light/dark from the SPEC hex table, Lumen gradient), NVFont, NVSpace, NVRadius, NVElevation,
      NVMotion (Reduce Motion aware), the seven signature motions, and NVCard / NVChip / NVSectionHeader /
      NVEmptyState / NVAIBadge / NVCitationChip / NVToolbarGlass / NVProgressDots. WCAG contrast of the text
      pairs is computed in the tests.
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 11 files +1,648 −2
    8. feat(store): schema v2 — entities, entity outbox, canvases, events and read-model caches, per-kind cursors
      ···
      First migration run on shipped data: purely additive (seven new tables, no v1 table altered), one
      transaction, hand-written inverse (Schema.v2Down), tested on a real v1 file fixture (every row kept,
      idempotent, rollback on failure mid-way). A consistent copy of the file (VACUUM INTO) is made before
      migrating and removed by a later healthy open. NotesStore.open returns a typed StoreOpenResult so apps
      can show a blocking error instead of falling back to an empty in-memory store.
      
      fix(sync): an op of unknown kind was completed, i.e. silently dropped; it is now parked
      (ops_parked), surfaced (SyncStatus.unsupported, NotesStore.parkedOps) and released when a build
      supports it. The entity outbox keeps unsupported and rejected operations the same way.
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 16 files +2,297 −8
    9. feat(api): opt-in retry with backoff and idempotency keys for requests that are safe to retry
      ···
      HTTPClient.send never retried. A request now may carry a RetryPolicy; it is honoured only for GET or
      requests with an Idempotency-Key (never ceremony calls), on failures APIError.isRetryable accepts,
      honouring Retry-After. Without a policy the behaviour is unchanged: one attempt.
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 2 files +277 −7
    10. test(store): real schema v1 database fixture written by the shipped 1.0 code path
      ···
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 2 files +56
    11. docs: legendary README — icon, logo, live spbgit badges, author
      ···
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 3 files +722
  2. Wed, Nov 18, 20261 commit

    1. SPNotesCore 1.0: document model, local store, API client and sync engine shared by SP Notes iOS and macOS
      ···
      Document (lossless ProseMirror model, commands, Markdown, HTML, three-way merge), Store (SQLite + FTS5, offline
      queue, conflicts, local history), API (passkeys, sessions, typed routes, SSE), Sync (push, change feed, merge,
      conflicts). 283 tests.
      
      Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
      Simon-Pierre Boucher 87 files +23,557
Menu

Theme