conversation-session-bot-continuous-worker.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-bot-continuous-worker",
  4. "spec": "./test/e2e/conversation-session/session-control/conversation-session-bot-continuous-worker.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "queue-running",
  8. "metadata": {
  9. "kind": "main",
  10. "timingPolicy": "controlled-stream",
  11. "source": "synthetic",
  12. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "lastUserMessageIncludes": ["E2E_BOT_GROUP_RUNNING"],
  18. "bodyExcludes": [
  19. "E2E_BOT_GROUP_QUEUED",
  20. "Generate a concise title",
  21. "CRITICAL: Respond with TEXT ONLY"
  22. ]
  23. },
  24. "response": {
  25. "statusCode": 200,
  26. "headers": {
  27. "content-type": "text/event-stream"
  28. },
  29. "chunks": [
  30. {
  31. "offsetMs": 0,
  32. "text": "event: message_start\ndata: {\"type\": \"message_start\", \"message\": {\"id\": \"slow\", \"type\": \"message\", \"role\": \"assistant\", \"model\": \"e2e-bot-model\", \"content\": [], \"usage\": {\"input_tokens\": 20, \"output_tokens\": 0}}}\n\nevent: content_block_start\ndata: {\"type\": \"content_block_start\", \"index\": 0, \"content_block\": {\"type\": \"text\", \"text\": \"\"}}\n\nevent: content_block_delta\ndata: {\"type\": \"content_block_delta\", \"index\": 0, \"delta\": {\"type\": \"text_delta\", \"text\": \"E2E_GROUP_RUNNING\"}}\n\n"
  33. },
  34. {
  35. "offsetMs": 12000,
  36. "text": "event: content_block_delta\ndata: {\"type\": \"content_block_delta\", \"index\": 0, \"delta\": {\"type\": \"text_delta\", \"text\": \" E2E_GROUP_FINISHED\"}}\n\nevent: content_block_stop\ndata: {\"type\": \"content_block_stop\", \"index\": 0}\n\nevent: message_delta\ndata: {\"type\": \"message_delta\", \"delta\": {\"stop_reason\": \"end_turn\", \"stop_sequence\": null}, \"usage\": {\"output_tokens\": 10}}\n\nevent: message_stop\ndata: {\"type\": \"message_stop\"}\n\n"
  37. }
  38. ]
  39. }
  40. },
  41. {
  42. "id": "queue-next",
  43. "metadata": {
  44. "kind": "main",
  45. "timingPolicy": "fast-text",
  46. "source": "synthetic",
  47. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  48. },
  49. "match": {
  50. "method": "POST",
  51. "pathIncludes": "/messages",
  52. "lastUserMessageIncludes": ["E2E_BOT_GROUP_QUEUED"],
  53. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  54. },
  55. "response": {
  56. "statusCode": 200,
  57. "text": "E2E_GROUP_QUEUED_DONE"
  58. }
  59. },
  60. {
  61. "id": "private-first",
  62. "metadata": {
  63. "kind": "main",
  64. "timingPolicy": "fast-text",
  65. "source": "synthetic",
  66. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  67. },
  68. "match": {
  69. "method": "POST",
  70. "pathIncludes": "/messages",
  71. "lastUserMessageIncludes": ["E2E_BOT_PRIVATE_FIRST"],
  72. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  73. },
  74. "response": {
  75. "statusCode": 200,
  76. "text": "E2E_PRIVATE_FIRST_DONE"
  77. }
  78. },
  79. {
  80. "id": "private-next",
  81. "metadata": {
  82. "kind": "main",
  83. "timingPolicy": "fast-text",
  84. "source": "synthetic",
  85. "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
  86. },
  87. "match": {
  88. "method": "POST",
  89. "pathIncludes": "/messages",
  90. "lastUserMessageIncludes": ["E2E_BOT_PRIVATE_NEXT"],
  91. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  92. },
  93. "response": {
  94. "statusCode": 200,
  95. "text": "E2E_PRIVATE_NEXT_DONE"
  96. }
  97. }
  98. ]
  99. }