conversation-session-share-publish-import.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-share-publish-import",
  4. "spec": "./test/e2e/conversation-session/sharing/conversation-session-share-publish-import.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-share-session-b-title",
  8. "description": "为 Session B 返回独立标题,验证分享草稿不会串用 A 的标题。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "SHARE27 验证 A/B 分享状态隔离,需要不同固定标题;通用标题会使数据前置条件失效。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_CONVERSATION_SHARE_LOCAL_V1", "session-b"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "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\"}}"
  27. }
  28. },
  29. {
  30. "id": "conversation-session-share-publish-import-title-sidecar",
  31. "description": "本例标题旁路响应。",
  32. "metadata": {
  33. "kind": "common",
  34. "source": "synthetic",
  35. "timingPolicy": "fast-text",
  36. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "bodyIncludes": ["Generate a concise title"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "statusMessage": "OK",
  46. "headers": {
  47. "content-type": "application/json; charset=utf-8"
  48. },
  49. "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\"}}"
  50. }
  51. },
  52. {
  53. "id": "conversation-share-local-main",
  54. "description": "Local share publish uses a deterministic completed response.",
  55. "metadata": {
  56. "kind": "main",
  57. "timingPolicy": "fast-text",
  58. "source": "synthetic",
  59. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  60. },
  61. "maxMatches": 1,
  62. "match": {
  63. "method": "POST",
  64. "pathIncludes": "/messages",
  65. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  66. "bodyIncludes": ["share-local-ready"]
  67. },
  68. "response": {
  69. "statusCode": 200,
  70. "statusMessage": "OK",
  71. "text": {
  72. "id": "conversation-share-local-main",
  73. "inputTokens": 64,
  74. "outputTokens": 8,
  75. "text": "share-local-ready"
  76. }
  77. }
  78. },
  79. {
  80. "id": "conversation-share-local-main-second",
  81. "description": "Second completed turn for share selection (share-local-ready-second).",
  82. "metadata": {
  83. "kind": "main",
  84. "timingPolicy": "fast-text",
  85. "source": "synthetic",
  86. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  87. },
  88. "maxMatches": 1,
  89. "match": {
  90. "method": "POST",
  91. "pathIncludes": "/messages",
  92. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  93. "bodyIncludes": ["share-local-ready-second"]
  94. },
  95. "response": {
  96. "statusCode": 200,
  97. "statusMessage": "OK",
  98. "text": {
  99. "id": "conversation-share-local-main-second",
  100. "inputTokens": 64,
  101. "outputTokens": 8,
  102. "text": "share-local-ready-second"
  103. }
  104. }
  105. },
  106. {
  107. "id": "conversation-share-local-session-b",
  108. "description": "Session B independent prompt reply (share-session-b-ready).",
  109. "metadata": {
  110. "kind": "main",
  111. "timingPolicy": "fast-text",
  112. "source": "synthetic",
  113. "syntheticReason": "Share UI assertions only need a completed terminal turn before publication."
  114. },
  115. "maxMatches": 1,
  116. "match": {
  117. "method": "POST",
  118. "pathIncludes": "/messages",
  119. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_LOCAL_V1"],
  120. "bodyIncludes": ["share-session-b-ready"]
  121. },
  122. "response": {
  123. "statusCode": 200,
  124. "statusMessage": "OK",
  125. "text": {
  126. "id": "conversation-share-local-session-b",
  127. "inputTokens": 64,
  128. "outputTokens": 8,
  129. "text": "share-session-b-ready"
  130. }
  131. }
  132. },
  133. {
  134. "id": "conversation-share-uri-file-main",
  135. "description": "Share case returns local file URI text in a completed assistant response.",
  136. "metadata": {
  137. "kind": "main",
  138. "timingPolicy": "fast-text",
  139. "source": "synthetic",
  140. "syntheticReason": "The case verifies URI text passes share preflight."
  141. },
  142. "maxMatches": 1,
  143. "match": {
  144. "method": "POST",
  145. "pathIncludes": "/messages",
  146. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_URI_V1"],
  147. "bodyIncludes": ["file:///workspace/report.pdf"]
  148. },
  149. "response": {
  150. "statusCode": 200,
  151. "statusMessage": "OK",
  152. "text": {
  153. "id": "conversation-share-uri-file-main",
  154. "inputTokens": 64,
  155. "outputTokens": 16,
  156. "text": "file:///workspace/report.pdf"
  157. }
  158. }
  159. },
  160. {
  161. "id": "conversation-share-uri-data-main",
  162. "description": "Share case returns data URI text in a completed assistant response.",
  163. "metadata": {
  164. "kind": "main",
  165. "timingPolicy": "fast-text",
  166. "source": "synthetic",
  167. "syntheticReason": "The case verifies URI text passes share preflight."
  168. },
  169. "maxMatches": 1,
  170. "match": {
  171. "method": "POST",
  172. "pathIncludes": "/messages",
  173. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_URI_V1"],
  174. "bodyIncludes": ["data:text/plain;base64,YQ=="]
  175. },
  176. "response": {
  177. "statusCode": 200,
  178. "statusMessage": "OK",
  179. "text": {
  180. "id": "conversation-share-uri-data-main",
  181. "inputTokens": 64,
  182. "outputTokens": 16,
  183. "text": "data:text/plain;base64,YQ=="
  184. }
  185. }
  186. },
  187. {
  188. "id": "conversation-share-preview-main",
  189. "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.",
  190. "metadata": {
  191. "kind": "main",
  192. "timingPolicy": "fast-text",
  193. "source": "synthetic",
  194. "syntheticReason": "The case verifies share candidate discovery and warning projection."
  195. },
  196. "maxMatches": 1,
  197. "match": {
  198. "method": "POST",
  199. "pathIncludes": "/messages",
  200. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_PREVIEW_V1"],
  201. "bodyIncludes": ["prepared preview-card paths"]
  202. },
  203. "response": {
  204. "statusCode": 200,
  205. "statusMessage": "OK",
  206. "text": {
  207. "id": "conversation-share-preview-main",
  208. "inputTokens": 64,
  209. "outputTokens": 64,
  210. "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"
  211. }
  212. }
  213. },
  214. {
  215. "id": "conversation-share-reject-text",
  216. "description": "Local share publish uses a deterministic completed response.",
  217. "metadata": {
  218. "kind": "main",
  219. "timingPolicy": "fast-text",
  220. "source": "synthetic",
  221. "syntheticReason": "SHARE-E2E-04 needs a plain completed turn that stays shareable after the artifact turn is deselected."
  222. },
  223. "maxMatches": 1,
  224. "match": {
  225. "method": "POST",
  226. "pathIncludes": "/messages",
  227. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_REJECT_V1"],
  228. "bodyIncludes": ["share-reject-ready"]
  229. },
  230. "response": {
  231. "statusCode": 200,
  232. "statusMessage": "OK",
  233. "text": {
  234. "id": "conversation-share-reject-text",
  235. "inputTokens": 64,
  236. "outputTokens": 8,
  237. "text": "share-reject-ready"
  238. }
  239. }
  240. },
  241. {
  242. "id": "conversation-share-reject-preview",
  243. "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.",
  244. "metadata": {
  245. "kind": "main",
  246. "timingPolicy": "fast-text",
  247. "source": "synthetic",
  248. "syntheticReason": "SHARE-E2E-04 needs a PDF preview card so the server can reject its upload."
  249. },
  250. "maxMatches": 1,
  251. "match": {
  252. "method": "POST",
  253. "pathIncludes": "/messages",
  254. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_REJECT_V1"],
  255. "bodyIncludes": ["prepared preview-card paths"]
  256. },
  257. "response": {
  258. "statusCode": 200,
  259. "statusMessage": "OK",
  260. "text": {
  261. "id": "conversation-share-reject-preview",
  262. "inputTokens": 64,
  263. "outputTokens": 64,
  264. "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"
  265. }
  266. }
  267. },
  268. {
  269. "id": "conversation-share-artifact-limit-text",
  270. "description": "Local share publish uses a deterministic completed response.",
  271. "metadata": {
  272. "kind": "main",
  273. "timingPolicy": "fast-text",
  274. "source": "synthetic",
  275. "syntheticReason": "SHARE-E2E-05 needs a plain completed turn without artifacts so deselecting the PDF turn clears the artifact count limit."
  276. },
  277. "maxMatches": 1,
  278. "match": {
  279. "method": "POST",
  280. "pathIncludes": "/messages",
  281. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_ARTIFACT_LIMIT_V1"],
  282. "bodyIncludes": ["share-artifact-limit-ready"]
  283. },
  284. "response": {
  285. "statusCode": 200,
  286. "statusMessage": "OK",
  287. "text": {
  288. "id": "conversation-share-artifact-limit-text",
  289. "inputTokens": 64,
  290. "outputTokens": 8,
  291. "text": "share-artifact-limit-ready"
  292. }
  293. }
  294. },
  295. {
  296. "id": "conversation-share-artifact-limit-preview",
  297. "description": "Share candidate case returns one PDF preview, three media previews, and non-candidate paths.",
  298. "metadata": {
  299. "kind": "main",
  300. "timingPolicy": "fast-text",
  301. "source": "synthetic",
  302. "syntheticReason": "SHARE-E2E-05 needs one PDF preview card so the selected turns exceed a zero artifact count limit."
  303. },
  304. "maxMatches": 1,
  305. "match": {
  306. "method": "POST",
  307. "pathIncludes": "/messages",
  308. "lastUserMessageIncludes": ["E2E_CONVERSATION_SHARE_ARTIFACT_LIMIT_V1"],
  309. "bodyIncludes": ["prepared preview-card paths"]
  310. },
  311. "response": {
  312. "statusCode": 200,
  313. "statusMessage": "OK",
  314. "text": {
  315. "id": "conversation-share-artifact-limit-preview",
  316. "inputTokens": 64,
  317. "outputTokens": 64,
  318. "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"
  319. }
  320. }
  321. }
  322. ]
  323. }