managed-worktree.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "version": 1,
  3. "fixtures": [
  4. {
  5. "id": "managed-worktree-title-sidecar",
  6. "description": "标题旁路的固定响应。",
  7. "metadata": {
  8. "kind": "common",
  9. "source": "synthetic",
  10. "timingPolicy": "fast-text",
  11. "syntheticReason": "标题旁路需要固定响应,避免后台重试干扰 worktree 用例时序。"
  12. },
  13. "match": {
  14. "method": "POST",
  15. "pathIncludes": "/messages",
  16. "bodyIncludes": ["Generate a concise title"]
  17. },
  18. "response": {
  19. "statusCode": 200,
  20. "statusMessage": "OK",
  21. "headers": { "content-type": "application/json; charset=utf-8" },
  22. "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  23. }
  24. },
  25. {
  26. "id": "managed-worktree-reply",
  27. "description": "worktree 任务首发与分叉来源的固定回复。",
  28. "metadata": {
  29. "kind": "main",
  30. "timingPolicy": "fast-text",
  31. "source": "synthetic",
  32. "syntheticReason": "用例只验证任务 cwd、分叉目的地与 worktree 管理,不依赖模型内容。"
  33. },
  34. "match": {
  35. "method": "POST",
  36. "pathIncludes": "/messages",
  37. "bodyIncludes": ["E2E_MANAGED_WORKTREE"],
  38. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  39. },
  40. "response": {
  41. "statusCode": 200,
  42. "text": {
  43. "id": "managed-worktree-reply",
  44. "inputTokens": 40,
  45. "outputTokens": 8,
  46. "text": "upstream-e2e-ok"
  47. }
  48. }
  49. }
  50. ]
  51. }