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>
46 lines
1.2 KiB
OCaml
46 lines
1.2 KiB
OCaml
type block_opts = { id_raw : string option; uuid : Cli_primitive.uuid option }
|
|
type page_opts = { id : Cli_primitive.db_id option; page : string option }
|
|
|
|
type named_entity_opts = {
|
|
id : Cli_primitive.db_id option;
|
|
name : string option;
|
|
}
|
|
|
|
type parsed =
|
|
| Parsed_block of block_opts
|
|
| Parsed_page of page_opts
|
|
| Parsed_tag of named_entity_opts
|
|
| Parsed_property of named_entity_opts
|
|
|
|
type action =
|
|
| Remove_block of {
|
|
repo : Cli_primitive.repo;
|
|
graph : Cli_primitive.graph;
|
|
id : Cli_primitive.db_id option;
|
|
ids : Cli_primitive.db_id Rrbvec.t;
|
|
multi_id : bool;
|
|
uuid : Cli_primitive.uuid option;
|
|
}
|
|
| Remove_page of {
|
|
repo : Cli_primitive.repo;
|
|
graph : Cli_primitive.graph;
|
|
id : Cli_primitive.db_id option;
|
|
page : string option;
|
|
}
|
|
| Remove_tag of {
|
|
repo : Cli_primitive.repo;
|
|
graph : Cli_primitive.graph;
|
|
id : Cli_primitive.db_id option;
|
|
name : string option;
|
|
}
|
|
| Remove_property of {
|
|
repo : Cli_primitive.repo;
|
|
graph : Cli_primitive.graph;
|
|
id : Cli_primitive.db_id option;
|
|
name : string option;
|
|
}
|
|
|
|
val invalid_options : parsed -> string option
|
|
|
|
include Command_spec.S with type parsed := parsed and type action := action
|