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
|
@@ -19,6 +19,7 @@ import { getAgentNodeBindingRepo } from '../../agents/node-bindings.repo'
|
|
|
19
19
|
import { createChannelSessionRepo, type ChannelSessionRow } from '../../db/channel-session.repo'
|
|
20
20
|
import type { SessionCloneDeps } from '../../agents/session-clone'
|
|
21
21
|
import { parseJson } from '../../db/database'
|
|
22
|
+
import { createImprovementActionRepo } from '../../db/improvement-action.repo'
|
|
22
23
|
import { randomUUID } from 'node:crypto'
|
|
23
24
|
|
|
24
25
|
export abstract class ManagerAdminAgents extends ManagerAdminChannel {
|
|
@@ -152,8 +153,73 @@ export abstract class ManagerAdminAgents extends ManagerAdminChannel {
|
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
/** 手动触发记忆衰减清理(REST 透传;策略与定时器同一函数) */
|
|
155
|
-
runMemoryMaintenanceNow(): MaintenanceResult {
|
|
156
|
-
|
|
156
|
+
runMemoryMaintenanceNow(): MaintenanceResult & { retiredByExpiry: number } {
|
|
157
|
+
const result = runMemoryMaintenance(this.deps.repos.memories)
|
|
158
|
+
// RSI(WP-A5):同一次维护顺带执行经验过期退休(与定时器口径一致)
|
|
159
|
+
const retiredByExpiry = this.deps.repos.memories.expireSweep()
|
|
160
|
+
return { ...result, retiredByExpiry }
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* RSI 经验看板(WP-A5;REST 只读):本 channel 经验条目的生命周期/作用域/极性分布 +
|
|
165
|
+
* 最近条目摘要。数据面 = agent_memories.kind='experience'(WP-A1/A2 产出)。
|
|
166
|
+
*/
|
|
167
|
+
experienceOverview(channelId: string): {
|
|
168
|
+
lineId: string | null
|
|
169
|
+
total: number
|
|
170
|
+
byStatus: Record<string, number>
|
|
171
|
+
byScope: Record<string, number>
|
|
172
|
+
byOutcome: Record<string, number>
|
|
173
|
+
recent: Array<{ id: string, title: string, outcome: string, status: string, scopeKind: string, scopeKey: string, taskId: string | null, createdAt: string }>
|
|
174
|
+
} {
|
|
175
|
+
const statuses = ['active', 'candidate', 'validated', 'contested', 'retired'] as const
|
|
176
|
+
const scopeKinds = ['session', 'channel', 'line', 'product', 'global'] as const
|
|
177
|
+
const rows = scopeKinds.flatMap(scopeKind => this.deps.repos.memories.listByScope({
|
|
178
|
+
scopeKind,
|
|
179
|
+
channelIds: [channelId],
|
|
180
|
+
statuses: [...statuses],
|
|
181
|
+
limit: 500,
|
|
182
|
+
}))
|
|
183
|
+
const count = (pick: (r: (typeof rows)[number]) => string): Record<string, number> => {
|
|
184
|
+
const out: Record<string, number> = {}
|
|
185
|
+
for (const r of rows) {
|
|
186
|
+
const k = pick(r)
|
|
187
|
+
out[k] = (out[k] ?? 0) + 1
|
|
188
|
+
}
|
|
189
|
+
return out
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
lineId: this.deps.repos.memories.channelScope(channelId).lineId,
|
|
193
|
+
total: rows.length,
|
|
194
|
+
byStatus: count(r => r.status ?? 'active'),
|
|
195
|
+
byScope: count(r => r.scopeKind ?? 'session'),
|
|
196
|
+
byOutcome: count(r => r.outcome ?? 'neutral'),
|
|
197
|
+
recent: rows
|
|
198
|
+
.slice()
|
|
199
|
+
.sort((a, b) => b.createdAt.localeCompare(a.createdAt))
|
|
200
|
+
.slice(0, 20)
|
|
201
|
+
.map(r => ({
|
|
202
|
+
id: r.id,
|
|
203
|
+
title: r.title,
|
|
204
|
+
outcome: r.outcome ?? 'neutral',
|
|
205
|
+
status: r.status ?? 'active',
|
|
206
|
+
scopeKind: r.scopeKind ?? 'session',
|
|
207
|
+
scopeKey: r.scopeKey ?? '',
|
|
208
|
+
taskId: r.taskId,
|
|
209
|
+
createdAt: r.createdAt,
|
|
210
|
+
})),
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* RSI 元层成效看板(WP-C3;REST 只读):按 action_kind 聚合成功率(事实计数)。
|
|
216
|
+
* 口径:accepted+promoted 视为成功;无动作时返回空数组,不报错。
|
|
217
|
+
*/
|
|
218
|
+
improvementOverview(channelId: string): {
|
|
219
|
+
channelId: string
|
|
220
|
+
stats: Array<{ actionKind: string, total: number, success: number, rate: number }>
|
|
221
|
+
} {
|
|
222
|
+
return { channelId, stats: createImprovementActionRepo(this.deps.db).stats(channelId) }
|
|
157
223
|
}
|
|
158
224
|
|
|
159
225
|
// ===== Agent 私有记忆策展(本人或 lead 写/删;kind='semantic' 人工策展)=====
|
|
@@ -156,6 +156,29 @@ export abstract class ManagerContracts {
|
|
|
156
156
|
rootId?: string | null
|
|
157
157
|
visibility?: 'channel-shared' | 'private' | 'cross-channel'
|
|
158
158
|
}>
|
|
159
|
+
/**
|
|
160
|
+
* 跨 Channel 共享经验检索(WP-A4;由 a2a.ts 实现,workspace 闭包经此契约调用)。
|
|
161
|
+
* 只读;同 owner 授权与 status 过滤在实现层。
|
|
162
|
+
*/
|
|
163
|
+
abstract searchSharedExperience(channelId: string, agentId: string, input: {
|
|
164
|
+
query: string
|
|
165
|
+
scope: 'line' | 'product' | 'global'
|
|
166
|
+
scopeKey?: string
|
|
167
|
+
limit?: number
|
|
168
|
+
}): Array<{
|
|
169
|
+
channelId: string
|
|
170
|
+
channelName: string
|
|
171
|
+
title: string
|
|
172
|
+
content: string
|
|
173
|
+
outcome: string
|
|
174
|
+
status: string
|
|
175
|
+
scopeKind: string
|
|
176
|
+
scopeKey: string
|
|
177
|
+
importance: number
|
|
178
|
+
createdAt: string
|
|
179
|
+
taskId: string | null
|
|
180
|
+
visibility: 'channel-shared' | 'private' | 'cross-channel'
|
|
181
|
+
}>
|
|
159
182
|
abstract refuseTask(
|
|
160
183
|
channelId: string,
|
|
161
184
|
refuserId: string,
|
|
@@ -27,6 +27,11 @@ import { rowToMessage } from '../mailbox'
|
|
|
27
27
|
import { platformNoticeKey, newPlatformNoticeId, setPlatformNoticeSink, type PlatformNotice, type PlatformNoticeSink } from '../platform-notice'
|
|
28
28
|
import { memorySettings, retentionSettings, channelMemoryDigestEnabled } from '../../settings'
|
|
29
29
|
import { parseJson } from '../../db/database'
|
|
30
|
+
import { reflectExperience } from '../memory/reflector'
|
|
31
|
+
import { collectInterventionFact, collectTaskFact, listUnreflectedInterventions } from '../memory/reflect-collector'
|
|
32
|
+
import { registerInterventionAssessmentHook } from '../../aml/intervention-ledger'
|
|
33
|
+
import { getDcwController } from '../../dcw/dcw-controller'
|
|
34
|
+
import { verifyAllPending, verifyPendingInterventions } from '../../verify/blind-verifier'
|
|
30
35
|
|
|
31
36
|
/** §7.1 事件名 → 展示标签(tasks 状态机 → 设计文档事件契约) */
|
|
32
37
|
const EVENT_LABELS: Record<string, string> = {
|
|
@@ -188,6 +193,21 @@ export abstract class ManagerState extends ManagerContracts {
|
|
|
188
193
|
constructor(readonly deps: ManagerDeps) {
|
|
189
194
|
super()
|
|
190
195
|
this.wirePlatformNoticeSink()
|
|
196
|
+
// RSI 经验反射(WP-A2):干预 verdict 回填 → 蒸馏经验(进程级单点注册;学习环故障只记日志)
|
|
197
|
+
registerInterventionAssessmentHook((eventId) => {
|
|
198
|
+
try {
|
|
199
|
+
const fact = collectInterventionFact(this.deps.db, eventId)
|
|
200
|
+
if (!fact) return
|
|
201
|
+
void reflectExperience(this.deps.repos.memories, this.memoryEmbedder ?? null, fact).catch((err) => {
|
|
202
|
+
log.warn('[memory] 干预经验反射失败:', err instanceof Error ? err.message : err)
|
|
203
|
+
})
|
|
204
|
+
// WP-D2:显著正效应 → 产出「配方固化」改进提案(只描述,执行仍走 recipe_update HITL)
|
|
205
|
+
this.maybeProposeImprovement(fact)
|
|
206
|
+
}
|
|
207
|
+
catch (err) {
|
|
208
|
+
log.warn('[memory] 干预经验采集失败:', err instanceof Error ? err.message : err)
|
|
209
|
+
}
|
|
210
|
+
})
|
|
191
211
|
// 记忆衰减清理定时器(失败只记日志,绝不抛出;unref 不阻进程退出;非法/非正 env 回退默认)
|
|
192
212
|
this.memoryTimer = setInterval(() => {
|
|
193
213
|
try {
|
|
@@ -196,6 +216,13 @@ export abstract class ManagerState extends ManagerContracts {
|
|
|
196
216
|
catch (err) {
|
|
197
217
|
log.error('[memory] 维护任务异常', err)
|
|
198
218
|
}
|
|
219
|
+
// RSI 经验过期退休(WP-A3):expires_at 已到 → status='retired'(检索/注入层已排除)
|
|
220
|
+
try {
|
|
221
|
+
this.deps.repos.memories.expireSweep()
|
|
222
|
+
}
|
|
223
|
+
catch (err) {
|
|
224
|
+
log.error('[memory] 经验过期扫描异常', err)
|
|
225
|
+
}
|
|
199
226
|
// 空闲反思(sleep-time compute):busy runtime 存在即整轮跳过,绝不与作业争抢
|
|
200
227
|
try {
|
|
201
228
|
this.reflectIdleMemories()
|
|
@@ -203,6 +230,20 @@ export abstract class ManagerState extends ManagerContracts {
|
|
|
203
230
|
catch (err) {
|
|
204
231
|
log.error('[memory] 反思任务异常', err)
|
|
205
232
|
}
|
|
233
|
+
// RSI 经验补扫(WP-A2):verdict 已回填但尚无经验行的干预台账(6h 窗口;幂等去重)
|
|
234
|
+
try {
|
|
235
|
+
this.reflectPendingInterventions()
|
|
236
|
+
}
|
|
237
|
+
catch (err) {
|
|
238
|
+
log.error('[memory] 干预经验补扫异常', err)
|
|
239
|
+
}
|
|
240
|
+
// RSI 独立回读验证(WP-C1):对未验证的写入台账做设备侧复读(match/mismatch/inconclusive)
|
|
241
|
+
try {
|
|
242
|
+
verifyAllPending(this.deps.db, { perChannel: 20 })
|
|
243
|
+
}
|
|
244
|
+
catch (err) {
|
|
245
|
+
log.error('[verify] 独立回读补扫异常', err)
|
|
246
|
+
}
|
|
206
247
|
// v17 群聊层有界化(outbox / 通知表都会随每次发言+HITL 增长;失败不影响主流程)
|
|
207
248
|
this.runGroupChatMaintenance()
|
|
208
249
|
}, memorySettings().maintenance_ms)
|
|
@@ -464,6 +505,94 @@ export abstract class ManagerState extends ManagerContracts {
|
|
|
464
505
|
return cr
|
|
465
506
|
}
|
|
466
507
|
|
|
508
|
+
// ===== RSI 经验反射(WP-A2;学习环:失败只记日志,绝不影响任务流)=====
|
|
509
|
+
|
|
510
|
+
/** 任务终态 → 经验蒸馏(证据:任务/判据/失败分类;异步 fire-and-forget) */
|
|
511
|
+
protected reflectTaskTerminal(channelId: string, taskId: string): void {
|
|
512
|
+
try {
|
|
513
|
+
const task = this.getTaskEngine().get(taskId)
|
|
514
|
+
if (!task) return
|
|
515
|
+
const fact = collectTaskFact(this.deps.db, {
|
|
516
|
+
channelId,
|
|
517
|
+
taskId,
|
|
518
|
+
agentId: task.assigneeId ?? 'system:task',
|
|
519
|
+
})
|
|
520
|
+
if (!fact) return
|
|
521
|
+
void reflectExperience(this.deps.repos.memories, this.memoryEmbedder ?? null, fact).catch((err) => {
|
|
522
|
+
log.warn('[memory] 任务经验反射失败:', err instanceof Error ? err.message : err)
|
|
523
|
+
})
|
|
524
|
+
// WP-C1:任务终态先补扫本频道待验证写入并归属到该任务(定时器全库补扫之外的即时路径)。
|
|
525
|
+
// 学习环失败不影响任务流;归属仅用于 L1/C4 取数,不改变判定口径。
|
|
526
|
+
try {
|
|
527
|
+
verifyPendingInterventions(this.deps.db, channelId, { limit: 20, taskId, sinceIso: task.createdAt })
|
|
528
|
+
}
|
|
529
|
+
catch { /* 单频道验证失败不阻断任务终态 */ }
|
|
530
|
+
}
|
|
531
|
+
catch (err) {
|
|
532
|
+
log.warn('[memory] 任务经验采集失败:', err instanceof Error ? err.message : err)
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/** 干预 verdict 补扫(verdict 回填钩子之外的兜底;dedupKey 保证幂等) */
|
|
537
|
+
protected reflectPendingInterventions(): void {
|
|
538
|
+
const since = new Date(Date.now() - 30 * 86_400_000).toISOString()
|
|
539
|
+
for (const eventId of listUnreflectedInterventions(this.deps.db, { sinceIso: since, limit: 50 })) {
|
|
540
|
+
try {
|
|
541
|
+
const fact = collectInterventionFact(this.deps.db, eventId)
|
|
542
|
+
if (!fact) continue
|
|
543
|
+
void reflectExperience(this.deps.repos.memories, this.memoryEmbedder ?? null, fact).catch(() => {})
|
|
544
|
+
this.maybeProposeImprovement(fact)
|
|
545
|
+
}
|
|
546
|
+
catch { /* 单行失败不阻断批量 */ }
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* WP-D2:显著正效应 → 配方固化提案。
|
|
552
|
+
* 纪律:仅 `identifiable_effect` 且 effect≠0 才产提案;提案只是候选,
|
|
553
|
+
* 执行仍必须走 recipe_update 的 HITL 审批链(本方法绝不直接写配方)。
|
|
554
|
+
*/
|
|
555
|
+
protected maybeProposeImprovement(fact: ReturnType<typeof collectInterventionFact>): void {
|
|
556
|
+
if (!fact || fact.source !== 'intervention') return
|
|
557
|
+
if (fact.verdict !== 'identifiable_effect' || (fact.effect ?? 0) === 0) return
|
|
558
|
+
const repo = this.deps.repos.improvements
|
|
559
|
+
if (!repo) return
|
|
560
|
+
try {
|
|
561
|
+
// recipeId 由批次反查(干预台账只存 runId);反查失败留空,提案仍可见但不会自动收口
|
|
562
|
+
let recipeId = ''
|
|
563
|
+
if (fact.recipeRunId) {
|
|
564
|
+
try {
|
|
565
|
+
recipeId = getDcwController().listRuns().find(r => r.id === fact.recipeRunId)?.recipeId ?? ''
|
|
566
|
+
}
|
|
567
|
+
catch { recipeId = '' }
|
|
568
|
+
}
|
|
569
|
+
repo.create({
|
|
570
|
+
kind: 'recipe_update',
|
|
571
|
+
channelId: fact.channelId,
|
|
572
|
+
lineId: fact.lineId ?? '',
|
|
573
|
+
recipeId,
|
|
574
|
+
sourceKind: 'intervention',
|
|
575
|
+
sourceId: fact.eventId,
|
|
576
|
+
title: `配方固化候选:${fact.nodeName ?? '节点'} ${fact.fromValue ?? '?'}→${fact.toValue ?? '?'}`,
|
|
577
|
+
detail: `判定 ${fact.verdict},effect=${fact.effect ?? '?'};建议用 recipe_update 固化(需 HITL 审批)`,
|
|
578
|
+
evidence: {
|
|
579
|
+
interventionEventId: fact.eventId,
|
|
580
|
+
...(fact.recipeRunId ? { recipeRunId: fact.recipeRunId } : {}),
|
|
581
|
+
...(fact.effect !== null && fact.effect !== undefined ? { metrics: { effect: fact.effect } } : {}),
|
|
582
|
+
...(fact.criterion ? { criterion: fact.criterion } : {}),
|
|
583
|
+
},
|
|
584
|
+
})
|
|
585
|
+
}
|
|
586
|
+
catch (err) {
|
|
587
|
+
log.warn('[memory] 改进提案写入失败:', err instanceof Error ? err.message : err)
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/** 改进提案列表(WP-D2;工具/REST 读面;旧脚手架缺省仓储时返回空) */
|
|
592
|
+
listImprovementProposals(channelId: string, opts: { status?: 'pending' | 'accepted' | 'rejected' | 'expired', limit?: number } = {}) {
|
|
593
|
+
return this.deps.repos.improvements?.listByChannel(channelId, opts) ?? []
|
|
594
|
+
}
|
|
595
|
+
|
|
467
596
|
protected async processTeamTaskMemoryOutbox(eventId: string, payload: Record<string, unknown>): Promise<void> {
|
|
468
597
|
const channelId = typeof payload.channelId === 'string' ? payload.channelId : ''
|
|
469
598
|
const taskId = typeof payload.taskId === 'string' ? payload.taskId : ''
|
|
@@ -517,6 +646,9 @@ export abstract class ManagerState extends ManagerContracts {
|
|
|
517
646
|
* 任务主流程与 outbox 表结构不变。
|
|
518
647
|
*/
|
|
519
648
|
protected recordTeamTaskEvent(channelId: string, e: { taskId: string, state?: TaskState, progress?: number, task?: TaskEventTask, artifactName?: string, reassignFrom?: string, reason?: string }): void {
|
|
649
|
+
// RSI 经验反射(WP-A2):任务终态 → 蒸馏一条带证据的经验。
|
|
650
|
+
// 与团队摘要开关解耦(摘要回滚不影响学习),且异步不阻塞任务事件链。
|
|
651
|
+
if (e.state && TERMINAL_TASK_STATES[e.state]) this.reflectTaskTerminal(channelId, e.taskId)
|
|
520
652
|
if (!channelMemoryDigestEnabled()) return
|
|
521
653
|
const task = e.task ?? this.getTaskEngine().get(e.taskId)
|
|
522
654
|
if (!task) return
|
|
@@ -13,6 +13,7 @@ import type { ChatMessageRepo } from '../../db/chat-message.repo'
|
|
|
13
13
|
import type { DatabaseSync } from 'node:sqlite'
|
|
14
14
|
import type { HitlRequestRepo } from '../../db/hitl-request.repo'
|
|
15
15
|
import type { MemoryRepo } from '../../db/memory.repo'
|
|
16
|
+
import type { ImprovementRepo } from '../../db/improvement.repo'
|
|
16
17
|
import type { MessageRepo } from '../../db/message.repo'
|
|
17
18
|
import type { NotificationRepo } from '../../db/notification.repo'
|
|
18
19
|
import type { OutboxRepo } from '../../db/outbox.repo'
|
|
@@ -50,6 +51,8 @@ export interface AllRepos {
|
|
|
50
51
|
outbox?: OutboxRepo
|
|
51
52
|
/** v17 HITL 持久化事实源 */
|
|
52
53
|
hitlRequests?: HitlRequestRepo
|
|
54
|
+
/** RSI 改进提案(WP-D2;旧测试脚手架缺省时相关路径已守卫) */
|
|
55
|
+
improvements?: ImprovementRepo
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
/** Manager 依赖 */
|
|
@@ -42,7 +42,7 @@ export abstract class ManagerWorkspace extends ManagerRuntimeObserve {
|
|
|
42
42
|
// 记忆按需抓取/主动沉淀(成员校验 + 委托本实例 AgentMemory;shared 写入即 Channel 公共域)
|
|
43
43
|
recallMemory: async (input) => {
|
|
44
44
|
this.requireMember(channelId, agent.id)
|
|
45
|
-
const rows = await memory.recallRows(input.query, { scope: input.scope, limit: input.limit, sessionId: input.sessionId })
|
|
45
|
+
const rows = await memory.recallRows(input.query, { scope: input.scope, limit: input.limit, sessionId: input.sessionId, scopeContext: input.scopeContext })
|
|
46
46
|
// §7.4:rootId 由 manager 补齐(记忆层不查任务表)
|
|
47
47
|
return rows.map((r) => {
|
|
48
48
|
if (!r.taskId) return r
|
|
@@ -53,9 +53,25 @@ export abstract class ManagerWorkspace extends ManagerRuntimeObserve {
|
|
|
53
53
|
saveMemory: async (input) => {
|
|
54
54
|
this.requireMember(channelId, agent.id)
|
|
55
55
|
const saved = await memory.save(input)
|
|
56
|
-
this.buses.get(channelId)?.notifyMemory({ agentId: agent.id, scope: input.scope, title: input.title, dedupKey: saved.dedupKey })
|
|
56
|
+
this.buses.get(channelId)?.notifyMemory({ agentId: agent.id, scope: input.scope === 'line' || input.scope === 'global' ? 'shared' : input.scope, title: input.title, dedupKey: saved.dedupKey })
|
|
57
57
|
return saved
|
|
58
58
|
},
|
|
59
|
+
// 跨 Channel 共享经验(WP-A4;成员可调,同 owner 授权在 manager 层)
|
|
60
|
+
searchSharedExperience: async input => this.searchSharedExperience(channelId, agent.id, input),
|
|
61
|
+
// 改进提案读面(WP-D2;只读,执行走 HITL)
|
|
62
|
+
listImprovementProposals: async input => this.listImprovementProposals(channelId, input).map(r => ({
|
|
63
|
+
id: r.id,
|
|
64
|
+
kind: r.kind,
|
|
65
|
+
lineId: r.lineId,
|
|
66
|
+
recipeId: r.recipeId,
|
|
67
|
+
sourceKind: r.sourceKind,
|
|
68
|
+
sourceId: r.sourceId,
|
|
69
|
+
title: r.title,
|
|
70
|
+
detail: r.detail,
|
|
71
|
+
status: r.status,
|
|
72
|
+
decidedAt: r.decidedAt,
|
|
73
|
+
createdAt: r.createdAt,
|
|
74
|
+
})),
|
|
59
75
|
// 会话压缩摘要入库(harvest 桥):omp 压缩产出 → 本成员 episodic-session 记忆。
|
|
60
76
|
// omp 内部 session 与平台 cs-* 未打通,运行时不知道平台会话 id —— 在桥内按
|
|
61
77
|
// memberMap 反查本实例所属 active 会话补齐(排除 project 恒等映射)。
|
|
@@ -25,6 +25,10 @@ export const MMR_LAMBDA = 0.7
|
|
|
25
25
|
export const RELATED_TASK_BOOST = 0.3
|
|
26
26
|
/** session 行加分(auto 档):当前会话作用域记忆的排序偏好(不过滤) */
|
|
27
27
|
export const SESSION_RELEVANCE_BOOST = 0.15
|
|
28
|
+
/** RSI 经验作用域加分(WP-A3):同产线经验排序偏好(不过滤,跨频道共享层仍单独授权) */
|
|
29
|
+
export const SAME_LINE_BOOST = 0.2
|
|
30
|
+
/** RSI 经验作用域加分(WP-A3):同产品经验排序偏好(弱于产线:产线粒度更贴工况) */
|
|
31
|
+
export const SAME_PRODUCT_BOOST = 0.1
|
|
28
32
|
/** 策展层 kind(确定性 L0/按 key 直取;不进 L1 排名防双份注入,search_memory 仍可命中) */
|
|
29
33
|
export const CURATED_KINDS = new Set(['brief', 'chronicle', 'reflection'])
|
|
30
34
|
/** kind 感知时近衰减半衰期(天;0 = 不衰减) */
|
|
@@ -4,11 +4,28 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { AgentMemoryState } from './state'
|
|
6
6
|
import type { MemoryRow } from '../../db/database'
|
|
7
|
-
import type { MemoryScope, MemorySnippet, RecallOptions } from './types'
|
|
8
|
-
import { CURATED_KINDS, FTS_POOL, MMR_LAMBDA, RECENT_FALLBACK, RELATED_TASK_BOOST, RRF_K, SESSION_RELEVANCE_BOOST, buildMatchQuery, estimateTokens, memoryCfg, unsegmentCJK } from './helpers'
|
|
7
|
+
import type { MemoryScope, MemorySnippet, RecallOptions, ScopeContext } from './types'
|
|
8
|
+
import { CURATED_KINDS, FTS_POOL, MMR_LAMBDA, RECENT_FALLBACK, RELATED_TASK_BOOST, RRF_K, SAME_LINE_BOOST, SAME_PRODUCT_BOOST, SESSION_RELEVANCE_BOOST, buildMatchQuery, estimateTokens, memoryCfg, unsegmentCJK } from './helpers'
|
|
9
9
|
import { TEAM_AGENT_ID } from '../../db/memory.repo'
|
|
10
10
|
|
|
11
11
|
export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
12
|
+
/**
|
|
13
|
+
* 作用域上下文(WP-A3):显式入参优先;缺省按频道产线绑定解析(lineId)。
|
|
14
|
+
* 解析失败/未绑定 → 空上下文(零加分,行为与旧版一致)。
|
|
15
|
+
*/
|
|
16
|
+
protected resolveScopeContext(given?: ScopeContext): ScopeContext {
|
|
17
|
+
if (given) return given
|
|
18
|
+
return this.repo.channelScope(this.opts.channelId)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** 经验作用域加分(WP-A3):同产线 +0.2 / 同产品 +0.1(非经验行/未绑定 → 0) */
|
|
22
|
+
protected scopeBoost(row: MemoryRow, ctx: ScopeContext): number {
|
|
23
|
+
if (row.kind !== 'experience' || !row.scopeKind || !row.scopeKey) return 0
|
|
24
|
+
if (row.scopeKind === 'line' && ctx.lineId && row.scopeKey === ctx.lineId) return SAME_LINE_BOOST
|
|
25
|
+
if (row.scopeKind === 'product' && ctx.productId && row.scopeKey === ctx.productId) return SAME_PRODUCT_BOOST
|
|
26
|
+
return 0
|
|
27
|
+
}
|
|
28
|
+
|
|
12
29
|
/**
|
|
13
30
|
* 混合检索原始命中(RRF 融合;不排序不 touch)。
|
|
14
31
|
* FTS 榜与向量榜各按名次贡献 1/(k+rank) 累加,再按榜内最高分归一化到 0-1——
|
|
@@ -71,20 +88,23 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
71
88
|
if (scope !== 'shared' && scope !== 'session') {
|
|
72
89
|
for (const row of this.repo.listRecent(this.opts.agentId, RECENT_FALLBACK)) {
|
|
73
90
|
if (CURATED_KINDS.has(row.kind)) continue
|
|
91
|
+
// RSI(WP-A3):时近兜底同样排除退休经验(兜底路径不经 inScope)
|
|
92
|
+
if (row.status === 'retired') continue
|
|
74
93
|
if (!hits.has(row.id)) hits.set(row.id, { row, relevance: 0.15 })
|
|
75
94
|
}
|
|
76
95
|
}
|
|
77
96
|
return hits
|
|
78
97
|
}
|
|
79
98
|
|
|
80
|
-
/** 排序(综合分降序;策展层排除/任务关联加权/session
|
|
99
|
+
/** 排序(综合分降序;策展层排除/任务关联加权/session 行加分/经验作用域加分;不含预算/touch 副作用) */
|
|
81
100
|
protected async rank(
|
|
82
101
|
query: string,
|
|
83
102
|
scope: MemoryScope,
|
|
84
|
-
opts: { excludeCurated?: boolean, relatedTaskIds?: string[], sessionId?: string | null } = {},
|
|
103
|
+
opts: { excludeCurated?: boolean, relatedTaskIds?: string[], sessionId?: string | null, scopeContext?: ScopeContext } = {},
|
|
85
104
|
): Promise<Array<{ row: MemoryRow, relevance: number, score: number }>> {
|
|
86
105
|
const hits = await this.collectHits(query, scope, opts.sessionId)
|
|
87
106
|
const related = opts.relatedTaskIds && opts.relatedTaskIds.length > 0 ? new Set(opts.relatedTaskIds) : null
|
|
107
|
+
const scopeCtx = this.resolveScopeContext(opts.scopeContext)
|
|
88
108
|
return [...hits.values()]
|
|
89
109
|
.filter(h => !opts.excludeCurated || !CURATED_KINDS.has(h.row.kind))
|
|
90
110
|
.map((h) => {
|
|
@@ -96,6 +116,9 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
96
116
|
if (opts.sessionId && scope === 'auto' && h.row.sessionId === opts.sessionId) {
|
|
97
117
|
score = Math.min(1, score + SESSION_RELEVANCE_BOOST)
|
|
98
118
|
}
|
|
119
|
+
// 经验作用域加分(WP-A3):同产线/同产品经验优先(排序偏好,不做跨频道授权)
|
|
120
|
+
const boost = this.scopeBoost(h.row, scopeCtx)
|
|
121
|
+
if (boost > 0) score = Math.min(1, score + boost)
|
|
99
122
|
return { ...h, score }
|
|
100
123
|
})
|
|
101
124
|
.sort((a, b) => b.score - a.score)
|
|
@@ -116,7 +139,7 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
116
139
|
const budget = explicit ?? memoryCfg().primer_tokens
|
|
117
140
|
const totalBudget = explicit ?? memoryCfg().inject_total
|
|
118
141
|
const scope = recallOpts.scope ?? 'auto'
|
|
119
|
-
const scored = await this.rank(query, scope, { excludeCurated: true, relatedTaskIds: recallOpts.relatedTaskIds, sessionId: recallOpts.sessionId })
|
|
142
|
+
const scored = await this.rank(query, scope, { excludeCurated: true, relatedTaskIds: recallOpts.relatedTaskIds, sessionId: recallOpts.sessionId, scopeContext: recallOpts.scopeContext })
|
|
120
143
|
|
|
121
144
|
const lines: string[] = []
|
|
122
145
|
const touched: string[] = []
|
|
@@ -139,6 +162,9 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
139
162
|
`- 作业中发现可复用的结论、约定、教训 → 立即 save_memory 沉淀:scope=private 存个人经验,scope=shared 发布到 Channel 公共记忆供全员复用。`,
|
|
140
163
|
].join('\n')
|
|
141
164
|
const tipsCost = estimateTokens(tipsText)
|
|
165
|
+
// 注入块头部(标题行)也计费:否则硬顶被标题突破(A-5.1 实测 527>500)
|
|
166
|
+
const headerText = `## 相关记忆(自动召回的高相关/最近线索摘要;与当前任务冲突时,以当前任务为准)`
|
|
167
|
+
const headerCost = estimateTokens(headerText)
|
|
142
168
|
// MMR 装配:逐条贪心选 λ×相关性 − (1−λ)×与已选集最大相似 的最大者(多样性,防近重复挤占)
|
|
143
169
|
const candidates = scored.slice()
|
|
144
170
|
const tokenSet = (row: MemoryRow): Set<string> =>
|
|
@@ -171,8 +197,8 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
171
197
|
const [c] = candidates.splice(bestIdx, 1)
|
|
172
198
|
const line = this.formatLine(c!.row)
|
|
173
199
|
const cost = estimateTokens(line)
|
|
174
|
-
// 双预算:L1 引子预算(budget)+ 注入总预算(total,含 brief);超预算跳过但继续找更短行
|
|
175
|
-
if (usedPrimer + tipsCost + cost > budget || usedTotal + cost + tipsCost > totalBudget) continue
|
|
200
|
+
// 双预算:L1 引子预算(budget)+ 注入总预算(total,含 brief/头部/提示);超预算跳过但继续找更短行
|
|
201
|
+
if (usedPrimer + tipsCost + headerCost + cost > budget || usedTotal + cost + tipsCost + headerCost > totalBudget) continue
|
|
176
202
|
usedPrimer += cost
|
|
177
203
|
usedTotal += cost
|
|
178
204
|
lines.push(line)
|
|
@@ -182,7 +208,7 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
182
208
|
if (lines.length === 0) return null
|
|
183
209
|
for (const id of touched) this.repo.touch(id)
|
|
184
210
|
return [
|
|
185
|
-
|
|
211
|
+
headerText,
|
|
186
212
|
...lines,
|
|
187
213
|
tipsText,
|
|
188
214
|
].join('\n')
|
|
@@ -193,13 +219,13 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
193
219
|
* 触发 touch(access_count 强化后续召回排序);limit 上限防御;
|
|
194
220
|
* relatedTaskIds 透传任务关联加权(与 recall 同源排序)。
|
|
195
221
|
*/
|
|
196
|
-
async recallRows(query: string, opts: { scope?: MemoryScope, limit?: number, relatedTaskIds?: string[], sessionId?: string | null } = {}): Promise<MemorySnippet[]> {
|
|
222
|
+
async recallRows(query: string, opts: { scope?: MemoryScope, limit?: number, relatedTaskIds?: string[], sessionId?: string | null, scopeContext?: ScopeContext } = {}): Promise<MemorySnippet[]> {
|
|
197
223
|
const scope = opts.scope ?? 'auto'
|
|
198
224
|
const limit = Math.min(Math.max(opts.limit ?? 5, 1), 20)
|
|
199
225
|
// 召回度量(2026-10-05 记忆治理最小版):hit/miss 计数 —— 72% 记忆从未被召回的
|
|
200
226
|
// 问题先变成可观测数据,再决定是否值得做自动合并。
|
|
201
227
|
const stats = recallStatsOf()
|
|
202
|
-
const scoredAll = await this.rank(query, scope, { relatedTaskIds: opts.relatedTaskIds, sessionId: opts.sessionId })
|
|
228
|
+
const scoredAll = await this.rank(query, scope, { relatedTaskIds: opts.relatedTaskIds, sessionId: opts.sessionId, scopeContext: opts.scopeContext })
|
|
203
229
|
if (scoredAll.length > 0) stats.hits++
|
|
204
230
|
else stats.misses++
|
|
205
231
|
const scored = scoredAll.slice(0, limit)
|
|
@@ -221,6 +247,11 @@ export abstract class AgentMemoryRecall extends AgentMemoryState {
|
|
|
221
247
|
taskId: s.row.taskId ?? null,
|
|
222
248
|
sessionId: s.row.sessionId ?? null,
|
|
223
249
|
visibility: shared ? 'channel-shared' as const : 'private' as const,
|
|
250
|
+
// RSI 经验元信息(WP-A3):非经验行带默认值(neutral/session/active),调用方按 kind 判别
|
|
251
|
+
outcome: s.row.outcome ?? 'neutral',
|
|
252
|
+
status: s.row.status ?? 'active',
|
|
253
|
+
scopeKind: s.row.scopeKind ?? 'session',
|
|
254
|
+
scopeKey: s.row.scopeKey ?? '',
|
|
224
255
|
}
|
|
225
256
|
})
|
|
226
257
|
}
|