conversation-session-v4-plan-shortcut.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-plan-shortcut",
  4. "spec": "./test/e2e/conversation-session/conversation-session-v4-plan-shortcut.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-plan-shortcut-title",
  8. "description": "E2E_V4_PLAN_SHORTCUT_SEED 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "为列表操作测试建立已有会话,固定 seed 标题响应。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": [
  19. "Generate a concise title",
  20. "E2E_V4_PLAN_SHORTCUT_SEED"
  21. ]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "text": {
  26. "id": "v4-plan-shortcut-title",
  27. "inputTokens": 64,
  28. "outputTokens": 8,
  29. "text": "{\"title\":\"V4 Plan Shortcut E2E\"}"
  30. }
  31. }
  32. },
  33. {
  34. "id": "v4-plan-shortcut-seed",
  35. "description": "Plan shortcut seed:建立可发送普通 follow-up 的已有 session。",
  36. "metadata": {
  37. "kind": "main",
  38. "timingPolicy": "fast-text",
  39. "source": "synthetic",
  40. "syntheticReason": "为点击选择和窄屏原文发送提供稳定的已有会话。"
  41. },
  42. "maxMatches": 2,
  43. "match": {
  44. "method": "POST",
  45. "pathIncludes": "/messages",
  46. "lastUserMessageIncludes": [
  47. "E2E_V4_PLAN_SHORTCUT_SEED"
  48. ],
  49. "bodyExcludes": [
  50. "Generate a concise title",
  51. "CRITICAL: Respond with TEXT ONLY"
  52. ]
  53. },
  54. "response": {
  55. "statusCode": 200,
  56. "text": {
  57. "id": "v4-plan-shortcut-seed",
  58. "inputTokens": 80,
  59. "outputTokens": 8,
  60. "text": "V4_PLAN_SHORTCUT_SEED_OK"
  61. }
  62. }
  63. },
  64. {
  65. "id": "v4-plan-shortcut-task-one",
  66. "description": "选择计划模式后,正文和附件走标准 Plan 发送。",
  67. "metadata": {
  68. "kind": "main",
  69. "timingPolicy": "fast-text",
  70. "source": "synthetic",
  71. "syntheticReason": "验证选中不发送,另行发送时保留附件并携带标准 Plan 指令。"
  72. },
  73. "maxMatches": 1,
  74. "match": {
  75. "method": "POST",
  76. "pathIncludes": "/messages",
  77. "lastUserMessageIncludes": [
  78. "E2E_V4_PLAN_SHORTCUT_TASK_ONE",
  79. "e2e-plan-picker.png"
  80. ],
  81. "lastUserMessageExcludes": [
  82. "/plan"
  83. ],
  84. "bodyExcludes": [
  85. "Generate a concise title",
  86. "CRITICAL: Respond with TEXT ONLY"
  87. ],
  88. "bodyIncludes": [
  89. "Plan mode is active."
  90. ]
  91. },
  92. "response": {
  93. "statusCode": 200,
  94. "text": {
  95. "id": "v4-plan-shortcut-task-one",
  96. "inputTokens": 96,
  97. "outputTokens": 8,
  98. "text": "V4_PLAN_SHORTCUT_TASK_ONE_OK"
  99. }
  100. }
  101. },
  102. {
  103. "id": "v4-plan-shortcut-task-two",
  104. "description": "关闭 Plan 后发送原始 /plan 文本,不发生隐式模式切换。",
  105. "metadata": {
  106. "kind": "main",
  107. "timingPolicy": "fast-text",
  108. "source": "synthetic",
  109. "syntheticReason": "验证发送层不再剥离 /plan,也不再启用 Plan。"
  110. },
  111. "maxMatches": 1,
  112. "match": {
  113. "method": "POST",
  114. "pathIncludes": "/messages",
  115. "lastUserMessageIncludes": [
  116. "/plan E2E_V4_PLAN_SHORTCUT_TASK_TWO"
  117. ],
  118. "bodyExcludes": [
  119. "Generate a concise title",
  120. "CRITICAL: Respond with TEXT ONLY",
  121. "Plan mode is active."
  122. ]
  123. },
  124. "response": {
  125. "statusCode": 200,
  126. "text": {
  127. "id": "v4-plan-shortcut-task-two",
  128. "inputTokens": 112,
  129. "outputTokens": 8,
  130. "text": "V4_PLAN_SHORTCUT_TASK_TWO_OK"
  131. }
  132. }
  133. }
  134. ]
  135. }