agentworkshop 0.12.0 → 0.14.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/.output/.AgentWorkShop/aml-python/train-example.py +92 -92
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Cy0eCUDp.js → B5KL6Ibd.js} +7 -7
- package/.output/public/_nuxt/{CcUK7VEO.js → BEkXmA1q.js} +1 -1
- package/.output/public/_nuxt/{BhEXWepB2.js → BhXOXzn62.js} +3 -3
- package/.output/public/_nuxt/{tDcrlXNq2.js → Budz_Xqj2.js} +1 -1
- package/.output/public/_nuxt/{WL1R8lPA.js → C-fzyZIR.js} +1 -1
- package/.output/public/_nuxt/{DvsXN5k72.js → CDkD5qXS2.js} +1 -1
- package/.output/public/_nuxt/{DkqV7BGi.js → CNBZIUPj.js} +1 -1
- package/.output/public/_nuxt/{B2-Wuy0u.js → CYRJE2AK.js} +1 -1
- package/.output/public/_nuxt/{DFo96EtE.js → Ce11XYqU.js} +1 -1
- package/.output/public/_nuxt/{DJKjjGnC2.js → Cn9We9Xy2.js} +1 -1
- package/.output/public/_nuxt/{BSoelv0a.js → DAXKnIk_.js} +1 -1
- package/.output/public/_nuxt/{CljTL3qL.js → DEUPXg3Y.js} +1 -1
- package/.output/public/_nuxt/{Dasqfjig2.js → DIgcvUmv2.js} +1 -1
- package/.output/public/_nuxt/{CsdezMu9.js → DIua0HEu.js} +5 -5
- package/.output/public/_nuxt/{psToi-Y5.js → DTJzL6Ce.js} +1 -1
- package/.output/public/_nuxt/{C3--I-an2.js → DrYBHPYn2.js} +1 -1
- package/.output/public/_nuxt/{OmpTerminalPanel.DJsn-0I7.css → OmpTerminalPanel.CoA7kG4C.css} +1 -1
- package/.output/public/_nuxt/PluginSlot.BqBzLD4T.css +1 -0
- package/.output/public/_nuxt/{TownView.CY9AeupT.css → TownView.CASu6sUI.css} +1 -1
- package/.output/public/_nuxt/{CmuGMxDP.js → TugRY_4O.js} +1 -1
- package/.output/public/_nuxt/{_id_.Czwkl50w.css → _id_.yoM542Bz.css} +1 -1
- package/.output/public/_nuxt/{_wsId_.zZS-8BeH.css → _wsId_.1Ai43iyE.css} +1 -1
- package/.output/public/_nuxt/{C-0XFiGd2.js → aFWYpex82.js} +1 -1
- package/.output/public/_nuxt/{agents.x7WDlalC.css → agents.BsyoIGhn.css} +1 -1
- package/.output/public/_nuxt/aml.DgOMpDpv.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/fa6e11b2-f4e7-42ac-9006-b3df9b6cf455.json +1 -0
- package/.output/public/_nuxt/{default.DJtNhtPB.css → default.Diue5wr2.css} +1 -1
- package/.output/public/_nuxt/{logs.DicAHMDv.css → logs.Dp8KWwBk.css} +1 -1
- package/.output/public/_nuxt/{monitor.CklbBi4c.css → monitor.DdpDx8NP.css} +1 -1
- package/.output/public/_nuxt/{ontology.CjBcnrC8.css → ontology.Clux6c4G.css} +1 -1
- package/.output/public/_nuxt/{operations.D7nxVu6G.css → operations.Cng_qjn9.css} +1 -1
- package/.output/public/_nuxt/{pages.DHQhmiO9.css → pages.ilC7BTfG.css} +1 -1
- package/.output/public/_nuxt/{tokens.BDSUWF-L.css → tokens.DKZWCP5v.css} +1 -1
- package/.output/public/favicon.svg +14 -14
- package/.output/public/robots.txt +3 -3
- package/.output/server/chunks/_/bench-run.mjs +8 -4
- package/.output/server/chunks/_/bench-run.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +3591 -3146
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/promote.mjs +7 -1
- package/.output/server/chunks/_/promote.mjs.map +1 -1
- package/.output/server/chunks/build/{OmpTerminalPanel-BMOE0iKV.mjs → OmpTerminalPanel-DGOdjUKG.mjs} +8 -8
- package/.output/server/chunks/build/{OmpTerminalPanel-BMOE0iKV.mjs.map → OmpTerminalPanel-DGOdjUKG.mjs.map} +1 -1
- package/.output/server/chunks/build/{PluginSlot-DmxAklwb.mjs → PluginSlot-CGwo_Wf0.mjs} +4 -4
- package/.output/server/chunks/build/{PluginSlot-DmxAklwb.mjs.map → PluginSlot-CGwo_Wf0.mjs.map} +1 -1
- package/.output/server/chunks/build/{TownView-DD1zY8xq.mjs → TownView-CIs-ASV0.mjs} +20 -20
- package/.output/server/chunks/build/{TownView-DD1zY8xq.mjs.map → TownView-CIs-ASV0.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-B9zi8WEg.mjs → _id_-8hYMEcPj.mjs} +95 -95
- package/.output/server/chunks/build/{_id_-B9zi8WEg.mjs.map → _id_-8hYMEcPj.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-BB-OZCsp.mjs → _id_-CunRhZCq.mjs} +12 -12
- package/.output/server/chunks/build/{_id_-BB-OZCsp.mjs.map → _id_-CunRhZCq.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-DLdvNP4J.mjs → _id_-DW3IQyTe.mjs} +1 -1
- package/.output/server/chunks/build/{_id_-DLdvNP4J.mjs.map → _id_-DW3IQyTe.mjs.map} +1 -1
- package/.output/server/chunks/build/{_wsId_-LDv5SEW_.mjs → _wsId_-ByUqzpvT.mjs} +187 -91
- package/.output/server/chunks/build/{_wsId_-LDv5SEW_.mjs.map → _wsId_-ByUqzpvT.mjs.map} +1 -1
- package/.output/server/chunks/build/{agents-DeRHs8c9.mjs → agents-B9dtbYwq.mjs} +10 -10
- package/.output/server/chunks/build/{agents-DeRHs8c9.mjs.map → agents-B9dtbYwq.mjs.map} +1 -1
- package/.output/server/chunks/build/{aml-DVcZDyvA.mjs → aml-ezsP2X2T.mjs} +98 -98
- package/.output/server/chunks/build/{aml-DVcZDyvA.mjs.map → aml-ezsP2X2T.mjs.map} +1 -1
- package/.output/server/chunks/build/{analysis-DQM-3YKP.mjs → analysis-DB7joxB_.mjs} +9 -9
- package/.output/server/chunks/build/{analysis-DQM-3YKP.mjs.map → analysis-DB7joxB_.mjs.map} +1 -1
- package/.output/server/chunks/build/{api-DbUqSbs2.mjs → api-CNgiGJ-n.mjs} +3 -3
- package/.output/server/chunks/build/{api-DbUqSbs2.mjs.map → api-CNgiGJ-n.mjs.map} +1 -1
- package/.output/server/chunks/build/{api-ByIV5jMN.mjs → api-CaQC12S4.mjs} +3 -3
- package/.output/server/chunks/build/{api-ByIV5jMN.mjs.map → api-CaQC12S4.mjs.map} +1 -1
- package/.output/server/chunks/build/{api-error-BwAQLw44.mjs → api-error-5fRWoNn3.mjs} +1 -1
- package/.output/server/chunks/build/{api-error-BwAQLw44.mjs.map → api-error-5fRWoNn3.mjs.map} +1 -1
- package/.output/server/chunks/build/{api-BQ9AQHv-.mjs → api-mAmCCaSy.mjs} +3 -3
- package/.output/server/chunks/build/{api-BQ9AQHv-.mjs.map → api-mAmCCaSy.mjs.map} +1 -1
- package/.output/server/chunks/build/{apiClient-Dl-8IHHL.mjs → apiClient-DyvJNNRd.mjs} +2 -2
- package/.output/server/chunks/build/{apiClient-Dl-8IHHL.mjs.map → apiClient-DyvJNNRd.mjs.map} +1 -1
- package/.output/server/chunks/build/{board-CKUuAY_Q.mjs → board-IQvGm0ak.mjs} +4 -4
- package/.output/server/chunks/build/{board-CKUuAY_Q.mjs.map → board-IQvGm0ak.mjs.map} +1 -1
- package/.output/server/chunks/build/{channel-templates-4Zdu0Eyr.mjs → channel-templates-BcmTFt3Z.mjs} +4 -4
- package/.output/server/chunks/build/{channel-templates-4Zdu0Eyr.mjs.map → channel-templates-BcmTFt3Z.mjs.map} +1 -1
- package/.output/server/chunks/build/{client-only-qNA2OVV_.mjs → client-only-HhHmV5L2.mjs} +1 -1
- package/.output/server/chunks/build/{client-only-qNA2OVV_.mjs.map → client-only-HhHmV5L2.mjs.map} +1 -1
- package/.output/server/chunks/build/{daq-B5zlUIlb.mjs → daq-BtcHXZsH.mjs} +14 -14
- package/.output/server/chunks/build/{daq-B5zlUIlb.mjs.map → daq-BtcHXZsH.mjs.map} +1 -1
- package/.output/server/chunks/build/{data-CdyujjU3.mjs → data-JhBFKJDA.mjs} +2 -2
- package/.output/server/chunks/build/{data-CdyujjU3.mjs.map → data-JhBFKJDA.mjs.map} +1 -1
- package/.output/server/chunks/build/{dcw-B-eoU7sq.mjs → dcw-DM_WZyz_.mjs} +10 -10
- package/.output/server/chunks/build/{dcw-B-eoU7sq.mjs.map → dcw-DM_WZyz_.mjs.map} +1 -1
- package/.output/server/chunks/build/{default-Bbyb2qEG.mjs → default-4m4XnpDt.mjs} +28 -28
- package/.output/server/chunks/build/{default-Bbyb2qEG.mjs.map → default-4m4XnpDt.mjs.map} +1 -1
- package/.output/server/chunks/build/{hitl-B-0NShlx.mjs → hitl-DY7FeN1f.mjs} +2 -2
- package/.output/server/chunks/build/{hitl-B-0NShlx.mjs.map → hitl-DY7FeN1f.mjs.map} +1 -1
- package/.output/server/chunks/build/{interval-DvHBIIZh.mjs → interval-Di_y-Apg.mjs} +1 -1
- package/.output/server/chunks/build/{interval-DvHBIIZh.mjs.map → interval-Di_y-Apg.mjs.map} +1 -1
- package/.output/server/chunks/build/{logs-ByxK-myz.mjs → logs-lGNg1Ob6.mjs} +13 -13
- package/.output/server/chunks/build/{logs-ByxK-myz.mjs.map → logs-lGNg1Ob6.mjs.map} +1 -1
- package/.output/server/chunks/build/{monitor-BWd4h4K9.mjs → monitor-CySt7XKY.mjs} +35 -35
- package/.output/server/chunks/build/{monitor-BWd4h4K9.mjs.map → monitor-CySt7XKY.mjs.map} +1 -1
- package/.output/server/chunks/build/{ontology-C3WzgG5p.mjs → ontology-3K7B6xnD.mjs} +12 -12
- package/.output/server/chunks/build/{ontology-C3WzgG5p.mjs.map → ontology-3K7B6xnD.mjs.map} +1 -1
- package/.output/server/chunks/build/{operations-tE63Vy9Z.mjs → operations-D_1Qp6MR.mjs} +19 -19
- package/.output/server/chunks/build/{operations-tE63Vy9Z.mjs.map → operations-D_1Qp6MR.mjs.map} +1 -1
- package/.output/server/chunks/build/{optimizer-A6UyksVT.mjs → optimizer-BXF9x406.mjs} +4 -4
- package/.output/server/chunks/build/{optimizer-A6UyksVT.mjs.map → optimizer-BXF9x406.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-D-cFfP_K.mjs → pages-GV_BTwNx.mjs} +19 -19
- package/.output/server/chunks/build/{pages-D-cFfP_K.mjs.map → pages-GV_BTwNx.mjs.map} +1 -1
- package/.output/server/chunks/build/{permissions-44GsBS_4.mjs → permissions-Cw0vl9oB.mjs} +2 -2
- package/.output/server/chunks/build/{permissions-44GsBS_4.mjs.map → permissions-Cw0vl9oB.mjs.map} +1 -1
- package/.output/server/chunks/build/{pipeline-B2TDdGx6.mjs → pipeline-DFAdcH6G.mjs} +4 -4
- package/.output/server/chunks/build/{pipeline-B2TDdGx6.mjs.map → pipeline-DFAdcH6G.mjs.map} +1 -1
- package/.output/server/chunks/build/{plugins-CfVTAFbT.mjs → plugins-DHYkylxk.mjs} +3 -3
- package/.output/server/chunks/build/{plugins-CfVTAFbT.mjs.map → plugins-DHYkylxk.mjs.map} +1 -1
- package/.output/server/chunks/build/{projects-taoNPGqx.mjs → projects-C7wHfJhz.mjs} +1 -1
- package/.output/server/chunks/build/{projects-taoNPGqx.mjs.map → projects-C7wHfJhz.mjs.map} +1 -1
- package/.output/server/chunks/build/{schedules-DnHxYWcd.mjs → schedules-hbbkb2k_.mjs} +3 -3
- package/.output/server/chunks/build/{schedules-DnHxYWcd.mjs.map → schedules-hbbkb2k_.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-CLIR9BQz.mjs → settings-BI9az0t8.mjs} +5 -5
- package/.output/server/chunks/build/{settings-CLIR9BQz.mjs.map → settings-BI9az0t8.mjs.map} +1 -1
- package/.output/server/chunks/build/{studio-CB0a63bK.mjs → studio-C1TA240D.mjs} +4 -4
- package/.output/server/chunks/build/{studio-CB0a63bK.mjs.map → studio-C1TA240D.mjs.map} +1 -1
- package/.output/server/chunks/build/{teams-DkwgH6Ab.mjs → teams-Cqe-XytC.mjs} +10 -10
- package/.output/server/chunks/build/{teams-DkwgH6Ab.mjs.map → teams-Cqe-XytC.mjs.map} +1 -1
- package/.output/server/chunks/build/{tokens-yzJOx8lm.mjs → tokens-BRNoXKeS.mjs} +12 -12
- package/.output/server/chunks/build/{tokens-yzJOx8lm.mjs.map → tokens-BRNoXKeS.mjs.map} +1 -1
- package/.output/server/chunks/build/{tools-Bd7u9FCc.mjs → tools-seI8h6cT.mjs} +3 -3
- package/.output/server/chunks/build/{tools-Bd7u9FCc.mjs.map → tools-seI8h6cT.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-CyJy_4k5.mjs → town-7mjCZbHa.mjs} +11 -11
- package/.output/server/chunks/build/{town-CyJy_4k5.mjs.map → town-7mjCZbHa.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentHarnessOptions-BkPrqFxg.mjs → useAgentHarnessOptions-BBywiyFz.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentHarnessOptions-BkPrqFxg.mjs.map → useAgentHarnessOptions-BBywiyFz.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplateActions-BftyRRwI.mjs → useAgentTemplateActions-DIfbFIeB.mjs} +3 -3
- package/.output/server/chunks/build/{useAgentTemplateActions-BftyRRwI.mjs.map → useAgentTemplateActions-DIfbFIeB.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplateForm-D7NAXZ59.mjs → useAgentTemplateForm-CNrBkoCe.mjs} +3 -3
- package/.output/server/chunks/build/{useAgentTemplateForm-D7NAXZ59.mjs.map → useAgentTemplateForm-CNrBkoCe.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplatesCatalog-DnqTc0oL.mjs → useAgentTemplatesCatalog-cZwCOaMf.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplatesCatalog-DnqTc0oL.mjs.map → useAgentTemplatesCatalog-cZwCOaMf.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlDatasets-Cr25p62c.mjs → useAmlDatasets-Bzx9Hgvy.mjs} +4 -4
- package/.output/server/chunks/build/{useAmlDatasets-Cr25p62c.mjs.map → useAmlDatasets-Bzx9Hgvy.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlEntities-DBDpqmC3.mjs → useAmlEntities-D-0vyKYy.mjs} +4 -4
- package/.output/server/chunks/build/{useAmlEntities-DBDpqmC3.mjs.map → useAmlEntities-D-0vyKYy.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlEnv-B94CxtjW.mjs → useAmlEnv-6s0jiG6P.mjs} +5 -5
- package/.output/server/chunks/build/{useAmlEnv-B94CxtjW.mjs.map → useAmlEnv-6s0jiG6P.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlExperiments-B2HI1odc.mjs → useAmlExperiments-CDct2Fi9.mjs} +4 -4
- package/.output/server/chunks/build/{useAmlExperiments-B2HI1odc.mjs.map → useAmlExperiments-CDct2Fi9.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlJobs-C-EheCdn.mjs → useAmlJobs-D9Awbb--.mjs} +5 -5
- package/.output/server/chunks/build/{useAmlJobs-C-EheCdn.mjs.map → useAmlJobs-D9Awbb--.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlModels-BqWz2YoO.mjs → useAmlModels-C-XBnv_Y.mjs} +4 -4
- package/.output/server/chunks/build/{useAmlModels-BqWz2YoO.mjs.map → useAmlModels-C-XBnv_Y.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlNotes-nRlk9fOE.mjs → useAmlNotes-Dlfao4VV.mjs} +4 -4
- package/.output/server/chunks/build/{useAmlNotes-nRlk9fOE.mjs.map → useAmlNotes-Dlfao4VV.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAmlPredict-BQbSLob6.mjs → useAmlPredict-ukN3U9qx.mjs} +4 -4
- package/.output/server/chunks/build/{useAmlPredict-BQbSLob6.mjs.map → useAmlPredict-ukN3U9qx.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAnalysisFeed-CzZmTTqq.mjs → useAnalysisFeed-CkUZTRH4.mjs} +3 -3
- package/.output/server/chunks/build/{useAnalysisFeed-CzZmTTqq.mjs.map → useAnalysisFeed-CkUZTRH4.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqAddNode-Dr5CfMpU.mjs → useDaqAddNode-C39ycTVO.mjs} +4 -4
- package/.output/server/chunks/build/{useDaqAddNode-Dr5CfMpU.mjs.map → useDaqAddNode-C39ycTVO.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqDetailBinding-BAAoyUdv.mjs → useDaqDetailBinding-W1IABCpN.mjs} +5 -5
- package/.output/server/chunks/build/{useDaqDetailBinding-BAAoyUdv.mjs.map → useDaqDetailBinding-W1IABCpN.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqDetailFrames-4zuFL3Q5.mjs → useDaqDetailFrames-D4GgD2hM.mjs} +4 -4
- package/.output/server/chunks/build/{useDaqDetailFrames-4zuFL3Q5.mjs.map → useDaqDetailFrames-D4GgD2hM.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqDetailHistory-CHrHfBOm.mjs → useDaqDetailHistory-CI9oS-7S.mjs} +4 -4
- package/.output/server/chunks/build/{useDaqDetailHistory-CHrHfBOm.mjs.map → useDaqDetailHistory-CI9oS-7S.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqDetailNode-DDq5osE-.mjs → useDaqDetailNode-igTd232l.mjs} +6 -6
- package/.output/server/chunks/build/{useDaqDetailNode-DDq5osE-.mjs.map → useDaqDetailNode-igTd232l.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqDetailParams-DdOcUvHG.mjs → useDaqDetailParams-CnjIfgfH.mjs} +4 -4
- package/.output/server/chunks/build/{useDaqDetailParams-DdOcUvHG.mjs.map → useDaqDetailParams-CnjIfgfH.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqFilters-Y_NRhP6i.mjs → useDaqFilters-KBObkzwt.mjs} +6 -6
- package/.output/server/chunks/build/{useDaqFilters-Y_NRhP6i.mjs.map → useDaqFilters-KBObkzwt.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqOptimizations-O4JdRYUR.mjs → useDaqOptimizations-D4hhy0HN.mjs} +4 -4
- package/.output/server/chunks/build/{useDaqOptimizations-O4JdRYUR.mjs.map → useDaqOptimizations-D4hhy0HN.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqStream-phwM5tIN.mjs → useDaqStream-CbOC6kpc.mjs} +3 -3
- package/.output/server/chunks/build/{useDaqStream-phwM5tIN.mjs.map → useDaqStream-CbOC6kpc.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDaqTemplates-lKw2b01d.mjs → useDaqTemplates-DlbjELnY.mjs} +4 -4
- package/.output/server/chunks/build/{useDaqTemplates-lKw2b01d.mjs.map → useDaqTemplates-DlbjELnY.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDashboardData-BBBMb6v_.mjs → useDashboardData-ObuGQUn-.mjs} +6 -6
- package/.output/server/chunks/build/{useDashboardData-BBBMb6v_.mjs.map → useDashboardData-ObuGQUn-.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwAddNode-CT-oOFom.mjs → useDcwAddNode-C2-oveXf.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwAddNode-CT-oOFom.mjs.map → useDcwAddNode-C2-oveXf.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwCards-COffSnEh.mjs → useDcwCards-Ci4SnZ2L.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwCards-COffSnEh.mjs.map → useDcwCards-Ci4SnZ2L.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwDetailScope-CPYeNib2.mjs → useDcwDetailScope-D4TjOlNs.mjs} +6 -6
- package/.output/server/chunks/build/{useDcwDetailScope-CPYeNib2.mjs.map → useDcwDetailScope-D4TjOlNs.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwDetailTemplates-jXerMgzY.mjs → useDcwDetailTemplates-Ctp3cnKX.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwDetailTemplates-jXerMgzY.mjs.map → useDcwDetailTemplates-Ctp3cnKX.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwFilter-BmuVZkbW.mjs → useDcwFilter-C9wUKqpa.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwFilter-BmuVZkbW.mjs.map → useDcwFilter-C9wUKqpa.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwLedger-Do4JjGEu.mjs → useDcwLedger-BHLSE8A3.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwLedger-Do4JjGEu.mjs.map → useDcwLedger-BHLSE8A3.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwLineMutations-BNx-gh7I.mjs → useDcwLineMutations-C_td-b3V.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwLineMutations-BNx-gh7I.mjs.map → useDcwLineMutations-C_td-b3V.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwLineRun-CbJWDWZl.mjs → useDcwLineRun-CyPb_lDB.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwLineRun-CbJWDWZl.mjs.map → useDcwLineRun-CyPb_lDB.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwParamApprovals-BsoHHvme.mjs → useDcwParamApprovals-DN1-qs9p.mjs} +5 -5
- package/.output/server/chunks/build/{useDcwParamApprovals-BsoHHvme.mjs.map → useDcwParamApprovals-DN1-qs9p.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwProducts-CXNhswqK.mjs → useDcwProducts-Bdk1SsiB.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwProducts-CXNhswqK.mjs.map → useDcwProducts-Bdk1SsiB.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwQuery-CBPkHlA7.mjs → useDcwQuery-93hS351p.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwQuery-CBPkHlA7.mjs.map → useDcwQuery-93hS351p.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwQuickActions-By6bAfeD.mjs → useDcwQuickActions-f7bibIWa.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwQuickActions-By6bAfeD.mjs.map → useDcwQuickActions-f7bibIWa.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwRecipes-ZUNE8GaL.mjs → useDcwRecipes-BHj-tnx4.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwRecipes-ZUNE8GaL.mjs.map → useDcwRecipes-BHj-tnx4.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwStream-CNtMGcR0.mjs → useDcwStream-CFKMvd6A.mjs} +3 -3
- package/.output/server/chunks/build/{useDcwStream-CNtMGcR0.mjs.map → useDcwStream-CFKMvd6A.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwTemplates-B5asHSLs.mjs → useDcwTemplates-Dp2aMCHr.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwTemplates-B5asHSLs.mjs.map → useDcwTemplates-Dp2aMCHr.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDcwWrites-B0RF3zFE.mjs → useDcwWrites-C3y_ZBMf.mjs} +4 -4
- package/.output/server/chunks/build/{useDcwWrites-B0RF3zFE.mjs.map → useDcwWrites-C3y_ZBMf.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDeviceTwins-Bqrm2_5w.mjs → useDeviceTwins-q7mxv7QC.mjs} +3 -3
- package/.output/server/chunks/build/{useDeviceTwins-Bqrm2_5w.mjs.map → useDeviceTwins-q7mxv7QC.mjs.map} +1 -1
- package/.output/server/chunks/build/{useExpConfirmations-BxGYvtvI.mjs → useExpConfirmations-OtBkMdsA.mjs} +3 -3
- package/.output/server/chunks/build/{useExpConfirmations-BxGYvtvI.mjs.map → useExpConfirmations-OtBkMdsA.mjs.map} +1 -1
- package/.output/server/chunks/build/{useLocalTime-Cz6wyFn6.mjs → useLocalTime-CMw71SWy.mjs} +1 -1
- package/.output/server/chunks/build/{useLocalTime-Cz6wyFn6.mjs.map → useLocalTime-CMw71SWy.mjs.map} +1 -1
- package/.output/server/chunks/build/{useLogsManual-CIcgIGCP.mjs → useLogsManual-BE7RIjmW.mjs} +4 -4
- package/.output/server/chunks/build/{useLogsManual-CIcgIGCP.mjs.map → useLogsManual-BE7RIjmW.mjs.map} +1 -1
- package/.output/server/chunks/build/{useLogsQuery-CAkEW5e7.mjs → useLogsQuery-817uGXY4.mjs} +4 -4
- package/.output/server/chunks/build/{useLogsQuery-CAkEW5e7.mjs.map → useLogsQuery-817uGXY4.mjs.map} +1 -1
- package/.output/server/chunks/build/{useLogsScope-DGFmQgcV.mjs → useLogsScope-Dj7vPHyL.mjs} +4 -4
- package/.output/server/chunks/build/{useLogsScope-DGFmQgcV.mjs.map → useLogsScope-Dj7vPHyL.mjs.map} +1 -1
- package/.output/server/chunks/build/{useMonitorData-CXJzv8yG.mjs → useMonitorData-DuRxpSqM.mjs} +3 -3
- package/.output/server/chunks/build/{useMonitorData-CXJzv8yG.mjs.map → useMonitorData-DuRxpSqM.mjs.map} +1 -1
- package/.output/server/chunks/build/{useMonitorFormat-BEESOsgH.mjs → useMonitorFormat-Cd-8qYmg.mjs} +2 -2
- package/.output/server/chunks/build/{useMonitorFormat-BEESOsgH.mjs.map → useMonitorFormat-Cd-8qYmg.mjs.map} +1 -1
- package/.output/server/chunks/build/{useOperationsFeed-BK8B0A0L.mjs → useOperationsFeed-BtLCSGOe.mjs} +4 -4
- package/.output/server/chunks/build/{useOperationsFeed-BK8B0A0L.mjs.map → useOperationsFeed-BtLCSGOe.mjs.map} +1 -1
- package/.output/server/chunks/build/{useOpsLog-BFxxz-sT.mjs → useOpsLog--SOdQAEJ.mjs} +3 -3
- package/.output/server/chunks/build/{useOpsLog-BFxxz-sT.mjs.map → useOpsLog--SOdQAEJ.mjs.map} +1 -1
- package/.output/server/chunks/build/{useRecipeDispatchApprovals-NuH_3Bpu.mjs → useRecipeDispatchApprovals-Cw4rAyyh.mjs} +3 -3
- package/.output/server/chunks/build/{useRecipeDispatchApprovals-NuH_3Bpu.mjs.map → useRecipeDispatchApprovals-Cw4rAyyh.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamActions-B4QCFYq8.mjs → useTeamActions-C1-gUkfR.mjs} +3 -3
- package/.output/server/chunks/build/{useTeamActions-B4QCFYq8.mjs.map → useTeamActions-C1-gUkfR.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamAddMemberDialog-CF0Qb5l7.mjs → useTeamAddMemberDialog-Blejsozp.mjs} +3 -3
- package/.output/server/chunks/build/{useTeamAddMemberDialog-CF0Qb5l7.mjs.map → useTeamAddMemberDialog-Blejsozp.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamCreateDialog-B-P-LG3N.mjs → useTeamCreateDialog-CbAjaxDf.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamCreateDialog-B-P-LG3N.mjs.map → useTeamCreateDialog-CbAjaxDf.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamDeployDialog-DHA-c9Tk.mjs → useTeamDeployDialog-ChGWaFpH.mjs} +3 -3
- package/.output/server/chunks/build/{useTeamDeployDialog-DHA-c9Tk.mjs.map → useTeamDeployDialog-ChGWaFpH.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamPluginDialog-CDf1S9ME.mjs → useTeamPluginDialog-CsFH5fAv.mjs} +3 -3
- package/.output/server/chunks/build/{useTeamPluginDialog-CDf1S9ME.mjs.map → useTeamPluginDialog-CsFH5fAv.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamsCatalog-BHP6g4ON.mjs → useTeamsCatalog-C-Kv-bqB.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamsCatalog-BHP6g4ON.mjs.map → useTeamsCatalog-C-Kv-bqB.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTokenCreate-Bl6fJXjW.mjs → useTokenCreate-BxBGZYv1.mjs} +2 -2
- package/.output/server/chunks/build/{useTokenCreate-Bl6fJXjW.mjs.map → useTokenCreate-BxBGZYv1.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTokenRename-CHm_kIgW.mjs → useTokenRename-DVcV-UuH.mjs} +2 -2
- package/.output/server/chunks/build/{useTokenRename-CHm_kIgW.mjs.map → useTokenRename-DVcV-UuH.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTokensList-DnT_Sn0Q.mjs → useTokensList-BuCdwEVo.mjs} +2 -2
- package/.output/server/chunks/build/{useTokensList-DnT_Sn0Q.mjs.map → useTokensList-BuCdwEVo.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkbenchAuth-DgxFoSli.mjs → useWorkbenchAuth-aKsreLd_.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkbenchAuth-DgxFoSli.mjs.map → useWorkbenchAuth-aKsreLd_.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkbenchWorkspaces-BHRTd7aZ.mjs → useWorkbenchWorkspaces-HOdVtb3d.mjs} +5 -5
- package/.output/server/chunks/build/{useWorkbenchWorkspaces-BHRTd7aZ.mjs.map → useWorkbenchWorkspaces-HOdVtb3d.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkshopApi-PvyApp92.mjs → useWorkshopApi-DNO9IeDM.mjs} +1 -1
- package/.output/server/chunks/build/{useWorkshopApi-PvyApp92.mjs.map → useWorkshopApi-DNO9IeDM.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkshopWs-f5D2dm08.mjs → useWorkshopWs-9bGupjEF.mjs} +4 -4
- package/.output/server/chunks/build/{useWorkshopWs-f5D2dm08.mjs.map → useWorkshopWs-9bGupjEF.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkspaceAuth-cgLRP1X_.mjs → useWorkspaceAuth-DWpYDsif.mjs} +1 -1
- package/.output/server/chunks/build/{useWorkspaceAuth-cgLRP1X_.mjs.map → useWorkspaceAuth-DWpYDsif.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkspaceChannels-C4b7dg1J.mjs → useWorkspaceChannels-DdH-FrSb.mjs} +5 -5
- package/.output/server/chunks/build/{useWorkspaceChannels-C4b7dg1J.mjs.map → useWorkspaceChannels-DdH-FrSb.mjs.map} +1 -1
- package/.output/server/chunks/build/{users-nLXiihNX.mjs → users-CR8UDaPu.mjs} +1 -1
- package/.output/server/chunks/build/{users-nLXiihNX.mjs.map → users-CR8UDaPu.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-DDci854s.mjs → workshop-DgDYnOBE.mjs} +8 -8
- package/.output/server/chunks/build/{workshop-DDci854s.mjs.map → workshop-DgDYnOBE.mjs.map} +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/experience.get.mjs +68 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/experience.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +112 -100
- package/.output/server/chunks/virtual/entry.mjs.map +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +32 -6
- package/README.md +32 -6
- package/app/components/AwLogo.vue +75 -75
- package/app/components/aml/AmlDatasetFormModal.vue +279 -279
- package/app/components/aml/AmlDatasetTable.vue +319 -319
- package/app/components/aml/AmlExperimentsTable.vue +142 -142
- package/app/components/aml/AmlInfraBanner.vue +23 -23
- package/app/components/aml/AmlJobsTable.vue +248 -248
- package/app/components/aml/AmlOverviewBar.vue +62 -62
- package/app/components/aml/AmlPageHeader.vue +47 -47
- package/app/components/aml/AmlPredictConsole.vue +201 -201
- package/app/components/app-header/HitlBell.vue +423 -423
- package/app/components/daq/DaqAddNodeModal.vue +209 -209
- package/app/components/daq/DaqInfraBanner.vue +31 -31
- package/app/components/daq/DaqLineBanner.vue +47 -47
- package/app/components/daq/DaqOptPanel.vue +197 -197
- package/app/components/daq/DaqTemplateModal.vue +246 -246
- package/app/components/dashboard/DashboardGaugeBand.vue +78 -78
- package/app/components/dashboard/DashboardLineStatePanel.vue +78 -78
- package/app/components/dashboard/DashboardNodeStatePanel.vue +46 -46
- package/app/components/dashboard/DashboardPipelinePanel.vue +46 -46
- package/app/components/dashboard/DashboardTrendPanel.vue +83 -83
- package/app/components/dcw/DcwCreateLineModal.vue +105 -105
- package/app/components/dcw/DcwDeleteLineModal.vue +73 -73
- package/app/components/dcw/DcwDetailTemplateModal.vue +238 -238
- package/app/components/dcw/DcwLedgerCard.vue +160 -160
- package/app/components/dcw/DcwProductCreateModal.vue +113 -113
- package/app/components/dcw/DcwRecipeDispatchHistoryModal.vue +244 -244
- package/app/components/dcw/DcwRecipeHistoryModal.vue +165 -165
- package/app/components/dcw/DcwRunDataModal.vue +191 -191
- package/app/components/dcw/DcwTemplateModal.vue +227 -227
- package/app/components/dcw/DcwWriteHistoryCard.vue +96 -96
- package/app/components/dcw/ExpConfirmCard.vue +103 -103
- package/app/components/dcw/RecipeDispatchApprovalCard.vue +330 -330
- package/app/components/logs/LogsPageHead.vue +122 -122
- package/app/components/monitor/MonitorAgentTable.vue +143 -143
- package/app/components/monitor/MonitorChannelTable.vue +80 -80
- package/app/components/monitor/MonitorLoginGate.vue +24 -24
- package/app/components/monitor/MonitorPageHead.vue +92 -92
- package/app/components/monitor/MonitorProcessTable.vue +159 -159
- package/app/components/ontology/OntologyGraph.vue +356 -356
- package/app/components/operations/OperationsFilterCard.vue +164 -164
- package/app/components/operations/OperationsPageHead.vue +47 -47
- package/app/components/tokens/TokenCreateModal.vue +42 -42
- package/app/components/tokens/TokenOnceModal.vue +164 -164
- package/app/components/tokens/TokenRenameModal.vue +40 -40
- package/app/components/tokens/TokensPageHead.vue +76 -76
- package/app/components/workshop/A2aRpcDebugger.vue +237 -237
- package/app/components/workshop/AgentLanesView.vue +278 -278
- package/app/components/workshop/ArtifactCard.vue +120 -120
- package/app/components/workshop/DaqTemplateIcon.vue +33 -33
- package/app/components/workshop/MemoryPanel.vue +81 -0
- package/app/components/workshop/PluginSlot.vue +120 -120
- package/app/components/workshop/TranscriptTimeline.vue +223 -223
- package/app/components/workshop/blocks/EventBlockAvatar.vue +114 -114
- package/app/components/workshop/composer/ReplyChip.vue +65 -65
- package/app/components/workshop/lanes/AddMemberModal.vue +270 -270
- package/app/components/workshop/lanes/EditMemberModal.vue +106 -106
- package/app/components/workshop/lanes/LanesToolbar.vue +97 -97
- package/app/components/workshop/session-list/SaveTemplateModal.vue +93 -93
- package/app/components/workshop/task-board/Card.vue +172 -172
- package/app/components/workshop/task-board/Column.vue +151 -151
- package/app/components/workshop/task-board/List.vue +157 -157
- package/app/components/workshop/task-board/StatusMenu.vue +88 -88
- package/app/components/workshop/teams/TeamAddMemberModal.vue +53 -53
- package/app/components/workshop/teams/TeamDeployModal.vue +40 -40
- package/app/components/workshop/terminal/TerminalHitlCard.vue +170 -170
- package/app/components/workshop/town/TownScene.ts +466 -466
- package/app/components/workshop/town/components/AutoModeConfirmModal.vue +94 -94
- package/app/components/workshop/town/components/TownLoadingMask.vue +61 -61
- package/app/components/workshop/town/components/TownStage.vue +281 -281
- package/app/components/workshop/town/scene/town-scene-agents.ts +254 -254
- package/app/components/workshop/town/scene/town-scene-behavior.ts +194 -194
- package/app/components/workshop/town/scene/town-scene-bubbles.ts +96 -96
- package/app/components/workshop/town/scene/town-scene-core.ts +158 -158
- package/app/components/workshop/town/scene/town-scene-models.ts +109 -109
- package/app/components/workshop/town/scene/town-scene-visuals.ts +279 -279
- package/app/components/workshop/town/scene/town-scene3d-agents.ts +308 -308
- package/app/components/workshop/town/scene/town-scene3d-blocks.ts +297 -297
- package/app/components/workshop/town/scene/town-scene3d-bubbles.ts +281 -281
- package/app/components/workshop/town/scene/town-scene3d-camera.ts +282 -282
- package/app/components/workshop/town/scene/town-scene3d-devices.ts +433 -433
- package/app/components/workshop/town/scene/town-scene3d-editing.ts +490 -490
- package/app/components/workshop/town/scene/town-scene3d-events.ts +173 -173
- package/app/components/workshop/town/scene/town-scene3d-factory.ts +412 -412
- package/app/components/workshop/town/scene/town-scene3d-hud.ts +110 -110
- package/app/components/workshop/town/scene/town-scene3d-lifecycle.ts +144 -144
- package/app/components/workshop/town/scene/town-scene3d-links.ts +141 -141
- package/app/components/workshop/town/scene/town-scene3d-loop.ts +286 -286
- package/app/components/workshop/town/scene/town-scene3d-models.ts +154 -154
- package/app/components/workshop/town/scene/town-scene3d-nodes.ts +562 -562
- package/app/components/workshop/town/scene/town-scene3d-ranges.ts +273 -273
- package/app/components/workshop/town/scene/town-scene3d-renderer.ts +320 -320
- package/app/components/workshop/town/scene/town-scene3d-selection.ts +257 -257
- package/app/components/workshop/town/scene/town-scene3d-types.ts +264 -264
- package/app/components/workshop/transcript/TranscriptBlockList.vue +68 -68
- package/app/components/workshop/workbench/CreateWorkspaceModal.vue +36 -36
- package/app/composables/useResponsive.ts +88 -88
- package/app/composables/workshop/device-twin-types.ts +29 -29
- package/app/composables/workshop/event-blocks/clusterer.ts +231 -231
- package/app/composables/workshop/event-blocks/fold-stream.ts +45 -45
- package/app/composables/workshop/event-blocks/markdown.ts +81 -81
- package/app/composables/workshop/event-blocks/mentions.ts +49 -49
- package/app/composables/workshop/event-blocks/text-utils.ts +100 -100
- package/app/composables/workshop/event-blocks/types.ts +40 -40
- package/app/composables/workshop/town/town-relay-props.ts +231 -231
- package/app/composables/workshop/town/town-view-types.ts +145 -145
- package/app/composables/workshop/town/useTownAlarms.ts +36 -36
- package/app/composables/workshop/town/useTownCallouts.ts +174 -174
- package/app/composables/workshop/town/useTownChannels.ts +220 -220
- package/app/composables/workshop/town/useTownHealth.ts +66 -66
- package/app/composables/workshop/town/useTownHudTickers.ts +77 -77
- package/app/composables/workshop/town/useTownLayout.ts +277 -277
- package/app/composables/workshop/town/useTownNavMap.ts +301 -301
- package/app/composables/workshop/town/useTownNodeBindings.ts +345 -345
- package/app/composables/workshop/town/useTownPanelDrag.ts +91 -91
- package/app/composables/workshop/town/useTownSceneControl.ts +92 -92
- package/app/composables/workshop/town/useTownSceneInput.ts +275 -275
- package/app/composables/workshop/town/useTownSceneRuntime.ts +390 -390
- package/app/composables/workshop/town/useTownSheets.ts +41 -41
- package/app/composables/workshop/town/useTownTrends.ts +93 -93
- package/app/composables/workshop/useChannelList.ts +88 -88
- package/app/composables/workshop/useChannelTerminals.ts +65 -65
- package/app/composables/workshop/useComposerMentions.ts +130 -130
- package/app/composables/workshop/useDeviceTwinDcwWrite.ts +77 -77
- package/app/composables/workshop/useDeviceTwinPanel.ts +56 -56
- package/app/composables/workshop/useEscClose.ts +44 -44
- package/app/composables/workshop/useEventBlockView.ts +159 -159
- package/app/composables/workshop/useEventBlocks.ts +33 -33
- package/app/composables/workshop/useHitlAnswer.ts +184 -184
- package/app/composables/workshop/useLaneWidths.ts +27 -27
- package/app/composables/workshop/useOpsLog.ts +191 -191
- package/app/composables/workshop/usePluginPanels.ts +72 -72
- package/app/composables/workshop/useRuntimeConfigDraft.ts +118 -118
- package/app/composables/workshop/useSettingsGroups.ts +243 -243
- package/app/composables/workshop/useTaskBoardColumns.ts +47 -47
- package/app/composables/workshop/useTerminalRenderer.ts +308 -308
- package/app/composables/workshop/useTranscriptEnterStage.ts +48 -48
- package/app/composables/workshop/useTranscriptHistory.ts +52 -52
- package/app/composables/workshop/useTranscriptScroll.ts +113 -113
- package/app/composables/workshop/useVisibleInterval.ts +42 -42
- package/app/config/index.ts +1 -1
- package/app/middleware/locale-cookie.global.ts +22 -22
- package/app/pages/aml/api.ts +6 -6
- package/app/pages/aml/composables/useAmlDatasets.ts +38 -38
- package/app/pages/aml/composables/useAmlEntities.ts +57 -57
- package/app/pages/aml/composables/useAmlEnv.ts +191 -191
- package/app/pages/aml/composables/useAmlExperiments.ts +45 -45
- package/app/pages/aml/composables/useAmlFormat.ts +44 -44
- package/app/pages/aml/composables/useAmlJobs.ts +131 -131
- package/app/pages/aml/composables/useAmlModels.ts +56 -56
- package/app/pages/aml/composables/useAmlNotes.ts +47 -47
- package/app/pages/aml/composables/useAmlPredict.ts +93 -93
- package/app/pages/aml/constants.ts +63 -63
- package/app/pages/aml/index.vue +236 -236
- package/app/pages/daq/composables/useDaqAddNode.ts +126 -126
- package/app/pages/daq/composables/useDaqDetailBinding.ts +29 -29
- package/app/pages/daq/composables/useDaqDetailFrames.ts +42 -42
- package/app/pages/daq/composables/useDaqDetailNode.ts +53 -53
- package/app/pages/daq/composables/useDaqDetailParams.ts +138 -138
- package/app/pages/daq/composables/useDaqFilters.ts +187 -187
- package/app/pages/daq/composables/useDaqNodeWindow.ts +86 -86
- package/app/pages/daq/composables/useDaqTemplates.ts +152 -152
- package/app/pages/dcw/composables/useDcwCards.ts +27 -27
- package/app/pages/dcw/composables/useDcwDetailScope.ts +145 -145
- package/app/pages/dcw/composables/useDcwDetailTemplates.ts +94 -94
- package/app/pages/dcw/composables/useDcwFilter.ts +29 -29
- package/app/pages/dcw/composables/useDcwLedger.ts +34 -34
- package/app/pages/dcw/composables/useDcwLineMutations.ts +115 -115
- package/app/pages/dcw/composables/useDcwLineRun.ts +60 -60
- package/app/pages/dcw/composables/useDcwProducts.ts +54 -54
- package/app/pages/dcw/composables/useDcwQuery.ts +68 -68
- package/app/pages/dcw/composables/useDcwQuickActions.ts +47 -47
- package/app/pages/dcw/index.vue +195 -195
- package/app/pages/dcw/types.ts +9 -9
- package/app/pages/logs/composables/useLogsFormat.ts +43 -43
- package/app/pages/logs/composables/useLogsManual.ts +71 -71
- package/app/pages/logs/composables/useLogsScope.ts +39 -39
- package/app/pages/monitor/types.ts +61 -61
- package/app/pages/tokens/composables/useTokenClipboard.ts +33 -33
- package/app/pages/tokens/composables/useTokenCreate.ts +93 -93
- package/app/pages/tokens/composables/useTokenRename.ts +54 -54
- package/app/pages/tokens/composables/useTokenReveal.ts +84 -84
- package/app/pages/tokens/composables/useTokensList.ts +60 -60
- package/app/pages/tokens.vue +111 -111
- package/app/pages/workshop/agents.vue +130 -130
- package/app/pages/workshop/composables/useAgentTemplateActions.ts +42 -42
- package/app/pages/workshop/composables/useAgentTemplateDialogState.ts +24 -24
- package/app/pages/workshop/composables/useAgentTemplateForm.ts +88 -88
- package/app/pages/workshop/composables/useAgentTemplatesCatalog.ts +92 -92
- package/app/pages/workshop/composables/useTeamActions.ts +44 -44
- package/app/pages/workshop/composables/useTeamAddMemberDialog.ts +49 -49
- package/app/pages/workshop/composables/useTeamDeployDialog.ts +49 -49
- package/app/pages/workshop/composables/useTeamDialogState.ts +46 -46
- package/app/pages/workshop/composables/useTeamPluginDialog.ts +72 -72
- package/app/pages/workshop/composables/useTeamsCatalog.ts +100 -100
- package/app/pages/workshop/composables/useWorkbenchWorkspaces.ts +123 -123
- package/app/pages/workshop/composables/useWorkspaceAuth.ts +31 -31
- package/app/plugins/esc-close.client.ts +31 -31
- package/app/stores/workshop/hitl.ts +183 -183
- package/app/stores/workshop/narrow-fetch.ts +23 -23
- package/app/utils/api-error.ts +75 -75
- package/app/utils/builtin-catalog.ts +104 -104
- package/app/utils/chart-trend.ts +97 -97
- package/app/utils/dcw-driver-badge.ts +16 -16
- package/app/utils/dcw-recipe-form.ts +26 -26
- package/cli/commands/tui.mjs +28 -28
- package/cli/commands/update.mjs +124 -124
- package/cli/core/child-lifecycle.mjs +136 -136
- package/cli/core/meta.mjs +38 -38
- package/config.yml +1 -1
- package/docker-compose.yml +69 -69
- package/docs/cli.en.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/multi-harness-architecture.md +248 -248
- package/docs/plugin-idd-rag-contract.md +87 -0
- package/docs/plugins.en.md +2 -2
- package/docs/plugins.md +2 -2
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/docs/tui.md +43 -43
- package/i18n/dicts/_en.json +1551 -1551
- package/i18n/dicts/_en2.json +300 -300
- package/i18n/dicts/_en4.json +114 -114
- package/i18n/dicts/agentLanesView.json +61 -61
- package/i18n/dicts/appHeader.json +17 -17
- package/i18n/dicts/channelSessionList.json +51 -51
- package/i18n/dicts/clusterTool.json +4 -4
- package/i18n/dicts/composer.json +38 -38
- package/i18n/dicts/ctpl.json +37 -37
- package/i18n/dicts/lineOps.json +14 -14
- package/i18n/dicts/multiChannelView.json +13 -13
- package/i18n/dicts/notifications.json +13 -13
- package/i18n/dicts/taskInspectorDrawer.json +25 -25
- package/i18n/dicts/teamPlugins.json +10 -10
- package/i18n/dicts/townView.json +211 -211
- package/i18n/locales/en.ts +6 -0
- package/i18n/locales/zh-CN.ts +6 -0
- package/mcp/discovery.mjs +227 -227
- package/package.json +2 -1
- package/public/favicon.svg +14 -14
- package/public/robots.txt +3 -3
- package/scripts/_audit/_live-mqtt-e2e-20261028.mjs +219 -219
- package/scripts/_audit/audit-harness-adapters.md +664 -664
- package/scripts/_audit/aw-mcp-live-e2e.mjs +293 -293
- package/scripts/_audit/bump-version.mjs +51 -51
- package/scripts/_audit/demo-shot-studio.mjs +37 -37
- package/scripts/_audit/demo-shots.mjs +38 -38
- package/scripts/_audit/detached-instance.mjs +112 -112
- package/scripts/_audit/detached-start.mjs +103 -103
- package/scripts/_audit/eda-ui-fix-acceptance.mjs +212 -212
- package/scripts/_audit/gen-demo-report.py +69 -69
- package/scripts/_audit/governed-learning-evidence.mjs +51 -0
- package/scripts/_audit/governed-main-audit.mjs +60 -0
- package/scripts/_audit/guard-upstream-liveness.mjs +104 -104
- package/scripts/_audit/http-api-authz-audit.md +657 -657
- package/scripts/_audit/kb-team-mock-e2e.mjs +146 -146
- package/scripts/_audit/kb-team-omp-e2e.mjs +229 -229
- package/scripts/_audit/kill-acceptance-strays.mjs +47 -47
- package/scripts/_audit/mqtt-pub.mjs +13 -13
- package/scripts/_audit/mqtt-topic-probe.mjs +15 -15
- package/scripts/_audit/prompt-injection-probe.mts +76 -76
- package/scripts/_audit/proto-b3-device-4021.mjs +90 -90
- package/scripts/_audit/proto-doc-broker-20261031.mjs +11 -11
- package/scripts/_audit/proto-doc-device-20261031.mjs +53 -53
- package/scripts/_audit/proto-doc-mqtt-20261031.mjs +32 -32
- package/scripts/_audit/run-full-acceptance-20261030.sh +82 -82
- package/scripts/_audit/run.mjs +21 -21
- package/scripts/_audit/runtime-audit.md +716 -716
- package/scripts/_audit/skills-guided-e2e.mjs +316 -316
- package/scripts/_audit/stability-soak.mjs +252 -252
- package/scripts/_audit/stubs/nuxt-imports.mjs +67 -67
- package/scripts/_audit/ts-register-hook.mjs +12 -12
- package/scripts/_audit/ts-resolve-hook.mjs +96 -96
- package/scripts/_aw0746-stage12.mjs +94 -94
- package/scripts/_aw0746-stage34.mjs +136 -136
- package/scripts/_aw0746-stage6b-train-sweep.mjs +145 -145
- package/scripts/_aw0746-stage6c-jobsmoke.mjs +69 -69
- package/scripts/_dbg-configroot-audit.mjs +86 -86
- package/scripts/_dbg-daq-intervals-func.mjs +115 -115
- package/scripts/_dbg-perms-e2e.mjs +142 -142
- package/scripts/_dbg-protocol-matrix.mjs +462 -462
- package/scripts/_dbg-render-regression.mjs +193 -193
- package/scripts/_dbg-schedule-e2e.mjs +262 -262
- package/scripts/_e2e-ui-functional.mjs +371 -371
- package/scripts/_lib-aml-python-run.mjs +17 -17
- package/scripts/_plc-sim-detached.cjs +22 -22
- package/scripts/_provision-injection-line.mjs +39 -39
- package/scripts/_run-matrix.ps1 +53 -53
- package/scripts/_sweep-button-contrast.mjs +87 -87
- package/scripts/acceptance-aml-hybrid-e2e.ts +396 -396
- package/scripts/acceptance-aml-hybrid-live.mjs +93 -93
- package/scripts/acceptance-aml-model-identity.ts +137 -137
- package/scripts/acceptance-governed-product-learning.mjs +110 -0
- package/scripts/agent-daq-isolation-e2e.mjs +91 -91
- package/scripts/api-contract-smoke.mjs +126 -126
- package/scripts/ask-hitl-e2e.mjs +96 -96
- package/scripts/aw-expose.mjs +159 -159
- package/scripts/channel-interaction-smoke.mjs +80 -80
- package/scripts/data-studio-ui-e2e.mjs +163 -163
- package/scripts/demo/build-provision-config.mjs +48 -48
- package/scripts/demo/create-demo-templates.mjs +84 -84
- package/scripts/demo-group-chat-all-real.ts +279 -279
- package/scripts/dev-modbus-simulator.mjs +55 -55
- package/scripts/docs-shots.mjs +36 -36
- package/scripts/e2e-agentteam-chat.mjs +473 -473
- package/scripts/e2e-agentteam-goal-closure.mjs +496 -496
- package/scripts/e2e-agentteam-real-triage.mjs +421 -421
- package/scripts/e2e-aml-decoupled.mjs +162 -162
- package/scripts/e2e-analysis-ledger.mjs +202 -202
- package/scripts/e2e-aw-tui-global.mjs +277 -277
- package/scripts/e2e-binding-modes-real.mjs +442 -442
- package/scripts/e2e-business-loop-real.mjs +391 -391
- package/scripts/e2e-closedloop/cleanup.mjs +27 -27
- package/scripts/e2e-closedloop/lib.mjs +109 -109
- package/scripts/e2e-closedloop/main.mjs +59 -59
- package/scripts/e2e-closedloop/scenarios-accounts.mjs +210 -210
- package/scripts/e2e-closedloop/scenarios-authz.mjs +196 -196
- package/scripts/e2e-closedloop/scenarios-daq-dcw.mjs +222 -222
- package/scripts/e2e-closedloop/scenarios-plugins.mjs +169 -169
- package/scripts/e2e-closedloop/state.mjs +10 -10
- package/scripts/e2e-config-groups.mjs +238 -238
- package/scripts/e2e-core-bridges-matrix.mjs +303 -303
- package/scripts/e2e-crash-cycle.mjs +108 -108
- package/scripts/e2e-dcw-halfopen-resilience.mjs +140 -140
- package/scripts/e2e-error-handling.mjs +190 -190
- package/scripts/e2e-full-closedloop.mjs +16 -16
- package/scripts/e2e-golive-matrix.mjs +515 -515
- package/scripts/e2e-hil-multi-user.mjs +307 -307
- package/scripts/e2e-hil-restart.mjs +339 -339
- package/scripts/e2e-idd-results-ui.mjs +182 -182
- package/scripts/e2e-line-governance.mjs +352 -352
- package/scripts/e2e-mes-mirror-real.mjs +427 -427
- package/scripts/e2e-multiexpert-remediation-real.mjs +453 -453
- package/scripts/e2e-node-binding-3mode-real.mjs +792 -792
- package/scripts/e2e-node-binding-authz.mjs +372 -372
- package/scripts/e2e-ontology.mjs +393 -393
- package/scripts/e2e-paper-paired-route.mjs +791 -791
- package/scripts/e2e-physical-effect-real.mjs +572 -572
- package/scripts/e2e-plc-plugin-closedloop.mjs +549 -549
- package/scripts/e2e-real-channel-mission.mjs +543 -543
- package/scripts/e2e-security-b0.mjs +280 -280
- package/scripts/e2e-security-b1.mjs +165 -165
- package/scripts/e2e-security-b2b5.mjs +280 -280
- package/scripts/full-stack-shots.mjs +145 -145
- package/scripts/full-tool-injection-harness-e2e.mjs +214 -214
- package/scripts/generate-identifiability-fixtures.ts +98 -98
- package/scripts/hitl-reject-e2e.mjs +131 -131
- package/scripts/line-log-smoke.mjs +260 -260
- package/scripts/live-aml-mockomp.mjs +304 -304
- package/scripts/live-aml-optloop-resume.mjs +322 -322
- package/scripts/live-aml-optloop.mjs +588 -588
- package/scripts/live-aml-stage9.mjs +169 -169
- package/scripts/live-aml-two-goals.mjs +315 -315
- package/scripts/live-demo-seed.mjs +157 -157
- package/scripts/live-optloop-two-modes.mjs +857 -857
- package/scripts/mes-agent-integration-e2e.mjs +361 -361
- package/scripts/onboarding/sim-twin.mjs +27 -15
- package/scripts/ops-plugins-e2e.mjs +85 -85
- package/scripts/scenario-suite-setup.mjs +337 -337
- package/scripts/scenario-suite-stability.mjs +144 -144
- package/scripts/security-acceptance.mjs +218 -218
- package/scripts/team-coordination-e2e.mjs +96 -96
- package/scripts/test-agentteam-workflow.ts +472 -472
- package/scripts/test-daq-frame-race.mjs +358 -358
- package/scripts/test-data-root.mjs +208 -208
- package/scripts/test-events-index.mjs +176 -176
- package/scripts/test-group-chat-unit/lib.ts +186 -186
- package/scripts/test-group-chat-unit/main.ts +45 -45
- package/scripts/test-group-chat-unit.ts +35 -35
- package/scripts/test-hitl-decision.ts +526 -526
- package/scripts/test-hitl-registry.ts +112 -112
- package/scripts/test-log-flooding.mjs +160 -160
- package/scripts/test-lru.mjs +101 -101
- package/scripts/test-plugin-hardening.mjs +90 -90
- package/scripts/test-plugin-lifecycle.mjs +173 -173
- package/scripts/test-rollback-index.mjs +137 -137
- package/scripts/test-schedule-runtime.ts +309 -309
- package/scripts/test-sdk-surface.mjs +158 -158
- package/scripts/test-serial-bridge.mjs +418 -418
- package/scripts/test-tui-commands.mjs +148 -148
- package/scripts/test-tui-reducers.mjs +72 -72
- package/scripts/three-system-e2e/lib.mjs +79 -79
- package/scripts/three-system-e2e/main.mjs +40 -40
- package/scripts/three-system-e2e/phases/phase-0-user-token.mjs +42 -42
- package/scripts/three-system-e2e/phases/phase-0a2-line-autoselect.mjs +35 -35
- package/scripts/three-system-e2e/phases/phase-0b-fixture-grants.mjs +39 -39
- package/scripts/three-system-e2e/phases/phase-0c-plugin-outbound-auth.mjs +95 -95
- package/scripts/three-system-e2e/phases/stage-1-health.mjs +47 -47
- package/scripts/three-system-e2e/phases/stage-2-5-team-plugins.mjs +84 -84
- package/scripts/three-system-e2e/phases/stage-2-teams-tools-hitl.mjs +184 -184
- package/scripts/three-system-e2e/phases/stage-3-diag.mjs +73 -73
- package/scripts/three-system-e2e/phases/stage-4-plugin-toggle.mjs +53 -53
- package/scripts/three-system-e2e/state.mjs +87 -87
- package/scripts/three-system-e2e.mjs +40 -40
- package/scripts/tool-face-batch-identity-e2e.mjs +222 -222
- package/scripts/tsconfig.json +14 -14
- package/scripts/tui-smoke.mjs +100 -100
- package/scripts/typecheck.mjs +75 -75
- package/scripts/ui/md-lint.mjs +80 -80
- package/scripts/ui/readme-assets.mjs +30 -30
- package/scripts/ui/readme-shots.mjs +42 -42
- package/scripts/ui/record-demo.mjs +557 -557
- package/scripts/ui/record.mjs +225 -225
- package/scripts/ui/seed-admin.mjs +68 -68
- package/scripts/ui/seed-demo.mjs +83 -83
- package/scripts/ui/seed-industrial-demo.mjs +171 -171
- package/scripts/ui/shots.mjs +75 -75
- package/scripts/ui/verify-nav.mjs +51 -51
- package/scripts/ui/verify-responsive.mjs +285 -285
- package/sdk/client.d.mts +110 -110
- package/sdk/examples/line-sentinel/index.mjs +105 -105
- package/sdk/examples/ops-notifier/index.mjs +34 -34
- package/sdk/examples/sample-insight/index.mjs +39 -39
- package/server/api/plugins/client/[name].get.ts +18 -18
- package/server/api/plugins/i18n.get.ts +12 -12
- package/server/api/plugins/manifest.get.ts +10 -10
- package/server/api/system/backup/list.get.ts +32 -32
- package/server/api/system/backup/run.post.ts +21 -21
- package/server/api/system/config-groups/[id].delete.ts +21 -21
- package/server/api/system/config-groups/[id].patch.ts +26 -26
- package/server/api/system/config-groups/index.get.ts +21 -21
- package/server/api/system/config-groups/index.post.ts +33 -33
- package/server/api/system/timezone.get.ts +20 -20
- package/server/api/workshop/[...path].ts +13 -13
- package/server/api/workshop/a2a/[agentId]/card/index.get.ts +86 -86
- package/server/api/workshop/agent-tools/approvals/index.get.ts +45 -45
- package/server/api/workshop/agent-tools/bindings/grant.post.ts +45 -45
- package/server/api/workshop/agent-tools/bindings/index.get.ts +41 -41
- package/server/api/workshop/agent-tools/bindings/revoke.post.ts +42 -42
- package/server/api/workshop/aml/datasets/[id]/preview.get.ts +68 -68
- package/server/api/workshop/aml/datasets/[id].delete.ts +39 -39
- package/server/api/workshop/aml/datasets/[id].get.ts +53 -53
- package/server/api/workshop/aml/datasets/[id].patch.ts +30 -30
- package/server/api/workshop/aml/datasets/index.post.ts +27 -27
- package/server/api/workshop/aml/entities/index.get.ts +13 -13
- package/server/api/workshop/aml/entities/prune.post.ts +28 -28
- package/server/api/workshop/aml/env/index.get.ts +13 -13
- package/server/api/workshop/aml/env/recheck.post.ts +14 -14
- package/server/api/workshop/aml/env/uv.post.ts +21 -21
- package/server/api/workshop/aml/env/venv.post.ts +24 -24
- package/server/api/workshop/aml/experiments/index.get.ts +35 -35
- package/server/api/workshop/aml/index.get.ts +37 -37
- package/server/api/workshop/aml/jobs/[id]/cancel.post.ts +21 -21
- package/server/api/workshop/aml/jobs/[id]/logs.get.ts +23 -23
- package/server/api/workshop/aml/jobs/[id]/retry.post.ts +20 -20
- package/server/api/workshop/aml/jobs/[id].delete.ts +44 -44
- package/server/api/workshop/aml/jobs/[id].get.ts +23 -23
- package/server/api/workshop/aml/models/[id]/predict.post.ts +24 -24
- package/server/api/workshop/aml/models/[id]/promote.post.ts +30 -30
- package/server/api/workshop/aml/models/index.get.ts +48 -48
- package/server/api/workshop/aml/training-plans/[id]/train.post.ts +18 -18
- package/server/api/workshop/aml/training-plans/[id].delete.ts +18 -18
- package/server/api/workshop/aml/training-plans/[id].patch.ts +30 -30
- package/server/api/workshop/aml/training-plans/index.get.ts +9 -9
- package/server/api/workshop/aml/training-plans/index.post.ts +43 -43
- package/server/api/workshop/analysis/index.post.ts +71 -71
- package/server/api/workshop/approvals/index.get.ts +22 -22
- package/server/api/workshop/assets/devices/index.post.ts +55 -55
- package/server/api/workshop/audit.get.ts +43 -43
- package/server/api/workshop/channels/[id]/chat/messages/[messageId]/read.post.ts +22 -22
- package/server/api/workshop/channels/[id]/chat/messages/index.get.ts +29 -29
- package/server/api/workshop/channels/[id]/chat/messages/index.post.ts +51 -51
- package/server/api/workshop/channels/[id]/chat/permissions.get.ts +35 -35
- package/server/api/workshop/channels/[id]/members/[userId]/approve.post.ts +20 -20
- package/server/api/workshop/channels/[id]/members/[userId].delete.ts +21 -21
- package/server/api/workshop/channels/[id]/members/index.get.ts +23 -23
- package/server/api/workshop/channels/[id]/members/leave.post.ts +20 -20
- package/server/api/workshop/channels/[id]/memories/[memoryId]/experience.get.ts +32 -0
- package/server/api/workshop/channels/[id]/twin-profile.get.ts +45 -45
- package/server/api/workshop/channels/[id]/twin-profile.patch.ts +91 -91
- package/server/api/workshop/daq/storage/retention.put.ts +66 -66
- package/server/api/workshop/daq/storage/rollup.post.ts +28 -28
- package/server/api/workshop/daq/storage.get.ts +17 -17
- package/server/api/workshop/daq/templates/[key].patch.ts +19 -19
- package/server/api/workshop/daq/templates/index.post.ts +18 -18
- package/server/api/workshop/dcw/[id].delete.ts +41 -41
- package/server/api/workshop/dcw/params/[id].delete.ts +19 -19
- package/server/api/workshop/dcw/params/[id].patch.ts +23 -23
- package/server/api/workshop/dcw/params/index.get.ts +27 -27
- package/server/api/workshop/dcw/params/index.post.ts +25 -25
- package/server/api/workshop/device-twins/[id].delete.ts +27 -27
- package/server/api/workshop/device-twins/[id].patch.ts +31 -31
- package/server/api/workshop/eda/runs/[id]/labels.patch.ts +25 -25
- package/server/api/workshop/eda/templates/[id].delete.ts +14 -14
- package/server/api/workshop/eda/templates/[id].get.ts +15 -15
- package/server/api/workshop/eda/templates/[id].patch.ts +20 -20
- package/server/api/workshop/eda/templates/index.get.ts +11 -11
- package/server/api/workshop/eda/templates/index.post.ts +20 -20
- package/server/api/workshop/exp/confirmations/[id]/decide.post.ts +41 -41
- package/server/api/workshop/exp/confirmations/index.get.ts +25 -25
- package/server/api/workshop/harnesses/[id]/providers.get.ts +16 -16
- package/server/api/workshop/notifications/index.get.ts +60 -60
- package/server/api/workshop/notifications/read.post.ts +31 -31
- package/server/api/workshop/ontology/drafts/[draftId]/subgraph.ts +24 -24
- package/server/api/workshop/ops-logs/index.post.ts +92 -92
- package/server/api/workshop/plugins/[name]/disable.post.ts +21 -21
- package/server/api/workshop/plugins/[name]/enable.post.ts +21 -21
- package/server/api/workshop/plugins/[name]/index.get.ts +14 -14
- package/server/api/workshop/schedules/[id]/run.post.ts +15 -15
- package/server/api/workshop/schedules/[id]/runs.get.ts +15 -15
- package/server/api/workshop/schedules/[id].delete.ts +14 -14
- package/server/api/workshop/schedules/[id].get.ts +13 -13
- package/server/api/workshop/schedules/[id].patch.ts +29 -29
- package/server/api/workshop/schedules/index.get.ts +12 -12
- package/server/api/workshop/schedules/index.post.ts +32 -32
- package/server/api/workshop/tasks/[id]/reassign.post.ts +32 -32
- package/server/api/workshop/tasks/[id]/supersede.post.ts +28 -28
- package/server/api/workshop/tasks/[id]/update.post.ts +35 -35
- package/server/api/workshop/teams/[id]/plugins/index.get.ts +36 -36
- package/server/api/workshop/teams/[id]/plugins/index.put.ts +42 -42
- package/server/api/workshop/ws/audience.ts +56 -56
- package/server/api/workshop/ws/db-buffer.ts +68 -68
- package/server/api/workshop/ws/hub.ts +134 -134
- package/server/api/workshop/ws/index.ts +23 -23
- package/server/api/workshop/ws/notification-uplink.ts +77 -77
- package/server/api/workshop/ws/streams.ts +146 -146
- package/server/middleware/00-security-headers.ts +45 -45
- package/server/middleware/01-rate-guard.ts +129 -129
- package/server/plugins/00-daq-credentials.ts +33 -33
- package/server/plugins/01-instance-guard.ts +118 -118
- package/server/plugins/aml-twin-worker.ts +32 -32
- package/server/plugins/backup.ts +268 -268
- package/server/plugins/dev-stability-guard.ts +46 -46
- package/server/plugins/error-ledger.ts +21 -21
- package/server/plugins-builtin/diag-bridge/host/constants.mjs +25 -25
- package/server/plugins-builtin/diag-bridge/host/deposit.mjs +232 -0
- package/server/plugins-builtin/diag-bridge/host/diagnosis.mjs +121 -38
- package/server/plugins-builtin/diag-bridge/host/external-v1.mjs +213 -0
- package/server/plugins-builtin/diag-bridge/host/helpers.mjs +4 -2
- package/server/plugins-builtin/diag-bridge/host/index.mjs +15 -15
- package/server/plugins-builtin/diag-bridge/host/intents.mjs +65 -62
- package/server/plugins-builtin/diag-bridge/host/plugin.mjs +351 -82
- package/server/plugins-builtin/diag-bridge/host/receipt.mjs +83 -0
- package/server/plugins-builtin/diag-bridge/host/snapshot.mjs +93 -93
- package/server/plugins-builtin/diag-bridge/host/sweep.mjs +70 -91
- package/server/plugins-builtin/diag-bridge/i18n.json +4 -0
- package/server/plugins-builtin/diag-bridge/index.mjs +9 -9
- package/server/plugins-builtin/rag-bridge/i18n.json +18 -0
- package/server/plugins-builtin/rag-bridge/index.mjs +556 -68
- package/server/plugins-builtin/serial-bridge/drivers.mjs +409 -409
- package/server/plugins-builtin/serial-bridge/lib.mjs +208 -208
- package/server/plugins-builtin/serial-bridge/rtu.mjs +168 -168
- package/server/schemas/user.schema.ts +74 -74
- package/server/services/system-config/contracts.ts +29 -29
- package/server/services/system-config/dispose.ts +19 -19
- package/server/services/system-config/facade.ts +26 -26
- package/server/services/system-config/groups.ts +108 -108
- package/server/services/system-config/index.ts +21 -21
- package/server/services/system-config/init.ts +26 -26
- package/server/services/system-config/mutate.ts +110 -110
- package/server/services/system-config/plugins.ts +104 -104
- package/server/services/system-config/readiness.ts +84 -84
- package/server/services/system-config/secrets.ts +50 -50
- package/server/services/system-config/state.ts +79 -79
- package/server/services/system-config/types.ts +58 -58
- package/server/services/workshop/agents/adapters/line-spawn.ts +148 -148
- package/server/services/workshop/agents/adapters/omp-rpc-client/api.ts +111 -111
- package/server/services/workshop/agents/adapters/omp-rpc-client/contracts.ts +22 -22
- package/server/services/workshop/agents/adapters/omp-rpc-client/facade.ts +7 -7
- package/server/services/workshop/agents/adapters/omp-rpc-client/helpers.ts +38 -38
- package/server/services/workshop/agents/adapters/omp-rpc-client/index.ts +25 -25
- package/server/services/workshop/agents/adapters/omp-rpc-client/start.ts +82 -74
- package/server/services/workshop/agents/adapters/omp-rpc-client/state.ts +65 -65
- package/server/services/workshop/agents/adapters/omp-rpc-client/stdout.ts +92 -92
- package/server/services/workshop/agents/adapters/omp-rpc-client/usage.ts +47 -47
- package/server/services/workshop/agents/agent-badge.ts +38 -38
- package/server/services/workshop/agents/binding-authz.ts +66 -66
- package/server/services/workshop/agents/binding-mode.ts +51 -51
- package/server/services/workshop/agents/codex-agent/client.ts +170 -170
- package/server/services/workshop/agents/codex-agent/core.ts +119 -119
- package/server/services/workshop/agents/codex-agent/facade.ts +8 -8
- package/server/services/workshop/agents/codex-agent/helpers.ts +13 -13
- package/server/services/workshop/agents/codex-agent/hitl.ts +138 -138
- package/server/services/workshop/agents/codex-agent/index.ts +14 -14
- package/server/services/workshop/agents/codex-agent/types.ts +42 -42
- package/server/services/workshop/agents/governance-harness-audit.ts +216 -216
- package/server/services/workshop/agents/harness-terminal/api.ts +197 -197
- package/server/services/workshop/agents/harness-terminal/index.ts +17 -17
- package/server/services/workshop/agents/harness-terminal/io.ts +120 -120
- package/server/services/workshop/agents/harness-terminal/park.ts +55 -55
- package/server/services/workshop/agents/harness-terminal/sanitize.ts +98 -98
- package/server/services/workshop/agents/harness-terminal/session.ts +124 -124
- package/server/services/workshop/agents/harness-terminal/shared.ts +74 -74
- package/server/services/workshop/agents/hitl-decision/answers.ts +32 -32
- package/server/services/workshop/agents/hitl-decision/decide.ts +268 -268
- package/server/services/workshop/agents/hitl-decision/payload.ts +45 -45
- package/server/services/workshop/agents/hitl-decision/reconcile.ts +12 -0
- package/server/services/workshop/agents/hitl-decision/shared.ts +108 -108
- package/server/services/workshop/agents/host-tool-bridge/tools/team.ts +70 -70
- package/server/services/workshop/agents/industrial/aml-activity.ts +131 -131
- package/server/services/workshop/agents/industrial/audit-query.ts +66 -66
- package/server/services/workshop/agents/industrial/bench-approval-only.ts +394 -394
- package/server/services/workshop/agents/industrial/fallback-hints.ts +31 -31
- package/server/services/workshop/agents/industrial/identifiability-tools.ts +247 -247
- package/server/services/workshop/agents/industrial/optimization-tools.ts +12 -1
- package/server/services/workshop/agents/industrial/param-tools.ts +69 -69
- package/server/services/workshop/agents/node-bindings.repo.ts +210 -210
- package/server/services/workshop/agents/node-delegation.ts +204 -204
- package/server/services/workshop/agents/omp-agent/agentteam-audit.ts +147 -147
- package/server/services/workshop/agents/omp-agent/facade.ts +8 -8
- package/server/services/workshop/agents/omp-agent/helpers.ts +37 -37
- package/server/services/workshop/agents/omp-agent/index.ts +16 -16
- package/server/services/workshop/agents/omp-agent/types.ts +45 -45
- package/server/services/workshop/agents/opencode-agent/core.ts +77 -77
- package/server/services/workshop/agents/opencode-agent/facade.ts +8 -8
- package/server/services/workshop/agents/opencode-agent/helpers.ts +29 -29
- package/server/services/workshop/agents/opencode-agent/hitl.ts +113 -113
- package/server/services/workshop/agents/opencode-agent/index.ts +16 -16
- package/server/services/workshop/agents/opencode-agent/lifecycle.ts +44 -44
- package/server/services/workshop/agents/opencode-agent/server.ts +244 -244
- package/server/services/workshop/agents/opencode-agent/turn.ts +278 -278
- package/server/services/workshop/agents/opencode-agent/types.ts +54 -54
- package/server/services/workshop/aml/action-coverage.ts +253 -253
- package/server/services/workshop/aml/causal-claim.ts +68 -68
- package/server/services/workshop/aml/clean.ts +120 -120
- package/server/services/workshop/aml/entity.ts +367 -367
- package/server/services/workshop/aml/env-lease.ts +178 -178
- package/server/services/workshop/aml/identifiability.ts +335 -335
- package/server/services/workshop/aml/job-orchestrator/broadcast.ts +37 -37
- package/server/services/workshop/aml/job-orchestrator/control.ts +94 -94
- package/server/services/workshop/aml/job-orchestrator/failure.ts +96 -96
- package/server/services/workshop/aml/job-orchestrator/index.ts +22 -22
- package/server/services/workshop/aml/job-orchestrator/process.ts +101 -101
- package/server/services/workshop/aml/job-orchestrator/shared.ts +53 -53
- package/server/services/workshop/aml/job-orchestrator/status.ts +20 -20
- package/server/services/workshop/aml/job-orchestrator/tick.ts +37 -37
- package/server/services/workshop/aml/ontology-learning.ts +143 -143
- package/server/services/workshop/aml/python/train-example.py +92 -92
- package/server/services/workshop/aml/runtime.ts +137 -137
- package/server/services/workshop/aml/stats.ts +140 -140
- package/server/services/workshop/aml/twin/calibration-worker.ts +150 -150
- package/server/services/workshop/aml/twin/cross-check-service.ts +114 -114
- package/server/services/workshop/aml/twin/cross-check.ts +176 -176
- package/server/services/workshop/aml/twin/model-backed-provider.ts +332 -332
- package/server/services/workshop/aml/twin/physics-spec-draft.ts +185 -185
- package/server/services/workshop/aml/twin/prompt-composer.ts +143 -143
- package/server/services/workshop/aml/twin/training-plans.ts +260 -260
- package/server/services/workshop/aml/twin/write-guard.ts +19 -19
- package/server/services/workshop/assets/character-asset.repo.ts +1 -1
- package/server/services/workshop/assets/device-twin.repo.ts +1 -1
- package/server/services/workshop/bench-mode.ts +22 -22
- package/server/services/workshop/daq/alarm-notify.ts +122 -122
- package/server/services/workshop/daq/batch-quality.ts +96 -0
- package/server/services/workshop/daq/daq-controller/contracts.ts +42 -42
- package/server/services/workshop/daq/daq-controller/driver-probe.ts +68 -68
- package/server/services/workshop/daq/daq-controller/facade.ts +28 -28
- package/server/services/workshop/daq/daq-controller/helpers.ts +52 -52
- package/server/services/workshop/daq/daq-controller/index.ts +22 -22
- package/server/services/workshop/daq/daq-controller/sweep-alarms.ts +214 -214
- package/server/services/workshop/daq/drivers/mock.ts +130 -130
- package/server/services/workshop/daq/drivers/modbus-rtu.ts +67 -67
- package/server/services/workshop/daq/drivers/modbus-tcp.ts +321 -321
- package/server/services/workshop/daq/drivers/opcua.ts +227 -227
- package/server/services/workshop/daq/drivers/s7-stub.ts +29 -29
- package/server/services/workshop/daq/frame-meta.ts +86 -86
- package/server/services/workshop/daq/host-ports.ts +65 -65
- package/server/services/workshop/daq/infra-credentials.ts +201 -201
- package/server/services/workshop/daq/ingest-policy.ts +80 -80
- package/server/services/workshop/daq/node-metadata.ts +79 -79
- package/server/services/workshop/daq/objectstore/index.ts +88 -88
- package/server/services/workshop/daq/storage/retention.ts +142 -142
- package/server/services/workshop/daq/storage/timescale-rollup.ts +612 -612
- package/server/services/workshop/db/aml-team-seeds.ts +118 -118
- package/server/services/workshop/db/backup-registry.ts +33 -33
- package/server/services/workshop/db/channel-member.repo.ts +122 -122
- package/server/services/workshop/db/chat-message.repo.ts +261 -261
- package/server/services/workshop/db/database/json.ts +14 -14
- package/server/services/workshop/db/database/migrations-experience-versions.ts +92 -0
- package/server/services/workshop/db/database/migrations-hitl-ref.ts +20 -0
- package/server/services/workshop/db/database/open.ts +9 -2
- package/server/services/workshop/db/database/schema.ts +101 -1
- package/server/services/workshop/db/database/seed-data.ts +60 -60
- package/server/services/workshop/db/hitl-request.repo.ts +221 -221
- package/server/services/workshop/db/memory.repo.ts +34 -0
- package/server/services/workshop/db/readonly.ts +30 -30
- package/server/services/workshop/db/scheduled-task.repo.ts +235 -235
- package/server/services/workshop/db/transaction.ts +72 -72
- package/server/services/workshop/dcw/dcw-controller/actuation.ts +46 -0
- package/server/services/workshop/dcw/dcw-controller/control.ts +78 -78
- package/server/services/workshop/dcw/dcw-controller/facade.ts +19 -19
- package/server/services/workshop/dcw/dcw-controller/helpers.ts +62 -62
- package/server/services/workshop/dcw/dcw-controller/index.ts +22 -22
- package/server/services/workshop/dcw/dcw-controller/params.ts +97 -97
- package/server/services/workshop/dcw/dcw-templates.ts +136 -136
- package/server/services/workshop/dcw/mqtt-payload.ts +64 -64
- package/server/services/workshop/dcw/param-conversion.ts +78 -78
- package/server/services/workshop/dcw/param-map.repo.ts +349 -349
- package/server/services/workshop/dcw/plugin-bridge.ts +45 -45
- package/server/services/workshop/dcw/recipe-rollback-manager/contracts.ts +26 -26
- package/server/services/workshop/dcw/recipe-rollback-manager/facade.ts +13 -13
- package/server/services/workshop/dcw/recipe-rollback-manager/helpers.ts +30 -30
- package/server/services/workshop/dcw/recipe-rollback-manager/index.ts +17 -17
- package/server/services/workshop/dcw/recipe-rollback-manager/internal.ts +33 -33
- package/server/services/workshop/dcw/recipe-rollback-manager/judge.ts +52 -52
- package/server/services/workshop/dcw/recipe-rollback-manager/lock.ts +138 -138
- package/server/services/workshop/dcw/recipe-rollback-manager/state.ts +21 -21
- package/server/services/workshop/dcw/recipe-rollback-manager/types.ts +3 -3
- package/server/services/workshop/dcw/recipe-rollback-manager/views.ts +214 -214
- package/server/services/workshop/dcw/write-attempt-ledger.ts +113 -0
- package/server/services/workshop/eda/template-repo.ts +101 -101
- package/server/services/workshop/experience/claim-cluster.ts +28 -0
- package/server/services/workshop/experience/evaluation-run.ts +175 -0
- package/server/services/workshop/experience/evidence-ledger.ts +69 -0
- package/server/services/workshop/experience/gates.ts +14 -4
- package/server/services/workshop/experience/ontology-proposals.ts +115 -0
- package/server/services/workshop/experience/overlay.ts +7 -1
- package/server/services/workshop/experience/promote.ts +7 -1
- package/server/services/workshop/experience/reflection-effects.ts +155 -0
- package/server/services/workshop/experience/release.ts +163 -0
- package/server/services/workshop/experience/resolve.ts +142 -0
- package/server/services/workshop/experience/trusted-context.ts +90 -0
- package/server/services/workshop/experience/types.ts +168 -0
- package/server/services/workshop/experience/versions.ts +188 -0
- package/server/services/workshop/json-store.mjs +143 -143
- package/server/services/workshop/line-scope.ts +80 -80
- package/server/services/workshop/mes/mes-hook.ts +594 -594
- package/server/services/workshop/net/ssrf.ts +83 -83
- package/server/services/workshop/ontology/subgraph.core.ts +300 -300
- package/server/services/workshop/ontology/subgraph.service.ts +113 -113
- package/server/services/workshop/ops/error-ledger.ts +209 -209
- package/server/services/workshop/optimization/python/__pycache__/problems.cpython-312.pyc +0 -0
- package/server/services/workshop/plugins/host/config.mjs +135 -135
- package/server/services/workshop/plugins/host/index.mjs +23 -23
- package/server/services/workshop/plugins/host/init.mjs +140 -140
- package/server/services/workshop/plugins/host/state.mjs +54 -54
- package/server/services/workshop/plugins/host/toggle.mjs +64 -64
- package/server/services/workshop/plugins/host.mjs +9 -9
- package/server/services/workshop/projects/plan-progress.ts +140 -0
- package/server/services/workshop/projects/service.ts +31 -0
- package/server/services/workshop/rsi-adapter/experience.ts +3 -1
- package/server/services/workshop/runtime/agent-runtime/facade.ts +7 -7
- package/server/services/workshop/runtime/agent-runtime/harness-failure.ts +58 -58
- package/server/services/workshop/runtime/agent-runtime/helpers.ts +18 -18
- package/server/services/workshop/runtime/agent-runtime/index.ts +19 -19
- package/server/services/workshop/runtime/chat-mention.ts +164 -164
- package/server/services/workshop/runtime/chat-projection.ts +246 -246
- package/server/services/workshop/runtime/embedding-provider.ts +100 -100
- package/server/services/workshop/runtime/manager/bus.ts +182 -182
- package/server/services/workshop/runtime/manager/channel-template-constants.ts +20 -20
- package/server/services/workshop/runtime/manager/chat-reply.ts +181 -181
- package/server/services/workshop/runtime/manager/chat.ts +446 -446
- package/server/services/workshop/runtime/manager/dependency-health.ts +68 -0
- package/server/services/workshop/runtime/manager/facade.ts +24 -24
- package/server/services/workshop/runtime/manager/index.ts +42 -42
- package/server/services/workshop/runtime/manager/internal.ts +73 -73
- package/server/services/workshop/runtime/manager/notifications.ts +108 -108
- package/server/services/workshop/runtime/memory/contracts.ts +18 -18
- package/server/services/workshop/runtime/memory/facade.ts +10 -10
- package/server/services/workshop/runtime/memory/index.ts +27 -27
- package/server/services/workshop/runtime/memory/score.ts +33 -33
- package/server/services/workshop/runtime/memory/state.ts +7 -1
- package/server/services/workshop/runtime/monitor.ts +3 -3
- package/server/services/workshop/runtime/platform-notice.ts +113 -113
- package/server/services/workshop/runtime/schedule-runtime.ts +347 -347
- package/server/services/workshop/runtime/scheduler-loop/facade.ts +7 -7
- package/server/services/workshop/runtime/scheduler-loop/helpers.ts +14 -14
- package/server/services/workshop/runtime/scheduler-loop/index.ts +16 -16
- package/server/services/workshop/runtime/task-engine/facade.ts +7 -7
- package/server/services/workshop/runtime/task-engine/index.ts +15 -15
- package/server/services/workshop/runtime/task-engine/types.ts +3 -3
- package/server/services/workshop/runtime/user-notification-hub.ts +192 -192
- package/server/services/workshop/tools/policy.ts +16 -1
- package/server/types/pg.d.ts +49 -49
- package/server/utils/asset-auth.ts +15 -15
- package/server/utils/mojibake-guard.ts +29 -29
- package/server/utils/request-ip.ts +29 -29
- package/server/utils/stability-severity.ts +77 -77
- package/shared/config/groups.mjs +241 -241
- package/shared/lru.mjs +97 -97
- package/tui/README.md +74 -74
- package/tui/aw-tui.mjs +445 -445
- package/tui/commands/index.mjs +287 -287
- package/tui/components/chat-log.mjs +42 -42
- package/tui/components/monitor-pane.mjs +39 -39
- package/tui/components/root.mjs +53 -53
- package/tui/components/status-bar.mjs +33 -33
- package/tui/lib/api.mjs +82 -82
- package/tui/lib/pickers.mjs +121 -121
- package/tui/lib/reducers.mjs +218 -218
- package/tui/lib/state.mjs +86 -86
- package/tui/lib/virtual-terminal.mjs +48 -48
- package/tui/lib/ws.mjs +125 -125
- package/tui/theme.mjs +38 -38
- package/.output/.AgentWorkShop/aml-python/__pycache__/aml_eval.cpython-312.pyc +0 -0
- package/.output/.AgentWorkShop/aml-python/__pycache__/amlkit.cpython-312.pyc +0 -0
- package/.output/.AgentWorkShop/aml-python/__pycache__/train-example.cpython-312.pyc +0 -0
- package/.output/.AgentWorkShop/aml-python/__pycache__/train-hybrid-example.cpython-312.pyc +0 -0
- package/.output/public/_nuxt/PluginSlot.CGH0vb95.css +0 -1
- package/.output/public/_nuxt/aml.PalMp-5n.css +0 -1
- package/.output/public/_nuxt/builds/meta/577f464e-672a-4c4e-a3c8-dc8c1b38930d.json +0 -1
- package/server/services/workshop/aml/python/__pycache__/aml_eval.cpython-312.pyc +0 -0
- package/server/services/workshop/aml/python/__pycache__/amlkit.cpython-312.pyc +0 -0
- package/server/services/workshop/aml/python/__pycache__/train-example.cpython-312.pyc +0 -0
- package/server/services/workshop/aml/python/__pycache__/train-hybrid-example.cpython-312.pyc +0 -0
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EDA 图表配置模板 repo —— 用户把「图型 + 编码字段 + 后处理代码」存成命名模板,
|
|
3
|
-
* 换一份数据选模板即可快速复绘(管道页 Step4)。owner 私有,CRUD 全走本模块。
|
|
4
|
-
*/
|
|
5
|
-
import { randomUUID } from 'node:crypto'
|
|
6
|
-
import { edaDb } from './eda-db'
|
|
7
|
-
import { AppError } from '@/server/utils/errors'
|
|
8
|
-
import { recordOps } from '../ops/ops'
|
|
9
|
-
import type { ResolvedUser } from '@/server/api/workshop/caller'
|
|
10
|
-
|
|
11
|
-
export interface ChartTemplateInput {
|
|
12
|
-
name: string
|
|
13
|
-
description?: string
|
|
14
|
-
chartType: string
|
|
15
|
-
config: Record<string, unknown>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ChartTemplateRow {
|
|
19
|
-
id: string
|
|
20
|
-
name: string
|
|
21
|
-
description: string
|
|
22
|
-
chartType: string
|
|
23
|
-
config: Record<string, unknown>
|
|
24
|
-
ownerId: string
|
|
25
|
-
createdAt: string
|
|
26
|
-
updatedAt: string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export const CHART_TEMPLATE_TYPES = new Set(['line', 'bar', 'scatter', 'pie', 'histogram'])
|
|
30
|
-
|
|
31
|
-
function rowToTemplate(r: Record<string, unknown>): ChartTemplateRow {
|
|
32
|
-
return {
|
|
33
|
-
id: String(r.id),
|
|
34
|
-
name: String(r.name),
|
|
35
|
-
description: String(r.description ?? ''),
|
|
36
|
-
chartType: String(r.chart_type),
|
|
37
|
-
config: JSON.parse(String(r.config_json ?? '{}')) as Record<string, unknown>,
|
|
38
|
-
ownerId: String(r.owner_user_id),
|
|
39
|
-
createdAt: String(r.created_at),
|
|
40
|
-
updatedAt: String(r.updated_at),
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function createTemplate(user: ResolvedUser, input: ChartTemplateInput): ChartTemplateRow {
|
|
45
|
-
const name = input.name.trim()
|
|
46
|
-
if (!name) throw new AppError(400, 'VALIDATION_ERROR' as never, '模板名必填。')
|
|
47
|
-
if (!CHART_TEMPLATE_TYPES.has(input.chartType)) throw new AppError(400, 'VALIDATION_ERROR' as never, `不支持的图型: ${input.chartType}`)
|
|
48
|
-
const id = `et-${randomUUID().slice(0, 8)}`
|
|
49
|
-
const now = new Date().toISOString()
|
|
50
|
-
edaDb().prepare(`INSERT INTO eda_chart_templates (id, name, description, chart_type, config_json, owner_user_id, created_at, updated_at)
|
|
51
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`)
|
|
52
|
-
.run(id, name.slice(0, 120), (input.description ?? '').slice(0, 500), input.chartType,
|
|
53
|
-
JSON.stringify(input.config ?? {}), user.id, now, now)
|
|
54
|
-
recordOps({
|
|
55
|
-
actor: user.id, actorName: user.name, actorKind: 'user',
|
|
56
|
-
action: 'eda.template.save', kind: 'system', targetKind: 'eda-chart-template', targetId: id,
|
|
57
|
-
summary: `保存图表模板「${name}」(${input.chartType})`,
|
|
58
|
-
})
|
|
59
|
-
return templateById(user, id)!
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function templateById(user: ResolvedUser, id: string): ChartTemplateRow | undefined {
|
|
63
|
-
const r = edaDb().prepare('SELECT * FROM eda_chart_templates WHERE id = ?').get(id) as Record<string, unknown> | undefined
|
|
64
|
-
if (!r) return undefined
|
|
65
|
-
const row = rowToTemplate(r)
|
|
66
|
-
if (row.ownerId !== user.id && user.role !== 'admin') throw new AppError(403, 'FORBIDDEN' as never, '仅 owner 或管理员可读取该模板。')
|
|
67
|
-
return row
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function listTemplates(user: ResolvedUser): ChartTemplateRow[] {
|
|
71
|
-
const rows = user.role === 'admin'
|
|
72
|
-
? edaDb().prepare('SELECT * FROM eda_chart_templates ORDER BY updated_at DESC').all() as Record<string, unknown>[]
|
|
73
|
-
: edaDb().prepare('SELECT * FROM eda_chart_templates WHERE owner_user_id = ? ORDER BY updated_at DESC').all(user.id) as Record<string, unknown>[]
|
|
74
|
-
return rows.map(rowToTemplate)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function updateTemplate(user: ResolvedUser, id: string, patch: Partial<ChartTemplateInput>): ChartTemplateRow {
|
|
78
|
-
const existing = templateById(user, id)
|
|
79
|
-
if (!existing) throw new AppError(404, 'NOT_FOUND' as never, `模板不存在: ${id}`)
|
|
80
|
-
if (existing.ownerId !== user.id && user.role !== 'admin') throw new AppError(403, 'FORBIDDEN' as never, '仅 owner 或管理员可修改该模板。')
|
|
81
|
-
const name = (patch.name ?? existing.name).trim().slice(0, 120)
|
|
82
|
-
if (!name) throw new AppError(400, 'VALIDATION_ERROR' as never, '模板名必填。')
|
|
83
|
-
const chartType = patch.chartType ?? existing.chartType
|
|
84
|
-
if (!CHART_TEMPLATE_TYPES.has(chartType)) throw new AppError(400, 'VALIDATION_ERROR' as never, `不支持的图型: ${chartType}`)
|
|
85
|
-
edaDb().prepare(`UPDATE eda_chart_templates SET name = ?, description = ?, chart_type = ?, config_json = ?, updated_at = ? WHERE id = ?`)
|
|
86
|
-
.run(name, (patch.description ?? existing.description).slice(0, 500), chartType,
|
|
87
|
-
JSON.stringify(patch.config ?? existing.config), new Date().toISOString(), id)
|
|
88
|
-
return templateById(user, id)!
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function deleteTemplate(user: ResolvedUser, id: string): void {
|
|
92
|
-
const existing = templateById(user, id)
|
|
93
|
-
if (!existing) throw new AppError(404, 'NOT_FOUND' as never, `模板不存在: ${id}`)
|
|
94
|
-
if (existing.ownerId !== user.id && user.role !== 'admin') throw new AppError(403, 'FORBIDDEN' as never, '仅 owner 或管理员可删除该模板。')
|
|
95
|
-
edaDb().prepare('DELETE FROM eda_chart_templates WHERE id = ?').run(id)
|
|
96
|
-
recordOps({
|
|
97
|
-
actor: user.id, actorName: user.name, actorKind: 'user',
|
|
98
|
-
action: 'eda.template.delete', kind: 'system', targetKind: 'eda-chart-template', targetId: id,
|
|
99
|
-
summary: `删除图表模板「${existing.name}」`,
|
|
100
|
-
})
|
|
101
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* EDA 图表配置模板 repo —— 用户把「图型 + 编码字段 + 后处理代码」存成命名模板,
|
|
3
|
+
* 换一份数据选模板即可快速复绘(管道页 Step4)。owner 私有,CRUD 全走本模块。
|
|
4
|
+
*/
|
|
5
|
+
import { randomUUID } from 'node:crypto'
|
|
6
|
+
import { edaDb } from './eda-db'
|
|
7
|
+
import { AppError } from '@/server/utils/errors'
|
|
8
|
+
import { recordOps } from '../ops/ops'
|
|
9
|
+
import type { ResolvedUser } from '@/server/api/workshop/caller'
|
|
10
|
+
|
|
11
|
+
export interface ChartTemplateInput {
|
|
12
|
+
name: string
|
|
13
|
+
description?: string
|
|
14
|
+
chartType: string
|
|
15
|
+
config: Record<string, unknown>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ChartTemplateRow {
|
|
19
|
+
id: string
|
|
20
|
+
name: string
|
|
21
|
+
description: string
|
|
22
|
+
chartType: string
|
|
23
|
+
config: Record<string, unknown>
|
|
24
|
+
ownerId: string
|
|
25
|
+
createdAt: string
|
|
26
|
+
updatedAt: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const CHART_TEMPLATE_TYPES = new Set(['line', 'bar', 'scatter', 'pie', 'histogram'])
|
|
30
|
+
|
|
31
|
+
function rowToTemplate(r: Record<string, unknown>): ChartTemplateRow {
|
|
32
|
+
return {
|
|
33
|
+
id: String(r.id),
|
|
34
|
+
name: String(r.name),
|
|
35
|
+
description: String(r.description ?? ''),
|
|
36
|
+
chartType: String(r.chart_type),
|
|
37
|
+
config: JSON.parse(String(r.config_json ?? '{}')) as Record<string, unknown>,
|
|
38
|
+
ownerId: String(r.owner_user_id),
|
|
39
|
+
createdAt: String(r.created_at),
|
|
40
|
+
updatedAt: String(r.updated_at),
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function createTemplate(user: ResolvedUser, input: ChartTemplateInput): ChartTemplateRow {
|
|
45
|
+
const name = input.name.trim()
|
|
46
|
+
if (!name) throw new AppError(400, 'VALIDATION_ERROR' as never, '模板名必填。')
|
|
47
|
+
if (!CHART_TEMPLATE_TYPES.has(input.chartType)) throw new AppError(400, 'VALIDATION_ERROR' as never, `不支持的图型: ${input.chartType}`)
|
|
48
|
+
const id = `et-${randomUUID().slice(0, 8)}`
|
|
49
|
+
const now = new Date().toISOString()
|
|
50
|
+
edaDb().prepare(`INSERT INTO eda_chart_templates (id, name, description, chart_type, config_json, owner_user_id, created_at, updated_at)
|
|
51
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`)
|
|
52
|
+
.run(id, name.slice(0, 120), (input.description ?? '').slice(0, 500), input.chartType,
|
|
53
|
+
JSON.stringify(input.config ?? {}), user.id, now, now)
|
|
54
|
+
recordOps({
|
|
55
|
+
actor: user.id, actorName: user.name, actorKind: 'user',
|
|
56
|
+
action: 'eda.template.save', kind: 'system', targetKind: 'eda-chart-template', targetId: id,
|
|
57
|
+
summary: `保存图表模板「${name}」(${input.chartType})`,
|
|
58
|
+
})
|
|
59
|
+
return templateById(user, id)!
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function templateById(user: ResolvedUser, id: string): ChartTemplateRow | undefined {
|
|
63
|
+
const r = edaDb().prepare('SELECT * FROM eda_chart_templates WHERE id = ?').get(id) as Record<string, unknown> | undefined
|
|
64
|
+
if (!r) return undefined
|
|
65
|
+
const row = rowToTemplate(r)
|
|
66
|
+
if (row.ownerId !== user.id && user.role !== 'admin') throw new AppError(403, 'FORBIDDEN' as never, '仅 owner 或管理员可读取该模板。')
|
|
67
|
+
return row
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function listTemplates(user: ResolvedUser): ChartTemplateRow[] {
|
|
71
|
+
const rows = user.role === 'admin'
|
|
72
|
+
? edaDb().prepare('SELECT * FROM eda_chart_templates ORDER BY updated_at DESC').all() as Record<string, unknown>[]
|
|
73
|
+
: edaDb().prepare('SELECT * FROM eda_chart_templates WHERE owner_user_id = ? ORDER BY updated_at DESC').all(user.id) as Record<string, unknown>[]
|
|
74
|
+
return rows.map(rowToTemplate)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function updateTemplate(user: ResolvedUser, id: string, patch: Partial<ChartTemplateInput>): ChartTemplateRow {
|
|
78
|
+
const existing = templateById(user, id)
|
|
79
|
+
if (!existing) throw new AppError(404, 'NOT_FOUND' as never, `模板不存在: ${id}`)
|
|
80
|
+
if (existing.ownerId !== user.id && user.role !== 'admin') throw new AppError(403, 'FORBIDDEN' as never, '仅 owner 或管理员可修改该模板。')
|
|
81
|
+
const name = (patch.name ?? existing.name).trim().slice(0, 120)
|
|
82
|
+
if (!name) throw new AppError(400, 'VALIDATION_ERROR' as never, '模板名必填。')
|
|
83
|
+
const chartType = patch.chartType ?? existing.chartType
|
|
84
|
+
if (!CHART_TEMPLATE_TYPES.has(chartType)) throw new AppError(400, 'VALIDATION_ERROR' as never, `不支持的图型: ${chartType}`)
|
|
85
|
+
edaDb().prepare(`UPDATE eda_chart_templates SET name = ?, description = ?, chart_type = ?, config_json = ?, updated_at = ? WHERE id = ?`)
|
|
86
|
+
.run(name, (patch.description ?? existing.description).slice(0, 500), chartType,
|
|
87
|
+
JSON.stringify(patch.config ?? existing.config), new Date().toISOString(), id)
|
|
88
|
+
return templateById(user, id)!
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function deleteTemplate(user: ResolvedUser, id: string): void {
|
|
92
|
+
const existing = templateById(user, id)
|
|
93
|
+
if (!existing) throw new AppError(404, 'NOT_FOUND' as never, `模板不存在: ${id}`)
|
|
94
|
+
if (existing.ownerId !== user.id && user.role !== 'admin') throw new AppError(403, 'FORBIDDEN' as never, '仅 owner 或管理员可删除该模板。')
|
|
95
|
+
edaDb().prepare('DELETE FROM eda_chart_templates WHERE id = ?').run(id)
|
|
96
|
+
recordOps({
|
|
97
|
+
actor: user.id, actorName: user.name, actorKind: 'user',
|
|
98
|
+
action: 'eda.template.delete', kind: 'system', targetKind: 'eda-chart-template', targetId: id,
|
|
99
|
+
summary: `删除图表模板「${existing.name}」`,
|
|
100
|
+
})
|
|
101
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 主张簇相容性(Task 3)。
|
|
3
|
+
*
|
|
4
|
+
* 合并只能把**同一假设**的多份独立证据聚在一起。产品、变量、量纲、方向、工况与
|
|
5
|
+
* 配方版本任一不一致都不能合并计数;Beta 派生物与 legacy-unverified 旧版本
|
|
6
|
+
* 永远不可进入晋升簇(ADR 边界 + 无来源数据)。
|
|
7
|
+
*/
|
|
8
|
+
import type { ClaimClusterProposal, ExperienceVersion } from './types'
|
|
9
|
+
|
|
10
|
+
export function proposeClaimCluster(versions: readonly ExperienceVersion[]): ClaimClusterProposal {
|
|
11
|
+
const ids = versions.map(v => v.versionId)
|
|
12
|
+
if (versions.length < 2) return { compatible: false, reasons: ['至少 2 个版本才能构成主张簇'], versionIds: ids }
|
|
13
|
+
const reasons: string[] = []
|
|
14
|
+
if (versions.some(v => v.betaAncestors.length > 0)) reasons.push('BETA_ANCESTOR_PRESENT: Beta 派生物不得晋升')
|
|
15
|
+
if (versions.some(v => v.lifecycle === 'legacy-unverified')) reasons.push('LEGACY_UNVERIFIED: 无来源的旧版本不得参与晋升')
|
|
16
|
+
const [base, ...rest] = versions
|
|
17
|
+
for (const v of rest) {
|
|
18
|
+
if (v.claim.productId !== base!.claim.productId) reasons.push('PRODUCT_MISMATCH: 主张分属不同产品')
|
|
19
|
+
if (v.claim.variable !== base!.claim.variable) reasons.push('VARIABLE_MISMATCH: 主张针对不同工艺变量')
|
|
20
|
+
if (v.claim.unit !== base!.claim.unit) reasons.push('UNIT_MISMATCH: 量纲不一致')
|
|
21
|
+
if (v.claim.direction !== base!.claim.direction) reasons.push('DIRECTION_MISMATCH: 方向不一致')
|
|
22
|
+
if (v.claim.polarity !== base!.claim.polarity) reasons.push('POLARITY_MISMATCH: 支持/反证极性不一致')
|
|
23
|
+
if (base!.claim.recipeRevision && v.claim.recipeRevision && v.claim.recipeRevision !== base!.claim.recipeRevision) {
|
|
24
|
+
reasons.push('RECIPE_MISMATCH: 配方版本不一致')
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return { compatible: reasons.length === 0, reasons: [...new Set(reasons)], versionIds: ids }
|
|
28
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 可归因的宿主评测(Task 5)。
|
|
3
|
+
*
|
|
4
|
+
* 旧口径:客户端逐样本自报来源,复算只能证明"数字自洽",不能证明宿主真的跑过,
|
|
5
|
+
* 也无法排除重复观测、同一运行跨臂泄漏或缺成本观测。这里冻结估计口径并强制:
|
|
6
|
+
* - 留出单元与开发单元不相交(同 run 复用作留出 → BLOCKED);
|
|
7
|
+
* - 分母必须等于 success+failed+timedOut+interrupted(不允许只报成功);
|
|
8
|
+
* - 各臂独立(一臂的更新对另一臂不可见);
|
|
9
|
+
* - 只有 host 来源的评测才可作发布证据;客户端旧台账恒 releaseEligible=false。
|
|
10
|
+
*/
|
|
11
|
+
import { createHash } from 'node:crypto'
|
|
12
|
+
import type { DatabaseSync } from 'node:sqlite'
|
|
13
|
+
import { createHarnessBenchRunRepo } from '../db/harness-bench.repo'
|
|
14
|
+
|
|
15
|
+
export type EvaluationStatus = 'PASS' | 'FAIL' | 'BLOCKED'
|
|
16
|
+
|
|
17
|
+
export interface FrozenEvaluationSpec {
|
|
18
|
+
/** 冻结:数据/模型/策略版本 */
|
|
19
|
+
dataVersions: Readonly<Record<string, string>>
|
|
20
|
+
modelVersion: string
|
|
21
|
+
policyVersion: string
|
|
22
|
+
/** 四臂:A 无经验,B 历史召回(仅隔离回放),C 新解析,D=C+人工审核部署 */
|
|
23
|
+
arms: ReadonlyArray<'A' | 'B' | 'C' | 'D'>
|
|
24
|
+
primaryEndpoint: string
|
|
25
|
+
minEffect: number
|
|
26
|
+
nonInferiorityBound: number
|
|
27
|
+
maxCostDelta: number
|
|
28
|
+
alpha: number
|
|
29
|
+
minSampleSize: number
|
|
30
|
+
developmentUnits: readonly string[]
|
|
31
|
+
holdoutUnits: readonly string[]
|
|
32
|
+
/** host = 宿主执行并留原始证据;client = 客户端自报(仅展示) */
|
|
33
|
+
provenance: 'host' | 'client'
|
|
34
|
+
/** 预先声明的总分母(用于核对逐臂计数是否漏报) */
|
|
35
|
+
declaredDenominator?: number
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ArmOutcome {
|
|
39
|
+
arm: 'A' | 'B' | 'C' | 'D'
|
|
40
|
+
success: number
|
|
41
|
+
failed: number
|
|
42
|
+
timedOut: number
|
|
43
|
+
interrupted: number
|
|
44
|
+
/** 主终点效应(C−B 口径) */
|
|
45
|
+
effect: number
|
|
46
|
+
cost: number
|
|
47
|
+
/** 该臂在运行中是否看到过其他臂的更新(独立事件流/索引/缓存失效检查) */
|
|
48
|
+
sawOtherArmUpdates?: boolean
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface EvaluationRunRef {
|
|
52
|
+
runId: string
|
|
53
|
+
status: EvaluationStatus
|
|
54
|
+
blockers: string[]
|
|
55
|
+
denominator: number
|
|
56
|
+
manifestHash: string
|
|
57
|
+
releaseEligible: boolean
|
|
58
|
+
provenance: 'host' | 'client'
|
|
59
|
+
/** 真实测量:C−B 主终点效应与成本差;臂缺失时 null(不编造数字) */
|
|
60
|
+
effect: number | null
|
|
61
|
+
costDelta: number | null
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const sha256 = (text: string): string => createHash('sha256').update(text).digest('hex')
|
|
65
|
+
|
|
66
|
+
const specHash = (spec: FrozenEvaluationSpec): string => sha256(JSON.stringify({
|
|
67
|
+
dataVersions: spec.dataVersions, modelVersion: spec.modelVersion, policyVersion: spec.policyVersion,
|
|
68
|
+
arms: [...spec.arms].sort(), primaryEndpoint: spec.primaryEndpoint, minEffect: spec.minEffect,
|
|
69
|
+
nonInferiorityBound: spec.nonInferiorityBound, maxCostDelta: spec.maxCostDelta, alpha: spec.alpha,
|
|
70
|
+
minSampleSize: spec.minSampleSize, developmentUnits: [...spec.developmentUnits].sort(),
|
|
71
|
+
holdoutUnits: [...spec.holdoutUnits].sort(), provenance: spec.provenance,
|
|
72
|
+
}))
|
|
73
|
+
|
|
74
|
+
export function planExperienceEvaluation(spec: FrozenEvaluationSpec, outcomes: readonly ArmOutcome[] = []): EvaluationRunRef {
|
|
75
|
+
const blockers: string[] = []
|
|
76
|
+
const holdout = new Set(spec.holdoutUnits)
|
|
77
|
+
if (spec.holdoutUnits.some(u => spec.developmentUnits.includes(u)) || holdout.size !== spec.holdoutUnits.length) {
|
|
78
|
+
blockers.push('HOLDOUT_LEAK: 留出单元与开发单元重叠或重复')
|
|
79
|
+
}
|
|
80
|
+
if (spec.holdoutUnits.length === 0) blockers.push('HOLDOUT_MISSING: 未声明独立留出集')
|
|
81
|
+
if (!spec.dataVersions || Object.keys(spec.dataVersions).length === 0) blockers.push('DATA_VERSION_UNPINNED')
|
|
82
|
+
if (!spec.modelVersion.trim() || !spec.policyVersion.trim()) blockers.push('VERSION_UNPINNED')
|
|
83
|
+
if (spec.provenance !== 'host') blockers.push('CLIENT_PROVENANCE: 客户端评测不得作为发布证据')
|
|
84
|
+
if (outcomes.some(o => o.sawOtherArmUpdates === true)) blockers.push('ARM_LEAK: 臂间可见彼此更新')
|
|
85
|
+
const denominator = outcomes.reduce((n, o) => n + o.success + o.failed + o.timedOut + o.interrupted, 0)
|
|
86
|
+
if (spec.declaredDenominator !== undefined && spec.declaredDenominator !== denominator) {
|
|
87
|
+
blockers.push(`DENOMINATOR_MISMATCH: 声明 ${spec.declaredDenominator} ≠ 逐臂合计 ${denominator}`)
|
|
88
|
+
}
|
|
89
|
+
if (outcomes.length > 0 && denominator < spec.minSampleSize) {
|
|
90
|
+
blockers.push(`SAMPLE_INSUFFICIENT: ${denominator} < ${spec.minSampleSize}`)
|
|
91
|
+
}
|
|
92
|
+
const primary = outcomes.find(o => o.arm === 'C')
|
|
93
|
+
const baseline = outcomes.find(o => o.arm === 'B')
|
|
94
|
+
let status: EvaluationStatus = blockers.length > 0 ? 'BLOCKED' : 'FAIL'
|
|
95
|
+
// 真实测量:C−B 主终点效应与成本差;未跑出臂时 null(绝不编造数字)
|
|
96
|
+
const effect = primary && baseline ? primary.effect - baseline.effect : null
|
|
97
|
+
const costDelta = primary && baseline ? primary.cost - baseline.cost : null
|
|
98
|
+
if (blockers.length === 0 && primary && baseline && effect !== null && costDelta !== null) {
|
|
99
|
+
if (effect >= spec.minEffect && costDelta <= spec.maxCostDelta) status = 'PASS'
|
|
100
|
+
else if (effect >= -Math.abs(spec.nonInferiorityBound) && costDelta <= spec.maxCostDelta) status = 'PASS'
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
runId: `evr-${specHash(spec).slice(0, 16)}`,
|
|
104
|
+
status,
|
|
105
|
+
blockers: [...new Set(blockers)],
|
|
106
|
+
denominator,
|
|
107
|
+
manifestHash: specHash(spec),
|
|
108
|
+
releaseEligible: status === 'PASS' && spec.provenance === 'host',
|
|
109
|
+
provenance: spec.provenance,
|
|
110
|
+
effect,
|
|
111
|
+
costDelta,
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** 宿主执行:每个臂独立运行并汇总;执行器缺失即 BLOCKED(不用夹具补结论) */
|
|
116
|
+
export async function runExperienceEvaluation(
|
|
117
|
+
spec: FrozenEvaluationSpec,
|
|
118
|
+
deps: { runArm: (arm: ArmOutcome['arm']) => Promise<Omit<ArmOutcome, 'arm'>> },
|
|
119
|
+
): Promise<EvaluationRunRef> {
|
|
120
|
+
const outcomes: ArmOutcome[] = []
|
|
121
|
+
for (const arm of spec.arms) {
|
|
122
|
+
try {
|
|
123
|
+
outcomes.push({ arm, ...(await deps.runArm(arm)) })
|
|
124
|
+
}
|
|
125
|
+
catch (err) {
|
|
126
|
+
return {
|
|
127
|
+
runId: `evr-${specHash(spec).slice(0, 16)}`,
|
|
128
|
+
status: 'BLOCKED',
|
|
129
|
+
blockers: [`ARM_EXECUTION_FAILED:${arm}:${err instanceof Error ? err.message : String(err)}`],
|
|
130
|
+
denominator: outcomes.reduce((n, o) => n + o.success + o.failed + o.timedOut + o.interrupted, 0),
|
|
131
|
+
manifestHash: specHash(spec),
|
|
132
|
+
releaseEligible: false,
|
|
133
|
+
provenance: spec.provenance,
|
|
134
|
+
effect: null,
|
|
135
|
+
costDelta: null,
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return planExperienceEvaluation(spec, outcomes)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 把宿主评测结果登记为 Profile 晋升可消费的台账行。
|
|
144
|
+
* kind='host-evaluation' 是晋升门的宿主来源标记;其余 kind 一律视为客户端台账。
|
|
145
|
+
*/
|
|
146
|
+
export function recordHostEvaluationEvidence(
|
|
147
|
+
db: DatabaseSync,
|
|
148
|
+
input: { channelId: string, profileId: string, baselineProfileId?: string, evidence: EvaluationRunRef, createdBy: string },
|
|
149
|
+
): { ok: boolean, benchRunId?: string, reasons: string[] } {
|
|
150
|
+
if (!input.evidence.releaseEligible) {
|
|
151
|
+
return { ok: false, reasons: [`宿主评测不可作为发布证据:${input.evidence.status} ${input.evidence.blockers.join(';')}`] }
|
|
152
|
+
}
|
|
153
|
+
const now = new Date().toISOString()
|
|
154
|
+
// 台账只写**真实测量值**:pValue=null(未做显著性检验),效应/成本取冻结口径的 C−B 实测;
|
|
155
|
+
// 晋升门对宿主来源运行按预注册非劣界判定,不再消费任何编造的显著性数字。
|
|
156
|
+
const run = createHarnessBenchRunRepo(db).create({
|
|
157
|
+
channelId: input.channelId,
|
|
158
|
+
profileId: input.profileId,
|
|
159
|
+
baselineProfileId: input.baselineProfileId ?? '',
|
|
160
|
+
kind: 'host-evaluation',
|
|
161
|
+
status: 'completed',
|
|
162
|
+
pValue: null,
|
|
163
|
+
primaryDelta: input.evidence.effect ?? 0,
|
|
164
|
+
costDelta: input.evidence.costDelta ?? 0,
|
|
165
|
+
pairs: input.evidence.denominator,
|
|
166
|
+
excluded: 0,
|
|
167
|
+
seedsJson: '[]',
|
|
168
|
+
perSeedJson: '[]',
|
|
169
|
+
artifactSha256: input.evidence.manifestHash,
|
|
170
|
+
createdBy: input.createdBy,
|
|
171
|
+
createdAt: now,
|
|
172
|
+
completedAt: now,
|
|
173
|
+
})
|
|
174
|
+
return { ok: true, benchRunId: run.id, reasons: [] }
|
|
175
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 宿主证据门(Task 3)。
|
|
3
|
+
*
|
|
4
|
+
* 独立性只由**宿主派生的支持单元**决定(supportUnitId:run/批次/种子),不是 taskId,
|
|
5
|
+
* 更不是模型自述:同源重试、同一运行的分片、复述曾注入的主张都不计新增外部证据;
|
|
6
|
+
* 主张形成前的观测不能反过来支持该主张;环境不一致的证据不得混用。
|
|
7
|
+
*/
|
|
8
|
+
import type { EvidenceDecision, EvidenceRef, TrustedLearningContext } from './types'
|
|
9
|
+
|
|
10
|
+
export interface ClassifyOptions {
|
|
11
|
+
/** 主张首次形成时间;早于此的观测不计支持 */
|
|
12
|
+
claimOriginTime?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const envMatches = (ref: EvidenceRef, context: TrustedLearningContext): boolean =>
|
|
16
|
+
ref.environment === context.environment
|
|
17
|
+
|
|
18
|
+
export function classifyEvidence(
|
|
19
|
+
refs: readonly EvidenceRef[],
|
|
20
|
+
context: TrustedLearningContext,
|
|
21
|
+
options: ClassifyOptions = {},
|
|
22
|
+
): EvidenceDecision {
|
|
23
|
+
const excludedReasons: string[] = []
|
|
24
|
+
const support = new Set<string>()
|
|
25
|
+
const refute = new Set<string>()
|
|
26
|
+
const origin = options.claimOriginTime ? Date.parse(options.claimOriginTime) : null
|
|
27
|
+
|
|
28
|
+
for (const ref of refs) {
|
|
29
|
+
if (!envMatches(ref, context)) {
|
|
30
|
+
excludedReasons.push(`${ref.id}:ENVIRONMENT_MISMATCH`)
|
|
31
|
+
continue
|
|
32
|
+
}
|
|
33
|
+
if (origin !== null && Number.isFinite(origin)) {
|
|
34
|
+
const at = Date.parse(ref.observedAt)
|
|
35
|
+
if (!Number.isFinite(at) || at < origin) {
|
|
36
|
+
excludedReasons.push(`${ref.id}:BEFORE_CLAIM_ORIGIN`)
|
|
37
|
+
continue
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if ((ref.restatesVersionIds ?? []).length > 0) {
|
|
41
|
+
excludedReasons.push(`${ref.id}:REPEATED_INJECTED_CLAIM`)
|
|
42
|
+
continue
|
|
43
|
+
}
|
|
44
|
+
if ((ref.betaAncestors ?? []).length > 0) {
|
|
45
|
+
excludedReasons.push(`${ref.id}:BETA_ANCESTOR`)
|
|
46
|
+
continue
|
|
47
|
+
}
|
|
48
|
+
if (!ref.supportUnitId?.trim()) {
|
|
49
|
+
excludedReasons.push(`${ref.id}:NO_SUPPORT_UNIT`)
|
|
50
|
+
continue
|
|
51
|
+
}
|
|
52
|
+
if (ref.polarity === 'unknown') {
|
|
53
|
+
excludedReasons.push(`${ref.id}:UNKNOWN_POLARITY`)
|
|
54
|
+
continue
|
|
55
|
+
}
|
|
56
|
+
if (ref.polarity === 'support') support.add(ref.supportUnitId)
|
|
57
|
+
else refute.add(ref.supportUnitId)
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
supportUnitIds: [...support].sort(),
|
|
61
|
+
refuteUnitIds: [...refute].filter(u => !support.has(u)).sort(),
|
|
62
|
+
excludedReasons,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** E2 量化门槛:主张形成后至少两个**独立**支持单元,且没有任何反证单元 */
|
|
67
|
+
export function hasIndependentSupport(decision: EvidenceDecision, minimum = 2): boolean {
|
|
68
|
+
return decision.supportUnitIds.length >= minimum && decision.refuteUnitIds.length === 0
|
|
69
|
+
}
|
|
@@ -131,6 +131,11 @@ export interface PairedBenchResult {
|
|
|
131
131
|
primaryDelta: number
|
|
132
132
|
/** 相对基线的成本变化(正=更贵) */
|
|
133
133
|
costDelta: number
|
|
134
|
+
/**
|
|
135
|
+
* 证据来源(Task 5/C1):只有宿主执行并留原始证据的评测(host)可作为 active 发布证据;
|
|
136
|
+
* 客户端自报台账(client/缺省)只读展示,不得支撑晋升。
|
|
137
|
+
*/
|
|
138
|
+
hostProvenance?: 'host' | 'client'
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
/**
|
|
@@ -153,15 +158,20 @@ export function evaluateProfileGate(
|
|
|
153
158
|
if (target === 'active') {
|
|
154
159
|
if (status !== 'shadow') return { allowed: false, reasons: [`仅 shadow 可晋级 active(当前 ${status})`] }
|
|
155
160
|
if (!bench) return { allowed: false, reasons: ['缺少配对评测结果(WP-B2),不得晋级'] }
|
|
161
|
+
if (bench.hostProvenance !== 'host') {
|
|
162
|
+
return { allowed: false, reasons: ['BENCH_NOT_HOST_PROVENANCED: 客户端自报评测只读展示,不得作为 active 晋级证据'] }
|
|
163
|
+
}
|
|
156
164
|
const pValue = bench.pValue
|
|
157
|
-
|
|
158
|
-
|
|
165
|
+
// 宿主来源运行未做显著性检验时 pValue=null:按预注册非劣界判定(不消费编造的显著性数字)
|
|
166
|
+
const hasSignificance = pValue !== null
|
|
167
|
+
if (hasSignificance && (typeof pValue !== 'number' || !Number.isFinite(pValue) || pValue < 0 || pValue > 1)) {
|
|
168
|
+
return { allowed: false, reasons: ['配对评测 pValue 无效:必须是有限且位于 [0,1] 的数值或 null'] }
|
|
159
169
|
}
|
|
160
|
-
const significant = pValue < PROFILE_GATE.significanceP && bench.primaryDelta > 0
|
|
170
|
+
const significant = hasSignificance && pValue! < PROFILE_GATE.significanceP && bench.primaryDelta > 0
|
|
161
171
|
const nonInferior = bench.primaryDelta >= 0 && bench.costDelta <= PROFILE_GATE.maxCostDelta
|
|
162
172
|
if (significant) return { allowed: true, next: 'active', reasons: [`配对显著改善 p=${pValue}`] }
|
|
163
173
|
if (nonInferior) return { allowed: true, next: 'active', reasons: ['无回归且成本非劣'] }
|
|
164
|
-
return { allowed: false, reasons: [`配对未通过:p=${pValue} Δ主终点=${bench.primaryDelta} Δ成本=${bench.costDelta}`] }
|
|
174
|
+
return { allowed: false, reasons: [`配对未通过:p=${pValue ?? 'null(未检验)'} Δ主终点=${bench.primaryDelta} Δ成本=${bench.costDelta}`] }
|
|
165
175
|
}
|
|
166
176
|
// superseded
|
|
167
177
|
if (status === 'superseded') return { allowed: false, reasons: ['已 superseded'] }
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 本体证据候选与 AML 工件分轨复用(Task 12)。
|
|
3
|
+
*
|
|
4
|
+
* 铁律:
|
|
5
|
+
* - 文档/交付/干预证据只能生成**带来源的候选**;发布仍走现有独立人工门;
|
|
6
|
+
* - 「没有声明边」= 未知,不是否证;显式否证必须有证据且带适用窗;
|
|
7
|
+
* - 工件可推演不等于可执行:缺关键约束可观测性 / 跨配方 / 缺 ensemble 成员 → 不可用。
|
|
8
|
+
*/
|
|
9
|
+
import { proposeClaimCluster } from './claim-cluster'
|
|
10
|
+
import type { EvidenceRef, TrustedLearningContext, ExperienceVersion } from './types'
|
|
11
|
+
|
|
12
|
+
export type ConstraintVerdict = 'verified' | 'violated' | 'unobservable' | 'unknown'
|
|
13
|
+
|
|
14
|
+
export interface OntologyDiffCandidate {
|
|
15
|
+
kind: 'entity' | 'relation' | 'unit'
|
|
16
|
+
key: string
|
|
17
|
+
value: string
|
|
18
|
+
sourceEvidenceIds: string[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface OntologyProposal {
|
|
22
|
+
baseVersion: number | null
|
|
23
|
+
diff: OntologyDiffCandidate[]
|
|
24
|
+
support: string[]
|
|
25
|
+
conflicts: string[]
|
|
26
|
+
blockedReasons: string[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const ENTITY_RE = /(?:设备|节点|工序|设备组)[「::]?\s*([\w\u4e00-\u9fa5-]{2,20})/g
|
|
30
|
+
|
|
31
|
+
/** 从证据文本提取实体候选;命名空间/量纲/绑定冲突由发布前人工门复核 */
|
|
32
|
+
export function proposeOntologyDiff(
|
|
33
|
+
context: TrustedLearningContext,
|
|
34
|
+
evidence: readonly EvidenceRef[],
|
|
35
|
+
opts: { baseVersion?: number | null, texts?: readonly string[] } = {},
|
|
36
|
+
): OntologyProposal {
|
|
37
|
+
const blockedReasons: string[] = []
|
|
38
|
+
const support: string[] = []
|
|
39
|
+
const conflicts: string[] = []
|
|
40
|
+
const diff: OntologyDiffCandidate[] = []
|
|
41
|
+
if (!context.actor) blockedReasons.push('TRUSTED_CONTEXT_UNAVAILABLE')
|
|
42
|
+
if (evidence.some(e => (e.betaAncestors ?? []).length > 0)) blockedReasons.push('BETA_ANCESTOR_PRESENT')
|
|
43
|
+
for (const ref of evidence) {
|
|
44
|
+
if (ref.polarity === 'support') support.push(ref.id)
|
|
45
|
+
else if (ref.polarity === 'refute') conflicts.push(ref.id)
|
|
46
|
+
}
|
|
47
|
+
if (conflicts.length > 0) blockedReasons.push('CONFLICTING_EVIDENCE_REQUIRES_REVIEW')
|
|
48
|
+
if (support.length === 0) blockedReasons.push('NO_SUPPORTING_EVIDENCE')
|
|
49
|
+
for (const text of opts.texts ?? []) {
|
|
50
|
+
for (const match of text.matchAll(ENTITY_RE)) {
|
|
51
|
+
const key = match[1]?.trim()
|
|
52
|
+
if (!key) continue
|
|
53
|
+
if (!diff.some(d => d.kind === 'entity' && d.key === key)) {
|
|
54
|
+
diff.push({ kind: 'entity', key, value: text.slice(0, 120), sourceEvidenceIds: support })
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return { baseVersion: opts.baseVersion ?? null, diff, support, conflicts, blockedReasons }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* 约束观测四态:未知/不可观测不得当通过,也不得当失败。
|
|
63
|
+
*/
|
|
64
|
+
export function evaluateConstraintVerdict(input: {
|
|
65
|
+
declaredEdge: boolean
|
|
66
|
+
refutedEdge: boolean
|
|
67
|
+
observedCoupled: boolean | null
|
|
68
|
+
observationWindowValid: boolean
|
|
69
|
+
}): ConstraintVerdict {
|
|
70
|
+
if (!input.observationWindowValid || input.observedCoupled === null) return 'unobservable'
|
|
71
|
+
if (!input.declaredEdge) {
|
|
72
|
+
if (input.refutedEdge) return 'violated'
|
|
73
|
+
return input.observedCoupled ? 'violated' : 'unknown'
|
|
74
|
+
}
|
|
75
|
+
return input.observedCoupled ? 'verified' : 'violated'
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ModelReuseInput {
|
|
79
|
+
modelLineage: { productId: string, recipeRevision: string, datasetHash: string, artifactHash: string }
|
|
80
|
+
targetLineage: { productId: string, recipeRevision: string }
|
|
81
|
+
io: { inputUnits: string[], outputUnits: string[], expectedInputUnits: string[], expectedOutputUnits: string[] }
|
|
82
|
+
calibration: 'present' | 'missing'
|
|
83
|
+
criticalGuards: { total: number, observables: number }
|
|
84
|
+
ensembleMembers: { required: number, present: number }
|
|
85
|
+
drift: 'within' | 'exceeded' | 'unknown'
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface ModelReuseDecision {
|
|
89
|
+
modelUsable: boolean
|
|
90
|
+
executable: boolean
|
|
91
|
+
reasons: string[]
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** 工件谱系复用:只判「能不能用」,不把推演当物理验证 */
|
|
95
|
+
export function assessModelReuse(input: ModelReuseInput): ModelReuseDecision {
|
|
96
|
+
const reasons: string[] = []
|
|
97
|
+
if (input.modelLineage.productId !== input.targetLineage.productId) reasons.push('PRODUCT_MISMATCH')
|
|
98
|
+
if (input.modelLineage.recipeRevision !== input.targetLineage.recipeRevision) reasons.push('RECIPE_MISMATCH')
|
|
99
|
+
if (!input.modelLineage.datasetHash || !input.modelLineage.artifactHash) reasons.push('LINEAGE_HASH_MISSING')
|
|
100
|
+
const sameInputs = input.io.inputUnits.join('|') === input.io.expectedInputUnits.join('|')
|
|
101
|
+
const sameOutputs = input.io.outputUnits.join('|') === input.io.expectedOutputUnits.join('|')
|
|
102
|
+
if (!sameInputs || !sameOutputs) reasons.push('IO_UNIT_MISMATCH')
|
|
103
|
+
if (input.calibration === 'missing') reasons.push('CALIBRATION_MISSING')
|
|
104
|
+
if (input.criticalGuards.observables < input.criticalGuards.total) reasons.push('CRITICAL_GUARD_UNOBSERVABLE')
|
|
105
|
+
if (input.ensembleMembers.present < input.ensembleMembers.required) reasons.push('ENSEMBLE_MEMBER_MISSING')
|
|
106
|
+
if (input.drift === 'exceeded') reasons.push('DRIFT_EXCEEDED')
|
|
107
|
+
if (input.drift === 'unknown') reasons.push('DRIFT_UNKNOWN')
|
|
108
|
+
const modelUsable = reasons.length === 0
|
|
109
|
+
return { modelUsable, executable: modelUsable, reasons }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** 主张簇兼容性(产品/变量/量纲/方向/Beta) */
|
|
113
|
+
export function clusterCompatible(versions: readonly ExperienceVersion[]): boolean {
|
|
114
|
+
return proposeClaimCluster(versions).compatible
|
|
115
|
+
}
|
|
@@ -15,6 +15,7 @@ import { createHarnessProfileRepo, renderHarnessOverlay } from './harness-profil
|
|
|
15
15
|
import { advisoryBlock } from './advisory'
|
|
16
16
|
import { unsegmentCJK } from '../runtime/memory/helpers'
|
|
17
17
|
import { channelModeForAgent, channelModeOf } from '../channel-mode'
|
|
18
|
+
import { readLearningAuthorizationEpoch } from './trusted-context'
|
|
18
19
|
|
|
19
20
|
/** 进程内缓存:同一频道 60s 内不重复查库(profile 变更最迟 1 分钟生效,可接受) */
|
|
20
21
|
const CACHE_TTL_MS = 60_000
|
|
@@ -38,7 +39,9 @@ export function channelOverlayText(channelId: string, agentId?: string): string
|
|
|
38
39
|
const session = agentId ? manager?.channelSessionScopeOfAgent?.(channelId, agentId) ?? null : null
|
|
39
40
|
// Never substitute mutable channel bindings for an agent's missing session snapshot.
|
|
40
41
|
const scope = agentId ? { lineId: session?.lineId ?? null, productId: session?.productId ?? null } : memRepo.channelScope(channelId)
|
|
41
|
-
|
|
42
|
+
// Task 4:授权版本进缓存键 —— 撤权/切产品/退休推进 epoch 时,旧缓存立即失效。
|
|
43
|
+
const epoch = readLearningAuthorizationEpoch(db)
|
|
44
|
+
const cacheKey = JSON.stringify([channelId, agentId ?? '', session?.sessionId ?? '', scope.lineId, scope.productId, epoch])
|
|
42
45
|
const hit = cache.get(cacheKey)
|
|
43
46
|
if (hit && Date.now() - hit.at < CACHE_TTL_MS) return hit.text
|
|
44
47
|
const profile = createHarnessProfileRepo(db).activeOf(channelId)
|
|
@@ -48,6 +51,9 @@ export function channelOverlayText(channelId: string, agentId?: string): string
|
|
|
48
51
|
.map(id => memRepo.getById(id))
|
|
49
52
|
.filter((r): r is NonNullable<typeof r> => {
|
|
50
53
|
if (!r || r.channelId !== channelId || r.kind !== 'experience' || r.status !== 'validated') return false
|
|
54
|
+
// 自动注入面:未部署(shadow/none/withdrawn)的经验不得进入 prompt
|
|
55
|
+
const deployment = memRepo.experienceDeployment(r.id)
|
|
56
|
+
if (deployment !== 'active' && deployment !== 'canary') return false
|
|
51
57
|
if (r.expiresAt !== null && r.expiresAt !== undefined) {
|
|
52
58
|
const expiresAt = Date.parse(r.expiresAt)
|
|
53
59
|
if (!Number.isFinite(expiresAt) || expiresAt <= Date.now()) return false
|