conversation-session-bot-channel-worker.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-bot-channel-worker",
  4. "spec": "./test/e2e/conversation-session/session-control/conversation-session-bot-channel-worker.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "first-tool",
  8. "metadata": {
  9. "kind": "main",
  10. "timingPolicy": "fast-text",
  11. "source": "synthetic",
  12. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "lastUserMessageIncludes": ["E2E_BOT_CHANNEL_FIRST"],
  18. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "toolUse": {
  23. "id": "call_first",
  24. "name": "ReplyToChannel",
  25. "input": {
  26. "parts": [
  27. {
  28. "type": "mention",
  29. "refId": "om_first:m1"
  30. },
  31. {
  32. "type": "text",
  33. "text": " E2E_NATIVE_first"
  34. }
  35. ]
  36. }
  37. }
  38. },
  39. "maxMatches": 1
  40. },
  41. {
  42. "id": "first-final",
  43. "metadata": {
  44. "kind": "main",
  45. "timingPolicy": "fast-text",
  46. "source": "synthetic",
  47. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  48. },
  49. "match": {
  50. "method": "POST",
  51. "pathIncludes": "/messages",
  52. "bodyExcludes": [
  53. "Generate a concise title",
  54. "CRITICAL: Respond with TEXT ONLY",
  55. "E2E_BOT_CHANNEL_FOLLOWUP"
  56. ],
  57. "bodyIncludes": ["E2E_BOT_CHANNEL_FIRST"]
  58. },
  59. "response": {
  60. "statusCode": 200,
  61. "text": {
  62. "text": "E2E_CHANNEL_DONE_first"
  63. }
  64. }
  65. },
  66. {
  67. "id": "followup-tool",
  68. "metadata": {
  69. "kind": "main",
  70. "timingPolicy": "fast-text",
  71. "source": "synthetic",
  72. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  73. },
  74. "match": {
  75. "method": "POST",
  76. "pathIncludes": "/messages",
  77. "lastUserMessageIncludes": ["E2E_BOT_CHANNEL_FOLLOWUP"],
  78. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  79. },
  80. "response": {
  81. "statusCode": 200,
  82. "toolUse": {
  83. "id": "call_followup",
  84. "name": "ReplyToChannel",
  85. "input": {
  86. "parts": [
  87. {
  88. "type": "mentionName",
  89. "name": "目录目标"
  90. },
  91. {
  92. "type": "text",
  93. "text": " E2E_NATIVE_followup"
  94. }
  95. ]
  96. }
  97. }
  98. },
  99. "maxMatches": 1
  100. },
  101. {
  102. "id": "followup-final",
  103. "metadata": {
  104. "kind": "main",
  105. "timingPolicy": "fast-text",
  106. "source": "synthetic",
  107. "syntheticReason": "确定性触发真实 CLI ReplyToChannel 与客户端续聊,外部飞书 HTTP 被隔离。"
  108. },
  109. "match": {
  110. "method": "POST",
  111. "pathIncludes": "/messages",
  112. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  113. "bodyIncludes": ["E2E_BOT_CHANNEL_FOLLOWUP"]
  114. },
  115. "response": {
  116. "statusCode": 200,
  117. "text": {
  118. "text": "E2E_CHANNEL_DONE_followup"
  119. }
  120. }
  121. }
  122. ]
  123. }