agentworkshop 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.AgentWorkShop/prompts/host-tools.json +47 -6
- package/.output/.AgentWorkShop/prompts/host-tools.json +47 -6
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/2v5GdspM2.js +1 -0
- package/.output/public/_nuxt/79qPRzcC2.js +3 -0
- package/.output/public/_nuxt/{DXcrmAEB.js → B1h4ZjKu.js} +6 -6
- package/.output/public/_nuxt/{CtHO6S5H2.js → CMDDJOia2.js} +1 -1
- package/.output/public/_nuxt/{BntjKfNX2.js → CUdJHUOd2.js} +1 -1
- package/.output/public/_nuxt/CjCc77Ql.js +1 -0
- package/.output/public/_nuxt/D2EC-BTb2.js +1 -0
- package/.output/public/_nuxt/D4ZePemJ.js +1 -0
- package/.output/public/_nuxt/{Bn4GxfTn.js → DDVBwkyn.js} +1 -1
- package/.output/public/_nuxt/DkfR8ywD.js +1 -0
- package/.output/public/_nuxt/Dv_vyxzC.js +1 -0
- package/.output/public/_nuxt/LiHaSoeY.js +2 -0
- package/.output/public/_nuxt/PWLUz4KM2.js +1 -0
- package/.output/public/_nuxt/ZMaEnWy-.js +1 -0
- package/.output/public/_nuxt/_id_.CHcnHuNN.css +1 -0
- package/.output/public/_nuxt/{_wsId_.DDEHesFu.css → _wsId_.2GiFh9as.css} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/cf638aaa-655e-454c-9786-ffa73903190a.json +1 -0
- package/.output/public/_nuxt/{default.DfmSp-wb.css → default.CwrtJt16.css} +1 -1
- package/.output/public/_nuxt/{entry.cd1EADeI.css → entry.DttkgxyK.css} +1 -1
- package/.output/public/_nuxt/kHiXWyIi.js +1 -0
- package/.output/public/_nuxt/projects.B0DecJy4.css +1 -0
- package/.output/public/_nuxt/workshop.Csi6_Wwg.css +1 -0
- package/.output/server/chunks/_/{TownView-uicih2T8.mjs → TownView-Cpb_4CFs.mjs} +4 -4
- package/.output/server/chunks/_/TownView-Cpb_4CFs.mjs.map +1 -0
- package/.output/server/chunks/_/{_id_-DMxiYYGr.mjs → _id_-7j1H6aZV.mjs} +8 -8
- package/.output/server/chunks/_/_id_-7j1H6aZV.mjs.map +1 -0
- package/.output/server/chunks/_/{_id_-BX8hihhe.mjs → _id_-Ca3d9Npk.mjs} +13 -13
- package/.output/server/chunks/_/_id_-Ca3d9Npk.mjs.map +1 -0
- package/.output/server/chunks/_/_id_-Dl378h-P.mjs +995 -0
- package/.output/server/chunks/_/_id_-Dl378h-P.mjs.map +1 -0
- package/.output/server/chunks/_/{_wsId_-DzfJ2fFZ.mjs → _wsId_-e7Fm33hR.mjs} +16 -10
- package/.output/server/chunks/_/{_wsId_-DzfJ2fFZ.mjs.map → _wsId_-e7Fm33hR.mjs.map} +1 -1
- package/.output/server/chunks/_/access.mjs +1 -1
- package/.output/server/chunks/_/{analysis-DVLO0bCy.mjs → analysis-DvtU3Ots.mjs} +3 -3
- package/.output/server/chunks/_/analysis-DvtU3Ots.mjs.map +1 -0
- package/.output/server/chunks/_/catalog-view.mjs +1 -1
- package/.output/server/chunks/_/{daq-CWiRcs2W.mjs → daq-WT075QK5.mjs} +8 -8
- package/.output/server/chunks/_/daq-WT075QK5.mjs.map +1 -0
- package/.output/server/chunks/_/data-export.mjs +6 -6
- package/.output/server/chunks/_/data-query.mjs +3 -3
- package/.output/server/chunks/_/{dcw-BrEWEFnj.mjs → dcw-BhY0QjNL.mjs} +8 -8
- package/.output/server/chunks/_/dcw-BhY0QjNL.mjs.map +1 -0
- package/.output/server/chunks/_/{default-CAvZHtuk.mjs → default-C3L2_Bnq.mjs} +18 -8
- package/.output/server/chunks/_/{default-CAvZHtuk.mjs.map → default-C3L2_Bnq.mjs.map} +1 -1
- package/.output/server/chunks/_/eda-run.repo.mjs +2 -2
- package/.output/server/chunks/_/features.mjs +4 -4
- package/.output/server/chunks/_/golden.mjs +2 -2
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/index.mjs +1 -1
- package/.output/server/chunks/_/{logs-Lx7w3LYH.mjs → logs-ClfR5sWn.mjs} +3 -3
- package/.output/server/chunks/_/logs-ClfR5sWn.mjs.map +1 -0
- package/.output/server/chunks/_/mes-console.mjs +1 -1
- package/.output/server/chunks/_/mes-templates.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +4434 -2470
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/{operations--xLPUg-f.mjs → operations-4t5GxQcD.mjs} +3 -3
- package/.output/server/chunks/_/operations-4t5GxQcD.mjs.map +1 -0
- package/.output/server/chunks/_/{pages-CzF3fZqL.mjs → pages-BwA6EqWo.mjs} +4 -4
- package/.output/server/chunks/_/pages-BwA6EqWo.mjs.map +1 -0
- package/.output/server/chunks/_/projects-k6arYbBh.mjs +345 -0
- package/.output/server/chunks/_/projects-k6arYbBh.mjs.map +1 -0
- package/.output/server/chunks/_/promote.mjs +186 -0
- package/.output/server/chunks/_/promote.mjs.map +1 -0
- package/.output/server/chunks/_/rest-auth.mjs +1 -1
- package/.output/server/chunks/_/spc.mjs +1 -1
- package/.output/server/chunks/_/{town-HjaOuPYS.mjs → town-CCkZYizH.mjs} +4 -4
- package/.output/server/chunks/_/town-CCkZYizH.mjs.map +1 -0
- package/.output/server/chunks/_/types-D6J7slEa.mjs +1 -1
- package/.output/server/chunks/_/{useDaqAddNode-CkGitJOy.mjs → useDaqAddNode-qUTVIBD0.mjs} +3 -3
- package/.output/server/chunks/_/useDaqAddNode-qUTVIBD0.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailBinding-BKi46wvJ.mjs → useDaqDetailBinding-D0JkQZhl.mjs} +2 -2
- package/.output/server/chunks/_/useDaqDetailBinding-D0JkQZhl.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailFrames-B6cqF1w1.mjs → useDaqDetailFrames-Du_raRy1.mjs} +2 -2
- package/.output/server/chunks/_/useDaqDetailFrames-Du_raRy1.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailHistory-D0sdKiWx.mjs → useDaqDetailHistory-BQx0cKA6.mjs} +2 -2
- package/.output/server/chunks/_/useDaqDetailHistory-BQx0cKA6.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailNode-DgxYQZBG.mjs → useDaqDetailNode-UCnodI1A.mjs} +4 -4
- package/.output/server/chunks/_/useDaqDetailNode-UCnodI1A.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqDetailParams-D-ZJw2GJ.mjs → useDaqDetailParams-D4ZVxVla.mjs} +3 -3
- package/.output/server/chunks/_/useDaqDetailParams-D4ZVxVla.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqFilters-Bi8Ybyhl.mjs → useDaqFilters-CugTQrIt.mjs} +4 -4
- package/.output/server/chunks/_/useDaqFilters-CugTQrIt.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqOptimizations-XodbRzgb.mjs → useDaqOptimizations-_P1sco7P.mjs} +2 -2
- package/.output/server/chunks/_/useDaqOptimizations-_P1sco7P.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqStream-CGbftQdw.mjs → useDaqStream-BVFNKAP9.mjs} +2 -2
- package/.output/server/chunks/_/useDaqStream-BVFNKAP9.mjs.map +1 -0
- package/.output/server/chunks/_/{useDaqTemplates-Bo_sE1xp.mjs → useDaqTemplates-DmcUC_Aw.mjs} +3 -3
- package/.output/server/chunks/_/useDaqTemplates-DmcUC_Aw.mjs.map +1 -0
- package/.output/server/chunks/_/{useDashboardData-BJ30kVLq.mjs → useDashboardData-Dv1SJs3v.mjs} +3 -3
- package/.output/server/chunks/_/useDashboardData-Dv1SJs3v.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwAddNode-BLqwQe59.mjs → useDcwAddNode-CZtXylAe.mjs} +3 -3
- package/.output/server/chunks/_/useDcwAddNode-CZtXylAe.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwCards-CofBoHat.mjs → useDcwCards-CItS2A_F.mjs} +2 -2
- package/.output/server/chunks/_/useDcwCards-CItS2A_F.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwDetailScope-DhkBcKaS.mjs → useDcwDetailScope-Dyu0bYy9.mjs} +3 -3
- package/.output/server/chunks/_/useDcwDetailScope-Dyu0bYy9.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwDetailTemplates-BSmmOkFn.mjs → useDcwDetailTemplates-CwK1rb2i.mjs} +2 -2
- package/.output/server/chunks/_/useDcwDetailTemplates-CwK1rb2i.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwFilter-Bh8dJ1of.mjs → useDcwFilter-CvuCOvU2.mjs} +2 -2
- package/.output/server/chunks/_/useDcwFilter-CvuCOvU2.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwLedger-UEB2x63E.mjs → useDcwLedger-CI-AK4j3.mjs} +2 -2
- package/.output/server/chunks/_/useDcwLedger-CI-AK4j3.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwLineMutations-9PElT2Fz.mjs → useDcwLineMutations-CsS2rDUh.mjs} +2 -2
- package/.output/server/chunks/_/useDcwLineMutations-CsS2rDUh.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwLineRun-BPm0ZPs1.mjs → useDcwLineRun-B1uLN_MJ.mjs} +2 -2
- package/.output/server/chunks/_/useDcwLineRun-B1uLN_MJ.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwParamApprovals-Ctczj8Lm.mjs → useDcwParamApprovals-CVab6q8T.mjs} +2 -2
- package/.output/server/chunks/_/useDcwParamApprovals-CVab6q8T.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwProducts-hgfkZhht.mjs → useDcwProducts-OAvQBk5O.mjs} +2 -2
- package/.output/server/chunks/_/useDcwProducts-OAvQBk5O.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwQuery-Dd411JAJ.mjs → useDcwQuery-dgEkZDAy.mjs} +2 -2
- package/.output/server/chunks/_/useDcwQuery-dgEkZDAy.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwQuickActions-C7cIVK0F.mjs → useDcwQuickActions-C3ItztwI.mjs} +2 -2
- package/.output/server/chunks/_/useDcwQuickActions-C3ItztwI.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwRecipes-DaQAxk7t.mjs → useDcwRecipes-BD4PjvzG.mjs} +2 -2
- package/.output/server/chunks/_/useDcwRecipes-BD4PjvzG.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwStream-2-KfS0lN.mjs → useDcwStream-BTcOZh5H.mjs} +2 -2
- package/.output/server/chunks/_/useDcwStream-BTcOZh5H.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwTemplates-BXtYJspX.mjs → useDcwTemplates-CsR6b3ws.mjs} +2 -2
- package/.output/server/chunks/_/useDcwTemplates-CsR6b3ws.mjs.map +1 -0
- package/.output/server/chunks/_/{useDcwWrites-IOVVc-Sz.mjs → useDcwWrites-C55DL7Fe.mjs} +2 -2
- package/.output/server/chunks/_/useDcwWrites-C55DL7Fe.mjs.map +1 -0
- package/.output/server/chunks/_/{useLogsScope-BFU7kLl9.mjs → useLogsScope-CUxlAoQN.mjs} +2 -2
- package/.output/server/chunks/_/useLogsScope-CUxlAoQN.mjs.map +1 -0
- package/.output/server/chunks/_/{workshop-CeaToa_8.mjs → workshop-D2ucb128.mjs} +4 -4
- package/.output/server/chunks/_/workshop-D2ucb128.mjs.map +1 -0
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
- package/.output/server/chunks/routes/api/system/backup/run.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +8 -9
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +15 -5
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +10 -5
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs +62 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-stats.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-stats.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index10.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index10.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +7 -5
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +24 -22
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +9 -13
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +22 -72
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +14 -27
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +72 -7
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs +28 -22
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs +7 -66
- package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs +20 -38
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.post.mjs +99 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index6.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs +34 -4
- package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index8.get.mjs +9 -8
- package/.output/server/chunks/routes/api/workshop/channels/_id/index8.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index9.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index9.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/experience-stats.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/experience-stats.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/tools/reset.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +6 -6
- package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs +9 -7
- package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index2.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/daq/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs +34 -16
- package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/storage/retention.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/storage/rollup.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/storage.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +7 -13
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +14 -8
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +9 -20
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +17 -14
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +15 -12
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +11 -5
- package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs +7 -2
- package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/mes-artifacts/file.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/mes-hook-test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/mes-test-read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +8 -5
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +8 -6
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/eda/vm/predict.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/exp/confirmations/_id/decide.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/exp/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +17 -10
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.put.mjs +16 -11
- package/.output/server/chunks/routes/api/workshop/index.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index12.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index13.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mes/bridge.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mes/datasets.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/mes/index.put.mjs +7 -8
- package/.output/server/chunks/routes/api/workshop/mes/index.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/autofix.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/compile.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/evidence.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/publish.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval-decision.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/transition.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/subgraph.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/validate.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/export/_ontologyId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/scene.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/traces/_ontologyId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId/compare.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId_.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/capabilities.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/index2.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/profiles/_id/publish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/crosscheck.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/dispatch.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/optimization/solve.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/datasets.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/eligibility.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/experiments.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/index.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/specs/_id/publish.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/process-model/train.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/projects/_id/kernel/tick.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/projects/instantiate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tools/sync.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +1 -1
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/virtual/entry.mjs +50 -46
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +53 -8
- package/README.md +53 -8
- package/app/components/AppSidebar.vue +2 -0
- package/app/components/workshop/CommandPalette.vue +1 -0
- package/app/components/workshop/workbench/WorkbenchHead.vue +35 -7
- package/app/composables/useRouteMeta.ts +1 -0
- package/app/pages/projects/[id].vue +2882 -1603
- package/app/pages/projects/index.vue +982 -176
- package/config.yml +1 -1
- package/docs/cli.en.md +3 -3
- package/docs/cli.md +2 -2
- package/docs/plugins.en.md +1 -1
- package/docs/plugins.md +1 -1
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/i18n/locales/en.ts +2 -0
- package/i18n/locales/zh-CN.ts +2 -0
- package/package.json +2 -2
- package/scripts/_audit/_readme-canvas-shot.mjs +48 -48
- package/scripts/_audit/cal3-staged-live.mjs +3 -0
- package/scripts/_audit/desktop-demo-shot.mjs +31 -31
- package/scripts/_audit/frontend-interaction-demo.mjs +99 -99
- package/scripts/_audit/multi-harness-isolation-live.mjs +132 -132
- package/scripts/_audit/omp-channel-project-session-live.mjs +481 -0
- package/scripts/_audit/omp-project-single-live.mjs +167 -0
- package/scripts/_audit/project-blueprint-live.mjs +63 -42
- package/scripts/_audit/project-landing-live.mjs +659 -0
- package/scripts/acceptance-rsi-evolution.ts +188 -0
- package/scripts/acceptance-rsi-live-e2e.mjs +611 -0
- package/scripts/acceptance-rsi-stage1.ts +208 -0
- package/scripts/check-rsi-redline.mjs +73 -0
- package/scripts/demo/accept-harness-fix.mjs +178 -0
- package/scripts/e2e-final-assertions.mjs +51 -51
- package/scripts/e2e-landing-scenario.mjs +409 -409
- package/scripts/e2e-landing-shot.mjs +24 -24
- package/scripts/e2e-page-shot.mjs +71 -71
- package/scripts/e2e-session-shot.mjs +82 -82
- package/scripts/e2e-ui-capture.mjs +125 -125
- package/scripts/e2e-us7-close.mjs +88 -88
- package/scripts/e2e-us7-final.mjs +132 -132
- package/scripts/e2e-us7-retry.mjs +136 -136
- package/scripts/session-memory-runtime-acceptance.mjs +245 -245
- package/server/api/workshop/agent-tools/invoke.post.ts +15 -7
- package/server/api/workshop/aml/datasets/index.get.ts +20 -4
- package/server/api/workshop/aml/jobs/index.get.ts +15 -4
- package/server/api/workshop/aml/models/[id]/index.get.ts +24 -0
- package/server/api/workshop/aml/training-plans/[id]/index.get.ts +19 -0
- package/server/api/workshop/channels/[id]/harness-profiles/index.get.ts +27 -0
- package/server/api/workshop/channels/[id]/harness-profiles/index.post.ts +46 -0
- package/server/api/workshop/channels/[id]/harness-profiles/promote.post.ts +48 -0
- package/server/api/workshop/channels/[id]/improvement-stats.get.ts +20 -0
- package/server/api/workshop/channels/[id]/memories/[memoryId]/promote.post.ts +33 -0
- package/server/api/workshop/channels/[id]/memories/experience-stats.get.ts +19 -0
- package/server/api/workshop/channels/[id]/verifications/index.get.ts +23 -0
- package/server/api/workshop/daq/[id]/index.get.ts +25 -0
- package/server/api/workshop/daq/query.get.ts +42 -14
- package/server/api/workshop/dcw/[id]/index.get.ts +24 -0
- package/server/api/workshop/dcw/lines/[id]/index.get.ts +27 -0
- package/server/api/workshop/dcw/params/[id]/write.post.ts +12 -3
- package/server/api/workshop/device-twins/[id]/control.post.ts +12 -4
- package/server/api/workshop/hitl/respond.post.ts +19 -21
- package/server/api/workshop/mes/secrets/index.put.ts +11 -6
- package/server/api/workshop/permissions/index.put.ts +20 -9
- package/server/api/workshop/projects/[id]/deliverables/[did]/index.get.ts +19 -0
- package/server/api/workshop/projects/[id]/work-items/[wid]/index.get.ts +20 -0
- package/server/plugins/workshop.ts +3 -0
- package/server/services/workshop/agents/agent-interface.ts +63 -2
- package/server/services/workshop/agents/base-agent.ts +7 -1
- package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +3 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/improvement.ts +33 -0
- package/server/services/workshop/agents/host-tool-bridge/tools/memory.ts +68 -12
- package/server/services/workshop/agents/industrial/analysis-tools.ts +3 -0
- package/server/services/workshop/agents/industrial/line-tools.ts +11 -1
- package/server/services/workshop/agents/industrial/ops-tools.ts +22 -0
- package/server/services/workshop/agents/industrial/recipe-propose-tools.ts +8 -2
- package/server/services/workshop/agents/omp-agent/client.ts +18 -1
- package/server/services/workshop/agents/omp-agent/context-governance.ts +13 -1
- package/server/services/workshop/agents/omp-agent/core.ts +6 -0
- package/server/services/workshop/agents/task-channel-profile.ts +55 -0
- package/server/services/workshop/agents/task-channel.ts +3 -0
- package/server/services/workshop/aml/intervention-ledger.ts +14 -0
- package/server/services/workshop/analysis/analysis.repo.ts +6 -4
- package/server/services/workshop/db/database/index.ts +1 -1
- package/server/services/workshop/db/database/migrations-blind-verification.ts +33 -0
- package/server/services/workshop/db/database/migrations-experience.ts +38 -0
- package/server/services/workshop/db/database/migrations-harness-profile.ts +28 -0
- package/server/services/workshop/db/database/migrations-improvement-actions.ts +30 -0
- package/server/services/workshop/db/database/migrations-improvement.ts +36 -0
- package/server/services/workshop/db/database/migrations-project.ts +179 -179
- package/server/services/workshop/db/database/open.ts +134 -117
- package/server/services/workshop/db/database/rows.ts +22 -2
- package/server/services/workshop/db/database/schema.ts +1675 -1667
- package/server/services/workshop/db/improvement-action.repo.ts +82 -0
- package/server/services/workshop/db/improvement.repo.ts +139 -0
- package/server/services/workshop/db/memory.repo.ts +238 -22
- package/server/services/workshop/dcw/dcw-controller/lines.ts +3 -3
- package/server/services/workshop/dcw/recipe-evidence.ts +181 -0
- package/server/services/workshop/experience/advisory.ts +135 -0
- package/server/services/workshop/experience/gates.ts +150 -0
- package/server/services/workshop/experience/harness-profile.ts +159 -0
- package/server/services/workshop/experience/overlay.ts +55 -0
- package/server/services/workshop/experience/promote.ts +123 -0
- package/server/services/workshop/optimization/python/__pycache__/problems.cpython-312.pyc +0 -0
- package/server/services/workshop/plugins/host/reload-swap.mjs +68 -0
- package/server/services/workshop/plugins/host/reload.mjs +42 -12
- package/server/services/workshop/projects/criteria-metrics.ts +54 -0
- package/server/services/workshop/projects/service.ts +158 -3
- package/server/services/workshop/runtime/manager/a2a.ts +61 -0
- package/server/services/workshop/runtime/manager/admin-agents.ts +68 -2
- package/server/services/workshop/runtime/manager/contracts.ts +23 -0
- package/server/services/workshop/runtime/manager/state.ts +132 -0
- package/server/services/workshop/runtime/manager/types.ts +3 -0
- package/server/services/workshop/runtime/manager/workspace.ts +18 -2
- package/server/services/workshop/runtime/memory/helpers.ts +4 -0
- package/server/services/workshop/runtime/memory/recall.ts +41 -10
- package/server/services/workshop/runtime/memory/reflect-collector.ts +213 -0
- package/server/services/workshop/runtime/memory/reflector.ts +321 -0
- package/server/services/workshop/runtime/memory/state.ts +2 -0
- package/server/services/workshop/runtime/memory/types.ts +16 -0
- package/server/services/workshop/runtime/memory/write.ts +68 -1
- package/server/services/workshop/verify/blind-verifier.ts +291 -0
- package/.output/public/_nuxt/-XI3FWdE2.js +0 -1
- package/.output/public/_nuxt/B2azkP06.js +0 -1
- package/.output/public/_nuxt/B7Xvcvc72.js +0 -1
- package/.output/public/_nuxt/BjERGiA_.js +0 -1
- package/.output/public/_nuxt/BuNUABSV.js +0 -1
- package/.output/public/_nuxt/BxCzghnC.js +0 -1
- package/.output/public/_nuxt/ChaPv2ma2.js +0 -1
- package/.output/public/_nuxt/CtR6fOPv.js +0 -1
- package/.output/public/_nuxt/D3ucelqH.js +0 -1
- package/.output/public/_nuxt/DYj0LL7W2.js +0 -2
- package/.output/public/_nuxt/DxCWsK3w2.js +0 -2
- package/.output/public/_nuxt/_id_.CHfy_h7D.css +0 -1
- package/.output/public/_nuxt/builds/meta/41ef012e-5907-4063-b58c-16c4d02de1b7.json +0 -1
- package/.output/public/_nuxt/projects.BYLuJvrX.css +0 -1
- package/.output/public/_nuxt/workshop.Dr7XdziI.css +0 -1
- package/.output/server/chunks/_/TownView-uicih2T8.mjs.map +0 -1
- package/.output/server/chunks/_/_id_-BX8hihhe.mjs.map +0 -1
- package/.output/server/chunks/_/_id_-CEoXvYq6.mjs +0 -619
- package/.output/server/chunks/_/_id_-CEoXvYq6.mjs.map +0 -1
- package/.output/server/chunks/_/_id_-DMxiYYGr.mjs.map +0 -1
- package/.output/server/chunks/_/analysis-DVLO0bCy.mjs.map +0 -1
- package/.output/server/chunks/_/daq-CWiRcs2W.mjs.map +0 -1
- package/.output/server/chunks/_/dcw-BrEWEFnj.mjs.map +0 -1
- package/.output/server/chunks/_/logs-Lx7w3LYH.mjs.map +0 -1
- package/.output/server/chunks/_/operations--xLPUg-f.mjs.map +0 -1
- package/.output/server/chunks/_/pages-CzF3fZqL.mjs.map +0 -1
- package/.output/server/chunks/_/projects-BYn-GiAJ.mjs +0 -85
- package/.output/server/chunks/_/projects-BYn-GiAJ.mjs.map +0 -1
- package/.output/server/chunks/_/town-HjaOuPYS.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqAddNode-CkGitJOy.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailBinding-BKi46wvJ.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailFrames-B6cqF1w1.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailHistory-D0sdKiWx.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailNode-DgxYQZBG.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqDetailParams-D-ZJw2GJ.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqFilters-Bi8Ybyhl.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqOptimizations-XodbRzgb.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqStream-CGbftQdw.mjs.map +0 -1
- package/.output/server/chunks/_/useDaqTemplates-Bo_sE1xp.mjs.map +0 -1
- package/.output/server/chunks/_/useDashboardData-BJ30kVLq.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwAddNode-BLqwQe59.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwCards-CofBoHat.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwDetailScope-DhkBcKaS.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwDetailTemplates-BSmmOkFn.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwFilter-Bh8dJ1of.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwLedger-UEB2x63E.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwLineMutations-9PElT2Fz.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwLineRun-BPm0ZPs1.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwParamApprovals-Ctczj8Lm.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwProducts-hgfkZhht.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwQuery-Dd411JAJ.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwQuickActions-C7cIVK0F.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwRecipes-DaQAxk7t.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwStream-2-KfS0lN.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwTemplates-BXtYJspX.mjs.map +0 -1
- package/.output/server/chunks/_/useDcwWrites-IOVVc-Sz.mjs.map +0 -1
- package/.output/server/chunks/_/useLogsScope-BFU7kLl9.mjs.map +0 -1
- package/.output/server/chunks/_/workshop-CeaToa_8.mjs.map +0 -1
- package/scripts/_audit/_fix-report.mjs +0 -32
- /package/.output/public/_nuxt/{B5D1k6CB2.js → B5D1k6CB.js} +0 -0
- /package/.output/public/_nuxt/{B6Olw0Op2.js → B6Olw0Op.js} +0 -0
- /package/.output/public/_nuxt/{BclHgAY6.js → BclHgAY62.js} +0 -0
- /package/.output/public/_nuxt/{D9saExk9.js → D9saExk92.js} +0 -0
- /package/.output/public/_nuxt/{DFI6asjj.js → DFI6asjj2.js} +0 -0
- /package/.output/public/_nuxt/{DkJVtqfc.js → DkJVtqfc2.js} +0 -0
- /package/.output/public/_nuxt/{OVP8I5uy2.js → OVP8I5uy.js} +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RSI Stage-1 验收脚本(Gate-1A 离线可重复执行件)。
|
|
3
|
+
*
|
|
4
|
+
* 覆盖:
|
|
5
|
+
* ①经验产生(任务/评审/干预三触发)②作用域与证据链 ③跨频道共享正负样本
|
|
6
|
+
* ④memoryPolicy 写入门 ⑤注入预算不变量 ⑥retired 排除 ⑦DTO provenance 字段
|
|
7
|
+
*
|
|
8
|
+
* 设计边界:本脚本**不发任何网络请求**(纯内存库确定性验收)。live 观测走仓库既有
|
|
9
|
+
* `pnpm test:api-live` 通道 + 新增的 GET /api/workshop/channels/:id/memories/experience-stats。
|
|
10
|
+
*
|
|
11
|
+
* 用法:node --import tsx scripts/acceptance-rsi-stage1.ts
|
|
12
|
+
* (或 tsx --tsconfig .nuxt/tsconfig.server.json scripts/acceptance-rsi-stage1.ts)
|
|
13
|
+
*/
|
|
14
|
+
process.env.AGENTWORKSHOP_TEST = '1'
|
|
15
|
+
process.env.AW_MODE = 'home'
|
|
16
|
+
|
|
17
|
+
interface Check { id: string, ok: boolean, detail: string }
|
|
18
|
+
const checks: Check[] = []
|
|
19
|
+
function check(id: string, ok: boolean, detail: string): void {
|
|
20
|
+
checks.push({ id, ok, detail })
|
|
21
|
+
console.log(`${ok ? 'PASS' : 'FAIL'} ${id} — ${detail}`)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const { openWorkshopDb } = await import('../server/services/workshop/db/database')
|
|
25
|
+
const { createMemoryRepo } = await import('../server/services/workshop/db/memory.repo')
|
|
26
|
+
const { AgentMemory } = await import('../server/services/workshop/runtime/memory')
|
|
27
|
+
const { reflectExperience } = await import('../server/services/workshop/runtime/memory/reflector')
|
|
28
|
+
const { estimateTokens } = await import('../server/services/workshop/runtime/memory/helpers')
|
|
29
|
+
const { ManagerA2A } = await import('../server/services/workshop/runtime/manager/a2a')
|
|
30
|
+
|
|
31
|
+
const now = new Date().toISOString()
|
|
32
|
+
|
|
33
|
+
const db = openWorkshopDb(':memory:')
|
|
34
|
+
db.exec('PRAGMA foreign_keys = OFF')
|
|
35
|
+
for (const c of [
|
|
36
|
+
{ id: 'ch-a', owner: 'u-1', line: 'line-1' },
|
|
37
|
+
{ id: 'ch-b', owner: 'u-1', line: 'line-1' },
|
|
38
|
+
{ id: 'ch-c', owner: 'u-1', line: 'line-2' },
|
|
39
|
+
{ id: 'ch-x', owner: 'u-2', line: 'line-1' },
|
|
40
|
+
]) {
|
|
41
|
+
db.prepare(`INSERT INTO channels (id, name, description, scenario_prompt, llm_json, workspace, enabled, version, owner_user_id, line_id, created_at, updated_at)
|
|
42
|
+
VALUES (?,?,?,?,?,?,1,1,?,?,?,?)`).run(c.id, c.id, '', '', '', '{}', c.owner, c.line, now, now)
|
|
43
|
+
}
|
|
44
|
+
const repo = createMemoryRepo(db)
|
|
45
|
+
|
|
46
|
+
try {
|
|
47
|
+
// ① 三触发产生经验(证据链)
|
|
48
|
+
const taskFact = {
|
|
49
|
+
source: 'task' as const, channelId: 'ch-a', agentId: 'agent-a', taskId: 't-1',
|
|
50
|
+
title: '均热段整定', state: 'COMPLETED', deliverable: '温差收窄到 ±3℃,IAE 下降 12%',
|
|
51
|
+
criteria: { ok: true, checks: [{ id: 'artifact.present', ok: true }] }, lineId: 'line-1',
|
|
52
|
+
}
|
|
53
|
+
const t = await reflectExperience(repo, null, taskFact)
|
|
54
|
+
const tRow = t.written ? repo.getById(t.id!)! : null
|
|
55
|
+
check('A-3.1 任务终态产出经验', !!tRow && tRow.kind === 'experience',
|
|
56
|
+
tRow ? `outcome=${tRow.outcome} status=${tRow.status} scope=${tRow.scopeKind}:${tRow.scopeKey}` : '未产出')
|
|
57
|
+
|
|
58
|
+
const r = await reflectExperience(repo, null, {
|
|
59
|
+
source: 'review', channelId: 'ch-a', agentId: 'agent-a', resultId: 'r-1', verdict: 'approved',
|
|
60
|
+
title: '调参报告', summary: 'IAE 改善显著', validityScope: { kind: 'line', key: 'line-1' }, lineId: 'line-1',
|
|
61
|
+
})
|
|
62
|
+
const rRow = r.written ? repo.getById(r.id!)! : null
|
|
63
|
+
check('A-3.2 评审终态产出经验(line 作用域→candidate)', !!rRow && rRow.scopeKind === 'line' && rRow.status === 'candidate',
|
|
64
|
+
rRow ? `scope=${rRow.scopeKind}:${rRow.scopeKey} status=${rRow.status}` : '未产出')
|
|
65
|
+
|
|
66
|
+
// 干预 verdict 走 line 作用域 + 可辨识性证据
|
|
67
|
+
repo.upsertExperience({
|
|
68
|
+
channelId: 'ch-a', agentId: 'agent-a', kind: 'experience',
|
|
69
|
+
title: '干预判定 identifiable_effect', titleFts: '干 预 判 定',
|
|
70
|
+
content: '节点均热段 220→218.5 回读 218.52 判定 identifiable_effect effect=-1.48',
|
|
71
|
+
importance: 0.9, dedupKey: 'exp:int:ie-1',
|
|
72
|
+
outcome: 'positive', evidence: { interventionEventId: 'ie-1', recipeRunId: 'run-1', metrics: { effect: -1.48 } },
|
|
73
|
+
scopeKind: 'line', scopeKey: 'line-1', status: 'validated',
|
|
74
|
+
})
|
|
75
|
+
const evRows = repo.listByScope({ scopeKind: 'line', scopeKey: 'line-1', channelIds: ['ch-a'] })
|
|
76
|
+
const ev = evRows.find(x => x.dedupKey === 'exp:int:ie-1')
|
|
77
|
+
let evOk = false
|
|
78
|
+
try {
|
|
79
|
+
const parsed = JSON.parse(ev?.evidenceJson ?? '{}') as { interventionEventId?: string, recipeRunId?: string }
|
|
80
|
+
evOk = parsed.interventionEventId === 'ie-1' && parsed.recipeRunId === 'run-1'
|
|
81
|
+
}
|
|
82
|
+
catch { evOk = false }
|
|
83
|
+
check('A-3.3 干预 verdict 证据可解析(干预行+配方批次)', evOk, evOk ? 'evidence 锚点完整' : '证据缺失/不可解析')
|
|
84
|
+
|
|
85
|
+
// 证据 fail-closed
|
|
86
|
+
let rejected = false
|
|
87
|
+
try {
|
|
88
|
+
repo.upsertExperience({ channelId: 'ch-a', agentId: 'agent-a', kind: 'experience', title: 'x', titleFts: 'x', content: 'y', importance: 0.5, dedupKey: 'exp:bad', evidence: '' })
|
|
89
|
+
}
|
|
90
|
+
catch { rejected = true }
|
|
91
|
+
check('A-3.4 无锚点证据被拒绝(fail-closed)', rejected, rejected ? '已拒绝' : '未拒绝')
|
|
92
|
+
|
|
93
|
+
// ② 跨频道共享:同产线正样本 / 异产线·异 owner 负样本
|
|
94
|
+
const members: Record<string, Array<{ id: string, role: string }>> = { 'ch-b': [{ id: 'worker-1', role: 'worker' }] }
|
|
95
|
+
const mgr = Object.create(ManagerA2A.prototype) as unknown as {
|
|
96
|
+
deps: unknown
|
|
97
|
+
requireMember: (c: string, a: string) => unknown
|
|
98
|
+
searchSharedExperience: (c: string, a: string, i: { query: string, scope: 'line' | 'product' | 'global', scopeKey?: string }) => Array<Record<string, unknown>>
|
|
99
|
+
}
|
|
100
|
+
;(mgr as unknown as { deps: unknown }).deps = {
|
|
101
|
+
db,
|
|
102
|
+
repos: {
|
|
103
|
+
channels: {
|
|
104
|
+
findById: (id: string) => db.prepare('SELECT id, name, enabled, owner_user_id AS ownerUserId, line_id AS lineId FROM channels WHERE id = ?').get(id),
|
|
105
|
+
list: () => db.prepare('SELECT id, name, enabled, owner_user_id AS ownerUserId, line_id AS lineId FROM channels').all(),
|
|
106
|
+
},
|
|
107
|
+
memories: repo,
|
|
108
|
+
tasks: { findById: () => undefined },
|
|
109
|
+
channelAgents: { findByChannelAgent: (c: string, a: string) => (members[c] ?? []).find(x => x.id === a) },
|
|
110
|
+
},
|
|
111
|
+
}
|
|
112
|
+
;(mgr as unknown as { requireMember: (c: string, a: string) => unknown }).requireMember = (c, a) => {
|
|
113
|
+
if (!(members[c] ?? []).some(x => x.id === a)) throw new Error('not member')
|
|
114
|
+
return {}
|
|
115
|
+
}
|
|
116
|
+
const hit = mgr.searchSharedExperience('ch-b', 'worker-1', { query: '均热段 温差 整定 经验', scope: 'line' })
|
|
117
|
+
check('A-4.1 跨频道同产线命中(worker 可读)', hit.length > 0 && hit.every(h => h['scopeKey'] === 'line-1'),
|
|
118
|
+
`${hit.length} 条 · status=${[...new Set(hit.map(h => String(h['status'])))].join('/')}`)
|
|
119
|
+
check('A-4.2 跨频道结果带 visibility=cross-channel', hit.length > 0 && hit.every(h => h['visibility'] === 'cross-channel'),
|
|
120
|
+
hit.length > 0 ? '标注正确' : '无命中')
|
|
121
|
+
|
|
122
|
+
// 异产线 / 异 owner:零命中
|
|
123
|
+
repo.upsertExperience({
|
|
124
|
+
channelId: 'ch-c', agentId: 'agent-a', kind: 'experience', title: '异产线经验', titleFts: '异 产 线 经 验',
|
|
125
|
+
content: '不应命中', importance: 0.8, dedupKey: 'exp:other-line',
|
|
126
|
+
outcome: 'positive', evidence: { taskIds: ['t-c'] }, scopeKind: 'line', scopeKey: 'line-2', status: 'validated',
|
|
127
|
+
})
|
|
128
|
+
repo.upsertExperience({
|
|
129
|
+
channelId: 'ch-x', agentId: 'agent-x', kind: 'experience', title: '异owner经验', titleFts: '异 owner 经 验',
|
|
130
|
+
content: '不应命中', importance: 0.8, dedupKey: 'exp:other-owner',
|
|
131
|
+
outcome: 'positive', evidence: { taskIds: ['t-x'] }, scopeKind: 'line', scopeKey: 'line-1', status: 'validated',
|
|
132
|
+
})
|
|
133
|
+
const neg = mgr.searchSharedExperience('ch-b', 'worker-1', { query: '异产线经验 异owner经验', scope: 'line' })
|
|
134
|
+
check('A-4.3 隔离负样本:异产线/异owner 零命中', neg.length === 0, `${neg.length} 条(应为 0)`)
|
|
135
|
+
|
|
136
|
+
// ③ memoryPolicy 写入门
|
|
137
|
+
db.prepare(`INSERT INTO channel_sessions (id, channel_id, title, status, memory_policy, created_at) VALUES ('sess-session','ch-a','s','active','session',?)`).run(now)
|
|
138
|
+
db.prepare(`INSERT INTO channel_sessions (id, channel_id, title, status, memory_policy, created_at) VALUES ('sess-shared','ch-a','s','active','shared',?)`).run(now)
|
|
139
|
+
const mem = new AgentMemory(repo, { channelId: 'ch-a', agentId: 'agent-a' })
|
|
140
|
+
let policyRejected = false
|
|
141
|
+
try {
|
|
142
|
+
await mem.save({ title: 'T', content: 'C', scope: 'line', sessionId: 'sess-session', taskId: 't-1' })
|
|
143
|
+
}
|
|
144
|
+
catch { policyRejected = true }
|
|
145
|
+
check('A-4.4 memoryPolicy=session 拒绝共享经验写入', policyRejected, policyRejected ? '已拒绝' : '未拒绝')
|
|
146
|
+
let policyAllowed = false
|
|
147
|
+
try {
|
|
148
|
+
const saved = await mem.save({ title: '同线经验', content: '温差 ±3℃ 最优', scope: 'line', sessionId: 'sess-shared', taskId: 't-2' })
|
|
149
|
+
const row = repo.listByAgentChannel('ch-a', 'agent-a', 50).find(x => x.dedupKey === saved.dedupKey)
|
|
150
|
+
policyAllowed = !!row && row.status === 'candidate' && row.scopeKind === 'line'
|
|
151
|
+
}
|
|
152
|
+
catch { policyAllowed = false }
|
|
153
|
+
check('A-4.5 memoryPolicy=shared 放行且落 candidate', policyAllowed, policyAllowed ? 'candidate/line 正确' : '写入或状态不符')
|
|
154
|
+
|
|
155
|
+
// ④ 注入预算不变量(500 tok 硬顶)
|
|
156
|
+
for (let i = 0; i < 8; i++) {
|
|
157
|
+
repo.upsertExperience({
|
|
158
|
+
channelId: 'ch-a', agentId: 'agent-a', kind: 'experience', title: `经验 ${i} 均热段`, titleFts: `经 验 ${i} 均 热 段`,
|
|
159
|
+
content: `第 ${i} 条:温差收窄后 IAE 下降,回读证实,判据通过。`.repeat(6), importance: 0.8,
|
|
160
|
+
dedupKey: `exp:budget-${i}`, outcome: 'positive', evidence: { taskIds: [`t-b${i}`] },
|
|
161
|
+
scopeKind: 'line', scopeKey: 'line-1', status: 'validated',
|
|
162
|
+
})
|
|
163
|
+
}
|
|
164
|
+
const block = await mem.recall('均热段 温差 整定 经验', { budgetTokens: 500 })
|
|
165
|
+
const tok = block ? estimateTokens(block) : 0
|
|
166
|
+
check('A-5.1 注入预算 ≤500 tok(含经验行)', block !== null && tok <= 500, `${tok} tok`)
|
|
167
|
+
|
|
168
|
+
// ⑤ retired 排除
|
|
169
|
+
const retired = repo.upsertExperience({
|
|
170
|
+
channelId: 'ch-a', agentId: 'agent-a', kind: 'experience', title: '退休经验', titleFts: '退 休 经 验',
|
|
171
|
+
content: '应被排除', importance: 0.9, dedupKey: 'exp:retired-1', outcome: 'negative',
|
|
172
|
+
evidence: { taskIds: ['t-r'] }, scopeKind: 'line', scopeKey: 'line-1', status: 'validated',
|
|
173
|
+
})
|
|
174
|
+
repo.markStatus(retired.id, 'retired')
|
|
175
|
+
const rowsAfter = await mem.recallRows('退休经验', { limit: 20 })
|
|
176
|
+
check('A-5.2 retired 经验不参与检索', rowsAfter.every(x => x.dedupKey !== 'exp:retired-1' && x.status !== 'retired'),
|
|
177
|
+
`${rowsAfter.length} 条命中均非 retired`)
|
|
178
|
+
|
|
179
|
+
// ⑥ DTO provenance 字段完备
|
|
180
|
+
const prov = await mem.recallRows('均热段 温差 整定 经验', { limit: 5 })
|
|
181
|
+
const provOk = prov.length > 0 && prov.every(x => typeof x.outcome === 'string' && typeof x.status === 'string' && typeof x.scopeKind === 'string')
|
|
182
|
+
check('A-5.3 检索 DTO 含 outcome/status/scopeKind', provOk, provOk ? '字段齐备' : '字段缺失')
|
|
183
|
+
|
|
184
|
+
// ⑦ 经验看板聚合(API 的数据面,离线直测)
|
|
185
|
+
const overview = ((): { total: number, byStatus: Record<string, number> } => {
|
|
186
|
+
const rows = (['session', 'channel', 'line', 'product', 'global'] as const).flatMap(scopeKind => repo.listByScope({
|
|
187
|
+
scopeKind,
|
|
188
|
+
channelIds: ['ch-a'],
|
|
189
|
+
statuses: ['active', 'candidate', 'validated', 'contested', 'retired'],
|
|
190
|
+
limit: 500,
|
|
191
|
+
}))
|
|
192
|
+
const byStatus: Record<string, number> = {}
|
|
193
|
+
for (const row of rows) byStatus[row.status ?? 'active'] = (byStatus[row.status ?? 'active'] ?? 0) + 1
|
|
194
|
+
return { total: rows.length, byStatus }
|
|
195
|
+
})()
|
|
196
|
+
check('A-5.4 经验看板聚合(total/byStatus)', overview.total > 0 && typeof overview.byStatus['candidate'] === 'number',
|
|
197
|
+
`total=${overview.total} status=${JSON.stringify(overview.byStatus)}`)
|
|
198
|
+
}
|
|
199
|
+
finally {
|
|
200
|
+
db.close()
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const failed = checks.filter(c => !c.ok)
|
|
204
|
+
console.log(`\n=== RSI Stage-1 ACCEPT pass=${checks.length - failed.length} fail=${failed.length} ===`)
|
|
205
|
+
if (failed.length > 0) {
|
|
206
|
+
for (const f of failed) console.log(` FAILED ${f.id}: ${f.detail}`)
|
|
207
|
+
process.exitCode = 1
|
|
208
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* RSI 红线静态检查(DoD §9.4)——学习环模块不得存在任何设备写路径。
|
|
4
|
+
*
|
|
5
|
+
* 扫描范围(计划 §9.4 点名):runtime/memory(反射器/采集器)、experience/(晋升/护栏/注入)、verify/(独立回读)。
|
|
6
|
+
* 判定:出现任一直接写调用 → 退出码 1;否则 0。CI/lint 链前置执行。
|
|
7
|
+
*
|
|
8
|
+
* 纪律:控制参数变更只能经 recipe 工具族 + write_intent + HITL;
|
|
9
|
+
* 本脚本只做"存在性"静态证明,不替代安全审计。
|
|
10
|
+
*/
|
|
11
|
+
import { readFileSync, readdirSync, statSync } from 'node:fs'
|
|
12
|
+
import { join, relative, resolve } from 'node:path'
|
|
13
|
+
|
|
14
|
+
const ROOT = resolve(process.cwd())
|
|
15
|
+
const SCAN_DIRS = [
|
|
16
|
+
'server/services/workshop/runtime/memory',
|
|
17
|
+
'server/services/workshop/experience',
|
|
18
|
+
'server/services/workshop/verify',
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
/** 直接设备写调用(含常见别名);只匹配调用语法,匹配注释/文档不算(保守起见仍报出,由人复核) */
|
|
22
|
+
const WRITE_CALL = /\b(dcw_control|param_control|dcw_write|writeNode|write_node|serialWrite|serial_write|serialport\.write)\s*\(/
|
|
23
|
+
|
|
24
|
+
function walk(dir) {
|
|
25
|
+
const out = []
|
|
26
|
+
let entries
|
|
27
|
+
try {
|
|
28
|
+
entries = readdirSync(dir)
|
|
29
|
+
}
|
|
30
|
+
catch {
|
|
31
|
+
return out
|
|
32
|
+
}
|
|
33
|
+
for (const name of entries) {
|
|
34
|
+
const full = join(dir, name)
|
|
35
|
+
let st
|
|
36
|
+
try {
|
|
37
|
+
st = statSync(full)
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
continue
|
|
41
|
+
}
|
|
42
|
+
if (st.isDirectory()) out.push(...walk(full))
|
|
43
|
+
else if (/\.(ts|mjs|js)$/.test(name)) out.push(full)
|
|
44
|
+
}
|
|
45
|
+
return out
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const files = SCAN_DIRS.flatMap(d => walk(join(ROOT, d)))
|
|
49
|
+
const offenders = []
|
|
50
|
+
for (const file of files) {
|
|
51
|
+
let text
|
|
52
|
+
try {
|
|
53
|
+
text = readFileSync(file, 'utf8')
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
continue
|
|
57
|
+
}
|
|
58
|
+
const lines = text.split(/\r?\n/)
|
|
59
|
+
lines.forEach((line, i) => {
|
|
60
|
+
if (WRITE_CALL.test(line)) offenders.push(`${relative(ROOT, file)}:${i + 1}`)
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (files.length === 0) {
|
|
65
|
+
console.error('FAIL RSI 红线:扫描范围为空(路径错误?)')
|
|
66
|
+
process.exit(1)
|
|
67
|
+
}
|
|
68
|
+
if (offenders.length > 0) {
|
|
69
|
+
console.error(`FAIL RSI 红线:学习环模块出现设备写调用 ${offenders.length} 处`)
|
|
70
|
+
for (const o of offenders) console.error(` ${o}`)
|
|
71
|
+
process.exit(1)
|
|
72
|
+
}
|
|
73
|
+
console.log(`PASS RSI 红线:${files.length} 个学习环文件 0 处设备写调用`)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* 统一验收:三维度修复的 HTTP 级验证(针对 acceptance 构建)。
|
|
4
|
+
* 用法: AW_BASE=http://127.0.0.1:3011 node scripts/demo/accept-harness-fix.mjs
|
|
5
|
+
*/
|
|
6
|
+
import { mkdirSync, writeFileSync } from 'node:fs'
|
|
7
|
+
import { dirname, join, resolve } from 'node:path'
|
|
8
|
+
import { fileURLToPath } from 'node:url'
|
|
9
|
+
|
|
10
|
+
const REPO = resolve(dirname(fileURLToPath(import.meta.url)), '..', '..')
|
|
11
|
+
const EVID = join(REPO, 'docs/audit/evidence/2026-11-09-harness-fix-acceptance')
|
|
12
|
+
mkdirSync(EVID, { recursive: true })
|
|
13
|
+
const BASE = process.env.AW_BASE || 'http://127.0.0.1:3011'
|
|
14
|
+
const EMAIL = process.env.AW_EMAIL || 'visual@awshop.local'
|
|
15
|
+
const PASS = process.env.AW_PASS || 'Visual2026'
|
|
16
|
+
|
|
17
|
+
const results = []
|
|
18
|
+
const ok = (id, name, cond, detail = '') => {
|
|
19
|
+
results.push({ id, name, pass: Boolean(cond), detail: String(detail).slice(0, 400) })
|
|
20
|
+
console.log(`${cond ? '✔' : '✖'} [${id}] ${name}${cond ? '' : ` — ${String(detail).slice(0, 240)}`}`)
|
|
21
|
+
}
|
|
22
|
+
const sleep = ms => new Promise(r => setTimeout(r, ms))
|
|
23
|
+
|
|
24
|
+
async function call(method, path, body, token, timeoutMs = 60_000) {
|
|
25
|
+
const res = await fetch(BASE + path, {
|
|
26
|
+
method,
|
|
27
|
+
headers: { 'content-type': 'application/json', ...(token ? { authorization: `Bearer ${token}` } : {}) },
|
|
28
|
+
body: (body === undefined || body === null) ? undefined : JSON.stringify(body),
|
|
29
|
+
signal: AbortSignal.timeout(timeoutMs),
|
|
30
|
+
})
|
|
31
|
+
const json = await res.json().catch(() => null)
|
|
32
|
+
return { http: res.status, code: json?.code, data: json?.data, message: json?.message, raw: json }
|
|
33
|
+
}
|
|
34
|
+
const arr = d => (Array.isArray(d) ? d : [])
|
|
35
|
+
|
|
36
|
+
const main = async () => {
|
|
37
|
+
const login = await call('POST', '/api/users/login', { email: EMAIL, password: PASS })
|
|
38
|
+
const token = login.data?.token
|
|
39
|
+
ok('A0', '登录', Boolean(token), login.message)
|
|
40
|
+
|
|
41
|
+
/* ===== 场景:项目 + 交付物 + 工作项 ===== */
|
|
42
|
+
const pr = (await call('POST', '/api/workshop/projects', {
|
|
43
|
+
name: `验收-${Date.now().toString(36).slice(-5)}`, objective: '三维度修复 HTTP 验收', leaderHarness: 'mock',
|
|
44
|
+
}, token)).data
|
|
45
|
+
const ch = (await call('POST', '/api/workshop/channels', {
|
|
46
|
+
name: `验收频道-${Date.now().toString(36).slice(-4)}`, scenarioPrompt: 'x',
|
|
47
|
+
leadAgent: { name: 'Acc Lead', harness: 'mock', config: {} },
|
|
48
|
+
}, token)).data
|
|
49
|
+
await call('POST', `/api/workshop/projects/${pr.id}/channels`, { channelId: ch.channelId, charter: 'x' }, token)
|
|
50
|
+
const dv = (await call('POST', `/api/workshop/projects/${pr.id}/deliverables`, {
|
|
51
|
+
name: '验收交付物', ownerChannelId: ch.channelId, required: true, acceptanceCriteria: ['产物存在'],
|
|
52
|
+
}, token)).data
|
|
53
|
+
const wi = (await call('POST', `/api/workshop/projects/${pr.id}/work-items`, {
|
|
54
|
+
deliverableId: dv.id, channelId: ch.channelId, title: '验收工作项', dedupeKey: `acc-${Date.now().toString(36)}`,
|
|
55
|
+
}, token)).data
|
|
56
|
+
ok('A1', '夹具建立(项目/频道/交付物/工作项)', Boolean(pr?.id && dv?.id && wi?.id))
|
|
57
|
+
|
|
58
|
+
/* ===== PR-3:子资源主路径 GET ===== */
|
|
59
|
+
const wiGet = await call('GET', `/api/workshop/projects/${pr.id}/work-items/${wi.id}`, null, token)
|
|
60
|
+
ok('G1', 'GET 工作项主路径 200(原 404 非信封)', wiGet.http === 200 && wiGet.data?.id === wi.id, `http=${wiGet.http} code=${wiGet.code}`)
|
|
61
|
+
const dvGet = await call('GET', `/api/workshop/projects/${pr.id}/deliverables/${dv.id}`, null, token)
|
|
62
|
+
ok('G2', 'GET 交付物主路径 200', dvGet.http === 200 && dvGet.data?.id === dv.id, `http=${dvGet.http}`)
|
|
63
|
+
const cross = await call('GET', `/api/workshop/projects/${pr.id}/work-items/not-exist-id`, null, token)
|
|
64
|
+
ok('G3', '跨项目/不存在 id → 404 统一信封', cross.http === 404 && cross.code === 'NOT_FOUND' && cross.data === null,
|
|
65
|
+
`http=${cross.http} code=${cross.code} data=${JSON.stringify(cross.data)}`)
|
|
66
|
+
|
|
67
|
+
/* ===== PR-2:写面 schema(400 精确到字段) ===== */
|
|
68
|
+
const dcwBad = await call('POST', '/api/workshop/dcw/params/nope/write', { value: 'abc' }, token)
|
|
69
|
+
ok('S1', 'dcw 参数写:value 非数值 → 400 且字段精确', dcwBad.http === 400 && /^value:/.test(String(dcwBad.message ?? '')),
|
|
70
|
+
`http=${dcwBad.http} msg=${wiSafe(dcwBad.message)}`)
|
|
71
|
+
const dcwNan = await call('POST', '/api/workshop/dcw/params/nope/write', { value: {} }, token)
|
|
72
|
+
ok('S2', 'dcw 参数写:对象值 → 400(旧实现 Number({})=NaN 会带进控制器)', dcwNan.http === 400 && /^value:/.test(String(dcwNan.message ?? '')),
|
|
73
|
+
`http=${dcwNan.http} msg=${wiSafe(dcwNan.message)}`)
|
|
74
|
+
const invBad = await call('POST', '/api/workshop/agent-tools/invoke', { agentId: '', tool: '' }, token)
|
|
75
|
+
ok('S3', '工具桥:空 agentId → 400 字段精确', invBad.http === 400 && /^(agentId|tool):/.test(String(invBad.message ?? '')),
|
|
76
|
+
`http=${invBad.http} msg=${wiSafe(invBad.message)}`)
|
|
77
|
+
const invBadTool = await call('POST', '/api/workshop/agent-tools/invoke', { agentId: 'a', tool: 'bad tool!' }, token)
|
|
78
|
+
ok('S4', '工具桥:非法 tool 名 → 400', invBadTool.http === 400 && /^tool:/.test(String(invBadTool.message ?? '')),
|
|
79
|
+
`http=${invBadTool.http} msg=${wiSafe(invBadTool.message)}`)
|
|
80
|
+
const invArgs = await call('POST', '/api/workshop/agent-tools/invoke', { agentId: 'a', tool: 'ok', args: [1, 2] }, token)
|
|
81
|
+
ok('S5', '工具桥:args 非对象 → 400', invArgs.http === 400 && /^args:/.test(String(invArgs.message ?? '')),
|
|
82
|
+
`http=${invArgs.http} msg=${wiSafe(invArgs.message)}`)
|
|
83
|
+
const hitlBad = await call('POST', '/api/workshop/hitl/respond', { kind: 'made-up', id: 'x' }, token)
|
|
84
|
+
ok('S6', 'HITL:未知 kind → 400', hitlBad.http === 400, `http=${hitlBad.http}`)
|
|
85
|
+
const permBad = await call('PUT', '/api/workshop/permissions', { userId: 'u', grants: [{ lineId: 'l', mode: 'root' }] }, token)
|
|
86
|
+
ok('S7', '权限:非法 mode → 400(原 as string 落库)', permBad.http === 400 && /grants/.test(String(permBad.message ?? '')),
|
|
87
|
+
`http=${permBad.http} msg=${wiSafe(permBad.message)}`)
|
|
88
|
+
const secretBad = await call('PUT', '/api/workshop/mes/secrets', { ref: ' ', value: 'x' }, token)
|
|
89
|
+
ok('S8', 'MES 凭据:空 ref → 400', secretBad.http === 400 && /^ref:/.test(String(secretBad.message ?? '')),
|
|
90
|
+
`http=${secretBad.http} msg=${wiSafe(secretBad.message)}`)
|
|
91
|
+
const twinBad = await call('POST', '/api/workshop/device-twins/x/control', { command: '' }, token)
|
|
92
|
+
ok('S9', '孪生控制:空 command → 400', twinBad.http === 400, `http=${twinBad.http}`)
|
|
93
|
+
|
|
94
|
+
/* ===== PR-6:剩余四个子资源 GET(404 一律统一信封;不存在的 id 即可验证路由存在) ===== */
|
|
95
|
+
const missingId = 'no-such-id-acceptance'
|
|
96
|
+
const g1 = await call('GET', `/api/workshop/aml/models/${missingId}`, null, token)
|
|
97
|
+
ok('G4', 'GET /aml/models/:id 路由存在(404 统一信封,非 h3 默认体)',
|
|
98
|
+
g1.http === 404 && g1.code === 'AML_MODEL_MISSING' && g1.data === null, `http=${g1.http} code=${g1.code}`)
|
|
99
|
+
const g2 = await call('GET', `/api/workshop/aml/training-plans/${missingId}`, null, token)
|
|
100
|
+
ok('G5', 'GET /aml/training-plans/:id 路由存在(404 统一信封)',
|
|
101
|
+
g2.http === 404 && g2.code === 'TRAINING_PLAN_MISSING' && g2.data === null, `http=${g2.http} code=${g2.code}`)
|
|
102
|
+
const g3 = await call('GET', `/api/workshop/dcw/${missingId}`, null, token)
|
|
103
|
+
ok('G6', 'GET /dcw/:id 路由存在(404 统一信封)',
|
|
104
|
+
g3.http === 404 && g3.code === 'NOT_FOUND', `http=${g3.http} code=${g3.code}`)
|
|
105
|
+
const g4 = await call('GET', `/api/workshop/daq/${missingId}`, null, token)
|
|
106
|
+
ok('G7', 'GET /daq/:id 路由存在(404 统一信封)',
|
|
107
|
+
g4.http === 404 && g4.code === 'NOT_FOUND', `http=${g4.http} code=${g4.code}`)
|
|
108
|
+
const g5 = await call('GET', `/api/workshop/dcw/lines/${missingId}`, null, token)
|
|
109
|
+
ok('G8', 'GET /dcw/lines/:id 产线详情路由存在(404 统一信封)',
|
|
110
|
+
g5.http === 404 && g5.code === 'NOT_FOUND', `http=${g5.http} code=${g5.code}`)
|
|
111
|
+
// 列表端点仍可用(query schema 不误伤合法请求)
|
|
112
|
+
// 注:line_id/node_ids 至少一个是既有业务规则(DataQueryError),与 query schema 无关;
|
|
113
|
+
// 这里只断言「不再出现字段级解析错误」,业务规则 400 属正常。
|
|
114
|
+
const listDaq = await call('GET', '/api/workshop/daq/query?line_id=no-such-line&last_minutes=5', null, token)
|
|
115
|
+
ok('Q1', 'GET /daq/query 合法 last_minutes 不被 schema 误拒',
|
|
116
|
+
!/^last_minutes:/.test(String(listDaq.message ?? '')), `http=${listDaq.http} msg=${wiSafe(listDaq.message)}`)
|
|
117
|
+
const badNum = await call('GET', '/api/workshop/daq/query?line_id=L&last_minutes=abc', null, token)
|
|
118
|
+
ok('Q2', 'GET /daq/query 非法数值 → 400 精确到字段',
|
|
119
|
+
badNum.http === 400 && /last_minutes/.test(String(badNum.message ?? '')), `http=${badNum.http} msg=${wiSafe(badNum.message)}`)
|
|
120
|
+
const badAgg = await call('GET', '/api/workshop/daq/query?line_id=L&agg=bogus', null, token)
|
|
121
|
+
ok('Q3', 'GET /daq/query 非法 agg → 400', badAgg.http === 400, `http=${badAgg.http}`)
|
|
122
|
+
const emptyOk = await call('GET', '/api/workshop/daq/query?line_id=L&last_minutes=', null, token)
|
|
123
|
+
ok('Q4', 'GET /daq/query 空串参数=未提供(旧语义保持)',
|
|
124
|
+
!/^last_minutes:/.test(String(emptyOk.message ?? '')), `http=${emptyOk.http} msg=${wiSafe(emptyOk.message)}`)
|
|
125
|
+
const ds = await call('GET', '/api/workshop/aml/datasets?lineId=&productId=', null, token)
|
|
126
|
+
ok('Q5', 'GET /aml/datasets 空串过滤不误拒', ds.http === 200, `http=${ds.http} code=${ds.code}`)
|
|
127
|
+
const jobs = await call('GET', '/api/workshop/aml/jobs?status=&datasetId=', null, token)
|
|
128
|
+
ok('Q6', 'GET /aml/jobs 空串过滤不误拒', jobs.http === 200, `http=${jobs.http} code=${jobs.code}`)
|
|
129
|
+
|
|
130
|
+
/* ===== PR-1:omp 会话身份(terminate → 重建 → sessionId 非空且不等于旧值) ===== */
|
|
131
|
+
const chOmp = (await call('POST', '/api/workshop/channels', {
|
|
132
|
+
name: `身份验收-${Date.now().toString(36).slice(-4)}`, scenarioPrompt: 'x',
|
|
133
|
+
leadAgent: { name: 'Sid Probe', harness: 'omp', config: { promptTimeoutMs: 1_800_000 } },
|
|
134
|
+
}, token)).data
|
|
135
|
+
const mon = async () => {
|
|
136
|
+
const m = (await call('GET', '/api/system/monitor', null, token)).data ?? {}
|
|
137
|
+
const a = arr(m.agents).find(x => x.agentId === chOmp?.leadAgentId)
|
|
138
|
+
return { sid: a?.continuity?.sessionId ?? null, pid: a?.process?.pid ?? null, state: a?.state }
|
|
139
|
+
}
|
|
140
|
+
await call('POST', `/api/workshop/channels/${chOmp.channelId}/messages`, {
|
|
141
|
+
toAgentId: chOmp.leadAgentId, text: '请只回复 OK 两个字母。', requireReply: true, priority: 'immediate',
|
|
142
|
+
}, token)
|
|
143
|
+
let first = null
|
|
144
|
+
for (let i = 0; i < 30; i++) {
|
|
145
|
+
await sleep(10_000)
|
|
146
|
+
first = await mon()
|
|
147
|
+
if (first.sid) break
|
|
148
|
+
}
|
|
149
|
+
ok('H1', '基线:首次 spawn 建立 sessionId', Boolean(first?.sid), JSON.stringify(first))
|
|
150
|
+
// terminate → 触发重建 → 发消息 → 期望 sessionId 非空且 ≠ 旧值
|
|
151
|
+
await call('POST', '/api/system/monitor/terminate', { channelId: chOmp.channelId, agentId: chOmp.leadAgentId }, token)
|
|
152
|
+
await sleep(8_000)
|
|
153
|
+
await call('POST', `/api/workshop/channels/${chOmp.channelId}/messages`, {
|
|
154
|
+
toAgentId: chOmp.leadAgentId, text: '请只回复 OK。', requireReply: true, priority: 'immediate',
|
|
155
|
+
}, token)
|
|
156
|
+
let second = null
|
|
157
|
+
for (let i = 0; i < 30; i++) {
|
|
158
|
+
await sleep(10_000)
|
|
159
|
+
second = await mon()
|
|
160
|
+
if (second.sid && second.pid) break
|
|
161
|
+
}
|
|
162
|
+
ok('H2', '重建后 sessionId 非空(重绑成功)', Boolean(second?.sid), JSON.stringify(second))
|
|
163
|
+
ok('H3', '重建后 sessionId ≠ 旧值(无陈旧绑定)', Boolean(second?.sid) && second.sid !== first?.sid,
|
|
164
|
+
`old=${String(first?.sid).slice(0, 12)} new=${String(second?.sid).slice(0, 12)}`)
|
|
165
|
+
|
|
166
|
+
const summary = {
|
|
167
|
+
generatedAt: new Date().toISOString(), base: BASE,
|
|
168
|
+
pass: results.filter(r => r.pass).length, fail: results.filter(r => !r.pass).length, results,
|
|
169
|
+
}
|
|
170
|
+
writeFileSync(join(EVID, 'acceptance.json'), `${JSON.stringify(summary, null, 2)}\n`, 'utf8')
|
|
171
|
+
console.log(`\n=== ACCEPT pass=${summary.pass} fail=${summary.fail} → ${EVID} ===`)
|
|
172
|
+
process.exitCode = summary.fail > 0 ? 1 : 0
|
|
173
|
+
}
|
|
174
|
+
const wiSafe = s => String(s ?? '').slice(0, 90)
|
|
175
|
+
main().catch((e) => {
|
|
176
|
+
console.error('验收异常:', String(e).slice(0, 300))
|
|
177
|
+
process.exit(1)
|
|
178
|
+
})
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/** US-8:最终断言机器化(评审整改:不手工改证据 JSON,统一由脚本写 e2e-acceptance.json)。 */
|
|
3
|
-
import { writeFileSync, readFileSync, existsSync } from 'node:fs'
|
|
4
|
-
import { join, resolve, dirname } from 'node:path'
|
|
5
|
-
import { fileURLToPath } from 'node:url'
|
|
6
|
-
|
|
7
|
-
const REPO = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
|
8
|
-
const EVID = join(REPO, 'docs/audit/evidence/2026-11-07-e2e-landing')
|
|
9
|
-
const BASE = process.env.E2E_BASE ?? 'http://127.0.0.1:3995'
|
|
10
|
-
const EV_PATH = join(EVID, 'e2e-acceptance.json')
|
|
11
|
-
let results = existsSync(EV_PATH) ? JSON.parse(readFileSync(EV_PATH, 'utf8')).results ?? [] : []
|
|
12
|
-
const ok = (id, name, cond, detail = '') => {
|
|
13
|
-
results = results.filter(r => r.id !== id)
|
|
14
|
-
results.push({ id, name, pass: Boolean(cond), detail: String(detail).slice(0, 600) })
|
|
15
|
-
console.log(`${cond ? '✔' : '✖'} [${id}] ${name}${cond ? '' : ` — ${String(detail).slice(0, 280)}`}`)
|
|
16
|
-
}
|
|
17
|
-
const saveEv = () => writeFileSync(EV_PATH, JSON.stringify({ generatedAt: new Date().toISOString(), base: BASE, pass: results.filter(r => r.pass).length, fail: results.filter(r => !r.pass).length, results }, null, 2))
|
|
18
|
-
async function api(method, path, body, token) {
|
|
19
|
-
const res = await fetch(BASE + path, { method, headers: { 'content-type': 'application/json', ...(token ? { authorization: `Bearer ${token}` } : {}) }, body: body === undefined ? undefined : JSON.stringify(body) })
|
|
20
|
-
const text = await res.text()
|
|
21
|
-
try {
|
|
22
|
-
return { status: res.status, ...JSON.parse(text) }
|
|
23
|
-
}
|
|
24
|
-
catch {
|
|
25
|
-
return { status: res.status, code: -1, message: text.slice(0, 300), data: null }
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const token = (await api('POST', '/api/users/login', { email: 'e2e-landing@aw.local', password: 'E2E#2026' })).data?.token
|
|
29
|
-
const st = JSON.parse(readFileSync(join(REPO, '.e2e-home', 'e2e-state.json'), 'utf8'))
|
|
30
|
-
const proj = st.us3.projectId
|
|
31
|
-
|
|
32
|
-
const obs = await api('GET', `/api/workshop/projects/${proj}/observability`, undefined, token)
|
|
33
|
-
const w10 = (obs.data?.workItems ?? []).find(w => (w.title ?? '').includes('带任务上下文'))
|
|
34
|
-
const cur = (await api('GET', `/api/workshop/projects/${proj}/results`, undefined, token)).data?.find(x => x.workItemId === w10?.id)
|
|
35
|
-
ok('S7-15', '最终成果 L2 验收 approved(agent 作者持证,owner 批准无自批冲突)', cur?.status === 'approved', `status=${cur?.status} result=${(cur?.id ?? '').slice(0, 8)}`)
|
|
36
|
-
const payload = JSON.parse(cur?.payloadJson ?? '{}')
|
|
37
|
-
const h = payload.html ?? ''
|
|
38
|
-
ok('S7-16', '最终成果 payload 含真实落地页 HTML(hero/卖点/FAQ/CTA 区块齐备)', h.length > 800 && ['入耳即译', '为什么带上它出差', '常见问题', '立即入手'].every(k => h.includes(k)), `chars=${h.length}`)
|
|
39
|
-
const copyText = existsSync(join(EVID, 'w4-copy-real-llm.md')) ? readFileSync(join(EVID, 'w4-copy-real-llm.md'), 'utf-8') : ''
|
|
40
|
-
ok('S7-17', '真实 LLM 文案存证(成果中间件取回)', copyText.trim().length > 1000, `chars=${copyText.length}`)
|
|
41
|
-
const events = (await api('GET', `/api/workshop/projects/${proj}/events?limit=200`, undefined, token)).data ?? []
|
|
42
|
-
const types = new Set(events.map(e => e.type))
|
|
43
|
-
const need = new Set(['work.dispatched', 'work.completed', 'result.submitted', 'result.reviewed', 'approval.requested', 'approval.approved'])
|
|
44
|
-
ok('S7-18', '全链审计事件齐备(派发/完成/提交/评审/审批)', [...need].every(n => types.has(n)), `missing=${[...need].filter(n => !types.has(n)).join(',')}`)
|
|
45
|
-
const w4 = (obs.data?.workItems ?? []).find(w => (w.title ?? '').includes('真实 LLM'))
|
|
46
|
-
ok('S7-19', 'W4 真实引擎腿 COMPLETED(omp)', w4?.state === 'COMPLETED', `state=${w4?.state}`)
|
|
47
|
-
ok('S7-ITER', 'HTML 合成腿迭代(全程如实记录)', true, '3 次真实引擎(omp)尝试均超执行预算 ROOT_TIMEOUT(10/10/40min,最后一次跑满 40 分钟)——本机 omp 产能不足以一次产出整页 HTML;按预案降级:mock 编排腿闭合派发链 + 真实 LLM 文案(5148 字,W4 COMPLETED)+ owner 主编 HTML + agent 提交(project_submit_result 带 task 上下文)→ L1 评审 → 证据门重跑 → L2 approved(W10, f21b881f)。全程事件/attempt 可审计。')
|
|
48
|
-
saveEv()
|
|
49
|
-
const fail = results.filter(r => !r.pass).length
|
|
50
|
-
console.log(`\n=== FINAL ASSERTIONS pass=${results.length - fail} fail=${fail} ===`)
|
|
51
|
-
process.exitCode = fail > 0 ? 1 : 0
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/** US-8:最终断言机器化(评审整改:不手工改证据 JSON,统一由脚本写 e2e-acceptance.json)。 */
|
|
3
|
+
import { writeFileSync, readFileSync, existsSync } from 'node:fs'
|
|
4
|
+
import { join, resolve, dirname } from 'node:path'
|
|
5
|
+
import { fileURLToPath } from 'node:url'
|
|
6
|
+
|
|
7
|
+
const REPO = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
|
8
|
+
const EVID = join(REPO, 'docs/audit/evidence/2026-11-07-e2e-landing')
|
|
9
|
+
const BASE = process.env.E2E_BASE ?? 'http://127.0.0.1:3995'
|
|
10
|
+
const EV_PATH = join(EVID, 'e2e-acceptance.json')
|
|
11
|
+
let results = existsSync(EV_PATH) ? JSON.parse(readFileSync(EV_PATH, 'utf8')).results ?? [] : []
|
|
12
|
+
const ok = (id, name, cond, detail = '') => {
|
|
13
|
+
results = results.filter(r => r.id !== id)
|
|
14
|
+
results.push({ id, name, pass: Boolean(cond), detail: String(detail).slice(0, 600) })
|
|
15
|
+
console.log(`${cond ? '✔' : '✖'} [${id}] ${name}${cond ? '' : ` — ${String(detail).slice(0, 280)}`}`)
|
|
16
|
+
}
|
|
17
|
+
const saveEv = () => writeFileSync(EV_PATH, JSON.stringify({ generatedAt: new Date().toISOString(), base: BASE, pass: results.filter(r => r.pass).length, fail: results.filter(r => !r.pass).length, results }, null, 2))
|
|
18
|
+
async function api(method, path, body, token) {
|
|
19
|
+
const res = await fetch(BASE + path, { method, headers: { 'content-type': 'application/json', ...(token ? { authorization: `Bearer ${token}` } : {}) }, body: body === undefined ? undefined : JSON.stringify(body) })
|
|
20
|
+
const text = await res.text()
|
|
21
|
+
try {
|
|
22
|
+
return { status: res.status, ...JSON.parse(text) }
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return { status: res.status, code: -1, message: text.slice(0, 300), data: null }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const token = (await api('POST', '/api/users/login', { email: 'e2e-landing@aw.local', password: 'E2E#2026' })).data?.token
|
|
29
|
+
const st = JSON.parse(readFileSync(join(REPO, '.e2e-home', 'e2e-state.json'), 'utf8'))
|
|
30
|
+
const proj = st.us3.projectId
|
|
31
|
+
|
|
32
|
+
const obs = await api('GET', `/api/workshop/projects/${proj}/observability`, undefined, token)
|
|
33
|
+
const w10 = (obs.data?.workItems ?? []).find(w => (w.title ?? '').includes('带任务上下文'))
|
|
34
|
+
const cur = (await api('GET', `/api/workshop/projects/${proj}/results`, undefined, token)).data?.find(x => x.workItemId === w10?.id)
|
|
35
|
+
ok('S7-15', '最终成果 L2 验收 approved(agent 作者持证,owner 批准无自批冲突)', cur?.status === 'approved', `status=${cur?.status} result=${(cur?.id ?? '').slice(0, 8)}`)
|
|
36
|
+
const payload = JSON.parse(cur?.payloadJson ?? '{}')
|
|
37
|
+
const h = payload.html ?? ''
|
|
38
|
+
ok('S7-16', '最终成果 payload 含真实落地页 HTML(hero/卖点/FAQ/CTA 区块齐备)', h.length > 800 && ['入耳即译', '为什么带上它出差', '常见问题', '立即入手'].every(k => h.includes(k)), `chars=${h.length}`)
|
|
39
|
+
const copyText = existsSync(join(EVID, 'w4-copy-real-llm.md')) ? readFileSync(join(EVID, 'w4-copy-real-llm.md'), 'utf-8') : ''
|
|
40
|
+
ok('S7-17', '真实 LLM 文案存证(成果中间件取回)', copyText.trim().length > 1000, `chars=${copyText.length}`)
|
|
41
|
+
const events = (await api('GET', `/api/workshop/projects/${proj}/events?limit=200`, undefined, token)).data ?? []
|
|
42
|
+
const types = new Set(events.map(e => e.type))
|
|
43
|
+
const need = new Set(['work.dispatched', 'work.completed', 'result.submitted', 'result.reviewed', 'approval.requested', 'approval.approved'])
|
|
44
|
+
ok('S7-18', '全链审计事件齐备(派发/完成/提交/评审/审批)', [...need].every(n => types.has(n)), `missing=${[...need].filter(n => !types.has(n)).join(',')}`)
|
|
45
|
+
const w4 = (obs.data?.workItems ?? []).find(w => (w.title ?? '').includes('真实 LLM'))
|
|
46
|
+
ok('S7-19', 'W4 真实引擎腿 COMPLETED(omp)', w4?.state === 'COMPLETED', `state=${w4?.state}`)
|
|
47
|
+
ok('S7-ITER', 'HTML 合成腿迭代(全程如实记录)', true, '3 次真实引擎(omp)尝试均超执行预算 ROOT_TIMEOUT(10/10/40min,最后一次跑满 40 分钟)——本机 omp 产能不足以一次产出整页 HTML;按预案降级:mock 编排腿闭合派发链 + 真实 LLM 文案(5148 字,W4 COMPLETED)+ owner 主编 HTML + agent 提交(project_submit_result 带 task 上下文)→ L1 评审 → 证据门重跑 → L2 approved(W10, f21b881f)。全程事件/attempt 可审计。')
|
|
48
|
+
saveEv()
|
|
49
|
+
const fail = results.filter(r => !r.pass).length
|
|
50
|
+
console.log(`\n=== FINAL ASSERTIONS pass=${results.length - fail} fail=${fail} ===`)
|
|
51
|
+
process.exitCode = fail > 0 ? 1 : 0
|