agentworkshop 0.7.6 → 0.7.7
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 +1 -1
- package/.output/.AgentWorkShop/prompts/host-tools.json +1 -1
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{rzGB_ojX.js → 3612gD2V.js} +2 -2
- package/.output/public/_nuxt/8eIQAVlb.js +1 -0
- package/.output/public/_nuxt/Ah9qOv1m.js +1 -0
- package/.output/public/_nuxt/{DdPeifHR.js → B4Fia4FB.js} +1 -1
- package/.output/public/_nuxt/B7aqqzkY.js +1 -0
- package/.output/public/_nuxt/BJ-fxrSw.js +1 -0
- package/.output/public/_nuxt/{DPDqAD1e.js → BSXx2vqR.js} +1 -1
- package/.output/public/_nuxt/{CdSgfcYR.js → BVZjSVs2.js} +1 -1
- package/.output/public/_nuxt/{DP6bdyIp.js → BVzDoF8t.js} +1 -1
- package/.output/public/_nuxt/BYL0Rjqj.js +7 -0
- package/.output/public/_nuxt/{CXmkVXS5.js → BjVLsC3M.js} +1 -1
- package/.output/public/_nuxt/{7ZABjMRh2.js → BkfchkK62.js} +1 -1
- package/.output/public/_nuxt/BnVoQ74r.js +1 -0
- package/.output/public/_nuxt/Bnp4vIAf.js +1 -0
- package/.output/public/_nuxt/BsMpJf7S.js +70 -0
- package/.output/public/_nuxt/{Z8k0uMSI.js → Bt_HDizI.js} +1 -1
- package/.output/public/_nuxt/Bu-P92Pe.js +18 -0
- package/.output/public/_nuxt/ButLXkjo.js +2 -0
- package/.output/public/_nuxt/C-GarxYC.js +1 -0
- package/.output/public/_nuxt/{D8DDDzV62.js → C2iWjzEC2.js} +1 -1
- package/.output/public/_nuxt/{HWXLx5Hz.js → C8dxXc6K.js} +5 -5
- package/.output/public/_nuxt/CGdPdJPP.js +1 -0
- package/.output/public/_nuxt/{CyygA0q4.js → CQiKcuoG.js} +4 -4
- package/.output/public/_nuxt/{CN7Zh8GQ.js → CRGlf1Gb.js} +1 -1
- package/.output/public/_nuxt/{DSBfvCi5.js → CblLEiCZ.js} +7 -7
- package/.output/public/_nuxt/Cd15nPnG2.js +1 -0
- package/.output/public/_nuxt/{OwJ1LJkF.js → CsCpu2Zh.js} +1 -1
- package/.output/public/_nuxt/CvbHIGQY2.js +1 -0
- package/.output/public/_nuxt/Cyk3du4K2.js +1 -0
- package/.output/public/_nuxt/{DVQAz9WI.js → D4qXvjuV.js} +2 -2
- package/.output/public/_nuxt/{CfIXY-ET.js → DCEyMaN-.js} +1 -1
- package/.output/public/_nuxt/{BFYNhG9S.js → DCXIGxzT.js} +1 -1
- package/.output/public/_nuxt/{B9aPoQvt.js → DM8DS9MA.js} +1 -1
- package/.output/public/_nuxt/{ChnfyQHz.js → DNzaswei.js} +1 -1
- package/.output/public/_nuxt/{CrFGZYVB2.js → DYZBdSSg2.js} +1 -1
- package/.output/public/_nuxt/{dObsRdSQ.js → DZk24ego.js} +1 -1
- package/.output/public/_nuxt/DeYsUzhr.js +1 -0
- package/.output/public/_nuxt/Dk6pq9JB2.js +1 -0
- package/.output/public/_nuxt/{ByGNWgAr.js → Do88WZG2.js} +3 -3
- package/.output/public/_nuxt/{R_WxTozV2.js → Du-eSpo2.js} +1 -1
- package/.output/public/_nuxt/OmpTerminalPanel.B_Pl5Ynm.css +1 -0
- package/.output/public/_nuxt/{Bsc69G4x.js → VnIWJ0ts.js} +3 -3
- package/.output/public/_nuxt/_id_.BzKMZnLe.css +1 -0
- package/.output/public/_nuxt/_id_.CbpDAWRh.css +1 -0
- package/.output/public/_nuxt/{_wsId_.DET_GinP.css → _wsId_.COUzMXpP.css} +1 -1
- package/.output/public/_nuxt/agents.BlejnOOC.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/14df171d-89cb-43ec-ad6f-9df72d6da7f5.json +1 -0
- package/.output/public/_nuxt/daq.zZ8GR433.css +1 -0
- package/.output/public/_nuxt/{default.D17kXlD6.css → default.V3_hUJq1.css} +1 -1
- package/.output/public/_nuxt/{B4GHHF6d2.js → fQUs58kX2.js} +1 -1
- package/.output/public/_nuxt/p7wSGMtc.js +1 -0
- package/.output/public/_nuxt/tRBT-plo.js +1 -0
- package/.output/server/chunks/_/SearchOutlined.mjs +4 -4
- package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -1
- package/.output/server/chunks/_/character-asset.repo.mjs +3 -6
- package/.output/server/chunks/_/character-asset.repo.mjs.map +1 -1
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +4967 -2035
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/scene-layout.repo.mjs +4 -10
- package/.output/server/chunks/_/scene-layout.repo.mjs.map +1 -1
- package/.output/server/chunks/build/{Col-D7fjGDF6.mjs → Col-biaNnEPf.mjs} +2 -2
- package/.output/server/chunks/build/{Col-D7fjGDF6.mjs.map → Col-biaNnEPf.mjs.map} +1 -1
- package/.output/server/chunks/build/{OmpTerminalPanel-B_SYhmgb.mjs → OmpTerminalPanel-COphA1br.mjs} +20 -19
- package/.output/server/chunks/build/OmpTerminalPanel-COphA1br.mjs.map +1 -0
- package/.output/server/chunks/build/{TownView-Bl8Gkcxi.mjs → TownView-B5KifIaT.mjs} +4 -4
- package/.output/server/chunks/build/{TownView-Bl8Gkcxi.mjs.map → TownView-B5KifIaT.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-GnRJPykX.mjs → _id_-C-ewLgfl.mjs} +119 -119
- package/.output/server/chunks/build/{_id_-GnRJPykX.mjs.map → _id_-C-ewLgfl.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-CWLFGZjV.mjs → _id_-Ct4Jhvl1.mjs} +42 -38
- package/.output/server/chunks/build/_id_-Ct4Jhvl1.mjs.map +1 -0
- package/.output/server/chunks/build/{_wsId_-BhQMjyHG.mjs → _wsId_-CanI_6Su.mjs} +591 -53
- package/.output/server/chunks/build/{_wsId_-BhQMjyHG.mjs.map → _wsId_-CanI_6Su.mjs.map} +1 -1
- package/.output/server/chunks/build/{agents-D4l1icvn.mjs → agents-DSOptxXA.mjs} +146 -91
- package/.output/server/chunks/build/agents-DSOptxXA.mjs.map +1 -0
- package/.output/server/chunks/build/{alert-gH-s7yIh.mjs → alert-qJnjyRcP.mjs} +3 -3
- package/.output/server/chunks/build/{alert-gH-s7yIh.mjs.map → alert-qJnjyRcP.mjs.map} +1 -1
- package/.output/server/chunks/build/{button-BhbX5ACI.mjs → button-DEcZFcqN.mjs} +3 -3
- package/.output/server/chunks/build/{button-BhbX5ACI.mjs.map → button-DEcZFcqN.mjs.map} +1 -1
- package/.output/server/chunks/build/{card-l4BbX67w.mjs → card-Dipvaykh.mjs} +5 -5
- package/.output/server/chunks/build/{card-l4BbX67w.mjs.map → card-Dipvaykh.mjs.map} +1 -1
- package/.output/server/chunks/build/{channel-templates-DqjtC-R0.mjs → channel-templates-BK0KuPOd.mjs} +13 -12
- package/.output/server/chunks/build/channel-templates-BK0KuPOd.mjs.map +1 -0
- package/.output/server/chunks/build/{checkbox-BF11p3dH.mjs → checkbox-dzcpU_Cd.mjs} +4 -4
- package/.output/server/chunks/build/{checkbox-BF11p3dH.mjs.map → checkbox-dzcpU_Cd.mjs.map} +1 -1
- package/.output/server/chunks/build/{daq-BOgpn9sl.mjs → daq-D9RA_uze.mjs} +102 -102
- package/.output/server/chunks/build/{daq-BOgpn9sl.mjs.map → daq-D9RA_uze.mjs.map} +1 -1
- package/.output/server/chunks/build/dcw-BTM5YU-B.mjs +1 -1
- package/.output/server/chunks/build/{default-CKJWhkot.mjs → default-BfWGTlbj.mjs} +81 -23
- package/.output/server/chunks/build/{default-CKJWhkot.mjs.map → default-BfWGTlbj.mjs.map} +1 -1
- package/.output/server/chunks/build/{drawer-CVValqoh.mjs → drawer-Cmh90erI.mjs} +3 -3
- package/.output/server/chunks/build/{drawer-CVValqoh.mjs.map → drawer-Cmh90erI.mjs.map} +1 -1
- package/.output/server/chunks/build/{dropdown-ByCsEWlQ.mjs → dropdown-CGQ0KAzA.mjs} +2 -2
- package/.output/server/chunks/build/{dropdown-ByCsEWlQ.mjs.map → dropdown-CGQ0KAzA.mjs.map} +1 -1
- package/.output/server/chunks/build/{dropdown-Dex8PXu6.mjs → dropdown-vhn1NPFs.mjs} +4 -4
- package/.output/server/chunks/build/{dropdown-Dex8PXu6.mjs.map → dropdown-vhn1NPFs.mjs.map} +1 -1
- package/.output/server/chunks/build/{input-number-BBlRoAJ7.mjs → input-number-Bd55elNN.mjs} +5 -5
- package/.output/server/chunks/build/{input-number-BBlRoAJ7.mjs.map → input-number-Bd55elNN.mjs.map} +1 -1
- package/.output/server/chunks/build/{input--KMeLYqZ.mjs → input-sf_BT6o6.mjs} +3 -3
- package/.output/server/chunks/build/{input--KMeLYqZ.mjs.map → input-sf_BT6o6.mjs.map} +1 -1
- package/.output/server/chunks/build/logs-Dyk0I2I9.mjs +1 -1
- package/.output/server/chunks/build/{menu-xN-SXb9Q.mjs → menu-WCrlpYVh.mjs} +3 -3
- package/.output/server/chunks/build/{menu-xN-SXb9Q.mjs.map → menu-WCrlpYVh.mjs.map} +1 -1
- package/.output/server/chunks/build/{modal-DrCOcjrl.mjs → modal-yvUquPj5.mjs} +4 -4
- package/.output/server/chunks/build/{modal-DrCOcjrl.mjs.map → modal-yvUquPj5.mjs.map} +1 -1
- package/.output/server/chunks/build/{monitor-KW8WLOJd.mjs → monitor-MIOvsyLa.mjs} +21 -21
- package/.output/server/chunks/build/{monitor-KW8WLOJd.mjs.map → monitor-MIOvsyLa.mjs.map} +1 -1
- package/.output/server/chunks/build/pages-DR2bzczM.mjs +1 -1
- package/.output/server/chunks/build/{plugins-B-ZNey0Z.mjs → plugins-DnOBIWGg.mjs} +7 -7
- package/.output/server/chunks/build/{plugins-B-ZNey0Z.mjs.map → plugins-DnOBIWGg.mjs.map} +1 -1
- package/.output/server/chunks/build/{popconfirm-C5H1Qoh3.mjs → popconfirm-CRaHcz5O.mjs} +4 -4
- package/.output/server/chunks/build/{popconfirm-C5H1Qoh3.mjs.map → popconfirm-CRaHcz5O.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkshopApi-Bh5VUHWu.mjs → segmented-DPe9ZzLO.mjs} +7 -78
- package/.output/server/chunks/build/segmented-DPe9ZzLO.mjs.map +1 -0
- package/.output/server/chunks/build/{select-D7H2ysgT.mjs → select-D-CeE5vY.mjs} +3 -3
- package/.output/server/chunks/build/{select-D7H2ysgT.mjs.map → select-D-CeE5vY.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-Cr06lbRy.mjs → settings-DA8IkGLo.mjs} +11 -11
- package/.output/server/chunks/build/{settings-Cr06lbRy.mjs.map → settings-DA8IkGLo.mjs.map} +1 -1
- package/.output/server/chunks/build/{space-DCwIlnkI.mjs → space-CCBYAkXt.mjs} +2 -2
- package/.output/server/chunks/build/{space-DCwIlnkI.mjs.map → space-CCBYAkXt.mjs.map} +1 -1
- package/.output/server/chunks/build/{switch-VC0m9ede.mjs → switch-CelRXpcy.mjs} +3 -3
- package/.output/server/chunks/build/{switch-VC0m9ede.mjs.map → switch-CelRXpcy.mjs.map} +1 -1
- package/.output/server/chunks/build/{table-BksLg3Q_.mjs → table-Cswq-l2r.mjs} +10 -10
- package/.output/server/chunks/build/{table-BksLg3Q_.mjs.map → table-Cswq-l2r.mjs.map} +1 -1
- package/.output/server/chunks/build/{tabs-CzUfD3iX.mjs → tabs-BM3tAh_J.mjs} +5 -5
- package/.output/server/chunks/build/{tabs-CzUfD3iX.mjs.map → tabs-BM3tAh_J.mjs.map} +1 -1
- package/.output/server/chunks/build/{tag-oQI3VtqM.mjs → tag-NO9jEqKy.mjs} +4 -4
- package/.output/server/chunks/build/{tag-oQI3VtqM.mjs.map → tag-NO9jEqKy.mjs.map} +1 -1
- package/.output/server/chunks/build/{teams-QR3BBF7A.mjs → teams-BhSKBBBM.mjs} +15 -14
- package/.output/server/chunks/build/teams-BhSKBBBM.mjs.map +1 -0
- package/.output/server/chunks/build/{tokens-DFvr_TLj.mjs → tokens-D_eyxmcv.mjs} +16 -16
- package/.output/server/chunks/build/{tokens-DFvr_TLj.mjs.map → tokens-D_eyxmcv.mjs.map} +1 -1
- package/.output/server/chunks/build/town-BUqRobze.mjs +1 -1
- package/.output/server/chunks/build/{town-_4tEEEVW.mjs → town-DPtOPRRO.mjs} +4 -4
- package/.output/server/chunks/build/{town-_4tEEEVW.mjs.map → town-DPtOPRRO.mjs.map} +1 -1
- package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs +42 -0
- package/.output/server/chunks/build/useLocalTime-9a4B-aHv.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs +81 -0
- package/.output/server/chunks/build/useWorkshopApi-D2gq06N2.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopWs-B3j5wIAK.mjs +1 -1
- package/.output/server/chunks/build/user-Dk-ytEUV.mjs +1 -1
- package/.output/server/chunks/build/{users-4FZ0yFUO.mjs → users-CmVvb1oq.mjs} +16 -16
- package/.output/server/chunks/build/{users-4FZ0yFUO.mjs.map → users-CmVvb1oq.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-k0XZTFKg.mjs → workshop-iCzNRifn.mjs} +9 -9
- package/.output/server/chunks/build/{workshop-k0XZTFKg.mjs.map → workshop-iCzNRifn.mjs.map} +1 -1
- package/.output/server/chunks/build/workspaces-IfORCDJE.mjs +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
- package/.output/server/chunks/routes/api/metrics.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/config.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/index.get.mjs +3 -3
- package/.output/server/chunks/routes/api/system/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/system/index.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +1 -1
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/system/monitor.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs +1 -1
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/_id_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/users/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/login.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/logout.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/me.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/register.post.mjs +1 -1
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +1 -1
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +6 -14
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/list.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +1 -1
- 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 +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/caller.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +1 -1
- 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 +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +1 -1
- 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 +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +9 -2
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.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 +6 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -1
- 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/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/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/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/rollback-good.post.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/_id_.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 +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
- 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 +247 -0
- package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +19 -7
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs +1 -1
- 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 +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +1 -1
- 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 +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +123 -113
- package/.output/server/chunks/virtual/entry.mjs.map +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/app/components/AppHeader.vue +56 -2
- package/app/components/workshop/ChannelSessionList.vue +703 -593
- package/app/components/workshop/terminal/OmpTerminalPanel.vue +2 -1
- package/app/composables/workshop/useLocalTime.ts +16 -0
- package/app/composables/workshop/useSceneLayouts.ts +2 -1
- package/app/composables/workshop/useWorkshopApi.ts +249 -224
- package/app/pages/daq/[id].vue +7 -6
- package/app/pages/daq/index.vue +2 -2
- package/app/pages/dcw/[id].vue +3 -3
- package/app/pages/workshop/agents.vue +432 -382
- package/bin/aw.mjs +0 -0
- package/cli/aw.mjs +8 -1
- package/cli/commands/stop.mjs +7 -4
- package/cli/commands/tui.mjs +10 -1
- package/cli/core/registry.mjs +5 -3
- package/config.yml +134 -134
- package/docs/tui.md +1 -1
- package/i18n/locales/en.ts +5 -0
- package/i18n/locales/zh-CN.ts +5 -0
- package/package.json +148 -140
- package/scripts/_dbg-catalog-smoke.ts +20 -0
- package/scripts/_dbg-codex-probe.mjs +58 -0
- package/scripts/_dbg-dsh-probe.mjs +31 -0
- package/scripts/_dbg-interval-scenario.mjs +126 -0
- package/scripts/_dbg-line-spawn.ts +31 -0
- package/scripts/_dbg-live-engine-probe.mjs +80 -0
- package/scripts/_dbg-mcp-bridge-probe.mjs +147 -0
- package/scripts/_dbg-opencode-sse.mjs +101 -0
- package/scripts/_dbg-opencode-start.ts +57 -0
- package/scripts/_dbg-plugin-matrix.mjs +212 -0
- package/scripts/_dbg-protocol-matrix.mjs +425 -0
- package/scripts/_dbg-real-scenario-timeline.log +123 -0
- package/scripts/_dbg-registry-smoke.ts +14 -0
- package/scripts/_dbg-sim-keeper.mjs +100 -0
- package/scripts/_dbg-team-drill.mjs +173 -0
- package/scripts/dev-guard.mjs +11 -3
- package/scripts/dev-protocol-simulators.mjs +28 -1
- package/scripts/e2e-multi-harness.ts +374 -0
- package/scripts/e2e-multiharness-team.mjs +319 -0
- package/scripts/e2e-plc-scenario.mjs +292 -0
- package/scripts/e2e-real-scenario.mjs +452 -0
- package/scripts/migrate-local-time.mjs +123 -0
- package/scripts/start.mjs +30 -2
- package/server/api/system/settings/index.get.ts +3 -3
- package/server/api/workshop/agent-tools/invoke.post.ts +27 -41
- package/server/api/workshop/agent-tools/list.get.ts +25 -0
- package/server/api/workshop/channels/[id]/index.patch.ts +38 -30
- package/server/api/workshop/daq/[id]/samples.get.ts +6 -3
- package/server/api/workshop/harnesses/[id]/providers.get.ts +16 -0
- package/server/api/workshop/harnesses.get.ts +12 -0
- package/server/api/workshop/hitl/respond.post.ts +87 -67
- package/server/api/workshop/ws.ts +13 -0
- package/server/data/daqs.json +1366 -16
- package/server/data/dcw-lines.json +266 -0
- package/server/data/dcw-products.json +203 -0
- package/server/data/dcw-recipes.json +784 -0
- package/server/data/dcw-rollback.json +1144 -1
- package/server/data/dcw-runs.json +983 -791
- package/server/data/dcw-writes.json +1080 -0
- package/server/data/dcws.json +3278 -203
- package/server/data/line-runs.json +52 -2
- package/server/harness/aw-mcp-bridge.mjs +153 -0
- package/server/plugins/00-local-time.ts +10 -0
- package/server/plugins/aw-plugins.ts +3 -0
- package/server/plugins/backup.ts +116 -97
- package/server/plugins/dev-stability-guard.ts +24 -15
- package/server/plugins/retention.ts +1 -0
- package/server/plugins/security.ts +24 -3
- package/server/plugins/workshop.ts +156 -153
- package/server/repositories/user.repository.ts +414 -391
- package/server/services/system-config.ts +30 -6
- package/server/services/workshop/.mimosa/hook-state/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f.json +1 -0
- package/server/services/workshop/.mimosa/hook-status/sess_fed429fb-c8b7-4a50-bbd6-45afc580893f-e6b75bbfe6.json +14 -0
- package/server/services/workshop/agents/adapters/line-spawn.ts +108 -0
- package/server/services/workshop/agents/adapters/stdio-jsonrpc.ts +316 -0
- package/server/services/workshop/agents/agent-interface.ts +17 -0
- package/server/services/workshop/agents/codex-agent.ts +822 -0
- package/server/services/workshop/agents/dsh-agent.ts +670 -0
- package/server/services/workshop/agents/factory.ts +4 -16
- package/server/services/workshop/agents/harness-env.ts +54 -0
- package/server/services/workshop/agents/harness-models.ts +270 -0
- package/server/services/workshop/agents/host-tool-bridge.ts +592 -0
- package/server/services/workshop/agents/industrial-tools.ts +5 -1
- package/server/services/workshop/agents/node-bindings.repo.ts +4 -5
- package/server/services/workshop/agents/omp-agent.ts +1178 -1957
- package/server/services/workshop/agents/opencode-agent.ts +987 -0
- package/server/services/workshop/agents/prompt-builder.ts +393 -0
- package/server/services/workshop/agents/registry.ts +125 -0
- package/server/services/workshop/assets/character-asset.repo.ts +3 -5
- package/server/services/workshop/assets/device-twin.repo.ts +3 -5
- package/server/services/workshop/daq/daq-controller.ts +8 -4
- package/server/services/workshop/daq/daq-node.repo.ts +3 -5
- package/server/services/workshop/daq/daq-node.ts +2 -2
- package/server/services/workshop/daq/daq-templates.ts +3 -5
- package/server/services/workshop/daq/drivers.ts +41 -12
- package/server/services/workshop/daq/storage/sqlite.adapter.ts +313 -309
- package/server/services/workshop/db/backup-registry.ts +33 -0
- package/server/services/workshop/db/channel.repo.ts +104 -101
- package/server/services/workshop/db/database.ts +956 -949
- package/server/services/workshop/dcw/dcw-controller.ts +3 -1
- package/server/services/workshop/dcw/dcw-line.repo.ts +4 -11
- package/server/services/workshop/dcw/dcw-node.repo.ts +3 -5
- package/server/services/workshop/dcw/dcw-node.ts +13 -1
- package/server/services/workshop/dcw/dcw-product.repo.ts +3 -4
- package/server/services/workshop/dcw/dcw-recipe.repo.ts +3 -19
- package/server/services/workshop/dcw/dcw-templates.ts +3 -5
- package/server/services/workshop/dcw/drivers.ts +37 -13
- package/server/services/workshop/dcw/line-run.ts +3 -5
- package/server/services/workshop/dcw/recipe-rollback.repo.ts +4 -10
- package/server/services/workshop/json-store.mjs +72 -0
- package/server/services/workshop/plugins/host.mjs +2 -1
- package/server/services/workshop/runtime/agent-runtime.ts +44 -0
- package/server/services/workshop/runtime/manager.ts +2953 -2868
- package/server/services/workshop/scene/scene-layout.repo.ts +4 -11
- package/server/services/workshop/settings.ts +7 -0
- package/shared/config/schema.json +5 -0
- package/shared/config/single-instance.mjs +5 -1
- package/shared/local-time.mjs +36 -0
- package/shared/workshop-protocol.ts +11 -5
- package/tui/aw-tui.mjs +28 -10
- package/tui/components/hitl-card.mjs +47 -36
- package/tui/lib/ws.mjs +2 -1
- package/.output/public/_nuxt/9X0fVBD7.js +0 -57
- package/.output/public/_nuxt/B6M2WJWm2.js +0 -1
- package/.output/public/_nuxt/B9Yie5HN.js +0 -2
- package/.output/public/_nuxt/BF9XPEuw.js +0 -1
- package/.output/public/_nuxt/BbQornXa.js +0 -1
- package/.output/public/_nuxt/Bxgaym6j.js +0 -1
- package/.output/public/_nuxt/Bxh5nf8j.js +0 -1
- package/.output/public/_nuxt/CXLI50Sq.js +0 -1
- package/.output/public/_nuxt/CdfAP_IH2.js +0 -1
- package/.output/public/_nuxt/Ce1zyNYu.js +0 -1
- package/.output/public/_nuxt/D-Ne4C9a.js +0 -1
- package/.output/public/_nuxt/DEHNjlTq2.js +0 -1
- package/.output/public/_nuxt/DFnGFEav.js +0 -18
- package/.output/public/_nuxt/DYWgGHNo.js +0 -7
- package/.output/public/_nuxt/OmpTerminalPanel.Bc9GjNU5.css +0 -1
- package/.output/public/_nuxt/W1E3-5ML.js +0 -14
- package/.output/public/_nuxt/XVB9_zwP.js +0 -1
- package/.output/public/_nuxt/Xaf_HIR3.js +0 -1
- package/.output/public/_nuxt/_id_.BeqSLvl_.css +0 -1
- package/.output/public/_nuxt/_id_.DN3U6EF9.css +0 -1
- package/.output/public/_nuxt/agents.BJwgTLFZ.css +0 -1
- package/.output/public/_nuxt/builds/meta/55c10854-ee0e-4be4-924b-a1b0e100fe11.json +0 -1
- package/.output/public/_nuxt/daq.BXsnevQv.css +0 -1
- package/.output/public/_nuxt/yIKY_V1P.js +0 -1
- package/.output/server/chunks/build/OmpTerminalPanel-B_SYhmgb.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-CWLFGZjV.mjs.map +0 -1
- package/.output/server/chunks/build/agents-D4l1icvn.mjs.map +0 -1
- package/.output/server/chunks/build/channel-templates-DqjtC-R0.mjs.map +0 -1
- package/.output/server/chunks/build/interval-WlxgjTzO.mjs +0 -9
- package/.output/server/chunks/build/interval-WlxgjTzO.mjs.map +0 -1
- package/.output/server/chunks/build/teams-QR3BBF7A.mjs.map +0 -1
- package/.output/server/chunks/build/useWorkshopApi-Bh5VUHWu.mjs.map +0 -1
|
@@ -1,593 +1,703 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
/**
|
|
3
|
-
* 左栏 Channel 会话列表(Zcode session 栏):workspace 内挂载的 channel,
|
|
4
|
-
* 实时状态徽标(忙碌成员数/活跃任务数),点击聚焦;挂载/移出/设置操作。
|
|
5
|
-
* v10 模板化:
|
|
6
|
-
* - 「从模板挂载」:选择 Channel 模板 → 实例化 + 挂载一步完成(替代"挂载已有 Channel");
|
|
7
|
-
* - 「设置」:热修改当前 Channel 实例的场景描述与工作目录(成员运行时自动回收重装配);
|
|
8
|
-
* - 「保存为模板」:把当前 Channel 实例捕获为可复用模板(场景/目录/团队快照)。
|
|
9
|
-
*/
|
|
10
|
-
import { message } from 'ant-design-vue'
|
|
11
|
-
import { useWorkspacesStore } from '@/app/stores/workshop/workspaces'
|
|
12
|
-
import { useEntitiesStore } from '@/app/stores/workshop/entities'
|
|
13
|
-
import { useWorkshopApi, type ChannelDto, type ChannelTemplateDto } from '@/app/composables/workshop/useWorkshopApi'
|
|
14
|
-
|
|
15
|
-
const { t } = useI18n()
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{ wsId: string }>()
|
|
18
|
-
const wsStore = useWorkspacesStore()
|
|
19
|
-
const entities = useEntitiesStore()
|
|
20
|
-
const api = useWorkshopApi()
|
|
21
|
-
|
|
22
|
-
const workspace = computed(() => wsStore.workspaces.find(w => w.id === props.wsId))
|
|
23
|
-
|
|
24
|
-
const channels = ref<ChannelDto[]>([])
|
|
25
|
-
const channelTemplates = ref<ChannelTemplateDto[]>([])
|
|
26
|
-
const refreshChannels = async (): Promise<void> => {
|
|
27
|
-
// SSR 守卫:axios 相对 baseURL 仅客户端有效(服务端拉取会 Invalid URL)
|
|
28
|
-
if (typeof window === 'undefined') return
|
|
29
|
-
const [ch, tpl] = await Promise.all([
|
|
30
|
-
api.listChannels(),
|
|
31
|
-
api.listChannelTemplates().catch(() => null),
|
|
32
|
-
])
|
|
33
|
-
channels.value = (ch as unknown as { data?: ChannelDto[] })?.data ?? []
|
|
34
|
-
channelTemplates.value = (tpl as unknown as { data?: ChannelTemplateDto[] } | null)?.data ?? []
|
|
35
|
-
}
|
|
36
|
-
void refreshChannels()
|
|
37
|
-
|
|
38
|
-
const mountedChannels = computed(() =>
|
|
39
|
-
(workspace.value?.channelIds ?? [])
|
|
40
|
-
.map(id => ({ id, meta: channels.value.find(c => c.id === id), entity: entities.channels[id] }))
|
|
41
|
-
.map(({ id, meta, entity }) => ({
|
|
42
|
-
id,
|
|
43
|
-
name: entity?.name ?? meta?.name ?? id.slice(0, 8),
|
|
44
|
-
/** 实体基线(WS 快照)是否已到达:未到时计数不可信,展示"同步中"而非误导性的 0 */
|
|
45
|
-
synced: entity !== undefined,
|
|
46
|
-
busy: entities.busyCount(id),
|
|
47
|
-
agents: entities.agents[id]?.length ?? 0,
|
|
48
|
-
activeTasks: (entities.tasks[id] ?? []).filter(t => !['COMPLETED', 'CANCELED', 'FAILED'].includes(t.state)).length,
|
|
49
|
-
workspace: meta?.workspace ?? '',
|
|
50
|
-
})),
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
const select = (channelId: string): void => {
|
|
54
|
-
wsStore.setActiveChannel(props.wsId, channelId)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** 点击工作目录行:复制完整路径到剪贴板(有真实作用;title 提示全路径) */
|
|
58
|
-
const copyWorkspace = async (path: string): Promise<void> => {
|
|
59
|
-
try {
|
|
60
|
-
await navigator.clipboard.writeText(path)
|
|
61
|
-
message.success(t('channelSessionList.kud74vg040', { p0: path }))
|
|
62
|
-
}
|
|
63
|
-
catch {
|
|
64
|
-
message.error(t('channelSessionList.krij3gg026'))
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/** 路径显示 basename(E:\codes\AgentWorkShop → AgentWorkShop),全路径在 title/复制 */
|
|
68
|
-
const baseName = (path: string): string => path.replace(/[\\/]+$/, '').split(/[\\/]/).pop() ?? path
|
|
69
|
-
/** 默认目录(data/workspaces/<uuid>)的 basename 是 36 位裸 UUID,对用户零信息量 → 不展示该行 */
|
|
70
|
-
const UUID_RE = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i
|
|
71
|
-
const displayWorkspace = (path: string): string => {
|
|
72
|
-
const base = baseName(path)
|
|
73
|
-
return UUID_RE.test(base) ? '' : base
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ===== 新建 Channel 并挂载(空团队) =====
|
|
77
|
-
const mountModal = ref(false)
|
|
78
|
-
const mountForm = reactive({ name: '', description: '', workspace: '', scenarioPrompt: '' })
|
|
79
|
-
const mountSubmitting = ref(false)
|
|
80
|
-
/** FileSelector 弹窗(选择服务器目录作为 workspace) */
|
|
81
|
-
const fileSelectorOpen = ref(false)
|
|
82
|
-
const createAndMount = async (): Promise<void> => {
|
|
83
|
-
if (!mountForm.name.trim()) {
|
|
84
|
-
message.warning('Channel 名称必填')
|
|
85
|
-
return
|
|
86
|
-
}
|
|
87
|
-
mountSubmitting.value = true
|
|
88
|
-
try {
|
|
89
|
-
const res = await api.createChannel({
|
|
90
|
-
name: mountForm.name.trim(),
|
|
91
|
-
description: mountForm.description || undefined,
|
|
92
|
-
scenarioPrompt: mountForm.scenarioPrompt.trim() || undefined,
|
|
93
|
-
workspace: mountForm.workspace.trim() || undefined,
|
|
94
|
-
})
|
|
95
|
-
const created = (res as unknown as { data?: { channelId?: string } })?.data
|
|
96
|
-
const channelId = created?.channelId
|
|
97
|
-
if (!channelId) throw new Error(t('channelSessionList.k1bg6shc027'))
|
|
98
|
-
await wsStore.mountChannel(props.wsId, channelId)
|
|
99
|
-
mountModal.value = false
|
|
100
|
-
mountForm.name = ''
|
|
101
|
-
mountForm.description = ''
|
|
102
|
-
mountForm.workspace = ''
|
|
103
|
-
mountForm.scenarioPrompt = ''
|
|
104
|
-
void refreshChannels()
|
|
105
|
-
message.success(t('channelSessionList.kn89jvs028'))
|
|
106
|
-
}
|
|
107
|
-
catch (e) {
|
|
108
|
-
message.error(t('channelSessionList.k1x2th9e041', { p0: e instanceof Error ? e.message : String(e) }))
|
|
109
|
-
}
|
|
110
|
-
finally {
|
|
111
|
-
mountSubmitting.value = false
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// ===== 从 Channel 模板挂载(实例化 + mount 一步) =====
|
|
116
|
-
const templateMountId = ref<string | undefined>()
|
|
117
|
-
const templateMounting = ref(false)
|
|
118
|
-
const mountFromTemplate = async (): Promise<void> => {
|
|
119
|
-
if (!templateMountId.value) return
|
|
120
|
-
templateMounting.value = true
|
|
121
|
-
try {
|
|
122
|
-
const res = await api.mountChannelTemplate(props.wsId, templateMountId.value)
|
|
123
|
-
const data = (res as unknown as { data?: { agentCount?: number } })?.data
|
|
124
|
-
message.success(t('channelSessionList.kai50qc042', { p0: data?.agentCount ?? 0 }))
|
|
125
|
-
templateMountId.value = undefined
|
|
126
|
-
void refreshChannels()
|
|
127
|
-
}
|
|
128
|
-
catch (e) {
|
|
129
|
-
const err = e as { data?: { message?: string }, message?: string }
|
|
130
|
-
message.error(err?.data?.message ?? err?.message ?? t('channelSessionList.k97xi7u029'))
|
|
131
|
-
}
|
|
132
|
-
finally {
|
|
133
|
-
templateMounting.value = false
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const unmount = (channelId: string): void => {
|
|
138
|
-
wsStore.unmountChannel(props.wsId, channelId)
|
|
139
|
-
.catch((e: { data?: { message?: string }, message?: string }) => { message.error(e?.data?.message ?? e?.message ?? t('channelSessionList.k1hgfvdc030')) })
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// ===== Channel 实例设置(场景/工作目录热更新)+ 保存为模板 =====
|
|
143
|
-
const settingsOpen = ref(false)
|
|
144
|
-
const settingsChannelId = ref<string>('')
|
|
145
|
-
const settingsForm = reactive({ name: '', scenarioPrompt: '', workspace: '' })
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<span
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
:
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
</
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
<a-form-item
|
|
389
|
-
<a-input-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
</
|
|
403
|
-
</a-form-item>
|
|
404
|
-
<a-form-item>
|
|
405
|
-
<a-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
<
|
|
466
|
-
.
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
.
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
.
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
.
|
|
564
|
-
.
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
font-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* 左栏 Channel 会话列表(Zcode session 栏):workspace 内挂载的 channel,
|
|
4
|
+
* 实时状态徽标(忙碌成员数/活跃任务数),点击聚焦;挂载/移出/设置操作。
|
|
5
|
+
* v10 模板化:
|
|
6
|
+
* - 「从模板挂载」:选择 Channel 模板 → 实例化 + 挂载一步完成(替代"挂载已有 Channel");
|
|
7
|
+
* - 「设置」:热修改当前 Channel 实例的场景描述与工作目录(成员运行时自动回收重装配);
|
|
8
|
+
* - 「保存为模板」:把当前 Channel 实例捕获为可复用模板(场景/目录/团队快照)。
|
|
9
|
+
*/
|
|
10
|
+
import { message } from 'ant-design-vue'
|
|
11
|
+
import { useWorkspacesStore } from '@/app/stores/workshop/workspaces'
|
|
12
|
+
import { useEntitiesStore } from '@/app/stores/workshop/entities'
|
|
13
|
+
import { useWorkshopApi, type ChannelDto, type ChannelTemplateDto } from '@/app/composables/workshop/useWorkshopApi'
|
|
14
|
+
|
|
15
|
+
const { t } = useI18n()
|
|
16
|
+
|
|
17
|
+
const props = defineProps<{ wsId: string }>()
|
|
18
|
+
const wsStore = useWorkspacesStore()
|
|
19
|
+
const entities = useEntitiesStore()
|
|
20
|
+
const api = useWorkshopApi()
|
|
21
|
+
|
|
22
|
+
const workspace = computed(() => wsStore.workspaces.find(w => w.id === props.wsId))
|
|
23
|
+
|
|
24
|
+
const channels = ref<ChannelDto[]>([])
|
|
25
|
+
const channelTemplates = ref<ChannelTemplateDto[]>([])
|
|
26
|
+
const refreshChannels = async (): Promise<void> => {
|
|
27
|
+
// SSR 守卫:axios 相对 baseURL 仅客户端有效(服务端拉取会 Invalid URL)
|
|
28
|
+
if (typeof window === 'undefined') return
|
|
29
|
+
const [ch, tpl] = await Promise.all([
|
|
30
|
+
api.listChannels(),
|
|
31
|
+
api.listChannelTemplates().catch(() => null),
|
|
32
|
+
])
|
|
33
|
+
channels.value = (ch as unknown as { data?: ChannelDto[] })?.data ?? []
|
|
34
|
+
channelTemplates.value = (tpl as unknown as { data?: ChannelTemplateDto[] } | null)?.data ?? []
|
|
35
|
+
}
|
|
36
|
+
void refreshChannels()
|
|
37
|
+
|
|
38
|
+
const mountedChannels = computed(() =>
|
|
39
|
+
(workspace.value?.channelIds ?? [])
|
|
40
|
+
.map(id => ({ id, meta: channels.value.find(c => c.id === id), entity: entities.channels[id] }))
|
|
41
|
+
.map(({ id, meta, entity }) => ({
|
|
42
|
+
id,
|
|
43
|
+
name: entity?.name ?? meta?.name ?? id.slice(0, 8),
|
|
44
|
+
/** 实体基线(WS 快照)是否已到达:未到时计数不可信,展示"同步中"而非误导性的 0 */
|
|
45
|
+
synced: entity !== undefined,
|
|
46
|
+
busy: entities.busyCount(id),
|
|
47
|
+
agents: entities.agents[id]?.length ?? 0,
|
|
48
|
+
activeTasks: (entities.tasks[id] ?? []).filter(t => !['COMPLETED', 'CANCELED', 'FAILED'].includes(t.state)).length,
|
|
49
|
+
workspace: meta?.workspace ?? '',
|
|
50
|
+
})),
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
const select = (channelId: string): void => {
|
|
54
|
+
wsStore.setActiveChannel(props.wsId, channelId)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** 点击工作目录行:复制完整路径到剪贴板(有真实作用;title 提示全路径) */
|
|
58
|
+
const copyWorkspace = async (path: string): Promise<void> => {
|
|
59
|
+
try {
|
|
60
|
+
await navigator.clipboard.writeText(path)
|
|
61
|
+
message.success(t('channelSessionList.kud74vg040', { p0: path }))
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
message.error(t('channelSessionList.krij3gg026'))
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/** 路径显示 basename(E:\codes\AgentWorkShop → AgentWorkShop),全路径在 title/复制 */
|
|
68
|
+
const baseName = (path: string): string => path.replace(/[\\/]+$/, '').split(/[\\/]/).pop() ?? path
|
|
69
|
+
/** 默认目录(data/workspaces/<uuid>)的 basename 是 36 位裸 UUID,对用户零信息量 → 不展示该行 */
|
|
70
|
+
const UUID_RE = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i
|
|
71
|
+
const displayWorkspace = (path: string): string => {
|
|
72
|
+
const base = baseName(path)
|
|
73
|
+
return UUID_RE.test(base) ? '' : base
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// ===== 新建 Channel 并挂载(空团队) =====
|
|
77
|
+
const mountModal = ref(false)
|
|
78
|
+
const mountForm = reactive({ name: '', description: '', workspace: '', scenarioPrompt: '' })
|
|
79
|
+
const mountSubmitting = ref(false)
|
|
80
|
+
/** FileSelector 弹窗(选择服务器目录作为 workspace) */
|
|
81
|
+
const fileSelectorOpen = ref(false)
|
|
82
|
+
const createAndMount = async (): Promise<void> => {
|
|
83
|
+
if (!mountForm.name.trim()) {
|
|
84
|
+
message.warning('Channel 名称必填')
|
|
85
|
+
return
|
|
86
|
+
}
|
|
87
|
+
mountSubmitting.value = true
|
|
88
|
+
try {
|
|
89
|
+
const res = await api.createChannel({
|
|
90
|
+
name: mountForm.name.trim(),
|
|
91
|
+
description: mountForm.description || undefined,
|
|
92
|
+
scenarioPrompt: mountForm.scenarioPrompt.trim() || undefined,
|
|
93
|
+
workspace: mountForm.workspace.trim() || undefined,
|
|
94
|
+
})
|
|
95
|
+
const created = (res as unknown as { data?: { channelId?: string } })?.data
|
|
96
|
+
const channelId = created?.channelId
|
|
97
|
+
if (!channelId) throw new Error(t('channelSessionList.k1bg6shc027'))
|
|
98
|
+
await wsStore.mountChannel(props.wsId, channelId)
|
|
99
|
+
mountModal.value = false
|
|
100
|
+
mountForm.name = ''
|
|
101
|
+
mountForm.description = ''
|
|
102
|
+
mountForm.workspace = ''
|
|
103
|
+
mountForm.scenarioPrompt = ''
|
|
104
|
+
void refreshChannels()
|
|
105
|
+
message.success(t('channelSessionList.kn89jvs028'))
|
|
106
|
+
}
|
|
107
|
+
catch (e) {
|
|
108
|
+
message.error(t('channelSessionList.k1x2th9e041', { p0: e instanceof Error ? e.message : String(e) }))
|
|
109
|
+
}
|
|
110
|
+
finally {
|
|
111
|
+
mountSubmitting.value = false
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ===== 从 Channel 模板挂载(实例化 + mount 一步) =====
|
|
116
|
+
const templateMountId = ref<string | undefined>()
|
|
117
|
+
const templateMounting = ref(false)
|
|
118
|
+
const mountFromTemplate = async (): Promise<void> => {
|
|
119
|
+
if (!templateMountId.value) return
|
|
120
|
+
templateMounting.value = true
|
|
121
|
+
try {
|
|
122
|
+
const res = await api.mountChannelTemplate(props.wsId, templateMountId.value)
|
|
123
|
+
const data = (res as unknown as { data?: { agentCount?: number } })?.data
|
|
124
|
+
message.success(t('channelSessionList.kai50qc042', { p0: data?.agentCount ?? 0 }))
|
|
125
|
+
templateMountId.value = undefined
|
|
126
|
+
void refreshChannels()
|
|
127
|
+
}
|
|
128
|
+
catch (e) {
|
|
129
|
+
const err = e as { data?: { message?: string }, message?: string }
|
|
130
|
+
message.error(err?.data?.message ?? err?.message ?? t('channelSessionList.k97xi7u029'))
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
templateMounting.value = false
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const unmount = (channelId: string): void => {
|
|
138
|
+
wsStore.unmountChannel(props.wsId, channelId)
|
|
139
|
+
.catch((e: { data?: { message?: string }, message?: string }) => { message.error(e?.data?.message ?? e?.message ?? t('channelSessionList.k1hgfvdc030')) })
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ===== Channel 实例设置(场景/工作目录热更新)+ 保存为模板 =====
|
|
143
|
+
const settingsOpen = ref(false)
|
|
144
|
+
const settingsChannelId = ref<string>('')
|
|
145
|
+
const settingsForm = reactive({ name: '', scenarioPrompt: '', workspace: '' })
|
|
146
|
+
|
|
147
|
+
// ===== Channel 级默认 LLM(harness → provider/model/effort;空 = 用引擎默认) =====
|
|
148
|
+
interface CatalogProvider {
|
|
149
|
+
id: string
|
|
150
|
+
models: Array<{ id: string, efforts: string[], defaultEffort?: string }>
|
|
151
|
+
}
|
|
152
|
+
const llmForm = reactive({ harness: 'omp', provider: '', model: '', effort: '', enabled: false })
|
|
153
|
+
const llmProviders = ref<CatalogProvider[]>([])
|
|
154
|
+
const llmEffortMode = ref<'levels' | 'freetext' | 'unsupported'>('levels')
|
|
155
|
+
const llmLoading = ref(false)
|
|
156
|
+
const llmProviderOptions = computed(() => llmProviders.value.map(p => ({ value: p.id, label: p.id })))
|
|
157
|
+
const llmModelOptions = computed(() =>
|
|
158
|
+
(llmProviders.value.find(p => p.id === llmForm.provider)?.models ?? []).map(m => ({ value: m.id, label: m.id })),
|
|
159
|
+
)
|
|
160
|
+
const llmEffortOptions = computed(() => {
|
|
161
|
+
const m = llmProviders.value.find(p => p.id === llmForm.provider)?.models.find(x => x.id === llmForm.model)
|
|
162
|
+
return (m?.efforts ?? []).map(e => ({ value: e, label: e + (m?.defaultEffort === e ? '(默认)' : '') }))
|
|
163
|
+
})
|
|
164
|
+
const loadLlmCatalog = async (harness: string): Promise<void> => {
|
|
165
|
+
llmLoading.value = true
|
|
166
|
+
llmProviders.value = []
|
|
167
|
+
try {
|
|
168
|
+
const res = await api.listHarnessProviders(harness)
|
|
169
|
+
const cat = (res as unknown as { data?: { catalog?: { providers?: CatalogProvider[], effortMode?: 'levels' | 'freetext' | 'unsupported' } } })?.data?.catalog
|
|
170
|
+
llmProviders.value = cat?.providers ?? []
|
|
171
|
+
llmEffortMode.value = cat?.effortMode ?? 'unsupported'
|
|
172
|
+
}
|
|
173
|
+
catch { /* 目录拉取失败保留空表 */ }
|
|
174
|
+
finally { llmLoading.value = false }
|
|
175
|
+
}
|
|
176
|
+
const onLlmHarnessChange = async (): Promise<void> => {
|
|
177
|
+
llmForm.provider = ''
|
|
178
|
+
llmForm.model = ''
|
|
179
|
+
llmForm.effort = ''
|
|
180
|
+
await loadLlmCatalog(llmForm.harness)
|
|
181
|
+
}
|
|
182
|
+
const onLlmProviderChange = (): void => {
|
|
183
|
+
llmForm.model = ''
|
|
184
|
+
llmForm.effort = ''
|
|
185
|
+
}
|
|
186
|
+
const onLlmModelChange = (): void => {
|
|
187
|
+
llmForm.effort = ''
|
|
188
|
+
}
|
|
189
|
+
const settingsSaving = ref(false)
|
|
190
|
+
const fileSelectorOpen2 = ref(false)
|
|
191
|
+
const openSettings = (channelId: string): void => {
|
|
192
|
+
const meta = channels.value.find(c => c.id === channelId)
|
|
193
|
+
settingsChannelId.value = channelId
|
|
194
|
+
settingsForm.name = meta?.name ?? ''
|
|
195
|
+
settingsForm.scenarioPrompt = meta?.scenarioPrompt ?? ''
|
|
196
|
+
settingsForm.workspace = meta?.workspace ?? ''
|
|
197
|
+
// 预填 channel 默认 LLM(llmJson 由列表接口透传)
|
|
198
|
+
let saved: { provider?: string, model?: string, effort?: string } | null = null
|
|
199
|
+
try {
|
|
200
|
+
const metaAny = meta as unknown as { llmJson?: string } | undefined
|
|
201
|
+
saved = metaAny?.llmJson ? JSON.parse(metaAny.llmJson) as typeof saved : null
|
|
202
|
+
}
|
|
203
|
+
catch { saved = null }
|
|
204
|
+
llmForm.enabled = !!saved?.model
|
|
205
|
+
llmForm.harness = 'omp'
|
|
206
|
+
llmForm.provider = saved?.provider ?? ''
|
|
207
|
+
llmForm.model = saved?.model ?? ''
|
|
208
|
+
llmForm.effort = saved?.effort ?? ''
|
|
209
|
+
settingsOpen.value = true
|
|
210
|
+
if (llmForm.enabled) void loadLlmCatalog(llmForm.harness)
|
|
211
|
+
}
|
|
212
|
+
const saveSettings = async (): Promise<void> => {
|
|
213
|
+
settingsSaving.value = true
|
|
214
|
+
try {
|
|
215
|
+
await api.patchChannel(settingsChannelId.value, {
|
|
216
|
+
scenarioPrompt: settingsForm.scenarioPrompt,
|
|
217
|
+
workspace: settingsForm.workspace.trim() || undefined,
|
|
218
|
+
llm: llmForm.enabled && llmForm.model
|
|
219
|
+
? { ...(llmForm.provider ? { provider: llmForm.provider } : {}), model: llmForm.model, ...(llmForm.effort ? { effort: llmForm.effort } : {}) }
|
|
220
|
+
: null,
|
|
221
|
+
})
|
|
222
|
+
message.success(t('channelSessionList.kvsxlu6031'))
|
|
223
|
+
settingsOpen.value = false
|
|
224
|
+
void refreshChannels()
|
|
225
|
+
}
|
|
226
|
+
catch (e) {
|
|
227
|
+
message.error(e instanceof Error ? e.message : String(e))
|
|
228
|
+
}
|
|
229
|
+
finally {
|
|
230
|
+
settingsSaving.value = false
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// 保存为模板(捕获当前 channel 的场景/目录/团队)
|
|
235
|
+
const saveTplOpen = ref(false)
|
|
236
|
+
const saveTplForm = reactive({ name: '', description: '', visibility: 'private' as 'private' | 'public' })
|
|
237
|
+
const saveTplSubmitting = ref(false)
|
|
238
|
+
const openSaveTemplate = (): void => {
|
|
239
|
+
saveTplForm.name = t('channelSessionList.k2hfym5043', { p0: settingsForm.name || 'channel' })
|
|
240
|
+
saveTplForm.description = ''
|
|
241
|
+
saveTplForm.visibility = 'private'
|
|
242
|
+
saveTplOpen.value = true
|
|
243
|
+
}
|
|
244
|
+
const saveAsTemplate = async (): Promise<void> => {
|
|
245
|
+
if (!saveTplForm.name.trim()) {
|
|
246
|
+
message.warning(t('channelSessionList.k1i0ji0y032'))
|
|
247
|
+
return
|
|
248
|
+
}
|
|
249
|
+
saveTplSubmitting.value = true
|
|
250
|
+
try {
|
|
251
|
+
await api.captureChannelTemplate({
|
|
252
|
+
channelId: settingsChannelId.value,
|
|
253
|
+
name: saveTplForm.name.trim(),
|
|
254
|
+
description: saveTplForm.description || undefined,
|
|
255
|
+
visibility: saveTplForm.visibility,
|
|
256
|
+
})
|
|
257
|
+
message.success(t('channelSessionList.kjpguxw033'))
|
|
258
|
+
saveTplOpen.value = false
|
|
259
|
+
void refreshChannels()
|
|
260
|
+
}
|
|
261
|
+
catch (e) {
|
|
262
|
+
message.error(e instanceof Error ? e.message : String(e))
|
|
263
|
+
}
|
|
264
|
+
finally {
|
|
265
|
+
saveTplSubmitting.value = false
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
</script>
|
|
269
|
+
|
|
270
|
+
<template>
|
|
271
|
+
<div class="channel-list">
|
|
272
|
+
<div class="list-head">
|
|
273
|
+
<span class="title">Channels</span>
|
|
274
|
+
<span class="head-actions">
|
|
275
|
+
<button
|
|
276
|
+
class="head-op im"
|
|
277
|
+
type="button"
|
|
278
|
+
title="Channel 模板中心"
|
|
279
|
+
@click="navigateTo('/workshop/channel-templates')"
|
|
280
|
+
>
|
|
281
|
+
<span class="i-tabler-layout-grid-add im-pop" />
|
|
282
|
+
</button>
|
|
283
|
+
<button
|
|
284
|
+
class="head-op im"
|
|
285
|
+
type="button"
|
|
286
|
+
title="新建 Channel"
|
|
287
|
+
@click="mountModal = true"
|
|
288
|
+
>
|
|
289
|
+
<span class="i-tabler-plus im-pop" />
|
|
290
|
+
</button>
|
|
291
|
+
</span>
|
|
292
|
+
</div>
|
|
293
|
+
|
|
294
|
+
<!-- 频道列表主体:数据源(REST channels + WS entities)均为客户端态,
|
|
295
|
+
SSR 首帧为空 → 硬刷新水合时结构与客户端首渲染不一致,节点会错配到
|
|
296
|
+
相邻 antd Select 的 DOM 上(行内 .row1 布局丢失、按钮错位)。
|
|
297
|
+
ClientOnly 隔离:SSR 输出空壳,客户端一次性渲染,无水合配对。 -->
|
|
298
|
+
<ClientOnly>
|
|
299
|
+
<div
|
|
300
|
+
v-if="mountedChannels.length === 0"
|
|
301
|
+
class="empty"
|
|
302
|
+
>
|
|
303
|
+
{{ $t('channelSessionList.kkv789s014') }}
|
|
304
|
+
</div>
|
|
305
|
+
|
|
306
|
+
<div
|
|
307
|
+
v-for="ch in mountedChannels"
|
|
308
|
+
:key="ch.id"
|
|
309
|
+
class="channel-item"
|
|
310
|
+
:class="{ active: workspace?.activeChannelId === ch.id }"
|
|
311
|
+
@click="select(ch.id)"
|
|
312
|
+
>
|
|
313
|
+
<div class="row1">
|
|
314
|
+
<span
|
|
315
|
+
class="dot"
|
|
316
|
+
:class="{ live: ch.activeTasks > 0 }"
|
|
317
|
+
/>
|
|
318
|
+
<span class="ch-name">{{ ch.name }}</span>
|
|
319
|
+
<button
|
|
320
|
+
class="op im"
|
|
321
|
+
type="button"
|
|
322
|
+
:title="$t('channelSessionList.kne35ug001')"
|
|
323
|
+
:aria-label="$t('channelSessionList.kjmldih035', { p0: ch.name })"
|
|
324
|
+
@click.stop="openSettings(ch.id)"
|
|
325
|
+
>
|
|
326
|
+
<span class="i-tabler-settings2 im-pop" />
|
|
327
|
+
</button>
|
|
328
|
+
<button
|
|
329
|
+
class="op im"
|
|
330
|
+
type="button"
|
|
331
|
+
title="移出 workspace"
|
|
332
|
+
:aria-label="$t('channelSessionList.k1yurooi036', { p0: ch.name })"
|
|
333
|
+
@click.stop="unmount(ch.id)"
|
|
334
|
+
>
|
|
335
|
+
<span class="i-tabler-x im-pop" />
|
|
336
|
+
</button>
|
|
337
|
+
</div>
|
|
338
|
+
<div class="row2">
|
|
339
|
+
<!-- 快照未到达:计数不可信,显示同步占位(不呈现误导性的"0 成员") -->
|
|
340
|
+
<span
|
|
341
|
+
v-if="!ch.synced"
|
|
342
|
+
class="meta syncing"
|
|
343
|
+
>{{ $t('channelSessionList.k1bst7s9015') }}</span>
|
|
344
|
+
<span
|
|
345
|
+
v-else
|
|
346
|
+
class="meta"
|
|
347
|
+
>{{ ch.agents }} {{ $t('channelSessionList.k1ggoa45025') }} {{ ch.busy }} / {{ $t('channelSessionList.k3wcox034') }} {{ ch.activeTasks }}</span>
|
|
348
|
+
</div>
|
|
349
|
+
<button
|
|
350
|
+
v-if="displayWorkspace(ch.workspace)"
|
|
351
|
+
class="row2 ws im"
|
|
352
|
+
type="button"
|
|
353
|
+
:title="$t('channelSessionList.kfe4pzq037', { p0: ch.workspace })"
|
|
354
|
+
@click.stop="copyWorkspace(ch.workspace)"
|
|
355
|
+
>
|
|
356
|
+
<span class="i-tabler-folder" /> {{ displayWorkspace(ch.workspace) }}
|
|
357
|
+
</button>
|
|
358
|
+
</div>
|
|
359
|
+
</ClientOnly>
|
|
360
|
+
|
|
361
|
+
<div class="mount-template">
|
|
362
|
+
<a-select
|
|
363
|
+
v-model:value="templateMountId"
|
|
364
|
+
size="small"
|
|
365
|
+
:placeholder="'从 Channel 模板挂载'"
|
|
366
|
+
class="select"
|
|
367
|
+
:loading="templateMounting"
|
|
368
|
+
:options="channelTemplates.map(t => ({
|
|
369
|
+
value: t.id,
|
|
370
|
+
label: $t('channelSessionList.k1oes209038', { p0: t.isBuiltin ? '内置 · ' : t.visibility === 'public' ? '公开 · ' : '', p1: t.name, p2: (t.lead ? 1 : 0) + t.members.length }),
|
|
371
|
+
}))"
|
|
372
|
+
@change="mountFromTemplate"
|
|
373
|
+
/>
|
|
374
|
+
<div class="tpl-hint">
|
|
375
|
+
{{ $t('channelSessionList.k18ppu31016') }}
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
|
|
379
|
+
<a-modal
|
|
380
|
+
v-model:open="mountModal"
|
|
381
|
+
:title="$t('channelSessionList.k1qjyl6l002')"
|
|
382
|
+
:confirm-loading="mountSubmitting"
|
|
383
|
+
ok-text="创建"
|
|
384
|
+
cancel-text="取消"
|
|
385
|
+
@ok="createAndMount"
|
|
386
|
+
>
|
|
387
|
+
<a-form layout="vertical">
|
|
388
|
+
<a-form-item label="Channel 名称">
|
|
389
|
+
<a-input v-model:value="mountForm.name" />
|
|
390
|
+
</a-form-item>
|
|
391
|
+
<a-form-item :label="$t('channelSessionList.k40gkk003')">
|
|
392
|
+
<a-input v-model:value="mountForm.description" />
|
|
393
|
+
</a-form-item>
|
|
394
|
+
<a-form-item :label="$t('channelSessionList.k1wj4f38004')">
|
|
395
|
+
<a-textarea
|
|
396
|
+
v-model:value="mountForm.scenarioPrompt"
|
|
397
|
+
:rows="4"
|
|
398
|
+
:placeholder="$t('channelSessionList.k1098zie005')"
|
|
399
|
+
/>
|
|
400
|
+
<template #extra>
|
|
401
|
+
<span class="ws-hint">{{ $t('channelSessionList.k1u3zsr5017') }}</span>
|
|
402
|
+
</template>
|
|
403
|
+
</a-form-item>
|
|
404
|
+
<a-form-item :label="$t('channelSessionList.kmgv4h5006')">
|
|
405
|
+
<a-input-group compact>
|
|
406
|
+
<a-input
|
|
407
|
+
v-model:value="mountForm.workspace"
|
|
408
|
+
style="width: 70%"
|
|
409
|
+
placeholder="留空 = data/workspaces/<channelId>"
|
|
410
|
+
allow-clear
|
|
411
|
+
@press-enter="createAndMount"
|
|
412
|
+
/>
|
|
413
|
+
<a-button
|
|
414
|
+
style="width: 30%"
|
|
415
|
+
@click="fileSelectorOpen = true"
|
|
416
|
+
>
|
|
417
|
+
{{ $t('channelSessionList.k3pz0ma018') }}
|
|
418
|
+
</a-button>
|
|
419
|
+
</a-input-group>
|
|
420
|
+
<template #extra>
|
|
421
|
+
<span class="ws-hint">{{ $t('channelSessionList.kucq30k019') }}</span>
|
|
422
|
+
</template>
|
|
423
|
+
</a-form-item>
|
|
424
|
+
<a-form-item>
|
|
425
|
+
<span class="ws-hint">{{ $t('channelSessionList.k1ful761020') }}</span>
|
|
426
|
+
</a-form-item>
|
|
427
|
+
</a-form>
|
|
428
|
+
</a-modal>
|
|
429
|
+
|
|
430
|
+
<!-- Channel 实例设置:场景/工作目录热更新 + 保存为模板 -->
|
|
431
|
+
<a-modal
|
|
432
|
+
v-model:open="settingsOpen"
|
|
433
|
+
:title="$t('channelSessionList.k1pmemvt039', { p0: settingsForm.name })"
|
|
434
|
+
:confirm-loading="settingsSaving"
|
|
435
|
+
ok-text="保存"
|
|
436
|
+
cancel-text="取消"
|
|
437
|
+
@ok="saveSettings"
|
|
438
|
+
>
|
|
439
|
+
<a-form layout="vertical">
|
|
440
|
+
<a-form-item :label="$t('channelSessionList.k1i8q46x007')">
|
|
441
|
+
<a-textarea
|
|
442
|
+
v-model:value="settingsForm.scenarioPrompt"
|
|
443
|
+
:rows="4"
|
|
444
|
+
:placeholder="$t('channelSessionList.ku3ugac008')"
|
|
445
|
+
/>
|
|
446
|
+
</a-form-item>
|
|
447
|
+
<a-form-item :label="$t('channelSessionList.k67dzev009')">
|
|
448
|
+
<a-input-group compact>
|
|
449
|
+
<a-input
|
|
450
|
+
v-model:value="settingsForm.workspace"
|
|
451
|
+
style="width: 70%"
|
|
452
|
+
placeholder="data/workspaces/<channelId>"
|
|
453
|
+
allow-clear
|
|
454
|
+
/>
|
|
455
|
+
<a-button
|
|
456
|
+
style="width: 30%"
|
|
457
|
+
@click="fileSelectorOpen2 = true"
|
|
458
|
+
>
|
|
459
|
+
{{ $t('channelSessionList.k3pz0ma018') }}
|
|
460
|
+
</a-button>
|
|
461
|
+
</a-input-group>
|
|
462
|
+
</a-form-item>
|
|
463
|
+
<a-form-item label="默认模型(可选;留空用各 Harness 默认)">
|
|
464
|
+
<a-space>
|
|
465
|
+
<a-switch
|
|
466
|
+
v-model:checked="llmForm.enabled"
|
|
467
|
+
size="small"
|
|
468
|
+
@change="(v: any) => { if (v) void loadLlmCatalog(llmForm.harness) }"
|
|
469
|
+
/>
|
|
470
|
+
<a-select
|
|
471
|
+
v-model:value="llmForm.harness"
|
|
472
|
+
style="width: 130px"
|
|
473
|
+
:options="[{ value: 'omp', label: 'omp' }, { value: 'codex', label: 'codex' }, { value: 'opencode', label: 'opencode' }, { value: 'dsh', label: 'dsh' }]"
|
|
474
|
+
:disabled="!llmForm.enabled"
|
|
475
|
+
@change="onLlmHarnessChange"
|
|
476
|
+
/>
|
|
477
|
+
<a-select
|
|
478
|
+
v-model:value="llmForm.provider"
|
|
479
|
+
style="width: 170px"
|
|
480
|
+
:placeholder="llmLoading ? '目录加载中…' : 'provider'"
|
|
481
|
+
:options="llmProviderOptions"
|
|
482
|
+
:disabled="!llmForm.enabled || llmLoading"
|
|
483
|
+
show-search
|
|
484
|
+
@change="onLlmProviderChange"
|
|
485
|
+
/>
|
|
486
|
+
<a-select
|
|
487
|
+
v-model:value="llmForm.model"
|
|
488
|
+
style="width: 210px"
|
|
489
|
+
placeholder="model"
|
|
490
|
+
:options="llmModelOptions"
|
|
491
|
+
:disabled="!llmForm.enabled || !llmForm.provider"
|
|
492
|
+
show-search
|
|
493
|
+
@change="onLlmModelChange"
|
|
494
|
+
/>
|
|
495
|
+
<a-select
|
|
496
|
+
v-if="llmEffortMode === 'levels'"
|
|
497
|
+
v-model:value="llmForm.effort"
|
|
498
|
+
style="width: 130px"
|
|
499
|
+
placeholder="effort(可选)"
|
|
500
|
+
:options="llmEffortOptions"
|
|
501
|
+
:disabled="!llmForm.enabled || !llmForm.model"
|
|
502
|
+
allow-clear
|
|
503
|
+
/>
|
|
504
|
+
<a-input
|
|
505
|
+
v-else-if="llmEffortMode === 'freetext'"
|
|
506
|
+
v-model:value="llmForm.effort"
|
|
507
|
+
style="width: 130px"
|
|
508
|
+
placeholder="variant(可选)"
|
|
509
|
+
:disabled="!llmForm.enabled || !llmForm.model"
|
|
510
|
+
allow-clear
|
|
511
|
+
/>
|
|
512
|
+
</a-space>
|
|
513
|
+
</a-form-item>
|
|
514
|
+
<a-form-item>
|
|
515
|
+
<a-button
|
|
516
|
+
size="small"
|
|
517
|
+
@click="openSaveTemplate"
|
|
518
|
+
>
|
|
519
|
+
<span class="i-tabler-template" />
|
|
520
|
+
{{ $t('channelSessionList.k6kpql010') }}
|
|
521
|
+
</a-button>
|
|
522
|
+
<span class="ws-hint">{{ $t('channelSessionList.k1x6kznr021') }}</span>
|
|
523
|
+
</a-form-item>
|
|
524
|
+
</a-form>
|
|
525
|
+
</a-modal>
|
|
526
|
+
|
|
527
|
+
<!-- 保存为模板 -->
|
|
528
|
+
<a-modal
|
|
529
|
+
v-model:open="saveTplOpen"
|
|
530
|
+
:title="$t('channelSessionList.k6kpql010')"
|
|
531
|
+
:confirm-loading="saveTplSubmitting"
|
|
532
|
+
ok-text="保存模板"
|
|
533
|
+
cancel-text="取消"
|
|
534
|
+
@ok="saveAsTemplate"
|
|
535
|
+
>
|
|
536
|
+
<a-form layout="vertical">
|
|
537
|
+
<a-form-item :label="$t('channelSessionList.k1f55q76011')">
|
|
538
|
+
<a-input v-model:value="saveTplForm.name" />
|
|
539
|
+
</a-form-item>
|
|
540
|
+
<a-form-item :label="$t('channelSessionList.k40gkk003')">
|
|
541
|
+
<a-input v-model:value="saveTplForm.description" />
|
|
542
|
+
</a-form-item>
|
|
543
|
+
<a-form-item :label="$t('channelSessionList.k3lrqn0012')">
|
|
544
|
+
<a-radio-group v-model:value="saveTplForm.visibility">
|
|
545
|
+
<a-radio value="private">
|
|
546
|
+
{{ $t('channelSessionList.k1otvrfv022') }}
|
|
547
|
+
</a-radio>
|
|
548
|
+
<a-radio value="public">
|
|
549
|
+
{{ $t('channelSessionList.k1cc399s023') }}
|
|
550
|
+
</a-radio>
|
|
551
|
+
</a-radio-group>
|
|
552
|
+
</a-form-item>
|
|
553
|
+
<a-form-item>
|
|
554
|
+
<span class="ws-hint">{{ $t('channelSessionList.kl9btf7024') }}</span>
|
|
555
|
+
</a-form-item>
|
|
556
|
+
</a-form>
|
|
557
|
+
</a-modal>
|
|
558
|
+
|
|
559
|
+
<!-- FileSelector:服务器目录选择 -> 回填工作目录 -->
|
|
560
|
+
<workshop-file-selector-modal
|
|
561
|
+
v-model:open="fileSelectorOpen"
|
|
562
|
+
:title="$t('channelSessionList.kbdp56k013')"
|
|
563
|
+
:initial-path="mountForm.workspace || undefined"
|
|
564
|
+
@select="(p) => { mountForm.workspace = p }"
|
|
565
|
+
/>
|
|
566
|
+
<workshop-file-selector-modal
|
|
567
|
+
v-model:open="fileSelectorOpen2"
|
|
568
|
+
:title="$t('channelSessionList.kbdp56k013')"
|
|
569
|
+
:initial-path="settingsForm.workspace || undefined"
|
|
570
|
+
@select="(p) => { settingsForm.workspace = p }"
|
|
571
|
+
/>
|
|
572
|
+
</div>
|
|
573
|
+
</template>
|
|
574
|
+
|
|
575
|
+
<style scoped>
|
|
576
|
+
.channel-list {
|
|
577
|
+
display: flex;
|
|
578
|
+
flex-direction: column;
|
|
579
|
+
min-height: 100%;
|
|
580
|
+
padding: 12px 10px 8px;
|
|
581
|
+
}
|
|
582
|
+
.list-head {
|
|
583
|
+
display: flex;
|
|
584
|
+
align-items: center;
|
|
585
|
+
justify-content: space-between;
|
|
586
|
+
padding: 0 8px 8px;
|
|
587
|
+
}
|
|
588
|
+
.title {
|
|
589
|
+
font-family: var(--font-display);
|
|
590
|
+
font-size: 16px;
|
|
591
|
+
letter-spacing: -0.01em;
|
|
592
|
+
color: var(--ink);
|
|
593
|
+
}
|
|
594
|
+
.head-actions { display: inline-flex; gap: 2px; }
|
|
595
|
+
.head-op {
|
|
596
|
+
display: inline-flex;
|
|
597
|
+
align-items: center;
|
|
598
|
+
justify-content: center;
|
|
599
|
+
width: 24px;
|
|
600
|
+
height: 24px;
|
|
601
|
+
font-size: 14px;
|
|
602
|
+
color: var(--ink-faint);
|
|
603
|
+
cursor: pointer;
|
|
604
|
+
background: transparent;
|
|
605
|
+
border: 0;
|
|
606
|
+
border-radius: var(--radius-chip);
|
|
607
|
+
transition: background var(--transition-fast), color var(--transition-fast);
|
|
608
|
+
}
|
|
609
|
+
.head-op:hover { color: var(--ink); background: var(--paper-deep); }
|
|
610
|
+
.empty {
|
|
611
|
+
padding: 14px 10px;
|
|
612
|
+
font-size: 12px;
|
|
613
|
+
color: var(--ink-faint);
|
|
614
|
+
}
|
|
615
|
+
.channel-item {
|
|
616
|
+
padding: 7px 9px;
|
|
617
|
+
margin: 1px 0;
|
|
618
|
+
cursor: pointer;
|
|
619
|
+
border-radius: var(--radius-panel-sm);
|
|
620
|
+
transition: background var(--transition-fast);
|
|
621
|
+
}
|
|
622
|
+
.channel-item:hover { background: var(--paper-deep); }
|
|
623
|
+
.channel-item.active { background: var(--paper-deep); box-shadow: inset 2px 0 0 var(--accent); }
|
|
624
|
+
.row1 {
|
|
625
|
+
display: flex;
|
|
626
|
+
gap: 7px;
|
|
627
|
+
align-items: center;
|
|
628
|
+
font-size: 13px;
|
|
629
|
+
color: var(--ink-soft);
|
|
630
|
+
}
|
|
631
|
+
.channel-item.active .row1 { color: var(--ink); font-weight: 500; }
|
|
632
|
+
.dot {
|
|
633
|
+
flex: 0 0 auto;
|
|
634
|
+
width: 7px;
|
|
635
|
+
height: 7px;
|
|
636
|
+
background: var(--tone-neutral-dot);
|
|
637
|
+
opacity: 0.55;
|
|
638
|
+
border-radius: 50%;
|
|
639
|
+
}
|
|
640
|
+
.dot.live {
|
|
641
|
+
background: var(--tone-success-dot);
|
|
642
|
+
opacity: 1;
|
|
643
|
+
}
|
|
644
|
+
.ch-name {
|
|
645
|
+
flex: 1 1 auto;
|
|
646
|
+
overflow: hidden;
|
|
647
|
+
text-overflow: ellipsis;
|
|
648
|
+
white-space: nowrap;
|
|
649
|
+
}
|
|
650
|
+
.op {
|
|
651
|
+
display: inline-flex;
|
|
652
|
+
flex: 0 0 auto;
|
|
653
|
+
align-items: center;
|
|
654
|
+
justify-content: center;
|
|
655
|
+
width: 20px;
|
|
656
|
+
height: 20px;
|
|
657
|
+
padding: 0;
|
|
658
|
+
font-size: 13px;
|
|
659
|
+
color: var(--ink-fainter);
|
|
660
|
+
cursor: pointer;
|
|
661
|
+
background: transparent;
|
|
662
|
+
border: 0;
|
|
663
|
+
border-radius: var(--radius-chip);
|
|
664
|
+
/* 常显(低透明度):不再 hover-only——行级操作入口不应时隐时现 */
|
|
665
|
+
opacity: 0.55;
|
|
666
|
+
transition: opacity var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
|
|
667
|
+
}
|
|
668
|
+
.channel-item:hover .op,
|
|
669
|
+
.channel-item.active .op { opacity: 0.9; }
|
|
670
|
+
.op:hover { opacity: 1; color: var(--ink); background: var(--paper-deep); }
|
|
671
|
+
.op:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
672
|
+
.row2 { padding-left: 14px; font-size: 11px; color: var(--ink-faint); }
|
|
673
|
+
.meta.syncing { font-style: italic; opacity: 0.6; }
|
|
674
|
+
.row2.ws {
|
|
675
|
+
display: flex;
|
|
676
|
+
gap: 4px;
|
|
677
|
+
align-items: center;
|
|
678
|
+
overflow: hidden;
|
|
679
|
+
max-width: 100%;
|
|
680
|
+
padding: 0 2px 0 14px;
|
|
681
|
+
font-family: var(--font-mono);
|
|
682
|
+
font-size: 11px;
|
|
683
|
+
text-overflow: ellipsis;
|
|
684
|
+
white-space: nowrap;
|
|
685
|
+
color: var(--ink-fainter);
|
|
686
|
+
text-align: left;
|
|
687
|
+
cursor: copy; /* 点击复制完整路径(title 提示) */
|
|
688
|
+
background: transparent;
|
|
689
|
+
border: 0;
|
|
690
|
+
border-radius: var(--radius-chip);
|
|
691
|
+
transition: color var(--transition-fast), background var(--transition-fast);
|
|
692
|
+
}
|
|
693
|
+
.row2.ws:hover { color: var(--ink-soft); background: color-mix(in srgb, currentColor 6%, transparent); }
|
|
694
|
+
.row2.ws:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
695
|
+
.mount-template { padding: 12px 6px 6px; border-top: 1px solid var(--line); margin-top: 10px; }
|
|
696
|
+
.select { width: 100%; }
|
|
697
|
+
.tpl-hint {
|
|
698
|
+
padding: 5px 2px 0;
|
|
699
|
+
font-size: 10.5px;
|
|
700
|
+
color: var(--ink-fainter);
|
|
701
|
+
}
|
|
702
|
+
.ws-hint { font-size: 11px; color: var(--ink-faint); }
|
|
703
|
+
</style>
|