agentworkshop 0.17.5 → 0.18.0
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/6EjYqizd2.js +1 -0
- package/.output/public/_nuxt/{B6OzW5oQ.js → BWYSIX3z.js} +1 -1
- package/.output/public/_nuxt/{DXY8bTqS.js → BYVeifDW.js} +1 -1
- package/.output/public/_nuxt/{ClVN8KaH2.js → Bb8neYWw2.js} +1 -1
- package/.output/public/_nuxt/{D4fDMDMY.js → ByxXSCf9.js} +3 -3
- package/.output/public/_nuxt/{BM-sWDDD.js → C3bwSomj.js} +1 -1
- package/.output/public/_nuxt/CDwx6Qk-2.js +1 -0
- package/.output/public/_nuxt/{CC8gRGAU.js → CL1GexAK.js} +1 -1
- package/.output/public/_nuxt/{CjSLwcFL.js → CTkJWXt4.js} +1 -1
- package/.output/public/_nuxt/{BIyCQj6O.js → CXBXiOFX.js} +2 -2
- package/.output/public/_nuxt/CXFz9B_-2.js +1 -0
- package/.output/public/_nuxt/CgEhlg4v2.js +8 -0
- package/.output/public/_nuxt/Ch8LlQ0r.js +1 -0
- package/.output/public/_nuxt/D8Poe1wJ.js +1 -0
- package/.output/public/_nuxt/{Uuf6Jdzd.js → DVUJFOJO.js} +1 -1
- package/.output/public/_nuxt/{CUMTaH3Z2.js → DhmtX4iY2.js} +1 -1
- package/.output/public/_nuxt/{Cu6Hle_d.js → DmeuO59Y.js} +1 -1
- package/.output/public/_nuxt/RMWsCPgI2.js +2 -0
- package/.output/public/_nuxt/{_wsId_.CzdXTLVh.css → _wsId_.DaZ8g4FD.css} +1 -1
- package/.output/public/_nuxt/board.CqeENEsw.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7becc7b9-c45c-4edb-81af-969c538d2fed.json +1 -0
- package/.output/public/_nuxt/channel-templates.BUNpRy6E.css +1 -0
- package/.output/public/_nuxt/{default.Diue5wr2.css → default.Cg1zKZla.css} +1 -1
- package/.output/public/_nuxt/{entry.D9gnKVzx.css → entry.DaOm6Z_i.css} +1 -1
- package/.output/public/_nuxt/ontology.NGw2WSc2.css +1 -0
- package/.output/public/_nuxt/optimizer.CkKx4qp3.css +1 -0
- package/.output/public/_nuxt/pipeline.BnaxJDtL.css +1 -0
- package/.output/public/_nuxt/projects.D7IsCl8K.css +1 -0
- package/.output/public/_nuxt/{settings.BRjXthG4.css → settings.B2GP7Esk.css} +1 -1
- package/.output/public/_nuxt/studio.CNtVgRxO.css +1 -0
- package/.output/public/_nuxt/{BpqmshmO.js → tjYEbvAS.js} +1 -1
- package/.output/server/chunks/_/nitro.mjs +1173 -1123
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/{TownView-BdwjWlnU.mjs → TownView-Czmlr5PS.mjs} +2 -2
- package/.output/server/chunks/build/{TownView-BdwjWlnU.mjs.map → TownView-Czmlr5PS.mjs.map} +1 -1
- package/.output/server/chunks/build/{_wsId_-CLBiQH5c.mjs → _wsId_-BW4pvga3.mjs} +17 -13
- package/.output/server/chunks/build/{_wsId_-CLBiQH5c.mjs.map → _wsId_-BW4pvga3.mjs.map} +1 -1
- package/.output/server/chunks/build/{agents-CBs5MnHX.mjs → agents-D01VNBtw.mjs} +6 -6
- package/.output/server/chunks/build/{agents-CBs5MnHX.mjs.map → agents-D01VNBtw.mjs.map} +1 -1
- package/.output/server/chunks/build/{board-2MX66I4I.mjs → board-DRTCHkkb.mjs} +15 -15
- package/.output/server/chunks/build/{board-2MX66I4I.mjs.map → board-DRTCHkkb.mjs.map} +1 -1
- package/.output/server/chunks/build/{channel-templates-HQdH7rSi.mjs → channel-templates-CLVbikUl.mjs} +25 -22
- package/.output/server/chunks/build/channel-templates-CLVbikUl.mjs.map +1 -0
- package/.output/server/chunks/build/{default-Bgt1lEEe.mjs → default-S1G03iOr.mjs} +195 -55
- package/.output/server/chunks/build/{default-Bgt1lEEe.mjs.map → default-S1G03iOr.mjs.map} +1 -1
- package/.output/server/chunks/build/{ontology-qi542_PU.mjs → ontology-ChvlO0hr.mjs} +69 -66
- package/.output/server/chunks/build/ontology-ChvlO0hr.mjs.map +1 -0
- package/.output/server/chunks/build/{optimizer-D1krDGJ8.mjs → optimizer-cAR_QJo3.mjs} +63 -63
- package/.output/server/chunks/build/{optimizer-D1krDGJ8.mjs.map → optimizer-cAR_QJo3.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-BglOdtvM.mjs → pages-BfBExPSN.mjs} +3 -3
- package/.output/server/chunks/build/{pages-BglOdtvM.mjs.map → pages-BfBExPSN.mjs.map} +1 -1
- package/.output/server/chunks/build/{pipeline-Bm4BvjJk.mjs → pipeline-Cown7Xpn.mjs} +38 -38
- package/.output/server/chunks/build/{pipeline-Bm4BvjJk.mjs.map → pipeline-Cown7Xpn.mjs.map} +1 -1
- package/.output/server/chunks/build/{projects-BxzJhim8.mjs → projects--pAY6UvD.mjs} +46 -29
- package/.output/server/chunks/build/projects--pAY6UvD.mjs.map +1 -0
- package/.output/server/chunks/build/{schedules-ByNLHzUb.mjs → schedules-CO8r0ATX.mjs} +2 -2
- package/.output/server/chunks/build/{schedules-ByNLHzUb.mjs.map → schedules-CO8r0ATX.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-Cmn3aD8S.mjs → settings-B2Y4Z_Dv.mjs} +102 -66
- package/.output/server/chunks/build/settings-B2Y4Z_Dv.mjs.map +1 -0
- package/.output/server/chunks/build/{studio-UA6uE2rX.mjs → studio-CrZ_athz.mjs} +49 -47
- package/.output/server/chunks/build/studio-CrZ_athz.mjs.map +1 -0
- package/.output/server/chunks/build/{teams-91fbSTKR.mjs → teams-CI3co-r4.mjs} +8 -8
- package/.output/server/chunks/build/{teams-91fbSTKR.mjs.map → teams-CI3co-r4.mjs.map} +1 -1
- package/.output/server/chunks/build/{tools-CymDQIxW.mjs → tools-6vjvrXEV.mjs} +2 -2
- package/.output/server/chunks/build/{tools-CymDQIxW.mjs.map → tools-6vjvrXEV.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-Djy_zAJV.mjs → town-DmnFpDzr.mjs} +3 -3
- package/.output/server/chunks/build/{town-Djy_zAJV.mjs.map → town-DmnFpDzr.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentHarnessOptions-_BNL2lCk.mjs → useAgentHarnessOptions-DA0sHG6Q.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentHarnessOptions-_BNL2lCk.mjs.map → useAgentHarnessOptions-DA0sHG6Q.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplateActions-DwZgWchg.mjs → useAgentTemplateActions-NN7wJsn8.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplateActions-DwZgWchg.mjs.map → useAgentTemplateActions-NN7wJsn8.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplateForm-Coq1ZUFt.mjs → useAgentTemplateForm-Cnr5CF6p.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplateForm-Coq1ZUFt.mjs.map → useAgentTemplateForm-Cnr5CF6p.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplatesCatalog-D5_uOqc_.mjs → useAgentTemplatesCatalog-Cov5-icf.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplatesCatalog-D5_uOqc_.mjs.map → useAgentTemplatesCatalog-Cov5-icf.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDashboardData-zegEZEVV.mjs → useDashboardData-mlV9XxSi.mjs} +2 -2
- package/.output/server/chunks/build/{useDashboardData-zegEZEVV.mjs.map → useDashboardData-mlV9XxSi.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamActions-DoE_H7SI.mjs → useTeamActions-6whZe0-H.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamActions-DoE_H7SI.mjs.map → useTeamActions-6whZe0-H.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamAddMemberDialog-DPo909sp.mjs → useTeamAddMemberDialog-Dfjq6MqH.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamAddMemberDialog-DPo909sp.mjs.map → useTeamAddMemberDialog-Dfjq6MqH.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamCreateDialog-De5FKDar.mjs → useTeamCreateDialog-CCL53yq2.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamCreateDialog-De5FKDar.mjs.map → useTeamCreateDialog-CCL53yq2.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamDeployDialog-CgF-2sLw.mjs → useTeamDeployDialog-CEOtXJ-6.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamDeployDialog-CgF-2sLw.mjs.map → useTeamDeployDialog-CEOtXJ-6.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamPluginDialog-DyTbDorE.mjs → useTeamPluginDialog-DrwWX0Fg.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamPluginDialog-DyTbDorE.mjs.map → useTeamPluginDialog-DrwWX0Fg.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamsCatalog-D358hKGV.mjs → useTeamsCatalog-DpfL45qY.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamsCatalog-D358hKGV.mjs.map → useTeamsCatalog-DpfL45qY.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkbenchWorkspaces-CfIx3ApC.mjs → useWorkbenchWorkspaces-4_MVYDdE.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkbenchWorkspaces-CfIx3ApC.mjs.map → useWorkbenchWorkspaces-4_MVYDdE.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkshopApi-Bj1wtLkN.mjs → useWorkshopApi-8Hs5PB69.mjs} +2 -1
- package/.output/server/chunks/build/useWorkshopApi-8Hs5PB69.mjs.map +1 -0
- package/.output/server/chunks/build/{useWorkspaceAuth-BYuPfKMw.mjs → useWorkspaceAuth-_ZjFSIR4.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkspaceAuth-BYuPfKMw.mjs.map → useWorkspaceAuth-_ZjFSIR4.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkspaceChannels-DDDAh7iW.mjs → useWorkspaceChannels-QG6oBcmm.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkspaceChannels-DDDAh7iW.mjs.map → useWorkspaceChannels-QG6oBcmm.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkspacePanels-ht2LWq_7.mjs → useWorkspacePanels-B4hGMl1e.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkspacePanels-ht2LWq_7.mjs.map → useWorkspacePanels-B4hGMl1e.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-DXJ1pkhv.mjs → workshop-xJRphBs5.mjs} +3 -3
- package/.output/server/chunks/build/{workshop-DXJ1pkhv.mjs.map → workshop-xJRphBs5.mjs.map} +1 -1
- package/.output/server/chunks/build/{workspaces-DSrMIrqL.mjs → workspaces-CtXv4a9w.mjs} +1 -11
- package/.output/server/chunks/build/{workspaces-DSrMIrqL.mjs.map → workspaces-CtXv4a9w.mjs.map} +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +10 -8
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +3 -2
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs.map +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_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +20 -8
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +26 -28
- package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +10 -2
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs.map +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/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/reopen.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/reopen.post.mjs.map +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/retry.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +32 -32
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +15 -7
- package/README.md +15 -7
- package/app/components/AppSidebar.vue +72 -10
- package/app/components/app-header/HeaderTools.vue +33 -8
- package/app/components/app-header/HitlBell.vue +89 -4
- package/app/components/settings/AppearancePane.vue +34 -7
- package/app/components/workshop/session-list/MountChannelModal.vue +10 -1
- package/app/composables/workshop/useWorkshopApi.ts +3 -2
- package/app/pages/ontology/index.vue +30 -4
- package/app/pages/optimizer/index.vue +31 -28
- package/app/pages/projects/index.vue +258 -38
- package/app/pages/settings.vue +80 -49
- package/app/pages/studio/board.vue +9 -1
- package/app/pages/studio/index.vue +40 -16
- package/app/pages/studio/pipeline.vue +20 -1
- package/app/pages/workshop/channel-templates.vue +14 -7
- package/app/stores/workshop/workspaces.ts +0 -10
- package/config.yml +1 -1
- package/desktop/chrome/splash.html +217 -236
- package/docs/cli.en.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/desktop.md +1 -1
- package/docs/mcp.md +10 -4
- 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/package.json +1 -1
- package/scripts/e2e-line-governance.mjs +9 -5
- package/scripts/experiments/gemma4-pipeline.mjs +811 -0
- package/scripts/experiments/gemma4-supplement-fix.mjs +119 -0
- package/scripts/experiments/gemma4-supplement.mjs +266 -0
- package/scripts/experiments/tsa-phase-c.mjs +154 -0
- package/scripts/experiments/tsa-phase-f.mjs +167 -0
- package/scripts/experiments/tsa-phase-i.mjs +151 -0
- package/scripts/experiments/tsa-phase-s.mjs +223 -0
- package/scripts/experiments/tsa2-phase-c.mjs +259 -0
- package/scripts/experiments/tsa2-phase-p.mjs +379 -0
- package/scripts/experiments/tsa2-phase-p1.mjs +386 -0
- package/scripts/experiments/tsa2-phase-s.mjs +224 -0
- package/scripts/ui/lib.mjs +7 -0
- package/scripts/ui/seed-demo.mjs +2 -0
- package/server/api/workshop/a2a/[agentId]/card/index.get.ts +15 -9
- package/server/api/workshop/a2a/[agentId]/rpc/index.post.ts +5 -2
- package/server/api/workshop/agents/[id].delete.ts +2 -1
- package/server/api/workshop/agents/[id].get.ts +2 -1
- package/server/api/workshop/channel-templates/[id].get.ts +2 -1
- package/server/api/workshop/channels.post.ts +22 -8
- package/server/api/workshop/daq/[id]/ingest.post.ts +23 -24
- package/server/api/workshop/dcw/line/query.get.ts +5 -2
- package/server/api/workshop/tasks/[id]/cancel/index.post.ts +4 -4
- package/server/api/workshop/tasks/[id]/reopen.post.ts +2 -1
- package/server/api/workshop/tasks/[id]/retry.post.ts +2 -1
- package/server/api/workshop/tasks/[id]/update.post.ts +2 -1
- package/server/api/workshop/tasks/[id].get.ts +2 -2
- package/server/api/workshop/teams/[id]/members/index.get.ts +2 -1
- package/server/api/workshop/teams/[id].get.ts +2 -1
- package/server/services/workshop/db/memory.repo.ts +16 -8
- package/server/services/workshop/dcw/line-query-window.ts +20 -0
- package/server/services/workshop/runtime/manager/admin-channel.ts +54 -3
- package/server/services/workshop/runtime/manager/workspace-defaults.ts +20 -0
- package/.output/public/_nuxt/4zHSAgHR2.js +0 -8
- package/.output/public/_nuxt/B7qnHEGS2.js +0 -1
- package/.output/public/_nuxt/Bn2mnZ8D2.js +0 -1
- package/.output/public/_nuxt/C7cwKZqJ2.js +0 -1
- package/.output/public/_nuxt/CuiM5V6m.js +0 -1
- package/.output/public/_nuxt/DIXtjY5n2.js +0 -2
- package/.output/public/_nuxt/DnKSca_n.js +0 -1
- package/.output/public/_nuxt/board.ByfnFvkG.css +0 -1
- package/.output/public/_nuxt/builds/meta/147c0379-4e07-437d-a7d2-e700d633efad.json +0 -1
- package/.output/public/_nuxt/channel-templates.DnibuaPe.css +0 -1
- package/.output/public/_nuxt/ontology.Clux6c4G.css +0 -1
- package/.output/public/_nuxt/optimizer.BVfrqOYg.css +0 -1
- package/.output/public/_nuxt/pipeline.CYRrisV7.css +0 -1
- package/.output/public/_nuxt/projects.GM3P0C78.css +0 -1
- package/.output/public/_nuxt/studio.BiiONLaO.css +0 -1
- package/.output/server/chunks/build/channel-templates-HQdH7rSi.mjs.map +0 -1
- package/.output/server/chunks/build/ontology-qi542_PU.mjs.map +0 -1
- package/.output/server/chunks/build/projects-BxzJhim8.mjs.map +0 -1
- package/.output/server/chunks/build/settings-Cmn3aD8S.mjs.map +0 -1
- package/.output/server/chunks/build/studio-UA6uE2rX.mjs.map +0 -1
- package/.output/server/chunks/build/useWorkshopApi-Bj1wtLkN.mjs.map +0 -1
package/README-zh.md
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
**[English](./README.md)** · **[在线文档](https://kingdol666.github.io/AgentWorkShop)** · **[版本发布](https://github.com/kingdol666/AgentWorkShop/releases)** · **[更新日志](./changelog.md)** · **[插件 API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
|
|
30
30
|
|
|
31
|
-
<sub><b>源码 v0.
|
|
31
|
+
<sub><b>源码 v0.18.0(2026-11-23 发布)</b> · 控制台按工作区建频道 · API 先验身份后查资源 · 产线查询有界时间窗 · 共享主题与无障碍刷新 · 桌面托盘与启动动画 · 一体化桌面壳与应用内更新 · 桌面/Web 共用 <code>~/.AgentWorkShop</code> · 14 个执行引擎 · 6 种现场协议(5 内置 + 串口插件)+ MES REST(镜像与直连双路径)· **项目中心** · **RSI 经验演化** · **受治理产品经验** · **IDD/RAG 插件集成** · **AgentPrefab / Skill / MCP 能力供应链** · 双语文档(简体中文 / English)</sub>
|
|
32
32
|
|
|
33
33
|
<br />
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
|
-
[快速开始](#快速开始) · [当前源码](#当前源码-v0-
|
|
39
|
+
[快速开始](#快速开始) · [当前源码](#当前源码-v0-18-0) · [0.18.0 发布说明](#whats-new-in-0180) · [Agent 团队模型](#agent-团队模型) · [核心能力](#核心能力) · [设计架构](#设计架构) · [验证与验收](#验证与验收) · [文档站](https://kingdol666.github.io/AgentWorkShop)
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
@@ -49,12 +49,20 @@
|
|
|
49
49
|
- **交付是一等概念**:**Project 模式**把蓝图变成计划、带依赖的 WBS、L1 技术复核、L2 Owner 验收与真实交付物——交付物不通过,项目不算完成;
|
|
50
50
|
- **作业链按治理阶段实现**:读取 → 分析 → 提案 → 按有效策略审批(如适用)→ 下发 → 回读/审计;每份验收证据应注明实际覆盖范围及使用模拟器还是物理设备。
|
|
51
51
|
|
|
52
|
-
## 当前源码 v0.
|
|
52
|
+
## 当前源码 v0.18.0
|
|
53
53
|
|
|
54
|
-
当前源码版本为 **0.
|
|
54
|
+
当前源码版本为 **0.18.0**(npm + GitHub Release,2026-11-23)。本版修复发版审查发现的 console 与 API 作用域缺陷,并刷新共享视觉层。REST 建的频道会挂到 owner 的默认工作区(或显式指定、且在建频道前校验归属的工作区),因此在按工作区作用域读取的 console 里可见;console 自身的「新建频道」弹窗把当前 workspace id 随创建请求提交,在一个工作区里建的频道不会再漏进另一个。详情与任务类 REST handler、DAQ 外部推送和 A2A JSON-RPC 方法都改为先解析调用者身份再查资源,未鉴权调用者不能再借 404/401 的差异枚举 ID;A2A AgentCard 的公开开关同时覆盖 JSON-RPC 的 `agent/getCard`。`GET /api/workshop/dcw/line/query` 省略时间窗时按最近 24h 查询,不再对时序历史做无界聚合。共享主题、设置页签、侧栏抽屉焦点、头部控件、HITL 浮层、页面族与桌面启动动画按键盘与读屏语义、令牌化颜色和减少动态效果重新整理。保留 0.17.5 桌面基线(关闭到托盘、托盘 5 项设置、分阶段启动动画、共享 home、应用内更新)与 0.16.x 的 AgentPrefab 能力基线。
|
|
55
55
|
|
|
56
56
|
v0.16.0 验证:#262/#264/#265/#263/#266 PR quick-gate 全绿;focused 套件 **38/38**、合并后 **22/22** 与 **13/13**、Project/Prefab/Session 回归集 **235/235**;发布构建实机隔离验收——Leader/Prefab 全链 **30/30 ×2**(创建带 Prefab 的 Worker → SQLite 来源核验 → 名册标记 → 目录收窄 → dispatch 放行/拒绝 → 用户路径 Worker 保护 → lead 自改拒绝 → revision 切换即收窄 → 解绑 → 移除保留模板与 revision → REST 删 lead 409),官方 L10 全新实例 **21/21**,AgentTeam CRUD/部署/派发 **25/25**,前端 SSR 路由 200。Mimosa 深扫有封印(`sha256:a91957e0…`,54 findings,依赖风险 0)——findings 如实呈报,不作安全通过声明。边界:外部 MCP 正向实网联通、Prefab 指导下的真实 OMP 模型作业、浏览器 UI 点击验收为 NOT_RUN。见[全流程验收报告](docs/audit/evidence/2026-11-21-fullflow-round/REPORT.md)与[Prefab/Skills/MCP 实机报告](docs/audit/evidence/2026-11-21-agent-prefab-acceptance/REPORT.md)。
|
|
57
57
|
|
|
58
|
+
## What's new in 0.18.0
|
|
59
|
+
|
|
60
|
+
- **Console 建频道按工作区归属**:`POST /api/workshop/channels` 把新频道挂到 owner 的默认工作区(按需创建,或使用显式 `workspaceId` 并在建频道前校验归属),REST 建的频道因此在按工作区作用域读取的 console 里可见。console 的「新建频道」弹窗改为把当前 workspace id 随创建请求提交,不再创建后补挂,因此在一个工作区里建的频道不会同时出现在另一个工作区。
|
|
61
|
+
- **API 先验身份后查资源**:Agent、Team、Channel 模板与任务的详情/动作路由,DAQ 外部推送与 A2A `message/send` 都先解析调用者,关闭了未鉴权调用者借 404/401 差异枚举 ID 的通道;`security.a2aCardPublic` 开关同时覆盖 JSON-RPC 的 `agent/getCard`。
|
|
62
|
+
- **产线查询有界**:`GET /api/workshop/dcw/line/query` 在省略 `from`/`to` 时按最近 24 小时查询;此前无窗口查询对共享 Timescale 聚合耗时 10–15 秒且随时长增长。
|
|
63
|
+
- **共享视觉层刷新**:刷新页面的颜色全部走令牌;设置页签键盘完整、侧栏抽屉焦点陷阱与焦点归还、头部控件可访问名称、HITL 浮层语义、窄视口 ≥44px 触摸目标,并重做启动动画(进度跟随真实阶段、支持减少动态效果)。
|
|
64
|
+
- **文档对齐**:MCP 指南补全 38 个工具(含 3 个配方工具)、9 个内置 skill 与 14 组 MCP 单测;README 项目页布局描述改为实际的 1180px 列表与两列详情。
|
|
65
|
+
|
|
58
66
|
## What's new in 0.17.5
|
|
59
67
|
|
|
60
68
|
- **关闭到托盘**:标题栏关闭按钮改为隐藏窗口,不再杀掉后端;单击/双击托盘图标恢复窗口。需要「关闭即退出」时可在托盘设置里关闭「关闭时最小化到托盘」。关闭窗口默认最小化到托盘,后端与正在运行的任务继续工作。
|
|
@@ -212,8 +220,8 @@ Channel 控制台与 Project 详情按 ChatGPT 式 harness 布局重排——**8
|
|
|
212
220
|
</p>
|
|
213
221
|
|
|
214
222
|
- **Channel**:Agent 通栏阅读块、用户右侧浅泡、harness / 角色 / 时间元信息、中性 Composer、hover 显影的频道操作;
|
|
215
|
-
- **Project
|
|
216
|
-
- **入口页**:项目列表
|
|
223
|
+
- **Project**:面包屑头部、工作区 + 快照栏两列布局、频道名替代 UUID 墙、Leader 输入框 2 行;
|
|
224
|
+
- **入口页**:项目列表 1180px + 三列新建表单,Workspace 列表 1240px;
|
|
217
225
|
- **行为零删除**:全部 `data-testid`、快捷键、@ 提及、HITL 语义与 API 原样保留——由 12/12 UI 交互套件验证。
|
|
218
226
|
|
|
219
227
|
→ [Harness UI 指南](https://kingdol666.github.io/AgentWorkShop/guide/harness-ui) · [设计画布与前后对比](docs/design/2026-11-08-harness-ui/README.md)
|
|
@@ -510,7 +518,7 @@ curl -X POST http://localhost:3001/api/workshop/projects/instantiate \
|
|
|
510
518
|
|
|
511
519
|
**如果这个项目对你有用,点一个 ⭐ 能让更多人找到它。**
|
|
512
520
|
|
|
513
|
-
当前源码版本:**v0.
|
|
521
|
+
当前源码版本:**v0.18.0(已发布 2026-11-23)** —— [最新版本 v0.18.0](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.18.0) · [更新日志](./changelog.md) · [在线文档](https://kingdol666.github.io/AgentWorkShop)
|
|
514
522
|
|
|
515
523
|
<a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
|
|
516
524
|
<img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
**[简体中文](./README-zh.md)** · **[Documentation](https://kingdol666.github.io/AgentWorkShop)** · **[Releases](https://github.com/kingdol666/AgentWorkShop/releases)** · **[Changelog](./changelog.md)** · **[Plugin API](./docs/plugins.md)** · **[SDK](./docs/sdk.md)**
|
|
30
30
|
|
|
31
|
-
<sub><b>source v0.
|
|
31
|
+
<sub><b>source v0.18.0 (released 2026-11-23)</b> · console workspace-scoped channel creation · API identity-before-lookup hardening · bounded line queries · shared theme and accessibility refresh · desktop tray + boot splash · integrated desktop shell with in-app updates · shared <code>~/.AgentWorkShop</code> home · 14 engines · 6 field protocols (5 built-in + serial plugin) + MES REST (mirror & live) · **Project center** · **RSI experience evolution** · **governed product experience** · **IDD/RAG plugin integration** · **AgentPrefab / Skills / MCP capability supply chain** · bilingual docs (简体中文 / English)</sub>
|
|
32
32
|
|
|
33
33
|
<br />
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
|
-
[Quick start](#quick-start) · [Current source](#current-source-v0-
|
|
39
|
+
[Quick start](#quick-start) · [Current source](#current-source-v0-18-0) · [0.18.0 release notes](#whats-new-in-0180) · [Agent team model](#the-agent-team-model) · [Capabilities](#capabilities) · [Architecture](#architecture) · [Verification](#verification) · [Docs site](https://kingdol666.github.io/AgentWorkShop)
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
@@ -49,12 +49,20 @@ A configuration-driven platform where **AI agent teams** and industrial systems
|
|
|
49
49
|
- **Delivery is a first-class concept**: **Project mode** turns a blueprint into a plan, a WBS with dependencies, L1 technical review, L2 owner acceptance and real deliverables — the project closes only when the deliverables pass;
|
|
50
50
|
- **The loop is implemented in governed stages**: read → analyze → propose → policy-controlled approval where required → write → readback/audit; the scope of each test and whether it used a simulator or physical equipment are stated with its evidence.
|
|
51
51
|
|
|
52
|
-
## Current source: v0.
|
|
52
|
+
## Current source: v0.18.0
|
|
53
53
|
|
|
54
|
-
The source version is **0.
|
|
54
|
+
The source version is **0.18.0** (npm + GitHub Release, 2026-11-23). This release closes console and API scoping defects found by the release review and refreshes the shared visual layer. Channels created over REST are mounted to the owner's default workspace (or an explicitly requested one, validated before creation), so they are discoverable in the workspace-scoped console; the console's own “new channel” dialog passes its workspace id with the create request, so a channel created inside one workspace never leaks into another. Detail and task REST handlers, DAQ ingest and the A2A JSON-RPC methods now resolve the caller's identity before looking up the resource, so an unauthenticated caller can no longer use 404-versus-401 to enumerate ids; the A2A AgentCard visibility switch also covers the JSON-RPC <code>agent/getCard</code> path. <code>GET /api/workshop/dcw/line/query</code> defaults to a 24-hour window instead of scanning the whole time-series history. The shared theme, settings tabs, sidebar drawer focus handling, header controls, HITL popover, page families and the desktop boot splash were refreshed with keyboard and screen-reader semantics, token-only colours and reduced-motion support. It retains the 0.17.5 desktop baseline (close to tray, tray menu with five settings, staged boot splash, shared home, in-app updates) and the 0.16.x AgentPrefab capability baseline.
|
|
55
55
|
|
|
56
56
|
v0.16.0 verification: PR quick-gates green on #262/#264/#265/#263/#266; focused suites **38/38**, post-merge **22/22** and **13/13**, Project/Prefab/Session regression set **235/235**; live isolated-instance acceptance on the release build — Leader/Prefab full chain **30/30 ×2** (create-with-prefab → provenance in SQLite → roster flags → catalog narrowing → dispatch allow/deny → user-worker protection → lead self-op denial → revision switch drops capability → unbind → remove preserves template+revisions → REST lead-delete 409), official L10 **21/21** on a fresh instance, AgentTeam CRUD/deploy/dispatch **25/25**, frontend SSR routes 200. Mimosa deep scan sealed (`sha256:a91957e0…`, 54 findings, dependency risk 0) — findings reported, not a security pass. Boundaries: external MCP positive live trace, real-OMP-model work under a prefab, and browser UI click-through remain NOT_RUN. See the [full-flow acceptance report](docs/audit/evidence/2026-11-21-fullflow-round/REPORT.md) and the [Prefab/Skills/MCP live report](docs/audit/evidence/2026-11-21-agent-prefab-acceptance/REPORT.md).
|
|
57
57
|
|
|
58
|
+
## What's new in 0.18.0
|
|
59
|
+
|
|
60
|
+
- **Console channel scoping**: `POST /api/workshop/channels` mounts a new channel to the owner's default workspace (created on demand, or an explicit `workspaceId` validated before the channel exists), so REST-created channels are visible in the workspace-scoped console. The console's “new channel” dialog now sends its workspace id with the create request instead of mounting afterwards, so a channel created inside one workspace is never also attached to another. 界面与 REST 建频道统一按工作区归属,不再串区。
|
|
61
|
+
- **API identity before resource lookup**: agent, team, channel-template and task detail/action routes, DAQ external ingest and the A2A `message/send` method resolve the caller first, closing a 404-versus-401 id-enumeration oracle for anonymous callers. The `security.a2aCardPublic` switch now also covers JSON-RPC `agent/getCard`. 未鉴权调用者不再能借 404 探测 ID 是否存在。
|
|
62
|
+
- **Bounded line queries**: `GET /api/workshop/dcw/line/query` applies a 24-hour default window when `from`/`to` are omitted; an unbounded query against a shared Timescale aggregate took 10–15 s and grew with history. 省略时间窗时按最近 24h 查询。
|
|
63
|
+
- **Shared visual layer refresh**: token-only colours across the refreshed pages, keyboard-complete settings tabs, sidebar drawer focus trap and focus return, labelled header controls, HITL popover semantics, ≥44 px touch targets on narrow viewports, and a redesigned boot splash whose progress follows the real boot stages with `prefers-reduced-motion` support. 设置页签、导航抽屉、头部控件与启动动画的键盘与动效一致性修复。
|
|
64
|
+
- **Docs alignment**: the MCP guide now lists all 38 tools (including the three recipe tools), the nine bundled skills, 14 MCP test groups; README layout claims match the shipped 1180 px project grid and two-column project detail. MCP 工具与 skill 清单、项目页布局描述与实现对齐。
|
|
65
|
+
|
|
58
66
|
## What's new in 0.17.5
|
|
59
67
|
|
|
60
68
|
- **Close to tray**: the titlebar close button now hides the window instead of killing the backend. The tray icon restores it on click/double-click, and `关闭时最小化到托盘` can be turned off when a user prefers close-to-exit. 关闭窗口默认最小化到托盘,后端与正在运行的任务继续工作。
|
|
@@ -210,8 +218,8 @@ The Channel console and Project detail were rebuilt around the ChatGPT harness p
|
|
|
210
218
|
</p>
|
|
211
219
|
|
|
212
220
|
- **Channel**: full-width agent blocks, user right bubble, harness / role / time metadata, neutral composer, hover-revealed channel ops;
|
|
213
|
-
- **Project**: breadcrumb header,
|
|
214
|
-
- **Entry pages**:
|
|
221
|
+
- **Project**: breadcrumb header, two-column body (work area + snapshot rail), channel names instead of UUID walls, 2-line leader composer;
|
|
222
|
+
- **Entry pages**: 1180 px project grid with a 3-column create form, 1240 px workspace grid;
|
|
215
223
|
- **No behaviour removed**: every `data-testid`, keyboard shortcut, @-mention, HITL semantic and API is unchanged — verified by the 12/12 UI interaction suite.
|
|
216
224
|
|
|
217
225
|
→ [Harness UI guide](https://kingdol666.github.io/AgentWorkShop/guide/harness-ui) · [Design canvas & before/after](docs/design/2026-11-08-harness-ui/README.md)
|
|
@@ -506,7 +514,7 @@ Please **do not** open public issues for vulnerabilities — report privately vi
|
|
|
506
514
|
|
|
507
515
|
**If this project is useful to you, a ⭐ helps others find it.**
|
|
508
516
|
|
|
509
|
-
Current source version: **v0.
|
|
517
|
+
Current source version: **v0.18.0 (released 2026-11-23)** — [Latest release v0.18.0](https://github.com/kingdol666/AgentWorkShop/releases/tag/v0.18.0) · [Changelog](./changelog.md) · [Documentation](https://kingdol666.github.io/AgentWorkShop)
|
|
510
518
|
|
|
511
519
|
<a href="https://star-history.com/#kingdol666/AgentWorkShop&Date">
|
|
512
520
|
<img src="https://api.star-history.com/svg?repos=kingdol666/AgentWorkShop&type=Date" alt="Star history" width="70%" />
|
|
@@ -140,25 +140,86 @@ onBeforeUnmount(() => {
|
|
|
140
140
|
document.body.classList.remove('nav-drawer', 'nav-drawer-open')
|
|
141
141
|
})
|
|
142
142
|
|
|
143
|
-
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
/** 抽屉关闭时只还原自己的滚动锁,保留原有的轴向值和优先级。 */
|
|
144
|
+
const nav = ref<HTMLElement | null>(null)
|
|
145
|
+
let releaseScrollLock: (() => void) | undefined
|
|
146
|
+
let returnFocus: HTMLElement | null = null
|
|
147
|
+
let navToggle: HTMLButtonElement | null = null
|
|
148
|
+
let addedControls = false
|
|
149
|
+
|
|
150
|
+
function lockBodyScroll() {
|
|
151
|
+
const { style } = document.body
|
|
152
|
+
const overflow = ['overflow-x', 'overflow-y'].map(name => ({
|
|
153
|
+
name,
|
|
154
|
+
value: style.getPropertyValue(name),
|
|
155
|
+
priority: style.getPropertyPriority(name),
|
|
156
|
+
}))
|
|
157
|
+
style.setProperty('overflow', 'hidden')
|
|
158
|
+
return () => {
|
|
159
|
+
for (const { name, value, priority } of overflow) {
|
|
160
|
+
if (style.getPropertyValue(name) !== 'hidden' || style.getPropertyPriority(name)) continue
|
|
161
|
+
if (value) style.setProperty(name, value, priority)
|
|
162
|
+
else style.removeProperty(name)
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
watch([navHydrated, drawerOpen], async ([hydrated, open]) => {
|
|
168
|
+
if (!hydrated) return
|
|
169
|
+
if (open) {
|
|
170
|
+
const active = document.activeElement
|
|
171
|
+
returnFocus = active instanceof HTMLElement && active !== document.body && !nav.value?.contains(active)
|
|
172
|
+
? active
|
|
173
|
+
: navToggle
|
|
174
|
+
releaseScrollLock = lockBodyScroll()
|
|
175
|
+
await nextTick()
|
|
176
|
+
if (drawerOpen.value) nav.value?.querySelector<HTMLElement>('.menu-item')?.focus()
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
releaseScrollLock?.()
|
|
180
|
+
releaseScrollLock = undefined
|
|
181
|
+
if (returnFocus?.isConnected) returnFocus.focus({ preventScroll: true })
|
|
182
|
+
returnFocus = null
|
|
183
|
+
}
|
|
147
184
|
})
|
|
148
185
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
if (e.key === 'Escape'
|
|
186
|
+
function onKeydown(e: KeyboardEvent) {
|
|
187
|
+
if (!drawerOpen.value || e.defaultPrevented) return
|
|
188
|
+
if (e.key === 'Escape') {
|
|
189
|
+
e.preventDefault()
|
|
190
|
+
store.closeMobileNav()
|
|
191
|
+
}
|
|
192
|
+
else if (e.key === 'Tab') {
|
|
193
|
+
const buttons = nav.value?.querySelectorAll<HTMLElement>('.menu-item')
|
|
194
|
+
const first = buttons?.[0]
|
|
195
|
+
const last = buttons?.[buttons.length - 1]
|
|
196
|
+
const active = document.activeElement
|
|
197
|
+
if (!nav.value?.contains(active) || active === (e.shiftKey ? first : last)) {
|
|
198
|
+
e.preventDefault()
|
|
199
|
+
;(e.shiftKey ? last : first)?.focus()
|
|
200
|
+
}
|
|
201
|
+
}
|
|
152
202
|
}
|
|
153
|
-
|
|
203
|
+
|
|
204
|
+
onMounted(() => {
|
|
205
|
+
// The existing header trigger lives outside this component.
|
|
206
|
+
navToggle = nav.value?.closest('.app-layout')?.querySelector<HTMLButtonElement>('.app-header .collapse-btn') ?? null
|
|
207
|
+
if (navToggle && !navToggle.hasAttribute('aria-controls')) {
|
|
208
|
+
navToggle.setAttribute('aria-controls', 'app-sidebar')
|
|
209
|
+
addedControls = true
|
|
210
|
+
}
|
|
211
|
+
window.addEventListener('keydown', onKeydown)
|
|
212
|
+
})
|
|
154
213
|
onBeforeUnmount(() => {
|
|
155
214
|
window.removeEventListener('keydown', onKeydown)
|
|
156
|
-
|
|
215
|
+
releaseScrollLock?.()
|
|
216
|
+
if (addedControls) navToggle?.removeAttribute('aria-controls')
|
|
157
217
|
})
|
|
158
218
|
</script>
|
|
159
219
|
|
|
160
220
|
<template>
|
|
161
221
|
<a-layout-sider
|
|
222
|
+
id="app-sidebar"
|
|
162
223
|
:collapsed="effectiveCollapsed"
|
|
163
224
|
:trigger="null"
|
|
164
225
|
collapsible
|
|
@@ -166,7 +227,8 @@ onBeforeUnmount(() => {
|
|
|
166
227
|
:collapsed-width="64"
|
|
167
228
|
class="app-sider"
|
|
168
229
|
:data-nav-mode="navMode"
|
|
169
|
-
:
|
|
230
|
+
:inert="navHydrated && isDrawer && !drawerOpen"
|
|
231
|
+
:aria-hidden="navHydrated && isDrawer && !drawerOpen ? 'true' : undefined"
|
|
170
232
|
>
|
|
171
233
|
<!-- 品牌区:AwLogo 六边形标志(绿→青渐变 + 孪生虚影 + 三节点互连,与 favicon 同源) -->
|
|
172
234
|
<div class="logo">
|
|
@@ -52,16 +52,28 @@ const wsLabel = computed(() => {
|
|
|
52
52
|
|
|
53
53
|
const isFullscreen = ref(false)
|
|
54
54
|
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
function syncFullscreen() {
|
|
56
|
+
isFullscreen.value = Boolean(document.fullscreenElement)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function toggleFullscreen() {
|
|
60
|
+
try {
|
|
61
|
+
if (document.fullscreenElement) await document.exitFullscreen()
|
|
62
|
+
else await document.documentElement.requestFullscreen()
|
|
59
63
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
catch {
|
|
65
|
+
// Some environments deny fullscreen; keep the control in sync with the browser.
|
|
66
|
+
syncFullscreen()
|
|
63
67
|
}
|
|
64
68
|
}
|
|
69
|
+
|
|
70
|
+
onMounted(() => {
|
|
71
|
+
syncFullscreen()
|
|
72
|
+
document.addEventListener('fullscreenchange', syncFullscreen)
|
|
73
|
+
})
|
|
74
|
+
onBeforeUnmount(() => document.removeEventListener('fullscreenchange', syncFullscreen))
|
|
75
|
+
|
|
76
|
+
const themeAction = computed(() => store.isDark ? t('common.light') : t('common.dark'))
|
|
65
77
|
</script>
|
|
66
78
|
|
|
67
79
|
<template>
|
|
@@ -74,20 +86,29 @@ function toggleFullscreen() {
|
|
|
74
86
|
/>
|
|
75
87
|
<a-tooltip :title="t('header.fullscreen')">
|
|
76
88
|
<button
|
|
89
|
+
type="button"
|
|
77
90
|
class="icon-btn hdr-fullscreen"
|
|
91
|
+
:aria-label="t('header.fullscreen')"
|
|
92
|
+
:aria-pressed="isFullscreen"
|
|
78
93
|
@click="toggleFullscreen"
|
|
79
94
|
>
|
|
80
95
|
<span
|
|
81
96
|
class="i-tabler-arrows-maximize"
|
|
82
97
|
:class="{ hidden: isFullscreen }"
|
|
98
|
+
aria-hidden="true"
|
|
83
99
|
/>
|
|
84
100
|
<span
|
|
85
101
|
class="i-tabler-arrows-minimize"
|
|
86
102
|
:class="{ hidden: !isFullscreen }"
|
|
103
|
+
aria-hidden="true"
|
|
87
104
|
/>
|
|
88
105
|
</button>
|
|
89
106
|
</a-tooltip>
|
|
90
107
|
|
|
108
|
+
<label
|
|
109
|
+
class="sr-only"
|
|
110
|
+
for="hdr-locale"
|
|
111
|
+
>{{ t('header.language') }}</label>
|
|
91
112
|
<a-select
|
|
92
113
|
id="hdr-locale"
|
|
93
114
|
:value="locale"
|
|
@@ -97,18 +118,22 @@ function toggleFullscreen() {
|
|
|
97
118
|
@change="switchLocale"
|
|
98
119
|
/>
|
|
99
120
|
|
|
100
|
-
<a-tooltip :title="
|
|
121
|
+
<a-tooltip :title="themeAction">
|
|
101
122
|
<button
|
|
123
|
+
type="button"
|
|
102
124
|
class="icon-btn"
|
|
125
|
+
:aria-label="themeAction"
|
|
103
126
|
@click="store.toggleDark()"
|
|
104
127
|
>
|
|
105
128
|
<span
|
|
106
129
|
class="i-tabler-sun-high"
|
|
107
130
|
:class="{ hidden: store.isDark }"
|
|
131
|
+
aria-hidden="true"
|
|
108
132
|
/>
|
|
109
133
|
<span
|
|
110
134
|
class="i-tabler-moon-stars"
|
|
111
135
|
:class="{ hidden: !store.isDark }"
|
|
136
|
+
aria-hidden="true"
|
|
112
137
|
/>
|
|
113
138
|
</button>
|
|
114
139
|
</a-tooltip>
|
|
@@ -4,6 +4,63 @@ import { useHitlAnswer } from '@/app/composables/workshop/useHitlAnswer'
|
|
|
4
4
|
|
|
5
5
|
const { t } = useI18n()
|
|
6
6
|
const hitl = useHitlStore()
|
|
7
|
+
const panelId = `hitl-panel-${useId()}`
|
|
8
|
+
const open = ref(false)
|
|
9
|
+
const bell = ref<HTMLButtonElement | null>(null)
|
|
10
|
+
const panel = ref<HTMLElement | null>(null)
|
|
11
|
+
let focusOnAlign = false
|
|
12
|
+
|
|
13
|
+
function focusPanel() {
|
|
14
|
+
const first = panel.value?.querySelector<HTMLButtonElement>('.hitl-item-head')
|
|
15
|
+
if (!first?.getClientRects().length) return false
|
|
16
|
+
first.focus()
|
|
17
|
+
return true
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function onOpenChange(next: boolean) {
|
|
21
|
+
// Keep hover behavior, but don't dismiss a panel while a user is working in it.
|
|
22
|
+
if (next || (!focusOnAlign && !panel.value?.contains(document.activeElement))) open.value = next
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function openFromBell(event: MouseEvent) {
|
|
26
|
+
open.value = true
|
|
27
|
+
if (event.detail === 0) focusOnAlign = !focusPanel()
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function onPopupAlign() {
|
|
31
|
+
if (open.value && focusOnAlign && focusPanel()) focusOnAlign = false
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function closePanel(restoreFocus = false) {
|
|
35
|
+
if (restoreFocus) bell.value?.focus({ preventScroll: true })
|
|
36
|
+
focusOnAlign = false
|
|
37
|
+
open.value = false
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function onEscape(event: KeyboardEvent) {
|
|
41
|
+
if (!open.value) return
|
|
42
|
+
event.preventDefault()
|
|
43
|
+
event.stopPropagation()
|
|
44
|
+
closePanel(true)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function onPanelFocusOut(event: FocusEvent) {
|
|
48
|
+
const next = event.relatedTarget
|
|
49
|
+
if (next instanceof Node) {
|
|
50
|
+
if (!panel.value?.contains(next)) closePanel()
|
|
51
|
+
return
|
|
52
|
+
}
|
|
53
|
+
// relatedTarget 为空:焦点落到 body 或离开文档(例如点击不可聚焦区域)。
|
|
54
|
+
// 下一轮按 activeElement 复核,否则面板会卡在「焦点已离开但仍打开、Esc 也到不了」的状态。
|
|
55
|
+
setTimeout(() => {
|
|
56
|
+
const active = document.activeElement
|
|
57
|
+
if (!active || active === document.body || !panel.value?.contains(active)) closePanel()
|
|
58
|
+
}, 0)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
watch(() => hitl.count, (count) => {
|
|
62
|
+
if (!count) closePanel()
|
|
63
|
+
})
|
|
7
64
|
const {
|
|
8
65
|
HITL_KINDS,
|
|
9
66
|
hitlKindLabel,
|
|
@@ -29,18 +86,46 @@ const {
|
|
|
29
86
|
<template>
|
|
30
87
|
<a-dropdown
|
|
31
88
|
v-if="hitl.count > 0"
|
|
89
|
+
:open="open"
|
|
32
90
|
placement="bottomRight"
|
|
91
|
+
@open-change="onOpenChange"
|
|
92
|
+
@popup-align="onPopupAlign"
|
|
33
93
|
>
|
|
34
94
|
<button
|
|
95
|
+
ref="bell"
|
|
96
|
+
type="button"
|
|
35
97
|
class="icon-btn hitl-bell"
|
|
36
98
|
:title="t('appHeader.hitlBadge')"
|
|
99
|
+
:aria-label="`${t('appHeader.hitlBadge')} · ${hitl.count}`"
|
|
100
|
+
:aria-expanded="open"
|
|
101
|
+
:aria-controls="open ? panelId : undefined"
|
|
102
|
+
@click="openFromBell"
|
|
103
|
+
@keydown.esc="onEscape"
|
|
37
104
|
>
|
|
38
|
-
<span
|
|
39
|
-
|
|
105
|
+
<span
|
|
106
|
+
class="i-tabler-bell-ringing"
|
|
107
|
+
aria-hidden="true"
|
|
108
|
+
/>
|
|
109
|
+
<span
|
|
110
|
+
class="hitl-count"
|
|
111
|
+
aria-hidden="true"
|
|
112
|
+
>{{ hitl.count }}</span>
|
|
40
113
|
</button>
|
|
41
114
|
<template #overlay>
|
|
42
|
-
<div
|
|
43
|
-
|
|
115
|
+
<div
|
|
116
|
+
:id="panelId"
|
|
117
|
+
ref="panel"
|
|
118
|
+
class="hitl-menu"
|
|
119
|
+
role="region"
|
|
120
|
+
:aria-labelledby="`${panelId}-title`"
|
|
121
|
+
:inert="!open"
|
|
122
|
+
@focusout="onPanelFocusOut"
|
|
123
|
+
@keydown.esc="onEscape"
|
|
124
|
+
>
|
|
125
|
+
<div
|
|
126
|
+
:id="`${panelId}-title`"
|
|
127
|
+
class="hitl-menu-title"
|
|
128
|
+
>
|
|
44
129
|
{{ t('appHeader.hitlBadge') }} · {{ hitl.count }}
|
|
45
130
|
</div>
|
|
46
131
|
<div
|
|
@@ -69,29 +69,43 @@ const switchLocale = (value: unknown) => {
|
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
72
|
-
<div
|
|
72
|
+
<div
|
|
73
|
+
class="color-swatches"
|
|
74
|
+
role="group"
|
|
75
|
+
:aria-label="t('settings.primaryColor')"
|
|
76
|
+
>
|
|
73
77
|
<button
|
|
74
78
|
v-for="c in colorPresets"
|
|
75
79
|
:key="c.value"
|
|
80
|
+
type="button"
|
|
76
81
|
class="swatch"
|
|
77
82
|
:class="{ on: currentAccent.toLowerCase() === c.value.toLowerCase() }"
|
|
83
|
+
:aria-pressed="currentAccent.toLowerCase() === c.value.toLowerCase()"
|
|
78
84
|
:style="{ '--sw': c.value }"
|
|
79
85
|
:title="c.label"
|
|
80
86
|
@click="pickAccent(c.value)"
|
|
81
87
|
>
|
|
82
|
-
<span
|
|
88
|
+
<span
|
|
89
|
+
class="swatch-dot"
|
|
90
|
+
aria-hidden="true"
|
|
91
|
+
/>
|
|
83
92
|
<span class="swatch-label">{{ c.label }}</span>
|
|
84
93
|
<span
|
|
85
94
|
v-if="currentAccent.toLowerCase() === c.value.toLowerCase()"
|
|
86
95
|
class="i-tabler-check swatch-check"
|
|
96
|
+
aria-hidden="true"
|
|
87
97
|
/>
|
|
88
98
|
</button>
|
|
89
99
|
</div>
|
|
90
100
|
<button
|
|
101
|
+
type="button"
|
|
91
102
|
class="aw-pill outline reset-btn"
|
|
92
103
|
@click="resetAccent"
|
|
93
104
|
>
|
|
94
|
-
<span
|
|
105
|
+
<span
|
|
106
|
+
class="i-tabler-rotate"
|
|
107
|
+
aria-hidden="true"
|
|
108
|
+
/>
|
|
95
109
|
{{ t('settings.accentResetAction') }}
|
|
96
110
|
</button>
|
|
97
111
|
|
|
@@ -100,31 +114,44 @@ const switchLocale = (value: unknown) => {
|
|
|
100
114
|
<div class="set-title">
|
|
101
115
|
{{ store.isDark ? t('common.dark') : t('common.light') }}
|
|
102
116
|
</div>
|
|
103
|
-
<div
|
|
117
|
+
<div
|
|
118
|
+
id="settings-dark-description"
|
|
119
|
+
class="set-sub"
|
|
120
|
+
>
|
|
104
121
|
{{ t('settings.darkDesc') }}
|
|
105
122
|
</div>
|
|
106
123
|
</div>
|
|
107
124
|
<button
|
|
125
|
+
type="button"
|
|
108
126
|
class="switch"
|
|
109
127
|
:class="{ on: store.isDark }"
|
|
110
128
|
role="switch"
|
|
129
|
+
:aria-label="t('common.dark')"
|
|
111
130
|
:aria-checked="store.isDark"
|
|
131
|
+
aria-describedby="settings-dark-description"
|
|
112
132
|
@click="store.toggleDark()"
|
|
113
133
|
>
|
|
114
|
-
<span
|
|
134
|
+
<span
|
|
135
|
+
class="knob"
|
|
136
|
+
aria-hidden="true"
|
|
137
|
+
/>
|
|
115
138
|
</button>
|
|
116
139
|
</div>
|
|
117
140
|
|
|
118
141
|
<div class="toggle-row">
|
|
119
142
|
<div class="set-text">
|
|
120
|
-
<
|
|
143
|
+
<label
|
|
144
|
+
class="set-title"
|
|
145
|
+
for="settings-locale"
|
|
146
|
+
>
|
|
121
147
|
{{ t('header.language') }}
|
|
122
|
-
</
|
|
148
|
+
</label>
|
|
123
149
|
<div class="set-sub">
|
|
124
150
|
{{ t('settings.languageDesc') }}
|
|
125
151
|
</div>
|
|
126
152
|
</div>
|
|
127
153
|
<a-select
|
|
154
|
+
id="settings-locale"
|
|
128
155
|
:value="locale"
|
|
129
156
|
:options="localeOptions"
|
|
130
157
|
style="width: 140px"
|
|
@@ -37,11 +37,20 @@ const createAndMount = async (): Promise<void> => {
|
|
|
37
37
|
description: mountForm.description || undefined,
|
|
38
38
|
scenarioPrompt: mountForm.scenarioPrompt.trim() || undefined,
|
|
39
39
|
workspace: mountForm.workspace.trim() || undefined,
|
|
40
|
+
// 挂载目标随创建请求一起提交,由服务端原子校验并挂载。缺省时服务端会把频道
|
|
41
|
+
// 挂到 owner 的默认工作区,再补一次挂载就会让频道同时出现在两个工作区。
|
|
42
|
+
workspaceId: props.wsId,
|
|
40
43
|
})
|
|
41
44
|
const created = (res as unknown as { data?: { channelId?: string } })?.data
|
|
42
45
|
const channelId = created?.channelId
|
|
43
46
|
if (!channelId) throw new Error(t('channelSessionList.k1bg6shc027'))
|
|
44
|
-
|
|
47
|
+
try {
|
|
48
|
+
await wsStore.load()
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
// 频道已创建并挂载,只是清单刷新失败;下次加载即与服务端一致
|
|
52
|
+
}
|
|
53
|
+
if (!wsStore.workspaces.find(w => w.id === props.wsId)?.activeChannelId) wsStore.setActiveChannel(props.wsId, channelId)
|
|
45
54
|
open.value = false
|
|
46
55
|
mountForm.name = ''
|
|
47
56
|
mountForm.description = ''
|
|
@@ -241,8 +241,9 @@ export function useWorkshopApi() {
|
|
|
241
241
|
return {
|
|
242
242
|
// channels
|
|
243
243
|
listChannels: () => http.get<{ data: ChannelDto[] }>('/workshop/channels'),
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
/** `workspaceId` 指定挂载目标;缺省时服务端挂到 owner 的默认工作区 */
|
|
245
|
+
createChannel: (body: { name: string, channelMode?: ChannelMode, description?: string, scenarioPrompt?: string, workspace?: string, workspaceId?: string, leadAgent?: { name: string, harness: string, config?: Record<string, unknown> } }) =>
|
|
246
|
+
http.post<{ data: { channelId: string, leadAgentId?: string, workspace: string, workspaceId?: string, workspaceName?: string } }>('/workshop/channels', body),
|
|
246
247
|
deleteChannel: (id: string) => http.delete<{ data: unknown }>(`/workshop/channels/${id}`),
|
|
247
248
|
/** 修改 Channel 实例设置(场景 prompt / 工作目录热更新;成员运行时自动回收重装配) */
|
|
248
249
|
patchChannel: (id: string, body: { name?: string, channelMode?: ChannelMode, description?: string, scenarioPrompt?: string, workspace?: string, enabled?: number, llm?: { provider?: string, model?: string, effort?: string } | null }) =>
|