agentworkshop 0.7.44 → 0.7.47

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 (1880) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +265 -6
  2. package/.AgentWorkShop/prompts/lead-supervise.md +54 -29
  3. package/.AgentWorkShop/prompts/peer-reply-optional.md +6 -2
  4. package/.AgentWorkShop/prompts/peer-reply-required.md +8 -7
  5. package/.output/.AgentWorkShop/aml-python/__pycache__/amlkit.cpython-312.pyc +0 -0
  6. package/.output/.AgentWorkShop/aml-python/amlkit.py +185 -120
  7. package/.output/.AgentWorkShop/aml-python/requirements.txt +9 -7
  8. package/.output/.AgentWorkShop/aml-python/train-hybrid-example.py +87 -0
  9. package/.output/.AgentWorkShop/prompts/host-tools.json +265 -6
  10. package/.output/.AgentWorkShop/prompts/lead-supervise.md +54 -29
  11. package/.output/.AgentWorkShop/prompts/peer-reply-optional.md +6 -2
  12. package/.output/.AgentWorkShop/prompts/peer-reply-required.md +8 -7
  13. package/.output/.AgentWorkShop/schema.json +12 -0
  14. package/.output/nitro.json +1 -1
  15. package/.output/public/_nuxt/-hB4kEmt.js +1 -0
  16. package/.output/public/_nuxt/1g9IT9Qh2.js +1 -0
  17. package/.output/public/_nuxt/74x7BOWv2.js +1 -0
  18. package/.output/public/_nuxt/9c5GOgbu.js +1 -0
  19. package/.output/public/_nuxt/9zrLAN2o2.js +1 -0
  20. package/.output/public/_nuxt/B1RT9NTO2.js +1 -0
  21. package/.output/public/_nuxt/B2x8SKRO.js +1 -0
  22. package/.output/public/_nuxt/B6Olw0Op.js +1 -0
  23. package/.output/public/_nuxt/B7jlMWsz.js +1 -0
  24. package/.output/public/_nuxt/B8cnjDtt.js +1 -0
  25. package/.output/public/_nuxt/B9rIcCX12.js +1 -0
  26. package/.output/public/_nuxt/BACBBVdw.js +1 -0
  27. package/.output/public/_nuxt/BBhLVYdM.js +1 -0
  28. package/.output/public/_nuxt/BDmNbZ252.js +1 -0
  29. package/.output/public/_nuxt/BFVf8HLR.js +1 -0
  30. package/.output/public/_nuxt/BGKUW7ra.js +1 -0
  31. package/.output/public/_nuxt/BH3obZJ42.js +1 -0
  32. package/.output/public/_nuxt/BHwG4yNs.js +1 -0
  33. package/.output/public/_nuxt/BIOq3xqe2.js +1 -0
  34. package/.output/public/_nuxt/BITZvQBK.js +1 -0
  35. package/.output/public/_nuxt/BL_dbd2v2.js +1 -0
  36. package/.output/public/_nuxt/BMMoqi94.js +1 -0
  37. package/.output/public/_nuxt/BNnnYEYh2.js +1 -0
  38. package/.output/public/_nuxt/BQXCMsXk.js +1 -0
  39. package/.output/public/_nuxt/BS9P_Ies2.js +1 -0
  40. package/.output/public/_nuxt/BWU1pvLL.js +1 -0
  41. package/.output/public/_nuxt/B_9_BM9G.js +3 -0
  42. package/.output/public/_nuxt/B_LcD7qE2.js +1 -0
  43. package/.output/public/_nuxt/BcQXL8pb.js +1 -0
  44. package/.output/public/_nuxt/BdM_Qr752.js +1 -0
  45. package/.output/public/_nuxt/BiOSWsjD.js +2 -0
  46. package/.output/public/_nuxt/BkSViqQd.js +1 -0
  47. package/.output/public/_nuxt/Bl5dYv4m.js +1 -0
  48. package/.output/public/_nuxt/BmiMC_BC.js +2 -0
  49. package/.output/public/_nuxt/BnpY_zNx.js +1 -0
  50. package/.output/public/_nuxt/BqYVLAcm.js +1 -0
  51. package/.output/public/_nuxt/Br3AySNQ.js +1 -0
  52. package/.output/public/_nuxt/Br3MggOL.js +1 -0
  53. package/.output/public/_nuxt/BrRX-l9B2.js +4108 -0
  54. package/.output/public/_nuxt/Bt2ZL5332.js +1 -0
  55. package/.output/public/_nuxt/Bub2P5me.js +28 -0
  56. package/.output/public/_nuxt/BvRk9kiK.js +0 -0
  57. package/.output/public/_nuxt/BvRk9kiK2.js +0 -0
  58. package/.output/public/_nuxt/Bwc6lt2X.js +3 -0
  59. package/.output/public/_nuxt/BxHBIVAg.js +1 -0
  60. package/.output/public/_nuxt/BxYTM0hb.js +1 -0
  61. package/.output/public/_nuxt/ByMj6e7s.js +3 -0
  62. package/.output/public/_nuxt/BzvHUfRR2.js +1 -0
  63. package/.output/public/_nuxt/C2YYOgMe.js +42 -0
  64. package/.output/public/_nuxt/C3twEwTh2.js +1 -0
  65. package/.output/public/_nuxt/C4WhK2wq.js +1 -0
  66. package/.output/public/_nuxt/C50LmoI1.js +0 -0
  67. package/.output/public/_nuxt/CAaSPBqk.js +1 -0
  68. package/.output/public/_nuxt/CBDX7p73.js +1 -0
  69. package/.output/public/_nuxt/CD9lpEz22.js +13 -0
  70. package/.output/public/_nuxt/CGZVhYJ4.js +1 -0
  71. package/.output/public/_nuxt/CJRDL4EG.js +1 -0
  72. package/.output/public/_nuxt/CKQPwwZa2.js +1 -0
  73. package/.output/public/_nuxt/CLySL7mW.js +75 -0
  74. package/.output/public/_nuxt/CMXcOb6W.js +1 -0
  75. package/.output/public/_nuxt/CN1CDAwe.js +1 -0
  76. package/.output/public/_nuxt/CP0I2l-6.js +1 -0
  77. package/.output/public/_nuxt/CP0Nep9S.js +1 -0
  78. package/.output/public/_nuxt/CPeZNE4S2.js +1 -0
  79. package/.output/public/_nuxt/CPmNRTBk2.js +21 -0
  80. package/.output/public/_nuxt/CQabB0oy.js +1 -0
  81. package/.output/public/_nuxt/CT-vTjcG.js +1 -0
  82. package/.output/public/_nuxt/CTVfcnjU.js +3 -0
  83. package/.output/public/_nuxt/CWzp2R6G.js +1 -0
  84. package/.output/public/_nuxt/C_VAXV7I2.js +7 -0
  85. package/.output/public/_nuxt/CavpkQb0.js +1 -0
  86. package/.output/public/_nuxt/CeWnOF3O.js +1 -0
  87. package/.output/public/_nuxt/CfLUvgr32.js +1 -0
  88. package/.output/public/_nuxt/Ch1P2mIf.js +1 -0
  89. package/.output/public/_nuxt/ChoLwR-s.js +1 -0
  90. package/.output/public/_nuxt/Chphw5IA2.js +1 -0
  91. package/.output/public/_nuxt/ChtjzEpK2.js +19 -0
  92. package/.output/public/_nuxt/CiTQY_n32.js +1 -0
  93. package/.output/public/_nuxt/Ck5oMvUk.js +1 -0
  94. package/.output/public/_nuxt/Ckafrjnw2.js +1 -0
  95. package/.output/public/_nuxt/Cm_PTn9t2.js +1 -0
  96. package/.output/public/_nuxt/Cmp8PMrA.js +1 -0
  97. package/.output/public/_nuxt/Cnrmlixo.js +3 -0
  98. package/.output/public/_nuxt/Cr518Gh02.js +1 -0
  99. package/.output/public/_nuxt/Crbir9cT.js +1 -0
  100. package/.output/public/_nuxt/CtPNnATm2.js +31 -0
  101. package/.output/public/_nuxt/Cu8c3oMN2.js +1 -0
  102. package/.output/public/_nuxt/CwLQAKay2.js +1 -0
  103. package/.output/public/_nuxt/CzlUIbK32.js +17 -0
  104. package/.output/public/_nuxt/D6lZftfy.js +1 -0
  105. package/.output/public/_nuxt/D83nVQPl.js +1 -0
  106. package/.output/public/_nuxt/D89BUtx6.js +1 -0
  107. package/.output/public/_nuxt/DCtk3qqr.js +1 -0
  108. package/.output/public/_nuxt/DD6Z0yPN2.js +1 -0
  109. package/.output/public/_nuxt/DGw8juu_.js +2 -0
  110. package/.output/public/_nuxt/DHSDk8Bq2.js +4 -0
  111. package/.output/public/_nuxt/DJdDFnjG2.js +1 -0
  112. package/.output/public/_nuxt/DJyNDnag.js +1 -0
  113. package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
  114. package/.output/public/_nuxt/DLPuRMeG.js +19 -0
  115. package/.output/public/_nuxt/DMYYS5sK.js +1 -0
  116. package/.output/public/_nuxt/DNno23Jf2.js +1 -0
  117. package/.output/public/_nuxt/DNoEoo8t.js +1 -0
  118. package/.output/public/_nuxt/DPUXbTg92.js +1 -0
  119. package/.output/public/_nuxt/DRpFsrno.js +1 -0
  120. package/.output/public/_nuxt/DXIaadqv.js +1 -0
  121. package/.output/public/_nuxt/D_7AzAWe.js +1 -0
  122. package/.output/public/_nuxt/Dbe9TFc9.js +1 -0
  123. package/.output/public/_nuxt/DdNujZN5.js +1 -0
  124. package/.output/public/_nuxt/DdvQ7LRI.js +14 -0
  125. package/.output/public/_nuxt/DhFv8S2Z.js +1 -0
  126. package/.output/public/_nuxt/DkJVtqfc.js +1 -0
  127. package/.output/public/_nuxt/DkLCjrCk2.js +47 -0
  128. package/.output/public/_nuxt/DkpmSnHX.js +1 -0
  129. package/.output/public/_nuxt/DlUQa0wn2.js +1 -0
  130. package/.output/public/_nuxt/DoKpLEqc.js +1 -0
  131. package/.output/public/_nuxt/DpqA8D8_.js +1 -0
  132. package/.output/public/_nuxt/Dq0emNZi2.js +1 -0
  133. package/.output/public/_nuxt/DqtgGFEc.js +1 -0
  134. package/.output/public/_nuxt/DqtnqNgL2.js +1 -0
  135. package/.output/public/_nuxt/Dqz5HiXa.js +2 -0
  136. package/.output/public/_nuxt/DxagrjB8.js +1 -0
  137. package/.output/public/_nuxt/Dy3oXKdn2.js +1 -0
  138. package/.output/public/_nuxt/DzBbYWrw2.js +1 -0
  139. package/.output/public/_nuxt/EhhQmlBV2.js +1 -0
  140. package/.output/public/_nuxt/H2rNs1O82.js +1 -0
  141. package/.output/public/_nuxt/H6pPjo0l.js +1 -0
  142. package/.output/public/_nuxt/JAM4aNC_.js +1 -0
  143. package/.output/public/_nuxt/JgheoP3e.js +1 -0
  144. package/.output/public/_nuxt/LwIFGLgF.js +1 -0
  145. package/.output/public/_nuxt/Nw_6OpQZ2.js +1 -0
  146. package/.output/public/_nuxt/OXtV_ukR.js +1 -0
  147. package/.output/public/_nuxt/OmpTerminalPanel.ComMDrA8.css +1 -0
  148. package/.output/public/_nuxt/PLGqdko0.js +1 -0
  149. package/.output/public/_nuxt/PixDfCSm.js +1 -0
  150. package/.output/public/_nuxt/RAqsw632.js +1 -0
  151. package/.output/public/_nuxt/Sjjmp5OD2.js +1 -0
  152. package/.output/public/_nuxt/TOWR4WpO.js +1 -0
  153. package/.output/public/_nuxt/TownView.BvlfuLtP.css +1 -0
  154. package/.output/public/_nuxt/U8oQxruK.js +1 -0
  155. package/.output/public/_nuxt/WleoCtUX.js +1 -0
  156. package/.output/public/_nuxt/YaroNkJZ2.js +1 -0
  157. package/.output/public/_nuxt/Z-Z6EhXs.js +1 -0
  158. package/.output/public/_nuxt/ZuQtOnfI.js +1 -0
  159. package/.output/public/_nuxt/ZvXovq7N2.js +1 -0
  160. package/.output/public/_nuxt/_id_.BTrFUIHX.css +1 -0
  161. package/.output/public/_nuxt/_id_.Bossmhv1.css +1 -0
  162. package/.output/public/_nuxt/_wsId_.D-u-dbP9.css +1 -0
  163. package/.output/public/_nuxt/agents.Cgm_JG9L.css +1 -0
  164. package/.output/public/_nuxt/aml.Bi5X6_oi.css +1 -0
  165. package/.output/public/_nuxt/bg2adfck.js +1 -0
  166. package/.output/public/_nuxt/bt__BP-I.js +13 -0
  167. package/.output/public/_nuxt/builds/latest.json +1 -1
  168. package/.output/public/_nuxt/builds/meta/1b18aaf2-ccbc-45e0-b9c3-107655b226f9.json +1 -0
  169. package/.output/public/_nuxt/cBI0JqsV2.js +209 -0
  170. package/.output/public/_nuxt/cDcDztgb2.js +1 -0
  171. package/.output/public/_nuxt/cGSl2GZp.js +1 -0
  172. package/.output/public/_nuxt/csitHKnE2.js +1 -0
  173. package/.output/public/_nuxt/d-w5jR8R.js +1 -0
  174. package/.output/public/_nuxt/daq.0uieKcZk.css +1 -0
  175. package/.output/public/_nuxt/dcw.pQRVkAi_.css +1 -0
  176. package/.output/public/_nuxt/default.uao9U50c.css +1 -0
  177. package/.output/public/_nuxt/e7BBCLxr.js +1 -0
  178. package/.output/public/_nuxt/entry.6DEjPWvR.css +1 -0
  179. package/.output/public/_nuxt/eutnXI4F.js +24 -0
  180. package/.output/public/_nuxt/fxWyOzyp2.js +1 -0
  181. package/.output/public/_nuxt/hkMGMTqt.js +1 -0
  182. package/.output/public/_nuxt/ikAUnxx3.js +1 -0
  183. package/.output/public/_nuxt/lWYQbIR3.js +1 -0
  184. package/.output/public/_nuxt/logs.CD0Olr3c.css +1 -0
  185. package/.output/public/_nuxt/monitor.CI2v5Nvl.css +1 -0
  186. package/.output/public/_nuxt/pages.CMhSEhEb.css +1 -0
  187. package/.output/public/_nuxt/permissions.DxuOOIqQ.css +1 -0
  188. package/.output/public/_nuxt/plugins.C50x1qZp.css +1 -0
  189. package/.output/public/_nuxt/qOlYoGLf.js +1 -0
  190. package/.output/public/_nuxt/schedules.BXNJ9q_I.css +1 -0
  191. package/.output/public/_nuxt/settings.Bo5EYkLI.css +1 -0
  192. package/.output/public/_nuxt/teams.sGmx1AdX.css +1 -0
  193. package/.output/public/_nuxt/tokens.DFMFaCYU.css +1 -0
  194. package/.output/public/_nuxt/uI9Ki_XZ.js +9 -0
  195. package/.output/public/_nuxt/users.DBxcKnfg.css +1 -0
  196. package/.output/public/_nuxt/v55S8LnT.js +1 -0
  197. package/.output/public/_nuxt/wDPc4SSR.js +106 -0
  198. package/.output/public/_nuxt/workshop.b4YRXEe0.css +1 -0
  199. package/.output/public/_nuxt/y9kob70X.js +1 -0
  200. package/.output/public/_nuxt/zh-S_7rN.js +1 -0
  201. package/.output/server/chunks/_/LeftOutlined.mjs +1 -1
  202. package/.output/server/chunks/_/SearchOutlined.mjs +1243 -279
  203. package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -1
  204. package/.output/server/chunks/_/binding-authz.mjs +1 -1
  205. package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
  206. package/.output/server/chunks/_/entity.mjs +1 -1
  207. package/.output/server/chunks/_/env-manager.mjs +1 -1
  208. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  209. package/.output/server/chunks/_/nitro.mjs +27006 -19064
  210. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  211. package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
  212. package/.output/server/chunks/build/Checkbox-4EdGAAl_.mjs +206 -0
  213. package/.output/server/chunks/build/Checkbox-4EdGAAl_.mjs.map +1 -0
  214. package/.output/server/chunks/build/FormItemContext-4ORSzhWv.mjs +72 -0
  215. package/.output/server/chunks/build/FormItemContext-4ORSzhWv.mjs.map +1 -0
  216. package/.output/server/chunks/build/OmpTerminalPanel-EQHrOJbw.mjs +942 -0
  217. package/.output/server/chunks/build/OmpTerminalPanel-EQHrOJbw.mjs.map +1 -0
  218. package/.output/server/chunks/build/PluginSlot-BP_qedpQ.mjs +399 -0
  219. package/.output/server/chunks/build/PluginSlot-BP_qedpQ.mjs.map +1 -0
  220. package/.output/server/chunks/build/TownView-BAR8CPIZ.mjs +6373 -0
  221. package/.output/server/chunks/build/TownView-BAR8CPIZ.mjs.map +1 -0
  222. package/.output/server/chunks/build/_id_-DgMpjM3_.mjs +1354 -0
  223. package/.output/server/chunks/build/_id_-DgMpjM3_.mjs.map +1 -0
  224. package/.output/server/chunks/build/_id_-Dv3BQbYV.mjs +388 -0
  225. package/.output/server/chunks/build/_id_-Dv3BQbYV.mjs.map +1 -0
  226. package/.output/server/chunks/build/_wsId_-BKJvFmyf.mjs +13109 -0
  227. package/.output/server/chunks/build/_wsId_-BKJvFmyf.mjs.map +1 -0
  228. package/.output/server/chunks/build/agents-B2GLPmn2.mjs +1085 -0
  229. package/.output/server/chunks/build/agents-B2GLPmn2.mjs.map +1 -0
  230. package/.output/server/chunks/build/aml-DdWicH3t.mjs +806 -0
  231. package/.output/server/chunks/build/aml-DdWicH3t.mjs.map +1 -0
  232. package/.output/server/chunks/build/api-BY6ji7RC.mjs +50 -0
  233. package/.output/server/chunks/build/api-BY6ji7RC.mjs.map +1 -0
  234. package/.output/server/chunks/build/api-error-BwAQLw44.mjs +47 -0
  235. package/.output/server/chunks/build/api-error-BwAQLw44.mjs.map +1 -0
  236. package/.output/server/chunks/build/apiClient-D281qrK2.mjs +81 -0
  237. package/.output/server/chunks/build/apiClient-D281qrK2.mjs.map +1 -0
  238. package/.output/server/chunks/build/builtin-catalog-edpDcgfL.mjs +1 -1
  239. package/.output/server/chunks/build/card-CUSocE9p.mjs +953 -0
  240. package/.output/server/chunks/build/card-CUSocE9p.mjs.map +1 -0
  241. package/.output/server/chunks/build/channel-templates-RPOtkgRf.mjs +846 -0
  242. package/.output/server/chunks/build/channel-templates-RPOtkgRf.mjs.map +1 -0
  243. package/.output/server/chunks/build/checkbox-C4AKj81e.mjs +439 -0
  244. package/.output/server/chunks/build/checkbox-C4AKj81e.mjs.map +1 -0
  245. package/.output/server/chunks/build/client-only-qNA2OVV_.mjs +43 -0
  246. package/.output/server/chunks/build/client-only-qNA2OVV_.mjs.map +1 -0
  247. package/.output/server/chunks/build/constants-HPHJvjne.mjs +139 -0
  248. package/.output/server/chunks/build/constants-HPHJvjne.mjs.map +1 -0
  249. package/.output/server/chunks/build/core-CgTOPS4t.mjs +294 -0
  250. package/.output/server/chunks/build/core-CgTOPS4t.mjs.map +1 -0
  251. package/.output/server/chunks/build/daq-CPtsh0e7.mjs +1253 -0
  252. package/.output/server/chunks/build/daq-CPtsh0e7.mjs.map +1 -0
  253. package/.output/server/chunks/build/dcw-ry5Gyw6Y.mjs +478 -0
  254. package/.output/server/chunks/build/dcw-ry5Gyw6Y.mjs.map +1 -0
  255. package/.output/server/chunks/build/default-DxOE1eB0.mjs +2061 -0
  256. package/.output/server/chunks/build/default-DxOE1eB0.mjs.map +1 -0
  257. package/.output/server/chunks/build/descriptions-CFaUq4y4.mjs +406 -0
  258. package/.output/server/chunks/build/descriptions-CFaUq4y4.mjs.map +1 -0
  259. package/.output/server/chunks/build/drawer-Cfh9_zft.mjs +834 -0
  260. package/.output/server/chunks/build/drawer-Cfh9_zft.mjs.map +1 -0
  261. package/.output/server/chunks/build/dropdown-KdKWCS5K.mjs +556 -0
  262. package/.output/server/chunks/build/dropdown-KdKWCS5K.mjs.map +1 -0
  263. package/.output/server/chunks/build/dropdown-Yev6knaj.mjs +14 -0
  264. package/.output/server/chunks/build/dropdown-Yev6knaj.mjs.map +1 -0
  265. package/.output/server/chunks/build/form-uSlNqIAV.mjs +4711 -0
  266. package/.output/server/chunks/build/form-uSlNqIAV.mjs.map +1 -0
  267. package/.output/server/chunks/build/input-Cr_KFj4T.mjs +1381 -0
  268. package/.output/server/chunks/build/input-Cr_KFj4T.mjs.map +1 -0
  269. package/.output/server/chunks/build/input-number-BRVnxeiA.mjs +1119 -0
  270. package/.output/server/chunks/build/input-number-BRVnxeiA.mjs.map +1 -0
  271. package/.output/server/chunks/build/interval-DvHBIIZh.mjs +9 -0
  272. package/.output/server/chunks/build/interval-DvHBIIZh.mjs.map +1 -0
  273. package/.output/server/chunks/build/logs-CeaiO3y9.mjs +367 -0
  274. package/.output/server/chunks/build/logs-CeaiO3y9.mjs.map +1 -0
  275. package/.output/server/chunks/build/menu-BgkRSSx7.mjs +1949 -0
  276. package/.output/server/chunks/build/menu-BgkRSSx7.mjs.map +1 -0
  277. package/.output/server/chunks/build/monitor-DnuXEIi5.mjs +2245 -0
  278. package/.output/server/chunks/build/monitor-DnuXEIi5.mjs.map +1 -0
  279. package/.output/server/chunks/build/narrow-fetch-CcG-BPxc.mjs +6 -0
  280. package/.output/server/chunks/build/narrow-fetch-CcG-BPxc.mjs.map +1 -0
  281. package/.output/server/chunks/build/pages-Bn90ijKD.mjs +539 -0
  282. package/.output/server/chunks/build/pages-Bn90ijKD.mjs.map +1 -0
  283. package/.output/server/chunks/build/permissions-DL70W1YD.mjs +629 -0
  284. package/.output/server/chunks/build/permissions-DL70W1YD.mjs.map +1 -0
  285. package/.output/server/chunks/build/plugins-DrsZo--K.mjs +246 -0
  286. package/.output/server/chunks/build/plugins-DrsZo--K.mjs.map +1 -0
  287. package/.output/server/chunks/build/popconfirm-Ox-_2V8A.mjs +339 -0
  288. package/.output/server/chunks/build/popconfirm-Ox-_2V8A.mjs.map +1 -0
  289. package/.output/server/chunks/build/schedules-VLzNcjnW.mjs +7164 -0
  290. package/.output/server/chunks/build/schedules-VLzNcjnW.mjs.map +1 -0
  291. package/.output/server/chunks/build/segmented-C61yLHvo.mjs +341 -0
  292. package/.output/server/chunks/build/segmented-C61yLHvo.mjs.map +1 -0
  293. package/.output/server/chunks/build/select-rdBWytVK.mjs +3922 -0
  294. package/.output/server/chunks/build/select-rdBWytVK.mjs.map +1 -0
  295. package/.output/server/chunks/build/settings-DVAUVMsX.mjs +1089 -0
  296. package/.output/server/chunks/build/settings-DVAUVMsX.mjs.map +1 -0
  297. package/.output/server/chunks/build/space-B2uhHJG8.mjs +110 -0
  298. package/.output/server/chunks/build/space-B2uhHJG8.mjs.map +1 -0
  299. package/.output/server/chunks/build/spin-C2cuvGth.mjs +357 -0
  300. package/.output/server/chunks/build/spin-C2cuvGth.mjs.map +1 -0
  301. package/.output/server/chunks/build/switch-DZAUIbIN.mjs +377 -0
  302. package/.output/server/chunks/build/switch-DZAUIbIN.mjs.map +1 -0
  303. package/.output/server/chunks/build/table-DOFAvY-v.mjs +8881 -0
  304. package/.output/server/chunks/build/table-DOFAvY-v.mjs.map +1 -0
  305. package/.output/server/chunks/build/tabs-DTeIuZeP.mjs +1923 -0
  306. package/.output/server/chunks/build/tabs-DTeIuZeP.mjs.map +1 -0
  307. package/.output/server/chunks/build/tag-CHLGvNM6.mjs +1029 -0
  308. package/.output/server/chunks/build/tag-CHLGvNM6.mjs.map +1 -0
  309. package/.output/server/chunks/build/teams-Mc07PYO8.mjs +1195 -0
  310. package/.output/server/chunks/build/teams-Mc07PYO8.mjs.map +1 -0
  311. package/.output/server/chunks/build/tokens-DiwD5qni.mjs +1036 -0
  312. package/.output/server/chunks/build/tokens-DiwD5qni.mjs.map +1 -0
  313. package/.output/server/chunks/build/town-BIn3be5v.mjs +39 -0
  314. package/.output/server/chunks/build/town-BIn3be5v.mjs.map +1 -0
  315. package/.output/server/chunks/build/town-D8VmTCmN.mjs +128 -0
  316. package/.output/server/chunks/build/town-D8VmTCmN.mjs.map +1 -0
  317. package/.output/server/chunks/build/types-D6J7slEa.mjs +5561 -0
  318. package/.output/server/chunks/build/types-D6J7slEa.mjs.map +1 -0
  319. package/.output/server/chunks/build/useAgentHarnessOptions-CPn5dzKe.mjs +121 -0
  320. package/.output/server/chunks/build/useAgentHarnessOptions-CPn5dzKe.mjs.map +1 -0
  321. package/.output/server/chunks/build/useAgentTemplateActions-DQWzVnZ0.mjs +74 -0
  322. package/.output/server/chunks/build/useAgentTemplateActions-DQWzVnZ0.mjs.map +1 -0
  323. package/.output/server/chunks/build/useAgentTemplateDialogState-CZzpu5og.mjs +64 -0
  324. package/.output/server/chunks/build/useAgentTemplateDialogState-CZzpu5og.mjs.map +1 -0
  325. package/.output/server/chunks/build/useAgentTemplateForm-vqyiRPtt.mjs +114 -0
  326. package/.output/server/chunks/build/useAgentTemplateForm-vqyiRPtt.mjs.map +1 -0
  327. package/.output/server/chunks/build/useAgentTemplatesCatalog-DcQbsOik.mjs +130 -0
  328. package/.output/server/chunks/build/useAgentTemplatesCatalog-DcQbsOik.mjs.map +1 -0
  329. package/.output/server/chunks/build/useAmlDatasets-BM0lZu40.mjs +89 -0
  330. package/.output/server/chunks/build/useAmlDatasets-BM0lZu40.mjs.map +1 -0
  331. package/.output/server/chunks/build/useAmlEntities-BjXWvFd_.mjs +83 -0
  332. package/.output/server/chunks/build/useAmlEntities-BjXWvFd_.mjs.map +1 -0
  333. package/.output/server/chunks/build/useAmlEnv-BB7p6x_w.mjs +191 -0
  334. package/.output/server/chunks/build/useAmlEnv-BB7p6x_w.mjs.map +1 -0
  335. package/.output/server/chunks/build/useAmlExperiments-BtyW32PO.mjs +86 -0
  336. package/.output/server/chunks/build/useAmlExperiments-BtyW32PO.mjs.map +1 -0
  337. package/.output/server/chunks/build/useAmlFormat-WrKuRfw2.mjs +79 -0
  338. package/.output/server/chunks/build/useAmlFormat-WrKuRfw2.mjs.map +1 -0
  339. package/.output/server/chunks/build/useAmlJobs-DBuLvWMF.mjs +263 -0
  340. package/.output/server/chunks/build/useAmlJobs-DBuLvWMF.mjs.map +1 -0
  341. package/.output/server/chunks/build/useAmlModels-VurmkBYe.mjs +90 -0
  342. package/.output/server/chunks/build/useAmlModels-VurmkBYe.mjs.map +1 -0
  343. package/.output/server/chunks/build/useAmlNotes-BUdj3X6Y.mjs +83 -0
  344. package/.output/server/chunks/build/useAmlNotes-BUdj3X6Y.mjs.map +1 -0
  345. package/.output/server/chunks/build/useAmlPredict-DFy-Do10.mjs +127 -0
  346. package/.output/server/chunks/build/useAmlPredict-DFy-Do10.mjs.map +1 -0
  347. package/.output/server/chunks/build/useDaqAddNode-kW7uTSMQ.mjs +139 -0
  348. package/.output/server/chunks/build/useDaqAddNode-kW7uTSMQ.mjs.map +1 -0
  349. package/.output/server/chunks/build/useDaqDetailBinding-cpBz4hSL.mjs +67 -0
  350. package/.output/server/chunks/build/useDaqDetailBinding-cpBz4hSL.mjs.map +1 -0
  351. package/.output/server/chunks/build/useDaqDetailFrames-BZGtKKXW.mjs +76 -0
  352. package/.output/server/chunks/build/useDaqDetailFrames-BZGtKKXW.mjs.map +1 -0
  353. package/.output/server/chunks/build/useDaqDetailHistory-C4_hVeqZ.mjs +173 -0
  354. package/.output/server/chunks/build/useDaqDetailHistory-C4_hVeqZ.mjs.map +1 -0
  355. package/.output/server/chunks/build/useDaqDetailNode-Bwid_iA8.mjs +96 -0
  356. package/.output/server/chunks/build/useDaqDetailNode-Bwid_iA8.mjs.map +1 -0
  357. package/.output/server/chunks/build/useDaqDetailParams-JfqHvTxr.mjs +156 -0
  358. package/.output/server/chunks/build/useDaqDetailParams-JfqHvTxr.mjs.map +1 -0
  359. package/.output/server/chunks/build/useDaqFilters-C13836p-.mjs +219 -0
  360. package/.output/server/chunks/build/useDaqFilters-C13836p-.mjs.map +1 -0
  361. package/.output/server/chunks/build/useDaqNodeWindow-1DWj2H5G.mjs +87 -0
  362. package/.output/server/chunks/build/useDaqNodeWindow-1DWj2H5G.mjs.map +1 -0
  363. package/.output/server/chunks/build/useDaqOptimizations-Ct-TSXxy.mjs +133 -0
  364. package/.output/server/chunks/build/useDaqOptimizations-Ct-TSXxy.mjs.map +1 -0
  365. package/.output/server/chunks/build/useDaqStream-wOxZcMDA.mjs +395 -0
  366. package/.output/server/chunks/build/useDaqStream-wOxZcMDA.mjs.map +1 -0
  367. package/.output/server/chunks/build/useDaqTemplates-BqQRdrIm.mjs +184 -0
  368. package/.output/server/chunks/build/useDaqTemplates-BqQRdrIm.mjs.map +1 -0
  369. package/.output/server/chunks/build/useDashboardCharts-DZysNDUX.mjs +351 -0
  370. package/.output/server/chunks/build/useDashboardCharts-DZysNDUX.mjs.map +1 -0
  371. package/.output/server/chunks/build/useDashboardData-Ny_wtbo6.mjs +150 -0
  372. package/.output/server/chunks/build/useDashboardData-Ny_wtbo6.mjs.map +1 -0
  373. package/.output/server/chunks/build/useDcwAddNode-C8nE7geh.mjs +148 -0
  374. package/.output/server/chunks/build/useDcwAddNode-C8nE7geh.mjs.map +1 -0
  375. package/.output/server/chunks/build/useDcwCards-ETEsHvVy.mjs +64 -0
  376. package/.output/server/chunks/build/useDcwCards-ETEsHvVy.mjs.map +1 -0
  377. package/.output/server/chunks/build/useDcwDetailScope-BNrpDzbO.mjs +181 -0
  378. package/.output/server/chunks/build/useDcwDetailScope-BNrpDzbO.mjs.map +1 -0
  379. package/.output/server/chunks/build/useDcwDetailTemplates-IcKAJ37Y.mjs +145 -0
  380. package/.output/server/chunks/build/useDcwDetailTemplates-IcKAJ37Y.mjs.map +1 -0
  381. package/.output/server/chunks/build/useDcwFilter-FfVlDdyS.mjs +68 -0
  382. package/.output/server/chunks/build/useDcwFilter-FfVlDdyS.mjs.map +1 -0
  383. package/.output/server/chunks/build/useDcwLedger-BLoMmcu1.mjs +76 -0
  384. package/.output/server/chunks/build/useDcwLedger-BLoMmcu1.mjs.map +1 -0
  385. package/.output/server/chunks/build/useDcwLineMutations-BMC5BTWU.mjs +134 -0
  386. package/.output/server/chunks/build/useDcwLineMutations-BMC5BTWU.mjs.map +1 -0
  387. package/.output/server/chunks/build/useDcwLineRun-Bpxk4mse.mjs +101 -0
  388. package/.output/server/chunks/build/useDcwLineRun-Bpxk4mse.mjs.map +1 -0
  389. package/.output/server/chunks/build/useDcwProducts-D-zrMaeV.mjs +90 -0
  390. package/.output/server/chunks/build/useDcwProducts-D-zrMaeV.mjs.map +1 -0
  391. package/.output/server/chunks/build/useDcwQuery-1lYHOaU6.mjs +95 -0
  392. package/.output/server/chunks/build/useDcwQuery-1lYHOaU6.mjs.map +1 -0
  393. package/.output/server/chunks/build/useDcwQuickActions-C-tgcXIr.mjs +85 -0
  394. package/.output/server/chunks/build/useDcwQuickActions-C-tgcXIr.mjs.map +1 -0
  395. package/.output/server/chunks/build/useDcwRecipes-BzGOymqz.mjs +237 -0
  396. package/.output/server/chunks/build/useDcwRecipes-BzGOymqz.mjs.map +1 -0
  397. package/.output/server/chunks/build/useDcwStream-D04kCV3J.mjs +435 -0
  398. package/.output/server/chunks/build/useDcwStream-D04kCV3J.mjs.map +1 -0
  399. package/.output/server/chunks/build/useDcwTemplates-Dsjw9u6U.mjs +88 -0
  400. package/.output/server/chunks/build/useDcwTemplates-Dsjw9u6U.mjs.map +1 -0
  401. package/.output/server/chunks/build/useDcwWrites-3RxwN36I.mjs +120 -0
  402. package/.output/server/chunks/build/useDcwWrites-3RxwN36I.mjs.map +1 -0
  403. package/.output/server/chunks/build/useDeviceTwins-CbVad1M3.mjs +128 -0
  404. package/.output/server/chunks/build/useDeviceTwins-CbVad1M3.mjs.map +1 -0
  405. package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs +1 -8
  406. package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs.map +1 -1
  407. package/.output/server/chunks/build/useLogsFormat-BlwLpyzy.mjs +74 -0
  408. package/.output/server/chunks/build/useLogsFormat-BlwLpyzy.mjs.map +1 -0
  409. package/.output/server/chunks/build/useLogsManual-Deev2Cjk.mjs +81 -0
  410. package/.output/server/chunks/build/useLogsManual-Deev2Cjk.mjs.map +1 -0
  411. package/.output/server/chunks/build/useLogsQuery-CRAm2hmS.mjs +112 -0
  412. package/.output/server/chunks/build/useLogsQuery-CRAm2hmS.mjs.map +1 -0
  413. package/.output/server/chunks/build/useLogsScope-ClNijVj4.mjs +80 -0
  414. package/.output/server/chunks/build/useLogsScope-ClNijVj4.mjs.map +1 -0
  415. package/.output/server/chunks/build/useMonitorColumns-ylxrUNTK.mjs +212 -0
  416. package/.output/server/chunks/build/useMonitorColumns-ylxrUNTK.mjs.map +1 -0
  417. package/.output/server/chunks/build/useMonitorData-CEpKXoD4.mjs +131 -0
  418. package/.output/server/chunks/build/useMonitorData-CEpKXoD4.mjs.map +1 -0
  419. package/.output/server/chunks/build/useMonitorFormat-_7zLapf3.mjs +87 -0
  420. package/.output/server/chunks/build/useMonitorFormat-_7zLapf3.mjs.map +1 -0
  421. package/.output/server/chunks/build/useMonitorTerminal-Dj4QwRNW.mjs +68 -0
  422. package/.output/server/chunks/build/useMonitorTerminal-Dj4QwRNW.mjs.map +1 -0
  423. package/.output/server/chunks/build/useOpsLog-CgnNG7_n.mjs +137 -0
  424. package/.output/server/chunks/build/useOpsLog-CgnNG7_n.mjs.map +1 -0
  425. package/.output/server/chunks/build/useTeamActions-D6sxdpkP.mjs +76 -0
  426. package/.output/server/chunks/build/useTeamActions-D6sxdpkP.mjs.map +1 -0
  427. package/.output/server/chunks/build/useTeamAddMemberDialog-Q-ntQ6Vo.mjs +81 -0
  428. package/.output/server/chunks/build/useTeamAddMemberDialog-Q-ntQ6Vo.mjs.map +1 -0
  429. package/.output/server/chunks/build/useTeamCreateDialog-D7OMfDTM.mjs +94 -0
  430. package/.output/server/chunks/build/useTeamCreateDialog-D7OMfDTM.mjs.map +1 -0
  431. package/.output/server/chunks/build/useTeamDeployDialog-vBRqjiut.mjs +77 -0
  432. package/.output/server/chunks/build/useTeamDeployDialog-vBRqjiut.mjs.map +1 -0
  433. package/.output/server/chunks/build/useTeamDialogState-CFRUQxAf.mjs +79 -0
  434. package/.output/server/chunks/build/useTeamDialogState-CFRUQxAf.mjs.map +1 -0
  435. package/.output/server/chunks/build/useTeamPluginDialog-B8kxewpZ.mjs +100 -0
  436. package/.output/server/chunks/build/useTeamPluginDialog-B8kxewpZ.mjs.map +1 -0
  437. package/.output/server/chunks/build/useTeamsCatalog-xRhk7ezA.mjs +120 -0
  438. package/.output/server/chunks/build/useTeamsCatalog-xRhk7ezA.mjs.map +1 -0
  439. package/.output/server/chunks/build/useTokenClipboard-CwQpoFeP.mjs +69 -0
  440. package/.output/server/chunks/build/useTokenClipboard-CwQpoFeP.mjs.map +1 -0
  441. package/.output/server/chunks/build/useTokenCreate-DpDcF1Vx.mjs +112 -0
  442. package/.output/server/chunks/build/useTokenCreate-DpDcF1Vx.mjs.map +1 -0
  443. package/.output/server/chunks/build/useTokenRename-BRejFrtc.mjs +84 -0
  444. package/.output/server/chunks/build/useTokenRename-BRejFrtc.mjs.map +1 -0
  445. package/.output/server/chunks/build/useTokenReveal-DER2afAS.mjs +115 -0
  446. package/.output/server/chunks/build/useTokenReveal-DER2afAS.mjs.map +1 -0
  447. package/.output/server/chunks/build/useTokensList-DHt65IOY.mjs +89 -0
  448. package/.output/server/chunks/build/useTokensList-DHt65IOY.mjs.map +1 -0
  449. package/.output/server/chunks/build/useWorkbenchAuth-B2j-zILO.mjs +135 -0
  450. package/.output/server/chunks/build/useWorkbenchAuth-B2j-zILO.mjs.map +1 -0
  451. package/.output/server/chunks/build/useWorkbenchWorkspaces-B_2mOxN6.mjs +133 -0
  452. package/.output/server/chunks/build/useWorkbenchWorkspaces-B_2mOxN6.mjs.map +1 -0
  453. package/.output/server/chunks/build/useWorkshopApi-B1B9vd4m.mjs +102 -0
  454. package/.output/server/chunks/build/useWorkshopApi-B1B9vd4m.mjs.map +1 -0
  455. package/.output/server/chunks/build/useWorkshopWs-B-Es2Xg3.mjs +1782 -0
  456. package/.output/server/chunks/build/useWorkshopWs-B-Es2Xg3.mjs.map +1 -0
  457. package/.output/server/chunks/build/useWorkspaceAuth-tQ1ORWXo.mjs +57 -0
  458. package/.output/server/chunks/build/useWorkspaceAuth-tQ1ORWXo.mjs.map +1 -0
  459. package/.output/server/chunks/build/useWorkspaceChannels-BwB6TAWY.mjs +87 -0
  460. package/.output/server/chunks/build/useWorkspaceChannels-BwB6TAWY.mjs.map +1 -0
  461. package/.output/server/chunks/build/useWorkspacePanels-CuAmDpT5.mjs +75 -0
  462. package/.output/server/chunks/build/useWorkspacePanels-CuAmDpT5.mjs.map +1 -0
  463. package/.output/server/chunks/build/useWorkspaceShell-CcQ4JlqO.mjs +165 -0
  464. package/.output/server/chunks/build/useWorkspaceShell-CcQ4JlqO.mjs.map +1 -0
  465. package/.output/server/chunks/build/users-De2HygNt.mjs +561 -0
  466. package/.output/server/chunks/build/users-De2HygNt.mjs.map +1 -0
  467. package/.output/server/chunks/build/workshop-CmgpTwyf.mjs +1018 -0
  468. package/.output/server/chunks/build/workshop-CmgpTwyf.mjs.map +1 -0
  469. package/.output/server/chunks/build/workspaces-DVIEk1Bl.mjs +139 -0
  470. package/.output/server/chunks/build/workspaces-DVIEk1Bl.mjs.map +1 -0
  471. package/.output/server/chunks/routes/api/health.get.mjs +2 -2
  472. package/.output/server/chunks/routes/api/index.get.mjs +2 -2
  473. package/.output/server/chunks/routes/api/index.post.mjs +2 -2
  474. package/.output/server/chunks/routes/api/mcp/workshop.mjs +2 -2
  475. package/.output/server/chunks/routes/api/metrics.mjs +2 -2
  476. package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +2 -2
  477. package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +2 -2
  478. package/.output/server/chunks/routes/api/plugins/i18n.get.mjs +2 -2
  479. package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +2 -2
  480. package/.output/server/chunks/routes/api/system/config-groups/_id_.delete.mjs +2 -2
  481. package/.output/server/chunks/routes/api/system/config-groups/_id_.patch.mjs +2 -2
  482. package/.output/server/chunks/routes/api/system/config.get.mjs +2 -2
  483. package/.output/server/chunks/routes/api/system/index.get.mjs +2 -2
  484. package/.output/server/chunks/routes/api/system/index.patch.mjs +2 -2
  485. package/.output/server/chunks/routes/api/system/index.post.mjs +2 -2
  486. package/.output/server/chunks/routes/api/system/index2.get.mjs +2 -2
  487. package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +35 -4
  488. package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs.map +1 -1
  489. package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +2 -2
  490. package/.output/server/chunks/routes/api/system/monitor.get.mjs +2 -2
  491. package/.output/server/chunks/routes/api/system/settings/events.get.mjs +2 -2
  492. package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +2 -2
  493. package/.output/server/chunks/routes/api/users/_id_.delete.mjs +2 -2
  494. package/.output/server/chunks/routes/api/users/_id_.get.mjs +2 -2
  495. package/.output/server/chunks/routes/api/users/_id_.put.mjs +2 -2
  496. package/.output/server/chunks/routes/api/users/index.get.mjs +2 -2
  497. package/.output/server/chunks/routes/api/users/index.post.mjs +2 -2
  498. package/.output/server/chunks/routes/api/users/login.post.mjs +2 -2
  499. package/.output/server/chunks/routes/api/users/logout.post.mjs +2 -2
  500. package/.output/server/chunks/routes/api/users/me.get.mjs +2 -2
  501. package/.output/server/chunks/routes/api/users/register.post.mjs +2 -2
  502. package/.output/server/chunks/routes/api/users/setup-status.get.mjs +2 -2
  503. package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +2 -2
  504. package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +2 -2
  505. package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +2 -2
  506. package/.output/server/chunks/routes/api/workshop/_...path_.mjs +2 -2
  507. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +2 -2
  508. package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +2 -2
  509. package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +2 -2
  510. package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +38 -6
  511. package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs.map +1 -1
  512. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +2 -2
  513. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +2 -2
  514. package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +14 -5
  515. package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs.map +1 -1
  516. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +2 -2
  517. package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +2 -2
  518. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +2 -2
  519. package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +2 -2
  520. package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +2 -2
  521. package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +2 -2
  522. package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +2 -2
  523. package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +2 -2
  524. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id/preview.get.mjs +1 -1
  525. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs +2 -2
  526. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +2 -2
  527. package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs +2 -2
  528. package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs +2 -2
  529. package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs +2 -2
  530. package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs +2 -2
  531. package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs +2 -2
  532. package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +2 -2
  533. package/.output/server/chunks/routes/api/workshop/aml/index.post.mjs +2 -2
  534. package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs +2 -2
  535. package/.output/server/chunks/routes/api/workshop/aml/index2.post.mjs +2 -2
  536. package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs +2 -2
  537. package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs +2 -2
  538. package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +2 -2
  539. package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs +2 -2
  540. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/cancel.post.mjs +2 -2
  541. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/logs.get.mjs +2 -2
  542. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/retry.post.mjs +2 -2
  543. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs +2 -2
  544. package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.get.mjs +2 -2
  545. package/.output/server/chunks/routes/api/workshop/aml/models/_id/predict.post.mjs +2 -2
  546. package/.output/server/chunks/routes/api/workshop/aml/models/_id/promote.post.mjs +2 -2
  547. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs +2 -2
  548. package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs +2 -2
  549. package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +2 -2
  550. package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +1 -1
  551. package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +1 -1
  552. package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +2 -2
  553. package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +1 -1
  554. package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +1 -1
  555. package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +1 -1
  556. package/.output/server/chunks/routes/api/workshop/audit.get.mjs +2 -2
  557. package/.output/server/chunks/routes/api/workshop/caller.mjs +2 -2
  558. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +10 -5
  559. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs.map +1 -1
  560. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +2 -2
  561. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +2 -2
  562. package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +2 -2
  563. package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +2 -2
  564. package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +2 -2
  565. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +2 -2
  566. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +2 -2
  567. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +2 -2
  568. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +2 -2
  569. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +2 -2
  570. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +2 -2
  571. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +2 -2
  572. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +2 -2
  573. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +2 -2
  574. package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +2 -2
  575. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.get.mjs +41 -0
  576. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.get.mjs.map +1 -0
  577. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.post.mjs +52 -0
  578. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.post.mjs.map +1 -0
  579. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/messages/_messageId/read.post.mjs +33 -0
  580. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/messages/_messageId/read.post.mjs.map +1 -0
  581. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/permissions.get.mjs +48 -0
  582. package/.output/server/chunks/routes/api/workshop/channels/_id/chat/permissions.get.mjs.map +1 -0
  583. package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +2 -2
  584. package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +2 -2
  585. package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -2
  586. package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +2 -2
  587. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +10 -14
  588. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -1
  589. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +2 -2
  590. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +15 -28
  591. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -1
  592. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +3 -2
  593. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
  594. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +29 -23
  595. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -1
  596. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +9 -4
  597. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -1
  598. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs +22 -10
  599. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs.map +1 -1
  600. package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs +34 -0
  601. package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs.map +1 -0
  602. package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId/approve.post.mjs +33 -0
  603. package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId/approve.post.mjs.map +1 -0
  604. package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId_.delete.mjs +34 -0
  605. package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId_.delete.mjs.map +1 -0
  606. package/.output/server/chunks/routes/api/workshop/channels/_id/members/join.post.mjs +35 -0
  607. package/.output/server/chunks/routes/api/workshop/channels/_id/members/join.post.mjs.map +1 -0
  608. package/.output/server/chunks/routes/api/workshop/channels/_id/members/leave.post.mjs +33 -0
  609. package/.output/server/chunks/routes/api/workshop/channels/_id/members/leave.post.mjs.map +1 -0
  610. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +2 -2
  611. package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +2 -2
  612. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +2 -2
  613. package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +2 -2
  614. package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -2
  615. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +22 -6
  616. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -1
  617. package/.output/server/chunks/routes/api/workshop/channels.get.mjs +21 -3
  618. package/.output/server/chunks/routes/api/workshop/channels.get.mjs.map +1 -1
  619. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +5 -5
  620. package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +2 -2
  621. package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +2 -2
  622. package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +2 -2
  623. package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +2 -2
  624. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +2 -2
  625. package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +2 -2
  626. package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +2 -2
  627. package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +2 -2
  628. package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +2 -2
  629. package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +2 -2
  630. package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +2 -2
  631. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +2 -2
  632. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +2 -2
  633. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +2 -2
  634. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +2 -2
  635. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +2 -2
  636. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +2 -2
  637. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +2 -2
  638. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +2 -2
  639. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +2 -2
  640. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +2 -2
  641. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +2 -2
  642. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +2 -2
  643. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -2
  644. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +2 -2
  645. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +2 -2
  646. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +2 -2
  647. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +2 -2
  648. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +2 -2
  649. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +2 -2
  650. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +2 -2
  651. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +2 -2
  652. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +2 -2
  653. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +2 -2
  654. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +2 -2
  655. package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +2 -2
  656. package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +2 -2
  657. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +2 -2
  658. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +2 -2
  659. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +2 -2
  660. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +2 -2
  661. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +2 -2
  662. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +2 -2
  663. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +2 -2
  664. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +2 -2
  665. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +2 -2
  666. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +2 -2
  667. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +2 -2
  668. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +2 -2
  669. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +2 -2
  670. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +2 -2
  671. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +2 -2
  672. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +2 -2
  673. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +2 -2
  674. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +2 -2
  675. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/revert.post.mjs +2 -2
  676. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +2 -2
  677. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/versions.get.mjs +2 -2
  678. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -2
  679. package/.output/server/chunks/routes/api/workshop/dcw/recipes/index.patch.mjs +2 -2
  680. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +2 -2
  681. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +2 -2
  682. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +2 -2
  683. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +2 -2
  684. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +2 -2
  685. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +2 -2
  686. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +2 -2
  687. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +2 -2
  688. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +2 -2
  689. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +2 -2
  690. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
  691. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +2 -2
  692. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +2 -2
  693. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +11 -4
  694. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs.map +1 -1
  695. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +28 -36
  696. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
  697. package/.output/server/chunks/routes/api/workshop/index.get.mjs +2 -2
  698. package/.output/server/chunks/routes/api/workshop/index.post.mjs +2 -2
  699. package/.output/server/chunks/routes/api/workshop/index.put.mjs +2 -2
  700. package/.output/server/chunks/routes/api/workshop/index10.get.mjs +26 -12
  701. package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -1
  702. package/.output/server/chunks/routes/api/workshop/index11.get.mjs +12 -7
  703. package/.output/server/chunks/routes/api/workshop/index11.get.mjs.map +1 -1
  704. package/.output/server/chunks/routes/api/workshop/index12.get.mjs +3 -3
  705. package/.output/server/chunks/routes/api/workshop/index12.get.mjs.map +1 -1
  706. package/.output/server/chunks/routes/api/workshop/index13.get.mjs +29 -0
  707. package/.output/server/chunks/routes/api/workshop/index13.get.mjs.map +1 -0
  708. package/.output/server/chunks/routes/api/workshop/index14.get.mjs +28 -0
  709. package/.output/server/chunks/routes/api/workshop/index14.get.mjs.map +1 -0
  710. package/.output/server/chunks/routes/api/workshop/index2.get.mjs +2 -2
  711. package/.output/server/chunks/routes/api/workshop/index2.post.mjs +2 -2
  712. package/.output/server/chunks/routes/api/workshop/index3.get.mjs +2 -2
  713. package/.output/server/chunks/routes/api/workshop/index3.post.mjs +2 -2
  714. package/.output/server/chunks/routes/api/workshop/index4.get.mjs +2 -2
  715. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +2 -2
  716. package/.output/server/chunks/routes/api/workshop/index5.get.mjs +2 -2
  717. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +2 -2
  718. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +2 -2
  719. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -2
  720. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +2 -2
  721. package/.output/server/chunks/routes/api/workshop/index7.post.mjs +14 -16
  722. package/.output/server/chunks/routes/api/workshop/index7.post.mjs.map +1 -1
  723. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +40 -19
  724. package/.output/server/chunks/routes/api/workshop/index8.get.mjs.map +1 -1
  725. package/.output/server/chunks/routes/api/workshop/index8.post.mjs +19 -5
  726. package/.output/server/chunks/routes/api/workshop/index8.post.mjs.map +1 -1
  727. package/.output/server/chunks/routes/api/workshop/index9.get.mjs +20 -24
  728. package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -1
  729. package/.output/server/chunks/routes/api/workshop/index9.post.mjs +30 -0
  730. package/.output/server/chunks/routes/api/workshop/index9.post.mjs.map +1 -0
  731. package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +2 -2
  732. package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +2 -2
  733. package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +2 -2
  734. package/.output/server/chunks/routes/api/workshop/notifications/read.post.mjs +41 -0
  735. package/.output/server/chunks/routes/api/workshop/notifications/read.post.mjs.map +1 -0
  736. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +2 -2
  737. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +2 -2
  738. package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +2 -2
  739. package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +2 -2
  740. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +2 -2
  741. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +2 -2
  742. package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +2 -2
  743. package/.output/server/chunks/routes/api/workshop/schedules/_id/run.post.mjs +29 -0
  744. package/.output/server/chunks/routes/api/workshop/schedules/_id/run.post.mjs.map +1 -0
  745. package/.output/server/chunks/routes/api/workshop/schedules/_id/runs.get.mjs +31 -0
  746. package/.output/server/chunks/routes/api/workshop/schedules/_id/runs.get.mjs.map +1 -0
  747. package/.output/server/chunks/routes/api/workshop/schedules/_id_.delete.mjs +30 -0
  748. package/.output/server/chunks/routes/api/workshop/schedules/_id_.delete.mjs.map +1 -0
  749. package/.output/server/chunks/routes/api/workshop/schedules/_id_.get.mjs +29 -0
  750. package/.output/server/chunks/routes/api/workshop/schedules/_id_.get.mjs.map +1 -0
  751. package/.output/server/chunks/routes/api/workshop/schedules/_id_.patch.mjs +40 -0
  752. package/.output/server/chunks/routes/api/workshop/schedules/_id_.patch.mjs.map +1 -0
  753. package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +2 -2
  754. package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +2 -2
  755. package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +2 -2
  756. package/.output/server/chunks/routes/api/workshop/tasks/_id/reassign.post.mjs +39 -0
  757. package/.output/server/chunks/routes/api/workshop/tasks/_id/reassign.post.mjs.map +1 -0
  758. package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +2 -2
  759. package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +2 -2
  760. package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs +44 -0
  761. package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs.map +1 -0
  762. package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +9 -5
  763. package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -1
  764. package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +2 -2
  765. package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +2 -2
  766. package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +2 -2
  767. package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +2 -2
  768. package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +2 -2
  769. package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +2 -2
  770. package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +2 -2
  771. package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +2 -2
  772. package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +2 -2
  773. package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +2 -2
  774. package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +2 -2
  775. package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +2 -2
  776. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +3 -3
  777. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +2 -2
  778. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +2 -2
  779. package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +2 -2
  780. package/.output/server/chunks/routes/renderer.mjs +3 -3
  781. package/.output/server/chunks/virtual/entry.mjs +6055 -1624
  782. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  783. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  784. package/.output/server/index.mjs +15 -5549
  785. package/.output/server/index.mjs.map +1 -1
  786. package/.output/server/package.json +1 -1
  787. package/README-zh.md +102 -48
  788. package/README.md +105 -38
  789. package/app/components/AppHeader.vue +26 -703
  790. package/app/components/aml/AmlDatasetFormModal.vue +279 -0
  791. package/app/components/aml/AmlDatasetTable.vue +319 -0
  792. package/app/components/aml/AmlEnvPanel.vue +230 -0
  793. package/app/components/aml/AmlExperimentsTable.vue +142 -0
  794. package/app/components/aml/AmlInfraBanner.vue +23 -0
  795. package/app/components/aml/AmlJobsTable.vue +248 -0
  796. package/app/components/aml/AmlModelsTable.vue +173 -0
  797. package/app/components/aml/AmlOverviewBar.vue +62 -0
  798. package/app/components/aml/AmlPageHeader.vue +47 -0
  799. package/app/components/aml/AmlPredictConsole.vue +201 -0
  800. package/app/components/app-header/HeaderTools.vue +208 -0
  801. package/app/components/app-header/HitlBell.vue +423 -0
  802. package/app/components/app-header/TrailNav.vue +261 -0
  803. package/app/components/app-header/UserChip.vue +150 -0
  804. package/app/components/daq/DaqAddNodeModal.vue +209 -0
  805. package/app/components/daq/DaqAlarmBar.vue +46 -0
  806. package/app/components/daq/DaqControlCard.vue +159 -0
  807. package/app/components/daq/DaqDetailFramesTile.vue +139 -0
  808. package/app/components/daq/DaqDetailHistoryCard.vue +128 -0
  809. package/app/components/daq/DaqDetailLiveCard.vue +92 -0
  810. package/app/components/daq/DaqDetailParamForm.vue +350 -0
  811. package/app/components/daq/DaqInfraBanner.vue +31 -0
  812. package/app/components/daq/DaqLineBanner.vue +47 -0
  813. package/app/components/daq/DaqNodePanel.vue +396 -0
  814. package/app/components/daq/DaqOptPanel.vue +197 -0
  815. package/app/components/daq/DaqTemplateModal.vue +246 -0
  816. package/app/components/dashboard/DashboardFleetPanel.vue +228 -0
  817. package/app/components/dashboard/DashboardGaugeBand.vue +78 -0
  818. package/app/components/dashboard/DashboardHarnessPanel.vue +149 -0
  819. package/app/components/dashboard/DashboardHero.vue +209 -0
  820. package/app/components/dashboard/DashboardLineStatePanel.vue +78 -0
  821. package/app/components/dashboard/DashboardNodeStatePanel.vue +46 -0
  822. package/app/components/dashboard/DashboardPipelinePanel.vue +46 -0
  823. package/app/components/dashboard/DashboardTrendPanel.vue +83 -0
  824. package/app/components/dashboard/DashboardWritePanel.vue +52 -0
  825. package/app/components/dcw/DcwAddNodeModal.vue +328 -0
  826. package/app/components/dcw/DcwAdoptCard.vue +89 -0
  827. package/app/components/dcw/DcwCreateLineModal.vue +105 -0
  828. package/app/components/dcw/DcwDeleteLineModal.vue +73 -0
  829. package/app/components/dcw/DcwDetailHead.vue +65 -0
  830. package/app/components/dcw/DcwDetailTemplateModal.vue +238 -0
  831. package/app/components/dcw/DcwEditLineModal.vue +108 -0
  832. package/app/components/dcw/DcwGatewayBar.vue +94 -0
  833. package/app/components/dcw/DcwLedgerCard.vue +160 -0
  834. package/app/components/dcw/DcwLineCard.vue +117 -0
  835. package/app/components/dcw/DcwLineRunCard.vue +158 -0
  836. package/app/components/dcw/DcwNodesTable.vue +253 -0
  837. package/app/components/dcw/DcwProductCreateModal.vue +113 -0
  838. package/app/components/dcw/DcwQueryCard.vue +251 -0
  839. package/app/components/dcw/DcwRecipeEditModal.vue +285 -0
  840. package/app/components/dcw/DcwRecipeHistoryModal.vue +165 -0
  841. package/app/components/dcw/DcwRecipePanel.vue +367 -0
  842. package/app/components/dcw/DcwRunDataModal.vue +191 -0
  843. package/app/components/dcw/DcwTemplateModal.vue +227 -0
  844. package/app/components/dcw/DcwWriteHistoryCard.vue +96 -0
  845. package/app/components/logs/LogsEventTable.vue +309 -0
  846. package/app/components/logs/LogsFilterCard.vue +234 -0
  847. package/app/components/logs/LogsManualModal.vue +231 -0
  848. package/app/components/logs/LogsPageHead.vue +71 -0
  849. package/app/components/monitor/MonitorAgentTable.vue +143 -0
  850. package/app/components/monitor/MonitorChannelTable.vue +80 -0
  851. package/app/components/monitor/MonitorLoginGate.vue +24 -0
  852. package/app/components/monitor/MonitorPageHead.vue +92 -0
  853. package/app/components/monitor/MonitorProcessTable.vue +159 -0
  854. package/app/components/monitor/MonitorStatGrid.vue +165 -0
  855. package/app/components/settings/AppearancePane.vue +282 -0
  856. package/app/components/settings/PluginsSection.vue +280 -0
  857. package/app/components/settings/RuntimeFieldRow.vue +189 -0
  858. package/app/components/settings/RuntimeGroupSection.vue +290 -0
  859. package/app/components/settings/RuntimePane.vue +235 -0
  860. package/app/components/settings/SystemPane.vue +83 -0
  861. package/app/components/tokens/TokenCreateModal.vue +42 -0
  862. package/app/components/tokens/TokenOnceModal.vue +164 -0
  863. package/app/components/tokens/TokenRenameModal.vue +40 -0
  864. package/app/components/tokens/TokensAuthGate.vue +47 -0
  865. package/app/components/tokens/TokensPageHead.vue +76 -0
  866. package/app/components/tokens/TokensTable.vue +227 -0
  867. package/app/components/workshop/AgentLanesView.vue +35 -755
  868. package/app/components/workshop/ChannelSessionList.vue +58 -493
  869. package/app/components/workshop/ChatMemberPanel.vue +555 -0
  870. package/app/components/workshop/ChatTimeline.vue +569 -0
  871. package/app/components/workshop/CommandPalette.vue +1 -0
  872. package/app/components/workshop/Composer.vue +224 -511
  873. package/app/components/workshop/DeviceTwinPanel.vue +23 -499
  874. package/app/components/workshop/EventBlock.vue +20 -408
  875. package/app/components/workshop/MemoryPanel.vue +405 -364
  876. package/app/components/workshop/MultiChannelView.vue +189 -189
  877. package/app/components/workshop/NotificationCenter.vue +325 -0
  878. package/app/components/workshop/TaskBoardView.vue +260 -686
  879. package/app/components/workshop/TaskInspectorDrawer.vue +484 -390
  880. package/app/components/workshop/TranscriptTimeline.vue +60 -438
  881. package/app/components/workshop/agents/AgentTemplateEditModal.vue +139 -0
  882. package/app/components/workshop/agents/AgentTemplateTable.vue +269 -0
  883. package/app/components/workshop/agents/AgentTemplateToolbar.vue +67 -0
  884. package/app/components/workshop/blocks/ClusterRoute.vue +1 -1
  885. package/app/components/workshop/blocks/EventBlockAvatar.vue +114 -0
  886. package/app/components/workshop/blocks/EventBlockHead.vue +232 -0
  887. package/app/components/workshop/composer/ComposerToolbar.vue +278 -0
  888. package/app/components/workshop/composer/MentionMenu.vue +135 -0
  889. package/app/components/workshop/composer/ReplyChip.vue +65 -0
  890. package/app/components/workshop/composer/StatusChip.vue +171 -0
  891. package/app/components/workshop/console/CenterPane.vue +94 -0
  892. package/app/components/workshop/console/Dock.vue +71 -0
  893. package/app/components/workshop/console/LeftPane.vue +84 -0
  894. package/app/components/workshop/console/RightPane.vue +95 -0
  895. package/app/components/workshop/console/Topbar.vue +289 -0
  896. package/app/components/workshop/device-twin/DeviceTwinCard.vue +265 -0
  897. package/app/components/workshop/device-twin/DeviceTwinDcwSection.vue +203 -0
  898. package/app/components/workshop/lanes/AddMemberModal.vue +270 -0
  899. package/app/components/workshop/lanes/EditMemberModal.vue +106 -0
  900. package/app/components/workshop/lanes/LaneHeader.vue +432 -0
  901. package/app/components/workshop/lanes/LanesToolbar.vue +97 -0
  902. package/app/components/workshop/session-list/ChannelSettingsModal.vue +329 -0
  903. package/app/components/workshop/session-list/MountChannelModal.vue +124 -0
  904. package/app/components/workshop/session-list/SaveTemplateModal.vue +93 -0
  905. package/app/components/workshop/task-board/Card.vue +172 -0
  906. package/app/components/workshop/task-board/Column.vue +151 -0
  907. package/app/components/workshop/task-board/List.vue +157 -0
  908. package/app/components/workshop/task-board/StatusMenu.vue +88 -0
  909. package/app/components/workshop/teams/TeamAddMemberModal.vue +53 -0
  910. package/app/components/workshop/teams/TeamCard.vue +183 -0
  911. package/app/components/workshop/teams/TeamCreateModal.vue +94 -0
  912. package/app/components/workshop/teams/TeamDeployModal.vue +40 -0
  913. package/app/components/workshop/teams/TeamPluginModal.vue +119 -0
  914. package/app/components/workshop/terminal/OmpTerminalPanel.vue +19 -760
  915. package/app/components/workshop/terminal/TerminalHitlCard.vue +170 -0
  916. package/app/components/workshop/town/TownScene.ts +72 -961
  917. package/app/components/workshop/town/TownScene3D.ts +357 -4045
  918. package/app/components/workshop/town/TownView.vue +461 -7405
  919. package/app/components/workshop/town/components/TownAgentBindings.vue +380 -0
  920. package/app/components/workshop/town/components/TownAgentInspector.vue +546 -0
  921. package/app/components/workshop/town/components/TownAlarmList.vue +147 -0
  922. package/app/components/workshop/town/components/TownBoundaryPanel.vue +350 -0
  923. package/app/components/workshop/town/components/TownCalloutLayer.vue +147 -0
  924. package/app/components/workshop/town/components/TownChannelDock.vue +116 -0
  925. package/app/components/workshop/town/components/TownControlDock.vue +400 -0
  926. package/app/components/workshop/town/components/TownDaqNodeInspector.vue +345 -0
  927. package/app/components/workshop/town/components/TownDaqTree.vue +366 -0
  928. package/app/components/workshop/town/components/TownDcwBindSection.vue +473 -0
  929. package/app/components/workshop/town/components/TownDcwNodeInspector.vue +185 -0
  930. package/app/components/workshop/town/components/TownDcwTree.vue +280 -0
  931. package/app/components/workshop/town/components/TownDeviceBindings.vue +394 -0
  932. package/app/components/workshop/town/components/TownDeviceTransform.vue +248 -0
  933. package/app/components/workshop/town/components/TownEventList.vue +120 -0
  934. package/app/components/workshop/town/components/TownHealthBody.vue +100 -0
  935. package/app/components/workshop/town/components/TownKpiStrip.vue +207 -0
  936. package/app/components/workshop/town/components/TownLeftRail.vue +308 -0
  937. package/app/components/workshop/town/components/TownLoadingMask.vue +61 -0
  938. package/app/components/workshop/town/components/TownNavMap.vue +154 -0
  939. package/app/components/workshop/town/components/TownRightRail.vue +540 -0
  940. package/app/components/workshop/town/components/TownStage.vue +281 -0
  941. package/app/components/workshop/town/components/TownStageTop.vue +238 -0
  942. package/app/components/workshop/town/components/TownStatusBar.vue +108 -0
  943. package/app/components/workshop/town/components/TownTopNav.vue +367 -0
  944. package/app/components/workshop/town/components/TownTrendDock.vue +178 -0
  945. package/app/components/workshop/town/scene/town-scene-agents.ts +254 -0
  946. package/app/components/workshop/town/scene/town-scene-behavior.ts +194 -0
  947. package/app/components/workshop/town/scene/town-scene-bubbles.ts +96 -0
  948. package/app/components/workshop/town/scene/town-scene-core.ts +158 -0
  949. package/app/components/workshop/town/scene/town-scene-models.ts +109 -0
  950. package/app/components/workshop/town/scene/town-scene-visuals.ts +279 -0
  951. package/app/components/workshop/town/scene/town-scene3d-agents.ts +308 -0
  952. package/app/components/workshop/town/scene/town-scene3d-blocks.ts +297 -0
  953. package/app/components/workshop/town/scene/town-scene3d-bubbles.ts +281 -0
  954. package/app/components/workshop/town/scene/town-scene3d-camera.ts +282 -0
  955. package/app/components/workshop/town/scene/town-scene3d-devices.ts +433 -0
  956. package/app/components/workshop/town/scene/town-scene3d-editing.ts +490 -0
  957. package/app/components/workshop/town/scene/town-scene3d-events.ts +173 -0
  958. package/app/components/workshop/town/scene/town-scene3d-factory.ts +412 -0
  959. package/app/components/workshop/town/scene/town-scene3d-hud.ts +110 -0
  960. package/app/components/workshop/town/scene/town-scene3d-lifecycle.ts +144 -0
  961. package/app/components/workshop/town/scene/town-scene3d-links.ts +141 -0
  962. package/app/components/workshop/town/scene/town-scene3d-loop.ts +286 -0
  963. package/app/components/workshop/town/scene/town-scene3d-models.ts +154 -0
  964. package/app/components/workshop/town/scene/town-scene3d-nodes.ts +562 -0
  965. package/app/components/workshop/town/scene/town-scene3d-ranges.ts +273 -0
  966. package/app/components/workshop/town/scene/town-scene3d-renderer.ts +320 -0
  967. package/app/components/workshop/town/scene/town-scene3d-selection.ts +257 -0
  968. package/app/components/workshop/town/scene/town-scene3d-types.ts +264 -0
  969. package/app/components/workshop/transcript/TranscriptBlockList.vue +68 -0
  970. package/app/components/workshop/transcript/TranscriptEarlierPager.vue +81 -0
  971. package/app/components/workshop/transcript/TranscriptEmptyState.vue +153 -0
  972. package/app/components/workshop/transcript/TranscriptFilterBar.vue +126 -0
  973. package/app/components/workshop/workbench/AuthGate.vue +179 -0
  974. package/app/components/workshop/workbench/CreateWorkspaceModal.vue +36 -0
  975. package/app/components/workshop/workbench/WorkbenchHead.vue +129 -0
  976. package/app/components/workshop/workbench/WorkspaceCard.vue +198 -0
  977. package/app/components/workshop/workbench/WorkspaceEmpty.vue +56 -0
  978. package/app/composables/workshop/device-twin-types.ts +29 -0
  979. package/app/composables/workshop/event-blocks/attention.ts +58 -0
  980. package/app/composables/workshop/event-blocks/classify.ts +44 -0
  981. package/app/composables/workshop/event-blocks/clusterer.ts +231 -0
  982. package/app/composables/workshop/event-blocks/constants.ts +48 -0
  983. package/app/composables/workshop/event-blocks/fold-stream.ts +45 -0
  984. package/app/composables/workshop/event-blocks/markdown.ts +81 -0
  985. package/app/composables/workshop/event-blocks/mentions.ts +49 -0
  986. package/app/composables/workshop/event-blocks/text-utils.ts +100 -0
  987. package/app/composables/workshop/event-blocks/types.ts +40 -0
  988. package/app/composables/workshop/town/town-relay-props.ts +226 -0
  989. package/app/composables/workshop/town/town-view-types.ts +145 -0
  990. package/app/composables/workshop/town/useTownAgentBindings.ts +115 -0
  991. package/app/composables/workshop/town/useTownAgentChat.ts +203 -0
  992. package/app/composables/workshop/town/useTownAlarms.ts +36 -0
  993. package/app/composables/workshop/town/useTownCallouts.ts +174 -0
  994. package/app/composables/workshop/town/useTownChannels.ts +220 -0
  995. package/app/composables/workshop/town/useTownHealth.ts +66 -0
  996. package/app/composables/workshop/town/useTownHudTickers.ts +77 -0
  997. package/app/composables/workshop/town/useTownLayout.ts +277 -0
  998. package/app/composables/workshop/town/useTownNavMap.ts +301 -0
  999. package/app/composables/workshop/town/useTownNodeBindings.ts +345 -0
  1000. package/app/composables/workshop/town/useTownPanelDrag.ts +91 -0
  1001. package/app/composables/workshop/town/useTownRailData.ts +421 -0
  1002. package/app/composables/workshop/town/useTownSceneControl.ts +92 -0
  1003. package/app/composables/workshop/town/useTownSceneInput.ts +275 -0
  1004. package/app/composables/workshop/town/useTownSceneRuntime.ts +390 -0
  1005. package/app/composables/workshop/town/useTownSheets.ts +41 -0
  1006. package/app/composables/workshop/town/useTownTrends.ts +93 -0
  1007. package/app/composables/workshop/useChannelList.ts +88 -0
  1008. package/app/composables/workshop/useChannelTerminals.ts +65 -0
  1009. package/app/composables/workshop/useComposerMentions.ts +130 -0
  1010. package/app/composables/workshop/useDeviceTwinDcwWrite.ts +77 -0
  1011. package/app/composables/workshop/useDeviceTwinPanel.ts +56 -0
  1012. package/app/composables/workshop/useEventBlockView.ts +159 -0
  1013. package/app/composables/workshop/useEventBlocks.ts +33 -662
  1014. package/app/composables/workshop/useHitlAnswer.ts +184 -0
  1015. package/app/composables/workshop/useLaneWidths.ts +27 -0
  1016. package/app/composables/workshop/useOmpTerminalSession.ts +424 -0
  1017. package/app/composables/workshop/usePluginAdmin.ts +152 -0
  1018. package/app/composables/workshop/useRuntimeConfigDraft.ts +118 -0
  1019. package/app/composables/workshop/useSettingsGroups.ts +243 -0
  1020. package/app/composables/workshop/useTaskBoardColumns.ts +47 -0
  1021. package/app/composables/workshop/useTaskBoardDrag.ts +78 -0
  1022. package/app/composables/workshop/useTaskBoardMenu.ts +60 -0
  1023. package/app/composables/workshop/useTaskBoardTasks.ts +74 -0
  1024. package/app/composables/workshop/useTerminalRenderer.ts +308 -0
  1025. package/app/composables/workshop/useTranscriptEnterStage.ts +48 -0
  1026. package/app/composables/workshop/useTranscriptHistory.ts +52 -0
  1027. package/app/composables/workshop/useTranscriptScroll.ts +113 -0
  1028. package/app/composables/workshop/useWorkshopApi.ts +85 -2
  1029. package/app/composables/workshop/useWorkshopWs.ts +265 -126
  1030. package/app/config/schema.ts +13 -0
  1031. package/app/layouts/town.vue +21 -16
  1032. package/app/pages/aml/api.ts +6 -0
  1033. package/app/pages/aml/composables/useAmlDatasets.ts +38 -0
  1034. package/app/pages/aml/composables/useAmlEntities.ts +57 -0
  1035. package/app/pages/aml/composables/useAmlEnv.ts +191 -0
  1036. package/app/pages/aml/composables/useAmlExperiments.ts +45 -0
  1037. package/app/pages/aml/composables/useAmlFormat.ts +44 -0
  1038. package/app/pages/aml/composables/useAmlJobs.ts +131 -0
  1039. package/app/pages/aml/composables/useAmlModels.ts +56 -0
  1040. package/app/pages/aml/composables/useAmlNotes.ts +47 -0
  1041. package/app/pages/aml/composables/useAmlPredict.ts +93 -0
  1042. package/app/pages/aml/constants.ts +63 -0
  1043. package/app/pages/aml/index.vue +143 -2596
  1044. package/app/pages/aml/styles.css +420 -0
  1045. package/app/pages/aml/types.ts +189 -0
  1046. package/app/pages/composables/useDashboardCharts.ts +192 -0
  1047. package/app/pages/composables/useDashboardData.ts +144 -0
  1048. package/app/pages/daq/[id].vue +59 -929
  1049. package/app/pages/daq/composables/useDaqAddNode.ts +126 -0
  1050. package/app/pages/daq/composables/useDaqDetailBinding.ts +29 -0
  1051. package/app/pages/daq/composables/useDaqDetailFrames.ts +42 -0
  1052. package/app/pages/daq/composables/useDaqDetailHistory.ts +199 -0
  1053. package/app/pages/daq/composables/useDaqDetailNode.ts +53 -0
  1054. package/app/pages/daq/composables/useDaqDetailParams.ts +138 -0
  1055. package/app/pages/daq/composables/useDaqFilters.ts +187 -0
  1056. package/app/pages/daq/composables/useDaqNodeWindow.ts +86 -0
  1057. package/app/pages/daq/composables/useDaqOptimizations.ts +99 -0
  1058. package/app/pages/daq/composables/useDaqTemplates.ts +152 -0
  1059. package/app/pages/daq/daq-page.css +681 -0
  1060. package/app/pages/daq/index.vue +132 -2188
  1061. package/app/pages/dcw/[id].vue +297 -2615
  1062. package/app/pages/dcw/composables/useDcwAddNode.ts +121 -0
  1063. package/app/pages/dcw/composables/useDcwCards.ts +27 -0
  1064. package/app/pages/dcw/composables/useDcwDetailScope.ts +145 -0
  1065. package/app/pages/dcw/composables/useDcwDetailTemplates.ts +94 -0
  1066. package/app/pages/dcw/composables/useDcwFilter.ts +29 -0
  1067. package/app/pages/dcw/composables/useDcwLedger.ts +34 -0
  1068. package/app/pages/dcw/composables/useDcwLineMutations.ts +115 -0
  1069. package/app/pages/dcw/composables/useDcwLineRun.ts +60 -0
  1070. package/app/pages/dcw/composables/useDcwProducts.ts +54 -0
  1071. package/app/pages/dcw/composables/useDcwQuery.ts +68 -0
  1072. package/app/pages/dcw/composables/useDcwQuickActions.ts +47 -0
  1073. package/app/pages/dcw/composables/useDcwRecipes.ts +239 -0
  1074. package/app/pages/dcw/composables/useDcwTemplates.ts +50 -0
  1075. package/app/pages/dcw/composables/useDcwWrites.ts +81 -0
  1076. package/app/pages/dcw/dcw-page.css +344 -0
  1077. package/app/pages/dcw/index.vue +64 -986
  1078. package/app/pages/dcw/types.ts +9 -0
  1079. package/app/pages/index.vue +64 -925
  1080. package/app/pages/logs/composables/useLogsFormat.ts +43 -0
  1081. package/app/pages/logs/composables/useLogsManual.ts +63 -0
  1082. package/app/pages/logs/composables/useLogsQuery.ts +52 -0
  1083. package/app/pages/logs/composables/useLogsScope.ts +39 -0
  1084. package/app/pages/logs/index.vue +57 -728
  1085. package/app/pages/monitor/composables/useMonitorColumns.ts +69 -0
  1086. package/app/pages/monitor/composables/useMonitorData.ts +124 -0
  1087. package/app/pages/monitor/composables/useMonitorFormat.ts +39 -0
  1088. package/app/pages/monitor/composables/useMonitorTerminal.ts +28 -0
  1089. package/app/pages/monitor/types.ts +61 -0
  1090. package/app/pages/monitor.vue +88 -658
  1091. package/app/pages/permissions/index.vue +3 -2
  1092. package/app/pages/plugins/index.vue +3 -2
  1093. package/app/pages/settings.vue +7 -1403
  1094. package/app/pages/tokens/composables/useTokenClipboard.ts +33 -0
  1095. package/app/pages/tokens/composables/useTokenCreate.ts +93 -0
  1096. package/app/pages/tokens/composables/useTokenRename.ts +54 -0
  1097. package/app/pages/tokens/composables/useTokenReveal.ts +84 -0
  1098. package/app/pages/tokens/composables/useTokensList.ts +60 -0
  1099. package/app/pages/tokens.vue +79 -597
  1100. package/app/pages/users.vue +5 -4
  1101. package/app/pages/workshop/agents.vue +47 -529
  1102. package/app/pages/workshop/composables/useAgentHarnessOptions.ts +59 -0
  1103. package/app/pages/workshop/composables/useAgentTemplateActions.ts +42 -0
  1104. package/app/pages/workshop/composables/useAgentTemplateDialogState.ts +24 -0
  1105. package/app/pages/workshop/composables/useAgentTemplateForm.ts +88 -0
  1106. package/app/pages/workshop/composables/useAgentTemplatesCatalog.ts +92 -0
  1107. package/app/pages/workshop/composables/useTeamActions.ts +44 -0
  1108. package/app/pages/workshop/composables/useTeamAddMemberDialog.ts +49 -0
  1109. package/app/pages/workshop/composables/useTeamCreateDialog.ts +67 -0
  1110. package/app/pages/workshop/composables/useTeamDeployDialog.ts +49 -0
  1111. package/app/pages/workshop/composables/useTeamDialogState.ts +46 -0
  1112. package/app/pages/workshop/composables/useTeamPluginDialog.ts +72 -0
  1113. package/app/pages/workshop/composables/useTeamsCatalog.ts +100 -0
  1114. package/app/pages/workshop/composables/useWorkbenchAuth.ts +125 -0
  1115. package/app/pages/workshop/composables/useWorkbenchWorkspaces.ts +123 -0
  1116. package/app/pages/workshop/composables/useWorkspaceAuth.ts +31 -0
  1117. package/app/pages/workshop/composables/useWorkspaceChannels.ts +62 -0
  1118. package/app/pages/workshop/composables/useWorkspacePanels.ts +56 -0
  1119. package/app/pages/workshop/composables/useWorkspaceShell.ts +136 -0
  1120. package/app/pages/workshop/index.vue +68 -620
  1121. package/app/pages/workshop/schedules.vue +553 -0
  1122. package/app/pages/workshop/teams.vue +58 -568
  1123. package/app/pages/workshop/w/[wsId].vue +113 -596
  1124. package/app/stores/workshop/chat.ts +434 -0
  1125. package/app/stores/workshop/entities.ts +385 -283
  1126. package/app/stores/workshop/events.ts +5 -4
  1127. package/app/stores/workshop/hitl.ts +110 -7
  1128. package/app/stores/workshop/narrow-fetch.ts +23 -0
  1129. package/app/stores/workshop/notifications.ts +288 -0
  1130. package/app/stores/workshop/user.ts +23 -10
  1131. package/app/stores/workshop/workspaces.ts +12 -2
  1132. package/config.yml +7 -1
  1133. package/docs/aml.md +11 -0
  1134. package/docs/cli.en.md +5 -5
  1135. package/docs/cli.md +5 -5
  1136. package/docs/full-test-plan.md +15 -1
  1137. package/docs/plugins.en.md +1 -1
  1138. package/docs/plugins.md +1 -1
  1139. package/docs/sdk.en.md +1 -1
  1140. package/docs/sdk.md +1 -1
  1141. package/i18n/dicts/dcwDetail.json +2 -0
  1142. package/i18n/locales/en.ts +71 -0
  1143. package/i18n/locales/zh-CN.ts +71 -0
  1144. package/package.json +2 -3
  1145. package/scripts/_audit/detached-instance.mjs +112 -0
  1146. package/scripts/_audit/schedules-ui/schedules-page.png +0 -0
  1147. package/scripts/_audit/schedules-ui/workspace-channel-tag.png +0 -0
  1148. package/scripts/_audit/stubs/nuxt-imports.mjs +67 -0
  1149. package/scripts/_audit/ts-register-hook.mjs +12 -0
  1150. package/scripts/_audit/ts-resolve-hook.mjs +25 -5
  1151. package/scripts/_audit/watchdog-recovery-test.mjs +24 -2
  1152. package/scripts/_aw-packaged-start.cjs +22 -0
  1153. package/scripts/_aw0746-stage12.mjs +94 -0
  1154. package/scripts/_aw0746-stage34.mjs +134 -0
  1155. package/scripts/_aw0746-stage5.mjs +106 -0
  1156. package/scripts/_aw0746-stage6-aml.mjs +177 -0
  1157. package/scripts/_aw0746-stage6b-train-sweep.mjs +142 -0
  1158. package/scripts/_aw0746-stage7-twin.mjs +259 -0
  1159. package/scripts/_aw0746-train-strong.py +142 -0
  1160. package/scripts/_dbg-comm-verify.mjs +188 -0
  1161. package/scripts/_dbg-full-feature-e2e.mjs +19 -11
  1162. package/scripts/_dbg-im-e2e.mjs +169 -0
  1163. package/scripts/_dbg-opt2-run.mjs +114 -0
  1164. package/scripts/_dbg-opt2-setup.mjs +95 -0
  1165. package/scripts/_dbg-param-map-e2e.ts +1 -1
  1166. package/scripts/_dbg-param-map-rest-smoke.mjs +1 -1
  1167. package/scripts/_dbg-real-scenario-e2e.mjs +246 -0
  1168. package/scripts/_dbg-schedule-e2e.mjs +262 -0
  1169. package/scripts/_dbg-schedule-ui-verify.mjs +115 -0
  1170. package/scripts/_dbg-team-matrix.mjs +148 -0
  1171. package/scripts/_dbg-ui-fullcrawl.mjs +91 -0
  1172. package/scripts/_dbg-ui-static-audit.mjs +65 -0
  1173. package/scripts/_dbg-write-lock-e2e.mjs +131 -0
  1174. package/scripts/_plc-sim-detached.cjs +22 -0
  1175. package/scripts/_probe-daq-omp-task.mjs +100 -0
  1176. package/scripts/_probe-daq-scope-default.mjs +123 -0
  1177. package/scripts/_probe-density.cjs +15 -0
  1178. package/scripts/_probe-gate-model.mjs +34 -0
  1179. package/scripts/_probe-model-eligibility.cjs +13 -0
  1180. package/scripts/_probe-recipe-switch.mjs +92 -0
  1181. package/scripts/_provision-injection-line.mjs +39 -0
  1182. package/scripts/_run-matrix.ps1 +53 -0
  1183. package/scripts/_run-real-injection-fifo-goals.mjs +367 -0
  1184. package/scripts/acceptance-aml-db.ts +23 -0
  1185. package/scripts/acceptance-aml-hybrid-live.mjs +94 -0
  1186. package/scripts/acceptance-aml-hybrid-twin.ts +93 -0
  1187. package/scripts/acceptance-hybrid-python.py +51 -0
  1188. package/scripts/aml-ui-smoke.mjs +2 -0
  1189. package/scripts/api-live-e2e.mjs +32 -7
  1190. package/scripts/demo-group-chat-all-real.ts +279 -0
  1191. package/scripts/demo-group-chat-omp-cases.ts +210 -0
  1192. package/scripts/demo-group-chat-omp.ts +184 -0
  1193. package/scripts/demo-group-chat-order.ts +197 -0
  1194. package/scripts/e2e-agent-team.mjs +6 -4
  1195. package/scripts/e2e-agentteam-chat.mjs +473 -0
  1196. package/scripts/e2e-agentteam-real-triage.mjs +421 -0
  1197. package/scripts/e2e-agentteam-task-flow-real.ts +443 -0
  1198. package/scripts/e2e-aw-tui-global.mjs +8 -8
  1199. package/scripts/e2e-channel-isolation.ts +5 -1
  1200. package/scripts/e2e-closedloop/cleanup.mjs +27 -0
  1201. package/scripts/e2e-closedloop/lib.mjs +109 -0
  1202. package/scripts/e2e-closedloop/main.mjs +59 -0
  1203. package/scripts/e2e-closedloop/scenarios-accounts.mjs +208 -0
  1204. package/scripts/e2e-closedloop/scenarios-authz.mjs +190 -0
  1205. package/scripts/e2e-closedloop/scenarios-daq-dcw.mjs +219 -0
  1206. package/scripts/e2e-closedloop/scenarios-plugins.mjs +169 -0
  1207. package/scripts/e2e-closedloop/state.mjs +10 -0
  1208. package/scripts/e2e-crash-cycle.mjs +108 -0
  1209. package/scripts/e2e-full-closedloop.mjs +6 -919
  1210. package/scripts/e2e-hil-multi-user.mjs +307 -0
  1211. package/scripts/e2e-hil-restart.mjs +339 -0
  1212. package/scripts/e2e-hitl-live.mjs +336 -323
  1213. package/scripts/e2e-lead-team-mgmt.ts +1 -1
  1214. package/scripts/e2e-memory-system.ts +70 -89
  1215. package/scripts/e2e-multiharness-team.mjs +32 -15
  1216. package/scripts/e2e-omp-workspace.ts +21 -6
  1217. package/scripts/e2e-parallel-execution.mjs +20 -6
  1218. package/scripts/e2e-plc-plugin-closedloop.mjs +96 -65
  1219. package/scripts/e2e-rest-memory.mjs +26 -11
  1220. package/scripts/e2e-resume-crash.mjs +22 -7
  1221. package/scripts/e2e-task-queue.ts +8 -8
  1222. package/scripts/e2e-template-isolation.mjs +4 -2
  1223. package/scripts/proof-omp-real.ts +189 -0
  1224. package/scripts/real-injection-closed-loop.mjs +383 -0
  1225. package/scripts/test-agent-runtime.ts +5 -1
  1226. package/scripts/test-agentteam-guardrails.ts +113 -0
  1227. package/scripts/test-agentteam-task-chat-flow.ts +420 -0
  1228. package/scripts/test-agentteam-workflow.ts +472 -0
  1229. package/scripts/test-collab-e2e.mjs +17 -3
  1230. package/scripts/test-dcw-read.ts +9 -2
  1231. package/scripts/test-event-persistence.mjs +10 -2
  1232. package/scripts/test-full-system.ts +16 -3
  1233. package/scripts/test-group-chat-hardening.ts +265 -0
  1234. package/scripts/test-group-chat-unit/lib.ts +186 -0
  1235. package/scripts/test-group-chat-unit/main.ts +45 -0
  1236. package/scripts/test-group-chat-unit/section-a-migration.ts +75 -0
  1237. package/scripts/test-group-chat-unit/section-b-permission-matrix.ts +88 -0
  1238. package/scripts/test-group-chat-unit/section-c-member-lifecycle.ts +64 -0
  1239. package/scripts/test-group-chat-unit/section-d-mention-resolution.ts +36 -0
  1240. package/scripts/test-group-chat-unit/section-e-chat-facts.ts +97 -0
  1241. package/scripts/test-group-chat-unit/section-f-user-notifications.ts +52 -0
  1242. package/scripts/test-group-chat-unit/section-g-member-projection.ts +44 -0
  1243. package/scripts/test-group-chat-unit/section-h-outbox-consistency.ts +30 -0
  1244. package/scripts/test-group-chat-unit/section-i-read-idempotency.ts +24 -0
  1245. package/scripts/test-group-chat-unit/section-j-permission-scope.ts +150 -0
  1246. package/scripts/test-group-chat-unit.ts +35 -0
  1247. package/scripts/test-hitl-decision.ts +526 -0
  1248. package/scripts/test-hitl-legacy-channel-auth.ts +143 -0
  1249. package/scripts/test-lane-history-live.mjs +30 -7
  1250. package/scripts/test-memory-vector.ts +10 -0
  1251. package/scripts/test-orchestration.ts +7 -2
  1252. package/scripts/test-persistence-lazy.ts +7 -1
  1253. package/scripts/test-prompt-system.mjs +46 -20
  1254. package/scripts/test-route-reason.mjs +9 -2
  1255. package/scripts/test-schedule-runtime.ts +309 -0
  1256. package/scripts/test-scheduler-loop/lib.ts +321 -0
  1257. package/scripts/test-scheduler-loop/main.ts +40 -0
  1258. package/scripts/test-scheduler-loop/scenarios-modes.ts +95 -0
  1259. package/scripts/test-scheduler-loop/scenarios-runtime.ts +58 -0
  1260. package/scripts/test-scheduler-loop/scenarios-supervise.ts +183 -0
  1261. package/scripts/test-scheduler-loop/scenarios-triage.ts +102 -0
  1262. package/scripts/test-scheduler-loop.ts +5 -460
  1263. package/scripts/test-supervision-watchdog.ts +105 -0
  1264. package/scripts/test-task-engine.ts +27 -5
  1265. package/scripts/test-task-lease-fencing.ts +154 -0
  1266. package/scripts/test-terminal-e2e.mjs +9 -3
  1267. package/scripts/three-system-e2e/lib.mjs +79 -0
  1268. package/scripts/three-system-e2e/main.mjs +40 -0
  1269. package/scripts/three-system-e2e/phases/phase-0-user-token.mjs +42 -0
  1270. package/scripts/three-system-e2e/phases/phase-0a2-line-autoselect.mjs +35 -0
  1271. package/scripts/three-system-e2e/phases/phase-0b-fixture-grants.mjs +39 -0
  1272. package/scripts/three-system-e2e/phases/phase-0c-plugin-outbound-auth.mjs +95 -0
  1273. package/scripts/three-system-e2e/phases/stage-1-health.mjs +47 -0
  1274. package/scripts/three-system-e2e/phases/stage-2-5-team-plugins.mjs +84 -0
  1275. package/scripts/three-system-e2e/phases/stage-2-teams-tools-hitl.mjs +184 -0
  1276. package/scripts/three-system-e2e/phases/stage-3-diag.mjs +73 -0
  1277. package/scripts/three-system-e2e/phases/stage-4-plugin-toggle.mjs +53 -0
  1278. package/scripts/three-system-e2e/state.mjs +87 -0
  1279. package/scripts/three-system-e2e.mjs +24 -646
  1280. package/scripts/typecheck.mjs +75 -0
  1281. package/scripts/ui/lib.mjs +14 -2
  1282. package/scripts/ui/smoke-refactor.mjs +258 -0
  1283. package/scripts/verify-a2a-live.mjs +15 -1
  1284. package/scripts/verify-ws-events.mjs +19 -1
  1285. package/server/api/system/monitor/terminal/ws.ts +51 -1
  1286. package/server/api/workshop/agent-tools/approvals/[id]/decide.post.ts +59 -5
  1287. package/server/api/workshop/agent-tools/approvals/index.get.ts +28 -3
  1288. package/server/api/workshop/channel-templates/[id]/instantiate.post.ts +6 -1
  1289. package/server/api/workshop/channels/[id]/chat/messages/[messageId]/read.post.ts +22 -0
  1290. package/server/api/workshop/channels/[id]/chat/messages/index.get.ts +29 -0
  1291. package/server/api/workshop/channels/[id]/chat/messages/index.post.ts +51 -0
  1292. package/server/api/workshop/channels/[id]/chat/permissions.get.ts +35 -0
  1293. package/server/api/workshop/channels/[id]/index.patch.ts +34 -8
  1294. package/server/api/workshop/channels/[id]/members/[userId]/approve.post.ts +20 -0
  1295. package/server/api/workshop/channels/[id]/members/[userId].delete.ts +21 -0
  1296. package/server/api/workshop/channels/[id]/members/index.get.ts +23 -0
  1297. package/server/api/workshop/channels/[id]/members/join.post.ts +30 -0
  1298. package/server/api/workshop/channels/[id]/members/leave.post.ts +20 -0
  1299. package/server/api/workshop/channels/[id]/messages/index.post.ts +3 -0
  1300. package/server/api/workshop/channels/[id]/tasks/index.post.ts +8 -0
  1301. package/server/api/workshop/channels.get.ts +21 -1
  1302. package/server/api/workshop/hitl/pending.get.ts +27 -7
  1303. package/server/api/workshop/hitl/respond.post.ts +86 -89
  1304. package/server/api/workshop/notifications/index.get.ts +60 -0
  1305. package/server/api/workshop/notifications/read.post.ts +31 -0
  1306. package/server/api/workshop/schedules/[id]/run.post.ts +15 -0
  1307. package/server/api/workshop/schedules/[id]/runs.get.ts +15 -0
  1308. package/server/api/workshop/schedules/[id].delete.ts +14 -0
  1309. package/server/api/workshop/schedules/[id].get.ts +13 -0
  1310. package/server/api/workshop/schedules/[id].patch.ts +29 -0
  1311. package/server/api/workshop/schedules/index.get.ts +12 -0
  1312. package/server/api/workshop/schedules/index.post.ts +32 -0
  1313. package/server/api/workshop/tasks/[id]/reassign.post.ts +32 -0
  1314. package/server/api/workshop/tasks/[id]/update.post.ts +35 -0
  1315. package/server/api/workshop/tasks/[id].get.ts +15 -6
  1316. package/server/api/workshop/ws/audience.ts +56 -0
  1317. package/server/api/workshop/ws/db-buffer.ts +68 -0
  1318. package/server/api/workshop/ws/event-mapping.ts +47 -0
  1319. package/server/api/workshop/ws/handlers.ts +132 -0
  1320. package/server/api/workshop/ws/hub.ts +133 -0
  1321. package/server/api/workshop/ws/index.ts +23 -0
  1322. package/server/api/workshop/ws/notification-uplink.ts +77 -0
  1323. package/server/api/workshop/ws/peer-sub.ts +128 -0
  1324. package/server/api/workshop/ws/publish.ts +122 -0
  1325. package/server/api/workshop/ws/shared.ts +94 -0
  1326. package/server/api/workshop/ws/streams.ts +146 -0
  1327. package/server/api/workshop/ws/subscriptions.ts +137 -0
  1328. package/server/plugins/workshop.ts +30 -0
  1329. package/server/plugins-builtin/diag-bridge/host/constants.mjs +25 -0
  1330. package/server/plugins-builtin/diag-bridge/host/diagnosis.mjs +56 -0
  1331. package/server/plugins-builtin/diag-bridge/host/helpers.mjs +126 -0
  1332. package/server/plugins-builtin/diag-bridge/host/index.mjs +15 -0
  1333. package/server/plugins-builtin/diag-bridge/host/plugin.mjs +296 -0
  1334. package/server/plugins-builtin/diag-bridge/host/snapshot.mjs +93 -0
  1335. package/server/plugins-builtin/diag-bridge/host/sweep.mjs +51 -0
  1336. package/server/plugins-builtin/diag-bridge/index.mjs +6 -605
  1337. package/server/repositories/user.repository.ts +13 -0
  1338. package/server/services/system-config/contracts.ts +29 -0
  1339. package/server/services/system-config/dispose.ts +19 -0
  1340. package/server/services/system-config/facade.ts +26 -0
  1341. package/server/services/system-config/groups.ts +108 -0
  1342. package/server/services/system-config/helpers.ts +41 -0
  1343. package/server/services/system-config/index.ts +21 -0
  1344. package/server/services/system-config/init.ts +26 -0
  1345. package/server/services/system-config/mutate.ts +103 -0
  1346. package/server/services/system-config/plugins.ts +104 -0
  1347. package/server/services/system-config/recompute.ts +66 -0
  1348. package/server/services/system-config/snapshot.ts +59 -0
  1349. package/server/services/system-config/state.ts +79 -0
  1350. package/server/services/system-config/types.ts +58 -0
  1351. package/server/services/workshop/agents/adapters/line-spawn.ts +2 -2
  1352. package/server/services/workshop/agents/adapters/omp-rpc-client/api.ts +111 -0
  1353. package/server/services/workshop/agents/adapters/omp-rpc-client/contracts.ts +22 -0
  1354. package/server/services/workshop/agents/adapters/omp-rpc-client/facade.ts +7 -0
  1355. package/server/services/workshop/agents/adapters/omp-rpc-client/frames.ts +111 -0
  1356. package/server/services/workshop/agents/adapters/omp-rpc-client/helpers.ts +38 -0
  1357. package/server/services/workshop/agents/adapters/omp-rpc-client/index.ts +25 -0
  1358. package/server/services/workshop/agents/adapters/omp-rpc-client/start.ts +70 -0
  1359. package/server/services/workshop/agents/adapters/omp-rpc-client/state.ts +65 -0
  1360. package/server/services/workshop/agents/adapters/omp-rpc-client/stdout.ts +92 -0
  1361. package/server/services/workshop/agents/adapters/omp-rpc-client/types.ts +115 -0
  1362. package/server/services/workshop/agents/adapters/omp-rpc-client/usage.ts +47 -0
  1363. package/server/services/workshop/agents/agent-interface.ts +52 -4
  1364. package/server/services/workshop/agents/base-agent.ts +36 -8
  1365. package/server/services/workshop/agents/claude-agent.ts +5 -0
  1366. package/server/services/workshop/agents/codex-agent/client.ts +170 -0
  1367. package/server/services/workshop/agents/codex-agent/core.ts +119 -0
  1368. package/server/services/workshop/agents/codex-agent/facade.ts +8 -0
  1369. package/server/services/workshop/agents/codex-agent/helpers.ts +13 -0
  1370. package/server/services/workshop/agents/codex-agent/hitl.ts +138 -0
  1371. package/server/services/workshop/agents/codex-agent/index.ts +14 -0
  1372. package/server/services/workshop/agents/codex-agent/turn.ts +367 -0
  1373. package/server/services/workshop/agents/codex-agent/types.ts +42 -0
  1374. package/server/services/workshop/agents/dsh-agent.ts +5 -0
  1375. package/server/services/workshop/agents/harness-availability.ts +127 -127
  1376. package/server/services/workshop/agents/harness-terminal/api.ts +197 -0
  1377. package/server/services/workshop/agents/harness-terminal/index.ts +17 -0
  1378. package/server/services/workshop/agents/harness-terminal/io.ts +120 -0
  1379. package/server/services/workshop/agents/harness-terminal/park.ts +55 -0
  1380. package/server/services/workshop/agents/harness-terminal/sanitize.ts +98 -0
  1381. package/server/services/workshop/agents/harness-terminal/session.ts +124 -0
  1382. package/server/services/workshop/agents/harness-terminal/shared.ts +74 -0
  1383. package/server/services/workshop/agents/hermes-agent.ts +5 -0
  1384. package/server/services/workshop/agents/hitl-capabilities.ts +312 -0
  1385. package/server/services/workshop/agents/hitl-decision/answers.ts +27 -0
  1386. package/server/services/workshop/agents/hitl-decision/decide.ts +268 -0
  1387. package/server/services/workshop/agents/hitl-decision/dispatcher.ts +81 -0
  1388. package/server/services/workshop/agents/hitl-decision/index.ts +24 -0
  1389. package/server/services/workshop/agents/hitl-decision/payload.ts +45 -0
  1390. package/server/services/workshop/agents/hitl-decision/reconcile.ts +70 -0
  1391. package/server/services/workshop/agents/hitl-decision/shared.ts +106 -0
  1392. package/server/services/workshop/agents/hitl-decision/visibility.ts +94 -0
  1393. package/server/services/workshop/agents/hitl-registry.ts +403 -7
  1394. package/server/services/workshop/agents/host-tool-bridge/catalog.ts +78 -0
  1395. package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +167 -0
  1396. package/server/services/workshop/agents/host-tool-bridge/index.ts +15 -0
  1397. package/server/services/workshop/agents/host-tool-bridge/session.ts +22 -0
  1398. package/server/services/workshop/agents/host-tool-bridge/tools/industrial.ts +64 -0
  1399. package/server/services/workshop/agents/host-tool-bridge/tools/memory.ts +44 -0
  1400. package/server/services/workshop/agents/host-tool-bridge/tools/messaging.ts +182 -0
  1401. package/server/services/workshop/agents/host-tool-bridge/tools/progress.ts +84 -0
  1402. package/server/services/workshop/agents/host-tool-bridge/tools/tasks.ts +120 -0
  1403. package/server/services/workshop/agents/host-tool-bridge/tools/team.ts +70 -0
  1404. package/server/services/workshop/agents/host-tool-bridge/types.ts +31 -0
  1405. package/server/services/workshop/agents/industrial/aml-dataset-tools.ts +276 -0
  1406. package/server/services/workshop/agents/industrial/aml-job-tools.ts +363 -0
  1407. package/server/services/workshop/agents/industrial/daq-tools.ts +251 -0
  1408. package/server/services/workshop/agents/industrial/dcw-judge-tools.ts +153 -0
  1409. package/server/services/workshop/agents/industrial/dcw-tools.ts +213 -0
  1410. package/server/services/workshop/agents/industrial/index.ts +24 -0
  1411. package/server/services/workshop/agents/industrial/ops-tools.ts +382 -0
  1412. package/server/services/workshop/agents/industrial/param-tools.ts +172 -0
  1413. package/server/services/workshop/agents/industrial/twin-tools.ts +250 -0
  1414. package/server/services/workshop/agents/mock-agent.ts +136 -12
  1415. package/server/services/workshop/agents/omp-agent/client.ts +116 -0
  1416. package/server/services/workshop/agents/omp-agent/context-governance.ts +204 -0
  1417. package/server/services/workshop/agents/omp-agent/core.ts +146 -0
  1418. package/server/services/workshop/agents/omp-agent/event-mapping.ts +142 -0
  1419. package/server/services/workshop/agents/omp-agent/facade.ts +8 -0
  1420. package/server/services/workshop/agents/omp-agent/helpers.ts +37 -0
  1421. package/server/services/workshop/agents/omp-agent/index.ts +16 -0
  1422. package/server/services/workshop/agents/omp-agent/lifecycle.ts +80 -0
  1423. package/server/services/workshop/agents/omp-agent/tools-steer.ts +487 -0
  1424. package/server/services/workshop/agents/omp-agent/types.ts +45 -0
  1425. package/server/services/workshop/agents/opencode-agent/core.ts +77 -0
  1426. package/server/services/workshop/agents/opencode-agent/engine-agnostic.ts +274 -0
  1427. package/server/services/workshop/agents/opencode-agent/facade.ts +8 -0
  1428. package/server/services/workshop/agents/opencode-agent/helpers.ts +29 -0
  1429. package/server/services/workshop/agents/opencode-agent/hitl.ts +113 -0
  1430. package/server/services/workshop/agents/opencode-agent/index.ts +16 -0
  1431. package/server/services/workshop/agents/opencode-agent/lifecycle.ts +44 -0
  1432. package/server/services/workshop/agents/opencode-agent/server.ts +244 -0
  1433. package/server/services/workshop/agents/opencode-agent/turn.ts +278 -0
  1434. package/server/services/workshop/agents/opencode-agent/types.ts +54 -0
  1435. package/server/services/workshop/agents/prompt-builder.ts +16 -6
  1436. package/server/services/workshop/agents/qwen-agent.ts +6 -2
  1437. package/server/services/workshop/agents/registry.ts +32 -2
  1438. package/server/services/workshop/aml/job-orchestrator/broadcast.ts +37 -0
  1439. package/server/services/workshop/aml/job-orchestrator/control.ts +94 -0
  1440. package/server/services/workshop/aml/job-orchestrator/failure.ts +77 -0
  1441. package/server/services/workshop/aml/job-orchestrator/index.ts +22 -0
  1442. package/server/services/workshop/aml/job-orchestrator/process.ts +100 -0
  1443. package/server/services/workshop/aml/job-orchestrator/shared.ts +51 -0
  1444. package/server/services/workshop/aml/job-orchestrator/stages.ts +96 -0
  1445. package/server/services/workshop/aml/job-orchestrator/start-job.ts +140 -0
  1446. package/server/services/workshop/aml/job-orchestrator/status.ts +20 -0
  1447. package/server/services/workshop/aml/job-orchestrator/submit.ts +120 -0
  1448. package/server/services/workshop/aml/job-orchestrator/tick.ts +37 -0
  1449. package/server/services/workshop/aml/python/__pycache__/amlkit.cpython-312.pyc +0 -0
  1450. package/server/services/workshop/aml/python/amlkit.py +185 -120
  1451. package/server/services/workshop/aml/python/requirements.txt +9 -7
  1452. package/server/services/workshop/aml/python/train-hybrid-example.py +87 -0
  1453. package/server/services/workshop/aml/twin/acceptance.ts +68 -0
  1454. package/server/services/workshop/aml/twin/calibration-scheduler.ts +48 -0
  1455. package/server/services/workshop/aml/twin/channel-profile.ts +43 -0
  1456. package/server/services/workshop/aml/twin/contracts.ts +215 -0
  1457. package/server/services/workshop/aml/twin/physics-runtime.ts +165 -0
  1458. package/server/services/workshop/aml/twin/repo.ts +31 -0
  1459. package/server/services/workshop/aml/twin/snapshot-service.ts +81 -0
  1460. package/server/services/workshop/aml/twin/trial-service.ts +89 -0
  1461. package/server/services/workshop/aml/twin/uq-ood.ts +66 -0
  1462. package/server/services/workshop/daq/daq-controller/contracts.ts +39 -0
  1463. package/server/services/workshop/daq/daq-controller/crud.ts +202 -0
  1464. package/server/services/workshop/daq/daq-controller/driver-probe.ts +64 -0
  1465. package/server/services/workshop/daq/daq-controller/facade.ts +28 -0
  1466. package/server/services/workshop/daq/daq-controller/frames.ts +137 -0
  1467. package/server/services/workshop/daq/daq-controller/helpers.ts +52 -0
  1468. package/server/services/workshop/daq/daq-controller/index.ts +22 -0
  1469. package/server/services/workshop/daq/daq-controller/ingest.ts +189 -0
  1470. package/server/services/workshop/daq/daq-controller/runtime-control.ts +72 -0
  1471. package/server/services/workshop/daq/daq-controller/state.ts +194 -0
  1472. package/server/services/workshop/daq/daq-controller/sweep-alarms.ts +164 -0
  1473. package/server/services/workshop/daq/daq-controller/tsdb-twin.ts +138 -0
  1474. package/server/services/workshop/daq/daq-controller/types.ts +68 -0
  1475. package/server/services/workshop/daq/daq-controller/views.ts +84 -0
  1476. package/server/services/workshop/daq/drivers/http.ts +95 -0
  1477. package/server/services/workshop/daq/drivers/index.ts +29 -0
  1478. package/server/services/workshop/daq/drivers/mock.ts +130 -0
  1479. package/server/services/workshop/daq/drivers/modbus-rtu.ts +67 -0
  1480. package/server/services/workshop/daq/drivers/modbus-tcp.ts +307 -0
  1481. package/server/services/workshop/daq/drivers/mqtt.ts +182 -0
  1482. package/server/services/workshop/daq/drivers/opcua.ts +227 -0
  1483. package/server/services/workshop/daq/drivers/registry.ts +144 -0
  1484. package/server/services/workshop/daq/drivers/s7-stub.ts +29 -0
  1485. package/server/services/workshop/daq/drivers/shared.ts +60 -0
  1486. package/server/services/workshop/db/channel-member.repo.ts +122 -0
  1487. package/server/services/workshop/db/channel.repo.ts +93 -8
  1488. package/server/services/workshop/db/chat-message.repo.ts +233 -0
  1489. package/server/services/workshop/db/database/index.ts +18 -0
  1490. package/server/services/workshop/db/database/json.ts +14 -0
  1491. package/server/services/workshop/db/database/migrations.ts +367 -0
  1492. package/server/services/workshop/db/database/open.ts +76 -0
  1493. package/server/services/workshop/db/database/rows.ts +374 -0
  1494. package/server/services/workshop/db/database/schema.ts +651 -0
  1495. package/server/services/workshop/db/database/seed-data.ts +60 -0
  1496. package/server/services/workshop/db/database/seed.ts +145 -0
  1497. package/server/services/workshop/db/hitl-request.repo.ts +221 -0
  1498. package/server/services/workshop/db/notification.repo.ts +199 -0
  1499. package/server/services/workshop/db/outbox.repo.ts +127 -0
  1500. package/server/services/workshop/db/scheduled-task.repo.ts +235 -0
  1501. package/server/services/workshop/db/schema.sql +185 -0
  1502. package/server/services/workshop/db/task.repo.ts +185 -69
  1503. package/server/services/workshop/db/transaction.ts +72 -0
  1504. package/server/services/workshop/dcw/dcw-controller/actuation.ts +127 -0
  1505. package/server/services/workshop/dcw/dcw-controller/bindings.ts +83 -0
  1506. package/server/services/workshop/dcw/dcw-controller/contracts.ts +16 -0
  1507. package/server/services/workshop/dcw/dcw-controller/control.ts +78 -0
  1508. package/server/services/workshop/dcw/dcw-controller/crud.ts +152 -0
  1509. package/server/services/workshop/dcw/dcw-controller/facade.ts +19 -0
  1510. package/server/services/workshop/dcw/dcw-controller/helpers.ts +57 -0
  1511. package/server/services/workshop/dcw/dcw-controller/index.ts +22 -0
  1512. package/server/services/workshop/dcw/dcw-controller/lines.ts +213 -0
  1513. package/server/services/workshop/dcw/dcw-controller/params.ts +97 -0
  1514. package/server/services/workshop/dcw/dcw-controller/products.ts +103 -0
  1515. package/server/services/workshop/dcw/dcw-controller/recipes.ts +137 -0
  1516. package/server/services/workshop/dcw/dcw-controller/state.ts +66 -0
  1517. package/server/services/workshop/dcw/dcw-controller/types.ts +57 -0
  1518. package/server/services/workshop/dcw/dcw-controller/write.ts +147 -0
  1519. package/server/services/workshop/dcw/dcw-node.ts +8 -0
  1520. package/server/services/workshop/dcw/drivers/http.ts +66 -0
  1521. package/server/services/workshop/dcw/drivers/index.ts +26 -0
  1522. package/server/services/workshop/dcw/drivers/mock.ts +44 -0
  1523. package/server/services/workshop/dcw/drivers/modbus-rtu.ts +93 -0
  1524. package/server/services/workshop/dcw/drivers/modbus.ts +139 -0
  1525. package/server/services/workshop/dcw/drivers/mqtt.ts +108 -0
  1526. package/server/services/workshop/dcw/drivers/opcua.ts +110 -0
  1527. package/server/services/workshop/dcw/drivers/registry.ts +118 -0
  1528. package/server/services/workshop/dcw/drivers/shared.ts +113 -0
  1529. package/server/services/workshop/dcw/recipe-rollback-manager/contracts.ts +26 -0
  1530. package/server/services/workshop/dcw/recipe-rollback-manager/facade.ts +13 -0
  1531. package/server/services/workshop/dcw/recipe-rollback-manager/helpers.ts +30 -0
  1532. package/server/services/workshop/dcw/recipe-rollback-manager/index.ts +17 -0
  1533. package/server/services/workshop/dcw/recipe-rollback-manager/internal.ts +33 -0
  1534. package/server/services/workshop/dcw/recipe-rollback-manager/judge.ts +52 -0
  1535. package/server/services/workshop/dcw/recipe-rollback-manager/lock.ts +137 -0
  1536. package/server/services/workshop/dcw/recipe-rollback-manager/rollback.ts +190 -0
  1537. package/server/services/workshop/dcw/recipe-rollback-manager/state.ts +21 -0
  1538. package/server/services/workshop/dcw/recipe-rollback-manager/sweep.ts +77 -0
  1539. package/server/services/workshop/dcw/recipe-rollback-manager/types.ts +3 -0
  1540. package/server/services/workshop/dcw/recipe-rollback-manager/views.ts +214 -0
  1541. package/server/services/workshop/plugins/host/api.mjs +90 -0
  1542. package/server/services/workshop/plugins/host/config.mjs +135 -0
  1543. package/server/services/workshop/plugins/host/index.mjs +23 -0
  1544. package/server/services/workshop/plugins/host/init.mjs +101 -0
  1545. package/server/services/workshop/plugins/host/load.mjs +321 -0
  1546. package/server/services/workshop/plugins/host/reload.mjs +94 -0
  1547. package/server/services/workshop/plugins/host/rollback.mjs +72 -0
  1548. package/server/services/workshop/plugins/host/services.mjs +58 -0
  1549. package/server/services/workshop/plugins/host/state.mjs +54 -0
  1550. package/server/services/workshop/plugins/host/toggle.mjs +64 -0
  1551. package/server/services/workshop/plugins/host.mjs +6 -890
  1552. package/server/services/workshop/runtime/agent-runtime/contracts.ts +25 -0
  1553. package/server/services/workshop/runtime/agent-runtime/facade.ts +7 -0
  1554. package/server/services/workshop/runtime/agent-runtime/helpers.ts +18 -0
  1555. package/server/services/workshop/runtime/agent-runtime/index.ts +19 -0
  1556. package/server/services/workshop/runtime/agent-runtime/lifecycle.ts +119 -0
  1557. package/server/services/workshop/runtime/agent-runtime/message.ts +409 -0
  1558. package/server/services/workshop/runtime/agent-runtime/state.ts +371 -0
  1559. package/server/services/workshop/runtime/agent-runtime/supervise.ts +188 -0
  1560. package/server/services/workshop/runtime/agent-runtime/types.ts +186 -0
  1561. package/server/services/workshop/runtime/channel-runtime.ts +7 -0
  1562. package/server/services/workshop/runtime/chat-mention.ts +164 -0
  1563. package/server/services/workshop/runtime/chat-projection.ts +246 -0
  1564. package/server/services/workshop/runtime/execution-mode.ts +11 -2
  1565. package/server/services/workshop/runtime/manager/a2a.ts +283 -0
  1566. package/server/services/workshop/runtime/manager/access.ts +483 -0
  1567. package/server/services/workshop/runtime/manager/admin-agents.ts +268 -0
  1568. package/server/services/workshop/runtime/manager/admin-channel.ts +276 -0
  1569. package/server/services/workshop/runtime/manager/bus.ts +182 -0
  1570. package/server/services/workshop/runtime/manager/channel-templates.ts +171 -0
  1571. package/server/services/workshop/runtime/manager/chat-reply.ts +181 -0
  1572. package/server/services/workshop/runtime/manager/chat.ts +384 -0
  1573. package/server/services/workshop/runtime/manager/contracts.ts +210 -0
  1574. package/server/services/workshop/runtime/manager/facade.ts +24 -0
  1575. package/server/services/workshop/runtime/manager/helpers.ts +119 -0
  1576. package/server/services/workshop/runtime/manager/host-tools.ts +249 -0
  1577. package/server/services/workshop/runtime/manager/index.ts +42 -0
  1578. package/server/services/workshop/runtime/manager/internal.ts +73 -0
  1579. package/server/services/workshop/runtime/manager/lead-team.ts +161 -0
  1580. package/server/services/workshop/runtime/manager/notifications.ts +108 -0
  1581. package/server/services/workshop/runtime/manager/runtime-observe.ts +300 -0
  1582. package/server/services/workshop/runtime/manager/runtime-wiring.ts +307 -0
  1583. package/server/services/workshop/runtime/manager/schedules.ts +302 -0
  1584. package/server/services/workshop/runtime/manager/state.ts +644 -0
  1585. package/server/services/workshop/runtime/manager/tasks.ts +518 -0
  1586. package/server/services/workshop/runtime/manager/teams.ts +148 -0
  1587. package/server/services/workshop/runtime/manager/types.ts +245 -0
  1588. package/server/services/workshop/runtime/manager/workspace.ts +136 -0
  1589. package/server/services/workshop/runtime/memory/contracts.ts +18 -0
  1590. package/server/services/workshop/runtime/memory/facade.ts +10 -0
  1591. package/server/services/workshop/runtime/memory/governance.ts +184 -0
  1592. package/server/services/workshop/runtime/memory/helpers.ts +196 -0
  1593. package/server/services/workshop/runtime/memory/index.ts +27 -0
  1594. package/server/services/workshop/runtime/memory/recall.ts +216 -0
  1595. package/server/services/workshop/runtime/memory/score.ts +33 -0
  1596. package/server/services/workshop/runtime/memory/state.ts +40 -0
  1597. package/server/services/workshop/runtime/memory/types.ts +44 -0
  1598. package/server/services/workshop/runtime/memory/write.ts +93 -0
  1599. package/server/services/workshop/runtime/permission-scope.ts +81 -0
  1600. package/server/services/workshop/runtime/schedule-runtime.ts +320 -0
  1601. package/server/services/workshop/runtime/scheduler-loop/contracts.ts +29 -0
  1602. package/server/services/workshop/runtime/scheduler-loop/execute.ts +295 -0
  1603. package/server/services/workshop/runtime/scheduler-loop/facade.ts +7 -0
  1604. package/server/services/workshop/runtime/scheduler-loop/helpers.ts +14 -0
  1605. package/server/services/workshop/runtime/scheduler-loop/index.ts +16 -0
  1606. package/server/services/workshop/runtime/scheduler-loop/rules.ts +131 -0
  1607. package/server/services/workshop/runtime/scheduler-loop/snapshot.ts +99 -0
  1608. package/server/services/workshop/runtime/scheduler-loop/state.ts +150 -0
  1609. package/server/services/workshop/runtime/scheduler-loop/tick.ts +157 -0
  1610. package/server/services/workshop/runtime/scheduler-loop/types.ts +50 -0
  1611. package/server/services/workshop/runtime/task-engine/contracts.ts +16 -0
  1612. package/server/services/workshop/runtime/task-engine/create.ts +145 -0
  1613. package/server/services/workshop/runtime/task-engine/facade.ts +7 -0
  1614. package/server/services/workshop/runtime/task-engine/helpers.ts +87 -0
  1615. package/server/services/workshop/runtime/task-engine/index.ts +15 -0
  1616. package/server/services/workshop/runtime/task-engine/lease.ts +79 -0
  1617. package/server/services/workshop/runtime/task-engine/lifecycle.ts +308 -0
  1618. package/server/services/workshop/runtime/task-engine/policy.ts +113 -0
  1619. package/server/services/workshop/runtime/task-engine/transition.ts +146 -0
  1620. package/server/services/workshop/runtime/task-engine/types.ts +3 -0
  1621. package/server/services/workshop/runtime/task-engine/update.ts +116 -0
  1622. package/server/services/workshop/runtime/task-engine/views.ts +169 -0
  1623. package/server/services/workshop/runtime/user-notification-hub.ts +192 -0
  1624. package/server/services/workshop/settings.ts +32 -0
  1625. package/server/services/workshop/types/task.ts +85 -0
  1626. package/server/utils/errors.ts +2 -0
  1627. package/server/utils/mojibake-guard.ts +29 -0
  1628. package/shared/config/schema.json +12 -0
  1629. package/shared/dcw-protocol/catalog.ts +203 -0
  1630. package/shared/dcw-protocol/closed-loop.ts +137 -0
  1631. package/shared/dcw-protocol/index.ts +19 -0
  1632. package/shared/dcw-protocol/line.ts +131 -0
  1633. package/shared/dcw-protocol/recipe.ts +301 -0
  1634. package/shared/workshop-protocol.ts +327 -5
  1635. package/tui/aw-tui.mjs +27 -6
  1636. package/tui/lib/pickers.mjs +21 -2
  1637. package/.output/public/_nuxt/4sIEbgcl.js +0 -42
  1638. package/.output/public/_nuxt/B7gZokg82.js +0 -209
  1639. package/.output/public/_nuxt/B8uy9iRW.js +0 -1
  1640. package/.output/public/_nuxt/BC9wjTJK2.js +0 -4
  1641. package/.output/public/_nuxt/BCGafdXT.js +0 -2
  1642. package/.output/public/_nuxt/BDmh31hl.js +0 -1
  1643. package/.output/public/_nuxt/BFjGV-RV2.js +0 -4108
  1644. package/.output/public/_nuxt/BGTYYQH-.js +0 -1
  1645. package/.output/public/_nuxt/BHA40aHa.js +0 -1
  1646. package/.output/public/_nuxt/BJHKLJJU.js +0 -1
  1647. package/.output/public/_nuxt/BN6iuJEg2.js +0 -1
  1648. package/.output/public/_nuxt/BU83-NnX.js +0 -106
  1649. package/.output/public/_nuxt/BUmHEJ77.js +0 -2
  1650. package/.output/public/_nuxt/BY7YrV_D.js +0 -1
  1651. package/.output/public/_nuxt/BYhEUx8t.js +0 -17
  1652. package/.output/public/_nuxt/BneN7fbu.js +0 -75
  1653. package/.output/public/_nuxt/Bqcgz95s.js +0 -18
  1654. package/.output/public/_nuxt/C3J6FYKa.js +0 -1
  1655. package/.output/public/_nuxt/C3gwHTz0.js +0 -1
  1656. package/.output/public/_nuxt/C4DWUZ6d2.js +0 -1
  1657. package/.output/public/_nuxt/C7UlqPeD.js +0 -1
  1658. package/.output/public/_nuxt/CClOy-Hz2.js +0 -1
  1659. package/.output/public/_nuxt/CFxtLwjp.js +0 -1
  1660. package/.output/public/_nuxt/CS50LB_l.js +0 -1
  1661. package/.output/public/_nuxt/CSkxz2NX.js +0 -3
  1662. package/.output/public/_nuxt/CTmDn-YP.js +0 -1
  1663. package/.output/public/_nuxt/CWoJjWmZ.js +0 -1
  1664. package/.output/public/_nuxt/CYWVXZTS2.js +0 -7
  1665. package/.output/public/_nuxt/C__m4EhR.js +0 -1
  1666. package/.output/public/_nuxt/CoNpEq5X.js +0 -1
  1667. package/.output/public/_nuxt/Crod5z2f.js +0 -1
  1668. package/.output/public/_nuxt/Cs8pVeVG.js +0 -1
  1669. package/.output/public/_nuxt/CssgYAAL2.js +0 -1
  1670. package/.output/public/_nuxt/CzlMDL5H.js +0 -13
  1671. package/.output/public/_nuxt/D0ZBQrN_2.js +0 -1
  1672. package/.output/public/_nuxt/D6uzXueg.js +0 -2
  1673. package/.output/public/_nuxt/D98NH8kG.js +0 -1
  1674. package/.output/public/_nuxt/D9Oidm5I.js +0 -1
  1675. package/.output/public/_nuxt/DBHNsT1Y.js +0 -23
  1676. package/.output/public/_nuxt/DDgJcSET.js +0 -19
  1677. package/.output/public/_nuxt/DGIuvyRN2.js +0 -1
  1678. package/.output/public/_nuxt/DGj-WEBg.js +0 -1
  1679. package/.output/public/_nuxt/DHFrCUxA2.js +0 -13
  1680. package/.output/public/_nuxt/DIaZ2PTo2.js +0 -1
  1681. package/.output/public/_nuxt/DKySmNPI.js +0 -14
  1682. package/.output/public/_nuxt/DPnwL14Y.js +0 -1
  1683. package/.output/public/_nuxt/DR12_WCA.js +0 -3
  1684. package/.output/public/_nuxt/DTFCy6h-.js +0 -1
  1685. package/.output/public/_nuxt/DYr1VMiQ.js +0 -6
  1686. package/.output/public/_nuxt/DZtm4l-P2.js +0 -1
  1687. package/.output/public/_nuxt/DdD9mCHM.js +0 -1
  1688. package/.output/public/_nuxt/DeyBFhKH2.js +0 -4
  1689. package/.output/public/_nuxt/Di0NY_ht.js +0 -1
  1690. package/.output/public/_nuxt/DkGQ7lnb2.js +0 -1
  1691. package/.output/public/_nuxt/DtYHUi5Z.js +0 -1
  1692. package/.output/public/_nuxt/Dz_Q3Lpw2.js +0 -1
  1693. package/.output/public/_nuxt/DzbFpZRk.js +0 -3
  1694. package/.output/public/_nuxt/EHlEMRii.js +0 -1
  1695. package/.output/public/_nuxt/Eke1fs-U.js +0 -1
  1696. package/.output/public/_nuxt/H0BcqZtT.js +0 -9
  1697. package/.output/public/_nuxt/HSYEkkce.js +0 -1
  1698. package/.output/public/_nuxt/IREZ1eC2.js +0 -1
  1699. package/.output/public/_nuxt/J9oU00D1.js +0 -1
  1700. package/.output/public/_nuxt/JCoYF4IJ.js +0 -31
  1701. package/.output/public/_nuxt/JTLM-kqr2.js +0 -1
  1702. package/.output/public/_nuxt/KZQX7xoM.js +0 -3
  1703. package/.output/public/_nuxt/OmpTerminalPanel.BxR5-lvi.css +0 -1
  1704. package/.output/public/_nuxt/RYFtK4qZ2.js +0 -1
  1705. package/.output/public/_nuxt/SSyAPaHc.js +0 -1
  1706. package/.output/public/_nuxt/TownView.li4EMQxK.css +0 -1
  1707. package/.output/public/_nuxt/VdLk4jLE2.js +0 -1
  1708. package/.output/public/_nuxt/YnQxK3eG.js +0 -1
  1709. package/.output/public/_nuxt/_id_.BhsXoEuk.css +0 -1
  1710. package/.output/public/_nuxt/_id_.DQyj-WKN.css +0 -1
  1711. package/.output/public/_nuxt/_wsId_.CTx-BlfF.css +0 -1
  1712. package/.output/public/_nuxt/aLLjF2K-2.js +0 -1
  1713. package/.output/public/_nuxt/aShsv_rG.js +0 -19
  1714. package/.output/public/_nuxt/aWWIh8YL.js +0 -24
  1715. package/.output/public/_nuxt/aesgXKSr.js +0 -4
  1716. package/.output/public/_nuxt/agents.B21nUEUX.css +0 -1
  1717. package/.output/public/_nuxt/aml.ekTjxFkf.css +0 -1
  1718. package/.output/public/_nuxt/builds/meta/b5506ef0-f48e-4f14-a6c0-d65e505d0b09.json +0 -1
  1719. package/.output/public/_nuxt/ca4TJ3Op.js +0 -1
  1720. package/.output/public/_nuxt/daq.BdVmoIfe.css +0 -1
  1721. package/.output/public/_nuxt/dcw.DCgyzpWV.css +0 -1
  1722. package/.output/public/_nuxt/default.Bh3L2HU8.css +0 -1
  1723. package/.output/public/_nuxt/entry.bdm0tv6M.css +0 -1
  1724. package/.output/public/_nuxt/jZsY8yYz.js +0 -1
  1725. package/.output/public/_nuxt/lHAxdSsj.js +0 -1
  1726. package/.output/public/_nuxt/logs.BpKzmKsh.css +0 -1
  1727. package/.output/public/_nuxt/monitor.D9pe7qN6.css +0 -1
  1728. package/.output/public/_nuxt/pages.j9rzRocr.css +0 -1
  1729. package/.output/public/_nuxt/pdk8jLGT.js +0 -1
  1730. package/.output/public/_nuxt/permissions.DwTVlFe6.css +0 -1
  1731. package/.output/public/_nuxt/plugins.DhiZbHU8.css +0 -1
  1732. package/.output/public/_nuxt/settings.BRx9rIDg.css +0 -1
  1733. package/.output/public/_nuxt/teams.BLlOPB_Z.css +0 -1
  1734. package/.output/public/_nuxt/tokens.De8xzszn.css +0 -1
  1735. package/.output/public/_nuxt/town.BLrD9-WH.css +0 -1
  1736. package/.output/public/_nuxt/users.DLgZ1D0h.css +0 -1
  1737. package/.output/public/_nuxt/vRTjoWqd.js +0 -1
  1738. package/.output/public/_nuxt/workshop.D1jFNkrn.css +0 -1
  1739. package/.output/public/_nuxt/xh3_vYcu.js +0 -1
  1740. package/.output/public/_nuxt/zq5t1vyX.js +0 -1
  1741. package/.output/server/chunks/build/Checkbox-eax2M3o-.mjs +0 -207
  1742. package/.output/server/chunks/build/Checkbox-eax2M3o-.mjs.map +0 -1
  1743. package/.output/server/chunks/build/OmpTerminalPanel-CVvxpsF7.mjs +0 -915
  1744. package/.output/server/chunks/build/OmpTerminalPanel-CVvxpsF7.mjs.map +0 -1
  1745. package/.output/server/chunks/build/PluginSlot-CcR4Ys3T.mjs +0 -400
  1746. package/.output/server/chunks/build/PluginSlot-CcR4Ys3T.mjs.map +0 -1
  1747. package/.output/server/chunks/build/TownView-CJ6IsDCc.mjs +0 -2791
  1748. package/.output/server/chunks/build/TownView-CJ6IsDCc.mjs.map +0 -1
  1749. package/.output/server/chunks/build/_id_-CVD_H0ir.mjs +0 -804
  1750. package/.output/server/chunks/build/_id_-CVD_H0ir.mjs.map +0 -1
  1751. package/.output/server/chunks/build/_id_-CtxMb3qp.mjs +0 -381
  1752. package/.output/server/chunks/build/_id_-CtxMb3qp.mjs.map +0 -1
  1753. package/.output/server/chunks/build/_wsId_-DpY3T-md.mjs +0 -10136
  1754. package/.output/server/chunks/build/_wsId_-DpY3T-md.mjs.map +0 -1
  1755. package/.output/server/chunks/build/agents-DsCkuXDV.mjs +0 -1114
  1756. package/.output/server/chunks/build/agents-DsCkuXDV.mjs.map +0 -1
  1757. package/.output/server/chunks/build/aml-CT0xKGKI.mjs +0 -605
  1758. package/.output/server/chunks/build/aml-CT0xKGKI.mjs.map +0 -1
  1759. package/.output/server/chunks/build/api-error-dul30BYQ.mjs +0 -47
  1760. package/.output/server/chunks/build/api-error-dul30BYQ.mjs.map +0 -1
  1761. package/.output/server/chunks/build/apiClient-BwnfOQU8.mjs +0 -81
  1762. package/.output/server/chunks/build/apiClient-BwnfOQU8.mjs.map +0 -1
  1763. package/.output/server/chunks/build/button-DEcZFcqN.mjs +0 -1938
  1764. package/.output/server/chunks/build/button-DEcZFcqN.mjs.map +0 -1
  1765. package/.output/server/chunks/build/card-Dipvaykh.mjs +0 -955
  1766. package/.output/server/chunks/build/card-Dipvaykh.mjs.map +0 -1
  1767. package/.output/server/chunks/build/channel-templates-Dla9FbYa.mjs +0 -847
  1768. package/.output/server/chunks/build/channel-templates-Dla9FbYa.mjs.map +0 -1
  1769. package/.output/server/chunks/build/checkbox-8fB-wI-T.mjs +0 -439
  1770. package/.output/server/chunks/build/checkbox-8fB-wI-T.mjs.map +0 -1
  1771. package/.output/server/chunks/build/client-only-D5BzSQc6.mjs +0 -43
  1772. package/.output/server/chunks/build/client-only-D5BzSQc6.mjs.map +0 -1
  1773. package/.output/server/chunks/build/daq-DWWSKGAV.mjs +0 -1059
  1774. package/.output/server/chunks/build/daq-DWWSKGAV.mjs.map +0 -1
  1775. package/.output/server/chunks/build/dcw-CT8k17_E.mjs +0 -250
  1776. package/.output/server/chunks/build/dcw-CT8k17_E.mjs.map +0 -1
  1777. package/.output/server/chunks/build/default-D3525UFX.mjs +0 -1487
  1778. package/.output/server/chunks/build/default-D3525UFX.mjs.map +0 -1
  1779. package/.output/server/chunks/build/drawer-Cmh90erI.mjs +0 -836
  1780. package/.output/server/chunks/build/drawer-Cmh90erI.mjs.map +0 -1
  1781. package/.output/server/chunks/build/dropdown-CGQ0KAzA.mjs +0 -14
  1782. package/.output/server/chunks/build/dropdown-CGQ0KAzA.mjs.map +0 -1
  1783. package/.output/server/chunks/build/dropdown-vhn1NPFs.mjs +0 -558
  1784. package/.output/server/chunks/build/dropdown-vhn1NPFs.mjs.map +0 -1
  1785. package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs +0 -21
  1786. package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs.map +0 -1
  1787. package/.output/server/chunks/build/input-number-DzpyYB99.mjs +0 -1521
  1788. package/.output/server/chunks/build/input-number-DzpyYB99.mjs.map +0 -1
  1789. package/.output/server/chunks/build/input-sf_BT6o6.mjs +0 -2617
  1790. package/.output/server/chunks/build/input-sf_BT6o6.mjs.map +0 -1
  1791. package/.output/server/chunks/build/logs--dByNyhw.mjs +0 -198
  1792. package/.output/server/chunks/build/logs--dByNyhw.mjs.map +0 -1
  1793. package/.output/server/chunks/build/menu-WCrlpYVh.mjs +0 -1950
  1794. package/.output/server/chunks/build/menu-WCrlpYVh.mjs.map +0 -1
  1795. package/.output/server/chunks/build/modal-yvUquPj5.mjs +0 -1272
  1796. package/.output/server/chunks/build/modal-yvUquPj5.mjs.map +0 -1
  1797. package/.output/server/chunks/build/monitor-Dh2Kvaq5.mjs +0 -2212
  1798. package/.output/server/chunks/build/monitor-Dh2Kvaq5.mjs.map +0 -1
  1799. package/.output/server/chunks/build/pages-BHcSBM2D.mjs +0 -518
  1800. package/.output/server/chunks/build/pages-BHcSBM2D.mjs.map +0 -1
  1801. package/.output/server/chunks/build/permissions-68SsNjex.mjs +0 -629
  1802. package/.output/server/chunks/build/permissions-68SsNjex.mjs.map +0 -1
  1803. package/.output/server/chunks/build/plugins-BNgIi61W.mjs +0 -246
  1804. package/.output/server/chunks/build/plugins-BNgIi61W.mjs.map +0 -1
  1805. package/.output/server/chunks/build/popconfirm-CRaHcz5O.mjs +0 -342
  1806. package/.output/server/chunks/build/popconfirm-CRaHcz5O.mjs.map +0 -1
  1807. package/.output/server/chunks/build/segmented-3TrWo0lS.mjs +0 -5047
  1808. package/.output/server/chunks/build/segmented-3TrWo0lS.mjs.map +0 -1
  1809. package/.output/server/chunks/build/select-D-CeE5vY.mjs +0 -3923
  1810. package/.output/server/chunks/build/select-D-CeE5vY.mjs.map +0 -1
  1811. package/.output/server/chunks/build/settings-ipYBDWdn.mjs +0 -1175
  1812. package/.output/server/chunks/build/settings-ipYBDWdn.mjs.map +0 -1
  1813. package/.output/server/chunks/build/space-CCBYAkXt.mjs +0 -197
  1814. package/.output/server/chunks/build/space-CCBYAkXt.mjs.map +0 -1
  1815. package/.output/server/chunks/build/spin-HVY81X_L.mjs +0 -358
  1816. package/.output/server/chunks/build/spin-HVY81X_L.mjs.map +0 -1
  1817. package/.output/server/chunks/build/switch-CelRXpcy.mjs +0 -377
  1818. package/.output/server/chunks/build/switch-CelRXpcy.mjs.map +0 -1
  1819. package/.output/server/chunks/build/table-BjSWwmic.mjs +0 -8883
  1820. package/.output/server/chunks/build/table-BjSWwmic.mjs.map +0 -1
  1821. package/.output/server/chunks/build/tabs-BM3tAh_J.mjs +0 -1925
  1822. package/.output/server/chunks/build/tabs-BM3tAh_J.mjs.map +0 -1
  1823. package/.output/server/chunks/build/tag-DNE9vXc0.mjs +0 -1029
  1824. package/.output/server/chunks/build/tag-DNE9vXc0.mjs.map +0 -1
  1825. package/.output/server/chunks/build/teams-5lx-CwFa.mjs +0 -1218
  1826. package/.output/server/chunks/build/teams-5lx-CwFa.mjs.map +0 -1
  1827. package/.output/server/chunks/build/tokens-q-IDT8Io.mjs +0 -908
  1828. package/.output/server/chunks/build/tokens-q-IDT8Io.mjs.map +0 -1
  1829. package/.output/server/chunks/build/town-BUqRobze.mjs +0 -52
  1830. package/.output/server/chunks/build/town-BUqRobze.mjs.map +0 -1
  1831. package/.output/server/chunks/build/town-QJWB5wng.mjs +0 -125
  1832. package/.output/server/chunks/build/town-QJWB5wng.mjs.map +0 -1
  1833. package/.output/server/chunks/build/useDaqStream-DfCFpb3p.mjs +0 -395
  1834. package/.output/server/chunks/build/useDaqStream-DfCFpb3p.mjs.map +0 -1
  1835. package/.output/server/chunks/build/useDcwStream-UPiX-3iO.mjs +0 -435
  1836. package/.output/server/chunks/build/useDcwStream-UPiX-3iO.mjs.map +0 -1
  1837. package/.output/server/chunks/build/useDeviceTwins-Yko6nNPF.mjs +0 -128
  1838. package/.output/server/chunks/build/useDeviceTwins-Yko6nNPF.mjs.map +0 -1
  1839. package/.output/server/chunks/build/useOpsLog-CO_VWh7t.mjs +0 -137
  1840. package/.output/server/chunks/build/useOpsLog-CO_VWh7t.mjs.map +0 -1
  1841. package/.output/server/chunks/build/useWorkshopApi-NyjL0L3j.mjs +0 -90
  1842. package/.output/server/chunks/build/useWorkshopApi-NyjL0L3j.mjs.map +0 -1
  1843. package/.output/server/chunks/build/useWorkshopWs-C_I7q9As.mjs +0 -1319
  1844. package/.output/server/chunks/build/useWorkshopWs-C_I7q9As.mjs.map +0 -1
  1845. package/.output/server/chunks/build/users-Cfd5-l2-.mjs +0 -561
  1846. package/.output/server/chunks/build/users-Cfd5-l2-.mjs.map +0 -1
  1847. package/.output/server/chunks/build/workshop-BIlCj_ZP.mjs +0 -931
  1848. package/.output/server/chunks/build/workshop-BIlCj_ZP.mjs.map +0 -1
  1849. package/.output/server/chunks/build/workspaces-Bgz5Ekwp.mjs +0 -139
  1850. package/.output/server/chunks/build/workspaces-Bgz5Ekwp.mjs.map +0 -1
  1851. package/scripts/test-agent-brain.ts +0 -135
  1852. package/scripts/test-game-session.ts +0 -160
  1853. package/scripts/test-protocol.ts +0 -156
  1854. package/scripts/verify-game.mjs +0 -477
  1855. package/server/api/workshop/ws.ts +0 -763
  1856. package/server/services/system-config.ts +0 -629
  1857. package/server/services/workshop/agents/adapters/omp-rpc-client.ts +0 -604
  1858. package/server/services/workshop/agents/codex-agent.ts +0 -743
  1859. package/server/services/workshop/agents/harness-terminal.ts +0 -625
  1860. package/server/services/workshop/agents/host-tool-bridge.ts +0 -714
  1861. package/server/services/workshop/agents/industrial-tools.ts +0 -1680
  1862. package/server/services/workshop/agents/omp-agent.ts +0 -1199
  1863. package/server/services/workshop/agents/opencode-agent.ts +0 -960
  1864. package/server/services/workshop/aml/job-orchestrator.ts +0 -639
  1865. package/server/services/workshop/daq/daq-controller.ts +0 -1284
  1866. package/server/services/workshop/daq/drivers.ts +0 -1196
  1867. package/server/services/workshop/db/database.ts +0 -1044
  1868. package/server/services/workshop/dcw/dcw-controller.ts +0 -1176
  1869. package/server/services/workshop/dcw/drivers.ts +0 -731
  1870. package/server/services/workshop/dcw/recipe-rollback-manager.ts +0 -713
  1871. package/server/services/workshop/runtime/agent-runtime.ts +0 -821
  1872. package/server/services/workshop/runtime/manager.ts +0 -3050
  1873. package/server/services/workshop/runtime/memory.ts +0 -681
  1874. package/server/services/workshop/runtime/scheduler-loop.ts +0 -799
  1875. package/server/services/workshop/runtime/task-engine.ts +0 -574
  1876. package/shared/dcw-protocol.ts +0 -747
  1877. /package/.output/public/_nuxt/{BrIJiJSN.js → BrIJiJSN2.js} +0 -0
  1878. /package/.output/public/_nuxt/{CNs_Ozdc2.js → CNs_Ozdc.js} +0 -0
  1879. /package/.output/public/_nuxt/{DIOBYJe3.js → DIOBYJe32.js} +0 -0
  1880. /package/.output/public/_nuxt/{lO5tpDZ5.js → lO5tpDZ52.js} +0 -0
@@ -1,927 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * scripts/e2e-full-closedloop.mjs —— AgentWorkShop 全链路端到端闭环验证
3
+ * AgentWorkShop 全链路闭环 E2E —— **入口薄壳**。
4
4
  *
5
- * 覆盖(全部走真实 HTTP / 真实构建产物,不打桩):
5
+ * 实现按职责拆到 ./e2e-closedloop/ 下(断言框架与 HTTP 辅助 / 共享上下文 /
6
+ * s1~s11 各阶段场景 / 清理 / 主流程)。入口路径与用法保持不变,便于 README 与习惯用法的
7
+ * `node scripts/e2e-full-closedloop.mjs [baseUrl]` 继续可用。
6
8
  *
7
- * S1 账号与权限 注册 → 角色 → 产线级三态授权(none/readonly/operate)
8
- * S2 工业建模 产线 → 产品 → 配方(含工艺窗口) → 数采/数控节点 → 设备孪生绑定
9
- * S3 驱动可用性 逐驱动 available/test(mock 必通;真实协议栈缺失须明确报"不可用"而非静默)
10
- * S4 数采闭环 开跑 → 采样入队 → 消费 → TSDB 落库 → WS/REST 可读 → 批次打标
11
- * S5 多形态帧管线 vector 帧入 buffer → 广播 thumbUrl/contentUrl → **立刻回查 content 必须 200**
12
- * (P0-4 内存读穿透回归:这条断言在修复前必然是 404)
13
- * S6 数控闭环 下发 → 回读校验 → ACK 记账 → 写历史 → 参数锚入册 → 单步回退
14
- * S7 回退账本算法 锚上限/稳定锚索引/lastStableBefore/chainRollbackCount 复杂度回归
15
- * S8 Agent 鉴权矩阵 未绑定拒 / 绑定放行 / manual 挂起审批 / **dcw_rollback 必须同样鉴权**
16
- * (P0-D 回归:修复前未绑定 agent 可回退任意节点)
17
- * S9 工具桥越权 用户 A 的 token + 用户 B 的 agentId → 必须 403
18
- * (P0-E 回归:修复前会以 B 的身份执行)
19
- * S10 插件系统 项目作用域装载 → setup → 路由 → client 脚本 → 停用 → 热重载 → 无幽灵态
20
- * (P0-1/P0-2/P1-H/P1-I 回归)
21
- * S11 数据根唯一性 运行期落盘必须全部位于配置根 data/(P0-B 回归)
22
- *
23
- * 用法:
24
- * node scripts/e2e-full-closedloop.mjs [base]
25
- * 默认 base = http://127.0.0.1:3111
26
- * 环境: AW_E2E_TOKEN 复用既有用户 token
27
- *
28
- * 退出码:0 = 全绿;1 = 有 FAIL。
29
- */
30
-
31
- import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'
32
- import { join } from 'node:path'
33
-
34
- const BASE = process.argv[2] ?? process.env.AW_BASE ?? 'http://127.0.0.1:3111'
35
-
36
- let pass = 0
37
- let fail = 0
38
- const failures = []
39
-
40
- function ok(cond, label, detail = '') {
41
- if (cond) {
42
- pass++
43
- console.log(` ✔ ${label}${detail ? ` —— ${detail}` : ''}`)
44
- }
45
- else {
46
- fail++
47
- failures.push(label)
48
- console.error(` ✘ ${label}${detail ? ` —— ${detail}` : ''}`)
49
- }
50
- }
51
- const section = t => console.log(`\n━━━ ${t} ━━━`)
52
- const sleep = ms => new Promise(r => setTimeout(r, ms))
53
-
54
- async function raw(method, path, { body, token, agentToken, timeoutMs = 60_000, raw: rawRes = false } = {}) {
55
- const headers = {}
56
- if (body !== undefined) headers['content-type'] = 'application/json'
57
- if (token) headers.authorization = `Bearer ${token}`
58
- if (agentToken) headers['x-aw-agent-token'] = agentToken
59
- const res = await fetch(`${BASE}${path}`, {
60
- method,
61
- headers,
62
- body: body !== undefined ? JSON.stringify(body) : undefined,
63
- signal: AbortSignal.timeout(timeoutMs),
64
- })
65
- if (rawRes) return res
66
- return { status: res.status, ...(await res.json().catch(() => ({}))) }
67
- }
68
- const api = (m, p, o) => raw(m, p, o)
69
-
70
- /**
71
- * 从插件清单响应里取 plugins 数组。
72
- * GET /api/workshop/plugins 用 defineEventHandler(**不套 {code,message,data} 信封**),
73
- * 且本文件的 api() 是 `{ status, ...json }` —— 所以数组在 `resp.plugins`;
74
- * 早期断言写 `resp.data?.plugins` 永远取到 undefined,把"接口好着"误判成"插件没装载"。
75
- * 这里同时兼容信封形态,避免接口日后加信封再次踩坑。
9
+ * 需要服务端已在运行(默认 http://127.0.0.1:3111,可用参数或 AW_BASE 覆盖)。
76
10
  */
77
- function manifestPlugins(resp) {
78
- return resp?.plugins ?? resp?.data?.plugins ?? resp?.data?.data?.plugins ?? []
79
- }
80
-
81
- /** 轮询直到条件成立(或超时);返回最后一次取值 */
82
- async function waitUntil(label, fn, timeoutMs = 30_000, intervalMs = 500) {
83
- const deadline = Date.now() + timeoutMs
84
- let last
85
- while (Date.now() < deadline) {
86
- try {
87
- last = await fn()
88
- if (last) return last
89
- }
90
- catch (err) {
91
- last = err
92
- }
93
- await sleep(intervalMs)
94
- }
95
- console.log(` · waitUntil 超时: ${label} (last=${JSON.stringify(String(last)).slice(0, 160)})`)
96
- return null
97
- }
98
-
99
- // ════════════════════════════════════════════════════════════════
100
- // S1 账号与权限
101
- // ════════════════════════════════════════════════════════════════
102
- const TAG = Math.random().toString(36).slice(2, 7)
103
- const ctx = { token: null, admin: null, userA: null, userB: null, line: null, product: null, recipe: null, daq: {}, dcw: {}, twin: null, channelId: null, agent: null }
104
-
105
- async function s1_accounts() {
106
- section('S1 账号与角色')
107
- // 角色发现策略(确定性,可重复跑):
108
- // ① 环境变量给的管理员凭据 → 直接登录;
109
- // ② 否则先看 setup-status:needsSetup=true 说明本实例还没有管理员,
110
- // 此时注册的账号自动成为 admin;
111
- // ③ 若实例已有管理员(needsSetup=false),注册出来的只是普通 user,
112
- // 必须用环境变量给的 seed admin 把它提升为 admin,否则整个建模/控制面
113
- // 都会被 requireRole 挡住 —— 那是「测试没准备好」,不是产品缺陷。
114
- const ADMIN_EMAIL = process.env.AW_E2E_ADMIN_EMAIL
115
- const ADMIN_PASSWORD = process.env.AW_E2E_ADMIN_PASSWORD
116
- const MINE = `e2e-admin-${TAG}@workshop.local`
117
- const MINE_PW = 'E2eAdminPass!2026'
118
-
119
- // 升级用 seed admin 会话(可选)
120
- let seedToken = null
121
- if (ADMIN_EMAIL && ADMIN_PASSWORD) {
122
- const r = await api('POST', '/api/users/login', { body: { email: ADMIN_EMAIL, password: ADMIN_PASSWORD } })
123
- seedToken = r.data?.token ?? null
124
- ok(Boolean(seedToken), `seed admin 登录(${ADMIN_EMAIL})`)
125
- }
126
-
127
- const setup = await api('GET', '/api/users/setup-status')
128
- ok(typeof setup.data?.needsSetup === 'boolean', `setup-status 可读(needsSetup=${setup.data?.needsSetup})`)
129
-
130
- const reg = await api('POST', '/api/users/register', { body: { name: `admin-${TAG}`, email: MINE, password: MINE_PW } })
131
- ctx.admin = reg.data?.user ?? reg.data
132
- ctx.token = reg.data?.token
133
- ok(Boolean(ctx.token), '注册测试账号并取得 token')
134
-
135
- let me = await api('GET', '/api/workshop/users/me', { token: ctx.token })
136
- ctx.isAdmin = me.data?.role === 'admin'
137
- if (!ctx.isAdmin && seedToken) {
138
- const up = await api('PUT', `/api/users/${ctx.admin?.id}`, { body: { role: 'admin' }, token: seedToken })
139
- ok(up.status === 200, '经 seed admin 将测试账号提升为 admin', `status=${up.status}`)
140
- me = await api('GET', '/api/workshop/users/me', { token: ctx.token })
141
- ctx.isAdmin = me.data?.role === 'admin'
142
- }
143
- ok(ctx.isAdmin, `测试账号为 admin(role=${me.data?.role};needsSetup=${setup.data?.needsSetup})`, ctx.isAdmin ? '' : '需设 AW_E2E_ADMIN_EMAIL/PASSWORD,或在空实例上运行')
144
- ok(me.data?.id === ctx.admin?.id, 'token → 用户身份自洽')
145
- ok(me.status === 200 && typeof me.data?.role === 'string', 'users/me 回传 role(前端据此渲染管理入口)')
146
-
147
- // 第二个用户:越权矩阵主体。同样显式注册(可复跑;已存在则登录)
148
- const B_EMAIL = `e2e-userb-${TAG}@workshop.local`
149
- const B_PW = 'E2eUserBPass!2026'
150
- const bReg = await api('POST', '/api/users/register', { body: { name: `userb-${TAG}`, email: B_EMAIL, password: B_PW } })
151
- ctx.userB = bReg.data?.user ?? bReg.data
152
- ctx.userB.token = bReg.data?.token
153
- if (!ctx.userB.token) {
154
- const bLogin = await api('POST', '/api/users/login', { body: { email: B_EMAIL, password: B_PW } })
155
- ctx.userB.token = bLogin.data?.token
156
- ctx.userB.id = bLogin.data?.user?.id
157
- }
158
- ok(Boolean(ctx.userB?.token), '注册/登录第二个用户(越权测试主体)')
159
- const bMe = await api('GET', '/api/workshop/users/me', { token: ctx.userB.token })
160
- ok(bMe.data?.role !== 'admin', `第二用户为普通角色(role=${bMe.data?.role})`, '越权断言需要非 admin 主体')
161
-
162
- ok((await api('GET', '/api/workshop/users/me')).status === 401, '无 token 访问受保护端点 → 401')
163
- }
164
-
165
- // ════════════════════════════════════════════════════════════════
166
- // S2 工业建模
167
- // ════════════════════════════════════════════════════════════════
168
- async function s2_model() {
169
- section('S2 工业建模(产线/产品/配方/节点/孪生)')
170
- const lineR = await api('POST', '/api/workshop/dcw/lines', { body: { name: `E2E产线-${TAG}` }, token: ctx.token })
171
- ctx.line = lineR.data?.line
172
- ok(Boolean(ctx.line?.id), '创建产线', ctx.line?.id)
173
-
174
- const prodR = await api('POST', '/api/workshop/dcw/products', { body: { name: `E2E产品-${TAG}`, lineId: ctx.line?.id }, token: ctx.token })
175
- ctx.product = prodR.data?.product
176
- ok(Boolean(ctx.product?.id), '创建产品并挂产线', ctx.product?.id)
177
-
178
- // 自定义数采模板(scalar)+ vector 模板(验证帧管线)
179
- const tplScalar = await api('POST', '/api/workshop/daq/templates', {
180
- body: { name: `E2E温度-${TAG}`, ch: '熔体温度', unit: '℃', min: 100, max: 300, base: 200, amp: 4, decimals: 1, telemetryKey: 'temperature' },
181
- token: ctx.token,
182
- })
183
- ok(Boolean(tplScalar.data?.template?.key), '创建数采模板(scalar)', tplScalar.data?.template?.key)
184
- const tplVector = await api('POST', '/api/workshop/daq/templates', {
185
- body: { name: `E2E轮廓-${TAG}`, ch: '厚度轮廓', unit: 'μm', min: 0, max: 500, decimals: 1, signalKind: 'vector', vector: { points: 64, min: 0, max: 500 } },
186
- token: ctx.token,
187
- })
188
- ok(Boolean(tplVector.data?.template?.key), '创建数采模板(vector)', tplVector.data?.template?.key)
189
-
190
- // 数控模板
191
- const tplDcw = await api('POST', '/api/workshop/dcw/templates', {
192
- body: { name: `E2E设定器-${TAG}`, ch: '烘箱温度设定', unit: '℃', min: 150, max: 220, decimals: 1 },
193
- token: ctx.token,
194
- })
195
- ok(Boolean(tplDcw.data?.template?.key), '创建数控模板', tplDcw.data?.template?.key)
196
-
197
- // 设备孪生(DAQ 节点要绑它,才能触发 telemetry 回写 → P0-A 路径)
198
- const twinR = await api('POST', '/api/workshop/device-twins', { body: { name: `E2E挤出机-${TAG}`, kind: 'device' }, token: ctx.token })
199
- ctx.twin = twinR.data?.twin
200
- ok(Boolean(ctx.twin?.id), '创建设备孪生(遥测回写目标)', ctx.twin?.id)
201
-
202
- // 数采节点:mock scalar + mock vector(带设备绑定)
203
- const mkDaq = async (label, body) => {
204
- const r = await api('POST', '/api/workshop/daq', { body, token: ctx.token })
205
- ok(Boolean(r.data?.node?.id), `创建数采节点 ${label}`, r.data?.node?.id ?? JSON.stringify(r).slice(0, 120))
206
- return r.data?.node
207
- }
208
- ctx.daq.scalar = await mkDaq('scalar', {
209
- name: `E2E温度-${TAG}`,
210
- templateRef: tplScalar.data.template.key,
211
- driver: 'mock',
212
- intervalMs: 1000,
213
- publishIntervalMs: 0,
214
- lineId: ctx.line?.id,
215
- deviceBindingId: ctx.twin?.id,
216
- })
217
- ctx.daq.vector = await mkDaq('vector', {
218
- name: `E2E轮廓-${TAG}`,
219
- templateRef: tplVector.data.template.key,
220
- driver: 'mock',
221
- intervalMs: 1000,
222
- publishIntervalMs: 0,
223
- lineId: ctx.line?.id,
224
- })
225
-
226
- // 数控节点
227
- const mkDcw = async (label, body) => {
228
- const r = await api('POST', '/api/workshop/dcw', { body, token: ctx.token })
229
- ok(Boolean(r.data?.node?.id), `创建数控节点 ${label}`, r.data?.node?.id ?? JSON.stringify(r).slice(0, 120))
230
- return r.data?.node
231
- }
232
- ctx.dcw.main = await mkDcw('main', {
233
- name: `E2E炉温设定-${TAG}`,
234
- templateRef: tplDcw.data.template.key,
235
- driver: 'mock',
236
- unit: '℃',
237
- min: 150,
238
- max: 220,
239
- lineId: ctx.line?.id,
240
- holdIntervalMs: 0,
241
- })
242
- ctx.dcw.two = await mkDcw('two', {
243
- name: `E2E二段设定-${TAG}`,
244
- templateRef: tplDcw.data.template.key,
245
- driver: 'mock',
246
- unit: '℃',
247
- min: 150,
248
- max: 220,
249
- lineId: ctx.line?.id,
250
- holdIntervalMs: 0,
251
- })
252
-
253
- // 配方:两个参数 + 一个数采监控窗口
254
- const recR = await api('POST', '/api/workshop/dcw/recipes', {
255
- body: {
256
- name: `E2E配方-${TAG}`,
257
- productId: ctx.product?.id,
258
- params: [
259
- { nodeId: ctx.dcw.main?.id, value: 190, min: 180, max: 200 },
260
- { nodeId: ctx.dcw.two?.id, value: 188 },
261
- ],
262
- daqWindows: [{ nodeId: ctx.daq.scalar?.id, min: 150, max: 260 }],
263
- },
264
- token: ctx.token,
265
- })
266
- ctx.recipe = recR.data?.recipe
267
- ok(Boolean(ctx.recipe?.id), '创建配方(2 参数 + 1 监控窗口)', ctx.recipe?.id)
268
- ok(ctx.recipe?.params?.length === 2, '配方参数节点级绑定生效')
269
- ok(ctx.recipe?.daqWindows?.length === 1, '配方数采监控窗口生效')
270
-
271
- // 越界拒绝(工艺安全:节点全局量程)
272
- const over = await api('POST', `/api/workshop/dcw/${ctx.dcw.main?.id}/write`, { body: { value: 999 }, token: ctx.token })
273
- ok(over.status >= 400, '越量程下发被拒', `status=${over.status}`)
274
- }
275
-
276
- // ════════════════════════════════════════════════════════════════
277
- // S3 驱动可用性
278
- // ════════════════════════════════════════════════════════════════
279
- async function s3_drivers() {
280
- section('S3 驱动可用性与连通测试')
281
- const snap = await api('GET', '/api/workshop/daq', { token: ctx.token })
282
- ok(snap.status === 200, 'GET /api/workshop/daq 可读')
283
- const avail = snap.data?.driverAvailable ?? {}
284
- ok(avail.mock === true, 'mock 驱动可用')
285
- const backends = snap.data?.meta ?? {}
286
- ok(Boolean(backends.tsdb), `TSDB 后端已装配(${backends.tsdb})`)
287
- ok(Boolean(backends.queue), `队列后端已装配(${backends.queue})`)
288
- ok(backends.objectstore != null, `对象存储后端已装配(${backends.objectstore})`)
289
-
290
- const t = await api('POST', '/api/workshop/daq/test-driver', { body: { driver: 'mock', driverConfig: {} }, token: ctx.token })
291
- ok(t.data?.test?.ok !== false, 'mock 驱动 test 通过', JSON.stringify(t.data?.test ?? {}).slice(0, 100))
292
-
293
- const tn = await api('POST', `/api/workshop/daq/${ctx.daq.scalar?.id}/test`, { body: {}, token: ctx.token })
294
- ok(tn.status === 200, '节点级连接测试可调用', `status=${tn.status}`)
295
-
296
- // 缺失协议栈必须显式报"不可用",不能静默成功
297
- const anyMissing = Object.entries(avail).filter(([, v]) => v === false).map(([k]) => k)
298
- if (anyMissing.length) {
299
- const r = await api('POST', '/api/workshop/daq/test-driver', { body: { driver: anyMissing[0], driverConfig: {} }, token: ctx.token })
300
- ok(r.data?.test?.ok === false || r.data?.ok === false || r.status >= 400, `协议栈缺失(${anyMissing[0]})显式失败而非静默`, JSON.stringify(r.data).slice(0, 100))
301
- }
302
- else {
303
- ok(true, '全部协议栈可用(跳过缺失断言)')
304
- }
305
- }
306
-
307
- // ════════════════════════════════════════════════════════════════
308
- // S4 数采闭环
309
- // ════════════════════════════════════════════════════════════════
310
- async function s4_daq() {
311
- section('S4 数采闭环(采样→队列→消费→落库→批次打标)')
312
- const ctrlOn = await api('POST', '/api/workshop/daq/controller', { body: { action: 'start' }, token: ctx.token })
313
- ok(ctrlOn.status === 200, '数采网关启动')
314
-
315
- const before = (await api('GET', '/api/workshop/daq', { token: ctx.token })).data?.meta ?? {}
316
- const startR = await api('POST', `/api/workshop/dcw/lines/${ctx.line?.id}/start`, { body: { recipeId: ctx.recipe?.id }, token: ctx.token })
317
- ok(startR.status === 200, '产线开跑(下发配方 + 激活批次窗口)', startR.message ?? '')
318
- const runId = startR.data?.run?.id
319
- ok(Boolean(runId), '批次 id 返回', runId)
320
- ok(Array.isArray(startR.data?.run?.results) && startR.data.run.results.length === 2, '配方逐参数下发结果 2 条')
321
- ok(startR.data?.run?.results?.every(r => r.ok === true), '两个参数下发均成功', JSON.stringify(startR.data?.run?.results ?? []).slice(0, 120))
322
-
323
- // 采样流入
324
- const grew = await waitUntil('samplesStored 增长', async () => {
325
- const s = (await api('GET', '/api/workshop/daq', { token: ctx.token })).data?.meta ?? {}
326
- return (s.samplesStored ?? 0) > (before.samplesStored ?? 0)
327
- }, 25_000)
328
- ok(Boolean(grew), '样本落库计数增长(samplesStored)')
329
-
330
- const after = (await api('GET', '/api/workshop/daq', { token: ctx.token })).data
331
- ok((after?.meta?.produced ?? 0) > (before.produced ?? 0), `生产计数增长(${before.produced} → ${after?.meta?.produced})`)
332
- ok((after?.meta?.consumed ?? 0) > (before.consumed ?? 0), `消费计数增长(${before.consumed} → ${after?.meta?.consumed})`)
333
-
334
- const node = (after?.nodes ?? []).find(n => n.id === ctx.daq.scalar?.id)
335
- ok(node?.value != null, `标量节点有实时值(${node?.value}${node?.unit ?? ''})`)
336
- ok(node?.lineId === ctx.line?.id, '节点产线归属正确')
337
-
338
- // 时序查询
339
- const samples = await api('GET', `/api/workshop/daq/${ctx.daq.scalar?.id}/samples?limit=100`, { token: ctx.token })
340
- const pts = samples.data?.points ?? samples.data?.samples ?? []
341
- ok(Array.isArray(pts) && pts.length > 0, `REST 历史查询返回样本(${pts.length} 点)`)
342
-
343
- // 批次打标:窗口内样本必须带 runId
344
- const lineState = await api('GET', `/api/workshop/dcw/lines`, { token: ctx.token })
345
- ok(Array.isArray(lineState.data?.lines), 'GET dcw/lines 可读')
346
- const st = await api('GET', `/api/workshop/dcw/lines/${ctx.line?.id}/state`, { token: ctx.token }).catch(() => ({ status: 0 }))
347
- if (st.status === 200) {
348
- ok(st.data?.state?.active === true || st.data?.active === true, '产线批次窗口处于活动态')
349
- ok((st.data?.state?.taggedSamples ?? st.data?.taggedSamples ?? 0) > 0, '批次打标计数 > 0')
350
- }
351
- else {
352
- // 该端点形态可能不同:用 runData 间接验证打标
353
- const rd = await api('GET', `/api/workshop/dcw/runs/${runId}/data`, { token: ctx.token })
354
- const daqRows = rd.data?.daq ?? []
355
- ok(daqRows.length > 0, `批次数据视图含数采汇总(${daqRows.length} 通道)`)
356
- ok(daqRows.some(r => r.cnt > 0), '批次窗口内确有打标样本')
357
- }
358
-
359
- ctx.runId = runId
360
- }
361
-
362
- // ════════════════════════════════════════════════════════════════
363
- // S5 多形态帧管线 + 内存读穿透(P0-4 回归)
364
- // ════════════════════════════════════════════════════════════════
365
- async function s5_frames() {
366
- section('S5 帧管线 + 内存读穿透(P0-4 回归)')
367
- const framesR = await waitUntil('vector 帧落库', async () => {
368
- const r = await api('GET', `/api/workshop/daq/${ctx.daq.vector?.id}/frames?limit=20`, { token: ctx.token })
369
- const f = r.data?.frames ?? []
370
- return f.length > 0 ? f : null
371
- }, 25_000)
372
- ok(Boolean(framesR), `vector 帧可查(${framesR?.length ?? 0} 帧)`)
373
- const first = framesR?.[0]
374
- if (first) {
375
- ok(first.kind === 'vector', '帧形态为 vector')
376
- ok(Array.isArray(first.points) && first.points.length > 0, `点列非空(${first.points?.length} 点)`)
377
- ok(first.runId === ctx.runId, '帧带批次打标(runId 一致)', `${first.runId} vs ${ctx.runId}`)
378
- }
379
- else {
380
- ok(false, 'vector 帧内容断言(无帧可断)')
381
- }
382
-
383
- // 图像帧:构造一个真实 PNG 驱动的 image 节点,走「广播带 thumbUrl → 立刻回查」的竞态路径
384
- // mock 驱动对 signalKind=image 会产出帧;若不可用则跳过并标注
385
- const tplImg = await api('POST', '/api/workshop/daq/templates', {
386
- body: {
387
- name: `E2E图像-${TAG}`,
388
- ch: '表面图像',
389
- unit: 'px',
390
- min: 0,
391
- max: 255,
392
- decimals: 0,
393
- signalKind: 'image',
394
- // 图像模板必须带 thumbnail 下沉处理器才会产出 thumbKey ——
395
- // 与内置 ccd-image 模板同构(thumbnail + quality-gate)。
396
- // 不带它时 frameContent(thumb=1) 必然 404,那是模板配置问题而非接口缺陷。
397
- sink: { processors: [{ name: 'thumbnail', args: { width: 128 } }, { name: 'quality-gate' }] },
398
- },
399
- token: ctx.token,
400
- })
401
- if (tplImg.data?.template?.key) {
402
- const imgNode = await api('POST', '/api/workshop/daq', {
403
- body: {
404
- name: `E2E图像-${TAG}`,
405
- templateRef: tplImg.data.template.key,
406
- driver: 'mock',
407
- intervalMs: 1000,
408
- publishIntervalMs: 0,
409
- lineId: ctx.line?.id,
410
- min: 0,
411
- max: 255,
412
- },
413
- token: ctx.token,
414
- })
415
- const imgId = imgNode.data?.node?.id
416
- ok(Boolean(imgId), '创建 image 节点')
417
- if (imgId) {
418
- const imgFrames = await waitUntil('image 帧落库', async () => {
419
- const r = await api('GET', `/api/workshop/daq/${imgId}/frames?limit=10&kind=image`, { token: ctx.token })
420
- const f = r.data?.frames ?? []
421
- return f.length > 0 ? f : null
422
- }, 30_000)
423
- if (imgFrames?.[0]) {
424
- const ts = imgFrames[0].at
425
- const content = await api('GET', `/api/workshop/daq/${imgId}/frames/content?ts=${ts}`, { token: ctx.token, raw: true })
426
- ok(content.status === 200, 'image 帧内容可读(200)', `status=${content.status}`)
427
- const ct = content.headers.get('content-type') ?? ''
428
- ok(/image\//.test(ct), `content-type 为图像(${ct})`)
429
- const thumb = await api('GET', `/api/workshop/daq/${imgId}/frames/content?ts=${ts}&thumb=1`, { token: ctx.token, raw: true })
430
- ok(thumb.status === 200, '缩略图可读(200)', `status=${thumb.status}`)
431
- }
432
- else {
433
- // mock 未实现 image 帧不算产品缺陷,但必须显式记录而非静默跳过
434
- console.log(' · mock 驱动未产出 image 帧(信号形态能力待确认),内存读穿透改由 vector 路径验证')
435
- ok(true, 'image 帧能力未就绪(mock 限制,已显式记录)')
436
- }
437
- }
438
- }
439
- else {
440
- ok(false, '创建 image 模板失败')
441
- }
442
-
443
- // 内存读穿透核心断言:帧刚 ingest(尚未 500ms 刷盘)立刻回查也必须命中。
444
- // 直接对「最新帧时间戳」查询 —— 若读穿透缺失,这里必 404。
445
- const latestR = await api('GET', `/api/workshop/daq/${ctx.daq.vector?.id}/frames?limit=1`, { token: ctx.token })
446
- const latest = latestR.data?.frames?.[0]
447
- if (latest) {
448
- const r = await api('GET', `/api/workshop/daq/${ctx.daq.vector?.id}/frames?limit=5&fromMs=${latest.at}&toMs=${latest.at}`, { token: ctx.token })
449
- ok((r.data?.frames ?? []).some(f => f.at === latest.at), '最新帧按精确时间戳可回查(读穿透生效)')
450
- }
451
- }
452
-
453
- // ════════════════════════════════════════════════════════════════
454
- // S6 数控闭环
455
- // ════════════════════════════════════════════════════════════════
456
- async function s6_dcw() {
457
- section('S6 数控闭环(下发→回读→记账→锚点→回退)')
458
- const w = await api('POST', `/api/workshop/dcw/${ctx.dcw.main?.id}/write`, { body: { value: 195 }, token: ctx.token })
459
- const outcome = w.data?.outcome ?? w.data
460
- ok(outcome?.ok === true, '下发 195℃ 成功', `readback=${outcome?.readback ?? '?'}`)
461
- ok(outcome?.readback != null, '回读校验返回读数')
462
- ok(Boolean(outcome?.anchorId), '参数变更锚已入册(anchorId)', outcome?.anchorId)
463
- // 设计语义:优化记录只由 source=agent|rollback 开窗(见 recipe-rollback-manager.afterWrite)。
464
- // 用户手动下发只记锚,不开记录 —— 否则每次人工调参都会生成一条无人判定的 open 记录,
465
- // 把「优化台账」淹成操作日志。此处断言该语义成立(手动写入不得开记录)。
466
- ok(outcome?.recordId == null, '手动下发只入锚、不开优化记录(recordId 应为空)', `recordId=${outcome?.recordId ?? 'null'}`)
467
-
468
- const nodeAfter = (await api('GET', '/api/workshop/dcw', { token: ctx.token })).data?.nodes?.find(n => n.id === ctx.dcw.main?.id)
469
- ok(nodeAfter?.value === 195 || String(nodeAfter?.value).startsWith('195'), `节点值已更新(${nodeAfter?.value})`)
470
-
471
- const rd = await api('POST', `/api/workshop/dcw/${ctx.dcw.main?.id}/read`, { body: {}, token: ctx.token })
472
- const readVal = rd.data?.read?.value ?? rd.data?.value
473
- ok(readVal != null, `手动读取返回真实读数(${readVal})`)
474
-
475
- const hist = await api('GET', '/api/workshop/dcw/journal?limit=20', { token: ctx.token })
476
- ok(hist.status === 200, 'GET dcw/journal 可读')
477
-
478
- const ledger = await api('GET', `/api/workshop/dcw/${ctx.dcw.main?.id}/param-ledger`, { token: ctx.token })
479
- ok(ledger.status === 200, 'GET param-ledger 可读')
480
-
481
- // 越配方窗口拒绝(配方 min 180 / max 200)
482
- const outWin = await api('POST', `/api/workshop/dcw/${ctx.dcw.main?.id}/write`, { body: { value: 215 }, token: ctx.token })
483
- ok(outWin.status >= 400, '超出配方工艺窗口的下发被拒', `status=${outWin.status} ${outWin.message ?? ''}`)
484
- }
485
-
486
- // ════════════════════════════════════════════════════════════════
487
- // S7 回退账本
488
- // ════════════════════════════════════════════════════════════════
489
- async function s7_rollback() {
490
- section('S7 调控闭环回退账本')
491
- const ob = await api('GET', '/api/workshop/dcw/optimizations', { token: ctx.token })
492
- ok(ob.status === 200, 'GET dcw/optimizations 可读')
493
- const recs = ob.data?.records ?? ob.data?.optimizations ?? []
494
- ok(Array.isArray(recs), `优化记录列表为数组(${recs.length} 条)`)
495
- // 此刻不应有本节点的记录:S6 是用户手动下发(只入锚不开记录)。enabled 时也允许
496
- // 历史记录存在(可复跑),故这里只断言"手动写入没有新增 open 记录"。
497
- const mineOpen = recs.filter(r => r.nodeId === ctx.dcw.main?.id && r.status === 'open')
498
- ok(mineOpen.length === 0, '手动下发未开窗 → 无 open 记录', `open=${mineOpen.length}`)
499
-
500
- // 界面回退(用户身份,不经 agent 鉴权)
501
- const rb = await api('POST', `/api/workshop/dcw/journal/node/${ctx.dcw.main?.id}/rollback`, { body: {}, token: ctx.token })
502
- ok(rb.status === 200 || rb.status === 409, '节点单步回退路径可达', `status=${rb.status} ${rb.message ?? ''}`)
503
- // 回退本身必须入册(source=rollback),这是台账可审计的前提
504
- if (rb.status === 200) {
505
- ok(Boolean(rb.data?.record?.id), '回退动作自身入册(source=rollback)', rb.data?.record?.id)
506
- }
507
-
508
- const nl = (await api('GET', '/api/workshop/dcw', { token: ctx.token })).data?.nodes?.find(n => n.id === ctx.dcw.main?.id)
509
- ok(nl != null, '回退后节点仍可读')
510
-
511
- // 注意:用户/系统回退**不受**冷却限制(设计如此:checkRollbackAllowed 仅约束 Agent,
512
- // 见 recipe-rollback-manager「Agent 回退护栏:冷却(用户/系统兜底不受链限)」——
513
- // 人在回路必须始终能紧急拉回,不能被 Agent 防乒乓闸门挡住)。
514
- // 因此这里断言的是"用户连续回退可达",Agent 侧冷却在 S8 断言。
515
- const rb2 = await api('POST', `/api/workshop/dcw/journal/node/${ctx.dcw.main?.id}/rollback`, { body: {}, token: ctx.token })
516
- ok(rb2.status === 200 || /无可回退|冷却/.test(String(rb2.message ?? '')),
517
- '用户连续回退可达(人在回路不受 Agent 冷却限制)', `status=${rb2.status} ${rb2.message ?? ''}`)
518
- }
519
-
520
- // ════════════════════════════════════════════════════════════════
521
- // S8 Agent 鉴权矩阵(P0-D 回归)
522
- // ════════════════════════════════════════════════════════════════
523
- async function s8_agent_authz() {
524
- section('S8 Agent 节点绑定鉴权矩阵(P0-D 回归)')
525
- const ch = await api('POST', '/api/workshop/channels', {
526
- body: { name: `e2e-authz-${TAG}`, leadAgent: { name: `lead-${TAG}`, harness: 'mock', config: { delayMs: 50 } } },
527
- token: ctx.token,
528
- })
529
- ctx.channelId = ch.data?.channelId ?? ch.data?.id
530
- ok(Boolean(ctx.channelId), '创建 channel', ctx.channelId)
531
-
532
- // 关键:必须选一个实现了 host tool 直调面(dispatchHostTool)的 harness。
533
- // mock 走 MockAgentImpl(非 BaseAgentImpl),工具桥会回「不支持该协作工具」,
534
- // 那样鉴权断言会被"工具压根没到"掩盖 —— 断言必须打在真正的工具路径上。
535
- // host 工具直调不经 LLM(直连共享 host-tool-bridge),所以只要有 CLI 即可,不依赖模型凭据。
536
- const HARNESS = process.env.AW_E2E_TOOL_HARNESS ?? 'opencode'
537
- const tpl = await api('POST', '/api/workshop/agents', { body: { name: `worker-${TAG}`, harness: HARNESS, config: {} }, token: ctx.token })
538
- const join = await api('POST', `/api/workshop/channels/${ctx.channelId}/agents`, { body: { agentId: tpl.data?.id, role: 'worker' }, token: ctx.token })
539
- ctx.agent = { id: join.data?.id, token: join.data?.token, harness: HARNESS }
540
- ok(Boolean(ctx.agent.id), `Agent 入队(harness=${HARNESS})`, ctx.agent.id)
541
-
542
- const invoke = (tool, args, opts = {}) => api('POST', '/api/workshop/agent-tools/invoke', { body: { agentId: ctx.agent.id, tool, args }, token: ctx.token, ...opts })
543
-
544
- // 0) 工具面自检:该 harness 必须真的能派发 host 工具,否则后续鉴权断言无意义
545
- const probe = await invoke('my_industrial_nodes', {})
546
- const probeText = String(probe.data?.result?.text ?? '')
547
- const bridgeWorks = !/工具桥不支持该协作工具/.test(probeText)
548
- ok(bridgeWorks, `${HARNESS} harness 的 host tool 直调面可用`, probeText.slice(0, 90))
549
-
550
- // 1) 未绑定 → 必须拒绝(控制)。取值须落在活动配方窗口(180~200)内:
551
- // 窗口校验(400)发生在绑定校验之前,越窗只会测出"窗口拒绝"而掩盖鉴权结论。
552
- const unboundControl = await invoke('dcw_control', { node_id: ctx.dcw.main?.id, value: 191, hypothesis: 'e2e 未绑定拒绝验证' })
553
- const ucText = String(unboundControl.data?.result?.text ?? '')
554
- ok(unboundControl.data?.result?.isError === true && bridgeWorks, '未绑定 agent 的 dcw_control 被拒', ucText.slice(0, 80))
555
-
556
- // 2) 未绑定 → **回退也必须拒绝**(修复前是默认放行)
557
- const unboundRollback = await invoke('dcw_rollback', { node_id: ctx.dcw.main?.id })
558
- const rbText = String(unboundRollback.data?.result?.text ?? '')
559
- ok(unboundRollback.data?.result?.isError === true && bridgeWorks && /无权|未绑定/.test(rbText),
560
- '未绑定 agent 的 dcw_rollback 被拒(P0-D)', rbText.slice(0, 110))
561
-
562
- // 3) 绑定后 → 放行(先绑定,后面的 judge 断言需要一条 agent 发起的 open 记录)
563
- const bind = await api('POST', '/api/workshop/agent-tools/bindings', { body: { agentId: ctx.agent.id, nodeId: ctx.dcw.main?.id, kind: 'dcw', mode: 'auto' }, token: ctx.token })
564
- ok(bind.status === 200, '绑定 dcw 节点(auto)', JSON.stringify(bind.data ?? {}).slice(0, 80))
565
- // 断言的是「绑定闸门放行」而不是「下发一定成功」:S7 刚做过用户回退(190→195),
566
- // 同向重写会被回退冷却拦下 —— 那是**正确**的调控护栏,不该算绑定失败。
567
- // 因此判据 = 错误信息里不含绑定类拒绝词(无权/未绑定)。
568
- const boundControl = await invoke('dcw_control', { node_id: ctx.dcw.main?.id, value: 196, hypothesis: 'e2e 绑定放行验证' })
569
- const bcText = String(boundControl.data?.result?.text ?? '')
570
- ok(boundControl.data?.result?.isError !== true || !/无权|未绑定/.test(bcText),
571
- '已绑定 agent 的 dcw_control 通过绑定闸门', bcText.slice(0, 110))
572
-
573
- // 4) judge 鉴权:找一条**本 agent 发起**的 open 记录 —— 才是可判定的对象。
574
- // 按 agentId 精确筛选:节点上可能还有用户/回退产生的记录(那些由用户判定)。
575
- const optList = (await api('GET', '/api/workshop/dcw/optimizations', { token: ctx.token })).data
576
- const allRecs = optList?.records ?? optList?.optimizations ?? []
577
- const openRec = allRecs.find(r => r.nodeId === ctx.dcw.main?.id && r.status === 'open' && r.agentId === ctx.agent.id)
578
- if (openRec?.id) {
579
- ok(true, 'agent 写入后已开自己的 open 优化记录(judge 有可判定对象)', openRec.id)
580
- const ownJudge = await invoke('dcw_judge', { record_id: openRec.id, verdict: 'keep', reason: 'e2e 属主判定:窗口内读数稳定,保留该设定' })
581
- const ojText = String(ownJudge.data?.result?.text ?? '')
582
- ok(ownJudge.data?.result?.isError !== true || /已判定|keep/.test(ojText), '属主 agent 可判定自己的记录', ojText.slice(0, 110))
583
- }
584
- else {
585
- ok(false, 'agent 下发后未开自己的优化记录(判定期望落空)',
586
- `records=${allRecs.length} mine=${allRecs.filter(r => r.agentId === ctx.agent.id).length}`)
587
- }
588
-
589
- // 5) 已绑定 agent 的**回退**同样可达(证明第 2 条不是"整段功能坏了")
590
- const boundRollback = await invoke('dcw_rollback', { node_id: ctx.dcw.main?.id })
591
- const brText = String(boundRollback.data?.result?.text ?? '')
592
- ok(boundRollback.data?.result?.isError !== true || /冷却/.test(brText),
593
- '已绑定 agent 的 dcw_rollback 可达(放行或仅被冷却拦截)', brText.slice(0, 90))
594
-
595
- // 6) 未绑定的另一个节点 → 仍拒绝
596
- const otherNode = await invoke('dcw_control', { node_id: ctx.dcw.two?.id, value: 190 })
597
- ok(otherNode.data?.result?.isError === true, '已绑定 agent 操作未绑定节点仍被拒(最小权限)')
598
-
599
- // 7) daq 查询鉴权
600
- const unboundQuery = await invoke('daq_query', { node_id: ctx.daq.scalar?.id })
601
- ok(unboundQuery.data?.result?.isError === true, '未绑定 agent 的 daq_query 被拒')
602
- await api('POST', '/api/workshop/agent-tools/bindings', { body: { agentId: ctx.agent.id, nodeId: ctx.daq.scalar?.id, kind: 'daq', mode: 'auto' }, token: ctx.token })
603
- const boundQuery = await invoke('daq_query', { node_id: ctx.daq.scalar?.id })
604
- ok(boundQuery.data?.result?.isError !== true, '已绑定 agent 的 daq_query 放行')
605
-
606
- // 7b) 绑定面越权:用户 B 不得读全量授权表、不得摘掉 manual 闸门(P0 新增)
607
- const allBindings = await api('GET', '/api/workshop/agent-tools/bindings', { token: ctx.userB?.token })
608
- ok(allBindings.status === 200 && (allBindings.data?.bindings ?? []).length === 0,
609
- '普通用户读绑定表只看到自己授权产线的绑定(不泄漏全量授权表)', `status=${allBindings.status} n=${(allBindings.data?.bindings ?? []).length}`)
610
- const bindingId = bind.data?.binding?.id
611
- if (bindingId) {
612
- await api('PATCH', `/api/workshop/agent-tools/bindings/${bindingId}`, { body: { mode: 'manual' }, token: ctx.token })
613
- const bPatch = await api('PATCH', `/api/workshop/agent-tools/bindings/${bindingId}`, { body: { mode: 'auto' }, token: ctx.userB?.token })
614
- ok(bPatch.status === 403, '用户 B 摘不掉他人绑定的 HITL 闸门(mode→auto)', `status=${bPatch.status}`)
615
- const bDel = await api('DELETE', `/api/workshop/agent-tools/bindings/${bindingId}`, { token: ctx.userB?.token })
616
- ok(bDel.status === 403, '用户 B 删不掉他人绑定', `status=${bDel.status}`)
617
- await api('PATCH', `/api/workshop/agent-tools/bindings/${bindingId}`, { body: { mode: 'auto' }, token: ctx.token })
618
- }
619
- else { ok(false, '未取到 binding.id(绑定面越权断言无法执行)') }
620
-
621
- // 8) manual 模式 → 挂起审批(dcw_control)
622
- await api('POST', '/api/workshop/agent-tools/bindings', { body: { agentId: ctx.agent.id, nodeId: ctx.dcw.two?.id, kind: 'dcw', mode: 'manual' }, token: ctx.token })
623
- const hitlPromise = invoke('dcw_control', { node_id: ctx.dcw.two?.id, value: 189 }, { timeoutMs: 120_000 }).catch(e => ({ data: { result: { isError: true, text: `invoke err ${e.message}` } } }))
624
- const pending = await waitUntil('manual 挂起审批', async () => {
625
- const r = await api('GET', '/api/workshop/agent-tools/approvals', { token: ctx.token })
626
- return (r.data?.approvals ?? []).find(p => p.agentId === ctx.agent.id) ?? null
627
- }, 20_000)
628
- ok(Boolean(pending?.id) && bridgeWorks, 'manual 绑定产生待审批', pending?.id)
629
- if (pending?.id) {
630
- const dec = await api('POST', `/api/workshop/agent-tools/approvals/${pending.id}/decide`, { body: { approved: true, comment: 'e2e 批准' }, token: ctx.token })
631
- ok(dec.status === 200, '管理员批准待审批')
632
- const res = await hitlPromise
633
- ok(res.data?.result?.isError !== true, '批准后指令执行', String(res.data?.result?.text ?? '').slice(0, 80))
634
- }
635
- else {
636
- await hitlPromise
637
- }
638
-
639
- // 9) manual 模式下的回退也必须挂起(与 dcw_control 同源,P0-D 后半段)
640
- const rbPromise = invoke('dcw_rollback', { node_id: ctx.dcw.two?.id }, { timeoutMs: 120_000 }).catch(e => ({ data: { result: { isError: true, text: `err ${e.message}` } } }))
641
- const pending2 = await waitUntil('manual 回退挂起审批', async () => {
642
- const r = await api('GET', '/api/workshop/agent-tools/approvals', { token: ctx.token })
643
- return (r.data?.approvals ?? []).find(p => p.agentId === ctx.agent.id) ?? null
644
- }, 20_000)
645
- if (pending2?.id) {
646
- await api('POST', `/api/workshop/agent-tools/approvals/${pending2.id}/decide`, { body: { approved: false, comment: 'e2e 拒绝回退' }, token: ctx.token })
647
- const res = await rbPromise
648
- ok(/未执行|拒绝/.test(String(res.data?.result?.text ?? '')), 'manual 回退经用户审批拒绝后不执行', String(res.data?.result?.text ?? '').slice(0, 80))
649
- }
650
- else {
651
- const res = await rbPromise
652
- ok(res.data?.result?.isError === true, 'manual 回退被门控(未挂起则必须直接拒绝)', String(res.data?.result?.text ?? '').slice(0, 90))
653
- }
654
- }
655
-
656
- // ════════════════════════════════════════════════════════════════
657
- // S9 工具桥越权(P0-E 回归)
658
- // ════════════════════════════════════════════════════════════════
659
- async function s9_bridge_authz() {
660
- section('S9 工具桥越权(P0-E 回归)')
661
- // 用户 B 的 token + 用户 A 的 agentId → 必须 403
662
- const cross = await raw('POST', '/api/workshop/agent-tools/invoke', {
663
- body: { agentId: ctx.agent.id, tool: 'my_industrial_nodes', args: {} },
664
- token: ctx.userB?.token,
665
- })
666
- ok(cross.status === 403, '用户 B 冒用用户 A 的 agentId → 403(P0-E)', `status=${cross.status} ${String(cross.message ?? '').slice(0, 80)}`)
667
-
668
- // 错误 agent token → 401
669
- const badToken = await raw('POST', '/api/workshop/agent-tools/invoke', {
670
- body: { agentId: ctx.agent.id, tool: 'my_industrial_nodes', args: {} },
671
- agentToken: 'not-a-real-token',
672
- })
673
- ok(badToken.status === 401, '伪造 agent token → 401', `status=${badToken.status}`)
674
-
675
- // 正确 agent token → 放行
676
- const goodToken = await raw('POST', '/api/workshop/agent-tools/invoke', {
677
- body: { agentId: ctx.agent.id, tool: 'my_industrial_nodes', args: {} },
678
- agentToken: ctx.agent.token,
679
- })
680
- ok(goodToken.status === 200, '正确 agent token 自证放行', `status=${goodToken.status}`)
681
-
682
- // 用户 A 自己的 agent → 放行
683
- const own = await api('POST', '/api/workshop/agent-tools/invoke', {
684
- body: { agentId: ctx.agent.id, tool: 'my_industrial_nodes', args: {} },
685
- token: ctx.token,
686
- })
687
- ok(own.status === 200, '属主用户调用自己 agent 的工具放行', `status=${own.status}`)
688
-
689
- // 不存在的 agentId → 404
690
- const missing = await api('POST', '/api/workshop/agent-tools/invoke', {
691
- body: { agentId: 'no-such-agent', tool: 'my_industrial_nodes', args: {} },
692
- token: ctx.token,
693
- })
694
- ok(missing.status === 404, '不存在的 agentId → 404', `status=${missing.status}`)
695
- }
696
-
697
- // ════════════════════════════════════════════════════════════════
698
- // S10 插件系统
699
- // ════════════════════════════════════════════════════════════════
700
- async function s10_plugins() {
701
- section('S10 插件系统(装载/路由/client/停用/热重载)')
702
- const configRoot = process.env.AW_E2E_CONFIG_ROOT
703
- if (!configRoot) {
704
- console.log(' · 未提供 AW_E2E_CONFIG_ROOT,跳过插件文件级断言(仅做清单一致性检查)')
705
- }
706
-
707
- const m0 = await api('GET', '/api/workshop/plugins', { token: ctx.token })
708
- ok(m0.status === 200, 'GET /api/workshop/plugins 可读')
709
- const list0 = manifestPlugins(m0)
710
- ok(Array.isArray(list0), `插件清单为数组(${list0.length} 个)`)
711
-
712
- if (configRoot) {
713
- const plugDir = join(configRoot, 'plugins')
714
- const name = `e2e-plug-${TAG}`
715
- const dir = join(plugDir, name)
716
- mkdirSync(dir, { recursive: true })
717
-
718
- // 1) setup 必抛错的插件 → 必须"完全无痕"(P0-1 回归)
719
- const badName = `e2e-bad-${TAG}`
720
- const badDir = join(plugDir, badName)
721
- mkdirSync(badDir, { recursive: true })
722
- writeFileSync(join(badDir, 'index.mjs'), `export default {
723
- name: ${JSON.stringify(badName)},
724
- setup(ctx) {
725
- ctx.route('GET', '/ghost', () => ({ ghost: true }))
726
- throw new Error('e2e intentional setup failure')
727
- },
728
- }
729
- `, 'utf8')
730
-
731
- // 2) 正常插件:路由 + client + i18n + 设置声明
732
- // client 必须**在 manifest 里显式声明**(契约:client?: './client.mjs');
733
- // 只把 client.mjs 放进目录不会被识别 —— 扫描器读的是 manifest 字段而非文件存在性。
734
- writeFileSync(join(dir, 'index.mjs'), `export default {
735
- name: ${JSON.stringify(name)},
736
- version: '1.2.3',
737
- description: 'e2e plugin',
738
- client: './client.mjs',
739
- settings: [{ key: 'threshold', type: 'number', default: 42, label: 'E2E 阈值' }],
740
- setup(ctx) {
741
- ctx.kv.set('setupCalls', (Number(ctx.kv.get('setupCalls')) || 0) + 1)
742
- ctx.route('GET', '/ping', () => ({ pong: true, tag: ${JSON.stringify(TAG)} }))
743
- ctx.route('POST', '/echo', (req) => ({ echoed: req?.body ?? null }))
744
- ctx.onDispose(() => { ctx.kv.set('disposedAt', new Date().toISOString()) })
745
- },
746
- }
747
- `, 'utf8')
748
- writeFileSync(join(dir, 'client.mjs'), `export default { name: ${JSON.stringify(name)}, setup() {} }\n`, 'utf8')
749
- writeFileSync(join(dir, 'i18n.json'), JSON.stringify({ 'zh-CN': { hello: '你好' }, 'en': { hello: 'hi' } }), 'utf8')
750
-
751
- // 触发重载:写状态文件(与 CLI/Web 同路径)
752
- const statePath = join(configRoot, 'plugins-state.json')
753
-
754
- let loaded = await waitUntil('插件装载', async () => {
755
- const m = await api('GET', '/api/workshop/plugins', { token: ctx.token })
756
- const l = manifestPlugins(m)
757
- return l.find(p => p.name === name) ?? null
758
- }, 40_000, 1500)
759
-
760
- if (!loaded) {
761
- // 某些部署下 state 文件不存在 → 主动写一次空 disabled 集合触发 watcher
762
- writeFileSync(statePath, JSON.stringify({ version: 1, updatedAt: new Date().toISOString(), disabled: [] }), 'utf8')
763
- loaded = await waitUntil('插件装载(写入状态文件后)', async () => {
764
- const m = await api('GET', '/api/workshop/plugins', { token: ctx.token })
765
- const l = manifestPlugins(m)
766
- return l.find(p => p.name === name) ?? null
767
- }, 40_000, 1500)
768
- }
769
- ok(Boolean(loaded), '项目作用域插件被装载', JSON.stringify(loaded ?? {}).slice(0, 120))
770
- if (loaded) {
771
- ok(loaded.version === '1.2.3', '插件版本透传', loaded.version)
772
- ok(loaded.enabled !== false, '插件默认启用')
773
- ok(loaded.hasClient === true, 'client 脚本被识别')
774
- ok(loaded.hasI18n === true, 'i18n 包被识别')
775
- ok(loaded.settingsCount === 1, '设置声明被识别', String(loaded.settingsCount))
776
- ok(Array.isArray(loaded.routes) && loaded.routes.some(r => r.path === '/ping'), '路由已登记', JSON.stringify(loaded.routes))
777
- }
778
-
779
- // 路由真的可命中
780
- const ping = await api('GET', `/api/plugins/${name}/ping`, { token: ctx.token })
781
- ok(ping.status === 200 && (ping.data?.pong === true || ping.pong === true), '插件路由可命中', JSON.stringify(ping.data ?? ping).slice(0, 100))
782
-
783
- // client 脚本可读
784
- const client = await api('GET', `/api/plugins/client/${name}`, { token: ctx.token, raw: true })
785
- ok(client.status === 200, '插件 client 脚本可读', `status=${client.status}`)
786
- ok(/setup/.test(await client.text().catch(() => '')), 'client 脚本内容正确')
787
-
788
- // i18n 包
789
- const i18n = await api('GET', '/api/plugins/i18n', { token: ctx.token })
790
- ok(i18n.status === 200 || i18n.status === 404, 'i18n 端点存在或明确不存在')
791
-
792
- // 幽灵路由回归:setup 失败的插件不得留下可命中的路由(P0-1)
793
- const ghost = await api('GET', `/api/plugins/${badName}/ghost`, { token: ctx.token })
794
- ok(ghost.status === 404, 'setup 抛错的插件不留幽灵路由(P0-1)', `status=${ghost.status}`)
795
- const m2 = await api('GET', '/api/workshop/plugins', { token: ctx.token })
796
- const list2 = manifestPlugins(m2)
797
- ok(!list2.some(p => p.name === badName), 'setup 抛错的插件不进清单(P0-1)')
798
-
799
- // 停用 → 路由必须失效
800
- const dis = await api('POST', `/api/workshop/plugins/${name}/disable`, { body: {}, token: ctx.token })
801
- ok(dis.status === 200, '停用插件')
802
- const afterDisable = await waitUntil('停用生效', async () => {
803
- const m = await api('GET', '/api/workshop/plugins', { token: ctx.token })
804
- const l = manifestPlugins(m)
805
- const p = l.find(x => x.name === name)
806
- return p && p.enabled === false ? p : null
807
- }, 40_000, 1500)
808
- ok(Boolean(afterDisable), '停用状态在清单可见(enabled=false)')
809
- const pingOff = await api('GET', `/api/plugins/${name}/ping`, { token: ctx.token })
810
- ok(pingOff.status === 404, '停用后路由失效(无幽灵路由)', `status=${pingOff.status}`)
811
-
812
- // 重新启用 → 路由恢复(热重载闭环)
813
- const en = await api('POST', `/api/workshop/plugins/${name}/enable`, { body: {}, token: ctx.token })
814
- ok(en.status === 200, '重新启用插件')
815
- const restored = await waitUntil('热重载恢复', async () => {
816
- const p = await api('GET', `/api/plugins/${name}/ping`, { token: ctx.token })
817
- return p.status === 200 ? p : null
818
- }, 40_000, 1500)
819
- ok(Boolean(restored), '热重载后路由恢复')
820
-
821
- // 清理
822
- try {
823
- rmSync(dir, { recursive: true, force: true })
824
- rmSync(badDir, { recursive: true, force: true })
825
- }
826
- catch { /* 清理失败不影响断言 */ }
827
- }
828
- }
829
-
830
- // ════════════════════════════════════════════════════════════════
831
- // S11 数据根唯一性(P0-B 回归)
832
- // ════════════════════════════════════════════════════════════════
833
- async function s11_data_root() {
834
- section('S11 数据根唯一性(P0-B 回归)')
835
- const configRoot = process.env.AW_E2E_CONFIG_ROOT
836
- const cwd = process.env.AW_E2E_CWD
837
- if (!configRoot || !cwd) {
838
- console.log(' · 未提供 AW_E2E_CONFIG_ROOT / AW_E2E_CWD,跳过')
839
- return
840
- }
841
- const dataDir = join(configRoot, 'data')
842
- const legacyDir = join(cwd, 'server', 'data')
843
-
844
- // 本次 e2e 已经写入了产线/产品/配方/节点/回退,它们必须落在配置根
845
- const mustBeInConfigRoot = ['daqs.json', 'dcws.json', 'dcw-lines.json', 'dcw-products.json', 'dcw-recipes.json', 'dcw-rollback.json', 'dcw-writes.json']
846
- for (const f of mustBeInConfigRoot) {
847
- ok(existsSync(join(dataDir, f)), `配置根存在 ${f}`)
848
- }
849
- if (existsSync(legacyDir)) {
850
- const legacyFiles = mustBeInConfigRoot.filter(f => existsSync(join(legacyDir, f)))
851
- ok(legacyFiles.length === 0, 'cwd/server/data 不再被写入(P0-B)', legacyFiles.length ? `仍存在: ${legacyFiles.join(', ')}` : '')
852
- }
853
- else {
854
- ok(true, 'cwd/server/data 不存在(P0-B)')
855
- }
856
- }
857
-
858
- // ════════════════════════════════════════════════════════════════
859
- // 清理
860
- // ════════════════════════════════════════════════════════════════
861
- async function cleanup() {
862
- section('清理')
863
- const t = ctx.token
864
- try {
865
- if (ctx.line?.id) await api('POST', `/api/workshop/dcw/lines/${ctx.line.id}/stop`, { body: {}, token: t }).catch(() => {})
866
- if (ctx.channelId) await api('DELETE', `/api/workshop/channels/${ctx.channelId}?purge=1`, { token: t }).catch(() => {})
867
- for (const n of Object.values(ctx.dcw)) if (n?.id) await api('DELETE', `/api/workshop/dcw/${n.id}`, { token: t }).catch(() => {})
868
- for (const n of Object.values(ctx.daq)) if (n?.id) await api('DELETE', `/api/workshop/daq/${n.id}`, { token: t }).catch(() => {})
869
- if (ctx.recipe?.id) await api('DELETE', `/api/workshop/dcw/recipes/${ctx.recipe.id}`, { token: t }).catch(() => {})
870
- if (ctx.product?.id) await api('DELETE', `/api/workshop/dcw/products/${ctx.product.id}`, { token: t }).catch(() => {})
871
- if (ctx.line?.id) await api('DELETE', `/api/workshop/dcw/lines/${ctx.line.id}`, { token: t }).catch(() => {})
872
- console.log(' · 测试夹具已清理')
873
- }
874
- catch (err) {
875
- console.log(` · 清理异常(不影响结果): ${err.message}`)
876
- }
877
- }
878
-
879
- // ════════════════════════════════════════════════════════════════
880
- async function main() {
881
- console.log(`\n════ AgentWorkShop 全链路 E2E @ ${BASE} (tag=${TAG}) ════`)
882
- // 就绪探测:用只读的 setup-status,不写任何数据(早先用 register 探测会抢走
883
- // "首个用户 = admin" 名额,导致后续 S1 拿到普通角色而全线 403)
884
- const health = await fetch(`${BASE}/api/users/setup-status`).catch(() => null)
885
- if (!health || !health.ok) {
886
- console.error(`✖ 目标服务不可达或未就绪: ${BASE}\n 请先启动: node scripts/start.mjs --port ${new URL(BASE).port}`)
887
- process.exit(1)
888
- }
889
- const st = await health.json().catch(() => ({}))
890
- console.log(` · 服务就绪(needsSetup=${st?.data?.needsSetup ?? st?.needsSetup})`)
891
-
892
- const stages = [
893
- ['S1', s1_accounts],
894
- ['S2', s2_model],
895
- ['S3', s3_drivers],
896
- ['S4', s4_daq],
897
- ['S5', s5_frames],
898
- ['S6', s6_dcw],
899
- ['S7', s7_rollback],
900
- ['S8', s8_agent_authz],
901
- ['S9', s9_bridge_authz],
902
- ['S10', s10_plugins],
903
- ['S11', s11_data_root],
904
- ]
905
- for (const [id, fn] of stages) {
906
- try {
907
- await fn()
908
- }
909
- catch (err) {
910
- fail++
911
- failures.push(`${id} 阶段异常`)
912
- console.error(` ✘ ${id} 阶段异常: ${err?.message ?? err}`)
913
- }
914
- }
915
-
916
- await cleanup()
917
-
918
- console.log(`\n════ 结果: ${pass} PASS / ${fail} FAIL ════`)
919
- if (failures.length) {
920
- console.log('失败项:')
921
- for (const f of failures) console.log(` - ${f}`)
922
- }
923
- process.exit(fail === 0 ? 0 : 1)
924
- }
11
+ import { main } from './e2e-closedloop/main.mjs'
925
12
 
926
13
  main().catch((err) => {
927
14
  console.error('E2E 致命异常:', err)