fix(ci): align new-surface dry-run preview kinds with Schema

Whiteboard dry-run now stamps preview_kind=plan; mail export/share
drop [DRY-RUN] tags so plan evidence matches declared DryRunSpec.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
玉澜
2026-08-05 11:21:38 +08:00
co-authored by Cursor
parent 8260cf7f53
commit 5a93f80daa
2 changed files with 10 additions and 5 deletions
+4 -3
View File
@@ -168,9 +168,10 @@ func runWhiteboardInsert(cmd *cobra.Command, _ []string) error {
if deps.Caller.DryRun() {
return deps.Out.PrintJSON(map[string]any{
"dry_run": true,
"executed": false,
"tool": "insert_document_block",
"dry_run": true,
"executed": false,
"preview_kind": "plan",
"tool": "insert_document_block",
"arguments": map[string]any{
"nodeId": toolArgs["nodeId"],
"format": "jsonml",
+6 -2
View File
@@ -2218,6 +2218,8 @@ internetMessageId 来源:message send / draft send / message reply / message r
overwrite, _ := cmd.Flags().GetBool("overwrite")
if deps.Caller.DryRun() {
// Human plan summary (no "[DRY-RUN]" tag): Schema dry-run
// evidence classifies "操作:" + audited DryRun() as plan.
deps.Out.PrintKeyValue("操作", "导出邮件为 EML 文件")
deps.Out.PrintKeyValue("email", email)
deps.Out.PrintKeyValue("messageId", messageID)
@@ -2225,7 +2227,7 @@ internetMessageId 来源:message send / draft send / message reply / message r
deps.Out.PrintKeyValue("filename", filename)
}
deps.Out.PrintKeyValue("overwrite", fmt.Sprintf("%v", overwrite))
deps.Out.PrintInfo("[DRY-RUN] 编排: get_email_by_message_id → export_message_mime → 写入本地 .eml 文件")
deps.Out.PrintKeyValue("编排", "get_email_by_message_id → export_message_mime → 写入本地 .eml 文件")
return nil
}
@@ -2351,6 +2353,8 @@ internetMessageId 来源:message send / draft send / message reply / message r
}
skipConfirm, _ := cmd.Flags().GetBool("yes")
if deps.Caller.DryRun() {
// Human plan summary (no "[DRY-RUN]" tag): Schema dry-run
// evidence classifies "操作:" + audited DryRun() as plan.
deps.Out.PrintKeyValue("操作", "分享邮件至 IM 聊天")
deps.Out.PrintKeyValue("email", mustGetFlag(cmd, "email"))
deps.Out.PrintKeyValue("messageId", mustGetFlag(cmd, "id"))
@@ -2358,7 +2362,7 @@ internetMessageId 来源:message send / draft send / message reply / message r
deps.Out.PrintKeyValue("users", users)
}
deps.Out.PrintKeyValue("yes", fmt.Sprintf("%v", skipConfirm))
deps.Out.PrintInfo("[DRY-RUN] 仅预览分享计划,不发起真实分享请求")
deps.Out.PrintKeyValue("说明", "仅预览分享计划,不发起真实分享请求")
return nil
}
ctx := cmd.Context()