Initial import of LogDarioSeq baseline

Establishes version control for the personal Logseq DB fork before
starting the server-client architecture migration and domain features
described in docs/agent-guide and the approved implementation plan.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-25 15:32:15 +02:00
commit 40631362b3
2016 changed files with 543898 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
type key =
| Key_ident of Cli_primitive.keyword
| Key_id of Cli_primitive.db_id
| Key_name of string
type cardinality = One | Many
type kind =
| Default
| Page
| Class
| Property
| Entity
| Node
| Date
| Url
| Checkbox
| Number
| Template
| Other of Cli_primitive.keyword
type schema = {
kind : kind option;
cardinality : cardinality option;
hidden : bool option;
public : bool option;
}
type assignment = { key : key; value : Melange_edn_melange.any }
type update_plan = {
update_tags : Selector.tag Rrbvec.t;
remove_tags : Selector.tag Rrbvec.t;
update_properties : assignment Rrbvec.t;
remove_properties : key Rrbvec.t;
}
val empty_update_plan : update_plan
val parse_key : Melange_edn_melange.any -> key option
val kind_of_string : string -> kind option
val string_of_kind : kind -> string
val cardinality_of_string : string -> cardinality option