| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- {
- "version": 1,
- "caseName": "conversation-session-changes-group-responsive-file-summary",
- "spec": "./test/e2e/conversation-session/conversation-session-changes-group-responsive-file-summary.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-changes-group-responsive-file-summary-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": "tge03-write-app",
- "description": "TGE03 writes App.tsx.",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "tool-use",
- "syntheticReason": "固定多扩展名文件顺序,验证 Changes file chips。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY"],
- "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_app"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_tge03_write_app",
- "name": "Write",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/App.tsx",
- "content": "TGE03_0\n"
- }
- }
- }
- },
- {
- "id": "tge03-write-css",
- "description": "TGE03 writes styles.css.",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "tool-use",
- "syntheticReason": "固定 CSS chip 和第二个 Changes child。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_app"],
- "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_css"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_tge03_write_css",
- "name": "Write",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/styles.css",
- "content": "TGE03_1\n"
- }
- }
- }
- },
- {
- "id": "tge03-write-json",
- "description": "TGE03 writes package.json.",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "tool-use",
- "syntheticReason": "固定 JSON chip 和第三个 Changes child。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_css"],
- "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_json"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_tge03_write_json",
- "name": "Write",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/package.json",
- "content": "TGE03_2\n"
- }
- }
- }
- },
- {
- "id": "tge03-write-markdown",
- "description": "TGE03 writes notes.md.",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "tool-use",
- "syntheticReason": "第四个短文件稳定制造窄屏 +N。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_json"],
- "bodyExcludes": ["Generate a concise title", "toolu_tge03_write_markdown"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_tge03_write_markdown",
- "name": "Write",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/notes.md",
- "content": "TGE03_3\n"
- }
- }
- }
- },
- {
- "id": "tge03-edit-app",
- "description": "TGE03 edits App.tsx to prove path deduplication.",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "tool-use",
- "syntheticReason": "重复 App.tsx path 验证唯一文件数与首次出现顺序。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_write_markdown"],
- "bodyExcludes": ["Generate a concise title", "toolu_tge03_edit_app"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_tge03_edit_app",
- "name": "Edit",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/conversation-session-changes-group-responsive-file-summary/App.tsx",
- "old_string": "TGE03_0",
- "new_string": "TGE03_EDITED"
- }
- }
- }
- },
- {
- "id": "tge03-final",
- "description": "TGE03 completes Changes for responsive assertions.",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "固定完成态,避免 file chip 测量发生在 streaming 抖动中。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_CHANGES_GROUP_RESPONSIVE_FILE_SUMMARY", "toolu_tge03_edit_app"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "upstream-e2e-ok"
- }
- }
- ]
- }
|