{ "version": 1, "caseName": "conversation-session-share-publish-import", "spec": "./test/e2e/conversation-session/sharing/conversation-session-share-publish-import.test.ts", "fixtures": [ { "id": "conversation-share-session-b-title", "description": "为 Session B 返回独立标题,验证分享草稿不会串用 A 的标题。", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "SHARE27 验证 A/B 分享状态隔离,需要不同固定标题;通用标题会使数据前置条件失效。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title", "E2E_CONVERSATION_SHARE_LOCAL_V1", "session-b"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"session-b\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}" } }, { "id": "conversation-session-share-publish-import-title-sidecar", "description": "本例标题旁路响应。", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}" } }, { "id": "conversation-share-local-main", "description": "Local share publish uses a deterministic completed response.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "Share UI assertions only need a completed terminal turn before publication." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"], "bodyIncludes": ["share-local-ready"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-local-main", "inputTokens": 64, "outputTokens": 8, "text": "share-local-ready" } } }, { "id": "conversation-share-local-main-second", "description": "Second completed turn for share selection (share-local-ready-second).", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "Share UI assertions only need a completed terminal turn before publication." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"], "bodyIncludes": ["share-local-ready-second"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-local-main-second", "inputTokens": 64, "outputTokens": 8, "text": "share-local-ready-second" } } }, { "id": "conversation-share-local-session-b", "description": "Session B independent prompt reply (share-session-b-ready).", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "Share UI assertions only need a completed terminal turn before publication." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"], "bodyIncludes": ["share-session-b-ready"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-local-session-b", "inputTokens": 64, "outputTokens": 8, "text": "share-session-b-ready" } } }, { "id": "conversation-share-uri-file-main", "description": "Share case returns local file URI text in a completed assistant response.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "The case verifies URI text passes share preflight." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_URI_V1"], "bodyIncludes": ["file:///workspace/report.pdf"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-uri-file-main", "inputTokens": 64, "outputTokens": 16, "text": "file:///workspace/report.pdf" } } }, { "id": "conversation-share-uri-data-main", "description": "Share case returns data URI text in a completed assistant response.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "The case verifies URI text passes share preflight." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_URI_V1"], "bodyIncludes": ["data:text/plain;base64,YQ=="] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-uri-data-main", "inputTokens": 64, "outputTokens": 16, "text": "data:text/plain;base64,YQ==" } } }, { "id": "conversation-share-preview-main", "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "The case verifies share candidate discovery and warning projection." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_PREVIEW_V1"], "bodyIncludes": ["prepared preview-card paths"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-preview-main", "inputTokens": 64, "outputTokens": 64, "text": "~/Code/vibe/shows/deliver/晨报_2026-09-08_早会版.pdf\n.zcode-e2e/conversation-share-preview/晨报_2026-09-08_早会版.pdf\nbuild_mn/qa/layout-review.md\n.zcode-e2e/conversation-share-preview/condensed.mp4\n.zcode-e2e/conversation-share-preview/纵横四海_电影解说.mp4\n.zcode-e2e/conversation-share-preview/final_subtitled.mp4" } } }, { "id": "conversation-share-reject-text", "description": "Local share publish uses a deterministic completed response.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "SHARE-E2E-04 needs a plain completed turn that stays shareable after the artifact turn is deselected." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_REJECT_V1"], "bodyIncludes": ["share-reject-ready"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-reject-text", "inputTokens": 64, "outputTokens": 8, "text": "share-reject-ready" } } }, { "id": "conversation-share-reject-preview", "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "SHARE-E2E-04 needs a PDF preview card so the server can reject its upload." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_REJECT_V1"], "bodyIncludes": ["prepared preview-card paths"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-reject-preview", "inputTokens": 64, "outputTokens": 64, "text": "~/Code/vibe/shows/deliver/晨报_2026-09-08_早会版.pdf\n.zcode-e2e/conversation-share-preview/晨报_2026-09-08_早会版.pdf\nbuild_mn/qa/layout-review.md\n.zcode-e2e/conversation-share-preview/condensed.mp4\n.zcode-e2e/conversation-share-preview/纵横四海_电影解说.mp4\n.zcode-e2e/conversation-share-preview/final_subtitled.mp4" } } }, { "id": "conversation-share-artifact-limit-text", "description": "Local share publish uses a deterministic completed response.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "SHARE-E2E-05 needs a plain completed turn without artifacts so deselecting the PDF turn clears the artifact count limit." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_ARTIFACT_LIMIT_V1"], "bodyIncludes": ["share-artifact-limit-ready"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-artifact-limit-text", "inputTokens": 64, "outputTokens": 8, "text": "share-artifact-limit-ready" } } }, { "id": "conversation-share-artifact-limit-preview", "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "SHARE-E2E-05 needs one PDF preview card so the selected turns exceed a zero artifact count limit." }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_ARTIFACT_LIMIT_V1"], "bodyIncludes": ["prepared preview-card paths"] }, "response": { "statusCode": 200, "statusMessage": "OK", "text": { "id": "conversation-share-artifact-limit-preview", "inputTokens": 64, "outputTokens": 64, "text": "~/Code/vibe/shows/deliver/晨报_2026-09-08_早会版.pdf\n.zcode-e2e/conversation-share-preview/晨报_2026-09-08_早会版.pdf\nbuild_mn/qa/layout-review.md\n.zcode-e2e/conversation-share-preview/condensed.mp4\n.zcode-e2e/conversation-share-preview/纵横四海_电影解说.mp4\n.zcode-e2e/conversation-share-preview/final_subtitled.mp4" } } } ] }