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

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