conversation-session-selection-comments.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-selection-comments",
  4. "spec": "./test/e2e/conversation-session/presentation/conversation-session-selection-comments.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "title-e2e_scm_",
  8. "description": "Upstream e2e title generation 的固定辅助响应,避免标题生成请求误命中业务 case fixture。",
  9. "match": {
  10. "method": "POST",
  11. "pathIncludes": "/messages",
  12. "bodyIncludes": ["Generate a concise title", "E2E_SCM_"]
  13. },
  14. "response": {
  15. "statusCode": 200,
  16. "statusMessage": "OK",
  17. "headers": {
  18. "content-type": "application/json; charset=utf-8"
  19. },
  20. "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\"}}"
  21. },
  22. "metadata": {
  23. "kind": "common",
  24. "source": "synthetic",
  25. "timingPolicy": "fast-text",
  26. "syntheticReason": "固定上游回复以复现选区批注的 UI 与模型输入;真实 Agent、rewind、引用协议与 UI 不被替换。"
  27. }
  28. },
  29. {
  30. "id": "scm-seed-one",
  31. "metadata": {
  32. "kind": "main",
  33. "source": "synthetic",
  34. "timingPolicy": "fast-text",
  35. "syntheticReason": "固定上游回复以复现选区批注的 UI 与模型输入;真实 Agent、rewind、引用协议与 UI 不被替换。"
  36. },
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/messages",
  40. "lastUserMessageIncludes": ["E2E_SCM_SEED_ONE"],
  41. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "text": "下面是结果:\n\n| 项目 | 值 |\n| --- | --- |\n| 标记 | E2E_SCM_ANSWER_ONE |\n| 状态 | 完成 |\n"
  46. }
  47. },
  48. {
  49. "id": "scm-seed-two",
  50. "metadata": {
  51. "kind": "main",
  52. "source": "synthetic",
  53. "timingPolicy": "fast-text",
  54. "syntheticReason": "固定上游回复以复现选区批注的 UI 与模型输入;真实 Agent、rewind、引用协议与 UI 不被替换。"
  55. },
  56. "match": {
  57. "method": "POST",
  58. "pathIncludes": "/messages",
  59. "lastUserMessageIncludes": ["E2E_SCM_SEED_TWO"],
  60. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  61. "lastUserMessageExcludes": ["E2E_SCM_SEED_TWO_REWOUND"]
  62. },
  63. "response": {
  64. "statusCode": 200,
  65. "text": "```ts\nconst answer = 2;\n```\n\nE2E_SCM_ANSWER_TWO\n"
  66. }
  67. },
  68. {
  69. "id": "scm-seed-two-rewound",
  70. "metadata": {
  71. "kind": "main",
  72. "source": "synthetic",
  73. "timingPolicy": "fast-text",
  74. "syntheticReason": "固定上游回复以复现选区批注的 UI 与模型输入;真实 Agent、rewind、引用协议与 UI 不被替换。"
  75. },
  76. "match": {
  77. "method": "POST",
  78. "pathIncludes": "/messages",
  79. "lastUserMessageIncludes": ["E2E_SCM_SEED_TWO_REWOUND"],
  80. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  81. },
  82. "response": {
  83. "statusCode": 200,
  84. "text": "E2E_SCM_REWOUND_DONE"
  85. }
  86. },
  87. {
  88. "id": "scm-send",
  89. "metadata": {
  90. "kind": "main",
  91. "source": "synthetic",
  92. "timingPolicy": "fast-text",
  93. "syntheticReason": "固定上游回复以复现选区批注的 UI 与模型输入;真实 Agent、rewind、引用协议与 UI 不被替换。"
  94. },
  95. "match": {
  96. "method": "POST",
  97. "pathIncludes": "/messages",
  98. "lastUserMessageIncludes": ["E2E_SCM_SEND", "E2E_SCM_COMMENT_KEEP"],
  99. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  100. },
  101. "response": {
  102. "statusCode": 200,
  103. "text": "E2E_SCM_SEND_DONE"
  104. }
  105. }
  106. ]
  107. }