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,1319 +0,0 @@
|
|
|
1
|
-
import { b as useUserStore, ar as $fetch$2 } from '../virtual/entry.mjs';
|
|
2
|
-
import { u as useTownBus } from './useTownBus-D9SoIsAN.mjs';
|
|
3
|
-
import { watch, reactive } from 'vue';
|
|
4
|
-
import { defineStore } from 'pinia';
|
|
5
|
-
|
|
6
|
-
//#region app/stores/workshop/connection.ts
|
|
7
|
-
/**
|
|
8
|
-
* WS 连接管理:单条 WebSocket 复用订阅多 channel(sub/unsub),
|
|
9
|
-
* 指数退避重连 + lastSeq 断线续传;连接态/seq 供状态条渲染。
|
|
10
|
-
*/
|
|
11
|
-
/** 半死连接阈值:超过该时长无任何帧(pong/事件)→ 主动断开重连 */
|
|
12
|
-
var STALE_MS = 45e3;
|
|
13
|
-
/**
|
|
14
|
-
* 数据级失联阈值:pong 仍应答但长期无数据帧(服务端 HMR 后 hub 失联等)→ 主动重连恢复订阅。
|
|
15
|
-
* 需与心跳周期(30s)联动:检测延迟最坏为阈值 + 一个心跳周期。阈值须显著大于
|
|
16
|
-
* 空闲 channel 的正常静默(无活动即无数据帧),避免健康空闲连接被反复重连。
|
|
17
|
-
*/
|
|
18
|
-
var DATA_STALE_MS = 9e4;
|
|
19
|
-
var useWsConnectionStore = defineStore("workshop.connection", { state: () => ({
|
|
20
|
-
state: "closed",
|
|
21
|
-
/** 已订阅 channel → 最近 seq(断线续传游标) */
|
|
22
|
-
cursors: {},
|
|
23
|
-
/** 最近一次数据帧到达时间(ms;0 = 尚无数据)——状态条"最后已知更新"依据(open-tag 规范:断连时不假装在线) */
|
|
24
|
-
lastDataAt: 0,
|
|
25
|
-
/** 断线期间是否有已订阅 channel 游标待对齐(重连后收到首帧清零) */
|
|
26
|
-
pendingReplay: false,
|
|
27
|
-
lastError: "",
|
|
28
|
-
retryCount: 0
|
|
29
|
-
}) });
|
|
30
|
-
/** WS 会话对象(非 store:持原生 WebSocket,事件回调注入消费方) */
|
|
31
|
-
var WorkshopWsSession = class {
|
|
32
|
-
onEvent;
|
|
33
|
-
onStateChange;
|
|
34
|
-
onPendingReplay;
|
|
35
|
-
onDataRecovered;
|
|
36
|
-
ws = null;
|
|
37
|
-
retry = 0;
|
|
38
|
-
closedByUser = false;
|
|
39
|
-
subscribed = /* @__PURE__ */ new Set();
|
|
40
|
-
/** 每 channel 订阅引用计数:多组件(总览页/控制台/抽屉)共享同一订阅,最后一个引用释放才真正退订 */
|
|
41
|
-
refCounts = /* @__PURE__ */ new Map();
|
|
42
|
-
/** 每 channel 最近 seq(重连续传游标;由事件回调 updateCursor 持续推进) */
|
|
43
|
-
lastSeqByChannel = /* @__PURE__ */ new Map();
|
|
44
|
-
/** 最近收帧时间(半死连接检测基准) */
|
|
45
|
-
lastFrameAt = 0;
|
|
46
|
-
/** 最近收数据帧时间(pong 除外;数据级失联检测基准) */
|
|
47
|
-
lastDataAt = 0;
|
|
48
|
-
/** 用户 token(用户级隔离:sub 帧鉴权;由消费方注入) */
|
|
49
|
-
userToken = "";
|
|
50
|
-
constructor(onEvent, onStateChange, onPendingReplay = () => {}, onDataRecovered = () => {}) {
|
|
51
|
-
this.onEvent = onEvent;
|
|
52
|
-
this.onStateChange = onStateChange;
|
|
53
|
-
this.onPendingReplay = onPendingReplay;
|
|
54
|
-
this.onDataRecovered = onDataRecovered;
|
|
55
|
-
}
|
|
56
|
-
/** 事件消费方推进游标(供重连 lastSeq 续传) */
|
|
57
|
-
updateCursor(channelId, seq) {
|
|
58
|
-
if (Number.isFinite(seq)) this.lastSeqByChannel.set(channelId, seq);
|
|
59
|
-
}
|
|
60
|
-
url() {
|
|
61
|
-
return "ws://localhost/api/workshop/ws";
|
|
62
|
-
}
|
|
63
|
-
connect() {}
|
|
64
|
-
/** 半死连接检测(心跳窗口):无任何帧超阈值 → 主动断开;pong-only 无数据帧超阈值(HMR 后 hub 失联)→ 主动断开重连恢复订阅 */
|
|
65
|
-
checkStale() {
|
|
66
|
-
const ws = this.ws;
|
|
67
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) return;
|
|
68
|
-
if (Date.now() - this.lastFrameAt > STALE_MS) ws.close();
|
|
69
|
-
else if (Date.now() - this.lastDataAt > DATA_STALE_MS) ws.close();
|
|
70
|
-
}
|
|
71
|
-
sendSub(channelId, lastSeq) {
|
|
72
|
-
const frame = {
|
|
73
|
-
type: "sub",
|
|
74
|
-
channelId,
|
|
75
|
-
token: this.userToken
|
|
76
|
-
};
|
|
77
|
-
if (typeof lastSeq === "number") frame.lastSeq = lastSeq;
|
|
78
|
-
this.ws?.send(JSON.stringify(frame));
|
|
79
|
-
}
|
|
80
|
-
subscribe(channelId, lastSeq) {
|
|
81
|
-
const prev = this.refCounts.get(channelId) ?? 0;
|
|
82
|
-
this.refCounts.set(channelId, prev + 1);
|
|
83
|
-
if (prev > 0) return;
|
|
84
|
-
this.subscribed.add(channelId);
|
|
85
|
-
if (typeof lastSeq === "number") this.lastSeqByChannel.set(channelId, lastSeq);
|
|
86
|
-
if (this.ws?.readyState === WebSocket.OPEN) this.sendSub(channelId, this.lastSeqByChannel.get(channelId));
|
|
87
|
-
else if (!this.ws) this.connect();
|
|
88
|
-
}
|
|
89
|
-
/** 建连但不订阅任何 channel:纯场景事件消费方(daq 实时帧)用。
|
|
90
|
-
* 服务端在连接层注册 scene peer,连上即收 daq.reading 等无频道广播。 */
|
|
91
|
-
ensureConnected() {}
|
|
92
|
-
unsubscribe(channelId) {
|
|
93
|
-
const prev = this.refCounts.get(channelId) ?? 0;
|
|
94
|
-
if (prev <= 1) {
|
|
95
|
-
this.refCounts.delete(channelId);
|
|
96
|
-
this.subscribed.delete(channelId);
|
|
97
|
-
if (this.ws?.readyState === WebSocket.OPEN) this.ws?.send(JSON.stringify({
|
|
98
|
-
type: "unsub",
|
|
99
|
-
channelId
|
|
100
|
-
}));
|
|
101
|
-
} else this.refCounts.set(channelId, prev - 1);
|
|
102
|
-
}
|
|
103
|
-
/** 当前 channel 的订阅引用数(0 = 会话已不持有;消费方据此决定是否清本地缓冲) */
|
|
104
|
-
refCount(channelId) {
|
|
105
|
-
return this.refCounts.get(channelId) ?? 0;
|
|
106
|
-
}
|
|
107
|
-
ping() {
|
|
108
|
-
try {
|
|
109
|
-
this.ws?.send(JSON.stringify({ type: "ping" }));
|
|
110
|
-
} catch {
|
|
111
|
-
try {
|
|
112
|
-
this.ws?.close();
|
|
113
|
-
} catch {}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
close() {
|
|
117
|
-
this.closedByUser = true;
|
|
118
|
-
this.ws?.close();
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
//#endregion
|
|
122
|
-
//#region app/stores/workshop/hitl.ts
|
|
123
|
-
/**
|
|
124
|
-
* HITL 全局待办 store:omp ask 对话框 + dcw 工具审批的统一待答视图。
|
|
125
|
-
*
|
|
126
|
-
* 数据源:
|
|
127
|
-
* - AEP hitl.request/hitl.resolved 帧(频道流 seq 帧与 channelId='' 全员直推
|
|
128
|
-
* 会各到一次,upsert 按 kind+id 幂等去重;徽标不依赖 channel 订阅)
|
|
129
|
-
* - GET /api/workshop/hitl/pending 快照(页面挂载/重连后的基线对齐)
|
|
130
|
-
*/
|
|
131
|
-
var keyOf = (i) => `${i.kind}:${i.id}`;
|
|
132
|
-
var useHitlStore = defineStore("workshop.hitl", {
|
|
133
|
-
state: () => ({
|
|
134
|
-
/** 当前待人工处理条目(kind+id 幂等) */
|
|
135
|
-
items: [],
|
|
136
|
-
/** 快照已加载(防重复拉取;WS 掉线重连后由 ensureBaseline 重置) */
|
|
137
|
-
snapshotLoaded: false
|
|
138
|
-
}),
|
|
139
|
-
getters: {
|
|
140
|
-
count: (state) => state.items.length,
|
|
141
|
-
/** 按 agent 分组(徽标下拉/跳转用) */
|
|
142
|
-
byAgent: (state) => {
|
|
143
|
-
const map = /* @__PURE__ */ new Map();
|
|
144
|
-
for (const i of state.items) {
|
|
145
|
-
const list = map.get(i.agentId) ?? [];
|
|
146
|
-
list.push(i);
|
|
147
|
-
map.set(i.agentId, list);
|
|
148
|
-
}
|
|
149
|
-
return map;
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
actions: {
|
|
153
|
-
/** AEP 帧消费(hitl.request / hitl.resolved;幂等 upsert/remove) */
|
|
154
|
-
applyEnvelope(e) {
|
|
155
|
-
if (e.type === "hitl.request") {
|
|
156
|
-
const item = e.payload;
|
|
157
|
-
const key = keyOf(item);
|
|
158
|
-
const idx = this.items.findIndex((i) => keyOf(i) === key);
|
|
159
|
-
if (idx >= 0) this.items[idx] = item;
|
|
160
|
-
else this.items.push(item);
|
|
161
|
-
} else if (e.type === "hitl.resolved") {
|
|
162
|
-
const r = e.payload;
|
|
163
|
-
this.items = this.items.filter((i) => keyOf(i) !== keyOf(r));
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
/** 快照对齐(挂载/重连;替换式 —— 以 REST 为准收敛 WS 期间的可能漂移) */
|
|
167
|
-
async loadSnapshot() {},
|
|
168
|
-
/** WS 断线重连后重新对齐 */
|
|
169
|
-
invalidate() {
|
|
170
|
-
this.snapshotLoaded = false;
|
|
171
|
-
},
|
|
172
|
-
clear() {
|
|
173
|
-
this.items = [];
|
|
174
|
-
this.snapshotLoaded = false;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
//#endregion
|
|
179
|
-
//#region app/composables/workshop/useEventBlocks.ts
|
|
180
|
-
/**
|
|
181
|
-
* 事件聚类引擎 — Codex/OpenHands 风格 turn block 增量版。
|
|
182
|
-
*
|
|
183
|
-
* 与旧版差异:
|
|
184
|
-
* - 增量聚类:只处理新增帧,块对象身份稳定(Vue 按 key 复用组件,流式更新不整树重建)
|
|
185
|
-
* - 内容智能去重:落定全文(status.message/agent.message)与已累计 delta 相同或为前缀扩展时
|
|
186
|
-
* 绝不重复渲染第二遍——修复"连续两次重复渲染"(omp 消息流 delta 与 message_end 全文重复)
|
|
187
|
-
* - 跨块落定折回:工具调用把流切段时,deltas 累计跨块跟踪,message_end 全文按内容比对折回
|
|
188
|
-
* 最后一段流块;先前流片段标记 coveredBy 折叠为一行提示(OpenHands 风格)
|
|
189
|
-
* - 纯函数供密集行视图复用:classifyEvent / foldStreamDuplicates / buildStreamText
|
|
190
|
-
*/
|
|
191
|
-
var TOOL_PREFIX = /^🔧\s*\S+/;
|
|
192
|
-
/** 工具元数据:native = omp 原生作业工具;host = harness 协作工具(任务/通信/记忆/团队) */
|
|
193
|
-
var TOOL_META = {
|
|
194
|
-
read: {
|
|
195
|
-
icon: "i-tabler-file-search",
|
|
196
|
-
kind: "native"
|
|
197
|
-
},
|
|
198
|
-
write: {
|
|
199
|
-
icon: "i-tabler-pencil",
|
|
200
|
-
kind: "native"
|
|
201
|
-
},
|
|
202
|
-
edit: {
|
|
203
|
-
icon: "i-tabler-edit",
|
|
204
|
-
kind: "native"
|
|
205
|
-
},
|
|
206
|
-
bash: {
|
|
207
|
-
icon: "i-tabler-terminal-2",
|
|
208
|
-
kind: "native"
|
|
209
|
-
},
|
|
210
|
-
grep: {
|
|
211
|
-
icon: "i-tabler-search",
|
|
212
|
-
kind: "native"
|
|
213
|
-
},
|
|
214
|
-
glob: {
|
|
215
|
-
icon: "i-tabler-folders",
|
|
216
|
-
kind: "native"
|
|
217
|
-
},
|
|
218
|
-
dispatch_task: {
|
|
219
|
-
icon: "i-tabler-send",
|
|
220
|
-
kind: "host"
|
|
221
|
-
},
|
|
222
|
-
reassign_task: {
|
|
223
|
-
icon: "i-tabler-arrows-exchange",
|
|
224
|
-
kind: "host"
|
|
225
|
-
},
|
|
226
|
-
update_task: {
|
|
227
|
-
icon: "i-tabler-pencil-code",
|
|
228
|
-
kind: "host"
|
|
229
|
-
},
|
|
230
|
-
cancel_task: {
|
|
231
|
-
icon: "i-tabler-circle-x",
|
|
232
|
-
kind: "host"
|
|
233
|
-
},
|
|
234
|
-
complete_task: {
|
|
235
|
-
icon: "i-tabler-circle-check",
|
|
236
|
-
kind: "host"
|
|
237
|
-
},
|
|
238
|
-
report_progress: {
|
|
239
|
-
icon: "i-tabler-progress-check",
|
|
240
|
-
kind: "host"
|
|
241
|
-
},
|
|
242
|
-
send_message_to_agent: {
|
|
243
|
-
icon: "i-tabler-message",
|
|
244
|
-
kind: "host"
|
|
245
|
-
},
|
|
246
|
-
poll_messages: {
|
|
247
|
-
icon: "i-tabler-inbox",
|
|
248
|
-
kind: "host"
|
|
249
|
-
},
|
|
250
|
-
broadcast_message: {
|
|
251
|
-
icon: "i-tabler-rss",
|
|
252
|
-
kind: "host"
|
|
253
|
-
},
|
|
254
|
-
list_team_agents: {
|
|
255
|
-
icon: "i-tabler-users",
|
|
256
|
-
kind: "host"
|
|
257
|
-
},
|
|
258
|
-
list_channel_tasks: {
|
|
259
|
-
icon: "i-tabler-list",
|
|
260
|
-
kind: "host"
|
|
261
|
-
},
|
|
262
|
-
get_task_details: {
|
|
263
|
-
icon: "i-tabler-eye",
|
|
264
|
-
kind: "host"
|
|
265
|
-
},
|
|
266
|
-
get_my_task_queue: {
|
|
267
|
-
icon: "i-tabler-stack-2",
|
|
268
|
-
kind: "host"
|
|
269
|
-
},
|
|
270
|
-
get_queue_overview: {
|
|
271
|
-
icon: "i-tabler-chart-bar",
|
|
272
|
-
kind: "host"
|
|
273
|
-
},
|
|
274
|
-
search_memory: {
|
|
275
|
-
icon: "i-tabler-brain",
|
|
276
|
-
kind: "host"
|
|
277
|
-
},
|
|
278
|
-
save_memory: {
|
|
279
|
-
icon: "i-tabler-bookmark",
|
|
280
|
-
kind: "host"
|
|
281
|
-
},
|
|
282
|
-
create_team_agent: {
|
|
283
|
-
icon: "i-tabler-user-plus",
|
|
284
|
-
kind: "host"
|
|
285
|
-
},
|
|
286
|
-
update_team_agent: {
|
|
287
|
-
icon: "i-tabler-user-cog",
|
|
288
|
-
kind: "host"
|
|
289
|
-
},
|
|
290
|
-
remove_team_agent: {
|
|
291
|
-
icon: "i-tabler-user-minus",
|
|
292
|
-
kind: "host"
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
/** 类别展示元数据(壳层统一渲染头部) */
|
|
296
|
-
var KIND_META = {
|
|
297
|
-
tool: {
|
|
298
|
-
label: "tool",
|
|
299
|
-
icon: "i-tabler-tool"
|
|
300
|
-
},
|
|
301
|
-
status: {
|
|
302
|
-
label: "status",
|
|
303
|
-
icon: "i-tabler-dots"
|
|
304
|
-
},
|
|
305
|
-
life: {
|
|
306
|
-
label: "state",
|
|
307
|
-
icon: "i-tabler-activity"
|
|
308
|
-
},
|
|
309
|
-
route: {
|
|
310
|
-
label: "message",
|
|
311
|
-
icon: "i-tabler-route"
|
|
312
|
-
},
|
|
313
|
-
stream: {
|
|
314
|
-
label: "llm",
|
|
315
|
-
icon: "i-tabler-message-dots"
|
|
316
|
-
},
|
|
317
|
-
task: {
|
|
318
|
-
label: "task",
|
|
319
|
-
icon: "i-tabler-checklist"
|
|
320
|
-
},
|
|
321
|
-
artifact: {
|
|
322
|
-
label: "artifact",
|
|
323
|
-
icon: "i-tabler-package"
|
|
324
|
-
},
|
|
325
|
-
member: {
|
|
326
|
-
label: "team",
|
|
327
|
-
icon: "i-tabler-users"
|
|
328
|
-
},
|
|
329
|
-
memory: {
|
|
330
|
-
label: "memory",
|
|
331
|
-
icon: "i-tabler-bookmark"
|
|
332
|
-
},
|
|
333
|
-
error: {
|
|
334
|
-
label: "error",
|
|
335
|
-
icon: "i-tabler-alert-triangle"
|
|
336
|
-
},
|
|
337
|
-
other: {
|
|
338
|
-
label: "event",
|
|
339
|
-
icon: "i-tabler-dots"
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
/** 事件 → 聚合类别 */
|
|
343
|
-
function classifyEvent(e) {
|
|
344
|
-
switch (e.type) {
|
|
345
|
-
case "agent.status.message": return TOOL_PREFIX.test(String(e.payload.text ?? "")) ? "tool" : "status";
|
|
346
|
-
case "agent.status": return "life";
|
|
347
|
-
case "a2a.message": return "route";
|
|
348
|
-
case "agent.delta":
|
|
349
|
-
case "agent.message": return "stream";
|
|
350
|
-
case "task.status":
|
|
351
|
-
case "task.progress": return "task";
|
|
352
|
-
case "a2a.artifact": return "artifact";
|
|
353
|
-
case "agent.member": return "member";
|
|
354
|
-
case "memory.saved": return "memory";
|
|
355
|
-
case "error": return "error";
|
|
356
|
-
default: return "other";
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
/** agent 稳定配色(id hash → hue;无 id 灰。饱和度/亮度压低:白字首字母可达 AA 对比;
|
|
360
|
-
* 同一色相供头像/泳道头/提及悬停卡共用 —— 身份色全站同源,不另造配色) */
|
|
361
|
-
function agentHueColor(agentId) {
|
|
362
|
-
if (!agentId) return "#6e6e77";
|
|
363
|
-
let h = 0;
|
|
364
|
-
for (const ch of agentId) h = (h * 31 + ch.charCodeAt(0)) % 360;
|
|
365
|
-
return `hsl(${h}, 42%, 34%)`;
|
|
366
|
-
}
|
|
367
|
-
var TIER_ORDER = {
|
|
368
|
-
silent: 0,
|
|
369
|
-
status: 1,
|
|
370
|
-
attention: 2,
|
|
371
|
-
terminal: 3
|
|
372
|
-
};
|
|
373
|
-
/** 事件 → 注意力档位 */
|
|
374
|
-
function envelopeTier(e) {
|
|
375
|
-
switch (e.type) {
|
|
376
|
-
case "error": return "attention";
|
|
377
|
-
case "a2a.artifact":
|
|
378
|
-
case "agent.message": return "terminal";
|
|
379
|
-
case "task.status": {
|
|
380
|
-
const s = String(e.payload.state ?? "");
|
|
381
|
-
if (s === "COMPLETED" || s === "FAILED" || s === "CANCELED") return "terminal";
|
|
382
|
-
if (s === "WAITING") return "attention";
|
|
383
|
-
return "status";
|
|
384
|
-
}
|
|
385
|
-
case "a2a.message": return (e.payload.metadata ?? {})["x-aw-require-reply"] === "true" ? "attention" : "status";
|
|
386
|
-
case "agent.delta":
|
|
387
|
-
case "agent.status.message":
|
|
388
|
-
case "task.progress":
|
|
389
|
-
case "memory.saved": return "silent";
|
|
390
|
-
default: return "status";
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
/** 块 → 注意力档位(块内最高档;终局产出块不被同块 silent 帧拉低) */
|
|
394
|
-
function blockTier(events) {
|
|
395
|
-
let best = "silent";
|
|
396
|
-
for (const e of events) {
|
|
397
|
-
const t = envelopeTier(e);
|
|
398
|
-
if (TIER_ORDER[t] > TIER_ORDER[best]) best = t;
|
|
399
|
-
}
|
|
400
|
-
return best;
|
|
401
|
-
}
|
|
402
|
-
/** 统一化空白比较 */
|
|
403
|
-
function normText(s) {
|
|
404
|
-
return s.replace(/\s+/g, " ").trim();
|
|
405
|
-
}
|
|
406
|
-
/** 流块当前是否处于打字机状态(尾巴是 delta 且未落定) */
|
|
407
|
-
function isStreaming(block) {
|
|
408
|
-
const ev = block.events[block.events.length - 1];
|
|
409
|
-
if (!ev) return false;
|
|
410
|
-
return ev.type === "agent.delta" && !block.settled;
|
|
411
|
-
}
|
|
412
|
-
/** 任务语义类的 taskId(信封 taskId 优先) */
|
|
413
|
-
function taskIdOf(e) {
|
|
414
|
-
if (e.taskId) return e.taskId;
|
|
415
|
-
switch (e.type) {
|
|
416
|
-
case "task.status":
|
|
417
|
-
case "task.progress": return String(e.payload.taskId ?? "") || null;
|
|
418
|
-
case "a2a.artifact": return String(e.payload.taskId ?? "") || null;
|
|
419
|
-
default: return null;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
/** 合并键内 taskId 兼容:单侧缺省视为无约束 */
|
|
423
|
-
function taskCompatible(a, b) {
|
|
424
|
-
return a == null || b == null || a === b;
|
|
425
|
-
}
|
|
426
|
-
/** 落定文本与累计水路的关系 */
|
|
427
|
-
function foldRelation(trail, short) {
|
|
428
|
-
const t = trail.trim();
|
|
429
|
-
const s = short.trim();
|
|
430
|
-
if (!t || !s) return "none";
|
|
431
|
-
if (t === s || normText(t) === normText(s)) return "dup";
|
|
432
|
-
if (s.startsWith(t)) return "extend";
|
|
433
|
-
return "none";
|
|
434
|
-
}
|
|
435
|
-
var BlockClusterer = class {
|
|
436
|
-
arr = [];
|
|
437
|
-
last = null;
|
|
438
|
-
tracks = /* @__PURE__ */ new Map();
|
|
439
|
-
trail = Object.create(null);
|
|
440
|
-
idSeq = 0;
|
|
441
|
-
processed = 0;
|
|
442
|
-
/** 上次同步时列表头部事件的 seq(头部变化 = 历史回填插入/ring 裁剪/过滤切换 → 必须全量重建,否则索引错位重复聚类) */
|
|
443
|
-
headSeq = void 0;
|
|
444
|
-
get blocks() {
|
|
445
|
-
return this.arr;
|
|
446
|
-
}
|
|
447
|
-
get processedCount() {
|
|
448
|
-
return this.processed;
|
|
449
|
-
}
|
|
450
|
-
reset() {
|
|
451
|
-
this.arr.length = 0;
|
|
452
|
-
this.last = null;
|
|
453
|
-
this.tracks.clear();
|
|
454
|
-
this.trail = Object.create(null);
|
|
455
|
-
this.processed = 0;
|
|
456
|
-
this.headSeq = void 0;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* 序列同步:只处理新增帧。列表头部 seq 变化(loadHistory 头部插入历史帧并整体
|
|
460
|
-
* 排序 / ring 容量裁剪 / 过滤切换)时,已处理事件整体右移——按索引继续会把已
|
|
461
|
-
* 聚类事件重复成块,故检测到头部变化即全量重建(一次重建,确定性无重复)。
|
|
462
|
-
*/
|
|
463
|
-
sync(events) {
|
|
464
|
-
const head = events.length > 0 ? events[0]?.seq : void 0;
|
|
465
|
-
if (events.length < this.processed || head !== this.headSeq) this.reset();
|
|
466
|
-
for (let i = this.processed; i < events.length; i++) this.push(events[i]);
|
|
467
|
-
this.processed = events.length;
|
|
468
|
-
this.headSeq = events.length > 0 ? events[0]?.seq : void 0;
|
|
469
|
-
}
|
|
470
|
-
push(e) {
|
|
471
|
-
if (e.type === "channel.snapshot" || e.type === "pong") return this.last;
|
|
472
|
-
if (e.type === "agent.delta" && !textOf(e)) return this.last;
|
|
473
|
-
if ((e.type === "agent.status.message" || e.type === "agent.message") && !textOf(e).trim()) return this.last;
|
|
474
|
-
const agentId = e.agentId ?? null;
|
|
475
|
-
const taskId = taskIdOf(e);
|
|
476
|
-
const agentKey = agentId ?? "";
|
|
477
|
-
const trackKey = `${agentKey}\u0000${taskId ?? ""}`;
|
|
478
|
-
const baseKind = classifyEvent(e);
|
|
479
|
-
if (e.type === "agent.status.message" && baseKind === "status") {
|
|
480
|
-
const t = textOf(e).trim();
|
|
481
|
-
const track = this.tracks.get(trackKey);
|
|
482
|
-
if (t && track && track.text) {
|
|
483
|
-
const rel = foldRelation(track.text, t);
|
|
484
|
-
if (rel === "dup" || rel === "extend") return this.foldInto(track, e, t);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
if (e.type === "agent.message") {
|
|
488
|
-
const t = textOf(e).trim();
|
|
489
|
-
const track = this.tracks.get(trackKey);
|
|
490
|
-
if (t && track && track.text) {
|
|
491
|
-
const rel = foldRelation(track.text, t);
|
|
492
|
-
if (rel === "dup" || rel === "extend") return this.foldInto(track, e, t);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
let kind = baseKind;
|
|
496
|
-
if (e.type === "agent.delta") kind = "stream";
|
|
497
|
-
else if (e.type === "agent.message") kind = "stream";
|
|
498
|
-
else if (baseKind === "status") {
|
|
499
|
-
const lb = this.last;
|
|
500
|
-
if (lb !== null && lb.kind === "stream" && e.agentId === lb.agentId && taskCompatible(lb.taskId, taskId) && !lb.settled) kind = "stream";
|
|
501
|
-
}
|
|
502
|
-
if (this.last !== null && this.last.kind === kind && this.last.agentId === e.agentId && agentId !== null && taskCompatible(this.last.taskId, taskId) && !(kind === "stream" && this.last.settled) && !(kind === "task" && this.last.taskId && taskId && this.last.taskId !== taskId) && !(kind === "artifact" && this.last.taskId && taskId && this.last.taskId !== taskId) && this.last) {
|
|
503
|
-
const b = this.last;
|
|
504
|
-
b.events.push(e);
|
|
505
|
-
b.lastAt = e.at;
|
|
506
|
-
if (kind === "stream") {
|
|
507
|
-
if (e.type === "agent.delta") {
|
|
508
|
-
b.settled = false;
|
|
509
|
-
const t = this.tracks.get(trackKey);
|
|
510
|
-
if (t) {
|
|
511
|
-
t.text += textOf(e);
|
|
512
|
-
t.last = b;
|
|
513
|
-
this.setTrail(agentKey, taskId, t.text);
|
|
514
|
-
} else {
|
|
515
|
-
b.settled = false;
|
|
516
|
-
this.setTrail(agentKey, taskId, textOf(e));
|
|
517
|
-
}
|
|
518
|
-
} else {
|
|
519
|
-
b.settled = true;
|
|
520
|
-
this.setTrail(agentKey, taskId, `${textOf(e)}`);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return b;
|
|
524
|
-
}
|
|
525
|
-
const block = reactive({
|
|
526
|
-
id: `b${++this.idSeq}`,
|
|
527
|
-
kind,
|
|
528
|
-
agentId,
|
|
529
|
-
taskId,
|
|
530
|
-
events: [e],
|
|
531
|
-
firstAt: e.at,
|
|
532
|
-
lastAt: e.at,
|
|
533
|
-
settled: kind === "stream" ? e.type !== "agent.delta" : false,
|
|
534
|
-
folded: 0,
|
|
535
|
-
overrideText: null,
|
|
536
|
-
coveredBy: null,
|
|
537
|
-
dupStream: false
|
|
538
|
-
});
|
|
539
|
-
this.arr.push(block);
|
|
540
|
-
this.last = block;
|
|
541
|
-
if (kind === "stream") {
|
|
542
|
-
const tk = this.tracks.get(trackKey);
|
|
543
|
-
if (tk && tk.pieces.length > 0 && !tk.pieces.includes(block)) {
|
|
544
|
-
tk.pieces.push(block);
|
|
545
|
-
tk.last = block;
|
|
546
|
-
} else if (!tk) this.tracks.set(trackKey, {
|
|
547
|
-
text: "",
|
|
548
|
-
pieces: [block],
|
|
549
|
-
last: block
|
|
550
|
-
});
|
|
551
|
-
if (e.type === "agent.delta") {
|
|
552
|
-
const t = this.tracks.get(trackKey);
|
|
553
|
-
if (t) {
|
|
554
|
-
t.text += textOf(e);
|
|
555
|
-
this.setTrail(agentKey, taskId, t.text);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
if (kind === "artifact") {
|
|
560
|
-
const t = textOf(e);
|
|
561
|
-
const prior = this.trail[trackKey] ?? this.trail[`${agentKey}\u0000`];
|
|
562
|
-
if (prior && t && normText(prior) === normText(t)) block.dupStream = true;
|
|
563
|
-
}
|
|
564
|
-
return block;
|
|
565
|
-
}
|
|
566
|
-
/** 内容重复折回:已累计流足够覆盖时不再成块;折回块重渲染一律以落定全文为准
|
|
567
|
-
* (跨工具切段折回时,目标块只含尾部 delta,不覆盖全文则文本被截断) */
|
|
568
|
-
foldInto(track, e, text) {
|
|
569
|
-
const target = track.last;
|
|
570
|
-
target.events.push(e);
|
|
571
|
-
target.folded += 1;
|
|
572
|
-
target.lastAt = e.at;
|
|
573
|
-
target.settled = true;
|
|
574
|
-
target.overrideText = text;
|
|
575
|
-
for (const p of track.pieces) if (p !== target) p.coveredBy = target.id;
|
|
576
|
-
track.text = "";
|
|
577
|
-
track.pieces = [target];
|
|
578
|
-
track.last = target;
|
|
579
|
-
this.setTrail(target.agentId ?? "", target.taskId, text);
|
|
580
|
-
return target;
|
|
581
|
-
}
|
|
582
|
-
setTrail(agentKey, taskId, text) {
|
|
583
|
-
this.trail[`${agentKey}\u0000${taskId ?? ""}`] = text;
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
/** 事件正文(delta/status.text/message.parts/artifact.parts) */
|
|
587
|
-
function textOf(e) {
|
|
588
|
-
switch (e.type) {
|
|
589
|
-
case "agent.delta": return String(e.payload.delta ?? "");
|
|
590
|
-
case "agent.status.message": return String(e.payload.text ?? "");
|
|
591
|
-
case "agent.message":
|
|
592
|
-
case "a2a.message": return (e.payload.parts ?? []).map((p) => p.text ?? "").join("\n");
|
|
593
|
-
case "a2a.artifact": return (e.payload.artifact?.parts ?? []).map((p) => p.text ?? "").join("\n");
|
|
594
|
-
default: return "";
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
/** 流块的最终可见文本(delta 累计;落定帧不重复该文) */
|
|
598
|
-
function buildStreamText(block) {
|
|
599
|
-
if (block.overrideText) return block.overrideText;
|
|
600
|
-
let acc = "";
|
|
601
|
-
for (const e of block.events) {
|
|
602
|
-
if (e.type === "agent.delta") {
|
|
603
|
-
acc += textOf(e);
|
|
604
|
-
continue;
|
|
605
|
-
}
|
|
606
|
-
if (e.type === "agent.status.message") continue;
|
|
607
|
-
if (e.type === "agent.message") {
|
|
608
|
-
const t = textOf(e).trim();
|
|
609
|
-
if (t) acc = `${acc ? `${acc}\n` : ""}${t}`;
|
|
610
|
-
continue;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return acc;
|
|
614
|
-
}
|
|
615
|
-
/**
|
|
616
|
-
* 打字光标可见性(空光标闪烁修复的权威语义):
|
|
617
|
-
* 仅当"已有文本 &&(流式未落定 || 揭示未追平)"时显示;空文本块绝不显示光标。
|
|
618
|
-
*/
|
|
619
|
-
function streamCursorVisible(fullLen, visibleLen, streaming) {
|
|
620
|
-
return fullLen > 0 && (streaming || visibleLen < fullLen);
|
|
621
|
-
}
|
|
622
|
-
function escapeHtml(s) {
|
|
623
|
-
return s.replace(/[&<>"']/g, (c) => ({
|
|
624
|
-
"&": "&",
|
|
625
|
-
"<": "<",
|
|
626
|
-
">": ">",
|
|
627
|
-
"\"": """,
|
|
628
|
-
"'": "'"
|
|
629
|
-
})[c] ?? c);
|
|
630
|
-
}
|
|
631
|
-
function inlineMd(s) {
|
|
632
|
-
return s.replace(/`([^`\n]+)`/g, "<code>$1</code>").replace(/\*\*([^*\n]+)\*\*/g, "<b>$1</b>").replace(/(^|\s)\*([^*\n]+)\*(?=\s|$)/g, "$1<i>$2</i>");
|
|
633
|
-
}
|
|
634
|
-
/** GitHub 风格提示框元数据(open-tag github-alert 移植;`> [!NOTE]` 等) */
|
|
635
|
-
var GH_ALERTS = {
|
|
636
|
-
note: {
|
|
637
|
-
label: "说明",
|
|
638
|
-
icon: "i-tabler-info-circle"
|
|
639
|
-
},
|
|
640
|
-
tip: {
|
|
641
|
-
label: "提示",
|
|
642
|
-
icon: "i-tabler-bulb"
|
|
643
|
-
},
|
|
644
|
-
important: {
|
|
645
|
-
label: "重要",
|
|
646
|
-
icon: "i-tabler-flag"
|
|
647
|
-
},
|
|
648
|
-
warning: {
|
|
649
|
-
label: "警告",
|
|
650
|
-
icon: "i-tabler-alert-triangle"
|
|
651
|
-
},
|
|
652
|
-
caution: {
|
|
653
|
-
label: "注意",
|
|
654
|
-
icon: "i-tabler-shield-half"
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
/** 散文渲染:围栏代码块 / 段落 / # 标题 / - 列表 / > 引用 / GitHub 提示框 /
|
|
658
|
-
* 任务列表勾选 / 行内代码与加粗(对部分流式文本安全) */
|
|
659
|
-
function mdLite(src) {
|
|
660
|
-
const codeBlocks = [];
|
|
661
|
-
return escapeHtml(src).replace(/```([\w+-]*)\n?([\s\S]*?)(?:```|$)/g, (_m, lang, body) => {
|
|
662
|
-
const idx = codeBlocks.length;
|
|
663
|
-
codeBlocks.push(`<div class="code-block" data-lang="${lang || "text"}"><div class="code-head"><span class="code-lang">${lang || "text"}</span><button type="button" class="code-copy">复制</button></div><pre><code>${body.replace(/\n$/, "")}</code></pre></div>`);
|
|
664
|
-
return `@@AWCODE${idx}@@`;
|
|
665
|
-
}).split(/\n{2,}/).map((para) => {
|
|
666
|
-
const lines = para.split("\n");
|
|
667
|
-
if (/^### /.test(para)) return `<h5>${inlineMd(para.slice(4))}</h5>`;
|
|
668
|
-
if (/^## /.test(para)) return `<h4>${inlineMd(para.slice(3))}</h4>`;
|
|
669
|
-
if (/^# /.test(para)) return `<h4>${inlineMd(para.slice(2))}</h4>`;
|
|
670
|
-
if (lines.every((l) => /^\s*[-*] /.test(l))) {
|
|
671
|
-
if (lines.some((l) => /^\s*[-*] \[[ xX]\] /.test(l))) return `<ul class="task-list">${lines.map((l) => {
|
|
672
|
-
const m = /^\s*[-*] \[([ xX])\] (.*)$/.exec(l);
|
|
673
|
-
const done = (m[1] ?? " ").toLowerCase() === "x";
|
|
674
|
-
return `<li class="task-item${done ? " done" : ""}"><span class="task-check${done ? " on" : ""}">${done ? "✓" : ""}</span><span class="task-text">${inlineMd(m[2] ?? "")}</span></li>`;
|
|
675
|
-
}).join("")}</ul>`;
|
|
676
|
-
return `<ul>${lines.map((l) => `<li>${inlineMd(l.replace(/^\s*[-*] /, ""))}</li>`).join("")}</ul>`;
|
|
677
|
-
}
|
|
678
|
-
if (lines.every((l) => /^>\s?/.test(l))) {
|
|
679
|
-
const am = /^>\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*(.*)$/.exec(lines[0] ?? "");
|
|
680
|
-
if (am) {
|
|
681
|
-
const meta = GH_ALERTS[am[1].toLowerCase()];
|
|
682
|
-
const firstRest = am[2] ?? "";
|
|
683
|
-
const bodyLines = [...firstRest ? [firstRest] : [], ...lines.slice(1).map((l) => l.replace(/^>\s?/, ""))];
|
|
684
|
-
return `<div class="gh-alert gh-${am[1].toLowerCase()}"><div class="gh-title"><span class="${meta.icon}"></span>${meta.label}</div><p>${bodyLines.map((l) => inlineMd(l)).join("<br>")}</p></div>`;
|
|
685
|
-
}
|
|
686
|
-
return `<blockquote>${lines.map((l) => inlineMd(l.replace(/^>\s?/, ""))).join("<br>")}</blockquote>`;
|
|
687
|
-
}
|
|
688
|
-
if (lines.length === 1 && /^@@AWCODE\d+@@$/.test(para)) return para;
|
|
689
|
-
return `<p>${lines.map((l) => inlineMd(l)).join("<br>")}</p>`;
|
|
690
|
-
}).join("").replace(/@@AWCODE(\d+)@@/g, (_m, i) => codeBlocks[Number(i)] ?? "");
|
|
691
|
-
}
|
|
692
|
-
/** @Name 形态的提及词边界(前面是行首/空白/括号,避免匹配邮箱与代码) */
|
|
693
|
-
function mentionRegex(name) {
|
|
694
|
-
const escaped = name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
695
|
-
return new RegExp(`(^|(?<![\\w@]))@(${escaped})(?=$|[\\s,.;:!?、,。;:!?…)\\]】」』])`, "gu");
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* 源文本提及占位:@Name → \uE000M{idx}\uE000(私用区码点,正文流不可能出现;
|
|
699
|
-
* 先于 mdLite 转义执行,占位符不受转义/标记影响;名字按长度降序避免前缀遮蔽)。
|
|
700
|
-
*/
|
|
701
|
-
function maskMentions(src, members) {
|
|
702
|
-
const hits = [];
|
|
703
|
-
if (members.length === 0) return {
|
|
704
|
-
text: src,
|
|
705
|
-
hits
|
|
706
|
-
};
|
|
707
|
-
const sorted = [...members].sort((a, b) => b.name.length - a.name.length);
|
|
708
|
-
let text = src;
|
|
709
|
-
for (const m of sorted) {
|
|
710
|
-
if (!m.name) continue;
|
|
711
|
-
text = text.replace(mentionRegex(m.name), (_m, _pre, _name) => {
|
|
712
|
-
hits.push(m);
|
|
713
|
-
return `\uE000M${hits.length - 1}\uE000`;
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
return {
|
|
717
|
-
text,
|
|
718
|
-
hits
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
/** 还原占位为提及 pill HTML(mdLite 输出后执行;pill 点击由容器事件委托处理) */
|
|
722
|
-
function restoreMentions(html, hits) {
|
|
723
|
-
return html.replace(/\uE000M(\d+)\uE000/g, (_m, i) => {
|
|
724
|
-
const m = hits[Number(i)];
|
|
725
|
-
if (!m) return "";
|
|
726
|
-
return `<span class="md-mention" data-agent-id="${escapeHtml(m.agentId)}">@${escapeHtml(m.name)}</span>`;
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
/** mdLite + @提及高亮一体化(聊天正文渲染入口) */
|
|
730
|
-
function mdLiteMentions(src, members) {
|
|
731
|
-
const { text, hits } = maskMentions(src, members);
|
|
732
|
-
return restoreMentions(mdLite(text), hits);
|
|
733
|
-
}
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region app/stores/workshop/events.ts
|
|
736
|
-
/**
|
|
737
|
-
* AEP 事件缓冲:per-channel 环形(ring 5000,与服务端 RING_CAP 同量级)+
|
|
738
|
-
* lastSeq 游标 + 派生 selectors。全部渲染组件从本 store 派生,不直接持有事件。
|
|
739
|
-
*/
|
|
740
|
-
var RING_CAP = 5e3;
|
|
741
|
-
/** 过滤器 → 允许的事件类型集合(key = 档位过滤:只看注意级+终局级,open-tag deliveryTier)。导出供回归测试复用。 */
|
|
742
|
-
var FILTER_TYPES = {
|
|
743
|
-
all: null,
|
|
744
|
-
messages: [
|
|
745
|
-
"agent.message",
|
|
746
|
-
"agent.delta",
|
|
747
|
-
"agent.status.message",
|
|
748
|
-
"a2a.message"
|
|
749
|
-
],
|
|
750
|
-
tasks: [
|
|
751
|
-
"task.status",
|
|
752
|
-
"task.progress",
|
|
753
|
-
"a2a.artifact"
|
|
754
|
-
],
|
|
755
|
-
team: ["agent.member", "task.status"],
|
|
756
|
-
errors: ["error"],
|
|
757
|
-
key: null
|
|
758
|
-
};
|
|
759
|
-
/**
|
|
760
|
-
* 单帧是否命中时间线过滤 —— **唯一事实源**。
|
|
761
|
-
* 全量重算(computeTimeline)与增量追加(timeline getter)必须共用本函数,
|
|
762
|
-
* 否则两条路径的语义会悄悄分叉(表现为"刷新后少了/多了几条")。
|
|
763
|
-
*
|
|
764
|
-
* 导出供回归测试使用:测试要验证的是「增量维护 ⊆ 与全量重算等价」,
|
|
765
|
-
* 参照实现必须调用同一个谓词,否则测的是参照写得对不对,而不是实现是否等价。
|
|
766
|
-
*
|
|
767
|
-
* 注意 `filter === 'key'` 是**提前返回**:该档位只看注意级/终局级,
|
|
768
|
-
* 刻意不受 focus 影响(聚焦是"看某人的流",key 是"只看需要我介入的",两者正交)。
|
|
769
|
-
*/
|
|
770
|
-
function matchesTimeline(e, filter, allow, focus) {
|
|
771
|
-
if (e.type === "channel.snapshot") return false;
|
|
772
|
-
if (filter === "key") {
|
|
773
|
-
const t = envelopeTier(e);
|
|
774
|
-
return t === "attention" || t === "terminal";
|
|
775
|
-
}
|
|
776
|
-
if (allow && !allow.includes(e.type)) return false;
|
|
777
|
-
if (focus && e.type !== "task.status" && e.type !== "task.progress") {
|
|
778
|
-
if (e.agentId === focus) return true;
|
|
779
|
-
if (e.type === "a2a.message") return e.payload.metadata?.["x-aw-target-agent"] === focus;
|
|
780
|
-
return false;
|
|
781
|
-
}
|
|
782
|
-
return true;
|
|
783
|
-
}
|
|
784
|
-
/** 时间线过滤纯函数(全量重算路径;增量路径见 matchesTimeline) */
|
|
785
|
-
function computeTimeline(items, filter, allow, focus) {
|
|
786
|
-
return items.filter((e) => matchesTimeline(e, filter, allow, focus));
|
|
787
|
-
}
|
|
788
|
-
/** 稳定空数组:让"无数据"返回同一引用,避免下游 computed 每帧产出新数组触发重渲染 */
|
|
789
|
-
var EMPTY_ITEMS = Object.freeze([]);
|
|
790
|
-
var timelineCache = /* @__PURE__ */ new Map();
|
|
791
|
-
/** 在按 seq 升序的数组里找第一个 seq > 目标值 的下标(二分,O(log n)) */
|
|
792
|
-
function firstIndexAfterSeq(items, seq) {
|
|
793
|
-
let lo = 0;
|
|
794
|
-
let hi = items.length;
|
|
795
|
-
while (lo < hi) {
|
|
796
|
-
const mid = lo + hi >>> 1;
|
|
797
|
-
if ((items[mid]?.seq ?? 0) > seq) hi = mid;
|
|
798
|
-
else lo = mid + 1;
|
|
799
|
-
}
|
|
800
|
-
return lo;
|
|
801
|
-
}
|
|
802
|
-
var EMPTY_RING = () => ({
|
|
803
|
-
lastSeq: 0,
|
|
804
|
-
items: [],
|
|
805
|
-
consumed: /* @__PURE__ */ new Set(),
|
|
806
|
-
byAgent: /* @__PURE__ */ new Map()
|
|
807
|
-
});
|
|
808
|
-
/** 尾部追加建档(与 items.push 配对) */
|
|
809
|
-
function indexAppend(ring, e) {
|
|
810
|
-
const key = e.agentId;
|
|
811
|
-
if (!key) return;
|
|
812
|
-
const bucket = ring.byAgent.get(key);
|
|
813
|
-
if (bucket) bucket.push(e);
|
|
814
|
-
else ring.byAgent.set(key, [e]);
|
|
815
|
-
}
|
|
816
|
-
/** 头部淘汰出档(与 items.splice(0, n) 配对);按引用查找,防同 seq 重放误删 */
|
|
817
|
-
function indexEvict(ring, dropped) {
|
|
818
|
-
for (const e of dropped) {
|
|
819
|
-
const bucket = ring.byAgent.get(e.agentId ?? "");
|
|
820
|
-
if (!bucket) continue;
|
|
821
|
-
const idx = bucket.indexOf(e);
|
|
822
|
-
if (idx >= 0) bucket.splice(idx, 1);
|
|
823
|
-
if (bucket.length === 0) ring.byAgent.delete(e.agentId ?? "");
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
var useEventsStore = defineStore("workshop.events", {
|
|
827
|
-
state: () => ({
|
|
828
|
-
rings: {},
|
|
829
|
-
filters: {},
|
|
830
|
-
/** 时间线聚焦的 agent(只看该 agent 的流;null = 全部) */
|
|
831
|
-
focusAgents: {},
|
|
832
|
-
/** lane 历史已回填的 agent(channelId → agentId 集合;防视图切换重复拉取) */
|
|
833
|
-
laneLoaded: {}
|
|
834
|
-
}),
|
|
835
|
-
getters: {
|
|
836
|
-
ring(state) {
|
|
837
|
-
return (channelId) => state.rings[channelId] ?? EMPTY_RING();
|
|
838
|
-
},
|
|
839
|
-
/** 应用过滤 + agent 聚焦后的时间线(虚拟滚动/自动吸底消费;per-channel 增量缓存) */
|
|
840
|
-
timeline(state) {
|
|
841
|
-
return (channelId) => {
|
|
842
|
-
const ring = state.rings[channelId];
|
|
843
|
-
if (!ring) return EMPTY_ITEMS;
|
|
844
|
-
const filter = state.filters[channelId] ?? "all";
|
|
845
|
-
const focus = state.focusAgents[channelId] ?? null;
|
|
846
|
-
const items = ring.items;
|
|
847
|
-
const allow = FILTER_TYPES[filter];
|
|
848
|
-
const maxSeq = items.length > 0 ? items[items.length - 1]?.seq ?? 0 : -1;
|
|
849
|
-
const prev = timelineCache.get(channelId);
|
|
850
|
-
if (!prev || prev.filter !== filter || prev.focus !== focus || items.length === 0 && prev.result.length > 0 || prev.lastSeq > maxSeq) {
|
|
851
|
-
const result = computeTimeline(items, filter, allow, focus);
|
|
852
|
-
timelineCache.set(channelId, {
|
|
853
|
-
filter,
|
|
854
|
-
focus,
|
|
855
|
-
lastSeq: maxSeq,
|
|
856
|
-
result
|
|
857
|
-
});
|
|
858
|
-
return result;
|
|
859
|
-
}
|
|
860
|
-
const headSeq = items[0]?.seq ?? 0;
|
|
861
|
-
const res = prev.result;
|
|
862
|
-
if (res.length > 0 && (res[0]?.seq ?? 0) < headSeq) {
|
|
863
|
-
let drop = 0;
|
|
864
|
-
while (drop < res.length && (res[drop]?.seq ?? 0) < headSeq) drop++;
|
|
865
|
-
res.splice(0, drop);
|
|
866
|
-
}
|
|
867
|
-
if (maxSeq > prev.lastSeq) {
|
|
868
|
-
const from = firstIndexAfterSeq(items, prev.lastSeq);
|
|
869
|
-
for (let i = from; i < items.length; i++) {
|
|
870
|
-
const e = items[i];
|
|
871
|
-
if (matchesTimeline(e, filter, allow, focus)) res.push(e);
|
|
872
|
-
}
|
|
873
|
-
prev.lastSeq = maxSeq;
|
|
874
|
-
}
|
|
875
|
-
return res;
|
|
876
|
-
};
|
|
877
|
-
},
|
|
878
|
-
/**
|
|
879
|
-
* 某 agent 的事件子序列(增量索引,O(1) 取用)。
|
|
880
|
-
* lane 视图用它替代 `items.filter(e => e.agentId === id)` —— 后者每帧对每个成员
|
|
881
|
-
* 各扫一遍整条 ring(见 ChannelRing.byAgent 的说明)。
|
|
882
|
-
* 无数据时返回**同一个冻结空数组**,避免下游 computed 每帧产出新引用而触发重渲染。
|
|
883
|
-
*/
|
|
884
|
-
agentEvents(state) {
|
|
885
|
-
return (channelId, agentId) => {
|
|
886
|
-
if (!agentId) return EMPTY_ITEMS;
|
|
887
|
-
return state.rings[channelId]?.byAgent.get(agentId) ?? EMPTY_ITEMS;
|
|
888
|
-
};
|
|
889
|
-
},
|
|
890
|
-
lastSeq(state) {
|
|
891
|
-
return (channelId) => state.rings[channelId]?.lastSeq ?? 0;
|
|
892
|
-
}
|
|
893
|
-
},
|
|
894
|
-
actions: {
|
|
895
|
-
/** 消费一帧 AEP(连接回调入口):快照重建 ring,增量追加并推进游标 */
|
|
896
|
-
ingest(e) {
|
|
897
|
-
if (!e.channelId) return;
|
|
898
|
-
const ring = this.rings[e.channelId] ?? EMPTY_RING();
|
|
899
|
-
if (e.type === "channel.snapshot") {
|
|
900
|
-
this.rings[e.channelId] = {
|
|
901
|
-
lastSeq: e.seq,
|
|
902
|
-
items: [],
|
|
903
|
-
consumed: /* @__PURE__ */ new Set([e.seq]),
|
|
904
|
-
byAgent: /* @__PURE__ */ new Map()
|
|
905
|
-
};
|
|
906
|
-
return;
|
|
907
|
-
}
|
|
908
|
-
if (typeof e.seq === "number" && e.seq > ring.lastSeq) {
|
|
909
|
-
ring.consumed.add(e.seq);
|
|
910
|
-
if (e.type === "agent.delta") {
|
|
911
|
-
const last = ring.items[ring.items.length - 1];
|
|
912
|
-
if (last && last.type === "agent.delta" && last.agentId === e.agentId && (last.taskId ?? null) === (e.taskId ?? null) && last) {
|
|
913
|
-
const prev = last.payload.delta;
|
|
914
|
-
last.payload.delta = prev + e.payload.delta;
|
|
915
|
-
ring.lastSeq = e.seq;
|
|
916
|
-
this.rings[e.channelId] = ring;
|
|
917
|
-
return;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
ring.items.push(e);
|
|
921
|
-
indexAppend(ring, e);
|
|
922
|
-
if (ring.items.length > RING_CAP) indexEvict(ring, ring.items.splice(0, ring.items.length - RING_CAP));
|
|
923
|
-
ring.lastSeq = e.seq;
|
|
924
|
-
if (ring.consumed.size > 2e4) ring.consumed = new Set(ring.items.map((i) => i.seq));
|
|
925
|
-
this.rings[e.channelId] = ring;
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
|
-
setFilter(channelId, filter) {
|
|
929
|
-
this.filters[channelId] = filter;
|
|
930
|
-
},
|
|
931
|
-
/**
|
|
932
|
-
* 持久化历史拉取(server 驱动):刷新后从 DB 拉最近事件并填充 ring。
|
|
933
|
-
* 与 WS 增量无缝衔接:仅接受 seq ≤ 当前游标的帧;已消费过的 seq
|
|
934
|
-
* (含被 delta 合并吃掉的中间 seq,经 consumed 集合识别)绝不重复插入。
|
|
935
|
-
* 剔除 agent.delta 过程帧:落定 agent.message 携带全文,历史窗口
|
|
936
|
-
* 不被单 agent 的打字机帧淹没(其他 agent 的消息才能进窗口)。
|
|
937
|
-
*/
|
|
938
|
-
async loadHistory(channelId, limit = 200) {},
|
|
939
|
-
/**
|
|
940
|
-
* 向上翻页加载更早历史(beforeSeq 游标;时间线"加载更早"按钮驱动)。
|
|
941
|
-
* 仅接受 seq < 当前 ring 最小 seq 的帧,插入头部;consumed 去重防御。
|
|
942
|
-
* 返回 false 表示已无更早历史(按钮隐藏)。
|
|
943
|
-
*/
|
|
944
|
-
async loadEarlier(channelId, limit = 200) {
|
|
945
|
-
return false;
|
|
946
|
-
},
|
|
947
|
-
/**
|
|
948
|
-
* lane 历史按需回填:按 agent 维度拉取该成员的全部事件(剔除 delta 过程帧),
|
|
949
|
-
* 合并进 channel ring —— lanes 谓词按 agentId 过滤,时间线同样受益。
|
|
950
|
-
* laneLoaded 守卫保证每订阅生命周期内每 agent 只回填一次(视图切换不重复拉取;
|
|
951
|
-
* clear 随 ring 一并重置);拉取失败移除守卫,下次挂载可重试。
|
|
952
|
-
* 快照竞态防御:ring 未建立(lastSeq=0,channel.snapshot 未到)时先有界等待 ——
|
|
953
|
-
* 过早合并会被快照全量重建整环覆盖,等价于白拉。
|
|
954
|
-
*/
|
|
955
|
-
async loadLaneHistory(channelId, agentId, limit = 200) {},
|
|
956
|
-
/**
|
|
957
|
-
* lane 向上翻页:该 agent 在 ring 内的最小 seq 为游标,拉更早一段。
|
|
958
|
-
* 返回 false 表示该 agent 已无更早历史(lane"加载更早"按钮隐藏)。
|
|
959
|
-
*/
|
|
960
|
-
async loadLaneEarlier(channelId, agentId, limit = 200) {
|
|
961
|
-
return false;
|
|
962
|
-
},
|
|
963
|
-
setFocusAgent(channelId, agentId) {
|
|
964
|
-
this.focusAgents[channelId] = agentId;
|
|
965
|
-
},
|
|
966
|
-
clear(channelId) {
|
|
967
|
-
Reflect.deleteProperty(this.rings, channelId);
|
|
968
|
-
Reflect.deleteProperty(this.laneLoaded, channelId);
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
});
|
|
972
|
-
//#endregion
|
|
973
|
-
//#region app/stores/workshop/entities.ts
|
|
974
|
-
/**
|
|
975
|
-
* 实体归一化:channel/agent/task 快照 + AEP 增量 upsert(幂等)。
|
|
976
|
-
* REST 命令后的状态以 WS 事件回流为准(REST 返回值不直接写状态,避免双源)。
|
|
977
|
-
*/
|
|
978
|
-
var useEntitiesStore = defineStore("workshop.entities", {
|
|
979
|
-
state: () => ({
|
|
980
|
-
channels: {},
|
|
981
|
-
agents: {},
|
|
982
|
-
tasks: {},
|
|
983
|
-
/** refreshTasks 进行中标志(节流) */
|
|
984
|
-
refreshing: {},
|
|
985
|
-
/** refreshAgents 进行中标志(节流) */
|
|
986
|
-
refreshingAgents: {}
|
|
987
|
-
}),
|
|
988
|
-
getters: {
|
|
989
|
-
agentById(state) {
|
|
990
|
-
return (channelId, agentId) => state.agents[channelId]?.find((a) => a.agentId === agentId);
|
|
991
|
-
},
|
|
992
|
-
/** agent 名字解析(事件渲染用):已知成员取名字,否则 id 前 8 位 */
|
|
993
|
-
agentName(state) {
|
|
994
|
-
return (channelId, agentId) => {
|
|
995
|
-
if (!agentId) return "system";
|
|
996
|
-
return (state.agents[channelId]?.find((x) => x.agentId === agentId))?.name ?? agentId.slice(0, 8);
|
|
997
|
-
};
|
|
998
|
-
},
|
|
999
|
-
/** 任务标题解析(事件渲染用):已知任务取标题,否则 id 前 8 位 */
|
|
1000
|
-
taskTitle(state) {
|
|
1001
|
-
return (channelId, taskId) => {
|
|
1002
|
-
if (!taskId) return "";
|
|
1003
|
-
return (state.tasks[channelId]?.find((x) => x.id === taskId))?.title ?? taskId.slice(0, 8);
|
|
1004
|
-
};
|
|
1005
|
-
},
|
|
1006
|
-
rootTasks(state) {
|
|
1007
|
-
return (channelId) => (state.tasks[channelId] ?? []).filter((t) => !t.parentId);
|
|
1008
|
-
},
|
|
1009
|
-
taskById(state) {
|
|
1010
|
-
return (channelId, taskId) => state.tasks[channelId]?.find((t) => t.id === taskId);
|
|
1011
|
-
},
|
|
1012
|
-
busyCount(state) {
|
|
1013
|
-
return (channelId) => (state.agents[channelId] ?? []).filter((a) => a.state === "busy").length;
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
actions: {
|
|
1017
|
-
applySnapshot(payload) {
|
|
1018
|
-
const { channelId } = payload;
|
|
1019
|
-
this.channels[channelId] = {
|
|
1020
|
-
...payload.channel,
|
|
1021
|
-
loadedAt: Date.now()
|
|
1022
|
-
};
|
|
1023
|
-
this.agents[channelId] = payload.agents.map((a) => ({
|
|
1024
|
-
...a,
|
|
1025
|
-
modelRef: a.config?.modelRef ?? a.modelRef ?? null
|
|
1026
|
-
}));
|
|
1027
|
-
this.tasks[channelId] = payload.tasks.map((t) => this.toTaskView(t));
|
|
1028
|
-
},
|
|
1029
|
-
applyEvent(e) {
|
|
1030
|
-
const cid = e.channelId;
|
|
1031
|
-
switch (e.type) {
|
|
1032
|
-
case "agent.status": {
|
|
1033
|
-
const list = this.agents[cid] ?? [];
|
|
1034
|
-
const raw = e.payload;
|
|
1035
|
-
const p = {
|
|
1036
|
-
agentId: raw.agentId,
|
|
1037
|
-
state: raw.state,
|
|
1038
|
-
currentTaskId: raw.currentTaskId ?? null,
|
|
1039
|
-
currentTaskTitle: raw.currentTaskTitle ?? null,
|
|
1040
|
-
currentTaskProgress: raw.currentTaskProgress ?? null,
|
|
1041
|
-
queued: raw.queued ?? raw.queuedCount ?? 0,
|
|
1042
|
-
completed: raw.completed ?? raw.completedCount ?? 0
|
|
1043
|
-
};
|
|
1044
|
-
const idx = list.findIndex((a) => a.agentId === p.agentId);
|
|
1045
|
-
if (idx >= 0) list[idx] = {
|
|
1046
|
-
...list[idx],
|
|
1047
|
-
...p
|
|
1048
|
-
};
|
|
1049
|
-
else {
|
|
1050
|
-
const fresh = {
|
|
1051
|
-
agentId: p.agentId,
|
|
1052
|
-
state: p.state,
|
|
1053
|
-
currentTaskId: p.currentTaskId ?? null,
|
|
1054
|
-
queued: p.queued,
|
|
1055
|
-
completed: p.completed,
|
|
1056
|
-
name: p.agentId.slice(0, 8),
|
|
1057
|
-
role: "worker",
|
|
1058
|
-
harness: "-"
|
|
1059
|
-
};
|
|
1060
|
-
list.push(fresh);
|
|
1061
|
-
this.refreshAgents(cid);
|
|
1062
|
-
}
|
|
1063
|
-
this.agents[cid] = [...list];
|
|
1064
|
-
break;
|
|
1065
|
-
}
|
|
1066
|
-
case "agent.member": {
|
|
1067
|
-
const p = e.payload;
|
|
1068
|
-
const list = this.agents[cid] ?? [];
|
|
1069
|
-
const idx = list.findIndex((a) => a.agentId === p.agentId);
|
|
1070
|
-
if (p.op === "added") {
|
|
1071
|
-
if (idx < 0) list.push({
|
|
1072
|
-
agentId: p.agentId,
|
|
1073
|
-
name: p.name,
|
|
1074
|
-
role: p.role,
|
|
1075
|
-
harness: p.harness,
|
|
1076
|
-
enabled: p.enabled,
|
|
1077
|
-
config: p.config,
|
|
1078
|
-
modelRef: p.config?.modelRef ?? null,
|
|
1079
|
-
state: "idle",
|
|
1080
|
-
currentTaskId: null,
|
|
1081
|
-
queued: 0,
|
|
1082
|
-
completed: 0
|
|
1083
|
-
});
|
|
1084
|
-
} else if (p.op === "updated") {
|
|
1085
|
-
if (idx >= 0) {
|
|
1086
|
-
const prev = list[idx];
|
|
1087
|
-
const nextConfig = p.config ?? prev.config;
|
|
1088
|
-
list[idx] = {
|
|
1089
|
-
...prev,
|
|
1090
|
-
name: p.name ?? prev.name,
|
|
1091
|
-
role: p.role ?? prev.role,
|
|
1092
|
-
harness: p.harness ?? prev.harness,
|
|
1093
|
-
enabled: p.enabled ?? prev.enabled,
|
|
1094
|
-
config: nextConfig,
|
|
1095
|
-
modelRef: nextConfig?.modelRef ?? prev.modelRef ?? null
|
|
1096
|
-
};
|
|
1097
|
-
}
|
|
1098
|
-
} else if (p.op === "removed") {
|
|
1099
|
-
if (idx >= 0) list.splice(idx, 1);
|
|
1100
|
-
}
|
|
1101
|
-
this.agents[cid] = [...list];
|
|
1102
|
-
break;
|
|
1103
|
-
}
|
|
1104
|
-
case "task.status": {
|
|
1105
|
-
const p = e.payload;
|
|
1106
|
-
const list = this.tasks[cid] ?? [];
|
|
1107
|
-
const idx = list.findIndex((t) => t.id === p.taskId);
|
|
1108
|
-
if (idx >= 0) {
|
|
1109
|
-
const prev = list[idx];
|
|
1110
|
-
list[idx] = {
|
|
1111
|
-
...prev,
|
|
1112
|
-
state: p.state,
|
|
1113
|
-
assigneeId: p.assigneeId ?? prev.assigneeId,
|
|
1114
|
-
title: p.title ?? prev.title,
|
|
1115
|
-
parentId: p.parentId ?? prev.parentId,
|
|
1116
|
-
progress: Math.max(prev.progress, p.progress ?? 0),
|
|
1117
|
-
routeReason: p.routeReason ?? prev.routeReason,
|
|
1118
|
-
createdAt: p.createdAt ?? prev.createdAt,
|
|
1119
|
-
artifacts: Math.max(prev.artifacts, p.artifacts ?? 0)
|
|
1120
|
-
};
|
|
1121
|
-
} else {
|
|
1122
|
-
const fresh = {
|
|
1123
|
-
id: p.taskId,
|
|
1124
|
-
title: p.title ?? p.taskId.slice(0, 8),
|
|
1125
|
-
state: p.state,
|
|
1126
|
-
progress: p.progress ?? 0,
|
|
1127
|
-
assigneeId: p.assigneeId ?? "",
|
|
1128
|
-
artifacts: p.artifacts ?? 0
|
|
1129
|
-
};
|
|
1130
|
-
if (p.parentId) fresh.parentId = p.parentId;
|
|
1131
|
-
if (p.routeReason) fresh.routeReason = p.routeReason;
|
|
1132
|
-
if (p.createdAt) fresh.createdAt = p.createdAt;
|
|
1133
|
-
list.push(fresh);
|
|
1134
|
-
if (p.title === void 0) this.refreshTasks(cid);
|
|
1135
|
-
}
|
|
1136
|
-
this.tasks[cid] = [...list];
|
|
1137
|
-
break;
|
|
1138
|
-
}
|
|
1139
|
-
case "task.progress": {
|
|
1140
|
-
const p = e.payload;
|
|
1141
|
-
const list = this.tasks[cid] ?? [];
|
|
1142
|
-
const idx = list.findIndex((t) => t.id === p.taskId);
|
|
1143
|
-
const prev = idx >= 0 ? list[idx] : void 0;
|
|
1144
|
-
if (prev) list[idx] = {
|
|
1145
|
-
...prev,
|
|
1146
|
-
progress: p.progress
|
|
1147
|
-
};
|
|
1148
|
-
this.tasks[cid] = [...list];
|
|
1149
|
-
break;
|
|
1150
|
-
}
|
|
1151
|
-
case "a2a.artifact": {
|
|
1152
|
-
const p = e.payload;
|
|
1153
|
-
if (!p.taskId) break;
|
|
1154
|
-
const list = this.tasks[cid] ?? [];
|
|
1155
|
-
const idx = list.findIndex((t) => t.id === p.taskId);
|
|
1156
|
-
const prev = idx >= 0 ? list[idx] : void 0;
|
|
1157
|
-
if (prev) list[idx] = {
|
|
1158
|
-
...prev,
|
|
1159
|
-
artifacts: prev.artifacts + 1
|
|
1160
|
-
};
|
|
1161
|
-
this.tasks[cid] = [...list];
|
|
1162
|
-
break;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
toTaskView(t) {
|
|
1167
|
-
return {
|
|
1168
|
-
id: t.id,
|
|
1169
|
-
parentId: t.parentId,
|
|
1170
|
-
title: t.title,
|
|
1171
|
-
state: t.state,
|
|
1172
|
-
progress: t.progress,
|
|
1173
|
-
assigneeId: t.assigneeId,
|
|
1174
|
-
artifacts: t.artifacts.length,
|
|
1175
|
-
updatedAt: t.updatedAt
|
|
1176
|
-
};
|
|
1177
|
-
},
|
|
1178
|
-
/** WS 断连后的 REST 兜底刷新(命令后立即对齐用) */
|
|
1179
|
-
refreshChannel(channelId, snapshot) {
|
|
1180
|
-
this.applySnapshot(snapshot);
|
|
1181
|
-
},
|
|
1182
|
-
/**
|
|
1183
|
-
* 节流 REST 成员对齐:事件流里冒出的未知 agent 缺 name/role/harness 元信息,
|
|
1184
|
-
* 拉一次成员列表 upsert(以 REST 为准;事件流继续增量更新 state)。
|
|
1185
|
-
*/
|
|
1186
|
-
refreshAgents(channelId) {
|
|
1187
|
-
if (this.refreshingAgents[channelId]) return;
|
|
1188
|
-
this.refreshingAgents[channelId] = true;
|
|
1189
|
-
$fetch$2(`/api/workshop/channels/${channelId}/agents`, { headers: { authorization: `Bearer ${useUserStore().token}` } }).then((res) => {
|
|
1190
|
-
const fresh = res.data ?? [];
|
|
1191
|
-
const merged = [...this.agents[channelId] ?? []];
|
|
1192
|
-
for (const m of fresh) {
|
|
1193
|
-
const idx = merged.findIndex((a) => a.agentId === m.id);
|
|
1194
|
-
if (idx >= 0) merged[idx] = {
|
|
1195
|
-
...merged[idx],
|
|
1196
|
-
name: m.name,
|
|
1197
|
-
role: m.role,
|
|
1198
|
-
harness: m.harness,
|
|
1199
|
-
config: m.config
|
|
1200
|
-
};
|
|
1201
|
-
else merged.push({
|
|
1202
|
-
agentId: m.id,
|
|
1203
|
-
name: m.name,
|
|
1204
|
-
role: m.role,
|
|
1205
|
-
harness: m.harness,
|
|
1206
|
-
config: m.config,
|
|
1207
|
-
state: "idle",
|
|
1208
|
-
currentTaskId: null,
|
|
1209
|
-
queued: 0,
|
|
1210
|
-
completed: 0
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
this.agents[channelId] = merged;
|
|
1214
|
-
}).catch(() => {}).finally(() => {
|
|
1215
|
-
this.refreshingAgents[channelId] = false;
|
|
1216
|
-
});
|
|
1217
|
-
},
|
|
1218
|
-
/**
|
|
1219
|
-
* 节流 REST 任务对齐:订阅后新建任务从事件构建时缺标题/父子关系,
|
|
1220
|
-
* 拉一次任务列表 upsert(以 REST 为准;事件流继续增量更新)。
|
|
1221
|
-
*/
|
|
1222
|
-
refreshTasks(channelId) {
|
|
1223
|
-
if (this.refreshing[channelId]) return;
|
|
1224
|
-
this.refreshing[channelId] = true;
|
|
1225
|
-
$fetch$2(`/api/workshop/channels/${channelId}/tasks`, { headers: { authorization: `Bearer ${useUserStore().token}` } }).then((res) => {
|
|
1226
|
-
const fresh = res.data ?? [];
|
|
1227
|
-
const current = this.tasks[channelId] ?? [];
|
|
1228
|
-
const byId = new Map(current.map((t) => [t.id, t]));
|
|
1229
|
-
const freshIds = new Set(fresh.map((t) => t.id));
|
|
1230
|
-
const merged = fresh.map((t) => {
|
|
1231
|
-
const prev = byId.get(t.id);
|
|
1232
|
-
const next = this.toTaskView(t);
|
|
1233
|
-
return prev && prev.progress > next.progress ? {
|
|
1234
|
-
...next,
|
|
1235
|
-
progress: prev.progress
|
|
1236
|
-
} : next;
|
|
1237
|
-
});
|
|
1238
|
-
for (const t of current) if (!freshIds.has(t.id)) merged.push(t);
|
|
1239
|
-
this.tasks[channelId] = merged;
|
|
1240
|
-
}).catch(() => {}).finally(() => {
|
|
1241
|
-
this.refreshing[channelId] = false;
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
});
|
|
1246
|
-
//#endregion
|
|
1247
|
-
//#region app/composables/workshop/useWorkshopWs.ts
|
|
1248
|
-
function useWorkshopWs() {
|
|
1249
|
-
const conn = useWsConnectionStore();
|
|
1250
|
-
const userStore = useUserStore();
|
|
1251
|
-
const events = useEventsStore();
|
|
1252
|
-
const entities = useEntitiesStore();
|
|
1253
|
-
const hitl = useHitlStore();
|
|
1254
|
-
const townBus = useTownBus();
|
|
1255
|
-
let session = globalThis.__workshopWs ?? null;
|
|
1256
|
-
const appliedSeq = /* @__PURE__ */ new Map();
|
|
1257
|
-
if (!session) {
|
|
1258
|
-
const s = new WorkshopWsSession((e) => {
|
|
1259
|
-
if (e.channelId && typeof e.seq === "number" && e.seq > 0 && e.type !== "channel.snapshot") {
|
|
1260
|
-
const last = appliedSeq.get(e.channelId) ?? 0;
|
|
1261
|
-
if (e.seq <= last) return;
|
|
1262
|
-
appliedSeq.set(e.channelId, e.seq);
|
|
1263
|
-
if (conn.pendingReplay) conn.pendingReplay = false;
|
|
1264
|
-
}
|
|
1265
|
-
if (e.type === "channel.snapshot" && e.channelId) {
|
|
1266
|
-
appliedSeq.set(e.channelId, typeof e.seq === "number" ? e.seq : 0);
|
|
1267
|
-
conn.pendingReplay = false;
|
|
1268
|
-
events.ingest(e);
|
|
1269
|
-
entities.applyEvent(e);
|
|
1270
|
-
entities.applySnapshot(e.payload);
|
|
1271
|
-
events.loadHistory(e.channelId);
|
|
1272
|
-
} else {
|
|
1273
|
-
events.ingest(e);
|
|
1274
|
-
entities.applyEvent(e);
|
|
1275
|
-
}
|
|
1276
|
-
if (e.type === "hitl.request" || e.type === "hitl.resolved") hitl.applyEnvelope(e);
|
|
1277
|
-
if (typeof e.seq === "number" && e.seq > 0 && e.channelId) {
|
|
1278
|
-
conn.cursors[e.channelId] = e.seq;
|
|
1279
|
-
s.updateCursor(e.channelId, e.seq);
|
|
1280
|
-
}
|
|
1281
|
-
townBus.emit(e);
|
|
1282
|
-
}, (state, retry) => {
|
|
1283
|
-
conn.state = state;
|
|
1284
|
-
conn.retryCount = retry;
|
|
1285
|
-
}, () => {
|
|
1286
|
-
conn.pendingReplay = true;
|
|
1287
|
-
}, () => {
|
|
1288
|
-
conn.lastDataAt = Date.now();
|
|
1289
|
-
});
|
|
1290
|
-
session = s;
|
|
1291
|
-
globalThis.__workshopWs = session;
|
|
1292
|
-
}
|
|
1293
|
-
watch(() => userStore.token, (t) => {
|
|
1294
|
-
if (session instanceof WorkshopWsSession) session.userToken = t;
|
|
1295
|
-
}, { immediate: true });
|
|
1296
|
-
const subscribe = (channelId) => {
|
|
1297
|
-
const lastSeq = events.lastSeq(channelId);
|
|
1298
|
-
session?.subscribe(channelId, lastSeq > 0 ? lastSeq : void 0);
|
|
1299
|
-
};
|
|
1300
|
-
const unsubscribe = (channelId) => {
|
|
1301
|
-
if (!session) return;
|
|
1302
|
-
session.unsubscribe(channelId);
|
|
1303
|
-
if (session.refCount(channelId) === 0) events.clear(channelId);
|
|
1304
|
-
};
|
|
1305
|
-
/** 建连但不订阅 channel:纯场景事件消费方(daq 实时帧)用。
|
|
1306
|
-
* 服务端在连接层注册 scene peer,连上即收 daq.reading 等无频道广播。 */
|
|
1307
|
-
const ensureConnected = () => {
|
|
1308
|
-
session?.ensureConnected();
|
|
1309
|
-
};
|
|
1310
|
-
return {
|
|
1311
|
-
subscribe,
|
|
1312
|
-
unsubscribe,
|
|
1313
|
-
ensureConnected,
|
|
1314
|
-
conn
|
|
1315
|
-
};
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
export { BlockClusterer as B, KIND_META as K, TOOL_META as T, useWorkshopWs as a, agentHueColor as b, useEventsStore as c, blockTier as d, buildStreamText as e, useWsConnectionStore as f, useHitlStore as g, isStreaming as i, mdLiteMentions as m, streamCursorVisible as s, useEntitiesStore as u };
|
|
1319
|
-
//# sourceMappingURL=useWorkshopWs-C_I7q9As.mjs.map
|