| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- {
- "version": 1,
- "caseName": "conversation-session-bot-continuous-worker",
- "spec": "./test/e2e/conversation-session/session-control/conversation-session-bot-continuous-worker.test.ts",
- "fixtures": [
- {
- "id": "queue-running",
- "metadata": {
- "kind": "main",
- "timingPolicy": "controlled-stream",
- "source": "synthetic",
- "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_BOT_GROUP_RUNNING"],
- "bodyExcludes": [
- "E2E_BOT_GROUP_QUEUED",
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY"
- ]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream"
- },
- "releaseAfterChunks": 1,
- "chunks": [
- {
- "offsetMs": 0,
- "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"
- },
- {
- "offsetMs": 0,
- "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"
- }
- ]
- }
- },
- {
- "id": "queue-next",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_BOT_GROUP_QUEUED"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_GROUP_QUEUED_DONE"
- }
- },
- {
- "id": "private-first",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_BOT_PRIVATE_FIRST"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_PRIVATE_FIRST_DONE"
- }
- },
- {
- "id": "private-next",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "真实 CLI 顺序提升群聊队列与私聊持续订阅;模型与平台 HTTP 隔离。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_BOT_PRIVATE_NEXT"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_PRIVATE_NEXT_DONE"
- }
- }
- ]
- }
|