feishu-streaming-card-lifecycle.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "caseId": "BOT-E2E-SC-01",
  3. "classification": "synthetic",
  4. "syntheticReason": "Deterministically controls ZCode task stream phases so the running and terminal Feishu card states can both be asserted without a real tenant or timing-dependent model stream.",
  5. "prompt": "E2E_BOT_STREAMING_CARD_LIFECYCLE 请检查当前项目",
  6. "events": [
  7. { "type": "agent_message_chunk", "content": "E2E_STREAM_MESSAGE_1 我先检查项目。" },
  8. {
  9. "type": "tool_call",
  10. "toolId": "tool-1",
  11. "title": "Read README.md",
  12. "kind": "read",
  13. "input": { "path": "E2E_SECRET_INPUT_PATH" },
  14. "raw": { "private": "E2E_SECRET_RAW" }
  15. },
  16. {
  17. "type": "tool_call_update",
  18. "toolId": "tool-1",
  19. "status": "completed",
  20. "title": "Read README.md",
  21. "kind": "read",
  22. "content": "E2E_SECRET_TOOL_OUTPUT",
  23. "raw": { "stdout": "E2E_SECRET_STDOUT" }
  24. },
  25. {
  26. "type": "agent_message_chunk",
  27. "content": "E2E_STREAM_MESSAGE_2 README 看完了,我再跑测试。"
  28. },
  29. {
  30. "type": "tool_call",
  31. "toolId": "tool-2",
  32. "title": "pnpm test",
  33. "kind": "exec",
  34. "input": { "command": "E2E_SECRET_COMMAND" },
  35. "raw": { "private": "E2E_SECRET_RAW_2" }
  36. },
  37. {
  38. "type": "tool_call_update",
  39. "toolId": "tool-2",
  40. "status": "completed",
  41. "title": "pnpm test",
  42. "kind": "exec",
  43. "content": "E2E_SECRET_TOOL_OUTPUT_2",
  44. "raw": { "stderr": "E2E_SECRET_STDERR" }
  45. },
  46. { "type": "agent_message_chunk", "content": "E2E_STREAM_MESSAGE_3 测试完成。" },
  47. { "type": "task_complete", "stopReason": "end_turn" }
  48. ],
  49. "expectedTimeline": [
  50. "message:E2E_STREAM_MESSAGE_1 我先检查项目。",
  51. "tools:🛠️ 工具摘要 (1):false",
  52. "message:E2E_STREAM_MESSAGE_2 README 看完了,我再跑测试。",
  53. "tools:🛠️ 工具摘要 (1):false",
  54. "message:E2E_STREAM_MESSAGE_3 测试完成。",
  55. "message:✅ 已完成"
  56. ],
  57. "forbiddenCardMarkers": [
  58. "E2E_SECRET_RAW",
  59. "E2E_SECRET_TOOL_OUTPUT",
  60. "E2E_SECRET_STDOUT",
  61. "E2E_SECRET_RAW_2",
  62. "E2E_SECRET_TOOL_OUTPUT_2",
  63. "E2E_SECRET_STDERR"
  64. ]
  65. }