agentworkshop 0.7.33 → 0.7.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (945) hide show
  1. package/.output/.AgentWorkShop/aml-python/aml_eval.py +171 -0
  2. package/.output/.AgentWorkShop/aml-python/amlkit.py +120 -0
  3. package/.output/.AgentWorkShop/aml-python/requirements.txt +7 -0
  4. package/.output/.AgentWorkShop/aml-python/train-example.py +92 -0
  5. package/.output/.AgentWorkShop/schema.json +2 -1
  6. package/.output/nitro.json +1 -1
  7. package/.output/public/_nuxt/{DLljr7g0.js → 45zuyAso.js} +1 -1
  8. package/.output/public/_nuxt/4sIEbgcl.js +42 -0
  9. package/.output/public/_nuxt/8NMOXZOV.js +1 -0
  10. package/.output/public/_nuxt/BCGafdXT.js +2 -0
  11. package/.output/public/_nuxt/BDNMzG2s2.js +1 -0
  12. package/.output/public/_nuxt/{C-mDhyEd.js → BDmh31hl.js} +1 -1
  13. package/.output/public/_nuxt/BFkgkW8u.js +4 -0
  14. package/.output/public/_nuxt/BG8sCcwx.js +14 -0
  15. package/.output/public/_nuxt/{D8CqF0yy.js → BHA40aHa.js} +1 -1
  16. package/.output/public/_nuxt/BJHKLJJU.js +1 -0
  17. package/.output/public/_nuxt/{DoTdlVVe2.js → BN6iuJEg2.js} +1 -1
  18. package/.output/public/_nuxt/BNT8gYU92.js +4 -0
  19. package/.output/public/_nuxt/BU83-NnX.js +106 -0
  20. package/.output/public/_nuxt/BYhEUx8t.js +17 -0
  21. package/.output/public/_nuxt/BzHEilTt.js +1 -0
  22. package/.output/public/_nuxt/{Ct-WOVr4.js → C3J6FYKa.js} +1 -1
  23. package/.output/public/_nuxt/C3gwHTz0.js +1 -0
  24. package/.output/public/_nuxt/C4DWUZ6d2.js +1 -0
  25. package/.output/public/_nuxt/C5gUkRwn.js +1 -0
  26. package/.output/public/_nuxt/CClOy-Hz2.js +1 -0
  27. package/.output/public/_nuxt/{CUXCQXjG.js → CM12FuB42.js} +1 -1
  28. package/.output/public/_nuxt/{BSCpFtzG.js → CSkxz2NX.js} +1 -1
  29. package/.output/public/_nuxt/CWoJjWmZ.js +1 -0
  30. package/.output/public/_nuxt/CY9LbPCI.js +1 -0
  31. package/.output/public/_nuxt/CYWVXZTS.js +7 -0
  32. package/.output/public/_nuxt/CZiw7sEV.js +1 -0
  33. package/.output/public/_nuxt/C_OLzD09.js +1 -0
  34. package/.output/public/_nuxt/C__m4EhR.js +1 -0
  35. package/.output/public/_nuxt/Cbq-mryP.js +1 -0
  36. package/.output/public/_nuxt/{C4OAdbVK2.js → Cc_9VzD42.js} +1 -1
  37. package/.output/public/_nuxt/{BASN8nZ0.js → CdPzkOMV.js} +1 -1
  38. package/.output/public/_nuxt/Cec0Ua3F.js +1 -0
  39. package/.output/public/_nuxt/{DYKVPzN-.js → CoNpEq5X.js} +1 -1
  40. package/.output/public/_nuxt/CojCTLKD.js +1 -0
  41. package/.output/public/_nuxt/{B7wL3pDk.js → Crod5z2f.js} +1 -1
  42. package/.output/public/_nuxt/CzlMDL5H.js +13 -0
  43. package/.output/public/_nuxt/{G0qIw7Gq2.js → D0ZBQrN_2.js} +1 -1
  44. package/.output/public/_nuxt/{Lp7Ll94I.js → D1YDxZpZ.js} +1 -1
  45. package/.output/public/_nuxt/{Bc0AmjfT.js → D20Yamr4.js} +1 -1
  46. package/.output/public/_nuxt/D6uzXueg.js +2 -0
  47. package/.output/public/_nuxt/D9Oidm5I.js +1 -0
  48. package/.output/public/_nuxt/DAe0h2MB.js +1 -0
  49. package/.output/public/_nuxt/DBHNsT1Y.js +23 -0
  50. package/.output/public/_nuxt/DDShH71m.js +1 -0
  51. package/.output/public/_nuxt/DDgJcSET.js +19 -0
  52. package/.output/public/_nuxt/DHFrCUxA2.js +13 -0
  53. package/.output/public/_nuxt/{BcrN7QEl2.js → DIaZ2PTo2.js} +1 -1
  54. package/.output/public/_nuxt/DPnwL14Y.js +1 -0
  55. package/.output/public/_nuxt/DR12_WCA.js +3 -0
  56. package/.output/public/_nuxt/{B9nXmjSB.js → DUrecWPx.js} +4 -4
  57. package/.output/public/_nuxt/DVsjtsvZ2.js +1 -0
  58. package/.output/public/_nuxt/DYr1VMiQ.js +6 -0
  59. package/.output/public/_nuxt/DZtm4l-P2.js +1 -0
  60. package/.output/public/_nuxt/DdD9mCHM.js +1 -0
  61. package/.output/public/_nuxt/DeJykBFf.js +9 -0
  62. package/.output/public/_nuxt/{DoMxCWN52.js → DeyBFhKH2.js} +1 -1
  63. package/.output/public/_nuxt/DkGQ7lnb2.js +1 -0
  64. package/.output/public/_nuxt/DmqknNvV.js +18 -0
  65. package/.output/public/_nuxt/DnUuIR83.js +1 -0
  66. package/.output/public/_nuxt/DrYV5i68.js +1 -0
  67. package/.output/public/_nuxt/{B5S_UyaC.js → DtYHUi5Z.js} +1 -1
  68. package/.output/public/_nuxt/Dz_Q3Lpw2.js +1 -0
  69. package/.output/public/_nuxt/DzbFpZRk.js +3 -0
  70. package/.output/public/_nuxt/HBLJ-wei.js +1 -0
  71. package/.output/public/_nuxt/JCoYF4IJ.js +31 -0
  72. package/.output/public/_nuxt/JTLM-kqr2.js +1 -0
  73. package/.output/public/_nuxt/{BeIfu4N3.js → KZQX7xoM.js} +2 -2
  74. package/.output/public/_nuxt/S_fVQwJK.js +1 -0
  75. package/.output/public/_nuxt/TownView.0oLiQgTC.css +1 -0
  76. package/.output/public/_nuxt/YnQxK3eG.js +1 -0
  77. package/.output/public/_nuxt/_id_.D-SYuyZb.css +1 -0
  78. package/.output/public/_nuxt/_id_.hma_BU6T.css +1 -0
  79. package/.output/public/_nuxt/_wsId_.B12v3PhY.css +1 -0
  80. package/.output/public/_nuxt/aLLjF2K-2.js +1 -0
  81. package/.output/public/_nuxt/aWWIh8YL.js +24 -0
  82. package/.output/public/_nuxt/ahgEJu2R.js +1 -0
  83. package/.output/public/_nuxt/aml.COEKNNqK.css +1 -0
  84. package/.output/public/_nuxt/builds/latest.json +1 -1
  85. package/.output/public/_nuxt/builds/meta/a66fdef7-dcfd-453b-b1f6-543c7dfd98d5.json +1 -0
  86. package/.output/public/_nuxt/daq.B3265ZDn.css +1 -0
  87. package/.output/public/_nuxt/dcw.DLYZqEhT.css +1 -0
  88. package/.output/public/_nuxt/default.DE_vT238.css +1 -0
  89. package/.output/public/_nuxt/entry.BB-Eeh-J.css +1 -0
  90. package/.output/public/_nuxt/jZsY8yYz.js +1 -0
  91. package/.output/public/_nuxt/logs.CqFyMrJw.css +1 -0
  92. package/.output/public/_nuxt/pages.ooEzrMm9.css +1 -0
  93. package/.output/public/_nuxt/pdk8jLGT.js +1 -0
  94. package/.output/public/_nuxt/plugins.5e5chZ67.css +1 -0
  95. package/.output/public/_nuxt/pz2JDAM7.js +2 -0
  96. package/.output/public/_nuxt/settings.Dm3M0RLy.css +1 -0
  97. package/.output/public/_nuxt/town.DKIAhKnx.css +1 -0
  98. package/.output/public/_nuxt/users.CXnP2E08.css +1 -0
  99. package/.output/public/_nuxt/vRTjoWqd.js +1 -0
  100. package/.output/public/_nuxt/workshop.Jk5HxWPE.css +1 -0
  101. package/.output/public/_nuxt/zIGh7R49.js +75 -0
  102. package/.output/public/_nuxt/zq5t1vyX.js +1 -0
  103. package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
  104. package/.output/server/chunks/_/entity.mjs +174 -0
  105. package/.output/server/chunks/_/entity.mjs.map +1 -0
  106. package/.output/server/chunks/_/env-manager.mjs +162 -0
  107. package/.output/server/chunks/_/env-manager.mjs.map +1 -0
  108. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  109. package/.output/server/chunks/_/nitro.mjs +1568 -1043
  110. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  111. package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
  112. package/.output/server/chunks/build/{TownView-BdHnAilw.mjs → TownView-jVazYOjN.mjs} +141 -141
  113. package/.output/server/chunks/build/{TownView-BdHnAilw.mjs.map → TownView-jVazYOjN.mjs.map} +1 -1
  114. package/.output/server/chunks/build/{_id_-Cb845FHR.mjs → _id_-CfVosNg3.mjs} +136 -136
  115. package/.output/server/chunks/build/{_id_-Cb845FHR.mjs.map → _id_-CfVosNg3.mjs.map} +1 -1
  116. package/.output/server/chunks/build/{_id_-fadFPl2i.mjs → _id_-Hwr4rZpr.mjs} +32 -32
  117. package/.output/server/chunks/build/{_id_-fadFPl2i.mjs.map → _id_-Hwr4rZpr.mjs.map} +1 -1
  118. package/.output/server/chunks/build/{_wsId_-CTZswnm5.mjs → _wsId_-BVg3bB77.mjs} +175 -165
  119. package/.output/server/chunks/build/{_wsId_-CTZswnm5.mjs.map → _wsId_-BVg3bB77.mjs.map} +1 -1
  120. package/.output/server/chunks/build/aml-BCSJCdX7.mjs +588 -0
  121. package/.output/server/chunks/build/aml-BCSJCdX7.mjs.map +1 -0
  122. package/.output/server/chunks/build/{daq-BvihjQyW.mjs → daq-C03Uu5UE.mjs} +108 -106
  123. package/.output/server/chunks/build/daq-C03Uu5UE.mjs.map +1 -0
  124. package/.output/server/chunks/build/{dcw-Ks2vJ4PF.mjs → dcw-6vEYVeje.mjs} +44 -44
  125. package/.output/server/chunks/build/{dcw-Ks2vJ4PF.mjs.map → dcw-6vEYVeje.mjs.map} +1 -1
  126. package/.output/server/chunks/build/{default-GgHt4O2R.mjs → default-hseyOqBT.mjs} +30 -27
  127. package/.output/server/chunks/build/{default-GgHt4O2R.mjs.map → default-hseyOqBT.mjs.map} +1 -1
  128. package/.output/server/chunks/build/{logs-CYBhkQwh.mjs → logs-B-xhuqln.mjs} +35 -35
  129. package/.output/server/chunks/build/{logs-CYBhkQwh.mjs.map → logs-B-xhuqln.mjs.map} +1 -1
  130. package/.output/server/chunks/build/{pages-C-6BRtv8.mjs → pages-BO7yZsXA.mjs} +18 -27
  131. package/.output/server/chunks/build/pages-BO7yZsXA.mjs.map +1 -0
  132. package/.output/server/chunks/build/{plugins-dZRegC7m.mjs → plugins-CUWmMdyt.mjs} +17 -17
  133. package/.output/server/chunks/build/{plugins-dZRegC7m.mjs.map → plugins-CUWmMdyt.mjs.map} +1 -1
  134. package/.output/server/chunks/build/{settings-CgDLkP3s.mjs → settings-DoQ2Oq3P.mjs} +43 -43
  135. package/.output/server/chunks/build/{settings-CgDLkP3s.mjs.map → settings-DoQ2Oq3P.mjs.map} +1 -1
  136. package/.output/server/chunks/build/{town-DJ-V5G9U.mjs → town-BOl6hs9B.mjs} +7 -7
  137. package/.output/server/chunks/build/{town-DJ-V5G9U.mjs.map → town-BOl6hs9B.mjs.map} +1 -1
  138. package/.output/server/chunks/build/useDaqStream-CIBaiGAl.mjs +1 -1
  139. package/.output/server/chunks/build/useDcwStream-CBbiYnWe.mjs +1 -1
  140. package/.output/server/chunks/build/{useWorkshopWs-CprkZEdq.mjs → useWorkshopWs-C_I7q9As.mjs} +110 -32
  141. package/.output/server/chunks/build/{useWorkshopWs-CprkZEdq.mjs.map → useWorkshopWs-C_I7q9As.mjs.map} +1 -1
  142. package/.output/server/chunks/build/{users-4nzxTjFT.mjs → users-fohSmF-J.mjs} +6 -6
  143. package/.output/server/chunks/build/{users-4nzxTjFT.mjs.map → users-fohSmF-J.mjs.map} +1 -1
  144. package/.output/server/chunks/build/{workshop-81xhz368.mjs → workshop-DX5-ldc4.mjs} +15 -15
  145. package/.output/server/chunks/build/{workshop-81xhz368.mjs.map → workshop-DX5-ldc4.mjs.map} +1 -1
  146. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +21 -8
  147. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -1
  148. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id/preview.get.mjs +1 -1
  149. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs +58 -0
  150. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs.map +1 -0
  151. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +27 -6
  152. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs.map +1 -1
  153. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs +49 -0
  154. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs.map +1 -0
  155. package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs +45 -0
  156. package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs.map +1 -0
  157. package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs +30 -0
  158. package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs.map +1 -0
  159. package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs +40 -0
  160. package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs.map +1 -0
  161. package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs +42 -0
  162. package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs.map +1 -0
  163. package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +1 -1
  164. package/.output/server/chunks/routes/api/workshop/aml/index.post.mjs +1 -1
  165. package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs +4 -22
  166. package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs.map +1 -1
  167. package/.output/server/chunks/routes/api/workshop/aml/index2.post.mjs +1 -1
  168. package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs +4 -16
  169. package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs.map +1 -1
  170. package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs +19 -34
  171. package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs.map +1 -1
  172. package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +41 -0
  173. package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs.map +1 -0
  174. package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs +62 -0
  175. package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs.map +1 -0
  176. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/cancel.post.mjs +1 -1
  177. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/logs.get.mjs +1 -1
  178. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/retry.post.mjs +1 -1
  179. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs +63 -0
  180. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs.map +1 -0
  181. package/.output/server/chunks/routes/api/workshop/aml/models/_id/predict.post.mjs +1 -1
  182. package/.output/server/chunks/routes/api/workshop/aml/models/_id/promote.post.mjs +1 -1
  183. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs +54 -0
  184. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs.map +1 -0
  185. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs +46 -0
  186. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs.map +1 -0
  187. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +1 -1
  188. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +1 -1
  189. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
  190. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +1 -1
  191. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +1 -1
  192. package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
  193. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +1 -1
  194. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
  195. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +1 -1
  196. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +4 -4
  197. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +1 -1
  198. package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +1 -1
  199. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
  200. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +1 -1
  201. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +1 -1
  202. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +1 -1
  203. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +1 -1
  204. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +1 -1
  205. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
  206. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
  207. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
  208. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
  209. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
  210. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
  211. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
  212. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
  213. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
  214. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
  215. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
  216. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
  217. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
  218. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
  219. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +1 -1
  220. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
  221. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +1 -1
  222. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
  223. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +1 -1
  224. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
  225. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +1 -1
  226. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
  227. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +1 -1
  228. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
  229. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
  230. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
  231. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
  232. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
  233. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
  234. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
  235. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
  236. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
  237. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
  238. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
  239. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
  240. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +1 -1
  241. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
  242. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +1 -1
  243. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
  244. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
  245. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
  246. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
  247. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
  248. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
  249. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
  250. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
  251. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
  252. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
  253. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  254. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +1 -1
  255. package/.output/server/chunks/routes/api/workshop/index.put.mjs +1 -1
  256. package/.output/server/chunks/routes/api/workshop/index2.get.mjs +12 -1
  257. package/.output/server/chunks/routes/api/workshop/index2.get.mjs.map +1 -1
  258. package/.output/server/chunks/routes/api/workshop/index3.post.mjs +1 -1
  259. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
  260. package/.output/server/chunks/routes/api/workshop/index5.get.mjs +1 -1
  261. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
  262. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
  263. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
  264. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  265. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  266. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  267. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  268. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +1 -1
  269. package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +1 -1
  270. package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
  271. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
  272. package/.output/server/chunks/routes/renderer.mjs +2 -2
  273. package/.output/server/chunks/virtual/entry.mjs +103 -17
  274. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  275. package/.output/server/package.json +1 -1
  276. package/README-zh.md +578 -507
  277. package/README.md +125 -51
  278. package/app/assets/css/main.css +329 -22
  279. package/app/components/AppHeader.vue +5 -4
  280. package/app/components/AppSidebar.vue +5 -4
  281. package/app/components/AwChart.vue +17 -0
  282. package/app/components/workshop/AgentLanesView.vue +2 -2
  283. package/app/components/workshop/ChannelSessionList.vue +3 -3
  284. package/app/components/workshop/CommandPalette.vue +1 -2
  285. package/app/components/workshop/Composer.vue +4 -4
  286. package/app/components/workshop/DaqNodeRow.vue +20 -1
  287. package/app/components/workshop/EventBlock.vue +3 -3
  288. package/app/components/workshop/MentionHoverCard.vue +1 -1
  289. package/app/components/workshop/MultiChannelView.vue +1 -1
  290. package/app/components/workshop/TaskBoardView.vue +5 -5
  291. package/app/components/workshop/TranscriptTimeline.vue +3 -3
  292. package/app/components/workshop/blocks/ClusterRoute.vue +3 -3
  293. package/app/components/workshop/blocks/ClusterStream.vue +1 -1
  294. package/app/components/workshop/blocks/ClusterTool.vue +1 -1
  295. package/app/components/workshop/lanes/LaneBlocks.vue +5 -2
  296. package/app/components/workshop/town/TownView.vue +0 -7
  297. package/app/composables/workshop/useClusteredBlocks.ts +22 -3
  298. package/app/composables/workshop/useEscClose.ts +44 -0
  299. package/app/config/index.ts +2 -1
  300. package/app/layouts/default.vue +25 -8
  301. package/app/pages/aml/index.vue +626 -4
  302. package/app/pages/daq/[id].vue +1 -1
  303. package/app/pages/daq/index.vue +10 -12
  304. package/app/pages/dcw/[id].vue +2 -2
  305. package/app/pages/dcw/index.vue +7 -11
  306. package/app/pages/index.vue +24 -6
  307. package/app/pages/logs/index.vue +2 -6
  308. package/app/pages/plugins/index.vue +1 -1
  309. package/app/pages/settings.vue +2 -2
  310. package/app/pages/town.vue +0 -2
  311. package/app/pages/users.vue +1 -1
  312. package/app/pages/workshop/index.vue +2 -2
  313. package/app/plugins/esc-close.client.ts +31 -0
  314. package/app/stores/workshop/events.ts +186 -36
  315. package/bin/aw.mjs +7 -2
  316. package/cli/aw.mjs +19 -34
  317. package/cli/commands/build.mjs +18 -1
  318. package/cli/commands/config.mjs +2 -0
  319. package/cli/commands/plugin.mjs +45 -18
  320. package/cli/commands/register.mjs +6 -2
  321. package/cli/commands/status.mjs +2 -1
  322. package/cli/commands/update.mjs +1 -1
  323. package/cli/commands/version.mjs +1 -1
  324. package/cli/core/args.mjs +76 -4
  325. package/cli/core/help.mjs +3 -1
  326. package/cli/core/meta.mjs +38 -0
  327. package/cli/core/post-build.mjs +96 -0
  328. package/cli/core/registry.mjs +6 -3
  329. package/config.yml +28 -26
  330. package/docs/aml.md +99 -0
  331. package/docs/cli.en.md +445 -0
  332. package/docs/cli.md +410 -220
  333. package/docs/full-test-plan.md +174 -0
  334. package/docs/multi-harness-architecture.md +248 -0
  335. package/docs/plugins.en.md +534 -0
  336. package/docs/plugins.md +531 -179
  337. package/docs/sdk.en.md +922 -0
  338. package/docs/sdk.md +725 -129
  339. package/i18n/dicts/aml.json +43 -1
  340. package/i18n/locales/en.ts +1928 -1885
  341. package/i18n/locales/zh-CN.ts +1928 -1885
  342. package/nuxt.config.ts +27 -2
  343. package/package.json +164 -153
  344. package/scripts/.mimosa/hook-status/sess_aeaecb58-8833-4b83-b93c-050467d21e03-d944d71bb3.json +14 -0
  345. package/scripts/_audit/aml-layout-diag.mjs +83 -0
  346. package/scripts/_audit/bump-version.mjs +51 -0
  347. package/scripts/_audit/channel-inspect.mjs +49 -0
  348. package/scripts/_audit/cleanup-apply.mjs +89 -0
  349. package/scripts/_audit/cleanup-plan.mjs +82 -0
  350. package/scripts/_audit/contrast-check.mjs +43 -0
  351. package/scripts/_audit/dcw-unrecorded-write.ts +1 -1
  352. package/scripts/_audit/design-shots.mjs +145 -0
  353. package/scripts/_audit/docs-font-probe.mjs +68 -0
  354. package/scripts/_audit/docs-probe.mjs +107 -0
  355. package/scripts/_audit/docs-shots.mjs +171 -0
  356. package/scripts/_audit/docs-v3-verify.mjs +255 -0
  357. package/scripts/_audit/docs-vue-lint.mjs +81 -0
  358. package/scripts/_audit/docs-vue-lint2.mjs +91 -0
  359. package/scripts/_audit/exp-cost-scaling.mjs +4 -1
  360. package/scripts/_audit/exp-envelope-and-png.mjs +2 -1
  361. package/scripts/_audit/exp-sweep-fairness.mjs +4 -2
  362. package/scripts/_audit/fix-settings-count.mjs +57 -0
  363. package/scripts/_audit/glass-verify.mjs +155 -0
  364. package/scripts/_audit/hydration-diff.mjs +104 -0
  365. package/scripts/_audit/hydration-head.mjs +36 -0
  366. package/scripts/_audit/hydration-probe.mjs +59 -0
  367. package/scripts/_audit/lead-matrix-test.mjs +172 -0
  368. package/scripts/_audit/plc-agent-task.mjs +74 -0
  369. package/scripts/_audit/plc-clean-scenario.mjs +434 -0
  370. package/scripts/_audit/plc-clean-shots.mjs +161 -0
  371. package/scripts/_audit/plc-fc10-probe.mjs +30 -0
  372. package/scripts/_audit/probe-binding.mjs +114 -103
  373. package/scripts/_audit/review-fix-verify.mjs +158 -0
  374. package/scripts/_audit/seed-demo.mjs +165 -0
  375. package/scripts/_audit/town-focus-shot.mjs +129 -0
  376. package/scripts/_audit/town-reposition.mjs +85 -0
  377. package/scripts/_audit/ts-resolve-hook.mjs +57 -22
  378. package/scripts/_audit/verify-cleanup.mjs +67 -0
  379. package/scripts/_audit/verify-release-pack.mjs +82 -0
  380. package/scripts/_audit/watchdog-recovery-test.mjs +127 -0
  381. package/scripts/_dbg-audit-all-pages.mjs +43 -43
  382. package/scripts/_dbg-configroot-audit.mjs +84 -84
  383. package/scripts/_dbg-daq-intervals-func.mjs +94 -94
  384. package/scripts/_dbg-daq-rowstyle-verify.mjs +112 -112
  385. package/scripts/_dbg-groups-ui-verify.mjs +122 -122
  386. package/scripts/_dbg-harness-e2e.mjs +92 -92
  387. package/scripts/_dbg-harness-ui-e2e.py +97 -97
  388. package/scripts/_dbg-hitl-timeout-e2e.mjs +93 -93
  389. package/scripts/_dbg-multiharness-live-e2e.mjs +254 -254
  390. package/scripts/_dbg-opslog-agent-e2e.mjs +194 -191
  391. package/scripts/_dbg-opt-team-e2e.mjs +133 -133
  392. package/scripts/_dbg-recipe-e2e.mjs +176 -176
  393. package/scripts/_dbg-recipe-stale-e2e.mjs +135 -135
  394. package/scripts/_dbg-render-perf.mjs +142 -142
  395. package/scripts/_dbg-render-regression.mjs +130 -130
  396. package/scripts/_dbg-town-smoke.mjs +54 -54
  397. package/scripts/aw-start-smoke.mjs +27 -8
  398. package/scripts/check-docs-sync.mjs +367 -0
  399. package/scripts/e2e-full-closedloop.mjs +36 -18
  400. package/scripts/production-closed-loop-e2e.mjs +300 -300
  401. package/scripts/test-cli-exit.mjs +129 -21
  402. package/scripts/test-daq-frame-race.mjs +144 -96
  403. package/scripts/test-events-index.mjs +176 -0
  404. package/scripts/test-lru.mjs +34 -11
  405. package/scripts/test-memory-month-query.mjs +11 -3
  406. package/scripts/test-plugin-hardening.mjs +7 -2
  407. package/scripts/test-plugin-lifecycle.mjs +173 -0
  408. package/scripts/test-rollback-index.mjs +76 -18
  409. package/scripts/test-sdk-surface.mjs +6 -3
  410. package/sdk/client.mjs +16 -7
  411. package/sdk/context.mjs +21 -9
  412. package/sdk/examples/line-sentinel/client.mjs +13 -6
  413. package/sdk/examples/line-sentinel/index.mjs +5 -2
  414. package/sdk/examples/ops-notifier/client.mjs +3 -1
  415. package/sdk/examples/sample-insight/client.mjs +4 -2
  416. package/sdk/index.d.mts +133 -16
  417. package/sdk/index.mjs +3 -2
  418. package/sdk/lifecycle.mjs +8 -3
  419. package/server/api/workshop/agent-tools/bindings/index.post.ts +22 -7
  420. package/server/api/workshop/aml/datasets/[id].delete.ts +39 -0
  421. package/server/api/workshop/aml/datasets/[id].get.ts +31 -9
  422. package/server/api/workshop/aml/datasets/[id].patch.ts +30 -0
  423. package/server/api/workshop/aml/entities/index.get.ts +13 -0
  424. package/server/api/workshop/aml/entities/prune.post.ts +28 -0
  425. package/server/api/workshop/aml/env/index.get.ts +13 -0
  426. package/server/api/workshop/aml/env/recheck.post.ts +14 -0
  427. package/server/api/workshop/aml/env/uv.post.ts +21 -0
  428. package/server/api/workshop/aml/env/venv.post.ts +24 -0
  429. package/server/api/workshop/aml/index.get.ts +14 -1
  430. package/server/api/workshop/aml/jobs/[id].delete.ts +44 -0
  431. package/server/api/workshop/aml/models/[id].delete.ts +35 -0
  432. package/server/api/workshop/aml/models/[id].patch.ts +30 -0
  433. package/server/services/workshop/agents/agent-interface.ts +3 -0
  434. package/server/services/workshop/agents/base-agent.ts +9 -0
  435. package/server/services/workshop/agents/codex-agent.ts +743 -729
  436. package/server/services/workshop/agents/dsh-agent.ts +4 -7
  437. package/server/services/workshop/agents/opencode-agent.ts +5 -7
  438. package/server/services/workshop/aml/aml.repo.ts +18 -0
  439. package/server/services/workshop/aml/dataset-builder.ts +4 -0
  440. package/server/services/workshop/aml/entity.ts +365 -0
  441. package/server/services/workshop/aml/env-manager.ts +242 -0
  442. package/server/services/workshop/aml/job-orchestrator.ts +4 -15
  443. package/server/services/workshop/aml/model-registry.ts +6 -0
  444. package/server/services/workshop/aml/python-runtime.ts +396 -62
  445. package/server/services/workshop/aml/runtime.ts +95 -4
  446. package/server/services/workshop/daq/bus/mqtt.adapter.ts +3 -1
  447. package/server/services/workshop/daq/daq-controller.ts +95 -47
  448. package/server/services/workshop/daq/daq-node.repo.ts +0 -10
  449. package/server/services/workshop/daq/daq-runtime.ts +0 -5
  450. package/server/services/workshop/json-store.mjs +35 -2
  451. package/server/services/workshop/plugins/host.mjs +18 -12
  452. package/server/services/workshop/runtime/agent-runtime.ts +32 -3
  453. package/server/services/workshop/runtime/manager.ts +28 -1
  454. package/server/services/workshop/runtime/scheduler-loop.ts +10 -1
  455. package/server/services/workshop/settings.ts +2 -0
  456. package/shared/config/home.mjs +58 -0
  457. package/shared/config/schema.json +2 -1
  458. package/shared/lru.mjs +4 -1
  459. package/.output/public/_nuxt/-6OnbLFb.js +0 -1
  460. package/.output/public/_nuxt/-nb2uqVg.js +0 -1
  461. package/.output/public/_nuxt/4bHdIqEg.js +0 -18
  462. package/.output/public/_nuxt/6PZPfFcO.js +0 -17
  463. package/.output/public/_nuxt/BBBtwOpo.js +0 -9
  464. package/.output/public/_nuxt/BBwMH_hG.js +0 -7
  465. package/.output/public/_nuxt/BDUjyaF4.js +0 -42
  466. package/.output/public/_nuxt/BNXfwXpE.js +0 -1
  467. package/.output/public/_nuxt/BN_PdN3J.js +0 -24
  468. package/.output/public/_nuxt/BSSUlJnx2.js +0 -1
  469. package/.output/public/_nuxt/BWSE6hR6.js +0 -1
  470. package/.output/public/_nuxt/BZGNTgTQ2.js +0 -1
  471. package/.output/public/_nuxt/BZv4RFYN.js +0 -1
  472. package/.output/public/_nuxt/BcmbLh2z2.js +0 -1
  473. package/.output/public/_nuxt/BfGc7TJp.js +0 -1
  474. package/.output/public/_nuxt/BgTB6h_q.js +0 -2
  475. package/.output/public/_nuxt/BkLJA9J5.js +0 -1
  476. package/.output/public/_nuxt/Bp5luxkg2.js +0 -1
  477. package/.output/public/_nuxt/BuCHayqN.js +0 -1
  478. package/.output/public/_nuxt/BuvcLKh1.js +0 -19
  479. package/.output/public/_nuxt/C3tCneTM.js +0 -1
  480. package/.output/public/_nuxt/C77oC8yC2.js +0 -7
  481. package/.output/public/_nuxt/C9f8QMp12.js +0 -1
  482. package/.output/public/_nuxt/CKfhtOt7.js +0 -13
  483. package/.output/public/_nuxt/CQvmN-Mi.js +0 -1
  484. package/.output/public/_nuxt/CUDrOuW7.js +0 -1
  485. package/.output/public/_nuxt/CZcC-gpk.js +0 -1
  486. package/.output/public/_nuxt/CbzsPO5H.js +0 -1
  487. package/.output/public/_nuxt/CdSOrh2c.js +0 -1
  488. package/.output/public/_nuxt/Cgx818r-.js +0 -1
  489. package/.output/public/_nuxt/Cjm7VogC.js +0 -1
  490. package/.output/public/_nuxt/Cm5mDxzH.js +0 -1
  491. package/.output/public/_nuxt/CmHzfVc5.js +0 -3
  492. package/.output/public/_nuxt/Cn3J3NXR.js +0 -23
  493. package/.output/public/_nuxt/Cno6kYiO2.js +0 -1
  494. package/.output/public/_nuxt/Cp6z0RN7.js +0 -1
  495. package/.output/public/_nuxt/CwqIxJGj.js +0 -2
  496. package/.output/public/_nuxt/D-Ca4BGY.js +0 -70
  497. package/.output/public/_nuxt/D0fhp-Ga.js +0 -75
  498. package/.output/public/_nuxt/D1z7i2UP.js +0 -31
  499. package/.output/public/_nuxt/DIaTPH1M.js +0 -1
  500. package/.output/public/_nuxt/DTYBfjRY.js +0 -1
  501. package/.output/public/_nuxt/DXRZPxGs.js +0 -1
  502. package/.output/public/_nuxt/DZzGarBE2.js +0 -13
  503. package/.output/public/_nuxt/DaMCzQhv.js +0 -1
  504. package/.output/public/_nuxt/DoLasgPj2.js +0 -1
  505. package/.output/public/_nuxt/DpojD719.js +0 -1
  506. package/.output/public/_nuxt/DsVcWfyR.js +0 -1
  507. package/.output/public/_nuxt/DtBu71ev.js +0 -32
  508. package/.output/public/_nuxt/Dy-mxvXY2.js +0 -1
  509. package/.output/public/_nuxt/DzuC31-i.js +0 -2
  510. package/.output/public/_nuxt/FQri3dV3.js +0 -1
  511. package/.output/public/_nuxt/ORt9oDIy2.js +0 -1
  512. package/.output/public/_nuxt/TownView.CtskuMXS.css +0 -1
  513. package/.output/public/_nuxt/VLI2Zy4t.js +0 -5
  514. package/.output/public/_nuxt/_id_.MbzdFygI.css +0 -1
  515. package/.output/public/_nuxt/_id_.hRYo-EAB.css +0 -1
  516. package/.output/public/_nuxt/_wsId_.gXMEOYgX.css +0 -1
  517. package/.output/public/_nuxt/aml.WU_bh87J.css +0 -1
  518. package/.output/public/_nuxt/arUY5dyq2.js +0 -4
  519. package/.output/public/_nuxt/builds/meta/291ef3e6-fa6a-4dee-8f46-05da1aeab815.json +0 -1
  520. package/.output/public/_nuxt/daq.Bb6l44-O.css +0 -1
  521. package/.output/public/_nuxt/dcw.rXH2fc2Z.css +0 -1
  522. package/.output/public/_nuxt/default.jNT73_hq.css +0 -1
  523. package/.output/public/_nuxt/ekuGmQ7R.js +0 -1
  524. package/.output/public/_nuxt/entry.jFrFAWuA.css +0 -1
  525. package/.output/public/_nuxt/logs.DMOM-iHe.css +0 -1
  526. package/.output/public/_nuxt/niDwBOZW.js +0 -3
  527. package/.output/public/_nuxt/pMoIO6rr.js +0 -14
  528. package/.output/public/_nuxt/pages.Cc8GX9T1.css +0 -1
  529. package/.output/public/_nuxt/plugins.wIPyfPn-.css +0 -1
  530. package/.output/public/_nuxt/rqZ-1SoP.js +0 -2
  531. package/.output/public/_nuxt/settings.BCm4NZIc.css +0 -1
  532. package/.output/public/_nuxt/town.C_DsNW0J.css +0 -1
  533. package/.output/public/_nuxt/users.DuAt_Zwf.css +0 -1
  534. package/.output/public/_nuxt/vJ4FPb-_.js +0 -1
  535. package/.output/public/_nuxt/workshop.BJg84pOK.css +0 -1
  536. package/.output/server/chunks/build/aml-uBNIppIf.mjs +0 -508
  537. package/.output/server/chunks/build/aml-uBNIppIf.mjs.map +0 -1
  538. package/.output/server/chunks/build/daq-BvihjQyW.mjs.map +0 -1
  539. package/.output/server/chunks/build/pages-C-6BRtv8.mjs.map +0 -1
  540. package/scripts/_audit/.tmp/audit-data/dcws.json +0 -28
  541. package/scripts/_audit/.tmp/dcw-writes.json +0 -15650
  542. package/scripts/_audit/.tmp/dcws.json +0 -9033
  543. package/scripts/_audit/.tmp/pollution-backup/dcw-rollback.polluted.json +0 -470006
  544. package/scripts/_audit/.tmp/pollution-backup/dcws.polluted.json +0 -9085
  545. package/scripts/_audit/.tmp/probe-cwd.txt +0 -1
  546. package/scripts/_audit/awhome/commands/README.md +0 -3
  547. package/scripts/_audit/awhome/commands/hello.mjs +0 -12
  548. package/scripts/_audit/diag-cwd.ts +0 -20
  549. package/scripts/_audit/diag-cwd2.ts +0 -19
  550. package/scripts/_audit/hello.mjs +0 -12
  551. package/scripts/_audit/ndjson-partial-line-repro.mjs +0 -77
  552. package/scripts/_audit/opencode-await-ternary-repro.mjs +0 -20
  553. package/scripts/_audit/part-frag.txt +0 -84
  554. package/scripts/_audit/part-head.txt +0 -45
  555. package/scripts/_audit/probe-child.mjs +0 -17
  556. package/scripts/_audit/probe-envelope.mjs +0 -49
  557. package/scripts/_audit/probe-packlist.mjs +0 -67
  558. package/scripts/_audit/probe-routes.mjs +0 -47
  559. package/scripts/_audit/probe-routes2.mjs +0 -38
  560. package/scripts/_audit/probe.ts +0 -9
  561. package/scripts/_audit/probe2.ts +0 -6
  562. package/scripts/_audit/probe3.ts +0 -3
  563. package/scripts/_audit/probe4.ts +0 -3
  564. package/scripts/_audit/proj/.AgentWorkShop/commands/echoargs.mjs +0 -13
  565. package/scripts/_audit/proj/config.yml +0 -1
  566. package/scripts/_audit/run.mjs +0 -30
  567. package/scripts/_audit/tsconfig.probe.json +0 -24
  568. package/scripts/_audit/typecheck-out.txt +0 -466
  569. package/scripts/_daq-realtime-probe.mjs +0 -68
  570. package/scripts/_daq-warn-probe.mjs +0 -50
  571. package/scripts/_dbg-acc-1-setup.mjs +0 -57
  572. package/scripts/_dbg-acc-2-diag.mjs +0 -14
  573. package/scripts/_dbg-acc-2-intervals.mjs +0 -81
  574. package/scripts/_dbg-acc-3-daq.mjs +0 -48
  575. package/scripts/_dbg-acc-4-team.mjs +0 -92
  576. package/scripts/_dbg-acc-5-visual.mjs +0 -63
  577. package/scripts/_dbg-acc-5b-ws-town.mjs +0 -18
  578. package/scripts/_dbg-acc-5c-town.mjs +0 -12
  579. package/scripts/_dbg-acc-6-i18n.mjs +0 -19
  580. package/scripts/_dbg-agent-tools-audit.mjs +0 -154
  581. package/scripts/_dbg-agent-workflow-audit.mjs +0 -177
  582. package/scripts/_dbg-agents-dropdown-shot.py +0 -33
  583. package/scripts/_dbg-anim-verify.mjs +0 -81
  584. package/scripts/_dbg-app-shot.mjs +0 -48
  585. package/scripts/_dbg-autoframe.mjs +0 -103
  586. package/scripts/_dbg-availability-probe.ts +0 -11
  587. package/scripts/_dbg-beacon-final.mjs +0 -181
  588. package/scripts/_dbg-bind-bidi-e2e.mjs +0 -239
  589. package/scripts/_dbg-callout-near.mjs +0 -108
  590. package/scripts/_dbg-catalog-smoke.ts +0 -20
  591. package/scripts/_dbg-cf-line-shot.mjs +0 -18
  592. package/scripts/_dbg-chan-focus.mjs +0 -49
  593. package/scripts/_dbg-channel-plugin-ui.mjs +0 -94
  594. package/scripts/_dbg-cleanup.mjs +0 -31
  595. package/scripts/_dbg-closedloop-ui-shot.mjs +0 -61
  596. package/scripts/_dbg-codex-handshake.ts +0 -30
  597. package/scripts/_dbg-codex-probe.mjs +0 -58
  598. package/scripts/_dbg-codex-sandbox.ts +0 -58
  599. package/scripts/_dbg-codex-turn.ts +0 -65
  600. package/scripts/_dbg-collab-scenario-e2e.mjs +0 -185
  601. package/scripts/_dbg-config-smoke.ts +0 -28
  602. package/scripts/_dbg-console-audit.mjs +0 -61
  603. package/scripts/_dbg-console-probe.mjs +0 -23
  604. package/scripts/_dbg-context-inject-audit.mjs +0 -231
  605. package/scripts/_dbg-cpu-profile.mjs +0 -53
  606. package/scripts/_dbg-crash-recovery.mjs +0 -143
  607. package/scripts/_dbg-crop-shot.mjs +0 -16
  608. package/scripts/_dbg-cross-channel-e2e.mjs +0 -157
  609. package/scripts/_dbg-cross-team-visibility-e2e.mjs +0 -129
  610. package/scripts/_dbg-crush-probe.sh +0 -21
  611. package/scripts/_dbg-crush-spawn-probe.ts +0 -22
  612. package/scripts/_dbg-daq-acc-probe.mjs +0 -24
  613. package/scripts/_dbg-daq-attrib.mjs +0 -34
  614. package/scripts/_dbg-daq-bind-audit.mjs +0 -119
  615. package/scripts/_dbg-daq-cadence.mjs +0 -104
  616. package/scripts/_dbg-daq-debug.mjs +0 -22
  617. package/scripts/_dbg-daq-diag.mjs +0 -33
  618. package/scripts/_dbg-daq-e2e.mjs +0 -171
  619. package/scripts/_dbg-daq-film.mjs +0 -136
  620. package/scripts/_dbg-daq-filter-e2e.mjs +0 -109
  621. package/scripts/_dbg-daq-filter-e2e2.mjs +0 -62
  622. package/scripts/_dbg-daq-final-regression.mjs +0 -78
  623. package/scripts/_dbg-daq-frame-alarm.mjs +0 -49
  624. package/scripts/_dbg-daq-frame-ui.mjs +0 -62
  625. package/scripts/_dbg-daq-frame-ws.mjs +0 -72
  626. package/scripts/_dbg-daq-full-check.mjs +0 -179
  627. package/scripts/_dbg-daq-line-note-verify.mjs +0 -61
  628. package/scripts/_dbg-daq-linebanner-audit.mjs +0 -107
  629. package/scripts/_dbg-daq-pages-shot.mjs +0 -37
  630. package/scripts/_dbg-daq-perf.mjs +0 -61
  631. package/scripts/_dbg-daq-probe.mjs +0 -27
  632. package/scripts/_dbg-daq-recipe-e2e.mjs +0 -30
  633. package/scripts/_dbg-daq-redesign-shot.mjs +0 -88
  634. package/scripts/_dbg-daq-rows-probe.mjs +0 -26
  635. package/scripts/_dbg-daq-rowstate-e2e.mjs +0 -152
  636. package/scripts/_dbg-daq-rowstate-shot.mjs +0 -45
  637. package/scripts/_dbg-daq-rowstate-shot2.mjs +0 -38
  638. package/scripts/_dbg-daq-tpl.mjs +0 -144
  639. package/scripts/_dbg-dash-console-check.mjs +0 -49
  640. package/scripts/_dbg-dash-deep-probe.mjs +0 -61
  641. package/scripts/_dbg-dash-hitpoint.mjs +0 -44
  642. package/scripts/_dbg-dash-live-shot.mjs +0 -36
  643. package/scripts/_dbg-dash-shot.mjs +0 -21
  644. package/scripts/_dbg-dashboard-shot.mjs +0 -35
  645. package/scripts/_dbg-dcw-audit.mjs +0 -126
  646. package/scripts/_dbg-dcw-card-e2e.mjs +0 -108
  647. package/scripts/_dbg-dcw-channel-ui.mjs +0 -144
  648. package/scripts/_dbg-dcw-examples.mjs +0 -81
  649. package/scripts/_dbg-dcw-light-shot.mjs +0 -19
  650. package/scripts/_dbg-dcw-line-audit.mjs +0 -107
  651. package/scripts/_dbg-dcw-pause-tpl-audit.mjs +0 -161
  652. package/scripts/_dbg-dcw-pause-ui.mjs +0 -175
  653. package/scripts/_dbg-dcw-read-toolface.ts +0 -13
  654. package/scripts/_dbg-dcw-read-ui.mjs +0 -74
  655. package/scripts/_dbg-dcw-scene.mjs +0 -72
  656. package/scripts/_dbg-dcw-shot2.mjs +0 -14
  657. package/scripts/_dbg-dcw-twin-e2e.mjs +0 -192
  658. package/scripts/_dbg-diag-mock-loop.mjs +0 -89
  659. package/scripts/_dbg-diag-watch.mjs +0 -95
  660. package/scripts/_dbg-docs-site-shot.mjs +0 -32
  661. package/scripts/_dbg-dsh-probe.mjs +0 -31
  662. package/scripts/_dbg-dt-interact.mjs +0 -193
  663. package/scripts/_dbg-error-probe.mjs +0 -54
  664. package/scripts/_dbg-filter-light-verify.mjs +0 -54
  665. package/scripts/_dbg-final-acceptance-2.mjs +0 -72
  666. package/scripts/_dbg-final-acceptance.mjs +0 -192
  667. package/scripts/_dbg-final-agent-e2e.mjs +0 -151
  668. package/scripts/_dbg-final-features.mjs +0 -155
  669. package/scripts/_dbg-final-fixups.mjs +0 -62
  670. package/scripts/_dbg-final-full-e2e.mjs +0 -218
  671. package/scripts/_dbg-final-line-e2e.mjs +0 -173
  672. package/scripts/_dbg-final-shots.mjs +0 -32
  673. package/scripts/_dbg-final-t6-hitl.mjs +0 -38
  674. package/scripts/_dbg-final-visual.mjs +0 -29
  675. package/scripts/_dbg-fix-unused-imports.py +0 -41
  676. package/scripts/_dbg-focus-range.mjs +0 -115
  677. package/scripts/_dbg-fresh-scene-e2e.mjs +0 -125
  678. package/scripts/_dbg-fullchain-e2e.mjs +0 -178
  679. package/scripts/_dbg-gate-debug.mjs +0 -37
  680. package/scripts/_dbg-gif-encode.mjs +0 -111
  681. package/scripts/_dbg-gizmo.mjs +0 -95
  682. package/scripts/_dbg-glass-probe.mjs +0 -57
  683. package/scripts/_dbg-glass-shot.mjs +0 -50
  684. package/scripts/_dbg-glass-sweep.mjs +0 -25
  685. package/scripts/_dbg-glb-probe.mjs +0 -43
  686. package/scripts/_dbg-goose-probe.mjs +0 -33
  687. package/scripts/_dbg-goose-probe.sh +0 -10
  688. package/scripts/_dbg-hardening-probe.mjs +0 -90
  689. package/scripts/_dbg-harness-ui-dbg.py +0 -49
  690. package/scripts/_dbg-harness-ui-shot.py +0 -109
  691. package/scripts/_dbg-hero-btn-probe.mjs +0 -21
  692. package/scripts/_dbg-hidden-check.mjs +0 -21
  693. package/scripts/_dbg-hmi-audit.mjs +0 -164
  694. package/scripts/_dbg-home-repro.mjs +0 -24
  695. package/scripts/_dbg-home-stack.mjs +0 -13
  696. package/scripts/_dbg-host.mjs +0 -16
  697. package/scripts/_dbg-huashu-survey.mjs +0 -31
  698. package/scripts/_dbg-huashu-survey2.mjs +0 -35
  699. package/scripts/_dbg-huashu-verify.mjs +0 -25
  700. package/scripts/_dbg-huashu-verify2.mjs +0 -26
  701. package/scripts/_dbg-hydration-detail.mjs +0 -18
  702. package/scripts/_dbg-i18n-debug.mjs +0 -27
  703. package/scripts/_dbg-i18n-debug2.mjs +0 -26
  704. package/scripts/_dbg-i18n-final.mjs +0 -42
  705. package/scripts/_dbg-i18n-scan.mjs +0 -38
  706. package/scripts/_dbg-infra-lifecycle.mjs +0 -44
  707. package/scripts/_dbg-interval-config.mjs +0 -156
  708. package/scripts/_dbg-interval-scenario.mjs +0 -126
  709. package/scripts/_dbg-kicker-check.mjs +0 -11
  710. package/scripts/_dbg-line-aura-shots.mjs +0 -54
  711. package/scripts/_dbg-line-control-e2e.mjs +0 -120
  712. package/scripts/_dbg-line-gate-audit.mjs +0 -108
  713. package/scripts/_dbg-line-live-e2e.mjs +0 -144
  714. package/scripts/_dbg-line-repo-test.ts +0 -10
  715. package/scripts/_dbg-line-scenario-e2e.mjs +0 -256
  716. package/scripts/_dbg-line-spawn.ts +0 -31
  717. package/scripts/_dbg-live-engine-probe.mjs +0 -80
  718. package/scripts/_dbg-login-debug.py +0 -23
  719. package/scripts/_dbg-login-e2e.mjs +0 -26
  720. package/scripts/_dbg-logs-ui-e2e.py +0 -126
  721. package/scripts/_dbg-mcp-bridge-probe.mjs +0 -147
  722. package/scripts/_dbg-modbus-latency.mjs +0 -22
  723. package/scripts/_dbg-mqtt-chain-e2e.mjs +0 -90
  724. package/scripts/_dbg-mqtt-publisher.mjs +0 -17
  725. package/scripts/_dbg-nav-rpg.mjs +0 -84
  726. package/scripts/_dbg-nav-shot.mjs +0 -28
  727. package/scripts/_dbg-nav.mjs +0 -27
  728. package/scripts/_dbg-oneshot-impl-probe.ts +0 -67
  729. package/scripts/_dbg-opencode-sse.mjs +0 -101
  730. package/scripts/_dbg-opencode-start.ts +0 -57
  731. package/scripts/_dbg-opslog-e2e.mjs +0 -121
  732. package/scripts/_dbg-opslog-shots.mjs +0 -62
  733. package/scripts/_dbg-optimization-e2e.mjs +0 -94
  734. package/scripts/_dbg-orbit.mjs +0 -58
  735. package/scripts/_dbg-overview-probe.sh +0 -31
  736. package/scripts/_dbg-panesplitter-fix-check.mjs +0 -62
  737. package/scripts/_dbg-perms-visual.mjs +0 -36
  738. package/scripts/_dbg-pg-tcp-probe.cjs +0 -27
  739. package/scripts/_dbg-phase-e3-monitor.mjs +0 -25
  740. package/scripts/_dbg-pi-spawn-probe.ts +0 -33
  741. package/scripts/_dbg-plc-agent-loop.ts +0 -102
  742. package/scripts/_dbg-plc-e2e.mjs +0 -171
  743. package/scripts/_dbg-plugin-agent-read.ts +0 -56
  744. package/scripts/_dbg-plugin-config-ui.mjs +0 -111
  745. package/scripts/_dbg-plugin-matrix.mjs +0 -212
  746. package/scripts/_dbg-plugin-panels-ui.mjs +0 -54
  747. package/scripts/_dbg-plugin-sink-rest.mjs +0 -70
  748. package/scripts/_dbg-plugin-sink-ui.mjs +0 -81
  749. package/scripts/_dbg-plugin-tools-inject.ts +0 -80
  750. package/scripts/_dbg-plugin-ui-wizard.mjs +0 -125
  751. package/scripts/_dbg-plugin-verify-e2e.mjs +0 -123
  752. package/scripts/_dbg-plugins-e2e.mjs +0 -101
  753. package/scripts/_dbg-pop-clamp-verify.mjs +0 -77
  754. package/scripts/_dbg-preset-e2e.mjs +0 -116
  755. package/scripts/_dbg-preview-console.mjs +0 -28
  756. package/scripts/_dbg-preview-minrepro.mjs +0 -156
  757. package/scripts/_dbg-preview-pixels.mjs +0 -93
  758. package/scripts/_dbg-prompts-hotreload-test.ts +0 -76
  759. package/scripts/_dbg-prompts-resolve-test.ts +0 -39
  760. package/scripts/_dbg-quality-pages-e2e.mjs +0 -84
  761. package/scripts/_dbg-query-cancel.ts +0 -12
  762. package/scripts/_dbg-qwen-acp-probe.mjs +0 -30
  763. package/scripts/_dbg-qwen-capture.mjs +0 -21
  764. package/scripts/_dbg-rail-tree-e2e.mjs +0 -183
  765. package/scripts/_dbg-real-driver-e2e.mjs +0 -55
  766. package/scripts/_dbg-redesign-shots.mjs +0 -34
  767. package/scripts/_dbg-registry-smoke.ts +0 -14
  768. package/scripts/_dbg-release-smoke.mjs +0 -104
  769. package/scripts/_dbg-repo-setup-verify.mjs +0 -31
  770. package/scripts/_dbg-resolve-probe.ts +0 -6
  771. package/scripts/_dbg-restart-persist.mjs +0 -41
  772. package/scripts/_dbg-retention-test.ts +0 -25
  773. package/scripts/_dbg-rollback-mgr-audit.mjs +0 -169
  774. package/scripts/_dbg-rpg.mjs +0 -71
  775. package/scripts/_dbg-sc001-dispatch.mjs +0 -63
  776. package/scripts/_dbg-scenario-final-shot.mjs +0 -24
  777. package/scripts/_dbg-scenario-phase-e2.mjs +0 -75
  778. package/scripts/_dbg-scenario-phase-e3.mjs +0 -96
  779. package/scripts/_dbg-scenario-phase1.mjs +0 -90
  780. package/scripts/_dbg-scenario-phase2.mjs +0 -105
  781. package/scripts/_dbg-scenario-phase3-monitor.mjs +0 -48
  782. package/scripts/_dbg-scenario-phase3.mjs +0 -111
  783. package/scripts/_dbg-scene-polish-shot.mjs +0 -118
  784. package/scripts/_dbg-selring-probe.mjs +0 -47
  785. package/scripts/_dbg-settings-draft-probe.mjs +0 -39
  786. package/scripts/_dbg-settings-probe.mjs +0 -33
  787. package/scripts/_dbg-setup-e2e.mjs +0 -88
  788. package/scripts/_dbg-sideinfo.mjs +0 -101
  789. package/scripts/_dbg-sim-keeper.mjs +0 -100
  790. package/scripts/_dbg-splitter.mjs +0 -88
  791. package/scripts/_dbg-swatch-check.mjs +0 -10
  792. package/scripts/_dbg-task-cancel-probe.mjs +0 -66
  793. package/scripts/_dbg-team-drill.mjs +0 -173
  794. package/scripts/_dbg-town-alarm-e2e.mjs +0 -40
  795. package/scripts/_dbg-town-beauty-shots.mjs +0 -54
  796. package/scripts/_dbg-town-daq-shot.mjs +0 -26
  797. package/scripts/_dbg-town-full-e2e.mjs +0 -104
  798. package/scripts/_dbg-town-gate.mjs +0 -44
  799. package/scripts/_dbg-town-ins-probe.mjs +0 -37
  800. package/scripts/_dbg-town-perf.mjs +0 -50
  801. package/scripts/_dbg-town-polish-shots.mjs +0 -82
  802. package/scripts/_dbg-town-realtime.mjs +0 -42
  803. package/scripts/_dbg-town-shot.py +0 -25
  804. package/scripts/_dbg-town-shot3.mjs +0 -17
  805. package/scripts/_dbg-town-truth.mjs +0 -37
  806. package/scripts/_dbg-town-truth2.mjs +0 -27
  807. package/scripts/_dbg-transform-audit.mjs +0 -98
  808. package/scripts/_dbg-trend-expand-test.mjs +0 -38
  809. package/scripts/_dbg-twindaq-focus.mjs +0 -81
  810. package/scripts/_dbg-ui-polish-shot.mjs +0 -43
  811. package/scripts/_dbg-ui-polish-verify1.mjs +0 -92
  812. package/scripts/_dbg-ui-polish-verify2.mjs +0 -50
  813. package/scripts/_dbg-ui-polish-verify3.mjs +0 -51
  814. package/scripts/_dbg-ui-polish-verify4.mjs +0 -50
  815. package/scripts/_dbg-ui-shot.mjs +0 -26
  816. package/scripts/_dbg-ui-shots.mjs +0 -28
  817. package/scripts/_dbg-ui-survey.py +0 -52
  818. package/scripts/_dbg-unify-shot.mjs +0 -43
  819. package/scripts/_dbg-uplink-probe.mjs +0 -36
  820. package/scripts/_dbg-wizard-preview-shot.mjs +0 -58
  821. package/scripts/_dbg-wizard-ui-e2e.mjs +0 -93
  822. package/scripts/_dbg-ws-probe.mjs +0 -86
  823. package/scripts/_dbg-ws-shot2.mjs +0 -23
  824. package/scripts/_dbg-wsdot-sanity.mjs +0 -25
  825. package/scripts/_dev-stack.mjs +0 -46
  826. package/scripts/_http-driver-probe.mjs +0 -30
  827. package/scripts/_mqtt-driver-probe.mjs +0 -30
  828. package/scripts/_newdriver-rest-probe.mjs +0 -100
  829. package/scripts/_node-state-probe.mjs +0 -5
  830. package/scripts/_opcua-driver-probe.mjs +0 -31
  831. package/scripts/_rtu-debug.mjs +0 -41
  832. package/scripts/_rtu-direct.mjs +0 -6
  833. package/scripts/_rtu-driver-probe.mjs +0 -53
  834. package/scripts/_spike-pitui.mjs +0 -116
  835. package/scripts/_tmp-args-probe.mjs +0 -20
  836. package/scripts/_tmp-cyc-entry.mjs +0 -8
  837. package/scripts/_tmp-cyc-main.mjs +0 -5
  838. package/scripts/_tmp-cyc-mod.mjs +0 -2
  839. package/scripts/_tmp-cycle-a.mjs +0 -6
  840. package/scripts/_tmp-cycle-b.mjs +0 -2
  841. package/scripts/_tmp-cycle-probe.mjs +0 -4
  842. package/scripts/_tmp-entry-variant.mjs +0 -2
  843. package/scripts/_tmp-help-probe.mjs +0 -19
  844. package/scripts/_tmp-help-probe2.mjs +0 -2
  845. package/scripts/_tmp-trace-preload.mjs +0 -1
  846. package/scripts/_wizard-shots.mjs +0 -90
  847. package/scripts/acceptance-suite.py +0 -207
  848. package/scripts/aml-agent-bridge.ts +0 -230
  849. package/scripts/aml-industrial-loop.ts +0 -232
  850. package/scripts/build-film-devices.mjs +0 -227
  851. package/scripts/collab-live-test.py +0 -177
  852. package/scripts/debug-mcp-http.ts +0 -64
  853. package/scripts/demo-lead-worker.ts +0 -256
  854. package/scripts/demo-modes.ts +0 -415
  855. package/scripts/demo-omp-channel.ts +0 -135
  856. package/scripts/design-preflight.mjs +0 -223
  857. package/scripts/design-verify-templates.mjs +0 -110
  858. package/scripts/design-verify.mjs +0 -170
  859. package/scripts/dev-window.cmd +0 -6
  860. package/scripts/device-line-restore.mjs +0 -34
  861. package/scripts/diag-lead-status.ts +0 -101
  862. package/scripts/e2e-a2a-steer-live.mjs +0 -193
  863. package/scripts/e2e-dual-drive-comm.ts +0 -259
  864. package/scripts/e2e-full-scenario.ts +0 -321
  865. package/scripts/e2e-harness-consistency.ts +0 -204
  866. package/scripts/e2e-harness-provider-task.mjs +0 -126
  867. package/scripts/e2e-line-live.mjs +0 -144
  868. package/scripts/e2e-memory-persistence.ts +0 -320
  869. package/scripts/e2e-omp-modes.ts +0 -274
  870. package/scripts/e2e-omp-realtime.ts +0 -258
  871. package/scripts/e2e-plc-scenario.mjs +0 -292
  872. package/scripts/e2e-real-scenario.mjs +0 -466
  873. package/scripts/e2e-tab-close.mjs +0 -136
  874. package/scripts/e2e-token-ui.mjs +0 -149
  875. package/scripts/final-soup-run.py +0 -192
  876. package/scripts/final-soup-watch.py +0 -83
  877. package/scripts/i18n-codemod.mjs +0 -173
  878. package/scripts/i18n-fix-en.py +0 -28
  879. package/scripts/i18n-fix-en2.py +0 -31
  880. package/scripts/i18n-merge.mjs +0 -191
  881. package/scripts/migrate-local-time.mjs +0 -123
  882. package/scripts/omp-real-test.py +0 -328
  883. package/scripts/team-plugins-api-smoke.mjs +0 -149
  884. package/scripts/test-a2a-relay.mjs +0 -222
  885. package/scripts/test-aml-integration.ts +0 -159
  886. package/scripts/test-aml-job.ts +0 -174
  887. package/scripts/test-aml-unit.ts +0 -184
  888. package/scripts/test-api-client.ts +0 -108
  889. package/scripts/test-api-suite.mjs +0 -271
  890. package/scripts/test-block-consumption.mjs +0 -194
  891. package/scripts/test-cmd-render.mjs +0 -218
  892. package/scripts/test-collab-omp.mjs +0 -192
  893. package/scripts/test-config-precedence.ts +0 -124
  894. package/scripts/test-context-governor.ts +0 -176
  895. package/scripts/test-daq-frames.ts +0 -180
  896. package/scripts/test-daq-minio.ts +0 -77
  897. package/scripts/test-dedup-logic.ts +0 -132
  898. package/scripts/test-e2e-collaboration.ts +0 -262
  899. package/scripts/test-e2e-monitor.ts +0 -192
  900. package/scripts/test-event-history.ts +0 -112
  901. package/scripts/test-exec-modes.ts +0 -316
  902. package/scripts/test-fifo-realtime.mjs +0 -193
  903. package/scripts/test-final-e2e.mjs +0 -290
  904. package/scripts/test-goal-summary.ts +0 -202
  905. package/scripts/test-harness-liveness.ts +0 -109
  906. package/scripts/test-harness-terminal.ts +0 -164
  907. package/scripts/test-header-trail.mjs +0 -95
  908. package/scripts/test-hitl.ts +0 -360
  909. package/scripts/test-koda-restyle.mjs +0 -105
  910. package/scripts/test-lane-raw.ts +0 -67
  911. package/scripts/test-lanes-history-render.mjs +0 -138
  912. package/scripts/test-loop-omp.mjs +0 -154
  913. package/scripts/test-mdlite.ts +0 -53
  914. package/scripts/test-memory-brief-chronicle.ts +0 -180
  915. package/scripts/test-memory-rrf-mmr.ts +0 -114
  916. package/scripts/test-mock-collab.mjs +0 -226
  917. package/scripts/test-modern-render.mjs +0 -174
  918. package/scripts/test-omp-terminal.mjs +0 -187
  919. package/scripts/test-plugin-ext.ts +0 -173
  920. package/scripts/test-prompts-loader.ts +0 -56
  921. package/scripts/test-real-scenario.mjs +0 -290
  922. package/scripts/test-stream-render.ts +0 -37
  923. package/scripts/test-task-drawer.mjs +0 -204
  924. package/scripts/test-task-invariants.mjs +0 -169
  925. package/scripts/test-town-3d.mjs +0 -121
  926. package/scripts/test-town-layout.mjs +0 -200
  927. package/scripts/test-town-page.mjs +0 -136
  928. package/scripts/test-town-scene-math.ts +0 -169
  929. package/scripts/test-town-twin.mjs +0 -121
  930. package/scripts/test-town-upload.mjs +0 -89
  931. package/scripts/test-town-user-flow.mjs +0 -619
  932. package/scripts/test-town-world.mjs +0 -76
  933. package/scripts/test-town-wuwa.mjs +0 -198
  934. package/scripts/test-user-isolation.mjs +0 -193
  935. package/scripts/test-workshop-entries.ts +0 -370
  936. package/scripts/test-workspace-api.ts +0 -329
  937. package/scripts/test-ws-aep.mjs +0 -187
  938. package/scripts/test-ws-protocol.ts +0 -134
  939. package/scripts/town-demo-seed.mjs +0 -75
  940. package/scripts/town-scene-clear.mjs +0 -56
  941. package/scripts/verify-exec-modes-report.ts +0 -248
  942. package/scripts/verify-lead-mail.ts +0 -188
  943. package/scripts/verify-page-smoke.mjs +0 -87
  944. package/scripts/ws-test.mjs +0 -176
  945. package/scripts/ws-test.py +0 -4
@@ -1,164 +0,0 @@
1
- /**
2
- * 烟雾测试:harness 终端镜像(omp `--mode rpc-ui`)—— /monitor 终端功能的服务端回路。
3
- *
4
- * 验证链路:
5
- * 1. OmpRpcClient 以 rpc-ui 模式 spawn(ready 握手)
6
- * 2. attachTerminalTap 后全部 RPC 帧流入终端会话环形缓冲 + 订阅者广播
7
- * 3. prompt → 会话事件(agent_start / message_update / tool_execution_* / agent_end)镜像
8
- * 4. sendTerminalInput(空闲 follow_up)→ 新回合被镜像(人类注入)
9
- * 5. 真实 HITL:诱导 agent 调 ask 工具 → extension_ui_request 对话框进入 pendingHitl
10
- * → respondTerminalUi(select 应答)→ agent 收到答案继续回合(agent_end)
11
- * 6. dispose → 会话标记退出(alive=false,缓冲保留)
12
- *
13
- * 运行:pnpm tsx scripts/test-harness-terminal.ts(需要 omp CLI + 已配置的模型)
14
- */
15
- import { mkdtempSync } from 'node:fs'
16
- import { tmpdir } from 'node:os'
17
- import { join } from 'node:path'
18
- import { OmpRpcClient } from '../server/services/workshop/agents/adapters/omp-rpc-client'
19
- import {
20
- attachTerminalTap,
21
- markTerminalSessionExit,
22
- respondTerminalUi,
23
- sendTerminalInput,
24
- subscribeTerminal,
25
- terminalSessionSnapshot,
26
- } from '../server/services/workshop/agents/harness-terminal'
27
- import type { TerminalServerMessage } from '../shared/terminal-protocol'
28
-
29
- const sleep = (ms: number): Promise<void> => new Promise(r => setTimeout(r, ms))
30
-
31
- async function waitUntil(pred: () => boolean, timeoutMs: number, _what: string): Promise<boolean> {
32
- const deadline = Date.now() + timeoutMs
33
- while (Date.now() < deadline) {
34
- if (pred()) return true
35
- await sleep(200)
36
- }
37
- return pred()
38
- }
39
-
40
- let failures = 0
41
- function check(ok: boolean, label: string, detail = ''): void {
42
- const mark = ok ? 'PASS' : 'FAIL'
43
- if (!ok) failures += 1
44
- console.log(` [${mark}] ${label}${detail ? ` — ${detail}` : ''}`)
45
- }
46
-
47
- function frameTypeCounts(snapshot: ReturnType<typeof terminalSessionSnapshot>): Map<string, number> {
48
- const counts = new Map<string, number>()
49
- for (const f of snapshot?.replay ?? []) {
50
- const t = String(f.frame.type)
51
- counts.set(t, (counts.get(t) ?? 0) + 1)
52
- }
53
- return counts
54
- }
55
-
56
- /** 诊断:打印指定类型帧的关键字段 */
57
- function dumpFrames(snapshot: ReturnType<typeof terminalSessionSnapshot>, type: string): void {
58
- for (const f of snapshot?.replay ?? []) {
59
- if (f.frame.type !== type) continue
60
- const { id, method, command, success, title, targetId } = f.frame as Record<string, unknown>
61
- console.log(` · seq=${f.seq} ${type} method=${String(method ?? '')} command=${String(command ?? '')} success=${String(success ?? '')} title=${String(title ?? '').slice(0, 50)} targetId=${String(targetId ?? '')} id=${String(id ?? '')}`)
62
- }
63
- }
64
-
65
- async function main(): Promise<void> {
66
- console.log('== harness-terminal 烟雾测试(rpc-ui)==')
67
- const cwd = mkdtempSync(join(tmpdir(), 'aw-terminal-smoke-'))
68
-
69
- // 1. rpc-ui spawn
70
- const client = new OmpRpcClient({ command: 'omp', mode: 'rpc-ui', cwd })
71
- await client.start()
72
- const pid = client.pid ?? -1
73
- check(pid > 0, 'omp rpc-ui 子进程启动', `pid=${pid}`)
74
-
75
- // 2. 终端 tap
76
- attachTerminalTap(client, {
77
- pid,
78
- harness: 'omp',
79
- agentId: 'smoke-agent',
80
- channelId: 'smoke-channel',
81
- name: 'smoke-worker',
82
- role: 'worker',
83
- })
84
- const received: TerminalServerMessage[] = []
85
- const unsub = subscribeTerminal(pid, m => received.push(m)) ?? (() => {})
86
- check(terminalSessionSnapshot(pid) !== null, '终端会话已建立(tap 挂载)')
87
-
88
- // 3. prompt → 会话事件镜像
89
- console.log(' … 等待第 1 回合(prompt)')
90
- await client.send({ type: 'prompt', message: 'Reply with exactly the single word PONG and nothing else.' })
91
- let ok = await waitUntil(() => {
92
- const s = terminalSessionSnapshot(pid)
93
- return s !== null && s.replay.some(f => f.frame.type === 'agent_end' && f.frame.isTerminal !== false)
94
- }, 240_000, 'agent_end')
95
- check(ok, '第 1 回合事件镜像至终端(agent_end)')
96
-
97
- const counts1 = frameTypeCounts(terminalSessionSnapshot(pid))
98
- check((counts1.get('message_start') ?? 0) > 0, 'message_start 帧已镜像', `count=${counts1.get('message_start') ?? 0}`)
99
- check((counts1.get('message_update') ?? 0) > 0, 'message_update(流式 delta)帧已镜像', `count=${counts1.get('message_update') ?? 0}`)
100
- check((counts1.get('agent_start') ?? 0) > 0, 'agent_start 帧已镜像')
101
-
102
- // 4. 人类注入(空闲 → follow_up;先等 running 归零再注入,避免排队歧义)
103
- console.log(' … 等待回合彻底空闲后注入(follow_up)')
104
- await waitUntil(() => terminalSessionSnapshot(pid)?.running === false, 60_000, 'idle')
105
- await sendTerminalInput(pid, 'Reply with exactly the single word PONG2 and nothing else.')
106
- ok = await waitUntil(() => {
107
- const s = terminalSessionSnapshot(pid)
108
- const ends = s?.replay.filter(f => f.frame.type === 'agent_end' && f.frame.isTerminal !== false) ?? []
109
- return ends.length >= 2
110
- }, 240_000, 'second agent_end')
111
- check(ok, '人类注入(follow_up)驱动新回合并镜像')
112
- const snapshotAfterInput = terminalSessionSnapshot(pid)
113
- check(
114
- (snapshotAfterInput?.replay.some(f => f.frame.type === '__human_input')) === true,
115
- '__human_input 合成帧已入缓冲',
116
- )
117
- check(
118
- received.some(m => m.type === 'term.frames' && m.frames.length > 0),
119
- '订阅者收到实时帧广播(term.frames)',
120
- )
121
-
122
- // 5. 真实 HITL 回路:诱导 ask → extension_ui_request → 人工应答
123
- console.log(' … 等待 HITL 对话框(ask 工具)')
124
- await waitUntil(() => terminalSessionSnapshot(pid)?.running === false, 60_000, 'idle')
125
- await client.send({
126
- type: 'prompt',
127
- message: 'Use the ask tool to ask me: "Pick a color" with options Red and Blue. After I answer, reply with exactly the word I chose and nothing else.',
128
- })
129
- await waitUntil(() => terminalSessionSnapshot(pid)?.hitl != null, 240_000, 'extension_ui_request')
130
- const hitl = terminalSessionSnapshot(pid)?.hitl ?? null
131
- check(hitl !== null, 'HITL 对话框进入 pending(extension_ui_request 镜像)', hitl ? `method=${hitl.method} options=${JSON.stringify(hitl.options).slice(0, 80)}` : '')
132
-
133
- if (hitl) {
134
- respondTerminalUi(pid, { id: hitl.id, value: 'Blue' })
135
- console.log(' … 已应答 Blue,等待回合完成')
136
- ok = await waitUntil(() => {
137
- const s = terminalSessionSnapshot(pid)
138
- const ends = s?.replay.filter(f => f.frame.type === 'agent_end' && f.frame.isTerminal !== false) ?? []
139
- return terminalSessionSnapshot(pid)?.hitl == null && ends.length >= 3
140
- }, 240_000, 'post-answer agent_end')
141
- check(ok, 'HITL 应答后回合继续并完成(agent 收到人工答案)')
142
- check(terminalSessionSnapshot(pid)?.hitl == null, 'pendingHitl 已清空')
143
- }
144
-
145
- // 6. dispose → 退出标记
146
- await client.dispose()
147
- markTerminalSessionExit(pid, null)
148
- const dead = terminalSessionSnapshot(pid)
149
- check(dead !== null && dead.alive === false, '会话标记退出(alive=false)')
150
- check((dead?.replay.length ?? 0) > 0, '退出后缓冲保留(事后可查看)', `frames=${dead?.replay.length ?? 0}`)
151
-
152
- unsub()
153
- const counts = frameTypeCounts(dead)
154
- console.log('\n 帧类型分布:', JSON.stringify(Object.fromEntries([...counts.entries()].sort())))
155
- dumpFrames(dead, 'extension_ui_request')
156
- dumpFrames(dead, 'response')
157
- console.log(failures === 0 ? '\n全部通过 ✅' : `\n${failures} 项失败 ❌`)
158
- process.exit(failures === 0 ? 0 : 1)
159
- }
160
-
161
- main().catch((err) => {
162
- console.error('烟雾测试异常:', err)
163
- process.exit(1)
164
- })
@@ -1,95 +0,0 @@
1
- /**
2
- * Header 航迹导航实测(puppeteer-core 驱动 Edge headless):
3
- * - 依次访问 仪表盘 → 运行时监控 → 系统设置 → 仪表盘(重复)
4
- * - 断言:航迹节点按访问顺序累积;重复路径去重后移至末尾;当前页节点高亮
5
- * - 点击旧航点 → 路由返回对应页面;进度线元素存在
6
- * - 截图:亮色/暗色各一张供视觉核验
7
- * 运行:node scripts/test-header-trail.mjs
8
- */
9
- import puppeteer from 'puppeteer-core'
10
- import { mkdirSync } from 'node:fs'
11
-
12
- const BASE = process.env.AW_BASE ?? 'http://127.0.0.1:3101'
13
- const EDGE = process.env.EDGE_PATH ?? 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe'
14
- const sleep = ms => new Promise(r => setTimeout(r, ms))
15
-
16
- let passed = 0, failures = 0
17
- const check = (name, ok, detail = '') => {
18
- console.log(` ${ok ? 'PASS' : 'FAIL'} ${name}${detail ? ` — ${detail}` : ''}`)
19
- if (ok) passed += 1
20
- else failures += 1
21
- }
22
-
23
- async function main() {
24
- mkdirSync('data/shots', { recursive: true })
25
- const browser = await puppeteer.launch({
26
- executablePath: EDGE,
27
- headless: 'new',
28
- args: ['--no-sandbox', '--disable-gpu', '--window-size=1500,900'],
29
- defaultViewport: { width: 1500, height: 900 },
30
- })
31
- const page = await browser.newPage()
32
- page.on('pageerror', e => console.log(' [pageerror]', e.message.slice(0, 160)))
33
-
34
- const goto = async (path) => {
35
- await page.goto(`${BASE}${path}`, { waitUntil: 'domcontentloaded' })
36
- await sleep(900)
37
- }
38
- const trailTitles = async () =>
39
- page.$$eval('.trail-node', els => els.map(e => e.textContent.replace(/\s+/g, ' ').trim()))
40
- const activeTitle = async () =>
41
- page.$eval('.trail-node.active', e => e.textContent.replace(/\s+/g, ' ').trim()).catch(() => '(none)')
42
-
43
- // ── 1. 依次访问,航迹累积 ──
44
- await goto('/')
45
- await goto('/monitor')
46
- await goto('/settings')
47
- let titles = await trailTitles()
48
- check('航迹按访问顺序累积(3 节点)', titles.length === 3, JSON.stringify(titles))
49
- check('节点含序号+图标+标题', titles[0]?.includes('01') && titles[0]?.includes('仪表盘'), titles[0] ?? '')
50
- check('当前页节点高亮(系统设置)', (await activeTitle()).includes('系统设置'), await activeTitle())
51
-
52
- // ── 2. 重复访问去重移末尾 ──
53
- await goto('/')
54
- titles = await trailTitles()
55
- check('重复路径去重并移至末尾', titles.length === 3 && titles[2]?.includes('仪表盘'), JSON.stringify(titles))
56
-
57
- // ── 3. 点击旧航点返回 ──
58
- const nodes = await page.$$('.trail-node')
59
- // 点击第 1 个航点(应为 运行时监控)
60
- await nodes[0]?.click()
61
- await sleep(1200)
62
- const url = page.url()
63
- check('点击旧航点返回对应页面', url.endsWith('/monitor'), url)
64
- check('返回后该节点变为当前高亮', (await activeTitle()).includes('运行时监控'), await activeTitle())
65
-
66
- // ── 4. 进度线元素与 workbench 页兼容 ──
67
- check('绘图仪进度线元素存在', (await page.$('.plotter-line')) !== null)
68
- await goto('/workshop')
69
- await sleep(1200)
70
- titles = await trailTitles()
71
- check('工作台页入轨(workshop)', titles.some(t => t.includes('Agent 工作台') || t.includes('Agent')), JSON.stringify(titles))
72
-
73
- // ── 5. 视觉核验截图(亮/暗) ──
74
- await page.screenshot({ path: 'data/shots/header-trail-light.png' })
75
- await page.click('.icon-btn:nth-of-type(1)').catch(() => {})
76
- // 用标题定位主题按钮(太阳/月亮)
77
- for (const b of await page.$$('.icon-btn')) {
78
- const html = await b.evaluate(el => el.innerHTML)
79
- if (html.includes('sun-high') || html.includes('moon-stars')) {
80
- await b.click()
81
- break
82
- }
83
- }
84
- await sleep(600)
85
- await page.screenshot({ path: 'data/shots/header-trail-dark.png' })
86
-
87
- await browser.close()
88
- console.log(`\n★ 结果: ${passed} passed, ${failures} failed`)
89
- process.exit(failures === 0 ? 0 : 1)
90
- }
91
-
92
- main().catch((err) => {
93
- console.error('异常:', err.message)
94
- process.exit(1)
95
- })
@@ -1,360 +0,0 @@
1
- /**
2
- * HITL 与成员生命周期 mock 测试:
3
- * A. lead 创建团队成员 → 立即装配进 channel 运行时 + DB 同步(无需等首次投递)
4
- * B. lead 移除团队成员 → 运行时卸载 + DB 成员行删除 + 一次性模板连带删除
5
- * C. 每个 AgentRuntime 独立 stop(HITL 中断):成员保留、可重新装配、lead 停止后自动重激活
6
- * D. 任务 HITL:用户可取消(lead/worker 任务均可)+ 重试 FAILED 任务
7
- *
8
- * 运行: npx tsx scripts/test-hitl.ts
9
- */
10
- import { openWorkshopDb } from '../server/services/workshop/db/database'
11
- import { createChannelRepo } from '../server/services/workshop/db/channel.repo'
12
- import { createAgentRepo } from '../server/services/workshop/db/agent.repo'
13
- import { createChannelAgentRepo } from '../server/services/workshop/db/channel-agent.repo'
14
- import { createTaskRepo } from '../server/services/workshop/db/task.repo'
15
- import { createMemoryRepo } from '../server/services/workshop/db/memory.repo'
16
- import { createChannelEventRepo } from '../server/services/workshop/db/channel-event.repo'
17
- import { createTeamRepo } from '../server/services/workshop/db/team.repo'
18
- import { createTeamMemberRepo } from '../server/services/workshop/db/team-member.repo'
19
- import { createMessageRepo } from '../server/services/workshop/db/message.repo'
20
- import { createSubscriptionRepo } from '../server/services/workshop/db/subscription.repo'
21
- import { createAgentChannelManager } from '../server/services/workshop/runtime/manager'
22
- import type { AgentChannelManager } from '../server/services/workshop/runtime/manager'
23
- import { createAgentImpl } from '../server/services/workshop/agents/factory'
24
- import type { WorkspaceTask } from '../server/services/workshop/types/task'
25
- import type { SupervisionDecision } from '../server/services/workshop/agents/agent-interface'
26
-
27
- let failures = 0
28
- let testCount = 0
29
- function check(name: string, ok: boolean, detail = ''): void {
30
- testCount += 1
31
- console.log(` ${ok ? '✅' : '❌'} ${name}${detail ? ` — ${detail}` : ''}`)
32
- if (!ok) failures += 1
33
- }
34
-
35
- const sleep = (ms: number) => new Promise<void>(r => setTimeout(r, ms))
36
-
37
- async function waitUntil(cond: () => boolean | Promise<boolean>, timeoutMs: number): Promise<boolean> {
38
- const deadline = Date.now() + timeoutMs
39
- while (Date.now() < deadline) {
40
- if (await cond()) return true
41
- await sleep(40)
42
- }
43
- return false
44
- }
45
-
46
- interface Harness {
47
- manager: AgentChannelManager
48
- db: ReturnType<typeof openWorkshopDb>
49
- }
50
-
51
- function setup(): Harness {
52
- const db = openWorkshopDb(':memory:')
53
- const repos = {
54
- channels: createChannelRepo(db),
55
- agents: createAgentRepo(db),
56
- channelAgents: createChannelAgentRepo(db),
57
- messages: createMessageRepo(db),
58
- subscriptions: createSubscriptionRepo(db),
59
- tasks: createTaskRepo(db),
60
- memories: createMemoryRepo(db),
61
- channelEvents: createChannelEventRepo(db),
62
- teams: createTeamRepo(db),
63
- teamMembers: createTeamMemberRepo(db),
64
- }
65
- const manager = createAgentChannelManager({ repos, implFactory: createAgentImpl, db })
66
- return { manager, db }
67
- }
68
-
69
- function getEngine(manager: AgentChannelManager) {
70
- return (manager as unknown as {
71
- getTaskEngine(): {
72
- get(id: string): WorkspaceTask | undefined
73
- list(channelId: string): WorkspaceTask[]
74
- transition(taskId: string, state: string, by: string): WorkspaceTask
75
- }
76
- }).getTaskEngine()
77
- }
78
-
79
- function attachScheduler(manager: AgentChannelManager, channelId: string, tickMs = 50): void {
80
- manager.ensureChannelActive(channelId, { tickMs, stallMs: 60_000 })
81
- }
82
-
83
- async function cleanup(h: Harness): Promise<void> {
84
- await h.manager.shutdown()
85
- h.db.close()
86
- }
87
-
88
- // ===== A. lead 建员:立即装配 + DB 同步 =====
89
- async function testLeadSpawnWiresMember(): Promise<void> {
90
- console.log('\n━━━ A. lead 创建成员 → 立即装配 + DB 同步(mock)━━━')
91
-
92
- const h = setup()
93
- try {
94
- const spawn: SupervisionDecision = {
95
- kind: 'spawn_agent',
96
- name: 'w2',
97
- harness: 'mock',
98
- config: { delayMs: 20 },
99
- reason: 'lead 扩容测试',
100
- }
101
- const ch = await h.manager.createChannel({
102
- name: '建员装配测试',
103
- leadAgent: { name: 'lead', harness: 'mock', config: { delayMs: 20, teamOps: [spawn] } },
104
- })
105
- await h.manager.addAgentToChannel({
106
- channelId: ch.channelId,
107
- agentId: (await h.manager.createAgent({ name: 'w1', harness: 'mock', config: { delayMs: 20 } })).id,
108
- role: 'worker',
109
- })
110
- attachScheduler(h.manager, ch.channelId)
111
-
112
- // 首个 supervise tick 触发 spawn_agent → 新成员落库
113
- const spawned = await waitUntil(async () => {
114
- const members = await h.manager.listChannelAgents(ch.channelId)
115
- return members.some(m => m.name === 'w2')
116
- }, 5000)
117
- check('lead spawn_agent 后成员落库(channel_agents 行)', spawned)
118
-
119
- const w2 = (await h.manager.listChannelAgents(ch.channelId)).find(m => m.name === 'w2')
120
- check('DB 成员行包含 w2', !!w2, w2 ? `id=${w2.id.slice(0, 8)}` : '')
121
- const w2Detail = w2 ? h.manager.getChannelAgent(w2.id) : undefined
122
- check('新成员已装配(立即 wire,无需首次投递)', w2Detail?.wired === true, `wired=${w2Detail?.wired}`)
123
-
124
- // 装配后即可被调度:提交 2 个任务,w2 应实际执行到至少一个
125
- const engine = getEngine(h.manager)
126
- const t1 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '任务A' })
127
- const t2 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '任务B' })
128
- const allDone = await waitUntil(() =>
129
- engine.get(t1.id)?.state === 'COMPLETED' && engine.get(t2.id)?.state === 'COMPLETED', 15_000)
130
- check('装配成员可正常承接任务(全部完成)', allDone)
131
- const children = engine.list(ch.channelId).filter(t => t.parentId && (t.parentId === t1.id || t.parentId === t2.id))
132
- const byW2 = children.filter(t => t.assigneeId === w2?.id)
133
- check('w2 实际执行了任务', byW2.length >= 1, `w2 执行 ${byW2.length}/${children.length}`)
134
- }
135
- finally {
136
- await cleanup(h)
137
- }
138
- }
139
-
140
- // ===== B. lead 删员:运行时卸载 + DB 删除(成员行 + 一次性模板) =====
141
- async function testLeadRemoveUnloadsAndDeletes(): Promise<void> {
142
- console.log('\n━━━ B. lead 移除成员 → 卸载运行时 + 删除数据库信息(mock)━━━')
143
-
144
- const h = setup()
145
- try {
146
- const spawn: SupervisionDecision = {
147
- kind: 'spawn_agent',
148
- name: 'w2',
149
- harness: 'mock',
150
- config: { delayMs: 20 },
151
- reason: '扩容',
152
- }
153
- const ch = await h.manager.createChannel({
154
- name: '删员卸载测试',
155
- leadAgent: { name: 'lead', harness: 'mock', config: { delayMs: 20, teamOps: [spawn] } },
156
- })
157
- const w1 = await h.manager.addAgentToChannel({
158
- channelId: ch.channelId,
159
- agentId: (await h.manager.createAgent({ name: 'w1', harness: 'mock', config: { delayMs: 20 } })).id,
160
- role: 'worker',
161
- })
162
- attachScheduler(h.manager, ch.channelId)
163
-
164
- await waitUntil(async () => (await h.manager.listChannelAgents(ch.channelId)).some(m => m.name === 'w2'), 5000)
165
- const w2 = (await h.manager.listChannelAgents(ch.channelId)).find(m => m.name === 'w2')!
166
- // templateId 不经 AgentInfo 暴露,测试直接查库
167
- const row = h.db.prepare('SELECT template_id AS templateId FROM channel_agents WHERE id = ?').get(w2.id) as { templateId: string } | undefined
168
- const templateId = row?.templateId ?? ''
169
- check('w2 模板存在(删除前)', !!templateId && !!h.manager.getAgent(templateId), templateId ? '' : '模板 id 缺失')
170
-
171
- // 等 w2 完成装配
172
- await waitUntil(() => h.manager.getChannelAgent(w2.id)?.wired === true, 5000)
173
-
174
- // 模拟 lead remove_agent 决策路径(与 SchedulerLoop.execute remove 同源)
175
- const lead = (await h.manager.listChannelAgents(ch.channelId)).find(m => m.role === 'lead')!
176
- const result = await h.manager.removeTeamMember(ch.channelId, lead.id, w2.id, 'HITL 测试裁撤')
177
- check('移除返回回收任务列表(无在途)', Array.isArray(result.recycledTasks))
178
-
179
- const members = await h.manager.listChannelAgents(ch.channelId)
180
- check('成员行已删除(DB)', !members.some(m => m.id === w2.id), `剩余 ${members.length} 人`)
181
- check('运行时已卸载(wired=false/无 runtime)', h.manager.getChannelAgent(w2.id) === undefined)
182
- check('一次性模板已连带删除(DB)', h.manager.getAgent(templateId) === undefined)
183
-
184
- // 剩余成员仍可正常执行(等一轮调度快照稳定,避开删员与决策竞态窗口)
185
- await sleep(250)
186
- const engine = getEngine(h.manager)
187
- const t = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '删员后任务' })
188
- const done = await waitUntil(() => engine.get(t.id)?.state === 'COMPLETED', 15_000)
189
- // 根任务 assignee 恒为 lead;校验实际执行的是剩余 worker w1
190
- const child = engine.list(ch.channelId).find(c => c.parentId === t.id)
191
- check('删员后 channel 仍可正常执行', done && child?.assigneeId === w1.id,
192
- `state=${engine.get(t.id)?.state} child=${child?.assigneeId.slice(0, 8)}`)
193
- }
194
- finally {
195
- await cleanup(h)
196
- }
197
- }
198
-
199
- // ===== C. 每个 AgentRuntime 独立 stop(HITL 中断) =====
200
- async function testStopAgentRuntime(): Promise<void> {
201
- console.log('\n━━━ C. AgentRuntime 独立 stop(HITL 中断,mock)━━━')
202
-
203
- const h = setup()
204
- try {
205
- const ch = await h.manager.createChannel({
206
- name: '停止运行时测试',
207
- leadAgent: { name: 'lead', harness: 'mock', config: { delayMs: 20 } },
208
- })
209
- const w1 = await h.manager.addAgentToChannel({
210
- channelId: ch.channelId,
211
- agentId: (await h.manager.createAgent({ name: 'w1', harness: 'mock', config: { delayMs: 30 } })).id,
212
- role: 'worker',
213
- })
214
- attachScheduler(h.manager, ch.channelId)
215
- const engine = getEngine(h.manager)
216
-
217
- // worker 忙时 HITL stop
218
- await h.manager.submitChannelTask({ channelId: ch.channelId, title: '停止测试任务1' })
219
- await waitUntil(() => h.manager.getChannelAgent(w1.id)?.runtimeState === 'busy', 8000)
220
- const stopped = await h.manager.stopAgentRuntime(ch.channelId, w1.id, 'test')
221
- check('stopAgentRuntime 返回成功', stopped.stopped === true)
222
- check('worker 运行时已卸载(detached)', h.manager.getChannelAgent(w1.id)?.wired === false
223
- || h.manager.getChannelAgent(w1.id) === undefined)
224
- const members = await h.manager.listChannelAgents(ch.channelId)
225
- check('worker 成员行保留(interrupt 语义)', members.some(m => m.id === w1.id))
226
-
227
- // 中断后可重新装配执行新任务
228
- const t2 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '停止后重装任务' })
229
- const done2 = await waitUntil(() => engine.get(t2.id)?.state === 'COMPLETED', 15_000)
230
- check('stop 后新任务自动重新装配并完成', done2, `state=${engine.get(t2.id)?.state}`)
231
-
232
- // lead 停止:调度器随停;下次提交自动重激活
233
- const lead = (await h.manager.listChannelAgents(ch.channelId)).find(m => m.role === 'lead')!
234
- await h.manager.stopAgentRuntime(ch.channelId, lead.id, 'test')
235
- const cr = (h.manager as unknown as { channels: Map<string, { scheduler: unknown }> }).channels.get(ch.channelId)
236
- check('lead 停止后调度器已停', cr?.scheduler === null || cr?.scheduler === undefined)
237
-
238
- const t3 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: 'lead 重启后任务' })
239
- const done3 = await waitUntil(() => engine.get(t3.id)?.state === 'COMPLETED', 20_000)
240
- check('lead 停止后提交任务自动重激活并完成', done3, `state=${engine.get(t3.id)?.state}`)
241
- }
242
- finally {
243
- await cleanup(h)
244
- }
245
- }
246
-
247
- // ===== D. 任务 HITL:取消 + 重试(lead 根任务 / worker 子任务均可) =====
248
- async function testTaskHITL(): Promise<void> {
249
- console.log('\n━━━ D. 任务 HITL:用户取消 / 重试(mock)━━━')
250
-
251
- const h = setup()
252
- try {
253
- const ch = await h.manager.createChannel({
254
- name: '任务HITL测试',
255
- leadAgent: { name: 'lead', harness: 'mock', config: { delayMs: 20 } },
256
- })
257
- // 慢 worker:拉开 HITL 操作时间窗,防任务在操作前自然完成(300ms×3 进度 ≈ 1s 一轮)
258
- const w1 = await h.manager.addAgentToChannel({
259
- channelId: ch.channelId,
260
- agentId: (await h.manager.createAgent({ name: 'w1', harness: 'mock', config: { delayMs: 300 } })).id,
261
- role: 'worker',
262
- })
263
- attachScheduler(h.manager, ch.channelId)
264
- const engine = getEngine(h.manager)
265
- const lead = (await h.manager.listChannelAgents(ch.channelId)).find(m => m.role === 'lead')!
266
-
267
- // 1. lead 根任务取消(HITL):提交后立即取消(SUBMITTED/WORKING/WAITING 均合法,1s 内不会完成)
268
- const t1 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '根任务可取消' })
269
- await sleep(150) // 等 lead 接取/派发(快照稳定)
270
- const canceledRoot = await h.manager.cancelTask(ch.channelId, lead.id, { taskId: t1.id })
271
- check('lead 根任务可被用户取消', canceledRoot.state === 'CANCELED', `state=${canceledRoot.state}`)
272
-
273
- // 2. worker 子任务取消(HITL):子任务执行中取消
274
- const t2 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '子任务可取消' })
275
- const child2 = await waitChildOf(h, engine, ch.channelId, t2.id)
276
- check('子任务已派发并执行(测试前置)', !!child2 && child2?.state === 'WORKING', `state=${child2?.state}`)
277
- const canceledChild = await h.manager.cancelTask(ch.channelId, lead.id, { taskId: child2!.id })
278
- check('worker 子任务可被用户取消', canceledChild.state === 'CANCELED', `state=${canceledChild.state}`)
279
-
280
- // 3. FAILED 任务重试(HITL):子任务置 FAILED 后经 retryTask 恢复执行
281
- const t3 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '可重试任务' })
282
- const child3 = await waitChildOf(h, engine, ch.channelId, t3.id)
283
- check('重试目标已派发(测试前置)', !!child3)
284
- engine.transition(child3!.id, 'FAILED', lead.id)
285
- check('任务已置 FAILED(测试前置)', engine.get(child3!.id)?.state === 'FAILED')
286
- const retried = await h.manager.retryTask(ch.channelId, lead.id, child3!.id)
287
- check('retryTask 重新指派(FAILED→ASSIGNED)', retried.state === 'ASSIGNED', `state=${retried.state} assignee=${retried.assigneeId === w1.id ? 'w1' : retried.assigneeId.slice(0, 8)}`)
288
- const done = await waitUntil(() => engine.get(child3!.id)?.state === 'COMPLETED', 15_000)
289
- check('重试后任务正常完成', done, `state=${engine.get(child3!.id)?.state}`)
290
-
291
- // 4. 非 FAILED 重试拒绝
292
- let rejected = false
293
- try {
294
- await h.manager.retryTask(ch.channelId, lead.id, child3!.id)
295
- }
296
- catch {
297
- rejected = true
298
- }
299
- check('非 FAILED 任务重试被拒绝(400)', rejected)
300
-
301
- // 5. 无可用 worker 时重试拒绝(移除全部 worker 后)
302
- const t4 = await h.manager.submitChannelTask({ channelId: ch.channelId, title: '无人重试任务' })
303
- const child4 = await waitChildOf(h, engine, ch.channelId, t4.id)
304
- if (child4) engine.transition(child4.id, 'FAILED', lead.id)
305
- else engine.transition(t4.id, 'FAILED', lead.id)
306
- const allWorkers = (await h.manager.listChannelAgents(ch.channelId)).filter(m => m.role === 'worker')
307
- for (const w of allWorkers) {
308
- await h.manager.removeTeamMember(ch.channelId, lead.id, w.id, '移除全部 worker')
309
- }
310
- const failedId = child4?.id ?? t4.id
311
- let noWorker = false
312
- try {
313
- await h.manager.retryTask(ch.channelId, lead.id, failedId)
314
- }
315
- catch {
316
- noWorker = true
317
- }
318
- check('无可用 worker 时重试返回 NO_WORKER', noWorker)
319
- }
320
- finally {
321
- await cleanup(h)
322
- }
323
- }
324
-
325
- /** 等待根任务派发出子任务(返回子任务;超时返回 undefined) */
326
- async function waitChildOf(
327
- h: Harness,
328
- engine: ReturnType<typeof getEngine>,
329
- channelId: string,
330
- rootId: string,
331
- timeoutMs = 8000,
332
- ): Promise<WorkspaceTask | undefined> {
333
- let child: WorkspaceTask | undefined
334
- await waitUntil(() => {
335
- child = engine.list(channelId).find(t => t.parentId === rootId && t.state !== 'COMPLETED' && t.state !== 'CANCELED')
336
- return !!child
337
- }, timeoutMs)
338
- return child
339
- }
340
-
341
- async function main(): Promise<void> {
342
- console.log('╔══════════════════════════════════════════════════════════════╗')
343
- console.log('║ HITL 与成员生命周期验证(mock):建员装配/删员卸载/独立stop/任务控制 ║')
344
- console.log('╚══════════════════════════════════════════════════════════════╝')
345
-
346
- await testLeadSpawnWiresMember()
347
- await testLeadRemoveUnloadsAndDeletes()
348
- await testStopAgentRuntime()
349
- await testTaskHITL()
350
-
351
- console.log('\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')
352
- console.log(` ${failures === 0 ? `🎉 全部通过(${testCount} 项检查)` : `❌ ${failures}/${testCount} 项失败`}`)
353
- console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')
354
- process.exit(failures === 0 ? 0 : 1)
355
- }
356
-
357
- main().catch((e) => {
358
- console.error('测试异常:', e)
359
- process.exit(1)
360
- })