conversation-session-bash-direct-output.json 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-bash-direct-output",
  4. "spec": "./test/e2e/conversation-session/tools/conversation-session-bash-direct-output.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "bdo-title",
  8. "metadata": {
  9. "kind": "common",
  10. "source": "synthetic",
  11. "timingPolicy": "fast-text",
  12. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  13. },
  14. "match": {
  15. "method": "POST",
  16. "pathIncludes": "/messages",
  17. "bodyIncludes": ["Generate a concise title", "E2E_BDO_"]
  18. },
  19. "response": {
  20. "statusCode": 200,
  21. "statusMessage": "OK",
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\":\"bdo-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Bash output regression\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"output_tokens\":8}}"
  26. }
  27. },
  28. {
  29. "id": "e2e_bdo_small-call",
  30. "metadata": {
  31. "kind": "main",
  32. "source": "synthetic",
  33. "timingPolicy": "fast-text",
  34. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  35. },
  36. "maxMatches": 1,
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/messages",
  40. "lastUserMessageIncludes": ["E2E_BDO_SMALL"],
  41. "bodyIncludes": [],
  42. "bodyExcludes": [
  43. "Generate a concise title",
  44. "CRITICAL: Respond with TEXT ONLY",
  45. "toolu_bdo_small",
  46. "toolu_bdo_empty_error"
  47. ]
  48. },
  49. "response": {
  50. "statusCode": 200,
  51. "toolUses": [
  52. {
  53. "id": "toolu_bdo_small",
  54. "name": "Bash",
  55. "input": {
  56. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" small",
  57. "timeout": 120000
  58. }
  59. },
  60. {
  61. "id": "toolu_bdo_empty_error",
  62. "name": "Bash",
  63. "input": {
  64. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" empty-error",
  65. "timeout": 120000
  66. }
  67. }
  68. ]
  69. }
  70. },
  71. {
  72. "id": "e2e_bdo_small-done",
  73. "metadata": {
  74. "kind": "main",
  75. "source": "synthetic",
  76. "timingPolicy": "fast-text",
  77. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  78. },
  79. "maxMatches": 1,
  80. "match": {
  81. "method": "POST",
  82. "pathIncludes": "/messages",
  83. "bodyIncludes": ["E2E_BDO_SMALL", "toolu_bdo_small", "toolu_bdo_empty_error"],
  84. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  85. },
  86. "response": {
  87. "statusCode": 200,
  88. "text": {
  89. "id": "e2e_bdo_small-done",
  90. "text": "E2E_BDO_SMALL_DONE",
  91. "inputTokens": 96,
  92. "outputTokens": 16
  93. }
  94. }
  95. },
  96. {
  97. "id": "e2e_bdo_large-call",
  98. "metadata": {
  99. "kind": "main",
  100. "source": "synthetic",
  101. "timingPolicy": "fast-text",
  102. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  103. },
  104. "maxMatches": 1,
  105. "match": {
  106. "method": "POST",
  107. "pathIncludes": "/messages",
  108. "lastUserMessageIncludes": ["E2E_BDO_LARGE"],
  109. "bodyIncludes": [],
  110. "bodyExcludes": [
  111. "Generate a concise title",
  112. "CRITICAL: Respond with TEXT ONLY",
  113. "toolu_bdo_large"
  114. ]
  115. },
  116. "response": {
  117. "statusCode": 200,
  118. "toolUses": [
  119. {
  120. "id": "toolu_bdo_large",
  121. "name": "Bash",
  122. "input": {
  123. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" large",
  124. "timeout": 120000
  125. }
  126. }
  127. ]
  128. }
  129. },
  130. {
  131. "id": "e2e_bdo_large-done",
  132. "metadata": {
  133. "kind": "main",
  134. "source": "synthetic",
  135. "timingPolicy": "fast-text",
  136. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  137. },
  138. "maxMatches": 1,
  139. "match": {
  140. "method": "POST",
  141. "pathIncludes": "/messages",
  142. "bodyIncludes": ["E2E_BDO_LARGE", "toolu_bdo_large"],
  143. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  144. },
  145. "response": {
  146. "statusCode": 200,
  147. "text": {
  148. "id": "e2e_bdo_large-done",
  149. "text": "E2E_BDO_LARGE_DONE",
  150. "inputTokens": 96,
  151. "outputTokens": 16
  152. }
  153. }
  154. },
  155. {
  156. "id": "e2e_bdo_progress-a-call",
  157. "metadata": {
  158. "kind": "main",
  159. "source": "synthetic",
  160. "timingPolicy": "fast-text",
  161. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  162. },
  163. "maxMatches": 1,
  164. "match": {
  165. "method": "POST",
  166. "pathIncludes": "/messages",
  167. "lastUserMessageIncludes": ["E2E_BDO_PROGRESS_A"],
  168. "bodyIncludes": [],
  169. "bodyExcludes": [
  170. "Generate a concise title",
  171. "CRITICAL: Respond with TEXT ONLY",
  172. "toolu_bdo_progress_a"
  173. ]
  174. },
  175. "response": {
  176. "statusCode": 200,
  177. "toolUses": [
  178. {
  179. "id": "toolu_bdo_progress_a",
  180. "name": "Bash",
  181. "input": {
  182. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" progress A",
  183. "timeout": 120000
  184. }
  185. }
  186. ]
  187. }
  188. },
  189. {
  190. "id": "e2e_bdo_progress-b-call",
  191. "metadata": {
  192. "kind": "main",
  193. "source": "synthetic",
  194. "timingPolicy": "fast-text",
  195. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  196. },
  197. "maxMatches": 1,
  198. "match": {
  199. "method": "POST",
  200. "pathIncludes": "/messages",
  201. "lastUserMessageIncludes": ["E2E_BDO_PROGRESS_B"],
  202. "bodyIncludes": [],
  203. "bodyExcludes": [
  204. "Generate a concise title",
  205. "CRITICAL: Respond with TEXT ONLY",
  206. "toolu_bdo_progress_b"
  207. ]
  208. },
  209. "response": {
  210. "statusCode": 200,
  211. "toolUses": [
  212. {
  213. "id": "toolu_bdo_progress_b",
  214. "name": "Bash",
  215. "input": {
  216. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" progress B",
  217. "timeout": 120000
  218. }
  219. }
  220. ]
  221. }
  222. },
  223. {
  224. "id": "e2e_bdo_progress-a-done",
  225. "metadata": {
  226. "kind": "main",
  227. "source": "synthetic",
  228. "timingPolicy": "fast-text",
  229. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  230. },
  231. "maxMatches": 1,
  232. "match": {
  233. "method": "POST",
  234. "pathIncludes": "/messages",
  235. "bodyIncludes": ["E2E_BDO_PROGRESS_A", "toolu_bdo_progress_a"],
  236. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  237. },
  238. "response": {
  239. "statusCode": 200,
  240. "text": {
  241. "id": "e2e_bdo_progress-done",
  242. "text": "E2E_BDO_PROGRESS_A_DONE",
  243. "inputTokens": 96,
  244. "outputTokens": 16
  245. }
  246. }
  247. },
  248. {
  249. "id": "e2e_bdo_progress-b-done",
  250. "metadata": {
  251. "kind": "main",
  252. "source": "synthetic",
  253. "timingPolicy": "fast-text",
  254. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  255. },
  256. "maxMatches": 1,
  257. "match": {
  258. "method": "POST",
  259. "pathIncludes": "/messages",
  260. "bodyIncludes": ["E2E_BDO_PROGRESS_B", "toolu_bdo_progress_b"],
  261. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  262. },
  263. "response": {
  264. "statusCode": 200,
  265. "text": {
  266. "id": "e2e_bdo_progress-done",
  267. "text": "E2E_BDO_PROGRESS_B_DONE",
  268. "inputTokens": 96,
  269. "outputTokens": 16
  270. }
  271. }
  272. },
  273. {
  274. "id": "bdo-query-notification",
  275. "metadata": {
  276. "kind": "main",
  277. "source": "synthetic",
  278. "timingPolicy": "fast-text",
  279. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  280. },
  281. "maxMatches": 1,
  282. "match": {
  283. "method": "POST",
  284. "pathIncludes": "/messages",
  285. "bodyIncludes": ["E2E_BDO_QUERY", "<task-notification>", "<status>completed</status>"],
  286. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  287. },
  288. "response": {
  289. "statusCode": 200,
  290. "text": {
  291. "id": "bdo-query-notification",
  292. "text": "E2E_BDO_QUERY_NOTIFIED",
  293. "inputTokens": 96,
  294. "outputTokens": 16
  295. }
  296. }
  297. },
  298. {
  299. "id": "e2e_bdo_query-call",
  300. "metadata": {
  301. "kind": "main",
  302. "source": "synthetic",
  303. "timingPolicy": "fast-text",
  304. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  305. },
  306. "maxMatches": 1,
  307. "match": {
  308. "method": "POST",
  309. "pathIncludes": "/messages",
  310. "lastUserMessageIncludes": ["E2E_BDO_QUERY"],
  311. "bodyIncludes": [],
  312. "bodyExcludes": [
  313. "Generate a concise title",
  314. "CRITICAL: Respond with TEXT ONLY",
  315. "toolu_bdo_query"
  316. ]
  317. },
  318. "response": {
  319. "statusCode": 200,
  320. "toolUses": [
  321. {
  322. "id": "toolu_bdo_query",
  323. "name": "Bash",
  324. "input": {
  325. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" query",
  326. "timeout": 120000,
  327. "run_in_background": true
  328. }
  329. }
  330. ]
  331. }
  332. },
  333. {
  334. "id": "e2e_bdo_query-done",
  335. "metadata": {
  336. "kind": "main",
  337. "source": "synthetic",
  338. "timingPolicy": "fast-text",
  339. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  340. },
  341. "maxMatches": 1,
  342. "match": {
  343. "method": "POST",
  344. "pathIncludes": "/messages",
  345. "bodyIncludes": ["E2E_BDO_QUERY", "toolu_bdo_query"],
  346. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  347. },
  348. "response": {
  349. "statusCode": 200,
  350. "text": {
  351. "id": "e2e_bdo_query-done",
  352. "text": "E2E_BDO_QUERY_DONE",
  353. "inputTokens": 96,
  354. "outputTokens": 16
  355. }
  356. }
  357. },
  358. {
  359. "id": "e2e_bdo_query_first-call",
  360. "metadata": {
  361. "kind": "main",
  362. "source": "synthetic",
  363. "timingPolicy": "fast-text",
  364. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  365. },
  366. "maxMatches": 1,
  367. "match": {
  368. "method": "POST",
  369. "pathIncludes": "/messages",
  370. "lastUserMessageIncludes": ["E2E_BDO_QUERY_FIRST"],
  371. "bodyIncludes": [],
  372. "bodyExcludes": [
  373. "Generate a concise title",
  374. "CRITICAL: Respond with TEXT ONLY",
  375. "toolu_bdo_query_first"
  376. ]
  377. },
  378. "response": {
  379. "statusCode": 200,
  380. "toolUses": [
  381. {
  382. "id": "toolu_bdo_query_first",
  383. "name": "TaskOutput",
  384. "input": {
  385. "task_id": "{{latestBashTaskId}}",
  386. "block": false,
  387. "timeout": 0
  388. }
  389. }
  390. ]
  391. }
  392. },
  393. {
  394. "id": "e2e_bdo_query_first-done",
  395. "metadata": {
  396. "kind": "main",
  397. "source": "synthetic",
  398. "timingPolicy": "fast-text",
  399. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  400. },
  401. "maxMatches": 1,
  402. "match": {
  403. "method": "POST",
  404. "pathIncludes": "/messages",
  405. "bodyIncludes": ["E2E_BDO_QUERY_FIRST", "toolu_bdo_query_first"],
  406. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  407. },
  408. "response": {
  409. "statusCode": 200,
  410. "text": {
  411. "id": "e2e_bdo_query_first-done",
  412. "text": "E2E_BDO_QUERY_FIRST_DONE",
  413. "inputTokens": 96,
  414. "outputTokens": 16
  415. }
  416. }
  417. },
  418. {
  419. "id": "e2e_bdo_query_second-call",
  420. "metadata": {
  421. "kind": "main",
  422. "source": "synthetic",
  423. "timingPolicy": "fast-text",
  424. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  425. },
  426. "maxMatches": 1,
  427. "match": {
  428. "method": "POST",
  429. "pathIncludes": "/messages",
  430. "lastUserMessageIncludes": ["E2E_BDO_QUERY_SECOND"],
  431. "bodyIncludes": [],
  432. "bodyExcludes": [
  433. "Generate a concise title",
  434. "CRITICAL: Respond with TEXT ONLY",
  435. "toolu_bdo_query_second"
  436. ]
  437. },
  438. "response": {
  439. "statusCode": 200,
  440. "toolUses": [
  441. {
  442. "id": "toolu_bdo_query_second",
  443. "name": "TaskOutput",
  444. "input": {
  445. "task_id": "{{latestBashTaskId}}",
  446. "block": false,
  447. "timeout": 0
  448. }
  449. }
  450. ]
  451. }
  452. },
  453. {
  454. "id": "e2e_bdo_query_second-done",
  455. "metadata": {
  456. "kind": "main",
  457. "source": "synthetic",
  458. "timingPolicy": "fast-text",
  459. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  460. },
  461. "maxMatches": 1,
  462. "match": {
  463. "method": "POST",
  464. "pathIncludes": "/messages",
  465. "bodyIncludes": ["E2E_BDO_QUERY_SECOND", "toolu_bdo_query_second"],
  466. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  467. },
  468. "response": {
  469. "statusCode": 200,
  470. "text": {
  471. "id": "e2e_bdo_query_second-done",
  472. "text": "E2E_BDO_QUERY_SECOND_DONE",
  473. "inputTokens": 96,
  474. "outputTokens": 16
  475. }
  476. }
  477. },
  478. {
  479. "id": "e2e_bdo_query_final-call",
  480. "metadata": {
  481. "kind": "main",
  482. "source": "synthetic",
  483. "timingPolicy": "fast-text",
  484. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  485. },
  486. "maxMatches": 1,
  487. "match": {
  488. "method": "POST",
  489. "pathIncludes": "/messages",
  490. "lastUserMessageIncludes": ["E2E_BDO_QUERY_FINAL"],
  491. "bodyIncludes": [],
  492. "bodyExcludes": [
  493. "Generate a concise title",
  494. "CRITICAL: Respond with TEXT ONLY",
  495. "toolu_bdo_query_final"
  496. ]
  497. },
  498. "response": {
  499. "statusCode": 200,
  500. "toolUses": [
  501. {
  502. "id": "toolu_bdo_query_final",
  503. "name": "TaskOutput",
  504. "input": {
  505. "task_id": "{{latestBashTaskId}}",
  506. "block": false,
  507. "timeout": 0
  508. }
  509. }
  510. ]
  511. }
  512. },
  513. {
  514. "id": "e2e_bdo_query_final-done",
  515. "metadata": {
  516. "kind": "main",
  517. "source": "synthetic",
  518. "timingPolicy": "fast-text",
  519. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  520. },
  521. "maxMatches": 1,
  522. "match": {
  523. "method": "POST",
  524. "pathIncludes": "/messages",
  525. "bodyIncludes": ["E2E_BDO_QUERY_FINAL", "toolu_bdo_query_final"],
  526. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  527. },
  528. "response": {
  529. "statusCode": 200,
  530. "text": {
  531. "id": "e2e_bdo_query_final-done",
  532. "text": "E2E_BDO_QUERY_FINAL_DONE",
  533. "inputTokens": 96,
  534. "outputTokens": 16
  535. }
  536. }
  537. },
  538. {
  539. "id": "e2e_bdo_limit_foreground-call",
  540. "metadata": {
  541. "kind": "main",
  542. "source": "synthetic",
  543. "timingPolicy": "fast-text",
  544. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  545. },
  546. "maxMatches": 1,
  547. "match": {
  548. "method": "POST",
  549. "pathIncludes": "/messages",
  550. "lastUserMessageIncludes": ["E2E_BDO_LIMIT_FOREGROUND"],
  551. "bodyIncludes": [],
  552. "bodyExcludes": [
  553. "Generate a concise title",
  554. "CRITICAL: Respond with TEXT ONLY",
  555. "toolu_bdo_limit_foreground"
  556. ]
  557. },
  558. "response": {
  559. "statusCode": 200,
  560. "toolUses": [
  561. {
  562. "id": "toolu_bdo_limit_foreground",
  563. "name": "Bash",
  564. "input": {
  565. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" limit foreground",
  566. "timeout": 120000
  567. }
  568. }
  569. ]
  570. }
  571. },
  572. {
  573. "id": "e2e_bdo_limit_foreground-done",
  574. "metadata": {
  575. "kind": "main",
  576. "source": "synthetic",
  577. "timingPolicy": "fast-text",
  578. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  579. },
  580. "maxMatches": 1,
  581. "match": {
  582. "method": "POST",
  583. "pathIncludes": "/messages",
  584. "bodyIncludes": ["E2E_BDO_LIMIT_FOREGROUND", "toolu_bdo_limit_foreground"],
  585. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  586. },
  587. "response": {
  588. "statusCode": 200,
  589. "text": {
  590. "id": "e2e_bdo_limit_foreground-done",
  591. "text": "E2E_BDO_LIMIT_FOREGROUND_KILLED",
  592. "inputTokens": 96,
  593. "outputTokens": 16
  594. }
  595. }
  596. },
  597. {
  598. "id": "bdo-limit-background-notification",
  599. "metadata": {
  600. "kind": "main",
  601. "source": "synthetic",
  602. "timingPolicy": "fast-text",
  603. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  604. },
  605. "maxMatches": 1,
  606. "match": {
  607. "method": "POST",
  608. "pathIncludes": "/messages",
  609. "bodyIncludes": [
  610. "E2E_BDO_LIMIT_BACKGROUND",
  611. "<task-notification>",
  612. "<status>killed</status>"
  613. ],
  614. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  615. },
  616. "response": {
  617. "statusCode": 200,
  618. "text": {
  619. "id": "bdo-limit-background-notification",
  620. "text": "E2E_BDO_LIMIT_BACKGROUND_KILLED",
  621. "inputTokens": 96,
  622. "outputTokens": 16
  623. }
  624. }
  625. },
  626. {
  627. "id": "e2e_bdo_limit_background-call",
  628. "metadata": {
  629. "kind": "main",
  630. "source": "synthetic",
  631. "timingPolicy": "fast-text",
  632. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  633. },
  634. "maxMatches": 1,
  635. "match": {
  636. "method": "POST",
  637. "pathIncludes": "/messages",
  638. "lastUserMessageIncludes": ["E2E_BDO_LIMIT_BACKGROUND"],
  639. "bodyIncludes": [],
  640. "bodyExcludes": [
  641. "Generate a concise title",
  642. "CRITICAL: Respond with TEXT ONLY",
  643. "toolu_bdo_limit_background"
  644. ]
  645. },
  646. "response": {
  647. "statusCode": 200,
  648. "toolUses": [
  649. {
  650. "id": "toolu_bdo_limit_background",
  651. "name": "Bash",
  652. "input": {
  653. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" limit background",
  654. "timeout": 120000,
  655. "run_in_background": true
  656. }
  657. }
  658. ]
  659. }
  660. },
  661. {
  662. "id": "e2e_bdo_limit_background-done",
  663. "metadata": {
  664. "kind": "main",
  665. "source": "synthetic",
  666. "timingPolicy": "fast-text",
  667. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  668. },
  669. "maxMatches": 1,
  670. "match": {
  671. "method": "POST",
  672. "pathIncludes": "/messages",
  673. "bodyIncludes": ["E2E_BDO_LIMIT_BACKGROUND", "toolu_bdo_limit_background"],
  674. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  675. },
  676. "response": {
  677. "statusCode": 200,
  678. "text": {
  679. "id": "e2e_bdo_limit_background-done",
  680. "text": "E2E_BDO_LIMIT_BACKGROUND_DONE",
  681. "inputTokens": 96,
  682. "outputTokens": 16
  683. }
  684. }
  685. },
  686. {
  687. "id": "e2e_bdo_read_failure-call",
  688. "metadata": {
  689. "kind": "main",
  690. "source": "synthetic",
  691. "timingPolicy": "fast-text",
  692. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  693. },
  694. "maxMatches": 1,
  695. "match": {
  696. "method": "POST",
  697. "pathIncludes": "/messages",
  698. "lastUserMessageIncludes": ["E2E_BDO_READ_FAILURE"],
  699. "bodyIncludes": [],
  700. "bodyExcludes": [
  701. "Generate a concise title",
  702. "CRITICAL: Respond with TEXT ONLY",
  703. "toolu_bdo_read_failure"
  704. ]
  705. },
  706. "response": {
  707. "statusCode": 200,
  708. "toolUses": [
  709. {
  710. "id": "toolu_bdo_read_failure",
  711. "name": "Bash",
  712. "input": {
  713. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" read-failure",
  714. "timeout": 120000
  715. }
  716. }
  717. ]
  718. }
  719. },
  720. {
  721. "id": "e2e_bdo_read_failure-done",
  722. "metadata": {
  723. "kind": "main",
  724. "source": "synthetic",
  725. "timingPolicy": "fast-text",
  726. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  727. },
  728. "maxMatches": 1,
  729. "match": {
  730. "method": "POST",
  731. "pathIncludes": "/messages",
  732. "bodyIncludes": ["E2E_BDO_READ_FAILURE", "toolu_bdo_read_failure"],
  733. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  734. },
  735. "response": {
  736. "statusCode": 200,
  737. "text": {
  738. "id": "e2e_bdo_read_failure-done",
  739. "text": "E2E_BDO_READ_FAILURE_DONE",
  740. "inputTokens": 96,
  741. "outputTokens": 16
  742. }
  743. }
  744. },
  745. {
  746. "id": "e2e_bdo_open_failure-call",
  747. "metadata": {
  748. "kind": "main",
  749. "source": "synthetic",
  750. "timingPolicy": "fast-text",
  751. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  752. },
  753. "maxMatches": 1,
  754. "match": {
  755. "method": "POST",
  756. "pathIncludes": "/messages",
  757. "lastUserMessageIncludes": ["E2E_BDO_OPEN_FAILURE"],
  758. "bodyIncludes": [],
  759. "bodyExcludes": [
  760. "Generate a concise title",
  761. "CRITICAL: Respond with TEXT ONLY",
  762. "toolu_bdo_open_failure"
  763. ]
  764. },
  765. "response": {
  766. "statusCode": 200,
  767. "toolUses": [
  768. {
  769. "id": "toolu_bdo_open_failure",
  770. "name": "Bash",
  771. "input": {
  772. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" small",
  773. "timeout": 120000
  774. }
  775. }
  776. ]
  777. }
  778. },
  779. {
  780. "id": "e2e_bdo_open_failure-done",
  781. "metadata": {
  782. "kind": "main",
  783. "source": "synthetic",
  784. "timingPolicy": "fast-text",
  785. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  786. },
  787. "maxMatches": 1,
  788. "match": {
  789. "method": "POST",
  790. "pathIncludes": "/messages",
  791. "bodyIncludes": ["E2E_BDO_OPEN_FAILURE", "toolu_bdo_open_failure"],
  792. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  793. },
  794. "response": {
  795. "statusCode": 200,
  796. "text": {
  797. "id": "e2e_bdo_open_failure-done",
  798. "text": "E2E_BDO_OPEN_FAILURE_DONE",
  799. "inputTokens": 96,
  800. "outputTokens": 16
  801. }
  802. }
  803. },
  804. {
  805. "id": "e2e_bdo_recovery-call",
  806. "metadata": {
  807. "kind": "main",
  808. "source": "synthetic",
  809. "timingPolicy": "fast-text",
  810. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  811. },
  812. "maxMatches": 1,
  813. "match": {
  814. "method": "POST",
  815. "pathIncludes": "/messages",
  816. "lastUserMessageIncludes": ["E2E_BDO_RECOVERY"],
  817. "bodyIncludes": [],
  818. "bodyExcludes": [
  819. "Generate a concise title",
  820. "CRITICAL: Respond with TEXT ONLY",
  821. "toolu_bdo_recovery"
  822. ]
  823. },
  824. "response": {
  825. "statusCode": 200,
  826. "toolUses": [
  827. {
  828. "id": "toolu_bdo_recovery",
  829. "name": "Bash",
  830. "input": {
  831. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" small",
  832. "timeout": 120000
  833. }
  834. }
  835. ]
  836. }
  837. },
  838. {
  839. "id": "e2e_bdo_recovery-done",
  840. "metadata": {
  841. "kind": "main",
  842. "source": "synthetic",
  843. "timingPolicy": "fast-text",
  844. "syntheticReason": "固定工具参数与 continuation,实际 Bash、文件、进度和停止走完整 Desktop 到 CLI 链路。"
  845. },
  846. "maxMatches": 1,
  847. "match": {
  848. "method": "POST",
  849. "pathIncludes": "/messages",
  850. "bodyIncludes": ["E2E_BDO_RECOVERY", "toolu_bdo_recovery"],
  851. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  852. },
  853. "response": {
  854. "statusCode": 200,
  855. "text": {
  856. "id": "e2e_bdo_recovery-done",
  857. "text": "E2E_BDO_RECOVERY_DONE",
  858. "inputTokens": 96,
  859. "outputTokens": 16
  860. }
  861. }
  862. },
  863. {
  864. "id": "e2e_bdo_realtime-call",
  865. "metadata": {
  866. "kind": "main",
  867. "source": "synthetic",
  868. "timingPolicy": "fast-text",
  869. "syntheticReason": "固定单个前台 Bash;真实 producer 由文件 barrier 分五段写 stdout/stderr,验证退出前刷新、最多五行且短输出自适应、默认吸底、上滚暂停和滚回底部恢复及终态阅读位置。"
  870. },
  871. "maxMatches": 1,
  872. "match": {
  873. "method": "POST",
  874. "pathIncludes": "/messages",
  875. "lastUserMessageIncludes": ["E2E_BDO_REALTIME"],
  876. "bodyIncludes": [],
  877. "bodyExcludes": [
  878. "Generate a concise title",
  879. "CRITICAL: Respond with TEXT ONLY",
  880. "toolu_bdo_realtime"
  881. ]
  882. },
  883. "response": {
  884. "statusCode": 200,
  885. "toolUses": [
  886. {
  887. "id": "toolu_bdo_realtime",
  888. "name": "Bash",
  889. "input": {
  890. "command": "node \".zcode-e2e/bash-direct-output/中文 空格/writer.cjs\" realtime",
  891. "timeout": 120000
  892. }
  893. }
  894. ]
  895. }
  896. },
  897. {
  898. "id": "e2e_bdo_realtime-done",
  899. "metadata": {
  900. "kind": "main",
  901. "source": "synthetic",
  902. "timingPolicy": "fast-text",
  903. "syntheticReason": "固定单个前台 Bash;真实 producer 由文件 barrier 分五段写 stdout/stderr,验证退出前刷新、最多五行且短输出自适应、默认吸底、上滚暂停和滚回底部恢复及终态阅读位置。"
  904. },
  905. "maxMatches": 1,
  906. "match": {
  907. "method": "POST",
  908. "pathIncludes": "/messages",
  909. "bodyIncludes": ["E2E_BDO_REALTIME", "toolu_bdo_realtime"],
  910. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  911. },
  912. "response": {
  913. "statusCode": 200,
  914. "text": {
  915. "id": "e2e_bdo_realtime-done",
  916. "text": "E2E_BDO_REALTIME_DONE",
  917. "inputTokens": 96,
  918. "outputTokens": 16
  919. }
  920. }
  921. }
  922. ]
  923. }