agentworkshop 0.7.65 → 0.7.70

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 (1374) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +324 -26
  2. package/.env.example +3 -0
  3. package/.output/.AgentWorkShop/aml-python/__pycache__/amlkit.cpython-312.pyc +0 -0
  4. package/.output/.AgentWorkShop/prompts/host-tools.json +324 -26
  5. package/.output/nitro.json +1 -1
  6. package/.output/public/_nuxt/-jpUnM1I2.js +1 -0
  7. package/.output/public/_nuxt/0MLy6ogg2.js +1 -0
  8. package/.output/public/_nuxt/2KE8xGVm2.js +1 -0
  9. package/.output/public/_nuxt/5S26I34j2.js +1 -0
  10. package/.output/public/_nuxt/62J4vljm2.js +1 -0
  11. package/.output/public/_nuxt/AuthGate.72Jdc4d6.css +1 -0
  12. package/.output/public/_nuxt/B-U7E_Mc2.js +1 -0
  13. package/.output/public/_nuxt/B1OMZaQh.js +1 -0
  14. package/.output/public/_nuxt/B1PzYsqN.js +4 -0
  15. package/.output/public/_nuxt/B1SzppY12.js +1 -0
  16. package/.output/public/_nuxt/B3Y5bCrM.js +1 -0
  17. package/.output/public/_nuxt/B5FKaMM02.js +1 -0
  18. package/.output/public/_nuxt/B8C-QJB5.js +1 -0
  19. package/.output/public/_nuxt/B8N8nsad2.js +2 -0
  20. package/.output/public/_nuxt/B8cViLJT2.js +1 -0
  21. package/.output/public/_nuxt/BAcjVcku2.js +1 -0
  22. package/.output/public/_nuxt/BC7W6lNm.js +1 -0
  23. package/.output/public/_nuxt/BErG4kzc2.js +1 -0
  24. package/.output/public/_nuxt/BJ2nJNlK2.js +1 -0
  25. package/.output/public/_nuxt/BJrj5JVe2.js +1 -0
  26. package/.output/public/_nuxt/BLwDhlaa.js +1 -0
  27. package/.output/public/_nuxt/BNNtKbSV.js +14 -0
  28. package/.output/public/_nuxt/BQIO4MkA2.js +1 -0
  29. package/.output/public/_nuxt/BRMVDfPl2.js +21 -0
  30. package/.output/public/_nuxt/BRdoISnJ2.js +1 -0
  31. package/.output/public/_nuxt/BUTg4W_x2.js +1 -0
  32. package/.output/public/_nuxt/BWn-lfCp2.js +1 -0
  33. package/.output/public/_nuxt/BYLc8cfE.js +1 -0
  34. package/.output/public/_nuxt/BYxG9Hb2.js +1 -0
  35. package/.output/public/_nuxt/B_-vAvzb.js +1 -0
  36. package/.output/public/_nuxt/BcEr7tIB.js +1 -0
  37. package/.output/public/_nuxt/Bc_k6AVA.js +23 -0
  38. package/.output/public/_nuxt/BfQ-ptH0.js +1 -0
  39. package/.output/public/_nuxt/BfX6_AjY.js +1 -0
  40. package/.output/public/_nuxt/Bj5sjA5O.js +1 -0
  41. package/.output/public/_nuxt/BjLzqWJH2.js +1 -0
  42. package/.output/public/_nuxt/BjSEVANF.js +1 -0
  43. package/.output/public/_nuxt/Bnc8HELj2.js +1 -0
  44. package/.output/public/_nuxt/Bq9DDqiq2.js +1 -0
  45. package/.output/public/_nuxt/BsTZnkVK.js +1 -0
  46. package/.output/public/_nuxt/BtfwbNC0.js +1 -0
  47. package/.output/public/_nuxt/BwO2Y5FH2.js +1 -0
  48. package/.output/public/_nuxt/Bx2a9cuY2.js +1 -0
  49. package/.output/public/_nuxt/Bx4MR0jd.js +1 -0
  50. package/.output/public/_nuxt/C-MY-JQE2.js +1 -0
  51. package/.output/public/_nuxt/C0YL0HKK.js +1 -0
  52. package/.output/public/_nuxt/C1vvxGo02.js +1 -0
  53. package/.output/public/_nuxt/C3aUN4Vp2.js +2 -0
  54. package/.output/public/_nuxt/C3sWJ8SD2.js +1 -0
  55. package/.output/public/_nuxt/C41CcsiD.js +1 -0
  56. package/.output/public/_nuxt/C6uBP0Xa.js +1 -0
  57. package/.output/public/_nuxt/C9gErLQc2.js +17 -0
  58. package/.output/public/_nuxt/CAiHhX8P2.js +7 -0
  59. package/.output/public/_nuxt/CCgbgkid.js +47 -0
  60. package/.output/public/_nuxt/CDn0eDn8.js +1 -0
  61. package/.output/public/_nuxt/CGk_VUhO2.js +1 -0
  62. package/.output/public/_nuxt/CHSAaKgE.js +209 -0
  63. package/.output/public/_nuxt/CIvMT5Ic.js +1 -0
  64. package/.output/public/_nuxt/CJ0bjZ6v2.js +1 -0
  65. package/.output/public/_nuxt/CJ3Vul2u.js +1 -0
  66. package/.output/public/_nuxt/CJSohaqk2.js +13 -0
  67. package/.output/public/_nuxt/CLxmY3Rh.js +1 -0
  68. package/.output/public/_nuxt/CNwx04ln.js +84 -0
  69. package/.output/public/_nuxt/CQgOzpvI.js +2 -0
  70. package/.output/public/_nuxt/CR612R752.js +1 -0
  71. package/.output/public/_nuxt/CVCscYzb2.js +1 -0
  72. package/.output/public/_nuxt/C_A0MCol2.js +1 -0
  73. package/.output/public/_nuxt/Car2lkbb.js +1 -0
  74. package/.output/public/_nuxt/CcX_jP-d.js +1 -0
  75. package/.output/public/_nuxt/Ce5R-ZGf2.js +1 -0
  76. package/.output/public/_nuxt/Ce6e1mPk2.js +1 -0
  77. package/.output/public/_nuxt/CeLqojCJ.js +1 -0
  78. package/.output/public/_nuxt/CiCEprsp2.js +1 -0
  79. package/.output/public/_nuxt/CnP6snIz.js +3 -0
  80. package/.output/public/_nuxt/Cp4r6Eiz.js +1 -0
  81. package/.output/public/_nuxt/CwZW1ZCe2.js +1 -0
  82. package/.output/public/_nuxt/CzX_kaPL.js +1 -0
  83. package/.output/public/_nuxt/D25dVZ822.js +3 -0
  84. package/.output/public/_nuxt/D3buuIkE.js +1 -0
  85. package/.output/public/_nuxt/D4_INWgq.js +1 -0
  86. package/.output/public/_nuxt/D5kCimyw.js +1 -0
  87. package/.output/public/_nuxt/D6ZcgHPz.js +1 -0
  88. package/.output/public/_nuxt/D7s96J3r2.js +1 -0
  89. package/.output/public/_nuxt/D8r8PNQa2.js +1 -0
  90. package/.output/public/_nuxt/DAsjfdZD.js +1 -0
  91. package/.output/public/_nuxt/DD-r0S1p.js +1 -0
  92. package/.output/public/_nuxt/DF32f5EL.js +1 -0
  93. package/.output/public/_nuxt/DGrrucbG2.js +1 -0
  94. package/.output/public/_nuxt/DHURbGkn2.js +1 -0
  95. package/.output/public/_nuxt/DHhmq7s_.js +1 -0
  96. package/.output/public/_nuxt/DIwmMa_7.js +1 -0
  97. package/.output/public/_nuxt/DJJDigim2.js +3 -0
  98. package/.output/public/_nuxt/DKiqdYnj.js +1 -0
  99. package/.output/public/_nuxt/DLqSQbGv.js +1 -0
  100. package/.output/public/_nuxt/DQfy6R_2.js +1 -0
  101. package/.output/public/_nuxt/DSORcpTJ.js +9 -0
  102. package/.output/public/_nuxt/DTQTGA6v2.js +1 -0
  103. package/.output/public/_nuxt/DVkFSOZi.js +1 -0
  104. package/.output/public/_nuxt/DW8k_0dQ.js +1 -0
  105. package/.output/public/_nuxt/DX-c5laM2.js +1 -0
  106. package/.output/public/_nuxt/DZJ11BTI.js +1 -0
  107. package/.output/public/_nuxt/D_NjL-Hz.js +1 -0
  108. package/.output/public/_nuxt/D_Zspo1y.js +1 -0
  109. package/.output/public/_nuxt/DaBzS-iu.js +1 -0
  110. package/.output/public/_nuxt/Dd7MZc_Q.js +1 -0
  111. package/.output/public/_nuxt/Dg81dOEO.js +1 -0
  112. package/.output/public/_nuxt/DjGYvFyA.js +1 -0
  113. package/.output/public/_nuxt/DkQBMVTs2.js +1 -0
  114. package/.output/public/_nuxt/DlcA9Gxl.js +1 -0
  115. package/.output/public/_nuxt/DnlhV7Xe.js +1 -0
  116. package/.output/public/_nuxt/DnzjxC0u.js +24 -0
  117. package/.output/public/_nuxt/DoGa0vsN.js +1 -0
  118. package/.output/public/_nuxt/DrF3TWoj.js +15 -0
  119. package/.output/public/_nuxt/DtiY69xi2.js +1 -0
  120. package/.output/public/_nuxt/DvOETuoT2.js +1 -0
  121. package/.output/public/_nuxt/GtI6PUI32.js +1 -0
  122. package/.output/public/_nuxt/HX4_xnak2.js +13 -0
  123. package/.output/public/_nuxt/HxohXQ_r.js +1 -0
  124. package/.output/public/_nuxt/KQZmHR_K.js +55 -0
  125. package/.output/public/_nuxt/KgnxOsMr.js +1 -0
  126. package/.output/public/_nuxt/KwT4sN_d.js +1 -0
  127. package/.output/public/_nuxt/MDhaRQq_.js +1 -0
  128. package/.output/public/_nuxt/Rt2i6k7C2.js +1 -0
  129. package/.output/public/_nuxt/SF0I6Hzp2.js +36 -0
  130. package/.output/public/_nuxt/SoO2K-di.js +1 -0
  131. package/.output/public/_nuxt/Tk6TQZjU.js +1 -0
  132. package/.output/public/_nuxt/TownView.CC3t-Dte.css +1 -0
  133. package/.output/public/_nuxt/Tuz5LcLM.js +1 -0
  134. package/.output/public/_nuxt/WPwdj9pg.js +1 -0
  135. package/.output/public/_nuxt/Y4sMSPrS.js +1 -0
  136. package/.output/public/_nuxt/_id_.BQRWK7J2.css +1 -0
  137. package/.output/public/_nuxt/_id_.DSbZhSO1.css +1 -0
  138. package/.output/public/_nuxt/_wsId_.DCnKQQdY.css +1 -0
  139. package/.output/public/_nuxt/aQ1B7BZa2.js +2 -0
  140. package/.output/public/_nuxt/agents.D-JPovTZ.css +1 -0
  141. package/.output/public/_nuxt/aml.CeLxRzvI.css +1 -0
  142. package/.output/public/_nuxt/analysis.CqR_dfoW.css +1 -0
  143. package/.output/public/_nuxt/board.jjp4MSZR.css +1 -0
  144. package/.output/public/_nuxt/builds/latest.json +1 -1
  145. package/.output/public/_nuxt/builds/meta/cd7ec308-625f-4eb8-a841-11f3127fbf66.json +1 -0
  146. package/.output/public/_nuxt/channel-templates.DgiL0L16.css +1 -0
  147. package/.output/public/_nuxt/cjRzSvAg2.js +31 -0
  148. package/.output/public/_nuxt/dJ7gK7C2.js +1 -0
  149. package/.output/public/_nuxt/daq.BUeQwO2J.css +1 -0
  150. package/.output/public/_nuxt/data.D7XYoiL8.css +1 -0
  151. package/.output/public/_nuxt/dcw.n8O0ptzV.css +1 -0
  152. package/.output/public/_nuxt/default.C9eAl1QW.css +1 -0
  153. package/.output/public/_nuxt/dq1HKoGD.js +1 -0
  154. package/.output/public/_nuxt/entry.DI0qLRfo.css +1 -0
  155. package/.output/public/_nuxt/h5gsh8E92.js +1 -0
  156. package/.output/public/_nuxt/jGxHnjW6.js +1 -0
  157. package/.output/public/_nuxt/kN3ZzR1-.js +1 -0
  158. package/.output/public/_nuxt/logs.BkJPbR_K.css +1 -0
  159. package/.output/public/_nuxt/monitor.D3yEqqrv.css +1 -0
  160. package/.output/public/_nuxt/n_Njdwii2.js +1 -0
  161. package/.output/public/_nuxt/operations.-l6u44Ar.css +1 -0
  162. package/.output/public/_nuxt/pages.Cdpm_B-G.css +1 -0
  163. package/.output/public/_nuxt/plugins.D3bf5Gg3.css +1 -0
  164. package/.output/public/_nuxt/qRXa-PM22.js +1 -0
  165. package/.output/public/_nuxt/qoUdVDnC.js +19 -0
  166. package/.output/public/_nuxt/r1CpGsFp.js +1 -0
  167. package/.output/public/_nuxt/rJ7To74v2.js +1 -0
  168. package/.output/public/_nuxt/rdUE8Khf.js +14 -0
  169. package/.output/public/_nuxt/rxhDcyfF.js +1 -0
  170. package/.output/public/_nuxt/sBDZymdy2.js +1 -0
  171. package/.output/public/_nuxt/settings.CXju_jh-.css +1 -0
  172. package/.output/public/_nuxt/studio.DiCFYeMk.css +1 -0
  173. package/.output/public/_nuxt/teams.CLQaXno5.css +1 -0
  174. package/.output/public/_nuxt/tokens.BDSUWF-L.css +1 -0
  175. package/.output/public/_nuxt/tools.BwXFAb-X.css +1 -0
  176. package/.output/public/_nuxt/uu1wfdfR2.js +1 -0
  177. package/.output/public/_nuxt/vPcnBJsa2.js +1 -0
  178. package/.output/public/_nuxt/w5BEz70W.js +1 -0
  179. package/.output/public/_nuxt/wR_w07322.js +1 -0
  180. package/.output/public/_nuxt/workshop.BBiFhXuM.css +1 -0
  181. package/.output/public/_nuxt/yLyz0-Yz.js +1 -0
  182. package/.output/public/_nuxt/zzV9kr9T.js +21 -0
  183. package/.output/server/chunks/_/LeftOutlined.mjs +1 -1
  184. package/.output/server/chunks/_/RightOutlined.mjs +23 -0
  185. package/.output/server/chunks/_/RightOutlined.mjs.map +1 -0
  186. package/.output/server/chunks/_/SearchOutlined.mjs +1401 -0
  187. package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -0
  188. package/.output/server/chunks/_/catalog-view.mjs +176 -0
  189. package/.output/server/chunks/_/catalog-view.mjs.map +1 -0
  190. package/.output/server/chunks/_/chart-repo.mjs +147 -0
  191. package/.output/server/chunks/_/chart-repo.mjs.map +1 -0
  192. package/.output/server/chunks/_/dashboard-repo.mjs +127 -0
  193. package/.output/server/chunks/_/dashboard-repo.mjs.map +1 -0
  194. package/.output/server/chunks/_/data-export.mjs +228 -0
  195. package/.output/server/chunks/_/data-export.mjs.map +1 -0
  196. package/.output/server/chunks/_/data-query.mjs +162 -0
  197. package/.output/server/chunks/_/data-query.mjs.map +1 -0
  198. package/.output/server/chunks/_/eda-db.mjs +199 -0
  199. package/.output/server/chunks/_/eda-db.mjs.map +1 -0
  200. package/.output/server/chunks/_/eda-run.repo.mjs +159 -0
  201. package/.output/server/chunks/_/eda-run.repo.mjs.map +1 -0
  202. package/.output/server/chunks/_/features.mjs +281 -0
  203. package/.output/server/chunks/_/features.mjs.map +1 -0
  204. package/.output/server/chunks/_/golden.mjs +197 -0
  205. package/.output/server/chunks/_/golden.mjs.map +1 -0
  206. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  207. package/.output/server/chunks/_/mes-console.mjs +188 -0
  208. package/.output/server/chunks/_/mes-console.mjs.map +1 -0
  209. package/.output/server/chunks/_/nitro.mjs +5593 -2600
  210. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  211. package/.output/server/chunks/_/ocap.mjs +145 -0
  212. package/.output/server/chunks/_/ocap.mjs.map +1 -0
  213. package/.output/server/chunks/_/spc.mjs +299 -0
  214. package/.output/server/chunks/_/spc.mjs.map +1 -0
  215. package/.output/server/chunks/build/AuthGate-nF1evO4v.mjs +716 -0
  216. package/.output/server/chunks/build/AuthGate-nF1evO4v.mjs.map +1 -0
  217. package/.output/server/chunks/build/FormItemContext-BlyzocS0.mjs +72 -0
  218. package/.output/server/chunks/build/FormItemContext-BlyzocS0.mjs.map +1 -0
  219. package/.output/server/chunks/build/OmpTerminalPanel-BhvhQ1gG.mjs +942 -0
  220. package/.output/server/chunks/build/OmpTerminalPanel-BhvhQ1gG.mjs.map +1 -0
  221. package/.output/server/chunks/build/PluginSlot-BUKXwV2X.mjs +141 -0
  222. package/.output/server/chunks/build/PluginSlot-BUKXwV2X.mjs.map +1 -0
  223. package/.output/server/chunks/build/TownView-BWMDbosY.mjs +6489 -0
  224. package/.output/server/chunks/build/TownView-BWMDbosY.mjs.map +1 -0
  225. package/.output/server/chunks/build/_id_-BK-t8nRG.mjs +391 -0
  226. package/.output/server/chunks/build/_id_-BK-t8nRG.mjs.map +1 -0
  227. package/.output/server/chunks/build/_id_-CZPlPDm4.mjs +2044 -0
  228. package/.output/server/chunks/build/_id_-CZPlPDm4.mjs.map +1 -0
  229. package/.output/server/chunks/build/_wsId_-BXSYXXXX.mjs +14276 -0
  230. package/.output/server/chunks/build/_wsId_-BXSYXXXX.mjs.map +1 -0
  231. package/.output/server/chunks/build/agents-8tV9xL97.mjs +1077 -0
  232. package/.output/server/chunks/build/agents-8tV9xL97.mjs.map +1 -0
  233. package/.output/server/chunks/build/alert-D0ivtTGy.mjs +263 -0
  234. package/.output/server/chunks/build/alert-D0ivtTGy.mjs.map +1 -0
  235. package/.output/server/chunks/build/aml-BNTEDOsl.mjs +810 -0
  236. package/.output/server/chunks/build/aml-BNTEDOsl.mjs.map +1 -0
  237. package/.output/server/chunks/build/analysis-p-dBkjoK.mjs +532 -0
  238. package/.output/server/chunks/build/analysis-p-dBkjoK.mjs.map +1 -0
  239. package/.output/server/chunks/build/board-C6JysYLg.mjs +190 -0
  240. package/.output/server/chunks/build/board-C6JysYLg.mjs.map +1 -0
  241. package/.output/server/chunks/build/card-Cqk0Ur-L.mjs +953 -0
  242. package/.output/server/chunks/build/card-Cqk0Ur-L.mjs.map +1 -0
  243. package/.output/server/chunks/build/channel-templates-Iot9Y3vV.mjs +941 -0
  244. package/.output/server/chunks/build/channel-templates-Iot9Y3vV.mjs.map +1 -0
  245. package/.output/server/chunks/build/checkbox-CrT4cnfu.mjs +439 -0
  246. package/.output/server/chunks/build/checkbox-CrT4cnfu.mjs.map +1 -0
  247. package/.output/server/chunks/build/client-only-qNA2OVV_.mjs +43 -0
  248. package/.output/server/chunks/build/client-only-qNA2OVV_.mjs.map +1 -0
  249. package/.output/server/chunks/build/daq-CdxcfY_G.mjs +1265 -0
  250. package/.output/server/chunks/build/daq-CdxcfY_G.mjs.map +1 -0
  251. package/.output/server/chunks/build/data-DL68QJ5W.mjs +477 -0
  252. package/.output/server/chunks/build/data-DL68QJ5W.mjs.map +1 -0
  253. package/.output/server/chunks/build/dcw-BlDQtS4q.mjs +504 -0
  254. package/.output/server/chunks/build/dcw-BlDQtS4q.mjs.map +1 -0
  255. package/.output/server/chunks/build/default-Dt1B8QzV.mjs +2340 -0
  256. package/.output/server/chunks/build/default-Dt1B8QzV.mjs.map +1 -0
  257. package/.output/server/chunks/build/descriptions-BNlfKG9y.mjs +406 -0
  258. package/.output/server/chunks/build/descriptions-BNlfKG9y.mjs.map +1 -0
  259. package/.output/server/chunks/build/drawer-Caji0PLs.mjs +834 -0
  260. package/.output/server/chunks/build/drawer-Caji0PLs.mjs.map +1 -0
  261. package/.output/server/chunks/build/dropdown-C6YH_kSO.mjs +540 -0
  262. package/.output/server/chunks/build/dropdown-C6YH_kSO.mjs.map +1 -0
  263. package/.output/server/chunks/build/dropdown-CjwsxU39.mjs +14 -0
  264. package/.output/server/chunks/build/dropdown-CjwsxU39.mjs.map +1 -0
  265. package/.output/server/chunks/build/es-Bxu10NJ2.mjs +42 -0
  266. package/.output/server/chunks/build/es-Bxu10NJ2.mjs.map +1 -0
  267. package/.output/server/chunks/build/firstNotUndefined-8H5_qHUu.mjs +2448 -0
  268. package/.output/server/chunks/build/firstNotUndefined-8H5_qHUu.mjs.map +1 -0
  269. package/.output/server/chunks/build/form-D_UpWPN4.mjs +4712 -0
  270. package/.output/server/chunks/build/form-D_UpWPN4.mjs.map +1 -0
  271. package/.output/server/chunks/build/hasIn-DBdElbjM.mjs +553 -0
  272. package/.output/server/chunks/build/hasIn-DBdElbjM.mjs.map +1 -0
  273. package/.output/server/chunks/build/hitl-Bd30yr1J.mjs +132 -0
  274. package/.output/server/chunks/build/hitl-Bd30yr1J.mjs.map +1 -0
  275. package/.output/server/chunks/build/input-GtPuSEgt.mjs +2181 -0
  276. package/.output/server/chunks/build/input-GtPuSEgt.mjs.map +1 -0
  277. package/.output/server/chunks/build/input-number-BNlNDK7H.mjs +1120 -0
  278. package/.output/server/chunks/build/input-number-BNlNDK7H.mjs.map +1 -0
  279. package/.output/server/chunks/build/logs-BTfJQ6vQ.mjs +426 -0
  280. package/.output/server/chunks/build/logs-BTfJQ6vQ.mjs.map +1 -0
  281. package/.output/server/chunks/build/menu-BXt-X0dt.mjs +1952 -0
  282. package/.output/server/chunks/build/menu-BXt-X0dt.mjs.map +1 -0
  283. package/.output/server/chunks/build/monitor-DvaR3yo8.mjs +2252 -0
  284. package/.output/server/chunks/build/monitor-DvaR3yo8.mjs.map +1 -0
  285. package/.output/server/chunks/build/operations-Cl8nVm9D.mjs +310 -0
  286. package/.output/server/chunks/build/operations-Cl8nVm9D.mjs.map +1 -0
  287. package/.output/server/chunks/build/pages-AFRP4-EL.mjs +541 -0
  288. package/.output/server/chunks/build/pages-AFRP4-EL.mjs.map +1 -0
  289. package/.output/server/chunks/build/pagination-KaIvHBzi.mjs +1346 -0
  290. package/.output/server/chunks/build/pagination-KaIvHBzi.mjs.map +1 -0
  291. package/.output/server/chunks/build/permissions-CVTfixZj.mjs +636 -0
  292. package/.output/server/chunks/build/permissions-CVTfixZj.mjs.map +1 -0
  293. package/.output/server/chunks/build/plugins-LRjaSEZy.mjs +271 -0
  294. package/.output/server/chunks/build/plugins-LRjaSEZy.mjs.map +1 -0
  295. package/.output/server/chunks/build/popconfirm-DxYPGRgS.mjs +340 -0
  296. package/.output/server/chunks/build/popconfirm-DxYPGRgS.mjs.map +1 -0
  297. package/.output/server/chunks/build/responsiveObserve-DM3hpzhU.mjs +78 -0
  298. package/.output/server/chunks/build/responsiveObserve-DM3hpzhU.mjs.map +1 -0
  299. package/.output/server/chunks/build/schedules-BLhn2CLn.mjs +7171 -0
  300. package/.output/server/chunks/build/schedules-BLhn2CLn.mjs.map +1 -0
  301. package/.output/server/chunks/build/segmented-D3HWtHPw.mjs +341 -0
  302. package/.output/server/chunks/build/segmented-D3HWtHPw.mjs.map +1 -0
  303. package/.output/server/chunks/build/select--XFl7CtY.mjs +3923 -0
  304. package/.output/server/chunks/build/select--XFl7CtY.mjs.map +1 -0
  305. package/.output/server/chunks/build/settings-DIf_iYdu.mjs +1013 -0
  306. package/.output/server/chunks/build/settings-DIf_iYdu.mjs.map +1 -0
  307. package/.output/server/chunks/build/space-Dwu2Skt8.mjs +110 -0
  308. package/.output/server/chunks/build/space-Dwu2Skt8.mjs.map +1 -0
  309. package/.output/server/chunks/build/spin-C2cuvGth.mjs +1 -1
  310. package/.output/server/chunks/build/studio-DjhjwH4s.mjs +383 -0
  311. package/.output/server/chunks/build/studio-DjhjwH4s.mjs.map +1 -0
  312. package/.output/server/chunks/build/switch-CyR-H6Fb.mjs +377 -0
  313. package/.output/server/chunks/build/switch-CyR-H6Fb.mjs.map +1 -0
  314. package/.output/server/chunks/build/table-DIu_YCJN.mjs +7546 -0
  315. package/.output/server/chunks/build/table-DIu_YCJN.mjs.map +1 -0
  316. package/.output/server/chunks/build/tabs-Vg0e7cZE.mjs +1924 -0
  317. package/.output/server/chunks/build/tabs-Vg0e7cZE.mjs.map +1 -0
  318. package/.output/server/chunks/build/tag-y0sn-xv9.mjs +1156 -0
  319. package/.output/server/chunks/build/tag-y0sn-xv9.mjs.map +1 -0
  320. package/.output/server/chunks/build/teams-B2J6ouRY.mjs +1202 -0
  321. package/.output/server/chunks/build/teams-B2J6ouRY.mjs.map +1 -0
  322. package/.output/server/chunks/build/tokens-DFQGaN2n.mjs +1061 -0
  323. package/.output/server/chunks/build/tokens-DFQGaN2n.mjs.map +1 -0
  324. package/.output/server/chunks/build/tools-DWJFnU_t.mjs +486 -0
  325. package/.output/server/chunks/build/tools-DWJFnU_t.mjs.map +1 -0
  326. package/.output/server/chunks/build/tooltip-C2n2nNiQ.mjs +920 -0
  327. package/.output/server/chunks/build/tooltip-C2n2nNiQ.mjs.map +1 -0
  328. package/.output/server/chunks/build/town-B5aoiG98.mjs +132 -0
  329. package/.output/server/chunks/build/town-B5aoiG98.mjs.map +1 -0
  330. package/.output/server/chunks/build/town-BV-hbwb5.mjs +1 -1
  331. package/.output/server/chunks/build/types-D6J7slEa.mjs +1 -1
  332. package/.output/server/chunks/build/useAgentHarnessOptions-DOrQHeBh.mjs +123 -0
  333. package/.output/server/chunks/build/useAgentHarnessOptions-DOrQHeBh.mjs.map +1 -0
  334. package/.output/server/chunks/build/useAgentTemplateActions-CzlplRWh.mjs +76 -0
  335. package/.output/server/chunks/build/useAgentTemplateActions-CzlplRWh.mjs.map +1 -0
  336. package/.output/server/chunks/build/useAgentTemplateForm-DQo1enf2.mjs +116 -0
  337. package/.output/server/chunks/build/useAgentTemplateForm-DQo1enf2.mjs.map +1 -0
  338. package/.output/server/chunks/build/useAgentTemplatesCatalog-DP-iMmqz.mjs +132 -0
  339. package/.output/server/chunks/build/useAgentTemplatesCatalog-DP-iMmqz.mjs.map +1 -0
  340. package/.output/server/chunks/build/useAmlEntities-BJhvdqHJ.mjs +85 -0
  341. package/.output/server/chunks/build/useAmlEntities-BJhvdqHJ.mjs.map +1 -0
  342. package/.output/server/chunks/build/useAmlEnv-CDIZ6xTe.mjs +193 -0
  343. package/.output/server/chunks/build/useAmlEnv-CDIZ6xTe.mjs.map +1 -0
  344. package/.output/server/chunks/build/useAmlJobs-BF9LpwXz.mjs +266 -0
  345. package/.output/server/chunks/build/useAmlJobs-BF9LpwXz.mjs.map +1 -0
  346. package/.output/server/chunks/build/useAmlModels-_bweOr3R.mjs +92 -0
  347. package/.output/server/chunks/build/useAmlModels-_bweOr3R.mjs.map +1 -0
  348. package/.output/server/chunks/build/useAmlNotes-DQj980iX.mjs +85 -0
  349. package/.output/server/chunks/build/useAmlNotes-DQj980iX.mjs.map +1 -0
  350. package/.output/server/chunks/build/useAmlPredict-DHNgDSJn.mjs +129 -0
  351. package/.output/server/chunks/build/useAmlPredict-DHNgDSJn.mjs.map +1 -0
  352. package/.output/server/chunks/build/useAnalysisFeed-BrEGV_9x.mjs +128 -0
  353. package/.output/server/chunks/build/useAnalysisFeed-BrEGV_9x.mjs.map +1 -0
  354. package/.output/server/chunks/build/useDaqAddNode-D_Rkju0f.mjs +141 -0
  355. package/.output/server/chunks/build/useDaqAddNode-D_Rkju0f.mjs.map +1 -0
  356. package/.output/server/chunks/build/useDaqDetailBinding-DCWaLKXT.mjs +69 -0
  357. package/.output/server/chunks/build/useDaqDetailBinding-DCWaLKXT.mjs.map +1 -0
  358. package/.output/server/chunks/build/useDaqDetailFrames-BOIcOJRB.mjs +78 -0
  359. package/.output/server/chunks/build/useDaqDetailFrames-BOIcOJRB.mjs.map +1 -0
  360. package/.output/server/chunks/build/useDaqDetailHistory-D6WulPVs.mjs +175 -0
  361. package/.output/server/chunks/build/useDaqDetailHistory-D6WulPVs.mjs.map +1 -0
  362. package/.output/server/chunks/build/useDaqDetailNode-DeOsDxK5.mjs +98 -0
  363. package/.output/server/chunks/build/useDaqDetailNode-DeOsDxK5.mjs.map +1 -0
  364. package/.output/server/chunks/build/useDaqDetailParams-Cm9a9r5G.mjs +158 -0
  365. package/.output/server/chunks/build/useDaqDetailParams-Cm9a9r5G.mjs.map +1 -0
  366. package/.output/server/chunks/build/useDaqFilters-CctmO03p.mjs +221 -0
  367. package/.output/server/chunks/build/useDaqFilters-CctmO03p.mjs.map +1 -0
  368. package/.output/server/chunks/build/useDaqOptimizations-CmX_dpBc.mjs +135 -0
  369. package/.output/server/chunks/build/useDaqOptimizations-CmX_dpBc.mjs.map +1 -0
  370. package/.output/server/chunks/build/useDaqStream-B9ZBVQrI.mjs +395 -0
  371. package/.output/server/chunks/build/useDaqStream-B9ZBVQrI.mjs.map +1 -0
  372. package/.output/server/chunks/build/useDaqTemplates-CK37sMfi.mjs +186 -0
  373. package/.output/server/chunks/build/useDaqTemplates-CK37sMfi.mjs.map +1 -0
  374. package/.output/server/chunks/build/useDashboardData-B36wVWo2.mjs +152 -0
  375. package/.output/server/chunks/build/useDashboardData-B36wVWo2.mjs.map +1 -0
  376. package/.output/server/chunks/build/useDcwAddNode-DACVcEHs.mjs +218 -0
  377. package/.output/server/chunks/build/useDcwAddNode-DACVcEHs.mjs.map +1 -0
  378. package/.output/server/chunks/build/useDcwCards-SaiImIYQ.mjs +66 -0
  379. package/.output/server/chunks/build/useDcwCards-SaiImIYQ.mjs.map +1 -0
  380. package/.output/server/chunks/build/useDcwDetailScope-DLOklSMO.mjs +183 -0
  381. package/.output/server/chunks/build/useDcwDetailScope-DLOklSMO.mjs.map +1 -0
  382. package/.output/server/chunks/build/useDcwDetailTemplates-ClmIdZ40.mjs +147 -0
  383. package/.output/server/chunks/build/useDcwDetailTemplates-ClmIdZ40.mjs.map +1 -0
  384. package/.output/server/chunks/build/useDcwFilter-CPMyCltx.mjs +70 -0
  385. package/.output/server/chunks/build/useDcwFilter-CPMyCltx.mjs.map +1 -0
  386. package/.output/server/chunks/build/useDcwLedger-0ie-0WTc.mjs +78 -0
  387. package/.output/server/chunks/build/useDcwLedger-0ie-0WTc.mjs.map +1 -0
  388. package/.output/server/chunks/build/useDcwLineMutations-DNxo66yM.mjs +136 -0
  389. package/.output/server/chunks/build/useDcwLineMutations-DNxo66yM.mjs.map +1 -0
  390. package/.output/server/chunks/build/useDcwLineRun-CHskwscT.mjs +103 -0
  391. package/.output/server/chunks/build/useDcwLineRun-CHskwscT.mjs.map +1 -0
  392. package/.output/server/chunks/build/useDcwParamApprovals-DtScUc-W.mjs +120 -0
  393. package/.output/server/chunks/build/useDcwParamApprovals-DtScUc-W.mjs.map +1 -0
  394. package/.output/server/chunks/build/useDcwProducts-BMaxzLu6.mjs +92 -0
  395. package/.output/server/chunks/build/useDcwProducts-BMaxzLu6.mjs.map +1 -0
  396. package/.output/server/chunks/build/useDcwQuery-TVU3Eo0M.mjs +97 -0
  397. package/.output/server/chunks/build/useDcwQuery-TVU3Eo0M.mjs.map +1 -0
  398. package/.output/server/chunks/build/useDcwQuickActions-BREFmR9T.mjs +87 -0
  399. package/.output/server/chunks/build/useDcwQuickActions-BREFmR9T.mjs.map +1 -0
  400. package/.output/server/chunks/build/useDcwRecipes-Bc9urA1N.mjs +257 -0
  401. package/.output/server/chunks/build/useDcwRecipes-Bc9urA1N.mjs.map +1 -0
  402. package/.output/server/chunks/build/useDcwStream-Dir5ufAU.mjs +452 -0
  403. package/.output/server/chunks/build/useDcwStream-Dir5ufAU.mjs.map +1 -0
  404. package/.output/server/chunks/build/useDcwTemplates-BzagZztS.mjs +90 -0
  405. package/.output/server/chunks/build/useDcwTemplates-BzagZztS.mjs.map +1 -0
  406. package/.output/server/chunks/build/useDcwWrites-BROwTLCn.mjs +139 -0
  407. package/.output/server/chunks/build/useDcwWrites-BROwTLCn.mjs.map +1 -0
  408. package/.output/server/chunks/build/useExpConfirmations-BM626N4p.mjs +106 -0
  409. package/.output/server/chunks/build/useExpConfirmations-BM626N4p.mjs.map +1 -0
  410. package/.output/server/chunks/build/useLocalTime-uVSM44Um.mjs +55 -0
  411. package/.output/server/chunks/build/useLocalTime-uVSM44Um.mjs.map +1 -0
  412. package/.output/server/chunks/build/useLogsManual-cVBZQ_Mt.mjs +87 -0
  413. package/.output/server/chunks/build/useLogsManual-cVBZQ_Mt.mjs.map +1 -0
  414. package/.output/server/chunks/build/useLogsQuery-D7hrJ3yn.mjs +149 -0
  415. package/.output/server/chunks/build/useLogsQuery-D7hrJ3yn.mjs.map +1 -0
  416. package/.output/server/chunks/build/useLogsScope-aaPQeTRm.mjs +82 -0
  417. package/.output/server/chunks/build/useLogsScope-aaPQeTRm.mjs.map +1 -0
  418. package/.output/server/chunks/build/useMonitorColumns-vVnt3r5Q.mjs +216 -0
  419. package/.output/server/chunks/build/useMonitorColumns-vVnt3r5Q.mjs.map +1 -0
  420. package/.output/server/chunks/build/useMonitorData-DIkiLr_h.mjs +134 -0
  421. package/.output/server/chunks/build/useMonitorData-DIkiLr_h.mjs.map +1 -0
  422. package/.output/server/chunks/build/useMonitorFormat-CyURtH8N.mjs +90 -0
  423. package/.output/server/chunks/build/useMonitorFormat-CyURtH8N.mjs.map +1 -0
  424. package/.output/server/chunks/build/useOperationsFeed-Ci4mZAn_.mjs +194 -0
  425. package/.output/server/chunks/build/useOperationsFeed-Ci4mZAn_.mjs.map +1 -0
  426. package/.output/server/chunks/build/useOpsLog-C-M6Eace.mjs +149 -0
  427. package/.output/server/chunks/build/useOpsLog-C-M6Eace.mjs.map +1 -0
  428. package/.output/server/chunks/build/useRecipeDispatchApprovals-BYtiqfeb.mjs +155 -0
  429. package/.output/server/chunks/build/useRecipeDispatchApprovals-BYtiqfeb.mjs.map +1 -0
  430. package/.output/server/chunks/build/useTeamActions-I_8QWp9w.mjs +78 -0
  431. package/.output/server/chunks/build/useTeamActions-I_8QWp9w.mjs.map +1 -0
  432. package/.output/server/chunks/build/useTeamAddMemberDialog-BLn4nTuy.mjs +83 -0
  433. package/.output/server/chunks/build/useTeamAddMemberDialog-BLn4nTuy.mjs.map +1 -0
  434. package/.output/server/chunks/build/useTeamCreateDialog-Bp5qKtpI.mjs +96 -0
  435. package/.output/server/chunks/build/useTeamCreateDialog-Bp5qKtpI.mjs.map +1 -0
  436. package/.output/server/chunks/build/useTeamDeployDialog-DwIaz6Cx.mjs +79 -0
  437. package/.output/server/chunks/build/useTeamDeployDialog-DwIaz6Cx.mjs.map +1 -0
  438. package/.output/server/chunks/build/useTeamPluginDialog-B932gZOI.mjs +102 -0
  439. package/.output/server/chunks/build/useTeamPluginDialog-B932gZOI.mjs.map +1 -0
  440. package/.output/server/chunks/build/useTeamsCatalog-DBwaLQBw.mjs +122 -0
  441. package/.output/server/chunks/build/useTeamsCatalog-DBwaLQBw.mjs.map +1 -0
  442. package/.output/server/chunks/build/useTokenCreate-Ctl0YGhL.mjs +114 -0
  443. package/.output/server/chunks/build/useTokenCreate-Ctl0YGhL.mjs.map +1 -0
  444. package/.output/server/chunks/build/useTokenRename-Cm3ypSfN.mjs +86 -0
  445. package/.output/server/chunks/build/useTokenRename-Cm3ypSfN.mjs.map +1 -0
  446. package/.output/server/chunks/build/useTokenReveal-CeoWL5Mt.mjs +117 -0
  447. package/.output/server/chunks/build/useTokenReveal-CeoWL5Mt.mjs.map +1 -0
  448. package/.output/server/chunks/build/useTokensList-CNIzON3u.mjs +91 -0
  449. package/.output/server/chunks/build/useTokensList-CNIzON3u.mjs.map +1 -0
  450. package/.output/server/chunks/build/useWorkbenchAuth-CY-bVFMu.mjs +140 -0
  451. package/.output/server/chunks/build/useWorkbenchAuth-CY-bVFMu.mjs.map +1 -0
  452. package/.output/server/chunks/build/useWorkbenchWorkspaces-DhZQFss9.mjs +137 -0
  453. package/.output/server/chunks/build/useWorkbenchWorkspaces-DhZQFss9.mjs.map +1 -0
  454. package/.output/server/chunks/build/useWorkshopApi-CaSItJVq.mjs +119 -0
  455. package/.output/server/chunks/build/useWorkshopApi-CaSItJVq.mjs.map +1 -0
  456. package/.output/server/chunks/build/useWorkshopWs-YQ5URrbt.mjs +1659 -0
  457. package/.output/server/chunks/build/useWorkshopWs-YQ5URrbt.mjs.map +1 -0
  458. package/.output/server/chunks/build/useWorkspaceChannels-CPFepxTN.mjs +91 -0
  459. package/.output/server/chunks/build/useWorkspaceChannels-CPFepxTN.mjs.map +1 -0
  460. package/.output/server/chunks/build/users-BWw0VCr9.mjs +568 -0
  461. package/.output/server/chunks/build/users-BWw0VCr9.mjs.map +1 -0
  462. package/.output/server/chunks/build/workshop-1gKeDASV.mjs +545 -0
  463. package/.output/server/chunks/build/workshop-1gKeDASV.mjs.map +1 -0
  464. package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
  465. package/.output/server/chunks/routes/api/system/backup/run.post.mjs +2 -2
  466. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +1 -1
  467. package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs.map +1 -1
  468. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +1 -1
  469. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.put.mjs +109 -0
  470. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.put.mjs.map +1 -0
  471. package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs +35 -0
  472. package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs.map +1 -0
  473. package/.output/server/chunks/routes/api/workshop/channels/_id/tools/reset.post.mjs +52 -0
  474. package/.output/server/chunks/routes/api/workshop/channels/_id/tools/reset.post.mjs.map +1 -0
  475. package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.get.mjs +1 -1
  476. package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.patch.mjs +1 -1
  477. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +6 -6
  478. package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +139 -0
  479. package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs.map +1 -0
  480. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
  481. package/.output/server/chunks/routes/api/workshop/daq/export/_id_.get.mjs +36 -0
  482. package/.output/server/chunks/routes/api/workshop/daq/export/_id_.get.mjs.map +1 -0
  483. package/.output/server/chunks/routes/api/workshop/daq/export-file.get.mjs +44 -0
  484. package/.output/server/chunks/routes/api/workshop/daq/export-file.get.mjs.map +1 -0
  485. package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs +35 -0
  486. package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs.map +1 -0
  487. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +29 -6
  488. package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs.map +1 -1
  489. package/.output/server/chunks/routes/api/workshop/daq/index2.post.mjs +34 -0
  490. package/.output/server/chunks/routes/api/workshop/daq/index2.post.mjs.map +1 -0
  491. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
  492. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
  493. package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs +54 -0
  494. package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs.map +1 -0
  495. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
  496. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
  497. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
  498. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
  499. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
  500. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
  501. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
  502. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
  503. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
  504. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +15 -3
  505. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs.map +1 -1
  506. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +15 -2
  507. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs.map +1 -1
  508. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
  509. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +1 -1
  510. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
  511. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +1 -1
  512. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
  513. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +1 -1
  514. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
  515. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +1 -1
  516. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +17 -2
  517. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs.map +1 -1
  518. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +1 -1
  519. package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +1 -1
  520. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
  521. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
  522. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
  523. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
  524. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
  525. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +17 -3
  526. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs.map +1 -1
  527. package/.output/server/chunks/routes/api/workshop/dcw/mes-artifacts/file.get.mjs +1 -1
  528. package/.output/server/chunks/routes/api/workshop/dcw/mes-hook-test.post.mjs +1 -1
  529. package/.output/server/chunks/routes/api/workshop/dcw/mes-test-read.post.mjs +1 -1
  530. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
  531. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
  532. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
  533. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
  534. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +1 -1
  535. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +1 -1
  536. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +1 -1
  537. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +1 -1
  538. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
  539. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
  540. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +4 -3
  541. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs.map +1 -1
  542. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +16 -3
  543. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs.map +1 -1
  544. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +16 -3
  545. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs.map +1 -1
  546. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +17 -3
  547. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs.map +1 -1
  548. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
  549. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
  550. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
  551. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
  552. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
  553. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
  554. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +1 -1
  555. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
  556. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
  557. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
  558. package/.output/server/chunks/routes/api/workshop/eda/charts/_id_.delete.mjs +42 -0
  559. package/.output/server/chunks/routes/api/workshop/eda/charts/_id_.delete.mjs.map +1 -0
  560. package/.output/server/chunks/routes/api/workshop/eda/charts/_id_.get.mjs +36 -0
  561. package/.output/server/chunks/routes/api/workshop/eda/charts/_id_.get.mjs.map +1 -0
  562. package/.output/server/chunks/routes/api/workshop/eda/charts/_id_.patch.mjs +52 -0
  563. package/.output/server/chunks/routes/api/workshop/eda/charts/_id_.patch.mjs.map +1 -0
  564. package/.output/server/chunks/routes/api/workshop/eda/commonality.get.mjs +122 -0
  565. package/.output/server/chunks/routes/api/workshop/eda/commonality.get.mjs.map +1 -0
  566. package/.output/server/chunks/routes/api/workshop/eda/dashboards/_id_.delete.mjs +42 -0
  567. package/.output/server/chunks/routes/api/workshop/eda/dashboards/_id_.delete.mjs.map +1 -0
  568. package/.output/server/chunks/routes/api/workshop/eda/dashboards/_id_.get.mjs +37 -0
  569. package/.output/server/chunks/routes/api/workshop/eda/dashboards/_id_.get.mjs.map +1 -0
  570. package/.output/server/chunks/routes/api/workshop/eda/dashboards/_id_.patch.mjs +48 -0
  571. package/.output/server/chunks/routes/api/workshop/eda/dashboards/_id_.patch.mjs.map +1 -0
  572. package/.output/server/chunks/routes/api/workshop/eda/features/jobs.get.mjs +34 -0
  573. package/.output/server/chunks/routes/api/workshop/eda/features/jobs.get.mjs.map +1 -0
  574. package/.output/server/chunks/routes/api/workshop/eda/features/run.post.mjs +45 -0
  575. package/.output/server/chunks/routes/api/workshop/eda/features/run.post.mjs.map +1 -0
  576. package/.output/server/chunks/routes/api/workshop/eda/golden/_id_.delete.mjs +42 -0
  577. package/.output/server/chunks/routes/api/workshop/eda/golden/_id_.delete.mjs.map +1 -0
  578. package/.output/server/chunks/routes/api/workshop/eda/golden/deviation.get.mjs +41 -0
  579. package/.output/server/chunks/routes/api/workshop/eda/golden/deviation.get.mjs.map +1 -0
  580. package/.output/server/chunks/routes/api/workshop/eda/golden/single.get.mjs +37 -0
  581. package/.output/server/chunks/routes/api/workshop/eda/golden/single.get.mjs.map +1 -0
  582. package/.output/server/chunks/routes/api/workshop/eda/index.get.mjs +39 -0
  583. package/.output/server/chunks/routes/api/workshop/eda/index.get.mjs.map +1 -0
  584. package/.output/server/chunks/routes/api/workshop/eda/index.post.mjs +51 -0
  585. package/.output/server/chunks/routes/api/workshop/eda/index.post.mjs.map +1 -0
  586. package/.output/server/chunks/routes/api/workshop/eda/index2.get.mjs +49 -0
  587. package/.output/server/chunks/routes/api/workshop/eda/index2.get.mjs.map +1 -0
  588. package/.output/server/chunks/routes/api/workshop/eda/index2.post.mjs +45 -0
  589. package/.output/server/chunks/routes/api/workshop/eda/index2.post.mjs.map +1 -0
  590. package/.output/server/chunks/routes/api/workshop/eda/index3.get.mjs +47 -0
  591. package/.output/server/chunks/routes/api/workshop/eda/index3.get.mjs.map +1 -0
  592. package/.output/server/chunks/routes/api/workshop/eda/index3.post.mjs +138 -0
  593. package/.output/server/chunks/routes/api/workshop/eda/index3.post.mjs.map +1 -0
  594. package/.output/server/chunks/routes/api/workshop/eda/index4.get.mjs +47 -0
  595. package/.output/server/chunks/routes/api/workshop/eda/index4.get.mjs.map +1 -0
  596. package/.output/server/chunks/routes/api/workshop/eda/index4.post.mjs +48 -0
  597. package/.output/server/chunks/routes/api/workshop/eda/index4.post.mjs.map +1 -0
  598. package/.output/server/chunks/routes/api/workshop/eda/index5.get.mjs +34 -0
  599. package/.output/server/chunks/routes/api/workshop/eda/index5.get.mjs.map +1 -0
  600. package/.output/server/chunks/routes/api/workshop/eda/index5.post.mjs +47 -0
  601. package/.output/server/chunks/routes/api/workshop/eda/index5.post.mjs.map +1 -0
  602. package/.output/server/chunks/routes/api/workshop/eda/index6.get.mjs +53 -0
  603. package/.output/server/chunks/routes/api/workshop/eda/index6.get.mjs.map +1 -0
  604. package/.output/server/chunks/routes/api/workshop/eda/index6.post.mjs +46 -0
  605. package/.output/server/chunks/routes/api/workshop/eda/index6.post.mjs.map +1 -0
  606. package/.output/server/chunks/routes/api/workshop/eda/index7.get.mjs +34 -0
  607. package/.output/server/chunks/routes/api/workshop/eda/index7.get.mjs.map +1 -0
  608. package/.output/server/chunks/routes/api/workshop/eda/index7.post.mjs +47 -0
  609. package/.output/server/chunks/routes/api/workshop/eda/index7.post.mjs.map +1 -0
  610. package/.output/server/chunks/routes/api/workshop/eda/ocap/_id_.get.mjs +58 -0
  611. package/.output/server/chunks/routes/api/workshop/eda/ocap/_id_.get.mjs.map +1 -0
  612. package/.output/server/chunks/routes/api/workshop/eda/ocap/_id_.patch.mjs +53 -0
  613. package/.output/server/chunks/routes/api/workshop/eda/ocap/_id_.patch.mjs.map +1 -0
  614. package/.output/server/chunks/routes/api/workshop/eda/runs/_id/labels.patch.mjs +42 -0
  615. package/.output/server/chunks/routes/api/workshop/eda/runs/_id/labels.patch.mjs.map +1 -0
  616. package/.output/server/chunks/routes/api/workshop/eda/runs.get.mjs +49 -0
  617. package/.output/server/chunks/routes/api/workshop/eda/runs.get.mjs.map +1 -0
  618. package/.output/server/chunks/routes/api/workshop/eda/spc/_id/recompute.post.mjs +35 -0
  619. package/.output/server/chunks/routes/api/workshop/eda/spc/_id/recompute.post.mjs.map +1 -0
  620. package/.output/server/chunks/routes/api/workshop/eda/spc/_id_.delete.mjs +36 -0
  621. package/.output/server/chunks/routes/api/workshop/eda/spc/_id_.delete.mjs.map +1 -0
  622. package/.output/server/chunks/routes/api/workshop/eda/spc/_id_.get.mjs +45 -0
  623. package/.output/server/chunks/routes/api/workshop/eda/spc/_id_.get.mjs.map +1 -0
  624. package/.output/server/chunks/routes/api/workshop/eda/vm/predict.post.mjs +103 -0
  625. package/.output/server/chunks/routes/api/workshop/eda/vm/predict.post.mjs.map +1 -0
  626. package/.output/server/chunks/routes/api/workshop/exp/confirmations/_id/decide.post.mjs +1 -1
  627. package/.output/server/chunks/routes/api/workshop/exp/index.get.mjs +1 -1
  628. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
  629. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
  630. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
  631. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  632. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +1 -1
  633. package/.output/server/chunks/routes/api/workshop/index.put.mjs +1 -1
  634. package/.output/server/chunks/routes/api/workshop/index10.get.mjs +31 -14
  635. package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -1
  636. package/.output/server/chunks/routes/api/workshop/index12.get.mjs +20 -2
  637. package/.output/server/chunks/routes/api/workshop/index12.get.mjs.map +1 -1
  638. package/.output/server/chunks/routes/api/workshop/index15.get.mjs +5 -4
  639. package/.output/server/chunks/routes/api/workshop/index15.get.mjs.map +1 -1
  640. package/.output/server/chunks/routes/api/workshop/index16.get.mjs +30 -0
  641. package/.output/server/chunks/routes/api/workshop/index16.get.mjs.map +1 -0
  642. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +14 -3
  643. package/.output/server/chunks/routes/api/workshop/index4.post.mjs.map +1 -1
  644. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
  645. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
  646. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +26 -5
  647. package/.output/server/chunks/routes/api/workshop/index6.post.mjs.map +1 -1
  648. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
  649. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
  650. package/.output/server/chunks/routes/api/workshop/mes/datasets.get.mjs +72 -0
  651. package/.output/server/chunks/routes/api/workshop/mes/datasets.get.mjs.map +1 -0
  652. package/.output/server/chunks/routes/api/workshop/mes/points.get.mjs +32 -0
  653. package/.output/server/chunks/routes/api/workshop/mes/points.get.mjs.map +1 -0
  654. package/.output/server/chunks/routes/api/workshop/mes/preview.post.mjs +42 -0
  655. package/.output/server/chunks/routes/api/workshop/mes/preview.post.mjs.map +1 -0
  656. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  657. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  658. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  659. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  660. package/.output/server/chunks/routes/api/workshop/tools/_name_.get.mjs +35 -0
  661. package/.output/server/chunks/routes/api/workshop/tools/_name_.get.mjs.map +1 -0
  662. package/.output/server/chunks/routes/api/workshop/tools/sync.post.mjs +30 -0
  663. package/.output/server/chunks/routes/api/workshop/tools/sync.post.mjs.map +1 -0
  664. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +1 -1
  665. package/.output/server/chunks/routes/renderer.mjs +3 -3
  666. package/.output/server/chunks/virtual/entry.mjs +1543 -1051
  667. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  668. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  669. package/.output/server/package.json +1 -1
  670. package/README-zh.md +948 -946
  671. package/README.md +973 -970
  672. package/app/assets/css/main.css +346 -197
  673. package/app/components/AppHeader.vue +294 -284
  674. package/app/components/AppSidebar.vue +15 -18
  675. package/app/components/AwChart.vue +8 -1
  676. package/app/components/analysis/AnalysisEditModal.vue +8 -0
  677. package/app/components/analysis/AnalysisPageHead.vue +18 -3
  678. package/app/components/analysis/AnalysisTable.vue +59 -12
  679. package/app/components/app-header/HeaderTools.vue +224 -208
  680. package/app/components/app-header/TrailNav.vue +262 -261
  681. package/app/components/app-header/UserChip.vue +13 -9
  682. package/app/components/daq/DaqDetailHistoryCard.vue +13 -5
  683. package/app/components/daq/DaqDetailLiveCard.vue +100 -92
  684. package/app/components/daq/DaqDetailParamForm.vue +355 -350
  685. package/app/components/dashboard/DashboardFleetPanel.vue +228 -228
  686. package/app/components/dashboard/DashboardHarnessPanel.vue +149 -149
  687. package/app/components/data/DataLedgerPanel.vue +253 -0
  688. package/app/components/data/DataMesPanel.vue +279 -0
  689. package/app/components/data/DataMirrorPanel.vue +602 -0
  690. package/app/components/dcw/DcwAdoptCard.vue +90 -89
  691. package/app/components/dcw/DcwDetailHead.vue +65 -65
  692. package/app/components/dcw/DcwGatewayBar.vue +102 -94
  693. package/app/components/dcw/DcwLineCard.vue +1 -0
  694. package/app/components/dcw/DcwLineRunCard.vue +160 -158
  695. package/app/components/dcw/DcwRecipeDispatchHistoryModal.vue +244 -0
  696. package/app/components/dcw/DcwRecipePanel.vue +7 -0
  697. package/app/components/logs/LogsEventTable.vue +77 -26
  698. package/app/components/logs/LogsFilterCard.vue +22 -0
  699. package/app/components/logs/LogsManualModal.vue +231 -231
  700. package/app/components/monitor/MonitorStatGrid.vue +160 -165
  701. package/app/components/operations/OperationsTimeline.vue +252 -215
  702. package/app/components/settings/AppearancePane.vue +282 -282
  703. package/app/components/settings/PluginsSection.vue +282 -280
  704. package/app/components/settings/RuntimeFieldRow.vue +5 -3
  705. package/app/components/settings/RuntimeGroupSection.vue +290 -290
  706. package/app/components/settings/RuntimePane.vue +239 -235
  707. package/app/components/settings/SystemPane.vue +85 -83
  708. package/app/components/tokens/TokensAuthGate.vue +47 -47
  709. package/app/components/tokens/TokensTable.vue +264 -227
  710. package/app/components/workshop/ChannelSessionList.vue +378 -377
  711. package/app/components/workshop/DaqNodeRow.vue +10 -7
  712. package/app/components/workshop/NotificationCenter.vue +334 -334
  713. package/app/components/workshop/agents/AgentTemplateTable.vue +285 -269
  714. package/app/components/workshop/agents/AgentTemplateToolbar.vue +69 -67
  715. package/app/components/workshop/blocks/ClusterStream.vue +2 -2
  716. package/app/components/workshop/console/LineOperationsPanel.vue +9 -9
  717. package/app/components/workshop/console/RightPane.vue +5 -2
  718. package/app/components/workshop/console/Topbar.vue +304 -289
  719. package/app/components/workshop/session-list/ChannelSettingsModal.vue +376 -371
  720. package/app/components/workshop/session-list/ChannelToolSettings.vue +507 -0
  721. package/app/components/workshop/teams/TeamCard.vue +183 -183
  722. package/app/components/workshop/town/components/TownControlDock.vue +5 -0
  723. package/app/components/workshop/transcript/TranscriptEmptyState.vue +153 -153
  724. package/app/components/workshop/workbench/AuthGate.vue +3 -2
  725. package/app/components/workshop/workbench/WorkbenchHead.vue +140 -129
  726. package/app/components/workshop/workbench/WorkspaceCard.vue +199 -198
  727. package/app/composables/useRouteMeta.ts +13 -1
  728. package/app/composables/workshop/useLocalTime.ts +5 -2
  729. package/app/composables/workshop/useOpsLog.ts +13 -2
  730. package/app/composables/workshop/useWorkshopApi.ts +66 -0
  731. package/app/layouts/default.vue +31 -6
  732. package/app/pages/aml/styles.css +8 -7
  733. package/app/pages/daq/[id].vue +140 -136
  734. package/app/pages/daq/daq-page.css +688 -681
  735. package/app/pages/data/index.vue +66 -0
  736. package/app/pages/dcw/[id].vue +398 -380
  737. package/app/pages/dcw/dcw-page.css +22 -21
  738. package/app/pages/logs/composables/useLogsManual.ts +68 -63
  739. package/app/pages/logs/composables/useLogsQuery.ts +28 -3
  740. package/app/pages/logs/index.vue +2 -0
  741. package/app/pages/monitor/composables/useMonitorColumns.ts +69 -69
  742. package/app/pages/operations/composables/useOperationsFeed.ts +139 -137
  743. package/app/pages/plugins/index.vue +347 -318
  744. package/app/pages/settings.vue +170 -168
  745. package/app/pages/studio/board.vue +383 -0
  746. package/app/pages/studio/index.vue +855 -0
  747. package/app/pages/tools/index.vue +401 -0
  748. package/app/pages/workshop/channel-templates.vue +558 -556
  749. package/app/pages/workshop/index.vue +55 -0
  750. package/app/pages/workshop/teams.vue +237 -233
  751. package/app/stores/route-trail.ts +4 -2
  752. package/app/stores/workshop/notifications.ts +22 -1
  753. package/cli/commands/plugin.mjs +322 -246
  754. package/config.yml +180 -180
  755. package/docs/aml.md +1 -1
  756. package/docs/cli.en.md +447 -447
  757. package/docs/cli.md +412 -412
  758. package/docs/full-test-plan.md +1 -1
  759. package/docs/mcp.md +122 -108
  760. package/docs/plugins.en.md +22 -2
  761. package/docs/plugins.md +22 -2
  762. package/docs/sdk.en.md +1 -1
  763. package/docs/sdk.md +1 -1
  764. package/i18n/dicts/channelTools.json +39 -0
  765. package/i18n/dicts/toolsPage.json +34 -0
  766. package/i18n/locales/en.ts +252 -14
  767. package/i18n/locales/zh-CN.ts +251 -14
  768. package/package.json +185 -181
  769. package/scripts/agent-daq-isolation-e2e.mjs +91 -0
  770. package/scripts/api-contract-smoke.mjs +126 -0
  771. package/scripts/ask-hitl-e2e.mjs +96 -0
  772. package/scripts/channel-interaction-smoke.mjs +80 -0
  773. package/scripts/data-studio-e2e.mjs +332 -0
  774. package/scripts/data-studio-ui-e2e.mjs +163 -0
  775. package/scripts/dev-mes-simulator.mjs +106 -17
  776. package/scripts/e2e-hitl-live.mjs +41 -5
  777. package/scripts/e2e-injection-recipe-closedloop.mjs +203 -0
  778. package/scripts/e2e-line-governance.mjs +352 -0
  779. package/scripts/eda-demo-report-patch.mjs +47 -0
  780. package/scripts/eda-live-demo.mjs +398 -0
  781. package/scripts/full-stack-shots.mjs +145 -0
  782. package/scripts/full-tool-injection-harness-e2e.mjs +214 -0
  783. package/scripts/harness-matrix-e2e.mjs +159 -0
  784. package/scripts/harness-team-line-e2e.mjs +224 -0
  785. package/scripts/hitl-reject-e2e.mjs +131 -0
  786. package/scripts/hitl-ui-two-harness-demo.mjs +243 -0
  787. package/scripts/line-log-smoke.mjs +260 -0
  788. package/scripts/live-aml-optloop.mjs +161 -118
  789. package/scripts/mes-agent-integration-e2e.mjs +361 -0
  790. package/scripts/onboarding/forge-channel.mjs +9 -3
  791. package/scripts/onboarding/onboard.mjs +104 -10
  792. package/scripts/onboarding/provision-line.mjs +38 -15
  793. package/scripts/onboarding/sim-twin.mjs +50 -13
  794. package/scripts/onboarding/test-connection.mjs +8 -2
  795. package/scripts/onboarding/verify-line.mjs +72 -9
  796. package/scripts/ops-plugins-e2e.mjs +85 -0
  797. package/scripts/real-injection-closed-loop.mjs +8 -0
  798. package/scripts/scenario-suite-setup.mjs +337 -0
  799. package/scripts/scenario-suite-stability.mjs +144 -0
  800. package/scripts/team-coordination-e2e.mjs +96 -0
  801. package/scripts/tool-face-batch-identity-e2e.mjs +222 -0
  802. package/scripts/tool-registry-e2e.mjs +547 -0
  803. package/scripts/ui/audit-layout.mjs +324 -301
  804. package/scripts/ui/lib.mjs +3 -0
  805. package/sdk/client.mjs +8 -1
  806. package/sdk/examples/line-sentinel/client.mjs +55 -38
  807. package/sdk/examples/ops-notifier/client.mjs +29 -25
  808. package/sdk/examples/sample-insight/client.mjs +25 -25
  809. package/server/.mimosa/hook-state/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2.json +1 -0
  810. package/server/.mimosa/hook-state/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2.mvhn1irp-99488-e3fdc1cbfc.baseline/942d2679b87b96c612b4f2a425c3ccc5b6f3234f0cf589a8441602f866fbe277.source +41 -0
  811. package/server/.mimosa/hook-state/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2.mvhn1irp-99488-e3fdc1cbfc.baseline/dd617a82339d2c61e49e28e416aabeb2fc100fb3cb1beca18d02dfb833214af6.source +51 -0
  812. package/server/.mimosa/hook-status/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2-e67b6b91bf.json +14 -0
  813. package/server/api/workshop/agent-tools/bindings/[id].delete.ts +3 -3
  814. package/server/api/workshop/channels/[id]/tools/index.get.ts +17 -0
  815. package/server/api/workshop/channels/[id]/tools/index.put.ts +117 -0
  816. package/server/api/workshop/channels/[id]/tools/reset.post.ts +39 -0
  817. package/server/api/workshop/daq/[id]/ingest.post.ts +166 -0
  818. package/server/api/workshop/daq/export/[id].get.ts +17 -0
  819. package/server/api/workshop/daq/export/index.get.ts +15 -0
  820. package/server/api/workshop/daq/export/index.post.ts +42 -0
  821. package/server/api/workshop/daq/export-file.get.ts +26 -0
  822. package/server/api/workshop/daq/query.get.ts +41 -0
  823. package/server/api/workshop/dcw/[id].delete.ts +10 -2
  824. package/server/api/workshop/dcw/[id].patch.ts +10 -0
  825. package/server/api/workshop/dcw/index.post.ts +9 -3
  826. package/server/api/workshop/dcw/lines/[id].patch.ts +13 -2
  827. package/server/api/workshop/dcw/recipes/[id]/apply.post.ts +2 -1
  828. package/server/api/workshop/dcw/recipes/[id]/mark-good.post.ts +15 -2
  829. package/server/api/workshop/dcw/recipes/[id]/rollback-good.post.ts +15 -2
  830. package/server/api/workshop/dcw/recipes/[id].delete.ts +12 -1
  831. package/server/api/workshop/dcw/recipes/index.post.ts +11 -0
  832. package/server/api/workshop/eda/charts/[id].delete.ts +23 -0
  833. package/server/api/workshop/eda/charts/[id].get.ts +16 -0
  834. package/server/api/workshop/eda/charts/[id].patch.ts +33 -0
  835. package/server/api/workshop/eda/charts/index.get.ts +19 -0
  836. package/server/api/workshop/eda/charts/index.post.ts +33 -0
  837. package/server/api/workshop/eda/commonality.get.ts +27 -0
  838. package/server/api/workshop/eda/dashboards/[id].delete.ts +22 -0
  839. package/server/api/workshop/eda/dashboards/[id].get.ts +17 -0
  840. package/server/api/workshop/eda/dashboards/[id].patch.ts +28 -0
  841. package/server/api/workshop/eda/dashboards/index.get.ts +30 -0
  842. package/server/api/workshop/eda/dashboards/index.post.ts +25 -0
  843. package/server/api/workshop/eda/derived/index.post.ts +41 -0
  844. package/server/api/workshop/eda/features/index.get.ts +29 -0
  845. package/server/api/workshop/eda/features/jobs.get.ts +13 -0
  846. package/server/api/workshop/eda/features/run.post.ts +28 -0
  847. package/server/api/workshop/eda/golden/[id].delete.ts +22 -0
  848. package/server/api/workshop/eda/golden/deviation.get.ts +21 -0
  849. package/server/api/workshop/eda/golden/index.get.ts +21 -0
  850. package/server/api/workshop/eda/golden/index.post.ts +29 -0
  851. package/server/api/workshop/eda/golden/single.get.ts +16 -0
  852. package/server/api/workshop/eda/ocap/[id].get.ts +39 -0
  853. package/server/api/workshop/eda/ocap/[id].patch.ts +33 -0
  854. package/server/api/workshop/eda/ocap/index.get.ts +13 -0
  855. package/server/api/workshop/eda/ocap/index.post.ts +27 -0
  856. package/server/api/workshop/eda/run-segments/index.get.ts +39 -0
  857. package/server/api/workshop/eda/run-segments/index.post.ts +30 -0
  858. package/server/api/workshop/eda/runs/[id]/labels.patch.ts +25 -0
  859. package/server/api/workshop/eda/runs.get.ts +31 -0
  860. package/server/api/workshop/eda/spc/[id]/recompute.post.ts +15 -0
  861. package/server/api/workshop/eda/spc/[id].delete.ts +16 -0
  862. package/server/api/workshop/eda/spc/[id].get.ts +27 -0
  863. package/server/api/workshop/eda/spc/index.get.ts +14 -0
  864. package/server/api/workshop/eda/spc/index.post.ts +28 -0
  865. package/server/api/workshop/eda/vm/predict.post.ts +97 -0
  866. package/server/api/workshop/mes/datasets.get.ts +54 -0
  867. package/server/api/workshop/mes/points.get.ts +13 -0
  868. package/server/api/workshop/mes/preview.post.ts +25 -0
  869. package/server/api/workshop/ops-logs/index.get.ts +42 -17
  870. package/server/api/workshop/ops-logs/index.post.ts +36 -6
  871. package/server/api/workshop/plugins/index.get.ts +36 -17
  872. package/server/api/workshop/tools/[name].get.ts +15 -0
  873. package/server/api/workshop/tools/index.get.ts +12 -0
  874. package/server/api/workshop/tools/sync.post.ts +12 -0
  875. package/server/harness/aw-mcp-bridge.mjs +32 -3
  876. package/server/plugins/aw-plugins.ts +7 -1
  877. package/server/plugins/workshop.ts +4 -0
  878. package/server/plugins-builtin/diag-bridge/client.mjs +111 -4
  879. package/server/plugins-builtin/diag-bridge/host/diagnosis.mjs +82 -75
  880. package/server/plugins-builtin/diag-bridge/host/helpers.mjs +129 -126
  881. package/server/plugins-builtin/diag-bridge/host/plugin.mjs +457 -420
  882. package/server/plugins-builtin/diag-bridge/host/sweep.mjs +191 -106
  883. package/server/plugins-builtin/diag-bridge/i18n.json +45 -15
  884. package/server/plugins-builtin/rag-bridge/client.mjs +184 -108
  885. package/server/plugins-builtin/rag-bridge/i18n.json +84 -60
  886. package/server/plugins-builtin/rag-bridge/index.mjs +159 -16
  887. package/server/plugins-builtin/serial-bridge/client.mjs +1 -0
  888. package/server/services/workshop/agents/hitl-decision/answers.ts +5 -0
  889. package/server/services/workshop/agents/hitl-decision/dispatcher.ts +3 -1
  890. package/server/services/workshop/agents/host-tool-bridge/catalog.ts +102 -23
  891. package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +290 -241
  892. package/server/services/workshop/agents/host-tool-bridge/index.ts +16 -15
  893. package/server/services/workshop/agents/host-tool-bridge/per-agent.ts +114 -0
  894. package/server/services/workshop/agents/host-tool-bridge/tools/industrial.ts +6 -1
  895. package/server/services/workshop/agents/industrial/aml-dataset-tools.ts +14 -0
  896. package/server/services/workshop/agents/industrial/aml-job-tools.ts +20 -6
  897. package/server/services/workshop/agents/industrial/audit-query.ts +41 -5
  898. package/server/services/workshop/agents/industrial/daq-export.ts +74 -13
  899. package/server/services/workshop/agents/industrial/daq-tools.ts +106 -14
  900. package/server/services/workshop/agents/industrial/dcw-judge-tools.ts +7 -2
  901. package/server/services/workshop/agents/industrial/dcw-tools.ts +258 -212
  902. package/server/services/workshop/agents/industrial/grant-guard.ts +32 -7
  903. package/server/services/workshop/agents/industrial/index.ts +3 -3
  904. package/server/services/workshop/agents/industrial/line-tools.ts +150 -8
  905. package/server/services/workshop/agents/industrial/manual-approval.ts +57 -46
  906. package/server/services/workshop/agents/industrial/mes-tools.ts +31 -6
  907. package/server/services/workshop/agents/industrial/ops-tools.ts +533 -60
  908. package/server/services/workshop/agents/industrial/optimization-tools.ts +169 -158
  909. package/server/services/workshop/agents/industrial/recipe-gate.ts +36 -1
  910. package/server/services/workshop/agents/industrial/recipe-propose-tools.ts +12 -6
  911. package/server/services/workshop/agents/industrial/tool-verify.ts +381 -0
  912. package/server/services/workshop/agents/industrial/twin-tools.ts +5 -0
  913. package/server/services/workshop/agents/mock-agent.ts +3 -1
  914. package/server/services/workshop/agents/node-delegation.ts +10 -1
  915. package/server/services/workshop/agents/omp-agent/client.ts +2 -2
  916. package/server/services/workshop/agents/omp-agent/lifecycle.ts +2 -2
  917. package/server/services/workshop/agents/pi-agent.ts +3 -2
  918. package/server/services/workshop/agents/plugin-tools.ts +4 -0
  919. package/server/services/workshop/agents/tool-approvals.ts +25 -1
  920. package/server/services/workshop/agents/tool-classes.ts +2 -0
  921. package/server/services/workshop/aml/python/__pycache__/amlkit.cpython-312.pyc +0 -0
  922. package/server/services/workshop/aml/spec.ts +64 -63
  923. package/server/services/workshop/daq/daq-controller/crud.ts +2 -0
  924. package/server/services/workshop/daq/daq-controller/sweep-alarms.ts +14 -2
  925. package/server/services/workshop/daq/daq-controller/types.ts +71 -68
  926. package/server/services/workshop/daq/daq-node.ts +15 -0
  927. package/server/services/workshop/daq/daq-templates.ts +16 -2
  928. package/server/services/workshop/daq/storage/sqlite.adapter.ts +6 -4
  929. package/server/services/workshop/daq/storage/timescale.adapter.ts +3 -3
  930. package/server/services/workshop/db/database/migrations.ts +26 -0
  931. package/server/services/workshop/db/database/open.ts +5 -1
  932. package/server/services/workshop/db/database/schema.ts +42 -2
  933. package/server/services/workshop/db/ops.repo.ts +43 -8
  934. package/server/services/workshop/db/schema.sql +38 -0
  935. package/server/services/workshop/db/tool-registry.repo.ts +395 -0
  936. package/server/services/workshop/dcw/dcw-controller/recipes.ts +18 -1
  937. package/server/services/workshop/dcw/dcw-controller/write.ts +4 -0
  938. package/server/services/workshop/dcw/dcw-recipe.repo.ts +27 -0
  939. package/server/services/workshop/dcw/drivers/mes-rest.ts +158 -11
  940. package/server/services/workshop/dcw/drivers/shared.ts +35 -1
  941. package/server/services/workshop/eda/chart-repo.ts +177 -0
  942. package/server/services/workshop/eda/commonality.ts +106 -0
  943. package/server/services/workshop/eda/dashboard-repo.ts +166 -0
  944. package/server/services/workshop/eda/data-export.ts +274 -0
  945. package/server/services/workshop/eda/data-query.ts +231 -0
  946. package/server/services/workshop/eda/derived.ts +110 -0
  947. package/server/services/workshop/eda/eda-db.ts +222 -0
  948. package/server/services/workshop/eda/eda-run.repo.ts +197 -0
  949. package/server/services/workshop/eda/features.ts +291 -0
  950. package/server/services/workshop/eda/golden.ts +227 -0
  951. package/server/services/workshop/eda/mes-console.ts +219 -0
  952. package/server/services/workshop/eda/ocap.ts +182 -0
  953. package/server/services/workshop/eda/redact.ts +28 -0
  954. package/server/services/workshop/eda/spc-math.ts +144 -0
  955. package/server/services/workshop/eda/spc.ts +225 -0
  956. package/server/services/workshop/mes/mes-controller.ts +515 -18
  957. package/server/services/workshop/mes/mes-datasets.ts +85 -7
  958. package/server/services/workshop/ops/ops.ts +27 -14
  959. package/server/services/workshop/plugins/host/services.mjs +77 -68
  960. package/server/services/workshop/runtime/agent-runtime/message.ts +23 -8
  961. package/server/services/workshop/runtime/manager/admin-channel.ts +68 -0
  962. package/server/services/workshop/runtime/manager/channel-template-constants.ts +20 -0
  963. package/server/services/workshop/runtime/manager/channel-templates.ts +3 -12
  964. package/server/services/workshop/runtime/manager/host-tools.ts +33 -4
  965. package/server/services/workshop/runtime/permission-scope.ts +5 -1
  966. package/server/services/workshop/runtime/scheduler-loop/rules.ts +4 -1
  967. package/server/services/workshop/runtime/task-engine/transition.ts +14 -0
  968. package/server/services/workshop/tools/catalog-view.ts +256 -0
  969. package/server/services/workshop/tools/policy.ts +100 -0
  970. package/server/services/workshop/tools/registry.ts +263 -0
  971. package/server/services/workshop/tools/types.ts +19 -0
  972. package/server/services/workshop/types/task.ts +17 -0
  973. package/shared/daq-protocol.ts +39 -5
  974. package/shared/workshop-protocol.ts +3 -0
  975. package/.output/public/_nuxt/2pU5BiaQ2.js +0 -1
  976. package/.output/public/_nuxt/4RTUlYvj.js +0 -1
  977. package/.output/public/_nuxt/8oRmGaAV.js +0 -1
  978. package/.output/public/_nuxt/AuthGate.Cvsc4atp.css +0 -1
  979. package/.output/public/_nuxt/B0w8DZ4C.js +0 -1
  980. package/.output/public/_nuxt/B5RD2ZST.js +0 -2
  981. package/.output/public/_nuxt/B8cnjDtt.js +0 -1
  982. package/.output/public/_nuxt/BDC8YDyc.js +0 -1
  983. package/.output/public/_nuxt/BFVf8HLR.js +0 -1
  984. package/.output/public/_nuxt/BG7XSX-S.js +0 -1
  985. package/.output/public/_nuxt/BH30ZaLl2.js +0 -1
  986. package/.output/public/_nuxt/BMlesJth.js +0 -209
  987. package/.output/public/_nuxt/BNl_jGa12.js +0 -1
  988. package/.output/public/_nuxt/BSG-4Ecg2.js +0 -1
  989. package/.output/public/_nuxt/BTXdYngG.js +0 -1
  990. package/.output/public/_nuxt/BU7WuuKh2.js +0 -1
  991. package/.output/public/_nuxt/BVH9j8dQ2.js +0 -1
  992. package/.output/public/_nuxt/BXbKTAwC2.js +0 -1
  993. package/.output/public/_nuxt/B_6yBa_Z.js +0 -1
  994. package/.output/public/_nuxt/B_ic601Y.js +0 -1
  995. package/.output/public/_nuxt/Bd85nb9X2.js +0 -1
  996. package/.output/public/_nuxt/BegV7-FE2.js +0 -1
  997. package/.output/public/_nuxt/BhllzW3K2.js +0 -1
  998. package/.output/public/_nuxt/Bj7BcqHn.js +0 -1
  999. package/.output/public/_nuxt/BkO2MZZU.js +0 -1
  1000. package/.output/public/_nuxt/Br3AySNQ.js +0 -1
  1001. package/.output/public/_nuxt/BrRXGr472.js +0 -1
  1002. package/.output/public/_nuxt/BtBgrPNT.js +0 -1
  1003. package/.output/public/_nuxt/BtDBBofS.js +0 -1
  1004. package/.output/public/_nuxt/ByvqxkcN.js +0 -1
  1005. package/.output/public/_nuxt/C4sQKuhk.js +0 -1
  1006. package/.output/public/_nuxt/C5MPzgon2.js +0 -1
  1007. package/.output/public/_nuxt/C8uaVABF.js +0 -1
  1008. package/.output/public/_nuxt/C98jxVaK.js +0 -1
  1009. package/.output/public/_nuxt/CGChCy-w2.js +0 -1
  1010. package/.output/public/_nuxt/CHyzK5m5.js +0 -1
  1011. package/.output/public/_nuxt/CI5sliIF2.js +0 -1
  1012. package/.output/public/_nuxt/CI8awYVQ2.js +0 -1
  1013. package/.output/public/_nuxt/CIduggmC.js +0 -1
  1014. package/.output/public/_nuxt/CK2ts9sD.js +0 -1
  1015. package/.output/public/_nuxt/CKE_kTL92.js +0 -1
  1016. package/.output/public/_nuxt/CPZKwmLQ.js +0 -1
  1017. package/.output/public/_nuxt/CUjdqsjC2.js +0 -1
  1018. package/.output/public/_nuxt/CVUMEGa1.js +0 -1
  1019. package/.output/public/_nuxt/CXzfXC5M.js +0 -1
  1020. package/.output/public/_nuxt/CaBVMdqG2.js +0 -1
  1021. package/.output/public/_nuxt/CcLFZjCI2.js +0 -7
  1022. package/.output/public/_nuxt/Cdw4juXw.js +0 -1
  1023. package/.output/public/_nuxt/CfIGBe_4.js +0 -75
  1024. package/.output/public/_nuxt/ChN5v-i22.js +0 -1
  1025. package/.output/public/_nuxt/Ci5kuU1q.js +0 -1
  1026. package/.output/public/_nuxt/CiyTTgqr.js +0 -106
  1027. package/.output/public/_nuxt/CkYk8bj02.js +0 -21
  1028. package/.output/public/_nuxt/Ckafrjnw.js +0 -1
  1029. package/.output/public/_nuxt/ClEbKcuS.js +0 -1
  1030. package/.output/public/_nuxt/Cmiz_VOb2.js +0 -47
  1031. package/.output/public/_nuxt/CnF6dXcZ2.js +0 -1
  1032. package/.output/public/_nuxt/Cnf1PFhB2.js +0 -1
  1033. package/.output/public/_nuxt/CoTm7jd3.js +0 -28
  1034. package/.output/public/_nuxt/CsN8RHJ02.js +0 -17
  1035. package/.output/public/_nuxt/Cst8yEet.js +0 -1
  1036. package/.output/public/_nuxt/Cuw2--X2.js +0 -2
  1037. package/.output/public/_nuxt/CxLxiOGV.js +0 -1
  1038. package/.output/public/_nuxt/D-jg-SoR.js +0 -1
  1039. package/.output/public/_nuxt/D-z6N1Cz.js +0 -3
  1040. package/.output/public/_nuxt/D1Xw30Dj.js +0 -1
  1041. package/.output/public/_nuxt/D3gfSKKi2.js +0 -1
  1042. package/.output/public/_nuxt/D4elH6Bo2.js +0 -1
  1043. package/.output/public/_nuxt/D4tAdwYm.js +0 -1
  1044. package/.output/public/_nuxt/D5-QB_-l.js +0 -1
  1045. package/.output/public/_nuxt/D5hI4Fhu.js +0 -1
  1046. package/.output/public/_nuxt/DAfWhONg.js +0 -14
  1047. package/.output/public/_nuxt/DBzdrPzw2.js +0 -1
  1048. package/.output/public/_nuxt/DC7WzYCf2.js +0 -1
  1049. package/.output/public/_nuxt/DE-qkHRd2.js +0 -1
  1050. package/.output/public/_nuxt/DE2kUGPK.js +0 -1
  1051. package/.output/public/_nuxt/DEhjFhZ22.js +0 -1
  1052. package/.output/public/_nuxt/DI4sdLmu2.js +0 -1
  1053. package/.output/public/_nuxt/DIDbAMv5.js +0 -1
  1054. package/.output/public/_nuxt/DL6fliAT.js +0 -3
  1055. package/.output/public/_nuxt/DLAFNaPf.js +0 -1
  1056. package/.output/public/_nuxt/DNno23Jf2.js +0 -1
  1057. package/.output/public/_nuxt/DP6tsk912.js +0 -1
  1058. package/.output/public/_nuxt/DP_e7Vwv.js +0 -24
  1059. package/.output/public/_nuxt/DR83EvmX.js +0 -1
  1060. package/.output/public/_nuxt/DSWuWYx_2.js +0 -1
  1061. package/.output/public/_nuxt/DSdxfFX_.js +0 -1
  1062. package/.output/public/_nuxt/DTxfFIvL2.js +0 -4
  1063. package/.output/public/_nuxt/DVS06wUy2.js +0 -13
  1064. package/.output/public/_nuxt/DXlAfhEi.js +0 -3
  1065. package/.output/public/_nuxt/DYtV50yi2.js +0 -1
  1066. package/.output/public/_nuxt/D_hCLbi9.js +0 -1
  1067. package/.output/public/_nuxt/Dc5NeCDq.js +0 -1
  1068. package/.output/public/_nuxt/DctCtJq7.js +0 -19
  1069. package/.output/public/_nuxt/DdNujZN52.js +0 -1
  1070. package/.output/public/_nuxt/DelESEcl2.js +0 -1
  1071. package/.output/public/_nuxt/DgldLfCZ2.js +0 -1
  1072. package/.output/public/_nuxt/DiHL9ehB.js +0 -1
  1073. package/.output/public/_nuxt/DjtDexGg.js +0 -1
  1074. package/.output/public/_nuxt/DnunMTRD2.js +0 -1
  1075. package/.output/public/_nuxt/Do0dCE8C2.js +0 -1
  1076. package/.output/public/_nuxt/Dok0B4Ol.js +0 -2
  1077. package/.output/public/_nuxt/DqT2_Jtw2.js +0 -1
  1078. package/.output/public/_nuxt/DtMlAxCm2.js +0 -1
  1079. package/.output/public/_nuxt/DwzJpr7P.js +0 -1
  1080. package/.output/public/_nuxt/Dxo1GW5U.js +0 -1
  1081. package/.output/public/_nuxt/Eo2BYEIo2.js +0 -1
  1082. package/.output/public/_nuxt/J94L7hHq2.js +0 -1
  1083. package/.output/public/_nuxt/KS3KQF222.js +0 -1
  1084. package/.output/public/_nuxt/LQBLwrYS2.js +0 -1
  1085. package/.output/public/_nuxt/M58CVYnv.js +0 -1
  1086. package/.output/public/_nuxt/M6NcguDO2.js +0 -1
  1087. package/.output/public/_nuxt/MW-V7IIP.js +0 -1
  1088. package/.output/public/_nuxt/N9TYd_Mk2.js +0 -1
  1089. package/.output/public/_nuxt/P0EcfD3j.js +0 -1
  1090. package/.output/public/_nuxt/QSY9fE482.js +0 -1
  1091. package/.output/public/_nuxt/Qa9rS9oK2.js +0 -31
  1092. package/.output/public/_nuxt/R3gBFghJ2.js +0 -1
  1093. package/.output/public/_nuxt/RAqsw632.js +0 -1
  1094. package/.output/public/_nuxt/S799kNo8.js +0 -1
  1095. package/.output/public/_nuxt/TownView.BuMpDRkf.css +0 -1
  1096. package/.output/public/_nuxt/WYqAa0r52.js +0 -1
  1097. package/.output/public/_nuxt/WmMwIS4y2.js +0 -1
  1098. package/.output/public/_nuxt/ZxBwmbs9.js +0 -1
  1099. package/.output/public/_nuxt/_id_.DOqX4gwB.css +0 -1
  1100. package/.output/public/_nuxt/_id_.DpRe1PRh.css +0 -1
  1101. package/.output/public/_nuxt/_mD4IkJj.js +0 -9
  1102. package/.output/public/_nuxt/_wsId_.XjmieZaJ.css +0 -1
  1103. package/.output/public/_nuxt/agents.Cgm_JG9L.css +0 -1
  1104. package/.output/public/_nuxt/aml.BeFTP6_M.css +0 -1
  1105. package/.output/public/_nuxt/analysis.BwhKdel9.css +0 -1
  1106. package/.output/public/_nuxt/bTFhJlrI2.js +0 -1
  1107. package/.output/public/_nuxt/builds/meta/874575e6-2606-4f09-a59b-724158b3aba2.json +0 -1
  1108. package/.output/public/_nuxt/c_nqArmG.js +0 -1
  1109. package/.output/public/_nuxt/channel-templates.DkNZg-lF.css +0 -1
  1110. package/.output/public/_nuxt/daq.YQas76du.css +0 -1
  1111. package/.output/public/_nuxt/dcw.UIcWRyIS.css +0 -1
  1112. package/.output/public/_nuxt/default.Bx6RJSbr.css +0 -1
  1113. package/.output/public/_nuxt/entry.BlbU43qz.css +0 -1
  1114. package/.output/public/_nuxt/h8ddxY892.js +0 -1
  1115. package/.output/public/_nuxt/i3KBHle7.js +0 -1
  1116. package/.output/public/_nuxt/jmKfTQMN.js +0 -13
  1117. package/.output/public/_nuxt/logs.Bf65Kw17.css +0 -1
  1118. package/.output/public/_nuxt/lyJsJl_G.js +0 -1
  1119. package/.output/public/_nuxt/monitor.CI2v5Nvl.css +0 -1
  1120. package/.output/public/_nuxt/operations.B8X9uWK6.css +0 -1
  1121. package/.output/public/_nuxt/pages.CMhSEhEb.css +0 -1
  1122. package/.output/public/_nuxt/plugins.C50x1qZp.css +0 -1
  1123. package/.output/public/_nuxt/pncSmP5n.js +0 -1
  1124. package/.output/public/_nuxt/qIQFsHtF2.js +0 -1
  1125. package/.output/public/_nuxt/settings.O26Dw1iT.css +0 -1
  1126. package/.output/public/_nuxt/taHLOXkS.js +0 -1
  1127. package/.output/public/_nuxt/teams.sGmx1AdX.css +0 -1
  1128. package/.output/public/_nuxt/tokens.DFMFaCYU.css +0 -1
  1129. package/.output/public/_nuxt/uYP6z4G72.js +0 -1
  1130. package/.output/public/_nuxt/workshop.BX2YeO0g.css +0 -1
  1131. package/.output/public/_nuxt/yPlLXpEw2.js +0 -1
  1132. package/.output/public/_nuxt/yuIP6K9s.js +0 -1
  1133. package/.output/public/_nuxt/zWg-9WN6.js +0 -19
  1134. package/.output/public/_nuxt/zrgcKVTq.js +0 -2
  1135. package/.output/server/chunks/build/AuthGate-BK2RqkbD.mjs +0 -716
  1136. package/.output/server/chunks/build/AuthGate-BK2RqkbD.mjs.map +0 -1
  1137. package/.output/server/chunks/build/Checkbox-4EdGAAl_.mjs +0 -206
  1138. package/.output/server/chunks/build/Checkbox-4EdGAAl_.mjs.map +0 -1
  1139. package/.output/server/chunks/build/FormItemContext-BqtgOBDe.mjs +0 -72
  1140. package/.output/server/chunks/build/FormItemContext-BqtgOBDe.mjs.map +0 -1
  1141. package/.output/server/chunks/build/OmpTerminalPanel-Bun6rpAk.mjs +0 -942
  1142. package/.output/server/chunks/build/OmpTerminalPanel-Bun6rpAk.mjs.map +0 -1
  1143. package/.output/server/chunks/build/PluginSlot-Do6dX0RE.mjs +0 -399
  1144. package/.output/server/chunks/build/PluginSlot-Do6dX0RE.mjs.map +0 -1
  1145. package/.output/server/chunks/build/TownView-kQZFf4zj.mjs +0 -6489
  1146. package/.output/server/chunks/build/TownView-kQZFf4zj.mjs.map +0 -1
  1147. package/.output/server/chunks/build/_id_-Bbx1b74O.mjs +0 -1931
  1148. package/.output/server/chunks/build/_id_-Bbx1b74O.mjs.map +0 -1
  1149. package/.output/server/chunks/build/_id_-IijrRw3f.mjs +0 -391
  1150. package/.output/server/chunks/build/_id_-IijrRw3f.mjs.map +0 -1
  1151. package/.output/server/chunks/build/_wsId_-Dp3ACbQ5.mjs +0 -13620
  1152. package/.output/server/chunks/build/_wsId_-Dp3ACbQ5.mjs.map +0 -1
  1153. package/.output/server/chunks/build/agents-BfIoGr_p.mjs +0 -1087
  1154. package/.output/server/chunks/build/agents-BfIoGr_p.mjs.map +0 -1
  1155. package/.output/server/chunks/build/aml-B5zKrvB3.mjs +0 -810
  1156. package/.output/server/chunks/build/aml-B5zKrvB3.mjs.map +0 -1
  1157. package/.output/server/chunks/build/analysis-CPIxT0FP.mjs +0 -531
  1158. package/.output/server/chunks/build/analysis-CPIxT0FP.mjs.map +0 -1
  1159. package/.output/server/chunks/build/card-IyQjdGXA.mjs +0 -953
  1160. package/.output/server/chunks/build/card-IyQjdGXA.mjs.map +0 -1
  1161. package/.output/server/chunks/build/channel-templates-Bd8bgBCh.mjs +0 -937
  1162. package/.output/server/chunks/build/channel-templates-Bd8bgBCh.mjs.map +0 -1
  1163. package/.output/server/chunks/build/checkbox-NnjtOam0.mjs +0 -439
  1164. package/.output/server/chunks/build/checkbox-NnjtOam0.mjs.map +0 -1
  1165. package/.output/server/chunks/build/daq-mC3-5A0L.mjs +0 -1265
  1166. package/.output/server/chunks/build/daq-mC3-5A0L.mjs.map +0 -1
  1167. package/.output/server/chunks/build/dcw-EhjJpVQM.mjs +0 -504
  1168. package/.output/server/chunks/build/dcw-EhjJpVQM.mjs.map +0 -1
  1169. package/.output/server/chunks/build/default-flcNWlNg.mjs +0 -2297
  1170. package/.output/server/chunks/build/default-flcNWlNg.mjs.map +0 -1
  1171. package/.output/server/chunks/build/descriptions-DuAefuzp.mjs +0 -406
  1172. package/.output/server/chunks/build/descriptions-DuAefuzp.mjs.map +0 -1
  1173. package/.output/server/chunks/build/drawer-DEIB1_X6.mjs +0 -834
  1174. package/.output/server/chunks/build/drawer-DEIB1_X6.mjs.map +0 -1
  1175. package/.output/server/chunks/build/dropdown-BuD1pxH2.mjs +0 -557
  1176. package/.output/server/chunks/build/dropdown-BuD1pxH2.mjs.map +0 -1
  1177. package/.output/server/chunks/build/dropdown-w7qhyN2D.mjs +0 -14
  1178. package/.output/server/chunks/build/dropdown-w7qhyN2D.mjs.map +0 -1
  1179. package/.output/server/chunks/build/es-DfgEl5n-.mjs +0 -42
  1180. package/.output/server/chunks/build/es-DfgEl5n-.mjs.map +0 -1
  1181. package/.output/server/chunks/build/form-CMLL_-Xx.mjs +0 -4711
  1182. package/.output/server/chunks/build/form-CMLL_-Xx.mjs.map +0 -1
  1183. package/.output/server/chunks/build/hitl-ePh3G3ue.mjs +0 -132
  1184. package/.output/server/chunks/build/hitl-ePh3G3ue.mjs.map +0 -1
  1185. package/.output/server/chunks/build/input-DZcioTwL.mjs +0 -4122
  1186. package/.output/server/chunks/build/input-DZcioTwL.mjs.map +0 -1
  1187. package/.output/server/chunks/build/input-number-BRnbiKLd.mjs +0 -1120
  1188. package/.output/server/chunks/build/input-number-BRnbiKLd.mjs.map +0 -1
  1189. package/.output/server/chunks/build/logs-BYop3JfX.mjs +0 -384
  1190. package/.output/server/chunks/build/logs-BYop3JfX.mjs.map +0 -1
  1191. package/.output/server/chunks/build/menu-DXfhc0qN.mjs +0 -1950
  1192. package/.output/server/chunks/build/menu-DXfhc0qN.mjs.map +0 -1
  1193. package/.output/server/chunks/build/monitor-BjBGkUm2.mjs +0 -2247
  1194. package/.output/server/chunks/build/monitor-BjBGkUm2.mjs.map +0 -1
  1195. package/.output/server/chunks/build/operations-fxI8lEBJ.mjs +0 -285
  1196. package/.output/server/chunks/build/operations-fxI8lEBJ.mjs.map +0 -1
  1197. package/.output/server/chunks/build/pages-6JD9VSbx.mjs +0 -540
  1198. package/.output/server/chunks/build/pages-6JD9VSbx.mjs.map +0 -1
  1199. package/.output/server/chunks/build/permissions-u5SZL8Fe.mjs +0 -631
  1200. package/.output/server/chunks/build/permissions-u5SZL8Fe.mjs.map +0 -1
  1201. package/.output/server/chunks/build/plugins-Cas6KOF-.mjs +0 -248
  1202. package/.output/server/chunks/build/plugins-Cas6KOF-.mjs.map +0 -1
  1203. package/.output/server/chunks/build/popconfirm-BWxt-53K.mjs +0 -339
  1204. package/.output/server/chunks/build/popconfirm-BWxt-53K.mjs.map +0 -1
  1205. package/.output/server/chunks/build/schedules-Ct68Jrvw.mjs +0 -7166
  1206. package/.output/server/chunks/build/schedules-Ct68Jrvw.mjs.map +0 -1
  1207. package/.output/server/chunks/build/segmented-DN62bOFu.mjs +0 -341
  1208. package/.output/server/chunks/build/segmented-DN62bOFu.mjs.map +0 -1
  1209. package/.output/server/chunks/build/select-DQv1DXcW.mjs +0 -3923
  1210. package/.output/server/chunks/build/select-DQv1DXcW.mjs.map +0 -1
  1211. package/.output/server/chunks/build/settings-CQzR1YXR.mjs +0 -1110
  1212. package/.output/server/chunks/build/settings-CQzR1YXR.mjs.map +0 -1
  1213. package/.output/server/chunks/build/space-6FfG3llN.mjs +0 -110
  1214. package/.output/server/chunks/build/space-6FfG3llN.mjs.map +0 -1
  1215. package/.output/server/chunks/build/switch-CfsCVFQP.mjs +0 -377
  1216. package/.output/server/chunks/build/switch-CfsCVFQP.mjs.map +0 -1
  1217. package/.output/server/chunks/build/table-HOjbB5YY.mjs +0 -8881
  1218. package/.output/server/chunks/build/table-HOjbB5YY.mjs.map +0 -1
  1219. package/.output/server/chunks/build/tabs-CC26Rbcw.mjs +0 -1923
  1220. package/.output/server/chunks/build/tabs-CC26Rbcw.mjs.map +0 -1
  1221. package/.output/server/chunks/build/tag-BtOMjpDx.mjs +0 -1029
  1222. package/.output/server/chunks/build/tag-BtOMjpDx.mjs.map +0 -1
  1223. package/.output/server/chunks/build/teams-Re0wY2SQ.mjs +0 -1197
  1224. package/.output/server/chunks/build/teams-Re0wY2SQ.mjs.map +0 -1
  1225. package/.output/server/chunks/build/tokens-DLFIUvXE.mjs +0 -1038
  1226. package/.output/server/chunks/build/tokens-DLFIUvXE.mjs.map +0 -1
  1227. package/.output/server/chunks/build/tooltip-BSDwL_LM.mjs +0 -3362
  1228. package/.output/server/chunks/build/tooltip-BSDwL_LM.mjs.map +0 -1
  1229. package/.output/server/chunks/build/town-Bfme7P2I.mjs +0 -132
  1230. package/.output/server/chunks/build/town-Bfme7P2I.mjs.map +0 -1
  1231. package/.output/server/chunks/build/useAgentHarnessOptions-BnFCh23W.mjs +0 -123
  1232. package/.output/server/chunks/build/useAgentHarnessOptions-BnFCh23W.mjs.map +0 -1
  1233. package/.output/server/chunks/build/useAgentTemplateActions-CjBwCb3u.mjs +0 -76
  1234. package/.output/server/chunks/build/useAgentTemplateActions-CjBwCb3u.mjs.map +0 -1
  1235. package/.output/server/chunks/build/useAgentTemplateForm-BX9_xqj8.mjs +0 -116
  1236. package/.output/server/chunks/build/useAgentTemplateForm-BX9_xqj8.mjs.map +0 -1
  1237. package/.output/server/chunks/build/useAgentTemplatesCatalog-Q7LgG1Af.mjs +0 -132
  1238. package/.output/server/chunks/build/useAgentTemplatesCatalog-Q7LgG1Af.mjs.map +0 -1
  1239. package/.output/server/chunks/build/useAmlEntities-BrcTqHwa.mjs +0 -85
  1240. package/.output/server/chunks/build/useAmlEntities-BrcTqHwa.mjs.map +0 -1
  1241. package/.output/server/chunks/build/useAmlEnv-jiGYK790.mjs +0 -193
  1242. package/.output/server/chunks/build/useAmlEnv-jiGYK790.mjs.map +0 -1
  1243. package/.output/server/chunks/build/useAmlJobs-CVZ1btzg.mjs +0 -266
  1244. package/.output/server/chunks/build/useAmlJobs-CVZ1btzg.mjs.map +0 -1
  1245. package/.output/server/chunks/build/useAmlModels-DJkQzcCU.mjs +0 -92
  1246. package/.output/server/chunks/build/useAmlModels-DJkQzcCU.mjs.map +0 -1
  1247. package/.output/server/chunks/build/useAmlNotes-DKnx9a8x.mjs +0 -85
  1248. package/.output/server/chunks/build/useAmlNotes-DKnx9a8x.mjs.map +0 -1
  1249. package/.output/server/chunks/build/useAmlPredict-Bp4ehwKw.mjs +0 -129
  1250. package/.output/server/chunks/build/useAmlPredict-Bp4ehwKw.mjs.map +0 -1
  1251. package/.output/server/chunks/build/useAnalysisFeed-B4OwUd7p.mjs +0 -128
  1252. package/.output/server/chunks/build/useAnalysisFeed-B4OwUd7p.mjs.map +0 -1
  1253. package/.output/server/chunks/build/useDaqAddNode-CaOCbe4-.mjs +0 -141
  1254. package/.output/server/chunks/build/useDaqAddNode-CaOCbe4-.mjs.map +0 -1
  1255. package/.output/server/chunks/build/useDaqDetailBinding-C7AbGIdP.mjs +0 -69
  1256. package/.output/server/chunks/build/useDaqDetailBinding-C7AbGIdP.mjs.map +0 -1
  1257. package/.output/server/chunks/build/useDaqDetailFrames-CmAEdbAL.mjs +0 -78
  1258. package/.output/server/chunks/build/useDaqDetailFrames-CmAEdbAL.mjs.map +0 -1
  1259. package/.output/server/chunks/build/useDaqDetailHistory-C4LWayu1.mjs +0 -175
  1260. package/.output/server/chunks/build/useDaqDetailHistory-C4LWayu1.mjs.map +0 -1
  1261. package/.output/server/chunks/build/useDaqDetailNode-DtZ0oDAn.mjs +0 -98
  1262. package/.output/server/chunks/build/useDaqDetailNode-DtZ0oDAn.mjs.map +0 -1
  1263. package/.output/server/chunks/build/useDaqDetailParams-CrTMDs-2.mjs +0 -158
  1264. package/.output/server/chunks/build/useDaqDetailParams-CrTMDs-2.mjs.map +0 -1
  1265. package/.output/server/chunks/build/useDaqFilters-DYHGhECw.mjs +0 -221
  1266. package/.output/server/chunks/build/useDaqFilters-DYHGhECw.mjs.map +0 -1
  1267. package/.output/server/chunks/build/useDaqOptimizations-C5N4bcu4.mjs +0 -135
  1268. package/.output/server/chunks/build/useDaqOptimizations-C5N4bcu4.mjs.map +0 -1
  1269. package/.output/server/chunks/build/useDaqStream-DhzdoyIR.mjs +0 -395
  1270. package/.output/server/chunks/build/useDaqStream-DhzdoyIR.mjs.map +0 -1
  1271. package/.output/server/chunks/build/useDaqTemplates-C7GzQmdJ.mjs +0 -186
  1272. package/.output/server/chunks/build/useDaqTemplates-C7GzQmdJ.mjs.map +0 -1
  1273. package/.output/server/chunks/build/useDashboardData-B3lZjE7x.mjs +0 -152
  1274. package/.output/server/chunks/build/useDashboardData-B3lZjE7x.mjs.map +0 -1
  1275. package/.output/server/chunks/build/useDcwAddNode-4mTPQ6T8.mjs +0 -218
  1276. package/.output/server/chunks/build/useDcwAddNode-4mTPQ6T8.mjs.map +0 -1
  1277. package/.output/server/chunks/build/useDcwCards-DvLGgUYr.mjs +0 -66
  1278. package/.output/server/chunks/build/useDcwCards-DvLGgUYr.mjs.map +0 -1
  1279. package/.output/server/chunks/build/useDcwDetailScope-BWH7jnVh.mjs +0 -183
  1280. package/.output/server/chunks/build/useDcwDetailScope-BWH7jnVh.mjs.map +0 -1
  1281. package/.output/server/chunks/build/useDcwDetailTemplates-yzNEAMK-.mjs +0 -147
  1282. package/.output/server/chunks/build/useDcwDetailTemplates-yzNEAMK-.mjs.map +0 -1
  1283. package/.output/server/chunks/build/useDcwFilter-BQDmQYY0.mjs +0 -70
  1284. package/.output/server/chunks/build/useDcwFilter-BQDmQYY0.mjs.map +0 -1
  1285. package/.output/server/chunks/build/useDcwLedger-DWGufEor.mjs +0 -78
  1286. package/.output/server/chunks/build/useDcwLedger-DWGufEor.mjs.map +0 -1
  1287. package/.output/server/chunks/build/useDcwLineMutations-DHF-Bemn.mjs +0 -136
  1288. package/.output/server/chunks/build/useDcwLineMutations-DHF-Bemn.mjs.map +0 -1
  1289. package/.output/server/chunks/build/useDcwLineRun-VFe35xou.mjs +0 -103
  1290. package/.output/server/chunks/build/useDcwLineRun-VFe35xou.mjs.map +0 -1
  1291. package/.output/server/chunks/build/useDcwParamApprovals-Bc0BGBds.mjs +0 -120
  1292. package/.output/server/chunks/build/useDcwParamApprovals-Bc0BGBds.mjs.map +0 -1
  1293. package/.output/server/chunks/build/useDcwProducts-DXisXYMh.mjs +0 -92
  1294. package/.output/server/chunks/build/useDcwProducts-DXisXYMh.mjs.map +0 -1
  1295. package/.output/server/chunks/build/useDcwQuery-Cmo3UtIQ.mjs +0 -97
  1296. package/.output/server/chunks/build/useDcwQuery-Cmo3UtIQ.mjs.map +0 -1
  1297. package/.output/server/chunks/build/useDcwQuickActions-BkAcxVnj.mjs +0 -87
  1298. package/.output/server/chunks/build/useDcwQuickActions-BkAcxVnj.mjs.map +0 -1
  1299. package/.output/server/chunks/build/useDcwRecipes-BvtGPQJ9.mjs +0 -257
  1300. package/.output/server/chunks/build/useDcwRecipes-BvtGPQJ9.mjs.map +0 -1
  1301. package/.output/server/chunks/build/useDcwStream-BXJ2V8HM.mjs +0 -452
  1302. package/.output/server/chunks/build/useDcwStream-BXJ2V8HM.mjs.map +0 -1
  1303. package/.output/server/chunks/build/useDcwTemplates-Zxz2DPdu.mjs +0 -90
  1304. package/.output/server/chunks/build/useDcwTemplates-Zxz2DPdu.mjs.map +0 -1
  1305. package/.output/server/chunks/build/useDcwWrites-66CKxcos.mjs +0 -139
  1306. package/.output/server/chunks/build/useDcwWrites-66CKxcos.mjs.map +0 -1
  1307. package/.output/server/chunks/build/useExpConfirmations-BbInIHsn.mjs +0 -106
  1308. package/.output/server/chunks/build/useExpConfirmations-BbInIHsn.mjs.map +0 -1
  1309. package/.output/server/chunks/build/useLocalTime-CUnDHV5V.mjs +0 -55
  1310. package/.output/server/chunks/build/useLocalTime-CUnDHV5V.mjs.map +0 -1
  1311. package/.output/server/chunks/build/useLogsManual-CElmZuJh.mjs +0 -83
  1312. package/.output/server/chunks/build/useLogsManual-CElmZuJh.mjs.map +0 -1
  1313. package/.output/server/chunks/build/useLogsQuery-C5nadU1m.mjs +0 -124
  1314. package/.output/server/chunks/build/useLogsQuery-C5nadU1m.mjs.map +0 -1
  1315. package/.output/server/chunks/build/useLogsScope-DgrB1ur3.mjs +0 -82
  1316. package/.output/server/chunks/build/useLogsScope-DgrB1ur3.mjs.map +0 -1
  1317. package/.output/server/chunks/build/useMonitorColumns-DhYvkLDq.mjs +0 -214
  1318. package/.output/server/chunks/build/useMonitorColumns-DhYvkLDq.mjs.map +0 -1
  1319. package/.output/server/chunks/build/useMonitorData-DcIfMEiz.mjs +0 -134
  1320. package/.output/server/chunks/build/useMonitorData-DcIfMEiz.mjs.map +0 -1
  1321. package/.output/server/chunks/build/useMonitorFormat-DRCXsKwh.mjs +0 -90
  1322. package/.output/server/chunks/build/useMonitorFormat-DRCXsKwh.mjs.map +0 -1
  1323. package/.output/server/chunks/build/useOperationsFeed-DsA2ym7M.mjs +0 -193
  1324. package/.output/server/chunks/build/useOperationsFeed-DsA2ym7M.mjs.map +0 -1
  1325. package/.output/server/chunks/build/useOpsLog-SnWPuRtK.mjs +0 -137
  1326. package/.output/server/chunks/build/useOpsLog-SnWPuRtK.mjs.map +0 -1
  1327. package/.output/server/chunks/build/useRecipeDispatchApprovals-CbL2El3n.mjs +0 -155
  1328. package/.output/server/chunks/build/useRecipeDispatchApprovals-CbL2El3n.mjs.map +0 -1
  1329. package/.output/server/chunks/build/useTeamActions-C3_O_AIU.mjs +0 -78
  1330. package/.output/server/chunks/build/useTeamActions-C3_O_AIU.mjs.map +0 -1
  1331. package/.output/server/chunks/build/useTeamAddMemberDialog-DWAoZCKd.mjs +0 -83
  1332. package/.output/server/chunks/build/useTeamAddMemberDialog-DWAoZCKd.mjs.map +0 -1
  1333. package/.output/server/chunks/build/useTeamCreateDialog-911mIPWd.mjs +0 -96
  1334. package/.output/server/chunks/build/useTeamCreateDialog-911mIPWd.mjs.map +0 -1
  1335. package/.output/server/chunks/build/useTeamDeployDialog-D0STROoQ.mjs +0 -79
  1336. package/.output/server/chunks/build/useTeamDeployDialog-D0STROoQ.mjs.map +0 -1
  1337. package/.output/server/chunks/build/useTeamPluginDialog-Df6-e2OW.mjs +0 -102
  1338. package/.output/server/chunks/build/useTeamPluginDialog-Df6-e2OW.mjs.map +0 -1
  1339. package/.output/server/chunks/build/useTeamsCatalog-HBSyKt5P.mjs +0 -122
  1340. package/.output/server/chunks/build/useTeamsCatalog-HBSyKt5P.mjs.map +0 -1
  1341. package/.output/server/chunks/build/useTokenCreate-DOojAhM5.mjs +0 -114
  1342. package/.output/server/chunks/build/useTokenCreate-DOojAhM5.mjs.map +0 -1
  1343. package/.output/server/chunks/build/useTokenRename-CMA5dLHx.mjs +0 -86
  1344. package/.output/server/chunks/build/useTokenRename-CMA5dLHx.mjs.map +0 -1
  1345. package/.output/server/chunks/build/useTokenReveal-C19aCKzt.mjs +0 -117
  1346. package/.output/server/chunks/build/useTokenReveal-C19aCKzt.mjs.map +0 -1
  1347. package/.output/server/chunks/build/useTokensList-D0ZpLOhR.mjs +0 -91
  1348. package/.output/server/chunks/build/useTokensList-D0ZpLOhR.mjs.map +0 -1
  1349. package/.output/server/chunks/build/useWorkbenchAuth-CN5E3J5L.mjs +0 -140
  1350. package/.output/server/chunks/build/useWorkbenchAuth-CN5E3J5L.mjs.map +0 -1
  1351. package/.output/server/chunks/build/useWorkbenchWorkspaces-ChKByQSD.mjs +0 -137
  1352. package/.output/server/chunks/build/useWorkbenchWorkspaces-ChKByQSD.mjs.map +0 -1
  1353. package/.output/server/chunks/build/useWorkshopApi-C9sTYu1F.mjs +0 -113
  1354. package/.output/server/chunks/build/useWorkshopApi-C9sTYu1F.mjs.map +0 -1
  1355. package/.output/server/chunks/build/useWorkshopWs-CM-Ywk4h.mjs +0 -1659
  1356. package/.output/server/chunks/build/useWorkshopWs-CM-Ywk4h.mjs.map +0 -1
  1357. package/.output/server/chunks/build/useWorkspaceChannels--65yU02b.mjs +0 -91
  1358. package/.output/server/chunks/build/useWorkspaceChannels--65yU02b.mjs.map +0 -1
  1359. package/.output/server/chunks/build/users-BW4jowK4.mjs +0 -563
  1360. package/.output/server/chunks/build/users-BW4jowK4.mjs.map +0 -1
  1361. package/.output/server/chunks/build/workshop-Bx55czXL.mjs +0 -523
  1362. package/.output/server/chunks/build/workshop-Bx55czXL.mjs.map +0 -1
  1363. /package/.output/public/_nuxt/{BBrRELH32.js → BBrRELH3.js} +0 -0
  1364. /package/.output/public/_nuxt/{BDNMzG2s2.js → BDNMzG2s.js} +0 -0
  1365. /package/.output/public/_nuxt/{BGkumHZ32.js → BGkumHZ3.js} +0 -0
  1366. /package/.output/public/_nuxt/{BrIJiJSN2.js → BrIJiJSN.js} +0 -0
  1367. /package/.output/public/_nuxt/{BupBjt6B2.js → BupBjt6B.js} +0 -0
  1368. /package/.output/public/_nuxt/{CT-vTjcG.js → CT-vTjcG2.js} +0 -0
  1369. /package/.output/public/_nuxt/{CWKEp1wx2.js → CWKEp1wx.js} +0 -0
  1370. /package/.output/public/_nuxt/{DIOBYJe32.js → DIOBYJe3.js} +0 -0
  1371. /package/.output/public/_nuxt/{DkJVtqfc.js → DkJVtqfc2.js} +0 -0
  1372. /package/.output/public/_nuxt/{Dmgqz2np.js → Dmgqz2np2.js} +0 -0
  1373. /package/.output/public/_nuxt/{Nw_6OpQZ2.js → Nw_6OpQZ.js} +0 -0
  1374. /package/.output/public/_nuxt/{cGSl2GZp.js → cGSl2GZp2.js} +0 -0
package/README.md CHANGED
@@ -1,970 +1,973 @@
1
- <div align="center">
2
-
3
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/hero.png" alt="AgentWorkShop — agent teams driving a real production line" width="100%" />
4
-
5
- <br />
6
-
7
- # AgentWorkShop
8
-
9
- **Where AI agent teams meet the production line.**
10
-
11
- [![npm version](https://img.shields.io/npm/v/agentworkshop?logo=npm&logoColor=white&label=npm&color=CB3837)](https://github.com/kingdol666/AgentWorkShop)
12
- [![npm downloads](https://img.shields.io/npm/dm/agentworkshop?logo=npm&logoColor=white&label=downloads&color=CB3837)](https://github.com/kingdol666/AgentWorkShop)
13
- [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases)
14
- [![Stars](https://img.shields.io/github/stars/kingdol666/AgentWorkShop?logo=github&label=stars&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/stargazers)
15
- [![Last commit](https://img.shields.io/github/last-commit/kingdol666/AgentWorkShop?logo=git&logoColor=white&label=last%20commit)](https://github.com/kingdol666/AgentWorkShop/commits)
16
- [![Issues](https://img.shields.io/github/issues/kingdol666/AgentWorkShop?logo=github&label=issues)](https://github.com/kingdol666/AgentWorkShop/issues)
17
- [![License](https://img.shields.io/badge/license-Apache%202.0-8A2BE2?logo=apache&logoColor=white)](./LICENSE)
18
-
19
- [![Nuxt 4](https://img.shields.io/badge/Nuxt-4-00DC82?logo=nuxt&logoColor=white)](https://nuxt.com)
20
- [![Vue 3.5](https://img.shields.io/badge/Vue-3.5-42B883?logo=vuedotjs&logoColor=white)](https://vuejs.org)
21
- [![TypeScript 5.7](https://img.shields.io/badge/TypeScript-5.7-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org)
22
- [![Node ≥ 23.4](https://img.shields.io/badge/Node.js-%E2%89%A5%2023.4-3C873A?logo=nodedotjs&logoColor=white)](https://nodejs.org)
23
- [![SQLite node:sqlite](https://img.shields.io/badge/SQLite-node%3Asqlite-003B57?logo=sqlite&logoColor=white)](https://nodejs.org/api/sqlite.html)
24
- [![Modbus · OPC UA · MQTT · HTTP](https://img.shields.io/badge/field%20bus-Modbus%20%C2%B7%20OPC%20UA%20%C2%B7%20MQTT%20%C2%B7%20HTTP-41c8f4?logo=siemens&logoColor=white)](./docs/site/guide/daq-protocols.md)
25
- [![Plugins](https://img.shields.io/badge/plugins-hot%20reload-8b5cf6?logo=puzzle&logoColor=white)](./docs/plugins.md)
26
- [![Docs](https://img.shields.io/badge/docs-VitePress%20%C2%B7%20%E4%B8%AD%2FEN-ffd75e?logo=vitepress&logoColor=black)](https://kingdol666.github.io/AgentWorkShop)
27
- [![PRs welcome](https://img.shields.io/badge/PRs-welcome-ff69b4?logo=git&logoColor=white)](https://github.com/kingdol666/AgentWorkShop/pulls)
28
-
29
- **[简体中文](./README-zh.md)** · **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Releases](https://github.com/kingdol666/AgentWorkShop/releases)** · **[Changelog](./changelog.md)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
30
-
31
- <sub><b>v0.7.63</b> · 14 engines · 6 field protocols (5 built-in + serial plugin) + MES REST integration · data-analysis ledger with line-scoped permissions · 119 runtime settings · bilingual docs (简体中文 / English)</sub>
32
-
33
- <br />
34
-
35
- *A configuration-driven platform where **AI agent teams** and an **industrial digital twin** share one runtime — agents query real telemetry, issue supervisory setpoints through human-approved write control, and every event streams live to a 3D twin.*
36
-
37
- </div>
38
-
39
- > [!IMPORTANT]
40
- > **Positioning: supervisory layer.** AgentWorkShop is a *supervisory* (SCADA-adjacent) layer for production-line management, digital twins, DAQ and agent orchestration, operating at **second-level soft real-time**.
41
- > It is **not** a hard real-time controller: any time-critical loop (**< 10 ms**, interlocks, safety, servo) **must live inside the PLC**. Setpoints written here are advisory — plant-side logic may veto.
42
-
43
- ---
44
-
45
- <table>
46
- <tr>
47
- <td width="33%" valign="top">
48
-
49
- **FIGURE INDEX**
50
-
51
- `FIG.01` closed loop ·<br/>
52
- `FIG.02` DAQ console ·<br/>
53
- `FIG.03` line operations ·<br/>
54
- `FIG.04` digital twin ·<br/>
55
- `FIG.05` dashboard ·<br/>
56
- `FIG.06` responsive
57
-
58
- </td>
59
- <td width="33%" valign="top">
60
-
61
- **JUMP TO**
62
-
63
- [What is this?](#what-is-this) · [Highlights](#highlights)<br/>
64
- [Interface](#the-interface) · [Architecture](#architecture)<br/>
65
- [Quick start](#quick-start) · [Configuration & CLI](#configuration--cli--config-driven-by-design)<br/>
66
- [Industrial stack](#the-industrial-stack-in-detail) · [Usage](#usage)<br/>
67
- [Verification](#verified-end-to-end) · [Project layout](#project-layout)<br/>
68
- [Tech stack](#tech-stack) · [Development](#development)<br/>
69
- [Roadmap](#roadmap) · [License](#license)
70
-
71
- </td>
72
- <td width="33%" valign="top">
73
-
74
- **AT A GLANCE**
75
-
76
- Supervisory layer, second-level soft real-time<br/>
77
- 14 engines · 4 entry points<br/>
78
- 6 field protocols (5 built-in + serial plugin, read + write)<br/>
79
- 7-state task machine · root queue + lease fencing<br/>
80
- Group chat jobs · scheduled tasks · HITL<br/>
81
- FTS5 + vector memory · hot-reloadable plugins<br/>
82
- SDK · CLI · TUI · external MCP · ~1100+ acceptance assertions
83
-
84
- </td>
85
- </tr>
86
- </table>
87
-
88
- ---
89
-
90
- ## Documentation
91
-
92
- Docs are bilingual — the [VitePress site](https://kingdol666.github.io/AgentWorkShop) ships a language switcher (简体中文 / English) across every section. Deep-dive pages ship in this repo too, and the CLI copies them into the published tarball:
93
-
94
- | Topic | Online | In-repo | What it covers |
95
- |---|---|---|---|
96
- | **Getting started** | [Guide](https://kingdol666.github.io/AgentWorkShop/guide/getting-started) | `docs/site/guide/` | install → first run → first agent × line session, configuration, DAQ protocols, DCW read/write, HITL, recipe versioning, multi-harness teams, line permissions, AML |
97
- | **Plugin development** | [Plugin guide](https://kingdol666.github.io/AgentWorkShop/plugins/) | [`docs/plugins.md`](./docs/plugins.md) | the full extension contract: three scopes, `index.mjs` manifest, `ctx` server/browser surface, `settings`/`groups` declarations, lifecycle events, i18n, panels, team-scoped switches, a real example |
98
- | **SDK** | [SDK guide](https://kingdol666.github.io/AgentWorkShop/sdk/) | [`docs/sdk.md`](./docs/sdk.md) | `agentworkshop/sdk` as a programming client (platform REST client with envelope handling) and as the plugin extension base; TypeScript types; browser-side SDK |
99
- | **CLI** | [CLI manual](https://kingdol666.github.io/AgentWorkShop/cli/) | [`docs/cli.md`](./docs/cli.md) | all 15 `aw` commands, global options, exit codes, dual-mode path model, the command-registration system, maintainer publish guide |
100
- | **AML** | [AML guide](https://kingdol666.github.io/AgentWorkShop/guide/aml) | [`docs/aml.md`](./docs/aml.md) | auto-modeling lab: dataset build, job orchestration, model registry, promotion gates, agent tools |
101
- | **TUI** | — | [`docs/tui.md`](./docs/tui.md) · [`tui/README.md`](./tui/README.md) | terminal workbench: channels, agents, tasks, live monitor, HITL answering |
102
- | **Multi-harness architecture** | — | [`docs/multi-harness-architecture.md`](./docs/multi-harness-architecture.md) | engine taxonomy, normalized session contract, provider/model catalog, failure modes |
103
-
104
- ---
105
-
106
- ## What is this?
107
-
108
- AgentWorkShop started as a **multi-agent software workshop** — channels of coding agents with a lead-agent scheduler, a 7-state task machine, persistent memory, and four interoperable entry points (WebSocket / MCP / A2A / REST).
109
-
110
- It grew an **industrial half**: a full data-acquisition and write-control stack (Modbus TCP / OPC UA), production lines with recipes and batch runs, a 3D digital-twin town, an **auto-modeling lab** (dataset → training job → leaderboard → gated promotion) — and the bridge that makes it unique: **agents can be granted bound, permission-scoped access to real industrial nodes**, query their live telemetry with physical semantics attached, and drive write operations through an interlock → human-in-the-loop → readback pipeline.
111
-
112
- It is also **extensible by design**: a self-contained plugin can enhance the server (hooks, routes, agent tools, DAQ drivers, config groups) and the browser (panels, i18n) at the same time, and the same surfaces are available to ordinary programs through the SDK — see [`docs/plugins.md`](./docs/plugins.md) and [`docs/sdk.md`](./docs/sdk.md).
113
-
114
- The result: submit a goal like *"analyze the melt temperature trend and optimize the setpoint"* — and an agent team reads real sensor history, computes statistics, proposes a new setpoint, waits for your approval in the HITL panel, writes it to the PLC, verifies the readback, and reports the numbers back. **End to end, verified by automated E2E.**
115
-
116
- <div align="center">
117
-
118
- ### FIG.01 — The closed loop
119
-
120
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-01-closedloop.gif" alt="An agent team reads live telemetry, proposes a setpoint, waits for approval, writes to the PLC and verifies the readback" width="88%" />
121
-
122
- <sub><b>Goal → read → compute → approve → write → readback → report.</b><br/>
123
- Recorded against a running instance: real DAQ history, real write control, real HITL approval.</sub>
124
-
125
- </div>
126
-
127
- > [!NOTE]
128
- > Every figure in this README is a recording or screenshot of a **running** instance — not a mockup. The numbers on screen come from seeded industrial data flowing through the same code paths the product ships.
129
-
130
- <div align="center">
131
-
132
- ### 🎬 Live demo (4 min 11 s, English voice-over & captions)
133
-
134
- <a href="https://github.com/kingdol666/AgentWorkShop/blob/main/docs/site/public/demo/agentworkshop-demo.mp4"><img src="docs/site/public/demo/poster.jpg" alt="AgentWorkShop live demo: DAQ console, governed write + read-back, serial protocol plugin, agent team execution, closed-loop trend and the 3D digital twin" width="86%" /></a>
135
-
136
- <sub><b>Click the cover to watch the full demo.</b> Real PLC simulator, real serial-port enumeration, real agent-team execution — no cuts, no fakes.<br/>Scenes: dashboard → live DAQ → governed write & read-back → serial protocol plugin → agent team execution → closed-loop trend → 3D digital twin.</sub>
137
-
138
- </div>
139
-
140
- ---
141
-
142
- ## Highlights
143
-
144
- #### Agent team runtime
145
-
146
- | Capability | Why it matters |
147
- |---|---|
148
- | **Lead-agent orchestration** | Each channel has one lead: decomposes goals, dispatches to idle workers, reassigns failures, judges goal satisfaction. LLM decisions with a deterministic rule-engine fallback — the system never stalls. |
149
- | **Three execution modes** | `goal` (satisfaction judging) · `loop` (fixed-interval replay) · `pipeline` (ordered stages). 7-state task machine with progress, artifacts and full history. |
150
- | **Harness-agnostic** | One `AgentInterface`, **14 engines** in three transport classes: **in-process** — `mock` (no LLM), `claude` (Claude Agent SDK, resident session, same-turn steer); **persistent session over a protocol** — `omp` (RPC subprocess), `codex` (app-server JSON-RPC), `dsh` / `qwen` / `hermes` (ACP), `opencode` (serve + HTTP/SSE); **headless CLI with a structured event stream** — `gemini` (stream-json), `copilot` (JSONL), `cursor` (stream-json), `crush` (non-interactive run), `goose` (stream-json), `pi` (`-p --mode json`). The platform never knows which one runs. |
151
- | **Per-channel LLM selection** | Each channel picks a **harness → provider → model (+effort)** triple from the harness's live catalog (e.g. `zhipu-coding-plan/glm-5.3-flash` on omp). Members inherit it unless they override — mixing harnesses in one team is a first-class setup, not a workaround. |
152
- | **Harness availability check** | `GET /api/workshop/harnesses` probes each engine's CLI on PATH. The UI disables not-installed engines, and dispatch is hard-checked at every entry point. |
153
- | **Stall-safe supervision & task governance** | Submitted goals enter a **FIFO root queue** with visible queue positions. Queued roots **never burn their execution budget while waiting** — the budget starts at admission, and a deterministic **lead-rescue sweep** revives starved entries (stopped/idle lead runtime + fresh assignment) before a human ever notices. A **supervision watchdog** distinguishes *stuck* from *slow* — agent tool invocations count as liveness, so healthy long-running industrial work survives while genuinely stalled tasks surface to the lead. Every assignment carries a **generation + execution lease**, so events from a superseded worker are dropped by admission, not reconciled by hope. |
154
- | **Harness continuity** | Engines declare a continuity mode (`persistent` / `per_turn`); persistent sessions are reused across turns under a read-only continuity lease (pid / session / reuse count / last restart reason), and a server restart restores what can be restored instead of silently re-forking. |
155
- | **Channel group chat & native HITL** | The channel timeline is a real group chat: a member's request becomes a **trackable job** (not a lost message), and engines with a native ask surface (e.g. `omp`) route HITL questions through the platform — approve once, the engine continues with the receipt. Member permissions and notifications are first-class. |
156
- | **Scheduled tasks** | Any channel task can run on a **schedule** — fixed `interval` (60 s floor) or `daily` at a set time — managed from `/workshop/schedules` or the REST API, with per-run history, busy-guard (no overlapping runs of the same schedule) and channel-scoped visibility. |
157
- | **Persistent memory & channel process memory** | Private + channel-shared domains; FTS5 with CJK segmentation, optional vector hybrid recall, token-budgeted injection. On top sit **process memories**: deterministic root/child/lead event contracts, a canonical root summary, and a durable outbox (dead-letter + compensation worker) so the story of a goal survives restarts. |
158
- | **Four entry points** | One manager behind every door: **WS** (AEP v1 event stream with seq-resume), **MCP** (~25 in-process tools), **A2A** (JSON-RPC 2.0 + AgentCard), **REST**. |
159
-
160
- #### Industrial stack
161
-
162
- | Capability | Why it matters |
163
- |---|---|
164
- | **Six field protocols** | Modbus TCP, Modbus RTU-over-TCP (serial gateway), OPC UA, MQTT and HTTP/REST, plus a **built-in serial plugin** (direct RS-232/485: Modbus RTU + ASCII line) — acquisition **and** write-control drivers with connection pools, classified error messages and per-driver connection tests. `mock` covers demos/CI. Protocols are plugins: `ctx.daq.registerDriver` / `ctx.dcw.registerWriteDriver` inject straight into the frontend protocol dropdown and dynamic forms (⌁ badge) — when a protocol ships self-describing metadata, the frontend forms render with zero changes. |
165
- | **Agent teams, industrial scope** | Agents bind to DAQ/DCW nodes and see semantic cards — physical meaning, units, safe range, recipe window — never raw registers. |
166
- | **Human-approved write control** | DCW writes flow through **safe-range ∩ recipe-window** interlock → optional **HITL approval** → PLC write → **readback verification** → signed write history. |
167
- | **Read-write DCW channels** | Every control node also **reads its PLC value back** through the same calibration path it writes with: periodic + on-demand + agent reads surface **SET vs ACT** side by side — passive observation, never blocked by write interlocks. |
168
- | **Recipe versioning & governance** | Parameter changes are versioned with attribution (user/agent/system + operator + reason). Roll back to any revision or the last-good batch — non-destructively. Stale-node params are skipped and clearly marked. |
169
- | **Recipe-chain optimization loop** | Agents optimize through recipe management, the way human process engineers do: `recipe_trial` batch-dispatches multi-parameter candidates **without writing a version** → re-measure → progress adopts via `recipe_update` (same recipe id, version +1) → regression triggers a **unified rollback** (`recipe_rollback` with `dispatch: true` = definition revert + batch restore to the PLC). Single-knob direct dispatch is out of the loop; trials run under four-layer bounds and a per-line cadence. |
170
- | **Channel-bound lines (read-only grant)** | A channel can bind a line: every member reads that line's ops logs, recipe history and live status without any node binding (tool outputs are tagged "channel-bound, read-only"), while writes still require node authorization. The line brief is injected into member prompts; binding changes hot-recycle member runtimes. |
171
- | **Data-analysis ledger (v0.7.62)** | Agents persist analysis results as first-class records: native `analysis_save` / `analysis_query` host tools write a dedicated `analysis_reports` table keyed by line + recipe + time window, with conclusions, metrics, data sources and actor attribution. The ledger is append-only for agents; humans revise via REST with editor attribution. A dedicated `/analysis` page streams new reports live (ops-log WS), filters by line / recipe / time / keyword, and edit/delete are permission-gated (`operate` line mode; admin-only delete). External analysis plugins integrate through the same ledger — `diag_run` runs IDD analyses in the background (`stability-report` for line health reports, `deep-diagnosis` for root cause), returns a `task_id` immediately, tracks progress via `diag_status`, and the finished report lands in the ledger via `analysis_save`. |
172
- | **Semantic parameter surface & tuning loop** | Every dispatchable write converges on the **recipe face** (`recipe_update` / `recipe_apply` / `recipe_trial`, each gated by binding → HITL reason → active-run). Writes stay narrowed by the **four-layer bound** — node safe range ∩ parameter baseline bounds ∩ active product bounds ∩ active recipe window — and each adjustment opens a tuning record that `dcw_judge` must close (keep / rollback / uncertain), with `dcw_rollback` executing the undo. (v0.7.63 removed the legacy `param_control` / `param_read` / `dcw_read` direct-node tools — dead surface under permission model v2 — so the agent tool list stays clean.) |
173
- | **Line operations** | Lines → products → recipes → batch runs. Recipe windows gate acquisition and interlock writes; every sample is tagged `product/recipe/run` for per-batch isolation. |
174
- | **Multi-modal DAQ frame pipeline** | Multi-point profiles (thickness/scanner) and CCD image frames flow through template sink pipelines: vectors & metadata into Timescale (`daq_frames`), pixels into object storage (MinIO, auto disk fallback); derived-metric thresholds ride the existing alarm chain. |
175
- | **Production hardening (v0.7.58)** | Hold-heartbeat lifecycle fixed — failed writes never occupy the setpoint (no phantom re-dispatch), driver/connection/line changes clear the value, line stop suspends hold automatically; silent mock fallback blocked (unknown protocols fail loudly, plugin unload can't fake success); frame pixel sha256 fingerprints + day-directory object GC (DB cross-check before delete); Timescale daily chunks + columnstore compression (TSL); heap-watermark watch with crash/liveness/watermark auto-respawn; write-hold windows & trial cadence persisted across restarts; runtime grant re-checks include the channel-bound line (revocation takes effect everywhere). |
176
- | **Agent self-audit tools** | `line_context`, `ops_log`, `recipe_log`, `recipe_versions`, `dcw_journal` — agents see exactly which line/product/recipe they control, who did what, and how every value changed. |
177
-
178
- #### Governance, configuration & extension
179
-
180
- | Capability | Why it matters |
181
- |---|---|
182
- | **Line-level permissions** | Industrial data is gated **per production line** with three states (none / read-only / operate), enforced in the data plane — regular users see no line data until granted. |
183
- | **Full-operation audit log** | Every user / agent / system action lands in one queryable log; operators are attributed to "Channel/Member", distinct from users and the system. Streamed live over WS. |
184
- | **Team-scoped plugin switches** | Each team (channel) keeps an **independent plugin switch set** (`channel_plugins`): a disabled plugin's tools are not injected into that team's agents. Plugins themselves are hot-managed via `aw plugin` and the `/plugins` page. |
185
- | **Plugin extension API** | A self-contained directory under `plugins/<name>/` enhances **both halves at once**: `index.mjs` (server: hooks, routes, agent tools, **DAQ read drivers / DCW write drivers**, frame processors, node templates, config groups, KV, timers) and `client.mjs` (browser: panels injected into named slots, i18n, settings UI). Three scopes — `builtin` (shipped) > `project` (checkout) > `user` (`~/.AgentWorkShop`) — with ~1 s hot reload on enable/disable **and on code edits**; a disabled plugin's drivers are removed on hot reload immediately. Built-in example: **serial-bridge** (serial communication: read/write drivers, serial probe API, frontend panel). Full contract in [`docs/plugins.md`](./docs/plugins.md). |
186
- | **AML — auto-modeling lab** | Dataset build → training job → leaderboard → promotion gates → model reference, all driven from `/aml` or by agents through **14 `aml_*` tools**. Python runtime bootstrapped with `uv` into an `aml/` asset root inside the config root; artifacts and metadata stay under the config root. Models carry a human-readable identity — label (line · recipe · objective), description and line/objective ids — selectable via `aml_model_find`. |
187
- | **AML hybrid twin × MPC** | Grey-box physics core + bounded PyTorch residual, `TwinSnapshot` / `VirtualTrial` / `RecommendationCertificate` with UQ/OOD screening and all-trajectory gates; the `hybrid_twin` channel profile injects **12 profile tools** (scene discovery/compile/freeze, physics-spec draft/validate/compile, snapshot, trial, MPC, gate, provider catalog) plus the general `twin_calibration_request`. Trials stay virtual (`candidateExecuted=false`) and writes are recommendation-only until a certificate is certified. |
188
- | **Two-mode optimization loop** | Dedicated channel templates split the loop **structurally**: an *aml-training* channel gets the modeling face (datasets, jobs, scene compile, physics specs, training plans — no plant writes, no MPC) and an *aml-optimization* channel gets the acting face (snapshots, trials, gate, MPC, Bayesian search `twin_bayes_optimize`, governed micro-writes `optimization_explore`) — training-while-optimizing is impossible by construction. **Exploration** mode writes through the governed chain with response read-back pairing (every write lands in an `optimization_explorations` ledger); **production** mode requires a bound model that cleared the twin gates (`aml` mode, `boundModelId` at instantiate time). |
189
- | **Runtime observability** | `GET /api/system/monitor` exposes the agent-team internals as numbers: root queue depth, watchdog interventions, harness session reuse, pending memory outbox — each guarded by a documented rollback switch, so new machinery can be turned off without a redeploy. |
190
- | **Line operations feed (`/operations`)** | One page for every touch on the plant: a live operation feed (REST snapshot + WS stream) classifies writes, DAQ, AML, recipe, rollback, alarm, line, manual and system actions into **nine categories**, renders structured **before → after diff badges** on write rows (failures marked red), and infers the **closed-loop phase** (monitor → exploration · small-step → recommendation search → shadow verification → production) straight from the event stream. The same feed powers a line-operations panel inside the workshop console. |
191
- | **External MCP gateway** | `aw mcp` starts a zero-dependency **stdio MCP server** (38 tools) that discovers a running instance automatically (env → lock file → config file) and exposes lines, recipes (incl. mark-good), governed DCW writes, semantic parameter mapping, DAQ queries, channels, team provisioning, model promotion, judge/rollback and plugin management to any MCP client — gated by the `mcp.enabled` runtime setting, with `--doctor` and `--print-config` helpers. |
192
- | **Fully config-driven runtime** | Every runtime knob (memory budgets, compaction, rollback guardrails, retention, backups, log level, system timezone, MCP gate…) is declared once in the settings descriptor registry with precedence **config.yml < runtime-settings < env** — **119 settings across 18 groups** (40 live / 79 restart), no hardcoded defaults in code. |
193
- | **Configurable system timezone** | One `time.timeZone` setting (IANA id, live-applied) drives human-facing timestamps — logs, chat, audit, agent records and schedules — through a single formatter; machine timelines (DAQ samples, `timestamptz`) stay absolute. |
194
- | **Configurable cadences** | Sampling and query defaults/floors are **live settings** (`daq.sampling.*`, `daq.query.*`): hot-reloaded, clamped on node create/patch, and agent tool descriptions always carry the current values. |
195
-
196
- #### Digital twin
197
-
198
- | Capability | Why it matters |
199
- |---|---|
200
- | **3D digital twin** | Three.js town: place line equipment and channel territories, watch device health, alarms and live values — driven by the same event bus. An adaptive quality ladder (DPR / shadow / bloom tiers, wall-clock FPS budget) matches the machine, and `window.__townStats` exposes real render metrics for perf probes. |
201
-
202
- ---
203
-
204
- ## The interface
205
-
206
- Every panel below is the real UI, at 1440×900, recorded from a running instance.
207
-
208
- <div align="center">
209
-
210
- ### FIG.02 — DAQ console
211
-
212
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-02-daq.gif" alt="DAQ console: node inventory, live trends, alarm strip and event stream" width="92%" />
213
-
214
- <sub><b>Acquisition, end to end.</b> Node inventory and health under a live gauge band, trends that fill as samples land,
215
- an alarm strip that only holds what is actually unacknowledged, and a tailing event stream.</sub>
216
-
217
- <br />
218
-
219
- ### FIG.03 — Line operations
220
-
221
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-03-dcw.gif" alt="Line operations: production lines, products, recipes and write control" width="92%" />
222
-
223
- <sub><b>Lines, products, recipes, batches.</b> Starting a line gates acquisition through its recipe window and tags every
224
- sample with <code>product/recipe/run</code>; control nodes expose <b>SET vs ACT</b> through the same calibration path they write with.</sub>
225
-
226
- <br />
227
-
228
- ### FIG.04 — Digital twin
229
-
230
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-04-town.gif" alt="3D digital twin town driven by live telemetry" width="92%" />
231
-
232
- <sub><b>The twin is the same event bus, rendered.</b> Equipment, channel territories, alarms and live values — an adaptive
233
- quality ladder (DPR / shadow / bloom, wall-clock FPS budget) keeps it honest on modest hardware.</sub>
234
-
235
- <br />
236
-
237
- ### FIG.05 — Dashboard
238
-
239
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-05-dashboard.gif" alt="Runtime dashboard with KPI gauges and trends" width="92%" />
240
-
241
- <sub><b>One screen for the whole workshop.</b> Channels, agents, tasks, DAQ throughput and alarms — read from the same
242
- state the API serves, not a separate metrics store.</sub>
243
-
244
- <br />
245
-
246
- ### FIG.06 — Responsive
247
-
248
- <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-06-responsive.gif" alt="The same interface adapting from desktop to tablet to phone" width="92%" />
249
-
250
- <sub><b>Desktop → tablet → phone.</b> The instrument rail collapses to an icon rail, then to an off-canvas drawer;
251
- page headers stack, dense tables become scrollable ledgers with a pinned identity column.</sub>
252
-
253
- </div>
254
-
255
- <table>
256
- <tr>
257
- <td width="50%"><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-workshop.png" alt="Agent workshop" width="100%" /><br/><sub><b>Agent workshop.</b> Channel timeline, lanes, tasks, memory and HITL in one workbench.</sub></td>
258
- <td width="50%"><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-monitor.png" alt="Runtime monitor" width="100%" /><br/><sub><b>Runtime monitor.</b> Every wired channel, member count, dependency cycle and owner.</sub></td>
259
- </tr>
260
- <tr>
261
- <td><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-settings.png" alt="Settings" width="100%" /><br/><sub><b>Settings.</b> 119 keys across 18 groups, descriptor-driven — the same registry the CLI reads.</sub></td>
262
- <td><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-plugins.png" alt="Plugins" width="100%" /><br/><sub><b>Plugins.</b> Three scopes, hot reload on edit, per-team switches.</sub></td>
263
- </tr>
264
- </table>
265
-
266
- ---
267
- ## Architecture
268
-
269
- ```mermaid
270
- flowchart TB
271
- subgraph FE["Frontend — Nuxt 4 / Vue 3"]
272
- UI["Workshop UI · 3D Twin · Dashboards"]
273
- WS["AEP client — seq resume"]
274
- end
275
- subgraph SRV["Server — Nitro / h3"]
276
- REST["REST /api/workshop/**"]
277
- HUB["WS Hub — AEP v1"]
278
- A2A["A2A JSON-RPC"]
279
- MCP["MCP Server"]
280
- subgraph RT["Runtime"]
281
- MGR["AgentChannelManager"]
282
- SCH["SchedulerLoop — lead supervision"]
283
- TE["TaskEngine — 7-state machine"]
284
- AR["AgentRuntime × N"]
285
- MEM["AgentMemory — FTS5 + vector"]
286
- BUS["Event bus (ManagerBus) — per-channel seq + ring"]
287
- end
288
- subgraph IND["Industrial"]
289
- DAQ["DAQ gateway — per-node edge runtimes"]
290
- DCW["DCW gateway — write control"]
291
- BR["Bus — inproc / MQTT"]
292
- TSDB["TSDB — SQLite / Timescale"]
293
- end
294
- subgraph HB["Harness adapters — 14 engines"]
295
- MOCK["mock · claude — in-process"]
296
- OMP["omp — RPC subprocess"]
297
- CDX["codex — app-server"]
298
- DSH["dsh · qwen · hermes — ACP"]
299
- OC["opencode — serve"]
300
- FAM["gemini · copilot · cursor · crush · goose · pi — headless CLI"]
301
- end
302
- DB[("SQLite — channels · agents · tasks
303
- messages · memories (FTS5) · events")]
304
- end
305
- UI <--> WS
306
- WS --> BUS
307
- REST & A2A & MCP --> MGR
308
- MGR --> SCH & TE & AR
309
- AR --> MEM
310
- AR --> MOCK & OMP & CDX & DSH & OC & FAM
311
- MGR & TE & MEM & BUS --> DB
312
- DAQ <--> BR --> TSDB
313
- DCW --> BR
314
- DAQ & DCW --> BUS
315
- ```
316
-
317
- **The agent × machine bridge** (the part worth reading the source for):
318
-
319
- ```
320
- agent ──binds to──▶ node (daq: auto / dcw: manual)
321
- │ │
322
- │ my_industrial_nodes ◀── semantic card: meaning · unit · safe range · recipe window
323
- │ daq_query ◀── TSDB history, stats + physical semantics
324
- │ dcw_control ──▶ interlock (safe range ∩ recipe window)
325
- │ ──▶ HITL approval (manual mode, 180 s timeout)
326
- │ ──▶ PLC write → readback check → ACK + write history
327
- ◀── result text with numbers the agent can cite
328
- ```
329
-
330
- ---
331
-
332
- ## Quick start
333
-
334
- ### Prerequisites
335
-
336
- ```bash
337
- node -v # ≥ 23.4.0 (needs built-in node:sqlite)
338
- ```
339
-
340
- > Real-agent harnesses require their CLI on PATH — `omp`, `codex`, `dsh`, `opencode`, `gemini`, `qwen`, `copilot`, `cursor`, `crush`, `goose`, `pi` or `hermes` (any subset; each channel can mix harnesses). `mock` and `claude` (SDK) run in-process and need no PATH CLI. The dashboard "execution engines" panel shows per-engine readiness with a green/grey dot; entries for uninstalled engines link to their official install pages. Optional DAQ infrastructure (MQTT broker + TimescaleDB) auto-starts via Docker when reachable (`docker compose up -d`).
341
-
342
- ### Option A — install from npm (recommended)
343
-
344
- ```bash
345
- npm install -g agentworkshop # → `aw` / `agentworkshop` on PATH
346
- aw start # → http://localhost:3001
347
- ```
348
-
349
- The published tarball ships a **prebuilt production bundle** (`.output/`), so an npm install boots straight away — no build step, no build tools. On first launch everything initializes into the config root **`~/.AgentWorkShop`**: the default `config.yml`, a generated `.env` holding a random session secret, `runtime-settings.json`, a docker-compose seed, `prompts/`, `commands/`, `plugins/` (seeded from the SDK examples, **disabled** by default) and an empty `data/` directory. All runtime data (SQLite, JSON repos, backups, logs) lives there too — config and data stay with the install, not the working directory.
350
-
351
- Prefer a one-off run without installing globally?
352
-
353
- ```bash
354
- npx agentworkshop start # no global npm install required
355
- ```
356
-
357
- > `npx` still creates `~/.AgentWorkShop` — running without a global install is not the same as leaving no trace on disk.
358
-
359
- ### Option B — from source
360
-
361
- ```bash
362
- git clone https://github.com/kingdol666/AgentWorkShop.git && cd AgentWorkShop
363
- pnpm install
364
- pnpm dev # → http://localhost:3000 (port from config.yml)
365
- ```
366
-
367
- Production from source:
368
-
369
- ```bash
370
- pnpm build # nuxt build → .output/
371
- pnpm start # port from config.yml → server.prod.port
372
- ```
373
-
374
- > In a source checkout the config root is the project's **`.AgentWorkShop/`** folder (runtime overrides, data, project-level commands), while `config.yml` / `.env` stay at the checkout root, version-controlled as the factory defaults.
375
-
376
- ### Updating
377
-
378
- ```bash
379
- aw update # check + self-update the global install
380
- aw update --check # only report; nothing is installed
381
- npm install -g agentworkshop@latest # manual equivalent
382
- ```
383
-
384
- Releases follow semver. `aw start` verifies the config root on every launch and migrates the legacy pre-`home` `data/` layout into it (newest file wins), so data survives upgrades. SQLite schema migrations run server-side at boot. Current version: **v0.7.65** — see [Releases](https://github.com/kingdol666/AgentWorkShop/releases).
385
-
386
- ### Your first agent × line session (~2 minutes)
387
-
388
- 1. **Sign in** — register in the sidebar (or `POST /api/users/register`).
389
- 2. **Build a line** — `Line Operations` → create a line, add DAQ nodes (e.g. `daq-temp-tc`) and control nodes (e.g. `dcw-temp-sp`), create a product + recipe, hit **Start**. Live values start flowing.
390
- 3. **Create a team** — `Agent Workshop` → pick a lead + workers, **deploy** into a channel.
391
- 4. **Bind nodes** — open the agent's detail panel → bind the DAQ node (*auto*) and the control node (*manual* = needs your approval).
392
- 5. **Submit the goal** — *"Analyze the last 5 minutes of melt temperature; if deviation from 182 °C exceeds 1 °C, correct the setpoint (wait for my approval)."*
393
- 6. **Approve** — the agent reads real history, computes the mean, requests the write → approve in the HITL panel → watch the setpoint change and the goal close with a numeric report.
394
-
395
- ---
396
-
397
- ## Configuration & CLI — config-driven by design
398
-
399
- One runtime, one source of truth. **`config.yml`** declares defaults; **`runtime-settings.json`** inside the config root carries runtime overrides; environment variables and CLI flags sit on top. Every editable key is described once in `shared/config/schema.json` (type, range, enum, live-vs-restart) and surfaced through the same descriptors in **both the UI and the CLI**.
400
-
401
- ```
402
- config.yml (defaults) < .AgentWorkShop/runtime-settings.json (runtime) < env vars / CLI flags
403
- ```
404
-
405
- The config root is **`~/.AgentWorkShop`** for a global install (`npm i -g`) — wherever you run `aw` from — and **`<repo>/.AgentWorkShop`** in a source checkout (with `config.yml` / `.env` staying at the checkout root as version-controlled factory defaults). `AW_HOME` redirects it; `AW_MODE=home` forces the global shape.
406
-
407
- ### Live settings, persisted, hot-reloaded
408
-
409
- - The **Settings → Runtime config** tab renders every editable key from the descriptors — change server ports, theme, API timeouts, locale or the approval gate, hit save.
410
- - `live` keys apply instantly (theme, title, timeouts, approval gate, DAQ sampling cadences, TSDB query buckets…) over a server-sent event stream — no reload, no restart.
411
- - `restart` keys (ports, hosts) persist to disk and take effect on the next launch of the matching mode (`aw dev` / `aw start`).
412
- - One channel for every writer: the UI, the CLI and the server's file watcher all converge on the same settings file, so a change made anywhere shows up everywhere.
413
-
414
- Example — retune the acquisition and query cadences live:
415
-
416
- ```bash
417
- aw config set daq.sampling.defaultIntervalMs 2000 # new nodes sample every 2 s
418
- aw config set daq.sampling.minIntervalMs 500 # per-node floor (create/patch clamp)
419
- aw config set daq.query.defaultBucketMs 3000 # TSDB reads default to a 3 s bucket
420
- aw config set daq.query.minBucketMs 500 # query floor (samples/line query/agent tool)
421
- ```
422
-
423
- Agent tool descriptions are re-rendered with the current values on every injection, so an LLM always sees the floor and default that will actually apply to its `daq_query` calls.
424
-
425
- ### The `aw` CLI
426
-
427
- | Command | What it does |
428
- |---|---|
429
- | `aw start · aw dev · aw build` | Production server / dev server / build — ports from the effective config; first `start` builds once |
430
- | `aw stop` | Stop a running `aw` service instance via the single-instance lock |
431
- | `aw config list · get · set · unset · reset` | Read & write runtime settings (validated against the schema, atomic writes) |
432
- | `aw plugin list · create · enable · disable` | Manage plugins across all three scopes: inspect, scaffold (project scope; `--global` for user scope), enable/disable (state file, ~1 s hot reload on the running server) |
433
- | `aw mcp` | Industrial MCP stdio server (38 tools over the platform REST: lines, recipes, DCW writes, parameter mapping, DAQ, channels, teams, model promotion, plugins) — auto-discovers the running instance; `--doctor` diagnoses discovery/health/auth, `--print-config` emits a ready-to-paste MCP client config |
434
- | `aw home` | Inspect / initialize the config root `.AgentWorkShop` |
435
- | `aw init <dir>` | Scaffold a runnable project (full config system + CLI included) |
436
- | `aw register <path\|url\|npm:pkg>` | Register a new command — project-local or `--global` |
437
- | `aw update` | Check npm for the latest release and self-update the global install |
438
- | `aw doctor` | Environment + project health check (node, config, ports, keys) |
439
- | `aw status` | Live overview: mode, config sources, running server, command table |
440
- | `aw tui` | Terminal workbench: channel/agent management, task submission, live monitor pane, HITL answering (see [`docs/tui.md`](./docs/tui.md) · [`tui/README.md`](./tui/README.md)) |
441
- | `aw version` | Print the CLI/package version (alias `v`) |
442
-
443
- Global flags: `--help/-h` · `--version/-v` · `--json` (machine-readable) · `--root <dir>` · `--debug`.
444
-
445
- Exit codes: **0** success · **1** runtime error · **2** usage error. With `--json`, failures come back as an envelope carrying `{ ok: false, error: 'unknown-command' \| 'no-project' \| 'usage' \| 'internal' \| … }`, so automation can branch without parsing stderr.
446
-
447
- ### Command registration
448
-
449
- Commands are plain modules exporting `{ meta, run }`. Drop one into a scanned directory and it's live on the next invocation — no registry bookkeeping, convention over configuration:
450
-
451
- | Scope (highest wins) | Directory |
452
- |---|---|
453
- | project | `<root>/.AgentWorkShop/commands/` |
454
- | user | `~/.AgentWorkShop/commands/` |
455
- | built-in | packaged with the CLI (`cli/commands/`) |
456
-
457
- `aw register <file|url|npm:pkg>` copies a command into the right scope (`--global` for user scope); `aw help` lists everything that's registered.
458
-
459
- ```js
460
- // ~/.AgentWorkShop/commands/hello.mjs
461
- export const meta = { name: 'hello', group: 'Custom', summary: 'Say hi', usage: 'aw hello [--name <n>]' }
462
- export async function run(argv, ctx) {
463
- console.log(`Hi ${argv.flags.name ?? 'AW'} — mode: ${ctx.mode}`)
464
- }
465
- ```
466
-
467
- ---
468
-
469
- ## The industrial stack in detail
470
-
471
- ### Data acquisition (DAQ)
472
-
473
- - **Six protocol drivers**: Modbus TCP, Modbus RTU-over-TCP (serial gateway), OPC UA, MQTT, HTTP/REST, plus the **serial-bridge built-in plugin** (direct RS-232/485: Modbus RTU framing + ASCII line protocol, write side with same-address readback verification, serial enumeration/probe API and a frontend panel) — connection pools, classified error messages, per-driver connection tests; the driver registry accepts plugin-registered protocols of any kind (with self-describing metadata, the frontend forms render with zero changes).
474
- - **Per-node edge runtimes**: independent sampling cadence, publish cadence, in-flight mutex per node — one slow driver never blocks its neighbors. Sampling and query defaults/floors are driven by the live `daq.sampling.*` / `daq.query.*` settings.
475
- - **Pipeline**: driver → queue (in-process or MQTT, offline buffer on disconnect) → consumer with out-of-order defense → three-way fan-out: WS live push (gated), TSDB batch write, device-twin writeback.
476
- - **Robustness**: TSDB single-in-flight writes with bounded retries, buffer backpressure with drop counters, real loss metrics exposed on `daq.controller` frames.
477
- - **Alarms**: recipe-scoped monitoring windows with **2% hysteresis + 3-tick debounce**; alarm/offline transitions are instant (safety first).
478
- - **Querying is batch-scoped by default**: `daq_query` resolves the node's **active run** and filters by that batch's `run_id` + `recipe_id`, so an agent reading evidence always sees *the recipe currently running* — never a mix of the previous batch. The effective scope (`run=<id> 配方「name」(recipe_id)`) is printed in the result header and restated per node at the end, and the same ids can be fed straight back into `daq_query` or `aml_dataset_build`; pass `scope: 'all'` (or an explicit `recipe_id` / `run_id` / `product_id`) for cross-recipe comparison and history review. Lines that are not running stay unfiltered, so historical data remains queryable.
479
-
480
- ### Write control (DCW)
481
-
482
- - Engineering-unit writes: `linear` calibration (scale/offset) PLC↔physical, **readback verification** with deadband tolerance, ACK states and write history.
483
- - **Interlock**: with a line running, the active recipe's parameter window *replaces* the node's global safe range for that node.
484
- - **HITL**: `manual`-mode bindings suspend the write for user approval (deduped per agent+node; re-validation at approval time — permission is re-checked when you click approve).
485
-
486
- ### Recipe & batch
487
-
488
- `Line → Product → Recipe → Run`. Starting a run applies recipe params node-by-node (each write verified), gates acquisition per line, and tags every sample with `line/product/recipe/run` — per-product data isolation with five-dimension queries (line × product × recipe × time × node).
489
-
490
- ### AML — auto-modeling lab
491
-
492
- The modeling half of the loop: `/aml` builds **datasets** out of tagged telemetry, submits **training jobs** to a `uv`-managed Python runtime, ranks runs on a **leaderboard**, and promotes a model only when it clears the configured **gates** (NRMSE, rollout NRMSE, validation/test gap, minimum rows and runs). Promoted models are referenced by id, so an MPC or shadow-twin controller can consume a versioned artifact instead of a vague "latest".
493
-
494
- - Agents do the same work through 14 tools (`aml_dataset_build`, `aml_job_submit`, `aml_job_status`, `aml_leaderboard`, `aml_model_promote`, `aml_model_find`, `aml_training_plan_*`, …) — submit a goal and let the team train and report.
495
- - The Python runtime bootstraps itself with `uv` into an `./aml` asset root inside the config root; dataset/artifact/metadata paths, disk quota, job timeout, concurrency and retention are all **settings** (16 in the `aml` group), not constants.
496
- - Governance defaults are conservative: cross-recipe datasets are refused unless explicitly allowed, and every job is attributed.
497
- - **Hybrid twin × MPC core**: AML also owns the *hybrid twin* plane — `SceneContract` / `PhysicsModelManifest` / `TwinSnapshot` / `ObjectiveProfile` / `VirtualTrial` / `RecommendationCertificate` on top of a grey-box physics core with a bounded PyTorch residual, UQ/OOD screening and all-trajectory hard-constraint gates. Channels opt in through the `hybrid_twin` profile, which injects twelve profile agent tools (`twin_provider_catalog`, `twin_scene_discover/compile/freeze`, `twin_physics_spec_draft/validate/compile`, `twin_scene_read`, `twin_snapshot_create`, `twin_trial_run`, `mpc_optimize`, `twin_gate_evaluate`) plus the general `twin_calibration_request`; a trial is *virtual* by design (`candidateExecuted=false`) and a recommendation is only certified when gates and benefit pass. Server-side strategies are `safe_small_step` (insufficient data) and `precise_search` (model cleared gates). Plan + acceptance record: [`docs/aml-hybrid-twin-mpc-integration-plan.md`](./docs/aml-hybrid-twin-mpc-integration-plan.md), [`docs/aml-hybrid-twin-implementation-acceptance.md`](./docs/aml-hybrid-twin-implementation-acceptance.md).
498
- - **Any-scene modeling loop**: the loop is not tied to a bundled scene. Bind nodes → `twin_scene_discover` infers control/state/disturbance/target/guard semantics with evidence → `twin_scene_compile` drafts a `SceneContract` → you confirm → `twin_scene_freeze` freezes it (immutable versions) → `twin_physics_spec_draft` proposes a skeleton PhysicsSpec (one first-order relaxation equation per state, τ/gain as calibratable prior-boxed parameters) that you refine → validate/compile (whitelisted AST, no arbitrary code) → `aml_job_submit { job_kind: 'hybrid_residual' }` runs without any code: the built-in reference trainer calibrates physics parameters (stage A), fits a 3-member bounded residual ensemble (stage B) and reports conformal q90 coverage (stage D) — the calibrated spec is written back and shared by evaluation, prediction and trials.
499
- - **Model-backed twin & continuous calibration**: `twin_trial_run` / `mpc_optimize` accept a `model_id` — the rollout is then driven by the trained hybrid model (calibrated physics + residual-ensemble ONNX, `ModelBackedHybridProvider`) with UQ coverage and member disagreement coming from training artifacts, and a dataset whose line/product/recipe doesn't match the scene is rejected (`TWIN_MODEL_SCENE_MISMATCH`). Calibration requests are consumed by a 60 s worker that re-submits `hybrid_residual` retraining *candidates* automatically; promotion still goes through HITL + Twin Gate (`AML_TWIN_WORKER_DISABLED=1` turns the worker off).
500
- - **Two-mode optimization loop**: `aw` ships two channel templates — `chtpl-aml-training-default` (modeling face: 22 tools, no plant writes, no MPC) and `chtpl-aml-optimization-default` (acting face: snapshot/trial/gate/MPC/Bayesian search plus `optimization_explore`, the governed micro-write that pairs every setpoint with its response read-back in an `optimization_explorations` ledger). The faces are mutually exclusive per channel; optimization channels instantiate either in **exploration** mode (governed small steps, no model required) or **aml** mode (`boundModelId` required — a gate-cleared model must be bound before the acting face unlocks).
501
- - **Twin provider plugin SDK (hot-loaded)**: an industrial scene's physics core / scene packs / objectives / solvers register through `ctx.twin` into the **Twin Provider Registry** (`registerPhysicsProvider` / `registerScenePack` / `registerObjectiveProfile` / `registerTrainingAdapter` / `registerSolverAdapter`, plus `listProviders` / `getProviderHealth` / `resolveProvider` / `validateProvider` / `retireProvider` / `isRegistryAvailable`). Twin tools resolve providers via `SceneContract.physicsProfileId` (falling back to the bundled `twin-injection-default`), so **swapping scenes changes neither tools nor channels**; a hot reload stages a new **generation** and drains the old one while trials and MPC hold leases, so in-flight work is never invalidated and `retireProvider` only unloads at zero references. The bundled injection provider ships through that same external contract (`server/plugins-builtin/twin-injection-default/`), and plugins live in the usual scopes with no restart for disable/reload. Field tables and a runnable example: [`docs/plugins.md`](./docs/plugins.md) → "Hybrid-twin provider plugins"; SDK surface: [`docs/sdk.md`](./docs/sdk.md) §4.10.
502
-
503
- ---
504
-
505
- ## Usage
506
-
507
- ### Authentication
508
-
509
- Email + password login issues a **bearer token** (multiple tokens per user, individually revocable).
510
-
511
- ```bash
512
- # register
513
- curl -X POST http://localhost:3000/api/users/register \
514
- -H 'content-type: application/json' \
515
- -d '{"email":"you@example.com","password":"secret","name":"you"}'
516
-
517
- # every workshop call
518
- curl http://localhost:3000/api/workshop/channels \
519
- -H 'authorization: Bearer <token>'
520
- ```
521
-
522
- ### Line-level permissions
523
-
524
- Industrial data is gated **per production line** with three states, managed by an admin
525
- in the built-in **Permissions** page (`/permissions`, admin-only in the sidebar):
526
-
527
- | State | DAQ nodes | DCW (write) nodes | Visibility |
528
- | --- | --- | --- | --- |
529
- | **none** (default for regular users) | hidden | hidden | line data withheld server-side — invisible in Line Ops, DAQ center and the digital twin |
530
- | **read-only** | read | ✕ | line visible, values stream, no writes / dispatch / device binding |
531
- | **operate** | read | read + write | full access incl. setpoint writes, dispatch, binding |
532
-
533
- - `admin` / `editor` roles are unrestricted (operations roles).
534
- - Regular users **default to none** — they see no line data until granted.
535
- - Enforcement lives in the data plane: list endpoints filter by grant, write/dispatch
536
- endpoints return a human-readable 403, and Agent↔node bindings validate the line grant
537
- (DAQ needs read-only+, DCW needs operate).
538
- - Plugins get the same surface via `ctx.permissions` (`lineMode` / `visibleLineIds` /
539
- `listGrants` / `setGrants`) plus a `permissions:changed` lifecycle hook; the SDK REST
540
- client exposes `client.permissions.overview()` / `client.permissions.set(...)`.
541
-
542
- ### Execution modes
543
-
544
- Prefix the task description (or pick in the composer UI):
545
-
546
- | Mode | Semantics | Config |
547
- |---|---|---|
548
- | `goal` | lead decomposes → workers deliver → **lead judges satisfaction**; unmet → more subtasks; met → parent completes. | `goalCriteria` |
549
- | `loop` | replay the same task on a fixed interval. | `intervalMs` (default 60000), `maxIterations` (default ∞) |
550
- | `pipeline` | ordered stages; stage N+1 consumes stage N's output. | `stages: [{name, description, assigneeId?}]` |
551
-
552
- ### Scheduled tasks
553
-
554
- Any task can also be attached to a **schedule** so a channel keeps working when nobody is watching:
555
-
556
- | Aspect | Behavior |
557
- |---|---|
558
- | Modes | `interval` — fixed cadence (`intervalMs`, 60 s floor) · `daily` — once per day at `HH:MM` local time |
559
- | Management | `/workshop/schedules` page, or `POST/PATCH /api/workshop/schedules` |
560
- | Guard rails | busy-guard (a fire is deferred while the channel still has active tasks), per-run history with status, and a **consecutive-failure circuit breaker** (`maxConsecutiveFailures`) that auto-disables a misbehaving schedule |
561
- | Typical use | nightly line patrol (`daq_query` + report to memory), periodic drift check with auto-judge, daily KPI digest |
562
-
563
- ```bash
564
- # create a schedule: patrol the line every 30 minutes
565
- curl -X POST http://localhost:3000/api/workshop/schedules \
566
- -H 'authorization: Bearer <token>' -H 'content-type: application/json' \
567
- -d '{"channelId":"<id>","name":"line-patrol","title":"Line patrol","description":"Read all DAQ nodes on line 1 and post a drift summary to channel memory.","mode":"interval","intervalMs":1800000}'
568
- ```
569
-
570
- ### The four entry points
571
-
572
- | Entry | Endpoint | Audience |
573
- |---|---|---|
574
- | **WS** | `/api/workshop/ws?channelId=…` | Dashboards / UI — AEP v1 envelopes, per-channel monotonic `seq`, 5000-event ring, `lastSeq` resume, snapshot fallback. |
575
- | **MCP** | in-process server, ~25 tools | Agents (omp host tools) — management + job-face tools, channel-scoped. |
576
- | **A2A** | `POST /api/workshop/a2a/:agentId/rpc` | External agents — JSON-RPC 2.0, `AgentCard` at `/card`, `tasks/sendSubscribe` SSE. |
577
- | **REST** | `/api/workshop/**` | Humans / scripts — full management face. |
578
-
579
- ### Task state machine
580
-
581
- ```
582
- SUBMITTED ─▶ ASSIGNED ─▶ WORKING ─▶ WAITING ─▶ COMPLETED
583
- │ │ │ │
584
- └────────────┴───────────┴──▶ CANCELED / FAILED ─▶ (retry ≤ 3 or cancel)
585
- ```
586
-
587
- ---
588
-
589
- ## Verified end-to-end
590
-
591
- Every claim above is backed by a suite you can re-run. The acceptance suites drive a
592
- **production instance over real simulated plant protocols** (Modbus TCP/RTU, OPC UA, MQTT,
593
- HTTP + an MQTT/Timescale pipeline) with real engine CLIs, and assert on the database,
594
- the event stream and the HTTP API — not on mocks. Two 2026-09-24 waves are archived:
595
- the baseline matrix (~1100+ real assertions, v0.7.45 production build, isolated `AW_HOME`,
596
- real browser) in [`docs/audit/e2e-2026-09-24-full-coverage.md`](./docs/audit/e2e-2026-09-24-full-coverage.md),
597
- and the follow-up feature wave (real **PLC node simulator** + injection-molding AgentTeam
598
- closed loop, FIFO multi-goal, scheduled tasks, collaboration, ~1400+ assertions in total)
599
- in [`docs/audit/e2e-2026-09-24-all-features.md`](./docs/audit/e2e-2026-09-24-all-features.md).
600
-
601
- | Suite | Latest result | What it covers | Reproduce |
602
- |---|---|---|---|
603
- | `real-injection-closed-loop.mjs` | **2 goals COMPLETED / 0 failed** (2026-09-24, real PLC simulator + real `omp` team) | injection line provisioned from the simulator (11 DCW + 14 DAQ nodes) → real AgentTeam lead/analyst/optimizer → governed writes with a **65.8 s gap ≥ 60 s policy** → DAQ re-measurement → `qualityOk`, verdict `keep` | `AW_BASE=<base> SIM_BASE=http://127.0.0.1:4010 AW_TOKEN=<token> node scripts/real-injection-closed-loop.mjs` |
604
- | `_run-real-injection-fifo-goals.mjs` | exit 0 (2026-09-24) | **FIFO root queue with multi-task serialization**: goal 2 dispatched only after goal 1 closed, role gate flip, two governed writes 65.04 s apart, two judged records, 4-anchor ledger | `AW_BASE=<base> SIM_BASE=… AW_TOKEN=<token> node scripts/_run-real-injection-fifo-goals.mjs` |
605
- | `e2e-plc-plugin-closedloop.mjs` | core stages A–D all green (2026-09-24) | PLC simulator supply over Modbus 16040 → DAQ cross-check (AW sample 197 vs simulator register 197.37) → HITL closed-loop write to 3 zones (registers 40021/40023/40025 = 210, verified write-through) → `dcw_judge` keep; plugin stages E–H need the external diagnosis service and are reported as SKIP | `AW_BASE=<base> KB_BASE=http://127.0.0.1:8771 AW_E2E_USERS_DB=<home>/data/users.sqlite node scripts/e2e-plc-plugin-closedloop.mjs` |
606
- | `_dbg-schedule-e2e.mjs` | **35 / 0** (2026-09-24) | scheduled tasks: plan CRUD + validation, `next_run_at`, `scheduledCount`, busy guard **409 CHANNEL_BUSY**, in-flight duplicate **409 SCHEDULE_RUNNING**, cancel reconciliation (run FAILED + failure counters), **timer auto-fire** (`trigger_kind=timer`), disable/enable state machine, 404 after delete | `SCHED_E2E_BASE=<base> node scripts/_dbg-schedule-e2e.mjs` |
607
- | `e2e-crash-cycle.mjs` | **5 / 5 phases** (2026-09-24) | watch → hard kill → persistence check → restart → redelivery → auto-resume → consumption-gap replay, each phase in its own process | `node scripts/e2e-crash-cycle.mjs --port 3300 --home .e2e-home-full` |
608
- | `e2e-full-closedloop.mjs` | **98 / 0** (2026-09-24, v0.7.45 production build) | 11 stages: registration → line/product/recipe modeling → DAQ sampling → frame pipeline → DCW write + readback → rollback ledger → agent-node authorization → bridge privilege boundaries → plugins → data-root isolation | `node scripts/e2e-full-closedloop.mjs <base>` |
609
- | Protocol matrix, real protocols | **46 / 0** (2026-09-24) | MQTT · Modbus TCP · Modbus RTU · OPC UA · HTTP — acquisition, governed write + readback, recipe-window interlock and a real agent closed loop per protocol | `node scripts/_dbg-protocol-matrix.mjs` |
610
- | Production API live | 60 / 0 (2026-09-24) | persistence across restart, template CRUD, task assign/complete/cancel/loop/pipeline, A2A + mailbox, WS broadcast, MCP endpoint, cascade delete | `AW_E2E_TOKEN=<token> node scripts/api-live-e2e.mjs` |
611
- | AgentTeam chat + native HITL | 112 passed / 0 failed / 1 blocked (2026-09-24, real `omp`) | group-chat request → trackable job; `omp` native ask → HITL approval → engine resumes with the receipt | `node scripts/e2e-agentteam-chat.mjs --phase=all` |
612
- | Terminal mirror + prompt composition | **26 / 0** and **16 / 0** (2026-09-24, real `omp`) | terminal mirror frames, `input`/`abort`/`ui_response` injection, native `ask` round-trip; five-section prompt assembly (scenario → profile → memory → manual → assignment) observed on the wire | `node scripts/test-terminal-e2e.mjs` · `node scripts/test-prompt-system.mjs` |
613
- | Real-engine collaboration | task-flow real **PASS**, `e2e-omp-workspace` **13 / 13**, group-chat real **PASS**, multi-user HIL **PASS** (2026-09-24) | real `omp` lead + workers: decomposition, dispatch, progress, artifacts, workspace-scoped file reads, unload; multi-user HITL visibility; multi-harness team 14/18 (omp + dsh green) | `npx tsx scripts/e2e-agentteam-task-flow-real.ts` · `npx tsx scripts/e2e-omp-workspace.ts` |
614
- | Front-end acceptance | responsive gate **16 / 16** routes, nav drawer **10 / 10** (2026-09-24, real Chromium) | every product page incl. the 3D town renders at the gate thresholds; drawer interaction, scroll lock, route change, zero page errors | `node scripts/ui/verify-responsive.mjs --routes all` · `node scripts/ui/verify-nav.mjs` |
615
- | `_aw0746-stage12.mjs` | **10 / 0** (2026-09-25, globally installed **v0.7.49 packaged build**) | health gate (version=0.7.49) → admin login/role surface → channel creation with a real `omp` lead → group chat opened → **real omp reply** → omp child process visible in monitoring | `AW_BASE=<base> node scripts/_aw0746-stage12.mjs` |
616
- | `_aw0746-stage34.mjs` | **13 / 0** (2026-09-25, v0.7.49 packaged build + PLC simulator) | line provisioned from the simulator (11 DCW + 14 DAQ) → product/recipe triple → **every sample tagged with recipe_id/run_id** while running → `daq_query` **defaults to the active batch** (`scope=all` opts out, measured 1 vs 4) → Hybrid Twin template instantiated (lead + 3 workers, 6 twin tools injected, 57 total) | `AW_BASE=<base> node scripts/_aw0746-stage34.mjs` |
617
- | `_aw0746-stage6b-train-sweep.mjs` | gates **all green** (2026-09-25, v0.7.46 packaged build, real torch training) | 1 s grid dataset (**1724 rows / 10 runs**) → inline-code job trained for real → G1 one-step **0.0992** (≤0.10) / G2 rollout 0.1092 (≤0.25) / G3 generalisation 14.6% (≤20%) / G4 rows+runs → model registered and **promoted to production** | `AW_BASE=<base> AW_DATASET_ID=<ds> node scripts/_aw0746-stage6b-train-sweep.mjs` |
618
- | `_aw0746-stage7-twin.mjs` | **17 / 0** (2026-09-25, v0.7.49 packaged build, real DAQ + real model) | real samples → TwinSnapshot `fresh=true` → 65 real VirtualTrials (12 safe candidates, `candidateExecuted=false`) → 12-check recommendation gate **write_eligible** → verdict written back to the model as `twinEligibility` → `mpc_optimize` upgrades to **precise_search** → **0 DCW writes** throughout | `AW_BASE=<base> AW_REQUIRE_MODEL=1 node scripts/_aw0746-stage7-twin.mjs` |
619
- | `_aw0746-stage6c-jobsmoke.mjs` | **5 / 0** (2026-09-25, v0.7.49 packaged build) | AML job path: inline `code` accepted (no `workspace/train.py` required) → job reaches a terminal state → training logs/ONNX traces → experiment plus per-check gates persisted | `AW_BASE=<base> node scripts/_aw0746-stage6c-jobsmoke.mjs` |
620
- | `_aw0748-failclosed-probe.mjs` | **7 / 0** (2026-09-25, v0.7.49 packaged build) | hard-constraint **fail-closed** regression: `auto_daq` builds a snapshot from real bindings → a mappable `weight` constraint evaluates normally → an unmappable `part_weight` constraint is judged not passed with a precise detail (v0.7.47 passed it falsely) → an empty trajectory is also judged not passed | `AW_BASE=<base> node scripts/_aw0748-failclosed-probe.mjs` |
621
- | `_aw0748-mock-closedloop.mjs` | **13 / 0** (2026-09-25, v0.7.49 packaged build, in-process `mock`, no quota) | scheduler closed-loop regression: create a mock channel → the root task is genuinely dispatched and closed → `[mock:complex]` forces delegation into child tasks → the parent closes after they finish → **the second and third root tasks are dispatched too** (before the fix the lead was unloaded while idle, `cr.scheduler` became null and later root tasks only landed in the DB, sitting in SUBMITTED until `ROOT_TIMEOUT`) → the tool bridge explicitly rejects host tools for mock | `AW_BASE=<base> node scripts/_aw0748-mock-closedloop.mjs` |
622
- | Industrial bench — integrated | **83 / 83 checks, hard gate green** (2026-09-21) | five-protocol five-line bench: connectivity, sampling into Timescale, governed writes, governance, agent closed loop, semantic parameter layer | `node bench/pipeline.mjs --profile integrated` |
623
- | Multi-scenario closed loop | 4 scenarios · closed loops reached (2026-09-21) | injection-molding weight-window tuning · A²/O wastewater compliance with energy minimum · continuous-annealing quality window vs throughput · BOPET line mission | `node bench/scenarios.mjs --scenarios injection,wwtp,anneal` |
624
- | Line permissions / audit-negative | 21 / 21 + 9 / 9 (2026-09-12) | three-state line grants with human-readable 403s, binding-subject validation, revocation convergence, unauthenticated WS receives zero telemetry | `node scripts/_dbg-perms-e2e.mjs <base> <adminPass>` · `node scripts/_dbg-audit-neg-e2e.mjs <base> <adminPass>` |
625
- | Render regression | 30 / 30 (2026-09-12) | DAQ table integrity (row count aligned with the API), WS-driven row updates, filters, detail page, 3D town + model library, 7-page smoke, zero page errors | `node scripts/_dbg-render-regression.mjs <base> <email> <pass>` |
626
- | AML auto-modeling | 25 / 0 (2026-09-24, deterministic trainer) | dataset build → cross-recipe refusal → job submit → gates → promotion guards → prediction guards → audit; `--real` adds the uv/torch runtime | `node node_modules/tsx/dist/cli.mjs --tsconfig .nuxt/tsconfig.server.json scripts/e2e-aml.ts` |
627
- | Offline unit/property suites | all green | AEP event index (`test-events-index`), LRU, data-root split (`test-data-root`), log flooding, rollback index, plugin hardening, task lease fencing (`test-task-lease-fencing`), CLI exit codes (`test-cli-exit`), SDK surface (`test-sdk-surface`) | `node scripts/test-<name>.mjs` (TS suites via tsx) |
628
-
629
- The historical **v0.7.20** acceptance baseline — *156 assertions, 0 failures* — is archived in
630
- [`docs/audit/e2e-2026-09-07.md`](./docs/audit/e2e-2026-09-07.md). Perf probing:
631
- `scripts/_dbg-render-perf.mjs`.
632
-
633
- ---
634
-
635
- ## Project layout
636
-
637
- ```
638
- AgentWorkShop/
639
- ├── bin/ · cli/ # aw CLI — command registry · built-in commands · config engine
640
- ├── app/ # Nuxt 4 frontend (srcDir)
641
- │ ├── pages/ # / · /workshop · /workshop/agents · /workshop/teams
642
- │ │ # /workshop/channel-templates · /workshop/schedules · /workshop/w/:id
643
- │ │ # /town · /daq · /daq/:id · /dcw · /dcw/:id
644
- │ │ # /aml · /operations · /monitor · /logs · /permissions
645
- │ │ # /plugins · /users · /tokens · /settings
646
- │ ├── components/workshop/ # timeline · lanes · task board · memory panel · 3D town
647
- │ └── stores/composables/ # Pinia + AEP client
648
- ├── server/
649
- │ ├── api/ # REST + WS + A2A + MCP routes
650
- │ ├── services/workshop/
651
- │ │ ├── runtime/ # manager · scheduler-loop · task-engine · memory · mailbox
652
- │ │ ├── agents/ # AgentInterface: 14 engines (+ industrial tools)
653
- │ │ ├── daq/ dcw/ aml/ # edge runtimes · drivers · bus · storage · modeling lab
654
- │ │ └── db/ # repos over node:sqlite
655
- │ ├── mcp/ # MCP server (25 tools, in-process workshop face)
656
- │ ├── plugins-builtin/ # plugins shipped with the package (serial-bridge · rag-bridge · diag-bridge · twin-injection-default)
657
- │ └── plugins/ # runtime assembly (singletons)
658
- ├── mcp/ # aw mcp — zero-dependency stdio MCP gateway (38 tools, instance auto-discovery)
659
- ├── sdk/ # agentworkshop/sdk — plugin context, hook bus, REST client, browser SDK
660
- ├── tui/ # terminal workbench (aw tui)
661
- ├── shared/
662
- │ └── config/ # schema.json (119 setting descriptors) + engine (merge/validate/persist) + path resolver
663
- ├── config.yml # factory defaults (read at build/start; version comes from package.json)
664
- ├── .AgentWorkShop/ # config root in a checkout — prompts (versioned) + runtime overrides · data · logs · commands (git-ignored)
665
- ├── data/ # legacy pre-migration location (auto-migrated into the config root)
666
- └── scripts/ # launchers · home bootstrap · E2E · verification suites
667
- ```
668
-
669
- ## Tech stack
670
-
671
- | Layer | Tech |
672
- |---|---|
673
- | Framework | [Nuxt 4](https://nuxt.com) + Nitro (WebSocket) |
674
- | UI | Vue 3.5 · Pinia · Ant Design Vue · UnoCSS · Three.js · ECharts |
675
- | Language | TypeScript 5.7 across the stack; `shared/` used by both sides |
676
- | CLI | Node ESM CLI with a pluggable command registry (`bin/aw.mjs`) |
677
- | Persistence | `node:sqlite` (zero native deps) + FTS5 + optional `sqlite-vec`; TimescaleDB for time-series |
678
- | Validation | `zod` at every message boundary |
679
- | Interop | `@modelcontextprotocol/sdk` · A2A (JSON-RPC 2.0) · AEP v1 (in-house WS protocol) |
680
- | Field bus | `modbus-serial` · `node-opcua` · `mqtt` |
681
-
682
- ## Development
683
-
684
- ```bash
685
- pnpm dev # dev server (port from effective config)
686
- pnpm cli … # the CLI in-repo: pnpm cli config list
687
- pnpm tui # terminal workbench against a running instance
688
- pnpm build && pnpm start
689
- pnpm typecheck # wrapper: prepare → strip the stale volar entry → vue-tsc -b
690
- pnpm lint
691
- pnpm test:api-live # API suite against a running server
692
- node scripts/e2e-full-closedloop.mjs # full closed loop (server must be running)
693
- node scripts/e2e-crash-cycle.mjs # crash → restart → redelivery, manages its own instance
694
- node scripts/test-sdk-surface.mjs # SDK export-surface guard
695
- ```
696
-
697
- > Two test-runner notes worth knowing before you debug a red suite: (1) `pnpm typecheck`
698
- > runs [`scripts/typecheck.mjs`](./scripts/typecheck.mjs) rather than bare `nuxt typecheck`,
699
- > because Nuxt 4.5 still writes the `vue-router/volar/sfc-route-blocks` compiler plugin into
700
- > the generated tsconfig while vue-router 4.6 no longer exports it — bare vue-tsc dies while
701
- > loading the config, so the check never actually ran; (2) TypeScript suites that import real
702
- > route handlers (e.g. `scripts/e2e-memory-system.ts`) need the pure-node path
703
- > `node --experimental-transform-types --import ./scripts/_audit/ts-register-hook.mjs <suite>.ts`,
704
- > which maps the Nuxt `#imports` virtual module onto a shared-config stub.
705
-
706
- The docs site lives in `docs/site/` (VitePress) and is deployed to GitHub Pages by
707
- [`.github/workflows/deploy-docs.yml`](./.github/workflows/deploy-docs.yml):
708
-
709
- ```bash
710
- cd docs/site && npx vitepress dev # preview locally
711
- cd docs/site && npx vitepress build # production build → .vitepress/dist
712
- ```
713
-
714
- The workflow syncs `docs/{cli,plugins,sdk}.md` (and their `.en.md` twins) into the site before
715
- building, so those files are the single source of truth for the single-page guides.
716
-
717
- ## Deployment (production)
718
-
719
- Target shape: **single instance on an intranet host, TLS terminated by a reverse proxy**.
720
- The server intentionally ships no TLS listener of its own — put caddy/nginx in front (they
721
- also give you HTTP→HTTPS redirect, access logs and a second rate-limit layer).
722
-
723
- ```bash
724
- # 1) build + run (prod entry refuses to boot without .output)
725
- pnpm build
726
- NUXT_SESSION_PASSWORD=$(node -e "console.log(require('crypto').randomBytes(24).toString('hex'))") \
727
- PORT=3000 node scripts/start.mjs
728
- ```
729
-
730
- **TLS reverse proxy.** caddy (automatic certificates, WebSocket pass-through built in):
731
-
732
- ```caddy
733
- aw.example.com {
734
- reverse_proxy 127.0.0.1:3000
735
- }
736
- ```
737
-
738
- nginx (note the WebSocket `Upgrade` headers — the workbench, HITL panels and live logs are all WS-driven):
739
-
740
- ```nginx
741
- server {
742
- listen 443 ssl;
743
- server_name aw.example.com;
744
- # ssl_certificate / ssl_certificate_key ...
745
- location / {
746
- proxy_pass http://127.0.0.1:3000;
747
- proxy_http_version 1.1;
748
- proxy_set_header Upgrade $http_upgrade;
749
- proxy_set_header Connection "upgrade";
750
- proxy_set_header Host $host;
751
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
752
- proxy_read_timeout 300s;
753
- }
754
- }
755
- ```
756
-
757
- After the whole site is HTTPS-only, enable `security.hstsEnabled` (runtime settings) so
758
- responses carry `Strict-Transport-Security`.
759
-
760
- **Process supervision.** `scripts/start.mjs` already spawns the server as a child with
761
- crash back-off restart, a 30 s health probe and a heap-watermark proactive restart — put
762
- *that* under a service manager so the supervisor itself survives reboots:
763
-
764
- ```ini
765
- # /etc/systemd/system/agentworkshop.service
766
- [Service]
767
- WorkingDirectory=/opt/agentworkshop
768
- Environment=NUXT_SESSION_PASSWORD=<generated-secret>
769
- Environment=PORT=3000
770
- ExecStart=/usr/bin/node scripts/start.mjs
771
- Restart=always
772
- User=aw
773
- [Install]
774
- WantedBy=multi-user.target
775
- ```
776
-
777
- On Windows use `nssm install AgentWorkShop "C:\Program Files\nodejs\node.exe" scripts\start.mjs`.
778
- Do **not** run a second instance against the same config root — a single-instance lock
779
- (`.runtime/aw.lock` with heartbeat) makes the newer process take over and the older one exit.
780
-
781
- **Auth hardening for production.** `security.allowRegistration` defaults to **false**:
782
- with the first admin in place both register endpoints return 403, accounts are created by
783
- an admin, and admin-created accounts are flagged `mustChangePassword` — the workbench
784
- forces a password change at first login (admin password resets flag it again and revoke
785
- all existing sessions). The bootstrap path is unaffected: with zero users the first
786
- registered account still becomes the admin.
787
-
788
- **Backups and restore.** `server/plugins/backup.ts` snapshots, every 24 h (keep 7) into
789
- `<config root>/.AgentWorkShop/data/backups/`:
790
-
791
- - the three SQLite databases (`workshop/users/daq-timeseries.sqlite`, WAL-checkpointed, atomic rename)
792
- - all JSON stores plus `config.yml` / `runtime-settings.json` (`files-<stamp>/`)
793
- - local object store + exports `daq-objects/` and `daq-exports/` (`objects-<stamp>/`) —
794
- skipped with a log line when larger than `AW_BACKUP_OBJECTS_MAX_MB` (default 200 MB)
795
- - a `manifest-<stamp>.json` per run; TimescaleDB/MinIO **docker volumes are not covered** —
796
- back those up with `pg_dump` / `mc mirror` or volume snapshots
797
-
798
- Restore drill (do it once before go-live): stop the server → copy `backups/` aside →
799
- rebuild a data directory from the newest `*.bak` + `files-*` + `objects-*` bundles →
800
- start → check `/api/health`, admin login, lines/recipes present. `BACKUP_DISABLED=1`,
801
- `BACKUP_INTERVAL_HOURS` and `BACKUP_KEEP` tune the job.
802
-
803
- **Production checklist.** generated `NUXT_SESSION_PASSWORD` (boot refuses known dev
804
- secrets) · `security.allowRegistration=false` (default) · TLS via reverse proxy + HSTS ·
805
- service manager installed · restore drill passed · `/api/health` + `/api/metrics` wired
806
- into monitoring · `AW_HEAP_LIMIT_MB` sized for the host · `AW_RATE_LIMIT_OFF` **unset**
807
- (the built-in rate guard must stay on) · `AW_BENCH_MODE` **unset** (write-control
808
- interlocks and rate limits must stay fully engaged).
809
-
810
- **The benchmark switch `AW_BENCH_MODE=1` is for experiments only — never in
811
- production.** It serves the `bench/` paper pipeline (E1a four-arm ablation). When set
812
- to 1: the API rate guard is disabled entirely; online-exploration rate limits (per-step
813
- limit, 60 s minimum write interval, write-hold window) are waived wholesale; the write
814
- endpoint accepts an `x-aw-bench-arm` header to bypass soft interlock layers
815
- (no-interlock / no-readback / ungated; hard range and structural checks cannot be
816
- bypassed by design). The only correct production value is **unset**: the code compares
817
- strictly `=== '1'`, so the default is always the full arm. The flag is read at module
818
- load — confirm it is absent **before** the process starts (a misconfiguration warns at
819
- boot). `AW_RATE_LIMIT_OFF=1` only disables the API rate guard (write-control interlocks
820
- stay on) and must likewise remain unset in production.
821
-
822
- ## Research paper
823
-
824
- The platform's governance mechanisms are documented in a submission-ready manuscript —
825
- **"Grading Machine-Originated Plant Writes: Separately Inspectable Evidence for Industrial
826
- Agent Teams"** (IEEE Transactions on Industrial Informatics, anonymous review draft,
827
- 10 pages, IEEEtran). Source, compiled PDF and the five-seat review trail live in
828
- [`paper/tii/SUBMISSION-IEEE-TII/`](./paper/tii/SUBMISSION-IEEE-TII/). Every mechanism
829
- claim in the paper is backed by archives in this repository:
830
-
831
- - [`docs/benchmarks/`](./docs/benchmarks) — the October 2026 deployment-scale regression
832
- campaign: 7 pipeline executions, 600 checks, zero failed (per-run `report.md` /
833
- `benchmark.json` / `timeline.jsonl`), plus the admission-ablation companion run;
834
- - [`docs/experiments/`](./docs/experiments) — cast-film closed-loop experiment plan and
835
- results (the paper's Q3 deterministic loop);
836
- - [`docs/audit/`](./docs/audit) — acceptance waves (~1400+ real assertions) referenced
837
- by the evaluation section.
838
-
839
- Re-run the paper pipeline locally: set `AW_BENCH_MODE=1` and follow
840
- [`bench/PIPELINE.md`](./bench/PIPELINE.md).
841
-
842
- ## Roadmap
843
-
844
- | Capability | Status |
845
- |---|---|
846
- | Channel runtime, lead orchestration, 7-state task engine | Shipped |
847
- | Four entry points: WS (AEP v1) · MCP · A2A · REST | Shipped |
848
- | Persistent memory (FTS5 + optional vector hybrid) | Shipped |
849
- | Industrial stack: DAQ · DCW write control · lines/recipes/runs | Shipped |
850
- | Agent ↔ node binding + HITL approval + interlock | Shipped |
851
- | 3D digital-twin town · line operations UI · dashboards | Shipped |
852
- | Full-feature live E2E (agent reads/writes a real line, 23 checks) | Shipped |
853
- | Runtime configuration system: settings persistence · hot reload · settings UI | Shipped |
854
- | `aw` CLI: config · start/dev · init · register · doctor | Shipped |
855
- | Multi-harness registry: omp · codex · dsh · opencode subprocess engines | Shipped |
856
- | Six field protocols: Modbus TCP · Modbus RTU-over-TCP · OPC UA · MQTT · HTTP + the built-in serial-bridge plugin (acquisition + write control) | Shipped |
857
- | Harness availability probing + dispatch-time engine checks (UI disable + 409) | Shipped |
858
- | Recipe versioning with attribution + non-destructive rollback (UI + agent tools) | Shipped |
859
- | Recipe-chain optimization loop: recipe_trial batch trials (no version) → adopt on progress → unified rollback with PLC restore | Shipped |
860
- | Channel-bound lines: read-only log/recipe/status access for all members, line brief injected into prompts | Shipped |
861
- | Agent self-audit: line_context / ops_log / recipe_log / recipe_versions / dcw_journal | Shipped |
862
- | Multi-harness parallel live E2E on a real protocol line (four engines, one line) | Shipped |
863
- | HITL approval flow verified over real OPC UA writes | Shipped |
864
- | Bilingual docs (简体中文 / English) with VitePress language switcher | Shipped |
865
- | Per-channel LLM provider/model selection from live harness catalogs | Shipped |
866
- | Configurable DAQ/TSDB cadences (sampling & query defaults + floors, live) | Shipped |
867
- | Team-scoped plugin switches (create-time pick + team dialog, per-channel tool injection) | Shipped |
868
- | Plugin hot management: `/plugins` page + `aw plugin list/enable/disable` | Shipped |
869
- | Rendering perf pass (v0.7.27): DAQ main-thread blocking −90%, twin −69%, adaptive quality restored to top tier; `window.__townStats` instrumentation | Shipped |
870
- | Plugin system v2: browser panel injection, plugin-scoped settings/groups, plugin i18n, host runtime services (`ctx.services`/`ctx.daq`/`ctx.omp`) | Shipped |
871
- | Instrument Glass material layer (v0.7.36): three-tier translucent materials, vibrancy, specular edges, spring motion, per-page route transitions | Shipped |
872
- | Realtime pipeline optimizations: DAQ frame indexing O(n²)→O(n), incremental per-agent event index, chart in-place updates, size-aware JSON persistence | Shipped |
873
- | AML auto-modeling lab: dataset build · job orchestration (uv-managed Python) · leaderboard · promotion gates · 14 agent tools | Shipped |
874
- | Claude Agent SDK adapter — resident sessions with same-turn steer and `canUseTool` HITL | Shipped |
875
- | Semantic parameter mapping: `param_control`/`param_read` by process parameter, four-layer write bound, tuning loop (`dcw_judge`/`dcw_rollback`) | Shipped |
876
- | Channel group chat: requests become trackable jobs; native HITL (`omp` ask → approval → receipt) | Shipped |
877
- | Scheduled tasks: `interval` / `daily`, per-run history, busy-guard + consecutive-failure circuit breaker | Shipped |
878
- | Root task queue (FIFO, visible queue positions) + assignment generation & execution-lease fencing | Shipped |
879
- | Supervision watchdog + harness continuity (`persistent`/`per_turn`, session-reuse lease with restart reasons) | Shipped |
880
- | Channel process memory: deterministic event contracts, canonical root summary, durable outbox + compensation worker | Shipped |
881
- | Runtime observability: `GET /api/system/monitor` team metrics, each with a documented rollback switch | Shipped |
882
- | Industrial bench: integrated profile (83 checks, hard gate) + multi-scenario closed loops (injection / wwtp / anneal / BOPET) + quality-target optloop | Shipped |
883
- | Full-coverage acceptance wave matrix on a production build (~1100+ real assertions, 2026-09-24) | Shipped |
884
- | Twin provider plugin SDK: hot-loadable physics/scene/objective/training/solver providers via `ctx.twin`, generation-staged reload with lease draining, bundled provider shipped through the same external contract | Shipped |
885
- | Any-scene hybrid-twin modeling loop: scene discover → compile → freeze → physics-spec draft/validate/compile → reference-trainer job (physics calibration + residual ensemble + conformal UQ), model-backed trials, continuous-calibration worker | Shipped |
886
- | Two-mode optimization loop: dedicated `aml-training` / `aml-optimization` channel templates, mutually exclusive tool faces, exploration ↔ production modes with governed read-back-paired micro-writes | Shipped |
887
- | Line operations feed: `/operations` page + workshop-console panel, nine-category operation timeline, structured write diffs, closed-loop phase inference | Shipped |
888
- | External MCP gateway: `aw mcp` stdio server (38 tools), instance auto-discovery, `mcp.enabled` runtime gate | Shipped |
889
- | Configurable system timezone (`time.timeZone`, live) + recipe `stepLimit` per-parameter single-step bound + recipe `description` metadata | Shipped |
890
- | Production hardening: TLS, MQTT auth, OPC UA sign+encrypt defaults, structured audit log | Planned |
891
- | Edge deployment shape: standalone edge-agent + central broker | Planned |
892
- | Alarm outbound delivery (email/webhook) + ack workflow | Planned |
893
- | CI pipeline (typecheck + lint + e2e) — docs deployment already runs on GitHub Actions | Planned |
894
- | License: Apache 2.0 (permissive, commercial & production use allowed) | Shipped |
895
-
896
- ## License
897
-
898
- AgentWorkShop is an independent project and is **not an official product of Anthropic** or any LLM vendor. It integrates with agent harnesses (e.g. `omp`) through their public interfaces.
899
-
900
- **AgentWorkShop is open-source software, licensed under the [Apache License 2.0](./LICENSE).**
901
-
902
- - **Permitted** — personal study, research, hobby projects, teaching, and use by noncommercial organizations (charities, education, public research, government).
903
- - **Not permitted without prior written permission** — any **commercial use**: selling, paid services, integrating into commercial products, or production use serving a business. Commercial licenses are available from the copyright holder.
904
- - **When you redistribute** the software, you must pass through the `Required Notice` line and these terms.
905
-
906
- For commercial licensing, contact: [GitHub @kingdol666](https://github.com/kingdol666) · kingdol6080@gmail.com
907
-
908
- <div align="center">
909
-
910
- <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
911
- <picture>
912
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date&theme=dark" />
913
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" />
914
- <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" width="80%" />
915
- </picture>
916
- </a>
917
-
918
- </div>
919
-
920
- ---
921
-
922
- ## Contributing
923
-
924
- Issues and pull requests are welcome. Before opening a PR:
925
-
926
- 1. **Read the contract you are touching** — [`docs/plugins.md`](./docs/plugins.md) for the extension surface, [`docs/sdk.md`](./docs/sdk.md) for the programming client, [`docs/cli.md`](./docs/cli.md) for the command registry.
927
- 2. **Run the guards locally**:
928
-
929
- ```bash
930
- pnpm typecheck # vue-tsc across app + server + shared
931
- pnpm lint # eslint 9, zero warnings expected
932
- node scripts/e2e-full-closedloop.mjs # full closed loop, server must be running
933
- node scripts/test-sdk-surface.mjs # SDK export surface must not drift
934
- node scripts/check-docs-sync.mjs # docs/site pages stay in sync with docs/*.md
935
- ```
936
-
937
- 3. **Keep commits conventional** — `commitlint` runs on `commit-msg` (`feat:`, `fix:`, `docs:`, `refactor:`, `perf:`, `test:`, `chore:`), and `lint-staged` fixes staged JS/TS/Vue on commit.
938
- 4. **Add a test for behavior you change.** The repo leans on live E2E scripts under `scripts/` rather than mocks — a new industrial path should be provable against a running instance.
939
-
940
- > [!TIP]
941
- > `aw doctor` checks your environment end to end (Node version, config root, port availability, SQLite, optional Docker services) before you file a bug — it answers most "it does not start" reports immediately.
942
-
943
- ## Security
944
-
945
- Please **do not** open a public issue for a vulnerability. Report it privately through [GitHub Security Advisories](https://github.com/kingdol666/AgentWorkShop/security/advisories/new) with a reproduction and the affected version.
946
-
947
- AgentWorkShop drives real equipment when you point it at real equipment: review `config.yml` interlocks, safe ranges and HITL settings before connecting a live PLC. The default posture is advisory — writes are interlocked, approved and read back — but the plant-side logic is always the final veto.
948
-
949
- ---
950
-
951
- <div align="center">
952
-
953
- **If this project is useful to you, a ⭐ helps other people find it.**
954
-
955
- <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
956
- <picture>
957
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date&theme=dark" />
958
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" />
959
- <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" width="80%" />
960
- </picture>
961
- </a>
962
-
963
- <br />
964
-
965
- **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Guide](https://kingdol666.github.io/AgentWorkShop/guide/getting-started)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)** · **[CLI](./docs/cli.md)** · **[中文](./README-zh.md)**
966
-
967
- <sub>Built with Nuxt 4 · Vue 3 · TypeScript · <code>node:sqlite</code> — supervisory layer, second-level soft real-time.<br />
968
- Time-critical loops stay in the PLC.</sub>
969
-
970
- </div>
1
+ <div align="center">
2
+
3
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/hero.png" alt="AgentWorkShop — agent teams driving a real production line" width="100%" />
4
+
5
+ <br />
6
+
7
+ # AgentWorkShop
8
+
9
+ **Where AI agent teams meet the production line.**
10
+
11
+ [![npm version](https://img.shields.io/npm/v/agentworkshop?logo=npm&logoColor=white&label=npm&color=CB3837)](https://github.com/kingdol666/AgentWorkShop)
12
+ [![npm downloads](https://img.shields.io/npm/dm/agentworkshop?logo=npm&logoColor=white&label=downloads&color=CB3837)](https://github.com/kingdol666/AgentWorkShop)
13
+ [![GitHub release](https://img.shields.io/github/v/release/kingdol666/AgentWorkShop?logo=github&label=release&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/releases)
14
+ [![Stars](https://img.shields.io/github/stars/kingdol666/AgentWorkShop?logo=github&label=stars&color=35e0a0)](https://github.com/kingdol666/AgentWorkShop/stargazers)
15
+ [![Last commit](https://img.shields.io/github/last-commit/kingdol666/AgentWorkShop?logo=git&logoColor=white&label=last%20commit)](https://github.com/kingdol666/AgentWorkShop/commits)
16
+ [![Issues](https://img.shields.io/github/issues/kingdol666/AgentWorkShop?logo=github&label=issues)](https://github.com/kingdol666/AgentWorkShop/issues)
17
+ [![License](https://img.shields.io/badge/license-Apache%202.0-8A2BE2?logo=apache&logoColor=white)](./LICENSE)
18
+
19
+ [![Nuxt 4](https://img.shields.io/badge/Nuxt-4-00DC82?logo=nuxt&logoColor=white)](https://nuxt.com)
20
+ [![Vue 3.5](https://img.shields.io/badge/Vue-3.5-42B883?logo=vuedotjs&logoColor=white)](https://vuejs.org)
21
+ [![TypeScript 5.7](https://img.shields.io/badge/TypeScript-5.7-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org)
22
+ [![Node ≥ 23.4](https://img.shields.io/badge/Node.js-%E2%89%A5%2023.4-3C873A?logo=nodedotjs&logoColor=white)](https://nodejs.org)
23
+ [![SQLite node:sqlite](https://img.shields.io/badge/SQLite-node%3Asqlite-003B57?logo=sqlite&logoColor=white)](https://nodejs.org/api/sqlite.html)
24
+ [![Modbus · OPC UA · MQTT · HTTP](https://img.shields.io/badge/field%20bus-Modbus%20%C2%B7%20OPC%20UA%20%C2%B7%20MQTT%20%C2%B7%20HTTP-41c8f4?logo=siemens&logoColor=white)](./docs/site/guide/daq-protocols.md)
25
+ [![Plugins](https://img.shields.io/badge/plugins-hot%20reload-8b5cf6?logo=puzzle&logoColor=white)](./docs/plugins.md)
26
+ [![Docs](https://img.shields.io/badge/docs-VitePress%20%C2%B7%20%E4%B8%AD%2FEN-ffd75e?logo=vitepress&logoColor=black)](https://kingdol666.github.io/AgentWorkShop)
27
+ [![PRs welcome](https://img.shields.io/badge/PRs-welcome-ff69b4?logo=git&logoColor=white)](https://github.com/kingdol666/AgentWorkShop/pulls)
28
+
29
+ **[简体中文](./README-zh.md)** · **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Releases](https://github.com/kingdol666/AgentWorkShop/releases)** · **[Changelog](./changelog.md)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
30
+
31
+ <sub><b>v0.7.70</b> · 14 engines · 6 field protocols (5 built-in + serial plugin) + MES REST integration (mirror & live) · data-analysis ledger with line-scoped permissions · per-call tool parameter/binding preflight · 86 host tools · 119 runtime settings · bilingual docs (简体中文 / English)</sub>
32
+
33
+ <br />
34
+
35
+ *A configuration-driven platform where **AI agent teams** and an **industrial digital twin** share one runtime — agents query real telemetry, issue supervisory setpoints through human-approved write control, and every event streams live to a 3D twin.*
36
+
37
+ </div>
38
+
39
+ > [!IMPORTANT]
40
+ > **Positioning: supervisory layer.** AgentWorkShop is a *supervisory* (SCADA-adjacent) layer for production-line management, digital twins, DAQ and agent orchestration, operating at **second-level soft real-time**.
41
+ > It is **not** a hard real-time controller: any time-critical loop (**< 10 ms**, interlocks, safety, servo) **must live inside the PLC**. Setpoints written here are advisory — plant-side logic may veto.
42
+
43
+ ---
44
+
45
+ <table>
46
+ <tr>
47
+ <td width="33%" valign="top">
48
+
49
+ **FIGURE INDEX**
50
+
51
+ `FIG.01` closed loop ·<br/>
52
+ `FIG.02` DAQ console ·<br/>
53
+ `FIG.03` line operations ·<br/>
54
+ `FIG.04` digital twin ·<br/>
55
+ `FIG.05` dashboard ·<br/>
56
+ `FIG.06` responsive
57
+
58
+ </td>
59
+ <td width="33%" valign="top">
60
+
61
+ **JUMP TO**
62
+
63
+ [What is this?](#what-is-this) · [Highlights](#highlights)<br/>
64
+ [Interface](#the-interface) · [Architecture](#architecture)<br/>
65
+ [Quick start](#quick-start) · [Configuration & CLI](#configuration--cli--config-driven-by-design)<br/>
66
+ [Industrial stack](#the-industrial-stack-in-detail) · [Usage](#usage)<br/>
67
+ [Verification](#verified-end-to-end) · [Project layout](#project-layout)<br/>
68
+ [Tech stack](#tech-stack) · [Development](#development)<br/>
69
+ [Roadmap](#roadmap) · [License](#license)
70
+
71
+ </td>
72
+ <td width="33%" valign="top">
73
+
74
+ **AT A GLANCE**
75
+
76
+ Supervisory layer, second-level soft real-time<br/>
77
+ 14 engines · 4 entry points<br/>
78
+ 6 field protocols (5 built-in + serial plugin, read + write)<br/>
79
+ 7-state task machine · root queue + lease fencing<br/>
80
+ Group chat jobs · scheduled tasks · HITL<br/>
81
+ FTS5 + vector memory · hot-reloadable plugins<br/>
82
+ SDK · CLI · TUI · external MCP · ~1100+ acceptance assertions
83
+
84
+ </td>
85
+ </tr>
86
+ </table>
87
+
88
+ ---
89
+
90
+ ## Documentation
91
+
92
+ Docs are bilingual — the [VitePress site](https://kingdol666.github.io/AgentWorkShop) ships a language switcher (简体中文 / English) across every section. Deep-dive pages ship in this repo too, and the CLI copies them into the published tarball:
93
+
94
+ | Topic | Online | In-repo | What it covers |
95
+ |---|---|---|---|
96
+ | **Getting started** | [Guide](https://kingdol666.github.io/AgentWorkShop/en/guide/getting-started) | `docs/site/en/guide/` | install → first run → first agent × line session, configuration, DAQ protocols, DCW read/write, HITL, recipe versioning, multi-harness teams, line permissions, AML |
97
+ | **Plugin development** | [Plugin guide](https://kingdol666.github.io/AgentWorkShop/en/plugins/) | [`docs/plugins.en.md`](./docs/plugins.en.md) | the full extension contract: three scopes, `index.mjs` manifest, `ctx` server/browser surface, `settings`/`groups` declarations, lifecycle events, i18n, panels, team-scoped switches, a real example |
98
+ | **SDK** | [SDK guide](https://kingdol666.github.io/AgentWorkShop/en/sdk/) | [`docs/sdk.en.md`](./docs/sdk.en.md) | `agentworkshop/sdk` as a programming client (platform REST client with envelope handling) and as the plugin extension base; TypeScript types; browser-side SDK |
99
+ | **CLI** | [CLI manual](https://kingdol666.github.io/AgentWorkShop/en/cli/) | [`docs/cli.en.md`](./docs/cli.en.md) | all 15 `aw` commands, global options, exit codes, dual-mode path model, the command-registration system, maintainer publish guide |
100
+ | **AML** | [AML guide](https://kingdol666.github.io/AgentWorkShop/en/guide/aml) | [`docs/aml.md`](./docs/aml.md) | auto-modeling lab: dataset build, job orchestration, model registry, promotion gates, agent tools |
101
+ | **TUI** | — | [`docs/tui.md`](./docs/tui.md) · [`tui/README.md`](./tui/README.md) | terminal workbench: channels, agents, tasks, live monitor, HITL answering |
102
+ | **Multi-harness architecture** | — | [`docs/multi-harness-architecture.md`](./docs/multi-harness-architecture.md) | engine taxonomy, normalized session contract, provider/model catalog, failure modes |
103
+
104
+ ---
105
+
106
+ ## What is this?
107
+
108
+ AgentWorkShop started as a **multi-agent software workshop** — channels of coding agents with a lead-agent scheduler, a 7-state task machine, persistent memory, and four interoperable entry points (WebSocket / MCP / A2A / REST).
109
+
110
+ It grew an **industrial half**: a full data-acquisition and write-control stack (Modbus TCP / OPC UA), production lines with recipes and batch runs, a 3D digital-twin town, an **auto-modeling lab** (dataset → training job → leaderboard → gated promotion) — and the bridge that makes it unique: **agents can be granted bound, permission-scoped access to real industrial nodes**, query their live telemetry with physical semantics attached, and drive write operations through an interlock → human-in-the-loop → readback pipeline.
111
+
112
+ It is also **extensible by design**: a self-contained plugin can enhance the server (hooks, routes, agent tools, DAQ drivers, config groups) and the browser (panels, i18n) at the same time, and the same surfaces are available to ordinary programs through the SDK — see [`docs/plugins.md`](./docs/plugins.md) and [`docs/sdk.md`](./docs/sdk.md).
113
+
114
+ The result: submit a goal like *"analyze the melt temperature trend and optimize the setpoint"* — and an agent team reads real sensor history, computes statistics, proposes a new setpoint, waits for your approval in the HITL panel, writes it to the PLC, verifies the readback, and reports the numbers back. **End to end, verified by automated E2E.**
115
+
116
+ <div align="center">
117
+
118
+ ### FIG.01 — The closed loop
119
+
120
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-01-closedloop.gif" alt="An agent team reads live telemetry, proposes a setpoint, waits for approval, writes to the PLC and verifies the readback" width="88%" />
121
+
122
+ <sub><b>Goal → read → compute → approve → write → readback → report.</b><br/>
123
+ Recorded against a running instance: real DAQ history, real write control, real HITL approval.</sub>
124
+
125
+ </div>
126
+
127
+ > [!NOTE]
128
+ > Every figure in this README is a recording or screenshot of a **running** instance — not a mockup. The numbers on screen come from seeded industrial data flowing through the same code paths the product ships.
129
+
130
+ <div align="center">
131
+
132
+ ### 🎬 Live demo (4 min 11 s, English voice-over & captions)
133
+
134
+ <a href="https://github.com/kingdol666/AgentWorkShop/blob/main/docs/site/public/demo/agentworkshop-demo.mp4"><img src="docs/site/public/demo/poster.jpg" alt="AgentWorkShop live demo: DAQ console, governed write + read-back, serial protocol plugin, agent team execution, closed-loop trend and the 3D digital twin" width="86%" /></a>
135
+
136
+ <sub><b>Click the cover to watch the full demo.</b> Real PLC simulator, real serial-port enumeration, real agent-team execution — no cuts, no fakes.<br/>Scenes: dashboard → live DAQ → governed write & read-back → serial protocol plugin → agent team execution → closed-loop trend → 3D digital twin.</sub>
137
+
138
+ </div>
139
+
140
+ ---
141
+
142
+ ## Highlights
143
+
144
+ #### Agent team runtime
145
+
146
+ | Capability | Why it matters |
147
+ |---|---|
148
+ | **Lead-agent orchestration** | Each channel has one lead: decomposes goals, dispatches to idle workers, reassigns failures, judges goal satisfaction. LLM decisions with a deterministic rule-engine fallback — the system never stalls. |
149
+ | **Three execution modes** | `goal` (satisfaction judging) · `loop` (fixed-interval replay) · `pipeline` (ordered stages). 7-state task machine with progress, artifacts and full history. |
150
+ | **Harness-agnostic** | One `AgentInterface`, **14 engines** in three transport classes: **in-process** — `mock` (no LLM), `claude` (Claude Agent SDK, resident session, same-turn steer); **persistent session over a protocol** — `omp` (RPC subprocess), `codex` (app-server JSON-RPC), `dsh` / `qwen` / `hermes` (ACP), `opencode` (serve + HTTP/SSE); **headless CLI with a structured event stream** — `gemini` (stream-json), `copilot` (JSONL), `cursor` (stream-json), `crush` (non-interactive run), `goose` (stream-json), `pi` (`-p --mode json`). The platform never knows which one runs. |
151
+ | **Per-channel LLM selection** | Each channel picks a **harness → provider → model (+effort)** triple from the harness's live catalog (e.g. `zhipu-coding-plan/glm-5.3-flash` on omp). Members inherit it unless they override — mixing harnesses in one team is a first-class setup, not a workaround. |
152
+ | **Harness availability check** | `GET /api/workshop/harnesses` probes each engine's CLI on PATH. The UI disables not-installed engines, and dispatch is hard-checked at every entry point. |
153
+ | **Stall-safe supervision & task governance** | Submitted goals enter a **FIFO root queue** with visible queue positions. Queued roots **never burn their execution budget while waiting** — the budget starts at admission, and a deterministic **lead-rescue sweep** revives starved entries (stopped/idle lead runtime + fresh assignment) before a human ever notices. A **supervision watchdog** distinguishes *stuck* from *slow* — agent tool invocations count as liveness, so healthy long-running industrial work survives while genuinely stalled tasks surface to the lead. Every assignment carries a **generation + execution lease**, so events from a superseded worker are dropped by admission, not reconciled by hope. |
154
+ | **Harness continuity** | Engines declare a continuity mode (`persistent` / `per_turn`); persistent sessions are reused across turns under a read-only continuity lease (pid / session / reuse count / last restart reason), and a server restart restores what can be restored instead of silently re-forking. |
155
+ | **Channel group chat & native HITL** | The channel timeline is a real group chat: a member's request becomes a **trackable job** (not a lost message), and engines with a native ask surface (e.g. `omp`) route HITL questions through the platform — approve once, the engine continues with the receipt. Member permissions and notifications are first-class. |
156
+ | **Scheduled tasks** | Any channel task can run on a **schedule** — fixed `interval` (60 s floor) or `daily` at a set time — managed from `/workshop/schedules` or the REST API, with per-run history, busy-guard (no overlapping runs of the same schedule) and channel-scoped visibility. |
157
+ | **Persistent memory & channel process memory** | Private + channel-shared domains; FTS5 with CJK segmentation, optional vector hybrid recall, token-budgeted injection. On top sit **process memories**: deterministic root/child/lead event contracts, a canonical root summary, and a durable outbox (dead-letter + compensation worker) so the story of a goal survives restarts. |
158
+ | **Four entry points** | One manager behind every door: **WS** (AEP v1 event stream with seq-resume), **MCP** (25 in-process tools), **A2A** (JSON-RPC 2.0 + AgentCard), **REST**. |
159
+
160
+ #### Industrial stack
161
+
162
+ | Capability | Why it matters |
163
+ |---|---|
164
+ | **Six field protocols** | Modbus TCP, Modbus RTU-over-TCP (serial gateway), OPC UA, MQTT and HTTP/REST, plus a **built-in serial plugin** (direct RS-232/485: Modbus RTU + ASCII line) — acquisition **and** write-control drivers with connection pools, classified error messages and per-driver connection tests. `mock` covers demos/CI. Protocols are plugins: `ctx.daq.registerDriver` / `ctx.dcw.registerWriteDriver` inject straight into the frontend protocol dropdown and dynamic forms (⌁ badge) — when a protocol ships self-describing metadata, the frontend forms render with zero changes. |
165
+ | **Agent teams, industrial scope** | Agents bind to DAQ/DCW nodes and see semantic cards — physical meaning, units, safe range, recipe window — never raw registers. |
166
+ | **Human-approved write control** | DCW writes flow through **safe-range ∩ recipe-window** interlock → optional **HITL approval** → PLC write → **readback verification** → signed write history. |
167
+ | **Read-write DCW channels** | Every control node also **reads its PLC value back** through the same calibration path it writes with: periodic + on-demand + agent reads surface **SET vs ACT** side by side — passive observation, never blocked by write interlocks. |
168
+ | **Recipe versioning & governance** | Parameter changes are versioned with attribution (user/agent/system + operator + reason). Roll back to any revision or the last-good batch — non-destructively. Stale-node params are skipped and clearly marked. |
169
+ | **Recipe-chain optimization loop** | Agents optimize through recipe management, the way human process engineers do: `recipe_trial` batch-dispatches multi-parameter candidates **without writing a version** → re-measure → progress adopts via `recipe_update` (same recipe id, version +1) → regression triggers a **unified rollback** (`recipe_rollback` with `dispatch: true` = definition revert + batch restore to the PLC). Single-knob direct dispatch is out of the loop; trials run under four-layer bounds and a per-line cadence. |
170
+ | **Channel-bound lines (read-only grant)** | A channel can bind a line: every member reads that line's ops logs, recipe history and live status without any node binding (tool outputs are tagged "channel-bound, read-only"), while writes still require node authorization. The line brief is injected into member prompts; binding changes hot-recycle member runtimes. |
171
+ | **Data-analysis ledger (v0.7.62)** | Agents persist analysis results as first-class records: native `analysis_save` / `analysis_query` host tools write a dedicated `analysis_reports` table keyed by line + recipe + time window, with conclusions, metrics, data sources and actor attribution. The ledger is append-only for agents; humans revise via REST with editor attribution. A dedicated `/analysis` page streams new reports live (ops-log WS), filters by line / recipe / time / keyword, and edit/delete are permission-gated (`operate` line mode; admin-only delete). External analysis plugins integrate through the same ledger — `diag_run` runs IDD analyses in the background across **six intents** (deep root-cause diagnosis, line stability report, quick screening, DOE analysis, tuning-experience mining, optimization campaign — scenario prompts injected per intent), returns a `task_id` immediately, tracks progress via `diag_status`, and the finished report lands in the ledger via `analysis_save`. |
172
+ | **Semantic parameter surface & tuning loop** | Every dispatchable write converges on the **recipe face** (`recipe_update` / `recipe_apply` / `recipe_trial`, each gated by binding → HITL reason → active-run). Writes stay narrowed by the **four-layer bound** — node safe range ∩ parameter baseline bounds ∩ active product bounds ∩ active recipe window — and each adjustment opens a tuning record that `dcw_judge` must close (keep / rollback / uncertain), with `dcw_rollback` executing the undo. (v0.7.63 removed the legacy `param_control` / `param_read` / `dcw_read` direct-node tools — dead surface under permission model v2 — so the agent tool list stays clean.) |
173
+ | **Line operations** | Lines → products → recipes → batch runs. Recipe windows gate acquisition and interlock writes; every sample is tagged `product/recipe/run` for per-batch isolation. |
174
+ | **MES REST integration (two data paths)** | Production-management data joins the same governed workspace: a `mes-rest` node maps the MES API's catalog / current / history endpoints through **declarative request maps** (auth via `secretRef` → env token, never plaintext; hooks can post-process ingested data). Agents read it two ways — **live**: `mes_fetch` issues the mapped request and returns the API response (large windows paginate async into a `mesds-*` CSV dataset read via `mes_datasets` / `mes_dataset_read`; raw rows never enter the prompt); **mirrored**: an `http` DAQ node polls the same API into the local TSDB so `daq_query` serves it like any native node — and keeps serving it when the API is down. `mes_catalog` is line-scoped and fail-closed. |
175
+ | **Multi-modal DAQ frame pipeline** | Multi-point profiles (thickness/scanner) and CCD image frames flow through template sink pipelines: vectors & metadata into Timescale (`daq_frames`), pixels into object storage (MinIO, auto disk fallback); derived-metric thresholds ride the existing alarm chain. |
176
+ | **Production hardening (v0.7.58)** | Hold-heartbeat lifecycle fixed — failed writes never occupy the setpoint (no phantom re-dispatch), driver/connection/line changes clear the value, line stop suspends hold automatically; silent mock fallback blocked (unknown protocols fail loudly, plugin unload can't fake success); frame pixel sha256 fingerprints + day-directory object GC (DB cross-check before delete); Timescale daily chunks + columnstore compression (TSL); heap-watermark watch with crash/liveness/watermark auto-respawn; write-hold windows & trial cadence persisted across restarts; runtime grant re-checks include the channel-bound line (revocation takes effect everywhere). |
177
+ | **Agent self-audit tools** | `line_context`, `ops_log`, `recipe_log`, `recipe_versions`, `dcw_journal` — agents see exactly which line/product/recipe they control, who did what, and how every value changed. |
178
+
179
+ #### Governance, configuration & extension
180
+
181
+ | Capability | Why it matters |
182
+ |---|---|
183
+ | **Line-level permissions** | Industrial data is gated **per production line** with three states (none / read-only / operate), enforced in the data plane — regular users see no line data until granted. |
184
+ | **Per-call tool preflight (v0.7.66)** | Every industrial tool call is checked before its handler runs: parameter shape, plus reference membership for `node_id` / `line_id` / `recipe_id` / `dataset_id` and chained dataset/job/model/plan/scene ids (resolved through lineage). References must fall inside the caller's bound face (bound nodes ∪ channel-bound line read-only ∪ nodes on a bound recipe's line). Out-of-scope calls are rejected with the caller's bound face and a concrete next step; authorization denials are audited. |
185
+ | **Full-operation audit log** | Every user / agent / system action lands in one queryable log; operators are attributed to "Channel/Member", distinct from users and the system. Streamed live over WS. |
186
+ | **Team-scoped plugin switches** | Each team (channel) keeps an **independent plugin switch set** (`channel_plugins`): a disabled plugin's tools are not injected into that team's agents. Plugins themselves are hot-managed via `aw plugin` and the `/plugins` page. |
187
+ | **Plugin extension API** | A self-contained directory under `plugins/<name>/` enhances **both halves at once**: `index.mjs` (server: hooks, routes, agent tools, **DAQ read drivers / DCW write drivers**, frame processors, node templates, config groups, KV, timers) and `client.mjs` (browser: panels injected into named slots, i18n, settings UI). Three scopes — `builtin` (shipped) > `project` (checkout) > `user` (`~/.AgentWorkShop`) — with ~1 s hot reload on enable/disable **and on code edits**; a disabled plugin's drivers are removed on hot reload immediately. Built-in example: **serial-bridge** (serial communication: read/write drivers, serial probe API, frontend panel). Full contract in [`docs/plugins.md`](./docs/plugins.md). |
188
+ | **AML — auto-modeling lab** | Dataset build → training job → leaderboard → promotion gates → model reference, all driven from `/aml` or by agents through **14 `aml_*` tools**. Python runtime bootstrapped with `uv` into an `aml/` asset root inside the config root; artifacts and metadata stay under the config root. Models carry a human-readable identity — label (line · recipe · objective), description and line/objective ids — selectable via `aml_model_find`. |
189
+ | **AML hybrid twin × MPC** | Grey-box physics core + bounded PyTorch residual, `TwinSnapshot` / `VirtualTrial` / `RecommendationCertificate` with UQ/OOD screening and all-trajectory gates; the `hybrid_twin` channel profile injects **12 profile tools** (scene discovery/compile/freeze, physics-spec draft/validate/compile, snapshot, trial, MPC, gate, provider catalog) plus the general `twin_calibration_request`. Trials stay virtual (`candidateExecuted=false`) and writes are recommendation-only until a certificate is certified. |
190
+ | **Two-mode optimization loop** | Dedicated channel templates split the loop **structurally**: an *aml-training* channel gets the modeling face (datasets, jobs, scene compile, physics specs, training plans — no plant writes, no MPC) and an *aml-optimization* channel gets the acting face (snapshots, trials, gate, MPC, Bayesian search `twin_bayes_optimize`, governed micro-writes `optimization_explore`) — training-while-optimizing is impossible by construction. **Exploration** mode writes through the governed chain with response read-back pairing (every write lands in an `optimization_explorations` ledger); **production** mode requires a bound model that cleared the twin gates (`aml` mode, `boundModelId` at instantiate time). |
191
+ | **Runtime observability** | `GET /api/system/monitor` exposes the agent-team internals as numbers: root queue depth, watchdog interventions, harness session reuse, pending memory outbox — each guarded by a documented rollback switch, so new machinery can be turned off without a redeploy. |
192
+ | **Line operations feed (`/operations`)** | One page for every touch on the plant: a live operation feed (REST snapshot + WS stream) classifies writes, DAQ, AML, recipe, rollback, alarm, line, manual and system actions into **nine categories**, renders structured **before → after diff badges** on write rows (failures marked red), and infers the **closed-loop phase** (monitor → exploration · small-step → recommendation search → shadow verification → production) straight from the event stream. The same feed powers a line-operations panel inside the workshop console. |
193
+ | **External MCP gateway** | `aw mcp` starts a zero-dependency **stdio MCP server** (38 tools) that discovers a running instance automatically (env → lock file → config file) and exposes lines, recipes (incl. mark-good), governed DCW writes, semantic parameter mapping, DAQ queries, channels, team provisioning, model promotion, judge/rollback and plugin management to any MCP client — gated by the `mcp.enabled` runtime setting, with `--doctor` and `--print-config` helpers. |
194
+ | **Fully config-driven runtime** | Every runtime knob (memory budgets, compaction, rollback guardrails, retention, backups, log level, system timezone, MCP gate…) is declared once in the settings descriptor registry with precedence **config.yml < runtime-settings < env** — **119 settings across 18 groups** (40 live / 79 restart), no hardcoded defaults in code. |
195
+ | **Configurable system timezone** | One `time.timeZone` setting (IANA id, live-applied) drives human-facing timestamps — logs, chat, audit, agent records and schedules — through a single formatter; machine timelines (DAQ samples, `timestamptz`) stay absolute. |
196
+ | **Configurable cadences** | Sampling and query defaults/floors are **live settings** (`daq.sampling.*`, `daq.query.*`): hot-reloaded, clamped on node create/patch, and agent tool descriptions always carry the current values. |
197
+
198
+ #### Digital twin
199
+
200
+ | Capability | Why it matters |
201
+ |---|---|
202
+ | **3D digital twin** | Three.js town: place line equipment and channel territories, watch device health, alarms and live values — driven by the same event bus. An adaptive quality ladder (DPR / shadow / bloom tiers, wall-clock FPS budget) matches the machine, and `window.__townStats` exposes real render metrics for perf probes. |
203
+
204
+ ---
205
+
206
+ ## The interface
207
+
208
+ Every panel below is the real UI, at 1440×900, recorded from a running instance.
209
+
210
+ <div align="center">
211
+
212
+ ### FIG.02 — DAQ console
213
+
214
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-02-daq.gif" alt="DAQ console: node inventory, live trends, alarm strip and event stream" width="92%" />
215
+
216
+ <sub><b>Acquisition, end to end.</b> Node inventory and health under a live gauge band, trends that fill as samples land,
217
+ an alarm strip that only holds what is actually unacknowledged, and a tailing event stream.</sub>
218
+
219
+ <br />
220
+
221
+ ### FIG.03 — Line operations
222
+
223
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-03-dcw.gif" alt="Line operations: production lines, products, recipes and write control" width="92%" />
224
+
225
+ <sub><b>Lines, products, recipes, batches.</b> Starting a line gates acquisition through its recipe window and tags every
226
+ sample with <code>product/recipe/run</code>; control nodes expose <b>SET vs ACT</b> through the same calibration path they write with.</sub>
227
+
228
+ <br />
229
+
230
+ ### FIG.04 — Digital twin
231
+
232
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-04-town.gif" alt="3D digital twin town driven by live telemetry" width="92%" />
233
+
234
+ <sub><b>The twin is the same event bus, rendered.</b> Equipment, channel territories, alarms and live values — an adaptive
235
+ quality ladder (DPR / shadow / bloom, wall-clock FPS budget) keeps it honest on modest hardware.</sub>
236
+
237
+ <br />
238
+
239
+ ### FIG.05 — Dashboard
240
+
241
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-05-dashboard.gif" alt="Runtime dashboard with KPI gauges and trends" width="92%" />
242
+
243
+ <sub><b>One screen for the whole workshop.</b> Channels, agents, tasks, DAQ throughput and alarms — read from the same
244
+ state the API serves, not a separate metrics store.</sub>
245
+
246
+ <br />
247
+
248
+ ### FIG.06 — Responsive
249
+
250
+ <img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/fig-06-responsive.gif" alt="The same interface adapting from desktop to tablet to phone" width="92%" />
251
+
252
+ <sub><b>Desktop → tablet → phone.</b> The instrument rail collapses to an icon rail, then to an off-canvas drawer;
253
+ page headers stack, dense tables become scrollable ledgers with a pinned identity column.</sub>
254
+
255
+ </div>
256
+
257
+ <table>
258
+ <tr>
259
+ <td width="50%"><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-workshop.png" alt="Agent workshop" width="100%" /><br/><sub><b>Agent workshop.</b> Channel timeline, lanes, tasks, memory and HITL in one workbench.</sub></td>
260
+ <td width="50%"><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-monitor.png" alt="Runtime monitor" width="100%" /><br/><sub><b>Runtime monitor.</b> Every wired channel, member count, dependency cycle and owner.</sub></td>
261
+ </tr>
262
+ <tr>
263
+ <td><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-settings.png" alt="Settings" width="100%" /><br/><sub><b>Settings.</b> 119 keys across 18 groups, descriptor-driven — the same registry the CLI reads.</sub></td>
264
+ <td><img src="https://raw.githubusercontent.com/kingdol666/AgentWorkShop/main/docs/readme-assets/shot-plugins.png" alt="Plugins" width="100%" /><br/><sub><b>Plugins.</b> Three scopes, hot reload on edit, per-team switches.</sub></td>
265
+ </tr>
266
+ </table>
267
+
268
+ ---
269
+ ## Architecture
270
+
271
+ ```mermaid
272
+ flowchart TB
273
+ subgraph FE["Frontend — Nuxt 4 / Vue 3"]
274
+ UI["Workshop UI · 3D Twin · Dashboards"]
275
+ WS["AEP client — seq resume"]
276
+ end
277
+ subgraph SRV["Server — Nitro / h3"]
278
+ REST["REST /api/workshop/**"]
279
+ HUB["WS Hub — AEP v1"]
280
+ A2A["A2A JSON-RPC"]
281
+ MCP["MCP Server"]
282
+ subgraph RT["Runtime"]
283
+ MGR["AgentChannelManager"]
284
+ SCH["SchedulerLoop — lead supervision"]
285
+ TE["TaskEngine — 7-state machine"]
286
+ AR["AgentRuntime × N"]
287
+ MEM["AgentMemory — FTS5 + vector"]
288
+ BUS["Event bus (ManagerBus) — per-channel seq + ring"]
289
+ end
290
+ subgraph IND["Industrial"]
291
+ DAQ["DAQ gateway — per-node edge runtimes"]
292
+ DCW["DCW gateway — write control"]
293
+ BR["Bus — inproc / MQTT"]
294
+ TSDB["TSDB — SQLite / Timescale"]
295
+ end
296
+ subgraph HB["Harness adapters — 14 engines"]
297
+ MOCK["mock · claude — in-process"]
298
+ OMP["omp — RPC subprocess"]
299
+ CDX["codex — app-server"]
300
+ DSH["dsh · qwen · hermes — ACP"]
301
+ OC["opencode — serve"]
302
+ FAM["gemini · copilot · cursor · crush · goose · pi — headless CLI"]
303
+ end
304
+ DB[("SQLite — channels · agents · tasks
305
+ messages · memories (FTS5) · events")]
306
+ end
307
+ UI <--> WS
308
+ WS --> BUS
309
+ REST & A2A & MCP --> MGR
310
+ MGR --> SCH & TE & AR
311
+ AR --> MEM
312
+ AR --> MOCK & OMP & CDX & DSH & OC & FAM
313
+ MGR & TE & MEM & BUS --> DB
314
+ DAQ <--> BR --> TSDB
315
+ DCW --> BR
316
+ DAQ & DCW --> BUS
317
+ ```
318
+
319
+ **The agent × machine bridge** (the part worth reading the source for):
320
+
321
+ ```
322
+ agent ──binds to──▶ node (daq: auto / dcw: manual)
323
+ │ │
324
+ │ my_industrial_nodes ◀── semantic card: meaning · unit · safe range · recipe window
325
+ │ daq_query ◀── TSDB history, stats + physical semantics
326
+ │ dcw_control ──▶ interlock (safe range ∩ recipe window)
327
+ │ ──▶ HITL approval (manual mode, 180 s timeout)
328
+ │ ──▶ PLC write → readback check → ACK + write history
329
+ ◀── result text with numbers the agent can cite
330
+ ```
331
+
332
+ ---
333
+
334
+ ## Quick start
335
+
336
+ ### Prerequisites
337
+
338
+ ```bash
339
+ node -v # ≥ 23.4.0 (needs built-in node:sqlite)
340
+ ```
341
+
342
+ > Real-agent harnesses require their CLI on PATH — `omp`, `codex`, `dsh`, `opencode`, `gemini`, `qwen`, `copilot`, `cursor`, `crush`, `goose`, `pi` or `hermes` (any subset; each channel can mix harnesses). `mock` and `claude` (SDK) run in-process and need no PATH CLI. The dashboard "execution engines" panel shows per-engine readiness with a green/grey dot; entries for uninstalled engines link to their official install pages. Optional DAQ infrastructure (MQTT broker + TimescaleDB) auto-starts via Docker when reachable (`docker compose up -d`).
343
+
344
+ ### Option A — install from npm (recommended)
345
+
346
+ ```bash
347
+ npm install -g agentworkshop # → `aw` / `agentworkshop` on PATH
348
+ aw start # → http://localhost:3001
349
+ ```
350
+
351
+ The published tarball ships a **prebuilt production bundle** (`.output/`), so an npm install boots straight away — no build step, no build tools. On first launch everything initializes into the config root **`~/.AgentWorkShop`**: the default `config.yml`, a generated `.env` holding a random session secret, `runtime-settings.json`, a docker-compose seed, `prompts/`, `commands/`, `plugins/` (seeded from the SDK examples, **disabled** by default) and an empty `data/` directory. All runtime data (SQLite, JSON repos, backups, logs) lives there too — config and data stay with the install, not the working directory.
352
+
353
+ Prefer a one-off run without installing globally?
354
+
355
+ ```bash
356
+ npx agentworkshop start # no global npm install required
357
+ ```
358
+
359
+ > `npx` still creates `~/.AgentWorkShop` — running without a global install is not the same as leaving no trace on disk.
360
+
361
+ ### Option B — from source
362
+
363
+ ```bash
364
+ git clone https://github.com/kingdol666/AgentWorkShop.git && cd AgentWorkShop
365
+ pnpm install
366
+ pnpm dev # → http://localhost:3000 (port from config.yml)
367
+ ```
368
+
369
+ Production from source:
370
+
371
+ ```bash
372
+ pnpm build # nuxt build → .output/
373
+ pnpm start # port from config.yml → server.prod.port
374
+ ```
375
+
376
+ > In a source checkout the config root is the project's **`.AgentWorkShop/`** folder (runtime overrides, data, project-level commands), while `config.yml` / `.env` stay at the checkout root, version-controlled as the factory defaults.
377
+
378
+ ### Updating
379
+
380
+ ```bash
381
+ aw update # check + self-update the global install
382
+ aw update --check # only report; nothing is installed
383
+ npm install -g agentworkshop@latest # manual equivalent
384
+ ```
385
+
386
+ Releases follow semver. `aw start` verifies the config root on every launch and migrates the legacy pre-`home` `data/` layout into it (newest file wins), so data survives upgrades. SQLite schema migrations run server-side at boot. Current version: **v0.7.70** — see [Releases](https://github.com/kingdol666/AgentWorkShop/releases).
387
+
388
+ ### Your first agent × line session (~2 minutes)
389
+
390
+ 1. **Sign in** — register in the sidebar (or `POST /api/users/register`).
391
+ 2. **Build a line** — `Line Operations` → create a line, add DAQ nodes (e.g. `daq-temp-tc`) and control nodes (e.g. `dcw-temp-sp`), create a product + recipe, hit **Start**. Live values start flowing.
392
+ 3. **Create a team** — `Agent Workshop` → pick a lead + workers, **deploy** into a channel.
393
+ 4. **Bind nodes** — open the agent's detail panel → bind the DAQ node (*auto*) and the control node (*manual* = needs your approval).
394
+ 5. **Submit the goal** — *"Analyze the last 5 minutes of melt temperature; if deviation from 182 °C exceeds 1 °C, correct the setpoint (wait for my approval)."*
395
+ 6. **Approve** — the agent reads real history, computes the mean, requests the write → approve in the HITL panel → watch the setpoint change and the goal close with a numeric report.
396
+
397
+ ---
398
+
399
+ ## Configuration & CLI — config-driven by design
400
+
401
+ One runtime, one source of truth. **`config.yml`** declares defaults; **`runtime-settings.json`** inside the config root carries runtime overrides; environment variables and CLI flags sit on top. Every editable key is described once in `shared/config/schema.json` (type, range, enum, live-vs-restart) and surfaced through the same descriptors in **both the UI and the CLI**.
402
+
403
+ ```
404
+ config.yml (defaults) < .AgentWorkShop/runtime-settings.json (runtime) < env vars / CLI flags
405
+ ```
406
+
407
+ The config root is **`~/.AgentWorkShop`** for a global install (`npm i -g`) — wherever you run `aw` from — and **`<repo>/.AgentWorkShop`** in a source checkout (with `config.yml` / `.env` staying at the checkout root as version-controlled factory defaults). `AW_HOME` redirects it; `AW_MODE=home` forces the global shape.
408
+
409
+ ### Live settings, persisted, hot-reloaded
410
+
411
+ - The **Settings → Runtime config** tab renders every editable key from the descriptors — change server ports, theme, API timeouts, locale or the approval gate, hit save.
412
+ - `live` keys apply instantly (theme, title, timeouts, approval gate, DAQ sampling cadences, TSDB query buckets…) over a server-sent event stream — no reload, no restart.
413
+ - `restart` keys (ports, hosts) persist to disk and take effect on the next launch of the matching mode (`aw dev` / `aw start`).
414
+ - One channel for every writer: the UI, the CLI and the server's file watcher all converge on the same settings file, so a change made anywhere shows up everywhere.
415
+
416
+ Example — retune the acquisition and query cadences live:
417
+
418
+ ```bash
419
+ aw config set daq.sampling.defaultIntervalMs 2000 # new nodes sample every 2 s
420
+ aw config set daq.sampling.minIntervalMs 500 # per-node floor (create/patch clamp)
421
+ aw config set daq.query.defaultBucketMs 3000 # TSDB reads default to a 3 s bucket
422
+ aw config set daq.query.minBucketMs 500 # query floor (samples/line query/agent tool)
423
+ ```
424
+
425
+ Agent tool descriptions are re-rendered with the current values on every injection, so an LLM always sees the floor and default that will actually apply to its `daq_query` calls.
426
+
427
+ ### The `aw` CLI
428
+
429
+ | Command | What it does |
430
+ |---|---|
431
+ | `aw start · aw dev · aw build` | Production server / dev server / build — ports from the effective config; first `start` builds once |
432
+ | `aw stop` | Stop a running `aw` service instance via the single-instance lock |
433
+ | `aw config list · get · set · unset · reset` | Read & write runtime settings (validated against the schema, atomic writes) |
434
+ | `aw plugin list · create · enable · disable` | Manage plugins across all three scopes: inspect, scaffold (project scope; `--global` for user scope), enable/disable (state file, ~1 s hot reload on the running server) |
435
+ | `aw mcp` | Industrial MCP stdio server (38 tools over the platform REST: lines, recipes, DCW writes, parameter mapping, DAQ, channels, teams, model promotion, plugins) — auto-discovers the running instance; `--doctor` diagnoses discovery/health/auth, `--print-config` emits a ready-to-paste MCP client config |
436
+ | `aw home` | Inspect / initialize the config root `.AgentWorkShop` |
437
+ | `aw init <dir>` | Scaffold a runnable project (full config system + CLI included) |
438
+ | `aw register <path\|url\|npm:pkg>` | Register a new command — project-local or `--global` |
439
+ | `aw update` | Check npm for the latest release and self-update the global install |
440
+ | `aw doctor` | Environment + project health check (node, config, ports, keys) |
441
+ | `aw status` | Live overview: mode, config sources, running server, command table |
442
+ | `aw tui` | Terminal workbench: channel/agent management, task submission, live monitor pane, HITL answering (see [`docs/tui.md`](./docs/tui.md) · [`tui/README.md`](./tui/README.md)) |
443
+ | `aw version` | Print the CLI/package version (alias `v`) |
444
+
445
+ Global flags: `--help/-h` · `--version/-v` · `--json` (machine-readable) · `--root <dir>` · `--debug`.
446
+
447
+ Exit codes: **0** success · **1** runtime error · **2** usage error. With `--json`, failures come back as an envelope carrying `{ ok: false, error: 'unknown-command' \| 'no-project' \| 'usage' \| 'internal' \| … }`, so automation can branch without parsing stderr.
448
+
449
+ ### Command registration
450
+
451
+ Commands are plain modules exporting `{ meta, run }`. Drop one into a scanned directory and it's live on the next invocation — no registry bookkeeping, convention over configuration:
452
+
453
+ | Scope (highest wins) | Directory |
454
+ |---|---|
455
+ | project | `<root>/.AgentWorkShop/commands/` |
456
+ | user | `~/.AgentWorkShop/commands/` |
457
+ | built-in | packaged with the CLI (`cli/commands/`) |
458
+
459
+ `aw register <file|url|npm:pkg>` copies a command into the right scope (`--global` for user scope); `aw help` lists everything that's registered.
460
+
461
+ ```js
462
+ // ~/.AgentWorkShop/commands/hello.mjs
463
+ export const meta = { name: 'hello', group: 'Custom', summary: 'Say hi', usage: 'aw hello [--name <n>]' }
464
+ export async function run(argv, ctx) {
465
+ console.log(`Hi ${argv.flags.name ?? 'AW'} — mode: ${ctx.mode}`)
466
+ }
467
+ ```
468
+
469
+ ---
470
+
471
+ ## The industrial stack in detail
472
+
473
+ ### Data acquisition (DAQ)
474
+
475
+ - **Six protocol drivers**: Modbus TCP, Modbus RTU-over-TCP (serial gateway), OPC UA, MQTT, HTTP/REST, plus the **serial-bridge built-in plugin** (direct RS-232/485: Modbus RTU framing + ASCII line protocol, write side with same-address readback verification, serial enumeration/probe API and a frontend panel) — connection pools, classified error messages, per-driver connection tests; the driver registry accepts plugin-registered protocols of any kind (with self-describing metadata, the frontend forms render with zero changes).
476
+ - **Per-node edge runtimes**: independent sampling cadence, publish cadence, in-flight mutex per node — one slow driver never blocks its neighbors. Sampling and query defaults/floors are driven by the live `daq.sampling.*` / `daq.query.*` settings.
477
+ - **Pipeline**: driver → queue (in-process or MQTT, offline buffer on disconnect) → consumer with out-of-order defense → three-way fan-out: WS live push (gated), TSDB batch write, device-twin writeback.
478
+ - **Robustness**: TSDB single-in-flight writes with bounded retries, buffer backpressure with drop counters, real loss metrics exposed on `daq.controller` frames.
479
+ - **Alarms**: recipe-scoped monitoring windows with **2% hysteresis + 3-tick debounce**; alarm/offline transitions are instant (safety first).
480
+ - **Querying is batch-scoped by default**: `daq_query` resolves the node's **active run** and filters by that batch's `run_id` + `recipe_id`, so an agent reading evidence always sees *the recipe currently running* — never a mix of the previous batch. The effective scope (`run=<id> 配方「name」(recipe_id)`) is printed in the result header and restated per node at the end, and the same ids can be fed straight back into `daq_query` or `aml_dataset_build`; pass `scope: 'all'` (or an explicit `recipe_id` / `run_id` / `product_id`) for cross-recipe comparison and history review. Lines that are not running stay unfiltered, so historical data remains queryable.
481
+
482
+ ### Write control (DCW)
483
+
484
+ - Engineering-unit writes: `linear` calibration (scale/offset) PLC↔physical, **readback verification** with deadband tolerance, ACK states and write history.
485
+ - **Interlock**: with a line running, the active recipe's parameter window *replaces* the node's global safe range for that node.
486
+ - **HITL**: `manual`-mode bindings suspend the write for user approval (deduped per agent+node; re-validation at approval time — permission is re-checked when you click approve).
487
+
488
+ ### Recipe & batch
489
+
490
+ `Line → Product → Recipe → Run`. Starting a run applies recipe params node-by-node (each write verified), gates acquisition per line, and tags every sample with `line/product/recipe/run` — per-product data isolation with five-dimension queries (line × product × recipe × time × node).
491
+
492
+ ### AML — auto-modeling lab
493
+
494
+ The modeling half of the loop: `/aml` builds **datasets** out of tagged telemetry, submits **training jobs** to a `uv`-managed Python runtime, ranks runs on a **leaderboard**, and promotes a model only when it clears the configured **gates** (NRMSE, rollout NRMSE, validation/test gap, minimum rows and runs). Promoted models are referenced by id, so an MPC or shadow-twin controller can consume a versioned artifact instead of a vague "latest".
495
+
496
+ - Agents do the same work through 14 tools (`aml_dataset_build`, `aml_job_submit`, `aml_job_status`, `aml_leaderboard`, `aml_model_promote`, `aml_model_find`, `aml_training_plan_*`, …) — submit a goal and let the team train and report.
497
+ - The Python runtime bootstraps itself with `uv` into an `./aml` asset root inside the config root; dataset/artifact/metadata paths, disk quota, job timeout, concurrency and retention are all **settings** (16 in the `aml` group), not constants.
498
+ - Governance defaults are conservative: cross-recipe datasets are refused unless explicitly allowed, and every job is attributed.
499
+ - **Hybrid twin × MPC core**: AML also owns the *hybrid twin* plane — `SceneContract` / `PhysicsModelManifest` / `TwinSnapshot` / `ObjectiveProfile` / `VirtualTrial` / `RecommendationCertificate` on top of a grey-box physics core with a bounded PyTorch residual, UQ/OOD screening and all-trajectory hard-constraint gates. Channels opt in through the `hybrid_twin` profile, which injects twelve profile agent tools (`twin_provider_catalog`, `twin_scene_discover/compile/freeze`, `twin_physics_spec_draft/validate/compile`, `twin_scene_read`, `twin_snapshot_create`, `twin_trial_run`, `mpc_optimize`, `twin_gate_evaluate`) plus the general `twin_calibration_request`; a trial is *virtual* by design (`candidateExecuted=false`) and a recommendation is only certified when gates and benefit pass. Server-side strategies are `safe_small_step` (insufficient data) and `precise_search` (model cleared gates). Plan + acceptance record: [`docs/aml-hybrid-twin-mpc-integration-plan.md`](./docs/aml-hybrid-twin-mpc-integration-plan.md), [`docs/aml-hybrid-twin-implementation-acceptance.md`](./docs/aml-hybrid-twin-implementation-acceptance.md).
500
+ - **Any-scene modeling loop**: the loop is not tied to a bundled scene. Bind nodes → `twin_scene_discover` infers control/state/disturbance/target/guard semantics with evidence → `twin_scene_compile` drafts a `SceneContract` → you confirm → `twin_scene_freeze` freezes it (immutable versions) → `twin_physics_spec_draft` proposes a skeleton PhysicsSpec (one first-order relaxation equation per state, τ/gain as calibratable prior-boxed parameters) that you refine → validate/compile (whitelisted AST, no arbitrary code) → `aml_job_submit { job_kind: 'hybrid_residual' }` runs without any code: the built-in reference trainer calibrates physics parameters (stage A), fits a 3-member bounded residual ensemble (stage B) and reports conformal q90 coverage (stage D) — the calibrated spec is written back and shared by evaluation, prediction and trials.
501
+ - **Model-backed twin & continuous calibration**: `twin_trial_run` / `mpc_optimize` accept a `model_id` — the rollout is then driven by the trained hybrid model (calibrated physics + residual-ensemble ONNX, `ModelBackedHybridProvider`) with UQ coverage and member disagreement coming from training artifacts, and a dataset whose line/product/recipe doesn't match the scene is rejected (`TWIN_MODEL_SCENE_MISMATCH`). Calibration requests are consumed by a 60 s worker that re-submits `hybrid_residual` retraining *candidates* automatically; promotion still goes through HITL + Twin Gate (`AML_TWIN_WORKER_DISABLED=1` turns the worker off).
502
+ - **Two-mode optimization loop**: `aw` ships two channel templates — `chtpl-aml-training-default` (modeling face: 22 tools, no plant writes, no MPC) and `chtpl-aml-optimization-default` (acting face: snapshot/trial/gate/MPC/Bayesian search plus `optimization_explore`, the governed micro-write that pairs every setpoint with its response read-back in an `optimization_explorations` ledger). The faces are mutually exclusive per channel; optimization channels instantiate either in **exploration** mode (governed small steps, no model required) or **aml** mode (`boundModelId` required — a gate-cleared model must be bound before the acting face unlocks).
503
+ - **Twin provider plugin SDK (hot-loaded)**: an industrial scene's physics core / scene packs / objectives / solvers register through `ctx.twin` into the **Twin Provider Registry** (`registerPhysicsProvider` / `registerScenePack` / `registerObjectiveProfile` / `registerTrainingAdapter` / `registerSolverAdapter`, plus `listProviders` / `getProviderHealth` / `resolveProvider` / `validateProvider` / `retireProvider` / `isRegistryAvailable`). Twin tools resolve providers via `SceneContract.physicsProfileId` (falling back to the bundled `twin-injection-default`), so **swapping scenes changes neither tools nor channels**; a hot reload stages a new **generation** and drains the old one while trials and MPC hold leases, so in-flight work is never invalidated and `retireProvider` only unloads at zero references. The bundled injection provider ships through that same external contract (`server/plugins-builtin/twin-injection-default/`), and plugins live in the usual scopes with no restart for disable/reload. Field tables and a runnable example: [`docs/plugins.md`](./docs/plugins.md) → "Hybrid-twin provider plugins"; SDK surface: [`docs/sdk.md`](./docs/sdk.md) §4.10.
504
+
505
+ ---
506
+
507
+ ## Usage
508
+
509
+ ### Authentication
510
+
511
+ Email + password login issues a **bearer token** (multiple tokens per user, individually revocable).
512
+
513
+ ```bash
514
+ # register
515
+ curl -X POST http://localhost:3000/api/users/register \
516
+ -H 'content-type: application/json' \
517
+ -d '{"email":"you@example.com","password":"secret","name":"you"}'
518
+
519
+ # every workshop call
520
+ curl http://localhost:3000/api/workshop/channels \
521
+ -H 'authorization: Bearer <token>'
522
+ ```
523
+
524
+ ### Line-level permissions
525
+
526
+ Industrial data is gated **per production line** with three states, managed by an admin
527
+ in the built-in **Permissions** page (`/permissions`, admin-only in the sidebar):
528
+
529
+ | State | DAQ nodes | DCW (write) nodes | Visibility |
530
+ | --- | --- | --- | --- |
531
+ | **none** (default for regular users) | hidden | hidden | line data withheld server-side — invisible in Line Ops, DAQ center and the digital twin |
532
+ | **read-only** | read | ✕ | line visible, values stream, no writes / dispatch / device binding |
533
+ | **operate** | read | read + write | full access incl. setpoint writes, dispatch, binding |
534
+
535
+ - `admin` / `editor` roles are unrestricted (operations roles).
536
+ - Regular users **default to none** — they see no line data until granted.
537
+ - Enforcement lives in the data plane: list endpoints filter by grant, write/dispatch
538
+ endpoints return a human-readable 403, and Agent↔node bindings validate the line grant
539
+ (DAQ needs read-only+, DCW needs operate).
540
+ - Plugins get the same surface via `ctx.permissions` (`lineMode` / `visibleLineIds` /
541
+ `listGrants` / `setGrants`) plus a `permissions:changed` lifecycle hook; the SDK REST
542
+ client exposes `client.permissions.overview()` / `client.permissions.set(...)`.
543
+
544
+ ### Execution modes
545
+
546
+ Prefix the task description (or pick in the composer UI):
547
+
548
+ | Mode | Semantics | Config |
549
+ |---|---|---|
550
+ | `goal` | lead decomposes → workers deliver → **lead judges satisfaction**; unmet → more subtasks; met → parent completes. | `goalCriteria` |
551
+ | `loop` | replay the same task on a fixed interval. | `intervalMs` (default 60000), `maxIterations` (default ∞) |
552
+ | `pipeline` | ordered stages; stage N+1 consumes stage N's output. | `stages: [{name, description, assigneeId?}]` |
553
+
554
+ ### Scheduled tasks
555
+
556
+ Any task can also be attached to a **schedule** so a channel keeps working when nobody is watching:
557
+
558
+ | Aspect | Behavior |
559
+ |---|---|
560
+ | Modes | `interval` — fixed cadence (`intervalMs`, 60 s floor) · `daily` — once per day at `HH:MM` local time |
561
+ | Management | `/workshop/schedules` page, or `POST/PATCH /api/workshop/schedules` |
562
+ | Guard rails | busy-guard (a fire is deferred while the channel still has active tasks), per-run history with status, and a **consecutive-failure circuit breaker** (`maxConsecutiveFailures`) that auto-disables a misbehaving schedule |
563
+ | Typical use | nightly line patrol (`daq_query` + report to memory), periodic drift check with auto-judge, daily KPI digest |
564
+
565
+ ```bash
566
+ # create a schedule: patrol the line every 30 minutes
567
+ curl -X POST http://localhost:3000/api/workshop/schedules \
568
+ -H 'authorization: Bearer <token>' -H 'content-type: application/json' \
569
+ -d '{"channelId":"<id>","name":"line-patrol","title":"Line patrol","description":"Read all DAQ nodes on line 1 and post a drift summary to channel memory.","mode":"interval","intervalMs":1800000}'
570
+ ```
571
+
572
+ ### The four entry points
573
+
574
+ | Entry | Endpoint | Audience |
575
+ |---|---|---|
576
+ | **WS** | `/api/workshop/ws?channelId=…` | Dashboards / UI — AEP v1 envelopes, per-channel monotonic `seq`, 5000-event ring, `lastSeq` resume, snapshot fallback. |
577
+ | **MCP** | in-process server, 25 tools | Agents (omp host tools) — management + job-face tools, channel-scoped. |
578
+ | **A2A** | `POST /api/workshop/a2a/:agentId/rpc` | External agents — JSON-RPC 2.0, `AgentCard` at `/card`, `tasks/sendSubscribe` SSE. |
579
+ | **REST** | `/api/workshop/**` | Humans / scripts — full management face. |
580
+
581
+ ### Task state machine
582
+
583
+ ```
584
+ SUBMITTED ─▶ ASSIGNED ─▶ WORKING ─▶ WAITING ─▶ COMPLETED
585
+ │ │ │ │
586
+ └────────────┴───────────┴──▶ CANCELED / FAILED ─▶ (retry ≤ 3 or cancel)
587
+ ```
588
+
589
+ ---
590
+
591
+ ## Verified end-to-end
592
+
593
+ Every claim above is backed by a suite you can re-run. The acceptance suites drive a
594
+ **production instance over real simulated plant protocols** (Modbus TCP/RTU, OPC UA, MQTT,
595
+ HTTP + an MQTT/Timescale pipeline) with real engine CLIs, and assert on the database,
596
+ the event stream and the HTTP API — not on mocks. Two 2026-09-24 waves are archived:
597
+ the baseline matrix (~1100+ real assertions, v0.7.45 production build, isolated `AW_HOME`,
598
+ real browser) in [`docs/audit/e2e-2026-09-24-full-coverage.md`](./docs/audit/e2e-2026-09-24-full-coverage.md),
599
+ and the follow-up feature wave (real **PLC node simulator** + injection-molding AgentTeam
600
+ closed loop, FIFO multi-goal, scheduled tasks, collaboration; the report records each result,
601
+ including environment- or credential-limited failures and SKIPs)
602
+ in [`docs/audit/e2e-2026-09-24-all-features.md`](./docs/audit/e2e-2026-09-24-all-features.md).
603
+
604
+ | Suite | Latest result | What it covers | Reproduce |
605
+ |---|---|---|---|
606
+ | `real-injection-closed-loop.mjs` | **2 goals COMPLETED / 0 failed** (2026-09-24, real PLC simulator + real `omp` team) | injection line provisioned from the simulator (11 DCW + 14 DAQ nodes) → real AgentTeam lead/analyst/optimizer → governed writes with a **65.8 s gap ≥ 60 s policy** → DAQ re-measurement → `qualityOk`, verdict `keep` | `AW_BASE=<base> SIM_BASE=http://127.0.0.1:4010 AW_TOKEN=<token> node scripts/real-injection-closed-loop.mjs` |
607
+ | `_run-real-injection-fifo-goals.mjs` | exit 0 (2026-09-24) | **FIFO root queue with multi-task serialization**: goal 2 dispatched only after goal 1 closed, role gate flip, two governed writes 65.04 s apart, two judged records, 4-anchor ledger | `AW_BASE=<base> SIM_BASE=… AW_TOKEN=<token> node scripts/_run-real-injection-fifo-goals.mjs` |
608
+ | `e2e-plc-plugin-closedloop.mjs` | core stages A–D all green (2026-09-24) | PLC simulator supply over Modbus 16040 → DAQ cross-check (AW sample 197 vs simulator register 197.37) → HITL closed-loop write to 3 zones (registers 40021/40023/40025 = 210, verified write-through) → `dcw_judge` keep; plugin stages E–H need the external diagnosis service and are reported as SKIP | `AW_BASE=<base> KB_BASE=http://127.0.0.1:8771 AW_E2E_USERS_DB=<home>/data/users.sqlite node scripts/e2e-plc-plugin-closedloop.mjs` |
609
+ | `_dbg-schedule-e2e.mjs` | **35 / 0** (2026-09-24) | scheduled tasks: plan CRUD + validation, `next_run_at`, `scheduledCount`, busy guard **409 CHANNEL_BUSY**, in-flight duplicate **409 SCHEDULE_RUNNING**, cancel reconciliation (run FAILED + failure counters), **timer auto-fire** (`trigger_kind=timer`), disable/enable state machine, 404 after delete | `SCHED_E2E_BASE=<base> node scripts/_dbg-schedule-e2e.mjs` |
610
+ | `e2e-crash-cycle.mjs` | **5 / 5 phases** (2026-09-24) | watch → hard kill → persistence check → restart → redelivery → auto-resume → consumption-gap replay, each phase in its own process | `node scripts/e2e-crash-cycle.mjs --port 3300 --home .e2e-home-full` |
611
+ | `e2e-full-closedloop.mjs` | **98 / 0** (2026-09-24, v0.7.45 production build) | 11 stages: registration → line/product/recipe modeling → DAQ sampling → frame pipeline → DCW write + readback → rollback ledger → agent-node authorization → bridge privilege boundaries → plugins → data-root isolation | `node scripts/e2e-full-closedloop.mjs <base>` |
612
+ | Protocol matrix, real protocols | **46 / 0** (2026-09-24) | MQTT · Modbus TCP · Modbus RTU · OPC UA · HTTP — acquisition, governed write + readback, recipe-window interlock and a real agent closed loop per protocol | `node scripts/_dbg-protocol-matrix.mjs` |
613
+ | Production API live | 60 / 0 (2026-09-24) | persistence across restart, template CRUD, task assign/complete/cancel/loop/pipeline, A2A + mailbox, WS broadcast, MCP endpoint, cascade delete | `AW_E2E_TOKEN=<token> node scripts/api-live-e2e.mjs` |
614
+ | AgentTeam chat + native HITL | 112 passed / 0 failed / 1 blocked (2026-09-24, real `omp`) | group-chat request → trackable job; `omp` native ask → HITL approval → engine resumes with the receipt | `node scripts/e2e-agentteam-chat.mjs --phase=all` |
615
+ | Terminal mirror + prompt composition | **26 / 0** and **16 / 0** (2026-09-24, real `omp`) | terminal mirror frames, `input`/`abort`/`ui_response` injection, native `ask` round-trip; five-section prompt assembly (scenario → profile → memory → manual → assignment) observed on the wire | `node scripts/test-terminal-e2e.mjs` · `node scripts/test-prompt-system.mjs` |
616
+ | Real-engine collaboration | task-flow real **PASS**, `e2e-omp-workspace` **13 / 13**, group-chat real **PASS**, multi-user HIL **PASS** (2026-09-24) | real `omp` lead + workers: decomposition, dispatch, progress, artifacts, workspace-scoped file reads, unload; multi-user HITL visibility; multi-harness team 14/18 (omp + dsh green) | `npx tsx scripts/e2e-agentteam-task-flow-real.ts` · `npx tsx scripts/e2e-omp-workspace.ts` |
617
+ | Front-end acceptance | responsive gate **16 / 16** routes, nav drawer **10 / 10** (2026-09-24, real Chromium) | the 16 gated routes (of 22 page components) incl. the 3D town render at the gate thresholds; drawer interaction, scroll lock, route change, zero page errors | `node scripts/ui/verify-responsive.mjs --routes all` · `node scripts/ui/verify-nav.mjs` |
618
+ | `_aw0746-stage12.mjs` | **10 / 0** (2026-09-25, globally installed **v0.7.49 packaged build**) | health gate (version=0.7.49) → admin login/role surface → channel creation with a real `omp` lead → group chat opened → **real omp reply** → omp child process visible in monitoring | `AW_BASE=<base> node scripts/_aw0746-stage12.mjs` |
619
+ | `_aw0746-stage34.mjs` | **13 / 0** (2026-09-25, v0.7.49 packaged build + PLC simulator) | line provisioned from the simulator (11 DCW + 14 DAQ) → product/recipe triple → **every sample tagged with recipe_id/run_id** while running → `daq_query` **defaults to the active batch** (`scope=all` opts out, measured 1 vs 4) → Hybrid Twin template instantiated (lead + 3 workers; that run injected 6 twin tools / 57 total — the profile now injects 12) | `AW_BASE=<base> node scripts/_aw0746-stage34.mjs` |
620
+ | `_aw0746-stage6b-train-sweep.mjs` | gates **all green** (2026-09-25, v0.7.46 packaged build, real torch training) | 1 s grid dataset (**1724 rows / 10 runs**) → inline-code job trained for real → G1 one-step **0.0992** (≤0.10) / G2 rollout 0.1092 (≤0.25) / G3 generalisation 14.6% (≤20%) / G4 rows+runs → model registered and **promoted to production** | `AW_BASE=<base> AW_DATASET_ID=<ds> node scripts/_aw0746-stage6b-train-sweep.mjs` |
621
+ | `_aw0746-stage7-twin.mjs` | **17 / 0** (2026-09-25, v0.7.49 packaged build, real DAQ + real model) | real samples → TwinSnapshot `fresh=true` → 65 real VirtualTrials (12 safe candidates, `candidateExecuted=false`) → 12-check recommendation gate **write_eligible** → verdict written back to the model as `twinEligibility` → `mpc_optimize` upgrades to **precise_search** → **0 DCW writes** throughout | `AW_BASE=<base> AW_REQUIRE_MODEL=1 node scripts/_aw0746-stage7-twin.mjs` |
622
+ | `_aw0746-stage6c-jobsmoke.mjs` | **5 / 0** (2026-09-25, v0.7.49 packaged build) | AML job path: inline `code` accepted (no `workspace/train.py` required) → job reaches a terminal state → training logs/ONNX traces → experiment plus per-check gates persisted | `AW_BASE=<base> node scripts/_aw0746-stage6c-jobsmoke.mjs` |
623
+ | `_aw0748-failclosed-probe.mjs` | **7 / 0** (2026-09-25, v0.7.49 packaged build) | hard-constraint **fail-closed** regression: `auto_daq` builds a snapshot from real bindings → a mappable `weight` constraint evaluates normally → an unmappable `part_weight` constraint is judged not passed with a precise detail (v0.7.47 passed it falsely) → an empty trajectory is also judged not passed | `AW_BASE=<base> node scripts/_aw0748-failclosed-probe.mjs` |
624
+ | `_aw0748-mock-closedloop.mjs` | **13 / 0** (2026-09-25, v0.7.49 packaged build, in-process `mock`, no quota) | scheduler closed-loop regression: create a mock channel → the root task is genuinely dispatched and closed → `[mock:complex]` forces delegation into child tasks → the parent closes after they finish → **the second and third root tasks are dispatched too** (before the fix the lead was unloaded while idle, `cr.scheduler` became null and later root tasks only landed in the DB, sitting in SUBMITTED until `ROOT_TIMEOUT`) → the tool bridge explicitly rejects host tools for mock | `AW_BASE=<base> node scripts/_aw0748-mock-closedloop.mjs` |
625
+ | Industrial bench — integrated | **77 / 77 checks (current baseline contract**, `bench/PIPELINE.md`; an earlier 2026-09-21 run recorded 83/83) | five-protocol five-line bench: connectivity, sampling into Timescale, governed writes, governance, agent closed loop, semantic parameter layer | `node bench/pipeline.mjs --profile integrated` |
626
+ | Multi-scenario closed loop | 4 scenarios · closed loops reached (2026-09-21) | injection-molding weight-window tuning · A²/O wastewater compliance with energy minimum · continuous-annealing quality window vs throughput · BOPET line mission | `node bench/scenarios.mjs --scenarios injection,wwtp,anneal` |
627
+ | Line permissions / audit-negative | 21 / 21 + 9 / 9 (2026-09-12) | three-state line grants with human-readable 403s, binding-subject validation, revocation convergence, unauthenticated WS receives zero telemetry | `node scripts/_dbg-perms-e2e.mjs <base> <adminPass>` · `node scripts/_dbg-audit-neg-e2e.mjs <base> <adminPass>` |
628
+ | Render regression | 30 / 30 (2026-09-12) | DAQ table integrity (row count aligned with the API), WS-driven row updates, filters, detail page, 3D town + model library, 7-page smoke, zero page errors | `node scripts/_dbg-render-regression.mjs <base> <email> <pass>` |
629
+ | AML auto-modeling | 25 / 0 (2026-09-24, deterministic trainer) | dataset build → cross-recipe refusal → job submit → gates → promotion guards → prediction guards → audit; `--real` adds the uv/torch runtime | `node node_modules/tsx/dist/cli.mjs --tsconfig .nuxt/tsconfig.server.json scripts/e2e-aml.ts` |
630
+ | Offline unit/property suites | all green | AEP event index (`test-events-index`), LRU, data-root split (`test-data-root`), log flooding, rollback index, plugin hardening, task lease fencing (`test-task-lease-fencing`), CLI exit codes (`test-cli-exit`), SDK surface (`test-sdk-surface`) | `node scripts/test-<name>.mjs` (TS suites via tsx) |
631
+
632
+ The historical **v0.7.20** acceptance baseline — *156 assertions, 0 failures* — is archived in
633
+ [`docs/audit/e2e-2026-09-07.md`](./docs/audit/e2e-2026-09-07.md). Perf probing:
634
+ `scripts/_dbg-render-perf.mjs`.
635
+
636
+ ---
637
+
638
+ ## Project layout
639
+
640
+ ```
641
+ AgentWorkShop/
642
+ ├── bin/ · cli/ # aw CLI — command registry · built-in commands · config engine
643
+ ├── app/ # Nuxt 4 frontend (srcDir)
644
+ │ ├── pages/ # / · /workshop · /workshop/agents · /workshop/teams
645
+ │ │ # /workshop/channel-templates · /workshop/schedules · /workshop/w/:id
646
+ │ │ # /town · /daq · /daq/:id · /dcw · /dcw/:id
647
+ │ │ # /aml · /operations · /monitor · /logs · /permissions
648
+ │ │ # /plugins · /users · /tokens · /settings
649
+ │ ├── components/workshop/ # timeline · lanes · task board · memory panel · 3D town
650
+ │ └── stores/composables/ # Pinia + AEP client
651
+ ├── server/
652
+ │ ├── api/ # REST + WS + A2A + MCP routes
653
+ │ ├── services/workshop/
654
+ │ │ ├── runtime/ # manager · scheduler-loop · task-engine · memory · mailbox
655
+ │ │ ├── agents/ # AgentInterface: 14 engines (+ industrial tools)
656
+ │ │ ├── daq/ dcw/ aml/ # edge runtimes · drivers · bus · storage · modeling lab
657
+ │ │ └── db/ # repos over node:sqlite
658
+ │ ├── mcp/ # MCP server (25 tools, in-process workshop face)
659
+ │ ├── plugins-builtin/ # plugins shipped with the package (serial-bridge · rag-bridge · diag-bridge · twin-injection-default)
660
+ │ └── plugins/ # runtime assembly (singletons)
661
+ ├── mcp/ # aw mcp — zero-dependency stdio MCP gateway (38 tools, instance auto-discovery)
662
+ ├── sdk/ # agentworkshop/sdk — plugin context, hook bus, REST client, browser SDK
663
+ ├── tui/ # terminal workbench (aw tui)
664
+ ├── shared/
665
+ │ └── config/ # schema.json (119 setting descriptors) + engine (merge/validate/persist) + path resolver
666
+ ├── config.yml # factory defaults (read at build/start; version comes from package.json)
667
+ ├── .AgentWorkShop/ # config root in a checkout — prompts (versioned) + runtime overrides · data · logs · commands (git-ignored)
668
+ ├── data/ # legacy pre-migration location (auto-migrated into the config root)
669
+ └── scripts/ # launchers · home bootstrap · E2E · verification suites
670
+ ```
671
+
672
+ ## Tech stack
673
+
674
+ | Layer | Tech |
675
+ |---|---|
676
+ | Framework | [Nuxt 4](https://nuxt.com) + Nitro (WebSocket) |
677
+ | UI | Vue 3.5 · Pinia · Ant Design Vue · UnoCSS · Three.js · ECharts |
678
+ | Language | TypeScript 5.7 across the stack; `shared/` used by both sides |
679
+ | CLI | Node ESM CLI with a pluggable command registry (`bin/aw.mjs`) |
680
+ | Persistence | `node:sqlite` (zero native deps) + FTS5 + optional `sqlite-vec`; TimescaleDB for time-series |
681
+ | Validation | `zod` at every message boundary |
682
+ | Interop | `@modelcontextprotocol/sdk` · A2A (JSON-RPC 2.0) · AEP v1 (in-house WS protocol) |
683
+ | Field bus | `modbus-serial` · `node-opcua` · `mqtt` |
684
+
685
+ ## Development
686
+
687
+ ```bash
688
+ pnpm dev # dev server (port from effective config)
689
+ pnpm cli … # the CLI in-repo: pnpm cli config list
690
+ pnpm tui # terminal workbench against a running instance
691
+ pnpm build && pnpm start
692
+ pnpm typecheck # wrapper: prepare → strip the stale volar entry → vue-tsc -b
693
+ pnpm lint
694
+ pnpm test:api-live # API suite against a running server
695
+ node scripts/e2e-full-closedloop.mjs # full closed loop (server must be running)
696
+ node scripts/e2e-crash-cycle.mjs # crash → restart → redelivery, manages its own instance
697
+ node scripts/test-sdk-surface.mjs # SDK export-surface guard
698
+ ```
699
+
700
+ > Two test-runner notes worth knowing before you debug a red suite: (1) `pnpm typecheck`
701
+ > runs [`scripts/typecheck.mjs`](./scripts/typecheck.mjs) rather than bare `nuxt typecheck`,
702
+ > because Nuxt 4.5 still writes the `vue-router/volar/sfc-route-blocks` compiler plugin into
703
+ > the generated tsconfig while vue-router 4.6 no longer exports it — bare vue-tsc dies while
704
+ > loading the config, so the check never actually ran; (2) TypeScript suites that import real
705
+ > route handlers (e.g. `scripts/e2e-memory-system.ts`) need the pure-node path
706
+ > `node --experimental-transform-types --import ./scripts/_audit/ts-register-hook.mjs <suite>.ts`,
707
+ > which maps the Nuxt `#imports` virtual module onto a shared-config stub.
708
+
709
+ The docs site lives in `docs/site/` (VitePress) and is deployed to GitHub Pages by
710
+ [`.github/workflows/deploy-docs.yml`](./.github/workflows/deploy-docs.yml):
711
+
712
+ ```bash
713
+ cd docs/site && npx vitepress dev # preview locally
714
+ cd docs/site && npx vitepress build # production build → .vitepress/dist
715
+ ```
716
+
717
+ The workflow syncs `docs/{cli,plugins,sdk}.md` (and their `.en.md` twins) into the site before
718
+ building, so those files are the single source of truth for the single-page guides.
719
+
720
+ ## Deployment (production)
721
+
722
+ Target shape: **single instance on an intranet host, TLS terminated by a reverse proxy**.
723
+ The server intentionally ships no TLS listener of its own — put caddy/nginx in front (they
724
+ also give you HTTP→HTTPS redirect, access logs and a second rate-limit layer).
725
+
726
+ ```bash
727
+ # 1) build + run (prod entry refuses to boot without .output)
728
+ pnpm build
729
+ NUXT_SESSION_PASSWORD=$(node -e "console.log(require('crypto').randomBytes(24).toString('hex'))") \
730
+ PORT=3000 node scripts/start.mjs
731
+ ```
732
+
733
+ **TLS reverse proxy.** caddy (automatic certificates, WebSocket pass-through built in):
734
+
735
+ ```caddy
736
+ aw.example.com {
737
+ reverse_proxy 127.0.0.1:3000
738
+ }
739
+ ```
740
+
741
+ nginx (note the WebSocket `Upgrade` headers — the workbench, HITL panels and live logs are all WS-driven):
742
+
743
+ ```nginx
744
+ server {
745
+ listen 443 ssl;
746
+ server_name aw.example.com;
747
+ # ssl_certificate / ssl_certificate_key ...
748
+ location / {
749
+ proxy_pass http://127.0.0.1:3000;
750
+ proxy_http_version 1.1;
751
+ proxy_set_header Upgrade $http_upgrade;
752
+ proxy_set_header Connection "upgrade";
753
+ proxy_set_header Host $host;
754
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
755
+ proxy_read_timeout 300s;
756
+ }
757
+ }
758
+ ```
759
+
760
+ After the whole site is HTTPS-only, enable `security.hstsEnabled` (runtime settings) so
761
+ responses carry `Strict-Transport-Security`.
762
+
763
+ **Process supervision.** `scripts/start.mjs` already spawns the server as a child with
764
+ crash back-off restart, a 30 s health probe and a heap-watermark proactive restart — put
765
+ *that* under a service manager so the supervisor itself survives reboots:
766
+
767
+ ```ini
768
+ # /etc/systemd/system/agentworkshop.service
769
+ [Service]
770
+ WorkingDirectory=/opt/agentworkshop
771
+ Environment=NUXT_SESSION_PASSWORD=<generated-secret>
772
+ Environment=PORT=3000
773
+ ExecStart=/usr/bin/node scripts/start.mjs
774
+ Restart=always
775
+ User=aw
776
+ [Install]
777
+ WantedBy=multi-user.target
778
+ ```
779
+
780
+ On Windows use `nssm install AgentWorkShop "C:\Program Files\nodejs\node.exe" scripts\start.mjs`.
781
+ Do **not** run a second instance against the same config root — a single-instance lock
782
+ (`.runtime/aw.lock` with heartbeat) makes the newer process take over and the older one exit.
783
+
784
+ **Auth hardening for production.** `security.allowRegistration` defaults to **false**:
785
+ with the first admin in place both register endpoints return 403, accounts are created by
786
+ an admin, and admin-created accounts are flagged `mustChangePassword` — the workbench
787
+ forces a password change at first login (admin password resets flag it again and revoke
788
+ all existing sessions). The bootstrap path is unaffected: with zero users the first
789
+ registered account still becomes the admin.
790
+
791
+ **Backups and restore.** `server/plugins/backup.ts` snapshots, every 24 h (keep 7) into
792
+ `<config root>/.AgentWorkShop/data/backups/`:
793
+
794
+ - the three SQLite databases (`workshop/users/daq-timeseries.sqlite`, WAL-checkpointed, atomic rename)
795
+ - all JSON stores plus `config.yml` / `runtime-settings.json` (`files-<stamp>/`)
796
+ - local object store + exports `daq-objects/` and `daq-exports/` (`objects-<stamp>/`) —
797
+ skipped with a log line when larger than `AW_BACKUP_OBJECTS_MAX_MB` (default 200 MB)
798
+ - a `manifest-<stamp>.json` per run; TimescaleDB/MinIO **docker volumes are not covered** —
799
+ back those up with `pg_dump` / `mc mirror` or volume snapshots
800
+
801
+ Restore drill (do it once before go-live): stop the server → copy `backups/` aside →
802
+ rebuild a data directory from the newest `*.bak` + `files-*` + `objects-*` bundles →
803
+ start → check `/api/health`, admin login, lines/recipes present. `BACKUP_DISABLED=1`,
804
+ `BACKUP_INTERVAL_HOURS` and `BACKUP_KEEP` tune the job.
805
+
806
+ **Production checklist.** generated `NUXT_SESSION_PASSWORD` (boot refuses known dev
807
+ secrets) · `security.allowRegistration=false` (default) · TLS via reverse proxy + HSTS ·
808
+ service manager installed · restore drill passed · `/api/health` + `/api/metrics` wired
809
+ into monitoring · `AW_HEAP_LIMIT_MB` sized for the host · `AW_RATE_LIMIT_OFF` **unset**
810
+ (the built-in rate guard must stay on) · `AW_BENCH_MODE` **unset** (write-control
811
+ interlocks and rate limits must stay fully engaged).
812
+
813
+ **The benchmark switch `AW_BENCH_MODE=1` is for experiments only — never in
814
+ production.** It serves the `bench/` paper pipeline (E1a four-arm ablation). When set
815
+ to 1: the API rate guard is disabled entirely; online-exploration rate limits (per-step
816
+ limit, 60 s minimum write interval, write-hold window) are waived wholesale; the write
817
+ endpoint accepts an `x-aw-bench-arm` header to bypass soft interlock layers
818
+ (no-interlock / no-readback / ungated; hard range and structural checks cannot be
819
+ bypassed by design). The only correct production value is **unset**: the code compares
820
+ strictly `=== '1'`, so the default is always the full arm. The flag is read at module
821
+ load — confirm it is absent **before** the process starts (a misconfiguration warns at
822
+ boot). `AW_RATE_LIMIT_OFF=1` only disables the API rate guard (write-control interlocks
823
+ stay on) and must likewise remain unset in production.
824
+
825
+ ## Research paper
826
+
827
+ The platform's governance mechanisms are documented in a submission-ready manuscript —
828
+ **"Grading Machine-Originated Plant Writes: Separately Inspectable Evidence for Industrial
829
+ Agent Teams"** (IEEE Transactions on Industrial Informatics, anonymous review draft,
830
+ 10 pages, IEEEtran). Source, compiled PDF and the five-seat review trail live in
831
+ [`paper/tii/SUBMISSION-IEEE-TII/`](./paper/tii/SUBMISSION-IEEE-TII/). Every mechanism
832
+ claim in the paper is backed by archives in this repository:
833
+
834
+ - [`docs/benchmarks/`](./docs/benchmarks) — the October 2026 deployment-scale regression
835
+ campaign: 14 pipeline executions, 1134 checks, zero failed (per-run `report.md` /
836
+ `benchmark.json` / `timeline.jsonl`), plus the admission-ablation companion run;
837
+ - [`docs/experiments/`](./docs/experiments) — cast-film closed-loop experiment plan and
838
+ results (the paper's Q3 deterministic loop);
839
+ - [`docs/audit/`](./docs/audit) — acceptance waves (baseline 1100+ assertions; follow-up wave reported item by item) referenced
840
+ by the evaluation section.
841
+
842
+ Re-run the paper pipeline locally: set `AW_BENCH_MODE=1` and follow
843
+ [`bench/PIPELINE.md`](./bench/PIPELINE.md).
844
+
845
+ ## Roadmap
846
+
847
+ | Capability | Status |
848
+ |---|---|
849
+ | Channel runtime, lead orchestration, 7-state task engine | Shipped |
850
+ | Four entry points: WS (AEP v1) · MCP · A2A · REST | Shipped |
851
+ | Persistent memory (FTS5 + optional vector hybrid) | Shipped |
852
+ | Industrial stack: DAQ · DCW write control · lines/recipes/runs | Shipped |
853
+ | Agent ↔ node binding + HITL approval + interlock | Shipped |
854
+ | 3D digital-twin town · line operations UI · dashboards | Shipped |
855
+ | Full-feature live E2E (agent reads/writes a real line, 23 checks) | Shipped |
856
+ | Runtime configuration system: settings persistence · hot reload · settings UI | Shipped |
857
+ | `aw` CLI: config · start/dev · init · register · doctor | Shipped |
858
+ | Multi-harness registry: omp · codex · dsh · opencode subprocess engines | Shipped |
859
+ | Six field protocols: Modbus TCP · Modbus RTU-over-TCP · OPC UA · MQTT · HTTP + the built-in serial-bridge plugin (acquisition + write control) | Shipped |
860
+ | Harness availability probing + dispatch-time engine checks (UI disable + 409) | Shipped |
861
+ | Recipe versioning with attribution + non-destructive rollback (UI + agent tools) | Shipped |
862
+ | Recipe-chain optimization loop: recipe_trial batch trials (no version) → adopt on progress → unified rollback with PLC restore | Shipped |
863
+ | Channel-bound lines: read-only log/recipe/status access for all members, line brief injected into prompts | Shipped |
864
+ | Agent self-audit: line_context / ops_log / recipe_log / recipe_versions / dcw_journal | Shipped |
865
+ | Multi-harness parallel live E2E on a real protocol line (four engines, one line) | Shipped |
866
+ | HITL approval flow verified over real OPC UA writes | Shipped |
867
+ | Bilingual docs (简体中文 / English) with VitePress language switcher | Shipped |
868
+ | Per-channel LLM provider/model selection from live harness catalogs | Shipped |
869
+ | Configurable DAQ/TSDB cadences (sampling & query defaults + floors, live) | Shipped |
870
+ | Team-scoped plugin switches (create-time pick + team dialog, per-channel tool injection) | Shipped |
871
+ | Plugin hot management: `/plugins` page + `aw plugin list/enable/disable` | Shipped |
872
+ | Rendering perf pass (v0.7.27): DAQ main-thread blocking −90%, twin −69%, adaptive quality restored to top tier; `window.__townStats` instrumentation | Shipped |
873
+ | Plugin system v2: browser panel injection, plugin-scoped settings/groups, plugin i18n, host runtime services (`ctx.services`/`ctx.daq`/`ctx.omp`) | Shipped |
874
+ | Instrument Glass material layer (v0.7.36): three-tier translucent materials, vibrancy, specular edges, spring motion, per-page route transitions | Shipped |
875
+ | Realtime pipeline optimizations: DAQ frame indexing O(n²)→O(n), incremental per-agent event index, chart in-place updates, size-aware JSON persistence | Shipped |
876
+ | AML auto-modeling lab: dataset build · job orchestration (uv-managed Python) · leaderboard · promotion gates · 14 agent tools | Shipped |
877
+ | Claude Agent SDK adapter — resident sessions with same-turn steer and `canUseTool` HITL | Shipped |
878
+ | Semantic parameter mapping: `param_control`/`param_read` by process parameter, four-layer write bound, tuning loop (`dcw_judge`/`dcw_rollback`) | Shipped |
879
+ | Channel group chat: requests become trackable jobs; native HITL (`omp` ask → approval → receipt) | Shipped |
880
+ | Scheduled tasks: `interval` / `daily`, per-run history, busy-guard + consecutive-failure circuit breaker | Shipped |
881
+ | Root task queue (FIFO, visible queue positions) + assignment generation & execution-lease fencing | Shipped |
882
+ | Supervision watchdog + harness continuity (`persistent`/`per_turn`, session-reuse lease with restart reasons) | Shipped |
883
+ | Channel process memory: deterministic event contracts, canonical root summary, durable outbox + compensation worker | Shipped |
884
+ | Runtime observability: `GET /api/system/monitor` team metrics, each with a documented rollback switch | Shipped |
885
+ | Industrial bench: integrated profile (83 checks, hard gate) + multi-scenario closed loops (injection / wwtp / anneal / BOPET) + quality-target optloop | Shipped |
886
+ | Full-coverage acceptance wave matrix on a production build (~1100+ real assertions, 2026-09-24) | Shipped |
887
+ | Twin provider plugin SDK: hot-loadable physics/scene/objective/training/solver providers via `ctx.twin`, generation-staged reload with lease draining, bundled provider shipped through the same external contract | Shipped |
888
+ | Any-scene hybrid-twin modeling loop: scene discover → compile → freeze → physics-spec draft/validate/compile → reference-trainer job (physics calibration + residual ensemble + conformal UQ), model-backed trials, continuous-calibration worker | Shipped |
889
+ | Two-mode optimization loop: dedicated `aml-training` / `aml-optimization` channel templates, mutually exclusive tool faces, exploration ↔ production modes with governed read-back-paired micro-writes | Shipped |
890
+ | Line operations feed: `/operations` page + workshop-console panel, nine-category operation timeline, structured write diffs, closed-loop phase inference | Shipped |
891
+ | External MCP gateway: `aw mcp` stdio server (38 tools), instance auto-discovery, `mcp.enabled` runtime gate | Shipped |
892
+ | Configurable system timezone (`time.timeZone`, live) + recipe `stepLimit` per-parameter single-step bound + recipe `description` metadata | Shipped |
893
+ | Production hardening: TLS, MQTT auth, OPC UA sign+encrypt defaults, structured audit log | Planned |
894
+ | Edge deployment shape: standalone edge-agent + central broker | Planned |
895
+ | Alarm outbound delivery (email/webhook) + ack workflow | Planned |
896
+ | CI pipeline (typecheck + lint + e2e) — docs deployment already runs on GitHub Actions | Planned |
897
+ | License: Apache 2.0 (permissive, commercial & production use allowed) | Shipped |
898
+
899
+ ## License
900
+
901
+ AgentWorkShop is an independent project and is **not an official product of Anthropic** or any LLM vendor. It integrates with agent harnesses (e.g. `omp`) through their public interfaces.
902
+
903
+ **AgentWorkShop is open-source software, licensed under the [Apache License 2.0](./LICENSE).**
904
+
905
+ - **Permitted** — personal, academic, and **commercial use**, including production deployment, modification, and redistribution, under the terms of the Apache License 2.0.
906
+ - **Conditions** — retain copyright and license notices, state significant changes, and include the `NOTICE` file when redistributing.
907
+ - **No trademark or warranty** — the license grants no trademark rights and provides the software **"as is"**, without warranties or conditions of any kind.
908
+
909
+ The full terms are in [LICENSE](./LICENSE). Questions: [GitHub @kingdol666](https://github.com/kingdol666).
910
+
911
+ <div align="center">
912
+
913
+ <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
914
+ <picture>
915
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date&theme=dark" />
916
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" />
917
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" width="80%" />
918
+ </picture>
919
+ </a>
920
+
921
+ </div>
922
+
923
+ ---
924
+
925
+ ## Contributing
926
+
927
+ Issues and pull requests are welcome. Before opening a PR:
928
+
929
+ 1. **Read the contract you are touching** — [`docs/plugins.md`](./docs/plugins.md) for the extension surface, [`docs/sdk.md`](./docs/sdk.md) for the programming client, [`docs/cli.md`](./docs/cli.md) for the command registry.
930
+ 2. **Run the guards locally**:
931
+
932
+ ```bash
933
+ pnpm typecheck # vue-tsc across app + server + shared
934
+ pnpm lint # eslint 9, zero warnings expected
935
+ node scripts/e2e-full-closedloop.mjs # full closed loop, server must be running
936
+ node scripts/test-sdk-surface.mjs # SDK export surface must not drift
937
+ node scripts/check-docs-sync.mjs # docs/site pages stay in sync with docs/*.md
938
+ ```
939
+
940
+ 3. **Keep commits conventional** — `commitlint` runs on `commit-msg` (`feat:`, `fix:`, `docs:`, `refactor:`, `perf:`, `test:`, `chore:`), and `lint-staged` fixes staged JS/TS/Vue on commit.
941
+ 4. **Add a test for behavior you change.** The repo leans on live E2E scripts under `scripts/` rather than mocks — a new industrial path should be provable against a running instance.
942
+
943
+ > [!TIP]
944
+ > `aw doctor` checks your environment end to end (Node version, config root, port availability, SQLite, optional Docker services) before you file a bug — it answers most "it does not start" reports immediately.
945
+
946
+ ## Security
947
+
948
+ Please **do not** open a public issue for a vulnerability. Report it privately through [GitHub Security Advisories](https://github.com/kingdol666/AgentWorkShop/security/advisories/new) with a reproduction and the affected version.
949
+
950
+ AgentWorkShop drives real equipment when you point it at real equipment: review `config.yml` interlocks, safe ranges and HITL settings before connecting a live PLC. The default posture is advisory — writes are interlocked, approved and read back — but the plant-side logic is always the final veto.
951
+
952
+ ---
953
+
954
+ <div align="center">
955
+
956
+ **If this project is useful to you, a ⭐ helps other people find it.**
957
+
958
+ <a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
959
+ <picture>
960
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date&theme=dark" />
961
+ <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" />
962
+ <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" width="80%" />
963
+ </picture>
964
+ </a>
965
+
966
+ <br />
967
+
968
+ **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Guide](https://kingdol666.github.io/AgentWorkShop/guide/getting-started)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)** · **[CLI](./docs/cli.md)** · **[中文](./README-zh.md)**
969
+
970
+ <sub>Built with Nuxt 4 · Vue 3 · TypeScript · <code>node:sqlite</code> — supervisory layer, second-level soft real-time.<br />
971
+ Time-critical loops stay in the PLC.</sub>
972
+
973
+ </div>