| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {
- "version": 1,
- "caseName": "plugin-runtime-env-agent-projection",
- "spec": "./test/e2e/plugins/runtime/plugin-runtime-env-agent-projection.test.ts",
- "fixtures": [
- {
- "id": "plugin-runtime-env-agent-projection-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-runtime-env-tool-call",
- "description": "PLM-LC-010 advertises and calls the installed plugin secret-env verifier.",
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_PLUGIN_SECRET_ENV_CASE_"],
- "bodyIncludes": ["E2E_PLUGIN_SECRET_ENV_CASE_"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "replay": {
- "consumeOnce": true
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_plugin_secret_env",
- "name": "mcp__plugin_e2e-plugin-secret-agent_secret-verifier__verify_secret_env",
- "input": {}
- }
- }
- },
- {
- "id": "upstream-plugin-runtime-env-final",
- "description": "PLM-LC-010 final response after the MCP confirms the secret env was resolved.",
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": [
- "E2E_PLUGIN_SECRET_ENV_CASE_",
- "toolu_e2e_plugin_secret_env",
- "E2E_PLUGIN_RUNTIME_SECRET_RESOLVED"
- ],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "upstream-e2e-ok"
- }
- }
- ]
- }
|