conversation-session-r3-mobile-permission.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-r3-mobile-permission",
  4. "spec": "./test/e2e/conversation-session/remote/mobile/conversation-session-r3-mobile-permission.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "r3-mobp-title",
  8. "description": "标题",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于断言"
  14. },
  15. "maxMatches": 8,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["Generate a concise title", "E2E_R3_MOBILE_PERMISSION"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "text": {
  24. "id": "r3-mobp-title",
  25. "inputTokens": 64,
  26. "outputTokens": 8,
  27. "text": "{\"title\":\"R3 mobile\"}"
  28. }
  29. }
  30. },
  31. {
  32. "id": "r3-mobp-permission-write",
  33. "description": "Write 工具触发远端权限请求",
  34. "metadata": {
  35. "kind": "main",
  36. "timingPolicy": "fast-text",
  37. "source": "synthetic",
  38. "syntheticReason": "权限阻塞必须由真实 blocking request 承载"
  39. },
  40. "maxMatches": 4,
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/messages",
  44. "lastUserMessageIncludes": ["E2E_R3_MOBILE_PERMISSION_PERMISSION"],
  45. "bodyIncludes": ["E2E_R3_MOBILE_PERMISSION_PERMISSION"],
  46. "bodyExcludes": [
  47. "Generate a concise title",
  48. "CRITICAL: Respond with TEXT ONLY",
  49. "toolu_r3_mobp_permission"
  50. ]
  51. },
  52. "response": {
  53. "statusCode": 200,
  54. "toolUse": {
  55. "id": "toolu_r3_mobp_permission",
  56. "name": "Write",
  57. "input": {
  58. "file_path": "/home/dev/r3-workspace-a/.zcode-e2e/r3-mobile-permission/permission-output.txt",
  59. "content": "R3_MOBILE_PERMISSION_RESULT\n"
  60. }
  61. }
  62. }
  63. },
  64. {
  65. "id": "r3-mobp-permission-final",
  66. "description": "工具结果后的终态文本",
  67. "metadata": {
  68. "kind": "main",
  69. "timingPolicy": "fast-text",
  70. "source": "synthetic",
  71. "syntheticReason": "终态"
  72. },
  73. "maxMatches": 4,
  74. "match": {
  75. "method": "POST",
  76. "pathIncludes": "/messages",
  77. "bodyIncludes": ["E2E_R3_MOBILE_PERMISSION_PERMISSION", "toolu_r3_mobp_permission"],
  78. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  79. },
  80. "response": {
  81. "statusCode": 200,
  82. "text": {
  83. "id": "r3-mobp-permission-final",
  84. "inputTokens": 64,
  85. "outputTokens": 8,
  86. "text": "R3_MOBILE_PERMISSION_DONE"
  87. }
  88. }
  89. },
  90. {
  91. "id": "r3-mobp-main",
  92. "description": "其它",
  93. "metadata": {
  94. "kind": "main",
  95. "timingPolicy": "fast-text",
  96. "source": "synthetic",
  97. "syntheticReason": "首发/fork/edit"
  98. },
  99. "maxMatches": 20,
  100. "match": {
  101. "method": "POST",
  102. "pathIncludes": "/messages",
  103. "bodyIncludes": ["E2E_R3_MOBILE_PERMISSION_"],
  104. "bodyExcludes": [
  105. "Generate a concise title",
  106. "CRITICAL: Respond with TEXT ONLY",
  107. "E2E_R3_MOBILE_PERMISSION_PERMISSION"
  108. ]
  109. },
  110. "response": {
  111. "statusCode": 200,
  112. "text": {
  113. "id": "r3-mobp-main",
  114. "inputTokens": 64,
  115. "outputTokens": 8,
  116. "text": "R3_MOBILE_PERMISSION_REPLY"
  117. }
  118. }
  119. }
  120. ]
  121. }