agentworkshop 0.10.0 → 0.11.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/.AgentWorkShop/prompts/host-tools.json +47 -6
- package/.output/.AgentWorkShop/prompts/host-tools.json +47 -6
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/2v5GdspM2.js +1 -0
- package/.output/public/_nuxt/79qPRzcC2.js +3 -0
- package/.output/public/_nuxt/{DXcrmAEB.js → B1h4ZjKu.js} +6 -6
- package/.output/public/_nuxt/{CtHO6S5H2.js → CMDDJOia2.js} +1 -1
- package/.output/public/_nuxt/{BntjKfNX2.js → CUdJHUOd2.js} +1 -1
- package/.output/public/_nuxt/CjCc77Ql.js +1 -0
- package/.output/public/_nuxt/D2EC-BTb2.js +1 -0
- package/.output/public/_nuxt/D4ZePemJ.js +1 -0
- package/.output/public/_nuxt/{Bn4GxfTn.js → DDVBwkyn.js} +1 -1
- package/.output/public/_nuxt/DkfR8ywD.js +1 -0
- package/.output/public/_nuxt/Dv_vyxzC.js +1 -0
- package/.output/public/_nuxt/LiHaSoeY.js +2 -0
- package/.output/public/_nuxt/PWLUz4KM2.js +1 -0
- package/.output/public/_nuxt/ZMaEnWy-.js +1 -0
- package/.output/public/_nuxt/_id_.CHcnHuNN.css +1 -0
- package/.output/public/_nuxt/{_wsId_.DDEHesFu.css → _wsId_.2GiFh9as.css} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/cf638aaa-655e-454c-9786-ffa73903190a.json +1 -0
- package/.output/public/_nuxt/{default.DfmSp-wb.css → default.CwrtJt16.css} +1 -1
- package/.output/public/_nuxt/{entry.cd1EADeI.css → entry.DttkgxyK.css} +1 -1
- package/.output/public/_nuxt/kHiXWyIi.js +1 -0
- package/.output/public/_nuxt/projects.B0DecJy4.css +1 -0
- package/.output/public/_nuxt/workshop.Csi6_Wwg.css +1 -0
- package/.output/server/chunks/_/{TownView-uicih2T8.mjs → TownView-Cpb_4CFs.mjs} +4 -4
- package/.output/server/chunks/_/TownView-Cpb_4CFs.mjs.map +1 -0
- package/.output/server/chunks/_/{_id_-DMxiYYGr.mjs → _id_-7j1H6aZV.mjs} +8 -8
- package/.output/server/chunks/_/_id_-7j1H6aZV.mjs.map +1 -0
- package/.output/server/chunks/_/{_id_-BX8hihhe.mjs → _id_-Ca3d9Npk.mjs} +13 -13
- package/.output/server/chunks/_/_id_-Ca3d9Npk.mjs.map +1 -0
- package/.output/server/chunks/_/_id_-Dl378h-P.mjs +995 -0
- package/.output/server/chunks/_/_id_-Dl378h-P.mjs.map +1 -0
- package/.output/server/chunks/_/{_wsId_-DzfJ2fFZ.mjs → _wsId_-e7Fm33hR.mjs} +16 -10
- package/.output/server/chunks/_/{_wsId_-DzfJ2fFZ.mjs.map → _wsId_-e7Fm33hR.mjs.map} +1 -1
- package/.output/server/chunks/_/access.mjs +1 -1
- package/.output/server/chunks/_/{analysis-DVLO0bCy.mjs → analysis-DvtU3Ots.mjs} +3 -3
- package/.output/server/chunks/_/analysis-DvtU3Ots.mjs.map +1 -0
- package/.output/server/chunks/_/catalog-view.mjs +1 -1
- package/.output/server/chunks/_/{daq-CWiRcs2W.mjs → daq-WT075QK5.mjs} +8 -8
- package/.output/server/chunks/_/daq-WT075QK5.mjs.map +1 -0
- package/.output/server/chunks/_/data-export.mjs +6 -6
- package/.output/server/chunks/_/data-query.mjs +3 -3
- package/.output/server/chunks/_/{dcw-BrEWEFnj.mjs → dcw-BhY0QjNL.mjs} +8 -8
- package/.output/server/chunks/_/dcw-BhY0QjNL.mjs.map +1 -0
- package/.output/server/chunks/_/{default-CAvZHtuk.mjs → default-C3L2_Bnq.mjs} +18 -8
- package/.output/server/chunks/_/{default-CAvZHtuk.mjs.map → default-C3L2_Bnq.mjs.map} +1 -1
- package/.output/server/chunks/_/eda-run.repo.mjs +2 -2
- package/.output/server/chunks/_/features.mjs +4 -4
- package/.output/server/chunks/_/golden.mjs +2 -2
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/index.mjs +1 -1
- package/.output/server/chunks/_/{logs-Lx7w3LYH.mjs → logs-ClfR5sWn.mjs} +3 -3
- package/.output/server/chunks/_/logs-ClfR5sWn.mjs.map +1 -0
- package/.output/server/chunks/_/mes-console.mjs +1 -1
- package/.output/server/chunks/_/mes-templates.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +4434 -2470
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/{operations--xLPUg-f.mjs → operations-4t5GxQcD.mjs} +3 -3
- package/.output/server/chunks/_/operations-4t5GxQcD.mjs.map +1 -0
- package/.output/server/chunks/_/{pages-CzF3fZqL.mjs → pages-BwA6EqWo.mjs} +4 -4
- package/.output/server/chunks/_/pages-BwA6EqWo.mjs.map +1 -0
- package/.output/server/chunks/_/projects-k6arYbBh.mjs +345 -0
- package/.output/server/chunks/_/projects-k6arYbBh.mjs.map +1 -0
- package/.output/server/chunks/_/promote.mjs +186 -0
- package/.output/server/chunks/_/promote.mjs.map +1 -0
- package/.output/server/chunks/_/rest-auth.mjs +1 -1
- package/.output/server/chunks/_/spc.mjs +1 -1
- package/.output/server/chunks/_/{town-HjaOuPYS.mjs → town-CCkZYizH.mjs} +4 -4
- package/.output/server/chunks/_/town-CCkZYizH.mjs.map +1 -0
- package/.output/server/chunks/_/types-D6J7slEa.mjs +1 -1
- package/.output/server/chunks/_/{useDaqAddNode-CkGitJOy.mjs → useDaqAddNode-qUTVIBD0.mjs} +3 -3
- package/.output/server/chunks/_/useDaqAddNode-qUTVIBD0.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailBinding-BKi46wvJ.mjs → useDaqDetailBinding-D0JkQZhl.mjs} +2 -2
- package/.output/server/chunks/_/useDaqDetailBinding-D0JkQZhl.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailFrames-B6cqF1w1.mjs → useDaqDetailFrames-Du_raRy1.mjs} +2 -2
- package/.output/server/chunks/_/useDaqDetailFrames-Du_raRy1.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailHistory-D0sdKiWx.mjs → useDaqDetailHistory-BQx0cKA6.mjs} +2 -2
- package/.output/server/chunks/_/useDaqDetailHistory-BQx0cKA6.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailNode-DgxYQZBG.mjs → useDaqDetailNode-UCnodI1A.mjs} +4 -4
- package/.output/server/chunks/_/useDaqDetailNode-UCnodI1A.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailParams-D-ZJw2GJ.mjs → useDaqDetailParams-D4ZVxVla.mjs} +3 -3
- package/.output/server/chunks/_/useDaqDetailParams-D4ZVxVla.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqFilters-Bi8Ybyhl.mjs → useDaqFilters-CugTQrIt.mjs} +4 -4
- package/.output/server/chunks/_/useDaqFilters-CugTQrIt.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqOptimizations-XodbRzgb.mjs → useDaqOptimizations-_P1sco7P.mjs} +2 -2
- package/.output/server/chunks/_/useDaqOptimizations-_P1sco7P.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqStream-CGbftQdw.mjs → useDaqStream-BVFNKAP9.mjs} +2 -2
- package/.output/server/chunks/_/useDaqStream-BVFNKAP9.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqTemplates-Bo_sE1xp.mjs → useDaqTemplates-DmcUC_Aw.mjs} +3 -3
- package/.output/server/chunks/_/useDaqTemplates-DmcUC_Aw.mjs.map +1 -0
- package/.output/server/chunks/_/{useDashboardData-BJ30kVLq.mjs → useDashboardData-Dv1SJs3v.mjs} +3 -3
- package/.output/server/chunks/_/useDashboardData-Dv1SJs3v.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwAddNode-BLqwQe59.mjs → useDcwAddNode-CZtXylAe.mjs} +3 -3
- package/.output/server/chunks/_/useDcwAddNode-CZtXylAe.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwCards-CofBoHat.mjs → useDcwCards-CItS2A_F.mjs} +2 -2
- package/.output/server/chunks/_/useDcwCards-CItS2A_F.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwDetailScope-DhkBcKaS.mjs → useDcwDetailScope-Dyu0bYy9.mjs} +3 -3
- package/.output/server/chunks/_/useDcwDetailScope-Dyu0bYy9.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwDetailTemplates-BSmmOkFn.mjs → useDcwDetailTemplates-CwK1rb2i.mjs} +2 -2
- package/.output/server/chunks/_/useDcwDetailTemplates-CwK1rb2i.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwFilter-Bh8dJ1of.mjs → useDcwFilter-CvuCOvU2.mjs} +2 -2
- package/.output/server/chunks/_/useDcwFilter-CvuCOvU2.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwLedger-UEB2x63E.mjs → useDcwLedger-CI-AK4j3.mjs} +2 -2
- package/.output/server/chunks/_/useDcwLedger-CI-AK4j3.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwLineMutations-9PElT2Fz.mjs → useDcwLineMutations-CsS2rDUh.mjs} +2 -2
- package/.output/server/chunks/_/useDcwLineMutations-CsS2rDUh.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwLineRun-BPm0ZPs1.mjs → useDcwLineRun-B1uLN_MJ.mjs} +2 -2
- package/.output/server/chunks/_/useDcwLineRun-B1uLN_MJ.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwParamApprovals-Ctczj8Lm.mjs → useDcwParamApprovals-CVab6q8T.mjs} +2 -2
- package/.output/server/chunks/_/useDcwParamApprovals-CVab6q8T.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwProducts-hgfkZhht.mjs → useDcwProducts-OAvQBk5O.mjs} +2 -2
- package/.output/server/chunks/_/useDcwProducts-OAvQBk5O.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwQuery-Dd411JAJ.mjs → useDcwQuery-dgEkZDAy.mjs} +2 -2
- package/.output/server/chunks/_/useDcwQuery-dgEkZDAy.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwQuickActions-C7cIVK0F.mjs → useDcwQuickActions-C3ItztwI.mjs} +2 -2
- package/.output/server/chunks/_/useDcwQuickActions-C3ItztwI.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwRecipes-DaQAxk7t.mjs → useDcwRecipes-BD4PjvzG.mjs} +2 -2
- package/.output/server/chunks/_/useDcwRecipes-BD4PjvzG.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwStream-2-KfS0lN.mjs → useDcwStream-BTcOZh5H.mjs} +2 -2
- package/.output/server/chunks/_/useDcwStream-BTcOZh5H.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwTemplates-BXtYJspX.mjs → useDcwTemplates-CsR6b3ws.mjs} +2 -2
- package/.output/server/chunks/_/useDcwTemplates-CsR6b3ws.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwWrites-IOVVc-Sz.mjs → useDcwWrites-C55DL7Fe.mjs} +2 -2
- package/.output/server/chunks/_/useDcwWrites-C55DL7Fe.mjs.map +1 -0
- package/.output/server/chunks/_/{useLogsScope-BFU7kLl9.mjs → useLogsScope-CUxlAoQN.mjs} +2 -2
- package/.output/server/chunks/_/useLogsScope-CUxlAoQN.mjs.map +1 -0
- package/.output/server/chunks/_/{workshop-CeaToa_8.mjs → workshop-D2ucb128.mjs} +4 -4
- package/.output/server/chunks/_/workshop-D2ucb128.mjs.map +1 -0
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
- package/.output/server/chunks/routes/api/system/backup/run.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +8 -9
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +15 -5
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +10 -5
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs +62 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-stats.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-stats.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index10.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index10.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +7 -5
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +24 -22
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +9 -13
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +22 -72
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +14 -27
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +72 -7
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs +28 -22
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs +7 -66
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs +20 -38
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.post.mjs +99 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs +34 -4
- package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index8.get.mjs +9 -8
- package/.output/server/chunks/routes/api/workshop/channels/_id/index8.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index9.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index9.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/experience-stats.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/experience-stats.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/tools/reset.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +6 -6
- package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs +9 -7
- package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index2.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/daq/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs +34 -16
- package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/storage/retention.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/storage/rollup.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/storage.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +7 -13
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +14 -8
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +9 -20
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +17 -14
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +15 -12
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +11 -5
- package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs +7 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/mes-artifacts/file.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/mes-hook-test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/mes-test-read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +8 -5
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +8 -6
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs.map +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 +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/eda/vm/predict.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/exp/confirmations/_id/decide.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/exp/index.get.mjs +1 -1
- 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 +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +17 -10
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.put.mjs +16 -11
- package/.output/server/chunks/routes/api/workshop/index.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index12.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index13.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
- 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/mes/bridge.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mes/datasets.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mes/index.put.mjs +7 -8
- package/.output/server/chunks/routes/api/workshop/mes/index.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/autofix.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/compile.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/evidence.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/publish.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval-decision.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/transition.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/subgraph.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/validate.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/export/_ontologyId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/scene.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/traces/_ontologyId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId/compare.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/capabilities.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/index2.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/profiles/_id/publish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/crosscheck.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/dispatch.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/solve.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/process-model/datasets.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/eligibility.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/experiments.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/specs/_id/publish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/train.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/projects/_id/kernel/tick.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/projects/instantiate.post.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/teams/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tools/sync.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/virtual/entry.mjs +50 -46
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +53 -8
- package/README.md +53 -8
- package/app/components/AppSidebar.vue +2 -0
- package/app/components/workshop/CommandPalette.vue +1 -0
- package/app/components/workshop/workbench/WorkbenchHead.vue +35 -7
- package/app/composables/useRouteMeta.ts +1 -0
- package/app/pages/projects/[id].vue +2882 -1603
- package/app/pages/projects/index.vue +982 -176
- package/config.yml +1 -1
- package/docs/cli.en.md +3 -3
- package/docs/cli.md +2 -2
- package/docs/plugins.en.md +1 -1
- package/docs/plugins.md +1 -1
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/i18n/locales/en.ts +2 -0
- package/i18n/locales/zh-CN.ts +2 -0
- package/package.json +2 -2
- package/scripts/_audit/_readme-canvas-shot.mjs +48 -48
- package/scripts/_audit/cal3-staged-live.mjs +3 -0
- package/scripts/_audit/desktop-demo-shot.mjs +31 -31
- package/scripts/_audit/frontend-interaction-demo.mjs +99 -99
- package/scripts/_audit/multi-harness-isolation-live.mjs +132 -132
- package/scripts/_audit/omp-channel-project-session-live.mjs +481 -0
- package/scripts/_audit/omp-project-single-live.mjs +167 -0
- package/scripts/_audit/project-blueprint-live.mjs +63 -42
- package/scripts/_audit/project-landing-live.mjs +659 -0
- package/scripts/acceptance-rsi-evolution.ts +188 -0
- package/scripts/acceptance-rsi-live-e2e.mjs +611 -0
- package/scripts/acceptance-rsi-stage1.ts +208 -0
- package/scripts/check-rsi-redline.mjs +73 -0
- package/scripts/demo/accept-harness-fix.mjs +178 -0
- package/scripts/e2e-final-assertions.mjs +51 -51
- package/scripts/e2e-landing-scenario.mjs +409 -409
- package/scripts/e2e-landing-shot.mjs +24 -24
- package/scripts/e2e-page-shot.mjs +71 -71
- package/scripts/e2e-session-shot.mjs +82 -82
- package/scripts/e2e-ui-capture.mjs +125 -125
- package/scripts/e2e-us7-close.mjs +88 -88
- package/scripts/e2e-us7-final.mjs +132 -132
- package/scripts/e2e-us7-retry.mjs +136 -136
- package/scripts/session-memory-runtime-acceptance.mjs +245 -245
- package/server/api/workshop/agent-tools/invoke.post.ts +15 -7
- package/server/api/workshop/aml/datasets/index.get.ts +20 -4
- package/server/api/workshop/aml/jobs/index.get.ts +15 -4
- package/server/api/workshop/aml/models/[id]/index.get.ts +24 -0
- package/server/api/workshop/aml/training-plans/[id]/index.get.ts +19 -0
- package/server/api/workshop/channels/[id]/harness-profiles/index.get.ts +27 -0
- package/server/api/workshop/channels/[id]/harness-profiles/index.post.ts +46 -0
- package/server/api/workshop/channels/[id]/harness-profiles/promote.post.ts +48 -0
- package/server/api/workshop/channels/[id]/improvement-stats.get.ts +20 -0
- package/server/api/workshop/channels/[id]/memories/[memoryId]/promote.post.ts +33 -0
- package/server/api/workshop/channels/[id]/memories/experience-stats.get.ts +19 -0
- package/server/api/workshop/channels/[id]/verifications/index.get.ts +23 -0
- package/server/api/workshop/daq/[id]/index.get.ts +25 -0
- package/server/api/workshop/daq/query.get.ts +42 -14
- package/server/api/workshop/dcw/[id]/index.get.ts +24 -0
- package/server/api/workshop/dcw/lines/[id]/index.get.ts +27 -0
- package/server/api/workshop/dcw/params/[id]/write.post.ts +12 -3
- package/server/api/workshop/device-twins/[id]/control.post.ts +12 -4
- package/server/api/workshop/hitl/respond.post.ts +19 -21
- package/server/api/workshop/mes/secrets/index.put.ts +11 -6
- package/server/api/workshop/permissions/index.put.ts +20 -9
- package/server/api/workshop/projects/[id]/deliverables/[did]/index.get.ts +19 -0
- package/server/api/workshop/projects/[id]/work-items/[wid]/index.get.ts +20 -0
- package/server/plugins/workshop.ts +3 -0
- package/server/services/workshop/agents/agent-interface.ts +63 -2
- package/server/services/workshop/agents/base-agent.ts +7 -1
- package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +3 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/improvement.ts +33 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/memory.ts +68 -12
- package/server/services/workshop/agents/industrial/analysis-tools.ts +3 -0
- package/server/services/workshop/agents/industrial/line-tools.ts +11 -1
- package/server/services/workshop/agents/industrial/ops-tools.ts +22 -0
- package/server/services/workshop/agents/industrial/recipe-propose-tools.ts +8 -2
- package/server/services/workshop/agents/omp-agent/client.ts +18 -1
- package/server/services/workshop/agents/omp-agent/context-governance.ts +13 -1
- package/server/services/workshop/agents/omp-agent/core.ts +6 -0
- package/server/services/workshop/agents/task-channel-profile.ts +55 -0
- package/server/services/workshop/agents/task-channel.ts +3 -0
- package/server/services/workshop/aml/intervention-ledger.ts +14 -0
- package/server/services/workshop/analysis/analysis.repo.ts +6 -4
- package/server/services/workshop/db/database/index.ts +1 -1
- package/server/services/workshop/db/database/migrations-blind-verification.ts +33 -0
- package/server/services/workshop/db/database/migrations-experience.ts +38 -0
- package/server/services/workshop/db/database/migrations-harness-profile.ts +28 -0
- package/server/services/workshop/db/database/migrations-improvement-actions.ts +30 -0
- package/server/services/workshop/db/database/migrations-improvement.ts +36 -0
- package/server/services/workshop/db/database/migrations-project.ts +179 -179
- package/server/services/workshop/db/database/open.ts +134 -117
- package/server/services/workshop/db/database/rows.ts +22 -2
- package/server/services/workshop/db/database/schema.ts +1675 -1667
- package/server/services/workshop/db/improvement-action.repo.ts +82 -0
- package/server/services/workshop/db/improvement.repo.ts +139 -0
- package/server/services/workshop/db/memory.repo.ts +238 -22
- package/server/services/workshop/dcw/dcw-controller/lines.ts +3 -3
- package/server/services/workshop/dcw/recipe-evidence.ts +181 -0
- package/server/services/workshop/experience/advisory.ts +135 -0
- package/server/services/workshop/experience/gates.ts +150 -0
- package/server/services/workshop/experience/harness-profile.ts +159 -0
- package/server/services/workshop/experience/overlay.ts +55 -0
- package/server/services/workshop/experience/promote.ts +123 -0
- package/server/services/workshop/optimization/python/__pycache__/problems.cpython-312.pyc +0 -0
- package/server/services/workshop/plugins/host/reload-swap.mjs +68 -0
- package/server/services/workshop/plugins/host/reload.mjs +42 -12
- package/server/services/workshop/projects/criteria-metrics.ts +54 -0
- package/server/services/workshop/projects/service.ts +158 -3
- package/server/services/workshop/runtime/manager/a2a.ts +61 -0
- package/server/services/workshop/runtime/manager/admin-agents.ts +68 -2
- package/server/services/workshop/runtime/manager/contracts.ts +23 -0
- package/server/services/workshop/runtime/manager/state.ts +132 -0
- package/server/services/workshop/runtime/manager/types.ts +3 -0
- package/server/services/workshop/runtime/manager/workspace.ts +18 -2
- package/server/services/workshop/runtime/memory/helpers.ts +4 -0
- package/server/services/workshop/runtime/memory/recall.ts +41 -10
- package/server/services/workshop/runtime/memory/reflect-collector.ts +213 -0
- package/server/services/workshop/runtime/memory/reflector.ts +321 -0
- package/server/services/workshop/runtime/memory/state.ts +2 -0
- package/server/services/workshop/runtime/memory/types.ts +16 -0
- package/server/services/workshop/runtime/memory/write.ts +68 -1
- package/server/services/workshop/verify/blind-verifier.ts +291 -0
- package/.output/public/_nuxt/-XI3FWdE2.js +0 -1
- package/.output/public/_nuxt/B2azkP06.js +0 -1
- package/.output/public/_nuxt/B7Xvcvc72.js +0 -1
- package/.output/public/_nuxt/BjERGiA_.js +0 -1
- package/.output/public/_nuxt/BuNUABSV.js +0 -1
- package/.output/public/_nuxt/BxCzghnC.js +0 -1
- package/.output/public/_nuxt/ChaPv2ma2.js +0 -1
- package/.output/public/_nuxt/CtR6fOPv.js +0 -1
- package/.output/public/_nuxt/D3ucelqH.js +0 -1
- package/.output/public/_nuxt/DYj0LL7W2.js +0 -2
- package/.output/public/_nuxt/DxCWsK3w2.js +0 -2
- package/.output/public/_nuxt/_id_.CHfy_h7D.css +0 -1
- package/.output/public/_nuxt/builds/meta/41ef012e-5907-4063-b58c-16c4d02de1b7.json +0 -1
- package/.output/public/_nuxt/projects.BYLuJvrX.css +0 -1
- package/.output/public/_nuxt/workshop.Dr7XdziI.css +0 -1
- package/.output/server/chunks/_/TownView-uicih2T8.mjs.map +0 -1
- package/.output/server/chunks/_/_id_-BX8hihhe.mjs.map +0 -1
- package/.output/server/chunks/_/_id_-CEoXvYq6.mjs +0 -619
- package/.output/server/chunks/_/_id_-CEoXvYq6.mjs.map +0 -1
- package/.output/server/chunks/_/_id_-DMxiYYGr.mjs.map +0 -1
- package/.output/server/chunks/_/analysis-DVLO0bCy.mjs.map +0 -1
- package/.output/server/chunks/_/daq-CWiRcs2W.mjs.map +0 -1
- package/.output/server/chunks/_/dcw-BrEWEFnj.mjs.map +0 -1
- package/.output/server/chunks/_/logs-Lx7w3LYH.mjs.map +0 -1
- package/.output/server/chunks/_/operations--xLPUg-f.mjs.map +0 -1
- package/.output/server/chunks/_/pages-CzF3fZqL.mjs.map +0 -1
- package/.output/server/chunks/_/projects-BYn-GiAJ.mjs +0 -85
- package/.output/server/chunks/_/projects-BYn-GiAJ.mjs.map +0 -1
- package/.output/server/chunks/_/town-HjaOuPYS.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqAddNode-CkGitJOy.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailBinding-BKi46wvJ.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailFrames-B6cqF1w1.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailHistory-D0sdKiWx.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailNode-DgxYQZBG.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailParams-D-ZJw2GJ.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqFilters-Bi8Ybyhl.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqOptimizations-XodbRzgb.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqStream-CGbftQdw.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqTemplates-Bo_sE1xp.mjs.map +0 -1
- package/.output/server/chunks/_/useDashboardData-BJ30kVLq.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwAddNode-BLqwQe59.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwCards-CofBoHat.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwDetailScope-DhkBcKaS.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwDetailTemplates-BSmmOkFn.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwFilter-Bh8dJ1of.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwLedger-UEB2x63E.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwLineMutations-9PElT2Fz.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwLineRun-BPm0ZPs1.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwParamApprovals-Ctczj8Lm.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwProducts-hgfkZhht.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwQuery-Dd411JAJ.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwQuickActions-C7cIVK0F.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwRecipes-DaQAxk7t.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwStream-2-KfS0lN.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwTemplates-BXtYJspX.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwWrites-IOVVc-Sz.mjs.map +0 -1
- package/.output/server/chunks/_/useLogsScope-BFU7kLl9.mjs.map +0 -1
- package/.output/server/chunks/_/workshop-CeaToa_8.mjs.map +0 -1
- package/scripts/_audit/_fix-report.mjs +0 -32
- /package/.output/public/_nuxt/{B5D1k6CB2.js → B5D1k6CB.js} +0 -0
- /package/.output/public/_nuxt/{B6Olw0Op2.js → B6Olw0Op.js} +0 -0
- /package/.output/public/_nuxt/{BclHgAY6.js → BclHgAY62.js} +0 -0
- /package/.output/public/_nuxt/{D9saExk9.js → D9saExk92.js} +0 -0
- /package/.output/public/_nuxt/{DFI6asjj.js → DFI6asjj2.js} +0 -0
- /package/.output/public/_nuxt/{DkJVtqfc.js → DkJVtqfc2.js} +0 -0
- /package/.output/public/_nuxt/{OVP8I5uy2.js → OVP8I5uy.js} +0 -0
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
{
|
|
418
418
|
"name": "search_memory",
|
|
419
419
|
"label": "Search Memory",
|
|
420
|
-
"description": "Search your persistent memory (hybrid keyword+semantic retrieval over your private memories and the channel's shared team memories). Results may include: your task history, the TEAM CHRONICLE (团队编年史 = rolling log of everything the team finished), past SESSION COMPACTION SUMMARIES (会话压缩摘要 = conclusions from earlier context windows), monthly reflections (作业反思), and shared conventions. Use this ANY TIME you need prior context: before starting a task, when you suspect relevant past work exists, or when the injected memory hints/brief mention something you need details on. Pass a focused query describing what you want to remember. scope=\"session\" restricts results to memories scoped to the CURRENT session (rows recorded while working inside this session); the platform injects the session id at runtime.",
|
|
420
|
+
"description": "Search your persistent memory (hybrid keyword+semantic retrieval over your private memories and the channel's shared team memories). Results may include: your task history, the TEAM CHRONICLE (团队编年史 = rolling log of everything the team finished), past SESSION COMPACTION SUMMARIES (会话压缩摘要 = conclusions from earlier context windows), monthly reflections (作业反思), and shared conventions. Use this ANY TIME you need prior context: before starting a task, when you suspect relevant past work exists, or when the injected memory hints/brief mention something you need details on. Pass a focused query describing what you want to remember. scope=\"session\" restricts results to memories scoped to the CURRENT session (rows recorded while working inside this session); the platform injects the session id at runtime. Scope extensions (RSI experience layer): scope=\"line\" searches VERIFIED cross-channel experience anchored to the line this channel is bound to; scope=\"product\" searches by product id (pass scope_key); scope=\"global\" searches global experience. Cross-channel results only include same-owner channels and rows with status active/validated.",
|
|
421
421
|
"parameters": {
|
|
422
422
|
"type": "object",
|
|
423
423
|
"properties": {
|
|
@@ -431,13 +431,20 @@
|
|
|
431
431
|
"auto",
|
|
432
432
|
"private",
|
|
433
433
|
"shared",
|
|
434
|
-
"session"
|
|
434
|
+
"session",
|
|
435
|
+
"line",
|
|
436
|
+
"product",
|
|
437
|
+
"global"
|
|
435
438
|
],
|
|
436
|
-
"description": "检索域: auto=私有+公共(
|
|
439
|
+
"description": "检索域: auto=私有+公共(默认) / private=仅本人私有 / shared=仅频道公共 / session=仅当前会话 / line=跨频道同产线经验 / product=跨频道同产品经验(需 scope_key) / global=跨频道全局经验"
|
|
437
440
|
},
|
|
438
441
|
"limit": {
|
|
439
442
|
"type": "number",
|
|
440
443
|
"description": "Max results (default 5, max 20)"
|
|
444
|
+
},
|
|
445
|
+
"scope_key": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"description": "scope=product 时的产品 id(其余档忽略)"
|
|
441
448
|
}
|
|
442
449
|
},
|
|
443
450
|
"required": [
|
|
@@ -451,7 +458,7 @@
|
|
|
451
458
|
{
|
|
452
459
|
"name": "save_memory",
|
|
453
460
|
"label": "Save Memory",
|
|
454
|
-
"description": "Persist a distilled, reusable insight into memory for future tasks. scope=\"private\" saves to YOUR personal memory (only you recall it); scope=\"shared\" saves to the CHANNEL shared memory visible to ALL teammates (use for conclusions, conventions, or knowledge the whole team benefits from — not task-specific minutiae). Distill before saving: title = short topic, content = the reusable conclusion. Use a stable dedup_key to update an existing memory instead of duplicating. NOTE: the platform already auto-archives task outcomes, team results, the team chronicle, and session compaction summaries — never save whole task logs or raw session transcripts. By default the memory is scoped to the CURRENT session (platform injects the id at runtime); pass session_scope=false for channel-level memories visible across sessions.",
|
|
461
|
+
"description": "Persist a distilled, reusable insight into memory for future tasks. scope=\"private\" saves to YOUR personal memory (only you recall it); scope=\"shared\" saves to the CHANNEL shared memory visible to ALL teammates (use for conclusions, conventions, or knowledge the whole team benefits from — not task-specific minutiae). Distill before saving: title = short topic, content = the reusable conclusion. Use a stable dedup_key to update an existing memory instead of duplicating. NOTE: the platform already auto-archives task outcomes, team results, the team chronicle, and session compaction summaries — never save whole task logs or raw session transcripts. By default the memory is scoped to the CURRENT session (platform injects the id at runtime); pass session_scope=false for channel-level memories visible across sessions. RSI extension: scope=\"line\" writes a LINE-scoped experience (visible to other same-owner channels bound to the same line), scope=\"global\" writes a GLOBAL experience. These require a session memoryPolicy=\"shared\" and a task_id evidence anchor, and are stored as status=candidate until validated.",
|
|
455
462
|
"parameters": {
|
|
456
463
|
"type": "object",
|
|
457
464
|
"properties": {
|
|
@@ -471,9 +478,11 @@
|
|
|
471
478
|
"type": "string",
|
|
472
479
|
"enum": [
|
|
473
480
|
"private",
|
|
474
|
-
"shared"
|
|
481
|
+
"shared",
|
|
482
|
+
"line",
|
|
483
|
+
"global"
|
|
475
484
|
],
|
|
476
|
-
"description": "
|
|
485
|
+
"description": "写入域: private=本人私有 / shared=频道公共 / line=同产线共享经验(需 task_id 且会话策略 shared) / global=全局共享经验(需 task_id 且会话策略 shared)"
|
|
477
486
|
},
|
|
478
487
|
"dedup_key": {
|
|
479
488
|
"type": "string",
|
|
@@ -482,6 +491,10 @@
|
|
|
482
491
|
"session_scope": {
|
|
483
492
|
"type": "boolean",
|
|
484
493
|
"description": "默认 true:自动标注当前会话作用域(session 档检索可命中);false 表示频道级记忆(跨会话可见)"
|
|
494
|
+
},
|
|
495
|
+
"task_id": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"description": "证据锚点任务 id(scope=line/global 必填;其余档忽略)"
|
|
485
498
|
}
|
|
486
499
|
},
|
|
487
500
|
"required": [
|
|
@@ -494,6 +507,34 @@
|
|
|
494
507
|
"noRefs": true,
|
|
495
508
|
"riskClass": "read"
|
|
496
509
|
},
|
|
510
|
+
{
|
|
511
|
+
"name": "improvement_list",
|
|
512
|
+
"label": "Improvement Proposals",
|
|
513
|
+
"description": "List evidence-backed improvement proposals produced by the RSI reflector for this channel (recipe updates to solidify, knowledge-base ingests, runbook additions). READ-ONLY: proposals are only candidates with evidence; executing them always requires the corresponding HITL tool (e.g. recipe_update) and human approval. Use this before planning a recipe change to see whether a verified candidate already exists.",
|
|
514
|
+
"parameters": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"status": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"enum": [
|
|
520
|
+
"pending",
|
|
521
|
+
"accepted",
|
|
522
|
+
"rejected",
|
|
523
|
+
"expired"
|
|
524
|
+
],
|
|
525
|
+
"description": "按处理状态过滤(缺省全部)"
|
|
526
|
+
},
|
|
527
|
+
"limit": {
|
|
528
|
+
"type": "number",
|
|
529
|
+
"description": "最多返回条数(默认 20,上限 100)"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"required": [],
|
|
533
|
+
"additionalProperties": false
|
|
534
|
+
},
|
|
535
|
+
"noRefs": true,
|
|
536
|
+
"riskClass": "read"
|
|
537
|
+
},
|
|
497
538
|
{
|
|
498
539
|
"name": "create_team_agent",
|
|
499
540
|
"label": "Create Team Agent",
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
{
|
|
418
418
|
"name": "search_memory",
|
|
419
419
|
"label": "Search Memory",
|
|
420
|
-
"description": "Search your persistent memory (hybrid keyword+semantic retrieval over your private memories and the channel's shared team memories). Results may include: your task history, the TEAM CHRONICLE (团队编年史 = rolling log of everything the team finished), past SESSION COMPACTION SUMMARIES (会话压缩摘要 = conclusions from earlier context windows), monthly reflections (作业反思), and shared conventions. Use this ANY TIME you need prior context: before starting a task, when you suspect relevant past work exists, or when the injected memory hints/brief mention something you need details on. Pass a focused query describing what you want to remember. scope=\"session\" restricts results to memories scoped to the CURRENT session (rows recorded while working inside this session); the platform injects the session id at runtime.",
|
|
420
|
+
"description": "Search your persistent memory (hybrid keyword+semantic retrieval over your private memories and the channel's shared team memories). Results may include: your task history, the TEAM CHRONICLE (团队编年史 = rolling log of everything the team finished), past SESSION COMPACTION SUMMARIES (会话压缩摘要 = conclusions from earlier context windows), monthly reflections (作业反思), and shared conventions. Use this ANY TIME you need prior context: before starting a task, when you suspect relevant past work exists, or when the injected memory hints/brief mention something you need details on. Pass a focused query describing what you want to remember. scope=\"session\" restricts results to memories scoped to the CURRENT session (rows recorded while working inside this session); the platform injects the session id at runtime. Scope extensions (RSI experience layer): scope=\"line\" searches VERIFIED cross-channel experience anchored to the line this channel is bound to; scope=\"product\" searches by product id (pass scope_key); scope=\"global\" searches global experience. Cross-channel results only include same-owner channels and rows with status active/validated.",
|
|
421
421
|
"parameters": {
|
|
422
422
|
"type": "object",
|
|
423
423
|
"properties": {
|
|
@@ -431,13 +431,20 @@
|
|
|
431
431
|
"auto",
|
|
432
432
|
"private",
|
|
433
433
|
"shared",
|
|
434
|
-
"session"
|
|
434
|
+
"session",
|
|
435
|
+
"line",
|
|
436
|
+
"product",
|
|
437
|
+
"global"
|
|
435
438
|
],
|
|
436
|
-
"description": "检索域: auto=私有+公共(
|
|
439
|
+
"description": "检索域: auto=私有+公共(默认) / private=仅本人私有 / shared=仅频道公共 / session=仅当前会话 / line=跨频道同产线经验 / product=跨频道同产品经验(需 scope_key) / global=跨频道全局经验"
|
|
437
440
|
},
|
|
438
441
|
"limit": {
|
|
439
442
|
"type": "number",
|
|
440
443
|
"description": "Max results (default 5, max 20)"
|
|
444
|
+
},
|
|
445
|
+
"scope_key": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"description": "scope=product 时的产品 id(其余档忽略)"
|
|
441
448
|
}
|
|
442
449
|
},
|
|
443
450
|
"required": [
|
|
@@ -451,7 +458,7 @@
|
|
|
451
458
|
{
|
|
452
459
|
"name": "save_memory",
|
|
453
460
|
"label": "Save Memory",
|
|
454
|
-
"description": "Persist a distilled, reusable insight into memory for future tasks. scope=\"private\" saves to YOUR personal memory (only you recall it); scope=\"shared\" saves to the CHANNEL shared memory visible to ALL teammates (use for conclusions, conventions, or knowledge the whole team benefits from — not task-specific minutiae). Distill before saving: title = short topic, content = the reusable conclusion. Use a stable dedup_key to update an existing memory instead of duplicating. NOTE: the platform already auto-archives task outcomes, team results, the team chronicle, and session compaction summaries — never save whole task logs or raw session transcripts. By default the memory is scoped to the CURRENT session (platform injects the id at runtime); pass session_scope=false for channel-level memories visible across sessions.",
|
|
461
|
+
"description": "Persist a distilled, reusable insight into memory for future tasks. scope=\"private\" saves to YOUR personal memory (only you recall it); scope=\"shared\" saves to the CHANNEL shared memory visible to ALL teammates (use for conclusions, conventions, or knowledge the whole team benefits from — not task-specific minutiae). Distill before saving: title = short topic, content = the reusable conclusion. Use a stable dedup_key to update an existing memory instead of duplicating. NOTE: the platform already auto-archives task outcomes, team results, the team chronicle, and session compaction summaries — never save whole task logs or raw session transcripts. By default the memory is scoped to the CURRENT session (platform injects the id at runtime); pass session_scope=false for channel-level memories visible across sessions. RSI extension: scope=\"line\" writes a LINE-scoped experience (visible to other same-owner channels bound to the same line), scope=\"global\" writes a GLOBAL experience. These require a session memoryPolicy=\"shared\" and a task_id evidence anchor, and are stored as status=candidate until validated.",
|
|
455
462
|
"parameters": {
|
|
456
463
|
"type": "object",
|
|
457
464
|
"properties": {
|
|
@@ -471,9 +478,11 @@
|
|
|
471
478
|
"type": "string",
|
|
472
479
|
"enum": [
|
|
473
480
|
"private",
|
|
474
|
-
"shared"
|
|
481
|
+
"shared",
|
|
482
|
+
"line",
|
|
483
|
+
"global"
|
|
475
484
|
],
|
|
476
|
-
"description": "
|
|
485
|
+
"description": "写入域: private=本人私有 / shared=频道公共 / line=同产线共享经验(需 task_id 且会话策略 shared) / global=全局共享经验(需 task_id 且会话策略 shared)"
|
|
477
486
|
},
|
|
478
487
|
"dedup_key": {
|
|
479
488
|
"type": "string",
|
|
@@ -482,6 +491,10 @@
|
|
|
482
491
|
"session_scope": {
|
|
483
492
|
"type": "boolean",
|
|
484
493
|
"description": "默认 true:自动标注当前会话作用域(session 档检索可命中);false 表示频道级记忆(跨会话可见)"
|
|
494
|
+
},
|
|
495
|
+
"task_id": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"description": "证据锚点任务 id(scope=line/global 必填;其余档忽略)"
|
|
485
498
|
}
|
|
486
499
|
},
|
|
487
500
|
"required": [
|
|
@@ -494,6 +507,34 @@
|
|
|
494
507
|
"noRefs": true,
|
|
495
508
|
"riskClass": "read"
|
|
496
509
|
},
|
|
510
|
+
{
|
|
511
|
+
"name": "improvement_list",
|
|
512
|
+
"label": "Improvement Proposals",
|
|
513
|
+
"description": "List evidence-backed improvement proposals produced by the RSI reflector for this channel (recipe updates to solidify, knowledge-base ingests, runbook additions). READ-ONLY: proposals are only candidates with evidence; executing them always requires the corresponding HITL tool (e.g. recipe_update) and human approval. Use this before planning a recipe change to see whether a verified candidate already exists.",
|
|
514
|
+
"parameters": {
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"status": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"enum": [
|
|
520
|
+
"pending",
|
|
521
|
+
"accepted",
|
|
522
|
+
"rejected",
|
|
523
|
+
"expired"
|
|
524
|
+
],
|
|
525
|
+
"description": "按处理状态过滤(缺省全部)"
|
|
526
|
+
},
|
|
527
|
+
"limit": {
|
|
528
|
+
"type": "number",
|
|
529
|
+
"description": "最多返回条数(默认 20,上限 100)"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"required": [],
|
|
533
|
+
"additionalProperties": false
|
|
534
|
+
},
|
|
535
|
+
"noRefs": true,
|
|
536
|
+
"riskClass": "read"
|
|
537
|
+
},
|
|
497
538
|
{
|
|
498
539
|
"name": "create_team_agent",
|
|
499
540
|
"label": "Create Team Agent",
|
package/.output/nitro.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./DK3Fl9T5.js";import{n as t}from"./D1MkndMZ.js";import{c as n,l as r,n as i,o as a,r as o}from"./B6Olw0Op.js";var s=e({useAmlFormat:()=>c});function c(){let{t:e}=t();function s(e){if(!e)return`--`;let t=new Date(e);return Number.isFinite(t.getTime())?`${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)} ${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}`:`--`}function c(e,t=4){return e==null||!Number.isFinite(e)?`--`:String(Number(e.toFixed(t)))}function l(e,t=1){return e==null||!Number.isFinite(e)?`--`:`${(e*100).toFixed(t)}%`}function u(e){return e.length>12?`${e.slice(0,10)}…`:e}function d(t){return o[t]?e(o[t]):t}function f(t){return i[t]?e(i[t]):t}return{fmtTime:s,fmtNum:c,fmtPct:l,shortId:u,statusLabel:d,expStatusLabel:f,isActiveStatus:n,isTerminalStatus:r,canRetry:a}}export{s as n,c as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{N as e,dt as t,ft as n,g as r,mt as i,v as a}from"./CavpkQb0.js";import{R as o,S as ee,V as s,W as c,b as te,d as l,f as u,h as d,i as f,it as p,j as ne,m,p as re,rt as ie,tt as ae,y as h,z as oe}from"./C6lssmvl.js";import{c as se,d as ce,f as g,l as _,o as le,u as v}from"./ri9UF8rk.js";import{d as y,p as ue}from"./CDYLasP8.js";import{t as de}from"./CElzwyXQ.js";import{t as fe}from"./3stpx5v5.js";import{t as pe}from"./C-f6cf5p.js";import{t as me}from"./Zkbt8Uk5.js";import{t as he}from"./BDNMzG2s.js";import{n as ge}from"./pL0Ovxcd.js";import{t as _e}from"./CNs_Ozdc2.js";var ve={class:`page`},ye={class:`side`},be={class:`side-head`},xe={class:`proj-id`},Se=[`title`],Ce={class:`proj-tags`},we={key:1,class:`badge gray`},Te={key:2,class:`badge mono`},Ee={key:0,class:`proj-obj`},De={class:`side-nav`,"data-testid":`project-tabs`},Oe=[`data-testid`,`onClick`],ke={class:`side-item-label`},Ae={class:`side-life`},je={class:`life-grid`},Me=[`disabled`],Ne=[`disabled`],Pe=[`disabled`],Fe=[`disabled`],Ie=[`disabled`],Le=[`disabled`],Re={class:`side-foot`},ze={class:`side-meta mono`},Be={class:`side-meta`},Ve={class:`main-col`},He={class:`top`},Ue={class:`crumb`},We={class:`top-actions`},Ge=[`disabled`],Ke={key:0,class:`error`,role:`alert`},qe={key:1,class:`skeleton-wrap`,"aria-busy":`true`},Je={class:`hero`},Ye={class:`hero-ring`},Xe={viewBox:`0 0 44 44`,"aria-hidden":`true`},Ze={class:`ring-label`},Qe={class:`hero-stats`},$e={class:`hero-stat`},et={class:`hero-stat`},tt={class:`hero-stat`},nt={class:`hero-stat`},rt={key:0,class:`hero-criteria`},it={class:`card chat-card`,"data-testid":`project-leader-chat`},at={class:`chat-head`},ot={class:`leader-id`},st={class:`leader-copy`},ct={class:`chat-head-actions`},lt={class:`muted`},ut=[`disabled`],dt={key:0,class:`chat-hint`},ft={key:1,class:`chat-hint`},pt={key:2,class:`chat-hint`},mt={key:0,class:`chat-empty`},ht={key:1,class:`chat-empty`},gt=[`data-testid`],_t={key:0,class:`chat-avatar`,"aria-hidden":`true`},vt={class:`chat-bubble-wrap`},yt={class:`chat-meta`},bt=[`innerHTML`],xt={key:3,class:`error inline`},St={key:4,class:`muted`},Ct={class:`chat-compose`},wt=[`disabled`,`placeholder`,`onKeydown`],Tt={class:`chat-compose-actions`},Et={class:`composer-hint`},Dt={class:`composer-right`},Ot={class:`muted mono`},kt=[`disabled`],At={class:`card`},jt={class:`card-head`},Mt={class:`muted`},Nt={key:0,class:`muted`},Pt={class:`chan-list`},Ft={class:`chan-main`},It={class:`chan-meta mono`},Lt={class:`chan-charter`},Rt=[`onClick`],zt={class:`form-grid bind-grid`},Bt={class:`span2`},Vt={value:``},Ht=[`value`],Ut={class:`span2`},Wt={class:`check-row`},Gt={class:`span2 form-actions`},Kt=[`disabled`],qt={class:`two-col`},Jt={class:`card`,"data-testid":`project-sessions`},Yt={class:`card-head`},Xt={class:`muted`},Zt=[`disabled`],Qt={key:0,class:`muted`},$t={key:1,class:`session-list`},en={class:`badge blue`},tn={class:`session-main`},nn={class:`muted`},rn={class:`card`},an={class:`card-head`},on={class:`muted`},sn={key:0,class:`muted`},cn={key:1,class:`report-grid`},ln={class:`report-stat`},un={class:`report-stat`},dn={class:`report-stat`},fn={class:`report-stat`},pn={key:2,class:`muted report-line`},mn={class:`row actions`},hn=[`disabled`],gn=[`disabled`],_n={class:`card exec-workbench`,"data-testid":`exec-workbench`},vn={class:`card-head`},yn={class:`muted`},bn={key:0,class:`muted inline-check`},xn=[`checked`],Sn={key:1,class:`badge mono`},Cn={key:2,class:`badge`},wn={key:0,class:`stat-strip`,"data-testid":`exec-summary`},Tn={class:`stat`},En={class:`stat`},Dn={class:`stat`},On={class:`stat`},kn={class:`stat`},An={class:`stat`},jn={class:`board-col-head`},Mn={class:`board-col-label`},Nn={class:`board-col-count`},Pn={key:0,class:`board-empty`},Fn=[`data-testid`,`onClick`,`onKeydown`],In={class:`wc-top`},Ln={class:`wc-meta`},Rn={class:`wc-chan`},zn={class:`wc-deliv`},Bn={class:`wc-foot`},Vn={class:`mono`},Hn={key:0,class:`muted`},Un={key:1,class:`badge red`},Wn={key:0,class:`wc-wait`},Gn={key:1,class:`wc-wait`},Kn={key:2,class:`task-session-row`},qn=[`data-testid`],Jn={class:`muted mono`},Yn=[`disabled`,`onClick`],Xn=[`disabled`,`onClick`],Zn=[`disabled`,`onClick`],Qn={key:2,class:`muted`},$n={key:3,class:`route-strip`,"data-testid":`route-strip`},er={class:`card`},tr={class:`card-head`},nr={class:`muted`},rr={class:`table`},ir=[`onClick`],ar={key:0,class:`muted`},or={class:`mono`},sr={class:`col-actions`},cr=[`disabled`,`onClick`],lr=[`disabled`,`onClick`],ur=[`disabled`,`onClick`],dr={key:0},fr={class:`form-grid work-grid`},pr=[`value`],mr=[`value`],hr={class:`form-actions`},gr=[`disabled`],_r={class:`card`,"data-testid":`route-log`},vr={class:`grid2`},yr={key:0,class:`muted`},br={class:`timeline`},xr={class:`timeline-main`},Sr={class:`mono`},Cr={class:`timeline-at`},wr={key:0,class:`muted`},Tr={class:`timeline`},Er={class:`timeline-main`},Dr={class:`badge`},Or={class:`mono`},kr={class:`timeline-at`},Ar={key:0,class:`waiting-box`},jr={class:`list`},Mr={class:`badge amber`},Nr={class:`muted`},Pr={class:`card`},Fr={class:`card-head`},Ir={class:`plan-details`,open:``},Lr={class:`plan-json`},Rr={class:`list`},zr={class:`badge`},Br={class:`muted`},Vr={key:0,class:`muted`},Hr={class:`card`},Ur={class:`card-head`},Wr={class:`muted`},Gr={key:0,class:`muted`},Kr={class:`deliv-grid`},qr={class:`deliv-head`},Jr={class:`deliv-title`},Yr={class:`mono`},Xr={key:0,class:`badge amber`},Zr={class:`gates`},Qr={key:0,class:`i-tabler-check`,"aria-hidden":`true`},$r={key:0,class:`i-tabler-check`,"aria-hidden":`true`},ei={key:0,class:`i-tabler-check`,"aria-hidden":`true`},ti={key:0,class:`criteria`},ni={class:`deliv-foot`},ri={class:`muted`},ii=[`disabled`,`onClick`],ai={class:`form-grid deliv-grid-form`},oi=[`value`],si={class:`span2`},ci={class:`span2 form-actions`},li=[`disabled`],ui={class:`card`},di={class:`card-head`},fi={class:`muted`},pi={key:0,class:`muted`},mi={key:0,class:`group-head`},hi=[`disabled`,`onClick`],gi={class:`result-head`},_i=[`data-state`],vi={class:`muted mono`},yi={class:`summary`},bi={class:`evidence`},xi={class:`row actions`},Si=[`disabled`,`onClick`],Ci=[`disabled`,`onClick`],wi=[`disabled`,`onClick`],Ti=[`disabled`,`onClick`],Ei={class:`card`},Di={class:`card-head`},Oi={class:`muted`},ki={key:0,class:`muted`},Ai={class:`approval-grid`},ji={class:`approval-head`},Mi={class:`badge amber`},Ni={class:`mono muted`},Pi={key:0,class:`muted expiry`},Fi={key:0,class:`approval-payload`},Ii={class:`row actions`},Li=[`disabled`,`onClick`],Ri=[`disabled`,`onClick`],zi={class:`card`},Bi={class:`card-head`},Vi={class:`muted`},Hi={key:0,class:`muted`},Ui={class:`list`},Wi={class:`badge gray`},Gi={class:`mono muted`},Ki={key:0,class:`muted ellipsis ap-payload`},qi={class:`muted ap-time`},Ji={class:`card`},Yi={class:`card-head`},Xi={class:`muted`},Zi=[`disabled`],Qi={key:0,class:`muted`},$i={class:`timeline activity`},ea={class:`timeline-main`},ta={class:`timeline-line`},na={class:`badge gray mono`},ra={key:0,class:`badge`},ia=[`disabled`,`onClick`],aa={class:`timeline-at`},oa={class:`timeline-sub`},sa={key:0,class:`mono`},ca={key:1,class:`mono`},la={key:2,class:`muted`},ua={key:3,class:`mono faint`},da={key:0,class:`payload`},fa={class:`row actions`},pa=[`disabled`],ma={key:1,class:`muted`},ha={class:`drawer`,"data-testid":`exec-drawer`},ga={class:`drawer-head`},_a={class:`muted mono`},va={key:0,class:`muted`},ya={class:`row`},ba={class:`muted`},xa={class:`muted mono`},Sa={key:0,class:`muted`},Ca={key:1,class:`muted`},wa={key:2,class:`drawer-brief`},Ta={key:3,class:`muted`},Ea=[`data-testid`],Da={class:`row`},Oa={class:`badge`},ka={key:0,class:`badge red`},Aa={class:`muted`},ja={class:`muted`},Ma={key:0,class:`artifact-list`},Na={class:`muted`},Pa={key:1,class:`muted`},Fa={key:1,class:`workers`},Ia={class:`muted`},La={class:`badge`},Ra={class:`muted`},za={key:4,class:`muted`},Ba=[`data-testid`],Va={class:`row`},Ha={key:0,class:`badge red`},Ua={key:1,class:`muted`},Wa={class:`summary`},Ga={class:`muted`},Ka={key:0,class:`muted`},qa={class:`list`},Ja={class:`muted`},Ya={key:0,class:`ctx`},Xa={class:`ctx-card`},Za={class:`ctx-head`},Qa={class:`badge mono`},$a={class:`ctx-stats`},eo={class:`ctx-stat`},to={class:`ctx-stat`},no={class:`ctx-stat`},ro={class:`ctx-stat`},io={class:`ctx-progress`},ao={class:`ctx-progress-row`},oo={class:`ctx-bar`},so={class:`ctx-progress-row`},co={class:`ctx-bar`},lo={class:`ctx-foot`},uo={class:`ctx-head`},fo={class:`ctx-lane-name`},po={class:`ctx-meta`},mo={class:`ctx-items`},ho=[`onClick`,`onKeydown`],go={class:`ctx-item-name`},_o={key:0,class:`ctx-empty`},vo={class:`ctx-card`},yo={class:`ctx-head`},bo={class:`badge gray`},xo={class:`member-row`},So={class:`member-main`},Co={class:`mono`},wo={class:`member-avatar gray`},To={class:`member-main`},Eo={class:`mono`},Do={key:0,class:`ctx-empty`},Oo={class:`ctx-card`},ko={class:`health-name`},Ao={class:`health-status mono`},jo={key:0,class:`ctx-empty`},Mo={key:1,class:`ctx-effects`},b=he(ee({__name:`[id]`,setup(ee){_e({layout:`console`});let he=pe();o(()=>{he.isLoggedIn||y(`/workshop`)});let b=ue(),x=String(b.params.id),S=me(),C=a(!1),No=a(!0),w=a(``),T=a(null),E=a([]),D=a([]),O=a([]),k=a([]),Po=a([]),Fo=a([]),Io=a([]),Lo=a([]),Ro=a([]),A=r({channelId:``,charter:``,manual:``}),zo=a(!1),j=r({name:``,ownerChannelId:``,acceptance:``}),M=r({deliverableId:``,channelId:``,title:``,brief:``,execBudgetMinutes:60}),Bo=l(()=>Po.value.filter(e=>e.status===`pending`)),Vo=l(()=>k.value),Ho=l(()=>E.value.filter(e=>e.bindingType===`task_instance`).length),N=e=>e?.response?.data?.message??(e instanceof Error?e.message:`操作失败`);async function P(e){C.value=!0,w.value=``;try{return await e()}catch(e){w.value=N(e);return}finally{C.value=!1}}async function F(){await P(async()=>{let[e,t,n,r,i,a,o,ee]=await Promise.all([S.get(`/workshop/projects/${x}`),S.get(`/workshop/projects/${x}/channels`),S.get(`/workshop/projects/${x}/deliverables`),S.get(`/workshop/projects/${x}/work-items`),S.get(`/workshop/projects/${x}/results`),S.get(`/workshop/projects/${x}/approvals`),S.get(`/workshop/projects/${x}/decisions`),S.get(`/workshop/projects/${x}/events`)]);T.value=e.data,E.value=t.data??[],D.value=n.data??[],O.value=r.data??[],k.value=i.data??[],Po.value=a.data??[],Fo.value=o.data??[],Io.value=ee.data??[],!M.deliverableId&&D.value[0]&&(M.deliverableId=D.value[0].id),!M.channelId&&E.value[0]&&(M.channelId=E.value[0].channelId),!j.ownerChannelId&&E.value[0]&&(j.ownerChannelId=E.value[0].channelId)})}async function Uo(){try{let e=await S.get(`/workshop/channels`);Ro.value=e.data??[]}catch{Ro.value=[]}}async function Wo(){try{let e=await S.get(`/workshop/projects/${x}/members`);Lo.value=e.data??[]}catch{Lo.value=[]}}async function I(e){e===`archive`&&!window.confirm(`归档后项目只读,确定归档?`)||await P(async()=>{e===`reconcile`?await S.post(`/workshop/projects/${x}/reconcile`,{}):await S.post(`/workshop/projects/${x}/${e}`,{}),await Promise.all([F(),Q(),$(!0)])})}async function Go(){window.confirm(`完成项目会走完成门(必选交付物必须签核)。确定继续?`)&&await P(async()=>{await S.post(`/workshop/projects/${x}/complete`,{}),await Promise.all([F(),Q(),$(!0)])})}async function Ko(){let e=(A.channelId||A.manual).trim();e&&await P(async()=>{await S.post(`/workshop/projects/${x}/channels`,{channelId:e,charter:A.charter.trim()}),A.channelId=``,A.manual=``,A.charter=``,await Promise.all([F(),Q(),Uo(),$(!0)])})}async function qo(){j.name.trim()&&await P(async()=>{await S.post(`/workshop/projects/${x}/deliverables`,{name:j.name.trim(),ownerChannelId:j.ownerChannelId||void 0,acceptanceCriteria:j.acceptance?j.acceptance.split(`
|
|
2
|
+
`).filter(Boolean):[]}),j.name=``,j.acceptance=``,await Promise.all([F(),Q(),$(!0)])})}async function Jo(){!M.title.trim()||!M.deliverableId||!M.channelId||await P(async()=>{await S.post(`/workshop/projects/${x}/work-items`,{deliverableId:M.deliverableId,channelId:M.channelId,title:M.title.trim(),brief:M.brief.trim(),execBudgetMinutes:Number(M.execBudgetMinutes)||60,dedupeKey:`ui:${M.title.trim()}`}),M.title=``,M.brief=``,await Promise.all([F(),Q(),$(!0)])})}async function Yo(e){await P(async()=>{await S.post(`/workshop/projects/${x}/work-items/${e}/dispatch`,{}),await Promise.all([F(),Q(),$(!0)])})}async function Xo(e){e&&await P(async()=>{let t=(await S.get(`/workshop/workspaces`)).data??[],n=t.find(t=>t.channelIds.includes(e));if(!n&&t.length>0){let r=t[0];n=r,await S.post(`/workshop/workspaces/${r.id}/channels/${e}`,{})}if(!n){w.value=`还没有 Workspace,请先在「Agent 工作台」创建一个`;return}await y(`/workshop/w/${n.id}?view=sessions&channel=${e}`)})}async function Zo(e){e.instanceChannelId&&await Xo(e.instanceChannelId)}async function Qo(){T.value?.officeChannelId&&await Xo(T.value.officeChannelId)}async function $o(e){await P(async()=>{await S.post(`/workshop/projects/${x}/results/${e.id}/submit`,{summary:e.summary||`(由成果页提交)`}),await Promise.all([F(),Q(),$(!0)])})}async function es(e,t){await P(async()=>{await S.post(`/workshop/projects/${x}/results/${e.id}/review`,{decision:t}),await Promise.all([F(),Q(),$(!0)])})}async function ts(e){await P(async()=>{await S.post(`/workshop/projects/${x}/results/${e.id}/request-acceptance`,{}),await Promise.all([F(),Q(),$(!0)])})}async function ns(e,t){await P(async()=>{await S.post(`/workshop/projects/${x}/approvals/${e.id}/decide`,{approve:t}),await Promise.all([F(),Q(),Ts(),$(!0)])})}async function rs(e){await P(async()=>{await S.post(`/workshop/projects/${x}/proposals/${e}/apply`,{}),await Promise.all([F(),Q(),$(!0)])})}let L=a(null);async function is(){await P(async()=>{let e=await S.get(`/workshop/projects/${x}/report`);L.value=e.data??null})}function as(){if(!L.value)return;let e=new Blob([JSON.stringify(L.value,null,2)],{type:`application/json`}),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`weekly-report-${x}.json`,n.click(),URL.revokeObjectURL(t)}let os=a([]);async function ss(){try{let e=await S.get(`/workshop/projects/${x}/sessions`);os.value=e.data??[]}catch{os.value=[]}}let R=a([]),z=a(``),cs=a(!1),B=a(!1),V=a(``),ls=a(``),us=a(null),ds=a(null),fs=a(!1),ps=a(!1),ms=null,H=l(()=>!!(ps.value&&T.value?.officeChannelId&&T.value?.leadAgentId&&T.value.status!==`archived`&&T.value.status!==`draft`));function hs(e){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function gs(e=!1){ne(()=>{let t=us.value;if(!t)return;let n=t.scrollHeight-t.scrollTop-t.clientHeight<80;(e||n)&&(t.scrollTop=t.scrollHeight)})}function _s(){U.value=`overview`,ne(()=>{ds.value?.scrollIntoView({behavior:`smooth`,block:`center`}),ds.value?.focus({preventScroll:!0})})}async function vs(){let e=T.value?.officeChannelId;if(e){cs.value=!0;try{let t=await S.get(`/workshop/channels/${e}/chat/messages?limit=100`);R.value=[...t.data?.messages??[]].reverse(),V.value=``,gs(!fs.value),fs.value=!0}catch(e){R.value.length||(V.value=N(e))}finally{cs.value=!1}}}async function ys(){let e=z.value.trim();if(!(!e||B.value||!H.value)){B.value=!0,V.value=``,ls.value=``;try{let t=await S.post(`/workshop/projects/${x}/continue`,{message:e,clientMessageId:`project-continue-${x}-${Date.now()}-${Math.random().toString(36).slice(2,8)}`});T.value=t.data.project,z.value=``;let n=t.data.deliveries.filter(e=>e.status===`delivered`||e.status===`consumed`).length;ls.value=t.data.reopened?`项目已重新打开;需求已发给 Project Leader(已投递 ${n} 个目标),批准增量计划后继续派发。`:`需求已发给 Project Leader(已投递 ${n} 个目标)。`,await Promise.all([F(),vs(),Q(),$(!0)]),gs(!0)}catch(e){V.value=N(e)}finally{B.value=!1}}}let U=a(`overview`),bs=l(()=>xs.find(e=>e.key===U.value)?.label??`概览`),xs=[{key:`overview`,label:`概览`,icon:`i-tabler-dashboard`},{key:`plan`,label:`计划与工作`,icon:`i-tabler-route`},{key:`deliverables`,label:`交付物`,icon:`i-tabler-package`},{key:`approvals`,label:`审批`,icon:`i-tabler-circle-check`},{key:`events`,label:`决策与事件`,icon:`i-tabler-history`}],Ss=e=>e===`plan`?O.value.length:e===`deliverables`?D.value.length:e===`approvals`?Bo.value.length:e===`events`?Fo.value.length+Io.value.length:0;function Cs(){let e=String(b.query.tab??``);xs.some(t=>t.key===e)&&(U.value=e)}ae(U,e=>{let t={...b.query};e===`overview`?delete t.tab:t.tab=e,y({path:b.path,query:t},{replace:!0}),e===`approvals`&&Ts(),e===`events`&&$(!0)});let ws=a([]);async function Ts(){await P(async()=>{let e=await S.get(`/workshop/projects/${x}/approvals?scope=all`);ws.value=e.data??[]})}let Es=l(()=>D.value.map(e=>({deliverable:e,results:k.value.filter(t=>t.deliverableId===e.id)}))),Ds=l(()=>{if(!T.value)return``;try{let e=JSON.parse(T.value.planJson??`{}`);return JSON.stringify(e,null,2)}catch{return`{}`}}),Os=l(()=>Fo.value.filter(e=>e.decisionType.includes(`plan`)).slice(-10)),ks=l(()=>{if(W.value?.project.successCriteria?.length)return W.value.project.successCriteria;try{let e=JSON.parse(T.value?.successCriteriaJson??`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}});async function As(e){await P(async()=>{await S.post(`/workshop/projects/${x}/work-items/${e}/retry`,{}),await Promise.all([F(),Q(),$(!0)])})}async function js(e){let t=window.prompt(`取消工作项的理由:`)??``;t.trim()&&await P(async()=>{await S.post(`/workshop/projects/${x}/work-items/${e}/cancel`,{reason:t}),await Promise.all([F(),Q(),$(!0)])})}async function Ms(e){let t=window.prompt(`豁免交付物的理由:`)??``;t.trim()&&await P(async()=>{await S.post(`/workshop/projects/${x}/deliverables/${e}/waive`,{reason:t}),await Promise.all([F(),Q(),$(!0)])})}let W=a(null),G=a(!1),Ns=a(``),K=a(null),Ps=a(!1),Fs=a(``),Is=null,q=a([]),Ls=a(null),Rs=a(!1),J=a(!1),zs={ready:`就绪待派发`,dispatching:`派发中`,dispatched:`已派发`,running:`Channel 执行中`,blocked:`阻塞`,rework:`待返工`,deferred:`已延后`,waiting_dependency:`等待上游工作项`,waiting_upstream_result:`等待上游成果`,waiting_technical_review:`等待技术验收`,waiting_deliverable:`等待上游交付物`,completed_pending_result:`任务完成·待生成成果`,result_pending_submit:`成果待提交`,result_pending_review:`成果待技术验收`,result_pending_acceptance:`成果待业务签核`,result_rejected:`成果被驳回`,accepted:`已验收`,failed:`失败`,canceled:`已取消`,superseded:`已替代`};function Bs(e){return zs[e]??e}function Vs(e){return[`accepted`,`running`].includes(e)?`green`:[`ready`,`dispatched`].includes(e)?`blue`:[`blocked`,`failed`,`result_rejected`,`rework`].includes(e)?`red`:e.startsWith(`waiting`)||e.startsWith(`result_pending`)||e===`deferred`?`amber`:`gray`}let Hs=l(()=>W.value?.channels.map(e=>({channel:e,items:(W.value?.workItems??[]).filter(t=>t.channelId===e.channelId)}))??[]),Us=e=>Ro.value.find(t=>t.id===e)?.name,Y=e=>W.value?.channels.find(t=>t.channelId===e)?.name??Us(e)??e.slice(0,8),Ws=e=>e.bindingType===`task_instance`?e.charter||`任务实例`:Y(e.channelId),Gs=l(()=>{let e=new Set(E.value.map(e=>e.channelId));return Ro.value.filter(t=>!e.has(t.id))}),Ks=l(()=>Io.value.filter(e=>[`work.dispatched`,`work.dispatch_auto`,`work.retry_scheduled`,`work.retried`,`work.rework`,`route.deferred`,`route.escalated`].includes(e.type)).slice(-30).reverse()),qs=l(()=>Fo.value.filter(e=>e.decisionType===`route.proposed`).slice(-20).reverse()),Js=l(()=>{let e=W.value?.workItems??[],t=t=>e.filter(t),n=[`completed_pending_result`,`result_pending_submit`,`result_pending_review`,`result_pending_acceptance`,`result_rejected`,`accepted`,`failed`,`canceled`,`superseded`];return[{key:`ready`,label:`就绪待派发`,icon:`i-tabler-send`,tone:`blue`,items:t(e=>e.stage===`ready`)},{key:`running`,label:`执行中`,icon:`i-tabler-player-play`,tone:`green`,items:t(e=>[`dispatching`,`dispatched`,`running`].includes(e.stage))},{key:`waiting`,label:`等待`,icon:`i-tabler-hourglass-high`,tone:`amber`,items:t(e=>e.stage.startsWith(`waiting`)||e.stage===`deferred`)},{key:`blocked`,label:`阻塞 / 返工`,icon:`i-tabler-alert-octagon`,tone:`red`,items:t(e=>[`blocked`,`rework`].includes(e.stage))},{key:`done`,label:`完成 / 验收链`,icon:`i-tabler-circle-check`,tone:`gray`,items:t(e=>n.includes(e.stage))}]}),Ys=l(()=>Js.value.reduce((e,t)=>e+t.items.length,0)),Xs=l(()=>W.value?.deliverables?.length?W.value.deliverables.map(e=>({id:e.id,name:e.name,status:e.status,required:e.required,ownerChannelId:D.value.find(t=>t.id===e.id)?.ownerChannelId??null,acceptanceCriteria:e.acceptanceCriteria??[],dependsOn:e.dependsOn??[],contentReady:e.contentReady,technicalAccepted:e.technicalAccepted,businessApproved:e.businessApproved,resultCount:e.resultCount})):D.value.map(e=>{let t=[];try{let n=JSON.parse(e.acceptanceCriteriaJson||`[]`);Array.isArray(n)&&(t=n.filter(e=>typeof e==`string`))}catch{}return{id:e.id,name:e.name,status:e.status,required:e.required===1,ownerChannelId:e.ownerChannelId,acceptanceCriteria:t,dependsOn:[],contentReady:k.value.some(t=>t.deliverableId===e.id),technicalAccepted:k.value.some(t=>t.deliverableId===e.id&&[`reviewed`,`approved`].includes(t.status)),businessApproved:e.status===`approved`||e.status===`waived`,resultCount:k.value.filter(t=>t.deliverableId===e.id).length}})),Zs=e=>D.value.find(t=>t.id===e)?.name??e.slice(0,8),Qs=[`failed`,`canceled`,`completed_pending_result`,`result_rejected`],$s=e=>{let t=W.value?.workItems.find(t=>t.id===e.id)?.stage;return t?Qs.includes(t):[`FAILED`,`CANCELED`].includes(e.state)},ec={draft:`草稿`,active:`进行中`,paused:`已暂停`,completed:`已完成`,archived:`已归档`,planned:`待生产`,submitted:`待复核`,reviewed:`待验收`,approved:`已签核`,rejected:`已驳回`,waived:`已豁免`,superseded:`已替代`,pending:`待决定`},X=e=>ec[e]??e,tc={plan_approval:`计划审批`,deliverable_acceptance:`交付物验收`,project_complete:`项目完成`,production_write:`生产写授权`},nc=e=>tc[e]??e,rc={"project.created":`项目创建`,"project.activated":`项目激活`,"project.paused":`项目暂停`,"project.resumed":`项目恢复`,"project.completed":`项目完成`,"project.reopened":`项目重开`,"project.reconciled":`对账完成`,"channel.bound":`频道绑定`,"channel.unbound":`频道解绑`,"deliverable.created":`交付物新增`,"deliverable.status":`交付物状态`,"work.created":`工作项新增`,"work.dispatched":`工作项派发`,"work.dispatch_auto":`自动派发`,"work.retried":`工作项重试`,"work.completed":`工作项完成`,"work.blocked":`工作项阻塞`,"result.draft":`成稿生成`,"result.submitted":`成果提交`,"result.reviewed":`成果复核`,"result.accepted":`成果签核`,"result.rejected":`成果驳回`,"route.proposed":`路由提案`,"route.deferred":`路由延后`,"route.escalated":`路由升级`},ic=e=>rc[e]??e,ac=e=>{let t=Number(e??0);return Number.isFinite(t)?Math.round(t<=1?t*100:t):0},oc=l(()=>ac(W.value?.summary.progress)),sc=l(()=>ac(W.value?.summary.acceptanceProgress)),cc=l(()=>{let e=2*Math.PI*18;return`${e*oc.value/100} ${e}`});function Z(e){if(!e)return`—`;let t=Date.now()-Date.parse(e);if(!Number.isFinite(t))return`—`;let n=Math.floor(t/6e4);if(n<1)return`刚刚`;if(n<60)return`${n} 分钟前`;let r=Math.floor(n/60);if(r<24)return`${r} 小时前`;let i=Math.floor(r/24);return i<30?`${i} 天前`:new Date(e).toLocaleDateString()}function lc(e){if(!e)return``;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}let uc=e=>{let t=lc(e.payloadJson);return!t||t===`{}`?e.reason??``:t.length>320?`${t.slice(0,320)}…`:t};async function Q(){G.value=!0;try{let e=await S.get(`/workshop/projects/${x}/observability`);W.value=e.data??null,ps.value=e.data?.access?.canManage===!0,Fs.value=new Date().toLocaleTimeString()}catch(e){W.value||(w.value=N(e))}finally{G.value=!1}}async function $(e=!0){J.value=!0;try{let t=!e&&Ls.value?`&after=${encodeURIComponent(Ls.value)}`:``,n=await S.get(`/workshop/projects/${x}/observability/activity?limit=80${t}`),r=n.data?.items??[];q.value=e?r:[...q.value,...r],Ls.value=n.data?.cursor??null,Rs.value=n.data?.hasMore===!0}catch{e&&(q.value=[])}finally{J.value=!1}}async function dc(e){Ns.value=e,K.value=null,Ps.value=!0;try{let t=await S.get(`/workshop/projects/${x}/observability/work-items/${e}`);K.value=t.data??null}catch(e){w.value=N(e)}finally{Ps.value=!1}}function fc(){Ns.value=``,K.value=null}async function pc(){W.value&&await P(async()=>{await S.patch(`/workshop/projects/${x}`,{autoDispatch:!W.value.project.autoDispatch}),await Promise.all([F(),Q()])})}return o(async()=>{Cs(),await Promise.all([F(),Uo(),Wo(),is(),ss(),Q(),$(!0)]),No.value=!1,vs(),Is=de(()=>{Q()},5e3),ms=de(()=>{B.value||vs()},5e3)}),oe(()=>{Is&&clearInterval(Is),Is=null,ms&&clearInterval(ms),ms=null}),(r,a)=>{let o=fe;return s(),d(`div`,ve,[u(`aside`,ye,[u(`div`,be,[u(`button`,{class:`back`,type:`button`,title:`返回项目中心`,"aria-label":`返回项目中心`,onClick:a[0]||=t=>(`navigateTo`in r?r.navigateTo:e(y))(`/projects`)},[...a[25]||=[u(`span`,{class:`i-tabler-arrow-left`},null,-1)]]),u(`button`,{class:`brand`,type:`button`,title:`返回 Agent 工作台`,onClick:a[1]||=t=>(`navigateTo`in r?r.navigateTo:e(y))(`/workshop`)},[...a[26]||=[u(`span`,{class:`brand-dot`,"aria-hidden":`true`},null,-1),h(` AgentWorkShop `,-1)]]),a[27]||=u(`span`,{class:`side-version`},`project`,-1)]),u(`div`,xe,[u(`div`,{class:`proj-name`,title:T.value?.name},i(T.value?.name??`加载中…`),9,Se),u(`div`,Ce,[T.value?(s(),d(`span`,{key:0,class:t([`badge`,T.value.status])},i(X(T.value.status)),3)):m(``,!0),W.value?(s(),d(`span`,we,i(W.value.access.role),1)):m(``,!0),T.value?(s(),d(`span`,Te,`v`+i(T.value.planVersion),1)):m(``,!0)]),T.value?.objective?(s(),d(`p`,Ee,i(T.value.objective),1)):m(``,!0)]),u(`nav`,De,[a[28]||=u(`div`,{class:`side-label`},` 项目导航 `,-1),(s(),d(f,null,c(xs,e=>u(`button`,{key:e.key,class:t([`side-item`,{active:U.value===e.key}]),"data-testid":`tab-${e.key}`,onClick:t=>U.value=e.key},[u(`span`,{class:t(e.icon)},null,2),u(`span`,ke,i(e.label),1),Ss(e.key)?(s(),d(`span`,{key:0,class:t([`side-count`,{alert:e.key===`approvals`}])},i(Ss(e.key)),3)):m(``,!0)],10,Oe)),64))]),u(`div`,Ae,[a[29]||=u(`div`,{class:`side-label`},` 生命周期 `,-1),u(`div`,je,[H.value?(s(),d(`button`,{key:0,class:`btn small`,"data-testid":`continue-project`,onClick:_s},i(T.value?.status===`completed`?`继续开发`:`补充需求`),1)):m(``,!0),u(`button`,{class:`btn small ghost`,disabled:C.value,onClick:a[2]||=e=>I(`reconcile`)},` 对账 `,8,Me),T.value?.status===`draft`||T.value?.status===`paused`?(s(),d(`button`,{key:1,class:`btn small`,disabled:C.value,onClick:a[3]||=e=>I(`activate`)},` 激活 `,8,Ne)):m(``,!0),T.value?.status===`active`?(s(),d(`button`,{key:2,class:`btn small ghost`,disabled:C.value,onClick:a[4]||=e=>I(`pause`)},` 暂停 `,8,Pe)):m(``,!0),T.value?.status===`paused`?(s(),d(`button`,{key:3,class:`btn small`,disabled:C.value,onClick:a[5]||=e=>I(`resume`)},` 恢复 `,8,Fe)):m(``,!0),T.value?.status===`active`?(s(),d(`button`,{key:4,class:`btn small`,disabled:C.value,onClick:Go},` 完成 `,8,Ie)):m(``,!0),T.value&&T.value.status!==`active`&&T.value.status!==`archived`?(s(),d(`button`,{key:5,class:`btn small ghost`,disabled:C.value,onClick:a[6]||=e=>I(`archive`)},` 归档 `,8,Le)):m(``,!0)])]),u(`div`,Re,[u(`span`,ze,`plan v`+i(T.value?.planVersion??0)+` · leader `+i(T.value?.leadAgentId?.slice(0,8)??`-`),1),u(`span`,Be,i(T.value?.routingPolicy??W.value?.project.routingPolicy??`technical`),1)])]),u(`div`,Ve,[u(`header`,He,[u(`div`,Ue,[u(`button`,{class:`crumb-link`,type:`button`,onClick:a[7]||=t=>(`navigateTo`in r?r.navigateTo:e(y))(`/projects`)},` 项目中心 `),a[30]||=u(`span`,{class:`crumb-sep`},`/`,-1),u(`h1`,null,i(bs.value),1)]),u(`div`,We,[W.value?(s(),d(`span`,{key:0,class:t([`live-pill`,{on:!G.value,loading:G.value}])},[a[31]||=u(`i`,{"aria-hidden":`true`},null,-1),h(` 实时快照 `+i(Fs.value||`—`),1)],2)):m(``,!0),T.value?.officeChannelId?(s(),d(`button`,{key:1,class:`btn small ghost`,"data-testid":`open-office`,onClick:Qo},[...a[32]||=[u(`span`,{class:`i-tabler-message-2`},null,-1),h(` 打开办公室 `,-1)]])):m(``,!0),u(`button`,{class:`btn small ghost`,disabled:C.value,onClick:a[8]||=e=>{F(),Q(),$(!0)}},[u(`span`,{class:t([`i-tabler-refresh`,{spin:C.value}])},null,2),a[33]||=h(` 刷新 `,-1)],8,Ge)])]),w.value?(s(),d(`p`,Ke,[a[34]||=u(`span`,{class:`i-tabler-alert-triangle`},null,-1),h(` `+i(w.value),1)])):m(``,!0),No.value&&!T.value?(s(),d(`div`,qe,[...a[35]||=[u(`div`,{class:`sk-hero`},null,-1),u(`div`,{class:`sk-card`},null,-1),u(`div`,{class:`sk-card short`},null,-1)]])):(s(),d(f,{key:2},[p(u(`section`,Je,[u(`div`,Ye,[(s(),d(`svg`,Xe,[a[36]||=u(`circle`,{class:`ring-bg`,cx:`22`,cy:`22`,r:`18`},null,-1),u(`circle`,{class:`ring-fg`,cx:`22`,cy:`22`,r:`18`,style:n({strokeDasharray:cc.value})},null,4)])),u(`div`,Ze,[u(`b`,null,i(oc.value)+`%`,1),a[37]||=u(`span`,null,`工作项`,-1)])]),u(`div`,Qe,[u(`div`,$e,[u(`b`,null,i(W.value?.summary.ready??0),1),a[38]||=u(`span`,null,`就绪`,-1)]),u(`div`,et,[u(`b`,null,i(W.value?.summary.inFlight??0),1),a[39]||=u(`span`,null,`执行中`,-1)]),u(`div`,tt,[u(`b`,null,i(W.value?.summary.waiting??0),1),a[40]||=u(`span`,null,`等待`,-1)]),u(`div`,{class:t([`hero-stat`,{danger:Number(W.value?.summary.blocked??0)>0}])},[u(`b`,null,i(W.value?.summary.blocked??0),1),a[41]||=u(`span`,null,`阻塞`,-1)],2),u(`div`,nt,[u(`b`,null,i(sc.value)+`%`,1),a[42]||=u(`span`,null,`交付签核`,-1)])]),ks.value.length?(s(),d(`div`,rt,[a[43]||=u(`span`,{class:`hero-criteria-label`},`成功标准`,-1),(s(!0),d(f,null,c(ks.value.slice(0,4),(e,t)=>(s(),d(`span`,{key:t,class:`criteria-chip`},i(e),1))),128))])):m(``,!0)],512),[[v,U.value===`overview`]]),p(u(`section`,it,[u(`header`,at,[u(`div`,ot,[a[47]||=u(`span`,{class:`leader-avatar`,"aria-hidden":`true`},`PL`,-1),u(`div`,st,[a[46]||=u(`h2`,null,`Project Leader 对话`,-1),u(`p`,null,[a[45]||=h(` 项目办公室 `,-1),T.value?.officeChannelId?(s(),d(f,{key:0},[a[44]||=h(` · `,-1),u(`code`,null,i(Y(T.value.officeChannelId)),1)],64)):m(``,!0)])])]),u(`div`,ct,[u(`span`,lt,i(R.value.length)+` 条对话`,1),u(`button`,{type:`button`,class:`btn small ghost`,disabled:cs.value,onClick:vs},` 刷新 `,8,ut)])]),T.value?.status===`completed`?(s(),d(`p`,dt,[...a[48]||=[h(` 项目已完成。`,-1),u(`b`,null,`发送补充需求会自动重新打开项目`,-1),h(`;Leader 会先读现状,再提出增量计划(plan vN+1),owner 批准后继续派发、验收,不需要新建项目。 `,-1)]])):T.value?.status===`paused`?(s(),d(`p`,ft,` 项目已暂停;发送补充需求会自动恢复为进行中,再交给同一个 Project Leader 评估。 `)):(s(),d(`p`,pt,` 消息直接进入项目办公室,由同一个 Project Leader 接收;适合补充 bug 复现、变更需求和验收反馈。 `)),u(`div`,{ref_key:`chatThread`,ref:us,class:`chat-thread`,"data-testid":`project-leader-thread`},[!R.value.length&&!cs.value?(s(),d(`div`,mt,[...a[49]||=[u(`strong`,null,`还没有对话`,-1),u(`span`,null,`可以直接描述 bug、复现步骤或下一轮需求。`,-1)]])):cs.value&&!R.value.length?(s(),d(`div`,ht,[...a[50]||=[u(`span`,{class:`muted`},`正在同步对话…`,-1)]])):m(``,!0),(s(!0),d(f,null,c(R.value,n=>(s(),d(`div`,{key:n.id,class:t([`chat-row`,n.senderType]),"data-testid":`project-chat-${n.senderType}`},[n.senderType===`user`?m(``,!0):(s(),d(`span`,_t,`PL`)),u(`div`,vt,[u(`div`,yt,[u(`strong`,null,i(n.senderType===`user`?`你`:n.senderName),1),u(`span`,null,i(hs(n.createdAt)),1)]),u(`div`,{class:`chat-body`,innerHTML:e(ge)(n.text)},null,8,bt)])],10,gt))),128))],512),V.value?(s(),d(`p`,xt,i(V.value),1)):m(``,!0),ls.value?(s(),d(`p`,St,i(ls.value),1)):m(``,!0),u(`div`,Ct,[p(u(`textarea`,{ref_key:`chatInput`,ref:ds,"onUpdate:modelValue":a[9]||=e=>z.value=e,rows:`2`,maxlength:`8000`,"data-testid":`project-continue-input`,disabled:!H.value,placeholder:H.value?`例如:游戏在移动端无法操作;第 2 关闪电伤害判定偏大;请修复并补回归验证。`:`只有项目 owner 可以在这里继续开发。`,onKeydown:[ce(g(ys,[`ctrl`,`prevent`]),[`enter`]),ce(g(ys,[`meta`,`prevent`]),[`enter`])]},null,40,wt),[[_,z.value]]),u(`div`,Tt,[u(`span`,Et,[a[51]||=h(` Ctrl/⌘ + Enter 发送 `,-1),H.value?m(``,!0):(s(),d(f,{key:0},[h(` · 只有项目 owner 可继续开发 `)],64))]),u(`div`,Dt,[u(`span`,Ot,i(z.value.length)+` / 8000`,1),u(`button`,{class:`btn small`,"data-testid":`project-continue-send`,disabled:B.value||!z.value.trim()||!H.value,onClick:ys},i(B.value?`发送中…`:`发送并继续开发`),9,kt)])])])],512),[[v,U.value===`overview`]]),p(u(`section`,At,[u(`header`,jt,[a[52]||=u(`h2`,null,`频道`,-1),u(`span`,Mt,[h(i(E.value.length)+` 个绑定`,1),Ho.value?(s(),d(f,{key:0},[h(` · `+i(Ho.value)+` 个任务实例`,1)],64)):m(``,!0)])]),E.value.length?m(``,!0):(s(),d(`p`,Nt,` 尚未绑定成员 Channel。绑定后 Leader 才能把工作项派发到执行频道。 `)),u(`ul`,Pt,[(s(!0),d(f,null,c(E.value,e=>(s(),d(`li`,{key:e.channelId,class:`chan-row`},[a[53]||=u(`span`,{class:`chan-avatar`,"aria-hidden":`true`},[u(`span`,{class:`i-tabler-antenna`})],-1),u(`div`,Ft,[u(`strong`,null,i(Ws(e)),1),u(`span`,It,i(e.channelId.slice(0,8)),1)]),u(`span`,{class:t([`badge`,{protected:e.bindingType===`user_bound`}]),"data-testid":`protected-badge`},i(e.bindingType===`user_bound`?`用户绑定 · 受保护`:e.bindingType),3),u(`span`,Lt,i(e.charter||`无 charter`),1),u(`button`,{class:`btn small ghost`,onClick:t=>Xo(e.channelId)},` 打开 `,8,Rt)]))),128))]),u(`div`,zt,[u(`label`,Bt,[a[54]||=u(`span`,null,`绑定已有 Channel`,-1),p(u(`select`,{"onUpdate:modelValue":a[10]||=e=>A.channelId=e},[u(`option`,Vt,i(Gs.value.length?`选择可绑定频道`:`没有可绑定的频道(可手动填写 ID)`),1),(s(!0),d(f,null,c(Gs.value,e=>(s(),d(`option`,{key:e.id,value:e.id},i(e.name)+` · `+i(e.id.slice(0,8)),9,Ht))),128))],512),[[se,A.channelId]])]),u(`label`,Ut,[a[55]||=u(`span`,null,`该频道在项目中的使命(charter,可选)`,-1),p(u(`input`,{"onUpdate:modelValue":a[11]||=e=>A.charter=e,placeholder:`例如:负责落地页视觉与前端实现`},null,512),[[_,A.charter]])]),u(`label`,Wt,[p(u(`input`,{"onUpdate:modelValue":a[12]||=e=>zo.value=e,type:`checkbox`},null,512),[[le,zo.value]]),a[56]||=u(`span`,null,`手动填写 Channel ID`,-1)]),p(u(`label`,null,[a[57]||=u(`span`,null,`Channel ID`,-1),p(u(`input`,{"onUpdate:modelValue":a[13]||=e=>A.manual=e,"data-testid":`bind-channel-id`,placeholder:`粘贴 Channel ID`},null,512),[[_,A.manual]])],512),[[v,zo.value]]),u(`div`,Gt,[u(`button`,{class:`btn`,disabled:C.value||!A.channelId&&!A.manual.trim(),onClick:Ko},` 绑定频道 `,8,Kt)])])],512),[[v,U.value===`overview`]]),p(u(`div`,qt,[u(`section`,Jt,[u(`header`,Yt,[a[58]||=u(`h2`,null,`项目会话`,-1),u(`span`,Xt,i(os.value.length)+` 个 session`,1),a[59]||=u(`span`,{class:`spacer`},null,-1),u(`button`,{class:`btn small ghost`,disabled:C.value,onClick:ss},` 刷新会话 `,8,Zt)]),os.value.length?(s(),d(`ul`,$t,[(s(!0),d(f,null,c(os.value,e=>(s(),d(`li`,{key:e.id,class:`session-row`},[u(`span`,en,i(e.kind),1),u(`div`,tn,[u(`strong`,null,i(e.title),1),u(`span`,nn,i(e.currentTask||e.summary||`—`),1)]),u(`span`,{class:t([`badge`,e.status===`active`?`active`:`archived`])},i(e.status),3),te(o,{size:`small`,type:`link`,"data-testid":`open-project-session-${e.id}`,onClick:t=>Xo(e.channelId)},{default:ie(()=>[...a[60]||=[h(` 打开会话 `,-1)]]),_:1},8,[`data-testid`,`onClick`])]))),128))])):(s(),d(`p`,Qt,` 暂无会话。项目创建会生成 project session;工作项派发会生成 task session。 `))]),u(`section`,rn,[u(`header`,an,[a[61]||=u(`h2`,null,`周报`,-1),u(`span`,on,i(L.value?.generatedAt?Z(L.value.generatedAt):`未加载`),1)]),L.value?(s(),d(`div`,cn,[u(`div`,ln,[u(`b`,null,i(L.value.progress?.completedWorkItems??0)+`/`+i(L.value.progress?.scoreableWorkItems??0),1),a[62]||=u(`span`,null,`工作项`,-1)]),u(`div`,un,[u(`b`,null,i(L.value.deliverables?.requiredApproved??0)+`/`+i(L.value.deliverables?.requiredTotal??0),1),a[63]||=u(`span`,null,`必选签核`,-1)]),u(`div`,dn,[u(`b`,null,i(L.value.results?.total??0),1),a[64]||=u(`span`,null,`成果`,-1)]),u(`div`,fn,[u(`b`,{class:t({"tone-warn":Number(L.value.workItems?.blocked??0)>0})},i(L.value.workItems?.blocked??0),3),a[65]||=u(`span`,null,`阻塞`,-1)])])):(s(),d(`p`,sn,` 周报未加载。 `)),L.value?(s(),d(`p`,pn,` 近 7 天事件 `+i(L.value.recentEvents?.count??0)+` · 待审批 `+i(L.value.approvals?.pending??0)+` · generatedAt `+i(L.value.generatedAt),1)):m(``,!0),u(`div`,mn,[u(`button`,{class:`btn small ghost`,"data-testid":`btn-report-refresh`,disabled:C.value,onClick:is},` 刷新周报 `,8,hn),u(`button`,{class:`btn small`,"data-testid":`btn-report-export`,disabled:C.value||!L.value,onClick:as},` 导出周报 `,8,gn)])])],512),[[v,U.value===`overview`]]),p(u(`section`,_n,[u(`header`,vn,[a[67]||=u(`h2`,null,`执行工作台`,-1),u(`span`,{class:t([`live-dot`,{on:G.value}]),"aria-hidden":`true`},null,2),u(`span`,yn,`快照 `+i(Fs.value||`—`)+` · 5s 轮询`,1),a[68]||=u(`span`,{class:`spacer`},null,-1),W.value?.access.canManage?(s(),d(`label`,bn,[u(`input`,{type:`checkbox`,"data-testid":`toggle-auto-dispatch`,checked:W.value?.project.autoDispatch,onChange:pc},null,40,xn),a[66]||=h(` 自动派发 `,-1)])):m(``,!0),W.value?(s(),d(`span`,Sn,i(W.value.project.routingPolicy),1)):m(``,!0),W.value?(s(),d(`span`,Cn,i(W.value.access.role),1)):m(``,!0)]),W.value?(s(),d(`div`,wn,[u(`span`,Tn,[u(`b`,null,i(W.value.summary.ready),1),a[69]||=h(` 就绪`,-1)]),u(`span`,En,[u(`b`,null,i(W.value.summary.inFlight),1),a[70]||=h(` 执行中`,-1)]),u(`span`,Dn,[u(`b`,null,i(W.value.summary.waiting),1),a[71]||=h(` 等待`,-1)]),u(`span`,On,[u(`b`,null,i(W.value.summary.blocked),1),a[72]||=h(` 阻塞/返工`,-1)]),u(`span`,kn,[u(`b`,null,i(oc.value)+`%`,1),a[73]||=h(` 工作项完成`,-1)]),u(`span`,An,[u(`b`,null,i(sc.value)+`%`,1),a[74]||=h(` 交付物签核`,-1)])])):m(``,!0),W.value?(s(),d(`div`,{key:1,class:t([`board`,{empty:Ys.value===0}])},[(s(!0),d(f,null,c(Js.value,e=>(s(),d(`div`,{key:e.key,class:t([`board-col`,`tone-${e.tone}`])},[u(`header`,jn,[u(`span`,{class:t(e.icon),"aria-hidden":`true`},null,2),u(`span`,Mn,i(e.label),1),u(`span`,Nn,i(e.items.length),1)]),e.items.length?m(``,!0):(s(),d(`p`,Pn,` 空 `)),(s(!0),d(f,null,c(e.items,e=>(s(),d(`div`,{key:e.id,class:`wc`,role:`button`,tabindex:`0`,"data-testid":`exec-work-item-${e.id}`,onClick:t=>dc(e.id),onKeydown:ce(t=>dc(e.id),[`enter`])},[u(`div`,In,[u(`strong`,null,i(e.title),1),u(`span`,{class:t([`badge`,Vs(e.stage)])},i(Bs(e.stage)),3)]),u(`div`,Ln,[u(`span`,Rn,[a[75]||=u(`span`,{class:`i-tabler-antenna`,"aria-hidden":`true`},null,-1),h(` `+i(Y(e.channelId)),1)]),u(`span`,zn,i(Zs(e.deliverableId)),1)]),u(`div`,Bn,[u(`span`,Vn,`attempt `+i(e.attemptCount)+`/`+i(e.maxAttempts),1),e.lastResultStatus?(s(),d(`span`,Hn,`成果 `+i(X(e.lastResultStatus)),1)):m(``,!0),e.reworkCount?(s(),d(`span`,Un,`rework `+i(e.reworkCount),1)):m(``,!0)]),e.waitingReason?(s(),d(`div`,Wn,i(e.waitingOn)+` · `+i(e.waitingReason),1)):e.stateReason?(s(),d(`div`,Gn,i(e.stateReason),1)):m(``,!0),e.sessionId||e.instanceChannelId?(s(),d(`div`,Kn,[u(`span`,{class:t([`badge`,e.sessionStatus===`active`?`active`:`archived`]),"data-testid":`task-session-${e.id}`},i(e.sessionStatus===`active`?`任务会话 · 进行中`:`任务会话 · 已归档`),11,qn),u(`span`,Jn,i((e.sessionId||`—`).slice(0,14)),1),e.instanceChannelId?(s(),re(o,{key:0,size:`small`,type:`link`,"data-testid":`open-task-session-${e.id}`,onClick:g(t=>Zo(e),[`stop`])},{default:ie(()=>[...a[76]||=[h(` 打开会话 `,-1)]]),_:1},8,[`data-testid`,`onClick`])):m(``,!0)])):m(``,!0),u(`div`,{class:`wc-actions`,onClick:a[14]||=g(()=>{},[`stop`])},[e.stage===`ready`?(s(),d(`button`,{key:0,class:`btn tiny`,disabled:C.value||!!e.currentAttempt?.id,onClick:t=>Yo(e.id)},` 派发 `,8,Yn)):m(``,!0),[`failed`,`canceled`,`completed_pending_result`,`result_rejected`].includes(e.stage)?(s(),d(`button`,{key:1,class:`btn tiny ghost`,"data-testid":`btn-retry`,disabled:C.value,onClick:t=>As(e.id)},` 重试 `,8,Xn)):m(``,!0),[`accepted`,`failed`,`canceled`,`superseded`].includes(e.stage)?m(``,!0):(s(),d(`button`,{key:2,class:`btn tiny danger`,disabled:C.value,onClick:t=>js(e.id)},` 取消 `,8,Zn))])],40,Fn))),128))],2))),128))],2)):(s(),d(`p`,Qn,` 执行快照加载中… `)),W.value?(s(),d(`div`,$n,[u(`span`,null,[a[77]||=h(`routeGate `,-1),u(`b`,null,i(W.value.route.routeGate),1)]),u(`span`,null,[a[78]||=h(`mode `,-1),u(`b`,null,i(W.value.route.mode),1)]),u(`span`,null,[a[79]||=h(`plan v`,-1),u(`b`,null,i(W.value.route.planVersion),1)]),u(`span`,null,[a[80]||=h(`effects `,-1),u(`b`,null,i(W.value.kernel.effects.pending??0),1),a[81]||=h(` pending`,-1)]),u(`span`,null,[a[82]||=h(`ledger `,-1),u(`b`,null,i(W.value.kernel.ledger.count),1)]),u(`span`,null,[a[83]||=h(`生成于 `,-1),u(`b`,null,i(Z(W.value.generatedAt)),1)])])):m(``,!0)],512),[[v,U.value===`plan`]]),p(u(`section`,er,[u(`header`,tr,[a[84]||=u(`h2`,null,`工作项 / 派发`,-1),u(`span`,nr,i(O.value.length)+` 项`,1)]),u(`table`,rr,[a[86]||=u(`thead`,null,[u(`tr`,null,[u(`th`,null,`标题`),u(`th`,null,`频道`),u(`th`,null,`交付物`),u(`th`,null,`状态`),u(`th`,null,`预算`),u(`th`,{class:`col-actions`})])],-1),u(`tbody`,null,[(s(!0),d(f,null,c(O.value,e=>(s(),d(`tr`,{key:e.id},[u(`td`,null,[u(`button`,{class:`link-strong`,onClick:t=>dc(e.id)},i(e.title),9,ir),e.stateReason?(s(),d(`div`,ar,i(e.stateReason),1)):m(``,!0)]),u(`td`,null,i(Y(e.channelId)),1),u(`td`,null,i(Zs(e.deliverableId)),1),u(`td`,null,[u(`span`,{class:t([`badge`,Vs(W.value?.workItems.find(t=>t.id===e.id)?.stage??``)])},i(W.value?.workItems.find(t=>t.id===e.id)?.stage?Bs(W.value.workItems.find(t=>t.id===e.id).stage):e.state),3)]),u(`td`,or,i(e.execBudgetMinutes)+`m `,1),u(`td`,sr,[e.state===`DRAFT`?(s(),d(`button`,{key:0,class:`btn tiny`,disabled:C.value||!!e.currentAttemptId,onClick:t=>Yo(e.id)},` 派发 `,8,cr)):m(``,!0),$s(e)?(s(),d(`button`,{key:1,class:`btn tiny ghost`,"data-testid":`btn-retry`,disabled:C.value,onClick:t=>As(e.id)},` 重试 `,8,lr)):m(``,!0),[`COMPLETED`,`CANCELED`,`SUPERSEDED`].includes(e.state)?m(``,!0):(s(),d(`button`,{key:2,class:`btn tiny danger`,disabled:C.value,onClick:t=>js(e.id)},` 取消 `,8,ur))])]))),128)),O.value.length?m(``,!0):(s(),d(`tr`,dr,[...a[85]||=[u(`td`,{colspan:`6`,class:`muted`},` 还没有工作项。在下方新增,或让 Project Leader 出计划后自动生成。 `,-1)]]))])]),u(`div`,fr,[u(`label`,null,[a[88]||=u(`span`,null,`交付物`,-1),p(u(`select`,{"onUpdate:modelValue":a[15]||=e=>M.deliverableId=e,"data-testid":`select-work-deliverable`},[a[87]||=u(`option`,{value:``},` 选择交付物 `,-1),(s(!0),d(f,null,c(D.value,e=>(s(),d(`option`,{key:e.id,value:e.id},i(e.name),9,pr))),128))],512),[[se,M.deliverableId]])]),u(`label`,null,[a[90]||=u(`span`,null,`执行频道`,-1),p(u(`select`,{"onUpdate:modelValue":a[16]||=e=>M.channelId=e,"data-testid":`select-work-channel`},[a[89]||=u(`option`,{value:``},` 选择频道 `,-1),(s(!0),d(f,null,c(E.value,e=>(s(),d(`option`,{key:e.channelId,value:e.channelId},i(Ws(e)),9,mr))),128))],512),[[se,M.channelId]])]),u(`label`,null,[a[91]||=u(`span`,null,`工作项标题`,-1),p(u(`input`,{"onUpdate:modelValue":a[17]||=e=>M.title=e,"data-testid":`input-work-title`,placeholder:`例如:落地页视觉稿`},null,512),[[_,M.title]])]),u(`label`,null,[a[92]||=u(`span`,null,`给 Channel lead 的 brief`,-1),p(u(`input`,{"onUpdate:modelValue":a[18]||=e=>M.brief=e,"data-testid":`input-work-brief`,placeholder:`范围、约束、验收线索`},null,512),[[_,M.brief]])]),u(`label`,null,[a[93]||=u(`span`,null,`执行预算(分钟)`,-1),p(u(`input`,{"onUpdate:modelValue":a[19]||=e=>M.execBudgetMinutes=e,type:`number`,min:`1`,max:`1440`},null,512),[[_,M.execBudgetMinutes,void 0,{number:!0}]])]),u(`div`,hr,[u(`button`,{class:`btn`,disabled:C.value,onClick:Jo},` 新增工作项 `,8,gr)])])],512),[[v,U.value===`plan`]]),p(u(`section`,_r,[a[99]||=u(`header`,{class:`card-head`},[u(`h2`,null,`路由与派发日志`)],-1),u(`div`,vr,[u(`div`,null,[a[95]||=u(`h3`,null,`派发 / 重试 / 返工 / 升级`,-1),Ks.value.length?m(``,!0):(s(),d(`p`,yr,` 暂无派发记录。 `)),u(`ul`,br,[(s(!0),d(f,null,c(Ks.value,e=>(s(),d(`li`,{key:e.id,class:`timeline-row`},[a[94]||=u(`span`,{class:`timeline-dot`,"aria-hidden":`true`},null,-1),u(`span`,xr,[u(`b`,null,i(ic(e.type)),1),u(`span`,Sr,i(e.traceId),1)]),u(`span`,Cr,i(Z(e.createdAt)),1)]))),128))])]),u(`div`,null,[a[97]||=u(`h3`,null,`Leader 路由提案`,-1),qs.value.length?m(``,!0):(s(),d(`p`,wr,` 暂无 route 提案。 `)),u(`ul`,Tr,[(s(!0),d(f,null,c(qs.value,e=>(s(),d(`li`,{key:e.id,class:`timeline-row`},[a[96]||=u(`span`,{class:`timeline-dot`,"aria-hidden":`true`},null,-1),u(`span`,Er,[u(`b`,null,`#`+i(e.seq)+` `+i(e.decisionType),1),u(`span`,Dr,i(e.state),1),u(`span`,Or,i(e.traceId),1)]),u(`span`,kr,i(Z(e.createdAt)),1)]))),128))])])]),W.value?.route.waiting.length?(s(),d(`div`,Ar,[a[98]||=u(`h3`,null,`等待原因(后端派生)`,-1),u(`ul`,jr,[(s(!0),d(f,null,c(W.value.route.waiting,e=>(s(),d(`li`,{key:e.id},[u(`span`,null,i(e.title),1),u(`span`,Mr,i(Bs(e.stage)),1),u(`span`,Nr,i(e.waitingOn)+` · `+i(e.reason),1)]))),128))])])):m(``,!0)],512),[[v,U.value===`plan`]]),p(u(`section`,Pr,[u(`header`,Fr,[u(`h2`,null,`计划快照(当前 v`+i(T.value?.planVersion??0)+`)`,1)]),u(`details`,Ir,[a[100]||=u(`summary`,null,`plan JSON`,-1),u(`pre`,Lr,i(Ds.value),1)]),a[101]||=u(`h3`,null,`计划决策快照(decisions.args_json)`,-1),u(`ul`,Rr,[(s(!0),d(f,null,c(Os.value,e=>(s(),d(`li`,{key:e.id},[u(`span`,null,i(e.decisionType),1),u(`span`,zr,i(e.state),1),u(`code`,Br,i(e.traceId),1)]))),128)),Os.value.length?m(``,!0):(s(),d(`li`,Vr,` 暂无计划决策。 `))])],512),[[v,U.value===`plan`]]),p(u(`section`,Hr,[u(`header`,Ur,[a[102]||=u(`h2`,null,`交付物`,-1),u(`span`,Wr,i(Xs.value.length)+` 项 · 必选 `+i(Xs.value.filter(e=>e.required).length),1)]),Xs.value.length?m(``,!0):(s(),d(`p`,Gr,` 至少一个必选交付物才能激活。可在下方新增。 `)),u(`div`,Kr,[(s(!0),d(f,null,c(Xs.value,e=>(s(),d(`article`,{key:e.id,class:t([`deliv`,{done:e.businessApproved}])},[u(`header`,qr,[u(`div`,Jr,[u(`strong`,null,i(e.name),1),u(`span`,Yr,i(e.id.slice(0,8)),1)]),u(`span`,{class:t([`badge`,e.status])},i(X(e.status)),3),e.required?(s(),d(`span`,Xr,`必选`)):m(``,!0)]),u(`div`,Zr,[u(`span`,{class:t([`gate`,{on:e.contentReady}])},[e.contentReady?(s(),d(`span`,Qr)):m(``,!0),a[103]||=h(`内容 `,-1)],2),u(`span`,{class:t([`gate`,{on:e.technicalAccepted}])},[e.technicalAccepted?(s(),d(`span`,$r)):m(``,!0),a[104]||=h(`技术验收 `,-1)],2),u(`span`,{class:t([`gate`,{on:e.businessApproved}])},[e.businessApproved?(s(),d(`span`,ei)):m(``,!0),a[105]||=h(`业务签核 `,-1)],2)]),e.acceptanceCriteria.length?(s(),d(`div`,ti,[(s(!0),d(f,null,c(e.acceptanceCriteria,(e,t)=>(s(),d(`span`,{key:t,class:`criteria-item`},[a[106]||=u(`span`,{class:`i-tabler-check`,"aria-hidden":`true`},null,-1),h(i(e),1)]))),128))])):m(``,!0),u(`div`,ni,[u(`span`,ri,i(e.ownerChannelId?Y(e.ownerChannelId):`未指派频道`)+` · `+i(e.resultCount)+` 个成果 `,1),e.status===`planned`?(s(),d(`button`,{key:0,class:`btn tiny ghost`,disabled:C.value,onClick:t=>Ms(e.id)},` 豁免 `,8,ii)):m(``,!0)])],2))),128))]),u(`div`,ai,[u(`label`,null,[a[107]||=u(`span`,null,`交付物名称`,-1),p(u(`input`,{"onUpdate:modelValue":a[20]||=e=>j.name=e,"data-testid":`deliverable-name`,placeholder:`例如:落地页设计稿`},null,512),[[_,j.name]])]),u(`label`,null,[a[109]||=u(`span`,null,`所属频道`,-1),p(u(`select`,{"onUpdate:modelValue":a[21]||=e=>j.ownerChannelId=e},[a[108]||=u(`option`,{value:``},` 选择所属频道 `,-1),(s(!0),d(f,null,c(E.value,e=>(s(),d(`option`,{key:e.channelId,value:e.channelId},i(Ws(e)),9,oi))),128))],512),[[se,j.ownerChannelId]])]),u(`label`,si,[a[110]||=u(`span`,null,`验收标准(每行一条)`,-1),p(u(`textarea`,{"onUpdate:modelValue":a[22]||=e=>j.acceptance=e,rows:`2`,placeholder:`例如:首屏 3 秒内可读
|
|
3
|
+
移动端 390px 无横向滚动`},null,512),[[_,j.acceptance]])]),u(`div`,ci,[u(`button`,{class:`btn`,disabled:C.value,onClick:qo},` 新增交付物 `,8,li)])])],512),[[v,U.value===`deliverables`]]),p(u(`section`,ui,[u(`header`,di,[a[111]||=u(`h2`,null,`成果(按交付物分组)`,-1),u(`span`,fi,i(k.value.length)+` 个成果`,1)]),Vo.value.length?m(``,!0):(s(),d(`p`,pi,` Channel root task COMPLETED 后,点“对账”会自动生成 draft。 `)),(s(!0),d(f,null,c(Es.value,e=>(s(),d(f,{key:e.deliverable.id},[e.results.length?(s(),d(`div`,mi,[u(`strong`,null,i(e.deliverable.name),1),u(`span`,{class:t([`badge`,e.deliverable.status])},i(X(e.deliverable.status)),3),e.deliverable.status===`planned`?(s(),d(`button`,{key:0,class:`btn tiny ghost`,disabled:C.value,onClick:t=>Ms(e.deliverable.id)},` 豁免 `,8,hi)):m(``,!0)])):m(``,!0),(s(!0),d(f,null,c(e.results,e=>(s(),d(`article`,{key:e.id,class:`result`},[u(`div`,gi,[u(`strong`,null,i(e.title),1),u(`span`,{class:t([`badge`,e.status]),"data-state":e.status},i(X(e.status)),11,_i),u(`span`,vi,`v`+i(e.version),1)]),u(`p`,yi,i(e.summary),1),u(`details`,bi,[u(`summary`,null,`evidence · `+i(e.evidenceJson?.slice(0,60)??`—`),1),u(`pre`,null,i(lc(e.evidenceJson)),1)]),u(`div`,xi,[e.status===`draft`||e.status===`rejected`?(s(),d(`button`,{key:0,class:`btn small`,disabled:C.value,onClick:t=>$o(e)},` 提交 `,8,Si)):m(``,!0),e.status===`submitted`?(s(),d(`button`,{key:1,class:`btn small ghost`,disabled:C.value,onClick:t=>es(e,`reviewed`)},` 复核通过 `,8,Ci)):m(``,!0),e.status===`submitted`?(s(),d(`button`,{key:2,class:`btn small danger`,disabled:C.value,onClick:t=>es(e,`rejected`)},` 驳回 `,8,wi)):m(``,!0),e.status===`reviewed`?(s(),d(`button`,{key:3,class:`btn small`,disabled:C.value,onClick:t=>ts(e)},` 申请验收 `,8,Ti)):m(``,!0)])]))),128))],64))),128))],512),[[v,U.value===`deliverables`]]),p(u(`section`,Ei,[u(`header`,Di,[a[112]||=u(`h2`,null,`待审批`,-1),u(`span`,Oi,i(Bo.value.length)+` 项待决定`,1)]),Bo.value.length?m(``,!0):(s(),d(`p`,ki,` 无待审批。 `)),u(`div`,Ai,[(s(!0),d(f,null,c(Bo.value,e=>(s(),d(`article`,{key:e.id,class:`approval`},[u(`header`,ji,[u(`span`,Mi,i(nc(e.kind)),1),u(`span`,Ni,i(e.subjectId.slice(0,8)),1),e.expiresAt?(s(),d(`span`,Pi,`到期 `+i(Z(e.expiresAt)),1)):m(``,!0)]),uc(e)?(s(),d(`pre`,Fi,i(uc(e)),1)):m(``,!0),u(`div`,Ii,[u(`button`,{class:`btn small`,disabled:C.value,onClick:t=>ns(e,!0)},` 批准 `,8,Li),u(`button`,{class:`btn small danger`,disabled:C.value,onClick:t=>ns(e,!1)},` 拒绝 `,8,Ri)])]))),128))])],512),[[v,U.value===`approvals`]]),p(u(`section`,zi,[u(`header`,Bi,[a[113]||=u(`h2`,null,`审批历史`,-1),u(`span`,Vi,i(ws.value.length)+` 条`,1)]),ws.value.length?m(``,!0):(s(),d(`p`,Hi,` 暂无审批记录。 `)),u(`ul`,Ui,[(s(!0),d(f,null,c(ws.value.slice(0,50),e=>(s(),d(`li`,{key:e.id},[u(`span`,Wi,i(nc(e.kind)),1),u(`span`,Gi,i(e.subjectId.slice(0,8)),1),u(`span`,{class:t([`badge`,e.status])},i(X(e.status)),3),e.payloadJson&&e.payloadJson!==`{}`?(s(),d(`span`,Ki,i(e.payloadJson.slice(0,140))+i(e.payloadJson.length>140?`…`:``),1)):m(``,!0),u(`code`,qi,i(e.expiresAt?Z(e.expiresAt):``),1)]))),128))])],512),[[v,U.value===`approvals`]]),p(u(`section`,Ji,[u(`header`,Yi,[a[114]||=u(`h2`,null,`决策与事件`,-1),u(`span`,Xi,i(q.value.length)+` 条 · events + decisions 统一时间线`,1),a[115]||=u(`span`,{class:`spacer`},null,-1),u(`button`,{class:`btn small ghost`,disabled:J.value,onClick:a[23]||=e=>$(!0)},` 刷新 `,8,Zi)]),!q.value.length&&!J.value?(s(),d(`p`,Qi,` 暂无活动记录。 `)):m(``,!0),u(`ul`,$i,[(s(!0),d(f,null,c(q.value,e=>(s(),d(`li`,{key:`${e.kind}-${e.id}`,class:`timeline-row`},[u(`span`,{class:t([`timeline-dot`,e.kind]),"aria-hidden":`true`},null,2),u(`div`,ea,[u(`div`,ta,[u(`b`,null,i(ic(e.type)),1),u(`span`,na,i(e.kind),1),e.state?(s(),d(`span`,ra,i(e.state),1)):m(``,!0),e.kind===`decision`&&e.type===`dispatch.proposed`&&e.state===`proposed`?(s(),d(`button`,{key:1,class:`btn tiny green`,disabled:C.value,onClick:t=>rs(e.id)},` 应用提案 `,8,ia)):m(``,!0),u(`span`,aa,i(Z(e.at)),1)]),u(`div`,oa,[e.channelId?(s(),d(`span`,sa,i(Y(e.channelId)),1)):m(``,!0),e.workItemId?(s(),d(`span`,ca,`work `+i(e.workItemId.slice(0,8)),1)):m(``,!0),e.reason?(s(),d(`span`,la,i(e.reason),1)):m(``,!0),e.traceId?(s(),d(`span`,ua,`trace `+i(e.traceId.slice(0,10)),1)):m(``,!0)]),e.payload&&Object.keys(e.payload).length?(s(),d(`details`,da,[a[116]||=u(`summary`,null,`payload`,-1),u(`pre`,null,i(JSON.stringify(e.payload,null,2)),1)])):m(``,!0)])]))),128))]),u(`div`,fa,[Rs.value?(s(),d(`button`,{key:0,class:`btn small ghost`,disabled:J.value,onClick:a[24]||=e=>$(!1)},i(J.value?`加载中…`:`加载更多`),9,pa)):q.value.length?(s(),d(`span`,ma,`已经到底了`)):m(``,!0)])],512),[[v,U.value===`events`]]),Ns.value?(s(),d(`div`,{key:0,class:`drawer-mask`,onClick:g(fc,[`self`])},[u(`aside`,ha,[u(`header`,ga,[a[117]||=u(`h2`,null,`执行链`,-1),u(`span`,_a,i(Ns.value.slice(0,8))+`…`,1),a[118]||=u(`span`,{class:`spacer`},null,-1),u(`button`,{class:`btn small ghost`,onClick:fc},` 关闭 `)]),Ps.value?(s(),d(`p`,va,` 加载执行链… `)):K.value?(s(),d(f,{key:1},[u(`h3`,null,i(K.value.workItem.title),1),u(`div`,ya,[u(`span`,{class:t([`badge`,Vs(K.value.workItem.stage)])},i(Bs(K.value.workItem.stage)),3),u(`span`,ba,i(K.value.workItem.state)+` · attempt `+i(K.value.workItem.attemptCount)+`/`+i(K.value.workItem.maxAttempts),1),u(`span`,xa,i(Y(K.value.workItem.channelId)),1)]),K.value.workItem.readiness.reason?(s(),d(`p`,Sa,i(K.value.workItem.readiness.waitingOn)+` · `+i(K.value.workItem.readiness.reason),1)):m(``,!0),K.value.workItem.acceptance.length?(s(),d(`p`,Ca,` 验收标准:`+i(K.value.workItem.acceptance.join(`;`)),1)):m(``,!0),K.value.workItem.brief?(s(),d(`p`,wa,i(K.value.workItem.brief),1)):m(``,!0),a[119]||=u(`h4`,null,`尝试链`,-1),K.value.attempts.length?m(``,!0):(s(),d(`p`,Ta,` 尚未派发。 `)),(s(!0),d(f,null,c(K.value.attempts,e=>(s(),d(`div`,{key:e.id,class:`attempt`,"data-testid":`exec-attempt-${e.attemptNo}`},[u(`div`,Da,[u(`strong`,null,`Attempt #`+i(e.attemptNo),1),u(`span`,Oa,i(e.state),1),u(`code`,null,i(e.channelTaskId?e.channelTaskId.slice(0,8):`no-task`),1),e.failureClass?(s(),d(`span`,ka,i(e.failureClass),1)):m(``,!0),u(`span`,Aa,i(Z(e.createdAt)),1)]),e.task?(s(),d(f,{key:0},[u(`div`,ja,` root `+i(e.task.state)+` · `+i(e.task.progress)+`% · assignee `+i(e.task.assigneeId.slice(0,8))+i(e.task.closeReason?` · ${e.task.closeReason}`:``),1),e.task.artifacts.length?(s(),d(`ul`,Ma,[(s(!0),d(f,null,c(e.task.artifacts,e=>(s(),d(`li`,{key:e.artifactId},[u(`code`,null,i(e.name||e.artifactId),1),u(`span`,Na,i(e.bytes)+`B · sha `+i(e.sha256.slice(0,12))+`…`,1)]))),128))])):(s(),d(`p`,Pa,` 无 artifact `))],64)):m(``,!0),e.workers.length?(s(),d(`div`,Fa,[u(`div`,Ia,` worker 子任务(`+i(e.workers.length)+`) `,1),(s(!0),d(f,null,c(e.workers,e=>(s(),d(`div`,{key:e.id,class:`worker`},[u(`span`,null,i(e.title),1),u(`span`,La,i(e.state),1),u(`span`,Ra,i(e.progress)+`% · `+i(e.artifacts.length)+` artifacts`,1)]))),128))])):m(``,!0)],8,Ea))),128)),a[120]||=u(`h4`,null,`成果与验收链`,-1),K.value.results.length?m(``,!0):(s(),d(`p`,za,` 尚无成果(root 完成后自动生成 draft)。 `)),(s(!0),d(f,null,c(K.value.results,e=>(s(),d(`div`,{key:e.id,class:`result`,"data-testid":`exec-result-${e.version}`},[u(`div`,Va,[u(`strong`,null,`v`+i(e.version)+` `+i(e.title),1),u(`span`,{class:t([`badge`,e.status])},i(X(e.status)),3),e.reworkRequired?(s(),d(`span`,Ha,`需返工`)):m(``,!0),e.supersedesId?(s(),d(`span`,Ua,`supersedes `+i(e.supersedesId.slice(0,8))+`…`,1)):m(``,!0)]),u(`p`,Wa,i(e.summary.slice(0,800)),1),u(`div`,Ga,` evidence `+i(e.evidence.length)+` · sha `+i(e.contentSha256.slice(0,12))+`… · verified `+i(e.evidenceVerifiedAt??`—`),1),(s(!0),d(f,null,c(e.reviews,e=>(s(),d(`div`,{key:String(e.id),class:`muted`},` L1 `+i(e.verdict)+` · `+i(e.reviewerKind)+` · `+i(e.reviewerChannelId)+` · `+i(e.note||``),1))),128)),e.inputs.length?(s(),d(`div`,Ka,` 消费上游:`+i(e.inputs.map(e=>String(e.inputResultId)).join(`, `)),1)):m(``,!0)],8,Ba))),128)),a[121]||=u(`h4`,null,`事件`,-1),u(`ul`,qa,[(s(!0),d(f,null,c(K.value.events.slice(-20),e=>(s(),d(`li`,{key:e.id},[u(`span`,null,i(ic(e.type)),1),u(`span`,Ja,i(Z(e.at)),1)]))),128))])],64)):m(``,!0)])])):m(``,!0)],64))]),W.value?(s(),d(`aside`,Ya,[u(`div`,Xa,[u(`div`,Za,[a[122]||=h(` 项目快照 `,-1),u(`span`,Qa,i(W.value.project.routingPolicy),1)]),u(`div`,$a,[u(`div`,eo,[u(`b`,null,i(W.value.summary.ready),1),a[123]||=u(`span`,null,`就绪`,-1)]),u(`div`,to,[u(`b`,null,i(W.value.summary.inFlight),1),a[124]||=u(`span`,null,`执行中`,-1)]),u(`div`,no,[u(`b`,null,i(W.value.summary.waiting),1),a[125]||=u(`span`,null,`等待`,-1)]),u(`div`,ro,[u(`b`,null,i(W.value.summary.blocked),1),a[126]||=u(`span`,null,`阻塞`,-1)])]),u(`div`,io,[u(`div`,ao,[a[127]||=u(`span`,null,`工作项完成`,-1),u(`b`,null,i(oc.value)+`%`,1)]),u(`div`,oo,[u(`i`,{style:n({width:`${oc.value}%`})},null,4)]),u(`div`,so,[a[128]||=u(`span`,null,`交付物签核`,-1),u(`b`,null,i(sc.value)+`%`,1)]),u(`div`,co,[u(`i`,{style:n({width:`${sc.value}%`})},null,4)])]),u(`div`,lo,[u(`span`,null,`plan v`+i(W.value.project.planVersion),1),u(`span`,null,`ledger `+i(W.value.kernel.ledger.count),1),u(`span`,null,i(Z(W.value.generatedAt)),1)])]),(s(!0),d(f,null,c(Hs.value,e=>(s(),d(`div`,{key:e.channel.channelId,class:`ctx-card`},[u(`div`,uo,[u(`span`,fo,i(e.channel.name),1),u(`span`,{class:t([`badge`,e.channel.enabled?`green`:`gray`])},i(e.channel.enabled?`启用`:`停用`),3)]),u(`div`,po,[h(i(e.channel.inFlight)+` 执行 · `+i(e.channel.ready)+` 就绪 `,1),e.channel.sessions?.length?(s(),d(f,{key:0},[h(` · `+i(e.channel.sessions.length)+` 任务会话 `,1)],64)):m(``,!0)]),u(`div`,mo,[(s(!0),d(f,null,c(e.items.slice(0,4),e=>(s(),d(`div`,{key:e.id,class:`ctx-item`,role:`button`,tabindex:`0`,onClick:t=>dc(e.id),onKeydown:ce(t=>dc(e.id),[`enter`])},[u(`span`,go,i(e.title),1),u(`span`,{class:t([`badge`,Vs(e.stage)])},i(Bs(e.stage)),3)],40,ho))),128)),e.items.length?m(``,!0):(s(),d(`p`,_o,` 无工作项 `))])]))),128)),u(`div`,vo,[u(`div`,yo,[a[129]||=h(` 成员 `,-1),u(`span`,bo,i(Lo.value.length),1)]),u(`div`,xo,[a[131]||=u(`span`,{class:`member-avatar`},`OW`,-1),u(`div`,So,[a[130]||=u(`strong`,null,`owner`,-1),u(`span`,Co,i(T.value?.ownerUserId?.slice(0,8)),1)])]),(s(!0),d(f,null,c(Lo.value,e=>(s(),d(`div`,{key:e.userId,class:`member-row`},[u(`span`,wo,i(e.role.slice(0,2).toUpperCase()),1),u(`div`,To,[u(`strong`,null,i(e.role),1),u(`span`,Eo,i(e.userId.slice(0,8)),1)])]))),128)),Lo.value.length?m(``,!0):(s(),d(`p`,Do,` 仅 owner(成员可读,审批权可由 approver 持有) `))]),u(`div`,Oo,[a[132]||=u(`div`,{class:`ctx-head`},[h(` 项目健康 `),u(`span`,{class:`badge gray mono`},`kernel`)],-1),(s(!0),d(f,null,c(W.value.kernel.health,e=>(s(),d(`div`,{key:String(e.component),class:`health-row`},[u(`span`,{class:t([`health-dot`,e.status===`ok`?`ok`:`bad`]),"aria-hidden":`true`},null,2),u(`span`,ko,i(e.component),1),u(`span`,Ao,i(e.status),1)]))),128)),W.value.kernel.health.length?m(``,!0):(s(),d(`p`,jo,` 暂无心跳(项目激活后内核组件会写入) `)),W.value.kernel.effects&&Object.keys(W.value.kernel.effects).length?(s(),d(`div`,Mo,[(s(!0),d(f,null,c(W.value.kernel.effects,(e,t)=>(s(),d(`span`,{key:t,class:`effect-chip`},i(t)+` `+i(e),1))),128))])):m(``,!0)])])):m(``,!0)])}}}),[[`__scopeId`,`data-v-034769a4`]]);export{b as default};
|