agentworkshop 0.7.44 → 0.7.46
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.
- package/.AgentWorkShop/prompts/host-tools.json +265 -6
- package/.AgentWorkShop/prompts/lead-supervise.md +54 -29
- package/.AgentWorkShop/prompts/peer-reply-optional.md +6 -2
- package/.AgentWorkShop/prompts/peer-reply-required.md +8 -7
- package/.output/.AgentWorkShop/aml-python/amlkit.py +185 -120
- package/.output/.AgentWorkShop/aml-python/requirements.txt +9 -7
- package/.output/.AgentWorkShop/aml-python/train-hybrid-example.py +87 -0
- package/.output/.AgentWorkShop/prompts/host-tools.json +265 -6
- package/.output/.AgentWorkShop/prompts/lead-supervise.md +54 -29
- package/.output/.AgentWorkShop/prompts/peer-reply-optional.md +6 -2
- package/.output/.AgentWorkShop/prompts/peer-reply-required.md +8 -7
- package/.output/.AgentWorkShop/schema.json +12 -0
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/-hB4kEmt.js +1 -0
- package/.output/public/_nuxt/1g9IT9Qh2.js +1 -0
- package/.output/public/_nuxt/74x7BOWv2.js +1 -0
- package/.output/public/_nuxt/9c5GOgbu.js +1 -0
- package/.output/public/_nuxt/9zrLAN2o2.js +1 -0
- package/.output/public/_nuxt/B1RT9NTO2.js +1 -0
- package/.output/public/_nuxt/B2x8SKRO.js +1 -0
- package/.output/public/_nuxt/B6Olw0Op.js +1 -0
- package/.output/public/_nuxt/B7jlMWsz.js +1 -0
- package/.output/public/_nuxt/B8cnjDtt.js +1 -0
- package/.output/public/_nuxt/B9rIcCX12.js +1 -0
- package/.output/public/_nuxt/BACBBVdw.js +1 -0
- package/.output/public/_nuxt/BBhLVYdM.js +1 -0
- package/.output/public/_nuxt/BDmNbZ252.js +1 -0
- package/.output/public/_nuxt/BFVf8HLR.js +1 -0
- package/.output/public/_nuxt/BGKUW7ra.js +1 -0
- package/.output/public/_nuxt/BH3obZJ42.js +1 -0
- package/.output/public/_nuxt/BHwG4yNs.js +1 -0
- package/.output/public/_nuxt/BIOq3xqe2.js +1 -0
- package/.output/public/_nuxt/BITZvQBK.js +1 -0
- package/.output/public/_nuxt/BL_dbd2v2.js +1 -0
- package/.output/public/_nuxt/BMMoqi94.js +1 -0
- package/.output/public/_nuxt/BNnnYEYh2.js +1 -0
- package/.output/public/_nuxt/BQXCMsXk.js +1 -0
- package/.output/public/_nuxt/BS9P_Ies2.js +1 -0
- package/.output/public/_nuxt/BWU1pvLL.js +1 -0
- package/.output/public/_nuxt/B_9_BM9G.js +3 -0
- package/.output/public/_nuxt/B_LcD7qE2.js +1 -0
- package/.output/public/_nuxt/BcQXL8pb.js +1 -0
- package/.output/public/_nuxt/BdM_Qr752.js +1 -0
- package/.output/public/_nuxt/BiOSWsjD.js +2 -0
- package/.output/public/_nuxt/BkSViqQd.js +1 -0
- package/.output/public/_nuxt/Bl5dYv4m.js +1 -0
- package/.output/public/_nuxt/BmiMC_BC.js +2 -0
- package/.output/public/_nuxt/BnpY_zNx.js +1 -0
- package/.output/public/_nuxt/BqYVLAcm.js +1 -0
- package/.output/public/_nuxt/Br3AySNQ.js +1 -0
- package/.output/public/_nuxt/Br3MggOL.js +1 -0
- package/.output/public/_nuxt/BrRX-l9B2.js +4108 -0
- package/.output/public/_nuxt/Bt2ZL5332.js +1 -0
- package/.output/public/_nuxt/Bub2P5me.js +28 -0
- package/.output/public/_nuxt/BvRk9kiK.js +0 -0
- package/.output/public/_nuxt/BvRk9kiK2.js +0 -0
- package/.output/public/_nuxt/Bwc6lt2X.js +3 -0
- package/.output/public/_nuxt/BxHBIVAg.js +1 -0
- package/.output/public/_nuxt/BxYTM0hb.js +1 -0
- package/.output/public/_nuxt/ByMj6e7s.js +3 -0
- package/.output/public/_nuxt/BzvHUfRR2.js +1 -0
- package/.output/public/_nuxt/C2YYOgMe.js +42 -0
- package/.output/public/_nuxt/C3twEwTh2.js +1 -0
- package/.output/public/_nuxt/C4WhK2wq.js +1 -0
- package/.output/public/_nuxt/C50LmoI1.js +0 -0
- package/.output/public/_nuxt/CAaSPBqk.js +1 -0
- package/.output/public/_nuxt/CBDX7p73.js +1 -0
- package/.output/public/_nuxt/CD9lpEz22.js +13 -0
- package/.output/public/_nuxt/CGZVhYJ4.js +1 -0
- package/.output/public/_nuxt/CJRDL4EG.js +1 -0
- package/.output/public/_nuxt/CKQPwwZa2.js +1 -0
- package/.output/public/_nuxt/CLySL7mW.js +75 -0
- package/.output/public/_nuxt/CMXcOb6W.js +1 -0
- package/.output/public/_nuxt/CN1CDAwe.js +1 -0
- package/.output/public/_nuxt/CP0I2l-6.js +1 -0
- package/.output/public/_nuxt/CP0Nep9S.js +1 -0
- package/.output/public/_nuxt/CPeZNE4S2.js +1 -0
- package/.output/public/_nuxt/CPmNRTBk2.js +21 -0
- package/.output/public/_nuxt/CQabB0oy.js +1 -0
- package/.output/public/_nuxt/CT-vTjcG.js +1 -0
- package/.output/public/_nuxt/CTVfcnjU.js +3 -0
- package/.output/public/_nuxt/CWzp2R6G.js +1 -0
- package/.output/public/_nuxt/C_VAXV7I2.js +7 -0
- package/.output/public/_nuxt/CavpkQb0.js +1 -0
- package/.output/public/_nuxt/CeWnOF3O.js +1 -0
- package/.output/public/_nuxt/CfLUvgr32.js +1 -0
- package/.output/public/_nuxt/Ch1P2mIf.js +1 -0
- package/.output/public/_nuxt/ChoLwR-s.js +1 -0
- package/.output/public/_nuxt/Chphw5IA2.js +1 -0
- package/.output/public/_nuxt/ChtjzEpK2.js +19 -0
- package/.output/public/_nuxt/CiTQY_n32.js +1 -0
- package/.output/public/_nuxt/Ck5oMvUk.js +1 -0
- package/.output/public/_nuxt/Ckafrjnw2.js +1 -0
- package/.output/public/_nuxt/Cm_PTn9t2.js +1 -0
- package/.output/public/_nuxt/Cmp8PMrA.js +1 -0
- package/.output/public/_nuxt/Cnrmlixo.js +3 -0
- package/.output/public/_nuxt/Cr518Gh02.js +1 -0
- package/.output/public/_nuxt/Crbir9cT.js +1 -0
- package/.output/public/_nuxt/CtPNnATm2.js +31 -0
- package/.output/public/_nuxt/Cu8c3oMN2.js +1 -0
- package/.output/public/_nuxt/CwLQAKay2.js +1 -0
- package/.output/public/_nuxt/CzlUIbK32.js +17 -0
- package/.output/public/_nuxt/D6lZftfy.js +1 -0
- package/.output/public/_nuxt/D83nVQPl.js +1 -0
- package/.output/public/_nuxt/D89BUtx6.js +1 -0
- package/.output/public/_nuxt/DCtk3qqr.js +1 -0
- package/.output/public/_nuxt/DD6Z0yPN2.js +1 -0
- package/.output/public/_nuxt/DGw8juu_.js +2 -0
- package/.output/public/_nuxt/DHSDk8Bq2.js +4 -0
- package/.output/public/_nuxt/DJdDFnjG2.js +1 -0
- package/.output/public/_nuxt/DJyNDnag.js +1 -0
- package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
- package/.output/public/_nuxt/DLPuRMeG.js +19 -0
- package/.output/public/_nuxt/DMYYS5sK.js +1 -0
- package/.output/public/_nuxt/DNno23Jf2.js +1 -0
- package/.output/public/_nuxt/DNoEoo8t.js +1 -0
- package/.output/public/_nuxt/DPUXbTg92.js +1 -0
- package/.output/public/_nuxt/DRpFsrno.js +1 -0
- package/.output/public/_nuxt/DXIaadqv.js +1 -0
- package/.output/public/_nuxt/D_7AzAWe.js +1 -0
- package/.output/public/_nuxt/Dbe9TFc9.js +1 -0
- package/.output/public/_nuxt/DdNujZN5.js +1 -0
- package/.output/public/_nuxt/DdvQ7LRI.js +14 -0
- package/.output/public/_nuxt/DhFv8S2Z.js +1 -0
- package/.output/public/_nuxt/DkJVtqfc.js +1 -0
- package/.output/public/_nuxt/DkLCjrCk2.js +47 -0
- package/.output/public/_nuxt/DkpmSnHX.js +1 -0
- package/.output/public/_nuxt/DlUQa0wn2.js +1 -0
- package/.output/public/_nuxt/DoKpLEqc.js +1 -0
- package/.output/public/_nuxt/DpqA8D8_.js +1 -0
- package/.output/public/_nuxt/Dq0emNZi2.js +1 -0
- package/.output/public/_nuxt/DqtgGFEc.js +1 -0
- package/.output/public/_nuxt/DqtnqNgL2.js +1 -0
- package/.output/public/_nuxt/Dqz5HiXa.js +2 -0
- package/.output/public/_nuxt/DxagrjB8.js +1 -0
- package/.output/public/_nuxt/Dy3oXKdn2.js +1 -0
- package/.output/public/_nuxt/DzBbYWrw2.js +1 -0
- package/.output/public/_nuxt/EhhQmlBV2.js +1 -0
- package/.output/public/_nuxt/H2rNs1O82.js +1 -0
- package/.output/public/_nuxt/H6pPjo0l.js +1 -0
- package/.output/public/_nuxt/JAM4aNC_.js +1 -0
- package/.output/public/_nuxt/JgheoP3e.js +1 -0
- package/.output/public/_nuxt/LwIFGLgF.js +1 -0
- package/.output/public/_nuxt/Nw_6OpQZ2.js +1 -0
- package/.output/public/_nuxt/OXtV_ukR.js +1 -0
- package/.output/public/_nuxt/OmpTerminalPanel.ComMDrA8.css +1 -0
- package/.output/public/_nuxt/PLGqdko0.js +1 -0
- package/.output/public/_nuxt/PixDfCSm.js +1 -0
- package/.output/public/_nuxt/RAqsw632.js +1 -0
- package/.output/public/_nuxt/Sjjmp5OD2.js +1 -0
- package/.output/public/_nuxt/TOWR4WpO.js +1 -0
- package/.output/public/_nuxt/TownView.BvlfuLtP.css +1 -0
- package/.output/public/_nuxt/U8oQxruK.js +1 -0
- package/.output/public/_nuxt/WleoCtUX.js +1 -0
- package/.output/public/_nuxt/YaroNkJZ2.js +1 -0
- package/.output/public/_nuxt/Z-Z6EhXs.js +1 -0
- package/.output/public/_nuxt/ZuQtOnfI.js +1 -0
- package/.output/public/_nuxt/ZvXovq7N2.js +1 -0
- package/.output/public/_nuxt/_id_.BTrFUIHX.css +1 -0
- package/.output/public/_nuxt/_id_.Bossmhv1.css +1 -0
- package/.output/public/_nuxt/_wsId_.D-u-dbP9.css +1 -0
- package/.output/public/_nuxt/agents.Cgm_JG9L.css +1 -0
- package/.output/public/_nuxt/aml.Bi5X6_oi.css +1 -0
- package/.output/public/_nuxt/bg2adfck.js +1 -0
- package/.output/public/_nuxt/bt__BP-I.js +13 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7827fe9f-b4c2-461f-b1fb-c0c7da7d66b8.json +1 -0
- package/.output/public/_nuxt/cBI0JqsV2.js +209 -0
- package/.output/public/_nuxt/cDcDztgb2.js +1 -0
- package/.output/public/_nuxt/cGSl2GZp.js +1 -0
- package/.output/public/_nuxt/csitHKnE2.js +1 -0
- package/.output/public/_nuxt/d-w5jR8R.js +1 -0
- package/.output/public/_nuxt/daq.0uieKcZk.css +1 -0
- package/.output/public/_nuxt/dcw.pQRVkAi_.css +1 -0
- package/.output/public/_nuxt/default.uao9U50c.css +1 -0
- package/.output/public/_nuxt/e7BBCLxr.js +1 -0
- package/.output/public/_nuxt/entry.6DEjPWvR.css +1 -0
- package/.output/public/_nuxt/eutnXI4F.js +24 -0
- package/.output/public/_nuxt/fxWyOzyp2.js +1 -0
- package/.output/public/_nuxt/hkMGMTqt.js +1 -0
- package/.output/public/_nuxt/ikAUnxx3.js +1 -0
- package/.output/public/_nuxt/lWYQbIR3.js +1 -0
- package/.output/public/_nuxt/logs.CD0Olr3c.css +1 -0
- package/.output/public/_nuxt/monitor.CI2v5Nvl.css +1 -0
- package/.output/public/_nuxt/pages.CMhSEhEb.css +1 -0
- package/.output/public/_nuxt/permissions.DxuOOIqQ.css +1 -0
- package/.output/public/_nuxt/plugins.C50x1qZp.css +1 -0
- package/.output/public/_nuxt/qOlYoGLf.js +1 -0
- package/.output/public/_nuxt/schedules.BXNJ9q_I.css +1 -0
- package/.output/public/_nuxt/settings.Bo5EYkLI.css +1 -0
- package/.output/public/_nuxt/teams.sGmx1AdX.css +1 -0
- package/.output/public/_nuxt/tokens.DFMFaCYU.css +1 -0
- package/.output/public/_nuxt/uI9Ki_XZ.js +9 -0
- package/.output/public/_nuxt/users.DBxcKnfg.css +1 -0
- package/.output/public/_nuxt/v55S8LnT.js +1 -0
- package/.output/public/_nuxt/wDPc4SSR.js +106 -0
- package/.output/public/_nuxt/workshop.b4YRXEe0.css +1 -0
- package/.output/public/_nuxt/y9kob70X.js +1 -0
- package/.output/public/_nuxt/zh-S_7rN.js +1 -0
- package/.output/server/chunks/_/LeftOutlined.mjs +1 -1
- package/.output/server/chunks/_/SearchOutlined.mjs +1243 -279
- package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -1
- package/.output/server/chunks/_/binding-authz.mjs +1 -1
- package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
- package/.output/server/chunks/_/entity.mjs +1 -1
- package/.output/server/chunks/_/env-manager.mjs +1 -1
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +26927 -19070
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
- package/.output/server/chunks/build/Checkbox-4EdGAAl_.mjs +206 -0
- package/.output/server/chunks/build/Checkbox-4EdGAAl_.mjs.map +1 -0
- package/.output/server/chunks/build/FormItemContext-4ORSzhWv.mjs +72 -0
- package/.output/server/chunks/build/FormItemContext-4ORSzhWv.mjs.map +1 -0
- package/.output/server/chunks/build/OmpTerminalPanel-EQHrOJbw.mjs +942 -0
- package/.output/server/chunks/build/OmpTerminalPanel-EQHrOJbw.mjs.map +1 -0
- package/.output/server/chunks/build/PluginSlot-BP_qedpQ.mjs +399 -0
- package/.output/server/chunks/build/PluginSlot-BP_qedpQ.mjs.map +1 -0
- package/.output/server/chunks/build/TownView-BAR8CPIZ.mjs +6373 -0
- package/.output/server/chunks/build/TownView-BAR8CPIZ.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-DgMpjM3_.mjs +1354 -0
- package/.output/server/chunks/build/_id_-DgMpjM3_.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-Dv3BQbYV.mjs +388 -0
- package/.output/server/chunks/build/_id_-Dv3BQbYV.mjs.map +1 -0
- package/.output/server/chunks/build/_wsId_-BKJvFmyf.mjs +13109 -0
- package/.output/server/chunks/build/_wsId_-BKJvFmyf.mjs.map +1 -0
- package/.output/server/chunks/build/agents-B2GLPmn2.mjs +1085 -0
- package/.output/server/chunks/build/agents-B2GLPmn2.mjs.map +1 -0
- package/.output/server/chunks/build/aml-DdWicH3t.mjs +806 -0
- package/.output/server/chunks/build/aml-DdWicH3t.mjs.map +1 -0
- package/.output/server/chunks/build/api-BY6ji7RC.mjs +50 -0
- package/.output/server/chunks/build/api-BY6ji7RC.mjs.map +1 -0
- package/.output/server/chunks/build/api-error-BwAQLw44.mjs +47 -0
- package/.output/server/chunks/build/api-error-BwAQLw44.mjs.map +1 -0
- package/.output/server/chunks/build/apiClient-D281qrK2.mjs +81 -0
- package/.output/server/chunks/build/apiClient-D281qrK2.mjs.map +1 -0
- package/.output/server/chunks/build/builtin-catalog-edpDcgfL.mjs +1 -1
- package/.output/server/chunks/build/card-CUSocE9p.mjs +953 -0
- package/.output/server/chunks/build/card-CUSocE9p.mjs.map +1 -0
- package/.output/server/chunks/build/channel-templates-RPOtkgRf.mjs +846 -0
- package/.output/server/chunks/build/channel-templates-RPOtkgRf.mjs.map +1 -0
- package/.output/server/chunks/build/checkbox-C4AKj81e.mjs +439 -0
- package/.output/server/chunks/build/checkbox-C4AKj81e.mjs.map +1 -0
- package/.output/server/chunks/build/client-only-qNA2OVV_.mjs +43 -0
- package/.output/server/chunks/build/client-only-qNA2OVV_.mjs.map +1 -0
- package/.output/server/chunks/build/constants-HPHJvjne.mjs +139 -0
- package/.output/server/chunks/build/constants-HPHJvjne.mjs.map +1 -0
- package/.output/server/chunks/build/core-CgTOPS4t.mjs +294 -0
- package/.output/server/chunks/build/core-CgTOPS4t.mjs.map +1 -0
- package/.output/server/chunks/build/daq-CPtsh0e7.mjs +1253 -0
- package/.output/server/chunks/build/daq-CPtsh0e7.mjs.map +1 -0
- package/.output/server/chunks/build/dcw-ry5Gyw6Y.mjs +478 -0
- package/.output/server/chunks/build/dcw-ry5Gyw6Y.mjs.map +1 -0
- package/.output/server/chunks/build/default-DxOE1eB0.mjs +2061 -0
- package/.output/server/chunks/build/default-DxOE1eB0.mjs.map +1 -0
- package/.output/server/chunks/build/descriptions-CFaUq4y4.mjs +406 -0
- package/.output/server/chunks/build/descriptions-CFaUq4y4.mjs.map +1 -0
- package/.output/server/chunks/build/drawer-Cfh9_zft.mjs +834 -0
- package/.output/server/chunks/build/drawer-Cfh9_zft.mjs.map +1 -0
- package/.output/server/chunks/build/dropdown-KdKWCS5K.mjs +556 -0
- package/.output/server/chunks/build/dropdown-KdKWCS5K.mjs.map +1 -0
- package/.output/server/chunks/build/dropdown-Yev6knaj.mjs +14 -0
- package/.output/server/chunks/build/dropdown-Yev6knaj.mjs.map +1 -0
- package/.output/server/chunks/build/form-uSlNqIAV.mjs +4711 -0
- package/.output/server/chunks/build/form-uSlNqIAV.mjs.map +1 -0
- package/.output/server/chunks/build/input-Cr_KFj4T.mjs +1381 -0
- package/.output/server/chunks/build/input-Cr_KFj4T.mjs.map +1 -0
- package/.output/server/chunks/build/input-number-BRVnxeiA.mjs +1119 -0
- package/.output/server/chunks/build/input-number-BRVnxeiA.mjs.map +1 -0
- package/.output/server/chunks/build/interval-DvHBIIZh.mjs +9 -0
- package/.output/server/chunks/build/interval-DvHBIIZh.mjs.map +1 -0
- package/.output/server/chunks/build/logs-CeaiO3y9.mjs +367 -0
- package/.output/server/chunks/build/logs-CeaiO3y9.mjs.map +1 -0
- package/.output/server/chunks/build/menu-BgkRSSx7.mjs +1949 -0
- package/.output/server/chunks/build/menu-BgkRSSx7.mjs.map +1 -0
- package/.output/server/chunks/build/monitor-DnuXEIi5.mjs +2245 -0
- package/.output/server/chunks/build/monitor-DnuXEIi5.mjs.map +1 -0
- package/.output/server/chunks/build/narrow-fetch-CcG-BPxc.mjs +6 -0
- package/.output/server/chunks/build/narrow-fetch-CcG-BPxc.mjs.map +1 -0
- package/.output/server/chunks/build/pages-Bn90ijKD.mjs +539 -0
- package/.output/server/chunks/build/pages-Bn90ijKD.mjs.map +1 -0
- package/.output/server/chunks/build/permissions-DL70W1YD.mjs +629 -0
- package/.output/server/chunks/build/permissions-DL70W1YD.mjs.map +1 -0
- package/.output/server/chunks/build/plugins-DrsZo--K.mjs +246 -0
- package/.output/server/chunks/build/plugins-DrsZo--K.mjs.map +1 -0
- package/.output/server/chunks/build/popconfirm-Ox-_2V8A.mjs +339 -0
- package/.output/server/chunks/build/popconfirm-Ox-_2V8A.mjs.map +1 -0
- package/.output/server/chunks/build/schedules-VLzNcjnW.mjs +7164 -0
- package/.output/server/chunks/build/schedules-VLzNcjnW.mjs.map +1 -0
- package/.output/server/chunks/build/segmented-C61yLHvo.mjs +341 -0
- package/.output/server/chunks/build/segmented-C61yLHvo.mjs.map +1 -0
- package/.output/server/chunks/build/select-rdBWytVK.mjs +3922 -0
- package/.output/server/chunks/build/select-rdBWytVK.mjs.map +1 -0
- package/.output/server/chunks/build/settings-DVAUVMsX.mjs +1089 -0
- package/.output/server/chunks/build/settings-DVAUVMsX.mjs.map +1 -0
- package/.output/server/chunks/build/space-B2uhHJG8.mjs +110 -0
- package/.output/server/chunks/build/space-B2uhHJG8.mjs.map +1 -0
- package/.output/server/chunks/build/spin-C2cuvGth.mjs +357 -0
- package/.output/server/chunks/build/spin-C2cuvGth.mjs.map +1 -0
- package/.output/server/chunks/build/switch-DZAUIbIN.mjs +377 -0
- package/.output/server/chunks/build/switch-DZAUIbIN.mjs.map +1 -0
- package/.output/server/chunks/build/table-DOFAvY-v.mjs +8881 -0
- package/.output/server/chunks/build/table-DOFAvY-v.mjs.map +1 -0
- package/.output/server/chunks/build/tabs-DTeIuZeP.mjs +1923 -0
- package/.output/server/chunks/build/tabs-DTeIuZeP.mjs.map +1 -0
- package/.output/server/chunks/build/tag-CHLGvNM6.mjs +1029 -0
- package/.output/server/chunks/build/tag-CHLGvNM6.mjs.map +1 -0
- package/.output/server/chunks/build/teams-Mc07PYO8.mjs +1195 -0
- package/.output/server/chunks/build/teams-Mc07PYO8.mjs.map +1 -0
- package/.output/server/chunks/build/tokens-DiwD5qni.mjs +1036 -0
- package/.output/server/chunks/build/tokens-DiwD5qni.mjs.map +1 -0
- package/.output/server/chunks/build/town-BIn3be5v.mjs +39 -0
- package/.output/server/chunks/build/town-BIn3be5v.mjs.map +1 -0
- package/.output/server/chunks/build/town-D8VmTCmN.mjs +128 -0
- package/.output/server/chunks/build/town-D8VmTCmN.mjs.map +1 -0
- package/.output/server/chunks/build/types-D6J7slEa.mjs +5561 -0
- package/.output/server/chunks/build/types-D6J7slEa.mjs.map +1 -0
- package/.output/server/chunks/build/useAgentHarnessOptions-CPn5dzKe.mjs +121 -0
- package/.output/server/chunks/build/useAgentHarnessOptions-CPn5dzKe.mjs.map +1 -0
- package/.output/server/chunks/build/useAgentTemplateActions-DQWzVnZ0.mjs +74 -0
- package/.output/server/chunks/build/useAgentTemplateActions-DQWzVnZ0.mjs.map +1 -0
- package/.output/server/chunks/build/useAgentTemplateDialogState-CZzpu5og.mjs +64 -0
- package/.output/server/chunks/build/useAgentTemplateDialogState-CZzpu5og.mjs.map +1 -0
- package/.output/server/chunks/build/useAgentTemplateForm-vqyiRPtt.mjs +114 -0
- package/.output/server/chunks/build/useAgentTemplateForm-vqyiRPtt.mjs.map +1 -0
- package/.output/server/chunks/build/useAgentTemplatesCatalog-DcQbsOik.mjs +130 -0
- package/.output/server/chunks/build/useAgentTemplatesCatalog-DcQbsOik.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlDatasets-BM0lZu40.mjs +89 -0
- package/.output/server/chunks/build/useAmlDatasets-BM0lZu40.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlEntities-BjXWvFd_.mjs +83 -0
- package/.output/server/chunks/build/useAmlEntities-BjXWvFd_.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlEnv-BB7p6x_w.mjs +191 -0
- package/.output/server/chunks/build/useAmlEnv-BB7p6x_w.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlExperiments-BtyW32PO.mjs +86 -0
- package/.output/server/chunks/build/useAmlExperiments-BtyW32PO.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlFormat-WrKuRfw2.mjs +79 -0
- package/.output/server/chunks/build/useAmlFormat-WrKuRfw2.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlJobs-DBuLvWMF.mjs +263 -0
- package/.output/server/chunks/build/useAmlJobs-DBuLvWMF.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlModels-VurmkBYe.mjs +90 -0
- package/.output/server/chunks/build/useAmlModels-VurmkBYe.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlNotes-BUdj3X6Y.mjs +83 -0
- package/.output/server/chunks/build/useAmlNotes-BUdj3X6Y.mjs.map +1 -0
- package/.output/server/chunks/build/useAmlPredict-DFy-Do10.mjs +127 -0
- package/.output/server/chunks/build/useAmlPredict-DFy-Do10.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqAddNode-kW7uTSMQ.mjs +139 -0
- package/.output/server/chunks/build/useDaqAddNode-kW7uTSMQ.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqDetailBinding-cpBz4hSL.mjs +67 -0
- package/.output/server/chunks/build/useDaqDetailBinding-cpBz4hSL.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqDetailFrames-BZGtKKXW.mjs +76 -0
- package/.output/server/chunks/build/useDaqDetailFrames-BZGtKKXW.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqDetailHistory-C4_hVeqZ.mjs +173 -0
- package/.output/server/chunks/build/useDaqDetailHistory-C4_hVeqZ.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqDetailNode-Bwid_iA8.mjs +96 -0
- package/.output/server/chunks/build/useDaqDetailNode-Bwid_iA8.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqDetailParams-JfqHvTxr.mjs +156 -0
- package/.output/server/chunks/build/useDaqDetailParams-JfqHvTxr.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqFilters-C13836p-.mjs +219 -0
- package/.output/server/chunks/build/useDaqFilters-C13836p-.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqNodeWindow-1DWj2H5G.mjs +87 -0
- package/.output/server/chunks/build/useDaqNodeWindow-1DWj2H5G.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqOptimizations-Ct-TSXxy.mjs +133 -0
- package/.output/server/chunks/build/useDaqOptimizations-Ct-TSXxy.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqStream-wOxZcMDA.mjs +395 -0
- package/.output/server/chunks/build/useDaqStream-wOxZcMDA.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqTemplates-BqQRdrIm.mjs +184 -0
- package/.output/server/chunks/build/useDaqTemplates-BqQRdrIm.mjs.map +1 -0
- package/.output/server/chunks/build/useDashboardCharts-DZysNDUX.mjs +351 -0
- package/.output/server/chunks/build/useDashboardCharts-DZysNDUX.mjs.map +1 -0
- package/.output/server/chunks/build/useDashboardData-Ny_wtbo6.mjs +150 -0
- package/.output/server/chunks/build/useDashboardData-Ny_wtbo6.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwAddNode-C8nE7geh.mjs +148 -0
- package/.output/server/chunks/build/useDcwAddNode-C8nE7geh.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwCards-ETEsHvVy.mjs +64 -0
- package/.output/server/chunks/build/useDcwCards-ETEsHvVy.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwDetailScope-BNrpDzbO.mjs +181 -0
- package/.output/server/chunks/build/useDcwDetailScope-BNrpDzbO.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwDetailTemplates-IcKAJ37Y.mjs +145 -0
- package/.output/server/chunks/build/useDcwDetailTemplates-IcKAJ37Y.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwFilter-FfVlDdyS.mjs +68 -0
- package/.output/server/chunks/build/useDcwFilter-FfVlDdyS.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwLedger-BLoMmcu1.mjs +76 -0
- package/.output/server/chunks/build/useDcwLedger-BLoMmcu1.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwLineMutations-BMC5BTWU.mjs +134 -0
- package/.output/server/chunks/build/useDcwLineMutations-BMC5BTWU.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwLineRun-Bpxk4mse.mjs +101 -0
- package/.output/server/chunks/build/useDcwLineRun-Bpxk4mse.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwProducts-D-zrMaeV.mjs +90 -0
- package/.output/server/chunks/build/useDcwProducts-D-zrMaeV.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwQuery-1lYHOaU6.mjs +95 -0
- package/.output/server/chunks/build/useDcwQuery-1lYHOaU6.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwQuickActions-C-tgcXIr.mjs +85 -0
- package/.output/server/chunks/build/useDcwQuickActions-C-tgcXIr.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwRecipes-BzGOymqz.mjs +237 -0
- package/.output/server/chunks/build/useDcwRecipes-BzGOymqz.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwStream-D04kCV3J.mjs +435 -0
- package/.output/server/chunks/build/useDcwStream-D04kCV3J.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwTemplates-Dsjw9u6U.mjs +88 -0
- package/.output/server/chunks/build/useDcwTemplates-Dsjw9u6U.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwWrites-3RxwN36I.mjs +120 -0
- package/.output/server/chunks/build/useDcwWrites-3RxwN36I.mjs.map +1 -0
- package/.output/server/chunks/build/useDeviceTwins-CbVad1M3.mjs +128 -0
- package/.output/server/chunks/build/useDeviceTwins-CbVad1M3.mjs.map +1 -0
- package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs +1 -8
- package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs.map +1 -1
- package/.output/server/chunks/build/useLogsFormat-BlwLpyzy.mjs +74 -0
- package/.output/server/chunks/build/useLogsFormat-BlwLpyzy.mjs.map +1 -0
- package/.output/server/chunks/build/useLogsManual-Deev2Cjk.mjs +81 -0
- package/.output/server/chunks/build/useLogsManual-Deev2Cjk.mjs.map +1 -0
- package/.output/server/chunks/build/useLogsQuery-CRAm2hmS.mjs +112 -0
- package/.output/server/chunks/build/useLogsQuery-CRAm2hmS.mjs.map +1 -0
- package/.output/server/chunks/build/useLogsScope-ClNijVj4.mjs +80 -0
- package/.output/server/chunks/build/useLogsScope-ClNijVj4.mjs.map +1 -0
- package/.output/server/chunks/build/useMonitorColumns-ylxrUNTK.mjs +212 -0
- package/.output/server/chunks/build/useMonitorColumns-ylxrUNTK.mjs.map +1 -0
- package/.output/server/chunks/build/useMonitorData-CEpKXoD4.mjs +131 -0
- package/.output/server/chunks/build/useMonitorData-CEpKXoD4.mjs.map +1 -0
- package/.output/server/chunks/build/useMonitorFormat-_7zLapf3.mjs +87 -0
- package/.output/server/chunks/build/useMonitorFormat-_7zLapf3.mjs.map +1 -0
- package/.output/server/chunks/build/useMonitorTerminal-Dj4QwRNW.mjs +68 -0
- package/.output/server/chunks/build/useMonitorTerminal-Dj4QwRNW.mjs.map +1 -0
- package/.output/server/chunks/build/useOpsLog-CgnNG7_n.mjs +137 -0
- package/.output/server/chunks/build/useOpsLog-CgnNG7_n.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamActions-D6sxdpkP.mjs +76 -0
- package/.output/server/chunks/build/useTeamActions-D6sxdpkP.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamAddMemberDialog-Q-ntQ6Vo.mjs +81 -0
- package/.output/server/chunks/build/useTeamAddMemberDialog-Q-ntQ6Vo.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamCreateDialog-D7OMfDTM.mjs +94 -0
- package/.output/server/chunks/build/useTeamCreateDialog-D7OMfDTM.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamDeployDialog-vBRqjiut.mjs +77 -0
- package/.output/server/chunks/build/useTeamDeployDialog-vBRqjiut.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamDialogState-CFRUQxAf.mjs +79 -0
- package/.output/server/chunks/build/useTeamDialogState-CFRUQxAf.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamPluginDialog-B8kxewpZ.mjs +100 -0
- package/.output/server/chunks/build/useTeamPluginDialog-B8kxewpZ.mjs.map +1 -0
- package/.output/server/chunks/build/useTeamsCatalog-xRhk7ezA.mjs +120 -0
- package/.output/server/chunks/build/useTeamsCatalog-xRhk7ezA.mjs.map +1 -0
- package/.output/server/chunks/build/useTokenClipboard-CwQpoFeP.mjs +69 -0
- package/.output/server/chunks/build/useTokenClipboard-CwQpoFeP.mjs.map +1 -0
- package/.output/server/chunks/build/useTokenCreate-DpDcF1Vx.mjs +112 -0
- package/.output/server/chunks/build/useTokenCreate-DpDcF1Vx.mjs.map +1 -0
- package/.output/server/chunks/build/useTokenRename-BRejFrtc.mjs +84 -0
- package/.output/server/chunks/build/useTokenRename-BRejFrtc.mjs.map +1 -0
- package/.output/server/chunks/build/useTokenReveal-DER2afAS.mjs +115 -0
- package/.output/server/chunks/build/useTokenReveal-DER2afAS.mjs.map +1 -0
- package/.output/server/chunks/build/useTokensList-DHt65IOY.mjs +89 -0
- package/.output/server/chunks/build/useTokensList-DHt65IOY.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkbenchAuth-B2j-zILO.mjs +135 -0
- package/.output/server/chunks/build/useWorkbenchAuth-B2j-zILO.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkbenchWorkspaces-B_2mOxN6.mjs +133 -0
- package/.output/server/chunks/build/useWorkbenchWorkspaces-B_2mOxN6.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopApi-B1B9vd4m.mjs +102 -0
- package/.output/server/chunks/build/useWorkshopApi-B1B9vd4m.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopWs-B-Es2Xg3.mjs +1782 -0
- package/.output/server/chunks/build/useWorkshopWs-B-Es2Xg3.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkspaceAuth-tQ1ORWXo.mjs +57 -0
- package/.output/server/chunks/build/useWorkspaceAuth-tQ1ORWXo.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkspaceChannels-BwB6TAWY.mjs +87 -0
- package/.output/server/chunks/build/useWorkspaceChannels-BwB6TAWY.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkspacePanels-CuAmDpT5.mjs +75 -0
- package/.output/server/chunks/build/useWorkspacePanels-CuAmDpT5.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkspaceShell-CcQ4JlqO.mjs +165 -0
- package/.output/server/chunks/build/useWorkspaceShell-CcQ4JlqO.mjs.map +1 -0
- package/.output/server/chunks/build/users-De2HygNt.mjs +561 -0
- package/.output/server/chunks/build/users-De2HygNt.mjs.map +1 -0
- package/.output/server/chunks/build/workshop-CmgpTwyf.mjs +1018 -0
- package/.output/server/chunks/build/workshop-CmgpTwyf.mjs.map +1 -0
- package/.output/server/chunks/build/workspaces-DVIEk1Bl.mjs +139 -0
- package/.output/server/chunks/build/workspaces-DVIEk1Bl.mjs.map +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs +2 -2
- package/.output/server/chunks/routes/api/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +2 -2
- package/.output/server/chunks/routes/api/metrics.mjs +2 -2
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +2 -2
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/plugins/i18n.get.mjs +2 -2
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +2 -2
- package/.output/server/chunks/routes/api/system/config-groups/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/system/config-groups/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/system/config.get.mjs +2 -2
- package/.output/server/chunks/routes/api/system/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/system/index.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/system/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/system/index2.get.mjs +2 -2
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +35 -4
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs.map +1 -1
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +2 -2
- package/.output/server/chunks/routes/api/system/monitor.get.mjs +2 -2
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs +2 -2
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +2 -2
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/users/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/users/_id_.put.mjs +2 -2
- package/.output/server/chunks/routes/api/users/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/users/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/users/login.post.mjs +2 -2
- package/.output/server/chunks/routes/api/users/logout.post.mjs +2 -2
- package/.output/server/chunks/routes/api/users/me.get.mjs +2 -2
- package/.output/server/chunks/routes/api/users/register.post.mjs +2 -2
- package/.output/server/chunks/routes/api/users/setup-status.get.mjs +2 -2
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +2 -2
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +38 -6
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +14 -5
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id/preview.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index2.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/cancel.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/logs.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/retry.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/models/_id/predict.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/models/_id/promote.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/caller.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +10 -5
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.post.mjs +52 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/messages/_messageId/read.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/messages/_messageId/read.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/permissions.get.mjs +48 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/chat/permissions.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +10 -14
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +15 -28
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +3 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +29 -23
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +9 -4
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs +22 -10
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs +34 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId/approve.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId/approve.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId_.delete.mjs +34 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/_userId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/join.post.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/join.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/leave.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/members/leave.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +22 -6
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs +21 -3
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +5 -5
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/frames/content.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/frames.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/revert.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/versions.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/index.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +11 -4
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +28 -36
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs +26 -12
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index11.get.mjs +12 -7
- package/.output/server/chunks/routes/api/workshop/index11.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index12.get.mjs +3 -3
- package/.output/server/chunks/routes/api/workshop/index12.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index13.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/index13.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index14.get.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/index14.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs +14 -16
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs +40 -19
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs +19 -5
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs +20 -24
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index9.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/index9.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/notifications/read.post.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/notifications/read.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/schedules/_id/run.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id/run.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id/runs.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id/runs.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id_.patch.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/schedules/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/tasks/_id/reassign.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/reassign.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs +44 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +9 -5
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +3 -3
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +2 -2
- package/.output/server/chunks/routes/renderer.mjs +3 -3
- package/.output/server/chunks/virtual/entry.mjs +6055 -1624
- package/.output/server/chunks/virtual/entry.mjs.map +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +15 -5549
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +102 -48
- package/README.md +105 -38
- package/app/components/AppHeader.vue +26 -703
- package/app/components/aml/AmlDatasetFormModal.vue +279 -0
- package/app/components/aml/AmlDatasetTable.vue +319 -0
- package/app/components/aml/AmlEnvPanel.vue +230 -0
- package/app/components/aml/AmlExperimentsTable.vue +142 -0
- package/app/components/aml/AmlInfraBanner.vue +23 -0
- package/app/components/aml/AmlJobsTable.vue +248 -0
- package/app/components/aml/AmlModelsTable.vue +173 -0
- package/app/components/aml/AmlOverviewBar.vue +62 -0
- package/app/components/aml/AmlPageHeader.vue +47 -0
- package/app/components/aml/AmlPredictConsole.vue +201 -0
- package/app/components/app-header/HeaderTools.vue +208 -0
- package/app/components/app-header/HitlBell.vue +423 -0
- package/app/components/app-header/TrailNav.vue +261 -0
- package/app/components/app-header/UserChip.vue +150 -0
- package/app/components/daq/DaqAddNodeModal.vue +209 -0
- package/app/components/daq/DaqAlarmBar.vue +46 -0
- package/app/components/daq/DaqControlCard.vue +159 -0
- package/app/components/daq/DaqDetailFramesTile.vue +139 -0
- package/app/components/daq/DaqDetailHistoryCard.vue +128 -0
- package/app/components/daq/DaqDetailLiveCard.vue +92 -0
- package/app/components/daq/DaqDetailParamForm.vue +350 -0
- package/app/components/daq/DaqInfraBanner.vue +31 -0
- package/app/components/daq/DaqLineBanner.vue +47 -0
- package/app/components/daq/DaqNodePanel.vue +396 -0
- package/app/components/daq/DaqOptPanel.vue +197 -0
- package/app/components/daq/DaqTemplateModal.vue +246 -0
- package/app/components/dashboard/DashboardFleetPanel.vue +228 -0
- package/app/components/dashboard/DashboardGaugeBand.vue +78 -0
- package/app/components/dashboard/DashboardHarnessPanel.vue +149 -0
- package/app/components/dashboard/DashboardHero.vue +209 -0
- package/app/components/dashboard/DashboardLineStatePanel.vue +78 -0
- package/app/components/dashboard/DashboardNodeStatePanel.vue +46 -0
- package/app/components/dashboard/DashboardPipelinePanel.vue +46 -0
- package/app/components/dashboard/DashboardTrendPanel.vue +83 -0
- package/app/components/dashboard/DashboardWritePanel.vue +52 -0
- package/app/components/dcw/DcwAddNodeModal.vue +328 -0
- package/app/components/dcw/DcwAdoptCard.vue +89 -0
- package/app/components/dcw/DcwCreateLineModal.vue +105 -0
- package/app/components/dcw/DcwDeleteLineModal.vue +73 -0
- package/app/components/dcw/DcwDetailHead.vue +65 -0
- package/app/components/dcw/DcwDetailTemplateModal.vue +238 -0
- package/app/components/dcw/DcwEditLineModal.vue +108 -0
- package/app/components/dcw/DcwGatewayBar.vue +94 -0
- package/app/components/dcw/DcwLedgerCard.vue +160 -0
- package/app/components/dcw/DcwLineCard.vue +117 -0
- package/app/components/dcw/DcwLineRunCard.vue +158 -0
- package/app/components/dcw/DcwNodesTable.vue +253 -0
- package/app/components/dcw/DcwProductCreateModal.vue +113 -0
- package/app/components/dcw/DcwQueryCard.vue +251 -0
- package/app/components/dcw/DcwRecipeEditModal.vue +285 -0
- package/app/components/dcw/DcwRecipeHistoryModal.vue +165 -0
- package/app/components/dcw/DcwRecipePanel.vue +367 -0
- package/app/components/dcw/DcwRunDataModal.vue +191 -0
- package/app/components/dcw/DcwTemplateModal.vue +227 -0
- package/app/components/dcw/DcwWriteHistoryCard.vue +96 -0
- package/app/components/logs/LogsEventTable.vue +309 -0
- package/app/components/logs/LogsFilterCard.vue +234 -0
- package/app/components/logs/LogsManualModal.vue +231 -0
- package/app/components/logs/LogsPageHead.vue +71 -0
- package/app/components/monitor/MonitorAgentTable.vue +143 -0
- package/app/components/monitor/MonitorChannelTable.vue +80 -0
- package/app/components/monitor/MonitorLoginGate.vue +24 -0
- package/app/components/monitor/MonitorPageHead.vue +92 -0
- package/app/components/monitor/MonitorProcessTable.vue +159 -0
- package/app/components/monitor/MonitorStatGrid.vue +165 -0
- package/app/components/settings/AppearancePane.vue +282 -0
- package/app/components/settings/PluginsSection.vue +280 -0
- package/app/components/settings/RuntimeFieldRow.vue +189 -0
- package/app/components/settings/RuntimeGroupSection.vue +290 -0
- package/app/components/settings/RuntimePane.vue +235 -0
- package/app/components/settings/SystemPane.vue +83 -0
- package/app/components/tokens/TokenCreateModal.vue +42 -0
- package/app/components/tokens/TokenOnceModal.vue +164 -0
- package/app/components/tokens/TokenRenameModal.vue +40 -0
- package/app/components/tokens/TokensAuthGate.vue +47 -0
- package/app/components/tokens/TokensPageHead.vue +76 -0
- package/app/components/tokens/TokensTable.vue +227 -0
- package/app/components/workshop/AgentLanesView.vue +35 -755
- package/app/components/workshop/ChannelSessionList.vue +58 -493
- package/app/components/workshop/ChatMemberPanel.vue +555 -0
- package/app/components/workshop/ChatTimeline.vue +569 -0
- package/app/components/workshop/CommandPalette.vue +1 -0
- package/app/components/workshop/Composer.vue +224 -511
- package/app/components/workshop/DeviceTwinPanel.vue +23 -499
- package/app/components/workshop/EventBlock.vue +20 -408
- package/app/components/workshop/MemoryPanel.vue +405 -364
- package/app/components/workshop/MultiChannelView.vue +189 -189
- package/app/components/workshop/NotificationCenter.vue +325 -0
- package/app/components/workshop/TaskBoardView.vue +260 -686
- package/app/components/workshop/TaskInspectorDrawer.vue +484 -390
- package/app/components/workshop/TranscriptTimeline.vue +60 -438
- package/app/components/workshop/agents/AgentTemplateEditModal.vue +139 -0
- package/app/components/workshop/agents/AgentTemplateTable.vue +269 -0
- package/app/components/workshop/agents/AgentTemplateToolbar.vue +67 -0
- package/app/components/workshop/blocks/ClusterRoute.vue +1 -1
- package/app/components/workshop/blocks/EventBlockAvatar.vue +114 -0
- package/app/components/workshop/blocks/EventBlockHead.vue +232 -0
- package/app/components/workshop/composer/ComposerToolbar.vue +278 -0
- package/app/components/workshop/composer/MentionMenu.vue +135 -0
- package/app/components/workshop/composer/ReplyChip.vue +65 -0
- package/app/components/workshop/composer/StatusChip.vue +171 -0
- package/app/components/workshop/console/CenterPane.vue +94 -0
- package/app/components/workshop/console/Dock.vue +71 -0
- package/app/components/workshop/console/LeftPane.vue +84 -0
- package/app/components/workshop/console/RightPane.vue +95 -0
- package/app/components/workshop/console/Topbar.vue +289 -0
- package/app/components/workshop/device-twin/DeviceTwinCard.vue +265 -0
- package/app/components/workshop/device-twin/DeviceTwinDcwSection.vue +203 -0
- package/app/components/workshop/lanes/AddMemberModal.vue +270 -0
- package/app/components/workshop/lanes/EditMemberModal.vue +106 -0
- package/app/components/workshop/lanes/LaneHeader.vue +432 -0
- package/app/components/workshop/lanes/LanesToolbar.vue +97 -0
- package/app/components/workshop/session-list/ChannelSettingsModal.vue +329 -0
- package/app/components/workshop/session-list/MountChannelModal.vue +124 -0
- package/app/components/workshop/session-list/SaveTemplateModal.vue +93 -0
- package/app/components/workshop/task-board/Card.vue +172 -0
- package/app/components/workshop/task-board/Column.vue +151 -0
- package/app/components/workshop/task-board/List.vue +157 -0
- package/app/components/workshop/task-board/StatusMenu.vue +88 -0
- package/app/components/workshop/teams/TeamAddMemberModal.vue +53 -0
- package/app/components/workshop/teams/TeamCard.vue +183 -0
- package/app/components/workshop/teams/TeamCreateModal.vue +94 -0
- package/app/components/workshop/teams/TeamDeployModal.vue +40 -0
- package/app/components/workshop/teams/TeamPluginModal.vue +119 -0
- package/app/components/workshop/terminal/OmpTerminalPanel.vue +19 -760
- package/app/components/workshop/terminal/TerminalHitlCard.vue +170 -0
- package/app/components/workshop/town/TownScene.ts +72 -961
- package/app/components/workshop/town/TownScene3D.ts +357 -4045
- package/app/components/workshop/town/TownView.vue +461 -7405
- package/app/components/workshop/town/components/TownAgentBindings.vue +380 -0
- package/app/components/workshop/town/components/TownAgentInspector.vue +546 -0
- package/app/components/workshop/town/components/TownAlarmList.vue +147 -0
- package/app/components/workshop/town/components/TownBoundaryPanel.vue +350 -0
- package/app/components/workshop/town/components/TownCalloutLayer.vue +147 -0
- package/app/components/workshop/town/components/TownChannelDock.vue +116 -0
- package/app/components/workshop/town/components/TownControlDock.vue +400 -0
- package/app/components/workshop/town/components/TownDaqNodeInspector.vue +345 -0
- package/app/components/workshop/town/components/TownDaqTree.vue +366 -0
- package/app/components/workshop/town/components/TownDcwBindSection.vue +473 -0
- package/app/components/workshop/town/components/TownDcwNodeInspector.vue +185 -0
- package/app/components/workshop/town/components/TownDcwTree.vue +280 -0
- package/app/components/workshop/town/components/TownDeviceBindings.vue +394 -0
- package/app/components/workshop/town/components/TownDeviceTransform.vue +248 -0
- package/app/components/workshop/town/components/TownEventList.vue +120 -0
- package/app/components/workshop/town/components/TownHealthBody.vue +100 -0
- package/app/components/workshop/town/components/TownKpiStrip.vue +207 -0
- package/app/components/workshop/town/components/TownLeftRail.vue +308 -0
- package/app/components/workshop/town/components/TownLoadingMask.vue +61 -0
- package/app/components/workshop/town/components/TownNavMap.vue +154 -0
- package/app/components/workshop/town/components/TownRightRail.vue +540 -0
- package/app/components/workshop/town/components/TownStage.vue +281 -0
- package/app/components/workshop/town/components/TownStageTop.vue +238 -0
- package/app/components/workshop/town/components/TownStatusBar.vue +108 -0
- package/app/components/workshop/town/components/TownTopNav.vue +367 -0
- package/app/components/workshop/town/components/TownTrendDock.vue +178 -0
- package/app/components/workshop/town/scene/town-scene-agents.ts +254 -0
- package/app/components/workshop/town/scene/town-scene-behavior.ts +194 -0
- package/app/components/workshop/town/scene/town-scene-bubbles.ts +96 -0
- package/app/components/workshop/town/scene/town-scene-core.ts +158 -0
- package/app/components/workshop/town/scene/town-scene-models.ts +109 -0
- package/app/components/workshop/town/scene/town-scene-visuals.ts +279 -0
- package/app/components/workshop/town/scene/town-scene3d-agents.ts +308 -0
- package/app/components/workshop/town/scene/town-scene3d-blocks.ts +297 -0
- package/app/components/workshop/town/scene/town-scene3d-bubbles.ts +281 -0
- package/app/components/workshop/town/scene/town-scene3d-camera.ts +282 -0
- package/app/components/workshop/town/scene/town-scene3d-devices.ts +433 -0
- package/app/components/workshop/town/scene/town-scene3d-editing.ts +490 -0
- package/app/components/workshop/town/scene/town-scene3d-events.ts +173 -0
- package/app/components/workshop/town/scene/town-scene3d-factory.ts +412 -0
- package/app/components/workshop/town/scene/town-scene3d-hud.ts +110 -0
- package/app/components/workshop/town/scene/town-scene3d-lifecycle.ts +144 -0
- package/app/components/workshop/town/scene/town-scene3d-links.ts +141 -0
- package/app/components/workshop/town/scene/town-scene3d-loop.ts +286 -0
- package/app/components/workshop/town/scene/town-scene3d-models.ts +154 -0
- package/app/components/workshop/town/scene/town-scene3d-nodes.ts +562 -0
- package/app/components/workshop/town/scene/town-scene3d-ranges.ts +273 -0
- package/app/components/workshop/town/scene/town-scene3d-renderer.ts +320 -0
- package/app/components/workshop/town/scene/town-scene3d-selection.ts +257 -0
- package/app/components/workshop/town/scene/town-scene3d-types.ts +264 -0
- package/app/components/workshop/transcript/TranscriptBlockList.vue +68 -0
- package/app/components/workshop/transcript/TranscriptEarlierPager.vue +81 -0
- package/app/components/workshop/transcript/TranscriptEmptyState.vue +153 -0
- package/app/components/workshop/transcript/TranscriptFilterBar.vue +126 -0
- package/app/components/workshop/workbench/AuthGate.vue +179 -0
- package/app/components/workshop/workbench/CreateWorkspaceModal.vue +36 -0
- package/app/components/workshop/workbench/WorkbenchHead.vue +129 -0
- package/app/components/workshop/workbench/WorkspaceCard.vue +198 -0
- package/app/components/workshop/workbench/WorkspaceEmpty.vue +56 -0
- package/app/composables/workshop/device-twin-types.ts +29 -0
- package/app/composables/workshop/event-blocks/attention.ts +58 -0
- package/app/composables/workshop/event-blocks/classify.ts +44 -0
- package/app/composables/workshop/event-blocks/clusterer.ts +231 -0
- package/app/composables/workshop/event-blocks/constants.ts +48 -0
- package/app/composables/workshop/event-blocks/fold-stream.ts +45 -0
- package/app/composables/workshop/event-blocks/markdown.ts +81 -0
- package/app/composables/workshop/event-blocks/mentions.ts +49 -0
- package/app/composables/workshop/event-blocks/text-utils.ts +100 -0
- package/app/composables/workshop/event-blocks/types.ts +40 -0
- package/app/composables/workshop/town/town-relay-props.ts +226 -0
- package/app/composables/workshop/town/town-view-types.ts +145 -0
- package/app/composables/workshop/town/useTownAgentBindings.ts +115 -0
- package/app/composables/workshop/town/useTownAgentChat.ts +203 -0
- package/app/composables/workshop/town/useTownAlarms.ts +36 -0
- package/app/composables/workshop/town/useTownCallouts.ts +174 -0
- package/app/composables/workshop/town/useTownChannels.ts +220 -0
- package/app/composables/workshop/town/useTownHealth.ts +66 -0
- package/app/composables/workshop/town/useTownHudTickers.ts +77 -0
- package/app/composables/workshop/town/useTownLayout.ts +277 -0
- package/app/composables/workshop/town/useTownNavMap.ts +301 -0
- package/app/composables/workshop/town/useTownNodeBindings.ts +345 -0
- package/app/composables/workshop/town/useTownPanelDrag.ts +91 -0
- package/app/composables/workshop/town/useTownRailData.ts +421 -0
- package/app/composables/workshop/town/useTownSceneControl.ts +92 -0
- package/app/composables/workshop/town/useTownSceneInput.ts +275 -0
- package/app/composables/workshop/town/useTownSceneRuntime.ts +390 -0
- package/app/composables/workshop/town/useTownSheets.ts +41 -0
- package/app/composables/workshop/town/useTownTrends.ts +93 -0
- package/app/composables/workshop/useChannelList.ts +88 -0
- package/app/composables/workshop/useChannelTerminals.ts +65 -0
- package/app/composables/workshop/useComposerMentions.ts +130 -0
- package/app/composables/workshop/useDeviceTwinDcwWrite.ts +77 -0
- package/app/composables/workshop/useDeviceTwinPanel.ts +56 -0
- package/app/composables/workshop/useEventBlockView.ts +159 -0
- package/app/composables/workshop/useEventBlocks.ts +33 -662
- package/app/composables/workshop/useHitlAnswer.ts +184 -0
- package/app/composables/workshop/useLaneWidths.ts +27 -0
- package/app/composables/workshop/useOmpTerminalSession.ts +424 -0
- package/app/composables/workshop/usePluginAdmin.ts +152 -0
- package/app/composables/workshop/useRuntimeConfigDraft.ts +118 -0
- package/app/composables/workshop/useSettingsGroups.ts +243 -0
- package/app/composables/workshop/useTaskBoardColumns.ts +47 -0
- package/app/composables/workshop/useTaskBoardDrag.ts +78 -0
- package/app/composables/workshop/useTaskBoardMenu.ts +60 -0
- package/app/composables/workshop/useTaskBoardTasks.ts +74 -0
- package/app/composables/workshop/useTerminalRenderer.ts +308 -0
- package/app/composables/workshop/useTranscriptEnterStage.ts +48 -0
- package/app/composables/workshop/useTranscriptHistory.ts +52 -0
- package/app/composables/workshop/useTranscriptScroll.ts +113 -0
- package/app/composables/workshop/useWorkshopApi.ts +85 -2
- package/app/composables/workshop/useWorkshopWs.ts +265 -126
- package/app/config/schema.ts +13 -0
- package/app/layouts/town.vue +21 -16
- package/app/pages/aml/api.ts +6 -0
- package/app/pages/aml/composables/useAmlDatasets.ts +38 -0
- package/app/pages/aml/composables/useAmlEntities.ts +57 -0
- package/app/pages/aml/composables/useAmlEnv.ts +191 -0
- package/app/pages/aml/composables/useAmlExperiments.ts +45 -0
- package/app/pages/aml/composables/useAmlFormat.ts +44 -0
- package/app/pages/aml/composables/useAmlJobs.ts +131 -0
- package/app/pages/aml/composables/useAmlModels.ts +56 -0
- package/app/pages/aml/composables/useAmlNotes.ts +47 -0
- package/app/pages/aml/composables/useAmlPredict.ts +93 -0
- package/app/pages/aml/constants.ts +63 -0
- package/app/pages/aml/index.vue +143 -2596
- package/app/pages/aml/styles.css +420 -0
- package/app/pages/aml/types.ts +189 -0
- package/app/pages/composables/useDashboardCharts.ts +192 -0
- package/app/pages/composables/useDashboardData.ts +144 -0
- package/app/pages/daq/[id].vue +59 -929
- package/app/pages/daq/composables/useDaqAddNode.ts +126 -0
- package/app/pages/daq/composables/useDaqDetailBinding.ts +29 -0
- package/app/pages/daq/composables/useDaqDetailFrames.ts +42 -0
- package/app/pages/daq/composables/useDaqDetailHistory.ts +199 -0
- package/app/pages/daq/composables/useDaqDetailNode.ts +53 -0
- package/app/pages/daq/composables/useDaqDetailParams.ts +138 -0
- package/app/pages/daq/composables/useDaqFilters.ts +187 -0
- package/app/pages/daq/composables/useDaqNodeWindow.ts +86 -0
- package/app/pages/daq/composables/useDaqOptimizations.ts +99 -0
- package/app/pages/daq/composables/useDaqTemplates.ts +152 -0
- package/app/pages/daq/daq-page.css +681 -0
- package/app/pages/daq/index.vue +132 -2188
- package/app/pages/dcw/[id].vue +297 -2615
- package/app/pages/dcw/composables/useDcwAddNode.ts +121 -0
- package/app/pages/dcw/composables/useDcwCards.ts +27 -0
- package/app/pages/dcw/composables/useDcwDetailScope.ts +145 -0
- package/app/pages/dcw/composables/useDcwDetailTemplates.ts +94 -0
- package/app/pages/dcw/composables/useDcwFilter.ts +29 -0
- package/app/pages/dcw/composables/useDcwLedger.ts +34 -0
- package/app/pages/dcw/composables/useDcwLineMutations.ts +115 -0
- package/app/pages/dcw/composables/useDcwLineRun.ts +60 -0
- package/app/pages/dcw/composables/useDcwProducts.ts +54 -0
- package/app/pages/dcw/composables/useDcwQuery.ts +68 -0
- package/app/pages/dcw/composables/useDcwQuickActions.ts +47 -0
- package/app/pages/dcw/composables/useDcwRecipes.ts +239 -0
- package/app/pages/dcw/composables/useDcwTemplates.ts +50 -0
- package/app/pages/dcw/composables/useDcwWrites.ts +81 -0
- package/app/pages/dcw/dcw-page.css +344 -0
- package/app/pages/dcw/index.vue +64 -986
- package/app/pages/dcw/types.ts +9 -0
- package/app/pages/index.vue +64 -925
- package/app/pages/logs/composables/useLogsFormat.ts +43 -0
- package/app/pages/logs/composables/useLogsManual.ts +63 -0
- package/app/pages/logs/composables/useLogsQuery.ts +52 -0
- package/app/pages/logs/composables/useLogsScope.ts +39 -0
- package/app/pages/logs/index.vue +57 -728
- package/app/pages/monitor/composables/useMonitorColumns.ts +69 -0
- package/app/pages/monitor/composables/useMonitorData.ts +124 -0
- package/app/pages/monitor/composables/useMonitorFormat.ts +39 -0
- package/app/pages/monitor/composables/useMonitorTerminal.ts +28 -0
- package/app/pages/monitor/types.ts +61 -0
- package/app/pages/monitor.vue +88 -658
- package/app/pages/permissions/index.vue +3 -2
- package/app/pages/plugins/index.vue +3 -2
- package/app/pages/settings.vue +7 -1403
- package/app/pages/tokens/composables/useTokenClipboard.ts +33 -0
- package/app/pages/tokens/composables/useTokenCreate.ts +93 -0
- package/app/pages/tokens/composables/useTokenRename.ts +54 -0
- package/app/pages/tokens/composables/useTokenReveal.ts +84 -0
- package/app/pages/tokens/composables/useTokensList.ts +60 -0
- package/app/pages/tokens.vue +79 -597
- package/app/pages/users.vue +5 -4
- package/app/pages/workshop/agents.vue +47 -529
- package/app/pages/workshop/composables/useAgentHarnessOptions.ts +59 -0
- package/app/pages/workshop/composables/useAgentTemplateActions.ts +42 -0
- package/app/pages/workshop/composables/useAgentTemplateDialogState.ts +24 -0
- package/app/pages/workshop/composables/useAgentTemplateForm.ts +88 -0
- package/app/pages/workshop/composables/useAgentTemplatesCatalog.ts +92 -0
- package/app/pages/workshop/composables/useTeamActions.ts +44 -0
- package/app/pages/workshop/composables/useTeamAddMemberDialog.ts +49 -0
- package/app/pages/workshop/composables/useTeamCreateDialog.ts +67 -0
- package/app/pages/workshop/composables/useTeamDeployDialog.ts +49 -0
- package/app/pages/workshop/composables/useTeamDialogState.ts +46 -0
- package/app/pages/workshop/composables/useTeamPluginDialog.ts +72 -0
- package/app/pages/workshop/composables/useTeamsCatalog.ts +100 -0
- package/app/pages/workshop/composables/useWorkbenchAuth.ts +125 -0
- package/app/pages/workshop/composables/useWorkbenchWorkspaces.ts +123 -0
- package/app/pages/workshop/composables/useWorkspaceAuth.ts +31 -0
- package/app/pages/workshop/composables/useWorkspaceChannels.ts +62 -0
- package/app/pages/workshop/composables/useWorkspacePanels.ts +56 -0
- package/app/pages/workshop/composables/useWorkspaceShell.ts +136 -0
- package/app/pages/workshop/index.vue +68 -620
- package/app/pages/workshop/schedules.vue +553 -0
- package/app/pages/workshop/teams.vue +58 -568
- package/app/pages/workshop/w/[wsId].vue +113 -596
- package/app/stores/workshop/chat.ts +434 -0
- package/app/stores/workshop/entities.ts +385 -283
- package/app/stores/workshop/events.ts +5 -4
- package/app/stores/workshop/hitl.ts +110 -7
- package/app/stores/workshop/narrow-fetch.ts +23 -0
- package/app/stores/workshop/notifications.ts +288 -0
- package/app/stores/workshop/user.ts +23 -10
- package/app/stores/workshop/workspaces.ts +12 -2
- package/config.yml +7 -1
- package/docs/aml.md +10 -0
- package/docs/cli.en.md +5 -5
- package/docs/cli.md +5 -5
- package/docs/full-test-plan.md +15 -1
- package/docs/plugins.en.md +1 -1
- package/docs/plugins.md +1 -1
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/i18n/dicts/dcwDetail.json +2 -0
- package/i18n/locales/en.ts +71 -0
- package/i18n/locales/zh-CN.ts +71 -0
- package/package.json +2 -3
- package/scripts/_audit/detached-instance.mjs +112 -0
- package/scripts/_audit/schedules-ui/schedules-page.png +0 -0
- package/scripts/_audit/schedules-ui/workspace-channel-tag.png +0 -0
- package/scripts/_audit/stubs/nuxt-imports.mjs +67 -0
- package/scripts/_audit/ts-register-hook.mjs +12 -0
- package/scripts/_audit/ts-resolve-hook.mjs +25 -5
- package/scripts/_audit/watchdog-recovery-test.mjs +24 -2
- package/scripts/_dbg-comm-verify.mjs +188 -0
- package/scripts/_dbg-full-feature-e2e.mjs +19 -11
- package/scripts/_dbg-im-e2e.mjs +169 -0
- package/scripts/_dbg-opt2-run.mjs +114 -0
- package/scripts/_dbg-opt2-setup.mjs +95 -0
- package/scripts/_dbg-param-map-e2e.ts +1 -1
- package/scripts/_dbg-param-map-rest-smoke.mjs +1 -1
- package/scripts/_dbg-real-scenario-e2e.mjs +246 -0
- package/scripts/_dbg-schedule-e2e.mjs +262 -0
- package/scripts/_dbg-schedule-ui-verify.mjs +115 -0
- package/scripts/_dbg-team-matrix.mjs +148 -0
- package/scripts/_dbg-ui-fullcrawl.mjs +91 -0
- package/scripts/_dbg-ui-static-audit.mjs +65 -0
- package/scripts/_dbg-write-lock-e2e.mjs +131 -0
- package/scripts/_probe-daq-omp-task.mjs +100 -0
- package/scripts/_probe-daq-scope-default.mjs +123 -0
- package/scripts/_probe-recipe-switch.mjs +92 -0
- package/scripts/_provision-injection-line.mjs +39 -0
- package/scripts/_run-matrix.ps1 +53 -0
- package/scripts/_run-real-injection-fifo-goals.mjs +367 -0
- package/scripts/acceptance-aml-db.ts +23 -0
- package/scripts/acceptance-aml-hybrid-live.mjs +94 -0
- package/scripts/acceptance-aml-hybrid-twin.ts +93 -0
- package/scripts/acceptance-hybrid-python.py +51 -0
- package/scripts/aml-ui-smoke.mjs +2 -0
- package/scripts/api-live-e2e.mjs +32 -7
- package/scripts/demo-group-chat-all-real.ts +279 -0
- package/scripts/demo-group-chat-omp-cases.ts +210 -0
- package/scripts/demo-group-chat-omp.ts +184 -0
- package/scripts/demo-group-chat-order.ts +197 -0
- package/scripts/e2e-agent-team.mjs +6 -4
- package/scripts/e2e-agentteam-chat.mjs +473 -0
- package/scripts/e2e-agentteam-real-triage.mjs +421 -0
- package/scripts/e2e-agentteam-task-flow-real.ts +443 -0
- package/scripts/e2e-aw-tui-global.mjs +8 -8
- package/scripts/e2e-channel-isolation.ts +5 -1
- package/scripts/e2e-closedloop/cleanup.mjs +27 -0
- package/scripts/e2e-closedloop/lib.mjs +109 -0
- package/scripts/e2e-closedloop/main.mjs +59 -0
- package/scripts/e2e-closedloop/scenarios-accounts.mjs +208 -0
- package/scripts/e2e-closedloop/scenarios-authz.mjs +190 -0
- package/scripts/e2e-closedloop/scenarios-daq-dcw.mjs +219 -0
- package/scripts/e2e-closedloop/scenarios-plugins.mjs +169 -0
- package/scripts/e2e-closedloop/state.mjs +10 -0
- package/scripts/e2e-crash-cycle.mjs +108 -0
- package/scripts/e2e-full-closedloop.mjs +6 -919
- package/scripts/e2e-hil-multi-user.mjs +307 -0
- package/scripts/e2e-hil-restart.mjs +339 -0
- package/scripts/e2e-hitl-live.mjs +336 -323
- package/scripts/e2e-lead-team-mgmt.ts +1 -1
- package/scripts/e2e-memory-system.ts +70 -89
- package/scripts/e2e-multiharness-team.mjs +32 -15
- package/scripts/e2e-omp-workspace.ts +21 -6
- package/scripts/e2e-parallel-execution.mjs +20 -6
- package/scripts/e2e-plc-plugin-closedloop.mjs +96 -65
- package/scripts/e2e-rest-memory.mjs +26 -11
- package/scripts/e2e-resume-crash.mjs +22 -7
- package/scripts/e2e-task-queue.ts +8 -8
- package/scripts/e2e-template-isolation.mjs +4 -2
- package/scripts/proof-omp-real.ts +189 -0
- package/scripts/real-injection-closed-loop.mjs +383 -0
- package/scripts/test-agent-runtime.ts +5 -1
- package/scripts/test-agentteam-guardrails.ts +113 -0
- package/scripts/test-agentteam-task-chat-flow.ts +420 -0
- package/scripts/test-agentteam-workflow.ts +472 -0
- package/scripts/test-collab-e2e.mjs +17 -3
- package/scripts/test-dcw-read.ts +9 -2
- package/scripts/test-event-persistence.mjs +10 -2
- package/scripts/test-full-system.ts +16 -3
- package/scripts/test-group-chat-hardening.ts +265 -0
- package/scripts/test-group-chat-unit/lib.ts +186 -0
- package/scripts/test-group-chat-unit/main.ts +45 -0
- package/scripts/test-group-chat-unit/section-a-migration.ts +75 -0
- package/scripts/test-group-chat-unit/section-b-permission-matrix.ts +88 -0
- package/scripts/test-group-chat-unit/section-c-member-lifecycle.ts +64 -0
- package/scripts/test-group-chat-unit/section-d-mention-resolution.ts +36 -0
- package/scripts/test-group-chat-unit/section-e-chat-facts.ts +97 -0
- package/scripts/test-group-chat-unit/section-f-user-notifications.ts +52 -0
- package/scripts/test-group-chat-unit/section-g-member-projection.ts +44 -0
- package/scripts/test-group-chat-unit/section-h-outbox-consistency.ts +30 -0
- package/scripts/test-group-chat-unit/section-i-read-idempotency.ts +24 -0
- package/scripts/test-group-chat-unit/section-j-permission-scope.ts +150 -0
- package/scripts/test-group-chat-unit.ts +35 -0
- package/scripts/test-hitl-decision.ts +526 -0
- package/scripts/test-hitl-legacy-channel-auth.ts +143 -0
- package/scripts/test-lane-history-live.mjs +30 -7
- package/scripts/test-memory-vector.ts +10 -0
- package/scripts/test-orchestration.ts +7 -2
- package/scripts/test-persistence-lazy.ts +7 -1
- package/scripts/test-prompt-system.mjs +46 -20
- package/scripts/test-route-reason.mjs +9 -2
- package/scripts/test-schedule-runtime.ts +309 -0
- package/scripts/test-scheduler-loop/lib.ts +321 -0
- package/scripts/test-scheduler-loop/main.ts +40 -0
- package/scripts/test-scheduler-loop/scenarios-modes.ts +95 -0
- package/scripts/test-scheduler-loop/scenarios-runtime.ts +58 -0
- package/scripts/test-scheduler-loop/scenarios-supervise.ts +183 -0
- package/scripts/test-scheduler-loop/scenarios-triage.ts +102 -0
- package/scripts/test-scheduler-loop.ts +5 -460
- package/scripts/test-supervision-watchdog.ts +105 -0
- package/scripts/test-task-engine.ts +27 -5
- package/scripts/test-task-lease-fencing.ts +154 -0
- package/scripts/test-terminal-e2e.mjs +9 -3
- package/scripts/three-system-e2e/lib.mjs +79 -0
- package/scripts/three-system-e2e/main.mjs +40 -0
- package/scripts/three-system-e2e/phases/phase-0-user-token.mjs +42 -0
- package/scripts/three-system-e2e/phases/phase-0a2-line-autoselect.mjs +35 -0
- package/scripts/three-system-e2e/phases/phase-0b-fixture-grants.mjs +39 -0
- package/scripts/three-system-e2e/phases/phase-0c-plugin-outbound-auth.mjs +95 -0
- package/scripts/three-system-e2e/phases/stage-1-health.mjs +47 -0
- package/scripts/three-system-e2e/phases/stage-2-5-team-plugins.mjs +84 -0
- package/scripts/three-system-e2e/phases/stage-2-teams-tools-hitl.mjs +184 -0
- package/scripts/three-system-e2e/phases/stage-3-diag.mjs +73 -0
- package/scripts/three-system-e2e/phases/stage-4-plugin-toggle.mjs +53 -0
- package/scripts/three-system-e2e/state.mjs +87 -0
- package/scripts/three-system-e2e.mjs +24 -646
- package/scripts/typecheck.mjs +75 -0
- package/scripts/ui/lib.mjs +14 -2
- package/scripts/ui/smoke-refactor.mjs +258 -0
- package/scripts/verify-a2a-live.mjs +15 -1
- package/scripts/verify-ws-events.mjs +19 -1
- package/server/api/system/monitor/terminal/ws.ts +51 -1
- package/server/api/workshop/agent-tools/approvals/[id]/decide.post.ts +59 -5
- package/server/api/workshop/agent-tools/approvals/index.get.ts +28 -3
- package/server/api/workshop/channel-templates/[id]/instantiate.post.ts +6 -1
- package/server/api/workshop/channels/[id]/chat/messages/[messageId]/read.post.ts +22 -0
- package/server/api/workshop/channels/[id]/chat/messages/index.get.ts +29 -0
- package/server/api/workshop/channels/[id]/chat/messages/index.post.ts +51 -0
- package/server/api/workshop/channels/[id]/chat/permissions.get.ts +35 -0
- package/server/api/workshop/channels/[id]/index.patch.ts +34 -8
- package/server/api/workshop/channels/[id]/members/[userId]/approve.post.ts +20 -0
- package/server/api/workshop/channels/[id]/members/[userId].delete.ts +21 -0
- package/server/api/workshop/channels/[id]/members/index.get.ts +23 -0
- package/server/api/workshop/channels/[id]/members/join.post.ts +30 -0
- package/server/api/workshop/channels/[id]/members/leave.post.ts +20 -0
- package/server/api/workshop/channels/[id]/messages/index.post.ts +3 -0
- package/server/api/workshop/channels/[id]/tasks/index.post.ts +8 -0
- package/server/api/workshop/channels.get.ts +21 -1
- package/server/api/workshop/hitl/pending.get.ts +27 -7
- package/server/api/workshop/hitl/respond.post.ts +86 -89
- package/server/api/workshop/notifications/index.get.ts +60 -0
- package/server/api/workshop/notifications/read.post.ts +31 -0
- package/server/api/workshop/schedules/[id]/run.post.ts +15 -0
- package/server/api/workshop/schedules/[id]/runs.get.ts +15 -0
- package/server/api/workshop/schedules/[id].delete.ts +14 -0
- package/server/api/workshop/schedules/[id].get.ts +13 -0
- package/server/api/workshop/schedules/[id].patch.ts +29 -0
- package/server/api/workshop/schedules/index.get.ts +12 -0
- package/server/api/workshop/schedules/index.post.ts +32 -0
- package/server/api/workshop/tasks/[id]/reassign.post.ts +32 -0
- package/server/api/workshop/tasks/[id]/update.post.ts +35 -0
- package/server/api/workshop/tasks/[id].get.ts +15 -6
- package/server/api/workshop/ws/audience.ts +56 -0
- package/server/api/workshop/ws/db-buffer.ts +68 -0
- package/server/api/workshop/ws/event-mapping.ts +47 -0
- package/server/api/workshop/ws/handlers.ts +132 -0
- package/server/api/workshop/ws/hub.ts +133 -0
- package/server/api/workshop/ws/index.ts +23 -0
- package/server/api/workshop/ws/notification-uplink.ts +77 -0
- package/server/api/workshop/ws/peer-sub.ts +128 -0
- package/server/api/workshop/ws/publish.ts +122 -0
- package/server/api/workshop/ws/shared.ts +94 -0
- package/server/api/workshop/ws/streams.ts +146 -0
- package/server/api/workshop/ws/subscriptions.ts +137 -0
- package/server/plugins/workshop.ts +30 -0
- package/server/plugins-builtin/diag-bridge/host/constants.mjs +25 -0
- package/server/plugins-builtin/diag-bridge/host/diagnosis.mjs +56 -0
- package/server/plugins-builtin/diag-bridge/host/helpers.mjs +126 -0
- package/server/plugins-builtin/diag-bridge/host/index.mjs +15 -0
- package/server/plugins-builtin/diag-bridge/host/plugin.mjs +296 -0
- package/server/plugins-builtin/diag-bridge/host/snapshot.mjs +93 -0
- package/server/plugins-builtin/diag-bridge/host/sweep.mjs +51 -0
- package/server/plugins-builtin/diag-bridge/index.mjs +6 -605
- package/server/repositories/user.repository.ts +13 -0
- package/server/services/system-config/contracts.ts +29 -0
- package/server/services/system-config/dispose.ts +19 -0
- package/server/services/system-config/facade.ts +26 -0
- package/server/services/system-config/groups.ts +108 -0
- package/server/services/system-config/helpers.ts +41 -0
- package/server/services/system-config/index.ts +21 -0
- package/server/services/system-config/init.ts +26 -0
- package/server/services/system-config/mutate.ts +103 -0
- package/server/services/system-config/plugins.ts +104 -0
- package/server/services/system-config/recompute.ts +66 -0
- package/server/services/system-config/snapshot.ts +59 -0
- package/server/services/system-config/state.ts +79 -0
- package/server/services/system-config/types.ts +58 -0
- package/server/services/workshop/agents/adapters/line-spawn.ts +2 -2
- package/server/services/workshop/agents/adapters/omp-rpc-client/api.ts +111 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/contracts.ts +22 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/facade.ts +7 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/frames.ts +111 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/helpers.ts +38 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/index.ts +25 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/start.ts +70 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/state.ts +65 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/stdout.ts +92 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/types.ts +115 -0
- package/server/services/workshop/agents/adapters/omp-rpc-client/usage.ts +47 -0
- package/server/services/workshop/agents/agent-interface.ts +52 -4
- package/server/services/workshop/agents/base-agent.ts +36 -8
- package/server/services/workshop/agents/claude-agent.ts +5 -0
- package/server/services/workshop/agents/codex-agent/client.ts +170 -0
- package/server/services/workshop/agents/codex-agent/core.ts +119 -0
- package/server/services/workshop/agents/codex-agent/facade.ts +8 -0
- package/server/services/workshop/agents/codex-agent/helpers.ts +13 -0
- package/server/services/workshop/agents/codex-agent/hitl.ts +138 -0
- package/server/services/workshop/agents/codex-agent/index.ts +14 -0
- package/server/services/workshop/agents/codex-agent/turn.ts +367 -0
- package/server/services/workshop/agents/codex-agent/types.ts +42 -0
- package/server/services/workshop/agents/dsh-agent.ts +5 -0
- package/server/services/workshop/agents/harness-availability.ts +127 -127
- package/server/services/workshop/agents/harness-terminal/api.ts +197 -0
- package/server/services/workshop/agents/harness-terminal/index.ts +17 -0
- package/server/services/workshop/agents/harness-terminal/io.ts +120 -0
- package/server/services/workshop/agents/harness-terminal/park.ts +55 -0
- package/server/services/workshop/agents/harness-terminal/sanitize.ts +98 -0
- package/server/services/workshop/agents/harness-terminal/session.ts +124 -0
- package/server/services/workshop/agents/harness-terminal/shared.ts +74 -0
- package/server/services/workshop/agents/hermes-agent.ts +5 -0
- package/server/services/workshop/agents/hitl-capabilities.ts +312 -0
- package/server/services/workshop/agents/hitl-decision/answers.ts +27 -0
- package/server/services/workshop/agents/hitl-decision/decide.ts +268 -0
- package/server/services/workshop/agents/hitl-decision/dispatcher.ts +81 -0
- package/server/services/workshop/agents/hitl-decision/index.ts +24 -0
- package/server/services/workshop/agents/hitl-decision/payload.ts +45 -0
- package/server/services/workshop/agents/hitl-decision/reconcile.ts +70 -0
- package/server/services/workshop/agents/hitl-decision/shared.ts +106 -0
- package/server/services/workshop/agents/hitl-decision/visibility.ts +94 -0
- package/server/services/workshop/agents/hitl-registry.ts +403 -7
- package/server/services/workshop/agents/host-tool-bridge/catalog.ts +78 -0
- package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +167 -0
- package/server/services/workshop/agents/host-tool-bridge/index.ts +15 -0
- package/server/services/workshop/agents/host-tool-bridge/session.ts +22 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/industrial.ts +64 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/memory.ts +44 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/messaging.ts +182 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/progress.ts +84 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/tasks.ts +120 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/team.ts +70 -0
- package/server/services/workshop/agents/host-tool-bridge/types.ts +31 -0
- package/server/services/workshop/agents/industrial/aml-dataset-tools.ts +276 -0
- package/server/services/workshop/agents/industrial/aml-job-tools.ts +363 -0
- package/server/services/workshop/agents/industrial/daq-tools.ts +251 -0
- package/server/services/workshop/agents/industrial/dcw-judge-tools.ts +153 -0
- package/server/services/workshop/agents/industrial/dcw-tools.ts +213 -0
- package/server/services/workshop/agents/industrial/index.ts +24 -0
- package/server/services/workshop/agents/industrial/ops-tools.ts +382 -0
- package/server/services/workshop/agents/industrial/param-tools.ts +172 -0
- package/server/services/workshop/agents/industrial/twin-tools.ts +175 -0
- package/server/services/workshop/agents/mock-agent.ts +136 -12
- package/server/services/workshop/agents/omp-agent/client.ts +116 -0
- package/server/services/workshop/agents/omp-agent/context-governance.ts +204 -0
- package/server/services/workshop/agents/omp-agent/core.ts +146 -0
- package/server/services/workshop/agents/omp-agent/event-mapping.ts +142 -0
- package/server/services/workshop/agents/omp-agent/facade.ts +8 -0
- package/server/services/workshop/agents/omp-agent/helpers.ts +37 -0
- package/server/services/workshop/agents/omp-agent/index.ts +16 -0
- package/server/services/workshop/agents/omp-agent/lifecycle.ts +80 -0
- package/server/services/workshop/agents/omp-agent/tools-steer.ts +487 -0
- package/server/services/workshop/agents/omp-agent/types.ts +45 -0
- package/server/services/workshop/agents/opencode-agent/core.ts +77 -0
- package/server/services/workshop/agents/opencode-agent/engine-agnostic.ts +274 -0
- package/server/services/workshop/agents/opencode-agent/facade.ts +8 -0
- package/server/services/workshop/agents/opencode-agent/helpers.ts +29 -0
- package/server/services/workshop/agents/opencode-agent/hitl.ts +113 -0
- package/server/services/workshop/agents/opencode-agent/index.ts +16 -0
- package/server/services/workshop/agents/opencode-agent/lifecycle.ts +44 -0
- package/server/services/workshop/agents/opencode-agent/server.ts +244 -0
- package/server/services/workshop/agents/opencode-agent/turn.ts +278 -0
- package/server/services/workshop/agents/opencode-agent/types.ts +54 -0
- package/server/services/workshop/agents/prompt-builder.ts +16 -6
- package/server/services/workshop/agents/qwen-agent.ts +6 -2
- package/server/services/workshop/agents/registry.ts +32 -2
- package/server/services/workshop/aml/job-orchestrator/broadcast.ts +37 -0
- package/server/services/workshop/aml/job-orchestrator/control.ts +94 -0
- package/server/services/workshop/aml/job-orchestrator/failure.ts +77 -0
- package/server/services/workshop/aml/job-orchestrator/index.ts +22 -0
- package/server/services/workshop/aml/job-orchestrator/process.ts +100 -0
- package/server/services/workshop/aml/job-orchestrator/shared.ts +51 -0
- package/server/services/workshop/aml/job-orchestrator/stages.ts +96 -0
- package/server/services/workshop/aml/job-orchestrator/start-job.ts +124 -0
- package/server/services/workshop/aml/job-orchestrator/status.ts +20 -0
- package/server/services/workshop/aml/job-orchestrator/submit.ts +120 -0
- package/server/services/workshop/aml/job-orchestrator/tick.ts +37 -0
- package/server/services/workshop/aml/python/amlkit.py +185 -120
- package/server/services/workshop/aml/python/requirements.txt +9 -7
- package/server/services/workshop/aml/python/train-hybrid-example.py +87 -0
- package/server/services/workshop/aml/twin/acceptance.ts +68 -0
- package/server/services/workshop/aml/twin/calibration-scheduler.ts +48 -0
- package/server/services/workshop/aml/twin/channel-profile.ts +43 -0
- package/server/services/workshop/aml/twin/contracts.ts +215 -0
- package/server/services/workshop/aml/twin/physics-runtime.ts +165 -0
- package/server/services/workshop/aml/twin/repo.ts +26 -0
- package/server/services/workshop/aml/twin/snapshot-service.ts +81 -0
- package/server/services/workshop/aml/twin/trial-service.ts +89 -0
- package/server/services/workshop/aml/twin/uq-ood.ts +66 -0
- package/server/services/workshop/daq/daq-controller/contracts.ts +39 -0
- package/server/services/workshop/daq/daq-controller/crud.ts +202 -0
- package/server/services/workshop/daq/daq-controller/driver-probe.ts +64 -0
- package/server/services/workshop/daq/daq-controller/facade.ts +28 -0
- package/server/services/workshop/daq/daq-controller/frames.ts +137 -0
- package/server/services/workshop/daq/daq-controller/helpers.ts +52 -0
- package/server/services/workshop/daq/daq-controller/index.ts +22 -0
- package/server/services/workshop/daq/daq-controller/ingest.ts +189 -0
- package/server/services/workshop/daq/daq-controller/runtime-control.ts +72 -0
- package/server/services/workshop/daq/daq-controller/state.ts +194 -0
- package/server/services/workshop/daq/daq-controller/sweep-alarms.ts +164 -0
- package/server/services/workshop/daq/daq-controller/tsdb-twin.ts +138 -0
- package/server/services/workshop/daq/daq-controller/types.ts +68 -0
- package/server/services/workshop/daq/daq-controller/views.ts +84 -0
- package/server/services/workshop/daq/drivers/http.ts +95 -0
- package/server/services/workshop/daq/drivers/index.ts +29 -0
- package/server/services/workshop/daq/drivers/mock.ts +130 -0
- package/server/services/workshop/daq/drivers/modbus-rtu.ts +67 -0
- package/server/services/workshop/daq/drivers/modbus-tcp.ts +307 -0
- package/server/services/workshop/daq/drivers/mqtt.ts +182 -0
- package/server/services/workshop/daq/drivers/opcua.ts +227 -0
- package/server/services/workshop/daq/drivers/registry.ts +144 -0
- package/server/services/workshop/daq/drivers/s7-stub.ts +29 -0
- package/server/services/workshop/daq/drivers/shared.ts +60 -0
- package/server/services/workshop/db/channel-member.repo.ts +122 -0
- package/server/services/workshop/db/channel.repo.ts +93 -8
- package/server/services/workshop/db/chat-message.repo.ts +233 -0
- package/server/services/workshop/db/database/index.ts +18 -0
- package/server/services/workshop/db/database/json.ts +14 -0
- package/server/services/workshop/db/database/migrations.ts +367 -0
- package/server/services/workshop/db/database/open.ts +76 -0
- package/server/services/workshop/db/database/rows.ts +374 -0
- package/server/services/workshop/db/database/schema.ts +651 -0
- package/server/services/workshop/db/database/seed-data.ts +60 -0
- package/server/services/workshop/db/database/seed.ts +145 -0
- package/server/services/workshop/db/hitl-request.repo.ts +221 -0
- package/server/services/workshop/db/notification.repo.ts +199 -0
- package/server/services/workshop/db/outbox.repo.ts +127 -0
- package/server/services/workshop/db/scheduled-task.repo.ts +235 -0
- package/server/services/workshop/db/schema.sql +185 -0
- package/server/services/workshop/db/task.repo.ts +185 -69
- package/server/services/workshop/db/transaction.ts +72 -0
- package/server/services/workshop/dcw/dcw-controller/actuation.ts +127 -0
- package/server/services/workshop/dcw/dcw-controller/bindings.ts +83 -0
- package/server/services/workshop/dcw/dcw-controller/contracts.ts +16 -0
- package/server/services/workshop/dcw/dcw-controller/control.ts +78 -0
- package/server/services/workshop/dcw/dcw-controller/crud.ts +152 -0
- package/server/services/workshop/dcw/dcw-controller/facade.ts +19 -0
- package/server/services/workshop/dcw/dcw-controller/helpers.ts +57 -0
- package/server/services/workshop/dcw/dcw-controller/index.ts +22 -0
- package/server/services/workshop/dcw/dcw-controller/lines.ts +213 -0
- package/server/services/workshop/dcw/dcw-controller/params.ts +97 -0
- package/server/services/workshop/dcw/dcw-controller/products.ts +103 -0
- package/server/services/workshop/dcw/dcw-controller/recipes.ts +137 -0
- package/server/services/workshop/dcw/dcw-controller/state.ts +66 -0
- package/server/services/workshop/dcw/dcw-controller/types.ts +57 -0
- package/server/services/workshop/dcw/dcw-controller/write.ts +147 -0
- package/server/services/workshop/dcw/dcw-node.ts +8 -0
- package/server/services/workshop/dcw/drivers/http.ts +66 -0
- package/server/services/workshop/dcw/drivers/index.ts +26 -0
- package/server/services/workshop/dcw/drivers/mock.ts +44 -0
- package/server/services/workshop/dcw/drivers/modbus-rtu.ts +93 -0
- package/server/services/workshop/dcw/drivers/modbus.ts +139 -0
- package/server/services/workshop/dcw/drivers/mqtt.ts +108 -0
- package/server/services/workshop/dcw/drivers/opcua.ts +110 -0
- package/server/services/workshop/dcw/drivers/registry.ts +118 -0
- package/server/services/workshop/dcw/drivers/shared.ts +113 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/contracts.ts +26 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/facade.ts +13 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/helpers.ts +30 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/index.ts +17 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/internal.ts +33 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/judge.ts +52 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/lock.ts +137 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/rollback.ts +190 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/state.ts +21 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/sweep.ts +77 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/types.ts +3 -0
- package/server/services/workshop/dcw/recipe-rollback-manager/views.ts +214 -0
- package/server/services/workshop/plugins/host/api.mjs +90 -0
- package/server/services/workshop/plugins/host/config.mjs +135 -0
- package/server/services/workshop/plugins/host/index.mjs +23 -0
- package/server/services/workshop/plugins/host/init.mjs +101 -0
- package/server/services/workshop/plugins/host/load.mjs +321 -0
- package/server/services/workshop/plugins/host/reload.mjs +94 -0
- package/server/services/workshop/plugins/host/rollback.mjs +72 -0
- package/server/services/workshop/plugins/host/services.mjs +58 -0
- package/server/services/workshop/plugins/host/state.mjs +54 -0
- package/server/services/workshop/plugins/host/toggle.mjs +64 -0
- package/server/services/workshop/plugins/host.mjs +6 -890
- package/server/services/workshop/runtime/agent-runtime/contracts.ts +25 -0
- package/server/services/workshop/runtime/agent-runtime/facade.ts +7 -0
- package/server/services/workshop/runtime/agent-runtime/helpers.ts +18 -0
- package/server/services/workshop/runtime/agent-runtime/index.ts +19 -0
- package/server/services/workshop/runtime/agent-runtime/lifecycle.ts +119 -0
- package/server/services/workshop/runtime/agent-runtime/message.ts +409 -0
- package/server/services/workshop/runtime/agent-runtime/state.ts +371 -0
- package/server/services/workshop/runtime/agent-runtime/supervise.ts +188 -0
- package/server/services/workshop/runtime/agent-runtime/types.ts +186 -0
- package/server/services/workshop/runtime/channel-runtime.ts +7 -0
- package/server/services/workshop/runtime/chat-mention.ts +164 -0
- package/server/services/workshop/runtime/chat-projection.ts +246 -0
- package/server/services/workshop/runtime/execution-mode.ts +11 -2
- package/server/services/workshop/runtime/manager/a2a.ts +283 -0
- package/server/services/workshop/runtime/manager/access.ts +483 -0
- package/server/services/workshop/runtime/manager/admin-agents.ts +268 -0
- package/server/services/workshop/runtime/manager/admin-channel.ts +276 -0
- package/server/services/workshop/runtime/manager/bus.ts +182 -0
- package/server/services/workshop/runtime/manager/channel-templates.ts +171 -0
- package/server/services/workshop/runtime/manager/chat-reply.ts +181 -0
- package/server/services/workshop/runtime/manager/chat.ts +384 -0
- package/server/services/workshop/runtime/manager/contracts.ts +210 -0
- package/server/services/workshop/runtime/manager/facade.ts +24 -0
- package/server/services/workshop/runtime/manager/helpers.ts +119 -0
- package/server/services/workshop/runtime/manager/host-tools.ts +249 -0
- package/server/services/workshop/runtime/manager/index.ts +42 -0
- package/server/services/workshop/runtime/manager/internal.ts +73 -0
- package/server/services/workshop/runtime/manager/lead-team.ts +161 -0
- package/server/services/workshop/runtime/manager/notifications.ts +108 -0
- package/server/services/workshop/runtime/manager/runtime-observe.ts +300 -0
- package/server/services/workshop/runtime/manager/runtime-wiring.ts +307 -0
- package/server/services/workshop/runtime/manager/schedules.ts +302 -0
- package/server/services/workshop/runtime/manager/state.ts +644 -0
- package/server/services/workshop/runtime/manager/tasks.ts +518 -0
- package/server/services/workshop/runtime/manager/teams.ts +148 -0
- package/server/services/workshop/runtime/manager/types.ts +245 -0
- package/server/services/workshop/runtime/manager/workspace.ts +136 -0
- package/server/services/workshop/runtime/memory/contracts.ts +18 -0
- package/server/services/workshop/runtime/memory/facade.ts +10 -0
- package/server/services/workshop/runtime/memory/governance.ts +184 -0
- package/server/services/workshop/runtime/memory/helpers.ts +196 -0
- package/server/services/workshop/runtime/memory/index.ts +27 -0
- package/server/services/workshop/runtime/memory/recall.ts +216 -0
- package/server/services/workshop/runtime/memory/score.ts +33 -0
- package/server/services/workshop/runtime/memory/state.ts +40 -0
- package/server/services/workshop/runtime/memory/types.ts +44 -0
- package/server/services/workshop/runtime/memory/write.ts +93 -0
- package/server/services/workshop/runtime/permission-scope.ts +81 -0
- package/server/services/workshop/runtime/schedule-runtime.ts +320 -0
- package/server/services/workshop/runtime/scheduler-loop/contracts.ts +29 -0
- package/server/services/workshop/runtime/scheduler-loop/execute.ts +295 -0
- package/server/services/workshop/runtime/scheduler-loop/facade.ts +7 -0
- package/server/services/workshop/runtime/scheduler-loop/helpers.ts +14 -0
- package/server/services/workshop/runtime/scheduler-loop/index.ts +16 -0
- package/server/services/workshop/runtime/scheduler-loop/rules.ts +131 -0
- package/server/services/workshop/runtime/scheduler-loop/snapshot.ts +99 -0
- package/server/services/workshop/runtime/scheduler-loop/state.ts +150 -0
- package/server/services/workshop/runtime/scheduler-loop/tick.ts +157 -0
- package/server/services/workshop/runtime/scheduler-loop/types.ts +50 -0
- package/server/services/workshop/runtime/task-engine/contracts.ts +16 -0
- package/server/services/workshop/runtime/task-engine/create.ts +145 -0
- package/server/services/workshop/runtime/task-engine/facade.ts +7 -0
- package/server/services/workshop/runtime/task-engine/helpers.ts +87 -0
- package/server/services/workshop/runtime/task-engine/index.ts +15 -0
- package/server/services/workshop/runtime/task-engine/lease.ts +79 -0
- package/server/services/workshop/runtime/task-engine/lifecycle.ts +308 -0
- package/server/services/workshop/runtime/task-engine/policy.ts +113 -0
- package/server/services/workshop/runtime/task-engine/transition.ts +146 -0
- package/server/services/workshop/runtime/task-engine/types.ts +3 -0
- package/server/services/workshop/runtime/task-engine/update.ts +116 -0
- package/server/services/workshop/runtime/task-engine/views.ts +169 -0
- package/server/services/workshop/runtime/user-notification-hub.ts +192 -0
- package/server/services/workshop/settings.ts +32 -0
- package/server/services/workshop/types/task.ts +85 -0
- package/server/utils/errors.ts +2 -0
- package/server/utils/mojibake-guard.ts +29 -0
- package/shared/config/schema.json +12 -0
- package/shared/dcw-protocol/catalog.ts +203 -0
- package/shared/dcw-protocol/closed-loop.ts +137 -0
- package/shared/dcw-protocol/index.ts +19 -0
- package/shared/dcw-protocol/line.ts +131 -0
- package/shared/dcw-protocol/recipe.ts +301 -0
- package/shared/workshop-protocol.ts +327 -5
- package/tui/aw-tui.mjs +27 -6
- package/tui/lib/pickers.mjs +21 -2
- package/.output/public/_nuxt/4sIEbgcl.js +0 -42
- package/.output/public/_nuxt/B7gZokg82.js +0 -209
- package/.output/public/_nuxt/B8uy9iRW.js +0 -1
- package/.output/public/_nuxt/BC9wjTJK2.js +0 -4
- package/.output/public/_nuxt/BCGafdXT.js +0 -2
- package/.output/public/_nuxt/BDmh31hl.js +0 -1
- package/.output/public/_nuxt/BFjGV-RV2.js +0 -4108
- package/.output/public/_nuxt/BGTYYQH-.js +0 -1
- package/.output/public/_nuxt/BHA40aHa.js +0 -1
- package/.output/public/_nuxt/BJHKLJJU.js +0 -1
- package/.output/public/_nuxt/BN6iuJEg2.js +0 -1
- package/.output/public/_nuxt/BU83-NnX.js +0 -106
- package/.output/public/_nuxt/BUmHEJ77.js +0 -2
- package/.output/public/_nuxt/BY7YrV_D.js +0 -1
- package/.output/public/_nuxt/BYhEUx8t.js +0 -17
- package/.output/public/_nuxt/BneN7fbu.js +0 -75
- package/.output/public/_nuxt/Bqcgz95s.js +0 -18
- package/.output/public/_nuxt/C3J6FYKa.js +0 -1
- package/.output/public/_nuxt/C3gwHTz0.js +0 -1
- package/.output/public/_nuxt/C4DWUZ6d2.js +0 -1
- package/.output/public/_nuxt/C7UlqPeD.js +0 -1
- package/.output/public/_nuxt/CClOy-Hz2.js +0 -1
- package/.output/public/_nuxt/CFxtLwjp.js +0 -1
- package/.output/public/_nuxt/CS50LB_l.js +0 -1
- package/.output/public/_nuxt/CSkxz2NX.js +0 -3
- package/.output/public/_nuxt/CTmDn-YP.js +0 -1
- package/.output/public/_nuxt/CWoJjWmZ.js +0 -1
- package/.output/public/_nuxt/CYWVXZTS2.js +0 -7
- package/.output/public/_nuxt/C__m4EhR.js +0 -1
- package/.output/public/_nuxt/CoNpEq5X.js +0 -1
- package/.output/public/_nuxt/Crod5z2f.js +0 -1
- package/.output/public/_nuxt/Cs8pVeVG.js +0 -1
- package/.output/public/_nuxt/CssgYAAL2.js +0 -1
- package/.output/public/_nuxt/CzlMDL5H.js +0 -13
- package/.output/public/_nuxt/D0ZBQrN_2.js +0 -1
- package/.output/public/_nuxt/D6uzXueg.js +0 -2
- package/.output/public/_nuxt/D98NH8kG.js +0 -1
- package/.output/public/_nuxt/D9Oidm5I.js +0 -1
- package/.output/public/_nuxt/DBHNsT1Y.js +0 -23
- package/.output/public/_nuxt/DDgJcSET.js +0 -19
- package/.output/public/_nuxt/DGIuvyRN2.js +0 -1
- package/.output/public/_nuxt/DGj-WEBg.js +0 -1
- package/.output/public/_nuxt/DHFrCUxA2.js +0 -13
- package/.output/public/_nuxt/DIaZ2PTo2.js +0 -1
- package/.output/public/_nuxt/DKySmNPI.js +0 -14
- package/.output/public/_nuxt/DPnwL14Y.js +0 -1
- package/.output/public/_nuxt/DR12_WCA.js +0 -3
- package/.output/public/_nuxt/DTFCy6h-.js +0 -1
- package/.output/public/_nuxt/DYr1VMiQ.js +0 -6
- package/.output/public/_nuxt/DZtm4l-P2.js +0 -1
- package/.output/public/_nuxt/DdD9mCHM.js +0 -1
- package/.output/public/_nuxt/DeyBFhKH2.js +0 -4
- package/.output/public/_nuxt/Di0NY_ht.js +0 -1
- package/.output/public/_nuxt/DkGQ7lnb2.js +0 -1
- package/.output/public/_nuxt/DtYHUi5Z.js +0 -1
- package/.output/public/_nuxt/Dz_Q3Lpw2.js +0 -1
- package/.output/public/_nuxt/DzbFpZRk.js +0 -3
- package/.output/public/_nuxt/EHlEMRii.js +0 -1
- package/.output/public/_nuxt/Eke1fs-U.js +0 -1
- package/.output/public/_nuxt/H0BcqZtT.js +0 -9
- package/.output/public/_nuxt/HSYEkkce.js +0 -1
- package/.output/public/_nuxt/IREZ1eC2.js +0 -1
- package/.output/public/_nuxt/J9oU00D1.js +0 -1
- package/.output/public/_nuxt/JCoYF4IJ.js +0 -31
- package/.output/public/_nuxt/JTLM-kqr2.js +0 -1
- package/.output/public/_nuxt/KZQX7xoM.js +0 -3
- package/.output/public/_nuxt/OmpTerminalPanel.BxR5-lvi.css +0 -1
- package/.output/public/_nuxt/RYFtK4qZ2.js +0 -1
- package/.output/public/_nuxt/SSyAPaHc.js +0 -1
- package/.output/public/_nuxt/TownView.li4EMQxK.css +0 -1
- package/.output/public/_nuxt/VdLk4jLE2.js +0 -1
- package/.output/public/_nuxt/YnQxK3eG.js +0 -1
- package/.output/public/_nuxt/_id_.BhsXoEuk.css +0 -1
- package/.output/public/_nuxt/_id_.DQyj-WKN.css +0 -1
- package/.output/public/_nuxt/_wsId_.CTx-BlfF.css +0 -1
- package/.output/public/_nuxt/aLLjF2K-2.js +0 -1
- package/.output/public/_nuxt/aShsv_rG.js +0 -19
- package/.output/public/_nuxt/aWWIh8YL.js +0 -24
- package/.output/public/_nuxt/aesgXKSr.js +0 -4
- package/.output/public/_nuxt/agents.B21nUEUX.css +0 -1
- package/.output/public/_nuxt/aml.ekTjxFkf.css +0 -1
- package/.output/public/_nuxt/builds/meta/b5506ef0-f48e-4f14-a6c0-d65e505d0b09.json +0 -1
- package/.output/public/_nuxt/ca4TJ3Op.js +0 -1
- package/.output/public/_nuxt/daq.BdVmoIfe.css +0 -1
- package/.output/public/_nuxt/dcw.DCgyzpWV.css +0 -1
- package/.output/public/_nuxt/default.Bh3L2HU8.css +0 -1
- package/.output/public/_nuxt/entry.bdm0tv6M.css +0 -1
- package/.output/public/_nuxt/jZsY8yYz.js +0 -1
- package/.output/public/_nuxt/lHAxdSsj.js +0 -1
- package/.output/public/_nuxt/logs.BpKzmKsh.css +0 -1
- package/.output/public/_nuxt/monitor.D9pe7qN6.css +0 -1
- package/.output/public/_nuxt/pages.j9rzRocr.css +0 -1
- package/.output/public/_nuxt/pdk8jLGT.js +0 -1
- package/.output/public/_nuxt/permissions.DwTVlFe6.css +0 -1
- package/.output/public/_nuxt/plugins.DhiZbHU8.css +0 -1
- package/.output/public/_nuxt/settings.BRx9rIDg.css +0 -1
- package/.output/public/_nuxt/teams.BLlOPB_Z.css +0 -1
- package/.output/public/_nuxt/tokens.De8xzszn.css +0 -1
- package/.output/public/_nuxt/town.BLrD9-WH.css +0 -1
- package/.output/public/_nuxt/users.DLgZ1D0h.css +0 -1
- package/.output/public/_nuxt/vRTjoWqd.js +0 -1
- package/.output/public/_nuxt/workshop.D1jFNkrn.css +0 -1
- package/.output/public/_nuxt/xh3_vYcu.js +0 -1
- package/.output/public/_nuxt/zq5t1vyX.js +0 -1
- package/.output/server/chunks/build/Checkbox-eax2M3o-.mjs +0 -207
- package/.output/server/chunks/build/Checkbox-eax2M3o-.mjs.map +0 -1
- package/.output/server/chunks/build/OmpTerminalPanel-CVvxpsF7.mjs +0 -915
- package/.output/server/chunks/build/OmpTerminalPanel-CVvxpsF7.mjs.map +0 -1
- package/.output/server/chunks/build/PluginSlot-CcR4Ys3T.mjs +0 -400
- package/.output/server/chunks/build/PluginSlot-CcR4Ys3T.mjs.map +0 -1
- package/.output/server/chunks/build/TownView-CJ6IsDCc.mjs +0 -2791
- package/.output/server/chunks/build/TownView-CJ6IsDCc.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-CVD_H0ir.mjs +0 -804
- package/.output/server/chunks/build/_id_-CVD_H0ir.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-CtxMb3qp.mjs +0 -381
- package/.output/server/chunks/build/_id_-CtxMb3qp.mjs.map +0 -1
- package/.output/server/chunks/build/_wsId_-DpY3T-md.mjs +0 -10136
- package/.output/server/chunks/build/_wsId_-DpY3T-md.mjs.map +0 -1
- package/.output/server/chunks/build/agents-DsCkuXDV.mjs +0 -1114
- package/.output/server/chunks/build/agents-DsCkuXDV.mjs.map +0 -1
- package/.output/server/chunks/build/aml-CT0xKGKI.mjs +0 -605
- package/.output/server/chunks/build/aml-CT0xKGKI.mjs.map +0 -1
- package/.output/server/chunks/build/api-error-dul30BYQ.mjs +0 -47
- package/.output/server/chunks/build/api-error-dul30BYQ.mjs.map +0 -1
- package/.output/server/chunks/build/apiClient-BwnfOQU8.mjs +0 -81
- package/.output/server/chunks/build/apiClient-BwnfOQU8.mjs.map +0 -1
- package/.output/server/chunks/build/button-DEcZFcqN.mjs +0 -1938
- package/.output/server/chunks/build/button-DEcZFcqN.mjs.map +0 -1
- package/.output/server/chunks/build/card-Dipvaykh.mjs +0 -955
- package/.output/server/chunks/build/card-Dipvaykh.mjs.map +0 -1
- package/.output/server/chunks/build/channel-templates-Dla9FbYa.mjs +0 -847
- package/.output/server/chunks/build/channel-templates-Dla9FbYa.mjs.map +0 -1
- package/.output/server/chunks/build/checkbox-8fB-wI-T.mjs +0 -439
- package/.output/server/chunks/build/checkbox-8fB-wI-T.mjs.map +0 -1
- package/.output/server/chunks/build/client-only-D5BzSQc6.mjs +0 -43
- package/.output/server/chunks/build/client-only-D5BzSQc6.mjs.map +0 -1
- package/.output/server/chunks/build/daq-DWWSKGAV.mjs +0 -1059
- package/.output/server/chunks/build/daq-DWWSKGAV.mjs.map +0 -1
- package/.output/server/chunks/build/dcw-CT8k17_E.mjs +0 -250
- package/.output/server/chunks/build/dcw-CT8k17_E.mjs.map +0 -1
- package/.output/server/chunks/build/default-D3525UFX.mjs +0 -1487
- package/.output/server/chunks/build/default-D3525UFX.mjs.map +0 -1
- package/.output/server/chunks/build/drawer-Cmh90erI.mjs +0 -836
- package/.output/server/chunks/build/drawer-Cmh90erI.mjs.map +0 -1
- package/.output/server/chunks/build/dropdown-CGQ0KAzA.mjs +0 -14
- package/.output/server/chunks/build/dropdown-CGQ0KAzA.mjs.map +0 -1
- package/.output/server/chunks/build/dropdown-vhn1NPFs.mjs +0 -558
- package/.output/server/chunks/build/dropdown-vhn1NPFs.mjs.map +0 -1
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs +0 -21
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs.map +0 -1
- package/.output/server/chunks/build/input-number-DzpyYB99.mjs +0 -1521
- package/.output/server/chunks/build/input-number-DzpyYB99.mjs.map +0 -1
- package/.output/server/chunks/build/input-sf_BT6o6.mjs +0 -2617
- package/.output/server/chunks/build/input-sf_BT6o6.mjs.map +0 -1
- package/.output/server/chunks/build/logs--dByNyhw.mjs +0 -198
- package/.output/server/chunks/build/logs--dByNyhw.mjs.map +0 -1
- package/.output/server/chunks/build/menu-WCrlpYVh.mjs +0 -1950
- package/.output/server/chunks/build/menu-WCrlpYVh.mjs.map +0 -1
- package/.output/server/chunks/build/modal-yvUquPj5.mjs +0 -1272
- package/.output/server/chunks/build/modal-yvUquPj5.mjs.map +0 -1
- package/.output/server/chunks/build/monitor-Dh2Kvaq5.mjs +0 -2212
- package/.output/server/chunks/build/monitor-Dh2Kvaq5.mjs.map +0 -1
- package/.output/server/chunks/build/pages-BHcSBM2D.mjs +0 -518
- package/.output/server/chunks/build/pages-BHcSBM2D.mjs.map +0 -1
- package/.output/server/chunks/build/permissions-68SsNjex.mjs +0 -629
- package/.output/server/chunks/build/permissions-68SsNjex.mjs.map +0 -1
- package/.output/server/chunks/build/plugins-BNgIi61W.mjs +0 -246
- package/.output/server/chunks/build/plugins-BNgIi61W.mjs.map +0 -1
- package/.output/server/chunks/build/popconfirm-CRaHcz5O.mjs +0 -342
- package/.output/server/chunks/build/popconfirm-CRaHcz5O.mjs.map +0 -1
- package/.output/server/chunks/build/segmented-3TrWo0lS.mjs +0 -5047
- package/.output/server/chunks/build/segmented-3TrWo0lS.mjs.map +0 -1
- package/.output/server/chunks/build/select-D-CeE5vY.mjs +0 -3923
- package/.output/server/chunks/build/select-D-CeE5vY.mjs.map +0 -1
- package/.output/server/chunks/build/settings-ipYBDWdn.mjs +0 -1175
- package/.output/server/chunks/build/settings-ipYBDWdn.mjs.map +0 -1
- package/.output/server/chunks/build/space-CCBYAkXt.mjs +0 -197
- package/.output/server/chunks/build/space-CCBYAkXt.mjs.map +0 -1
- package/.output/server/chunks/build/spin-HVY81X_L.mjs +0 -358
- package/.output/server/chunks/build/spin-HVY81X_L.mjs.map +0 -1
- package/.output/server/chunks/build/switch-CelRXpcy.mjs +0 -377
- package/.output/server/chunks/build/switch-CelRXpcy.mjs.map +0 -1
- package/.output/server/chunks/build/table-BjSWwmic.mjs +0 -8883
- package/.output/server/chunks/build/table-BjSWwmic.mjs.map +0 -1
- package/.output/server/chunks/build/tabs-BM3tAh_J.mjs +0 -1925
- package/.output/server/chunks/build/tabs-BM3tAh_J.mjs.map +0 -1
- package/.output/server/chunks/build/tag-DNE9vXc0.mjs +0 -1029
- package/.output/server/chunks/build/tag-DNE9vXc0.mjs.map +0 -1
- package/.output/server/chunks/build/teams-5lx-CwFa.mjs +0 -1218
- package/.output/server/chunks/build/teams-5lx-CwFa.mjs.map +0 -1
- package/.output/server/chunks/build/tokens-q-IDT8Io.mjs +0 -908
- package/.output/server/chunks/build/tokens-q-IDT8Io.mjs.map +0 -1
- package/.output/server/chunks/build/town-BUqRobze.mjs +0 -52
- package/.output/server/chunks/build/town-BUqRobze.mjs.map +0 -1
- package/.output/server/chunks/build/town-QJWB5wng.mjs +0 -125
- package/.output/server/chunks/build/town-QJWB5wng.mjs.map +0 -1
- package/.output/server/chunks/build/useDaqStream-DfCFpb3p.mjs +0 -395
- package/.output/server/chunks/build/useDaqStream-DfCFpb3p.mjs.map +0 -1
- package/.output/server/chunks/build/useDcwStream-UPiX-3iO.mjs +0 -435
- package/.output/server/chunks/build/useDcwStream-UPiX-3iO.mjs.map +0 -1
- package/.output/server/chunks/build/useDeviceTwins-Yko6nNPF.mjs +0 -128
- package/.output/server/chunks/build/useDeviceTwins-Yko6nNPF.mjs.map +0 -1
- package/.output/server/chunks/build/useOpsLog-CO_VWh7t.mjs +0 -137
- package/.output/server/chunks/build/useOpsLog-CO_VWh7t.mjs.map +0 -1
- package/.output/server/chunks/build/useWorkshopApi-NyjL0L3j.mjs +0 -90
- package/.output/server/chunks/build/useWorkshopApi-NyjL0L3j.mjs.map +0 -1
- package/.output/server/chunks/build/useWorkshopWs-C_I7q9As.mjs +0 -1319
- package/.output/server/chunks/build/useWorkshopWs-C_I7q9As.mjs.map +0 -1
- package/.output/server/chunks/build/users-Cfd5-l2-.mjs +0 -561
- package/.output/server/chunks/build/users-Cfd5-l2-.mjs.map +0 -1
- package/.output/server/chunks/build/workshop-BIlCj_ZP.mjs +0 -931
- package/.output/server/chunks/build/workshop-BIlCj_ZP.mjs.map +0 -1
- package/.output/server/chunks/build/workspaces-Bgz5Ekwp.mjs +0 -139
- package/.output/server/chunks/build/workspaces-Bgz5Ekwp.mjs.map +0 -1
- package/scripts/test-agent-brain.ts +0 -135
- package/scripts/test-game-session.ts +0 -160
- package/scripts/test-protocol.ts +0 -156
- package/scripts/verify-game.mjs +0 -477
- package/server/api/workshop/ws.ts +0 -763
- package/server/services/system-config.ts +0 -629
- package/server/services/workshop/agents/adapters/omp-rpc-client.ts +0 -604
- package/server/services/workshop/agents/codex-agent.ts +0 -743
- package/server/services/workshop/agents/harness-terminal.ts +0 -625
- package/server/services/workshop/agents/host-tool-bridge.ts +0 -714
- package/server/services/workshop/agents/industrial-tools.ts +0 -1680
- package/server/services/workshop/agents/omp-agent.ts +0 -1199
- package/server/services/workshop/agents/opencode-agent.ts +0 -960
- package/server/services/workshop/aml/job-orchestrator.ts +0 -639
- package/server/services/workshop/daq/daq-controller.ts +0 -1284
- package/server/services/workshop/daq/drivers.ts +0 -1196
- package/server/services/workshop/db/database.ts +0 -1044
- package/server/services/workshop/dcw/dcw-controller.ts +0 -1176
- package/server/services/workshop/dcw/drivers.ts +0 -731
- package/server/services/workshop/dcw/recipe-rollback-manager.ts +0 -713
- package/server/services/workshop/runtime/agent-runtime.ts +0 -821
- package/server/services/workshop/runtime/manager.ts +0 -3050
- package/server/services/workshop/runtime/memory.ts +0 -681
- package/server/services/workshop/runtime/scheduler-loop.ts +0 -799
- package/server/services/workshop/runtime/task-engine.ts +0 -574
- package/shared/dcw-protocol.ts +0 -747
- /package/.output/public/_nuxt/{BrIJiJSN.js → BrIJiJSN2.js} +0 -0
- /package/.output/public/_nuxt/{CNs_Ozdc2.js → CNs_Ozdc.js} +0 -0
- /package/.output/public/_nuxt/{DIOBYJe3.js → DIOBYJe32.js} +0 -0
- /package/.output/public/_nuxt/{lO5tpDZ5.js → lO5tpDZ52.js} +0 -0
|
@@ -1,1284 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DaqController —— 数采网关(应用级单例):统一调度全部节点运行时并汇聚管线。
|
|
3
|
-
*
|
|
4
|
-
* 概念模型:每个数采节点一个独立运行时(DaqNodeRuntime,边缘计算节点),
|
|
5
|
-
* 节拍状态(采样/WS 下发/故障节流/在飞互斥)全部驻运行时实例,由节点元数据驱动
|
|
6
|
-
* (intervalMs 采集入库节拍 / publishIntervalMs WS 实时下发节拍,null 跟随网关缺省);
|
|
7
|
-
* 网关 = 总体网关:注册表管理运行时生命周期 + 统一 tick 调度 + 管线汇聚。
|
|
8
|
-
*
|
|
9
|
-
* [边缘运行时 ×N] [队列] [网关消费泵]
|
|
10
|
-
* runtime.tick 到期 → 驱动采样 ────────▶ DaqQueuePort ──────▶ 按节点分发回 runtime
|
|
11
|
-
* (mock/PLC 驱动) mqtt|inproc ├─ 乱序防御 + 越限派生(runtime)
|
|
12
|
-
* ├─ WS daq.reading 直推(按 publishIntervalMs 门控)
|
|
13
|
-
* ├─ TSDB 批量落库(每帧必达,Timescale/SQLite)
|
|
14
|
-
* └─ 绑定设备 telemetry 回写
|
|
15
|
-
*
|
|
16
|
-
* 工业约定:
|
|
17
|
-
* - 全局缺省(running/defaultIntervalMs/defaultPublishIntervalMs)+ 单节点元数据
|
|
18
|
-
* 独立覆盖(enabled/intervalMs/publishIntervalMs/阈值/驱动/绑定),REST 为控制面;
|
|
19
|
-
* - 消费端乱序防御:晚于运行时已知游标的迟到帧丢弃(真实 broker 下常见);
|
|
20
|
-
* - 驱动故障节点置 offline 并按运行时独立节流广播(error 帧);
|
|
21
|
-
* - 指标(produced/consumed/dropped/samplesStored)随 daq.controller 帧与 meta 暴露。
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
import { createLogger } from '../logger'
|
|
25
|
-
import { randomUUID } from 'node:crypto'
|
|
26
|
-
import { daqRuntimeSettings } from '../settings'
|
|
27
|
-
import { getSystemConfigService } from '../../system-config'
|
|
28
|
-
import { daqKeyFromRef, normalizeDataTransform, normalizeSignalKind, DAQ_DRIVERS, type AepDaqControllerState, type AepDaqFrame, type AepDaqReading, type AepDaqNodeChange, type DaqDriverKind, type DaqNodeView, type DataTransform, type DriverTestResult } from '../../../../shared/daq-protocol'
|
|
29
|
-
import { AppError, ErrorCodes } from '../../../utils/errors'
|
|
30
|
-
import { normalizeDriverKind, resolveDaqDriver, probeDriverAvailability, listPluginDrivers, driverCatalog, type DaqFrameSample } from './drivers'
|
|
31
|
-
import { findDaqTemplate } from './daq-templates'
|
|
32
|
-
import { DaqNode } from './daq-node'
|
|
33
|
-
import { DaqNodeRuntime, type DaqRuntimeHost } from './daq-runtime'
|
|
34
|
-
import { getDaqNodeRepo } from './daq-node.repo'
|
|
35
|
-
import { getTsdb, tsdbReady } from './storage'
|
|
36
|
-
import type { DaqFrameRecord, DaqFrameRow } from './storage/tsdb-port'
|
|
37
|
-
import { getDaqQueue } from './bus'
|
|
38
|
-
import { getDaqHostPorts } from './host-ports'
|
|
39
|
-
// 有界 LRU(shared/lru.mjs):siblingsCache 必须用 LRU 而非「超 500 整体 clear()」——
|
|
40
|
-
// 后者会造成周期性全量缓存穿透。必须走 @ 别名:裸相对路径在 nitro dev 的服务端
|
|
41
|
-
// bundle 里按输出目录重算,Windows 上会溢出盘符根(生产侧另有 inline 兜底)。
|
|
42
|
-
import { LruMap } from '@/shared/lru.mjs'
|
|
43
|
-
import { runSinkPipeline, type DaqFrameWorking } from './frames'
|
|
44
|
-
import { getObjectStore } from './objectstore'
|
|
45
|
-
import { daqObjectKey } from './objectstore/objectstore-port'
|
|
46
|
-
import { emitDaqSample, emitDaqFrame } from '@/server/services/workshop/plugins/host.mjs'
|
|
47
|
-
import { getOps, recordOps } from '../ops/ops'
|
|
48
|
-
import { notifyAlarm, newAlarmId, startAlarmEscalator } from './alarm-notify'
|
|
49
|
-
import { attachDaqPluginBridge } from './plugin-bridge'
|
|
50
|
-
import type { DaqSampleEnvelope } from './bus/queue-port'
|
|
51
|
-
|
|
52
|
-
const log = createLogger('daq.controller')
|
|
53
|
-
|
|
54
|
-
// 插件桥接管(host.mjs ctx.daq 排队注册的驱动/处理器在此回放;幂等)
|
|
55
|
-
attachDaqPluginBridge()
|
|
56
|
-
|
|
57
|
-
export interface DaqCreateInput {
|
|
58
|
-
templateRef?: string
|
|
59
|
-
name?: string
|
|
60
|
-
driver?: DaqDriverKind
|
|
61
|
-
driverConfig?: Record<string, string | number | boolean>
|
|
62
|
-
/** 数据语义标定钩子(decoder) */
|
|
63
|
-
transform?: DataTransform
|
|
64
|
-
unit?: string
|
|
65
|
-
decimals?: number
|
|
66
|
-
min?: number
|
|
67
|
-
max?: number
|
|
68
|
-
warnLow?: number | null
|
|
69
|
-
warnHigh?: number | null
|
|
70
|
-
intervalMs?: number | null
|
|
71
|
-
/** WS 实时下发间隔(null=跟随全局;0=每帧) */
|
|
72
|
-
publishIntervalMs?: number | null
|
|
73
|
-
enabled?: boolean
|
|
74
|
-
posX?: number
|
|
75
|
-
posZ?: number
|
|
76
|
-
/** 所属产线('' = 未分配) */
|
|
77
|
-
lineId?: string
|
|
78
|
-
/** 节点级采集语义备注(覆盖模板) */
|
|
79
|
-
semantics?: string
|
|
80
|
-
deviceBindingId?: string | null
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface DaqPatchInput {
|
|
84
|
-
name?: string
|
|
85
|
-
driver?: DaqDriverKind
|
|
86
|
-
driverConfig?: Record<string, string | number | boolean>
|
|
87
|
-
/** 数据语义标定钩子(decoder) */
|
|
88
|
-
transform?: DataTransform
|
|
89
|
-
unit?: string
|
|
90
|
-
decimals?: number
|
|
91
|
-
min?: number
|
|
92
|
-
max?: number
|
|
93
|
-
warnLow?: number | null
|
|
94
|
-
warnHigh?: number | null
|
|
95
|
-
intervalMs?: number | null
|
|
96
|
-
/** WS 实时下发间隔(null=跟随全局;0=每帧) */
|
|
97
|
-
publishIntervalMs?: number | null
|
|
98
|
-
enabled?: boolean
|
|
99
|
-
posX?: number
|
|
100
|
-
posZ?: number
|
|
101
|
-
/** 所属产线('' = 未分配;采集门控按产线) */
|
|
102
|
-
lineId?: string
|
|
103
|
-
/** 节点级采集语义备注(覆盖模板) */
|
|
104
|
-
semantics?: string
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
type BroadcastFn = (type: string, payload: unknown) => void
|
|
108
|
-
|
|
109
|
-
/** 有界 LRU 的最小泛型面:shared/lru.mjs 是 allowJs 推断出的**非泛型**类(JS 里没有 @template),
|
|
110
|
-
* 直接 `new LruMap<K, V>()` 无处安放类型参数。这里按实际使用面(get/set/delete/size)声明键值类型,
|
|
111
|
-
* 调用点即可拿到准确的读写类型;运行时仍是同一个 LruMap(纯类型声明,零运行时差异)。 */
|
|
112
|
-
interface LruLike<K, V> {
|
|
113
|
-
readonly size: number
|
|
114
|
-
get(key: K): V | undefined
|
|
115
|
-
set(key: K, value: V): unknown
|
|
116
|
-
delete(key: K): unknown
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/** TSDB 批量写窗口(ms):消费端攒批再落盘 */
|
|
120
|
-
const TSDB_FLUSH_MS = 500
|
|
121
|
-
/** TSDB 攒批缓冲上限(背压:满则丢最旧并计数,防慢库拖爆内存) */
|
|
122
|
-
const TSDB_BUFFER_CAP = 5000
|
|
123
|
-
/** 帧攒批缓冲上限(向量/图像元数据;量级远小于标量) */
|
|
124
|
-
const FRAME_BUFFER_CAP = 2000
|
|
125
|
-
/** TSDB 写失败重试次数(有限重试后丢弃并计数,不阻塞消费) */
|
|
126
|
-
const TSDB_WRITE_RETRIES = 3
|
|
127
|
-
/** WS 帧预览点数上限(AepDaqFrame.preview;完整点列经 REST frames 查询) */
|
|
128
|
-
const FRAME_PREVIEW_POINTS = 64
|
|
129
|
-
/**
|
|
130
|
-
* sweep 采样并发闸门。
|
|
131
|
-
* 早先 sweep 对每个到期运行时直接 void rt.tick() —— 节点自互斥只防「同节点重入」,
|
|
132
|
-
* 不防「N 个节点同拍齐发」。250ms 扫描 + 相同 intervalMs 会让大量节点在同一个 tick 到期,
|
|
133
|
-
* 瞬时并发打满 Modbus/OPC UA/MQTT 连接,既拖慢本拍也冲击 PLC。
|
|
134
|
-
* 限量后超出的节点顺延到下一拍(250ms 后),到期判定用 lastSampleAt,不会丢采样、
|
|
135
|
-
* 只会把洪峰摊平成稳定节拍。
|
|
136
|
-
*
|
|
137
|
-
* 额度取值:只约束「本拍真正派发多少个到期采样」。现场 282 节点、周期 1~5s 时
|
|
138
|
-
* 稳态需求约 110 采样/秒(≈28/拍),8 会让大量到期节点永远排不上队 —— 实测只有
|
|
139
|
-
* 最先入表的 5 个节点在采(其余长期 lastAt 不动)。64/拍 = 256/拍秒,留 2 倍余量;
|
|
140
|
-
* 且 sweep 已按到期预判派发,未到期节点不占额度,故提高额度不会放大瞬时洪峰。
|
|
141
|
-
*/
|
|
142
|
-
const SWEEP_MAX_CONCURRENCY = 64
|
|
143
|
-
|
|
144
|
-
class DaqController {
|
|
145
|
-
private repo = getDaqNodeRepo()
|
|
146
|
-
private broadcast: BroadcastFn | null = null
|
|
147
|
-
private timer: NodeJS.Timeout | null = null
|
|
148
|
-
/** 边缘运行时注册表(节点 id → 独立运行时;网关统一管理生命周期) */
|
|
149
|
-
private runtimes = new Map<string, DaqNodeRuntime>()
|
|
150
|
-
/** TSDB 批量缓冲(consumer 攒批 → 定窗刷盘;上限背压,满丢最旧;产线窗口内逐样本打标) */
|
|
151
|
-
private tsdbBuffer: Array<{ nodeId: string, tsMs: number, value: number, state: string, lineId?: string | null, productId?: string | null, recipeId?: string | null, runId?: string | null }> = []
|
|
152
|
-
/** 帧攒批缓冲(v2:向量/图像元数据;与样本同窗刷盘) */
|
|
153
|
-
private frameBuffer: DaqFrameRow[] = []
|
|
154
|
-
/** 帧指标告警态(nodeId::metricKey → ok/warn/alarm;边沿触发) */
|
|
155
|
-
private metricStates = new Map<string, 'ok' | 'warn' | 'alarm'>()
|
|
156
|
-
private tsdbFlushTimer: NodeJS.Timeout | null = null
|
|
157
|
-
/** 单 in-flight 写:写库中不叠写(promise 链串行化) */
|
|
158
|
-
private tsdbWriting = false
|
|
159
|
-
/** 消费侧真实丢弃计数:乱序迟到帧 */
|
|
160
|
-
private lateDropped = 0
|
|
161
|
-
/** 写库侧丢弃计数(重试耗尽/缓冲溢出) */
|
|
162
|
-
private tsdbDropped = 0
|
|
163
|
-
private queueInit: Promise<unknown> | null = null
|
|
164
|
-
/** 当前队列的消费退订(rebuild 后重挂) */
|
|
165
|
-
private queueUnsub: (() => void) | null = null
|
|
166
|
-
/** 在飞采样数(sweep 并发闸门;防同拍 N 节点齐发打爆驱动连接) */
|
|
167
|
-
private samplingInFlight = 0
|
|
168
|
-
/** 管线就绪前生产者静默(队列/消费必须先在位) */
|
|
169
|
-
private pipelineReady = false
|
|
170
|
-
/** 配置同步/订阅状态(daq.sampling live 配置 → 网关节拍;仅挂一次) */
|
|
171
|
-
private settingsSynced = false
|
|
172
|
-
private settingsUnsub: (() => void) | null = null
|
|
173
|
-
|
|
174
|
-
running = true
|
|
175
|
-
/** 全局缺省采集间隔(节点 intervalMs=null 跟随;来源 = daq.sampling 配置,live 可调) */
|
|
176
|
-
defaultIntervalMs = 5000
|
|
177
|
-
/** 采样节拍下限(create/patch/存量收敛统一钳制;来源 = daq.sampling.minIntervalMs) */
|
|
178
|
-
minIntervalMs = 1000
|
|
179
|
-
/** 全局缺省 WS 下发间隔(节点 publishIntervalMs=null 跟随;0 = 随采样节拍) */
|
|
180
|
-
defaultPublishIntervalMs = 1000
|
|
181
|
-
/** WS 下发节拍下限(create/patch 钳制;来源 = daq.publish.minIntervalMs,0=允许每帧) */
|
|
182
|
-
minPublishIntervalMs = 0
|
|
183
|
-
/** 前端趋势图自动拉取(时序库查询+重绘)间隔默认值(来源 = daq.query.displayIntervalMs) */
|
|
184
|
-
queryDisplayIntervalMs = 5000
|
|
185
|
-
/** 前端趋势图刷新间隔下限(来源 = daq.query.minDisplayIntervalMs,前端钳制) */
|
|
186
|
-
minQueryDisplayIntervalMs = 500
|
|
187
|
-
/** sweep 轮转游标(派发额度有限时保证全表轮转,避免表尾节点饿死) */
|
|
188
|
-
private sweepCursor = 0
|
|
189
|
-
private producedCount = 0
|
|
190
|
-
private consumedCount = 0
|
|
191
|
-
private storedCount = 0
|
|
192
|
-
/** 帧入库计数(v2:daq_frames 行数) */
|
|
193
|
-
private framesStored = 0
|
|
194
|
-
|
|
195
|
-
// ---------- 生命周期 ----------
|
|
196
|
-
|
|
197
|
-
private ensureLoop(): void {
|
|
198
|
-
this.applyRuntimeSettings()
|
|
199
|
-
this.syncRuntimes()
|
|
200
|
-
if (!this.queueInit) {
|
|
201
|
-
this.queueInit = (async () => {
|
|
202
|
-
const queue = await getDaqQueue()
|
|
203
|
-
this.queueUnsub?.()
|
|
204
|
-
this.queueUnsub = queue.consume(env => this.onSampleFromQueue(env))
|
|
205
|
-
await queue.init()
|
|
206
|
-
this.pipelineReady = true
|
|
207
|
-
})()
|
|
208
|
-
this.queueInit.catch(err => log.error('[daq] 管线初始化失败:', err instanceof Error ? err.message : err))
|
|
209
|
-
}
|
|
210
|
-
if (this.timer) return
|
|
211
|
-
// 网关扫描周期 250ms(统一调度;节拍判定/互斥在各运行时内部自治)
|
|
212
|
-
this.timer = setInterval(() => this.sweep(), 250)
|
|
213
|
-
this.timer.unref?.()
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// ---------- 网关服务面(runtime host 实现;运行时只依赖此接口) ----------
|
|
217
|
-
|
|
218
|
-
/** 从运行时设置(daq.sampling.* / daq.publish.* / daq.query.* )同步三个独立节拍:
|
|
219
|
-
* 采集周期(publish 与 sampling 解耦)、WS 下发间隔、趋势图拉取间隔,以及各自下限。
|
|
220
|
-
* live 配置链:config.yml < runtime-settings.json < 环境变量 < 设置页/CLI;
|
|
221
|
-
* 设置变更经 system-config 订阅即时回流到这里(热重载,无需重启)。 */
|
|
222
|
-
applyRuntimeSettings(): void {
|
|
223
|
-
if (!this.settingsSynced) {
|
|
224
|
-
this.settingsSynced = true
|
|
225
|
-
try {
|
|
226
|
-
this.settingsUnsub = getSystemConfigService().subscribe(() => this.applyRuntimeSettings())
|
|
227
|
-
}
|
|
228
|
-
catch { /* 设置系统不可用(单测) → 用字段默认值 */ }
|
|
229
|
-
}
|
|
230
|
-
const before = `${this.defaultIntervalMs}|${this.minIntervalMs}|${this.defaultPublishIntervalMs}|${this.minPublishIntervalMs}|${this.queryDisplayIntervalMs}|${this.minQueryDisplayIntervalMs}`
|
|
231
|
-
try {
|
|
232
|
-
const s = daqRuntimeSettings()
|
|
233
|
-
// 三组节拍统一「下限优先」:缺省低于下限时抬到下限(下限被配置成下限才成立),
|
|
234
|
-
// 三组各自独立——改一组的下限不影响另一组的缺省,反之亦然。
|
|
235
|
-
if (Number.isFinite(s.sampling.minIntervalMs) && s.sampling.minIntervalMs > 0) this.minIntervalMs = Math.max(100, Math.min(60_000, s.sampling.minIntervalMs))
|
|
236
|
-
if (Number.isFinite(s.sampling.defaultIntervalMs) && s.sampling.defaultIntervalMs > 0) {
|
|
237
|
-
this.defaultIntervalMs = Math.max(this.minIntervalMs, Math.min(60_000, s.sampling.defaultIntervalMs))
|
|
238
|
-
}
|
|
239
|
-
// WS 下发节拍:与采集间隔解耦的独立缺省/下限(live 可调)
|
|
240
|
-
if (Number.isFinite(s.publish.minIntervalMs) && s.publish.minIntervalMs >= 0) this.minPublishIntervalMs = Math.min(60_000, s.publish.minIntervalMs)
|
|
241
|
-
if (Number.isFinite(s.publish.defaultIntervalMs) && s.publish.defaultIntervalMs >= 0) {
|
|
242
|
-
this.defaultPublishIntervalMs = Math.max(this.minPublishIntervalMs, Math.min(60_000, s.publish.defaultIntervalMs))
|
|
243
|
-
}
|
|
244
|
-
// 趋势图刷新节拍(仅下发前端;服务端不参与调度)
|
|
245
|
-
if (Number.isFinite(s.query.minDisplayIntervalMs) && s.query.minDisplayIntervalMs > 0) this.minQueryDisplayIntervalMs = Math.max(100, s.query.minDisplayIntervalMs)
|
|
246
|
-
if (Number.isFinite(s.query.displayIntervalMs) && s.query.displayIntervalMs > 0) {
|
|
247
|
-
this.queryDisplayIntervalMs = Math.max(this.minQueryDisplayIntervalMs, Math.min(600_000, s.query.displayIntervalMs))
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
catch { /* settings 未就绪 → 保持当前值 */ }
|
|
251
|
-
// 节拍变化经 daq.controller 帧回流前端(前端据此重排「趋势图刷新/WS 展示」节拍)
|
|
252
|
-
if (`${this.defaultIntervalMs}|${this.minIntervalMs}|${this.defaultPublishIntervalMs}|${this.minPublishIntervalMs}|${this.queryDisplayIntervalMs}|${this.minQueryDisplayIntervalMs}` !== before) {
|
|
253
|
-
this.emitController()
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
private runtimeDefaults(): { intervalMs: number, publishIntervalMs: number, minIntervalMs: number } {
|
|
258
|
-
return { intervalMs: this.defaultIntervalMs, publishIntervalMs: this.defaultPublishIntervalMs, minIntervalMs: this.minIntervalMs }
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/** 生产面:驱动采样一次(模板域 + 协议参数解析;mock/PLC 统一走驱动注册表)。
|
|
262
|
-
* 多形态模板(vector/image)在采样后执行 sink 下沉管线;图像 blob 就地落
|
|
263
|
-
* 对象存储(blob 不进队列 —— MQTT 256KB 上限不可承载像素,队列只传引用)。 */
|
|
264
|
-
private async sampleNode(node: DaqNode, now: number): Promise<number | DaqFrameSample | { frame: NonNullable<DaqSampleEnvelope['frame']> } | null> {
|
|
265
|
-
const tpl = findDaqTemplate(node.templateKey)
|
|
266
|
-
const signalKind = normalizeSignalKind(tpl?.signalKind)
|
|
267
|
-
const res = await resolveDaqDriver(node.driver).sample({
|
|
268
|
-
ctx: { nodeId: node.id, now, ageMs: now - Date.parse(node.createdAt || new Date(now).toISOString()) },
|
|
269
|
-
config: {
|
|
270
|
-
base: tpl?.base ?? (node.min + node.max) / 2,
|
|
271
|
-
amp: tpl?.amp ?? Math.max((node.max - node.min) * 0.04, 0.001),
|
|
272
|
-
min: node.min,
|
|
273
|
-
max: node.max,
|
|
274
|
-
},
|
|
275
|
-
driverConfig: node.driverConfig,
|
|
276
|
-
signalKind,
|
|
277
|
-
vector: tpl?.vector,
|
|
278
|
-
})
|
|
279
|
-
if (res == null || typeof res !== 'object' || !('frame' in res) || res.frame == null) return res
|
|
280
|
-
// 下沉管线(生产侧;单步失败保留原帧,永不抛出 —— 见 frames.ts runSinkPipeline)
|
|
281
|
-
const raw = res.frame
|
|
282
|
-
// 契约守卫:帧联合只有 vector/image;驱动返回未知 kind(如误包 scalar)直接丢帧,
|
|
283
|
-
// 绝不蒙成 image 走 blob 管线(会在 sink 派生处炸出 undefined.length)
|
|
284
|
-
if (raw.kind !== 'vector' && raw.kind !== 'image') return null
|
|
285
|
-
let wf: DaqFrameWorking = raw.kind === 'vector'
|
|
286
|
-
? { kind: 'vector', points: raw.points, metrics: raw.metrics }
|
|
287
|
-
: { kind: 'image', blob: raw.blob, mime: raw.mime, width: raw.width, height: raw.height, metrics: raw.metrics }
|
|
288
|
-
wf = runSinkPipeline(wf, tpl?.sink?.processors, node.id)
|
|
289
|
-
if (wf.kind === 'vector') {
|
|
290
|
-
return { frame: { kind: 'vector', points: (wf.points ?? []).slice(0, 4096), metrics: wf.metrics } }
|
|
291
|
-
}
|
|
292
|
-
// 图像:主图 + 缩略图落对象存储(失败抛出 → tick 按驱动故障节流,采集不中断)
|
|
293
|
-
const os = getObjectStore()
|
|
294
|
-
const objectKey = daqObjectKey(node.id, now, '.png')
|
|
295
|
-
await os.put(objectKey, wf.blob!, wf.mime ?? 'image/png')
|
|
296
|
-
let thumbKey: string | undefined
|
|
297
|
-
if (wf.thumbBlob) {
|
|
298
|
-
thumbKey = daqObjectKey(node.id, now, '.thumb.png')
|
|
299
|
-
await os.put(thumbKey, wf.thumbBlob, 'image/png')
|
|
300
|
-
}
|
|
301
|
-
return {
|
|
302
|
-
frame: {
|
|
303
|
-
kind: 'image',
|
|
304
|
-
objectKey,
|
|
305
|
-
thumbKey,
|
|
306
|
-
mime: wf.mime ?? 'image/png',
|
|
307
|
-
width: wf.width,
|
|
308
|
-
height: wf.height,
|
|
309
|
-
metrics: wf.metrics,
|
|
310
|
-
},
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/** 生产面:样本帧入队 */
|
|
315
|
-
private publishSample(env: DaqSampleEnvelope): void {
|
|
316
|
-
void getDaqQueue().then(q => q.publish(env)).catch(() => {})
|
|
317
|
-
this.producedCount++
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/** 消费面:样本入网关管线(状态派生已在 runtime 完成)。
|
|
321
|
-
* allowPublish = 通过该节点 WS 下发节拍门控;入库/遥测回写不受门控(每帧必达)。 */
|
|
322
|
-
/**
|
|
323
|
-
* 活动配方对该节点的数采监控窗口(逐产线:仅本线活动批次的窗口生效)。
|
|
324
|
-
* 不同 Recipe 可设不同窗口 —— 窗口随开跑生效、随停线失效。
|
|
325
|
-
*/
|
|
326
|
-
private recipeDaqWindowFor(node: DaqNode): { min: number | null, max: number | null } | null {
|
|
327
|
-
if (!node.lineId) return null
|
|
328
|
-
const host = getDaqHostPorts()
|
|
329
|
-
if (!host) return null
|
|
330
|
-
const run = host.lineRun.activeRun(node.lineId)
|
|
331
|
-
if (!run) return null
|
|
332
|
-
return host.lineRun.recipeWindow(run.recipeId, node.id)
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
private ingestNode(node: DaqNode, env: DaqSampleEnvelope, allowPublish: boolean): void {
|
|
336
|
-
// 多形态帧(v2):向量/图像走独立帧管线(不入 daq_samples,标量表零污染)
|
|
337
|
-
if (env.frame) {
|
|
338
|
-
this.ingestFrame(node, env, allowPublish)
|
|
339
|
-
return
|
|
340
|
-
}
|
|
341
|
-
// 配方级数采监控窗口的越限判定已前移到运行时 onSample(与量程告警共用边沿语义,
|
|
342
|
-
// 越窗即 raise 落库 + 广播);此处 state 已含窗口结论,仅负责管线汇聚。
|
|
343
|
-
if (allowPublish) {
|
|
344
|
-
const reading = {
|
|
345
|
-
nodeId: node.id,
|
|
346
|
-
templateRef: node.templateRef,
|
|
347
|
-
value: node.value ?? env.value,
|
|
348
|
-
state: node.state,
|
|
349
|
-
at: env.at,
|
|
350
|
-
lineId: node.lineId ?? null,
|
|
351
|
-
} satisfies AepDaqReading
|
|
352
|
-
this.broadcast?.('daq.reading', reading)
|
|
353
|
-
// 插件钩子:下发级采样观察(与 WS daq.reading 同点同节拍;宿主未装载时零开销 no-op)
|
|
354
|
-
emitDaqSample(reading)
|
|
355
|
-
}
|
|
356
|
-
this.writeBackTelemetry(node)
|
|
357
|
-
|
|
358
|
-
// 时序库批量攒写(定窗刷盘;上限背压:满丢最旧并计数)
|
|
359
|
-
// 产线批次打标:活动 LineRun 窗口内每条样本携带 product/recipe/run id(产品级数据隔离)
|
|
360
|
-
const tsMs = Date.parse(env.at)
|
|
361
|
-
const lineRun = getDaqHostPorts()?.lineRun.activeRun(node.lineId) ?? null
|
|
362
|
-
if (lineRun) getDaqHostPorts()?.lineRun.bumpTaggedSamples(node.lineId)
|
|
363
|
-
this.tsdbBuffer.push({
|
|
364
|
-
nodeId: node.id,
|
|
365
|
-
tsMs,
|
|
366
|
-
value: env.value,
|
|
367
|
-
state: node.state,
|
|
368
|
-
lineId: lineRun?.lineId ?? null,
|
|
369
|
-
productId: lineRun?.productId ?? null,
|
|
370
|
-
recipeId: lineRun?.recipeId ?? null,
|
|
371
|
-
runId: lineRun?.runId ?? null,
|
|
372
|
-
})
|
|
373
|
-
if (this.tsdbBuffer.length > TSDB_BUFFER_CAP) {
|
|
374
|
-
this.tsdbBuffer.splice(0, this.tsdbBuffer.length - TSDB_BUFFER_CAP)
|
|
375
|
-
this.tsdbDropped += 1
|
|
376
|
-
}
|
|
377
|
-
this.scheduleTsdbFlush()
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
/** 刷盘调度(样本与帧共用同一定窗;写库中不重复排程) */
|
|
381
|
-
private scheduleTsdbFlush(): void {
|
|
382
|
-
if (!this.tsdbFlushTimer && !this.tsdbWriting) {
|
|
383
|
-
this.tsdbFlushTimer = setTimeout(() => {
|
|
384
|
-
this.tsdbFlushTimer = null
|
|
385
|
-
void this.flushTsdb()
|
|
386
|
-
}, TSDB_FLUSH_MS)
|
|
387
|
-
this.tsdbFlushTimer.unref?.()
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
private broadcastDriverError(node: DaqNode, message: string): void {
|
|
392
|
-
this.broadcast?.('error', { code: 'DAQ_DRIVER', message: `[${node.name}] ${message}` })
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
// ---------- 帧管线(v2:向量/图像;打标与告警复用标量链路同源机制)----------
|
|
396
|
-
|
|
397
|
-
/** 帧消费:元数据攒批落 daq_frames + 指标阈值告警(边沿)+ WS daq.frame(预览/缩略图引用) */
|
|
398
|
-
private ingestFrame(node: DaqNode, env: DaqSampleEnvelope, allowPublish: boolean): void {
|
|
399
|
-
const f = env.frame!
|
|
400
|
-
const tpl = findDaqTemplate(node.templateKey)
|
|
401
|
-
const tsMs = Date.parse(env.at)
|
|
402
|
-
// 产线批次打标(与标量样本同源取值)
|
|
403
|
-
const lineRun = getDaqHostPorts()?.lineRun.activeRun(node.lineId) ?? null
|
|
404
|
-
if (lineRun) getDaqHostPorts()?.lineRun.bumpTaggedSamples(node.lineId)
|
|
405
|
-
const metrics = f.metrics ?? {}
|
|
406
|
-
this.pushFrame({
|
|
407
|
-
nodeId: node.id,
|
|
408
|
-
tsMs,
|
|
409
|
-
kind: f.kind,
|
|
410
|
-
templateKey: node.templateKey,
|
|
411
|
-
deviceBindingId: node.deviceBindingId,
|
|
412
|
-
lineId: lineRun?.lineId ?? null,
|
|
413
|
-
productId: lineRun?.productId ?? null,
|
|
414
|
-
recipeId: lineRun?.recipeId ?? null,
|
|
415
|
-
runId: lineRun?.runId ?? null,
|
|
416
|
-
points: f.kind === 'vector' ? (f.points?.length ?? 0) : 0,
|
|
417
|
-
meta: f.kind === 'image'
|
|
418
|
-
? { objectKey: f.objectKey, thumbKey: f.thumbKey, mime: f.mime, width: f.width, height: f.height }
|
|
419
|
-
: { points: f.points ?? [] },
|
|
420
|
-
metrics,
|
|
421
|
-
})
|
|
422
|
-
if (this.frameBuffer.length > FRAME_BUFFER_CAP) {
|
|
423
|
-
if (this.evictFrames(FRAME_BUFFER_CAP) > 0) this.tsdbDropped += 1
|
|
424
|
-
}
|
|
425
|
-
this.scheduleTsdbFlush()
|
|
426
|
-
// 指标阈值告警(模板 metrics 规则;alarm 硬限边沿 → 既有告警链路)
|
|
427
|
-
this.evaluateMetricAlarms(node, tpl, metrics)
|
|
428
|
-
if (!allowPublish) return
|
|
429
|
-
// lineId 是 WS 逐产线扇出的依据(scene-events.payloadLineId 读的就是 payload.lineId,
|
|
430
|
-
// 与 AepDaqReading.lineId 同义);AepDaqFrame 协议类型漏了该字段 —— 见报告。
|
|
431
|
-
const payload: AepDaqFrame & { lineId: string | null } = {
|
|
432
|
-
nodeId: node.id,
|
|
433
|
-
templateRef: node.templateRef,
|
|
434
|
-
kind: f.kind,
|
|
435
|
-
at: env.at,
|
|
436
|
-
lineId: node.lineId ?? null,
|
|
437
|
-
preview: f.kind === 'vector' ? DaqController.previewOf(f.points ?? [], FRAME_PREVIEW_POINTS) : undefined,
|
|
438
|
-
metrics,
|
|
439
|
-
thumbUrl: f.kind === 'image' && f.objectKey
|
|
440
|
-
? `/api/workshop/daq/${node.id}/frames/content?ts=${tsMs}&thumb=1`
|
|
441
|
-
: undefined,
|
|
442
|
-
state: node.state,
|
|
443
|
-
}
|
|
444
|
-
this.broadcast?.('daq.frame', payload)
|
|
445
|
-
// 插件钩子:帧观察(只含元数据/指标/预览,不含 blob —— 防插件侧内存放大)
|
|
446
|
-
emitDaqFrame(payload)
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/** 模板 metrics 规则评估:alarm 硬限沿 → handleAlarm/handleAlarmRecover;warn 只置节点态 */
|
|
450
|
-
private evaluateMetricAlarms(node: DaqNode, tpl: ReturnType<typeof findDaqTemplate>, metrics: Record<string, number>): void {
|
|
451
|
-
for (const rule of tpl?.metrics ?? []) {
|
|
452
|
-
const v = metrics[rule.key]
|
|
453
|
-
if (v == null || !Number.isFinite(v)) continue
|
|
454
|
-
const key = `${node.id}::${rule.key}`
|
|
455
|
-
const prev = this.metricStates.get(key) ?? 'ok'
|
|
456
|
-
let level: 'ok' | 'warn' | 'alarm' = 'ok'
|
|
457
|
-
if ((rule.alarmLow != null && v < rule.alarmLow) || (rule.alarmHigh != null && v > rule.alarmHigh)) level = 'alarm'
|
|
458
|
-
else if ((rule.warnLow != null && v < rule.warnLow) || (rule.warnHigh != null && v > rule.warnHigh)) level = 'warn'
|
|
459
|
-
this.metricStates.set(key, level)
|
|
460
|
-
if (level === 'alarm' && prev !== 'alarm') {
|
|
461
|
-
const gtMax = rule.alarmHigh != null && v > rule.alarmHigh
|
|
462
|
-
node.state = 'alarm'
|
|
463
|
-
this.handleAlarm(node, v, gtMax ? 'gt-max' : 'lt-min', gtMax ? rule.alarmHigh! : rule.alarmLow!, `${node.templateKey}.${rule.key}`)
|
|
464
|
-
}
|
|
465
|
-
else if (level !== 'alarm' && prev === 'alarm') {
|
|
466
|
-
node.state = level === 'warn' ? 'warn' : 'ok'
|
|
467
|
-
this.handleAlarmRecover(node, v)
|
|
468
|
-
}
|
|
469
|
-
else if (level === 'warn' && node.state === 'ok') {
|
|
470
|
-
node.state = 'warn'
|
|
471
|
-
}
|
|
472
|
-
else if (level === 'ok' && prev !== 'ok' && node.state !== 'alarm') {
|
|
473
|
-
node.state = 'ok'
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/** WS 帧预览:均匀抽点 ≤max(线性抽点,保形) */
|
|
479
|
-
private static previewOf(points: number[], max: number): number[] {
|
|
480
|
-
if (points.length <= max) return points
|
|
481
|
-
const out: number[] = []
|
|
482
|
-
for (let i = 0; i < max; i++) {
|
|
483
|
-
out.push(points[Math.floor((i * (points.length - 1)) / (max - 1))]!)
|
|
484
|
-
}
|
|
485
|
-
return out
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/** 网关统一调度:250ms 扫描,到期判定与互斥由各运行时私有节拍自治(单节点慢/停不波及邻居)。
|
|
489
|
-
* 产线门控:未选定配方(无活动 LineRun)不执行采集 —— 采样与实时下发均由配方驱动。 */
|
|
490
|
-
private sweep(): void {
|
|
491
|
-
if (!this.pipelineReady || !this.running) return
|
|
492
|
-
const host = getDaqHostPorts()
|
|
493
|
-
if (!host || !host.lineRun.hasAnyActiveRun()) return
|
|
494
|
-
// 在飞闸门:上一拍未消化的并发额度不叠加(避免积压 tick 雪崩)
|
|
495
|
-
const budget = SWEEP_MAX_CONCURRENCY - this.samplingInFlight
|
|
496
|
-
if (budget <= 0) return
|
|
497
|
-
const now = Date.now()
|
|
498
|
-
const defs = this.runtimeDefaults()
|
|
499
|
-
const rts = [...this.runtimes.values()]
|
|
500
|
-
const total = rts.length
|
|
501
|
-
if (!total) return
|
|
502
|
-
let started = 0
|
|
503
|
-
let examined = 0
|
|
504
|
-
// 轮转游标 + 到期预判:派发额度有限时,固定从表头遍历会让表尾节点永久饿死
|
|
505
|
-
// (新入表节点排在最后 → 永远轮不到)。游标保证有限拍内覆盖全表,isDue 保证
|
|
506
|
-
// 未到期节点不占用额度(否则表头节点每拍吃满额度,即便它们无样本可采)。
|
|
507
|
-
for (let i = 0; i < total && started < budget; i++) {
|
|
508
|
-
const rt = rts[(this.sweepCursor + i) % total]!
|
|
509
|
-
examined = i + 1
|
|
510
|
-
// 逐产线门控:节点只在其所属产线的活动批次窗口内采集(lineId 空 = 未分配,不采集)
|
|
511
|
-
if (!host.lineRun.activeRun(rt.node.lineId)) continue
|
|
512
|
-
if (!rt.isDue(now, defs)) continue
|
|
513
|
-
this.samplingInFlight += 1
|
|
514
|
-
started += 1
|
|
515
|
-
void rt.tick(now).catch(() => { /* 单节点采样异常已在 runtime 内隔离 */ })
|
|
516
|
-
.finally(() => { this.samplingInFlight -= 1 })
|
|
517
|
-
}
|
|
518
|
-
this.sweepCursor = (this.sweepCursor + examined) % total
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/** 产线停止:该产线全部节点置 offline(开跑后由采样自然恢复) */
|
|
522
|
-
markLineOffline(lineId: string): void {
|
|
523
|
-
for (const n of this.repo.all()) {
|
|
524
|
-
if (n.enabled && n.lineId === lineId) n.state = 'offline'
|
|
525
|
-
}
|
|
526
|
-
this.emitController()
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/** 运行时注册表对账(仓库为权威:增删节点/启动即对齐;返回新建的运行时) */
|
|
530
|
-
private syncRuntimes(): void {
|
|
531
|
-
const live = new Set<string>()
|
|
532
|
-
for (const node of this.repo.all()) {
|
|
533
|
-
live.add(node.id)
|
|
534
|
-
if (!this.runtimes.has(node.id)) {
|
|
535
|
-
this.runtimes.set(node.id, new DaqNodeRuntime(node, this.host))
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
for (const id of [...this.runtimes.keys()]) {
|
|
539
|
-
if (!live.has(id)) this.runtimes.delete(id)
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
/** runtime host:网关注入的服务面(采样/入队/管线/告警/全局缺省) */
|
|
544
|
-
private host: DaqRuntimeHost = {
|
|
545
|
-
defaults: () => this.runtimeDefaults(),
|
|
546
|
-
sample: (node, now) => this.sampleNode(node, now),
|
|
547
|
-
publishSample: env => this.publishSample(env),
|
|
548
|
-
ingest: (node, env, allowPublish) => this.ingestNode(node, env, allowPublish),
|
|
549
|
-
broadcastError: (node, message) => this.broadcastDriverError(node, message),
|
|
550
|
-
onAlarm: (node, value, rule, threshold) => this.handleAlarm(node, value, rule, threshold),
|
|
551
|
-
onAlarmRecover: (node, value) => this.handleAlarmRecover(node, value),
|
|
552
|
-
recipeWindowFor: node => this.recipeDaqWindowFor(node),
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
// ---------- S5:报警持久化/外送/确认 ----------
|
|
556
|
-
|
|
557
|
-
/** 累计报警次数(R4 指标暴露) */
|
|
558
|
-
alarmsRaised = 0
|
|
559
|
-
|
|
560
|
-
/** alarm 进入沿:落库(同节点同量未确认幂等)→ WS 广播 → webhook 外送;失败绝不影响采集。
|
|
561
|
-
* metricKey:帧派生指标告警的键(模板 metrics 规则;缺省 = 模板 key,标量越限) */
|
|
562
|
-
private handleAlarm(node: DaqNode, value: number, rule: 'lt-min' | 'gt-max', threshold: number, metricKey?: string): void {
|
|
563
|
-
this.alarmsRaised++
|
|
564
|
-
const repo = getOps()?.alarmEvents
|
|
565
|
-
let id = newAlarmId()
|
|
566
|
-
const createdAt = new Date().toISOString()
|
|
567
|
-
const metric = metricKey ?? node.templateKey
|
|
568
|
-
if (repo) {
|
|
569
|
-
try {
|
|
570
|
-
const raised = repo.raise({
|
|
571
|
-
id, nodeId: node.id, nodeName: node.name, metric,
|
|
572
|
-
value, rule, threshold, createdAt,
|
|
573
|
-
})
|
|
574
|
-
if (!raised) id = '' // 已有同源未确认报警:不重复广播/外送
|
|
575
|
-
}
|
|
576
|
-
catch (err) {
|
|
577
|
-
log.error('[daq-alarm] 报警落库失败(不影响采集):', err instanceof Error ? err.message : err)
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
if (!id) return
|
|
581
|
-
const payload = {
|
|
582
|
-
id, nodeId: node.id, nodeName: node.name, metric,
|
|
583
|
-
value, rule, threshold, escalation: 0, createdAt,
|
|
584
|
-
}
|
|
585
|
-
this.broadcast?.('daq.alarm', payload)
|
|
586
|
-
notifyAlarm(payload)
|
|
587
|
-
// 运维日志:越限告警入实时事件轨(恢复/详情在告警面板与日志管理)
|
|
588
|
-
const zh = rule === 'gt-max' ? '高于上限' : '低于下限'
|
|
589
|
-
recordOps({
|
|
590
|
-
actor: 'system',
|
|
591
|
-
actorName: 'system',
|
|
592
|
-
actorKind: 'system',
|
|
593
|
-
action: 'daq.alarm.raise',
|
|
594
|
-
kind: 'alarm',
|
|
595
|
-
targetKind: 'daq-node',
|
|
596
|
-
targetId: node.id,
|
|
597
|
-
summary: `告警:「${node.name}」${metric} ${zh}阈值 ${threshold}(当前 ${value})`,
|
|
598
|
-
lineId: node.lineId ?? '',
|
|
599
|
-
detail: { alarmId: id, metric, value, rule, threshold },
|
|
600
|
-
})
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/** alarm 恢复沿:广播恢复(报警保持 open 待人工 ack) */
|
|
604
|
-
private handleAlarmRecover(node: DaqNode, value: number): void {
|
|
605
|
-
this.broadcast?.('daq.alarm.changed', { nodeId: node.id, nodeName: node.name, recovered: true, value, at: new Date().toISOString() })
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
/** 报警确认(HITL 闭环的人为一步;幂等:已确认返回 false) */
|
|
609
|
-
ackAlarm(id: string, byUserId: string, byName: string): boolean {
|
|
610
|
-
const repo = getOps()?.alarmEvents
|
|
611
|
-
if (!repo) throw new AppError(503, 'UNAVAILABLE', '报警持久化未就绪')
|
|
612
|
-
const ok = repo.ack(id, byUserId, byName, new Date().toISOString())
|
|
613
|
-
if (ok) {
|
|
614
|
-
this.broadcast?.('daq.alarm.changed', { id, ackedBy: byName, ackedAt: new Date().toISOString() })
|
|
615
|
-
recordOps({
|
|
616
|
-
actor: byUserId,
|
|
617
|
-
actorName: byName,
|
|
618
|
-
actorKind: 'user',
|
|
619
|
-
action: 'daq.alarm.ack',
|
|
620
|
-
kind: 'alarm',
|
|
621
|
-
targetKind: 'alarm',
|
|
622
|
-
targetId: id,
|
|
623
|
-
summary: `确认报警 ${id}(处理完毕,移出实时告警)`,
|
|
624
|
-
})
|
|
625
|
-
}
|
|
626
|
-
return ok
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
listAlarms(scope: 'open' | 'all', limit = 100) {
|
|
630
|
-
const repo = getOps()?.alarmEvents
|
|
631
|
-
if (!repo) return []
|
|
632
|
-
return scope === 'open' ? repo.listOpen(limit) : repo.list(limit)
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
// ---------- 消费者:队列帧 → 存储/广播/回写 ----------
|
|
636
|
-
|
|
637
|
-
/** 网关消费泵:队列帧按节点分发回其运行时(乱序防御/状态派生/下发门控在 runtime) */
|
|
638
|
-
private onSampleFromQueue(env: DaqSampleEnvelope): void {
|
|
639
|
-
this.consumedCount++
|
|
640
|
-
const rt = this.runtimes.get(env.nodeId)
|
|
641
|
-
if (!rt) return
|
|
642
|
-
if (rt.onSample(env) === 'late') this.lateDropped++
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/** 单 in-flight 写 + 有限重试:写库中攒批继续,失败保留批退避重试,耗尽丢弃并计数 */
|
|
646
|
-
private async flushTsdb(): Promise<void> {
|
|
647
|
-
if (this.tsdbWriting) return
|
|
648
|
-
this.tsdbWriting = true
|
|
649
|
-
try {
|
|
650
|
-
while (this.tsdbBuffer.length > 0) {
|
|
651
|
-
const batch = this.tsdbBuffer.splice(0, this.tsdbBuffer.length)
|
|
652
|
-
let ok = false
|
|
653
|
-
for (let attempt = 0; attempt < TSDB_WRITE_RETRIES && !ok; attempt++) {
|
|
654
|
-
try {
|
|
655
|
-
await getTsdb().writeSamples(batch)
|
|
656
|
-
this.storedCount += batch.length
|
|
657
|
-
ok = true
|
|
658
|
-
}
|
|
659
|
-
catch (err) {
|
|
660
|
-
if (attempt === TSDB_WRITE_RETRIES - 1) {
|
|
661
|
-
this.tsdbDropped += batch.length
|
|
662
|
-
log.error('[daq] 时序库写入失败(已重试,丢弃计数):', err instanceof Error ? err.message : err)
|
|
663
|
-
}
|
|
664
|
-
else {
|
|
665
|
-
await new Promise(r => setTimeout(r, 500 * (attempt + 1)))
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
// 帧批(v2:daq_frames;与样本同窗同重试语义)
|
|
671
|
-
// drainFrames 一次性取走并清空索引 —— 索引与缓冲必须同生命周期,否则查询会命中已刷盘的行
|
|
672
|
-
let pendingFrames = this.drainFrames()
|
|
673
|
-
while (pendingFrames.length > 0) {
|
|
674
|
-
const batch = pendingFrames
|
|
675
|
-
let ok = false
|
|
676
|
-
for (let attempt = 0; attempt < TSDB_WRITE_RETRIES && !ok; attempt++) {
|
|
677
|
-
try {
|
|
678
|
-
await getTsdb().writeFrames(batch)
|
|
679
|
-
this.framesStored += batch.length
|
|
680
|
-
ok = true
|
|
681
|
-
}
|
|
682
|
-
catch (err) {
|
|
683
|
-
if (attempt === TSDB_WRITE_RETRIES - 1) {
|
|
684
|
-
this.tsdbDropped += batch.length
|
|
685
|
-
log.error('[daq] 帧写入失败(已重试,丢弃计数):', err instanceof Error ? err.message : err)
|
|
686
|
-
}
|
|
687
|
-
else {
|
|
688
|
-
await new Promise(r => setTimeout(r, 500 * (attempt + 1)))
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
pendingFrames = this.drainFrames()
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
finally {
|
|
696
|
-
this.tsdbWriting = false
|
|
697
|
-
// 尾批自愈:flush 期间新样本/帧到达时 schedule 被跳过(tsdbWriting 守卫),
|
|
698
|
-
// 若此处不留 timer,停线后的残余批次将无定时器可触发,驻留内存直至进程重启
|
|
699
|
-
if (this.tsdbBuffer.length > 0 || this.frameBuffer.length > 0) this.scheduleTsdbFlush()
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
/** 绑定设备端到端回写:通道值进入 DeviceTwin.telemetry(键名 = 模板 telemetryKey 数据,缺省 templateKey);
|
|
704
|
-
* 状态随行:节点 alarm 派生自用户设置的量程/预警带(数据驱动),透传给孪生而非让孪生按硬编码阈值猜 */
|
|
705
|
-
private pendingBackfill = new Map<string, Record<string, number | string | boolean>>()
|
|
706
|
-
|
|
707
|
-
/** 同绑定 siblings 缓存(1s TTL):回写热路径不再逐样本全量 scan,O(N²)→O(N)/周期。
|
|
708
|
-
* 用有界 LRU 而非「超 500 整体 clear()」——后者会造成周期性全量缓存穿透。 */
|
|
709
|
-
private siblingsCache: LruLike<string, { at: number, list: DaqNode[] }> = new LruMap(500)
|
|
710
|
-
|
|
711
|
-
private siblingsOf(bindingId: string): DaqNode[] {
|
|
712
|
-
const hit = this.siblingsCache.get(bindingId)
|
|
713
|
-
if (hit && Date.now() - hit.at < 1000) return hit.list
|
|
714
|
-
const list = this.repo.all().filter(n => n.deviceIds.includes(bindingId))
|
|
715
|
-
this.siblingsCache.set(bindingId, { at: Date.now(), list })
|
|
716
|
-
return list
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
private writeBackTelemetry(node: DaqNode): void {
|
|
720
|
-
if (node.deviceIds.length === 0 || node.value == null) return
|
|
721
|
-
const host = getDaqHostPorts()
|
|
722
|
-
if (!host) return // 端口未装配(边缘独立/装配前):不攒积压,直接跳过回写
|
|
723
|
-
const key = findDaqTemplate(node.templateKey)?.telemetryKey ?? node.templateKey
|
|
724
|
-
// 多对多绑定:向每台绑定设备回写通道值;同设备多节点取最严重节点态
|
|
725
|
-
// (alarm > warn > ok/offline),避免"最近写者定态"抖动
|
|
726
|
-
for (const deviceId of node.deviceIds) {
|
|
727
|
-
const siblings = this.siblingsOf(deviceId)
|
|
728
|
-
const worst = siblings.some(n => n.state === 'alarm')
|
|
729
|
-
? 'alarm'
|
|
730
|
-
: siblings.some(n => n.state === 'warn') ? 'warn' : 'ok'
|
|
731
|
-
const acc = this.pendingBackfill.get(deviceId) ?? {}
|
|
732
|
-
acc[key] = node.value
|
|
733
|
-
this.pendingBackfill.set(deviceId, acc)
|
|
734
|
-
const res = host.telemetry.applyTelemetry(deviceId, acc, worst)
|
|
735
|
-
if (!res.ok) {
|
|
736
|
-
// 目标设备已被删除:从本节点解绑该设备(其余绑定保留),链路自愈
|
|
737
|
-
this.pendingBackfill.delete(deviceId)
|
|
738
|
-
node.deviceIds = node.deviceIds.filter(d => d !== deviceId)
|
|
739
|
-
node.deviceBindingId = node.deviceIds[0] ?? null
|
|
740
|
-
this.repo.flushNow()
|
|
741
|
-
this.emitNodeChanged('updated', node)
|
|
742
|
-
continue
|
|
743
|
-
}
|
|
744
|
-
this.pendingBackfill.delete(deviceId)
|
|
745
|
-
if (res.twinId) this.pushTwinTelemetry(res.twinId)
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/** 遥测 WS 推送(1s/设备节流):孪生状态/遥测事件化直推,前端全量轮询降级为断线兜底 */
|
|
750
|
-
private twinPushAt = new Map<string, number>()
|
|
751
|
-
|
|
752
|
-
private pushTwinTelemetry(twinId: string): void {
|
|
753
|
-
const now = Date.now()
|
|
754
|
-
if (now - (this.twinPushAt.get(twinId) ?? 0) < 1000) return
|
|
755
|
-
this.twinPushAt.set(twinId, now)
|
|
756
|
-
const payload = getDaqHostPorts()?.telemetry.scenePayload(twinId)
|
|
757
|
-
if (payload) this.broadcast?.('device.updated', payload)
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
private emitNodeChanged(op: AepDaqNodeChange['op'], node: DaqNode | null): void {
|
|
761
|
-
const payload: AepDaqNodeChange = { op, node: node ? node.toView() : null }
|
|
762
|
-
this.broadcast?.('daq.node.changed', payload)
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
private emitController(): void {
|
|
766
|
-
this.broadcast?.('daq.controller', this.controllerState())
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
/** ws.ts 的 broadcastSceneEvent 在此装配(daq 路由模块加载时调用一次) */
|
|
770
|
-
setBroadcast(fn: BroadcastFn | null): void {
|
|
771
|
-
this.broadcast = fn
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/** minIntervalMs / alarmsRaised / framesStored 都是本方法**实际返回**的字段,但 AepDaqControllerState
|
|
775
|
-
* 未收录(协议类型与实现漂移):minIntervalMs 被前端 useDaqStream 消费,alarmsRaised 被
|
|
776
|
-
* server/api/metrics.ts 消费(framesStored 供管线指标展示)。这里按实现补齐返回面 —— 见报告。 */
|
|
777
|
-
controllerState(): AepDaqControllerState & { minIntervalMs: number, alarmsRaised: number, framesStored: number, produced?: number, consumed?: number, dropped?: number, samplesStored?: number, tsdbDropped?: number } {
|
|
778
|
-
// 丢弃 = 队列层真实丢弃(inproc 拥塞/mqtt 断连)+ 消费侧乱序迟到帧(诚实可见)
|
|
779
|
-
const queueLost = g_queueLost()
|
|
780
|
-
// 单次遍历(hardening PERF-1):status 高频路径不再对全表多次 all()
|
|
781
|
-
const nodes = this.repo.all()
|
|
782
|
-
return {
|
|
783
|
-
running: this.running,
|
|
784
|
-
defaultIntervalMs: this.defaultIntervalMs,
|
|
785
|
-
minIntervalMs: this.minIntervalMs,
|
|
786
|
-
defaultPublishIntervalMs: this.defaultPublishIntervalMs,
|
|
787
|
-
minPublishIntervalMs: this.minPublishIntervalMs,
|
|
788
|
-
queryDisplayIntervalMs: this.queryDisplayIntervalMs,
|
|
789
|
-
minQueryDisplayIntervalMs: this.minQueryDisplayIntervalMs,
|
|
790
|
-
nodesTotal: nodes.length,
|
|
791
|
-
nodesOnline: this.running ? nodes.filter(n => n.enabled).length : 0,
|
|
792
|
-
produced: this.producedCount,
|
|
793
|
-
consumed: this.consumedCount,
|
|
794
|
-
dropped: Math.max(0, this.producedCount - this.consumedCount) + queueLost + this.lateDropped,
|
|
795
|
-
samplesStored: this.storedCount,
|
|
796
|
-
tsdbDropped: this.tsdbDropped,
|
|
797
|
-
alarmsRaised: this.alarmsRaised,
|
|
798
|
-
framesStored: this.framesStored,
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
/** infra 重连后重挂消费者到新队列实例(MQTT↔进程内切换) */
|
|
803
|
-
async reattachQueue(): Promise<void> {
|
|
804
|
-
this.pipelineReady = false
|
|
805
|
-
const queue = await getDaqQueue()
|
|
806
|
-
this.queueUnsub?.()
|
|
807
|
-
this.queueUnsub = queue.consume(env => this.onSampleFromQueue(env))
|
|
808
|
-
this.pipelineReady = true
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
// ---------- 查询 ----------
|
|
812
|
-
|
|
813
|
-
listViews(): DaqNodeView[] {
|
|
814
|
-
this.ensureLoop()
|
|
815
|
-
return this.repo.all().map(n => n.toView())
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
byId(id: string): DaqNode | undefined {
|
|
819
|
-
return this.repo.byId(id)
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
/** 节点历史(时序库查询透传;raw 或 bucket 聚合形态) */
|
|
823
|
-
async samples(id: string, opts: { fromMs?: number, toMs?: number, bucketMs?: number, limit?: number }) {
|
|
824
|
-
this.ensureLoop()
|
|
825
|
-
await tsdbReady
|
|
826
|
-
const node = this.repo.byId(id)
|
|
827
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
828
|
-
return getTsdb().query(id, opts)
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* 帧查询的「内存读穿透」索引 —— 帧先入 frameBuffer 再广播 thumbUrl(contentUrl),
|
|
833
|
-
* TSDB 为 500ms 防抖异步刷盘,收到 WS 立刻回查会在落库前 404,故查询侧先看 buffer。
|
|
834
|
-
*
|
|
835
|
-
* 为什么要有索引:早先 frameContent 直接线性扫 frameBuffer,而 frames() 更糟 ——
|
|
836
|
-
* 它对每个 pending 行都调一次 framesFromBuffer(),即**在 O(n) 的外层里再套 O(n) 的全扫**
|
|
837
|
-
* (n = FRAME_BUFFER_CAP = 2000):突发写入后缓冲全满时,单次 REST 查询 ≈ 4×10⁶ 次迭代
|
|
838
|
-
* + 2000 次多余对象构造,而它和 250ms 采样 sweep 跑在同一个事件循环上。
|
|
839
|
-
*
|
|
840
|
-
* 现在:byNode 按节点分桶(范围查询只扫该节点的行),byKey 给出 (nodeId, tsMs) 的 O(1) 命中。
|
|
841
|
-
* 两个索引与 frameBuffer 严格同生命周期 —— 所有 push/淘汰/flush 都必须经下面的私有方法,
|
|
842
|
-
* 不允许直接操作 frameBuffer,否则索引会与缓冲漂移(表现为"刚采到的帧查不到")。
|
|
843
|
-
*/
|
|
844
|
-
private readonly frameByNode = new Map<string, DaqFrameRow[]>()
|
|
845
|
-
private readonly frameByKey = new Map<string, DaqFrameRow>()
|
|
846
|
-
|
|
847
|
-
/** 帧索引键((nodeId, tsMs) 唯一:同一节点同一毫秒只会有一帧) */
|
|
848
|
-
private static frameKey(nodeId: string, tsMs: number): string {
|
|
849
|
-
return `${nodeId}@${tsMs}`
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
/** 入缓冲 + 同步三处索引 */
|
|
853
|
-
private pushFrame(row: DaqFrameRow): void {
|
|
854
|
-
this.frameBuffer.push(row)
|
|
855
|
-
const key = DaqController.frameKey(row.nodeId, row.tsMs)
|
|
856
|
-
this.frameByKey.set(key, row)
|
|
857
|
-
const bucket = this.frameByNode.get(row.nodeId)
|
|
858
|
-
if (bucket) bucket.push(row)
|
|
859
|
-
else this.frameByNode.set(row.nodeId, [row])
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
/** 淘汰最旧若干行,并同步清理索引(避免索引持有已淘汰行的强引用 → 内存泄漏) */
|
|
863
|
-
private evictFrames(keepLast: number): number {
|
|
864
|
-
const excess = this.frameBuffer.length - keepLast
|
|
865
|
-
if (excess <= 0) return 0
|
|
866
|
-
const dropped = this.frameBuffer.splice(0, excess)
|
|
867
|
-
for (const row of dropped) {
|
|
868
|
-
const key = DaqController.frameKey(row.nodeId, row.tsMs)
|
|
869
|
-
// 同键只可能有一行;但仍比对引用,防同毫秒重采覆盖后误删新行
|
|
870
|
-
if (this.frameByKey.get(key) === row) this.frameByKey.delete(key)
|
|
871
|
-
const bucket = this.frameByNode.get(row.nodeId)
|
|
872
|
-
if (!bucket) continue
|
|
873
|
-
const idx = bucket.indexOf(row)
|
|
874
|
-
if (idx >= 0) bucket.splice(idx, 1)
|
|
875
|
-
if (bucket.length === 0) this.frameByNode.delete(row.nodeId)
|
|
876
|
-
}
|
|
877
|
-
return dropped.length
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
/** 取走全部帧(刷盘用)并清空索引 */
|
|
881
|
-
private drainFrames(): DaqFrameRow[] {
|
|
882
|
-
if (this.frameBuffer.length === 0) return []
|
|
883
|
-
const batch = this.frameBuffer.splice(0, this.frameBuffer.length)
|
|
884
|
-
this.frameByNode.clear()
|
|
885
|
-
this.frameByKey.clear()
|
|
886
|
-
return batch
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
/** 单行 → 对外记录(纯映射,不做任何扫描) */
|
|
890
|
-
private static toFrameRecord(r: DaqFrameRow): DaqFrameRecord {
|
|
891
|
-
return {
|
|
892
|
-
at: r.tsMs,
|
|
893
|
-
kind: r.kind,
|
|
894
|
-
points: r.kind === 'vector' ? DaqController.pointsFromMeta(r.meta) : undefined,
|
|
895
|
-
metrics: r.metrics,
|
|
896
|
-
meta: r.meta,
|
|
897
|
-
deviceBindingId: r.deviceBindingId ?? null,
|
|
898
|
-
lineId: r.lineId ?? null,
|
|
899
|
-
productId: r.productId ?? null,
|
|
900
|
-
recipeId: r.recipeId ?? null,
|
|
901
|
-
runId: r.runId ?? null,
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
/** (nodeId, tsMs) 精确命中未刷盘帧;O(1) */
|
|
906
|
-
private bufferedFrameAt(id: string, tsMs: number): DaqFrameRow | undefined {
|
|
907
|
-
return this.frameByKey.get(DaqController.frameKey(id, tsMs))
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/** 向量点列从 meta.points 还原(与 TSDB adapter 同规则:非数组/空/越界/非数值 → undefined) */
|
|
911
|
-
private static pointsFromMeta(meta: Record<string, unknown>): number[] | undefined {
|
|
912
|
-
const p = meta.points
|
|
913
|
-
if (!Array.isArray(p) || p.length === 0 || p.length > 4096) return undefined
|
|
914
|
-
return p.every(x => Number.isFinite(Number(x))) ? p.map(Number) : undefined
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/** 节点帧历史(v2:向量/图像元数据;像素按需经 frameContent 从对象存储取) */
|
|
918
|
-
async frames(id: string, opts: { fromMs?: number, toMs?: number, kind?: 'vector' | 'image', limit?: number }) {
|
|
919
|
-
this.ensureLoop()
|
|
920
|
-
await tsdbReady
|
|
921
|
-
const node = this.repo.byId(id)
|
|
922
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
923
|
-
const rows = await getTsdb().queryFrames(id, opts)
|
|
924
|
-
// 未刷盘的帧补进结果集:同 (nodeId, tsMs) 以落库行为准(去重),按 at 降序
|
|
925
|
-
const seen = new Set(rows.map(r => r.at))
|
|
926
|
-
const toMs = opts.toMs ?? Date.now()
|
|
927
|
-
const fromMs = opts.fromMs ?? 0
|
|
928
|
-
// 只扫本节点的桶(而非整条缓冲),再按范围/类型过滤;映射用纯函数,无二次扫描
|
|
929
|
-
const pending = (this.frameByNode.get(id) ?? [])
|
|
930
|
-
.filter(r => (opts.kind == null || r.kind === opts.kind)
|
|
931
|
-
&& r.tsMs >= fromMs && r.tsMs <= toMs
|
|
932
|
-
&& !seen.has(r.tsMs))
|
|
933
|
-
.sort((a, b) => b.tsMs - a.tsMs)
|
|
934
|
-
.map(DaqController.toFrameRecord)
|
|
935
|
-
return [...rows, ...pending].slice(0, Math.min(Math.max(opts.limit ?? 100, 1), 1000))
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
/** 帧内容(图像主图/缩略图;从对象存储读取后由 REST 流式返回) */
|
|
939
|
-
async frameContent(id: string, tsMs: number, thumb: boolean): Promise<{ data: Buffer, mime: string }> {
|
|
940
|
-
this.ensureLoop()
|
|
941
|
-
await tsdbReady
|
|
942
|
-
const node = this.repo.byId(id)
|
|
943
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
944
|
-
// 读穿透:先查内存攒批缓冲(帧刚 ingest、尚未刷盘时命中),未命中再查 TSDB
|
|
945
|
-
const buffered = this.bufferedFrameAt(id, tsMs)
|
|
946
|
-
const rows = buffered
|
|
947
|
-
? [DaqController.toFrameRecord(buffered)]
|
|
948
|
-
: await getTsdb().queryFrames(id, { fromMs: tsMs - 1, toMs: tsMs + 1, limit: 5 })
|
|
949
|
-
if (rows.length === 0) rows.push(...await getTsdb().queryFrames(id, { fromMs: tsMs - 1, toMs: tsMs + 1, limit: 5 }))
|
|
950
|
-
const row = rows.find(r => r.at === tsMs)
|
|
951
|
-
if (!row || row.kind !== 'image') throw Object.assign(new Error(`帧不存在: ${id}@${tsMs}`), { status: 404 })
|
|
952
|
-
const key = (thumb ? row.meta.thumbKey : row.meta.objectKey) as string | undefined
|
|
953
|
-
if (!key) throw Object.assign(new Error(`帧对象缺失: ${id}@${tsMs}`), { status: 404 })
|
|
954
|
-
const data = await getObjectStore().get(String(key))
|
|
955
|
-
return { data, mime: typeof row.meta.mime === 'string' ? row.meta.mime : 'image/png' }
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
/** 后端能力自描述(meta 用) */
|
|
959
|
-
backends(): { tsdb: string, queue: string, objectstore: string, pluginDrivers: string[], drivers: typeof DAQ_DRIVERS } {
|
|
960
|
-
return { tsdb: getTsdb().backend, queue: g_queueBackend ?? 'inproc', objectstore: getObjectStore().backend, pluginDrivers: listPluginDrivers(), drivers: DAQ_DRIVERS }
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
// ---------- 控制器全局 ----------
|
|
964
|
-
|
|
965
|
-
startAll(): AepDaqControllerState {
|
|
966
|
-
this.running = true
|
|
967
|
-
this.ensureLoop()
|
|
968
|
-
startAlarmEscalator() // S5:升级通知扫描器(懒启动,进程内单例)
|
|
969
|
-
this.emitController()
|
|
970
|
-
return this.controllerState()
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
stopAll(): AepDaqControllerState {
|
|
974
|
-
this.running = false
|
|
975
|
-
for (const n of this.repo.all()) {
|
|
976
|
-
if (n.enabled) n.state = 'offline'
|
|
977
|
-
}
|
|
978
|
-
this.emitController()
|
|
979
|
-
return this.controllerState()
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* 暂停全部采集 → 网关停止;恢复全部采集 → 网关启动。
|
|
984
|
-
* 节点启停与网关暂停完全独立:enabled 标志是唯一采集资格,暂停期间节点
|
|
985
|
-
* 的 enabled 不被改动,恢复后只有 enabled=true(即暂停时刻在采集的那批)
|
|
986
|
-
* 的节点恢复采样;暂停前/暂停期间手动停用的节点保持停用,不会被自动拉起。
|
|
987
|
-
*/
|
|
988
|
-
pauseAll(): AepDaqControllerState {
|
|
989
|
-
return this.stopAll()
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
resumeAll(): AepDaqControllerState {
|
|
993
|
-
return this.startAll()
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
configure(opts: { defaultIntervalMs?: number, defaultPublishIntervalMs?: number }): AepDaqControllerState {
|
|
997
|
-
let changed = false
|
|
998
|
-
if (typeof opts.defaultIntervalMs === 'number' && opts.defaultIntervalMs >= this.minIntervalMs) {
|
|
999
|
-
this.defaultIntervalMs = Math.min(60_000, Math.round(opts.defaultIntervalMs))
|
|
1000
|
-
changed = true
|
|
1001
|
-
}
|
|
1002
|
-
if (typeof opts.defaultPublishIntervalMs === 'number' && opts.defaultPublishIntervalMs >= this.minPublishIntervalMs) {
|
|
1003
|
-
this.defaultPublishIntervalMs = Math.min(60_000, Math.round(opts.defaultPublishIntervalMs))
|
|
1004
|
-
changed = true
|
|
1005
|
-
}
|
|
1006
|
-
if (changed) {
|
|
1007
|
-
// 网关缺省变更即刻生效:全部运行时重置节拍(元数据 null 的节点跟随新缺省)
|
|
1008
|
-
for (const rt of this.runtimes.values()) rt.rearm()
|
|
1009
|
-
}
|
|
1010
|
-
this.emitController()
|
|
1011
|
-
return this.controllerState()
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
// ---------- 节点 CRUD(单点控制入口)----------
|
|
1015
|
-
|
|
1016
|
-
create(input: DaqCreateInput): DaqNode {
|
|
1017
|
-
this.ensureLoop()
|
|
1018
|
-
// 节点必绑模板:模板是量程/单位/物理语义(ch)的唯一来源,无模板节点在孪生
|
|
1019
|
-
// 场景无元信息可展示(UI 全路径经模板创建;直接 REST 裸调在此收口)
|
|
1020
|
-
if (!input.templateRef) {
|
|
1021
|
-
throw new AppError(400, ErrorCodes.VALIDATION_ERROR, 'templateRef 必填:数采节点必须绑定信号模板')
|
|
1022
|
-
}
|
|
1023
|
-
const tpl = findDaqTemplate(daqKeyFromRef(input.templateRef))
|
|
1024
|
-
if (!tpl) {
|
|
1025
|
-
throw new AppError(404, ErrorCodes.NOT_FOUND, `未知数采模板: ${input.templateRef}`)
|
|
1026
|
-
}
|
|
1027
|
-
const seq = this.repo.all().filter(n => n.templateKey === daqKeyFromRef(input.templateRef!)).length + 1
|
|
1028
|
-
const node = new DaqNode({
|
|
1029
|
-
id: `dn-${randomUUID().slice(0, 8)}`,
|
|
1030
|
-
templateRef: input.templateRef,
|
|
1031
|
-
name: input.name ?? (tpl ? `${tpl.name} ${String(seq).padStart(2, '0')}` : (input.driver && input.driver !== 'mock' ? `${input.driver.toUpperCase()} 通道` : undefined)),
|
|
1032
|
-
driver: input.driver ? normalizeDriverKind(input.driver) : undefined,
|
|
1033
|
-
driverConfig: input.driverConfig ?? {},
|
|
1034
|
-
transform: normalizeDataTransform(input.transform),
|
|
1035
|
-
enabled: input.enabled,
|
|
1036
|
-
intervalMs: input.intervalMs == null ? null : Math.max(this.minIntervalMs, Math.min(60_000, Math.round(input.intervalMs))),
|
|
1037
|
-
publishIntervalMs: input.publishIntervalMs == null
|
|
1038
|
-
? null
|
|
1039
|
-
: Math.max(this.minPublishIntervalMs, Math.min(60_000, Math.round(input.publishIntervalMs))),
|
|
1040
|
-
unit: input.unit,
|
|
1041
|
-
decimals: input.decimals,
|
|
1042
|
-
min: input.min,
|
|
1043
|
-
max: input.max,
|
|
1044
|
-
warnLow: input.warnLow,
|
|
1045
|
-
warnHigh: input.warnHigh,
|
|
1046
|
-
deviceBindingId: input.deviceBindingId ?? null,
|
|
1047
|
-
posX: input.posX,
|
|
1048
|
-
posZ: input.posZ,
|
|
1049
|
-
lineId: input.lineId,
|
|
1050
|
-
semantics: input.semantics,
|
|
1051
|
-
})
|
|
1052
|
-
this.repo.insert(node)
|
|
1053
|
-
this.syncRuntimes() // 新节点即刻入网关注册表(边缘运行时实例化)
|
|
1054
|
-
this.emitNodeChanged('added', node)
|
|
1055
|
-
return node
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
patch(id: string, patch: DaqPatchInput): DaqNode {
|
|
1059
|
-
const node = this.repo.byId(id)
|
|
1060
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
1061
|
-
if (patch.name !== undefined) node.name = patch.name
|
|
1062
|
-
if (patch.driver !== undefined) node.driver = normalizeDriverKind(patch.driver)
|
|
1063
|
-
if (patch.driverConfig !== undefined) node.driverConfig = { ...node.driverConfig, ...patch.driverConfig }
|
|
1064
|
-
if (patch.transform !== undefined) {
|
|
1065
|
-
if (patch.transform.kind === 'linear' && (!Number.isFinite(Number(patch.transform.scale)) || Number(patch.transform.scale) === 0)) {
|
|
1066
|
-
throw new AppError(400, ErrorCodes.VALIDATION_ERROR, '标定系数 scale 必须为非零数字(物理值 = scale × PLC值 + offset)')
|
|
1067
|
-
}
|
|
1068
|
-
node.transform = normalizeDataTransform(patch.transform)
|
|
1069
|
-
}
|
|
1070
|
-
if (patch.unit !== undefined) node.unit = patch.unit
|
|
1071
|
-
if (patch.decimals !== undefined) node.decimals = patch.decimals
|
|
1072
|
-
if (patch.min !== undefined) node.min = patch.min
|
|
1073
|
-
if (patch.max !== undefined) node.max = patch.max
|
|
1074
|
-
if (patch.warnLow !== undefined) node.warnLow = patch.warnLow
|
|
1075
|
-
if (patch.warnHigh !== undefined) node.warnHigh = patch.warnHigh
|
|
1076
|
-
let rearm = false
|
|
1077
|
-
if (patch.intervalMs !== undefined) {
|
|
1078
|
-
node.intervalMs = patch.intervalMs == null ? null : Math.max(this.minIntervalMs, Math.min(60_000, Math.round(patch.intervalMs)))
|
|
1079
|
-
rearm = true
|
|
1080
|
-
}
|
|
1081
|
-
if (patch.publishIntervalMs !== undefined) {
|
|
1082
|
-
// 下发节拍:null=跟随全局;否则钳到 [minPublishIntervalMs, 60s]
|
|
1083
|
-
// (minPublishIntervalMs 默认 0 → 0 仍表示「每帧随采样」语义)
|
|
1084
|
-
node.publishIntervalMs = patch.publishIntervalMs == null
|
|
1085
|
-
? null
|
|
1086
|
-
: Math.max(this.minPublishIntervalMs, Math.min(60_000, Math.round(patch.publishIntervalMs)))
|
|
1087
|
-
rearm = true
|
|
1088
|
-
}
|
|
1089
|
-
if (patch.enabled !== undefined) {
|
|
1090
|
-
node.enabled = patch.enabled
|
|
1091
|
-
if (!patch.enabled) node.state = 'offline'
|
|
1092
|
-
rearm = true
|
|
1093
|
-
}
|
|
1094
|
-
if (rearm) this.runtimes.get(id)?.rearm() // 元数据变更即刻生效(独立运行时节拍重置)
|
|
1095
|
-
if (patch.posX !== undefined) node.posX = patch.posX
|
|
1096
|
-
if (patch.posZ !== undefined) node.posZ = patch.posZ
|
|
1097
|
-
if (patch.lineId !== undefined) {
|
|
1098
|
-
const lid = String(patch.lineId)
|
|
1099
|
-
if (lid && !getDaqHostPorts()?.lineRun.lineExists(lid)) throw new AppError(404, ErrorCodes.NOT_FOUND, `产线不存在: ${lid}`)
|
|
1100
|
-
node.lineId = lid
|
|
1101
|
-
}
|
|
1102
|
-
if (patch.semantics !== undefined) node.semantics = String(patch.semantics)
|
|
1103
|
-
if (node.value != null) node.state = node.deriveState(node.value)
|
|
1104
|
-
this.repo.flushNow()
|
|
1105
|
-
this.emitNodeChanged('updated', node)
|
|
1106
|
-
return node
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
remove(id: string): void {
|
|
1110
|
-
const node = this.repo.byId(id)
|
|
1111
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
1112
|
-
this.repo.remove(id)
|
|
1113
|
-
this.runtimes.delete(id) // 运行时随节点注销
|
|
1114
|
-
// 键为 `${nodeId}::${metricKey}` 的告警态:节点删除后必须一并清理,
|
|
1115
|
-
// 否则「建-删节点」循环会让该 Map 单调增长(长跑内存泄漏),且重建同名节点会继承陈旧告警态。
|
|
1116
|
-
const prefix = `${id}::`
|
|
1117
|
-
for (const key of this.metricStates.keys()) {
|
|
1118
|
-
if (key.startsWith(prefix)) this.metricStates.delete(key)
|
|
1119
|
-
}
|
|
1120
|
-
// 级联清理:该节点的 Agent 绑定移除
|
|
1121
|
-
void import('../agents/node-bindings.repo').then(({ getAgentNodeBindingRepo }) => {
|
|
1122
|
-
getAgentNodeBindingRepo().removeNode(id)
|
|
1123
|
-
}).catch(() => {})
|
|
1124
|
-
this.emitNodeChanged('removed', node)
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
bind(id: string, deviceId: string | null): DaqNode {
|
|
1128
|
-
const node = this.repo.byId(id)
|
|
1129
|
-
if (!node) throw new AppError(404, ErrorCodes.NOT_FOUND, `数采节点不存在: ${id}`)
|
|
1130
|
-
if (deviceId && !getDaqHostPorts()?.telemetry.deviceExists(deviceId)) {
|
|
1131
|
-
throw new AppError(404, ErrorCodes.NOT_FOUND, `目标设备不存在: ${deviceId}`)
|
|
1132
|
-
}
|
|
1133
|
-
// 排他语义保留(deviceId=null 清空全部);多对多增删用 bindDevice/unbindDeviceNode/setDeviceBindings
|
|
1134
|
-
node.deviceIds = deviceId ? [deviceId] : []
|
|
1135
|
-
node.deviceBindingId = deviceId
|
|
1136
|
-
this.repo.flushNow()
|
|
1137
|
-
this.emitNodeChanged('updated', node)
|
|
1138
|
-
return node
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
/** 追加一台绑定设备((节点,设备)对唯一;已绑定则幂等返回) */
|
|
1142
|
-
bindDevice(id: string, deviceId: string): DaqNode {
|
|
1143
|
-
const node = this.repo.byId(id)
|
|
1144
|
-
if (!node) throw new AppError(404, ErrorCodes.NOT_FOUND, `数采节点不存在: ${id}`)
|
|
1145
|
-
if (!getDaqHostPorts()?.telemetry.deviceExists(deviceId)) {
|
|
1146
|
-
throw new AppError(404, ErrorCodes.NOT_FOUND, `目标设备不存在: ${deviceId}`)
|
|
1147
|
-
}
|
|
1148
|
-
if (node.deviceIds.includes(deviceId)) return node
|
|
1149
|
-
node.deviceIds = [...node.deviceIds, deviceId]
|
|
1150
|
-
node.deviceBindingId = node.deviceIds[0] ?? null
|
|
1151
|
-
this.repo.flushNow()
|
|
1152
|
-
this.emitNodeChanged('updated', node)
|
|
1153
|
-
return node
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
/** 解绑一台设备(其余绑定保留) */
|
|
1157
|
-
unbindDeviceNode(id: string, deviceId: string): DaqNode {
|
|
1158
|
-
const node = this.repo.byId(id)
|
|
1159
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
1160
|
-
if (!node.deviceIds.includes(deviceId)) return node
|
|
1161
|
-
node.deviceIds = node.deviceIds.filter(d => d !== deviceId)
|
|
1162
|
-
node.deviceBindingId = node.deviceIds[0] ?? null
|
|
1163
|
-
this.repo.flushNow()
|
|
1164
|
-
this.emitNodeChanged('updated', node)
|
|
1165
|
-
return node
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
/** 整体设定绑定设备列表(去重、校验存在性;全量替换) */
|
|
1169
|
-
setDeviceBindings(id: string, deviceIds: string[]): DaqNode {
|
|
1170
|
-
const node = this.repo.byId(id)
|
|
1171
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
1172
|
-
const unique = [...new Set(deviceIds.map(String).filter(Boolean))]
|
|
1173
|
-
for (const d of unique) {
|
|
1174
|
-
if (!getDaqHostPorts()?.telemetry.deviceExists(d)) {
|
|
1175
|
-
throw new AppError(404, ErrorCodes.NOT_FOUND, `目标设备不存在: ${d}`)
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
node.deviceIds = unique
|
|
1179
|
-
node.deviceBindingId = unique[0] ?? null
|
|
1180
|
-
this.repo.flushNow()
|
|
1181
|
-
this.emitNodeChanged('updated', node)
|
|
1182
|
-
return node
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
/** 设备删除级联:解绑其全部 DAQ 节点 + 清回写积压 + 广播(链路不再依赖下次回写失败自愈)。
|
|
1186
|
-
* flushNow(全量 JSON 序列化落盘)移出循环:逐节点落盘会随匹配数重复序列化整库 */
|
|
1187
|
-
unbindDevice(deviceId: string): void {
|
|
1188
|
-
this.pendingBackfill.delete(deviceId)
|
|
1189
|
-
this.siblingsCache.delete(deviceId)
|
|
1190
|
-
// twinPushAt 以 twinId 为键:设备删除后同样要清,否则节流表随设备增删单调增长
|
|
1191
|
-
this.twinPushAt.delete(deviceId)
|
|
1192
|
-
let touched = false
|
|
1193
|
-
for (const node of this.repo.all()) {
|
|
1194
|
-
if (!node.deviceIds.includes(deviceId)) continue
|
|
1195
|
-
node.deviceIds = node.deviceIds.filter(d => d !== deviceId)
|
|
1196
|
-
node.deviceBindingId = node.deviceIds[0] ?? null
|
|
1197
|
-
touched = true
|
|
1198
|
-
this.emitNodeChanged('updated', node)
|
|
1199
|
-
}
|
|
1200
|
-
if (touched) this.repo.flushNow()
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
/** 连接测试:按协议参数建连 + 读一次(前端"测试连接"按钮直达) */
|
|
1204
|
-
async testDriver(kind: DaqDriverKind, driverConfig: Record<string, unknown>): Promise<DriverTestResult> {
|
|
1205
|
-
const drv = resolveDaqDriver(normalizeDriverKind(kind))
|
|
1206
|
-
if (!(await drv.available())) {
|
|
1207
|
-
return { ok: false, message: `协议栈不可用(包未安装或加载失败): ${kind}` }
|
|
1208
|
-
}
|
|
1209
|
-
return drv.test(driverConfig)
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/** 存量节点连接测试(用节点已保存参数) */
|
|
1213
|
-
async testNode(id: string): Promise<DriverTestResult> {
|
|
1214
|
-
const node = this.repo.byId(id)
|
|
1215
|
-
if (!node) throw Object.assign(new Error(`数采节点不存在: ${id}`), { status: 404 })
|
|
1216
|
-
return this.testDriver(node.driver, node.driverConfig)
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
/** 驱动可用性(meta;包缺失 → planned 提示而非硬失败;含插件驱动) */
|
|
1220
|
-
async driverAvailability(): Promise<Record<string, boolean>> {
|
|
1221
|
-
return probeDriverAvailability()
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/** 驱动目录(内置 + 插件自描述合并;前端「添加节点」下拉/动态参数表单数据源) */
|
|
1225
|
-
async driverCatalog(): Promise<ReturnType<typeof driverCatalog>> {
|
|
1226
|
-
return driverCatalog()
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
// ---------- 存量迁移(device-twins kind=daq → DaqNode 幂等供给) ----------
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* 旧前端把数采实例存成 device-twins(kind='daq');切换为服务端权威实体后,
|
|
1233
|
-
* 首次访问把存量孪生逐条升格为 DaqNode(位置/名称沿用)。幂等:确定性主键
|
|
1234
|
-
* `dn-lg-<twinId>` —— 重复供给/HMR 双实例都不会产生第二条。
|
|
1235
|
-
*/
|
|
1236
|
-
provisionLegacyTwins(): void {
|
|
1237
|
-
this.ensureLoop()
|
|
1238
|
-
const twins = getDaqHostPorts()?.telemetry.listDaqTwins() ?? []
|
|
1239
|
-
for (const t of twins) {
|
|
1240
|
-
if (!t.modelRef) continue
|
|
1241
|
-
const stableId = `dn-lg-${t.id}`
|
|
1242
|
-
if (this.repo.byId(stableId)) continue
|
|
1243
|
-
const node = new DaqNode({
|
|
1244
|
-
id: stableId,
|
|
1245
|
-
templateRef: t.modelRef,
|
|
1246
|
-
name: t.name,
|
|
1247
|
-
posX: t.posX,
|
|
1248
|
-
posZ: t.posZ,
|
|
1249
|
-
})
|
|
1250
|
-
;(node as unknown as { sourceTwinId?: string }).sourceTwinId = t.id
|
|
1251
|
-
this.repo.insert(node)
|
|
1252
|
-
}
|
|
1253
|
-
this.syncRuntimes()
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
// ---------- 单例(HMR 存活) ----------
|
|
1258
|
-
|
|
1259
|
-
const g = globalThis as typeof globalThis & { __daqController?: DaqController, __daqQueueBackend?: string }
|
|
1260
|
-
let g_queueBackend = 'inproc'
|
|
1261
|
-
|
|
1262
|
-
/** 当前队列适配器的真实丢弃计数(mqtt 断连/inproc 拥塞) */
|
|
1263
|
-
function g_queueLost(): number {
|
|
1264
|
-
const q = (globalThis as typeof globalThis & { __daqQueue?: { lost?: number } }).__daqQueue
|
|
1265
|
-
return q?.lost ?? 0
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
export function getDaqController(): DaqController {
|
|
1269
|
-
g.__daqController ??= new DaqController()
|
|
1270
|
-
return g.__daqController
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
/**
|
|
1274
|
-
* 广播装配(daq REST 路由模块加载时调用):把 ws.ts 的 broadcastSceneEvent
|
|
1275
|
-
* 注入控制器 —— 路由模块是 nitro 按需加载,小镇页首访必经 GET /api/workshop/daq,
|
|
1276
|
-
* 因此无需常驻插件即可保证采样帧有出口。
|
|
1277
|
-
*/
|
|
1278
|
-
export function bindDaqBroadcast(fn: BroadcastFn | null): void {
|
|
1279
|
-
getDaqController().setBroadcast(fn)
|
|
1280
|
-
// 同时确保管线启动(队列消费在位)——REST 首访即全链路上电
|
|
1281
|
-
void getDaqQueue().then((q) => {
|
|
1282
|
-
g_queueBackend = q.backend
|
|
1283
|
-
}).catch(() => {})
|
|
1284
|
-
}
|