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
@@ -2,6 +2,7 @@
2
2
  * 运维日志与配方变更史(ops_log / recipe_* / line_context)
3
3
  * (由 server/services/workshop/agents/industrial-tools.ts 按职责拆出;内容逐行原文搬运)
4
4
  */
5
+ import type { RecipeView } from '../../../../../shared/dcw-protocol'
5
6
  import { agentBadgeLabel } from '../agent-badge'
6
7
  import { getActiveLineRun } from '../../dcw/line-run'
7
8
  import { getAgentNodeBindingRepo } from '../node-bindings.repo'
@@ -15,7 +16,7 @@ import { getDcwParamRepo } from '../../dcw/param-map.repo'
15
16
  import { getOps } from '../../ops/ops'
16
17
  import { settingOf } from '../../settings'
17
18
  import { fanoutQuery, windowOf } from './audit-query'
18
- import { assertRecipeOperation, recipeApprovalPayload } from './recipe-gate'
19
+ import { assertRecipeCreate, assertRecipeOperation, recipeApprovalPayload } from './recipe-gate'
19
20
 
20
21
  // ================================================================
21
22
  // 运维日志 / Recipe 变更史查询(Agent 自查面:负责产线 scoped)
@@ -94,14 +95,71 @@ export function fmtAuditAt(iso: string): string {
94
95
  return iso.length >= 19 ? iso.slice(5, 19).replace('T', ' ') : iso
95
96
  }
96
97
 
97
- /** 工具:ops_log —— 负责产线的运维/审计日志查询(全部下发/判定/回退/配方/产线事件)。
98
- * 权限:仅自己绑定节点所覆盖的产线;node_id 须为绑定节点。来源(actor_kind)区分 Agent/用户/系统。 */
98
+ /** 日志行归属标签所需的名称索引(一次构建,行内复用) */
99
+ function scopeMaps() {
100
+ return {
101
+ lines: new Map(getDcwLineRepo().all().map(l => [l.id, l.name])),
102
+ products: new Map(getDcwProductRepo().all().map(p => [p.id, p.name])),
103
+ recipes: new Map(getDcwController().listRecipes().map(r => [r.id, r.name])),
104
+ }
105
+ }
106
+
107
+ type ScopeMaps = ReturnType<typeof scopeMaps>
108
+
109
+ /** 产线标签:名称[完整 id](Agent 可直接把 id 回传给 line_id) */
110
+ function lineLabelOf(id: string, maps: ScopeMaps): string {
111
+ if (!id) return ''
112
+ return `${maps.lines.get(id) ?? '(产线已删除)'}[${id}]`
113
+ }
114
+
115
+ function productLabelOf(id: string, maps: ScopeMaps): string {
116
+ if (!id) return ''
117
+ return `${maps.products.get(id) ?? '(产品已删除)'}[${id}]`
118
+ }
119
+
120
+ function recipeLabelOf(id: string, maps: ScopeMaps): string {
121
+ if (!id) return ''
122
+ return `${maps.recipes.get(id) ?? '(配方已删除)'}[${id}]`
123
+ }
124
+
125
+ /** 单行的域标识 + 归属串:scope + 产线 + 配方 + 产品(空维度显式写 -) */
126
+ function rowScopeOf(row: Record<string, unknown>, maps: ScopeMaps): string {
127
+ const lid = String(row.lineId ?? '')
128
+ const rid = String(row.recipeId ?? '')
129
+ const pid = String(row.productId ?? '')
130
+ const scope = String(row.scope ?? (lid ? 'line' : 'system'))
131
+ return `scope=${scope} 产线=${lineLabelOf(lid, maps) || '-'} 配方=${recipeLabelOf(rid, maps) || '-'} 产品=${productLabelOf(pid, maps) || '-'}`
132
+ }
133
+
134
+ /** 节点归属产线(dcw 优先,daq 兜底);节点不存在/未挂线返回空串 */
135
+ function nodeLineOf(nodeId: string): string {
136
+ try {
137
+ const dcw = getDcwController().byId(nodeId)
138
+ if (dcw) return dcw.lineId ?? ''
139
+ const daq = getDaqNodeRepo().byId(nodeId)
140
+ return daq?.lineId ?? ''
141
+ }
142
+ catch {
143
+ return ''
144
+ }
145
+ }
146
+
147
+ /** 工具:ops_log —— 产线日志查询(下发/判定/回退/配方/产线/数采/告警/人工记录)。
148
+ *
149
+ * **只返回产线域记录**(line_id 非空);登录/用户管理/系统设置/备份等全局审计不进本工具。
150
+ * 权限:节点授权线 ∪ 配方绑定线 ∪ 频道绑定线;line_id/recipe_id 只能缩小范围,不能放大。
151
+ * 时间:from/to 绝对时间优先,否则 minutes 回看;结果行逐条带产线与配方归属。
152
+ */
99
153
  export async function toolOpsLog(agentId: string, args: {
100
154
  line_id?: string
155
+ recipe_id?: string
156
+ product_id?: string
101
157
  node_id?: string
102
158
  kind?: string
103
159
  actor_kind?: string
104
160
  minutes?: number | string
161
+ from?: string
162
+ to?: string
105
163
  limit?: number | string
106
164
  mine?: boolean | string
107
165
  }): Promise<{ text: string, isError?: boolean }> {
@@ -110,76 +168,207 @@ export async function toolOpsLog(agentId: string, args: {
110
168
  const scope = agentOpsScope(agentId)
111
169
  if (!scope) return { text: '你尚未绑定任何工业节点,所在频道也未绑定产线,无日志可查(日志权限跟随节点绑定或频道绑线)。', isError: true }
112
170
  const nodeId = String(args.node_id ?? '').trim()
113
- const lineId = String(args.line_id ?? '').trim()
171
+ const wantedLine = String(args.line_id ?? '').trim()
172
+ const recipeId = String(args.recipe_id ?? '').trim()
173
+ const productId = String(args.product_id ?? '').trim()
114
174
  const readable = readableLineIds(scope)
115
- if (nodeId && !scope.nodeIds.has(nodeId))
116
- return { text: `无权查询节点 ${nodeId} 的日志(仅可查自己绑定的节点;用 my_industrial_nodes 查看绑定)。`, isError: true }
117
- if (lineId && !readable.includes(lineId))
118
- return { text: `无权查询产线 ${lineId} 的日志(你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
175
+ if (wantedLine && !readable.includes(wantedLine))
176
+ return { text: `无权查询产线 ${wantedLine} 的日志(你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
177
+
178
+ // 配方/产品过滤:存在性 + 归属产线校验;它们同时决定默认产线(避免跨线混合结果)
179
+ const recipe = recipeId ? getDcwController().listRecipes().find(r => r.id === recipeId) : undefined
180
+ if (recipeId && !recipe)
181
+ return { text: `配方 ${recipeId} 不存在(用 line_context 查看当前配方 id)。`, isError: true }
182
+ if (recipe?.lineId && !readable.includes(recipe.lineId))
183
+ return { text: `无权查询配方 ${recipeId} 的日志(该配方归属产线 ${recipe.lineId},不在你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
184
+ if (wantedLine && recipe?.lineId && recipe.lineId !== wantedLine)
185
+ return { text: `配方「${recipe.name}」归属产线 ${recipe.lineId},与 line_id=${wantedLine} 不一致;请用正确产线或只传 recipe_id。`, isError: true }
186
+ const product = productId ? getDcwProductRepo().byId(productId) : undefined
187
+ if (productId && !product)
188
+ return { text: `产品 ${productId} 不存在(用 line_context 查看当前产品 id)。`, isError: true }
189
+ if (product?.lineId && !readable.includes(product.lineId))
190
+ return { text: `无权查询产品 ${productId} 的日志(该产品归属产线 ${product.lineId},不在你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
191
+ if (wantedLine && product?.lineId && product.lineId !== wantedLine)
192
+ return { text: `产品「${product.name}」归属产线 ${product.lineId},与 line_id=${wantedLine} 不一致。`, isError: true }
193
+
194
+ // 节点过滤:只读面允许读可读产线上的任意节点(与 tool-verify 的频道绑线只读扩权同口径)
195
+ const nodeLine = nodeId ? nodeLineOf(nodeId) : ''
196
+ if (nodeId && !nodeLine)
197
+ return { text: `节点 ${nodeId} 不存在或未分配产线(用 my_industrial_nodes / line_context 查看在线节点)。`, isError: true }
198
+ if (nodeId && !readable.includes(nodeLine))
199
+ return { text: `无权查询节点 ${nodeId} 的日志(节点归属产线 ${nodeLine},不在你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
200
+ if (wantedLine && nodeLine && nodeLine !== wantedLine)
201
+ return { text: `节点 ${nodeId} 归属产线 ${nodeLine},与 line_id=${wantedLine} 不一致。`, isError: true }
202
+
203
+ const win = windowOf(args)
204
+ if (win.error) return { text: win.error, isError: true }
205
+ const { minutes, limit, from, to } = win
119
206
  const kind = String(args.kind ?? '').trim() || undefined
120
207
  const actorKind = String(args.actor_kind ?? '').trim() || undefined
121
208
  const mine = args.mine === true || args.mine === 'true'
122
- const { minutes, limit, from } = windowOf(args)
123
209
 
124
- const lines = lineId ? [lineId] : readable
125
- let rows = fanoutQuery(audit, lines, lid => ({ lineId: lid, kind, actorKind, actor: mine ? agentId : undefined, from, limit }))
126
- if (nodeId) rows = rows.filter(r => r.targetId === nodeId)
210
+ // 默认产线优先级:显式 line_id > 配方 > 产品 > 节点 > 频道绑线 > 全部可读线
211
+ const channelLine = channelBoundLineId(agentId)
212
+ const lines = wantedLine
213
+ ? [wantedLine]
214
+ : recipe?.lineId
215
+ ? [recipe.lineId]
216
+ : product?.lineId
217
+ ? [product.lineId]
218
+ : nodeLine
219
+ ? [nodeLine]
220
+ : channelLine && readable.includes(channelLine)
221
+ ? [channelLine]
222
+ : readable
223
+
224
+ const maps = scopeMaps()
225
+ let rows = fanoutQuery(audit, lines, lid => ({
226
+ scope: 'line',
227
+ lineId: lid,
228
+ recipeId: recipeId || undefined,
229
+ productId: productId || undefined,
230
+ kind,
231
+ actorKind,
232
+ actor: mine ? agentId : undefined,
233
+ targetId: nodeId || undefined,
234
+ from,
235
+ ...(to ? { to } : {}),
236
+ limit,
237
+ }))
127
238
  rows.sort((a, b) => String(b.at).localeCompare(String(a.at)))
128
239
  rows = rows.slice(0, limit)
129
- if (rows.length === 0) return { text: `窗口(近 ${minutes} 分钟)内无匹配日志。可调大 minutes,或放宽 kind/actor_kind/node_id 过滤。` }
240
+
241
+ const lineNote = lines.length === 1 ? `产线 ${lineLabelOf(lines[0]!, maps)}` : `可读产线 ${lines.length} 条`
242
+ const filterBits = [lineNote]
243
+ if (recipeId) filterBits.push(`配方 ${recipeLabelOf(recipeId, maps)}`)
244
+ if (productId) filterBits.push(`产品 ${productLabelOf(productId, maps)}`)
245
+ if (nodeId) filterBits.push(`节点 ${nodeId}`)
246
+ if (kind) filterBits.push(`分类 ${kind}`)
247
+ if (actorKind) filterBits.push(`来源 ${actorKind}`)
248
+ if (mine) filterBits.push('仅我自己')
249
+ const windowNote = to
250
+ ? `时间窗 ${String(from).slice(0, 19).replace('T', ' ')} ~ ${String(to).slice(0, 19).replace('T', ' ')}`
251
+ : `近 ${minutes} 分钟`
252
+ if (rows.length === 0) {
253
+ return {
254
+ text: `${windowNote}内无匹配的产线日志(${filterBits.join('; ')})。可调大 minutes / 放宽 kind、actor_kind、node_id,或确认 line_id/recipe_id 是否正确;先 line_context 核对产线与配方 id。`,
255
+ }
256
+ }
130
257
 
131
258
  const body = rows.map((r) => {
132
259
  const src = OPS_ACTOR_LABEL[String(r.actorKind)] ?? String(r.actorKind)
133
- return `- [${fmtAuditAt(String(r.at))}] 来源=${src} 操作者=${String(r.actorName) || String(r.actor)} | ${String(r.action)} | ${String(r.summary)}`
260
+ return `- [${fmtAuditAt(String(r.at))}] ${rowScopeOf(r, maps)} | 来源=${src} 操作者=${String(r.actorName) || String(r.actor)} | ${String(r.action)} | ${String(r.summary)}`
134
261
  })
135
- const scopeNote = lineId ? `产线 ${lineId}` : `可读产线 ${readable.length} 条`
136
262
  return {
137
- text: `运维日志(${scopeNote},近 ${minutes} 分钟,${rows.length} 条,新→旧):\n${body.join('\n')}\n\n说明:来源=Agent 的操作者格式为「Channel名/成员名」;需要节点级参数值变更史用 dcw_journal,配方下发/回退专门视图用 recipe_log。`,
263
+ text: `产线日志(${filterBits.join('; ')}, ${windowNote}, ${rows.length} 条, 新→旧):\n${body.join('\n')}\n\n说明:只含产线域记录(登录/用户管理/系统设置/备份等全局审计不在本工具);来源=Agent 的操作者格式为「Channel名/成员名」;节点级参数值变更史用 dcw_journal,配方下发/回退专门视图用 recipe_log。`,
138
264
  }
139
265
  }
140
266
 
141
- /** 工具:recipe_log —— 负责产线的配方下发与回退历史(recipe.apply + 优化开窗/判定/回退)。
142
- * Agent 据此知道 Recipe 层面发生过哪些下发变更、谁做的、是否已回退。 */
267
+ /** 工具:recipe_log —— 产线的配方变更史(创建/更新/试验/正式下发/ACK 鉴定/回退)。
268
+ *
269
+ * **只返回产线域记录**(line_id 非空);按 action 前缀 recipe. 跨 kind 取全族
270
+ * (recipe.apply 的 ACK 行 kind=write 也会命中),再叠加 optimization.* 回退记录。
271
+ * 时间:from/to 绝对时间优先,否则 minutes 回看;结果行逐条带产线与配方归属。
272
+ */
143
273
  export async function toolRecipeLog(agentId: string, args: {
144
274
  line_id?: string
145
275
  recipe_id?: string
276
+ product_id?: string
146
277
  minutes?: number | string
278
+ from?: string
279
+ to?: string
147
280
  limit?: number | string
148
281
  }): Promise<{ text: string, isError?: boolean }> {
149
282
  const audit = getOps()?.audit
150
283
  if (!audit) return { text: '审计仓储未装配(服务未就绪),请稍后重试。', isError: true }
151
284
  const scope = agentOpsScope(agentId)
152
285
  if (!scope) return { text: '你尚未绑定任何工业节点,所在频道也未绑定产线,无 Recipe 历史可查(权限跟随节点绑定或频道绑线)。', isError: true }
153
- const lineId = String(args.line_id ?? '').trim()
286
+ const wantedLine = String(args.line_id ?? '').trim()
287
+ const recipeId = String(args.recipe_id ?? '').trim()
288
+ const productId = String(args.product_id ?? '').trim()
154
289
  const readable = readableLineIds(scope)
155
- if (lineId && !readable.includes(lineId))
156
- return { text: `无权查询产线 ${lineId} 的 Recipe 历史(你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
157
- const recipeId = String(args.recipe_id ?? '').trim() || undefined
158
- const { minutes, limit, from } = windowOf(args)
290
+ if (wantedLine && !readable.includes(wantedLine))
291
+ return { text: `无权查询产线 ${wantedLine} 的 Recipe 历史(你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
292
+
293
+ const recipe = recipeId ? getDcwController().listRecipes().find(r => r.id === recipeId) : undefined
294
+ if (recipeId && !recipe)
295
+ return { text: `配方 ${recipeId} 不存在(用 line_context 查看当前配方 id)。`, isError: true }
296
+ if (recipe?.lineId && !readable.includes(recipe.lineId))
297
+ return { text: `无权查询配方 ${recipeId} 的 Recipe 历史(该配方归属产线 ${recipe.lineId},不在你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
298
+ if (wantedLine && recipe?.lineId && recipe.lineId !== wantedLine)
299
+ return { text: `配方「${recipe.name}」归属产线 ${recipe.lineId},与 line_id=${wantedLine} 不一致;请用正确产线或只传 recipe_id。`, isError: true }
300
+ const product = productId ? getDcwProductRepo().byId(productId) : undefined
301
+ if (productId && !product)
302
+ return { text: `产品 ${productId} 不存在(用 line_context 查看当前产品 id)。`, isError: true }
303
+ if (product?.lineId && !readable.includes(product.lineId))
304
+ return { text: `无权查询产品 ${productId} 的 Recipe 历史(该产品归属产线 ${product.lineId},不在你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
159
305
 
160
- const lines = lineId ? [lineId] : readable
306
+ const win = windowOf(args)
307
+ if (win.error) return { text: win.error, isError: true }
308
+ const { minutes, limit, from, to } = win
309
+
310
+ const channelLine = channelBoundLineId(agentId)
311
+ const lines = wantedLine
312
+ ? [wantedLine]
313
+ : recipe?.lineId
314
+ ? [recipe.lineId]
315
+ : product?.lineId
316
+ ? [product.lineId]
317
+ : channelLine && readable.includes(channelLine)
318
+ ? [channelLine]
319
+ : readable
320
+
321
+ const maps = scopeMaps()
161
322
  const rows = fanoutQuery(audit, lines, lid => [
162
- { lineId: lid, kind: 'recipe', recipeId, from, limit },
163
- { lineId: lid, kind: 'rollback', recipeId, from, limit },
323
+ // recipe.* 全族:创建/更新/试验/正式下发/ACK 鉴定/回退定义(跨 kind=recipe/write)
324
+ { scope: 'line', lineId: lid, recipeId: recipeId || undefined, productId: productId || undefined, actionPrefix: 'recipe.', from, ...(to ? { to } : {}), limit },
325
+ // 开跑/停线也属于"配方下发作业"(lineStart 会整批下发该配方参数)
326
+ { scope: 'line', lineId: lid, recipeId: recipeId || undefined, productId: productId || undefined, action: 'line.start', from, ...(to ? { to } : {}), limit },
327
+ { scope: 'line', lineId: lid, recipeId: recipeId || undefined, productId: productId || undefined, action: 'line.stop', from, ...(to ? { to } : {}), limit },
328
+ // 优化记录的开窗/判定/回退(kind=rollback,action=optimization.*)
329
+ { scope: 'line', lineId: lid, recipeId: recipeId || undefined, productId: productId || undefined, kind: 'rollback', from, ...(to ? { to } : {}), limit },
164
330
  ]).sort((a, b) => String(b.at).localeCompare(String(a.at))).slice(0, limit)
165
- if (rows.length === 0) return { text: `窗口(近 ${minutes} 分钟)内无配方下发/回退记录。可调大 minutes 或换 line_id。` }
331
+
332
+ const lineNote = lines.length === 1 ? `产线 ${lineLabelOf(lines[0]!, maps)}` : `可读产线 ${lines.length} 条`
333
+ const filterBits = [lineNote]
334
+ if (recipeId) filterBits.push(`配方 ${recipeLabelOf(recipeId, maps)}`)
335
+ if (productId) filterBits.push(`产品 ${productLabelOf(productId, maps)}`)
336
+ const windowNote = to
337
+ ? `时间窗 ${String(from).slice(0, 19).replace('T', ' ')} ~ ${String(to).slice(0, 19).replace('T', ' ')}`
338
+ : `近 ${minutes} 分钟`
339
+ if (rows.length === 0) {
340
+ return {
341
+ text: `${windowNote}内无配方变更记录(${filterBits.join('; ')})。可调大 minutes / 放宽时间窗,或确认 line_id/recipe_id 是否正确;先 line_context 核对产线与配方 id。`,
342
+ }
343
+ }
344
+
345
+ const tagOf = (action: string): string => ({
346
+ 'recipe.apply': '配方下发',
347
+ 'recipe.dispatch.ack': '下发回执',
348
+ 'recipe.trial': '配方试验',
349
+ 'recipe.update': '配方更新',
350
+ 'recipe.update.agent': 'Agent 配方更新',
351
+ 'recipe.revert': '配方回退',
352
+ 'recipe.create': '配方创建',
353
+ 'recipe.delete': '配方删除',
354
+ 'recipe.propose': '方案审批',
355
+ 'recipe.mark-good': '标记良好批次',
356
+ 'recipe.rollback-good': '回退到良好批次',
357
+ 'line.start': '开跑整批下发',
358
+ 'line.stop': '停线',
359
+ 'optimization.open': '优化开窗',
360
+ 'optimization.judge': '优化判定',
361
+ 'optimization.rollback': '回退执行',
362
+ } as Record<string, string>)[action] ?? action
166
363
 
167
364
  const body = rows.map((r) => {
168
365
  const src = OPS_ACTOR_LABEL[String(r.actorKind)] ?? String(r.actorKind)
169
366
  const action = String(r.action)
170
- const tag = action === 'recipe.apply'
171
- ? '配方下发'
172
- : action === 'optimization.open'
173
- ? '优化开窗'
174
- : action === 'optimization.judge'
175
- ? '优化判定'
176
- : action === 'optimization.rollback'
177
- ? '回退执行'
178
- : action
179
- return `- [${fmtAuditAt(String(r.at))}] ${tag} 来源=${src} 操作者=${String(r.actorName) || String(r.actor)} | ${String(r.summary)}${r.recipeId ? `(配方 ${String(r.recipeId).slice(0, 8)})` : ''}`
367
+ return `- [${fmtAuditAt(String(r.at))}] ${tagOf(action)} ${rowScopeOf(r, maps)} | 来源=${src} 操作者=${String(r.actorName) || String(r.actor)} | ${String(r.summary)}`
180
368
  })
181
- const text = `Recipe 变更史(${lineId ? `产线 ${lineId}` : `可读产线 ${readable.length} 条`},近 ${minutes} 分钟,${rows.length} 条,新→旧):\n${body.join('\n')}\n\n说明:配方下发=整批参数写命令;优化开窗=单次设定变更(含 Agent 假设);回退执行=已恢复基线值。节点级参数值逐笔历史用 dcw_journal(node_id)。`
182
- return { text }
369
+ return {
370
+ text: `Recipe 变更史(${filterBits.join('; ')}, ${windowNote}, ${rows.length} 条, 新→旧):\n${body.join('\n')}\n\n说明:只含产线域记录;配方下发=整批参数写命令;下发回执=逐参数 ACK 鉴定;配方试验=候选整批下发(不写版本);优化开窗/判定/回退=单次设定变更与恢复。节点级参数值逐笔历史用 dcw_journal(node_id)。`,
371
+ }
183
372
  }
184
373
 
185
374
  // ================================================================
@@ -273,6 +462,215 @@ export async function toolLineContext(agentId: string, args: { line_id?: string
273
462
  }
274
463
  }
275
464
 
465
+ /** 工具:recipe_catalog —— 可读产线上的配方目录(找 id / 当前执行配方 / 产品归属)。
466
+ * 解决 Agent 只能从 line_context 文本里猜 recipe_id 的问题:按产线/产品/关键字过滤,
467
+ * 每条给出 id、版本、产品、参数数量与当前 PLC 值、是否正在执行、良好批次。 */
468
+ export async function toolRecipeCatalog(agentId: string, args: { line_id?: string, product_id?: string, q?: string, limit?: number | string } = {}): Promise<{ text: string, isError?: boolean }> {
469
+ const scope = agentOpsScope(agentId)
470
+ if (!scope) return { text: '你尚未绑定任何工业节点,所在频道也未绑定产线,无可见配方(权限跟随节点绑定或频道绑线)。', isError: true }
471
+ const readable = readableLineIds(scope)
472
+ const wantedLine = String(args.line_id ?? '').trim()
473
+ if (wantedLine && !readable.includes(wantedLine)) {
474
+ return { text: `无权查看产线 ${wantedLine} 的配方(你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
475
+ }
476
+ const productId = String(args.product_id ?? '').trim()
477
+ const product = productId ? getDcwProductRepo().byId(productId) : undefined
478
+ if (productId && !product) return { text: `产品 ${productId} 不存在。`, isError: true }
479
+ if (product?.lineId && !readable.includes(product.lineId)) return { text: `无权查看产品 ${productId} 的配方(产品归属产线 ${product.lineId} 不在你的可读范围)。`, isError: true }
480
+ const q = String(args.q ?? '').trim().toLowerCase()
481
+ const limit = Math.min(Math.max(Math.round(Number(args.limit)) || 20, 1), 100)
482
+ const lines = wantedLine ? [wantedLine] : product?.lineId ? [product.lineId] : readable
483
+ const all = getDcwController().listRecipes().filter(r => lines.includes(r.lineId))
484
+ const filtered = all.filter((r) => {
485
+ if (productId && r.productId !== productId) return false
486
+ if (q && !`${r.name} ${r.description ?? ''}`.toLowerCase().includes(q)) return false
487
+ return true
488
+ })
489
+ const shown = filtered.slice(0, limit)
490
+ const maps = scopeMaps()
491
+ const body = shown.map((r) => {
492
+ const active = getActiveLineRun(r.lineId)
493
+ const running = active?.recipeId === r.id
494
+ const prod = getDcwProductRepo().byId(r.productId)
495
+ const pp = r.params.map((p) => {
496
+ const node = getDcwController().byId(p.nodeId)
497
+ const cur = node?.value != null ? `→PLC ${node.value}${node.unit ?? ''}` : ''
498
+ return `${node?.name ?? p.nodeId}=${p.value}${node?.unit ?? ''}${cur}`
499
+ }).join(', ')
500
+ return `- ${r.name}(id=${r.id}) v${r.version ?? 1} | 产线 ${lineLabelOf(r.lineId, maps)} | 产品 ${prod?.name ?? r.productId}(${r.productId}) | ${running ? '**当前执行中**' : '未执行'} | 参数 ${r.params.length} 项: ${pp}${r.lastGoodRunId ? ` | 良好批次 ${r.lastGoodRunId.slice(0, 8)}` : ''}`
501
+ })
502
+ return {
503
+ text: `配方目录(${filtered.length} 个${wantedLine ? `,产线 ${wantedLine}` : ''}${productId ? `,产品 ${productId}` : ''}${q ? `,关键字「${args.q}」` : ''};显示 ${shown.length} 条):\n${body.join('\n') || '(无匹配配方)'}${filtered.length > shown.length ? `\n(另有 ${filtered.length - shown.length} 个未显示,可收紧过滤或调大 limit)` : ''}\n\n说明:recipe_apply/recipe_trial/recipe_update 需要 recipe_id;若只知产线,可直接传 line_id 让工具解析当前执行配方。新建/另存配方用 recipe_create(manual 线需人工批准)。`,
504
+ }
505
+ }
506
+
507
+ /** 工具:recipe_create —— 把当前配方/批次冻结参数另存为新配方(不触产线)。
508
+ * 典型用法:优化验证后把"当前有效配方 + 实测参数"固化成新配方(如产品换型/新工艺基线)。
509
+ * 权限:需在该产线已有写向绑定(数控节点或配方);manual 线/绑定 → 人工批准。
510
+ * 新建后不会自动绑定给 Agent,需用户/lead 在界面绑定后才能继续 update/apply(返回文案会提示)。 */
511
+ export async function toolRecipeCreate(agentId: string, args: {
512
+ name?: string
513
+ description?: string
514
+ product_id?: string
515
+ line_id?: string
516
+ source_recipe_id?: string
517
+ from_run_id?: string
518
+ use_active_run?: boolean | string
519
+ params?: Array<{ node_id?: string, value?: number | string, min?: number | string, max?: number | string, step_limit?: number | string }>
520
+ daq_windows?: Array<{ node_id?: string, min?: number | string, max?: number | string }>
521
+ access?: { require_auth?: boolean, authorized_agent_ids?: string[] }
522
+ reason?: string
523
+ }): Promise<{ text: string, isError?: boolean }> {
524
+ const name = String(args.name ?? '').trim()
525
+ const reason = String(args.reason ?? '').trim()
526
+ if (!name) return { text: 'name 必填:新配方名称。', isError: true }
527
+ if (!reason) return { text: 'reason 必填:说明为什么另存为新配方(依据/用途),便于版本史与人工审批。', isError: true }
528
+ const records = getDcwController().listRecipes()
529
+ const sourceId = String(args.source_recipe_id ?? '').trim()
530
+ let source = sourceId ? records.find(r => r.id === sourceId) : undefined
531
+ if (sourceId && !source) return { text: `源配方 ${sourceId} 不存在。`, isError: true }
532
+ const runId = String(args.from_run_id ?? '').trim()
533
+ let run = runId ? getDcwRecipeRepo().runById(runId) : undefined
534
+ if (runId && !run) return { text: `批次 ${runId} 不存在。`, isError: true }
535
+ if (!source && run) {
536
+ const runRecipeId = run.recipeId
537
+ source = records.find(r => r.id === runRecipeId)
538
+ }
539
+ const scope = agentOpsScope(agentId)
540
+ const readable = scope ? readableLineIds(scope) : []
541
+ let lineId = String(args.line_id ?? '').trim() || source?.lineId || (run as { lineId?: string } | undefined)?.lineId || ''
542
+ if (!lineId) {
543
+ const active = getActiveLineRun(channelBoundLineId(agentId) ?? '')
544
+ lineId = active?.lineId ?? readable[0] ?? ''
545
+ }
546
+ // use_active_run:显式要求以当前活动批次为源(参数用批次冻结快照)
547
+ if (!run && (args.use_active_run === true || args.use_active_run === 'true') && lineId) {
548
+ const active = getActiveLineRun(lineId)
549
+ if (active) {
550
+ run = getDcwRecipeRepo().runById(active.runId)
551
+ if (!source) source = records.find(r => r.id === active.recipeId)
552
+ }
553
+ }
554
+ if (!lineId) return { text: '无法确定产线:请提供 line_id 或 source_recipe_id(from_run_id 也可推断)。', isError: true }
555
+ if (!readable.includes(lineId)) return { text: `无权在产线 ${lineId} 新建配方(你的可读产线:${readable.join(', ') || '(无)'})。`, isError: true }
556
+ const productId = String(args.product_id ?? '').trim() || source?.productId || (run?.productId ?? '')
557
+ const product = productId ? getDcwProductRepo().byId(productId) : undefined
558
+ if (!productId || !product) return { text: `产品 ${productId || '(未提供)'} 不存在;新配方必须归属产品(product_id 或源配方可推断)。`, isError: true }
559
+ if (product.lineId !== lineId) return { text: `产品「${product.name}」归属产线 ${product.lineId},与目标产线 ${lineId} 不一致。`, isError: true }
560
+ if (source && source.lineId !== lineId) return { text: `源配方「${source.name}」归属产线 ${source.lineId},与目标产线 ${lineId} 不一致。`, isError: true }
561
+
562
+ // 参数来源优先级:显式 params > 批次冻结快照 > 源配方定义
563
+ type NewParam = { nodeId: string, value: number, min?: number, max?: number, stepLimit?: number, templateRef?: string }
564
+ let params: NewParam[]
565
+ if (Array.isArray(args.params) && args.params.length > 0) {
566
+ params = []
567
+ for (const p of args.params) {
568
+ const nodeId = String(p?.node_id ?? '').trim()
569
+ const value = Number(p?.value)
570
+ if (!nodeId || !Number.isFinite(value)) return { text: 'params 每项必须提供 node_id 与数值 value。', isError: true }
571
+ const node = getDcwController().byId(nodeId)
572
+ if (!node) return { text: `节点 ${nodeId} 不存在。`, isError: true }
573
+ if (node.lineId !== lineId) return { text: `节点「${node.name}」不在目标产线 ${lineId},不能写入新配方。`, isError: true }
574
+ if (!node.enabled) return { text: `节点「${node.name}」已停用,不能写入新配方。`, isError: true }
575
+ const one: NewParam = { nodeId, value }
576
+ if (p?.min != null && Number.isFinite(Number(p.min))) one.min = Number(p.min)
577
+ if (p?.max != null && Number.isFinite(Number(p.max))) one.max = Number(p.max)
578
+ if (p?.step_limit != null && Number.isFinite(Number(p.step_limit))) one.stepLimit = Number(p.step_limit)
579
+ params.push(one)
580
+ }
581
+ }
582
+ else if (run?.paramsSnapshot?.length) {
583
+ params = run.paramsSnapshot.map(p => ({ nodeId: p.nodeId, value: p.value, min: p.min, max: p.max, stepLimit: p.stepLimit, templateRef: p.templateRef }))
584
+ }
585
+ else if (source) {
586
+ params = source.params.map(p => ({ nodeId: p.nodeId, value: p.value, min: p.min, max: p.max, stepLimit: p.stepLimit, templateRef: p.templateRef }))
587
+ }
588
+ else {
589
+ return { text: '没有可另存的参数:请提供 params,或给 source_recipe_id/from_run_id。', isError: true }
590
+ }
591
+ const windows = Array.isArray(args.daq_windows)
592
+ ? args.daq_windows
593
+ .map((w) => {
594
+ const nodeId = String(w?.node_id ?? '').trim()
595
+ const min = w?.min != null && Number.isFinite(Number(w.min)) ? Number(w.min) : undefined
596
+ const max = w?.max != null && Number.isFinite(Number(w.max)) ? Number(w.max) : undefined
597
+ return { nodeId, ...(min !== undefined ? { min } : {}), ...(max !== undefined ? { max } : {}) }
598
+ })
599
+ .filter(w => w.nodeId)
600
+ : (source?.daqWindows ?? [])
601
+ const access = args.access
602
+ ? {
603
+ requireAuth: args.access.require_auth === true,
604
+ authorizedAgentIds: (args.access.authorized_agent_ids ?? []).map(x => String(x ?? '').trim()).filter(Boolean),
605
+ }
606
+ : source?.access
607
+
608
+ const gate = assertRecipeCreate(agentId, lineId)
609
+ if (!gate.ok) return { text: gate.text, isError: true }
610
+ let hitlNote = ''
611
+ if (gate.hitlRequired) {
612
+ const gateDecision = await hitlDispatchGate(
613
+ agentId,
614
+ `new-${lineId}`,
615
+ `新建配方「${name}」:产线 ${lineId} / 产品「${product.name}」(${productId}) | 参数 ${params.length} 项: ${params.map((p) => {
616
+ const node = getDcwController().byId(p.nodeId)
617
+ return `${node?.name ?? p.nodeId}=${p.value}${node?.unit ?? ''}`
618
+ }).join(';')} | 来源 ${run ? `批次 ${run.id.slice(0, 8)} 冻结快照` : source ? `配方「${source.name}」v${source.version ?? 1}` : '显式参数'} | 理由:${reason} | 批准=创建配方定义(不下发产线)`,
619
+ '新建配方审批',
620
+ {
621
+ payload: {
622
+ schemaVersion: 1,
623
+ kind: 'recipe-gate',
624
+ op: 'create',
625
+ recipeId: '',
626
+ recipeName: name,
627
+ lineId,
628
+ productId,
629
+ reason,
630
+ params: params.map((p) => {
631
+ const node = getDcwController().byId(p.nodeId)
632
+ return { nodeId: p.nodeId, name: node?.name ?? p.nodeId, from: null, to: p.value, unit: node?.unit }
633
+ }),
634
+ ...(run ? { runId: run.id } : {}),
635
+ },
636
+ },
637
+ )
638
+ if (!gateDecision.approved) {
639
+ return { text: `人工未批准新建配方。人工指导:${gateDecision.comment || '(无附言)'}。请按指导调整参数/命名后重试。` }
640
+ }
641
+ if (gateDecision.comment) hitlNote = `\n人工附言:${gateDecision.comment}`
642
+ const again = assertRecipeCreate(agentId, lineId)
643
+ if (!again.ok) return { text: `人工已批准,但审批期间授权已失效,本次未创建:${again.text}`, isError: true }
644
+ }
645
+ try {
646
+ const created = getDcwController().createRecipe({
647
+ name,
648
+ productId,
649
+ description: String(args.description ?? '').trim() || `另存自${run ? `批次 ${run.id.slice(0, 8)}` : source ? `配方「${source.name}」v${source.version ?? 1}` : 'Agent 参数'}`,
650
+ params,
651
+ daqWindows: windows,
652
+ ...(access ? { access } : {}),
653
+ })
654
+ try {
655
+ const { recordOps } = await import('../../ops/ops')
656
+ recordOps({
657
+ actor: agentId, actorName: agentBadgeLabel(agentId), actorKind: 'agent',
658
+ action: 'recipe.create', kind: 'recipe', targetKind: 'recipe', targetId: created.id,
659
+ lineId: created.lineId, productId: created.productId, recipeId: created.id,
660
+ summary: `新建配方「${created.name}」v${created.version ?? 1}(另存自${run ? `批次 ${run.id.slice(0, 8)} 冻结参数` : source ? `配方「${source.name}」v${source.version ?? 1}` : '显式参数'}) | 理由:${reason}`,
661
+ detail: { sourceRecipeId: source?.id ?? null, sourceRunId: run?.id ?? null, params: params.length, reason },
662
+ })
663
+ }
664
+ catch { /* 审计失败不影响创建 */ }
665
+ return {
666
+ text: `已创建配方「${created.name}」(id=${created.id},v${created.version ?? 1},产品 ${product.name},参数 ${params.length} 项)。${hitlNote}\n注意:新配方尚未绑定给你 —— 请让用户/lead 在配方管理中把「${created.name}」绑定给你的 Agent(首绑 manual,需人工批准),之后才能 recipe_update/recipe_apply。当前产线未因此发生变化(仅创建定义,未下发)。`,
667
+ }
668
+ }
669
+ catch (err) {
670
+ return { text: `新建配方失败:${err instanceof Error ? err.message : String(err)}`, isError: true }
671
+ }
672
+ }
673
+
276
674
  /** 工具:recipe_versions —— 配方参数版本史(谁/何时/为什么改了什么;旧→新)。
277
675
  * 每条含 by(user/agent/system)、操作者人话名、变更描述、参数 diff。 */
278
676
  export async function toolRecipeVersions(agentId: string, args: { recipe_id?: string, limit?: number | string }): Promise<{ text: string, isError?: boolean }> {
@@ -314,24 +712,44 @@ export async function toolRecipeVersions(agentId: string, args: { recipe_id?: st
314
712
  }
315
713
  }
316
714
 
715
+ /** 配方目标解析:recipe_id 优先;只给 line_id 时解析该线当前活动批次的配方。
716
+ * 这样 Agent 可以直接对"当前在跑的配方"下发,不必先从文本里抠 id。 */
717
+ function resolveRecipeTarget(recipeIdRaw: unknown, lineIdRaw: unknown): { ok: true, recipe: RecipeView } | { ok: false, text: string } {
718
+ const recipeId = String(recipeIdRaw ?? '').trim()
719
+ const lineId = String(lineIdRaw ?? '').trim()
720
+ if (recipeId) {
721
+ const recipe = getDcwController().listRecipes().find(r => r.id === recipeId)
722
+ if (!recipe) return { ok: false, text: `配方 ${recipeId} 不存在(用 recipe_catalog/line_context 查看配方 id)。` }
723
+ if (lineId && recipe.lineId !== lineId) return { ok: false, text: `配方「${recipe.name}」归属产线 ${recipe.lineId},与 line_id=${lineId} 不一致。` }
724
+ return { ok: true, recipe }
725
+ }
726
+ if (!lineId) return { ok: false, text: 'recipe_id 与 line_id 至少提供一个:只给 line_id 时按该产线当前活动批次解析配方。' }
727
+ const active = getActiveLineRun(lineId)
728
+ if (!active) return { ok: false, text: `产线 ${lineId} 当前没有活动批次,无法解析"当前配方";请先开跑配方,或直接提供 recipe_id。` }
729
+ const recipe = getDcwController().listRecipes().find(r => r.id === active.recipeId)
730
+ if (!recipe) return { ok: false, text: `活动批次引用的配方 ${active.recipeId} 不存在或已删除。` }
731
+ return { ok: true, recipe }
732
+ }
733
+
317
734
  /** 工具:recipe_update —— 把验证过的最佳参数保存进配方(生成新版本,带归因与原因)。
318
735
  * 权限模型 v2:需绑定该 recipe(kind='recipe')且通过二级认证与运行门(配方须在执行);
319
736
  * 绑定 manual 时本次保存挂 HITL 等人工批准(理由随审批卡展示)。
320
737
  * 只改配方定义;要把参数推到运行中的产线用 recipe_apply(整批下发)。 */
321
738
  export async function toolRecipeUpdate(agentId: string, args: {
322
739
  recipe_id?: string
740
+ line_id?: string
323
741
  params?: Array<{ node_id?: string, value?: number | string, min?: number | string, max?: number | string }>
324
742
  reason?: string
325
743
  task_id?: string
326
744
  }): Promise<{ text: string, isError?: boolean }> {
327
- const recipeId = String(args.recipe_id ?? '').trim()
328
745
  const reason = String(args.reason ?? '').trim()
329
- if (!recipeId) return { text: 'recipe_id 必填(line_context 可看到当前配方的 id)。', isError: true }
330
746
  if (!reason) return { text: 'reason 必填:保存参数必须说明依据(如数采证据/判定结论),便于版本史追溯与人工审批判断。', isError: true }
331
747
  const list = (args.params ?? []).filter(p => p && String(p.node_id ?? '').trim() && Number.isFinite(Number(p.value)))
332
748
  if (list.length === 0) return { text: 'params 至少提供一条 {node_id, value}(value 必须为数字)。', isError: true }
333
- const recipe = getDcwController().listRecipes().find(r => r.id === recipeId)
334
- if (!recipe) return { text: `配方 ${recipeId} 不存在。`, isError: true }
749
+ const target = resolveRecipeTarget(args.recipe_id, args.line_id)
750
+ if (!target.ok) return { text: target.text, isError: true }
751
+ const recipe = target.recipe
752
+ const recipeId = recipe.id
335
753
  // 权限模型 v2:绑定 → 二级认证 → 运行门(未在执行的配方不可操作)
336
754
  const gate = assertRecipeOperation(agentId, recipe, 'update')
337
755
  if (!gate.ok) return { text: gate.text, isError: true }
@@ -370,6 +788,8 @@ export async function toolRecipeUpdate(agentId: string, args: {
370
788
  }
371
789
  }
372
790
  if (gateDecision.comment) hitlNote = `\n人工附言:${gateDecision.comment}`
791
+ const stale = await revalidateApprovedAction(agentId, recipe, 'update', 'recipe_update', { recipe_id: recipeId })
792
+ if (stale) return stale
373
793
  }
374
794
  // 旧值快照(repo.update 原地改写 recipe.params,事后再取会把 before 读成新值)
375
795
  const beforeOf = new Map(recipe.params.map(p => [p.nodeId, p.value]))
@@ -476,6 +896,8 @@ export async function toolRecipeRollback(agentId: string, args: {
476
896
  }
477
897
  }
478
898
  if (gateDecision.comment) hitlNote = `\n人工附言:${gateDecision.comment}`
899
+ const stale = await revalidateApprovedAction(agentId, recipe, 'rollback', 'recipe_rollback', { recipe_id: recipeId })
900
+ if (stale) return stale
479
901
  }
480
902
  try {
481
903
  if (dispatch) {
@@ -556,6 +978,42 @@ async function hitlDispatchGate(agentId: string, recipeId: string, detail: strin
556
978
  return { approved: decision.approved, comment: decision.comment, id: decision.id }
557
979
  }
558
980
 
981
+ /**
982
+ * 审批返回「批准」后的二次授权复核(2026-10-18):审批可能挂起数分钟,
983
+ * 期间绑定/产线授权/运行批次都可能被撤销。批准不等于授权仍然有效:
984
+ * - 重新跑 assertRecipeOperation(绑定/二级认证/运行门);
985
+ * - 重新跑 grant-guard(频道属主的产线 grant,收权即失活)。
986
+ * 任一失败 → 本次不执行,回包说明原因(Agent 可据此重新申请)。
987
+ */
988
+ export async function revalidateApprovedAction(
989
+ agentId: string,
990
+ recipe: { id: string, name: string, lineId?: string, access?: { requireAuth?: boolean, authorizedAgentIds?: string[] } },
991
+ op: 'update' | 'dispatch' | 'trial' | 'rollback',
992
+ toolName: string,
993
+ args: Record<string, unknown>,
994
+ ): Promise<{ text: string, isError: true } | null> {
995
+ const again = assertRecipeOperation(agentId, recipe, op)
996
+ if (!again.ok) {
997
+ return { text: `人工已批准,但审批期间授权已失效,本次未执行:${again.text}`, isError: true }
998
+ }
999
+ try {
1000
+ // manager 未装配(单测/嵌入)→ 只做绑定与运行门复核;装配后叠加产线 grant 复核
1001
+ const g = globalThis as typeof globalThis & {
1002
+ __workshopManager?: { deps?: { repos?: { channelAgents?: { findById(id: string): { channelId?: string } | undefined } } } }
1003
+ }
1004
+ const channelId = g.__workshopManager?.deps?.repos?.channelAgents?.findById(agentId)?.channelId ?? ''
1005
+ if (channelId) {
1006
+ const { guardIndustrialToolGrant } = await import('./grant-guard')
1007
+ const denied = await guardIndustrialToolGrant({ agentId, channelId }, toolName, args)
1008
+ if (denied) return { text: `人工已批准,但审批期间产线授权已被收回,本次未执行:${denied.text}`, isError: true }
1009
+ }
1010
+ }
1011
+ catch (err) {
1012
+ return { text: `人工已批准,但审批后权限复核不可用,本次未执行:${err instanceof Error ? err.message : String(err)}。请稍后重试。`, isError: true }
1013
+ }
1014
+ return null
1015
+ }
1016
+
559
1017
  /**
560
1018
  * Recipe 级下发间隔卡控(提案早拒):距上次已批准/已执行下发不足 opIntervalMs 时,
561
1019
  * 在挂审批卡**之前**拒绝(不建卡、不产线变动),报错含剩余秒数与应急豁免指引。
@@ -577,20 +1035,21 @@ function recipeOpIntervalGate(recipe: { id: string, name: string, opIntervalMs?:
577
1035
  * 受同线试验节拍卡控(默认 ≥5 分钟,防连发震荡);四层限界(量程∩参数∩产品)照常拦截。 */
578
1036
  export async function toolRecipeTrial(agentId: string, args: {
579
1037
  recipe_id?: string
1038
+ line_id?: string
580
1039
  params?: Array<{ node_id?: string, value?: number | string }>
581
1040
  hypothesis?: string
582
1041
  emergency?: boolean | string
583
1042
  }): Promise<{ text: string, isError?: boolean }> {
584
- const recipeId = String(args.recipe_id ?? '').trim()
585
1043
  const hypothesis = String(args.hypothesis ?? '').trim()
586
1044
  const emergency = args.emergency === true || args.emergency === 'true'
587
- if (!recipeId) return { text: 'recipe_id 必填(line_context 可看到当前配方 id)。', isError: true }
588
1045
  if (!hypothesis) return { text: 'hypothesis 必填:试验必须声明依据(知识库条目/数据分析结论),便于审计追溯与人工审批判断。', isError: true }
589
1046
  const list = (args.params ?? []).filter(p => p && String(p.node_id ?? '').trim() && Number.isFinite(Number(p.value)))
590
1047
  .map(p => ({ nodeId: String(p.node_id).trim(), value: Number(p.value) }))
591
1048
  if (list.length === 0) return { text: 'params 至少提供一条 {node_id, value}(value 必须为数字);试验的意义就是多参数一次整批改动。', isError: true }
592
- const recipe = getDcwController().listRecipes().find(r => r.id === recipeId)
593
- if (!recipe) return { text: `配方 ${recipeId} 不存在。`, isError: true }
1049
+ const target = resolveRecipeTarget(args.recipe_id, args.line_id)
1050
+ if (!target.ok) return { text: target.text, isError: true }
1051
+ const recipe = target.recipe
1052
+ const recipeId = recipe.id
594
1053
  // 权限模型 v2:绑定 → 二级认证 → 运行门(未在执行的配方不可试验)
595
1054
  const gate = assertRecipeOperation(agentId, recipe, 'trial')
596
1055
  if (!gate.ok) return { text: gate.text, isError: true }
@@ -638,6 +1097,8 @@ export async function toolRecipeTrial(agentId: string, args: {
638
1097
  }
639
1098
  // 人工附言随批准回执回流(Agent 与审计都能看到放行时人的原话)
640
1099
  if (gateDecision.comment) hitlNote = `\n人工附言:${gateDecision.comment}`
1100
+ const stale = await revalidateApprovedAction(agentId, recipe, 'trial', 'recipe_trial', { recipe_id: recipeId })
1101
+ if (stale) return stale
641
1102
  }
642
1103
  const run = await getDcwController().applyRecipe(recipeId, { overrides: list, trial: true, agentDispatch: true, agentApprovalId: gateApprovalId, emergency })
643
1104
  // ACK 鉴定三段口径(2026-10-08):ok 只是命令受理,未证实/失败必须如实回给 Agent
@@ -647,7 +1108,7 @@ export async function toolRecipeTrial(agentId: string, args: {
647
1108
  const { recordOps } = await import('../../ops/ops')
648
1109
  recordOps({
649
1110
  actor: agentId, actorName: agentBadgeLabel(agentId), actorKind: 'agent',
650
- action: 'recipe.trial', kind: 'recipe', targetKind: 'recipe', targetId: recipeId, recipeId, lineId: recipe.lineId,
1111
+ action: 'recipe.trial', kind: 'recipe', targetKind: 'recipe', targetId: recipeId, recipeId, lineId: recipe.lineId, productId: recipe.productId,
651
1112
  level: acks.failed > 0 ? 'error' : acks.unverified > 0 ? 'warn' : 'info',
652
1113
  summary: `${emergency ? '【应急】' : ''}配方试验整批下发(证实 ${acks.verified}/${acks.total},未证实 ${acks.unverified},失败 ${acks.failed},批次 ${run.id.slice(0, 8)}):${list.map(p => `${p.nodeId.slice(0, 8)}→${p.value}`).join(';')} | 假设:${hypothesis}`,
653
1114
  detail: { runId: run.id, ackSummary: acks, ...(emergency ? { emergency: true } : {}) },
@@ -686,14 +1147,15 @@ export async function toolRecipeTrial(agentId: string, args: {
686
1147
  * 权限模型 v2:需绑定该 recipe 且过二级认证+运行门;绑定 manual 时挂 HITL(理由随审批卡)。 */
687
1148
  export async function toolRecipeApply(agentId: string, args: {
688
1149
  recipe_id?: string
1150
+ line_id?: string
689
1151
  reason?: string
690
1152
  emergency?: boolean | string
691
1153
  }): Promise<{ text: string, isError?: boolean }> {
692
- const recipeId = String(args.recipe_id ?? '').trim()
693
1154
  const emergency = args.emergency === true || args.emergency === 'true'
694
- if (!recipeId) return { text: 'recipe_id 必填(line_context 可看到当前配方 id)。', isError: true }
695
- const recipe = getDcwController().listRecipes().find(r => r.id === recipeId)
696
- if (!recipe) return { text: `配方 ${recipeId} 不存在。`, isError: true }
1155
+ const target = resolveRecipeTarget(args.recipe_id, args.line_id)
1156
+ if (!target.ok) return { text: target.text, isError: true }
1157
+ const recipe = target.recipe
1158
+ const recipeId = recipe.id
697
1159
  // 理由强制:下发必须让人(产线专家)看懂为什么这样调 —— 无描述的下发不得进入审批/执行
698
1160
  const reason = String(args.reason ?? '').trim()
699
1161
  if (!reason) return { text: 'reason 必填:整批下发必须说明依据(如数采证据/试验结论/GOAL 差距分析),产线专家要在审批卡上看懂你为什么这样调。', isError: true }
@@ -703,6 +1165,9 @@ export async function toolRecipeApply(agentId: string, args: {
703
1165
  // Recipe 级下发间隔卡控(提案早拒):距上次已批准下发不足 opIntervalMs 即拒,不建卡
704
1166
  const cadence = recipeOpIntervalGate(recipe, emergency)
705
1167
  if (cadence) return cadence
1168
+ // 审批展示与执行共用值副本;仓库会原地更新 recipe,不能把其引用当作已批准快照。
1169
+ const approvedDefinition = JSON.stringify(recipe)
1170
+ const dispatch = { name: recipe.name, version: recipe.version ?? 1, params: recipe.params.map(p => ({ ...p })) }
706
1171
  try {
707
1172
  // HITL 门:manual 绑定(或全局开关)时,正式下发前先挂起等人工裁决(拒绝附指导 → 回给 Agent 修订)
708
1173
  let hitlNote = ''
@@ -711,19 +1176,19 @@ export async function toolRecipeApply(agentId: string, args: {
711
1176
  const gateDecision = await hitlDispatchGate(
712
1177
  agentId,
713
1178
  recipe.id,
714
- `${emergency ? '【应急豁免频控】' : ''}配方正式下发:「${recipe.name}」v${recipe.version ?? 1} 全参数整批(${recipe.params.length} 项):${recipe.params.map((p) => {
1179
+ `${emergency ? '【应急豁免频控】' : ''}配方正式下发:「${dispatch.name}」v${dispatch.version} 全参数整批(${dispatch.params.length} 项):${dispatch.params.map((p) => {
715
1180
  const node = getDcwController().byId(p.nodeId)
716
1181
  return `${node?.name ?? p.nodeId}=${p.value}${node?.unit ?? ''}`
717
1182
  }).join(';')} | 理由:${reason} | 批准=整批下发;拒绝可附指导`,
718
1183
  `${emergency ? '【应急】' : ''}配方下发审批`,
719
1184
  { payload: { ...recipeApprovalPayload('dispatch', recipe.id, recipe.name, {
720
1185
  reason,
721
- params: recipe.params.map((p) => {
1186
+ params: dispatch.params.map((p) => {
722
1187
  const node = getDcwController().byId(p.nodeId)
723
1188
  return { nodeId: p.nodeId, name: node?.name ?? p.nodeId, from: null, to: p.value, unit: node?.unit }
724
1189
  }),
725
1190
  runId: gate.activeRunId,
726
- }), ...(emergency ? { emergency: true } : {}) } },
1191
+ }), recipeVersion: dispatch.version, ...(emergency ? { emergency: true } : {}) } },
727
1192
  )
728
1193
  gateApprovalId = gateDecision.id
729
1194
  if (!gateDecision.approved) {
@@ -733,8 +1198,16 @@ export async function toolRecipeApply(agentId: string, args: {
733
1198
  }
734
1199
  // 人工附言随批准回执回流(与 recipe_trial 同口径)
735
1200
  if (gateDecision.comment) hitlNote = `\n人工附言:${gateDecision.comment}`
1201
+ const stale = await revalidateApprovedAction(agentId, recipe, 'dispatch', 'recipe_apply', { recipe_id: recipeId })
1202
+ if (stale) return stale
1203
+ }
1204
+ // 放在最后一次 await 之后,与 applyRecipe 的同步取值/建批之间不再让出执行权。
1205
+ const currentRecipe = getDcwRecipeRepo().byId(recipeId)
1206
+ if (!currentRecipe || JSON.stringify(currentRecipe) !== approvedDefinition) {
1207
+ return { text: '配方在审批期间已变更,与本次审批展示的快照不一致,本次未执行。请核查最新配方后重新提交 recipe_apply。', isError: true }
736
1208
  }
737
- const run = await getDcwController().applyRecipe(recipeId, { agentDispatch: true, agentApprovalId: gateApprovalId, emergency })
1209
+ // 完整覆盖集让控制器复制每个已批准值,逐参数异步写期间也不再共享可变配方参数。
1210
+ const run = await getDcwController().applyRecipe(recipeId, { overrides: dispatch.params, agentDispatch: true, agentApprovalId: gateApprovalId, emergency })
738
1211
  // ACK 鉴定三段口径(2026-10-08):ok 只是命令受理,未证实/失败必须如实回给 Agent
739
1212
  const acks = run.ackSummary ?? { verified: run.results.filter(r => r.ok).length, unverified: 0, failed: run.results.filter(r => !r.ok).length, total: run.results.length }
740
1213
  // 逐参数标注:被跳过/失败的参数(节点停用/已删除/限界拒绝)必须透出给 Agent,
@@ -756,9 +1229,9 @@ export async function toolRecipeApply(agentId: string, args: {
756
1229
  const { recordOps } = await import('../../ops/ops')
757
1230
  recordOps({
758
1231
  actor: agentId, actorName: agentBadgeLabel(agentId), actorKind: 'agent',
759
- action: 'recipe.apply', kind: 'recipe', targetKind: 'recipe', targetId: recipeId, recipeId, lineId: recipe.lineId,
1232
+ action: 'recipe.apply', kind: 'recipe', targetKind: 'recipe', targetId: recipeId, recipeId, lineId: recipe.lineId, productId: recipe.productId,
760
1233
  level: acks.failed > 0 ? 'error' : acks.unverified > 0 ? 'warn' : 'info',
761
- summary: `${emergency ? '【应急】' : ''}Agent 整批下发配方 v${recipe.version ?? 1}(证实 ${acks.verified}/${acks.total},未证实 ${acks.unverified},失败 ${acks.failed},批次 ${run.id.slice(0, 8)}) | 原因:${reason}`,
1234
+ summary: `${emergency ? '【应急】' : ''}Agent 整批下发配方 v${dispatch.version}(证实 ${acks.verified}/${acks.total},未证实 ${acks.unverified},失败 ${acks.failed},批次 ${run.id.slice(0, 8)}) | 原因:${reason}`,
762
1235
  detail: { runId: run.id, ackSummary: acks, ...(emergency ? { emergency: true } : {}) },
763
1236
  })
764
1237
  }
@@ -766,7 +1239,7 @@ export async function toolRecipeApply(agentId: string, args: {
766
1239
  if (acks.failed > 0 || acks.unverified > 0) {
767
1240
  return {
768
1241
  text: [
769
- `配方「${recipe.name}」v${recipe.version ?? 1} 整批下发 ACK 鉴定未全绿(证实 ${acks.verified}/${acks.total},未证实 ${acks.unverified},失败 ${acks.failed},批次 ${run.id.slice(0, 8)})。${hitlNote}`,
1242
+ `配方「${dispatch.name}」v${dispatch.version} 整批下发 ACK 鉴定未全绿(证实 ${acks.verified}/${acks.total},未证实 ${acks.unverified},失败 ${acks.failed},批次 ${run.id.slice(0, 8)})。${hitlNote}`,
770
1243
  `${skippedNote}${unverifiedNote}`,
771
1244
  '请用 daq_query 复测未证实参数的真实状态;必要时 dcw_control 单独重发或 recipe_rollback(dispatch=true) 统一回退,并把清单写入汇报提醒人类。',
772
1245
  ].filter(Boolean).join('\n'),
@@ -774,7 +1247,7 @@ export async function toolRecipeApply(agentId: string, args: {
774
1247
  }
775
1248
  }
776
1249
  return {
777
- text: `配方「${recipe.name}」v${recipe.version ?? 1} 已整批下发并全部设备证实(${acks.verified}/${acks.total},批次 ${run.id.slice(0, 8)})。${skippedNote}${hitlNote}用 daq_query 复测确认工艺响应。`,
1250
+ text: `配方「${dispatch.name}」v${dispatch.version} 已整批下发并全部设备证实(${acks.verified}/${acks.total},批次 ${run.id.slice(0, 8)})。${skippedNote}${hitlNote}用 daq_query 复测确认工艺响应。`,
778
1251
  }
779
1252
  }
780
1253
  catch (err) {