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

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