conversation-session-ssh-remote-p0.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-p0",
  4. "spec": "./test/e2e/conversation-session/conversation-session-ssh-remote-p0.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-remote-p0-title",
  8. "description": "远端 task 标题生成固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题内容不属于本 case 语义,只需保持 task row 稳定。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_REMOTE_P0"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  24. "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"
  25. }
  26. },
  27. {
  28. "id": "ssh-remote-p0-a-first",
  29. "description": "workspace A 首发固定回复。",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "slow-stream",
  33. "source": "synthetic",
  34. "syntheticReason": "稳定验证远端首发请求、running 状态和回复。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/chat/completions",
  39. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT"],
  40. "bodyExcludes": ["Generate a concise title"]
  41. },
  42. "response": {
  43. "statusCode": 200,
  44. "delayMs": 1200,
  45. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  46. "body": "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\ndata: {\"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"
  47. }
  48. },
  49. {
  50. "id": "ssh-remote-p0-b-first",
  51. "description": "workspace B 首发固定回复。",
  52. "metadata": {
  53. "kind": "main",
  54. "timingPolicy": "slow-stream",
  55. "source": "synthetic",
  56. "syntheticReason": "稳定验证远端首发请求、running 状态和回复。"
  57. },
  58. "match": {
  59. "method": "POST",
  60. "pathIncludes": "/chat/completions",
  61. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT"],
  62. "bodyExcludes": ["Generate a concise title"]
  63. },
  64. "response": {
  65. "statusCode": 200,
  66. "delayMs": 1200,
  67. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  68. "body": "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\ndata: {\"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"
  69. }
  70. },
  71. {
  72. "id": "ssh-remote-p0-a-follow",
  73. "description": "workspace A 续发固定回复。",
  74. "metadata": {
  75. "kind": "main",
  76. "timingPolicy": "slow-stream",
  77. "source": "synthetic",
  78. "syntheticReason": "稳定验证 task A 续发历史隔离。"
  79. },
  80. "match": {
  81. "method": "POST",
  82. "pathIncludes": "/chat/completions",
  83. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_A_FOLLOW_PROMPT"],
  84. "bodyIncludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT"],
  85. "bodyExcludes": [
  86. "E2E_SSH_REMOTE_P0_B_FIRST_PROMPT",
  87. "Generate a concise title"
  88. ]
  89. },
  90. "response": {
  91. "statusCode": 200,
  92. "delayMs": 1200,
  93. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  94. "body": "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\ndata: {\"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"
  95. }
  96. },
  97. {
  98. "id": "ssh-remote-p0-b-follow",
  99. "description": "workspace B 续发固定回复。",
  100. "metadata": {
  101. "kind": "main",
  102. "timingPolicy": "slow-stream",
  103. "source": "synthetic",
  104. "syntheticReason": "稳定验证 task B 续发历史隔离。"
  105. },
  106. "match": {
  107. "method": "POST",
  108. "pathIncludes": "/chat/completions",
  109. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_B_FOLLOW_PROMPT"],
  110. "bodyIncludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT"],
  111. "bodyExcludes": [
  112. "E2E_SSH_REMOTE_P0_A_FIRST_PROMPT",
  113. "Generate a concise title"
  114. ]
  115. },
  116. "response": {
  117. "statusCode": 200,
  118. "delayMs": 1200,
  119. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  120. "body": "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\ndata: {\"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"
  121. }
  122. }
  123. ]
  124. }