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

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