agentworkshop 0.8.2 → 0.8.3

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 (1557) hide show
  1. package/.output/.AgentWorkShop/aml-python/train-example.py +92 -92
  2. package/.output/nitro.json +1 -1
  3. package/.output/public/_nuxt/{BCLUwdP52.js → 39W1CH-l2.js} +1 -1
  4. package/.output/public/_nuxt/7xbYPfY6.js +1 -0
  5. package/.output/public/_nuxt/{BfvuWqSa.js → ATAvN55g.js} +1 -1
  6. package/.output/public/_nuxt/{B2NbzUau2.js → B3eCVqcT2.js} +1 -1
  7. package/.output/public/_nuxt/{DuUc4bbY2.js → B9qIhT7k2.js} +1 -1
  8. package/.output/public/_nuxt/{BkEokGX5.js → BE9oKpOt.js} +1 -1
  9. package/.output/public/_nuxt/{D_59BNP1.js → Bbk1XCCM.js} +3 -3
  10. package/.output/public/_nuxt/{Dz9C2pTa.js → CMzExk8F.js} +1 -1
  11. package/.output/public/_nuxt/{dHwWyr6b.js → CT4bi_Y4.js} +1 -1
  12. package/.output/public/_nuxt/{26OL4Ao82.js → CeCSjB9O2.js} +1 -1
  13. package/.output/public/_nuxt/{Dyxf2xZw.js → Cot5VNae.js} +1 -1
  14. package/.output/public/_nuxt/{BVg2R2VB2.js → Crf8_Ad02.js} +1 -1
  15. package/.output/public/_nuxt/{rDvMijKA.js → D9tNM-1a.js} +2 -2
  16. package/.output/public/_nuxt/{YAA98rWJ.js → DAug2CPf.js} +7 -7
  17. package/.output/public/_nuxt/{CQSxS_Ek.js → DbhTN7-T.js} +1 -1
  18. package/.output/public/_nuxt/DgGzwjAr2.js +2 -0
  19. package/.output/public/_nuxt/DkRozlDP2.js +1 -0
  20. package/.output/public/_nuxt/{DGu_fna7.js → DoChWkff.js} +1 -1
  21. package/.output/public/_nuxt/{Byiiiwc72.js → DxH5focQ2.js} +1 -1
  22. package/.output/public/_nuxt/Dyr3LPGL.js +1 -0
  23. package/.output/public/_nuxt/{CC2Pv8VL2.js → MC_i34H42.js} +1 -1
  24. package/.output/public/_nuxt/OmpTerminalPanel.DMWgGwDs.css +1 -0
  25. package/.output/public/_nuxt/PluginSlot.BqBzLD4T.css +1 -0
  26. package/.output/public/_nuxt/TownView.Cn8SPG7S.css +1 -0
  27. package/.output/public/_nuxt/{CmuGMxDP.js → TugRY_4O.js} +1 -1
  28. package/.output/public/_nuxt/{BPUQZ9Lq2.js → WybiLTow2.js} +1 -1
  29. package/.output/public/_nuxt/{BaYDgyaR.js → Zn0BZpf0.js} +3 -3
  30. package/.output/public/_nuxt/{_id_.BQRWK7J2.css → _id_.Be5JaH-P.css} +1 -1
  31. package/.output/public/_nuxt/{_wsId_.DCnKQQdY.css → _wsId_.p_vAYtTp.css} +1 -1
  32. package/.output/public/_nuxt/{agents.D-JPovTZ.css → agents.CRomddYR.css} +1 -1
  33. package/.output/public/_nuxt/aml.DgOMpDpv.css +1 -0
  34. package/.output/public/_nuxt/builds/latest.json +1 -1
  35. package/.output/public/_nuxt/builds/meta/fd0033e4-1eaa-42f8-9a04-3132717a703b.json +1 -0
  36. package/.output/public/_nuxt/{default.BEXGWZFQ.css → default.CpAx70gC.css} +1 -1
  37. package/.output/public/_nuxt/{logs.BkJPbR_K.css → logs.DcSvz6vi.css} +1 -1
  38. package/.output/public/_nuxt/{monitor.D3yEqqrv.css → monitor.OoNTwfMJ.css} +1 -1
  39. package/.output/public/_nuxt/{ontology.B_3Wn907.css → ontology.JqJ6PjV1.css} +1 -1
  40. package/.output/public/_nuxt/{operations.-l6u44Ar.css → operations.C48ggFa5.css} +1 -1
  41. package/.output/public/_nuxt/{pages.Cdpm_B-G.css → pages.Dpa28tJW.css} +1 -1
  42. package/.output/public/_nuxt/permissions.CrV-4t-6.css +1 -0
  43. package/.output/public/_nuxt/{BfeXib9G.js → rcdmiszh2.js} +1 -1
  44. package/.output/public/_nuxt/schedules.DYWOjGHm.css +1 -0
  45. package/.output/public/_nuxt/{teams.CLQaXno5.css → teams.DEJoJ4QV.css} +1 -1
  46. package/.output/public/_nuxt/{tokens.BDSUWF-L.css → tokens.DKZWCP5v.css} +1 -1
  47. package/.output/public/_nuxt/tools.DP-nsTli.css +1 -0
  48. package/.output/public/_nuxt/wK6Pp4Zc2.js +2 -0
  49. package/.output/public/_nuxt/{workshop.BBiFhXuM.css → workshop.PT1xhP8C.css} +1 -1
  50. package/.output/public/favicon.svg +14 -14
  51. package/.output/public/robots.txt +3 -3
  52. package/.output/server/chunks/_/LeftOutlined.mjs.map +1 -1
  53. package/.output/server/chunks/_/RightOutlined.mjs.map +1 -1
  54. package/.output/server/chunks/_/SearchOutlined.mjs +1230 -1261
  55. package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -1
  56. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  57. package/.output/server/chunks/_/nitro.mjs +3243 -3324
  58. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  59. package/.output/server/chunks/build/AuthGate-G74Wr5IV.mjs +704 -0
  60. package/.output/server/chunks/build/AuthGate-G74Wr5IV.mjs.map +1 -0
  61. package/.output/server/chunks/build/FormItemContext-DmuQqaeJ.mjs +77 -0
  62. package/.output/server/chunks/build/FormItemContext-DmuQqaeJ.mjs.map +1 -0
  63. package/.output/server/chunks/build/OmpTerminalPanel-5cB-78zp.mjs +889 -0
  64. package/.output/server/chunks/build/OmpTerminalPanel-5cB-78zp.mjs.map +1 -0
  65. package/.output/server/chunks/build/PluginSlot-CZlGlRoR.mjs +131 -0
  66. package/.output/server/chunks/build/PluginSlot-CZlGlRoR.mjs.map +1 -0
  67. package/.output/server/chunks/build/TownView-CUbzOT_M.mjs +5960 -0
  68. package/.output/server/chunks/build/TownView-CUbzOT_M.mjs.map +1 -0
  69. package/.output/server/chunks/build/_id_-BHWZiRQZ.mjs +373 -0
  70. package/.output/server/chunks/build/_id_-BHWZiRQZ.mjs.map +1 -0
  71. package/.output/server/chunks/build/_id_-JaGx0yBE.mjs +1922 -0
  72. package/.output/server/chunks/build/_id_-JaGx0yBE.mjs.map +1 -0
  73. package/.output/server/chunks/build/_wsId_-C4DKkEqv.mjs +13707 -0
  74. package/.output/server/chunks/build/_wsId_-C4DKkEqv.mjs.map +1 -0
  75. package/.output/server/chunks/build/agents-DRod4lTC.mjs +1047 -0
  76. package/.output/server/chunks/build/agents-DRod4lTC.mjs.map +1 -0
  77. package/.output/server/chunks/build/alert-CNGhs--Y.mjs +260 -0
  78. package/.output/server/chunks/build/alert-CNGhs--Y.mjs.map +1 -0
  79. package/.output/server/chunks/build/aml-B3Umz4DR.mjs +729 -0
  80. package/.output/server/chunks/build/aml-B3Umz4DR.mjs.map +1 -0
  81. package/.output/server/chunks/build/analysis-tNpFLtMt.mjs +502 -0
  82. package/.output/server/chunks/build/analysis-tNpFLtMt.mjs.map +1 -0
  83. package/.output/server/chunks/build/{api-B4Om0mEc.mjs → api-D-zkgkj-.mjs} +8 -10
  84. package/.output/server/chunks/build/api-D-zkgkj-.mjs.map +1 -0
  85. package/.output/server/chunks/build/{api-BsAgXWxi.mjs → api-D3gy2e2q.mjs} +22 -24
  86. package/.output/server/chunks/build/api-D3gy2e2q.mjs.map +1 -0
  87. package/.output/server/chunks/build/{api-BEW_ebY_.mjs → api-bn4OKkl_.mjs} +17 -19
  88. package/.output/server/chunks/build/api-bn4OKkl_.mjs.map +1 -0
  89. package/.output/server/chunks/build/api-error-CnW_xiNI.mjs +46 -0
  90. package/.output/server/chunks/build/api-error-CnW_xiNI.mjs.map +1 -0
  91. package/.output/server/chunks/build/apiClient-DIXx9sfD.mjs +70 -0
  92. package/.output/server/chunks/build/apiClient-DIXx9sfD.mjs.map +1 -0
  93. package/.output/server/chunks/build/board-B2oYXGBy.mjs +172 -0
  94. package/.output/server/chunks/build/board-B2oYXGBy.mjs.map +1 -0
  95. package/.output/server/chunks/build/builtin-catalog-edpDcgfL.mjs +81 -94
  96. package/.output/server/chunks/build/builtin-catalog-edpDcgfL.mjs.map +1 -1
  97. package/.output/server/chunks/build/card-BECE6y_G.mjs +922 -0
  98. package/.output/server/chunks/build/card-BECE6y_G.mjs.map +1 -0
  99. package/.output/server/chunks/build/channel-templates-R2TInv8B.mjs +950 -0
  100. package/.output/server/chunks/build/channel-templates-R2TInv8B.mjs.map +1 -0
  101. package/.output/server/chunks/build/chart-trend-BWeZh5Lv.mjs +113 -112
  102. package/.output/server/chunks/build/chart-trend-BWeZh5Lv.mjs.map +1 -1
  103. package/.output/server/chunks/build/checkbox-C6xY5uc6.mjs +429 -0
  104. package/.output/server/chunks/build/checkbox-C6xY5uc6.mjs.map +1 -0
  105. package/.output/server/chunks/build/client-only-S7k53PIm.mjs +42 -0
  106. package/.output/server/chunks/build/client-only-S7k53PIm.mjs.map +1 -0
  107. package/.output/server/chunks/build/constants-HPHJvjne.mjs +65 -75
  108. package/.output/server/chunks/build/constants-HPHJvjne.mjs.map +1 -1
  109. package/.output/server/chunks/build/core-CRlsQhzd.mjs +292 -0
  110. package/.output/server/chunks/build/core-CRlsQhzd.mjs.map +1 -0
  111. package/.output/server/chunks/build/daq-DHsYtWC-.mjs +1210 -0
  112. package/.output/server/chunks/build/daq-DHsYtWC-.mjs.map +1 -0
  113. package/.output/server/chunks/build/data-Cl4wRZO6.mjs +459 -0
  114. package/.output/server/chunks/build/data-Cl4wRZO6.mjs.map +1 -0
  115. package/.output/server/chunks/build/dcw-DnjOM6p1.mjs +467 -0
  116. package/.output/server/chunks/build/dcw-DnjOM6p1.mjs.map +1 -0
  117. package/.output/server/chunks/build/dcw-driver-badge-Df5wL_ZA.mjs +3 -15
  118. package/.output/server/chunks/build/dcw-driver-badge-Df5wL_ZA.mjs.map +1 -1
  119. package/.output/server/chunks/build/default-DDRKP2Mb.mjs +2246 -0
  120. package/.output/server/chunks/build/default-DDRKP2Mb.mjs.map +1 -0
  121. package/.output/server/chunks/build/descriptions-B3uhDesi.mjs +401 -0
  122. package/.output/server/chunks/build/descriptions-B3uhDesi.mjs.map +1 -0
  123. package/.output/server/chunks/build/drawer-DwXxapMg.mjs +822 -0
  124. package/.output/server/chunks/build/drawer-DwXxapMg.mjs.map +1 -0
  125. package/.output/server/chunks/build/dropdown-DLrGy-Fs.mjs +12 -0
  126. package/.output/server/chunks/build/dropdown-DLrGy-Fs.mjs.map +1 -0
  127. package/.output/server/chunks/build/dropdown-nsGv8Gqx.mjs +530 -0
  128. package/.output/server/chunks/build/dropdown-nsGv8Gqx.mjs.map +1 -0
  129. package/.output/server/chunks/build/{es-Bxu10NJ2.mjs → es-DXSEkmAm.mjs} +1 -2
  130. package/.output/server/chunks/build/es-DXSEkmAm.mjs.map +1 -0
  131. package/.output/server/chunks/build/firstNotUndefined-laiThpLD.mjs +2082 -0
  132. package/.output/server/chunks/build/firstNotUndefined-laiThpLD.mjs.map +1 -0
  133. package/.output/server/chunks/build/form-Cw2Ex9w5.mjs +3543 -0
  134. package/.output/server/chunks/build/form-Cw2Ex9w5.mjs.map +1 -0
  135. package/.output/server/chunks/build/hasIn-RYRGomyg.mjs +192 -0
  136. package/.output/server/chunks/build/hasIn-RYRGomyg.mjs.map +1 -0
  137. package/.output/server/chunks/build/hitl-B4cHRlkC.mjs +120 -0
  138. package/.output/server/chunks/build/hitl-B4cHRlkC.mjs.map +1 -0
  139. package/.output/server/chunks/build/input-CJgB-RL6.mjs +1705 -0
  140. package/.output/server/chunks/build/input-CJgB-RL6.mjs.map +1 -0
  141. package/.output/server/chunks/build/input-number-CQKL42p_.mjs +1027 -0
  142. package/.output/server/chunks/build/input-number-CQKL42p_.mjs.map +1 -0
  143. package/.output/server/chunks/build/interval-DiAUqODq.mjs +8 -0
  144. package/.output/server/chunks/build/interval-DiAUqODq.mjs.map +1 -0
  145. package/.output/server/chunks/build/isNumeric-DQiJ-b15.mjs +6 -0
  146. package/.output/server/chunks/build/isNumeric-DQiJ-b15.mjs.map +1 -0
  147. package/.output/server/chunks/build/logs-C4vKFkHQ.mjs +381 -0
  148. package/.output/server/chunks/build/logs-C4vKFkHQ.mjs.map +1 -0
  149. package/.output/server/chunks/build/menu-xO8ocVtL.mjs +1833 -0
  150. package/.output/server/chunks/build/menu-xO8ocVtL.mjs.map +1 -0
  151. package/.output/server/chunks/build/monitor-BNrG6v3b.mjs +2216 -0
  152. package/.output/server/chunks/build/monitor-BNrG6v3b.mjs.map +1 -0
  153. package/.output/server/chunks/build/narrow-fetch-CcG-BPxc.mjs +0 -2
  154. package/.output/server/chunks/build/narrow-fetch-CcG-BPxc.mjs.map +1 -1
  155. package/.output/server/chunks/build/ontology-B_0Vm6j-.mjs +1416 -0
  156. package/.output/server/chunks/build/ontology-B_0Vm6j-.mjs.map +1 -0
  157. package/.output/server/chunks/build/operations-D8D6-Jm-.mjs +278 -0
  158. package/.output/server/chunks/build/operations-D8D6-Jm-.mjs.map +1 -0
  159. package/.output/server/chunks/build/optimizer-DaTyaY3c.mjs +202 -0
  160. package/.output/server/chunks/build/optimizer-DaTyaY3c.mjs.map +1 -0
  161. package/.output/server/chunks/build/pages-Dac4icQC.mjs +439 -0
  162. package/.output/server/chunks/build/pages-Dac4icQC.mjs.map +1 -0
  163. package/.output/server/chunks/build/pagination-BTzq7dD5.mjs +1330 -0
  164. package/.output/server/chunks/build/pagination-BTzq7dD5.mjs.map +1 -0
  165. package/.output/server/chunks/build/permissions-qmimwB0M.mjs +649 -0
  166. package/.output/server/chunks/build/permissions-qmimwB0M.mjs.map +1 -0
  167. package/.output/server/chunks/build/plugins-Dh_goy-k.mjs +269 -0
  168. package/.output/server/chunks/build/plugins-Dh_goy-k.mjs.map +1 -0
  169. package/.output/server/chunks/build/popconfirm-DuGF7ty-.mjs +333 -0
  170. package/.output/server/chunks/build/popconfirm-DuGF7ty-.mjs.map +1 -0
  171. package/.output/server/chunks/build/responsiveObserve-CzRpNXkr.mjs +77 -0
  172. package/.output/server/chunks/build/responsiveObserve-CzRpNXkr.mjs.map +1 -0
  173. package/.output/server/chunks/build/schedules-C2_x38gj.mjs +7039 -0
  174. package/.output/server/chunks/build/schedules-C2_x38gj.mjs.map +1 -0
  175. package/.output/server/chunks/build/segmented-29uEKZ3D.mjs +332 -0
  176. package/.output/server/chunks/build/segmented-29uEKZ3D.mjs.map +1 -0
  177. package/.output/server/chunks/build/select-CJb2XrQf.mjs +3734 -0
  178. package/.output/server/chunks/build/select-CJb2XrQf.mjs.map +1 -0
  179. package/.output/server/chunks/build/settings-Cz2Plds0.mjs +944 -0
  180. package/.output/server/chunks/build/settings-Cz2Plds0.mjs.map +1 -0
  181. package/.output/server/chunks/build/space-BByD-mFE.mjs +107 -0
  182. package/.output/server/chunks/build/space-BByD-mFE.mjs.map +1 -0
  183. package/.output/server/chunks/build/spin-XhbgGeLP.mjs +313 -0
  184. package/.output/server/chunks/build/spin-XhbgGeLP.mjs.map +1 -0
  185. package/.output/server/chunks/build/studio-CwYXl00G.mjs +329 -0
  186. package/.output/server/chunks/build/studio-CwYXl00G.mjs.map +1 -0
  187. package/.output/server/chunks/build/switch-DWcwVFxW.mjs +374 -0
  188. package/.output/server/chunks/build/switch-DWcwVFxW.mjs.map +1 -0
  189. package/.output/server/chunks/build/table-Zhuo7Fq-.mjs +7249 -0
  190. package/.output/server/chunks/build/table-Zhuo7Fq-.mjs.map +1 -0
  191. package/.output/server/chunks/build/tabs-BCwBXjNt.mjs +1838 -0
  192. package/.output/server/chunks/build/tabs-BCwBXjNt.mjs.map +1 -0
  193. package/.output/server/chunks/build/tag-CRW-anwy.mjs +1010 -0
  194. package/.output/server/chunks/build/tag-CRW-anwy.mjs.map +1 -0
  195. package/.output/server/chunks/build/teams-CwhFdcYn.mjs +1160 -0
  196. package/.output/server/chunks/build/teams-CwhFdcYn.mjs.map +1 -0
  197. package/.output/server/chunks/build/tokens-C5ODO1HA.mjs +992 -0
  198. package/.output/server/chunks/build/tokens-C5ODO1HA.mjs.map +1 -0
  199. package/.output/server/chunks/build/tools-C0YKragH.mjs +487 -0
  200. package/.output/server/chunks/build/tools-C0YKragH.mjs.map +1 -0
  201. package/.output/server/chunks/build/tooltip-GlMrUZzx.mjs +888 -0
  202. package/.output/server/chunks/build/tooltip-GlMrUZzx.mjs.map +1 -0
  203. package/.output/server/chunks/build/town-BV-hbwb5.mjs +16 -29
  204. package/.output/server/chunks/build/town-BV-hbwb5.mjs.map +1 -1
  205. package/.output/server/chunks/build/town-LkDwWnKA.mjs +117 -0
  206. package/.output/server/chunks/build/town-LkDwWnKA.mjs.map +1 -0
  207. package/.output/server/chunks/build/types-D6J7slEa.mjs.map +1 -1
  208. package/.output/server/chunks/build/types-DWqIeMRP.mjs +28 -29
  209. package/.output/server/chunks/build/types-DWqIeMRP.mjs.map +1 -1
  210. package/.output/server/chunks/build/useAgentHarnessOptions-CYKuLtZ2.mjs +120 -0
  211. package/.output/server/chunks/build/useAgentHarnessOptions-CYKuLtZ2.mjs.map +1 -0
  212. package/.output/server/chunks/build/useAgentTemplateActions-Da_V1LSD.mjs +71 -0
  213. package/.output/server/chunks/build/useAgentTemplateActions-Da_V1LSD.mjs.map +1 -0
  214. package/.output/server/chunks/build/useAgentTemplateDialogState-CZzpu5og.mjs +16 -23
  215. package/.output/server/chunks/build/useAgentTemplateDialogState-CZzpu5og.mjs.map +1 -1
  216. package/.output/server/chunks/build/useAgentTemplateForm-BWvax5_E.mjs +112 -0
  217. package/.output/server/chunks/build/useAgentTemplateForm-BWvax5_E.mjs.map +1 -0
  218. package/.output/server/chunks/build/useAgentTemplatesCatalog-BnYjZy59.mjs +140 -0
  219. package/.output/server/chunks/build/useAgentTemplatesCatalog-BnYjZy59.mjs.map +1 -0
  220. package/.output/server/chunks/build/useAmlDatasets-nGi10DAl.mjs +88 -0
  221. package/.output/server/chunks/build/useAmlDatasets-nGi10DAl.mjs.map +1 -0
  222. package/.output/server/chunks/build/useAmlEntities-CTgNAgcZ.mjs +79 -0
  223. package/.output/server/chunks/build/useAmlEntities-CTgNAgcZ.mjs.map +1 -0
  224. package/.output/server/chunks/build/useAmlEnv-Da2TVfyK.mjs +188 -0
  225. package/.output/server/chunks/build/useAmlEnv-Da2TVfyK.mjs.map +1 -0
  226. package/.output/server/chunks/build/useAmlExperiments-U9AQ52RI.mjs +86 -0
  227. package/.output/server/chunks/build/useAmlExperiments-U9AQ52RI.mjs.map +1 -0
  228. package/.output/server/chunks/build/useAmlFormat-C2sl3MGB.mjs +32 -37
  229. package/.output/server/chunks/build/useAmlFormat-C2sl3MGB.mjs.map +1 -1
  230. package/.output/server/chunks/build/useAmlJobs-BM1mu5iH.mjs +251 -0
  231. package/.output/server/chunks/build/useAmlJobs-BM1mu5iH.mjs.map +1 -0
  232. package/.output/server/chunks/build/useAmlModels-C1DwIOMi.mjs +90 -0
  233. package/.output/server/chunks/build/useAmlModels-C1DwIOMi.mjs.map +1 -0
  234. package/.output/server/chunks/build/useAmlNotes-CNm47QdS.mjs +80 -0
  235. package/.output/server/chunks/build/useAmlNotes-CNm47QdS.mjs.map +1 -0
  236. package/.output/server/chunks/build/useAmlPredict-m8I1AdRn.mjs +126 -0
  237. package/.output/server/chunks/build/useAmlPredict-m8I1AdRn.mjs.map +1 -0
  238. package/.output/server/chunks/build/useAnalysisFeed-CpbOaiBD.mjs +120 -0
  239. package/.output/server/chunks/build/useAnalysisFeed-CpbOaiBD.mjs.map +1 -0
  240. package/.output/server/chunks/build/useDaqAddNode-CRorxgOY.mjs +141 -0
  241. package/.output/server/chunks/build/useDaqAddNode-CRorxgOY.mjs.map +1 -0
  242. package/.output/server/chunks/build/useDaqDetailBinding-Ck-YUW9J.mjs +72 -0
  243. package/.output/server/chunks/build/useDaqDetailBinding-Ck-YUW9J.mjs.map +1 -0
  244. package/.output/server/chunks/build/useDaqDetailFrames-CLMoreaz.mjs +78 -0
  245. package/.output/server/chunks/build/useDaqDetailFrames-CLMoreaz.mjs.map +1 -0
  246. package/.output/server/chunks/build/useDaqDetailHistory-BVNQXwC_.mjs +166 -0
  247. package/.output/server/chunks/build/useDaqDetailHistory-BVNQXwC_.mjs.map +1 -0
  248. package/.output/server/chunks/build/useDaqDetailNode-BC0e9OfX.mjs +103 -0
  249. package/.output/server/chunks/build/useDaqDetailNode-BC0e9OfX.mjs.map +1 -0
  250. package/.output/server/chunks/build/useDaqDetailParams-D173iwFg.mjs +157 -0
  251. package/.output/server/chunks/build/useDaqDetailParams-D173iwFg.mjs.map +1 -0
  252. package/.output/server/chunks/build/useDaqFilters-CC-o_21d.mjs +224 -0
  253. package/.output/server/chunks/build/useDaqFilters-CC-o_21d.mjs.map +1 -0
  254. package/.output/server/chunks/build/useDaqNodeWindow-1DWj2H5G.mjs +43 -44
  255. package/.output/server/chunks/build/useDaqNodeWindow-1DWj2H5G.mjs.map +1 -1
  256. package/.output/server/chunks/build/useDaqOptimizations-4vK2w1yn.mjs +132 -0
  257. package/.output/server/chunks/build/useDaqOptimizations-4vK2w1yn.mjs.map +1 -0
  258. package/.output/server/chunks/build/useDaqStream-BHKpSJFd.mjs +385 -0
  259. package/.output/server/chunks/build/useDaqStream-BHKpSJFd.mjs.map +1 -0
  260. package/.output/server/chunks/build/useDaqTemplates-CsXSc7yI.mjs +181 -0
  261. package/.output/server/chunks/build/useDaqTemplates-CsXSc7yI.mjs.map +1 -0
  262. package/.output/server/chunks/build/useDashboardCharts-D45083s_.mjs +312 -310
  263. package/.output/server/chunks/build/useDashboardCharts-D45083s_.mjs.map +1 -1
  264. package/.output/server/chunks/build/useDashboardData-DuKjuJTz.mjs +139 -0
  265. package/.output/server/chunks/build/useDashboardData-DuKjuJTz.mjs.map +1 -0
  266. package/.output/server/chunks/build/useDcwAddNode-C5DcxsHF.mjs +217 -0
  267. package/.output/server/chunks/build/useDcwAddNode-C5DcxsHF.mjs.map +1 -0
  268. package/.output/server/chunks/build/{useDcwCards-SaiImIYQ.mjs → useDcwCards-0bAVo6uB.mjs} +20 -23
  269. package/.output/server/chunks/build/useDcwCards-0bAVo6uB.mjs.map +1 -0
  270. package/.output/server/chunks/build/useDcwDetailScope-BNFOlt2v.mjs +184 -0
  271. package/.output/server/chunks/build/useDcwDetailScope-BNFOlt2v.mjs.map +1 -0
  272. package/.output/server/chunks/build/useDcwDetailTemplates-DSH-o0tE.mjs +143 -0
  273. package/.output/server/chunks/build/useDcwDetailTemplates-DSH-o0tE.mjs.map +1 -0
  274. package/.output/server/chunks/build/useDcwFilter-W61BFUcT.mjs +65 -0
  275. package/.output/server/chunks/build/useDcwFilter-W61BFUcT.mjs.map +1 -0
  276. package/.output/server/chunks/build/{useDcwLedger-0ie-0WTc.mjs → useDcwLedger-DsColLdc.mjs} +29 -35
  277. package/.output/server/chunks/build/useDcwLedger-DsColLdc.mjs.map +1 -0
  278. package/.output/server/chunks/build/useDcwLineMutations-Cx4Ir7g3.mjs +133 -0
  279. package/.output/server/chunks/build/useDcwLineMutations-Cx4Ir7g3.mjs.map +1 -0
  280. package/.output/server/chunks/build/useDcwLineRun-DQ0vB08z.mjs +100 -0
  281. package/.output/server/chunks/build/useDcwLineRun-DQ0vB08z.mjs.map +1 -0
  282. package/.output/server/chunks/build/useDcwParamApprovals-CYspRuDk.mjs +119 -0
  283. package/.output/server/chunks/build/useDcwParamApprovals-CYspRuDk.mjs.map +1 -0
  284. package/.output/server/chunks/build/useDcwProducts-CTbm_5S_.mjs +88 -0
  285. package/.output/server/chunks/build/useDcwProducts-CTbm_5S_.mjs.map +1 -0
  286. package/.output/server/chunks/build/useDcwQuery-E0yjZs7G.mjs +93 -0
  287. package/.output/server/chunks/build/useDcwQuery-E0yjZs7G.mjs.map +1 -0
  288. package/.output/server/chunks/build/useDcwQuickActions-BvT5VFOY.mjs +84 -0
  289. package/.output/server/chunks/build/useDcwQuickActions-BvT5VFOY.mjs.map +1 -0
  290. package/.output/server/chunks/build/useDcwRecipes-zngShyk0.mjs +263 -0
  291. package/.output/server/chunks/build/useDcwRecipes-zngShyk0.mjs.map +1 -0
  292. package/.output/server/chunks/build/useDcwStream-82IdjJKk.mjs +455 -0
  293. package/.output/server/chunks/build/useDcwStream-82IdjJKk.mjs.map +1 -0
  294. package/.output/server/chunks/build/useDcwTemplates-CpHrcnvJ.mjs +87 -0
  295. package/.output/server/chunks/build/useDcwTemplates-CpHrcnvJ.mjs.map +1 -0
  296. package/.output/server/chunks/build/useDcwWrites-BlOhljp9.mjs +136 -0
  297. package/.output/server/chunks/build/useDcwWrites-BlOhljp9.mjs.map +1 -0
  298. package/.output/server/chunks/build/useDeviceTwins-DL-VLFeX.mjs +118 -0
  299. package/.output/server/chunks/build/useDeviceTwins-DL-VLFeX.mjs.map +1 -0
  300. package/.output/server/chunks/build/useExpConfirmations-DgwqTb9O.mjs +104 -0
  301. package/.output/server/chunks/build/useExpConfirmations-DgwqTb9O.mjs.map +1 -0
  302. package/.output/server/chunks/build/useLocalTime-C__kwn8h.mjs +52 -0
  303. package/.output/server/chunks/build/useLocalTime-C__kwn8h.mjs.map +1 -0
  304. package/.output/server/chunks/build/useLogsFormat-B-o4MHy7.mjs +30 -33
  305. package/.output/server/chunks/build/useLogsFormat-B-o4MHy7.mjs.map +1 -1
  306. package/.output/server/chunks/build/useLogsManual-BcfanT0s.mjs +80 -0
  307. package/.output/server/chunks/build/useLogsManual-BcfanT0s.mjs.map +1 -0
  308. package/.output/server/chunks/build/useLogsQuery-BGlKVKpV.mjs +136 -0
  309. package/.output/server/chunks/build/useLogsQuery-BGlKVKpV.mjs.map +1 -0
  310. package/.output/server/chunks/build/useLogsScope-BRyy550Y.mjs +75 -0
  311. package/.output/server/chunks/build/useLogsScope-BRyy550Y.mjs.map +1 -0
  312. package/.output/server/chunks/build/useMonitorColumns-vVnt3r5Q.mjs +155 -166
  313. package/.output/server/chunks/build/useMonitorColumns-vVnt3r5Q.mjs.map +1 -1
  314. package/.output/server/chunks/build/useMonitorData-BUey2Xly.mjs +128 -0
  315. package/.output/server/chunks/build/useMonitorData-BUey2Xly.mjs.map +1 -0
  316. package/.output/server/chunks/build/useMonitorFormat-rhs7FlNo.mjs +77 -0
  317. package/.output/server/chunks/build/useMonitorFormat-rhs7FlNo.mjs.map +1 -0
  318. package/.output/server/chunks/build/useMonitorTerminal-Dj4QwRNW.mjs +20 -27
  319. package/.output/server/chunks/build/useMonitorTerminal-Dj4QwRNW.mjs.map +1 -1
  320. package/.output/server/chunks/build/useOperationsFeed-DWfCjP4l.mjs +182 -0
  321. package/.output/server/chunks/build/useOperationsFeed-DWfCjP4l.mjs.map +1 -0
  322. package/.output/server/chunks/build/useOpsLog--yf8erUi.mjs +139 -0
  323. package/.output/server/chunks/build/useOpsLog--yf8erUi.mjs.map +1 -0
  324. package/.output/server/chunks/build/useRecipeDispatchApprovals-CKF2sB9P.mjs +146 -0
  325. package/.output/server/chunks/build/useRecipeDispatchApprovals-CKF2sB9P.mjs.map +1 -0
  326. package/.output/server/chunks/build/useResponsive-BKDMGTHs.mjs +23 -39
  327. package/.output/server/chunks/build/useResponsive-BKDMGTHs.mjs.map +1 -1
  328. package/.output/server/chunks/build/useTeamActions-C08sAVqY.mjs +71 -0
  329. package/.output/server/chunks/build/useTeamActions-C08sAVqY.mjs.map +1 -0
  330. package/.output/server/chunks/build/useTeamAddMemberDialog-fzTmflr8.mjs +78 -0
  331. package/.output/server/chunks/build/useTeamAddMemberDialog-fzTmflr8.mjs.map +1 -0
  332. package/.output/server/chunks/build/useTeamCreateDialog-De63ep-X.mjs +91 -0
  333. package/.output/server/chunks/build/useTeamCreateDialog-De63ep-X.mjs.map +1 -0
  334. package/.output/server/chunks/build/useTeamDeployDialog-CpAtG5Jy.mjs +76 -0
  335. package/.output/server/chunks/build/useTeamDeployDialog-CpAtG5Jy.mjs.map +1 -0
  336. package/.output/server/chunks/build/useTeamDialogState-CFRUQxAf.mjs +31 -38
  337. package/.output/server/chunks/build/useTeamDialogState-CFRUQxAf.mjs.map +1 -1
  338. package/.output/server/chunks/build/useTeamPluginDialog-C1OOe1sL.mjs +99 -0
  339. package/.output/server/chunks/build/useTeamPluginDialog-C1OOe1sL.mjs.map +1 -0
  340. package/.output/server/chunks/build/useTeamsCatalog-DA41SMDu.mjs +124 -0
  341. package/.output/server/chunks/build/useTeamsCatalog-DA41SMDu.mjs.map +1 -0
  342. package/.output/server/chunks/build/useTokenClipboard-CwQpoFeP.mjs +21 -28
  343. package/.output/server/chunks/build/useTokenClipboard-CwQpoFeP.mjs.map +1 -1
  344. package/.output/server/chunks/build/useTokenCreate-XHTQExra.mjs +106 -0
  345. package/.output/server/chunks/build/useTokenCreate-XHTQExra.mjs.map +1 -0
  346. package/.output/server/chunks/build/useTokenRename-Cf1B0cRy.mjs +81 -0
  347. package/.output/server/chunks/build/useTokenRename-Cf1B0cRy.mjs.map +1 -0
  348. package/.output/server/chunks/build/useTokenReveal-C8n1Vt9t.mjs +108 -0
  349. package/.output/server/chunks/build/useTokenReveal-C8n1Vt9t.mjs.map +1 -0
  350. package/.output/server/chunks/build/useTokensList-MMIq24E-.mjs +86 -0
  351. package/.output/server/chunks/build/useTokensList-MMIq24E-.mjs.map +1 -0
  352. package/.output/server/chunks/build/useTownBus-D9SoIsAN.mjs +16 -17
  353. package/.output/server/chunks/build/useTownBus-D9SoIsAN.mjs.map +1 -1
  354. package/.output/server/chunks/build/useWorkbenchAuth-Dyc_czui.mjs +131 -0
  355. package/.output/server/chunks/build/useWorkbenchAuth-Dyc_czui.mjs.map +1 -0
  356. package/.output/server/chunks/build/useWorkbenchWorkspaces-DT33HbBD.mjs +128 -0
  357. package/.output/server/chunks/build/useWorkbenchWorkspaces-DT33HbBD.mjs.map +1 -0
  358. package/.output/server/chunks/build/useWorkshopApi-BkEgGBIM.mjs +118 -0
  359. package/.output/server/chunks/build/useWorkshopApi-BkEgGBIM.mjs.map +1 -0
  360. package/.output/server/chunks/build/useWorkshopWs-BWrVj4jL.mjs +1577 -0
  361. package/.output/server/chunks/build/useWorkshopWs-BWrVj4jL.mjs.map +1 -0
  362. package/.output/server/chunks/build/{useWorkspaceAuth-Dlvj9csD.mjs → useWorkspaceAuth-TahC9EC7.mjs} +4 -16
  363. package/.output/server/chunks/build/useWorkspaceAuth-TahC9EC7.mjs.map +1 -0
  364. package/.output/server/chunks/build/useWorkspaceChannels-BVAHmhN3.mjs +94 -0
  365. package/.output/server/chunks/build/useWorkspaceChannels-BVAHmhN3.mjs.map +1 -0
  366. package/.output/server/chunks/build/useWorkspacePanels-CTwREmq0.mjs +30 -33
  367. package/.output/server/chunks/build/useWorkspacePanels-CTwREmq0.mjs.map +1 -1
  368. package/.output/server/chunks/build/useWorkspaceShell-rQHWNNWJ.mjs +150 -0
  369. package/.output/server/chunks/build/useWorkspaceShell-rQHWNNWJ.mjs.map +1 -0
  370. package/.output/server/chunks/build/users-pVCK50z-.mjs +566 -0
  371. package/.output/server/chunks/build/users-pVCK50z-.mjs.map +1 -0
  372. package/.output/server/chunks/build/workshop-DAgsBgG4.mjs +499 -0
  373. package/.output/server/chunks/build/workshop-DAgsBgG4.mjs.map +1 -0
  374. package/.output/server/chunks/build/workspaces-CmW0cpOt.mjs +111 -121
  375. package/.output/server/chunks/build/workspaces-CmW0cpOt.mjs.map +1 -1
  376. package/.output/server/chunks/routes/renderer.mjs +1 -1
  377. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  378. package/.output/server/chunks/virtual/entry.mjs +9357 -10721
  379. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  380. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  381. package/.output/server/chunks/virtual/precomputed.mjs.map +1 -1
  382. package/.output/server/package.json +1 -1
  383. package/README-zh.md +2 -2
  384. package/README.md +3 -3
  385. package/app/components/AwLogo.vue +75 -75
  386. package/app/components/aml/AmlDatasetFormModal.vue +279 -279
  387. package/app/components/aml/AmlDatasetTable.vue +319 -319
  388. package/app/components/aml/AmlExperimentsTable.vue +142 -142
  389. package/app/components/aml/AmlInfraBanner.vue +23 -23
  390. package/app/components/aml/AmlJobsTable.vue +248 -248
  391. package/app/components/aml/AmlOverviewBar.vue +62 -62
  392. package/app/components/aml/AmlPageHeader.vue +47 -47
  393. package/app/components/aml/AmlPredictConsole.vue +201 -201
  394. package/app/components/app-header/HitlBell.vue +423 -423
  395. package/app/components/daq/DaqAddNodeModal.vue +209 -209
  396. package/app/components/daq/DaqAlarmBar.vue +46 -46
  397. package/app/components/daq/DaqControlCard.vue +159 -159
  398. package/app/components/daq/DaqInfraBanner.vue +31 -31
  399. package/app/components/daq/DaqLineBanner.vue +47 -47
  400. package/app/components/daq/DaqNodePanel.vue +396 -396
  401. package/app/components/daq/DaqOptPanel.vue +197 -197
  402. package/app/components/daq/DaqTemplateModal.vue +246 -246
  403. package/app/components/dashboard/DashboardGaugeBand.vue +78 -78
  404. package/app/components/dashboard/DashboardHero.vue +209 -209
  405. package/app/components/dashboard/DashboardLineStatePanel.vue +78 -78
  406. package/app/components/dashboard/DashboardNodeStatePanel.vue +46 -46
  407. package/app/components/dashboard/DashboardPipelinePanel.vue +46 -46
  408. package/app/components/dashboard/DashboardTrendPanel.vue +83 -83
  409. package/app/components/dashboard/DashboardWritePanel.vue +52 -52
  410. package/app/components/dcw/DcwCreateLineModal.vue +105 -105
  411. package/app/components/dcw/DcwDeleteLineModal.vue +73 -73
  412. package/app/components/dcw/DcwDetailTemplateModal.vue +238 -238
  413. package/app/components/dcw/DcwLedgerCard.vue +160 -160
  414. package/app/components/dcw/DcwMesArtifacts.vue +140 -140
  415. package/app/components/dcw/DcwProductCreateModal.vue +113 -113
  416. package/app/components/dcw/DcwRecipeDispatchHistoryModal.vue +244 -244
  417. package/app/components/dcw/DcwRecipeEditModal.vue +399 -399
  418. package/app/components/dcw/DcwRecipeHistoryModal.vue +165 -165
  419. package/app/components/dcw/DcwRunDataModal.vue +191 -191
  420. package/app/components/dcw/DcwTemplateModal.vue +227 -227
  421. package/app/components/dcw/DcwWriteHistoryCard.vue +96 -96
  422. package/app/components/dcw/ExpConfirmCard.vue +103 -103
  423. package/app/components/dcw/RecipeDispatchApprovalCard.vue +330 -330
  424. package/app/components/logs/LogsPageHead.vue +71 -71
  425. package/app/components/monitor/MonitorAgentTable.vue +143 -143
  426. package/app/components/monitor/MonitorChannelTable.vue +80 -80
  427. package/app/components/monitor/MonitorLoginGate.vue +24 -24
  428. package/app/components/monitor/MonitorPageHead.vue +92 -92
  429. package/app/components/monitor/MonitorProcessTable.vue +159 -159
  430. package/app/components/ontology/OntologyGraph.vue +356 -356
  431. package/app/components/operations/OperationsFilterCard.vue +164 -164
  432. package/app/components/operations/OperationsPageHead.vue +47 -47
  433. package/app/components/tokens/TokenCreateModal.vue +42 -42
  434. package/app/components/tokens/TokenOnceModal.vue +164 -164
  435. package/app/components/tokens/TokenRenameModal.vue +40 -40
  436. package/app/components/tokens/TokensPageHead.vue +76 -76
  437. package/app/components/workshop/A2aRpcDebugger.vue +237 -237
  438. package/app/components/workshop/AgentInspectorDrawer.vue +424 -424
  439. package/app/components/workshop/AgentLanesView.vue +278 -278
  440. package/app/components/workshop/ArtifactCard.vue +120 -120
  441. package/app/components/workshop/AssetLibrary.vue +452 -452
  442. package/app/components/workshop/ChatMemberPanel.vue +556 -556
  443. package/app/components/workshop/CommandPalette.vue +270 -270
  444. package/app/components/workshop/Composer.vue +540 -540
  445. package/app/components/workshop/DaqTemplateIcon.vue +33 -33
  446. package/app/components/workshop/DeviceTwinPanel.vue +167 -167
  447. package/app/components/workshop/FileSelectorModal.vue +188 -188
  448. package/app/components/workshop/InspectorPanel.vue +301 -301
  449. package/app/components/workshop/PluginSlot.vue +120 -120
  450. package/app/components/workshop/TranscriptTimeline.vue +223 -223
  451. package/app/components/workshop/agents/AgentTemplateEditModal.vue +139 -139
  452. package/app/components/workshop/blocks/ClusterArtifact.vue +61 -61
  453. package/app/components/workshop/blocks/ClusterError.vue +85 -85
  454. package/app/components/workshop/blocks/ClusterLife.vue +87 -87
  455. package/app/components/workshop/blocks/ClusterMember.vue +95 -95
  456. package/app/components/workshop/blocks/ClusterMemory.vue +84 -84
  457. package/app/components/workshop/blocks/ClusterOther.vue +67 -67
  458. package/app/components/workshop/blocks/ClusterStatus.vue +149 -149
  459. package/app/components/workshop/blocks/ClusterTool.vue +176 -176
  460. package/app/components/workshop/blocks/EventBlockAvatar.vue +114 -114
  461. package/app/components/workshop/blocks/EventBlockHead.vue +232 -232
  462. package/app/components/workshop/composer/ComposerToolbar.vue +278 -278
  463. package/app/components/workshop/composer/MentionMenu.vue +135 -135
  464. package/app/components/workshop/composer/ReplyChip.vue +65 -65
  465. package/app/components/workshop/composer/StatusChip.vue +171 -171
  466. package/app/components/workshop/console/Dock.vue +71 -71
  467. package/app/components/workshop/console/LeftPane.vue +84 -84
  468. package/app/components/workshop/device-twin/DeviceTwinCard.vue +265 -265
  469. package/app/components/workshop/device-twin/DeviceTwinDcwSection.vue +203 -203
  470. package/app/components/workshop/lanes/AddMemberModal.vue +270 -270
  471. package/app/components/workshop/lanes/EditMemberModal.vue +106 -106
  472. package/app/components/workshop/lanes/LanesToolbar.vue +97 -97
  473. package/app/components/workshop/session-list/ChannelSettingsModal.vue +3 -3
  474. package/app/components/workshop/session-list/MountChannelModal.vue +124 -124
  475. package/app/components/workshop/session-list/SaveTemplateModal.vue +93 -93
  476. package/app/components/workshop/task-board/Card.vue +172 -172
  477. package/app/components/workshop/task-board/Column.vue +151 -151
  478. package/app/components/workshop/task-board/List.vue +157 -157
  479. package/app/components/workshop/task-board/StatusMenu.vue +88 -88
  480. package/app/components/workshop/teams/TeamAddMemberModal.vue +53 -53
  481. package/app/components/workshop/teams/TeamCreateModal.vue +94 -94
  482. package/app/components/workshop/teams/TeamDeployModal.vue +40 -40
  483. package/app/components/workshop/teams/TeamPluginModal.vue +119 -119
  484. package/app/components/workshop/terminal/OmpTerminalPanel.vue +270 -270
  485. package/app/components/workshop/terminal/TerminalHitlCard.vue +170 -170
  486. package/app/components/workshop/town/TownScene.ts +466 -466
  487. package/app/components/workshop/town/TownView.vue +561 -561
  488. package/app/components/workshop/town/components/AutoModeConfirmModal.vue +94 -94
  489. package/app/components/workshop/town/components/TownAgentBindings.vue +405 -405
  490. package/app/components/workshop/town/components/TownAgentInspector.vue +554 -554
  491. package/app/components/workshop/town/components/TownAlarmList.vue +147 -147
  492. package/app/components/workshop/town/components/TownBoundaryPanel.vue +350 -350
  493. package/app/components/workshop/town/components/TownCalloutLayer.vue +147 -147
  494. package/app/components/workshop/town/components/TownChannelDock.vue +116 -116
  495. package/app/components/workshop/town/components/TownControlDock.vue +405 -405
  496. package/app/components/workshop/town/components/TownDaqNodeInspector.vue +345 -345
  497. package/app/components/workshop/town/components/TownDaqTree.vue +366 -366
  498. package/app/components/workshop/town/components/TownDcwBindSection.vue +473 -473
  499. package/app/components/workshop/town/components/TownDcwNodeInspector.vue +185 -185
  500. package/app/components/workshop/town/components/TownDcwTree.vue +280 -280
  501. package/app/components/workshop/town/components/TownDeviceBindings.vue +394 -394
  502. package/app/components/workshop/town/components/TownDeviceTransform.vue +248 -248
  503. package/app/components/workshop/town/components/TownEventList.vue +120 -120
  504. package/app/components/workshop/town/components/TownHealthBody.vue +100 -100
  505. package/app/components/workshop/town/components/TownKpiStrip.vue +207 -207
  506. package/app/components/workshop/town/components/TownLeftRail.vue +308 -308
  507. package/app/components/workshop/town/components/TownLoadingMask.vue +61 -61
  508. package/app/components/workshop/town/components/TownNavMap.vue +154 -154
  509. package/app/components/workshop/town/components/TownRightRail.vue +543 -543
  510. package/app/components/workshop/town/components/TownStage.vue +281 -281
  511. package/app/components/workshop/town/components/TownStageTop.vue +238 -238
  512. package/app/components/workshop/town/components/TownStatusBar.vue +108 -108
  513. package/app/components/workshop/town/components/TownTopNav.vue +367 -367
  514. package/app/components/workshop/town/components/TownTrendDock.vue +178 -178
  515. package/app/components/workshop/town/scene/town-scene-agents.ts +254 -254
  516. package/app/components/workshop/town/scene/town-scene-behavior.ts +194 -194
  517. package/app/components/workshop/town/scene/town-scene-bubbles.ts +96 -96
  518. package/app/components/workshop/town/scene/town-scene-core.ts +158 -158
  519. package/app/components/workshop/town/scene/town-scene-models.ts +109 -109
  520. package/app/components/workshop/town/scene/town-scene-visuals.ts +279 -279
  521. package/app/components/workshop/town/scene/town-scene3d-agents.ts +308 -308
  522. package/app/components/workshop/town/scene/town-scene3d-blocks.ts +297 -297
  523. package/app/components/workshop/town/scene/town-scene3d-bubbles.ts +281 -281
  524. package/app/components/workshop/town/scene/town-scene3d-camera.ts +282 -282
  525. package/app/components/workshop/town/scene/town-scene3d-devices.ts +433 -433
  526. package/app/components/workshop/town/scene/town-scene3d-editing.ts +490 -490
  527. package/app/components/workshop/town/scene/town-scene3d-events.ts +173 -173
  528. package/app/components/workshop/town/scene/town-scene3d-factory.ts +412 -412
  529. package/app/components/workshop/town/scene/town-scene3d-hud.ts +110 -110
  530. package/app/components/workshop/town/scene/town-scene3d-lifecycle.ts +144 -144
  531. package/app/components/workshop/town/scene/town-scene3d-links.ts +141 -141
  532. package/app/components/workshop/town/scene/town-scene3d-loop.ts +286 -286
  533. package/app/components/workshop/town/scene/town-scene3d-models.ts +154 -154
  534. package/app/components/workshop/town/scene/town-scene3d-nodes.ts +562 -562
  535. package/app/components/workshop/town/scene/town-scene3d-ranges.ts +273 -273
  536. package/app/components/workshop/town/scene/town-scene3d-renderer.ts +320 -320
  537. package/app/components/workshop/town/scene/town-scene3d-selection.ts +257 -257
  538. package/app/components/workshop/town/scene/town-scene3d-types.ts +264 -264
  539. package/app/components/workshop/transcript/TranscriptBlockList.vue +68 -68
  540. package/app/components/workshop/transcript/TranscriptEarlierPager.vue +81 -81
  541. package/app/components/workshop/transcript/TranscriptFilterBar.vue +126 -126
  542. package/app/components/workshop/workbench/CreateWorkspaceModal.vue +36 -36
  543. package/app/components/workshop/workbench/WorkspaceEmpty.vue +56 -56
  544. package/app/composables/useResponsive.ts +88 -88
  545. package/app/composables/workshop/device-twin-types.ts +29 -29
  546. package/app/composables/workshop/event-blocks/attention.ts +58 -58
  547. package/app/composables/workshop/event-blocks/classify.ts +44 -44
  548. package/app/composables/workshop/event-blocks/clusterer.ts +231 -231
  549. package/app/composables/workshop/event-blocks/fold-stream.ts +45 -45
  550. package/app/composables/workshop/event-blocks/markdown.ts +81 -81
  551. package/app/composables/workshop/event-blocks/mentions.ts +49 -49
  552. package/app/composables/workshop/event-blocks/text-utils.ts +100 -100
  553. package/app/composables/workshop/event-blocks/types.ts +40 -40
  554. package/app/composables/workshop/town/town-relay-props.ts +231 -231
  555. package/app/composables/workshop/town/town-view-types.ts +145 -145
  556. package/app/composables/workshop/town/useTownAgentBindings.ts +182 -182
  557. package/app/composables/workshop/town/useTownAgentChat.ts +203 -203
  558. package/app/composables/workshop/town/useTownAlarms.ts +36 -36
  559. package/app/composables/workshop/town/useTownCallouts.ts +174 -174
  560. package/app/composables/workshop/town/useTownChannels.ts +220 -220
  561. package/app/composables/workshop/town/useTownHealth.ts +66 -66
  562. package/app/composables/workshop/town/useTownHudTickers.ts +77 -77
  563. package/app/composables/workshop/town/useTownLayout.ts +277 -277
  564. package/app/composables/workshop/town/useTownNavMap.ts +301 -301
  565. package/app/composables/workshop/town/useTownNodeBindings.ts +345 -345
  566. package/app/composables/workshop/town/useTownPanelDrag.ts +91 -91
  567. package/app/composables/workshop/town/useTownRailData.ts +421 -421
  568. package/app/composables/workshop/town/useTownSceneControl.ts +92 -92
  569. package/app/composables/workshop/town/useTownSceneInput.ts +275 -275
  570. package/app/composables/workshop/town/useTownSceneRuntime.ts +390 -390
  571. package/app/composables/workshop/town/useTownSheets.ts +41 -41
  572. package/app/composables/workshop/town/useTownTrends.ts +93 -93
  573. package/app/composables/workshop/useChannelList.ts +88 -88
  574. package/app/composables/workshop/useChannelTerminals.ts +65 -65
  575. package/app/composables/workshop/useComposerMentions.ts +130 -130
  576. package/app/composables/workshop/useDcwStream.ts +374 -374
  577. package/app/composables/workshop/useDeviceTwinDcwWrite.ts +77 -77
  578. package/app/composables/workshop/useDeviceTwinPanel.ts +56 -56
  579. package/app/composables/workshop/useEscClose.ts +44 -44
  580. package/app/composables/workshop/useEventBlockView.ts +159 -159
  581. package/app/composables/workshop/useEventBlocks.ts +33 -33
  582. package/app/composables/workshop/useHitlAnswer.ts +184 -184
  583. package/app/composables/workshop/useLaneWidths.ts +27 -27
  584. package/app/composables/workshop/useOmpTerminalSession.ts +424 -424
  585. package/app/composables/workshop/usePluginAdmin.ts +152 -152
  586. package/app/composables/workshop/usePluginPanels.ts +72 -72
  587. package/app/composables/workshop/useRuntimeConfigDraft.ts +118 -118
  588. package/app/composables/workshop/useSettingsGroups.ts +243 -243
  589. package/app/composables/workshop/useTaskBoardColumns.ts +47 -47
  590. package/app/composables/workshop/useTerminalRenderer.ts +308 -308
  591. package/app/composables/workshop/useTranscriptEnterStage.ts +48 -48
  592. package/app/composables/workshop/useTranscriptHistory.ts +52 -52
  593. package/app/composables/workshop/useTranscriptScroll.ts +113 -113
  594. package/app/composables/workshop/useVisibleInterval.ts +42 -42
  595. package/app/composables/workshop/useWorkshopWs.ts +265 -265
  596. package/app/config/index.ts +1 -1
  597. package/app/middleware/locale-cookie.global.ts +22 -22
  598. package/app/pages/aml/api.ts +6 -6
  599. package/app/pages/aml/composables/useAmlDatasets.ts +38 -38
  600. package/app/pages/aml/composables/useAmlEntities.ts +57 -57
  601. package/app/pages/aml/composables/useAmlEnv.ts +191 -191
  602. package/app/pages/aml/composables/useAmlExperiments.ts +45 -45
  603. package/app/pages/aml/composables/useAmlFormat.ts +44 -44
  604. package/app/pages/aml/composables/useAmlJobs.ts +131 -131
  605. package/app/pages/aml/composables/useAmlModels.ts +56 -56
  606. package/app/pages/aml/composables/useAmlNotes.ts +47 -47
  607. package/app/pages/aml/composables/useAmlPredict.ts +93 -93
  608. package/app/pages/aml/constants.ts +63 -63
  609. package/app/pages/aml/index.vue +236 -236
  610. package/app/pages/composables/useDashboardCharts.ts +192 -192
  611. package/app/pages/composables/useDashboardData.ts +144 -144
  612. package/app/pages/daq/composables/useDaqAddNode.ts +126 -126
  613. package/app/pages/daq/composables/useDaqDetailBinding.ts +29 -29
  614. package/app/pages/daq/composables/useDaqDetailFrames.ts +42 -42
  615. package/app/pages/daq/composables/useDaqDetailNode.ts +53 -53
  616. package/app/pages/daq/composables/useDaqDetailParams.ts +138 -138
  617. package/app/pages/daq/composables/useDaqFilters.ts +187 -187
  618. package/app/pages/daq/composables/useDaqNodeWindow.ts +86 -86
  619. package/app/pages/daq/composables/useDaqOptimizations.ts +99 -99
  620. package/app/pages/daq/composables/useDaqTemplates.ts +152 -152
  621. package/app/pages/daq/index.vue +260 -260
  622. package/app/pages/dcw/composables/useDcwCards.ts +27 -27
  623. package/app/pages/dcw/composables/useDcwDetailScope.ts +145 -145
  624. package/app/pages/dcw/composables/useDcwDetailTemplates.ts +94 -94
  625. package/app/pages/dcw/composables/useDcwFilter.ts +29 -29
  626. package/app/pages/dcw/composables/useDcwLedger.ts +34 -34
  627. package/app/pages/dcw/composables/useDcwLineMutations.ts +115 -115
  628. package/app/pages/dcw/composables/useDcwLineRun.ts +60 -60
  629. package/app/pages/dcw/composables/useDcwProducts.ts +54 -54
  630. package/app/pages/dcw/composables/useDcwQuery.ts +68 -68
  631. package/app/pages/dcw/composables/useDcwQuickActions.ts +47 -47
  632. package/app/pages/dcw/composables/useDcwRecipes.ts +256 -256
  633. package/app/pages/dcw/composables/useDcwTemplates.ts +50 -50
  634. package/app/pages/dcw/index.vue +195 -195
  635. package/app/pages/dcw/types.ts +9 -9
  636. package/app/pages/index.vue +126 -126
  637. package/app/pages/logs/composables/useLogsFormat.ts +43 -43
  638. package/app/pages/logs/composables/useLogsScope.ts +39 -39
  639. package/app/pages/monitor/types.ts +61 -61
  640. package/app/pages/operations.vue +61 -61
  641. package/app/pages/permissions/index.vue +369 -369
  642. package/app/pages/tokens/composables/useTokenClipboard.ts +33 -33
  643. package/app/pages/tokens/composables/useTokenCreate.ts +93 -93
  644. package/app/pages/tokens/composables/useTokenRename.ts +54 -54
  645. package/app/pages/tokens/composables/useTokenReveal.ts +84 -84
  646. package/app/pages/tokens/composables/useTokensList.ts +60 -60
  647. package/app/pages/tokens.vue +111 -111
  648. package/app/pages/tools/index.vue +98 -98
  649. package/app/pages/workshop/agents.vue +130 -130
  650. package/app/pages/workshop/composables/useAgentHarnessOptions.ts +59 -59
  651. package/app/pages/workshop/composables/useAgentTemplateActions.ts +42 -42
  652. package/app/pages/workshop/composables/useAgentTemplateDialogState.ts +24 -24
  653. package/app/pages/workshop/composables/useAgentTemplateForm.ts +88 -88
  654. package/app/pages/workshop/composables/useAgentTemplatesCatalog.ts +92 -92
  655. package/app/pages/workshop/composables/useTeamActions.ts +44 -44
  656. package/app/pages/workshop/composables/useTeamAddMemberDialog.ts +49 -49
  657. package/app/pages/workshop/composables/useTeamCreateDialog.ts +67 -67
  658. package/app/pages/workshop/composables/useTeamDeployDialog.ts +49 -49
  659. package/app/pages/workshop/composables/useTeamDialogState.ts +46 -46
  660. package/app/pages/workshop/composables/useTeamPluginDialog.ts +72 -72
  661. package/app/pages/workshop/composables/useTeamsCatalog.ts +100 -100
  662. package/app/pages/workshop/composables/useWorkbenchWorkspaces.ts +123 -123
  663. package/app/pages/workshop/composables/useWorkspaceAuth.ts +31 -31
  664. package/app/pages/workshop/composables/useWorkspaceChannels.ts +62 -62
  665. package/app/pages/workshop/composables/useWorkspaceShell.ts +136 -136
  666. package/app/pages/workshop/schedules.vue +553 -553
  667. package/app/pages/workshop/w/[wsId].vue +221 -221
  668. package/app/plugins/aw-plugins.client.ts +213 -213
  669. package/app/plugins/esc-close.client.ts +31 -31
  670. package/app/stores/workshop/hitl.ts +183 -183
  671. package/app/stores/workshop/narrow-fetch.ts +23 -23
  672. package/app/utils/api-error.ts +75 -75
  673. package/app/utils/builtin-catalog.ts +104 -104
  674. package/app/utils/chart-trend.ts +97 -97
  675. package/app/utils/dcw-driver-badge.ts +16 -16
  676. package/app/utils/dcw-recipe-form.ts +26 -26
  677. package/cli/commands/tui.mjs +28 -28
  678. package/cli/commands/update.mjs +124 -124
  679. package/cli/core/child-lifecycle.mjs +136 -136
  680. package/cli/core/meta.mjs +38 -38
  681. package/cli/core/post-build.mjs +96 -96
  682. package/config.yml +1 -1
  683. package/docs/cli.en.md +2 -2
  684. package/docs/cli.md +2 -2
  685. package/docs/mcp.en.md +27 -27
  686. package/docs/multi-harness-architecture.md +248 -248
  687. package/docs/plugins.en.md +1 -1
  688. package/docs/plugins.md +1 -1
  689. package/docs/sdk.en.md +1 -1
  690. package/docs/sdk.md +1 -1
  691. package/docs/tui.md +43 -43
  692. package/i18n/dicts/_en.json +1551 -1551
  693. package/i18n/dicts/_en2.json +300 -300
  694. package/i18n/dicts/_en4.json +114 -114
  695. package/i18n/dicts/agentLanesView.json +61 -61
  696. package/i18n/dicts/appHeader.json +17 -17
  697. package/i18n/dicts/channelSessionList.json +51 -51
  698. package/i18n/dicts/chat.json +79 -79
  699. package/i18n/dicts/clusterTool.json +4 -4
  700. package/i18n/dicts/composer.json +38 -38
  701. package/i18n/dicts/ctpl.json +37 -37
  702. package/i18n/dicts/dcwDetail.json +219 -219
  703. package/i18n/dicts/lineOps.json +14 -14
  704. package/i18n/dicts/multiChannelView.json +13 -13
  705. package/i18n/dicts/notifications.json +13 -13
  706. package/i18n/dicts/taskInspectorDrawer.json +25 -25
  707. package/i18n/dicts/teamPlugins.json +10 -10
  708. package/i18n/dicts/townView.json +209 -209
  709. package/mcp/discovery.mjs +227 -227
  710. package/package.json +1 -1
  711. package/public/favicon.svg +14 -14
  712. package/public/robots.txt +3 -3
  713. package/scripts/_audit/audit-harness-adapters.md +664 -664
  714. package/scripts/_audit/aw-mcp-live-e2e.mjs +293 -293
  715. package/scripts/_audit/bump-version.mjs +51 -51
  716. package/scripts/_audit/detached-instance.mjs +112 -112
  717. package/scripts/_audit/detached-start.mjs +103 -103
  718. package/scripts/_audit/eda-ui-fix-acceptance.mjs +212 -212
  719. package/scripts/_audit/guard-upstream-liveness.mjs +104 -104
  720. package/scripts/_audit/http-api-authz-audit.md +657 -657
  721. package/scripts/_audit/kb-team-mock-e2e.mjs +146 -146
  722. package/scripts/_audit/kb-team-omp-e2e.mjs +229 -229
  723. package/scripts/_audit/run.mjs +21 -21
  724. package/scripts/_audit/runtime-audit.md +716 -716
  725. package/scripts/_audit/skills-guided-e2e.mjs +316 -316
  726. package/scripts/_audit/stability-soak.mjs +252 -252
  727. package/scripts/_audit/stubs/nuxt-imports.mjs +67 -67
  728. package/scripts/_audit/ts-register-hook.mjs +12 -12
  729. package/scripts/_audit/ts-resolve-hook.mjs +96 -96
  730. package/scripts/_aw-packaged-start.cjs +22 -22
  731. package/scripts/_aw0746-stage12.mjs +94 -94
  732. package/scripts/_aw0746-stage34.mjs +136 -136
  733. package/scripts/_aw0746-stage6b-train-sweep.mjs +145 -145
  734. package/scripts/_aw0746-stage6c-jobsmoke.mjs +69 -69
  735. package/scripts/_dbg-configroot-audit.mjs +86 -86
  736. package/scripts/_dbg-daq-intervals-func.mjs +115 -115
  737. package/scripts/_dbg-perms-e2e.mjs +142 -142
  738. package/scripts/_dbg-protocol-matrix.mjs +462 -462
  739. package/scripts/_dbg-render-regression.mjs +193 -193
  740. package/scripts/_dbg-schedule-e2e.mjs +262 -262
  741. package/scripts/_e2e-ui-functional.mjs +371 -371
  742. package/scripts/_i18n-en-cjk-scan.mjs +28 -28
  743. package/scripts/_i18n-en-verify.mjs +107 -107
  744. package/scripts/_i18n-extra-checks.mjs +53 -53
  745. package/scripts/_i18n-scan-hardcoded.mjs +180 -180
  746. package/scripts/_lib-aml-python-run.mjs +17 -17
  747. package/scripts/_lint-reflow.mjs +105 -105
  748. package/scripts/_loop-biax-campaign.mjs +130 -130
  749. package/scripts/_plc-sim-detached.cjs +22 -22
  750. package/scripts/_probe-daq-omp-task.mjs +100 -100
  751. package/scripts/_probe-daq-scope-default.mjs +123 -123
  752. package/scripts/_probe-model-channel-link.cjs +25 -25
  753. package/scripts/_probe-recipe-switch.mjs +92 -92
  754. package/scripts/_provision-injection-line.mjs +39 -39
  755. package/scripts/_run-matrix.ps1 +53 -53
  756. package/scripts/_sweep-button-contrast.mjs +87 -87
  757. package/scripts/acceptance-aml-hybrid-e2e.ts +396 -396
  758. package/scripts/acceptance-aml-hybrid-live.mjs +93 -93
  759. package/scripts/acceptance-aml-model-identity.ts +137 -137
  760. package/scripts/agent-daq-isolation-e2e.mjs +91 -91
  761. package/scripts/api-contract-smoke.mjs +126 -126
  762. package/scripts/ask-hitl-e2e.mjs +96 -96
  763. package/scripts/aw-expose.mjs +159 -159
  764. package/scripts/channel-interaction-smoke.mjs +80 -80
  765. package/scripts/data-studio-ui-e2e.mjs +163 -163
  766. package/scripts/demo-group-chat-all-real.ts +279 -279
  767. package/scripts/demo-group-chat-omp-cases.ts +210 -210
  768. package/scripts/demo-group-chat-omp.ts +184 -184
  769. package/scripts/demo-group-chat-order.ts +197 -197
  770. package/scripts/dev-modbus-simulator.mjs +55 -55
  771. package/scripts/docs-shots.mjs +36 -36
  772. package/scripts/e2e-agentteam-chat.mjs +473 -473
  773. package/scripts/e2e-agentteam-real-triage.mjs +421 -421
  774. package/scripts/e2e-aml-decoupled.mjs +162 -162
  775. package/scripts/e2e-aw-tui-global.mjs +277 -277
  776. package/scripts/e2e-closedloop/cleanup.mjs +27 -27
  777. package/scripts/e2e-closedloop/lib.mjs +109 -109
  778. package/scripts/e2e-closedloop/main.mjs +59 -59
  779. package/scripts/e2e-closedloop/scenarios-accounts.mjs +210 -210
  780. package/scripts/e2e-closedloop/scenarios-authz.mjs +196 -196
  781. package/scripts/e2e-closedloop/scenarios-daq-dcw.mjs +222 -222
  782. package/scripts/e2e-closedloop/scenarios-plugins.mjs +169 -169
  783. package/scripts/e2e-closedloop/state.mjs +10 -10
  784. package/scripts/e2e-config-groups.mjs +238 -238
  785. package/scripts/e2e-crash-cycle.mjs +108 -108
  786. package/scripts/e2e-full-closedloop.mjs +16 -16
  787. package/scripts/e2e-hil-multi-user.mjs +307 -307
  788. package/scripts/e2e-hil-restart.mjs +339 -339
  789. package/scripts/e2e-injection-recipe-closedloop.mjs +203 -203
  790. package/scripts/e2e-line-governance.mjs +352 -352
  791. package/scripts/e2e-ontology.mjs +393 -393
  792. package/scripts/e2e-plc-plugin-closedloop.mjs +549 -549
  793. package/scripts/e2e-timezone-settings.mjs +57 -57
  794. package/scripts/full-stack-shots.mjs +145 -145
  795. package/scripts/full-tool-injection-harness-e2e.mjs +214 -214
  796. package/scripts/hitl-reject-e2e.mjs +131 -131
  797. package/scripts/line-log-smoke.mjs +260 -260
  798. package/scripts/live-aml-mockomp.mjs +304 -304
  799. package/scripts/live-aml-optloop-resume.mjs +322 -322
  800. package/scripts/live-aml-optloop.mjs +588 -588
  801. package/scripts/live-aml-stage9.mjs +169 -169
  802. package/scripts/live-aml-two-goals.mjs +315 -315
  803. package/scripts/live-optloop-two-modes.mjs +857 -857
  804. package/scripts/mes-agent-integration-e2e.mjs +361 -361
  805. package/scripts/ops-plugins-e2e.mjs +85 -85
  806. package/scripts/proof-omp-real.ts +189 -189
  807. package/scripts/scenario-suite-setup.mjs +337 -337
  808. package/scripts/scenario-suite-stability.mjs +144 -144
  809. package/scripts/smoke-optimization-verify.ts +72 -72
  810. package/scripts/team-coordination-e2e.mjs +96 -96
  811. package/scripts/test-agentteam-task-chat-flow.ts +420 -420
  812. package/scripts/test-agentteam-workflow.ts +472 -472
  813. package/scripts/test-aw-skills.mjs +102 -102
  814. package/scripts/test-cli-exit.mjs +343 -343
  815. package/scripts/test-daq-frame-race.mjs +358 -358
  816. package/scripts/test-data-root.mjs +208 -208
  817. package/scripts/test-events-index.mjs +176 -176
  818. package/scripts/test-group-chat-hardening.ts +265 -265
  819. package/scripts/test-group-chat-unit/lib.ts +186 -186
  820. package/scripts/test-group-chat-unit/main.ts +45 -45
  821. package/scripts/test-group-chat-unit/section-a-migration.ts +75 -75
  822. package/scripts/test-group-chat-unit/section-b-permission-matrix.ts +88 -88
  823. package/scripts/test-group-chat-unit/section-c-member-lifecycle.ts +64 -64
  824. package/scripts/test-group-chat-unit/section-d-mention-resolution.ts +36 -36
  825. package/scripts/test-group-chat-unit/section-e-chat-facts.ts +97 -97
  826. package/scripts/test-group-chat-unit/section-f-user-notifications.ts +52 -52
  827. package/scripts/test-group-chat-unit/section-g-member-projection.ts +44 -44
  828. package/scripts/test-group-chat-unit/section-h-outbox-consistency.ts +30 -30
  829. package/scripts/test-group-chat-unit/section-i-read-idempotency.ts +24 -24
  830. package/scripts/test-group-chat-unit/section-j-permission-scope.ts +150 -150
  831. package/scripts/test-group-chat-unit.ts +35 -35
  832. package/scripts/test-hitl-decision.ts +526 -526
  833. package/scripts/test-hitl-legacy-channel-auth.ts +143 -143
  834. package/scripts/test-hitl-registry.ts +112 -112
  835. package/scripts/test-log-flooding.mjs +160 -160
  836. package/scripts/test-lru.mjs +101 -101
  837. package/scripts/test-memory-month-query.mjs +70 -70
  838. package/scripts/test-plugin-hardening.mjs +90 -90
  839. package/scripts/test-plugin-lifecycle.mjs +173 -173
  840. package/scripts/test-rollback-index.mjs +137 -137
  841. package/scripts/test-schedule-runtime.ts +309 -309
  842. package/scripts/test-scheduler-loop/scenarios-supervise.ts +25 -25
  843. package/scripts/test-sdk-surface.mjs +158 -158
  844. package/scripts/test-serial-bridge.mjs +418 -418
  845. package/scripts/test-tui-commands.mjs +148 -148
  846. package/scripts/test-tui-reducers.mjs +72 -72
  847. package/scripts/three-system-e2e/lib.mjs +79 -79
  848. package/scripts/three-system-e2e/main.mjs +40 -40
  849. package/scripts/three-system-e2e/phases/phase-0-user-token.mjs +42 -42
  850. package/scripts/three-system-e2e/phases/phase-0a2-line-autoselect.mjs +35 -35
  851. package/scripts/three-system-e2e/phases/phase-0b-fixture-grants.mjs +39 -39
  852. package/scripts/three-system-e2e/phases/phase-0c-plugin-outbound-auth.mjs +95 -95
  853. package/scripts/three-system-e2e/phases/stage-1-health.mjs +47 -47
  854. package/scripts/three-system-e2e/phases/stage-2-5-team-plugins.mjs +84 -84
  855. package/scripts/three-system-e2e/phases/stage-2-teams-tools-hitl.mjs +184 -184
  856. package/scripts/three-system-e2e/phases/stage-3-diag.mjs +73 -73
  857. package/scripts/three-system-e2e/phases/stage-4-plugin-toggle.mjs +53 -53
  858. package/scripts/three-system-e2e/state.mjs +87 -87
  859. package/scripts/three-system-e2e.mjs +40 -40
  860. package/scripts/tool-face-batch-identity-e2e.mjs +222 -222
  861. package/scripts/tsconfig.json +14 -14
  862. package/scripts/tui-smoke.mjs +100 -100
  863. package/scripts/typecheck.mjs +75 -75
  864. package/scripts/ui/admin-shots.mjs +46 -46
  865. package/scripts/ui/bump-microfont.mjs +39 -39
  866. package/scripts/ui/linkcheck2.mjs +37 -37
  867. package/scripts/ui/live-render-check.mjs +72 -72
  868. package/scripts/ui/md-lint.mjs +80 -80
  869. package/scripts/ui/perf-audit.mjs +132 -132
  870. package/scripts/ui/readme-assets.mjs +30 -30
  871. package/scripts/ui/readme-shots.mjs +42 -42
  872. package/scripts/ui/record-demo.mjs +557 -557
  873. package/scripts/ui/record.mjs +225 -225
  874. package/scripts/ui/seed-admin.mjs +68 -68
  875. package/scripts/ui/seed-demo.mjs +83 -83
  876. package/scripts/ui/seed-industrial-demo.mjs +171 -171
  877. package/scripts/ui/shot-hero.mjs +25 -25
  878. package/scripts/ui/shots.mjs +75 -75
  879. package/scripts/ui/sim-ui-shot.mjs +16 -16
  880. package/scripts/ui/smoke-refactor.mjs +258 -258
  881. package/scripts/ui/verify-nav.mjs +51 -51
  882. package/scripts/ui/verify-responsive.mjs +285 -285
  883. package/sdk/client.d.mts +110 -110
  884. package/sdk/examples/line-sentinel/index.mjs +105 -105
  885. package/sdk/examples/ops-notifier/index.mjs +34 -34
  886. package/sdk/examples/sample-insight/index.mjs +39 -39
  887. package/server/api/plugins/client/[name].get.ts +18 -18
  888. package/server/api/plugins/i18n.get.ts +12 -12
  889. package/server/api/plugins/manifest.get.ts +10 -10
  890. package/server/api/system/backup/list.get.ts +32 -32
  891. package/server/api/system/backup/run.post.ts +21 -21
  892. package/server/api/system/config-groups/[id].delete.ts +21 -21
  893. package/server/api/system/config-groups/[id].patch.ts +26 -26
  894. package/server/api/system/config-groups/index.get.ts +21 -21
  895. package/server/api/system/config-groups/index.post.ts +33 -33
  896. package/server/api/system/timezone.get.ts +20 -20
  897. package/server/api/users/tokens/[id]/token.get.ts +11 -11
  898. package/server/api/workshop/[...path].ts +13 -13
  899. package/server/api/workshop/agent-tools/approvals/index.get.ts +43 -43
  900. package/server/api/workshop/agent-tools/bindings/[id].delete.ts +26 -26
  901. package/server/api/workshop/agent-tools/bindings/grant.post.ts +45 -45
  902. package/server/api/workshop/agent-tools/bindings/index.get.ts +41 -41
  903. package/server/api/workshop/agent-tools/bindings/revoke.post.ts +42 -42
  904. package/server/api/workshop/aml/datasets/[id]/preview.get.ts +68 -68
  905. package/server/api/workshop/aml/datasets/[id].delete.ts +39 -39
  906. package/server/api/workshop/aml/datasets/[id].get.ts +53 -53
  907. package/server/api/workshop/aml/datasets/[id].patch.ts +30 -30
  908. package/server/api/workshop/aml/datasets/index.get.ts +20 -20
  909. package/server/api/workshop/aml/datasets/index.post.ts +27 -27
  910. package/server/api/workshop/aml/entities/index.get.ts +13 -13
  911. package/server/api/workshop/aml/entities/prune.post.ts +28 -28
  912. package/server/api/workshop/aml/env/index.get.ts +13 -13
  913. package/server/api/workshop/aml/env/recheck.post.ts +14 -14
  914. package/server/api/workshop/aml/env/uv.post.ts +21 -21
  915. package/server/api/workshop/aml/env/venv.post.ts +24 -24
  916. package/server/api/workshop/aml/experiments/index.get.ts +35 -35
  917. package/server/api/workshop/aml/index.get.ts +37 -37
  918. package/server/api/workshop/aml/jobs/[id]/cancel.post.ts +21 -21
  919. package/server/api/workshop/aml/jobs/[id]/logs.get.ts +23 -23
  920. package/server/api/workshop/aml/jobs/[id]/retry.post.ts +20 -20
  921. package/server/api/workshop/aml/jobs/[id].delete.ts +44 -44
  922. package/server/api/workshop/aml/jobs/[id].get.ts +23 -23
  923. package/server/api/workshop/aml/jobs/index.get.ts +26 -26
  924. package/server/api/workshop/aml/models/[id]/predict.post.ts +24 -24
  925. package/server/api/workshop/aml/models/[id]/promote.post.ts +30 -30
  926. package/server/api/workshop/aml/models/index.get.ts +48 -48
  927. package/server/api/workshop/aml/training-plans/[id]/train.post.ts +18 -18
  928. package/server/api/workshop/aml/training-plans/[id].delete.ts +18 -18
  929. package/server/api/workshop/aml/training-plans/[id].patch.ts +30 -30
  930. package/server/api/workshop/aml/training-plans/index.get.ts +9 -9
  931. package/server/api/workshop/aml/training-plans/index.post.ts +43 -43
  932. package/server/api/workshop/approvals/[id]/decide.post.ts +30 -30
  933. package/server/api/workshop/approvals/index.get.ts +22 -22
  934. package/server/api/workshop/audit.get.ts +43 -43
  935. package/server/api/workshop/channels/[id]/chat/messages/[messageId]/read.post.ts +22 -22
  936. package/server/api/workshop/channels/[id]/chat/messages/index.get.ts +29 -29
  937. package/server/api/workshop/channels/[id]/chat/messages/index.post.ts +51 -51
  938. package/server/api/workshop/channels/[id]/chat/permissions.get.ts +35 -35
  939. package/server/api/workshop/channels/[id]/index.patch.ts +64 -64
  940. package/server/api/workshop/channels/[id]/members/[userId]/approve.post.ts +20 -20
  941. package/server/api/workshop/channels/[id]/members/[userId].delete.ts +21 -21
  942. package/server/api/workshop/channels/[id]/members/index.get.ts +23 -23
  943. package/server/api/workshop/channels/[id]/members/leave.post.ts +20 -20
  944. package/server/api/workshop/channels/[id]/twin-profile.get.ts +45 -45
  945. package/server/api/workshop/channels/[id]/twin-profile.patch.ts +72 -72
  946. package/server/api/workshop/daq/[id]/test.post.ts +1 -1
  947. package/server/api/workshop/daq/alarms.get.ts +16 -16
  948. package/server/api/workshop/dcw/[id]/write.post.ts +4 -4
  949. package/server/api/workshop/dcw/[id].delete.ts +41 -41
  950. package/server/api/workshop/dcw/[id].patch.ts +40 -40
  951. package/server/api/workshop/dcw/mes-test-read.post.ts +24 -24
  952. package/server/api/workshop/dcw/params/[id]/read.post.ts +17 -17
  953. package/server/api/workshop/dcw/params/[id]/write.post.ts +21 -21
  954. package/server/api/workshop/dcw/params/[id].delete.ts +19 -19
  955. package/server/api/workshop/dcw/params/[id].patch.ts +23 -23
  956. package/server/api/workshop/dcw/params/index.get.ts +27 -27
  957. package/server/api/workshop/dcw/params/index.post.ts +25 -25
  958. package/server/api/workshop/dcw/products/[id].delete.ts +16 -16
  959. package/server/api/workshop/dcw/products/[id].patch.ts +17 -17
  960. package/server/api/workshop/dcw/recipes/[id]/index.patch.ts +22 -22
  961. package/server/api/workshop/dcw/recipes/[id]/versions.get.ts +14 -14
  962. package/server/api/workshop/dcw/recipes/[id].delete.ts +25 -25
  963. package/server/api/workshop/dcw/recipes/index.get.ts +12 -12
  964. package/server/api/workshop/dcw/runs/[id]/close.post.ts +15 -15
  965. package/server/api/workshop/dcw/templates/[key].delete.ts +14 -14
  966. package/server/api/workshop/dcw/templates/[key].patch.ts +16 -16
  967. package/server/api/workshop/dcw/templates/index.post.ts +15 -15
  968. package/server/api/workshop/dcw/test-driver.post.ts +16 -16
  969. package/server/api/workshop/device-twins/[id].delete.ts +25 -25
  970. package/server/api/workshop/eda/runs/[id]/labels.patch.ts +25 -25
  971. package/server/api/workshop/exp/confirmations/[id]/decide.post.ts +41 -41
  972. package/server/api/workshop/exp/confirmations/index.get.ts +25 -25
  973. package/server/api/workshop/harnesses/[id]/providers.get.ts +16 -16
  974. package/server/api/workshop/hitl/respond.post.ts +94 -94
  975. package/server/api/workshop/notifications/index.get.ts +60 -60
  976. package/server/api/workshop/notifications/read.post.ts +31 -31
  977. package/server/api/workshop/ontology/drafts/[draftId]/subgraph.ts +24 -24
  978. package/server/api/workshop/plugins/[name]/disable.post.ts +21 -21
  979. package/server/api/workshop/plugins/[name]/enable.post.ts +21 -21
  980. package/server/api/workshop/plugins/[name]/index.get.ts +14 -14
  981. package/server/api/workshop/schedules/[id]/run.post.ts +15 -15
  982. package/server/api/workshop/schedules/[id]/runs.get.ts +15 -15
  983. package/server/api/workshop/schedules/[id].delete.ts +14 -14
  984. package/server/api/workshop/schedules/[id].get.ts +13 -13
  985. package/server/api/workshop/schedules/[id].patch.ts +29 -29
  986. package/server/api/workshop/schedules/index.get.ts +12 -12
  987. package/server/api/workshop/schedules/index.post.ts +32 -32
  988. package/server/api/workshop/tasks/[id]/reassign.post.ts +32 -32
  989. package/server/api/workshop/tasks/[id]/update.post.ts +35 -35
  990. package/server/api/workshop/teams/[id]/plugins/index.get.ts +36 -36
  991. package/server/api/workshop/teams/[id]/plugins/index.put.ts +42 -42
  992. package/server/api/workshop/ws/audience.ts +56 -56
  993. package/server/api/workshop/ws/db-buffer.ts +68 -68
  994. package/server/api/workshop/ws/event-mapping.ts +47 -47
  995. package/server/api/workshop/ws/handlers.ts +132 -132
  996. package/server/api/workshop/ws/hub.ts +133 -133
  997. package/server/api/workshop/ws/index.ts +23 -23
  998. package/server/api/workshop/ws/notification-uplink.ts +77 -77
  999. package/server/api/workshop/ws/shared.ts +94 -94
  1000. package/server/api/workshop/ws/streams.ts +146 -146
  1001. package/server/middleware/00-security-headers.ts +38 -38
  1002. package/server/middleware/01-rate-guard.ts +101 -101
  1003. package/server/plugins/aml-twin-worker.ts +32 -32
  1004. package/server/plugins/dev-stability-guard.ts +42 -42
  1005. package/server/plugins-builtin/diag-bridge/host/constants.mjs +25 -25
  1006. package/server/plugins-builtin/diag-bridge/host/exports.mjs +104 -104
  1007. package/server/plugins-builtin/diag-bridge/host/helpers.mjs +2 -2
  1008. package/server/plugins-builtin/diag-bridge/host/index.mjs +15 -15
  1009. package/server/plugins-builtin/diag-bridge/host/intents.mjs +62 -62
  1010. package/server/plugins-builtin/diag-bridge/host/plugin.mjs +5 -3
  1011. package/server/plugins-builtin/diag-bridge/host/snapshot.mjs +93 -93
  1012. package/server/plugins-builtin/diag-bridge/index.mjs +9 -9
  1013. package/server/plugins-builtin/serial-bridge/client.mjs +211 -211
  1014. package/server/plugins-builtin/serial-bridge/drivers.mjs +409 -409
  1015. package/server/plugins-builtin/serial-bridge/i18n.json +62 -62
  1016. package/server/plugins-builtin/serial-bridge/index.mjs +247 -247
  1017. package/server/plugins-builtin/serial-bridge/lib.mjs +208 -208
  1018. package/server/plugins-builtin/serial-bridge/rtu.mjs +168 -168
  1019. package/server/services/system-config/contracts.ts +29 -29
  1020. package/server/services/system-config/dispose.ts +19 -19
  1021. package/server/services/system-config/facade.ts +26 -26
  1022. package/server/services/system-config/groups.ts +108 -108
  1023. package/server/services/system-config/index.ts +21 -21
  1024. package/server/services/system-config/init.ts +26 -26
  1025. package/server/services/system-config/mutate.ts +103 -103
  1026. package/server/services/system-config/plugins.ts +104 -104
  1027. package/server/services/system-config/snapshot.ts +59 -59
  1028. package/server/services/system-config/state.ts +79 -79
  1029. package/server/services/system-config/types.ts +58 -58
  1030. package/server/services/workshop/agents/adapters/omp-rpc-client/api.ts +111 -111
  1031. package/server/services/workshop/agents/adapters/omp-rpc-client/contracts.ts +22 -22
  1032. package/server/services/workshop/agents/adapters/omp-rpc-client/facade.ts +7 -7
  1033. package/server/services/workshop/agents/adapters/omp-rpc-client/frames.ts +0 -18
  1034. package/server/services/workshop/agents/adapters/omp-rpc-client/helpers.ts +38 -38
  1035. package/server/services/workshop/agents/adapters/omp-rpc-client/index.ts +25 -25
  1036. package/server/services/workshop/agents/adapters/omp-rpc-client/start.ts +70 -70
  1037. package/server/services/workshop/agents/adapters/omp-rpc-client/state.ts +65 -65
  1038. package/server/services/workshop/agents/adapters/omp-rpc-client/stdout.ts +92 -92
  1039. package/server/services/workshop/agents/adapters/omp-rpc-client/usage.ts +47 -47
  1040. package/server/services/workshop/agents/agent-badge.ts +38 -38
  1041. package/server/services/workshop/agents/binding-authz.ts +60 -60
  1042. package/server/services/workshop/agents/binding-mode.ts +51 -51
  1043. package/server/services/workshop/agents/codex-agent/client.ts +170 -170
  1044. package/server/services/workshop/agents/codex-agent/core.ts +119 -119
  1045. package/server/services/workshop/agents/codex-agent/facade.ts +8 -8
  1046. package/server/services/workshop/agents/codex-agent/helpers.ts +13 -13
  1047. package/server/services/workshop/agents/codex-agent/hitl.ts +138 -138
  1048. package/server/services/workshop/agents/codex-agent/index.ts +14 -14
  1049. package/server/services/workshop/agents/codex-agent/turn.ts +367 -367
  1050. package/server/services/workshop/agents/codex-agent/types.ts +42 -42
  1051. package/server/services/workshop/agents/harness-process.ts +3 -3
  1052. package/server/services/workshop/agents/harness-terminal/api.ts +197 -197
  1053. package/server/services/workshop/agents/harness-terminal/index.ts +17 -17
  1054. package/server/services/workshop/agents/harness-terminal/io.ts +120 -120
  1055. package/server/services/workshop/agents/harness-terminal/park.ts +55 -55
  1056. package/server/services/workshop/agents/harness-terminal/sanitize.ts +98 -98
  1057. package/server/services/workshop/agents/harness-terminal/session.ts +124 -124
  1058. package/server/services/workshop/agents/harness-terminal/shared.ts +74 -74
  1059. package/server/services/workshop/agents/hitl-capabilities.ts +312 -312
  1060. package/server/services/workshop/agents/hitl-decision/answers.ts +32 -32
  1061. package/server/services/workshop/agents/hitl-decision/decide.ts +268 -268
  1062. package/server/services/workshop/agents/hitl-decision/payload.ts +45 -45
  1063. package/server/services/workshop/agents/hitl-decision/shared.ts +108 -108
  1064. package/server/services/workshop/agents/hitl-decision/visibility.ts +94 -94
  1065. package/server/services/workshop/agents/host-tool-bridge/tools/progress.ts +84 -84
  1066. package/server/services/workshop/agents/host-tool-bridge/tools/team-delegation.ts +104 -104
  1067. package/server/services/workshop/agents/host-tool-bridge/tools/team.ts +70 -70
  1068. package/server/services/workshop/agents/industrial/aml-activity.ts +131 -131
  1069. package/server/services/workshop/agents/industrial/audit-query.ts +66 -66
  1070. package/server/services/workshop/agents/industrial/daq-tools.ts +352 -352
  1071. package/server/services/workshop/agents/industrial/exp-tools.ts +104 -104
  1072. package/server/services/workshop/agents/industrial/ops-tools.ts +16 -54
  1073. package/server/services/workshop/agents/industrial/param-tools.ts +69 -69
  1074. package/server/services/workshop/agents/industrial/recipe-gate.ts +6 -19
  1075. package/server/services/workshop/agents/industrial/recipe-propose-tools.ts +1 -1
  1076. package/server/services/workshop/agents/node-bindings.repo.ts +207 -207
  1077. package/server/services/workshop/agents/node-delegation.ts +159 -159
  1078. package/server/services/workshop/agents/omp-agent/core.ts +146 -146
  1079. package/server/services/workshop/agents/omp-agent/facade.ts +8 -8
  1080. package/server/services/workshop/agents/omp-agent/helpers.ts +37 -37
  1081. package/server/services/workshop/agents/omp-agent/index.ts +16 -16
  1082. package/server/services/workshop/agents/omp-agent/tools-steer.ts +1 -18
  1083. package/server/services/workshop/agents/omp-agent/types.ts +45 -45
  1084. package/server/services/workshop/agents/opencode-agent/core.ts +77 -77
  1085. package/server/services/workshop/agents/opencode-agent/facade.ts +8 -8
  1086. package/server/services/workshop/agents/opencode-agent/helpers.ts +29 -29
  1087. package/server/services/workshop/agents/opencode-agent/hitl.ts +113 -113
  1088. package/server/services/workshop/agents/opencode-agent/index.ts +16 -16
  1089. package/server/services/workshop/agents/opencode-agent/lifecycle.ts +44 -44
  1090. package/server/services/workshop/agents/opencode-agent/server.ts +244 -244
  1091. package/server/services/workshop/agents/opencode-agent/turn.ts +278 -278
  1092. package/server/services/workshop/agents/opencode-agent/types.ts +54 -54
  1093. package/server/services/workshop/agents/tool-classes.ts +44 -44
  1094. package/server/services/workshop/aml/clean.ts +120 -120
  1095. package/server/services/workshop/aml/entity.ts +367 -367
  1096. package/server/services/workshop/aml/job-orchestrator/broadcast.ts +37 -37
  1097. package/server/services/workshop/aml/job-orchestrator/control.ts +94 -94
  1098. package/server/services/workshop/aml/job-orchestrator/failure.ts +96 -96
  1099. package/server/services/workshop/aml/job-orchestrator/index.ts +22 -22
  1100. package/server/services/workshop/aml/job-orchestrator/process.ts +101 -101
  1101. package/server/services/workshop/aml/job-orchestrator/shared.ts +53 -53
  1102. package/server/services/workshop/aml/job-orchestrator/status.ts +20 -20
  1103. package/server/services/workshop/aml/job-orchestrator/tick.ts +37 -37
  1104. package/server/services/workshop/aml/python/train-example.py +92 -92
  1105. package/server/services/workshop/aml/runtime.ts +137 -137
  1106. package/server/services/workshop/aml/stats.ts +140 -140
  1107. package/server/services/workshop/aml/twin/calibration-worker.ts +150 -150
  1108. package/server/services/workshop/aml/twin/model-backed-provider.ts +332 -332
  1109. package/server/services/workshop/aml/twin/physics-spec-draft.ts +185 -185
  1110. package/server/services/workshop/aml/twin/prompt-composer.ts +143 -143
  1111. package/server/services/workshop/aml/twin/training-plans.ts +260 -260
  1112. package/server/services/workshop/aml/twin/write-guard.ts +19 -19
  1113. package/server/services/workshop/assets/character-asset.repo.ts +1 -1
  1114. package/server/services/workshop/assets/device-twin.repo.ts +1 -1
  1115. package/server/services/workshop/daq/bus/index.ts +5 -12
  1116. package/server/services/workshop/daq/daq-controller/contracts.ts +39 -39
  1117. package/server/services/workshop/daq/daq-controller/facade.ts +28 -28
  1118. package/server/services/workshop/daq/daq-controller/frames.ts +137 -137
  1119. package/server/services/workshop/daq/daq-controller/helpers.ts +52 -52
  1120. package/server/services/workshop/daq/daq-controller/index.ts +22 -22
  1121. package/server/services/workshop/daq/daq-controller/runtime-control.ts +72 -72
  1122. package/server/services/workshop/daq/daq-controller/sweep-alarms.ts +176 -176
  1123. package/server/services/workshop/daq/daq-controller/tsdb-twin.ts +138 -138
  1124. package/server/services/workshop/daq/drivers/http.ts +95 -95
  1125. package/server/services/workshop/daq/drivers/mock.ts +130 -130
  1126. package/server/services/workshop/daq/drivers/modbus-rtu.ts +67 -67
  1127. package/server/services/workshop/daq/drivers/modbus-tcp.ts +307 -307
  1128. package/server/services/workshop/daq/drivers/opcua.ts +227 -227
  1129. package/server/services/workshop/daq/drivers/s7-stub.ts +29 -29
  1130. package/server/services/workshop/daq/host-bindings.ts +71 -71
  1131. package/server/services/workshop/daq/host-ports.ts +65 -65
  1132. package/server/services/workshop/db/aml-team-seeds.ts +118 -118
  1133. package/server/services/workshop/db/backup-registry.ts +33 -33
  1134. package/server/services/workshop/db/channel-member.repo.ts +122 -122
  1135. package/server/services/workshop/db/channel.repo.ts +203 -203
  1136. package/server/services/workshop/db/chat-message.repo.ts +233 -233
  1137. package/server/services/workshop/db/database/index.ts +18 -18
  1138. package/server/services/workshop/db/database/json.ts +14 -14
  1139. package/server/services/workshop/db/database/open.ts +97 -97
  1140. package/server/services/workshop/db/database/seed-data.ts +60 -60
  1141. package/server/services/workshop/db/hitl-request.repo.ts +221 -221
  1142. package/server/services/workshop/db/notification.repo.ts +199 -199
  1143. package/server/services/workshop/db/readonly.ts +30 -30
  1144. package/server/services/workshop/db/scheduled-task.repo.ts +235 -235
  1145. package/server/services/workshop/db/transaction.ts +72 -72
  1146. package/server/services/workshop/dcw/dcw-controller/contracts.ts +16 -16
  1147. package/server/services/workshop/dcw/dcw-controller/control.ts +78 -78
  1148. package/server/services/workshop/dcw/dcw-controller/facade.ts +19 -19
  1149. package/server/services/workshop/dcw/dcw-controller/index.ts +22 -22
  1150. package/server/services/workshop/dcw/dcw-controller/params.ts +97 -97
  1151. package/server/services/workshop/dcw/dcw-controller/products.ts +103 -103
  1152. package/server/services/workshop/dcw/dcw-controller/write-audit.ts +49 -49
  1153. package/server/services/workshop/dcw/dcw-templates.ts +136 -136
  1154. package/server/services/workshop/dcw/param-conversion.ts +78 -78
  1155. package/server/services/workshop/dcw/param-map.repo.ts +349 -349
  1156. package/server/services/workshop/dcw/plugin-bridge.ts +45 -45
  1157. package/server/services/workshop/dcw/recipe-rollback-manager/contracts.ts +26 -26
  1158. package/server/services/workshop/dcw/recipe-rollback-manager/facade.ts +13 -13
  1159. package/server/services/workshop/dcw/recipe-rollback-manager/helpers.ts +30 -30
  1160. package/server/services/workshop/dcw/recipe-rollback-manager/index.ts +17 -17
  1161. package/server/services/workshop/dcw/recipe-rollback-manager/internal.ts +33 -33
  1162. package/server/services/workshop/dcw/recipe-rollback-manager/judge.ts +52 -52
  1163. package/server/services/workshop/dcw/recipe-rollback-manager/lock.ts +137 -137
  1164. package/server/services/workshop/dcw/recipe-rollback-manager/rollback.ts +190 -190
  1165. package/server/services/workshop/dcw/recipe-rollback-manager/state.ts +21 -21
  1166. package/server/services/workshop/dcw/recipe-rollback-manager/sweep.ts +77 -77
  1167. package/server/services/workshop/dcw/recipe-rollback-manager/types.ts +3 -3
  1168. package/server/services/workshop/dcw/recipe-rollback-manager/views.ts +214 -214
  1169. package/server/services/workshop/exp/exp-collector.ts +275 -275
  1170. package/server/services/workshop/exp/exp-state.repo.ts +339 -339
  1171. package/server/services/workshop/mes/mes-controller.ts +1155 -1155
  1172. package/server/services/workshop/mes/mes-hook.ts +567 -567
  1173. package/server/services/workshop/ontology/subgraph.core.ts +300 -300
  1174. package/server/services/workshop/ontology/subgraph.service.ts +113 -113
  1175. package/server/services/workshop/plugins/host/api.mjs +90 -90
  1176. package/server/services/workshop/plugins/host/config.mjs +135 -135
  1177. package/server/services/workshop/plugins/host/index.mjs +23 -23
  1178. package/server/services/workshop/plugins/host/init.mjs +109 -109
  1179. package/server/services/workshop/plugins/host/load.mjs +321 -321
  1180. package/server/services/workshop/plugins/host/reload.mjs +94 -94
  1181. package/server/services/workshop/plugins/host/rollback.mjs +72 -72
  1182. package/server/services/workshop/plugins/host/state.mjs +54 -54
  1183. package/server/services/workshop/plugins/host/toggle.mjs +64 -64
  1184. package/server/services/workshop/plugins/host.mjs +9 -9
  1185. package/server/services/workshop/runtime/agent-runtime/facade.ts +7 -7
  1186. package/server/services/workshop/runtime/agent-runtime/helpers.ts +18 -18
  1187. package/server/services/workshop/runtime/agent-runtime/index.ts +19 -19
  1188. package/server/services/workshop/runtime/agent-runtime/lifecycle.ts +137 -137
  1189. package/server/services/workshop/runtime/chat-mention.ts +164 -164
  1190. package/server/services/workshop/runtime/chat-projection.ts +246 -246
  1191. package/server/services/workshop/runtime/manager/admin-agents.ts +268 -268
  1192. package/server/services/workshop/runtime/manager/bus.ts +182 -182
  1193. package/server/services/workshop/runtime/manager/channel-template-constants.ts +20 -20
  1194. package/server/services/workshop/runtime/manager/chat-reply.ts +181 -181
  1195. package/server/services/workshop/runtime/manager/chat.ts +384 -384
  1196. package/server/services/workshop/runtime/manager/facade.ts +24 -24
  1197. package/server/services/workshop/runtime/manager/helpers.ts +119 -119
  1198. package/server/services/workshop/runtime/manager/index.ts +42 -42
  1199. package/server/services/workshop/runtime/manager/internal.ts +73 -73
  1200. package/server/services/workshop/runtime/manager/notifications.ts +108 -108
  1201. package/server/services/workshop/runtime/manager/teams.ts +148 -148
  1202. package/server/services/workshop/runtime/memory/contracts.ts +18 -18
  1203. package/server/services/workshop/runtime/memory/facade.ts +10 -10
  1204. package/server/services/workshop/runtime/memory/helpers.ts +196 -196
  1205. package/server/services/workshop/runtime/memory/index.ts +27 -27
  1206. package/server/services/workshop/runtime/memory/score.ts +33 -33
  1207. package/server/services/workshop/runtime/memory/state.ts +40 -40
  1208. package/server/services/workshop/runtime/monitor.ts +3 -3
  1209. package/server/services/workshop/runtime/platform-notice.ts +113 -113
  1210. package/server/services/workshop/runtime/schedule-runtime.ts +347 -347
  1211. package/server/services/workshop/runtime/scheduler-loop/contracts.ts +29 -29
  1212. package/server/services/workshop/runtime/scheduler-loop/facade.ts +7 -7
  1213. package/server/services/workshop/runtime/scheduler-loop/helpers.ts +14 -14
  1214. package/server/services/workshop/runtime/scheduler-loop/index.ts +16 -16
  1215. package/server/services/workshop/runtime/task-engine/facade.ts +7 -7
  1216. package/server/services/workshop/runtime/task-engine/index.ts +15 -15
  1217. package/server/services/workshop/runtime/task-engine/types.ts +3 -3
  1218. package/server/services/workshop/runtime/user-notification-hub.ts +192 -192
  1219. package/server/types/pg.d.ts +49 -49
  1220. package/server/utils/approval-gate.ts +67 -67
  1221. package/server/utils/mojibake-guard.ts +29 -29
  1222. package/server/utils/stability-severity.ts +77 -77
  1223. package/shared/config/groups.mjs +241 -241
  1224. package/shared/dcw-protocol/catalog.ts +232 -232
  1225. package/shared/dcw-protocol/closed-loop.ts +137 -137
  1226. package/shared/lru.mjs +97 -97
  1227. package/tui/README.md +74 -74
  1228. package/tui/aw-tui.mjs +445 -445
  1229. package/tui/commands/index.mjs +287 -287
  1230. package/tui/components/chat-log.mjs +42 -42
  1231. package/tui/components/monitor-pane.mjs +39 -39
  1232. package/tui/components/root.mjs +53 -53
  1233. package/tui/components/status-bar.mjs +33 -33
  1234. package/tui/lib/api.mjs +82 -82
  1235. package/tui/lib/pickers.mjs +121 -121
  1236. package/tui/lib/reducers.mjs +218 -218
  1237. package/tui/lib/state.mjs +86 -86
  1238. package/tui/lib/virtual-terminal.mjs +48 -48
  1239. package/tui/lib/ws.mjs +125 -125
  1240. package/tui/theme.mjs +38 -38
  1241. package/.output/.AgentWorkShop/aml-python/__pycache__/aml_eval.cpython-312.pyc +0 -0
  1242. package/.output/.AgentWorkShop/aml-python/__pycache__/amlkit.cpython-312.pyc +0 -0
  1243. package/.output/.AgentWorkShop/aml-python/__pycache__/train-example.cpython-312.pyc +0 -0
  1244. package/.output/.AgentWorkShop/aml-python/__pycache__/train-hybrid-example.cpython-312.pyc +0 -0
  1245. package/.output/public/_nuxt/BRYBzVMJ.js +0 -1
  1246. package/.output/public/_nuxt/BW2uTUx52.js +0 -2
  1247. package/.output/public/_nuxt/BtZKe9ZV.js +0 -1
  1248. package/.output/public/_nuxt/CfFUK6932.js +0 -2
  1249. package/.output/public/_nuxt/DhW7cFOa.js +0 -1
  1250. package/.output/public/_nuxt/OmpTerminalPanel.ComMDrA8.css +0 -1
  1251. package/.output/public/_nuxt/PluginSlot.CGH0vb95.css +0 -1
  1252. package/.output/public/_nuxt/TownView.CC3t-Dte.css +0 -1
  1253. package/.output/public/_nuxt/aml.PalMp-5n.css +0 -1
  1254. package/.output/public/_nuxt/builds/meta/20934eea-96ab-412d-b0cd-0061716d8cc4.json +0 -1
  1255. package/.output/public/_nuxt/permissions.DxuOOIqQ.css +0 -1
  1256. package/.output/public/_nuxt/schedules.BXNJ9q_I.css +0 -1
  1257. package/.output/public/_nuxt/tools.BwXFAb-X.css +0 -1
  1258. package/.output/server/chunks/build/AuthGate-nF1evO4v.mjs +0 -716
  1259. package/.output/server/chunks/build/AuthGate-nF1evO4v.mjs.map +0 -1
  1260. package/.output/server/chunks/build/FormItemContext-BlyzocS0.mjs +0 -72
  1261. package/.output/server/chunks/build/FormItemContext-BlyzocS0.mjs.map +0 -1
  1262. package/.output/server/chunks/build/OmpTerminalPanel-BhvhQ1gG.mjs +0 -942
  1263. package/.output/server/chunks/build/OmpTerminalPanel-BhvhQ1gG.mjs.map +0 -1
  1264. package/.output/server/chunks/build/PluginSlot-BUKXwV2X.mjs +0 -141
  1265. package/.output/server/chunks/build/PluginSlot-BUKXwV2X.mjs.map +0 -1
  1266. package/.output/server/chunks/build/TownView-BWMDbosY.mjs +0 -6489
  1267. package/.output/server/chunks/build/TownView-BWMDbosY.mjs.map +0 -1
  1268. package/.output/server/chunks/build/_id_-BK-t8nRG.mjs +0 -392
  1269. package/.output/server/chunks/build/_id_-BK-t8nRG.mjs.map +0 -1
  1270. package/.output/server/chunks/build/_id_-CZPlPDm4.mjs +0 -2045
  1271. package/.output/server/chunks/build/_id_-CZPlPDm4.mjs.map +0 -1
  1272. package/.output/server/chunks/build/_wsId_-BPy-Aj9L.mjs +0 -14297
  1273. package/.output/server/chunks/build/_wsId_-BPy-Aj9L.mjs.map +0 -1
  1274. package/.output/server/chunks/build/agents-CpNLdI8E.mjs +0 -1078
  1275. package/.output/server/chunks/build/agents-CpNLdI8E.mjs.map +0 -1
  1276. package/.output/server/chunks/build/alert-D0ivtTGy.mjs +0 -263
  1277. package/.output/server/chunks/build/alert-D0ivtTGy.mjs.map +0 -1
  1278. package/.output/server/chunks/build/aml-DRAFRcGU.mjs +0 -814
  1279. package/.output/server/chunks/build/aml-DRAFRcGU.mjs.map +0 -1
  1280. package/.output/server/chunks/build/analysis-p-dBkjoK.mjs +0 -533
  1281. package/.output/server/chunks/build/analysis-p-dBkjoK.mjs.map +0 -1
  1282. package/.output/server/chunks/build/api-B4Om0mEc.mjs.map +0 -1
  1283. package/.output/server/chunks/build/api-BEW_ebY_.mjs.map +0 -1
  1284. package/.output/server/chunks/build/api-BsAgXWxi.mjs.map +0 -1
  1285. package/.output/server/chunks/build/api-error-BwAQLw44.mjs +0 -47
  1286. package/.output/server/chunks/build/api-error-BwAQLw44.mjs.map +0 -1
  1287. package/.output/server/chunks/build/apiClient-BvXtNzC8.mjs +0 -81
  1288. package/.output/server/chunks/build/apiClient-BvXtNzC8.mjs.map +0 -1
  1289. package/.output/server/chunks/build/board-Dl2Ar22r.mjs +0 -178
  1290. package/.output/server/chunks/build/board-Dl2Ar22r.mjs.map +0 -1
  1291. package/.output/server/chunks/build/card-Cqk0Ur-L.mjs +0 -953
  1292. package/.output/server/chunks/build/card-Cqk0Ur-L.mjs.map +0 -1
  1293. package/.output/server/chunks/build/channel-templates-ByHOQQkO.mjs +0 -942
  1294. package/.output/server/chunks/build/channel-templates-ByHOQQkO.mjs.map +0 -1
  1295. package/.output/server/chunks/build/checkbox-CrT4cnfu.mjs +0 -439
  1296. package/.output/server/chunks/build/checkbox-CrT4cnfu.mjs.map +0 -1
  1297. package/.output/server/chunks/build/client-only-qNA2OVV_.mjs +0 -43
  1298. package/.output/server/chunks/build/client-only-qNA2OVV_.mjs.map +0 -1
  1299. package/.output/server/chunks/build/core-CgTOPS4t.mjs +0 -294
  1300. package/.output/server/chunks/build/core-CgTOPS4t.mjs.map +0 -1
  1301. package/.output/server/chunks/build/daq-CdxcfY_G.mjs +0 -1266
  1302. package/.output/server/chunks/build/daq-CdxcfY_G.mjs.map +0 -1
  1303. package/.output/server/chunks/build/data-D8uX1dnm.mjs +0 -481
  1304. package/.output/server/chunks/build/data-D8uX1dnm.mjs.map +0 -1
  1305. package/.output/server/chunks/build/dcw-BlDQtS4q.mjs +0 -505
  1306. package/.output/server/chunks/build/dcw-BlDQtS4q.mjs.map +0 -1
  1307. package/.output/server/chunks/build/default-CNWS6NUw.mjs +0 -2353
  1308. package/.output/server/chunks/build/default-CNWS6NUw.mjs.map +0 -1
  1309. package/.output/server/chunks/build/descriptions-BNlfKG9y.mjs +0 -406
  1310. package/.output/server/chunks/build/descriptions-BNlfKG9y.mjs.map +0 -1
  1311. package/.output/server/chunks/build/drawer-Caji0PLs.mjs +0 -834
  1312. package/.output/server/chunks/build/drawer-Caji0PLs.mjs.map +0 -1
  1313. package/.output/server/chunks/build/dropdown-BNwTVGde.mjs +0 -14
  1314. package/.output/server/chunks/build/dropdown-BNwTVGde.mjs.map +0 -1
  1315. package/.output/server/chunks/build/dropdown-Cd-xPhR6.mjs +0 -540
  1316. package/.output/server/chunks/build/dropdown-Cd-xPhR6.mjs.map +0 -1
  1317. package/.output/server/chunks/build/es-Bxu10NJ2.mjs.map +0 -1
  1318. package/.output/server/chunks/build/firstNotUndefined-8H5_qHUu.mjs +0 -2448
  1319. package/.output/server/chunks/build/firstNotUndefined-8H5_qHUu.mjs.map +0 -1
  1320. package/.output/server/chunks/build/form-D_UpWPN4.mjs +0 -4712
  1321. package/.output/server/chunks/build/form-D_UpWPN4.mjs.map +0 -1
  1322. package/.output/server/chunks/build/hasIn-DBdElbjM.mjs +0 -553
  1323. package/.output/server/chunks/build/hasIn-DBdElbjM.mjs.map +0 -1
  1324. package/.output/server/chunks/build/hitl-Bd30yr1J.mjs +0 -132
  1325. package/.output/server/chunks/build/hitl-Bd30yr1J.mjs.map +0 -1
  1326. package/.output/server/chunks/build/input-GtPuSEgt.mjs +0 -2181
  1327. package/.output/server/chunks/build/input-GtPuSEgt.mjs.map +0 -1
  1328. package/.output/server/chunks/build/input-number-BNlNDK7H.mjs +0 -1120
  1329. package/.output/server/chunks/build/input-number-BNlNDK7H.mjs.map +0 -1
  1330. package/.output/server/chunks/build/interval-DvHBIIZh.mjs +0 -9
  1331. package/.output/server/chunks/build/interval-DvHBIIZh.mjs.map +0 -1
  1332. package/.output/server/chunks/build/isNumeric-CP7q_yhz.mjs +0 -7
  1333. package/.output/server/chunks/build/isNumeric-CP7q_yhz.mjs.map +0 -1
  1334. package/.output/server/chunks/build/logs-pRb-TMWa.mjs +0 -427
  1335. package/.output/server/chunks/build/logs-pRb-TMWa.mjs.map +0 -1
  1336. package/.output/server/chunks/build/menu-BXt-X0dt.mjs +0 -1952
  1337. package/.output/server/chunks/build/menu-BXt-X0dt.mjs.map +0 -1
  1338. package/.output/server/chunks/build/monitor-Cq6hRFeQ.mjs +0 -2253
  1339. package/.output/server/chunks/build/monitor-Cq6hRFeQ.mjs.map +0 -1
  1340. package/.output/server/chunks/build/ontology-DK0Mf0zT.mjs +0 -1406
  1341. package/.output/server/chunks/build/ontology-DK0Mf0zT.mjs.map +0 -1
  1342. package/.output/server/chunks/build/operations-SMQrRAcr.mjs +0 -311
  1343. package/.output/server/chunks/build/operations-SMQrRAcr.mjs.map +0 -1
  1344. package/.output/server/chunks/build/optimizer-BlWTsM-W.mjs +0 -202
  1345. package/.output/server/chunks/build/optimizer-BlWTsM-W.mjs.map +0 -1
  1346. package/.output/server/chunks/build/pages-AFRP4-EL.mjs +0 -542
  1347. package/.output/server/chunks/build/pages-AFRP4-EL.mjs.map +0 -1
  1348. package/.output/server/chunks/build/pagination-DTAconUo.mjs +0 -1346
  1349. package/.output/server/chunks/build/pagination-DTAconUo.mjs.map +0 -1
  1350. package/.output/server/chunks/build/permissions-DgXQZSyx.mjs +0 -637
  1351. package/.output/server/chunks/build/permissions-DgXQZSyx.mjs.map +0 -1
  1352. package/.output/server/chunks/build/plugins-LRjaSEZy.mjs +0 -272
  1353. package/.output/server/chunks/build/plugins-LRjaSEZy.mjs.map +0 -1
  1354. package/.output/server/chunks/build/popconfirm-DxYPGRgS.mjs +0 -340
  1355. package/.output/server/chunks/build/popconfirm-DxYPGRgS.mjs.map +0 -1
  1356. package/.output/server/chunks/build/responsiveObserve-DM3hpzhU.mjs +0 -78
  1357. package/.output/server/chunks/build/responsiveObserve-DM3hpzhU.mjs.map +0 -1
  1358. package/.output/server/chunks/build/schedules-dSnr8url.mjs +0 -7172
  1359. package/.output/server/chunks/build/schedules-dSnr8url.mjs.map +0 -1
  1360. package/.output/server/chunks/build/segmented-D3HWtHPw.mjs +0 -341
  1361. package/.output/server/chunks/build/segmented-D3HWtHPw.mjs.map +0 -1
  1362. package/.output/server/chunks/build/select-B3Dsb9yq.mjs +0 -3923
  1363. package/.output/server/chunks/build/select-B3Dsb9yq.mjs.map +0 -1
  1364. package/.output/server/chunks/build/settings-BrIhnS2Z.mjs +0 -1014
  1365. package/.output/server/chunks/build/settings-BrIhnS2Z.mjs.map +0 -1
  1366. package/.output/server/chunks/build/space-Dwu2Skt8.mjs +0 -110
  1367. package/.output/server/chunks/build/space-Dwu2Skt8.mjs.map +0 -1
  1368. package/.output/server/chunks/build/spin-C2cuvGth.mjs +0 -357
  1369. package/.output/server/chunks/build/spin-C2cuvGth.mjs.map +0 -1
  1370. package/.output/server/chunks/build/studio-cdoNCfyy.mjs +0 -332
  1371. package/.output/server/chunks/build/studio-cdoNCfyy.mjs.map +0 -1
  1372. package/.output/server/chunks/build/switch-CyR-H6Fb.mjs +0 -377
  1373. package/.output/server/chunks/build/switch-CyR-H6Fb.mjs.map +0 -1
  1374. package/.output/server/chunks/build/table-CmVD-cA9.mjs +0 -7546
  1375. package/.output/server/chunks/build/table-CmVD-cA9.mjs.map +0 -1
  1376. package/.output/server/chunks/build/tabs-Vg0e7cZE.mjs +0 -1924
  1377. package/.output/server/chunks/build/tabs-Vg0e7cZE.mjs.map +0 -1
  1378. package/.output/server/chunks/build/tag-y0sn-xv9.mjs +0 -1156
  1379. package/.output/server/chunks/build/tag-y0sn-xv9.mjs.map +0 -1
  1380. package/.output/server/chunks/build/teams-B1d32eHK.mjs +0 -1203
  1381. package/.output/server/chunks/build/teams-B1d32eHK.mjs.map +0 -1
  1382. package/.output/server/chunks/build/tokens-GYaGJ35Z.mjs +0 -1062
  1383. package/.output/server/chunks/build/tokens-GYaGJ35Z.mjs.map +0 -1
  1384. package/.output/server/chunks/build/tools-s_9U1Djj.mjs +0 -487
  1385. package/.output/server/chunks/build/tools-s_9U1Djj.mjs.map +0 -1
  1386. package/.output/server/chunks/build/tooltip-C2n2nNiQ.mjs +0 -920
  1387. package/.output/server/chunks/build/tooltip-C2n2nNiQ.mjs.map +0 -1
  1388. package/.output/server/chunks/build/town-B5aoiG98.mjs +0 -133
  1389. package/.output/server/chunks/build/town-B5aoiG98.mjs.map +0 -1
  1390. package/.output/server/chunks/build/useAgentHarnessOptions-DOrQHeBh.mjs +0 -124
  1391. package/.output/server/chunks/build/useAgentHarnessOptions-DOrQHeBh.mjs.map +0 -1
  1392. package/.output/server/chunks/build/useAgentTemplateActions-CzlplRWh.mjs +0 -77
  1393. package/.output/server/chunks/build/useAgentTemplateActions-CzlplRWh.mjs.map +0 -1
  1394. package/.output/server/chunks/build/useAgentTemplateForm-DQo1enf2.mjs +0 -117
  1395. package/.output/server/chunks/build/useAgentTemplateForm-DQo1enf2.mjs.map +0 -1
  1396. package/.output/server/chunks/build/useAgentTemplatesCatalog-DP-iMmqz.mjs +0 -133
  1397. package/.output/server/chunks/build/useAgentTemplatesCatalog-DP-iMmqz.mjs.map +0 -1
  1398. package/.output/server/chunks/build/useAmlDatasets-DeoE1idn.mjs +0 -92
  1399. package/.output/server/chunks/build/useAmlDatasets-DeoE1idn.mjs.map +0 -1
  1400. package/.output/server/chunks/build/useAmlEntities-BJhvdqHJ.mjs +0 -86
  1401. package/.output/server/chunks/build/useAmlEntities-BJhvdqHJ.mjs.map +0 -1
  1402. package/.output/server/chunks/build/useAmlEnv-CDIZ6xTe.mjs +0 -194
  1403. package/.output/server/chunks/build/useAmlEnv-CDIZ6xTe.mjs.map +0 -1
  1404. package/.output/server/chunks/build/useAmlExperiments-Dloi834i.mjs +0 -89
  1405. package/.output/server/chunks/build/useAmlExperiments-Dloi834i.mjs.map +0 -1
  1406. package/.output/server/chunks/build/useAmlJobs-BF9LpwXz.mjs +0 -267
  1407. package/.output/server/chunks/build/useAmlJobs-BF9LpwXz.mjs.map +0 -1
  1408. package/.output/server/chunks/build/useAmlModels-_bweOr3R.mjs +0 -93
  1409. package/.output/server/chunks/build/useAmlModels-_bweOr3R.mjs.map +0 -1
  1410. package/.output/server/chunks/build/useAmlNotes-DQj980iX.mjs +0 -86
  1411. package/.output/server/chunks/build/useAmlNotes-DQj980iX.mjs.map +0 -1
  1412. package/.output/server/chunks/build/useAmlPredict-DHNgDSJn.mjs +0 -130
  1413. package/.output/server/chunks/build/useAmlPredict-DHNgDSJn.mjs.map +0 -1
  1414. package/.output/server/chunks/build/useAnalysisFeed-BrEGV_9x.mjs +0 -129
  1415. package/.output/server/chunks/build/useAnalysisFeed-BrEGV_9x.mjs.map +0 -1
  1416. package/.output/server/chunks/build/useDaqAddNode-D_Rkju0f.mjs +0 -142
  1417. package/.output/server/chunks/build/useDaqAddNode-D_Rkju0f.mjs.map +0 -1
  1418. package/.output/server/chunks/build/useDaqDetailBinding-DCWaLKXT.mjs +0 -70
  1419. package/.output/server/chunks/build/useDaqDetailBinding-DCWaLKXT.mjs.map +0 -1
  1420. package/.output/server/chunks/build/useDaqDetailFrames-BOIcOJRB.mjs +0 -79
  1421. package/.output/server/chunks/build/useDaqDetailFrames-BOIcOJRB.mjs.map +0 -1
  1422. package/.output/server/chunks/build/useDaqDetailHistory-D6WulPVs.mjs +0 -176
  1423. package/.output/server/chunks/build/useDaqDetailHistory-D6WulPVs.mjs.map +0 -1
  1424. package/.output/server/chunks/build/useDaqDetailNode-DeOsDxK5.mjs +0 -99
  1425. package/.output/server/chunks/build/useDaqDetailNode-DeOsDxK5.mjs.map +0 -1
  1426. package/.output/server/chunks/build/useDaqDetailParams-Cm9a9r5G.mjs +0 -159
  1427. package/.output/server/chunks/build/useDaqDetailParams-Cm9a9r5G.mjs.map +0 -1
  1428. package/.output/server/chunks/build/useDaqFilters-CctmO03p.mjs +0 -222
  1429. package/.output/server/chunks/build/useDaqFilters-CctmO03p.mjs.map +0 -1
  1430. package/.output/server/chunks/build/useDaqOptimizations-CmX_dpBc.mjs +0 -136
  1431. package/.output/server/chunks/build/useDaqOptimizations-CmX_dpBc.mjs.map +0 -1
  1432. package/.output/server/chunks/build/useDaqStream-B9ZBVQrI.mjs +0 -395
  1433. package/.output/server/chunks/build/useDaqStream-B9ZBVQrI.mjs.map +0 -1
  1434. package/.output/server/chunks/build/useDaqTemplates-CK37sMfi.mjs +0 -187
  1435. package/.output/server/chunks/build/useDaqTemplates-CK37sMfi.mjs.map +0 -1
  1436. package/.output/server/chunks/build/useDashboardData-B36wVWo2.mjs +0 -153
  1437. package/.output/server/chunks/build/useDashboardData-B36wVWo2.mjs.map +0 -1
  1438. package/.output/server/chunks/build/useDcwAddNode-DACVcEHs.mjs +0 -219
  1439. package/.output/server/chunks/build/useDcwAddNode-DACVcEHs.mjs.map +0 -1
  1440. package/.output/server/chunks/build/useDcwCards-SaiImIYQ.mjs.map +0 -1
  1441. package/.output/server/chunks/build/useDcwDetailScope-DLOklSMO.mjs +0 -184
  1442. package/.output/server/chunks/build/useDcwDetailScope-DLOklSMO.mjs.map +0 -1
  1443. package/.output/server/chunks/build/useDcwDetailTemplates-ClmIdZ40.mjs +0 -148
  1444. package/.output/server/chunks/build/useDcwDetailTemplates-ClmIdZ40.mjs.map +0 -1
  1445. package/.output/server/chunks/build/useDcwFilter-CPMyCltx.mjs +0 -71
  1446. package/.output/server/chunks/build/useDcwFilter-CPMyCltx.mjs.map +0 -1
  1447. package/.output/server/chunks/build/useDcwLedger-0ie-0WTc.mjs.map +0 -1
  1448. package/.output/server/chunks/build/useDcwLineMutations-DNxo66yM.mjs +0 -137
  1449. package/.output/server/chunks/build/useDcwLineMutations-DNxo66yM.mjs.map +0 -1
  1450. package/.output/server/chunks/build/useDcwLineRun-CHskwscT.mjs +0 -104
  1451. package/.output/server/chunks/build/useDcwLineRun-CHskwscT.mjs.map +0 -1
  1452. package/.output/server/chunks/build/useDcwParamApprovals-DtScUc-W.mjs +0 -121
  1453. package/.output/server/chunks/build/useDcwParamApprovals-DtScUc-W.mjs.map +0 -1
  1454. package/.output/server/chunks/build/useDcwProducts-BMaxzLu6.mjs +0 -93
  1455. package/.output/server/chunks/build/useDcwProducts-BMaxzLu6.mjs.map +0 -1
  1456. package/.output/server/chunks/build/useDcwQuery-TVU3Eo0M.mjs +0 -98
  1457. package/.output/server/chunks/build/useDcwQuery-TVU3Eo0M.mjs.map +0 -1
  1458. package/.output/server/chunks/build/useDcwQuickActions-BREFmR9T.mjs +0 -88
  1459. package/.output/server/chunks/build/useDcwQuickActions-BREFmR9T.mjs.map +0 -1
  1460. package/.output/server/chunks/build/useDcwRecipes-Bc9urA1N.mjs +0 -258
  1461. package/.output/server/chunks/build/useDcwRecipes-Bc9urA1N.mjs.map +0 -1
  1462. package/.output/server/chunks/build/useDcwStream-Dir5ufAU.mjs +0 -452
  1463. package/.output/server/chunks/build/useDcwStream-Dir5ufAU.mjs.map +0 -1
  1464. package/.output/server/chunks/build/useDcwTemplates-BzagZztS.mjs +0 -91
  1465. package/.output/server/chunks/build/useDcwTemplates-BzagZztS.mjs.map +0 -1
  1466. package/.output/server/chunks/build/useDcwWrites-BROwTLCn.mjs +0 -140
  1467. package/.output/server/chunks/build/useDcwWrites-BROwTLCn.mjs.map +0 -1
  1468. package/.output/server/chunks/build/useDeviceTwins-BqwVJaZg.mjs +0 -128
  1469. package/.output/server/chunks/build/useDeviceTwins-BqwVJaZg.mjs.map +0 -1
  1470. package/.output/server/chunks/build/useExpConfirmations-BM626N4p.mjs +0 -107
  1471. package/.output/server/chunks/build/useExpConfirmations-BM626N4p.mjs.map +0 -1
  1472. package/.output/server/chunks/build/useLocalTime-uVSM44Um.mjs +0 -55
  1473. package/.output/server/chunks/build/useLocalTime-uVSM44Um.mjs.map +0 -1
  1474. package/.output/server/chunks/build/useLogsManual-cVBZQ_Mt.mjs +0 -88
  1475. package/.output/server/chunks/build/useLogsManual-cVBZQ_Mt.mjs.map +0 -1
  1476. package/.output/server/chunks/build/useLogsQuery-D7hrJ3yn.mjs +0 -150
  1477. package/.output/server/chunks/build/useLogsQuery-D7hrJ3yn.mjs.map +0 -1
  1478. package/.output/server/chunks/build/useLogsScope-aaPQeTRm.mjs +0 -83
  1479. package/.output/server/chunks/build/useLogsScope-aaPQeTRm.mjs.map +0 -1
  1480. package/.output/server/chunks/build/useMonitorData-DIkiLr_h.mjs +0 -135
  1481. package/.output/server/chunks/build/useMonitorData-DIkiLr_h.mjs.map +0 -1
  1482. package/.output/server/chunks/build/useMonitorFormat-CyURtH8N.mjs +0 -91
  1483. package/.output/server/chunks/build/useMonitorFormat-CyURtH8N.mjs.map +0 -1
  1484. package/.output/server/chunks/build/useOperationsFeed-Ci4mZAn_.mjs +0 -195
  1485. package/.output/server/chunks/build/useOperationsFeed-Ci4mZAn_.mjs.map +0 -1
  1486. package/.output/server/chunks/build/useOpsLog-C-M6Eace.mjs +0 -149
  1487. package/.output/server/chunks/build/useOpsLog-C-M6Eace.mjs.map +0 -1
  1488. package/.output/server/chunks/build/useRecipeDispatchApprovals-BYtiqfeb.mjs +0 -156
  1489. package/.output/server/chunks/build/useRecipeDispatchApprovals-BYtiqfeb.mjs.map +0 -1
  1490. package/.output/server/chunks/build/useTeamActions-I_8QWp9w.mjs +0 -79
  1491. package/.output/server/chunks/build/useTeamActions-I_8QWp9w.mjs.map +0 -1
  1492. package/.output/server/chunks/build/useTeamAddMemberDialog-BLn4nTuy.mjs +0 -84
  1493. package/.output/server/chunks/build/useTeamAddMemberDialog-BLn4nTuy.mjs.map +0 -1
  1494. package/.output/server/chunks/build/useTeamCreateDialog-Bp5qKtpI.mjs +0 -97
  1495. package/.output/server/chunks/build/useTeamCreateDialog-Bp5qKtpI.mjs.map +0 -1
  1496. package/.output/server/chunks/build/useTeamDeployDialog-DwIaz6Cx.mjs +0 -80
  1497. package/.output/server/chunks/build/useTeamDeployDialog-DwIaz6Cx.mjs.map +0 -1
  1498. package/.output/server/chunks/build/useTeamPluginDialog-B932gZOI.mjs +0 -103
  1499. package/.output/server/chunks/build/useTeamPluginDialog-B932gZOI.mjs.map +0 -1
  1500. package/.output/server/chunks/build/useTeamsCatalog-DBwaLQBw.mjs +0 -123
  1501. package/.output/server/chunks/build/useTeamsCatalog-DBwaLQBw.mjs.map +0 -1
  1502. package/.output/server/chunks/build/useTokenCreate-Ctl0YGhL.mjs +0 -115
  1503. package/.output/server/chunks/build/useTokenCreate-Ctl0YGhL.mjs.map +0 -1
  1504. package/.output/server/chunks/build/useTokenRename-Cm3ypSfN.mjs +0 -87
  1505. package/.output/server/chunks/build/useTokenRename-Cm3ypSfN.mjs.map +0 -1
  1506. package/.output/server/chunks/build/useTokenReveal-CeoWL5Mt.mjs +0 -118
  1507. package/.output/server/chunks/build/useTokenReveal-CeoWL5Mt.mjs.map +0 -1
  1508. package/.output/server/chunks/build/useTokensList-CNIzON3u.mjs +0 -92
  1509. package/.output/server/chunks/build/useTokensList-CNIzON3u.mjs.map +0 -1
  1510. package/.output/server/chunks/build/useWorkbenchAuth-CY-bVFMu.mjs +0 -141
  1511. package/.output/server/chunks/build/useWorkbenchAuth-CY-bVFMu.mjs.map +0 -1
  1512. package/.output/server/chunks/build/useWorkbenchWorkspaces-DhZQFss9.mjs +0 -138
  1513. package/.output/server/chunks/build/useWorkbenchWorkspaces-DhZQFss9.mjs.map +0 -1
  1514. package/.output/server/chunks/build/useWorkshopApi-CaSItJVq.mjs +0 -119
  1515. package/.output/server/chunks/build/useWorkshopApi-CaSItJVq.mjs.map +0 -1
  1516. package/.output/server/chunks/build/useWorkshopWs-YQ5URrbt.mjs +0 -1659
  1517. package/.output/server/chunks/build/useWorkshopWs-YQ5URrbt.mjs.map +0 -1
  1518. package/.output/server/chunks/build/useWorkspaceAuth-Dlvj9csD.mjs.map +0 -1
  1519. package/.output/server/chunks/build/useWorkspaceChannels-CPFepxTN.mjs +0 -92
  1520. package/.output/server/chunks/build/useWorkspaceChannels-CPFepxTN.mjs.map +0 -1
  1521. package/.output/server/chunks/build/useWorkspaceShell-BCypjjjE.mjs +0 -168
  1522. package/.output/server/chunks/build/useWorkspaceShell-BCypjjjE.mjs.map +0 -1
  1523. package/.output/server/chunks/build/users-DjiVC_tS.mjs +0 -569
  1524. package/.output/server/chunks/build/users-DjiVC_tS.mjs.map +0 -1
  1525. package/.output/server/chunks/build/workshop-1gKeDASV.mjs +0 -546
  1526. package/.output/server/chunks/build/workshop-1gKeDASV.mjs.map +0 -1
  1527. package/app/.mimosa/hook-state/sess_05189059-e42d-4188-8911-4f7baabe009b.json +0 -1
  1528. package/app/.mimosa/hook-state/sess_05189059-e42d-4188-8911-4f7baabe009b.mtg0vz68-49792-75b0709555.baseline/1459e6269990a5d229b9228c8b2f62ffaa7d350068380ae8b875fee0db45cca6.source +0 -180
  1529. package/app/.mimosa/hook-state/sess_05189059-e42d-4188-8911-4f7baabe009b.mtg0vz68-49792-75b0709555.baseline/c2991e909c70c5c12b90a407c7adcf63384c51668a2b334e6e047fa675c268fe.source +0 -305
  1530. package/app/.mimosa/hook-state/sess_05189059-e42d-4188-8911-4f7baabe009b.mtg0vz68-49792-75b0709555.baseline/e09129039d1e27e3fac24becc9bdafd2d1a7c8049bff24173df007be865f0165.source +0 -264
  1531. package/app/.mimosa/hook-status/sess_05189059-e42d-4188-8911-4f7baabe009b-28ef7c75ea.json +0 -14
  1532. package/scripts/e2e-direct-rest-simulator-paper.mjs +0 -624
  1533. package/scripts/e2e-pi-simulator-paper.mjs +0 -2316
  1534. package/scripts/e2e-registered-harness-simulator-paper.mjs +0 -1926
  1535. package/scripts/e2e-simulator-optimizer-paper.mjs +0 -264
  1536. package/scripts/fixtures/omp-paper-harness.mjs +0 -163
  1537. package/server/.mimosa/hook-state/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2.json +0 -1
  1538. package/server/.mimosa/hook-state/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2.mvhn1irp-99488-e3fdc1cbfc.baseline/942d2679b87b96c612b4f2a425c3ccc5b6f3234f0cf589a8441602f866fbe277.source +0 -41
  1539. package/server/.mimosa/hook-state/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2.mvhn1irp-99488-e3fdc1cbfc.baseline/dd617a82339d2c61e49e28e416aabeb2fc100fb3cb1beca18d02dfb833214af6.source +0 -51
  1540. package/server/.mimosa/hook-status/sess_869e5bfd-07f4-4b6e-a991-6221fcf6b7d2-e67b6b91bf.json +0 -14
  1541. package/server/services/workshop/.mimosa/hook-state/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f.json +0 -1
  1542. package/server/services/workshop/.mimosa/hook-status/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f-e6b75bbfe6.json +0 -14
  1543. package/server/services/workshop/agents/omp-agent/supervision-history.ts +0 -38
  1544. package/server/services/workshop/aml/python/__pycache__/aml_eval.cpython-312.pyc +0 -0
  1545. package/server/services/workshop/aml/python/__pycache__/amlkit.cpython-312.pyc +0 -0
  1546. package/server/services/workshop/aml/python/__pycache__/train-example.cpython-312.pyc +0 -0
  1547. package/server/services/workshop/aml/python/__pycache__/train-hybrid-example.cpython-312.pyc +0 -0
  1548. package/server/services/workshop/optimization/python/.mimosa/hook-state/session_187ec97f45d4bd02369bbe94da527cf1.json +0 -1
  1549. package/server/services/workshop/optimization/python/.mimosa/hook-state/session_187ec97f45d4bd02369bbe94da527cf1.mvjqkcs6-68688-fb7131a89c.baseline/190a6772a4e43801737b4ba6072eb9d53d3099b5d8a9e6f57bc5e8592a26a6c4.source +0 -274
  1550. package/server/services/workshop/optimization/python/.mimosa/hook-status/session_187ec97f45d4bd02369bbe94da527cf1-01ed7f04fa.json +0 -14
  1551. package/server/services/workshop/optimization/python/__pycache__/problems.cpython-312.pyc +0 -0
  1552. /package/.output/public/_nuxt/{9j2J4k4w.js → 9j2J4k4w2.js} +0 -0
  1553. /package/.output/public/_nuxt/{BY3Lbz3h2.js → BY3Lbz3h.js} +0 -0
  1554. /package/.output/public/_nuxt/{Iub61dX92.js → Iub61dX9.js} +0 -0
  1555. /package/.output/public/_nuxt/{Q-JpBT032.js → Q-JpBT03.js} +0 -0
  1556. /package/.output/public/_nuxt/{dVw8IHY62.js → dVw8IHY6.js} +0 -0
  1557. /package/.output/public/_nuxt/{k9b520K-.js → k9b520K-2.js} +0 -0
@@ -1,557 +1,557 @@
1
- /**
2
- * AgentWorkShop 实机演示录屏工具 v4.1 —— 英文界面 + Edge 神经语音 + 章节化合成。
3
- *
4
- * 产出:docs/site/public/demo/agentworkshop-demo.mp4(1600×900@30,含配音)
5
- * docs/site/public/demo/poster.jpg
6
- *
7
- * 架构:录制期间 Node 零 Runtime.evaluate(场景脚本整体下推页面内单函数自跑,
8
- * Node 只负责 screencast 启停、定长 sleep 与孪生鼠标运镜)。场景级重试:
9
- * 帧不足(渲染进程被重页面拖挂等)自动 reload 后重录一次。
10
- *
11
- * 用法:
12
- * node scripts/ui/record-demo.mjs tts # 生成英文配音(edge-tts,增量)
13
- * node scripts/ui/record-demo.mjs record # 录制 + 配音对齐 + 合成(含 poster)
14
- */
15
- import fs from 'node:fs'
16
- import path from 'node:path'
17
- import { execSync } from 'node:child_process'
18
- import puppeteer from 'puppeteer-core'
19
-
20
- const BASE = process.env.AW_BASE ?? 'http://127.0.0.1:3001'
21
- const CHROME = process.env.AW_CHROME ?? 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
22
- const OUT_DIR = path.resolve('docs/site/public/demo')
23
- const WORK = path.resolve('.tmp-demo')
24
- const EMAIL = 'admin@awshop.local'
25
- const PASSWORD = 'admin123'
26
- const VOICE = 'en-US-AndrewNeural'
27
- const RATE = '-4%'
28
- const HEAD = 1.6
29
-
30
- const sleep = ms => new Promise(r => setTimeout(r, ms))
31
- const sh = cmd => execSync(cmd, { stdio: ['ignore', 'ignore', 'pipe'] })
32
- const probeDur = f => Number(execSync(`ffprobe -v error -show_entries format=duration -of default=nw=1:nk=1 "${f}"`).toString().trim())
33
-
34
- // ════ 解说词与场景规划(单一事实源) ═════════════════════════════════════════
35
- const PLAN = [
36
- {
37
- id: 'title', chapter: null, url: 'card',
38
- clips: [
39
- { cap: 'AgentWorkShop', sub: 'INDUSTRIAL AGENT RUNTIME · RECORDED LIVE', say: 'Agent Work Shop — an industrial agent runtime, recorded live. Real protocols, real control — nothing in this demo is scripted.' },
40
- ],
41
- },
42
- {
43
- id: 'platform', chapter: '01|THE CONTROL ROOM', url: '/',
44
- clips: [
45
- { cap: 'The control room', sub: 'Every line, control node and sample in one view — live', say: 'The control room. Every production line, control node, and sample in one view — live.' },
46
- { cap: '14 engines · 4 entry points', sub: 'WebSocket · MCP · A2A · REST', say: 'Fourteen agent engines behind one contract, and four entry points: WebSocket, M C P, A to A, and REST.' },
47
- ],
48
- },
49
- {
50
- id: 'telemetry', chapter: '02|LIVE TELEMETRY', url: '/daq',
51
- clips: [
52
- { cap: 'DAQ console — live telemetry', sub: '2,000+ channels across six field protocols', say: 'The data acquisition console. Over two thousand live channels across six field protocols: Modbus T C P and R T U, O P C U A, M Q T T, H T T P, and serial.' },
53
- { cap: 'driver → queue → storage → WebSocket', sub: 'Every node keeps its own cadence', say: 'Samples flow from driver, through the queue, into time-series storage, then fan out over WebSockets. Every node keeps its own cadence.' },
54
- ],
55
- },
56
- {
57
- id: 'control', chapter: '03|GOVERNED CONTROL', url: '/dcw/ln-bcc8ea44',
58
- clips: [
59
- { cap: 'Writing to a real PLC', sub: 'Recipe interlock → safety limits → field', say: 'Now writing to a real PLC. Every setpoint passes the recipe interlock and the safety limits before anything reaches the field.' },
60
- { cap: 'SET 150 °C → Modbus → read-back', sub: 'Watch the write land, then read the register straight back', say: 'Watch the write land: the platform drives the Modbus holding registers, then reads the value straight back from the device.' },
61
- { cap: 'Read-back agrees — audit signed', sub: 'Who · when · why — every entry signed', say: 'One hundred and fifty degrees, confirmed by read-back, with a signed entry in the audit trail: who, when, and why.' },
62
- ],
63
- },
64
- {
65
- id: 'plugins', chapter: '04|PROTOCOLS ARE PLUGINS', url: '/plugins',
66
- clips: [
67
- { cap: 'Protocols are plugins', sub: 'ctx.daq.registerDriver · ctx.dcw.registerWriteDriver', say: 'Protocols are plugins. A driver registered through the SDK appears in the interface with its own configuration form — zero front-end changes.' },
68
- { cap: 'serial-bridge — direct RS-232/485', sub: 'Modbus RTU + ASCII line, probe API included', say: 'The built-in serial bridge opens a real COM port and probes it. If nothing answers, it says so — honestly.' },
69
- ],
70
- },
71
- {
72
- id: 'agents', chapter: '05|AGENT TEAMS', url: 'workshop',
73
- clips: [
74
- { cap: 'The melt-optimization crew', sub: 'A lead agent · trend analyst · setpoint writer', say: 'This is the agent workshop, and this crew owns melt temperature optimization: a lead agent, a trend analyst, and a setpoint writer, supervised over A to A.' },
75
- { cap: 'Dispatch a goal', sub: 'Lead decomposes → workers execute with tools', say: 'Dispatch a goal. The lead decomposes it, workers stream progress as they execute with tools, and every message lands on the audit trail.' },
76
- { cap: 'Execution, live', sub: '7-state task machine · artifacts · real-time events', say: 'Task state, artifacts, and messages update in real time. The same seven-state machine backs every engine — from the scripted mock to a real L L M.' },
77
- ],
78
- },
79
- {
80
- id: 'loop', chapter: '06|THE CLOSED LOOP', url: 'pvnode',
81
- clips: [
82
- { cap: 'The closed loop', sub: 'Analyze → propose → approve → write → verify', say: 'The closed loop, end to end. Analyze the trend, propose a setpoint, take the human approval, write to the PLC, and verify — the process value follows.' },
83
- { cap: 'PV tracks the setpoint', sub: 'SET and ACT — one calibration, both directions', say: 'The process value tracks the setpoint through the real control chain. The same calibration reads back what was written: S E T and A C T, side by side.' },
84
- ],
85
- },
86
- {
87
- id: 'twin', chapter: '07|THE DIGITAL TWIN', url: '/town',
88
- clips: [
89
- { cap: 'The digital twin', sub: 'Live tags · device health · alarms — one event bus', say: 'And everything streams into a three-D digital twin. Live tags, device health, and alarms — all rendered from the same event bus.' },
90
- { cap: '2,000+ channels · one scene', sub: 'Nothing mocked', say: 'Two thousand channels, one scene — nothing mocked.' },
91
- ],
92
- },
93
- {
94
- id: 'outro', chapter: null, url: '/',
95
- clips: [
96
- { cap: 'AgentWorkShop v0.7.41', sub: 'Open source · PolyForm NC · github.com/kingdol666/AgentWorkShop', say: 'Agent Work Shop, version zero point seven forty one. Open source under PolyForm N C. Find it on Git Hub — king dol sixty six, slash, Agent Work Shop.' },
97
- ],
98
- },
99
- ]
100
-
101
- // ════ 阶段 1:TTS(edge-tts 神经语音,增量) ═════════════════════════════════
102
- async function ttsPhase() {
103
- const narrDir = path.join(WORK, 'narr')
104
- fs.mkdirSync(narrDir, { recursive: true })
105
- for (const scene of PLAN) {
106
- for (let k = 0; k < scene.clips.length; k++) {
107
- const id = `${scene.id}_${k}`
108
- const mp3 = path.join(narrDir, `${id}.mp3`)
109
- const wav = path.join(narrDir, `${id}.wav`)
110
- if (fs.existsSync(wav)) continue
111
- const text = scene.clips[k].say.replace(/"/g, '\\"')
112
- sh(`edge-tts --voice ${VOICE} --rate=${RATE} --text "${text}" --write-media "${mp3}"`)
113
- sh(`ffmpeg -y -v error -i "${mp3}" -af "loudnorm=I=-16:TP=-1.5" -ar 44100 -ac 2 "${wav}"`)
114
- console.log(` tts ${id}`)
115
- }
116
- }
117
- const durations = {}
118
- for (const scene of PLAN) {
119
- for (let k = 0; k < scene.clips.length; k++) {
120
- durations[`${scene.id}_${k}`] = probeDur(path.join(narrDir, `${scene.id}_${k}.wav`))
121
- }
122
- }
123
- fs.writeFileSync(path.join(narrDir, 'durations.json'), JSON.stringify(durations, null, 2))
124
- console.log('✅ TTS 完成:', JSON.stringify(durations))
125
- }
126
-
127
- // ════ 页面内叠加层(序列化注入) ══════════════════════════════════════════════
128
- const OVERLAY_FN = () => {
129
- if (window.__demoInstalled) {
130
- window.__demoRebuild()
131
- return
132
- }
133
- window.__demoInstalled = true
134
- const css = document.createElement('style')
135
- css.textContent = `
136
- #aw-demo-cap { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
137
- max-width: 82vw; z-index: 2147483000; pointer-events: none; text-align: center;
138
- background: rgba(7,11,19,.84); border: 1px solid rgba(65,200,244,.35);
139
- border-radius: 12px; padding: 14px 26px;
140
- font: 600 21px/1.45 'Segoe UI', system-ui, sans-serif; color: #eaf6ff;
141
- box-shadow: 0 8px 32px rgba(0,0,0,.45); backdrop-filter: blur(6px);
142
- transition: opacity .45s ease; opacity: 0; }
143
- #aw-demo-cap .sub { display: block; margin-top: 4px; font: 400 15px/1.4 'Segoe UI', system-ui, sans-serif;
144
- color: #7dd8c8; letter-spacing: .4px; }
145
- #aw-demo-cap .tag { position: absolute; top: -11px; left: 18px; background: #35e0a0; color: #06251a;
146
- font: 700 11px/1 'Segoe UI', sans-serif; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 6px; }
147
- #aw-demo-veil { position: fixed; inset: 0; background: #000; z-index: 2147483001;
148
- pointer-events: none; opacity: 0; transition: opacity .4s ease; }
149
- #aw-demo-card { position: fixed; inset: 0; background: #05080f; z-index: 2147482999;
150
- display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
151
- #aw-demo-card .no { font: 700 15px/1 'Segoe UI', sans-serif; letter-spacing: 4px; color: #35e0a0; }
152
- #aw-demo-card .tt { font: 600 54px/1.2 Georgia, 'Times New Roman', serif; color: #eaf2ff; }
153
- #aw-demo-card .rule { width: 120px; height: 2px; background: #2c4568; animation: awpulse 1.4s ease-in-out infinite; }
154
- @keyframes awpulse { 0%, 100% { width: 120px; opacity: .55 } 50% { width: 168px; opacity: 1 } }
155
- #aw-demo-steps { position: fixed; left: 50%; top: 34px; transform: translateX(-50%);
156
- display: none; gap: 10px; z-index: 2147483000; pointer-events: none; }
157
- #aw-demo-steps span { font: 600 13px/1 'Segoe UI', sans-serif; letter-spacing: 1px;
158
- padding: 8px 14px; border-radius: 8px; color: #8fa0b5;
159
- background: rgba(7,11,19,.8); border: 1px solid rgba(45,69,104,.6); transition: all .3s ease; }
160
- #aw-demo-steps span.on { color: #06251a; background: #35e0a0; border-color: #35e0a0; }
161
- #aw-demo-beat { position: fixed; width: 2px; height: 2px; bottom: 0; left: 0;
162
- opacity: 0; animation: awbeat .5s steps(1) infinite; }
163
- @keyframes awbeat { 0% { opacity: 0 } 50% { opacity: .02 } 100% { opacity: 0 } }
164
- `
165
- document.head.append(css)
166
- for (const id of ['aw-demo-cap', 'aw-demo-veil', 'aw-demo-card', 'aw-demo-steps', 'aw-demo-beat']) {
167
- const el = document.createElement('div')
168
- el.id = id
169
- document.body.append(el)
170
- }
171
- window.__demoRebuild = () => {
172
- for (const id of ['aw-demo-cap', 'aw-demo-veil', 'aw-demo-card', 'aw-demo-steps', 'aw-demo-beat']) {
173
- let el = document.getElementById(id)
174
- if (!el || !el.isConnected) {
175
- el?.remove()
176
- el = document.createElement('div')
177
- el.id = id
178
- document.body.append(el)
179
- }
180
- }
181
- }
182
- window.__demoCap = (main, sub) => {
183
- window.__demoRebuild()
184
- const c = document.getElementById('aw-demo-cap')
185
- if (!main) {
186
- c.style.opacity = 0
187
- return
188
- }
189
- c.innerHTML = `<span class="tag">AGENTWORKSHOP</span>${main}${sub ? `<span class="sub">${sub}</span>` : ''}`
190
- c.style.opacity = 1
191
- }
192
- window.__demoVeil = async (on) => {
193
- window.__demoRebuild()
194
- document.getElementById('aw-demo-veil').style.opacity = on ? 1 : 0
195
- await new Promise(r => setTimeout(r, 430))
196
- }
197
- window.__demoCard = (no) => {
198
- window.__demoRebuild()
199
- const c = document.getElementById('aw-demo-card')
200
- if (!no) {
201
- c.style.display = 'none'
202
- return
203
- }
204
- const [noTxt, ...rest] = String(no).split('|')
205
- c.innerHTML = `<span class="no">${noTxt}</span><span class="tt">${rest.join('|')}</span><span class="rule"></span>`
206
- c.style.display = 'flex'
207
- }
208
- window.__demoSteps = (names, active) => {
209
- window.__demoRebuild()
210
- const s = document.getElementById('aw-demo-steps')
211
- if (!names) {
212
- s.style.display = 'none'
213
- return
214
- }
215
- s.style.display = 'flex'
216
- s.innerHTML = names.map((n, i) => `<span class="${i <= active ? 'on' : ''}">${n}</span>`).join('')
217
- }
218
- window.__demoScroll = async (toY, ms = 1000) => {
219
- const from = window.scrollY
220
- const t0 = performance.now()
221
- await new Promise((done) => {
222
- const step = (t) => {
223
- const k = Math.min(1, (t - t0) / ms)
224
- const e = k < 0.5 ? 2 * k * k : 1 - (-2 * k + 2) ** 2 / 2
225
- window.scrollTo(0, from + (toY - from) * e)
226
- if (k < 1) requestAnimationFrame(step)
227
- else done()
228
- }
229
- requestAnimationFrame(step)
230
- })
231
- }
232
- }
233
-
234
- /**
235
- * 场景运行器(页面内自跑;录制期间 Node 零 evaluate)。返回实际耗时(秒)。
236
- */
237
- const SCENE_RUNNER = async ({ clips, chapter, isTitle, actions, durs }) => {
238
- const t0 = Date.now()
239
- const sleep = ms => new Promise(r => setTimeout(r, ms))
240
- const cap = (m, s2) => window.__demoCap(m, s2)
241
- const qa = sel => [...document.querySelectorAll(sel)]
242
- const setVal = (inp, v) => {
243
- const set = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value').set
244
- set.call(inp, v)
245
- inp.dispatchEvent(new Event('input', { bubbles: true }))
246
- inp.dispatchEvent(new Event('change', { bubbles: true }))
247
- }
248
- await window.__demoVeil(false)
249
- if (chapter) {
250
- window.__demoCard(chapter)
251
- await sleep(1700)
252
- window.__demoCard(null)
253
- await sleep(350)
254
- }
255
- if (isTitle) {
256
- window.__demoCard('★|AgentWorkShop')
257
- }
258
- for (let k = 0; k < clips.length; k++) {
259
- cap(clips[k].cap, clips[k].sub)
260
- const act = actions[k]
261
- if (act === 'scrollcard') {
262
- await window.__demoScroll(document.body.scrollHeight, 1400)
263
- await sleep(800)
264
- }
265
- if (act === 'scroll430') {
266
- await window.__demoScroll(430, 1100)
267
- await sleep(900)
268
- }
269
- if (act === 'scroll320') {
270
- await window.__demoScroll(320, 1200)
271
- await sleep(1100)
272
- }
273
- if (act === 'pause3400') await sleep(3400)
274
- if (act === 'write150') {
275
- const inp = qa('input[type=number]').find(i => /^\d+~\d+$/.test((i.placeholder || '').replace(/\s/g, '')))
276
- if (inp) {
277
- inp.closest('tr, [class*="row"]')?.scrollIntoView({ block: 'center', behavior: 'smooth' })
278
- await sleep(700)
279
- setVal(inp, '150')
280
- await sleep(250)
281
- qa('button').find(b => b.textContent.trim() === '下发' || b.textContent.trim() === 'Dispatch')?.click()
282
- }
283
- await sleep(5200)
284
- qa('button').find(b => ['读取', 'Read'].includes(b.textContent.trim()))?.click()
285
- await sleep(3200)
286
- }
287
- if (act === 'history') {
288
- await window.__demoScroll(document.body.scrollHeight, 1400)
289
- await sleep(1500)
290
- }
291
- if (act === 'probe') {
292
- const form = document.querySelector('.aw-serial-form')
293
- if (form) {
294
- const inputs = [...form.querySelectorAll('input')]
295
- const nums = inputs.filter(i => i.type === 'number')
296
- setVal(inputs[0], 'COM1')
297
- if (nums[0]) setVal(nums[0], '9600')
298
- if (nums[1]) setVal(nums[1], '1')
299
- if (nums[2]) setVal(nums[2], '40001')
300
- }
301
- await sleep(400)
302
- qa('.aw-serial-btn').find(b => (b.textContent || '').includes('测试连接') || (b.textContent || '').toLowerCase().includes('test'))?.click()
303
- await sleep(4200)
304
- }
305
- if (act === 'sendtask') {
306
- const any = qa('textarea')[0]
307
- if (any) {
308
- const st = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, 'value').set
309
- st.call(any, 'Demo run: optimize the melt temperature setpoint')
310
- any.dispatchEvent(new Event('input', { bubbles: true }))
311
- any.focus()
312
- }
313
- await sleep(700)
314
- qa('button').find(b => /发送|Send/.test(b.title ?? ''))?.click()
315
- await sleep(8500)
316
- }
317
- if (act === 'stages') {
318
- const names = ['ANALYZE', 'PROPOSE', 'APPROVE', 'WRITE', 'VERIFY']
319
- window.__demoSteps(names, -1)
320
- for (let i = 0; i < names.length; i++) {
321
- window.__demoSteps(names, i)
322
- await sleep(1550)
323
- }
324
- await sleep(400)
325
- window.__demoSteps(null)
326
- }
327
- await sleep(Math.max(1200, ((durs[k] ?? 6) + 0.7) * 1000))
328
- }
329
- cap(null)
330
- await window.__demoVeil(true)
331
- await sleep(700)
332
- return (Date.now() - t0) / 1000
333
- }
334
-
335
- // ════ 阶段 2:录制(场景级重试) ══════════════════════════════════════════════
336
- async function recordPhase() {
337
- const narrDir = path.join(WORK, 'narr')
338
- const durations = JSON.parse(fs.readFileSync(path.join(narrDir, 'durations.json'), 'utf8'))
339
- fs.rmSync(path.join(WORK, 'frames'), { recursive: true, force: true })
340
- fs.mkdirSync(path.join(WORK, 'frames'), { recursive: true })
341
- const browser = await puppeteer.launch({
342
- executablePath: CHROME,
343
- headless: false,
344
- defaultViewport: { width: 1600, height: 900, deviceScaleFactor: 1 },
345
- args: ['--no-first-run', '--no-default-browser-check', '--window-size=1620,960', '--use-gl=angle'],
346
- protocolTimeout: 600000,
347
- })
348
- const page = await browser.newPage()
349
- await page.evaluateOnNewDocument(() => {
350
- try {
351
- localStorage.setItem('aw.locale', 'en')
352
- }
353
- catch { /* about:blank */ }
354
- })
355
- await page.goto(BASE + '/', { waitUntil: 'domcontentloaded', timeout: 60000 })
356
- await sleep(1500)
357
- const token = await page.evaluate(async ({ email, password }) => {
358
- const res = await fetch('/api/users/login', {
359
- method: 'POST', headers: { 'content-type': 'application/json' },
360
- body: JSON.stringify({ email, password }),
361
- })
362
- const body = await res.json()
363
- if (body?.code !== 0) return null
364
- document.cookie = `token=${body.data.token}; path=/; max-age=86400`
365
- return body.data.token
366
- }, { email: EMAIL, password: PASSWORD })
367
- if (!token) throw new Error('登录失败')
368
-
369
- const sceneFiles = []
370
- for (const scene of PLAN) {
371
- let recorded = null
372
- for (let attempt = 0; attempt < 2 && !recorded; attempt++) {
373
- const durs = scene.clips.map((_, k) => durations[`${scene.id}_${k}`] ?? 6)
374
- const narrTotal = durs.reduce((a, b) => a + b, 0) + 0.7 * scene.clips.length
375
- console.log(`● 场景 ${scene.id}${attempt ? '(重试)' : ''}(解说 ${narrTotal.toFixed(1)}s)`)
376
-
377
- let navTo = scene.url.startsWith('/') ? BASE + scene.url : null
378
- if (scene.url === 'workshop') {
379
- const wsId = await page.evaluate(async (t) => {
380
- const r = await fetch('/api/workshop/workspaces', { headers: { authorization: `Bearer ${t}` } }).then(x => x.json())
381
- return r?.data?.[0]?.id ?? null
382
- }, token)
383
- navTo = wsId ? `${BASE}/workshop/w/${wsId}` : `${BASE}/workshop`
384
- }
385
- if (scene.url === 'pvnode') {
386
- const nid = await page.evaluate(async (t) => {
387
- const r = await fetch('/api/workshop/daq', { headers: { authorization: `Bearer ${t}` } }).then(x => x.json())
388
- const nodes = r.data?.nodes ?? []
389
- return (nodes.find(n => n.name.includes('Temp PV')) ?? nodes[0])?.id ?? null
390
- }, token)
391
- navTo = nid ? `${BASE}/daq/${nid}` : `${BASE}/daq`
392
- }
393
- if (scene.url === 'card') {
394
- await page.goto('about:blank').catch(() => {})
395
- }
396
- else {
397
- await page.goto(navTo, { waitUntil: 'domcontentloaded', timeout: 60000 }).catch(() => {})
398
- }
399
- await sleep(800)
400
- await page.evaluate(OVERLAY_FN)
401
- await sleep(2200)
402
-
403
- const actions = {
404
- telemetry: { 1: 'scroll430' },
405
- control: { 1: 'write150', 2: 'history' },
406
- plugins: { 1: 'probe' },
407
- agents: { 1: 'sendtask' },
408
- loop: { 1: 'stages' },
409
- twin: { 0: 'pause3400' },
410
- }
411
- const payload = {
412
- clips: scene.clips.map(c => ({ cap: c.cap, sub: c.sub })),
413
- chapter: scene.chapter,
414
- isTitle: scene.id === 'title',
415
- actions: actions[scene.id] ?? {},
416
- durs,
417
- }
418
- const attemptSuffix = attempt ? `-r${attempt}` : ''
419
- const sceneDir = path.join(WORK, 'frames', `${scene.id}${attemptSuffix}`)
420
- fs.mkdirSync(sceneDir, { recursive: true })
421
- let frameNo = 0
422
- let pending = 0
423
- const stamps = []
424
- const client = await page.createCDPSession()
425
- client.on('Page.screencastFrame', async (ev) => {
426
- const at = ev.metadata.timestamp ?? Date.now() / 1000
427
- if (pending < 24) {
428
- pending++
429
- const f = path.join(sceneDir, `f${String(frameNo++).padStart(5, '0')}.jpg`)
430
- stamps.push({ file: f, at })
431
- fs.promises.writeFile(f, Buffer.from(ev.data, 'base64')).catch(() => {}).finally(() => pending--)
432
- }
433
- await client.send('Page.screencastFrameAck', { sessionId: ev.sessionId }).catch(() => {})
434
- })
435
-
436
- // 场景脚本下推(不等待;录制期间零 evaluate)。超时/异常 → 由 attempt 重试兜底。
437
- const runnerPromise = page.evaluate(SCENE_RUNNER, payload).catch(err => console.warn(' runner:', String(err).slice(0, 70)))
438
- await sleep(600)
439
- await client.send('Page.startScreencast', { format: 'jpeg', quality: 74, maxWidth: 1600, maxHeight: 900, everyNthFrame: 3 })
440
-
441
- if (scene.id === 'twin') {
442
- await sleep(4200)
443
- const orbit = async (dx, steps = 24) => {
444
- const box = await page.evaluate(() => {
445
- const c = document.querySelector('canvas')
446
- const r = c?.getBoundingClientRect()
447
- return r ? { x: r.x + r.width / 2, y: r.y + r.height / 2 } : null
448
- })
449
- if (!box) return
450
- await page.mouse.move(box.x, box.y)
451
- await page.mouse.down()
452
- for (let i = 0; i < steps; i++) {
453
- const k = (i + 1) / steps
454
- const e = 1 - (1 - k) ** 2
455
- await page.mouse.move(box.x + dx * e, box.y + Math.sin(k * Math.PI) * 30)
456
- await sleep(46)
457
- }
458
- await page.mouse.up()
459
- }
460
- await orbit(300)
461
- await sleep(600)
462
- await orbit(-240)
463
- await sleep(500)
464
- }
465
-
466
- await runnerPromise.catch(() => {})
467
- await sleep(600)
468
- await client.send('Page.stopScreencast').catch(() => {})
469
- await sleep(300)
470
- console.log(` 帧 ${stamps.length}`)
471
-
472
- if (stamps.length >= 8) {
473
- const lines = []
474
- for (let i = 0; i < stamps.length; i++) {
475
- const next = stamps[i + 1]?.at
476
- const d = next ? Math.max(0.02, Math.min(3, next - stamps[i].at)) : 0.12
477
- lines.push(`file '${stamps[i].file.replace(/\\/g, '/')}'`)
478
- lines.push(`duration ${d.toFixed(3)}`)
479
- }
480
- lines.push(`file '${stamps[stamps.length - 1].file.replace(/\\/g, '/')}'`)
481
- const durFile = path.join(sceneDir, 'durations.txt')
482
- fs.writeFileSync(durFile, lines.join('\n'))
483
- const out = path.join(WORK, 'frames', `${scene.id}${attemptSuffix}.mp4`)
484
- execSync(`ffmpeg -y -v error -f concat -safe 0 -i "${durFile}" -vf "fps=30,format=yuv420p" -c:v libx264 -preset medium -crf 24 "${out}"`)
485
- recorded = { id: scene.id, video: out }
486
- }
487
- else {
488
- console.warn(` ⚠ ${scene.id} 帧不足(attempt=${attempt})`)
489
- // 渲染器可能被拖挂:整页 reload 复位后再试
490
- await page.reload({ waitUntil: 'domcontentloaded', timeout: 60000 }).catch(() => {})
491
- await sleep(2500)
492
- }
493
- await client.detach().catch(() => {})
494
- }
495
- if (recorded) sceneFiles.push(recorded)
496
- else console.warn(` ✖ ${scene.id} 两次尝试均失败,跳过该场景`)
497
- }
498
-
499
- // ── 配音对齐 + 混流(clip 边缘 afade)+ 拼接 + 封面 ──
500
- console.log('● 配音对齐与混流 …')
501
- const finalOut = path.join(OUT_DIR, 'agentworkshop-demo.mp4')
502
- const parts = []
503
- for (const scene of PLAN) {
504
- const sf = sceneFiles.find(x => x.id === scene.id)
505
- if (!sf) continue
506
- const vdur = probeDur(sf.video)
507
- const inputs = []
508
- const filters = []
509
- const mixIns = []
510
- let t = HEAD
511
- scene.clips.forEach((c, k) => {
512
- const d = durations[`${scene.id}_${k}`] ?? 0
513
- const narr = path.join(narrDir, `${scene.id}_${k}.wav`)
514
- if (fs.existsSync(narr)) {
515
- inputs.push('-i', narr)
516
- const ms = Math.round(t * 1000)
517
- filters.push(`[${k}:a]adelay=${ms}|${ms},afade=t=in:d=0.025,afade=t=out:st=${Math.max(0, d - 0.06).toFixed(3)}:d=0.06[a${k}]`)
518
- mixIns.push(`[a${k}]`)
519
- }
520
- t += d + 0.7
521
- })
522
- const sceneWav = path.join(WORK, 'frames', `${scene.id}.wav`)
523
- if (mixIns.length) {
524
- execSync(`ffmpeg -y -v error ${inputs.join(' ')} -filter_complex "${filters.join(';')};${mixIns.join('')}amix=inputs=${mixIns.length}:normalize=0,apad=whole_dur=${vdur.toFixed(3)}[out]" -map "[out]" -ar 44100 -ac 2 "${sceneWav}"`)
525
- }
526
- else {
527
- execSync(`ffmpeg -y -v error -f lavfi -i anullsrc=r=44100:cl=stereo -t ${vdur.toFixed(3)} "${sceneWav}"`)
528
- }
529
- const av = path.join(WORK, 'frames', `${scene.id}.av.mp4`)
530
- execSync(`ffmpeg -y -v error -i "${sf.video}" -i "${sceneWav}" -c:v copy -c:a aac -b:a 160k -shortest "${av}"`)
531
- parts.push(av)
532
- }
533
- const listFile = path.join(WORK, 'frames', 'concat.txt')
534
- fs.writeFileSync(listFile, parts.map(p2 => `file '${p2.replace(/\\/g, '/')}'`).join('\n'))
535
- execSync(`ffmpeg -y -v error -f concat -safe 0 -i "${listFile}" -c copy -movflags +faststart "${finalOut}"`)
536
- const dur = probeDur(finalOut)
537
- const size = fs.statSync(finalOut).size
538
- console.log(`✅ 完成:${finalOut.replace(process.cwd(), '.')}(${(size / 1e6).toFixed(1)} MB,${dur.toFixed(1)}s)`)
539
-
540
- const posterAt = Math.min(dur - 2, dur * 0.86)
541
- execSync(`ffmpeg -y -v error -ss ${posterAt.toFixed(1)} -i "${finalOut}" -frames:v 1 -q:v 3 "${path.join(OUT_DIR, 'poster.jpg')}"`)
542
- await browser.close()
543
- }
544
-
545
- // ════ 入口 ══════════════════════════════════════════════════════════════════
546
- const phase = process.argv[2] ?? 'record'
547
- fs.mkdirSync(OUT_DIR, { recursive: true })
548
- if (phase === 'tts') {
549
- await ttsPhase()
550
- }
551
- else if (phase === 'record') {
552
- await recordPhase()
553
- }
554
- else {
555
- console.error('用法: node scripts/ui/record-demo.mjs [tts|record]')
556
- process.exit(1)
557
- }
1
+ /**
2
+ * AgentWorkShop 实机演示录屏工具 v4.1 —— 英文界面 + Edge 神经语音 + 章节化合成。
3
+ *
4
+ * 产出:docs/site/public/demo/agentworkshop-demo.mp4(1600×900@30,含配音)
5
+ * docs/site/public/demo/poster.jpg
6
+ *
7
+ * 架构:录制期间 Node 零 Runtime.evaluate(场景脚本整体下推页面内单函数自跑,
8
+ * Node 只负责 screencast 启停、定长 sleep 与孪生鼠标运镜)。场景级重试:
9
+ * 帧不足(渲染进程被重页面拖挂等)自动 reload 后重录一次。
10
+ *
11
+ * 用法:
12
+ * node scripts/ui/record-demo.mjs tts # 生成英文配音(edge-tts,增量)
13
+ * node scripts/ui/record-demo.mjs record # 录制 + 配音对齐 + 合成(含 poster)
14
+ */
15
+ import fs from 'node:fs'
16
+ import path from 'node:path'
17
+ import { execSync } from 'node:child_process'
18
+ import puppeteer from 'puppeteer-core'
19
+
20
+ const BASE = process.env.AW_BASE ?? 'http://127.0.0.1:3001'
21
+ const CHROME = process.env.AW_CHROME ?? 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe'
22
+ const OUT_DIR = path.resolve('docs/site/public/demo')
23
+ const WORK = path.resolve('.tmp-demo')
24
+ const EMAIL = 'admin@awshop.local'
25
+ const PASSWORD = 'admin123'
26
+ const VOICE = 'en-US-AndrewNeural'
27
+ const RATE = '-4%'
28
+ const HEAD = 1.6
29
+
30
+ const sleep = ms => new Promise(r => setTimeout(r, ms))
31
+ const sh = cmd => execSync(cmd, { stdio: ['ignore', 'ignore', 'pipe'] })
32
+ const probeDur = f => Number(execSync(`ffprobe -v error -show_entries format=duration -of default=nw=1:nk=1 "${f}"`).toString().trim())
33
+
34
+ // ════ 解说词与场景规划(单一事实源) ═════════════════════════════════════════
35
+ const PLAN = [
36
+ {
37
+ id: 'title', chapter: null, url: 'card',
38
+ clips: [
39
+ { cap: 'AgentWorkShop', sub: 'INDUSTRIAL AGENT RUNTIME · RECORDED LIVE', say: 'Agent Work Shop — an industrial agent runtime, recorded live. Real protocols, real control — nothing in this demo is scripted.' },
40
+ ],
41
+ },
42
+ {
43
+ id: 'platform', chapter: '01|THE CONTROL ROOM', url: '/',
44
+ clips: [
45
+ { cap: 'The control room', sub: 'Every line, control node and sample in one view — live', say: 'The control room. Every production line, control node, and sample in one view — live.' },
46
+ { cap: '14 engines · 4 entry points', sub: 'WebSocket · MCP · A2A · REST', say: 'Fourteen agent engines behind one contract, and four entry points: WebSocket, M C P, A to A, and REST.' },
47
+ ],
48
+ },
49
+ {
50
+ id: 'telemetry', chapter: '02|LIVE TELEMETRY', url: '/daq',
51
+ clips: [
52
+ { cap: 'DAQ console — live telemetry', sub: '2,000+ channels across six field protocols', say: 'The data acquisition console. Over two thousand live channels across six field protocols: Modbus T C P and R T U, O P C U A, M Q T T, H T T P, and serial.' },
53
+ { cap: 'driver → queue → storage → WebSocket', sub: 'Every node keeps its own cadence', say: 'Samples flow from driver, through the queue, into time-series storage, then fan out over WebSockets. Every node keeps its own cadence.' },
54
+ ],
55
+ },
56
+ {
57
+ id: 'control', chapter: '03|GOVERNED CONTROL', url: '/dcw/ln-bcc8ea44',
58
+ clips: [
59
+ { cap: 'Writing to a real PLC', sub: 'Recipe interlock → safety limits → field', say: 'Now writing to a real PLC. Every setpoint passes the recipe interlock and the safety limits before anything reaches the field.' },
60
+ { cap: 'SET 150 °C → Modbus → read-back', sub: 'Watch the write land, then read the register straight back', say: 'Watch the write land: the platform drives the Modbus holding registers, then reads the value straight back from the device.' },
61
+ { cap: 'Read-back agrees — audit signed', sub: 'Who · when · why — every entry signed', say: 'One hundred and fifty degrees, confirmed by read-back, with a signed entry in the audit trail: who, when, and why.' },
62
+ ],
63
+ },
64
+ {
65
+ id: 'plugins', chapter: '04|PROTOCOLS ARE PLUGINS', url: '/plugins',
66
+ clips: [
67
+ { cap: 'Protocols are plugins', sub: 'ctx.daq.registerDriver · ctx.dcw.registerWriteDriver', say: 'Protocols are plugins. A driver registered through the SDK appears in the interface with its own configuration form — zero front-end changes.' },
68
+ { cap: 'serial-bridge — direct RS-232/485', sub: 'Modbus RTU + ASCII line, probe API included', say: 'The built-in serial bridge opens a real COM port and probes it. If nothing answers, it says so — honestly.' },
69
+ ],
70
+ },
71
+ {
72
+ id: 'agents', chapter: '05|AGENT TEAMS', url: 'workshop',
73
+ clips: [
74
+ { cap: 'The melt-optimization crew', sub: 'A lead agent · trend analyst · setpoint writer', say: 'This is the agent workshop, and this crew owns melt temperature optimization: a lead agent, a trend analyst, and a setpoint writer, supervised over A to A.' },
75
+ { cap: 'Dispatch a goal', sub: 'Lead decomposes → workers execute with tools', say: 'Dispatch a goal. The lead decomposes it, workers stream progress as they execute with tools, and every message lands on the audit trail.' },
76
+ { cap: 'Execution, live', sub: '7-state task machine · artifacts · real-time events', say: 'Task state, artifacts, and messages update in real time. The same seven-state machine backs every engine — from the scripted mock to a real L L M.' },
77
+ ],
78
+ },
79
+ {
80
+ id: 'loop', chapter: '06|THE CLOSED LOOP', url: 'pvnode',
81
+ clips: [
82
+ { cap: 'The closed loop', sub: 'Analyze → propose → approve → write → verify', say: 'The closed loop, end to end. Analyze the trend, propose a setpoint, take the human approval, write to the PLC, and verify — the process value follows.' },
83
+ { cap: 'PV tracks the setpoint', sub: 'SET and ACT — one calibration, both directions', say: 'The process value tracks the setpoint through the real control chain. The same calibration reads back what was written: S E T and A C T, side by side.' },
84
+ ],
85
+ },
86
+ {
87
+ id: 'twin', chapter: '07|THE DIGITAL TWIN', url: '/town',
88
+ clips: [
89
+ { cap: 'The digital twin', sub: 'Live tags · device health · alarms — one event bus', say: 'And everything streams into a three-D digital twin. Live tags, device health, and alarms — all rendered from the same event bus.' },
90
+ { cap: '2,000+ channels · one scene', sub: 'Nothing mocked', say: 'Two thousand channels, one scene — nothing mocked.' },
91
+ ],
92
+ },
93
+ {
94
+ id: 'outro', chapter: null, url: '/',
95
+ clips: [
96
+ { cap: 'AgentWorkShop v0.7.41', sub: 'Open source · PolyForm NC · github.com/kingdol666/AgentWorkShop', say: 'Agent Work Shop, version zero point seven forty one. Open source under PolyForm N C. Find it on Git Hub — king dol sixty six, slash, Agent Work Shop.' },
97
+ ],
98
+ },
99
+ ]
100
+
101
+ // ════ 阶段 1:TTS(edge-tts 神经语音,增量) ═════════════════════════════════
102
+ async function ttsPhase() {
103
+ const narrDir = path.join(WORK, 'narr')
104
+ fs.mkdirSync(narrDir, { recursive: true })
105
+ for (const scene of PLAN) {
106
+ for (let k = 0; k < scene.clips.length; k++) {
107
+ const id = `${scene.id}_${k}`
108
+ const mp3 = path.join(narrDir, `${id}.mp3`)
109
+ const wav = path.join(narrDir, `${id}.wav`)
110
+ if (fs.existsSync(wav)) continue
111
+ const text = scene.clips[k].say.replace(/"/g, '\\"')
112
+ sh(`edge-tts --voice ${VOICE} --rate=${RATE} --text "${text}" --write-media "${mp3}"`)
113
+ sh(`ffmpeg -y -v error -i "${mp3}" -af "loudnorm=I=-16:TP=-1.5" -ar 44100 -ac 2 "${wav}"`)
114
+ console.log(` tts ${id}`)
115
+ }
116
+ }
117
+ const durations = {}
118
+ for (const scene of PLAN) {
119
+ for (let k = 0; k < scene.clips.length; k++) {
120
+ durations[`${scene.id}_${k}`] = probeDur(path.join(narrDir, `${scene.id}_${k}.wav`))
121
+ }
122
+ }
123
+ fs.writeFileSync(path.join(narrDir, 'durations.json'), JSON.stringify(durations, null, 2))
124
+ console.log('✅ TTS 完成:', JSON.stringify(durations))
125
+ }
126
+
127
+ // ════ 页面内叠加层(序列化注入) ══════════════════════════════════════════════
128
+ const OVERLAY_FN = () => {
129
+ if (window.__demoInstalled) {
130
+ window.__demoRebuild()
131
+ return
132
+ }
133
+ window.__demoInstalled = true
134
+ const css = document.createElement('style')
135
+ css.textContent = `
136
+ #aw-demo-cap { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
137
+ max-width: 82vw; z-index: 2147483000; pointer-events: none; text-align: center;
138
+ background: rgba(7,11,19,.84); border: 1px solid rgba(65,200,244,.35);
139
+ border-radius: 12px; padding: 14px 26px;
140
+ font: 600 21px/1.45 'Segoe UI', system-ui, sans-serif; color: #eaf6ff;
141
+ box-shadow: 0 8px 32px rgba(0,0,0,.45); backdrop-filter: blur(6px);
142
+ transition: opacity .45s ease; opacity: 0; }
143
+ #aw-demo-cap .sub { display: block; margin-top: 4px; font: 400 15px/1.4 'Segoe UI', system-ui, sans-serif;
144
+ color: #7dd8c8; letter-spacing: .4px; }
145
+ #aw-demo-cap .tag { position: absolute; top: -11px; left: 18px; background: #35e0a0; color: #06251a;
146
+ font: 700 11px/1 'Segoe UI', sans-serif; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 6px; }
147
+ #aw-demo-veil { position: fixed; inset: 0; background: #000; z-index: 2147483001;
148
+ pointer-events: none; opacity: 0; transition: opacity .4s ease; }
149
+ #aw-demo-card { position: fixed; inset: 0; background: #05080f; z-index: 2147482999;
150
+ display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
151
+ #aw-demo-card .no { font: 700 15px/1 'Segoe UI', sans-serif; letter-spacing: 4px; color: #35e0a0; }
152
+ #aw-demo-card .tt { font: 600 54px/1.2 Georgia, 'Times New Roman', serif; color: #eaf2ff; }
153
+ #aw-demo-card .rule { width: 120px; height: 2px; background: #2c4568; animation: awpulse 1.4s ease-in-out infinite; }
154
+ @keyframes awpulse { 0%, 100% { width: 120px; opacity: .55 } 50% { width: 168px; opacity: 1 } }
155
+ #aw-demo-steps { position: fixed; left: 50%; top: 34px; transform: translateX(-50%);
156
+ display: none; gap: 10px; z-index: 2147483000; pointer-events: none; }
157
+ #aw-demo-steps span { font: 600 13px/1 'Segoe UI', sans-serif; letter-spacing: 1px;
158
+ padding: 8px 14px; border-radius: 8px; color: #8fa0b5;
159
+ background: rgba(7,11,19,.8); border: 1px solid rgba(45,69,104,.6); transition: all .3s ease; }
160
+ #aw-demo-steps span.on { color: #06251a; background: #35e0a0; border-color: #35e0a0; }
161
+ #aw-demo-beat { position: fixed; width: 2px; height: 2px; bottom: 0; left: 0;
162
+ opacity: 0; animation: awbeat .5s steps(1) infinite; }
163
+ @keyframes awbeat { 0% { opacity: 0 } 50% { opacity: .02 } 100% { opacity: 0 } }
164
+ `
165
+ document.head.append(css)
166
+ for (const id of ['aw-demo-cap', 'aw-demo-veil', 'aw-demo-card', 'aw-demo-steps', 'aw-demo-beat']) {
167
+ const el = document.createElement('div')
168
+ el.id = id
169
+ document.body.append(el)
170
+ }
171
+ window.__demoRebuild = () => {
172
+ for (const id of ['aw-demo-cap', 'aw-demo-veil', 'aw-demo-card', 'aw-demo-steps', 'aw-demo-beat']) {
173
+ let el = document.getElementById(id)
174
+ if (!el || !el.isConnected) {
175
+ el?.remove()
176
+ el = document.createElement('div')
177
+ el.id = id
178
+ document.body.append(el)
179
+ }
180
+ }
181
+ }
182
+ window.__demoCap = (main, sub) => {
183
+ window.__demoRebuild()
184
+ const c = document.getElementById('aw-demo-cap')
185
+ if (!main) {
186
+ c.style.opacity = 0
187
+ return
188
+ }
189
+ c.innerHTML = `<span class="tag">AGENTWORKSHOP</span>${main}${sub ? `<span class="sub">${sub}</span>` : ''}`
190
+ c.style.opacity = 1
191
+ }
192
+ window.__demoVeil = async (on) => {
193
+ window.__demoRebuild()
194
+ document.getElementById('aw-demo-veil').style.opacity = on ? 1 : 0
195
+ await new Promise(r => setTimeout(r, 430))
196
+ }
197
+ window.__demoCard = (no) => {
198
+ window.__demoRebuild()
199
+ const c = document.getElementById('aw-demo-card')
200
+ if (!no) {
201
+ c.style.display = 'none'
202
+ return
203
+ }
204
+ const [noTxt, ...rest] = String(no).split('|')
205
+ c.innerHTML = `<span class="no">${noTxt}</span><span class="tt">${rest.join('|')}</span><span class="rule"></span>`
206
+ c.style.display = 'flex'
207
+ }
208
+ window.__demoSteps = (names, active) => {
209
+ window.__demoRebuild()
210
+ const s = document.getElementById('aw-demo-steps')
211
+ if (!names) {
212
+ s.style.display = 'none'
213
+ return
214
+ }
215
+ s.style.display = 'flex'
216
+ s.innerHTML = names.map((n, i) => `<span class="${i <= active ? 'on' : ''}">${n}</span>`).join('')
217
+ }
218
+ window.__demoScroll = async (toY, ms = 1000) => {
219
+ const from = window.scrollY
220
+ const t0 = performance.now()
221
+ await new Promise((done) => {
222
+ const step = (t) => {
223
+ const k = Math.min(1, (t - t0) / ms)
224
+ const e = k < 0.5 ? 2 * k * k : 1 - (-2 * k + 2) ** 2 / 2
225
+ window.scrollTo(0, from + (toY - from) * e)
226
+ if (k < 1) requestAnimationFrame(step)
227
+ else done()
228
+ }
229
+ requestAnimationFrame(step)
230
+ })
231
+ }
232
+ }
233
+
234
+ /**
235
+ * 场景运行器(页面内自跑;录制期间 Node 零 evaluate)。返回实际耗时(秒)。
236
+ */
237
+ const SCENE_RUNNER = async ({ clips, chapter, isTitle, actions, durs }) => {
238
+ const t0 = Date.now()
239
+ const sleep = ms => new Promise(r => setTimeout(r, ms))
240
+ const cap = (m, s2) => window.__demoCap(m, s2)
241
+ const qa = sel => [...document.querySelectorAll(sel)]
242
+ const setVal = (inp, v) => {
243
+ const set = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value').set
244
+ set.call(inp, v)
245
+ inp.dispatchEvent(new Event('input', { bubbles: true }))
246
+ inp.dispatchEvent(new Event('change', { bubbles: true }))
247
+ }
248
+ await window.__demoVeil(false)
249
+ if (chapter) {
250
+ window.__demoCard(chapter)
251
+ await sleep(1700)
252
+ window.__demoCard(null)
253
+ await sleep(350)
254
+ }
255
+ if (isTitle) {
256
+ window.__demoCard('★|AgentWorkShop')
257
+ }
258
+ for (let k = 0; k < clips.length; k++) {
259
+ cap(clips[k].cap, clips[k].sub)
260
+ const act = actions[k]
261
+ if (act === 'scrollcard') {
262
+ await window.__demoScroll(document.body.scrollHeight, 1400)
263
+ await sleep(800)
264
+ }
265
+ if (act === 'scroll430') {
266
+ await window.__demoScroll(430, 1100)
267
+ await sleep(900)
268
+ }
269
+ if (act === 'scroll320') {
270
+ await window.__demoScroll(320, 1200)
271
+ await sleep(1100)
272
+ }
273
+ if (act === 'pause3400') await sleep(3400)
274
+ if (act === 'write150') {
275
+ const inp = qa('input[type=number]').find(i => /^\d+~\d+$/.test((i.placeholder || '').replace(/\s/g, '')))
276
+ if (inp) {
277
+ inp.closest('tr, [class*="row"]')?.scrollIntoView({ block: 'center', behavior: 'smooth' })
278
+ await sleep(700)
279
+ setVal(inp, '150')
280
+ await sleep(250)
281
+ qa('button').find(b => b.textContent.trim() === '下发' || b.textContent.trim() === 'Dispatch')?.click()
282
+ }
283
+ await sleep(5200)
284
+ qa('button').find(b => ['读取', 'Read'].includes(b.textContent.trim()))?.click()
285
+ await sleep(3200)
286
+ }
287
+ if (act === 'history') {
288
+ await window.__demoScroll(document.body.scrollHeight, 1400)
289
+ await sleep(1500)
290
+ }
291
+ if (act === 'probe') {
292
+ const form = document.querySelector('.aw-serial-form')
293
+ if (form) {
294
+ const inputs = [...form.querySelectorAll('input')]
295
+ const nums = inputs.filter(i => i.type === 'number')
296
+ setVal(inputs[0], 'COM1')
297
+ if (nums[0]) setVal(nums[0], '9600')
298
+ if (nums[1]) setVal(nums[1], '1')
299
+ if (nums[2]) setVal(nums[2], '40001')
300
+ }
301
+ await sleep(400)
302
+ qa('.aw-serial-btn').find(b => (b.textContent || '').includes('测试连接') || (b.textContent || '').toLowerCase().includes('test'))?.click()
303
+ await sleep(4200)
304
+ }
305
+ if (act === 'sendtask') {
306
+ const any = qa('textarea')[0]
307
+ if (any) {
308
+ const st = Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype, 'value').set
309
+ st.call(any, 'Demo run: optimize the melt temperature setpoint')
310
+ any.dispatchEvent(new Event('input', { bubbles: true }))
311
+ any.focus()
312
+ }
313
+ await sleep(700)
314
+ qa('button').find(b => /发送|Send/.test(b.title ?? ''))?.click()
315
+ await sleep(8500)
316
+ }
317
+ if (act === 'stages') {
318
+ const names = ['ANALYZE', 'PROPOSE', 'APPROVE', 'WRITE', 'VERIFY']
319
+ window.__demoSteps(names, -1)
320
+ for (let i = 0; i < names.length; i++) {
321
+ window.__demoSteps(names, i)
322
+ await sleep(1550)
323
+ }
324
+ await sleep(400)
325
+ window.__demoSteps(null)
326
+ }
327
+ await sleep(Math.max(1200, ((durs[k] ?? 6) + 0.7) * 1000))
328
+ }
329
+ cap(null)
330
+ await window.__demoVeil(true)
331
+ await sleep(700)
332
+ return (Date.now() - t0) / 1000
333
+ }
334
+
335
+ // ════ 阶段 2:录制(场景级重试) ══════════════════════════════════════════════
336
+ async function recordPhase() {
337
+ const narrDir = path.join(WORK, 'narr')
338
+ const durations = JSON.parse(fs.readFileSync(path.join(narrDir, 'durations.json'), 'utf8'))
339
+ fs.rmSync(path.join(WORK, 'frames'), { recursive: true, force: true })
340
+ fs.mkdirSync(path.join(WORK, 'frames'), { recursive: true })
341
+ const browser = await puppeteer.launch({
342
+ executablePath: CHROME,
343
+ headless: false,
344
+ defaultViewport: { width: 1600, height: 900, deviceScaleFactor: 1 },
345
+ args: ['--no-first-run', '--no-default-browser-check', '--window-size=1620,960', '--use-gl=angle'],
346
+ protocolTimeout: 600000,
347
+ })
348
+ const page = await browser.newPage()
349
+ await page.evaluateOnNewDocument(() => {
350
+ try {
351
+ localStorage.setItem('aw.locale', 'en')
352
+ }
353
+ catch { /* about:blank */ }
354
+ })
355
+ await page.goto(BASE + '/', { waitUntil: 'domcontentloaded', timeout: 60000 })
356
+ await sleep(1500)
357
+ const token = await page.evaluate(async ({ email, password }) => {
358
+ const res = await fetch('/api/users/login', {
359
+ method: 'POST', headers: { 'content-type': 'application/json' },
360
+ body: JSON.stringify({ email, password }),
361
+ })
362
+ const body = await res.json()
363
+ if (body?.code !== 0) return null
364
+ document.cookie = `token=${body.data.token}; path=/; max-age=86400`
365
+ return body.data.token
366
+ }, { email: EMAIL, password: PASSWORD })
367
+ if (!token) throw new Error('登录失败')
368
+
369
+ const sceneFiles = []
370
+ for (const scene of PLAN) {
371
+ let recorded = null
372
+ for (let attempt = 0; attempt < 2 && !recorded; attempt++) {
373
+ const durs = scene.clips.map((_, k) => durations[`${scene.id}_${k}`] ?? 6)
374
+ const narrTotal = durs.reduce((a, b) => a + b, 0) + 0.7 * scene.clips.length
375
+ console.log(`● 场景 ${scene.id}${attempt ? '(重试)' : ''}(解说 ${narrTotal.toFixed(1)}s)`)
376
+
377
+ let navTo = scene.url.startsWith('/') ? BASE + scene.url : null
378
+ if (scene.url === 'workshop') {
379
+ const wsId = await page.evaluate(async (t) => {
380
+ const r = await fetch('/api/workshop/workspaces', { headers: { authorization: `Bearer ${t}` } }).then(x => x.json())
381
+ return r?.data?.[0]?.id ?? null
382
+ }, token)
383
+ navTo = wsId ? `${BASE}/workshop/w/${wsId}` : `${BASE}/workshop`
384
+ }
385
+ if (scene.url === 'pvnode') {
386
+ const nid = await page.evaluate(async (t) => {
387
+ const r = await fetch('/api/workshop/daq', { headers: { authorization: `Bearer ${t}` } }).then(x => x.json())
388
+ const nodes = r.data?.nodes ?? []
389
+ return (nodes.find(n => n.name.includes('Temp PV')) ?? nodes[0])?.id ?? null
390
+ }, token)
391
+ navTo = nid ? `${BASE}/daq/${nid}` : `${BASE}/daq`
392
+ }
393
+ if (scene.url === 'card') {
394
+ await page.goto('about:blank').catch(() => {})
395
+ }
396
+ else {
397
+ await page.goto(navTo, { waitUntil: 'domcontentloaded', timeout: 60000 }).catch(() => {})
398
+ }
399
+ await sleep(800)
400
+ await page.evaluate(OVERLAY_FN)
401
+ await sleep(2200)
402
+
403
+ const actions = {
404
+ telemetry: { 1: 'scroll430' },
405
+ control: { 1: 'write150', 2: 'history' },
406
+ plugins: { 1: 'probe' },
407
+ agents: { 1: 'sendtask' },
408
+ loop: { 1: 'stages' },
409
+ twin: { 0: 'pause3400' },
410
+ }
411
+ const payload = {
412
+ clips: scene.clips.map(c => ({ cap: c.cap, sub: c.sub })),
413
+ chapter: scene.chapter,
414
+ isTitle: scene.id === 'title',
415
+ actions: actions[scene.id] ?? {},
416
+ durs,
417
+ }
418
+ const attemptSuffix = attempt ? `-r${attempt}` : ''
419
+ const sceneDir = path.join(WORK, 'frames', `${scene.id}${attemptSuffix}`)
420
+ fs.mkdirSync(sceneDir, { recursive: true })
421
+ let frameNo = 0
422
+ let pending = 0
423
+ const stamps = []
424
+ const client = await page.createCDPSession()
425
+ client.on('Page.screencastFrame', async (ev) => {
426
+ const at = ev.metadata.timestamp ?? Date.now() / 1000
427
+ if (pending < 24) {
428
+ pending++
429
+ const f = path.join(sceneDir, `f${String(frameNo++).padStart(5, '0')}.jpg`)
430
+ stamps.push({ file: f, at })
431
+ fs.promises.writeFile(f, Buffer.from(ev.data, 'base64')).catch(() => {}).finally(() => pending--)
432
+ }
433
+ await client.send('Page.screencastFrameAck', { sessionId: ev.sessionId }).catch(() => {})
434
+ })
435
+
436
+ // 场景脚本下推(不等待;录制期间零 evaluate)。超时/异常 → 由 attempt 重试兜底。
437
+ const runnerPromise = page.evaluate(SCENE_RUNNER, payload).catch(err => console.warn(' runner:', String(err).slice(0, 70)))
438
+ await sleep(600)
439
+ await client.send('Page.startScreencast', { format: 'jpeg', quality: 74, maxWidth: 1600, maxHeight: 900, everyNthFrame: 3 })
440
+
441
+ if (scene.id === 'twin') {
442
+ await sleep(4200)
443
+ const orbit = async (dx, steps = 24) => {
444
+ const box = await page.evaluate(() => {
445
+ const c = document.querySelector('canvas')
446
+ const r = c?.getBoundingClientRect()
447
+ return r ? { x: r.x + r.width / 2, y: r.y + r.height / 2 } : null
448
+ })
449
+ if (!box) return
450
+ await page.mouse.move(box.x, box.y)
451
+ await page.mouse.down()
452
+ for (let i = 0; i < steps; i++) {
453
+ const k = (i + 1) / steps
454
+ const e = 1 - (1 - k) ** 2
455
+ await page.mouse.move(box.x + dx * e, box.y + Math.sin(k * Math.PI) * 30)
456
+ await sleep(46)
457
+ }
458
+ await page.mouse.up()
459
+ }
460
+ await orbit(300)
461
+ await sleep(600)
462
+ await orbit(-240)
463
+ await sleep(500)
464
+ }
465
+
466
+ await runnerPromise.catch(() => {})
467
+ await sleep(600)
468
+ await client.send('Page.stopScreencast').catch(() => {})
469
+ await sleep(300)
470
+ console.log(` 帧 ${stamps.length}`)
471
+
472
+ if (stamps.length >= 8) {
473
+ const lines = []
474
+ for (let i = 0; i < stamps.length; i++) {
475
+ const next = stamps[i + 1]?.at
476
+ const d = next ? Math.max(0.02, Math.min(3, next - stamps[i].at)) : 0.12
477
+ lines.push(`file '${stamps[i].file.replace(/\\/g, '/')}'`)
478
+ lines.push(`duration ${d.toFixed(3)}`)
479
+ }
480
+ lines.push(`file '${stamps[stamps.length - 1].file.replace(/\\/g, '/')}'`)
481
+ const durFile = path.join(sceneDir, 'durations.txt')
482
+ fs.writeFileSync(durFile, lines.join('\n'))
483
+ const out = path.join(WORK, 'frames', `${scene.id}${attemptSuffix}.mp4`)
484
+ execSync(`ffmpeg -y -v error -f concat -safe 0 -i "${durFile}" -vf "fps=30,format=yuv420p" -c:v libx264 -preset medium -crf 24 "${out}"`)
485
+ recorded = { id: scene.id, video: out }
486
+ }
487
+ else {
488
+ console.warn(` ⚠ ${scene.id} 帧不足(attempt=${attempt})`)
489
+ // 渲染器可能被拖挂:整页 reload 复位后再试
490
+ await page.reload({ waitUntil: 'domcontentloaded', timeout: 60000 }).catch(() => {})
491
+ await sleep(2500)
492
+ }
493
+ await client.detach().catch(() => {})
494
+ }
495
+ if (recorded) sceneFiles.push(recorded)
496
+ else console.warn(` ✖ ${scene.id} 两次尝试均失败,跳过该场景`)
497
+ }
498
+
499
+ // ── 配音对齐 + 混流(clip 边缘 afade)+ 拼接 + 封面 ──
500
+ console.log('● 配音对齐与混流 …')
501
+ const finalOut = path.join(OUT_DIR, 'agentworkshop-demo.mp4')
502
+ const parts = []
503
+ for (const scene of PLAN) {
504
+ const sf = sceneFiles.find(x => x.id === scene.id)
505
+ if (!sf) continue
506
+ const vdur = probeDur(sf.video)
507
+ const inputs = []
508
+ const filters = []
509
+ const mixIns = []
510
+ let t = HEAD
511
+ scene.clips.forEach((c, k) => {
512
+ const d = durations[`${scene.id}_${k}`] ?? 0
513
+ const narr = path.join(narrDir, `${scene.id}_${k}.wav`)
514
+ if (fs.existsSync(narr)) {
515
+ inputs.push('-i', narr)
516
+ const ms = Math.round(t * 1000)
517
+ filters.push(`[${k}:a]adelay=${ms}|${ms},afade=t=in:d=0.025,afade=t=out:st=${Math.max(0, d - 0.06).toFixed(3)}:d=0.06[a${k}]`)
518
+ mixIns.push(`[a${k}]`)
519
+ }
520
+ t += d + 0.7
521
+ })
522
+ const sceneWav = path.join(WORK, 'frames', `${scene.id}.wav`)
523
+ if (mixIns.length) {
524
+ execSync(`ffmpeg -y -v error ${inputs.join(' ')} -filter_complex "${filters.join(';')};${mixIns.join('')}amix=inputs=${mixIns.length}:normalize=0,apad=whole_dur=${vdur.toFixed(3)}[out]" -map "[out]" -ar 44100 -ac 2 "${sceneWav}"`)
525
+ }
526
+ else {
527
+ execSync(`ffmpeg -y -v error -f lavfi -i anullsrc=r=44100:cl=stereo -t ${vdur.toFixed(3)} "${sceneWav}"`)
528
+ }
529
+ const av = path.join(WORK, 'frames', `${scene.id}.av.mp4`)
530
+ execSync(`ffmpeg -y -v error -i "${sf.video}" -i "${sceneWav}" -c:v copy -c:a aac -b:a 160k -shortest "${av}"`)
531
+ parts.push(av)
532
+ }
533
+ const listFile = path.join(WORK, 'frames', 'concat.txt')
534
+ fs.writeFileSync(listFile, parts.map(p2 => `file '${p2.replace(/\\/g, '/')}'`).join('\n'))
535
+ execSync(`ffmpeg -y -v error -f concat -safe 0 -i "${listFile}" -c copy -movflags +faststart "${finalOut}"`)
536
+ const dur = probeDur(finalOut)
537
+ const size = fs.statSync(finalOut).size
538
+ console.log(`✅ 完成:${finalOut.replace(process.cwd(), '.')}(${(size / 1e6).toFixed(1)} MB,${dur.toFixed(1)}s)`)
539
+
540
+ const posterAt = Math.min(dur - 2, dur * 0.86)
541
+ execSync(`ffmpeg -y -v error -ss ${posterAt.toFixed(1)} -i "${finalOut}" -frames:v 1 -q:v 3 "${path.join(OUT_DIR, 'poster.jpg')}"`)
542
+ await browser.close()
543
+ }
544
+
545
+ // ════ 入口 ══════════════════════════════════════════════════════════════════
546
+ const phase = process.argv[2] ?? 'record'
547
+ fs.mkdirSync(OUT_DIR, { recursive: true })
548
+ if (phase === 'tts') {
549
+ await ttsPhase()
550
+ }
551
+ else if (phase === 'record') {
552
+ await recordPhase()
553
+ }
554
+ else {
555
+ console.error('用法: node scripts/ui/record-demo.mjs [tts|record]')
556
+ process.exit(1)
557
+ }