test: restore mnote-web lib baseline

This commit is contained in:
lix-2026
2026-05-25 23:34:03 +08:00
parent e90b8cb632
commit 36a5a0dc3a
6 changed files with 68 additions and 39 deletions
@@ -2004,7 +2004,7 @@ mod tests {
"runId": "run_1",
"toolCallId": "call_block_fetch_1",
"traceId": "trace_block_fetch_1",
"capabilityScope": ["block.read"],
"capabilityScope": ["block.read", "page.read"],
"args": {"blockId": "heading_1", "contextBefore": 1, "contextAfter": 1}
})
.to_string(),
@@ -2047,7 +2047,7 @@ mod tests {
"traceId": "trace_plan_1",
"idempotencyKey": "idem_plan_1",
"dryRun": true,
"capabilityScope": ["page.write"],
"capabilityScope": ["page.write", "block.write"],
"args": {
"command": "block_replace",
"blockId": "heading_1",
@@ -2086,7 +2086,7 @@ mod tests {
"traceId": "trace_move_1",
"idempotencyKey": "idem_move_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"anchorBlockId": "heading_1",
@@ -2137,7 +2137,7 @@ mod tests {
"traceId": "trace_replace_1",
"idempotencyKey": "idem_replace_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"content": "替换后的章节",
@@ -2185,7 +2185,7 @@ mod tests {
"traceId": "trace_insert_1",
"idempotencyKey": "idem_insert_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"anchorBlockId": "heading_1",
"content": "新增段落",
@@ -2233,7 +2233,7 @@ mod tests {
"traceId": "trace_delete_1",
"idempotencyKey": "idem_delete_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "p_1",
"revision": 7,
@@ -2280,7 +2280,7 @@ mod tests {
"traceId": "trace_move_write_1",
"idempotencyKey": "idem_move_write_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"anchorBlockId": "p_2",
@@ -2324,7 +2324,7 @@ mod tests {
"traceId": "trace_scope_replace",
"idempotencyKey": "idem_scope_replace",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"content": "越界替换",
@@ -2344,7 +2344,7 @@ mod tests {
"traceId": "trace_scope_insert",
"idempotencyKey": "idem_scope_insert",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"anchorBlockId": "heading_1",
"content": "越界插入",
@@ -2364,7 +2364,7 @@ mod tests {
"traceId": "trace_scope_delete",
"idempotencyKey": "idem_scope_delete",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "p_1",
"revision": 7,
@@ -2383,7 +2383,7 @@ mod tests {
"traceId": "trace_scope_move",
"idempotencyKey": "idem_scope_move",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"anchorBlockId": "p_2",
@@ -2490,7 +2490,7 @@ mod tests {
"traceId": format!("trace_move_blocked_{block_id}"),
"idempotencyKey": format!("idem_move_blocked_{block_id}"),
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": block_id,
"anchorBlockId": "p_anchor",
@@ -2541,7 +2541,7 @@ mod tests {
"traceId": "trace_multi_insert",
"idempotencyKey": "idem_multi_insert",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"anchorBlockId": "heading_1",
"blocks": ["新增第一段", {"type": "todo", "content": "新增待办"}],
@@ -2603,7 +2603,7 @@ mod tests {
"traceId": "trace_multi_insert_limit",
"idempotencyKey": "idem_multi_insert_limit",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"anchorBlockId": "heading_1",
"blocks": blocks,
@@ -2648,7 +2648,7 @@ mod tests {
"traceId": "trace_missing_revision_1",
"idempotencyKey": "idem_missing_revision_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"content": "不应写入"
@@ -2687,7 +2687,7 @@ mod tests {
"traceId": "trace_stale_ref_1",
"idempotencyKey": "idem_stale_ref_1",
"dryRun": false,
"capabilityScope": ["block.write"],
"capabilityScope": ["block.write", "page.write"],
"args": {
"blockId": "heading_1",
"content": "不应写入",