Add local document JSON state commands
This commit is contained in:
parent
b102e07204
commit
e039a4f81f
11 changed files with 153 additions and 10 deletions
|
|
@ -101,9 +101,10 @@ loading, change extraction, and DB sync are future work.
|
|||
through `kv create/set/get`. Iroh Documents namespaces, prefix authorization
|
||||
enforcement, and replication are future work.
|
||||
|
||||
`geth-document` currently registers local document resources with an empty JSON
|
||||
state placeholder and local-only sync status. Automerge state, editing, and sync
|
||||
are future work.
|
||||
`geth-document` currently registers local document resources and stores
|
||||
validated JSON state in the local SQLite metadata store through
|
||||
`document create/status/set/get`. This is a bootstrap editing surface, not yet
|
||||
Automerge CRDT state. Automerge state encoding and sync are future work.
|
||||
|
||||
`geth-pubsub` currently supports local publish/subscribe snapshots through the
|
||||
daemon control protocol. Messages live in a bounded in-memory ring buffer and
|
||||
|
|
|
|||
|
|
@ -318,8 +318,12 @@ Automerge documents.
|
|||
Acceptance criteria:
|
||||
- `[x]` `geth document create/status` works for local documents.
|
||||
- `[x]` Document metadata and empty JSON state are stored durably.
|
||||
- `[x]` `geth document set/get` stores and returns validated local JSON
|
||||
state.
|
||||
- `[x]` Tests cover create, update, save, and reload of local JSON document
|
||||
state.
|
||||
- `[ ]` Automerge document state is stored durably.
|
||||
- `[ ]` Tests cover create, update, save, and reload.
|
||||
- `[ ]` Tests cover Automerge create, update, save, and reload.
|
||||
|
||||
- `[ ]` Automerge sync over Iroh.
|
||||
Acceptance criteria:
|
||||
|
|
|
|||
Loading…
Reference in a new issue