feat: cut over rust web main shell

This commit is contained in:
lix-2026
2026-04-29 12:24:44 +08:00
parent 7965c6c107
commit 048fe28a4d
97 changed files with 9396 additions and 1263 deletions
+1 -35
View File
@@ -8450,16 +8450,6 @@ fn execute_command(
payload_json: request.payload_json,
args_json: json!({
"id": payload.document_id,
"streamDeltaHint": tree_stream_delta_hint("remove_document", json!({
"documentId": payload.document_id,
})),
"domainEventHint": tree_domain_event_hint("tree.node.purged"),
"domainEventPlan": tree_domain_event_plan(
"tree.node.purged",
tree_stream_delta_hint("remove_document", json!({
"documentId": payload.document_id,
})),
),
}),
}))
}
@@ -10991,31 +10981,7 @@ mod tests {
"documentId": "doc_1",
}),
json!({
"id": "doc_1",
"streamDeltaHint": {
"family": "tree",
"kind": "remove_document",
"args": {
"documentId": "doc_1"
}
},
"domainEventHint": {
"family": "tree",
"eventType": "tree.node.purged"
},
"domainEventPlan": {
"family": "tree",
"schema": "mnote.tree.domain_event",
"schemaVersion": 1,
"eventType": "tree.node.purged",
"streamDeltaHint": {
"family": "tree",
"kind": "remove_document",
"args": {
"documentId": "doc_1"
}
}
}
"id": "doc_1"
}),
),
];