plugin-extension-plugin-project.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "version": 1,
  3. "caseName": "plugin-extension-plugin-project",
  4. "spec": "./test/e2e/plugins/extensions/plugin-extension-plugin-project.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "p3c2-title",
  8. "description": "PLM-EXT-P3C2 p3c2-title",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "受控模型只给出回复文本;扩展经 ctx.sessions.* 发出的真实命令在 Electron/Host/Agent 里执行,项目与会话归属只从 Host 的项目树读取;AGENTS.md 标记靠请求体匹配:标记不在请求里时首发夹具不命中,回复不会出现。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_P3C2"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "text": "{\"title\":\"E2E_P3C2\"}"
  24. }
  25. }
  26. },
  27. {
  28. "id": "p3c2-first",
  29. "description": "PLM-EXT-P3C2 p3c2-first",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "受控模型只给出回复文本;扩展经 ctx.sessions.* 发出的真实命令在 Electron/Host/Agent 里执行,项目与会话归属只从 Host 的项目树读取;AGENTS.md 标记靠请求体匹配:标记不在请求里时首发夹具不命中,回复不会出现。"
  35. },
  36. "match": {
  37. "method": "POST",
  38. "pathIncludes": "/messages",
  39. "lastUserMessageIncludes": ["E2E_P3C2_FIRST"],
  40. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  41. "bodyIncludes": ["E2E_P3C2_AGENTS_MARKER_7f3a"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "text": {
  46. "text": "E2E_P3C2_AGENTS_SEEN"
  47. }
  48. },
  49. "maxMatches": 1
  50. },
  51. {
  52. "id": "p3c2-second",
  53. "description": "PLM-EXT-P3C2 p3c2-second",
  54. "metadata": {
  55. "kind": "main",
  56. "timingPolicy": "fast-text",
  57. "source": "synthetic",
  58. "syntheticReason": "受控模型只给出回复文本;扩展经 ctx.sessions.* 发出的真实命令在 Electron/Host/Agent 里执行,项目与会话归属只从 Host 的项目树读取;AGENTS.md 标记靠请求体匹配:标记不在请求里时首发夹具不命中,回复不会出现。"
  59. },
  60. "match": {
  61. "method": "POST",
  62. "pathIncludes": "/messages",
  63. "lastUserMessageIncludes": ["E2E_P3C2_SECOND"],
  64. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  65. },
  66. "response": {
  67. "statusCode": 200,
  68. "text": {
  69. "text": "E2E_P3C2_SECOND_DONE"
  70. }
  71. },
  72. "maxMatches": 1
  73. },
  74. {
  75. "id": "p3c2-later",
  76. "description": "PLM-EXT-P3C2 p3c2-later",
  77. "metadata": {
  78. "kind": "main",
  79. "timingPolicy": "fast-text",
  80. "source": "synthetic",
  81. "syntheticReason": "受控模型只给出回复文本;扩展经 ctx.sessions.* 发出的真实命令在 Electron/Host/Agent 里执行,项目与会话归属只从 Host 的项目树读取;AGENTS.md 标记靠请求体匹配:标记不在请求里时首发夹具不命中,回复不会出现。"
  82. },
  83. "match": {
  84. "method": "POST",
  85. "pathIncludes": "/messages",
  86. "lastUserMessageIncludes": ["E2E_P3C2_LATER"],
  87. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  88. },
  89. "response": {
  90. "statusCode": 200,
  91. "text": {
  92. "text": "E2E_P3C2_LATER_DONE"
  93. }
  94. },
  95. "maxMatches": 1
  96. },
  97. {
  98. "id": "p3c2-recreated",
  99. "description": "PLM-EXT-P3C2 p3c2-recreated",
  100. "metadata": {
  101. "kind": "main",
  102. "timingPolicy": "fast-text",
  103. "source": "synthetic",
  104. "syntheticReason": "受控模型只给出回复文本;扩展经 ctx.sessions.* 发出的真实命令在 Electron/Host/Agent 里执行,项目与会话归属只从 Host 的项目树读取;AGENTS.md 标记靠请求体匹配:标记不在请求里时首发夹具不命中,回复不会出现。"
  105. },
  106. "match": {
  107. "method": "POST",
  108. "pathIncludes": "/messages",
  109. "lastUserMessageIncludes": ["E2E_P3C2_RECREATED"],
  110. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  111. },
  112. "response": {
  113. "statusCode": 200,
  114. "text": {
  115. "text": "E2E_P3C2_RECREATED_DONE"
  116. }
  117. },
  118. "maxMatches": 1
  119. }
  120. ]
  121. }