conversation-session-share-ssh-artifact.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-share-ssh-artifact",
  4. "spec": "./test/e2e/conversation-session/conversation-session-share-ssh-artifact.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-share-ssh-write",
  8. "description": "Create a real remote HTML artifact before publishing.",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "回放只固定模型决策;Write、远端产物读取和分享发布均走真实链路。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": [
  20. "E2E_CONVERSATION_SHARE_SSH_ARTIFACT_V1"
  21. ],
  22. "bodyIncludes": [
  23. "E2E_SSH_SHARE_ARTIFACT_CONTENT"
  24. ],
  25. "bodyExcludes": [
  26. "toolu_share_ssh_write",
  27. "Generate a concise title",
  28. "CRITICAL: Respond with TEXT ONLY"
  29. ]
  30. },
  31. "response": {
  32. "statusCode": 200,
  33. "toolUses": [
  34. {
  35. "id": "toolu_share_ssh_write",
  36. "name": "Write",
  37. "input": {
  38. "file_path": "report.html",
  39. "content": "<!doctype html><html><body>E2E_SSH_SHARE_ARTIFACT_CONTENT</body></html>\n"
  40. }
  41. }
  42. ]
  43. }
  44. },
  45. {
  46. "id": "conversation-share-ssh-main",
  47. "description": "SSH share case has a deterministic completed response after remote artifact creation.",
  48. "metadata": {
  49. "kind": "main",
  50. "timingPolicy": "fast-text",
  51. "source": "synthetic",
  52. "syntheticReason": "回放只固定模型决策;Write、远端产物读取和分享发布均走真实链路。"
  53. },
  54. "maxMatches": 1,
  55. "match": {
  56. "method": "POST",
  57. "pathIncludes": "/messages",
  58. "bodyIncludes": [
  59. "E2E_CONVERSATION_SHARE_SSH_ARTIFACT_V1",
  60. "toolu_share_ssh_write"
  61. ]
  62. },
  63. "response": {
  64. "statusCode": 200,
  65. "statusMessage": "OK",
  66. "text": {
  67. "id": "conversation-share-ssh-main",
  68. "inputTokens": 64,
  69. "outputTokens": 8,
  70. "text": "share-ssh-ready [report.html](report.html)"
  71. }
  72. }
  73. }
  74. ]
  75. }