| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- {
- "version": 1,
- "caseName": "conversation-session-ssh-remote-p0",
- "spec": "./test/e2e/conversation-session/remote/connection/conversation-session-ssh-remote-p0.test.ts",
- "fixtures": [
- {
- "id": "ssh-remote-p0-title",
- "description": "远端 task 标题生成固定响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "标题内容不属于本 case 语义,只需保持 task row 稳定。"
- },
- "maxMatches": 4,
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "bodyIncludes": ["Generate a concise title", "E2E_SSH_REMOTE_P0"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "data: {\"id\":\"chatcmpl-ssh-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"SSH Remote P0\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-ssh-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
- }
- },
- {
- "id": "ssh-remote-p0-a-first",
- "description": "workspace A 首发固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "controlled-stream",
- "source": "synthetic",
- "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "chunks": [
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-a1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_A_FIRST_REPLY\"},\"finish_reason\":null}]}\n\n"
- },
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-a1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
- }
- ],
- "releaseAfterChunks": 1
- }
- },
- {
- "id": "ssh-remote-p0-b-first",
- "description": "workspace B 首发固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "controlled-stream",
- "source": "synthetic",
- "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "chunks": [
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-b1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_B_FIRST_REPLY\"},\"finish_reason\":null}]}\n\n"
- },
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-b1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
- }
- ],
- "releaseAfterChunks": 1
- }
- },
- {
- "id": "ssh-remote-p0-a-follow",
- "description": "workspace A 续发固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "controlled-stream",
- "source": "synthetic",
- "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_A_FOLLOW_PROMPT"],
- "bodyIncludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT"],
- "bodyExcludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT", "Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "chunks": [
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-a2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_A_FOLLOW_REPLY\"},\"finish_reason\":null}]}\n\n"
- },
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-a2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":48,\"completion_tokens\":8,\"total_tokens\":56}}\n\ndata: [DONE]\n\n"
- }
- ],
- "releaseAfterChunks": 1
- }
- },
- {
- "id": "ssh-remote-p0-b-follow",
- "description": "workspace B 续发固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "controlled-stream",
- "source": "synthetic",
- "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_B_FOLLOW_PROMPT"],
- "bodyIncludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT"],
- "bodyExcludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT", "Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "chunks": [
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-b2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_B_FOLLOW_REPLY\"},\"finish_reason\":null}]}\n\n"
- },
- {
- "offsetMs": 0,
- "text": "data: {\"id\":\"chatcmpl-ssh-b2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":48,\"completion_tokens\":8,\"total_tokens\":56}}\n\ndata: [DONE]\n\n"
- }
- ],
- "releaseAfterChunks": 1
- }
- }
- ]
- }
|