| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- {
- "version": 1,
- "caseName": "conversation-session-plugin-missing-package-workspace",
- "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-missing-package-workspace.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-plugin-missing-package-workspace-title-sidecar",
- "description": "本例标题旁路响应。",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "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\"}}"
- }
- },
- {
- "id": "upstream-plugin-missing-package-workspace-tool-call",
- "description": "WPL-006 advertises the explicitly installed Workspace Plugin MCP tool.",
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_PLUGIN_LIFECYCLE_RUNTIME_1.0.0"],
- "bodyIncludes": ["E2E_PLUGIN_LIFECYCLE_RUNTIME_1.0.0"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "replay": {
- "consumeOnce": true
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_plugin_missing_package_workspace",
- "name": "mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker",
- "input": {}
- }
- },
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定工具调用,证明缺包声明不会自动激活,显式安装后才进入 runtime。"
- }
- },
- {
- "id": "upstream-plugin-missing-package-workspace-final",
- "description": "WPL-006 closes the explicit-install runtime turn.",
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": [
- "E2E_PLUGIN_LIFECYCLE_RUNTIME_1.0.0",
- "toolu_e2e_plugin_missing_package_workspace"
- ],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "upstream-e2e-ok"
- },
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定最终响应,闭合显式安装后的 Plugin MCP 调用。"
- }
- }
- ]
- }
|