conversation-session-changes-group-responsive-file-summary.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-changes-group-responsive-file-summary",
  4. "spec": "./test/e2e/conversation-session/conversation-session-changes-group-responsive-file-summary.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-changes-group-responsive-file-summary-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  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\\\":\\\"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\"}}"
  27. }
  28. },
  29. {
  30. "id": "tge03-write-app",
  31. "description": "TGE03 writes App.tsx.",
  32. "metadata": {
  33. "kind": "main",
  34. "source": "synthetic",
  35. "timingPolicy": "tool-use",
  36. "syntheticReason": "固定多扩展名文件顺序,验证 Changes file chips。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY"],
  43. "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_app"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "toolUse": {
  48. "id": "toolu_tge03_write_app",
  49. "name": "Write",
  50. "input": {
  51. "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/App.tsx",
  52. "content": "TGE03_0\n"
  53. }
  54. }
  55. }
  56. },
  57. {
  58. "id": "tge03-write-css",
  59. "description": "TGE03 writes styles.css.",
  60. "metadata": {
  61. "kind": "main",
  62. "source": "synthetic",
  63. "timingPolicy": "tool-use",
  64. "syntheticReason": "固定 CSS chip 和第二个 Changes child。"
  65. },
  66. "maxMatches": 1,
  67. "match": {
  68. "method": "POST",
  69. "pathIncludes": "/messages",
  70. "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_app"],
  71. "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_css"]
  72. },
  73. "response": {
  74. "statusCode": 200,
  75. "toolUse": {
  76. "id": "toolu_tge03_write_css",
  77. "name": "Write",
  78. "input": {
  79. "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/styles.css",
  80. "content": "TGE03_1\n"
  81. }
  82. }
  83. }
  84. },
  85. {
  86. "id": "tge03-write-json",
  87. "description": "TGE03 writes package.json.",
  88. "metadata": {
  89. "kind": "main",
  90. "source": "synthetic",
  91. "timingPolicy": "tool-use",
  92. "syntheticReason": "固定 JSON chip 和第三个 Changes child。"
  93. },
  94. "maxMatches": 1,
  95. "match": {
  96. "method": "POST",
  97. "pathIncludes": "/messages",
  98. "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_css"],
  99. "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_json"]
  100. },
  101. "response": {
  102. "statusCode": 200,
  103. "toolUse": {
  104. "id": "toolu_tge03_write_json",
  105. "name": "Write",
  106. "input": {
  107. "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/package.json",
  108. "content": "TGE03_2\n"
  109. }
  110. }
  111. }
  112. },
  113. {
  114. "id": "tge03-write-markdown",
  115. "description": "TGE03 writes notes.md.",
  116. "metadata": {
  117. "kind": "main",
  118. "source": "synthetic",
  119. "timingPolicy": "tool-use",
  120. "syntheticReason": "第四个短文件稳定制造窄屏 +N。"
  121. },
  122. "maxMatches": 1,
  123. "match": {
  124. "method": "POST",
  125. "pathIncludes": "/messages",
  126. "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_json"],
  127. "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_markdown"]
  128. },
  129. "response": {
  130. "statusCode": 200,
  131. "toolUse": {
  132. "id": "toolu_tge03_write_markdown",
  133. "name": "Write",
  134. "input": {
  135. "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/notes.md",
  136. "content": "TGE03_3\n"
  137. }
  138. }
  139. }
  140. },
  141. {
  142. "id": "tge03-edit-app",
  143. "description": "TGE03 edits App.tsx to prove path deduplication.",
  144. "metadata": {
  145. "kind": "main",
  146. "source": "synthetic",
  147. "timingPolicy": "tool-use",
  148. "syntheticReason": "重复 App.tsx path 验证唯一文件数与首次出现顺序。"
  149. },
  150. "maxMatches": 1,
  151. "match": {
  152. "method": "POST",
  153. "pathIncludes": "/messages",
  154. "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_markdown"],
  155. "bodyExcludes": ["Generate a concise title", "toolu_tge03_edit_app"]
  156. },
  157. "response": {
  158. "statusCode": 200,
  159. "toolUse": {
  160. "id": "toolu_tge03_edit_app",
  161. "name": "Edit",
  162. "input": {
  163. "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/App.tsx",
  164. "old_string": "TGE03_0",
  165. "new_string": "TGE03_EDITED"
  166. }
  167. }
  168. }
  169. },
  170. {
  171. "id": "tge03-final",
  172. "description": "TGE03 completes Changes for responsive assertions.",
  173. "metadata": {
  174. "kind": "main",
  175. "source": "synthetic",
  176. "timingPolicy": "fast-text",
  177. "syntheticReason": "固定完成态,避免 file chip 测量发生在 streaming 抖动中。"
  178. },
  179. "maxMatches": 1,
  180. "match": {
  181. "method": "POST",
  182. "pathIncludes": "/messages",
  183. "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_edit_app"],
  184. "bodyExcludes": ["Generate a concise title"]
  185. },
  186. "response": {
  187. "statusCode": 200,
  188. "text": "upstream-e2e-ok"
  189. }
  190. }
  191. ]
  192. }