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,285 +1,285 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 自适应验收门 —— 全站 × 视口矩阵 × 明暗双主题的**可判定**检查。
|
|
3
|
-
*
|
|
4
|
-
* 和 audit-layout.mjs 的区别:audit 是"体检报告"(尽量多报,供人工判断),
|
|
5
|
-
* verify 是"门禁"(只报确定是缺陷的,并给出通过/失败)。
|
|
6
|
-
* 判定阈值都在下面 THRESHOLDS 里,改阈值必须写理由 —— 这是全站验收的唯一口径。
|
|
7
|
-
*
|
|
8
|
-
* 用法: node scripts/ui/verify-responsive.mjs [--routes all] [--theme both] [--json out.json]
|
|
9
|
-
*/
|
|
10
|
-
import fs from 'node:fs'
|
|
11
|
-
import path from 'node:path'
|
|
12
|
-
import { ensureVisualUser, launch, openPage, gotoReady, ROUTES, VIEWPORTS } from './lib.mjs'
|
|
13
|
-
|
|
14
|
-
const argv = process.argv.slice(2)
|
|
15
|
-
const arg = (k, d) => {
|
|
16
|
-
const i = argv.indexOf(`--${k}`)
|
|
17
|
-
return i >= 0 ? argv[i + 1] : d
|
|
18
|
-
}
|
|
19
|
-
const ROUTE_ARG = arg('routes', 'all')
|
|
20
|
-
const THEME = arg('theme', 'both')
|
|
21
|
-
const VP_ARG = arg('vp', '')
|
|
22
|
-
const WAIT = Number(arg('wait', 3500))
|
|
23
|
-
const JSON_OUT = arg('json', '.e2e-shots/verify/verify.json')
|
|
24
|
-
const routes = ROUTE_ARG === 'all' ? ROUTES : ROUTES.filter(r => ROUTE_ARG.split(',').includes(r.name))
|
|
25
|
-
const themes = THEME === 'both' ? [true, false] : [THEME === 'dark']
|
|
26
|
-
// --vp 收窄视口矩阵(联调期用;终验不带该参数,跑全矩阵)
|
|
27
|
-
const viewports = VP_ARG
|
|
28
|
-
? VP_ARG.split(',').map((s) => {
|
|
29
|
-
const [w, h] = s.split('x').map(Number)
|
|
30
|
-
return VIEWPORTS.find(v => v.width === w && v.height === h) ?? { name: `${w}x${h}`, width: w, height: h, label: `${w}×${h}` }
|
|
31
|
-
})
|
|
32
|
-
: VIEWPORTS
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 验收阈值(唯一口径)。
|
|
36
|
-
* - minFontPhone 11:窄屏(≤640)手持视距下,10px mono 标签只剩 6px 有效字号,读不了。
|
|
37
|
-
* - minFontDesktop 9.5:桌面保留"仪器铭牌"的 10px mono 微字是刻意的设计语言,
|
|
38
|
-
* 但低于 9.5px 连铭牌都算不上,一律判失败。
|
|
39
|
-
* - contrast AA:WCAG 2.1 正文 4.5:1。小字号的 mono 标签没有"large text"豁免。
|
|
40
|
-
*/
|
|
41
|
-
const THRESHOLDS = {
|
|
42
|
-
minFontPhone: 11,
|
|
43
|
-
minFontDesktop: 9.5,
|
|
44
|
-
minTouch: 30,
|
|
45
|
-
minContrast: 4.5,
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const AUDIT = function (th) {
|
|
49
|
-
const VW = window.innerWidth
|
|
50
|
-
const issues = []
|
|
51
|
-
const isSvg = el => el.namespaceURI === 'http://www.w3.org/2000/svg'
|
|
52
|
-
const describe = (el) => {
|
|
53
|
-
const cls = (typeof el.className === 'string' && el.className)
|
|
54
|
-
? '.' + el.className.trim().split(/\s+/).slice(0, 2).join('.')
|
|
55
|
-
: ''
|
|
56
|
-
return `${el.tagName.toLowerCase()}${el.id ? '#' + el.id : ''}${cls}`
|
|
57
|
-
}
|
|
58
|
-
const txt = el => (el.innerText || el.textContent || '').trim().replace(/\s+/g, ' ').slice(0, 50)
|
|
59
|
-
const rect = el => el.getBoundingClientRect()
|
|
60
|
-
const visible = (el) => {
|
|
61
|
-
const r = rect(el)
|
|
62
|
-
if (r.width < 1 || r.height < 1) return false
|
|
63
|
-
const cs = getComputedStyle(el)
|
|
64
|
-
if (cs.visibility === 'hidden' || cs.display === 'none' || Number(cs.opacity) < 0.05) return false
|
|
65
|
-
if (el.closest('[aria-hidden="true"]')) return false
|
|
66
|
-
// 被祖先的 overflow:hidden 整体推出可视区 = 看不见。
|
|
67
|
-
// 缺这一条会把 antd Switch 的"另一态文案"也算成可见文本(它在轨道外,被裁掉),
|
|
68
|
-
// 于是稳定报出 1.83:1 的假阳性(实测)。
|
|
69
|
-
for (let p = el.parentElement; p && p !== document.body; p = p.parentElement) {
|
|
70
|
-
const pcs = getComputedStyle(p)
|
|
71
|
-
if (pcs.overflow === 'visible' && pcs.overflowX === 'visible' && pcs.overflowY === 'visible') continue
|
|
72
|
-
const pr = p.getBoundingClientRect()
|
|
73
|
-
if (
|
|
74
|
-
r.right <= pr.left + 0.5 || r.left >= pr.right - 0.5
|
|
75
|
-
|| r.bottom <= pr.top + 0.5 || r.top >= pr.bottom - 0.5
|
|
76
|
-
) return false
|
|
77
|
-
}
|
|
78
|
-
return true
|
|
79
|
-
}
|
|
80
|
-
const inScroller = (el) => {
|
|
81
|
-
let p = el.parentElement
|
|
82
|
-
while (p && p !== document.body) {
|
|
83
|
-
const cs = getComputedStyle(p)
|
|
84
|
-
if (['auto', 'scroll', 'hidden'].includes(cs.overflowX)) return p
|
|
85
|
-
p = p.parentElement
|
|
86
|
-
}
|
|
87
|
-
return null
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const de = document.documentElement
|
|
91
|
-
if (de.scrollWidth - de.clientWidth > 1) issues.push({ kind: 'doc-overflow-x', px: de.scrollWidth - de.clientWidth })
|
|
92
|
-
|
|
93
|
-
const all = Array.from(document.querySelectorAll('body *'))
|
|
94
|
-
|
|
95
|
-
// 侧栏形态(结构性断言:窄屏必须在文档流外)
|
|
96
|
-
const sider = document.querySelector('.app-sider')
|
|
97
|
-
const siderCs = sider ? getComputedStyle(sider) : null
|
|
98
|
-
const expectDrawer = VW < 900
|
|
99
|
-
if (sider && siderCs) {
|
|
100
|
-
const isFixed = siderCs.position === 'fixed'
|
|
101
|
-
if (expectDrawer && !isFixed) issues.push({ kind: 'nav-should-be-drawer', actual: siderCs.position, vw: VW })
|
|
102
|
-
if (!expectDrawer && isFixed) issues.push({ kind: 'nav-should-be-inline', actual: siderCs.position, vw: VW })
|
|
103
|
-
if (expectDrawer) {
|
|
104
|
-
const r = rect(sider)
|
|
105
|
-
if (r.right > 1) issues.push({ kind: 'drawer-not-offcanvas', right: Math.round(r.right) })
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
for (const el of all) {
|
|
110
|
-
if (isSvg(el)) continue // SVG 内部(ECharts 轴标签等)不是布局缺陷来源
|
|
111
|
-
if (!visible(el)) continue
|
|
112
|
-
const cs = getComputedStyle(el)
|
|
113
|
-
const r = rect(el)
|
|
114
|
-
const scroller = inScroller(el)
|
|
115
|
-
|
|
116
|
-
if (!scroller && cs.position !== 'fixed' && r.right > VW + 2) {
|
|
117
|
-
issues.push({ kind: 'el-overflow-right', el: describe(el), text: txt(el), over: Math.round(r.right - VW) })
|
|
118
|
-
}
|
|
119
|
-
if (el.children.length === 0) {
|
|
120
|
-
const t = (el.textContent || '').trim()
|
|
121
|
-
if (t.length > 1) {
|
|
122
|
-
const fs = parseFloat(cs.fontSize)
|
|
123
|
-
const floor = VW <= 640 ? th.minFontPhone : th.minFontDesktop
|
|
124
|
-
if (fs && fs < floor) issues.push({ kind: 'font-too-small', el: describe(el), text: t.slice(0, 30), px: fs, floor })
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (VW <= 900) {
|
|
128
|
-
const clickable = el.matches('button, a[href], [role="button"], .ant-switch, .ant-segmented-item, .ant-checkbox-wrapper')
|
|
129
|
-
// 命中区可以被伪元素外扩(把 16×16 的图标变成 40px 可点目标 —— 这是正当做法,
|
|
130
|
-
// 而且比"把图标本身画大"更尊重既有密度)。只看 rect 会把"做得对"判成"做得错",
|
|
131
|
-
// 所以要连伪元素一起量:要么它有实际的宽高,要么它用负 inset 撑开四边。
|
|
132
|
-
const hit = (pseudo) => {
|
|
133
|
-
const cs2 = getComputedStyle(el, pseudo)
|
|
134
|
-
if (!cs2 || cs2.content === 'none' || cs2.position !== 'absolute') return false
|
|
135
|
-
const w = Number.parseFloat(cs2.width)
|
|
136
|
-
const h = Number.parseFloat(cs2.height)
|
|
137
|
-
if (Number.isFinite(w) && Number.isFinite(h) && w >= th.minTouch && h >= th.minTouch) return true
|
|
138
|
-
const inset = ['top', 'left', 'right', 'bottom'].map(s => Number.parseFloat(cs2[s]))
|
|
139
|
-
return inset.every(v => Number.isFinite(v) && v <= -8)
|
|
140
|
-
}
|
|
141
|
-
const expanded = hit('::after') || hit('::before')
|
|
142
|
-
// 带文字的按钮/链接:宽度由文案决定,不该按 40px 判死;真正的要求是**高度**够。
|
|
143
|
-
// 纯图标控件(无文字)才要求两个方向都够,或已被伪元素外扩。
|
|
144
|
-
const hasText = txt(el).length > 0
|
|
145
|
-
const tooSmall = hasText
|
|
146
|
-
? r.height < th.minTouch
|
|
147
|
-
: (r.width < th.minTouch || r.height < th.minTouch)
|
|
148
|
-
if (clickable && el.children.length === 0 && !expanded && tooSmall) {
|
|
149
|
-
issues.push({ kind: 'touch-target-small', el: describe(el), text: txt(el), w: Math.round(r.width), h: Math.round(r.height) })
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
if (cs.position === 'fixed' && (r.right > VW + 2 || r.left < -2) && el !== sider && !el.closest('.app-sider')) {
|
|
153
|
-
issues.push({ kind: 'fixed-out-of-view', el: describe(el), text: txt(el), left: Math.round(r.left), right: Math.round(r.right) })
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// 对比度
|
|
158
|
-
const parseColor = (s) => {
|
|
159
|
-
const m = s.match(/rgba?\(([^)]+)\)/)
|
|
160
|
-
if (!m) return null
|
|
161
|
-
const p = m[1].split(',').map(Number)
|
|
162
|
-
return { r: p[0], g: p[1], b: p[2], a: p[3] === undefined ? 1 : p[3] }
|
|
163
|
-
}
|
|
164
|
-
const over = (fg, bg) => ({
|
|
165
|
-
r: fg.r * fg.a + bg.r * (1 - fg.a), g: fg.g * fg.a + bg.g * (1 - fg.a), b: fg.b * fg.a + bg.b * (1 - fg.a), a: 1,
|
|
166
|
-
})
|
|
167
|
-
const effBg = (el) => {
|
|
168
|
-
let p = el, acc = null
|
|
169
|
-
while (p && p !== document.documentElement.parentElement) {
|
|
170
|
-
const c = parseColor(getComputedStyle(p).backgroundColor)
|
|
171
|
-
if (c && c.a > 0.01) acc = acc ? over(acc, c) : c
|
|
172
|
-
if (acc && acc.a >= 0.999) break
|
|
173
|
-
if (c && c.a >= 0.999) break
|
|
174
|
-
p = p.parentElement
|
|
175
|
-
}
|
|
176
|
-
return acc ?? { r: 255, g: 255, b: 255, a: 1 }
|
|
177
|
-
}
|
|
178
|
-
const lum = (c) => {
|
|
179
|
-
const f = (v) => {
|
|
180
|
-
const x = v / 255
|
|
181
|
-
return x <= 0.03928 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4
|
|
182
|
-
}
|
|
183
|
-
return 0.2126 * f(c.r) + 0.7152 * f(c.g) + 0.0722 * f(c.b)
|
|
184
|
-
}
|
|
185
|
-
const ratio = (a, b) => {
|
|
186
|
-
const l1 = lum(a)
|
|
187
|
-
const l2 = lum(b)
|
|
188
|
-
return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05)
|
|
189
|
-
}
|
|
190
|
-
const seen = new Set()
|
|
191
|
-
let worst = { ratio: 99, el: '', text: '' }
|
|
192
|
-
for (const el of all) {
|
|
193
|
-
if (isSvg(el) || el.children.length > 0) continue
|
|
194
|
-
const t = (el.textContent || '').trim()
|
|
195
|
-
if (t.length < 2 || !visible(el)) continue
|
|
196
|
-
// 非活动控件豁免:WCAG 1.4.3 明确把"未激活的界面组件"排除在对比度要求之外,
|
|
197
|
-
// 而 antd 的 disabled 文本用的是 ~25% 不透明度(实测 2.2:1 是**设计如此**)。
|
|
198
|
-
// 把它们算作失败,等于要求一个不存在的标准。
|
|
199
|
-
if (el.closest('[disabled], .ant-btn-disabled, [aria-disabled="true"], .ant-select-disabled')) continue
|
|
200
|
-
const cs = getComputedStyle(el)
|
|
201
|
-
const fg = parseColor(cs.color)
|
|
202
|
-
if (!fg) continue
|
|
203
|
-
// 背景是渐变/图片时对比度**无法**从计算样式推导(背景色只是垫底那一层)。
|
|
204
|
-
// 把这种元素报成"不达标"是假阳性 —— 实测 .avatar-fallback(绿青渐变 + 墨字)
|
|
205
|
-
// 被算成 1.06:1,而真实观感远高于 AA。宁可漏报,不要制造噪音。
|
|
206
|
-
let onImage = false
|
|
207
|
-
for (let p = el; p && p !== document.documentElement; p = p.parentElement) {
|
|
208
|
-
if (getComputedStyle(p).backgroundImage !== 'none') {
|
|
209
|
-
onImage = true
|
|
210
|
-
break
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
if (onImage) continue
|
|
214
|
-
const bg = effBg(el)
|
|
215
|
-
const cr = ratio(over(fg, bg), bg)
|
|
216
|
-
const fs = parseFloat(cs.fontSize) || 14
|
|
217
|
-
const bold = Number(cs.fontWeight) >= 700
|
|
218
|
-
const large = fs >= 24 || (fs >= 18.66 && bold)
|
|
219
|
-
const need = large ? 3 : th.minContrast
|
|
220
|
-
if (cr < worst.ratio) worst = { ratio: +cr.toFixed(2), el: describe(el), text: t.slice(0, 30) }
|
|
221
|
-
if (cr < need) {
|
|
222
|
-
const key = describe(el) + t.slice(0, 10)
|
|
223
|
-
if (seen.has(key)) continue
|
|
224
|
-
seen.add(key)
|
|
225
|
-
const hex = (c) => {
|
|
226
|
-
const h = v => Math.round(Math.max(0, Math.min(255, v))).toString(16).padStart(2, '0')
|
|
227
|
-
return '#' + h(c.r) + h(c.g) + h(c.b)
|
|
228
|
-
}
|
|
229
|
-
issues.push({
|
|
230
|
-
kind: 'contrast', el: describe(el), text: t.slice(0, 30),
|
|
231
|
-
ratio: +cr.toFixed(2), need, px: fs, fg: hex(over(fg, bg)), bg: hex(bg),
|
|
232
|
-
})
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
const counts = {}
|
|
237
|
-
for (const i of issues) counts[i.kind] = (counts[i.kind] || 0) + 1
|
|
238
|
-
return {
|
|
239
|
-
vw: VW, counts, total: issues.length, worstContrast: worst,
|
|
240
|
-
issues: issues.slice(0, 60),
|
|
241
|
-
nav: siderCs ? { pos: siderCs.position, w: Math.round(rect(sider).width) } : null,
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
fs.mkdirSync(path.dirname(JSON_OUT), { recursive: true })
|
|
246
|
-
const token = await ensureVisualUser()
|
|
247
|
-
const browser = await launch()
|
|
248
|
-
const rows = []
|
|
249
|
-
let failures = 0
|
|
250
|
-
|
|
251
|
-
for (const vp of viewports) {
|
|
252
|
-
for (const dark of themes) {
|
|
253
|
-
for (const r of routes) {
|
|
254
|
-
const page = await openPage(browser, { token, dark, width: vp.width, height: vp.height, deviceScaleFactor: 1 })
|
|
255
|
-
const errs = []
|
|
256
|
-
page.on('pageerror', e => errs.push(String(e.message).slice(0, 160)))
|
|
257
|
-
try {
|
|
258
|
-
await gotoReady(page, r.path, { wait: WAIT })
|
|
259
|
-
const res = await page.evaluate(AUDIT, THRESHOLDS)
|
|
260
|
-
res.route = r.name
|
|
261
|
-
res.path = r.path
|
|
262
|
-
res.vp = vp.name
|
|
263
|
-
res.theme = dark ? 'dark' : 'light'
|
|
264
|
-
res.pageErrors = errs
|
|
265
|
-
const bad = res.total + errs.length
|
|
266
|
-
if (bad) failures++
|
|
267
|
-
rows.push(res)
|
|
268
|
-
console.log(`${bad ? 'FAIL' : ' ok '} ${vp.name.padEnd(16)} ${(dark ? 'dark' : 'light').padEnd(5)} ${r.name.padEnd(12)} ${JSON.stringify(res.counts)}${errs.length ? ' errs=' + errs.length : ''}`)
|
|
269
|
-
}
|
|
270
|
-
catch (e) {
|
|
271
|
-
failures++
|
|
272
|
-
rows.push({ route: r.name, vp: vp.name, theme: dark ? 'dark' : 'light', error: String(e.message).slice(0, 200) })
|
|
273
|
-
console.log(`FAIL ${vp.name} ${r.name} — ${String(e.message).slice(0, 90)}`)
|
|
274
|
-
}
|
|
275
|
-
await page.close()
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
await browser.close()
|
|
281
|
-
fs.writeFileSync(JSON_OUT, JSON.stringify({ thresholds: THRESHOLDS, failures, rows }, null, 2))
|
|
282
|
-
const total = rows.length
|
|
283
|
-
console.log(`\n=== ${total} 个组合:${total - failures} 通过 / ${failures} 失败 ===`)
|
|
284
|
-
console.log('报告 →', JSON_OUT)
|
|
285
|
-
process.exit(failures ? 1 : 0)
|
|
1
|
+
/**
|
|
2
|
+
* 自适应验收门 —— 全站 × 视口矩阵 × 明暗双主题的**可判定**检查。
|
|
3
|
+
*
|
|
4
|
+
* 和 audit-layout.mjs 的区别:audit 是"体检报告"(尽量多报,供人工判断),
|
|
5
|
+
* verify 是"门禁"(只报确定是缺陷的,并给出通过/失败)。
|
|
6
|
+
* 判定阈值都在下面 THRESHOLDS 里,改阈值必须写理由 —— 这是全站验收的唯一口径。
|
|
7
|
+
*
|
|
8
|
+
* 用法: node scripts/ui/verify-responsive.mjs [--routes all] [--theme both] [--json out.json]
|
|
9
|
+
*/
|
|
10
|
+
import fs from 'node:fs'
|
|
11
|
+
import path from 'node:path'
|
|
12
|
+
import { ensureVisualUser, launch, openPage, gotoReady, ROUTES, VIEWPORTS } from './lib.mjs'
|
|
13
|
+
|
|
14
|
+
const argv = process.argv.slice(2)
|
|
15
|
+
const arg = (k, d) => {
|
|
16
|
+
const i = argv.indexOf(`--${k}`)
|
|
17
|
+
return i >= 0 ? argv[i + 1] : d
|
|
18
|
+
}
|
|
19
|
+
const ROUTE_ARG = arg('routes', 'all')
|
|
20
|
+
const THEME = arg('theme', 'both')
|
|
21
|
+
const VP_ARG = arg('vp', '')
|
|
22
|
+
const WAIT = Number(arg('wait', 3500))
|
|
23
|
+
const JSON_OUT = arg('json', '.e2e-shots/verify/verify.json')
|
|
24
|
+
const routes = ROUTE_ARG === 'all' ? ROUTES : ROUTES.filter(r => ROUTE_ARG.split(',').includes(r.name))
|
|
25
|
+
const themes = THEME === 'both' ? [true, false] : [THEME === 'dark']
|
|
26
|
+
// --vp 收窄视口矩阵(联调期用;终验不带该参数,跑全矩阵)
|
|
27
|
+
const viewports = VP_ARG
|
|
28
|
+
? VP_ARG.split(',').map((s) => {
|
|
29
|
+
const [w, h] = s.split('x').map(Number)
|
|
30
|
+
return VIEWPORTS.find(v => v.width === w && v.height === h) ?? { name: `${w}x${h}`, width: w, height: h, label: `${w}×${h}` }
|
|
31
|
+
})
|
|
32
|
+
: VIEWPORTS
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 验收阈值(唯一口径)。
|
|
36
|
+
* - minFontPhone 11:窄屏(≤640)手持视距下,10px mono 标签只剩 6px 有效字号,读不了。
|
|
37
|
+
* - minFontDesktop 9.5:桌面保留"仪器铭牌"的 10px mono 微字是刻意的设计语言,
|
|
38
|
+
* 但低于 9.5px 连铭牌都算不上,一律判失败。
|
|
39
|
+
* - contrast AA:WCAG 2.1 正文 4.5:1。小字号的 mono 标签没有"large text"豁免。
|
|
40
|
+
*/
|
|
41
|
+
const THRESHOLDS = {
|
|
42
|
+
minFontPhone: 11,
|
|
43
|
+
minFontDesktop: 9.5,
|
|
44
|
+
minTouch: 30,
|
|
45
|
+
minContrast: 4.5,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const AUDIT = function (th) {
|
|
49
|
+
const VW = window.innerWidth
|
|
50
|
+
const issues = []
|
|
51
|
+
const isSvg = el => el.namespaceURI === 'http://www.w3.org/2000/svg'
|
|
52
|
+
const describe = (el) => {
|
|
53
|
+
const cls = (typeof el.className === 'string' && el.className)
|
|
54
|
+
? '.' + el.className.trim().split(/\s+/).slice(0, 2).join('.')
|
|
55
|
+
: ''
|
|
56
|
+
return `${el.tagName.toLowerCase()}${el.id ? '#' + el.id : ''}${cls}`
|
|
57
|
+
}
|
|
58
|
+
const txt = el => (el.innerText || el.textContent || '').trim().replace(/\s+/g, ' ').slice(0, 50)
|
|
59
|
+
const rect = el => el.getBoundingClientRect()
|
|
60
|
+
const visible = (el) => {
|
|
61
|
+
const r = rect(el)
|
|
62
|
+
if (r.width < 1 || r.height < 1) return false
|
|
63
|
+
const cs = getComputedStyle(el)
|
|
64
|
+
if (cs.visibility === 'hidden' || cs.display === 'none' || Number(cs.opacity) < 0.05) return false
|
|
65
|
+
if (el.closest('[aria-hidden="true"]')) return false
|
|
66
|
+
// 被祖先的 overflow:hidden 整体推出可视区 = 看不见。
|
|
67
|
+
// 缺这一条会把 antd Switch 的"另一态文案"也算成可见文本(它在轨道外,被裁掉),
|
|
68
|
+
// 于是稳定报出 1.83:1 的假阳性(实测)。
|
|
69
|
+
for (let p = el.parentElement; p && p !== document.body; p = p.parentElement) {
|
|
70
|
+
const pcs = getComputedStyle(p)
|
|
71
|
+
if (pcs.overflow === 'visible' && pcs.overflowX === 'visible' && pcs.overflowY === 'visible') continue
|
|
72
|
+
const pr = p.getBoundingClientRect()
|
|
73
|
+
if (
|
|
74
|
+
r.right <= pr.left + 0.5 || r.left >= pr.right - 0.5
|
|
75
|
+
|| r.bottom <= pr.top + 0.5 || r.top >= pr.bottom - 0.5
|
|
76
|
+
) return false
|
|
77
|
+
}
|
|
78
|
+
return true
|
|
79
|
+
}
|
|
80
|
+
const inScroller = (el) => {
|
|
81
|
+
let p = el.parentElement
|
|
82
|
+
while (p && p !== document.body) {
|
|
83
|
+
const cs = getComputedStyle(p)
|
|
84
|
+
if (['auto', 'scroll', 'hidden'].includes(cs.overflowX)) return p
|
|
85
|
+
p = p.parentElement
|
|
86
|
+
}
|
|
87
|
+
return null
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const de = document.documentElement
|
|
91
|
+
if (de.scrollWidth - de.clientWidth > 1) issues.push({ kind: 'doc-overflow-x', px: de.scrollWidth - de.clientWidth })
|
|
92
|
+
|
|
93
|
+
const all = Array.from(document.querySelectorAll('body *'))
|
|
94
|
+
|
|
95
|
+
// 侧栏形态(结构性断言:窄屏必须在文档流外)
|
|
96
|
+
const sider = document.querySelector('.app-sider')
|
|
97
|
+
const siderCs = sider ? getComputedStyle(sider) : null
|
|
98
|
+
const expectDrawer = VW < 900
|
|
99
|
+
if (sider && siderCs) {
|
|
100
|
+
const isFixed = siderCs.position === 'fixed'
|
|
101
|
+
if (expectDrawer && !isFixed) issues.push({ kind: 'nav-should-be-drawer', actual: siderCs.position, vw: VW })
|
|
102
|
+
if (!expectDrawer && isFixed) issues.push({ kind: 'nav-should-be-inline', actual: siderCs.position, vw: VW })
|
|
103
|
+
if (expectDrawer) {
|
|
104
|
+
const r = rect(sider)
|
|
105
|
+
if (r.right > 1) issues.push({ kind: 'drawer-not-offcanvas', right: Math.round(r.right) })
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
for (const el of all) {
|
|
110
|
+
if (isSvg(el)) continue // SVG 内部(ECharts 轴标签等)不是布局缺陷来源
|
|
111
|
+
if (!visible(el)) continue
|
|
112
|
+
const cs = getComputedStyle(el)
|
|
113
|
+
const r = rect(el)
|
|
114
|
+
const scroller = inScroller(el)
|
|
115
|
+
|
|
116
|
+
if (!scroller && cs.position !== 'fixed' && r.right > VW + 2) {
|
|
117
|
+
issues.push({ kind: 'el-overflow-right', el: describe(el), text: txt(el), over: Math.round(r.right - VW) })
|
|
118
|
+
}
|
|
119
|
+
if (el.children.length === 0) {
|
|
120
|
+
const t = (el.textContent || '').trim()
|
|
121
|
+
if (t.length > 1) {
|
|
122
|
+
const fs = parseFloat(cs.fontSize)
|
|
123
|
+
const floor = VW <= 640 ? th.minFontPhone : th.minFontDesktop
|
|
124
|
+
if (fs && fs < floor) issues.push({ kind: 'font-too-small', el: describe(el), text: t.slice(0, 30), px: fs, floor })
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (VW <= 900) {
|
|
128
|
+
const clickable = el.matches('button, a[href], [role="button"], .ant-switch, .ant-segmented-item, .ant-checkbox-wrapper')
|
|
129
|
+
// 命中区可以被伪元素外扩(把 16×16 的图标变成 40px 可点目标 —— 这是正当做法,
|
|
130
|
+
// 而且比"把图标本身画大"更尊重既有密度)。只看 rect 会把"做得对"判成"做得错",
|
|
131
|
+
// 所以要连伪元素一起量:要么它有实际的宽高,要么它用负 inset 撑开四边。
|
|
132
|
+
const hit = (pseudo) => {
|
|
133
|
+
const cs2 = getComputedStyle(el, pseudo)
|
|
134
|
+
if (!cs2 || cs2.content === 'none' || cs2.position !== 'absolute') return false
|
|
135
|
+
const w = Number.parseFloat(cs2.width)
|
|
136
|
+
const h = Number.parseFloat(cs2.height)
|
|
137
|
+
if (Number.isFinite(w) && Number.isFinite(h) && w >= th.minTouch && h >= th.minTouch) return true
|
|
138
|
+
const inset = ['top', 'left', 'right', 'bottom'].map(s => Number.parseFloat(cs2[s]))
|
|
139
|
+
return inset.every(v => Number.isFinite(v) && v <= -8)
|
|
140
|
+
}
|
|
141
|
+
const expanded = hit('::after') || hit('::before')
|
|
142
|
+
// 带文字的按钮/链接:宽度由文案决定,不该按 40px 判死;真正的要求是**高度**够。
|
|
143
|
+
// 纯图标控件(无文字)才要求两个方向都够,或已被伪元素外扩。
|
|
144
|
+
const hasText = txt(el).length > 0
|
|
145
|
+
const tooSmall = hasText
|
|
146
|
+
? r.height < th.minTouch
|
|
147
|
+
: (r.width < th.minTouch || r.height < th.minTouch)
|
|
148
|
+
if (clickable && el.children.length === 0 && !expanded && tooSmall) {
|
|
149
|
+
issues.push({ kind: 'touch-target-small', el: describe(el), text: txt(el), w: Math.round(r.width), h: Math.round(r.height) })
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (cs.position === 'fixed' && (r.right > VW + 2 || r.left < -2) && el !== sider && !el.closest('.app-sider')) {
|
|
153
|
+
issues.push({ kind: 'fixed-out-of-view', el: describe(el), text: txt(el), left: Math.round(r.left), right: Math.round(r.right) })
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// 对比度
|
|
158
|
+
const parseColor = (s) => {
|
|
159
|
+
const m = s.match(/rgba?\(([^)]+)\)/)
|
|
160
|
+
if (!m) return null
|
|
161
|
+
const p = m[1].split(',').map(Number)
|
|
162
|
+
return { r: p[0], g: p[1], b: p[2], a: p[3] === undefined ? 1 : p[3] }
|
|
163
|
+
}
|
|
164
|
+
const over = (fg, bg) => ({
|
|
165
|
+
r: fg.r * fg.a + bg.r * (1 - fg.a), g: fg.g * fg.a + bg.g * (1 - fg.a), b: fg.b * fg.a + bg.b * (1 - fg.a), a: 1,
|
|
166
|
+
})
|
|
167
|
+
const effBg = (el) => {
|
|
168
|
+
let p = el, acc = null
|
|
169
|
+
while (p && p !== document.documentElement.parentElement) {
|
|
170
|
+
const c = parseColor(getComputedStyle(p).backgroundColor)
|
|
171
|
+
if (c && c.a > 0.01) acc = acc ? over(acc, c) : c
|
|
172
|
+
if (acc && acc.a >= 0.999) break
|
|
173
|
+
if (c && c.a >= 0.999) break
|
|
174
|
+
p = p.parentElement
|
|
175
|
+
}
|
|
176
|
+
return acc ?? { r: 255, g: 255, b: 255, a: 1 }
|
|
177
|
+
}
|
|
178
|
+
const lum = (c) => {
|
|
179
|
+
const f = (v) => {
|
|
180
|
+
const x = v / 255
|
|
181
|
+
return x <= 0.03928 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4
|
|
182
|
+
}
|
|
183
|
+
return 0.2126 * f(c.r) + 0.7152 * f(c.g) + 0.0722 * f(c.b)
|
|
184
|
+
}
|
|
185
|
+
const ratio = (a, b) => {
|
|
186
|
+
const l1 = lum(a)
|
|
187
|
+
const l2 = lum(b)
|
|
188
|
+
return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05)
|
|
189
|
+
}
|
|
190
|
+
const seen = new Set()
|
|
191
|
+
let worst = { ratio: 99, el: '', text: '' }
|
|
192
|
+
for (const el of all) {
|
|
193
|
+
if (isSvg(el) || el.children.length > 0) continue
|
|
194
|
+
const t = (el.textContent || '').trim()
|
|
195
|
+
if (t.length < 2 || !visible(el)) continue
|
|
196
|
+
// 非活动控件豁免:WCAG 1.4.3 明确把"未激活的界面组件"排除在对比度要求之外,
|
|
197
|
+
// 而 antd 的 disabled 文本用的是 ~25% 不透明度(实测 2.2:1 是**设计如此**)。
|
|
198
|
+
// 把它们算作失败,等于要求一个不存在的标准。
|
|
199
|
+
if (el.closest('[disabled], .ant-btn-disabled, [aria-disabled="true"], .ant-select-disabled')) continue
|
|
200
|
+
const cs = getComputedStyle(el)
|
|
201
|
+
const fg = parseColor(cs.color)
|
|
202
|
+
if (!fg) continue
|
|
203
|
+
// 背景是渐变/图片时对比度**无法**从计算样式推导(背景色只是垫底那一层)。
|
|
204
|
+
// 把这种元素报成"不达标"是假阳性 —— 实测 .avatar-fallback(绿青渐变 + 墨字)
|
|
205
|
+
// 被算成 1.06:1,而真实观感远高于 AA。宁可漏报,不要制造噪音。
|
|
206
|
+
let onImage = false
|
|
207
|
+
for (let p = el; p && p !== document.documentElement; p = p.parentElement) {
|
|
208
|
+
if (getComputedStyle(p).backgroundImage !== 'none') {
|
|
209
|
+
onImage = true
|
|
210
|
+
break
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (onImage) continue
|
|
214
|
+
const bg = effBg(el)
|
|
215
|
+
const cr = ratio(over(fg, bg), bg)
|
|
216
|
+
const fs = parseFloat(cs.fontSize) || 14
|
|
217
|
+
const bold = Number(cs.fontWeight) >= 700
|
|
218
|
+
const large = fs >= 24 || (fs >= 18.66 && bold)
|
|
219
|
+
const need = large ? 3 : th.minContrast
|
|
220
|
+
if (cr < worst.ratio) worst = { ratio: +cr.toFixed(2), el: describe(el), text: t.slice(0, 30) }
|
|
221
|
+
if (cr < need) {
|
|
222
|
+
const key = describe(el) + t.slice(0, 10)
|
|
223
|
+
if (seen.has(key)) continue
|
|
224
|
+
seen.add(key)
|
|
225
|
+
const hex = (c) => {
|
|
226
|
+
const h = v => Math.round(Math.max(0, Math.min(255, v))).toString(16).padStart(2, '0')
|
|
227
|
+
return '#' + h(c.r) + h(c.g) + h(c.b)
|
|
228
|
+
}
|
|
229
|
+
issues.push({
|
|
230
|
+
kind: 'contrast', el: describe(el), text: t.slice(0, 30),
|
|
231
|
+
ratio: +cr.toFixed(2), need, px: fs, fg: hex(over(fg, bg)), bg: hex(bg),
|
|
232
|
+
})
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const counts = {}
|
|
237
|
+
for (const i of issues) counts[i.kind] = (counts[i.kind] || 0) + 1
|
|
238
|
+
return {
|
|
239
|
+
vw: VW, counts, total: issues.length, worstContrast: worst,
|
|
240
|
+
issues: issues.slice(0, 60),
|
|
241
|
+
nav: siderCs ? { pos: siderCs.position, w: Math.round(rect(sider).width) } : null,
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
fs.mkdirSync(path.dirname(JSON_OUT), { recursive: true })
|
|
246
|
+
const token = await ensureVisualUser()
|
|
247
|
+
const browser = await launch()
|
|
248
|
+
const rows = []
|
|
249
|
+
let failures = 0
|
|
250
|
+
|
|
251
|
+
for (const vp of viewports) {
|
|
252
|
+
for (const dark of themes) {
|
|
253
|
+
for (const r of routes) {
|
|
254
|
+
const page = await openPage(browser, { token, dark, width: vp.width, height: vp.height, deviceScaleFactor: 1 })
|
|
255
|
+
const errs = []
|
|
256
|
+
page.on('pageerror', e => errs.push(String(e.message).slice(0, 160)))
|
|
257
|
+
try {
|
|
258
|
+
await gotoReady(page, r.path, { wait: WAIT })
|
|
259
|
+
const res = await page.evaluate(AUDIT, THRESHOLDS)
|
|
260
|
+
res.route = r.name
|
|
261
|
+
res.path = r.path
|
|
262
|
+
res.vp = vp.name
|
|
263
|
+
res.theme = dark ? 'dark' : 'light'
|
|
264
|
+
res.pageErrors = errs
|
|
265
|
+
const bad = res.total + errs.length
|
|
266
|
+
if (bad) failures++
|
|
267
|
+
rows.push(res)
|
|
268
|
+
console.log(`${bad ? 'FAIL' : ' ok '} ${vp.name.padEnd(16)} ${(dark ? 'dark' : 'light').padEnd(5)} ${r.name.padEnd(12)} ${JSON.stringify(res.counts)}${errs.length ? ' errs=' + errs.length : ''}`)
|
|
269
|
+
}
|
|
270
|
+
catch (e) {
|
|
271
|
+
failures++
|
|
272
|
+
rows.push({ route: r.name, vp: vp.name, theme: dark ? 'dark' : 'light', error: String(e.message).slice(0, 200) })
|
|
273
|
+
console.log(`FAIL ${vp.name} ${r.name} — ${String(e.message).slice(0, 90)}`)
|
|
274
|
+
}
|
|
275
|
+
await page.close()
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
await browser.close()
|
|
281
|
+
fs.writeFileSync(JSON_OUT, JSON.stringify({ thresholds: THRESHOLDS, failures, rows }, null, 2))
|
|
282
|
+
const total = rows.length
|
|
283
|
+
console.log(`\n=== ${total} 个组合:${total - failures} 通过 / ${failures} 失败 ===`)
|
|
284
|
+
console.log('报告 →', JSON_OUT)
|
|
285
|
+
process.exit(failures ? 1 : 0)
|