conversation-session-assistant-preview-cards.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-assistant-preview-cards",
  4. "spec": "./test/e2e/conversation-session/conversation-session-assistant-preview-cards.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-assistant-preview-cards.json"
  8. ],
  9. "fileFixtures": [
  10. {
  11. "path": "assistant-preview-e2e/本轮 输出/index 页面.html",
  12. "source": "created-by-provider-tool",
  13. "description": "APC04/APC05/APC09/APC11 由真实 Write 创建的 HTML,用于 current-turn fileChanges、Browser、side pane 会话偏好和 cold resume。"
  14. },
  15. {
  16. "path": "assistant-preview-e2e/本轮 输出/说明 文档.md",
  17. "source": "created-by-provider-tool",
  18. "description": "APC05/APC09/APC11 由真实 Write 创建的 Markdown,用于 current-turn fileChanges、Preview Pane、side pane 会话偏好和 cold resume。"
  19. },
  20. {
  21. "path": "assistant-preview-e2e/office/*.{docx,xlsx,pptx,pdf}",
  22. "source": "created-by-spec",
  23. "description": "spec 从 case-local 最小有效二进制 fixture 复制到 workspace,验证真实 Host stat 过滤与 Desktop 完成态 PPTX 自动打开 renderer。"
  24. },
  25. {
  26. "path": "assistant-preview-e2e/media/*.{mp4,wav}",
  27. "source": "created-by-spec",
  28. "description": "spec 写入媒体 fixture,验证 APC12 媒体卡片、Host stat、本地授权 URL 与原生 audio 控件。"
  29. },
  30. {
  31. "path": "assistant-preview-e2e/bounds/*.pdf",
  32. "source": "created-by-spec",
  33. "description": "spec 写入存在性候选;不打开内容,只验证 Host stat、15 个候选和最多 10 张卡片。"
  34. }
  35. ],
  36. "requests": [
  37. {
  38. "id": "assistant-preview-cards-title",
  39. "kind": "common",
  40. "source": "synthetic",
  41. "timingPolicy": "fast-text",
  42. "syntheticReason": "标题不属于预览卡片产品语义,只需避免 sidecar 请求误命中业务 fixture。"
  43. },
  44. {
  45. "id": "assistant-preview-cards-local-url",
  46. "kind": "main",
  47. "source": "synthetic",
  48. "timingPolicy": "fast-text",
  49. "syntheticReason": "固定 assistant 文本中的动态随机端口 URL,稳定验证卡片投影和 Browser side pane。"
  50. },
  51. {
  52. "id": "assistant-preview-cards-interrupted",
  53. "kind": "main",
  54. "source": "synthetic",
  55. "timingPolicy": "controlled-stream",
  56. "syntheticReason": "interrupted 卡片必须在可重复的半流窗口中触发 Stop,普通 fast-text 无法提供该边界。"
  57. },
  58. {
  59. "id": "assistant-preview-cards-streaming",
  60. "kind": "main",
  61. "source": "synthetic",
  62. "timingPolicy": "controlled-stream",
  63. "syntheticReason": "需要在 assistant text 已可见但 row 尚未 terminal 时断言没有卡片。"
  64. },
  65. {
  66. "id": "assistant-preview-cards-suppression-write",
  67. "kind": "main",
  68. "source": "synthetic",
  69. "timingPolicy": "fast-text",
  70. "syntheticReason": "固定 Write 工具选择以建立本轮 active HTML fileChanges。"
  71. },
  72. {
  73. "id": "assistant-preview-cards-suppression-final",
  74. "kind": "main",
  75. "source": "synthetic",
  76. "timingPolicy": "fast-text",
  77. "syntheticReason": "固定现有业务语义:任一本地 HTTP URL 都抑制同轮全部 HTML 卡片。"
  78. },
  79. {
  80. "id": "assistant-preview-cards-office-pptx",
  81. "kind": "main",
  82. "source": "synthetic",
  83. "timingPolicy": "fast-text",
  84. "syntheticReason": "稳定给出 Unicode/空格文件引用和出现顺序,文件存在性与 renderer 仍走真实产品链路。"
  85. },
  86. {
  87. "id": "assistant-preview-cards-audio",
  88. "kind": "main",
  89. "source": "synthetic",
  90. "timingPolicy": "fast-text",
  91. "syntheticReason": "将音频从 PPTX 自动打开轮拆出,避免 side pane active tab 竞争。"
  92. },
  93. {
  94. "id": "assistant-preview-cards-video",
  95. "kind": "main",
  96. "source": "synthetic",
  97. "timingPolicy": "fast-text",
  98. "syntheticReason": "将视频从 PPTX 自动打开轮拆出,避免 side pane active tab 竞争。"
  99. },
  100. {
  101. "id": "assistant-preview-cards-max-ten",
  102. "kind": "main",
  103. "source": "synthetic",
  104. "timingPolicy": "fast-text",
  105. "syntheticReason": "固定候选数量和文本顺序,真实存在性继续由 Host stat 决定。"
  106. },
  107. {
  108. "id": "assistant-preview-cards-no-backfill",
  109. "kind": "main",
  110. "source": "synthetic",
  111. "timingPolicy": "fast-text",
  112. "syntheticReason": "固定 15 候选边界和缺失分布,验证产品不会为了凑满 10 张继续探测。"
  113. },
  114. {
  115. "id": "assistant-preview-cards-source-write-html",
  116. "kind": "main",
  117. "source": "synthetic",
  118. "timingPolicy": "fast-text",
  119. "syntheticReason": "固定 Write 工具选择,建立可持久化的当前轮 HTML fileChanges。"
  120. },
  121. {
  122. "id": "assistant-preview-cards-source-write-markdown",
  123. "kind": "main",
  124. "source": "synthetic",
  125. "timingPolicy": "fast-text",
  126. "syntheticReason": "固定第二次 Write,确保 HTML/Markdown 都属于同一 turn 的 active fileChanges。"
  127. },
  128. {
  129. "id": "assistant-preview-cards-source-auto-compact",
  130. "kind": "main",
  131. "source": "synthetic",
  132. "timingPolicy": "fast-text",
  133. "syntheticReason": "E2E provider 的极小 context window 会在第二次 Write 后触发自动 compact;固定 summary,避免 replay 缺口打断文件预览与 cold resume 语义。"
  134. },
  135. {
  136. "id": "assistant-preview-cards-source-final",
  137. "kind": "main",
  138. "source": "synthetic",
  139. "timingPolicy": "fast-text",
  140. "syntheticReason": "固定文本顺序,验证卡片逆序、打开目标和 cold resume 重建。"
  141. },
  142. {
  143. "id": "assistant-preview-cards-parking",
  144. "kind": "main",
  145. "source": "synthetic",
  146. "timingPolicy": "fast-text",
  147. "syntheticReason": "冷启动后显式选择目标历史 task,避免把自动恢复当前 task 误算成 cold resume 证据。"
  148. }
  149. ]
  150. }