agentworkshop 0.17.4 → 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 +1180 -1130
- 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 +23 -8
- package/README.md +23 -8
- 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/contract.mjs +59 -3
- package/desktop/chrome/preload-splash.cjs +29 -0
- package/desktop/chrome/preload.cjs +2 -0
- package/desktop/chrome/settings.mjs +24 -0
- package/desktop/chrome/splash.html +610 -0
- package/desktop/chrome/titlebar.html +8 -1
- package/desktop/chrome/tray-menu.mjs +56 -0
- package/desktop/main.mjs +694 -42
- package/desktop/sidecar.mjs +12 -2
- package/docs/cli.en.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/desktop.md +21 -3
- 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 +223 -219
- 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/2547f38c-dfaf-48fa-9b29-334889a73f2c.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
|
@@ -386,7 +386,15 @@ watch(windowPreset, () => {
|
|
|
386
386
|
.page { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
|
|
387
387
|
.head { display: flex; justify-content: space-between; align-items: baseline; }
|
|
388
388
|
.title { font-size: 18px; font-weight: 700; margin: 0; }
|
|
389
|
-
.back {
|
|
389
|
+
.back {
|
|
390
|
+
display: inline-flex;
|
|
391
|
+
min-height: 40px;
|
|
392
|
+
align-items: center;
|
|
393
|
+
padding: 8px 12px;
|
|
394
|
+
font-size: 12px;
|
|
395
|
+
border: 1px solid var(--line-strong);
|
|
396
|
+
border-radius: var(--radius-control, 8px);
|
|
397
|
+
}
|
|
390
398
|
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
|
391
399
|
.row.end { justify-content: flex-end; }
|
|
392
400
|
.grow { flex: 1; }
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
class="nodeList"
|
|
28
28
|
data-test="studio-nodes"
|
|
29
29
|
>
|
|
30
|
-
<
|
|
30
|
+
<div
|
|
31
31
|
v-for="n in nodes"
|
|
32
32
|
:key="n.id"
|
|
33
33
|
class="nodeRow"
|
|
@@ -41,12 +41,13 @@
|
|
|
41
41
|
>{{ n.unit }}</span>
|
|
42
42
|
<button
|
|
43
43
|
v-if="!isY(n.id)"
|
|
44
|
+
type="button"
|
|
44
45
|
class="miniAdd"
|
|
45
46
|
@click.stop="addY(n)"
|
|
46
47
|
>
|
|
47
48
|
+Y
|
|
48
49
|
</button>
|
|
49
|
-
</
|
|
50
|
+
</div>
|
|
50
51
|
<p
|
|
51
52
|
v-if="!nodes.length"
|
|
52
53
|
class="empty"
|
|
@@ -59,15 +60,20 @@
|
|
|
59
60
|
<h3 class="sec">
|
|
60
61
|
{{ $t('studio.myCharts') }}
|
|
61
62
|
</h3>
|
|
62
|
-
<
|
|
63
|
+
<div
|
|
63
64
|
v-for="ch in charts"
|
|
64
65
|
:key="ch.id"
|
|
65
66
|
class="chartRow"
|
|
66
|
-
data-test="studio-chart-row"
|
|
67
|
-
@click="loadChart(ch)"
|
|
68
67
|
>
|
|
69
|
-
<
|
|
70
|
-
|
|
68
|
+
<button
|
|
69
|
+
type="button"
|
|
70
|
+
class="chartOpen"
|
|
71
|
+
data-test="studio-chart-row"
|
|
72
|
+
@click="loadChart(ch)"
|
|
73
|
+
>
|
|
74
|
+
<span class="nName">{{ ch.title }}</span>
|
|
75
|
+
<span class="unit">{{ ch.vizType }} v{{ ch.version }}</span>
|
|
76
|
+
</button>
|
|
71
77
|
<!-- 删除已保存图表不可逆:二次确认(交互宪法 §2-1) -->
|
|
72
78
|
<a-popconfirm
|
|
73
79
|
:title="$t('studio.deleteChartConfirm', { name: ch.title })"
|
|
@@ -78,13 +84,15 @@
|
|
|
78
84
|
@confirm.stop="removeChart(ch.id)"
|
|
79
85
|
>
|
|
80
86
|
<button
|
|
87
|
+
type="button"
|
|
81
88
|
class="miniAdd danger"
|
|
89
|
+
:aria-label="`${$t('common.delete')}: ${ch.title}`"
|
|
82
90
|
@click.stop
|
|
83
91
|
>
|
|
84
92
|
✕
|
|
85
93
|
</button>
|
|
86
94
|
</a-popconfirm>
|
|
87
|
-
</
|
|
95
|
+
</div>
|
|
88
96
|
<p
|
|
89
97
|
v-if="!charts.length"
|
|
90
98
|
class="empty"
|
|
@@ -105,8 +113,10 @@
|
|
|
105
113
|
<button
|
|
106
114
|
v-for="vt in VIZ_TYPES"
|
|
107
115
|
:key="vt"
|
|
116
|
+
type="button"
|
|
108
117
|
class="vizBtn"
|
|
109
118
|
:class="{ on: vizType === vt, dim: !typeAvailable(vt) }"
|
|
119
|
+
:aria-pressed="vizType === vt"
|
|
110
120
|
:disabled="Boolean(pipelineOption)"
|
|
111
121
|
:title="pipelineOption ? $t('studio.pipelineSnapshot') : vizLabels[vt]"
|
|
112
122
|
@click="vizType = vt"
|
|
@@ -819,7 +829,7 @@ watch(lineId, (v) => {
|
|
|
819
829
|
</script>
|
|
820
830
|
|
|
821
831
|
<style scoped>
|
|
822
|
-
.studio { display: grid; grid-template-columns: 250px 1fr 300px; gap: 12px; padding: 16px 20px; height: calc(100vh - 56px); }
|
|
832
|
+
.studio { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 12px; padding: 16px 20px; height: calc(100vh - 56px); }
|
|
823
833
|
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
|
|
824
834
|
.card { background: var(--surface-card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
|
|
825
835
|
.card.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
@@ -831,16 +841,30 @@ watch(lineId, (v) => {
|
|
|
831
841
|
.sel { max-width: 140px; }
|
|
832
842
|
.numIn { width: 90px; }
|
|
833
843
|
.nodeList { overflow: auto; flex: 1; min-height: 0; }
|
|
834
|
-
.nodeRow, .chartRow { display: flex; gap: 6px; align-items: center;
|
|
844
|
+
.nodeRow, .chartRow, .chartOpen { display: flex; gap: 6px; align-items: center; }
|
|
845
|
+
.nodeRow, .chartRow { width: 100%; border-radius: var(--radius-chip); }
|
|
846
|
+
.nodeRow { padding: 4px; cursor: grab; }
|
|
847
|
+
.chartRow { padding-inline-end: 4px; }
|
|
848
|
+
.chartOpen { flex: 1; min-width: 0; align-self: stretch; border: 0; border-radius: inherit; background: transparent; padding: 4px 0 4px 4px; cursor: pointer; text-align: left; }
|
|
835
849
|
.nodeRow:hover, .chartRow:hover { background: var(--hover-tint); }
|
|
836
|
-
.nName { font-size: 12px; color: var(--ink, #222); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
850
|
+
.nName { font-size: 12px; color: var(--ink, #222); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
837
851
|
.unit { font-size: 11px; color: var(--ink-faint, #999); }
|
|
838
|
-
.
|
|
852
|
+
.nodeRow .unit { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
853
|
+
.chartOpen .unit { flex-shrink: 0; }
|
|
854
|
+
.miniAdd { flex: 0 0 auto; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius-chip); font-size: 11px; padding: 0 6px; cursor: pointer; }
|
|
839
855
|
.miniAdd.danger { color: var(--tone-danger-dot); border-color: color-mix(in srgb, var(--tone-danger-dot) 45%, transparent); }
|
|
840
856
|
.gallery { display: flex; gap: 4px; flex-wrap: wrap; }
|
|
841
|
-
.vizBtn { border: 1px solid var(--line-strong); background: transparent; border-radius:
|
|
842
|
-
.vizBtn.on {
|
|
843
|
-
.vizBtn.
|
|
857
|
+
.vizBtn { border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius-pill); padding: 3px 12px; font-size: 12px; cursor: pointer; color: var(--ink-soft); touch-action: manipulation; }
|
|
858
|
+
.vizBtn.dim:not(.on) { color: var(--ink-faint); }
|
|
859
|
+
.vizBtn.on { border-color: var(--ink); background: var(--paper-tint); color: var(--ink); font-weight: 600; }
|
|
860
|
+
.vizBtn:disabled { cursor: not-allowed; }
|
|
861
|
+
@media (hover: hover) {
|
|
862
|
+
.vizBtn:not(.on):not(:disabled):hover { background: var(--hover-tint); }
|
|
863
|
+
}
|
|
864
|
+
@media (max-width: 900px) {
|
|
865
|
+
.gallery { gap: 8px; }
|
|
866
|
+
.vizBtn { min-width: 44px; min-height: 44px; }
|
|
867
|
+
}
|
|
844
868
|
.canvasCard { position: relative; }
|
|
845
869
|
.canvasCard > div:first-child { flex: 1; min-height: 220px; }
|
|
846
870
|
.snapBadge { position: absolute; top: 10px; right: 14px; z-index: 2; font-size: 11px; color: var(--ink-soft, #666); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; background: rgba(255,255,255,.86); }
|
|
@@ -862,7 +886,7 @@ watch(lineId, (v) => {
|
|
|
862
886
|
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 3px 8px; text-align: left; }
|
|
863
887
|
.mono { font-variant-numeric: tabular-nums; }
|
|
864
888
|
@media (max-width: 1100px) {
|
|
865
|
-
.studio { grid-template-columns: 1fr; height: auto; }
|
|
889
|
+
.studio { grid-template-columns: minmax(0, 1fr); height: auto; }
|
|
866
890
|
}
|
|
867
891
|
.boardLink { text-decoration: none; display: inline-flex; align-items: center; }
|
|
868
892
|
.modalMask { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 60; }
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<!-- Step 1 拉取数据 -->
|
|
20
20
|
<section class="cardBlock">
|
|
21
21
|
<h2><span class="stepNo">1</span>{{ $t('studio.pipeline.s1') }}</h2>
|
|
22
|
-
<div class="row">
|
|
22
|
+
<div class="row wrap">
|
|
23
23
|
<select
|
|
24
24
|
v-model="lineId"
|
|
25
25
|
data-test="pipeline-lines"
|
|
@@ -813,4 +813,23 @@ onMounted(async () => {
|
|
|
813
813
|
.viewerBar b { font-size: 13px }
|
|
814
814
|
.viewerBar .unit { flex: 1 }
|
|
815
815
|
.viewerChart { padding: 8px 12px 12px }
|
|
816
|
+
|
|
817
|
+
@media (max-width: 640px) {
|
|
818
|
+
.aw-page-head { align-items: flex-start }
|
|
819
|
+
.field { min-width: min(170px, 100%); max-width: 100% }
|
|
820
|
+
.field.narrow { min-width: min(110px, 100%) }
|
|
821
|
+
.field.tiny { min-width: min(84px, 100%) }
|
|
822
|
+
.lbl,
|
|
823
|
+
.viewerBar { flex-wrap: wrap }
|
|
824
|
+
.lbl,
|
|
825
|
+
.chip,
|
|
826
|
+
.hint,
|
|
827
|
+
.err,
|
|
828
|
+
.viewerBar b { max-width: 100%; overflow-wrap: anywhere }
|
|
829
|
+
.importRow,
|
|
830
|
+
.codeRow { flex-direction: column; align-items: stretch }
|
|
831
|
+
.importRow .import { max-width: 100% }
|
|
832
|
+
.codeSide { max-width: none; align-items: flex-start }
|
|
833
|
+
.importRow > .pill-btn { align-self: flex-start }
|
|
834
|
+
}
|
|
816
835
|
</style>
|
|
@@ -263,9 +263,12 @@ useHead({ title: () => tt('titles.ctpl') })
|
|
|
263
263
|
<div
|
|
264
264
|
v-if="t.scenarioPrompt"
|
|
265
265
|
class="scenario"
|
|
266
|
-
|
|
266
|
+
role="group"
|
|
267
|
+
tabindex="0"
|
|
268
|
+
:aria-label="$t('ctpl.k1q87yho008')"
|
|
269
|
+
:title="seedScenario(t)"
|
|
267
270
|
>
|
|
268
|
-
{{ seedScenario(t)
|
|
271
|
+
{{ seedScenario(t) }}
|
|
269
272
|
</div>
|
|
270
273
|
<div class="card-foot">
|
|
271
274
|
<span
|
|
@@ -474,14 +477,18 @@ h2 { margin: 0 0 4px; }
|
|
|
474
477
|
color: var(--ink-faint);
|
|
475
478
|
}
|
|
476
479
|
.scenario {
|
|
477
|
-
|
|
478
|
-
overflow:
|
|
480
|
+
max-height: 4lh;
|
|
481
|
+
overflow: auto;
|
|
479
482
|
font-family: var(--font-mono);
|
|
480
483
|
font-size: 11.5px;
|
|
481
484
|
line-height: 1.55;
|
|
482
485
|
color: var(--ink-faint);
|
|
483
|
-
-
|
|
484
|
-
-
|
|
486
|
+
overflow-wrap: anywhere;
|
|
487
|
+
white-space: pre-line;
|
|
488
|
+
}
|
|
489
|
+
.scenario:focus-visible {
|
|
490
|
+
outline: 2px solid var(--focus-ring);
|
|
491
|
+
outline-offset: 2px;
|
|
485
492
|
}
|
|
486
493
|
.card-foot {
|
|
487
494
|
display: flex;
|
|
@@ -552,7 +559,7 @@ h2 { margin: 0 0 4px; }
|
|
|
552
559
|
line-height: 1.5;
|
|
553
560
|
}
|
|
554
561
|
|
|
555
|
-
.grid { grid-template-columns: 1fr; }
|
|
562
|
+
.grid { grid-template-columns: minmax(0, 1fr); }
|
|
556
563
|
.card-head { flex-wrap: wrap; }
|
|
557
564
|
.member-line { flex-wrap: wrap; }
|
|
558
565
|
.card-foot { flex-wrap: wrap; }
|
|
@@ -124,16 +124,6 @@ export const useWorkspacesStore = defineStore('workshop.workspaces', {
|
|
|
124
124
|
const ws = this.workspaces.find(w => w.id === id)
|
|
125
125
|
if (ws) ws.name = name
|
|
126
126
|
},
|
|
127
|
-
async mountChannel(id: string, channelId: string): Promise<void> {
|
|
128
|
-
const ws = this.workspaces.find(w => w.id === id)
|
|
129
|
-
if (!ws || ws.channelIds.includes(channelId)) return
|
|
130
|
-
await authFetch(`/api/workshop/workspaces/${id}/channels/${channelId}`, { method: 'POST' })
|
|
131
|
-
ws.channelIds.push(channelId)
|
|
132
|
-
if (!ws.activeChannelId) {
|
|
133
|
-
ws.activeChannelId = channelId
|
|
134
|
-
this.persistActive(ws)
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
127
|
async unmountChannel(id: string, channelId: string): Promise<void> {
|
|
138
128
|
const ws = this.workspaces.find(w => w.id === id)
|
|
139
129
|
if (!ws) return
|
package/config.yml
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// Shared, Electron-free contract between the desktop shell
|
|
2
|
-
// Keeping the values here lets unit tests
|
|
3
|
-
// importing electron (which cannot load outside
|
|
1
|
+
// Shared, Electron-free contract between the desktop shell, its titlebar, the
|
|
2
|
+
// boot splash and the test suite. Keeping the values here lets unit tests
|
|
3
|
+
// assert the IPC surface without importing electron (which cannot load outside
|
|
4
|
+
// the Electron runtime).
|
|
4
5
|
|
|
5
6
|
export const TITLEBAR_HEIGHT = 40
|
|
6
7
|
|
|
@@ -13,10 +14,19 @@ export const CHROME_CHANNELS = Object.freeze({
|
|
|
13
14
|
status: 'aw-chrome:status',
|
|
14
15
|
theme: 'aw-chrome:theme',
|
|
15
16
|
title: 'aw-chrome:title',
|
|
17
|
+
prefs: 'aw-chrome:prefs',
|
|
16
18
|
update: 'aw-chrome:update',
|
|
17
19
|
updateState: 'aw-chrome:update-state',
|
|
18
20
|
})
|
|
19
21
|
|
|
22
|
+
export const SPLASH_CHANNELS = Object.freeze({
|
|
23
|
+
action: 'aw-splash:action',
|
|
24
|
+
hello: 'aw-splash:hello',
|
|
25
|
+
state: 'aw-splash:state',
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
export const SPLASH_ACTIONS = Object.freeze(['retry', 'open-logs', 'quit'])
|
|
29
|
+
|
|
20
30
|
export const CHROME_THEMES = Object.freeze(['dark', 'light'])
|
|
21
31
|
|
|
22
32
|
/** True for the three window-control actions; everything else is ignored. */
|
|
@@ -24,6 +34,11 @@ export function isChromeAction(value) {
|
|
|
24
34
|
return typeof value === 'string' && CHROME_ACTIONS.includes(value)
|
|
25
35
|
}
|
|
26
36
|
|
|
37
|
+
/** True for the fixed splash actions; no other message reaches the main process. */
|
|
38
|
+
export function isSplashAction(value) {
|
|
39
|
+
return typeof value === 'string' && SPLASH_ACTIONS.includes(value)
|
|
40
|
+
}
|
|
41
|
+
|
|
27
42
|
/** Normalize a document title for the rail: drop the product suffix, clamp length.
|
|
28
43
|
* A bare product title carries no page information, so it is treated as empty. */
|
|
29
44
|
export function cleanPageTitle(raw) {
|
|
@@ -37,3 +52,44 @@ export function cleanPageTitle(raw) {
|
|
|
37
52
|
export function normalizeTheme(value) {
|
|
38
53
|
return value === 'light' ? 'light' : 'dark'
|
|
39
54
|
}
|
|
55
|
+
|
|
56
|
+
// Boot stages drive both the splash copy and the real boot order. Progress is
|
|
57
|
+
// monotonic; the splash never invents a percentage the backend has not reached.
|
|
58
|
+
export const BOOT_STAGES = Object.freeze([
|
|
59
|
+
Object.freeze({ id: 'prepare', title: '准备运行环境', detail: '校验安装载荷与用户数据目录', progress: 10 }),
|
|
60
|
+
Object.freeze({ id: 'data', title: '初始化工作区', detail: '创建数据目录并检查数据库结构', progress: 28 }),
|
|
61
|
+
Object.freeze({ id: 'service', title: '启动本机服务', detail: '启动 Nitro、API 与插件宿主', progress: 52 }),
|
|
62
|
+
Object.freeze({ id: 'workshop', title: '装配智能体工作台', detail: '恢复 Channel、Session 与任务状态', progress: 78 }),
|
|
63
|
+
Object.freeze({ id: 'ready', title: '工作台已就绪', detail: '正在进入主界面', progress: 100 }),
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
export function bootStage(id) {
|
|
67
|
+
return BOOT_STAGES.find(stage => stage.id === id) ?? BOOT_STAGES[0]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Ids of the four steps rendered as a checklist (ready is the completed rail). */
|
|
71
|
+
export const SPLASH_STEPS = Object.freeze(BOOT_STAGES.filter(stage => stage.id !== 'ready').map(stage => stage.id))
|
|
72
|
+
|
|
73
|
+
// Tray settings. Defaults are the safe, least-surprising behavior for a
|
|
74
|
+
// desktop app that owns a local backend: closing hides instead of killing the
|
|
75
|
+
// running workshop, and updates keep checking in the background.
|
|
76
|
+
export const DEFAULT_SETTINGS = Object.freeze({
|
|
77
|
+
closeToTray: true,
|
|
78
|
+
launchAtLogin: false,
|
|
79
|
+
startHidden: false,
|
|
80
|
+
trayNotifications: true,
|
|
81
|
+
autoCheckUpdates: true,
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
export const SETTINGS_KEYS = Object.freeze(Object.keys(DEFAULT_SETTINGS))
|
|
85
|
+
|
|
86
|
+
/** Coerce persisted JSON into the exact boolean settings surface. Unknown keys
|
|
87
|
+
* are dropped so a hand-edited settings file cannot add privileged behavior. */
|
|
88
|
+
export function normalizeSettings(raw) {
|
|
89
|
+
const source = raw && typeof raw === 'object' && !Array.isArray(raw) ? raw : {}
|
|
90
|
+
const settings = {}
|
|
91
|
+
for (const key of SETTINGS_KEYS) {
|
|
92
|
+
settings[key] = typeof source[key] === 'boolean' ? source[key] : DEFAULT_SETTINGS[key]
|
|
93
|
+
}
|
|
94
|
+
return settings
|
|
95
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Sandboxed preload for the boot splash. It exposes only the fixed splash
|
|
2
|
+
// surface; the renderer never receives ipcRenderer itself.
|
|
3
|
+
const { contextBridge, ipcRenderer } = require('electron')
|
|
4
|
+
|
|
5
|
+
// Keep in sync with contract.mjs (sandboxed preloads cannot import local ESM).
|
|
6
|
+
const CHANNELS = {
|
|
7
|
+
action: 'aw-splash:action',
|
|
8
|
+
hello: 'aw-splash:hello',
|
|
9
|
+
state: 'aw-splash:state',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function subscribe(channel, callback) {
|
|
13
|
+
const handler = (_event, payload) => {
|
|
14
|
+
try {
|
|
15
|
+
callback(payload)
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
// A splash listener must never take down the boot window.
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
ipcRenderer.on(channel, handler)
|
|
22
|
+
return () => ipcRenderer.removeListener(channel, handler)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
contextBridge.exposeInMainWorld('awSplash', {
|
|
26
|
+
action: name => ipcRenderer.send(CHANNELS.action, name),
|
|
27
|
+
hello: () => ipcRenderer.send(CHANNELS.hello),
|
|
28
|
+
onState: callback => subscribe(CHANNELS.state, callback),
|
|
29
|
+
})
|
|
@@ -10,6 +10,7 @@ const CHANNELS = {
|
|
|
10
10
|
status: 'aw-chrome:status',
|
|
11
11
|
theme: 'aw-chrome:theme',
|
|
12
12
|
title: 'aw-chrome:title',
|
|
13
|
+
prefs: 'aw-chrome:prefs',
|
|
13
14
|
update: 'aw-chrome:update',
|
|
14
15
|
updateState: 'aw-chrome:update-state',
|
|
15
16
|
}
|
|
@@ -36,5 +37,6 @@ contextBridge.exposeInMainWorld('awChrome', {
|
|
|
36
37
|
onStatus: callback => subscribe(CHANNELS.status, callback),
|
|
37
38
|
onTheme: callback => subscribe(CHANNELS.theme, callback),
|
|
38
39
|
onTitle: callback => subscribe(CHANNELS.title, callback),
|
|
40
|
+
onPrefs: callback => subscribe(CHANNELS.prefs, callback),
|
|
39
41
|
onUpdate: callback => subscribe(CHANNELS.updateState, callback),
|
|
40
42
|
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Settings persistence for the desktop shell. Kept Electron-free so the
|
|
2
|
+
// read/normalize/write contract can be tested with plain Node.
|
|
3
|
+
import { mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs'
|
|
4
|
+
import { dirname } from 'node:path'
|
|
5
|
+
import { DEFAULT_SETTINGS, normalizeSettings } from './contract.mjs'
|
|
6
|
+
|
|
7
|
+
export function loadSettings(file) {
|
|
8
|
+
try {
|
|
9
|
+
return normalizeSettings(JSON.parse(readFileSync(file, 'utf8')))
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
// A missing or corrupt settings file must never block startup.
|
|
13
|
+
return { ...DEFAULT_SETTINGS }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function saveSettings(file, settings) {
|
|
18
|
+
const normalized = normalizeSettings(settings)
|
|
19
|
+
mkdirSync(dirname(file), { recursive: true })
|
|
20
|
+
const temporary = `${file}.tmp`
|
|
21
|
+
writeFileSync(temporary, `${JSON.stringify(normalized, null, 2)}\n`, 'utf8')
|
|
22
|
+
renameSync(temporary, file)
|
|
23
|
+
return normalized
|
|
24
|
+
}
|