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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 晋升/回滚执行面(WP-B3/B4)—— 门判定 + 状态迁移 + 审计。
|
|
3
|
+
*
|
|
4
|
+
* 调用方只有两类:
|
|
5
|
+
* - REST(channel owner/admin,即**人**在审批)—— 本文件不暴露给 Agent 工具面;
|
|
6
|
+
* - bench 晋升脚本(WP-B2,附配对结果)。
|
|
7
|
+
* 因此「Agent 自己给自己晋级」在结构上不可达(不在 host-tools 白名单)。
|
|
8
|
+
*/
|
|
9
|
+
import type { DatabaseSync } from 'node:sqlite'
|
|
10
|
+
import { createMemoryRepo } from '../db/memory.repo'
|
|
11
|
+
import { createImprovementActionRepo } from '../db/improvement-action.repo'
|
|
12
|
+
import { recordOps } from '../ops/ops'
|
|
13
|
+
import { createHarnessProfileRepo } from './harness-profile'
|
|
14
|
+
import { evaluateExperienceGate, evaluateProfileGate, rollbackTarget, type PairedBenchResult } from './gates'
|
|
15
|
+
|
|
16
|
+
export interface PromoteResult<S extends string> {
|
|
17
|
+
ok: boolean
|
|
18
|
+
next?: S
|
|
19
|
+
reasons: string[]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** 经验条目晋升(candidate→validated)或退休(→retired) */
|
|
23
|
+
export function promoteExperience(
|
|
24
|
+
db: DatabaseSync,
|
|
25
|
+
input: { memoryId: string, channelId: string, to: 'validated' | 'retired', actor: string, actorName?: string },
|
|
26
|
+
): PromoteResult<'validated' | 'retired'> {
|
|
27
|
+
const repo = createMemoryRepo(db)
|
|
28
|
+
const row = repo.getById(input.memoryId)
|
|
29
|
+
if (!row || row.channelId !== input.channelId || row.kind !== 'experience') {
|
|
30
|
+
return { ok: false, reasons: ['经验条目不存在或不属于该频道'] }
|
|
31
|
+
}
|
|
32
|
+
const decision = evaluateExperienceGate(row, input.to)
|
|
33
|
+
if (!decision.allowed || !decision.next) return { ok: false, reasons: decision.reasons }
|
|
34
|
+
repo.markStatus(input.memoryId, decision.next)
|
|
35
|
+
// WP-C3:元层成效入表(哪类改进动作有效,由事实计数回答)
|
|
36
|
+
createImprovementActionRepo(db).record({
|
|
37
|
+
actionKind: 'experience_promote',
|
|
38
|
+
subjectKind: 'experience',
|
|
39
|
+
subjectId: input.memoryId,
|
|
40
|
+
channelId: input.channelId,
|
|
41
|
+
decision: decision.next === 'validated' ? 'promoted' : 'rejected',
|
|
42
|
+
decidedBy: input.actor,
|
|
43
|
+
detail: { reasons: decision.reasons, to: decision.next },
|
|
44
|
+
})
|
|
45
|
+
try {
|
|
46
|
+
recordOps({
|
|
47
|
+
actor: input.actor, actorName: input.actorName ?? input.actor, actorKind: 'agent',
|
|
48
|
+
action: `experience.promote.${decision.next}`,
|
|
49
|
+
kind: 'system', targetKind: 'memory', targetId: input.memoryId,
|
|
50
|
+
summary: `经验条目 ${input.memoryId.slice(0, 8)} → ${decision.next}(${decision.reasons.join(';')})`,
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
catch { /* 审计失败不影响晋升 */ }
|
|
54
|
+
return { ok: true, next: decision.next, reasons: decision.reasons }
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** Harness Profile 晋升(→shadow / →active,active 需配对结果) */
|
|
58
|
+
export function promoteProfile(
|
|
59
|
+
db: DatabaseSync,
|
|
60
|
+
input: { profileId: string, channelId: string, to: 'shadow' | 'active', actor: string, actorName?: string, bench?: PairedBenchResult | null },
|
|
61
|
+
): PromoteResult<'shadow' | 'active' | 'superseded'> {
|
|
62
|
+
const repo = createHarnessProfileRepo(db)
|
|
63
|
+
const row = repo.get(input.profileId)
|
|
64
|
+
if (!row || row.channelId !== input.channelId) return { ok: false, reasons: ['profile 不存在或不属于该频道'] }
|
|
65
|
+
const decision = evaluateProfileGate(row, input.to, input.bench ?? null)
|
|
66
|
+
if (!decision.allowed || !decision.next) return { ok: false, reasons: decision.reasons }
|
|
67
|
+
repo.markStatus(input.profileId, decision.next)
|
|
68
|
+
createImprovementActionRepo(db).record({
|
|
69
|
+
actionKind: 'profile_promote',
|
|
70
|
+
subjectKind: 'harness_profile',
|
|
71
|
+
subjectId: input.profileId,
|
|
72
|
+
channelId: input.channelId,
|
|
73
|
+
decision: decision.next === 'active' ? 'promoted' : 'accepted',
|
|
74
|
+
outcomeDelta: input.bench?.primaryDelta ?? null,
|
|
75
|
+
decidedBy: input.actor,
|
|
76
|
+
detail: { reasons: decision.reasons, to: decision.next, bench: input.bench ?? null },
|
|
77
|
+
})
|
|
78
|
+
try {
|
|
79
|
+
recordOps({
|
|
80
|
+
actor: input.actor, actorName: input.actorName ?? input.actor, actorKind: 'agent',
|
|
81
|
+
action: `harness.profile.${decision.next}`,
|
|
82
|
+
kind: 'system', targetKind: 'harness_profile', targetId: input.profileId,
|
|
83
|
+
summary: `Harness Profile v${row.version} → ${decision.next}(${decision.reasons.join(';')})`,
|
|
84
|
+
})
|
|
85
|
+
}
|
|
86
|
+
catch { /* 审计失败不影响晋升 */ }
|
|
87
|
+
return { ok: true, next: decision.next, reasons: decision.reasons }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Profile 自动回滚(WP-B4):把当前 active 的上一版本重新激活。
|
|
92
|
+
* 触发面:REST 手动 / 劣化告警脚本;不自动静默执行(写面永远过人)。
|
|
93
|
+
*/
|
|
94
|
+
export function rollbackProfile(
|
|
95
|
+
db: DatabaseSync,
|
|
96
|
+
input: { channelId: string, actor: string, actorName?: string },
|
|
97
|
+
): PromoteResult<'active'> & { targetId?: string } {
|
|
98
|
+
const repo = createHarnessProfileRepo(db)
|
|
99
|
+
const active = repo.activeOf(input.channelId)
|
|
100
|
+
if (!active) return { ok: false, reasons: ['当前没有 active profile,无需回滚'] }
|
|
101
|
+
const targetId = rollbackTarget(repo.listByChannel(input.channelId, 50), active.id)
|
|
102
|
+
if (!targetId) return { ok: false, reasons: ['没有更早版本可回滚(唯一版本)'] }
|
|
103
|
+
repo.markStatus(targetId, 'active')
|
|
104
|
+
createImprovementActionRepo(db).record({
|
|
105
|
+
actionKind: 'profile_rollback',
|
|
106
|
+
subjectKind: 'harness_profile',
|
|
107
|
+
subjectId: targetId,
|
|
108
|
+
channelId: input.channelId,
|
|
109
|
+
decision: 'rolled_back',
|
|
110
|
+
decidedBy: input.actor,
|
|
111
|
+
detail: { from: active.id, to: targetId, fromVersion: active.version },
|
|
112
|
+
})
|
|
113
|
+
try {
|
|
114
|
+
recordOps({
|
|
115
|
+
actor: input.actor, actorName: input.actorName ?? input.actor, actorKind: 'agent',
|
|
116
|
+
action: 'harness.profile.rollback',
|
|
117
|
+
kind: 'system', targetKind: 'harness_profile', targetId,
|
|
118
|
+
summary: `Harness Profile 回滚:v${active.version} → 上一版本(${targetId.slice(0, 10)})`,
|
|
119
|
+
})
|
|
120
|
+
}
|
|
121
|
+
catch { /* 审计失败不影响回滚 */ }
|
|
122
|
+
return { ok: true, next: 'active', targetId, reasons: [`回滚到 ${targetId}`] }
|
|
123
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 插件热重载的原子化辅助(WP-C0)。
|
|
3
|
+
*
|
|
4
|
+
* 问题:旧实现在装载前 `clearPluginDrivers/clearDecoders/clearPluginWriteDrivers`,
|
|
5
|
+
* 在「清空 → 装载完成」窗口内(秒级~数十秒)插件驱动全部消失,期间的数据采集/
|
|
6
|
+
* 写控调用会以「未知驱动」失败(生产闭环曾撞窗)。
|
|
7
|
+
*
|
|
8
|
+
* 新语义(load-then-prune,先装后剪):
|
|
9
|
+
* 1. 装载前只**快照**注册表名字,不清空;同名驱动装载时幂等覆盖(后注册者胜);
|
|
10
|
+
* 2. 装载成功后按差集剪除「本轮未再注册」的旧驱动/解码器 —— 停用插件立即失效,
|
|
11
|
+
* 但窗口内始终有一套可用驱动(旧版或新版);
|
|
12
|
+
* 3. 装载失败 → 恢复旧插件表快照(宁可保留旧版,也不留半装载状态)。
|
|
13
|
+
*
|
|
14
|
+
* 本模块只提供纯函数,便于单测;副作用调用留在 reload.mjs。
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 计算需要剪除的名字:装载前存在、装载后不再存在。
|
|
19
|
+
* @param {string[]} before 装载前的注册名
|
|
20
|
+
* @param {string[]} after 装载后的注册名
|
|
21
|
+
* @returns {string[]} 需要 delete 的名字
|
|
22
|
+
*/
|
|
23
|
+
export function staleNames(before, after) {
|
|
24
|
+
const now = new Set(after)
|
|
25
|
+
return [...new Set(before)].filter(name => !now.has(name))
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 对 Map 注册表执行剪除(in-place);返回实际删除数量。
|
|
30
|
+
* 失败静默(注册表可能已被其他路径清理)。
|
|
31
|
+
* @param {Map<string, unknown>} registry
|
|
32
|
+
* @param {string[]} names
|
|
33
|
+
*/
|
|
34
|
+
export function pruneRegistry(registry, names) {
|
|
35
|
+
let removed = 0
|
|
36
|
+
for (const name of names) {
|
|
37
|
+
try {
|
|
38
|
+
if (registry.delete(name)) removed += 1
|
|
39
|
+
}
|
|
40
|
+
catch { /* 单条删除失败不影响其余 */ }
|
|
41
|
+
}
|
|
42
|
+
return removed
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 快照 + 清空(供 reload.mjs 在装载前调用,保留回滚材料)。
|
|
47
|
+
* 返回 `{ plugins, failures, routes }`;routes 由调用方重新赋值后旧表仅作回滚参考。
|
|
48
|
+
* @param {{ plugins: Map<string, unknown>, failures?: unknown[], routes?: unknown }} host
|
|
49
|
+
*/
|
|
50
|
+
export function snapshotPluginState(host) {
|
|
51
|
+
return {
|
|
52
|
+
plugins: new Map(host.plugins ?? []),
|
|
53
|
+
failures: Array.isArray(host.failures) ? [...host.failures] : [],
|
|
54
|
+
routes: host.routes,
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 装载失败时回滚到快照(保留旧版插件可用,而不是留下半装载状态)。
|
|
60
|
+
* @param {{ plugins: Map<string, unknown>, failures?: unknown[], routes?: unknown }} host
|
|
61
|
+
* @param {ReturnType<typeof snapshotPluginState>} snapshot
|
|
62
|
+
*/
|
|
63
|
+
export function restorePluginState(host, snapshot) {
|
|
64
|
+
host.plugins.clear()
|
|
65
|
+
for (const [name, plugin] of snapshot.plugins) host.plugins.set(name, plugin)
|
|
66
|
+
host.failures = snapshot.failures
|
|
67
|
+
if (snapshot.routes) host.routes = snapshot.routes
|
|
68
|
+
}
|
|
@@ -9,6 +9,7 @@ import { loadAllPlugins } from './load.mjs'
|
|
|
9
9
|
import { modePaths } from './config.mjs'
|
|
10
10
|
import { readDisabledSet } from './state.mjs'
|
|
11
11
|
import { syncPluginSettings } from './rollback.mjs'
|
|
12
|
+
import { pruneRegistry, restorePluginState, snapshotPluginState, staleNames } from './reload-swap.mjs'
|
|
12
13
|
|
|
13
14
|
export async function reloadPluginHost() {
|
|
14
15
|
const host = getPluginHost()
|
|
@@ -51,29 +52,34 @@ export async function doReload(host) {
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
const prevNames = [...host.plugins.keys()]
|
|
54
|
-
//
|
|
55
|
-
//
|
|
55
|
+
// WP-C0 原子化:装载前**只快照、不清空**驱动/解码器注册表(窗口内始终有一套可用驱动);
|
|
56
|
+
// 装载成功后按差集剪除「本轮未再注册」的旧项。同名驱动幂等覆盖(后注册者胜)。
|
|
57
|
+
const beforeDrivers = { daq: [], dcw: [], decoders: [] }
|
|
58
|
+
let daqDrivers = null
|
|
59
|
+
let dcwDrivers = null
|
|
60
|
+
let decoders = null
|
|
56
61
|
try {
|
|
57
|
-
|
|
58
|
-
daqDrivers.
|
|
62
|
+
daqDrivers = await import('@/server/services/workshop/daq/drivers')
|
|
63
|
+
beforeDrivers.daq = daqDrivers.listPluginDrivers()
|
|
59
64
|
}
|
|
60
|
-
catch { /* daq 未装载(桥排队中)
|
|
65
|
+
catch { /* daq 未装载(桥排队中):注册表为空,无需快照 */ }
|
|
61
66
|
try {
|
|
62
|
-
|
|
63
|
-
dcwDrivers.
|
|
67
|
+
dcwDrivers = await import('@/server/services/workshop/dcw/drivers')
|
|
68
|
+
beforeDrivers.dcw = dcwDrivers.listPluginWriteDrivers()
|
|
64
69
|
}
|
|
65
70
|
catch { /* dcw 未装载:同上 */ }
|
|
66
|
-
// 插件解码器同样先清空:停用/卸载的 decoder 立即失效,本轮装载成功的插件重新注册
|
|
67
71
|
try {
|
|
68
|
-
|
|
69
|
-
decoders.
|
|
72
|
+
decoders = await import('@/server/services/workshop/daq/decoders')
|
|
73
|
+
beforeDrivers.decoders = decoders.listDecoders()
|
|
70
74
|
}
|
|
71
|
-
catch { /* daq
|
|
75
|
+
catch { /* daq 未装载:同上 */ }
|
|
72
76
|
// 工具注销延后:先装载新集、后清「本轮未再装载」的旧插件工具。
|
|
73
77
|
// 原先在装载前就全部注销 → 重载窗口内(秒级~数十秒)所有插件工具"未知工具",
|
|
74
78
|
// 期间到达的 Agent 工具调用(daq:sample 自动诊断/kb_store 等)被误拒
|
|
75
79
|
// (实测生产闭环 Stage D 撞窗失败)。同名工具装载时按"后注册者胜"覆盖,无残留。
|
|
76
80
|
const ompTools = await import('@/server/services/workshop/agents/plugin-tools').catch(() => null)
|
|
81
|
+
// 插件表快照(回滚材料):装载失败时恢复旧版,而不是留下半装载状态
|
|
82
|
+
const snapshot = snapshotPluginState(host)
|
|
77
83
|
host.plugins.clear()
|
|
78
84
|
host.routes = createRouteTable()
|
|
79
85
|
host.failures = []
|
|
@@ -84,7 +90,31 @@ export async function doReload(host) {
|
|
|
84
90
|
// init.mjs 已按 resolveRunMode 解析正确根并存 host.paths;重载必须复用,不得自算。
|
|
85
91
|
const reloadPaths = host.paths
|
|
86
92
|
?? { home: modePaths(host.cwd).homeDir, configRoot: join(host.cwd, '.AgentWorkShop'), dataDir: join(host.cwd, '.AgentWorkShop', 'data') }
|
|
87
|
-
|
|
93
|
+
try {
|
|
94
|
+
await loadAllPlugins(host, { config: host.config, settingsPath: null, paths: reloadPaths })
|
|
95
|
+
}
|
|
96
|
+
catch (err) {
|
|
97
|
+
restorePluginState(host, snapshot)
|
|
98
|
+
host.logger.warn('插件装载失败,已回滚到上一版插件表:', err?.message)
|
|
99
|
+
throw err
|
|
100
|
+
}
|
|
101
|
+
// load-then-prune:装载成功后再剪除本轮未再注册的旧驱动/解码器(停用插件立即失效,
|
|
102
|
+
// 但窗口内不会出现"所有插件驱动消失")
|
|
103
|
+
try {
|
|
104
|
+
if (daqDrivers) pruneRegistry(daqDrivers.pluginRegistry(), staleNames(beforeDrivers.daq, daqDrivers.listPluginDrivers()))
|
|
105
|
+
}
|
|
106
|
+
catch { /* 剪除失败不影响重载结果(残留驱动对已停用插件无调用入口) */ }
|
|
107
|
+
try {
|
|
108
|
+
if (dcwDrivers) pruneRegistry(dcwDrivers.pluginRegistry(), staleNames(beforeDrivers.dcw, dcwDrivers.listPluginWriteDrivers()))
|
|
109
|
+
}
|
|
110
|
+
catch { /* 同上 */ }
|
|
111
|
+
try {
|
|
112
|
+
// 解码器按 owner(插件名)撤销:只清「本轮未再装载」的插件,内置声明式解码不受影响
|
|
113
|
+
if (decoders) {
|
|
114
|
+
for (const gone of prevNames.filter(name => !host.plugins.has(name))) decoders.clearDecoders(gone)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
catch { /* 同上 */ }
|
|
88
118
|
// 装载中途失败(setup 抛错)的插件可能留下半注册工具,兜底再清一次
|
|
89
119
|
for (const prev of prevNames) {
|
|
90
120
|
if (!host.plugins.has(prev)) {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 判据 DSL 的数值扩展(WP-C4)—— `metric.*` 判据。
|
|
3
|
+
*
|
|
4
|
+
* 语法(大小写不敏感;key 与 metrics 表的键一致):
|
|
5
|
+
* metric.within:<key>=<target>±<tol> |actual - target| <= tol
|
|
6
|
+
* metric.lt:<key>=<value> actual < value
|
|
7
|
+
* metric.gt:<key>=<value> actual > value
|
|
8
|
+
*
|
|
9
|
+
* **fail-closed**:metrics 缺失该 key / 非有限数 / 语法不合法 → 判失败(阻断),
|
|
10
|
+
* 绝不以"没有证据"当作"通过"。指标来源必须是独立观测(回读/DAQ),
|
|
11
|
+
* 不接受 Agent 自述——由调用方保证传入的 metrics 不来自 payload 自报。
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export interface MetricCriterionResult {
|
|
15
|
+
/** 是否识别为 metric 判据(false = 交给后续判据类型) */
|
|
16
|
+
matched: boolean
|
|
17
|
+
pass: boolean
|
|
18
|
+
detail: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const WITHIN = /^metric\.within[::]\s*([\w.$-]+)\s*=\s*(-?\d+(?:\.\d+)?)\s*±\s*(-?\d+(?:\.\d+)?)$/i
|
|
22
|
+
const LT = /^metric\.lt[::]\s*([\w.$-]+)\s*=\s*(-?\d+(?:\.\d+)?)$/i
|
|
23
|
+
const GT = /^metric\.gt[::]\s*([\w.$-]+)\s*=\s*(-?\d+(?:\.\d+)?)$/i
|
|
24
|
+
|
|
25
|
+
/** 解析并判定一条 metric 判据;非 metric 语法返回 matched=false */
|
|
26
|
+
export function evaluateMetricCriterion(criterion: string, metrics: Record<string, number> | undefined): MetricCriterionResult {
|
|
27
|
+
const c = criterion.trim()
|
|
28
|
+
const within = c.match(WITHIN)
|
|
29
|
+
if (within) {
|
|
30
|
+
const [, key, targetRaw, tolRaw] = within
|
|
31
|
+
const target = Number(targetRaw)
|
|
32
|
+
const tol = Math.abs(Number(tolRaw))
|
|
33
|
+
return judge(key!, metrics, actual => Math.abs(actual - target) <= tol, `|${key} - ${target}| <= ${tol}`)
|
|
34
|
+
}
|
|
35
|
+
const lt = c.match(LT)
|
|
36
|
+
if (lt) {
|
|
37
|
+
const [, key, v] = lt
|
|
38
|
+
return judge(key!, metrics, actual => actual < Number(v), `${key} < ${v}`)
|
|
39
|
+
}
|
|
40
|
+
const gt = c.match(GT)
|
|
41
|
+
if (gt) {
|
|
42
|
+
const [, key, v] = gt
|
|
43
|
+
return judge(key!, metrics, actual => actual > Number(v), `${key} > ${v}`)
|
|
44
|
+
}
|
|
45
|
+
return { matched: false, pass: false, detail: '' }
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function judge(key: string, metrics: Record<string, number> | undefined, fn: (actual: number) => boolean, expectation: string): MetricCriterionResult {
|
|
49
|
+
const raw = metrics?.[key]
|
|
50
|
+
if (typeof raw !== 'number' || !Number.isFinite(raw)) {
|
|
51
|
+
return { matched: true, pass: false, detail: `缺独立指标 ${key}(fail-closed;不接受自述值)` }
|
|
52
|
+
}
|
|
53
|
+
return { matched: true, pass: fn(raw), detail: `实际 ${key}=${raw};期望 ${expectation}` }
|
|
54
|
+
}
|
|
@@ -29,6 +29,11 @@ import {
|
|
|
29
29
|
import { createTaskRepo } from '../db/task.repo'
|
|
30
30
|
import { createChannelSessionRepo } from '../db/channel-session.repo'
|
|
31
31
|
import { createProjectKernelRepo } from '../db/project-kernel.repo'
|
|
32
|
+
import { createMemoryRepo } from '../db/memory.repo'
|
|
33
|
+
import { createImprovementRepo } from '../db/improvement.repo'
|
|
34
|
+
import { reflectExperience } from '../runtime/memory/reflector'
|
|
35
|
+
import { collectReviewFact } from '../runtime/memory/reflect-collector'
|
|
36
|
+
import { blindCheckForTask, blindMetricsForTask } from '../verify/blind-verifier'
|
|
32
37
|
import type { TaskRow } from '../db/database'
|
|
33
38
|
import { withTransaction } from '../db/transaction'
|
|
34
39
|
import { parseJson } from '../db/database'
|
|
@@ -38,6 +43,7 @@ import { AppError } from '../../../utils/errors'
|
|
|
38
43
|
import { argsDigest } from './digest'
|
|
39
44
|
import { PROJECT_GATED_WRITE_TOOL_NAMES } from './tool-surface'
|
|
40
45
|
import { evaluateWorkItemReadiness } from './readiness'
|
|
46
|
+
import { evaluateMetricCriterion } from './criteria-metrics'
|
|
41
47
|
import { selectReadyWithContext } from './route-dispatcher'
|
|
42
48
|
import { validateBlueprint, type ProjectBlueprint } from './blueprints.repo'
|
|
43
49
|
|
|
@@ -76,6 +82,26 @@ export interface ProjectWriteVerdict {
|
|
|
76
82
|
approvalId?: string
|
|
77
83
|
}
|
|
78
84
|
|
|
85
|
+
/**
|
|
86
|
+
* 项目列表派生摘要(GET /projects 追加字段,additive)。
|
|
87
|
+
* 列表页据此渲染进度/审批/频道数,不必对每个项目再打 observability(N+1)。
|
|
88
|
+
*/
|
|
89
|
+
export interface ProjectListSummary {
|
|
90
|
+
workItems: number
|
|
91
|
+
completedWorkItems: number
|
|
92
|
+
/** 0–1,完成工作项 / 全部工作项 */
|
|
93
|
+
progress: number
|
|
94
|
+
deliverables: number
|
|
95
|
+
requiredDeliverables: number
|
|
96
|
+
approvedDeliverables: number
|
|
97
|
+
/** 0–1,签核交付物 / 全部交付物 */
|
|
98
|
+
acceptanceProgress: number
|
|
99
|
+
channels: number
|
|
100
|
+
members: number
|
|
101
|
+
pendingApprovals: number
|
|
102
|
+
lastActivityAt: string
|
|
103
|
+
}
|
|
104
|
+
|
|
79
105
|
/** 项目持续开发:owner 在项目页把补充需求发给同一个 Project Leader。 */
|
|
80
106
|
export interface ProjectContinuationResult {
|
|
81
107
|
project: ProjectRow
|
|
@@ -206,6 +232,8 @@ export function evaluateCriteriaChecks(input: {
|
|
|
206
232
|
artifacts: ArtifactDigest[]
|
|
207
233
|
payloadJson?: string
|
|
208
234
|
artifactBacked: number
|
|
235
|
+
/** WP-C4:独立观测指标(回读/DAQ;**不得来自 Agent 自述**)。缺 key → 该判据 fail-closed 阻断 */
|
|
236
|
+
metrics?: Record<string, number>
|
|
209
237
|
}): CriteriaCheckResult {
|
|
210
238
|
const checks: CriteriaCheckResult['checks'] = []
|
|
211
239
|
const blockingFailures: string[] = []
|
|
@@ -251,6 +279,13 @@ export function evaluateCriteriaChecks(input: {
|
|
|
251
279
|
if (!pass) blockingFailures.push(c)
|
|
252
280
|
continue
|
|
253
281
|
}
|
|
282
|
+
// WP-C4:数值判据(独立观测指标;缺失即阻断,不接受自述值)
|
|
283
|
+
const metric = evaluateMetricCriterion(c, input.metrics)
|
|
284
|
+
if (metric.matched) {
|
|
285
|
+
checks.push({ criterion: c, pass: metric.pass, detail: metric.detail })
|
|
286
|
+
if (!metric.pass) blockingFailures.push(c)
|
|
287
|
+
continue
|
|
288
|
+
}
|
|
254
289
|
// 自然语言标准无法确定性判定 → advisory,交 L1 技术验收/人工。
|
|
255
290
|
checks.push({ criterion: c, pass: true, unknown: true, detail: 'advisory: 需 L1 技术验收判定' })
|
|
256
291
|
}
|
|
@@ -562,8 +597,36 @@ export class ProjectService {
|
|
|
562
597
|
this.kernelRepo = createProjectKernelRepo(db)
|
|
563
598
|
}
|
|
564
599
|
|
|
565
|
-
|
|
566
|
-
|
|
600
|
+
/**
|
|
601
|
+
* 项目列表。原行字段保持不变,追加列表页摘要(工作项/交付物/频道/待审批/最近活动)。
|
|
602
|
+
* 意图:项目中心首屏一屏说清"每个项目走到哪了",前端不再逐项目拉 observability。
|
|
603
|
+
*/
|
|
604
|
+
list(actor: ProjectActor): Array<ProjectRow & { summary: ProjectListSummary }> {
|
|
605
|
+
const rows = actor.role === 'admin' ? this.projects.listAll() : this.projects.listByOwner(actor.id)
|
|
606
|
+
return rows.map((p) => {
|
|
607
|
+
const items = this.workItems.listByProject(p.id)
|
|
608
|
+
const deliverables = this.deliverables.listByProject(p.id)
|
|
609
|
+
const channels = this.bindings.listByProject(p.id)
|
|
610
|
+
const events = this.events.listByProject(p.id)
|
|
611
|
+
const completed = items.filter(w => w.state === 'COMPLETED').length
|
|
612
|
+
const approved = deliverables.filter(d => d.status === 'approved' || d.status === 'waived').length
|
|
613
|
+
return {
|
|
614
|
+
...p,
|
|
615
|
+
summary: {
|
|
616
|
+
workItems: items.length,
|
|
617
|
+
completedWorkItems: completed,
|
|
618
|
+
progress: items.length > 0 ? Math.round((completed / items.length) * 100) / 100 : 0,
|
|
619
|
+
deliverables: deliverables.length,
|
|
620
|
+
requiredDeliverables: deliverables.filter(d => d.required === 1).length,
|
|
621
|
+
approvedDeliverables: approved,
|
|
622
|
+
acceptanceProgress: deliverables.length > 0 ? Math.round((approved / deliverables.length) * 100) / 100 : 0,
|
|
623
|
+
channels: channels.filter(c => c.bindingType !== 'task_instance').length,
|
|
624
|
+
members: this.members.listByProject(p.id).length,
|
|
625
|
+
pendingApprovals: this.approvals.listPending(p.id).length,
|
|
626
|
+
lastActivityAt: events.length > 0 ? events[events.length - 1]!.createdAt : p.updatedAt,
|
|
627
|
+
},
|
|
628
|
+
}
|
|
629
|
+
})
|
|
567
630
|
}
|
|
568
631
|
|
|
569
632
|
get(id: string, actor: ProjectActor): ProjectRow {
|
|
@@ -884,6 +947,17 @@ export class ProjectService {
|
|
|
884
947
|
return this.deliverables.listByProject(id)
|
|
885
948
|
}
|
|
886
949
|
|
|
950
|
+
/**
|
|
951
|
+
* 单交付物(主资源路径读面)。授权与列表同源:`get` 已按 owner/admin/member 判定可读,
|
|
952
|
+
* 这里只补「必须属于本项目」的归属校验,避免跨项目 id 越权读取。
|
|
953
|
+
*/
|
|
954
|
+
getDeliverable(id: string, deliverableId: string, actor: ProjectActor): ProjectDeliverableRow {
|
|
955
|
+
this.get(id, actor)
|
|
956
|
+
const row = this.deliverables.findById(deliverableId)
|
|
957
|
+
if (!row || row.projectId !== id) throw new AppError(404, 'NOT_FOUND', `交付物不存在或不属于该项目: ${deliverableId}`)
|
|
958
|
+
return row
|
|
959
|
+
}
|
|
960
|
+
|
|
887
961
|
createDeliverable(id: string, actor: ProjectActor, input: {
|
|
888
962
|
name: string
|
|
889
963
|
description?: string
|
|
@@ -964,6 +1038,14 @@ export class ProjectService {
|
|
|
964
1038
|
return this.workItems.listByProject(id)
|
|
965
1039
|
}
|
|
966
1040
|
|
|
1041
|
+
/** 单工作项(主资源路径读面)。授权与列表同源 + 归属校验(防跨项目 id 越权读取)。 */
|
|
1042
|
+
getWorkItem(id: string, workItemId: string, actor: ProjectActor): ProjectWorkItemRow {
|
|
1043
|
+
this.get(id, actor)
|
|
1044
|
+
const row = this.workItems.findById(workItemId)
|
|
1045
|
+
if (!row || row.projectId !== id) throw new AppError(404, 'NOT_FOUND', `工作项不存在或不属于该项目: ${workItemId}`)
|
|
1046
|
+
return row
|
|
1047
|
+
}
|
|
1048
|
+
|
|
967
1049
|
createWorkItem(id: string, actor: ProjectActor, input: {
|
|
968
1050
|
deliverableId: string
|
|
969
1051
|
channelId: string
|
|
@@ -2116,9 +2198,62 @@ export class ProjectService {
|
|
|
2116
2198
|
}
|
|
2117
2199
|
updated = this.results.findById(resultId)!
|
|
2118
2200
|
})
|
|
2201
|
+
// RSI 经验反射(WP-A2):L1 复核终态即沉淀经验(通过=正向产出,驳回=负向教训)。
|
|
2202
|
+
// 事务外 fire-and-forget:学习环失败绝不回滚复核。
|
|
2203
|
+
this.reflectReviewResult(resultId, decision === 'reviewed' ? 'approved' : 'rejected')
|
|
2119
2204
|
return updated
|
|
2120
2205
|
}
|
|
2121
2206
|
|
|
2207
|
+
/**
|
|
2208
|
+
* RSI 经验反射(WP-A2):评审终态 → 经验条目。
|
|
2209
|
+
* 证据锚点=resultId(+taskId/traceId);作用域由 validity_scope(line:<id>/product:<id>)决定,
|
|
2210
|
+
* line/product 一律 candidate(ADR-7),channel 缺省 active。
|
|
2211
|
+
*/
|
|
2212
|
+
private reflectReviewResult(resultId: string, verdict: 'approved' | 'rejected'): void {
|
|
2213
|
+
try {
|
|
2214
|
+
const fact = collectReviewFact(this.db, { resultId, verdict })
|
|
2215
|
+
if (!fact) return
|
|
2216
|
+
void reflectExperience(createMemoryRepo(this.db), null, fact).catch(() => {})
|
|
2217
|
+
// WP-D3:通过成果 → 知识入库候选(不自动写 KB;kb_agent ingest 自带 HITL)
|
|
2218
|
+
if (verdict === 'approved') {
|
|
2219
|
+
createImprovementRepo(this.db).create({
|
|
2220
|
+
kind: 'kb_ingest',
|
|
2221
|
+
channelId: fact.channelId,
|
|
2222
|
+
lineId: fact.lineId ?? '',
|
|
2223
|
+
sourceKind: 'review',
|
|
2224
|
+
sourceId: resultId,
|
|
2225
|
+
title: `知识入库候选:${fact.title}`,
|
|
2226
|
+
detail: `项目成果已通过评审(${fact.summary?.slice(0, 120) ?? '无摘要'});建议经 kb_agent ingest 入知识库(需人工审批)`,
|
|
2227
|
+
evidence: { resultId, ...(fact.taskId ? { taskIds: [fact.taskId] } : {}), ...(fact.traceId ? { traceId: fact.traceId } : {}) },
|
|
2228
|
+
})
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
catch { /* 学习环故障不影响复核 */ }
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* WP-D4:返工教训 → runbook 补充候选。
|
|
2236
|
+
* 触发点 = markResultRework(L1 驳回 / 上游 supersede 导致的下游返工);
|
|
2237
|
+
* 失败分类 CONTENT/CONTRACT 这类"内容/契约"返工最具写进 runbook 的价值。
|
|
2238
|
+
*/
|
|
2239
|
+
private proposeRunbookFromRework(resultId: string, reason: string): void {
|
|
2240
|
+
try {
|
|
2241
|
+
const result = this.results.findById(resultId)
|
|
2242
|
+
if (!result) return
|
|
2243
|
+
createImprovementRepo(this.db).create({
|
|
2244
|
+
kind: 'runbook',
|
|
2245
|
+
channelId: result.channelId,
|
|
2246
|
+
lineId: result.lineId ?? '',
|
|
2247
|
+
sourceKind: 'rework',
|
|
2248
|
+
sourceId: resultId,
|
|
2249
|
+
title: `runbook 补充候选:${result.title} 返工教训`,
|
|
2250
|
+
detail: `返工原因:${reason.slice(0, 200)}`,
|
|
2251
|
+
evidence: { resultId, ...(result.sourceTaskId ? { taskIds: [result.sourceTaskId] } : {}), ...(result.traceId ? { traceId: result.traceId } : {}) },
|
|
2252
|
+
})
|
|
2253
|
+
}
|
|
2254
|
+
catch { /* 学习环故障不影响返工流程 */ }
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2122
2257
|
requestProjectComplete(id: string, actor: ProjectActor): ProjectApprovalRow {
|
|
2123
2258
|
this.get(id, actor)
|
|
2124
2259
|
this.requireOwner(this.projects.findById(id)!, actor)
|
|
@@ -2294,6 +2429,11 @@ export class ProjectService {
|
|
|
2294
2429
|
this.record(id, approve ? 'approval.approved' : 'approval.rejected', actor, { approvalId, kind: approval.kind, reason }, approval.traceId, approve ? 'approval.approved' : 'approval.rejected', `approval:${approvalId}:${approve ? 'approved' : 'rejected'}`, { approvalId, kind: approval.kind, reason })
|
|
2295
2430
|
updated = this.approvals.findById(approvalId)!
|
|
2296
2431
|
})
|
|
2432
|
+
// RSI 经验反射(WP-A2):L2 业务签核终态同样沉淀(通过/驳回各一条 dedupKey 语义 ——
|
|
2433
|
+
// 不同结论并存,负面信号不被覆盖;作用域取成果 validity_scope)。
|
|
2434
|
+
if (approval.kind === 'deliverable_acceptance') {
|
|
2435
|
+
this.reflectReviewResult(approval.subjectId, approve ? 'approved' : 'rejected')
|
|
2436
|
+
}
|
|
2297
2437
|
return updated
|
|
2298
2438
|
}
|
|
2299
2439
|
|
|
@@ -2355,18 +2495,33 @@ export class ProjectService {
|
|
|
2355
2495
|
...parseJson<string[]>(deliverable?.acceptanceCriteriaJson ?? '[]', []),
|
|
2356
2496
|
...parseJson<string[]>(wi?.acceptanceJson ?? '[]', []),
|
|
2357
2497
|
]
|
|
2358
|
-
|
|
2498
|
+
// WP-C1/C4:独立回读值作 metric.* 判据的指标源;缺记录的 metric 判据仍 fail-closed。
|
|
2499
|
+
const metrics = blindMetricsForTask(this.db, result.sourceTaskId)
|
|
2500
|
+
const evaluated = evaluateCriteriaChecks({
|
|
2359
2501
|
criteria,
|
|
2360
2502
|
artifacts: [...artifactDigests(task?.artifactsJson ?? '[]').values()],
|
|
2361
2503
|
payloadJson: result.payloadJson,
|
|
2362
2504
|
artifactBacked: parseJson<Array<Record<string, unknown>>>(result.evidenceJson, [])
|
|
2363
2505
|
.filter(e => String(e.artifactId ?? '')).length,
|
|
2506
|
+
...(Object.keys(metrics).length > 0 ? { metrics } : {}),
|
|
2364
2507
|
})
|
|
2508
|
+
// WP-C1:本任务有设备写验证记录时必须进 L1 checks;inconclusive 按未证实阻断(≠ pass)。
|
|
2509
|
+
const blind = blindCheckForTask(this.db, result.sourceTaskId)
|
|
2510
|
+
if (blind) {
|
|
2511
|
+
evaluated.checks.push({ criterion: blind.criterion, pass: blind.pass, detail: blind.detail })
|
|
2512
|
+
if (!blind.pass) {
|
|
2513
|
+
evaluated.blockingFailures.push(blind.criterion)
|
|
2514
|
+
evaluated.ok = false
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
return evaluated
|
|
2365
2518
|
}
|
|
2366
2519
|
|
|
2367
2520
|
/** L1 驳回:成果标记返工,工作项回到 REWORK(可经 route retry/rework 重新派发)。 */
|
|
2368
2521
|
private markResultRework(result: ProjectResultRow, actor: ProjectActor, reason: string): void {
|
|
2369
2522
|
this.results.markReworkRequired(result.id, true)
|
|
2523
|
+
// WP-D4:返工教训 → runbook 补充候选(学习环;失败只影响提案,不影响返工)
|
|
2524
|
+
this.proposeRunbookFromRework(result.id, reason)
|
|
2370
2525
|
const wi = this.workItems.findById(result.workItemId)
|
|
2371
2526
|
if (wi && wi.state === 'COMPLETED') {
|
|
2372
2527
|
this.workItems.update(wi.id, {
|
|
@@ -337,6 +337,67 @@ export abstract class ManagerA2A extends ManagerTasks {
|
|
|
337
337
|
}))
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
+
/**
|
|
341
|
+
* 跨 Channel 共享经验检索(WP-A4;**成员可调**,只读)。
|
|
342
|
+
* 与 recallOtherTeamsMemory(lead-only / __team__ 行)的分工:
|
|
343
|
+
* - 这里读 **experience 行**(带证据与生命周期),按 scope_kind + scope_key 锚定产线/产品;
|
|
344
|
+
* - 授权口径一致:仅**同 owner 且启用**的其他 channel(无主 channel 不参与);
|
|
345
|
+
* - 只返回 status ∈ {active, validated} 的行(candidate 未经验证不外泄,retired 不返回)。
|
|
346
|
+
*/
|
|
347
|
+
searchSharedExperience(channelId: string, agentId: string, input: {
|
|
348
|
+
query: string
|
|
349
|
+
scope: 'line' | 'product' | 'global'
|
|
350
|
+
scopeKey?: string
|
|
351
|
+
limit?: number
|
|
352
|
+
}): Array<{
|
|
353
|
+
channelId: string
|
|
354
|
+
channelName: string
|
|
355
|
+
title: string
|
|
356
|
+
content: string
|
|
357
|
+
outcome: string
|
|
358
|
+
status: string
|
|
359
|
+
scopeKind: string
|
|
360
|
+
scopeKey: string
|
|
361
|
+
importance: number
|
|
362
|
+
createdAt: string
|
|
363
|
+
taskId: string | null
|
|
364
|
+
visibility: MemoryVisibility
|
|
365
|
+
}> {
|
|
366
|
+
this.requireMember(channelId, agentId)
|
|
367
|
+
const q = input.query.trim()
|
|
368
|
+
if (!q) return []
|
|
369
|
+
const others = this.otherSameOwnerChannels(channelId)
|
|
370
|
+
if (others.length === 0) return []
|
|
371
|
+
// line 档:未显式给 key 时用本 channel 的产线绑定;product 必须显式给 key;global 不需要 key
|
|
372
|
+
let scopeKey = input.scopeKey?.trim() ?? ''
|
|
373
|
+
if (!scopeKey && input.scope === 'line') {
|
|
374
|
+
const self = this.deps.repos.channels.findById(channelId)
|
|
375
|
+
scopeKey = (self as unknown as { lineId?: string } | undefined)?.lineId ?? ''
|
|
376
|
+
}
|
|
377
|
+
const matchQuery = segmentCJK(q).split(/\s+/).filter(Boolean).join(' OR ')
|
|
378
|
+
if (!matchQuery) return []
|
|
379
|
+
const rows = this.deps.repos.memories.searchExperienceAcross(
|
|
380
|
+
matchQuery,
|
|
381
|
+
others.map(c => c.id),
|
|
382
|
+
{ scopeKinds: [input.scope], scopeKey: scopeKey || undefined, limit: input.limit },
|
|
383
|
+
)
|
|
384
|
+
for (const r of rows) this.deps.repos.memories.touch(r.id)
|
|
385
|
+
return rows.map(r => ({
|
|
386
|
+
channelId: r.channelId,
|
|
387
|
+
channelName: others.find(c => c.id === r.channelId)?.name ?? r.channelId,
|
|
388
|
+
title: r.title,
|
|
389
|
+
content: unsegmentCJK(r.content).slice(0, 400),
|
|
390
|
+
outcome: r.outcome ?? 'neutral',
|
|
391
|
+
status: r.status ?? 'active',
|
|
392
|
+
scopeKind: r.scopeKind ?? input.scope,
|
|
393
|
+
scopeKey: r.scopeKey ?? '',
|
|
394
|
+
importance: r.importance,
|
|
395
|
+
createdAt: r.createdAt,
|
|
396
|
+
taskId: r.taskId ?? null,
|
|
397
|
+
visibility: 'cross-channel' as MemoryVisibility,
|
|
398
|
+
}))
|
|
399
|
+
}
|
|
400
|
+
|
|
340
401
|
/**
|
|
341
402
|
* 同主且启用的其他 channel 列表(跨团队可见性的作用域)。
|
|
342
403
|
*
|