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
|
@@ -1,245 +1,245 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* 记忆运行时贯通(PR-B)实机验收:session 作用域记忆端到端。
|
|
4
|
-
* M1 运行时戳:session 对话 → clone 的 peer 交换记忆带 session 戳(运行时自动记录路径)。
|
|
5
|
-
* M2 检索隔离:search API scope=session + sessionId → 只回本会话行;他 session → 空。
|
|
6
|
-
* M3 工具桥:REST invoke save_memory(无 session 态)→ 频道级;scope=session 无上下文时明确拒绝。
|
|
7
|
-
* M4 徽标数据:memories 列表含 sessionId(UI session 徽标数据源)。
|
|
8
|
-
*
|
|
9
|
-
* 运行:node scripts/session-memory-runtime-acceptance.mjs(.output 已构建;端口 3994 / 临时 AW_HOME)
|
|
10
|
-
*/
|
|
11
|
-
import { spawn } from 'node:child_process'
|
|
12
|
-
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
|
13
|
-
import { tmpdir } from 'node:os'
|
|
14
|
-
import { join, resolve, dirname } from 'node:path'
|
|
15
|
-
import { fileURLToPath } from 'node:url'
|
|
16
|
-
|
|
17
|
-
const REPO = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
|
18
|
-
const ROOT = mkdtempSync(join(tmpdir(), 'aw-mem-runtime-accept-'))
|
|
19
|
-
const HOME = join(ROOT, 'home')
|
|
20
|
-
mkdirSync(HOME, { recursive: true })
|
|
21
|
-
const PORT = 3994
|
|
22
|
-
const BASE = `http://127.0.0.1:${PORT}`
|
|
23
|
-
const EVID = join(REPO, 'docs/audit/evidence/2026-11-07-session-memory-runtime')
|
|
24
|
-
mkdirSync(EVID, { recursive: true })
|
|
25
|
-
|
|
26
|
-
const child = spawn(process.execPath, [join(REPO, '.output/server/index.mjs')], {
|
|
27
|
-
cwd: REPO,
|
|
28
|
-
env: {
|
|
29
|
-
...process.env,
|
|
30
|
-
PORT: String(PORT),
|
|
31
|
-
NITRO_PORT: String(PORT),
|
|
32
|
-
AW_MODE: 'home',
|
|
33
|
-
AW_HOME: HOME,
|
|
34
|
-
NUXT_SESSION_PASSWORD: 'MemRuntime#2026-acceptance',
|
|
35
|
-
AW_PROMPTS_DIR: join(REPO, '.output/.AgentWorkShop/prompts'),
|
|
36
|
-
NO_PROXY: '127.0.0.1,localhost',
|
|
37
|
-
},
|
|
38
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
39
|
-
windowsHide: true,
|
|
40
|
-
})
|
|
41
|
-
let serverLog = ''
|
|
42
|
-
child.stdout?.on('data', (d) => {
|
|
43
|
-
serverLog += String(d)
|
|
44
|
-
})
|
|
45
|
-
child.stderr?.on('data', (d) => {
|
|
46
|
-
serverLog += String(d)
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
const sleep = ms => new Promise(r => setTimeout(r, ms))
|
|
50
|
-
async function api(method, path, body, headers = {}) {
|
|
51
|
-
const res = await fetch(BASE + path, {
|
|
52
|
-
method,
|
|
53
|
-
headers: { 'content-type': 'application/json', ...headers },
|
|
54
|
-
body: body === undefined ? undefined : JSON.stringify(body),
|
|
55
|
-
})
|
|
56
|
-
const text = await res.text()
|
|
57
|
-
try {
|
|
58
|
-
const json = JSON.parse(text)
|
|
59
|
-
return { status: res.status, ...json }
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
return { status: res.status, code: -1, message: text.slice(0, 300), data: null }
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const results = []
|
|
66
|
-
const ok = (id, name, cond, detail = '') => {
|
|
67
|
-
results.push({ id, name, pass: Boolean(cond), detail: String(detail).slice(0, 500) })
|
|
68
|
-
console.log(`${cond ? '✔' : '✖'} [${id}] ${name}${cond ? '' : ` — ${String(detail).slice(0, 300)}`}`)
|
|
69
|
-
}
|
|
70
|
-
async function waitReady() {
|
|
71
|
-
for (let i = 0; i < 60; i++) {
|
|
72
|
-
try {
|
|
73
|
-
const r = await fetch(`${BASE}/api/health`, { signal: AbortSignal.timeout(1000) })
|
|
74
|
-
if (r.ok) return
|
|
75
|
-
}
|
|
76
|
-
catch { /* retry */ }
|
|
77
|
-
await sleep(1000)
|
|
78
|
-
}
|
|
79
|
-
throw new Error('server 未 ready')
|
|
80
|
-
}
|
|
81
|
-
async function poll(fn, timeoutMs = 25000, interval = 500) {
|
|
82
|
-
const end = Date.now() + timeoutMs
|
|
83
|
-
while (Date.now() < end) {
|
|
84
|
-
const v = await fn()
|
|
85
|
-
if (v) return v
|
|
86
|
-
await sleep(interval)
|
|
87
|
-
}
|
|
88
|
-
return null
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
try {
|
|
92
|
-
await waitReady()
|
|
93
|
-
const email = `mem-runtime-${Date.now()}@aw.local`
|
|
94
|
-
const reg = await api('POST', '/api/users/register', { name: 'Mem Owner', email, password: 'Mem#2026' })
|
|
95
|
-
ok('R1', '注册 owner', reg.status === 200 && !!reg.data?.token, reg.message)
|
|
96
|
-
const token = reg.data?.token
|
|
97
|
-
const H = { authorization: `Bearer ${token}` }
|
|
98
|
-
|
|
99
|
-
const ch = await api('POST', '/api/workshop/channels', {
|
|
100
|
-
name: `记忆作用域验收频道 ${Date.now()}`,
|
|
101
|
-
leadAgent: { name: 'Lead', harness: 'mock', config: {} },
|
|
102
|
-
}, { authorization: `Bearer ${token}` })
|
|
103
|
-
ok('C1', '创建 Channel + mock lead', ch.status === 200 && !!ch.data?.channelId, ch.message)
|
|
104
|
-
const channelId = ch.data?.channelId
|
|
105
|
-
const worker = await api('POST', `/api/workshop/channels/${channelId}/agents`, {
|
|
106
|
-
name: 'Worker', harness: 'mock', role: 'worker', config: {},
|
|
107
|
-
}, { authorization: `Bearer ${token}` })
|
|
108
|
-
ok('C2', '添加 mock worker', worker.status === 200 && !!worker.data?.id, worker.message)
|
|
109
|
-
|
|
110
|
-
const sess = await api('POST', `/api/workshop/channels/${channelId}/sessions`, { title: '记忆作用域会话' }, { authorization: `Bearer ${token}` })
|
|
111
|
-
ok('C3', '创建 manual session(克隆成员)', sess.status === 200 && !!sess.data?.sessionId, sess.message)
|
|
112
|
-
const sessionId = sess.data?.sessionId
|
|
113
|
-
const cloneId = (sess.data?.members ?? [])[0]?.cloneId
|
|
114
|
-
ok('C4', 'session clone 成员存在', !!cloneId, JSON.stringify(sess.data?.members ?? []).slice(0, 200))
|
|
115
|
-
|
|
116
|
-
// ── M1:任务终态 → recordTaskOutcome 按 task.sessionId 戳(运行时自动路径)──
|
|
117
|
-
// 人工会话消息本身不落记忆(上下文已含);记忆的运行时 session 戳走任务终态 harvest。
|
|
118
|
-
const decision = '决策:本项目记忆验收采用会话作用域存储与按需检索'
|
|
119
|
-
await api('POST', `/api/workshop/channels/${channelId}/sessions/${sessionId}/messages`, { text: decision }, { authorization: `Bearer ${token}` })
|
|
120
|
-
|
|
121
|
-
const proj = await api('POST', '/api/workshop/projects', {
|
|
122
|
-
name: `记忆作用域验收项目 ${Date.now()}`,
|
|
123
|
-
objective: '验证 task session 记忆作用域',
|
|
124
|
-
leaderHarness: 'mock', mode: 'supervised', routingPolicy: 'legacy',
|
|
125
|
-
}, { authorization: `Bearer ${token}` })
|
|
126
|
-
ok('P1', '创建 Project', proj.status === 200 && !!proj.data?.id, proj.message)
|
|
127
|
-
const projectId = proj.data?.id
|
|
128
|
-
const bound = await api('POST', `/api/workshop/projects/${projectId}/channels`, { channelId, charter: '记忆验收' }, { authorization: `Bearer ${token}` })
|
|
129
|
-
ok('P2', '绑定执行 Channel', bound.status === 200, bound.message)
|
|
130
|
-
const del = await api('POST', `/api/workshop/projects/${projectId}/deliverables`, {
|
|
131
|
-
name: '记忆验收交付物', required: true, ownerChannelId: channelId, acceptanceCriteria: ['artifact_present'],
|
|
132
|
-
}, { authorization: `Bearer ${token}` })
|
|
133
|
-
ok('P3', '创建必选交付物', del.status === 200 && !!del.data?.id, del.message)
|
|
134
|
-
const wi = await api('POST', `/api/workshop/projects/${projectId}/work-items`, {
|
|
135
|
-
deliverableId: del.data?.id, channelId, title: '记忆验收工作项', brief: '产出一个可验收结果', execBudgetMinutes: 10,
|
|
136
|
-
}, { authorization: `Bearer ${token}` })
|
|
137
|
-
ok('P4', '创建工作项', wi.status === 200 && !!wi.data?.id, wi.message)
|
|
138
|
-
const act = await api('POST', `/api/workshop/projects/${projectId}/activate`, {}, { authorization: `Bearer ${token}` })
|
|
139
|
-
ok('P5', '激活项目', act.status === 200, act.message)
|
|
140
|
-
const plan = await api('POST', `/api/workshop/projects/${projectId}/plan/request-approval`, { version: 1, plan: { facts: ['mem scope'] } }, { authorization: `Bearer ${token}` })
|
|
141
|
-
ok('P6', '提交 plan 审批', plan.status === 200 && !!plan.data?.id, plan.message)
|
|
142
|
-
if (plan.data?.id) {
|
|
143
|
-
const decide = await api('POST', `/api/workshop/projects/${projectId}/approvals/${plan.data.id}/decide`, { approve: true }, { authorization: `Bearer ${token}` })
|
|
144
|
-
ok('P7', '批准 plan', decide.status === 200, decide.message)
|
|
145
|
-
}
|
|
146
|
-
const dispatch = await api('POST', `/api/workshop/projects/${projectId}/work-items/${wi.data?.id}/dispatch`, {}, { authorization: `Bearer ${token}` })
|
|
147
|
-
ok('P8', '派发工作项(任务实例 Channel + task session)', dispatch.status === 200, dispatch.message)
|
|
148
|
-
|
|
149
|
-
const sessions = await poll(async () => {
|
|
150
|
-
const r = await api('GET', `/api/workshop/projects/${projectId}/sessions`, undefined, { authorization: `Bearer ${token}` })
|
|
151
|
-
const rows = r.data ?? []
|
|
152
|
-
return rows.some(s2 => s2.kind === 'task') ? rows : null
|
|
153
|
-
}, 30000)
|
|
154
|
-
const taskSession = (sessions ?? []).find(s2 => s2.kind === 'task')
|
|
155
|
-
ok('P9', 'task session 生成', !!taskSession, JSON.stringify(sessions ?? []).slice(0, 200))
|
|
156
|
-
|
|
157
|
-
// 实例频道 clone 的任务终态记忆(带 task session 戳)
|
|
158
|
-
let stamped = null
|
|
159
|
-
let instAgents = []
|
|
160
|
-
let instMemDebug = []
|
|
161
|
-
if (taskSession) {
|
|
162
|
-
const ags = await api('GET', `/api/workshop/channels/${taskSession.channelId}/agents`, undefined, H)
|
|
163
|
-
instAgents = (ags.data ?? []).map(a => a.id ?? a.agentId).filter(Boolean)
|
|
164
|
-
stamped = await poll(async () => {
|
|
165
|
-
for (const aid of instAgents) {
|
|
166
|
-
const r = await api('GET', `/api/workshop/channels/${taskSession.channelId}/agents/${aid}/memories?limit=50`, undefined, H)
|
|
167
|
-
const rows = r.data ?? []
|
|
168
|
-
instMemDebug = rows.map(m => ({ title: m.title, sessionId: m.sessionId }))
|
|
169
|
-
const hit = rows.find(m => m.sessionId === taskSession.id)
|
|
170
|
-
if (hit) return { agentId: aid, ...hit }
|
|
171
|
-
}
|
|
172
|
-
return null
|
|
173
|
-
}, 45000)
|
|
174
|
-
}
|
|
175
|
-
ok('M1', '运行时任务终态记忆带 task session 戳', !!stamped, JSON.stringify({ stamped: stamped ?? null, instAgents, instMemDebug: instMemDebug.slice(0, 6) }).slice(0, 900))
|
|
176
|
-
|
|
177
|
-
// ── M2:检索隔离(实例频道 clone)──
|
|
178
|
-
let sHit = { status: 0, data: [] }
|
|
179
|
-
if (taskSession) {
|
|
180
|
-
await poll(async () => {
|
|
181
|
-
const r = await api('POST', `/api/workshop/channels/${taskSession.channelId}/agents/${instAgents[0]}/memories/search`, {
|
|
182
|
-
query: '交付任务', scope: 'session', sessionId: taskSession.id, limit: 10,
|
|
183
|
-
}, H)
|
|
184
|
-
sHit = r
|
|
185
|
-
return r.status === 200 && (r.data ?? []).length > 0 ? r.data : null
|
|
186
|
-
}, 20000)
|
|
187
|
-
}
|
|
188
|
-
ok('M2a', 'scope=session + sessionId 命中本会话行', (sHit.data ?? []).some(m => m.sessionId === taskSession?.id), JSON.stringify(sHit.data ?? []).slice(0, 300))
|
|
189
|
-
const sMiss = taskSession
|
|
190
|
-
? await api('POST', `/api/workshop/channels/${taskSession.channelId}/agents/${instAgents[0]}/memories/search`, {
|
|
191
|
-
query: '交付任务', scope: 'session', sessionId: 'sess-not-exist', limit: 10,
|
|
192
|
-
}, H)
|
|
193
|
-
: { status: 0, data: [] }
|
|
194
|
-
ok('M2b', '其他 session → 空(作用域隔离)', sMiss.status === 200 && (sMiss.data ?? []).length === 0, JSON.stringify(sMiss.data ?? []).slice(0, 200))
|
|
195
|
-
const sAuto = taskSession
|
|
196
|
-
? await api('POST', `/api/workshop/channels/${taskSession.channelId}/agents/${instAgents[0]}/memories/search`, {
|
|
197
|
-
query: '交付任务', scope: 'auto', sessionId: taskSession.id, limit: 10,
|
|
198
|
-
}, H)
|
|
199
|
-
: { status: 0, data: [] }
|
|
200
|
-
ok('M2c', 'auto 档 + sessionId 也可命中', sAuto.status === 200 && (sAuto.data ?? []).some(m => m.sessionId === taskSession?.id), JSON.stringify(sAuto.data ?? []).slice(0, 200))
|
|
201
|
-
|
|
202
|
-
// ── M3:工具桥(REST invoke,owner 用户通道;无活动回合 → 频道级 + session 档明确拒绝)──
|
|
203
|
-
const invoke = (tool, args) => api('POST', '/api/workshop/agent-tools/invoke', {
|
|
204
|
-
agentId: cloneId, tool, args,
|
|
205
|
-
}, H)
|
|
206
|
-
const saveNoSess = await invoke('save_memory', { title: '频道级记忆', content: '跨会话有效', scope: 'private' })
|
|
207
|
-
ok('M3a', 'save_memory(REST,无会话态)→ 频道级', saveNoSess.status === 200 && /频道级/.test(String(saveNoSess.data?.result?.text ?? '')), JSON.stringify(saveNoSess).slice(0, 400))
|
|
208
|
-
const savedRow = await poll(async () => {
|
|
209
|
-
const r = await api('GET', `/api/workshop/channels/${channelId}/agents/${cloneId}/memories?limit=50`, undefined, H)
|
|
210
|
-
return (r.data ?? []).find(m => m.title === '频道级记忆') ?? null
|
|
211
|
-
}, 15000)
|
|
212
|
-
ok('M3b', 'REST 落库行为频道级(sessionId 空)', !!savedRow && (savedRow.sessionId ?? '') === '', JSON.stringify(savedRow ?? {}).slice(0, 400))
|
|
213
|
-
const sessSearchNoCtx = await invoke('search_memory', { query: '跨会话', scope: 'session' })
|
|
214
|
-
ok('M3c', 'scope=session 无会话态 → 明确拒绝', sessSearchNoCtx.status === 200 && /没有 session 上下文/.test(String(sessSearchNoCtx.data?.result?.text ?? '')), JSON.stringify(sessSearchNoCtx).slice(0, 400))
|
|
215
|
-
|
|
216
|
-
// ── M4:UI 徽标数据源 ──
|
|
217
|
-
const listAll = await api('GET', `/api/workshop/channels/${channelId}/agents/${cloneId}/memories?limit=50`, undefined, H)
|
|
218
|
-
ok('M4', 'memories 列表含 sessionId 字段(UI 徽标)', (listAll.data ?? []).length >= 1 && (listAll.data ?? []).every(m => typeof m === 'object' && 'sessionId' in m), `rows=${(listAll.data ?? []).length}`)
|
|
219
|
-
|
|
220
|
-
const failed = results.filter(r => !r.pass).length
|
|
221
|
-
const report = { generatedAt: new Date().toISOString(), base: BASE, pass: results.length - failed, fail: failed, results }
|
|
222
|
-
writeFileSync(join(EVID, 'acceptance.json'), JSON.stringify(report, null, 2))
|
|
223
|
-
writeFileSync(join(EVID, 'server.log'), serverLog.slice(-20000))
|
|
224
|
-
console.log(`\n=== SESSION MEMORY RUNTIME ACCEPTANCE pass=${results.length - failed} fail=${failed} ===`)
|
|
225
|
-
process.exitCode = failed > 0 ? 1 : 0
|
|
226
|
-
}
|
|
227
|
-
catch (err) {
|
|
228
|
-
console.error('验收异常:', err)
|
|
229
|
-
writeFileSync(join(EVID, 'acceptance-error.log'), `${err?.stack ?? err}\n\n--- server ---\n${serverLog.slice(-20000)}`)
|
|
230
|
-
process.exitCode = 1
|
|
231
|
-
}
|
|
232
|
-
finally {
|
|
233
|
-
try {
|
|
234
|
-
child.kill()
|
|
235
|
-
}
|
|
236
|
-
catch { /* ignore */ }
|
|
237
|
-
await sleep(300)
|
|
238
|
-
if (process.exitCode === 0) {
|
|
239
|
-
try {
|
|
240
|
-
rmSync(ROOT, { recursive: true, force: true })
|
|
241
|
-
}
|
|
242
|
-
catch { /* ignore */ }
|
|
243
|
-
}
|
|
244
|
-
process.exit(process.exitCode ?? 0)
|
|
245
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 记忆运行时贯通(PR-B)实机验收:session 作用域记忆端到端。
|
|
4
|
+
* M1 运行时戳:session 对话 → clone 的 peer 交换记忆带 session 戳(运行时自动记录路径)。
|
|
5
|
+
* M2 检索隔离:search API scope=session + sessionId → 只回本会话行;他 session → 空。
|
|
6
|
+
* M3 工具桥:REST invoke save_memory(无 session 态)→ 频道级;scope=session 无上下文时明确拒绝。
|
|
7
|
+
* M4 徽标数据:memories 列表含 sessionId(UI session 徽标数据源)。
|
|
8
|
+
*
|
|
9
|
+
* 运行:node scripts/session-memory-runtime-acceptance.mjs(.output 已构建;端口 3994 / 临时 AW_HOME)
|
|
10
|
+
*/
|
|
11
|
+
import { spawn } from 'node:child_process'
|
|
12
|
+
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'
|
|
13
|
+
import { tmpdir } from 'node:os'
|
|
14
|
+
import { join, resolve, dirname } from 'node:path'
|
|
15
|
+
import { fileURLToPath } from 'node:url'
|
|
16
|
+
|
|
17
|
+
const REPO = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
|
18
|
+
const ROOT = mkdtempSync(join(tmpdir(), 'aw-mem-runtime-accept-'))
|
|
19
|
+
const HOME = join(ROOT, 'home')
|
|
20
|
+
mkdirSync(HOME, { recursive: true })
|
|
21
|
+
const PORT = 3994
|
|
22
|
+
const BASE = `http://127.0.0.1:${PORT}`
|
|
23
|
+
const EVID = join(REPO, 'docs/audit/evidence/2026-11-07-session-memory-runtime')
|
|
24
|
+
mkdirSync(EVID, { recursive: true })
|
|
25
|
+
|
|
26
|
+
const child = spawn(process.execPath, [join(REPO, '.output/server/index.mjs')], {
|
|
27
|
+
cwd: REPO,
|
|
28
|
+
env: {
|
|
29
|
+
...process.env,
|
|
30
|
+
PORT: String(PORT),
|
|
31
|
+
NITRO_PORT: String(PORT),
|
|
32
|
+
AW_MODE: 'home',
|
|
33
|
+
AW_HOME: HOME,
|
|
34
|
+
NUXT_SESSION_PASSWORD: 'MemRuntime#2026-acceptance',
|
|
35
|
+
AW_PROMPTS_DIR: join(REPO, '.output/.AgentWorkShop/prompts'),
|
|
36
|
+
NO_PROXY: '127.0.0.1,localhost',
|
|
37
|
+
},
|
|
38
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
39
|
+
windowsHide: true,
|
|
40
|
+
})
|
|
41
|
+
let serverLog = ''
|
|
42
|
+
child.stdout?.on('data', (d) => {
|
|
43
|
+
serverLog += String(d)
|
|
44
|
+
})
|
|
45
|
+
child.stderr?.on('data', (d) => {
|
|
46
|
+
serverLog += String(d)
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
const sleep = ms => new Promise(r => setTimeout(r, ms))
|
|
50
|
+
async function api(method, path, body, headers = {}) {
|
|
51
|
+
const res = await fetch(BASE + path, {
|
|
52
|
+
method,
|
|
53
|
+
headers: { 'content-type': 'application/json', ...headers },
|
|
54
|
+
body: body === undefined ? undefined : JSON.stringify(body),
|
|
55
|
+
})
|
|
56
|
+
const text = await res.text()
|
|
57
|
+
try {
|
|
58
|
+
const json = JSON.parse(text)
|
|
59
|
+
return { status: res.status, ...json }
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return { status: res.status, code: -1, message: text.slice(0, 300), data: null }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const results = []
|
|
66
|
+
const ok = (id, name, cond, detail = '') => {
|
|
67
|
+
results.push({ id, name, pass: Boolean(cond), detail: String(detail).slice(0, 500) })
|
|
68
|
+
console.log(`${cond ? '✔' : '✖'} [${id}] ${name}${cond ? '' : ` — ${String(detail).slice(0, 300)}`}`)
|
|
69
|
+
}
|
|
70
|
+
async function waitReady() {
|
|
71
|
+
for (let i = 0; i < 60; i++) {
|
|
72
|
+
try {
|
|
73
|
+
const r = await fetch(`${BASE}/api/health`, { signal: AbortSignal.timeout(1000) })
|
|
74
|
+
if (r.ok) return
|
|
75
|
+
}
|
|
76
|
+
catch { /* retry */ }
|
|
77
|
+
await sleep(1000)
|
|
78
|
+
}
|
|
79
|
+
throw new Error('server 未 ready')
|
|
80
|
+
}
|
|
81
|
+
async function poll(fn, timeoutMs = 25000, interval = 500) {
|
|
82
|
+
const end = Date.now() + timeoutMs
|
|
83
|
+
while (Date.now() < end) {
|
|
84
|
+
const v = await fn()
|
|
85
|
+
if (v) return v
|
|
86
|
+
await sleep(interval)
|
|
87
|
+
}
|
|
88
|
+
return null
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
try {
|
|
92
|
+
await waitReady()
|
|
93
|
+
const email = `mem-runtime-${Date.now()}@aw.local`
|
|
94
|
+
const reg = await api('POST', '/api/users/register', { name: 'Mem Owner', email, password: 'Mem#2026' })
|
|
95
|
+
ok('R1', '注册 owner', reg.status === 200 && !!reg.data?.token, reg.message)
|
|
96
|
+
const token = reg.data?.token
|
|
97
|
+
const H = { authorization: `Bearer ${token}` }
|
|
98
|
+
|
|
99
|
+
const ch = await api('POST', '/api/workshop/channels', {
|
|
100
|
+
name: `记忆作用域验收频道 ${Date.now()}`,
|
|
101
|
+
leadAgent: { name: 'Lead', harness: 'mock', config: {} },
|
|
102
|
+
}, { authorization: `Bearer ${token}` })
|
|
103
|
+
ok('C1', '创建 Channel + mock lead', ch.status === 200 && !!ch.data?.channelId, ch.message)
|
|
104
|
+
const channelId = ch.data?.channelId
|
|
105
|
+
const worker = await api('POST', `/api/workshop/channels/${channelId}/agents`, {
|
|
106
|
+
name: 'Worker', harness: 'mock', role: 'worker', config: {},
|
|
107
|
+
}, { authorization: `Bearer ${token}` })
|
|
108
|
+
ok('C2', '添加 mock worker', worker.status === 200 && !!worker.data?.id, worker.message)
|
|
109
|
+
|
|
110
|
+
const sess = await api('POST', `/api/workshop/channels/${channelId}/sessions`, { title: '记忆作用域会话' }, { authorization: `Bearer ${token}` })
|
|
111
|
+
ok('C3', '创建 manual session(克隆成员)', sess.status === 200 && !!sess.data?.sessionId, sess.message)
|
|
112
|
+
const sessionId = sess.data?.sessionId
|
|
113
|
+
const cloneId = (sess.data?.members ?? [])[0]?.cloneId
|
|
114
|
+
ok('C4', 'session clone 成员存在', !!cloneId, JSON.stringify(sess.data?.members ?? []).slice(0, 200))
|
|
115
|
+
|
|
116
|
+
// ── M1:任务终态 → recordTaskOutcome 按 task.sessionId 戳(运行时自动路径)──
|
|
117
|
+
// 人工会话消息本身不落记忆(上下文已含);记忆的运行时 session 戳走任务终态 harvest。
|
|
118
|
+
const decision = '决策:本项目记忆验收采用会话作用域存储与按需检索'
|
|
119
|
+
await api('POST', `/api/workshop/channels/${channelId}/sessions/${sessionId}/messages`, { text: decision }, { authorization: `Bearer ${token}` })
|
|
120
|
+
|
|
121
|
+
const proj = await api('POST', '/api/workshop/projects', {
|
|
122
|
+
name: `记忆作用域验收项目 ${Date.now()}`,
|
|
123
|
+
objective: '验证 task session 记忆作用域',
|
|
124
|
+
leaderHarness: 'mock', mode: 'supervised', routingPolicy: 'legacy',
|
|
125
|
+
}, { authorization: `Bearer ${token}` })
|
|
126
|
+
ok('P1', '创建 Project', proj.status === 200 && !!proj.data?.id, proj.message)
|
|
127
|
+
const projectId = proj.data?.id
|
|
128
|
+
const bound = await api('POST', `/api/workshop/projects/${projectId}/channels`, { channelId, charter: '记忆验收' }, { authorization: `Bearer ${token}` })
|
|
129
|
+
ok('P2', '绑定执行 Channel', bound.status === 200, bound.message)
|
|
130
|
+
const del = await api('POST', `/api/workshop/projects/${projectId}/deliverables`, {
|
|
131
|
+
name: '记忆验收交付物', required: true, ownerChannelId: channelId, acceptanceCriteria: ['artifact_present'],
|
|
132
|
+
}, { authorization: `Bearer ${token}` })
|
|
133
|
+
ok('P3', '创建必选交付物', del.status === 200 && !!del.data?.id, del.message)
|
|
134
|
+
const wi = await api('POST', `/api/workshop/projects/${projectId}/work-items`, {
|
|
135
|
+
deliverableId: del.data?.id, channelId, title: '记忆验收工作项', brief: '产出一个可验收结果', execBudgetMinutes: 10,
|
|
136
|
+
}, { authorization: `Bearer ${token}` })
|
|
137
|
+
ok('P4', '创建工作项', wi.status === 200 && !!wi.data?.id, wi.message)
|
|
138
|
+
const act = await api('POST', `/api/workshop/projects/${projectId}/activate`, {}, { authorization: `Bearer ${token}` })
|
|
139
|
+
ok('P5', '激活项目', act.status === 200, act.message)
|
|
140
|
+
const plan = await api('POST', `/api/workshop/projects/${projectId}/plan/request-approval`, { version: 1, plan: { facts: ['mem scope'] } }, { authorization: `Bearer ${token}` })
|
|
141
|
+
ok('P6', '提交 plan 审批', plan.status === 200 && !!plan.data?.id, plan.message)
|
|
142
|
+
if (plan.data?.id) {
|
|
143
|
+
const decide = await api('POST', `/api/workshop/projects/${projectId}/approvals/${plan.data.id}/decide`, { approve: true }, { authorization: `Bearer ${token}` })
|
|
144
|
+
ok('P7', '批准 plan', decide.status === 200, decide.message)
|
|
145
|
+
}
|
|
146
|
+
const dispatch = await api('POST', `/api/workshop/projects/${projectId}/work-items/${wi.data?.id}/dispatch`, {}, { authorization: `Bearer ${token}` })
|
|
147
|
+
ok('P8', '派发工作项(任务实例 Channel + task session)', dispatch.status === 200, dispatch.message)
|
|
148
|
+
|
|
149
|
+
const sessions = await poll(async () => {
|
|
150
|
+
const r = await api('GET', `/api/workshop/projects/${projectId}/sessions`, undefined, { authorization: `Bearer ${token}` })
|
|
151
|
+
const rows = r.data ?? []
|
|
152
|
+
return rows.some(s2 => s2.kind === 'task') ? rows : null
|
|
153
|
+
}, 30000)
|
|
154
|
+
const taskSession = (sessions ?? []).find(s2 => s2.kind === 'task')
|
|
155
|
+
ok('P9', 'task session 生成', !!taskSession, JSON.stringify(sessions ?? []).slice(0, 200))
|
|
156
|
+
|
|
157
|
+
// 实例频道 clone 的任务终态记忆(带 task session 戳)
|
|
158
|
+
let stamped = null
|
|
159
|
+
let instAgents = []
|
|
160
|
+
let instMemDebug = []
|
|
161
|
+
if (taskSession) {
|
|
162
|
+
const ags = await api('GET', `/api/workshop/channels/${taskSession.channelId}/agents`, undefined, H)
|
|
163
|
+
instAgents = (ags.data ?? []).map(a => a.id ?? a.agentId).filter(Boolean)
|
|
164
|
+
stamped = await poll(async () => {
|
|
165
|
+
for (const aid of instAgents) {
|
|
166
|
+
const r = await api('GET', `/api/workshop/channels/${taskSession.channelId}/agents/${aid}/memories?limit=50`, undefined, H)
|
|
167
|
+
const rows = r.data ?? []
|
|
168
|
+
instMemDebug = rows.map(m => ({ title: m.title, sessionId: m.sessionId }))
|
|
169
|
+
const hit = rows.find(m => m.sessionId === taskSession.id)
|
|
170
|
+
if (hit) return { agentId: aid, ...hit }
|
|
171
|
+
}
|
|
172
|
+
return null
|
|
173
|
+
}, 45000)
|
|
174
|
+
}
|
|
175
|
+
ok('M1', '运行时任务终态记忆带 task session 戳', !!stamped, JSON.stringify({ stamped: stamped ?? null, instAgents, instMemDebug: instMemDebug.slice(0, 6) }).slice(0, 900))
|
|
176
|
+
|
|
177
|
+
// ── M2:检索隔离(实例频道 clone)──
|
|
178
|
+
let sHit = { status: 0, data: [] }
|
|
179
|
+
if (taskSession) {
|
|
180
|
+
await poll(async () => {
|
|
181
|
+
const r = await api('POST', `/api/workshop/channels/${taskSession.channelId}/agents/${instAgents[0]}/memories/search`, {
|
|
182
|
+
query: '交付任务', scope: 'session', sessionId: taskSession.id, limit: 10,
|
|
183
|
+
}, H)
|
|
184
|
+
sHit = r
|
|
185
|
+
return r.status === 200 && (r.data ?? []).length > 0 ? r.data : null
|
|
186
|
+
}, 20000)
|
|
187
|
+
}
|
|
188
|
+
ok('M2a', 'scope=session + sessionId 命中本会话行', (sHit.data ?? []).some(m => m.sessionId === taskSession?.id), JSON.stringify(sHit.data ?? []).slice(0, 300))
|
|
189
|
+
const sMiss = taskSession
|
|
190
|
+
? await api('POST', `/api/workshop/channels/${taskSession.channelId}/agents/${instAgents[0]}/memories/search`, {
|
|
191
|
+
query: '交付任务', scope: 'session', sessionId: 'sess-not-exist', limit: 10,
|
|
192
|
+
}, H)
|
|
193
|
+
: { status: 0, data: [] }
|
|
194
|
+
ok('M2b', '其他 session → 空(作用域隔离)', sMiss.status === 200 && (sMiss.data ?? []).length === 0, JSON.stringify(sMiss.data ?? []).slice(0, 200))
|
|
195
|
+
const sAuto = taskSession
|
|
196
|
+
? await api('POST', `/api/workshop/channels/${taskSession.channelId}/agents/${instAgents[0]}/memories/search`, {
|
|
197
|
+
query: '交付任务', scope: 'auto', sessionId: taskSession.id, limit: 10,
|
|
198
|
+
}, H)
|
|
199
|
+
: { status: 0, data: [] }
|
|
200
|
+
ok('M2c', 'auto 档 + sessionId 也可命中', sAuto.status === 200 && (sAuto.data ?? []).some(m => m.sessionId === taskSession?.id), JSON.stringify(sAuto.data ?? []).slice(0, 200))
|
|
201
|
+
|
|
202
|
+
// ── M3:工具桥(REST invoke,owner 用户通道;无活动回合 → 频道级 + session 档明确拒绝)──
|
|
203
|
+
const invoke = (tool, args) => api('POST', '/api/workshop/agent-tools/invoke', {
|
|
204
|
+
agentId: cloneId, tool, args,
|
|
205
|
+
}, H)
|
|
206
|
+
const saveNoSess = await invoke('save_memory', { title: '频道级记忆', content: '跨会话有效', scope: 'private' })
|
|
207
|
+
ok('M3a', 'save_memory(REST,无会话态)→ 频道级', saveNoSess.status === 200 && /频道级/.test(String(saveNoSess.data?.result?.text ?? '')), JSON.stringify(saveNoSess).slice(0, 400))
|
|
208
|
+
const savedRow = await poll(async () => {
|
|
209
|
+
const r = await api('GET', `/api/workshop/channels/${channelId}/agents/${cloneId}/memories?limit=50`, undefined, H)
|
|
210
|
+
return (r.data ?? []).find(m => m.title === '频道级记忆') ?? null
|
|
211
|
+
}, 15000)
|
|
212
|
+
ok('M3b', 'REST 落库行为频道级(sessionId 空)', !!savedRow && (savedRow.sessionId ?? '') === '', JSON.stringify(savedRow ?? {}).slice(0, 400))
|
|
213
|
+
const sessSearchNoCtx = await invoke('search_memory', { query: '跨会话', scope: 'session' })
|
|
214
|
+
ok('M3c', 'scope=session 无会话态 → 明确拒绝', sessSearchNoCtx.status === 200 && /没有 session 上下文/.test(String(sessSearchNoCtx.data?.result?.text ?? '')), JSON.stringify(sessSearchNoCtx).slice(0, 400))
|
|
215
|
+
|
|
216
|
+
// ── M4:UI 徽标数据源 ──
|
|
217
|
+
const listAll = await api('GET', `/api/workshop/channels/${channelId}/agents/${cloneId}/memories?limit=50`, undefined, H)
|
|
218
|
+
ok('M4', 'memories 列表含 sessionId 字段(UI 徽标)', (listAll.data ?? []).length >= 1 && (listAll.data ?? []).every(m => typeof m === 'object' && 'sessionId' in m), `rows=${(listAll.data ?? []).length}`)
|
|
219
|
+
|
|
220
|
+
const failed = results.filter(r => !r.pass).length
|
|
221
|
+
const report = { generatedAt: new Date().toISOString(), base: BASE, pass: results.length - failed, fail: failed, results }
|
|
222
|
+
writeFileSync(join(EVID, 'acceptance.json'), JSON.stringify(report, null, 2))
|
|
223
|
+
writeFileSync(join(EVID, 'server.log'), serverLog.slice(-20000))
|
|
224
|
+
console.log(`\n=== SESSION MEMORY RUNTIME ACCEPTANCE pass=${results.length - failed} fail=${failed} ===`)
|
|
225
|
+
process.exitCode = failed > 0 ? 1 : 0
|
|
226
|
+
}
|
|
227
|
+
catch (err) {
|
|
228
|
+
console.error('验收异常:', err)
|
|
229
|
+
writeFileSync(join(EVID, 'acceptance-error.log'), `${err?.stack ?? err}\n\n--- server ---\n${serverLog.slice(-20000)}`)
|
|
230
|
+
process.exitCode = 1
|
|
231
|
+
}
|
|
232
|
+
finally {
|
|
233
|
+
try {
|
|
234
|
+
child.kill()
|
|
235
|
+
}
|
|
236
|
+
catch { /* ignore */ }
|
|
237
|
+
await sleep(300)
|
|
238
|
+
if (process.exitCode === 0) {
|
|
239
|
+
try {
|
|
240
|
+
rmSync(ROOT, { recursive: true, force: true })
|
|
241
|
+
}
|
|
242
|
+
catch { /* ignore */ }
|
|
243
|
+
}
|
|
244
|
+
process.exit(process.exitCode ?? 0)
|
|
245
|
+
}
|
|
@@ -13,13 +13,26 @@
|
|
|
13
13
|
* 校验被整段跳过,于是**任意登录用户可冒用任意 agent 调工具**(继承其节点绑定与 channel)。
|
|
14
14
|
* body: { agentId, tool, args }
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { readValidatedBody, getHeader } from 'h3'
|
|
17
|
+
import { z } from 'zod'
|
|
17
18
|
import { resolveUser } from '@/server/api/workshop/caller'
|
|
18
19
|
import { defineApiHandler } from '@/server/utils/response'
|
|
19
20
|
import { AppError } from '@/server/utils/errors'
|
|
21
|
+
import { zValidator } from '@/server/utils/validate'
|
|
20
22
|
import { getWorkshopManager } from '@/server/plugins/workshop'
|
|
21
23
|
import type { AgentChannelManager } from '@/server/services/workshop/runtime/manager'
|
|
22
24
|
|
|
25
|
+
/**
|
|
26
|
+
* 工具桥入参:agentId/tool 形状是硬契约(非空;tool 名只允许 [a-z0-9_])。
|
|
27
|
+
* args 保持开放对象(各工具自有 schema,由 host-tool-bridge 逐工具校验),
|
|
28
|
+
* 但拒绝数组/标量 —— 过去会被当作对象透传进 dispatch。
|
|
29
|
+
*/
|
|
30
|
+
const invokeSchema = z.object({
|
|
31
|
+
agentId: z.string().trim().min(1, 'agentId required'),
|
|
32
|
+
tool: z.string().trim().min(1, 'tool required').regex(/^[a-z0-9_]{1,64}$/, 'tool 名只能是 [a-z0-9_] 且不超过 64 字符'),
|
|
33
|
+
args: z.record(z.string(), z.unknown()).optional().default({}),
|
|
34
|
+
})
|
|
35
|
+
|
|
23
36
|
/**
|
|
24
37
|
* manager 依赖仓储视图。
|
|
25
38
|
* 公开面没有「按 id 取 channel 行(含 ownerUserId、不抛错)」的等价方法:
|
|
@@ -37,12 +50,7 @@ export default defineApiHandler(async (event) => {
|
|
|
37
50
|
// 用户路径:必须校验「该用户可支配该 agent」(桥路径由 token 自证兜底)
|
|
38
51
|
let user = null
|
|
39
52
|
if (!agentToken) user = resolveUser(event)
|
|
40
|
-
const
|
|
41
|
-
const agentId = String(body.agentId ?? '')
|
|
42
|
-
const tool = String(body.tool ?? '')
|
|
43
|
-
const args = body.args ?? {}
|
|
44
|
-
if (!agentId) throw createError({ statusCode: 400, statusMessage: 'agentId required' })
|
|
45
|
-
if (!tool) throw createError({ statusCode: 400, statusMessage: 'tool required' })
|
|
53
|
+
const { agentId, tool, args } = await readValidatedBody(event, zValidator(invokeSchema))
|
|
46
54
|
const manager = getWorkshopManager()
|
|
47
55
|
if (agentToken) {
|
|
48
56
|
const resolved = manager.resolveAgentByToken(String(agentToken))
|
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GET /api/workshop/aml/datasets —— 数据集列表(产线可见性过滤;line/product/recipe 可选过滤)。
|
|
3
|
+
*
|
|
4
|
+
* 2026-11-09: query 收敛到 zod。空串=未提供语义不变(处理器内归一)。
|
|
3
5
|
*/
|
|
4
|
-
import {
|
|
6
|
+
import { getValidatedQuery } from 'h3'
|
|
7
|
+
import { z } from 'zod'
|
|
5
8
|
import { defineApiHandler } from '@/server/utils/response'
|
|
6
9
|
import { resolveUser } from '@/server/api/workshop/caller'
|
|
10
|
+
import { zValidator } from '@/server/utils/validate'
|
|
7
11
|
import { filterByLine } from '@/server/services/workshop/permissions'
|
|
8
12
|
import { getAmlRuntime } from '@/server/services/workshop/aml/runtime'
|
|
9
13
|
|
|
14
|
+
const schema = z.object({
|
|
15
|
+
lineId: z.string().optional(),
|
|
16
|
+
productId: z.string().optional(),
|
|
17
|
+
recipeId: z.string().optional(),
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
const strOf = (v: string | undefined): string | undefined => (v === undefined || v.trim() === '' ? undefined : v.trim())
|
|
21
|
+
|
|
10
22
|
export default defineApiHandler(async (event) => {
|
|
11
23
|
const user = resolveUser(event)
|
|
12
|
-
const q =
|
|
13
|
-
const s = (k: string): string | undefined => (typeof q[k] === 'string' && q[k] ? (q[k] as string) : undefined)
|
|
24
|
+
const q = await getValidatedQuery(event, zValidator(schema))
|
|
14
25
|
const datasets = filterByLine(
|
|
15
26
|
user,
|
|
16
|
-
getAmlRuntime().repo.dataset.list({
|
|
27
|
+
getAmlRuntime().repo.dataset.list({
|
|
28
|
+
lineId: strOf(q.lineId),
|
|
29
|
+
productId: strOf(q.productId),
|
|
30
|
+
recipeId: strOf(q.recipeId),
|
|
31
|
+
limit: 200,
|
|
32
|
+
}),
|
|
17
33
|
ds => ds.lineId,
|
|
18
34
|
)
|
|
19
35
|
return { datasets }
|
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GET /api/workshop/aml/jobs —— 作业列表(status/datasetId 过滤;产线可见性过滤)。
|
|
3
|
+
*
|
|
4
|
+
* 2026-11-09: query 收敛到 zod。空串=未提供语义不变(处理器内归一)。
|
|
3
5
|
*/
|
|
4
|
-
import {
|
|
6
|
+
import { getValidatedQuery } from 'h3'
|
|
7
|
+
import { z } from 'zod'
|
|
5
8
|
import { defineApiHandler } from '@/server/utils/response'
|
|
6
9
|
import { resolveUser } from '@/server/api/workshop/caller'
|
|
10
|
+
import { zValidator } from '@/server/utils/validate'
|
|
7
11
|
import { filterByLine } from '@/server/services/workshop/permissions'
|
|
8
12
|
import { getAmlRuntime } from '@/server/services/workshop/aml/runtime'
|
|
9
13
|
|
|
14
|
+
const schema = z.object({
|
|
15
|
+
status: z.string().optional(),
|
|
16
|
+
datasetId: z.string().optional(),
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const strOf = (v: string | undefined): string | undefined => (v === undefined || v.trim() === '' ? undefined : v.trim())
|
|
20
|
+
|
|
10
21
|
export default defineApiHandler(async (event) => {
|
|
11
22
|
const user = resolveUser(event)
|
|
12
|
-
const q =
|
|
23
|
+
const q = await getValidatedQuery(event, zValidator(schema))
|
|
13
24
|
const rt = getAmlRuntime()
|
|
14
25
|
const jobs = rt.repo.job.list({
|
|
15
|
-
status:
|
|
16
|
-
datasetId:
|
|
26
|
+
status: strOf(q.status),
|
|
27
|
+
datasetId: strOf(q.datasetId),
|
|
17
28
|
limit: 100,
|
|
18
29
|
})
|
|
19
30
|
// datasetId → lineId 映射(产线可见性过滤;避免逐作业重复查询)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GET /api/workshop/aml/models/:id —— 单模型详情(主资源路径)。
|
|
3
|
+
*
|
|
4
|
+
* 对称性修复(2026-11-09):该路径此前只有 PATCH/DELETE 与 [id]/promote、[id]/predict,
|
|
5
|
+
* 主资源路径可改不可读 —— 读侧只能拉 /aml/models 全量列表再前端筛。
|
|
6
|
+
* 授权口径与列表一致:登录 + 按数据集 lineId 的产线可见性过滤(filterByLine/requireLineMode readonly)。
|
|
7
|
+
*/
|
|
8
|
+
import { getRouterParam } from 'h3'
|
|
9
|
+
import { defineApiHandler } from '@/server/utils/response'
|
|
10
|
+
import { resolveUser } from '@/server/api/workshop/caller'
|
|
11
|
+
import { AppError } from '@/server/utils/errors'
|
|
12
|
+
import { requireLineMode } from '@/server/services/workshop/permissions'
|
|
13
|
+
import { getAmlRuntime } from '@/server/services/workshop/aml/runtime'
|
|
14
|
+
|
|
15
|
+
export default defineApiHandler(async (event) => {
|
|
16
|
+
const user = resolveUser(event)
|
|
17
|
+
const id = getRouterParam(event, 'id') ?? ''
|
|
18
|
+
const rt = getAmlRuntime()
|
|
19
|
+
const model = rt.repo.model.get(id)
|
|
20
|
+
if (!model) throw new AppError(404, 'AML_MODEL_MISSING', `模型 ${id} 不存在`)
|
|
21
|
+
// 可见性:与列表同源(该模型所属数据集的产线读授权);admin/无权产线的判定在 requireLineMode 内
|
|
22
|
+
requireLineMode(user, rt.repo.dataset.get(model.datasetId)?.lineId, 'readonly')
|
|
23
|
+
return { model }
|
|
24
|
+
})
|