agentworkshop 0.7.34 → 0.7.38
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/aml_eval.py +171 -0
- package/.output/.AgentWorkShop/aml-python/amlkit.py +120 -0
- package/.output/.AgentWorkShop/aml-python/requirements.txt +7 -0
- package/.output/.AgentWorkShop/aml-python/train-example.py +92 -0
- package/.output/.AgentWorkShop/schema.json +2 -1
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{DLljr7g0.js → 45zuyAso.js} +1 -1
- package/.output/public/_nuxt/4sIEbgcl.js +42 -0
- package/.output/public/_nuxt/8NMOXZOV.js +1 -0
- package/.output/public/_nuxt/BCGafdXT.js +2 -0
- package/.output/public/_nuxt/BDNMzG2s2.js +1 -0
- package/.output/public/_nuxt/{C-mDhyEd.js → BDmh31hl.js} +1 -1
- package/.output/public/_nuxt/BFkgkW8u.js +4 -0
- package/.output/public/_nuxt/BG8sCcwx.js +14 -0
- package/.output/public/_nuxt/{D8CqF0yy.js → BHA40aHa.js} +1 -1
- package/.output/public/_nuxt/BJHKLJJU.js +1 -0
- package/.output/public/_nuxt/{DoTdlVVe2.js → BN6iuJEg2.js} +1 -1
- package/.output/public/_nuxt/BNT8gYU92.js +4 -0
- package/.output/public/_nuxt/BU83-NnX.js +106 -0
- package/.output/public/_nuxt/BYhEUx8t.js +17 -0
- package/.output/public/_nuxt/BzHEilTt.js +1 -0
- package/.output/public/_nuxt/{Ct-WOVr4.js → C3J6FYKa.js} +1 -1
- package/.output/public/_nuxt/C3gwHTz0.js +1 -0
- package/.output/public/_nuxt/C4DWUZ6d2.js +1 -0
- package/.output/public/_nuxt/C5gUkRwn.js +1 -0
- package/.output/public/_nuxt/CClOy-Hz2.js +1 -0
- package/.output/public/_nuxt/{CUXCQXjG.js → CM12FuB42.js} +1 -1
- package/.output/public/_nuxt/{BSCpFtzG.js → CSkxz2NX.js} +1 -1
- package/.output/public/_nuxt/CWoJjWmZ.js +1 -0
- package/.output/public/_nuxt/CY9LbPCI.js +1 -0
- package/.output/public/_nuxt/CYWVXZTS.js +7 -0
- package/.output/public/_nuxt/CZiw7sEV.js +1 -0
- package/.output/public/_nuxt/C_OLzD09.js +1 -0
- package/.output/public/_nuxt/C__m4EhR.js +1 -0
- package/.output/public/_nuxt/Cbq-mryP.js +1 -0
- package/.output/public/_nuxt/{C4OAdbVK2.js → Cc_9VzD42.js} +1 -1
- package/.output/public/_nuxt/{BASN8nZ0.js → CdPzkOMV.js} +1 -1
- package/.output/public/_nuxt/Cec0Ua3F.js +1 -0
- package/.output/public/_nuxt/{DYKVPzN-.js → CoNpEq5X.js} +1 -1
- package/.output/public/_nuxt/CojCTLKD.js +1 -0
- package/.output/public/_nuxt/{B7wL3pDk.js → Crod5z2f.js} +1 -1
- package/.output/public/_nuxt/CzlMDL5H.js +13 -0
- package/.output/public/_nuxt/{G0qIw7Gq2.js → D0ZBQrN_2.js} +1 -1
- package/.output/public/_nuxt/{Lp7Ll94I.js → D1YDxZpZ.js} +1 -1
- package/.output/public/_nuxt/{Bc0AmjfT.js → D20Yamr4.js} +1 -1
- package/.output/public/_nuxt/D6uzXueg.js +2 -0
- package/.output/public/_nuxt/D9Oidm5I.js +1 -0
- package/.output/public/_nuxt/DAe0h2MB.js +1 -0
- package/.output/public/_nuxt/DBHNsT1Y.js +23 -0
- package/.output/public/_nuxt/DDShH71m.js +1 -0
- package/.output/public/_nuxt/DDgJcSET.js +19 -0
- package/.output/public/_nuxt/DHFrCUxA2.js +13 -0
- package/.output/public/_nuxt/{BcrN7QEl2.js → DIaZ2PTo2.js} +1 -1
- package/.output/public/_nuxt/DPnwL14Y.js +1 -0
- package/.output/public/_nuxt/DR12_WCA.js +3 -0
- package/.output/public/_nuxt/{B9nXmjSB.js → DUrecWPx.js} +4 -4
- package/.output/public/_nuxt/DVsjtsvZ2.js +1 -0
- package/.output/public/_nuxt/DYr1VMiQ.js +6 -0
- package/.output/public/_nuxt/DZtm4l-P2.js +1 -0
- package/.output/public/_nuxt/DdD9mCHM.js +1 -0
- package/.output/public/_nuxt/DeJykBFf.js +9 -0
- package/.output/public/_nuxt/{DoMxCWN52.js → DeyBFhKH2.js} +1 -1
- package/.output/public/_nuxt/DkGQ7lnb2.js +1 -0
- package/.output/public/_nuxt/DmqknNvV.js +18 -0
- package/.output/public/_nuxt/DnUuIR83.js +1 -0
- package/.output/public/_nuxt/DrYV5i68.js +1 -0
- package/.output/public/_nuxt/{B5S_UyaC.js → DtYHUi5Z.js} +1 -1
- package/.output/public/_nuxt/Dz_Q3Lpw2.js +1 -0
- package/.output/public/_nuxt/DzbFpZRk.js +3 -0
- package/.output/public/_nuxt/HBLJ-wei.js +1 -0
- package/.output/public/_nuxt/JCoYF4IJ.js +31 -0
- package/.output/public/_nuxt/JTLM-kqr2.js +1 -0
- package/.output/public/_nuxt/{BeIfu4N3.js → KZQX7xoM.js} +2 -2
- package/.output/public/_nuxt/S_fVQwJK.js +1 -0
- package/.output/public/_nuxt/TownView.0oLiQgTC.css +1 -0
- package/.output/public/_nuxt/YnQxK3eG.js +1 -0
- package/.output/public/_nuxt/_id_.D-SYuyZb.css +1 -0
- package/.output/public/_nuxt/_id_.hma_BU6T.css +1 -0
- package/.output/public/_nuxt/_wsId_.B12v3PhY.css +1 -0
- package/.output/public/_nuxt/aLLjF2K-2.js +1 -0
- package/.output/public/_nuxt/aWWIh8YL.js +24 -0
- package/.output/public/_nuxt/ahgEJu2R.js +1 -0
- package/.output/public/_nuxt/aml.COEKNNqK.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/44b66249-54d0-4c8a-9057-9755a32329e2.json +1 -0
- package/.output/public/_nuxt/daq.B3265ZDn.css +1 -0
- package/.output/public/_nuxt/dcw.DLYZqEhT.css +1 -0
- package/.output/public/_nuxt/default.DE_vT238.css +1 -0
- package/.output/public/_nuxt/entry.BB-Eeh-J.css +1 -0
- package/.output/public/_nuxt/jZsY8yYz.js +1 -0
- package/.output/public/_nuxt/logs.CqFyMrJw.css +1 -0
- package/.output/public/_nuxt/pages.ooEzrMm9.css +1 -0
- package/.output/public/_nuxt/pdk8jLGT.js +1 -0
- package/.output/public/_nuxt/plugins.5e5chZ67.css +1 -0
- package/.output/public/_nuxt/pz2JDAM7.js +2 -0
- package/.output/public/_nuxt/settings.Dm3M0RLy.css +1 -0
- package/.output/public/_nuxt/town.DKIAhKnx.css +1 -0
- package/.output/public/_nuxt/users.CXnP2E08.css +1 -0
- package/.output/public/_nuxt/vRTjoWqd.js +1 -0
- package/.output/public/_nuxt/workshop.Jk5HxWPE.css +1 -0
- package/.output/public/_nuxt/zIGh7R49.js +75 -0
- package/.output/public/_nuxt/zq5t1vyX.js +1 -0
- package/.output/server/chunks/_/character-asset.repo.mjs +1 -1
- package/.output/server/chunks/_/entity.mjs +174 -0
- package/.output/server/chunks/_/entity.mjs.map +1 -0
- package/.output/server/chunks/_/env-manager.mjs +162 -0
- package/.output/server/chunks/_/env-manager.mjs.map +1 -0
- package/.output/server/chunks/_/host-bindings.mjs +1 -1
- package/.output/server/chunks/_/nitro.mjs +1657 -1162
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/_/scene-layout.repo.mjs +1 -1
- package/.output/server/chunks/build/{TownView-BdHnAilw.mjs → TownView-jVazYOjN.mjs} +141 -141
- package/.output/server/chunks/build/{TownView-BdHnAilw.mjs.map → TownView-jVazYOjN.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-Cb845FHR.mjs → _id_-CfVosNg3.mjs} +136 -136
- package/.output/server/chunks/build/{_id_-Cb845FHR.mjs.map → _id_-CfVosNg3.mjs.map} +1 -1
- package/.output/server/chunks/build/{_id_-fadFPl2i.mjs → _id_-Hwr4rZpr.mjs} +32 -32
- package/.output/server/chunks/build/{_id_-fadFPl2i.mjs.map → _id_-Hwr4rZpr.mjs.map} +1 -1
- package/.output/server/chunks/build/{_wsId_-CTZswnm5.mjs → _wsId_-BVg3bB77.mjs} +175 -165
- package/.output/server/chunks/build/{_wsId_-CTZswnm5.mjs.map → _wsId_-BVg3bB77.mjs.map} +1 -1
- package/.output/server/chunks/build/aml-BCSJCdX7.mjs +588 -0
- package/.output/server/chunks/build/aml-BCSJCdX7.mjs.map +1 -0
- package/.output/server/chunks/build/{daq-BvihjQyW.mjs → daq-C03Uu5UE.mjs} +108 -106
- package/.output/server/chunks/build/daq-C03Uu5UE.mjs.map +1 -0
- package/.output/server/chunks/build/{dcw-Ks2vJ4PF.mjs → dcw-6vEYVeje.mjs} +44 -44
- package/.output/server/chunks/build/{dcw-Ks2vJ4PF.mjs.map → dcw-6vEYVeje.mjs.map} +1 -1
- package/.output/server/chunks/build/{default-GgHt4O2R.mjs → default-hseyOqBT.mjs} +30 -27
- package/.output/server/chunks/build/{default-GgHt4O2R.mjs.map → default-hseyOqBT.mjs.map} +1 -1
- package/.output/server/chunks/build/{logs-CYBhkQwh.mjs → logs-B-xhuqln.mjs} +35 -35
- package/.output/server/chunks/build/{logs-CYBhkQwh.mjs.map → logs-B-xhuqln.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-C-6BRtv8.mjs → pages-BO7yZsXA.mjs} +18 -27
- package/.output/server/chunks/build/pages-BO7yZsXA.mjs.map +1 -0
- package/.output/server/chunks/build/{plugins-dZRegC7m.mjs → plugins-CUWmMdyt.mjs} +17 -17
- package/.output/server/chunks/build/{plugins-dZRegC7m.mjs.map → plugins-CUWmMdyt.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-CgDLkP3s.mjs → settings-DoQ2Oq3P.mjs} +43 -43
- package/.output/server/chunks/build/{settings-CgDLkP3s.mjs.map → settings-DoQ2Oq3P.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-DJ-V5G9U.mjs → town-BOl6hs9B.mjs} +7 -7
- package/.output/server/chunks/build/{town-DJ-V5G9U.mjs.map → town-BOl6hs9B.mjs.map} +1 -1
- package/.output/server/chunks/build/useDaqStream-CIBaiGAl.mjs +1 -1
- package/.output/server/chunks/build/useDcwStream-CBbiYnWe.mjs +1 -1
- package/.output/server/chunks/build/{useWorkshopWs-CprkZEdq.mjs → useWorkshopWs-C_I7q9As.mjs} +110 -32
- package/.output/server/chunks/build/{useWorkshopWs-CprkZEdq.mjs.map → useWorkshopWs-C_I7q9As.mjs.map} +1 -1
- package/.output/server/chunks/build/{users-4nzxTjFT.mjs → users-fohSmF-J.mjs} +6 -6
- package/.output/server/chunks/build/{users-4nzxTjFT.mjs.map → users-fohSmF-J.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-81xhz368.mjs → workshop-DX5-ldc4.mjs} +15 -15
- package/.output/server/chunks/build/{workshop-81xhz368.mjs.map → workshop-DX5-ldc4.mjs.map} +1 -1
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +21 -8
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id/preview.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs +58 -0
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs +27 -6
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs +49 -0
- package/.output/server/chunks/routes/api/workshop/aml/datasets/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs +45 -0
- package/.output/server/chunks/routes/api/workshop/aml/entities/prune.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/recheck.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/uv.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/aml/env/venv.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs +4 -22
- package/.output/server/chunks/routes/api/workshop/aml/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs +4 -16
- package/.output/server/chunks/routes/api/workshop/aml/index3.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs +19 -34
- package/.output/server/chunks/routes/api/workshop/aml/index4.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs +62 -0
- package/.output/server/chunks/routes/api/workshop/aml/index6.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/cancel.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/logs.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id/retry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs +63 -0
- package/.output/server/chunks/routes/api/workshop/aml/jobs/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id/predict.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/models/_id/promote.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs +54 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/aml/models/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +2 -2
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +4 -4
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/bindings.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +12 -1
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +2 -2
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/virtual/entry.mjs +103 -17
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +578 -507
- package/README.md +125 -51
- package/app/assets/css/main.css +329 -22
- package/app/components/AppHeader.vue +5 -4
- package/app/components/AppSidebar.vue +5 -4
- package/app/components/AwChart.vue +17 -0
- package/app/components/workshop/AgentLanesView.vue +2 -2
- package/app/components/workshop/ChannelSessionList.vue +3 -3
- package/app/components/workshop/CommandPalette.vue +1 -2
- package/app/components/workshop/Composer.vue +4 -4
- package/app/components/workshop/DaqNodeRow.vue +20 -1
- package/app/components/workshop/EventBlock.vue +3 -3
- package/app/components/workshop/MentionHoverCard.vue +1 -1
- package/app/components/workshop/MultiChannelView.vue +1 -1
- package/app/components/workshop/TaskBoardView.vue +5 -5
- package/app/components/workshop/TranscriptTimeline.vue +3 -3
- package/app/components/workshop/blocks/ClusterRoute.vue +3 -3
- package/app/components/workshop/blocks/ClusterStream.vue +1 -1
- package/app/components/workshop/blocks/ClusterTool.vue +1 -1
- package/app/components/workshop/lanes/LaneBlocks.vue +5 -2
- package/app/components/workshop/town/TownView.vue +0 -7
- package/app/composables/workshop/useClusteredBlocks.ts +22 -3
- package/app/composables/workshop/useEscClose.ts +44 -0
- package/app/config/index.ts +2 -1
- package/app/layouts/default.vue +25 -8
- package/app/pages/aml/index.vue +626 -4
- package/app/pages/daq/[id].vue +1 -1
- package/app/pages/daq/index.vue +10 -12
- package/app/pages/dcw/[id].vue +2 -2
- package/app/pages/dcw/index.vue +7 -11
- package/app/pages/index.vue +24 -6
- package/app/pages/logs/index.vue +2 -6
- package/app/pages/plugins/index.vue +1 -1
- package/app/pages/settings.vue +2 -2
- package/app/pages/town.vue +0 -2
- package/app/pages/users.vue +1 -1
- package/app/pages/workshop/index.vue +2 -2
- package/app/plugins/esc-close.client.ts +31 -0
- package/app/stores/workshop/events.ts +186 -36
- package/bin/aw.mjs +7 -2
- package/cli/aw.mjs +19 -34
- package/cli/commands/build.mjs +18 -1
- package/cli/commands/config.mjs +2 -0
- package/cli/commands/plugin.mjs +45 -18
- package/cli/commands/register.mjs +6 -2
- package/cli/commands/status.mjs +2 -1
- package/cli/commands/update.mjs +1 -1
- package/cli/commands/version.mjs +1 -1
- package/cli/core/args.mjs +76 -4
- package/cli/core/help.mjs +3 -1
- package/cli/core/meta.mjs +38 -0
- package/cli/core/post-build.mjs +96 -0
- package/cli/core/registry.mjs +6 -3
- package/config.yml +28 -26
- package/docs/aml.md +99 -0
- package/docs/cli.en.md +445 -0
- package/docs/cli.md +410 -220
- package/docs/full-test-plan.md +174 -0
- package/docs/multi-harness-architecture.md +248 -0
- package/docs/plugins.en.md +534 -0
- package/docs/plugins.md +531 -179
- package/docs/sdk.en.md +922 -0
- package/docs/sdk.md +725 -129
- package/i18n/dicts/aml.json +43 -1
- package/i18n/locales/en.ts +1928 -1885
- package/i18n/locales/zh-CN.ts +1928 -1885
- package/nuxt.config.ts +27 -2
- package/package.json +164 -153
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.continue.json +1 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.json +1 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/054bb4bc4e4217a2ab0b0c6b663747214a9af464f5568ea60e784704e340bb0f.source +153 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/0554197c3d2bac203a1f5c48a5d52495d1336db1bd7aa4f4c19875810363e684.source +153 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/05c203d12a954fffba942e1d626e3f5fec05b18a5aef2bac003b7884a4b77406.source +431 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/145a6e6ba811af35aed31e0cc3211f53706a14980fa069ee9e3c1591139f96f0.source +180 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/1ae0fb281f97899c025e368ca73f41349b01fb5f85b19e08d7ebccff49095ed5.source +112 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/20ee9967aa0541c516db7575bdd4a1a745939bc7016bd10d7635903113edb8ec.source +227 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/233751843aeba9d4c5263f275b8102de00443c06f286918cbd23e0b6729e01aa.source +131 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/263c2e05b425e5c322e60c6475279f963bab3a873eb521b21df7fec935a46597.source +160 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/2ac5eaac28eaaee2178c4b32014df8e732f9dd432a285a872f5b7f31c1395fa4.source +157 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/33a0db0d2d95d2c11d0720090458e5fba1425376f5ceb5b422d1d3471be3226b.source +348 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/359e474ae83db35e4615d3728de6bf694b64d4dce9b536730a3b6518f9c0494a.source +296 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/37a4c3c31c4b70f6b719c53d1e9c4fcba603f31adfdd11bb6ef9f0d094923c56.source +285 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/461feca1c14a695eb8b0f17a6f95fe97eeceabc0510faaea4ba6d25bde147d8d.source +217 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/4cfadbda8591f29d5e1e230dc000e701b756e850441b3900fb596a4d2f6e98c2.source +301 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/50ca2810cf0b248c96948994c0c404531bbad6e553166b6816b3b03bfa0f75d2.source +151 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/52d9e8cb591a9ae86e238c3620a610cd386717bee222c0f37b25b2ac7e523dc4.source +135 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/6c87daafa4c006560a954636a97333f6123153c9d34d96203f7ee3a14e556357.source +156 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/77bc47854b577900621cacf1697f81fa2bc005af129d37614a97a3441c08f99f.source +72 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/7bbb789d3a527817118cf8399ed1861d6a962ade10878fd07223435d333a7089.source +469 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/86b7c1daafc8b60ba9982dde5bf1bcc74265709483c176e71f23ec6fc267451f.source +259 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/8df66d62bd41984d0970e8236882080c5085ac937d07a29779463d6a03b37c76.source +97 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/9962f2d1b3a85137bd40cc835725600b39f89ee02a27c06b2e0402e1eafde115.source +277 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/a1090ea066b792cb201739f4994e37bf7c12f52e805239a1eab87f18a537f266.source +171 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/a5241091650134d0919897e086a606a3846c8b2b54f8b4c84a8696c145ac3e9e.source +425 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/af19fa4c6e34d5540028be4b17600161283af3a2a2dfc61a3fdc0834436a0c14.source +99 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/b3713d78e2b2f93905ff6be8d58a8d0a2f42dea322eb67c987fda22ff6a084d5.source +325 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/b3849943c3aff102d1af815631fc843a2a52c17646a4b04696ece323e483bbec.source +332 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/bac735a3803a6650b7f1eb8f587e6dc5c68ea055000c3c99a11789438b78e837.source +43 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/d32c24d61eb8b33c73e5a8fc7e4dc7ef437aed238ee4371c2b00617e6104090a.source +154 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/d5170dc9a9879fda04fdf91d8a110d4efb6787ee38dda596d4da899883d36a72.source +531 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/dc59bcd7bb397be63ba2f2c3fec23f3782dcb17d2d75a9981eeced761f33eb32.source +439 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/eb5ff8cf66b92aec7bf6726781d8df74faa2b030c3aaac17d6b00c1fc04c9b32.source +323 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f10615a6fae18436e70d1201b2d44fdae3174a3aa7bb4db97dea1b3ed291d721.source +433 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f36d3e271668bc1260c2823542d22dbf1d0f7041ff16b1ac175bce2256e582ca.source +280 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f94449380af09f31ac352152007146a75cc80bae8d6411ffe57b2c56f933b0ff.source +117 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/fe4dfd81178fd6b648335f6405d9ede71319aebde796008e50db21f8adf44c99.source +160 -0
- package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/ffb4e3aa548cfdadabaa44ab599f9b6a3ca6288176a2cc7a4b2fc2a12b5fb848.source +101 -0
- package/scripts/.mimosa/hook-status/sess_aeaecb58-8833-4b83-b93c-050467d21e03-d944d71bb3.json +14 -0
- package/scripts/_audit/aml-layout-diag.mjs +83 -0
- package/scripts/_audit/bump-version.mjs +51 -0
- package/scripts/_audit/channel-inspect.mjs +49 -0
- package/scripts/_audit/cleanup-apply.mjs +89 -0
- package/scripts/_audit/cleanup-plan.mjs +82 -0
- package/scripts/_audit/contrast-check.mjs +43 -0
- package/scripts/_audit/dcw-unrecorded-write.ts +1 -1
- package/scripts/_audit/design-shots.mjs +145 -0
- package/scripts/_audit/docs-font-probe.mjs +68 -0
- package/scripts/_audit/docs-probe.mjs +107 -0
- package/scripts/_audit/docs-shots.mjs +171 -0
- package/scripts/_audit/docs-v3-verify.mjs +255 -0
- package/scripts/_audit/docs-vue-lint.mjs +81 -0
- package/scripts/_audit/docs-vue-lint2.mjs +91 -0
- package/scripts/_audit/exp-cost-scaling.mjs +4 -1
- package/scripts/_audit/exp-envelope-and-png.mjs +2 -1
- package/scripts/_audit/exp-sweep-fairness.mjs +4 -2
- package/scripts/_audit/fix-settings-count.mjs +57 -0
- package/scripts/_audit/glass-verify.mjs +155 -0
- package/scripts/_audit/hydration-diff.mjs +104 -0
- package/scripts/_audit/hydration-head.mjs +36 -0
- package/scripts/_audit/hydration-probe.mjs +59 -0
- package/scripts/_audit/lead-matrix-test.mjs +172 -0
- package/scripts/_audit/plc-agent-task.mjs +74 -0
- package/scripts/_audit/plc-clean-scenario.mjs +434 -0
- package/scripts/_audit/plc-clean-shots.mjs +161 -0
- package/scripts/_audit/plc-fc10-probe.mjs +30 -0
- package/scripts/_audit/probe-binding.mjs +114 -103
- package/scripts/_audit/review-fix-verify.mjs +158 -0
- package/scripts/_audit/seed-demo.mjs +165 -0
- package/scripts/_audit/town-focus-shot.mjs +129 -0
- package/scripts/_audit/town-reposition.mjs +85 -0
- package/scripts/_audit/ts-resolve-hook.mjs +57 -22
- package/scripts/_audit/verify-cleanup.mjs +67 -0
- package/scripts/_audit/verify-release-pack.mjs +82 -0
- package/scripts/_audit/watchdog-recovery-test.mjs +127 -0
- package/scripts/_dbg-audit-all-pages.mjs +43 -43
- package/scripts/_dbg-configroot-audit.mjs +84 -84
- package/scripts/_dbg-daq-intervals-func.mjs +94 -94
- package/scripts/_dbg-daq-rowstyle-verify.mjs +112 -112
- package/scripts/_dbg-groups-ui-verify.mjs +122 -122
- package/scripts/_dbg-harness-e2e.mjs +92 -92
- package/scripts/_dbg-harness-ui-e2e.py +97 -97
- package/scripts/_dbg-hitl-timeout-e2e.mjs +93 -93
- package/scripts/_dbg-multiharness-live-e2e.mjs +254 -254
- package/scripts/_dbg-opslog-agent-e2e.mjs +194 -194
- package/scripts/_dbg-opt-team-e2e.mjs +133 -133
- package/scripts/_dbg-recipe-e2e.mjs +176 -176
- package/scripts/_dbg-recipe-stale-e2e.mjs +135 -135
- package/scripts/_dbg-render-perf.mjs +142 -142
- package/scripts/_dbg-render-regression.mjs +130 -130
- package/scripts/_dbg-town-smoke.mjs +54 -54
- package/scripts/aw-start-smoke.mjs +27 -8
- package/scripts/check-docs-sync.mjs +367 -0
- package/scripts/e2e-full-closedloop.mjs +36 -18
- package/scripts/production-closed-loop-e2e.mjs +300 -303
- package/scripts/test-cli-exit.mjs +129 -21
- package/scripts/test-daq-frame-race.mjs +144 -96
- package/scripts/test-events-index.mjs +176 -0
- package/scripts/test-lru.mjs +34 -11
- package/scripts/test-memory-month-query.mjs +11 -3
- package/scripts/test-plugin-hardening.mjs +39 -2
- package/scripts/test-plugin-lifecycle.mjs +173 -0
- package/scripts/test-rollback-index.mjs +76 -18
- package/scripts/test-sdk-surface.mjs +6 -3
- package/sdk/client.mjs +16 -7
- package/sdk/context.mjs +21 -9
- package/sdk/examples/line-sentinel/client.mjs +13 -6
- package/sdk/examples/line-sentinel/index.mjs +5 -2
- package/sdk/examples/ops-notifier/client.mjs +3 -1
- package/sdk/examples/sample-insight/client.mjs +4 -2
- package/sdk/index.d.mts +133 -16
- package/sdk/index.mjs +3 -2
- package/sdk/lifecycle.mjs +8 -3
- package/server/api/workshop/agent-tools/bindings/index.post.ts +22 -7
- package/server/api/workshop/aml/datasets/[id].delete.ts +39 -0
- package/server/api/workshop/aml/datasets/[id].get.ts +31 -9
- package/server/api/workshop/aml/datasets/[id].patch.ts +30 -0
- package/server/api/workshop/aml/entities/index.get.ts +13 -0
- package/server/api/workshop/aml/entities/prune.post.ts +28 -0
- package/server/api/workshop/aml/env/index.get.ts +13 -0
- package/server/api/workshop/aml/env/recheck.post.ts +14 -0
- package/server/api/workshop/aml/env/uv.post.ts +21 -0
- package/server/api/workshop/aml/env/venv.post.ts +24 -0
- package/server/api/workshop/aml/index.get.ts +14 -1
- package/server/api/workshop/aml/jobs/[id].delete.ts +44 -0
- package/server/api/workshop/aml/models/[id].delete.ts +35 -0
- package/server/api/workshop/aml/models/[id].patch.ts +30 -0
- package/server/plugins/dev-stability-guard.ts +40 -63
- package/server/services/workshop/agents/agent-interface.ts +3 -0
- package/server/services/workshop/agents/codex-agent.ts +4 -7
- package/server/services/workshop/agents/dsh-agent.ts +4 -7
- package/server/services/workshop/agents/opencode-agent.ts +5 -7
- package/server/services/workshop/aml/aml.repo.ts +18 -0
- package/server/services/workshop/aml/dataset-builder.ts +4 -0
- package/server/services/workshop/aml/entity.ts +365 -0
- package/server/services/workshop/aml/env-manager.ts +242 -0
- package/server/services/workshop/aml/job-orchestrator.ts +4 -15
- package/server/services/workshop/aml/model-registry.ts +6 -0
- package/server/services/workshop/aml/python-runtime.ts +396 -62
- package/server/services/workshop/aml/runtime.ts +95 -4
- package/server/services/workshop/daq/bus/mqtt.adapter.ts +3 -1
- package/server/services/workshop/daq/daq-controller.ts +95 -47
- package/server/services/workshop/daq/daq-node.repo.ts +0 -10
- package/server/services/workshop/daq/daq-runtime.ts +0 -5
- package/server/services/workshop/json-store.mjs +35 -2
- package/server/services/workshop/plugins/host.mjs +14 -5
- package/server/services/workshop/runtime/manager.ts +28 -1
- package/server/services/workshop/runtime/scheduler-loop.ts +10 -1
- package/server/services/workshop/settings.ts +2 -0
- package/server/utils/stability-severity.ts +66 -0
- package/shared/config/home.mjs +58 -0
- package/shared/config/schema.json +2 -1
- package/shared/lru.mjs +4 -1
- package/.output/public/_nuxt/-6OnbLFb.js +0 -1
- package/.output/public/_nuxt/-nb2uqVg.js +0 -1
- package/.output/public/_nuxt/4bHdIqEg.js +0 -18
- package/.output/public/_nuxt/6PZPfFcO.js +0 -17
- package/.output/public/_nuxt/BBBtwOpo.js +0 -9
- package/.output/public/_nuxt/BBwMH_hG.js +0 -7
- package/.output/public/_nuxt/BDUjyaF4.js +0 -42
- package/.output/public/_nuxt/BNXfwXpE.js +0 -1
- package/.output/public/_nuxt/BN_PdN3J.js +0 -24
- package/.output/public/_nuxt/BSSUlJnx2.js +0 -1
- package/.output/public/_nuxt/BWSE6hR6.js +0 -1
- package/.output/public/_nuxt/BZGNTgTQ2.js +0 -1
- package/.output/public/_nuxt/BZv4RFYN.js +0 -1
- package/.output/public/_nuxt/BcmbLh2z2.js +0 -1
- package/.output/public/_nuxt/BfGc7TJp.js +0 -1
- package/.output/public/_nuxt/BgTB6h_q.js +0 -2
- package/.output/public/_nuxt/BkLJA9J5.js +0 -1
- package/.output/public/_nuxt/Bp5luxkg2.js +0 -1
- package/.output/public/_nuxt/BuCHayqN.js +0 -1
- package/.output/public/_nuxt/BuvcLKh1.js +0 -19
- package/.output/public/_nuxt/C3tCneTM.js +0 -1
- package/.output/public/_nuxt/C77oC8yC2.js +0 -7
- package/.output/public/_nuxt/C9f8QMp12.js +0 -1
- package/.output/public/_nuxt/CKfhtOt7.js +0 -13
- package/.output/public/_nuxt/CQvmN-Mi.js +0 -1
- package/.output/public/_nuxt/CUDrOuW7.js +0 -1
- package/.output/public/_nuxt/CZcC-gpk.js +0 -1
- package/.output/public/_nuxt/CbzsPO5H.js +0 -1
- package/.output/public/_nuxt/CdSOrh2c.js +0 -1
- package/.output/public/_nuxt/Cgx818r-.js +0 -1
- package/.output/public/_nuxt/Cjm7VogC.js +0 -1
- package/.output/public/_nuxt/Cm5mDxzH.js +0 -1
- package/.output/public/_nuxt/CmHzfVc5.js +0 -3
- package/.output/public/_nuxt/Cn3J3NXR.js +0 -23
- package/.output/public/_nuxt/Cno6kYiO2.js +0 -1
- package/.output/public/_nuxt/Cp6z0RN7.js +0 -1
- package/.output/public/_nuxt/CwqIxJGj.js +0 -2
- package/.output/public/_nuxt/D-Ca4BGY.js +0 -70
- package/.output/public/_nuxt/D0fhp-Ga.js +0 -75
- package/.output/public/_nuxt/D1z7i2UP.js +0 -31
- package/.output/public/_nuxt/DIaTPH1M.js +0 -1
- package/.output/public/_nuxt/DTYBfjRY.js +0 -1
- package/.output/public/_nuxt/DXRZPxGs.js +0 -1
- package/.output/public/_nuxt/DZzGarBE2.js +0 -13
- package/.output/public/_nuxt/DaMCzQhv.js +0 -1
- package/.output/public/_nuxt/DoLasgPj2.js +0 -1
- package/.output/public/_nuxt/DpojD719.js +0 -1
- package/.output/public/_nuxt/DsVcWfyR.js +0 -1
- package/.output/public/_nuxt/DtBu71ev.js +0 -32
- package/.output/public/_nuxt/Dy-mxvXY2.js +0 -1
- package/.output/public/_nuxt/DzuC31-i.js +0 -2
- package/.output/public/_nuxt/FQri3dV3.js +0 -1
- package/.output/public/_nuxt/ORt9oDIy2.js +0 -1
- package/.output/public/_nuxt/TownView.CtskuMXS.css +0 -1
- package/.output/public/_nuxt/VLI2Zy4t.js +0 -5
- package/.output/public/_nuxt/_id_.MbzdFygI.css +0 -1
- package/.output/public/_nuxt/_id_.hRYo-EAB.css +0 -1
- package/.output/public/_nuxt/_wsId_.gXMEOYgX.css +0 -1
- package/.output/public/_nuxt/aml.WU_bh87J.css +0 -1
- package/.output/public/_nuxt/arUY5dyq2.js +0 -4
- package/.output/public/_nuxt/builds/meta/adc365b6-f636-4a2b-9527-79819c1e874b.json +0 -1
- package/.output/public/_nuxt/daq.Bb6l44-O.css +0 -1
- package/.output/public/_nuxt/dcw.rXH2fc2Z.css +0 -1
- package/.output/public/_nuxt/default.jNT73_hq.css +0 -1
- package/.output/public/_nuxt/ekuGmQ7R.js +0 -1
- package/.output/public/_nuxt/entry.jFrFAWuA.css +0 -1
- package/.output/public/_nuxt/logs.DMOM-iHe.css +0 -1
- package/.output/public/_nuxt/niDwBOZW.js +0 -3
- package/.output/public/_nuxt/pMoIO6rr.js +0 -14
- package/.output/public/_nuxt/pages.Cc8GX9T1.css +0 -1
- package/.output/public/_nuxt/plugins.wIPyfPn-.css +0 -1
- package/.output/public/_nuxt/rqZ-1SoP.js +0 -2
- package/.output/public/_nuxt/settings.BCm4NZIc.css +0 -1
- package/.output/public/_nuxt/town.C_DsNW0J.css +0 -1
- package/.output/public/_nuxt/users.DuAt_Zwf.css +0 -1
- package/.output/public/_nuxt/vJ4FPb-_.js +0 -1
- package/.output/public/_nuxt/workshop.BJg84pOK.css +0 -1
- package/.output/server/chunks/build/aml-uBNIppIf.mjs +0 -508
- package/.output/server/chunks/build/aml-uBNIppIf.mjs.map +0 -1
- package/.output/server/chunks/build/daq-BvihjQyW.mjs.map +0 -1
- package/.output/server/chunks/build/pages-C-6BRtv8.mjs.map +0 -1
- package/scripts/_audit/.tmp/audit-data/dcws.json +0 -28
- package/scripts/_audit/.tmp/dcw-writes.json +0 -15650
- package/scripts/_audit/.tmp/dcws.json +0 -9033
- package/scripts/_audit/.tmp/pollution-backup/dcw-rollback.polluted.json +0 -470006
- package/scripts/_audit/.tmp/pollution-backup/dcws.polluted.json +0 -9085
- package/scripts/_audit/.tmp/probe-cwd.txt +0 -1
- package/scripts/_audit/awhome/commands/README.md +0 -3
- package/scripts/_audit/awhome/commands/hello.mjs +0 -12
- package/scripts/_audit/diag-cwd.ts +0 -20
- package/scripts/_audit/diag-cwd2.ts +0 -19
- package/scripts/_audit/hello.mjs +0 -12
- package/scripts/_audit/ndjson-partial-line-repro.mjs +0 -77
- package/scripts/_audit/opencode-await-ternary-repro.mjs +0 -20
- package/scripts/_audit/part-frag.txt +0 -84
- package/scripts/_audit/part-head.txt +0 -45
- package/scripts/_audit/probe-child.mjs +0 -17
- package/scripts/_audit/probe-envelope.mjs +0 -49
- package/scripts/_audit/probe-packlist.mjs +0 -67
- package/scripts/_audit/probe-routes.mjs +0 -47
- package/scripts/_audit/probe-routes2.mjs +0 -38
- package/scripts/_audit/probe.ts +0 -9
- package/scripts/_audit/probe2.ts +0 -6
- package/scripts/_audit/probe3.ts +0 -3
- package/scripts/_audit/probe4.ts +0 -3
- package/scripts/_audit/proj/.AgentWorkShop/commands/echoargs.mjs +0 -13
- package/scripts/_audit/proj/config.yml +0 -1
- package/scripts/_audit/run.mjs +0 -30
- package/scripts/_audit/tsconfig.probe.json +0 -24
- package/scripts/_audit/typecheck-out.txt +0 -466
- package/scripts/_daq-realtime-probe.mjs +0 -68
- package/scripts/_daq-warn-probe.mjs +0 -50
- package/scripts/_dbg-acc-1-setup.mjs +0 -57
- package/scripts/_dbg-acc-2-diag.mjs +0 -14
- package/scripts/_dbg-acc-2-intervals.mjs +0 -81
- package/scripts/_dbg-acc-3-daq.mjs +0 -48
- package/scripts/_dbg-acc-4-team.mjs +0 -92
- package/scripts/_dbg-acc-5-visual.mjs +0 -63
- package/scripts/_dbg-acc-5b-ws-town.mjs +0 -18
- package/scripts/_dbg-acc-5c-town.mjs +0 -12
- package/scripts/_dbg-acc-6-i18n.mjs +0 -19
- package/scripts/_dbg-agent-tools-audit.mjs +0 -154
- package/scripts/_dbg-agent-workflow-audit.mjs +0 -177
- package/scripts/_dbg-agents-dropdown-shot.py +0 -33
- package/scripts/_dbg-anim-verify.mjs +0 -81
- package/scripts/_dbg-app-shot.mjs +0 -48
- package/scripts/_dbg-autoframe.mjs +0 -103
- package/scripts/_dbg-availability-probe.ts +0 -11
- package/scripts/_dbg-beacon-final.mjs +0 -181
- package/scripts/_dbg-bind-bidi-e2e.mjs +0 -239
- package/scripts/_dbg-callout-near.mjs +0 -108
- package/scripts/_dbg-catalog-smoke.ts +0 -20
- package/scripts/_dbg-cf-line-shot.mjs +0 -18
- package/scripts/_dbg-chan-focus.mjs +0 -49
- package/scripts/_dbg-channel-plugin-ui.mjs +0 -94
- package/scripts/_dbg-cleanup.mjs +0 -31
- package/scripts/_dbg-closedloop-ui-shot.mjs +0 -61
- package/scripts/_dbg-codex-handshake.ts +0 -30
- package/scripts/_dbg-codex-probe.mjs +0 -58
- package/scripts/_dbg-codex-sandbox.ts +0 -58
- package/scripts/_dbg-codex-turn.ts +0 -65
- package/scripts/_dbg-collab-scenario-e2e.mjs +0 -185
- package/scripts/_dbg-config-smoke.ts +0 -28
- package/scripts/_dbg-console-audit.mjs +0 -61
- package/scripts/_dbg-console-probe.mjs +0 -23
- package/scripts/_dbg-context-inject-audit.mjs +0 -231
- package/scripts/_dbg-cpu-profile.mjs +0 -53
- package/scripts/_dbg-crash-recovery.mjs +0 -143
- package/scripts/_dbg-crop-shot.mjs +0 -16
- package/scripts/_dbg-cross-channel-e2e.mjs +0 -157
- package/scripts/_dbg-cross-team-visibility-e2e.mjs +0 -129
- package/scripts/_dbg-crush-probe.sh +0 -21
- package/scripts/_dbg-crush-spawn-probe.ts +0 -22
- package/scripts/_dbg-daq-acc-probe.mjs +0 -24
- package/scripts/_dbg-daq-attrib.mjs +0 -34
- package/scripts/_dbg-daq-bind-audit.mjs +0 -119
- package/scripts/_dbg-daq-cadence.mjs +0 -104
- package/scripts/_dbg-daq-debug.mjs +0 -22
- package/scripts/_dbg-daq-diag.mjs +0 -33
- package/scripts/_dbg-daq-e2e.mjs +0 -171
- package/scripts/_dbg-daq-film.mjs +0 -136
- package/scripts/_dbg-daq-filter-e2e.mjs +0 -109
- package/scripts/_dbg-daq-filter-e2e2.mjs +0 -62
- package/scripts/_dbg-daq-final-regression.mjs +0 -78
- package/scripts/_dbg-daq-frame-alarm.mjs +0 -49
- package/scripts/_dbg-daq-frame-ui.mjs +0 -62
- package/scripts/_dbg-daq-frame-ws.mjs +0 -72
- package/scripts/_dbg-daq-full-check.mjs +0 -179
- package/scripts/_dbg-daq-line-note-verify.mjs +0 -61
- package/scripts/_dbg-daq-linebanner-audit.mjs +0 -107
- package/scripts/_dbg-daq-pages-shot.mjs +0 -37
- package/scripts/_dbg-daq-perf.mjs +0 -61
- package/scripts/_dbg-daq-probe.mjs +0 -27
- package/scripts/_dbg-daq-recipe-e2e.mjs +0 -30
- package/scripts/_dbg-daq-redesign-shot.mjs +0 -88
- package/scripts/_dbg-daq-rows-probe.mjs +0 -26
- package/scripts/_dbg-daq-rowstate-e2e.mjs +0 -152
- package/scripts/_dbg-daq-rowstate-shot.mjs +0 -45
- package/scripts/_dbg-daq-rowstate-shot2.mjs +0 -38
- package/scripts/_dbg-daq-tpl.mjs +0 -144
- package/scripts/_dbg-dash-console-check.mjs +0 -49
- package/scripts/_dbg-dash-deep-probe.mjs +0 -61
- package/scripts/_dbg-dash-hitpoint.mjs +0 -44
- package/scripts/_dbg-dash-live-shot.mjs +0 -36
- package/scripts/_dbg-dash-shot.mjs +0 -21
- package/scripts/_dbg-dashboard-shot.mjs +0 -35
- package/scripts/_dbg-dcw-audit.mjs +0 -126
- package/scripts/_dbg-dcw-card-e2e.mjs +0 -108
- package/scripts/_dbg-dcw-channel-ui.mjs +0 -144
- package/scripts/_dbg-dcw-examples.mjs +0 -81
- package/scripts/_dbg-dcw-light-shot.mjs +0 -19
- package/scripts/_dbg-dcw-line-audit.mjs +0 -107
- package/scripts/_dbg-dcw-pause-tpl-audit.mjs +0 -161
- package/scripts/_dbg-dcw-pause-ui.mjs +0 -175
- package/scripts/_dbg-dcw-read-toolface.ts +0 -13
- package/scripts/_dbg-dcw-read-ui.mjs +0 -74
- package/scripts/_dbg-dcw-scene.mjs +0 -72
- package/scripts/_dbg-dcw-shot2.mjs +0 -14
- package/scripts/_dbg-dcw-twin-e2e.mjs +0 -192
- package/scripts/_dbg-diag-mock-loop.mjs +0 -89
- package/scripts/_dbg-diag-watch.mjs +0 -95
- package/scripts/_dbg-docs-site-shot.mjs +0 -32
- package/scripts/_dbg-dsh-probe.mjs +0 -31
- package/scripts/_dbg-dt-interact.mjs +0 -193
- package/scripts/_dbg-error-probe.mjs +0 -54
- package/scripts/_dbg-filter-light-verify.mjs +0 -54
- package/scripts/_dbg-final-acceptance-2.mjs +0 -72
- package/scripts/_dbg-final-acceptance.mjs +0 -192
- package/scripts/_dbg-final-agent-e2e.mjs +0 -151
- package/scripts/_dbg-final-features.mjs +0 -155
- package/scripts/_dbg-final-fixups.mjs +0 -62
- package/scripts/_dbg-final-full-e2e.mjs +0 -218
- package/scripts/_dbg-final-line-e2e.mjs +0 -173
- package/scripts/_dbg-final-shots.mjs +0 -32
- package/scripts/_dbg-final-t6-hitl.mjs +0 -38
- package/scripts/_dbg-final-visual.mjs +0 -29
- package/scripts/_dbg-fix-unused-imports.py +0 -41
- package/scripts/_dbg-focus-range.mjs +0 -115
- package/scripts/_dbg-fresh-scene-e2e.mjs +0 -125
- package/scripts/_dbg-fullchain-e2e.mjs +0 -178
- package/scripts/_dbg-gate-debug.mjs +0 -37
- package/scripts/_dbg-gif-encode.mjs +0 -111
- package/scripts/_dbg-gizmo.mjs +0 -95
- package/scripts/_dbg-glass-probe.mjs +0 -57
- package/scripts/_dbg-glass-shot.mjs +0 -50
- package/scripts/_dbg-glass-sweep.mjs +0 -25
- package/scripts/_dbg-glb-probe.mjs +0 -43
- package/scripts/_dbg-goose-probe.mjs +0 -33
- package/scripts/_dbg-goose-probe.sh +0 -10
- package/scripts/_dbg-hardening-probe.mjs +0 -90
- package/scripts/_dbg-harness-cancel-repro.mjs +0 -81
- package/scripts/_dbg-harness-ui-dbg.py +0 -49
- package/scripts/_dbg-harness-ui-shot.py +0 -109
- package/scripts/_dbg-hero-btn-probe.mjs +0 -21
- package/scripts/_dbg-hidden-check.mjs +0 -21
- package/scripts/_dbg-hmi-audit.mjs +0 -164
- package/scripts/_dbg-home-repro.mjs +0 -24
- package/scripts/_dbg-home-stack.mjs +0 -13
- package/scripts/_dbg-host.mjs +0 -16
- package/scripts/_dbg-huashu-survey.mjs +0 -31
- package/scripts/_dbg-huashu-survey2.mjs +0 -35
- package/scripts/_dbg-huashu-verify.mjs +0 -25
- package/scripts/_dbg-huashu-verify2.mjs +0 -26
- package/scripts/_dbg-hydration-detail.mjs +0 -18
- package/scripts/_dbg-i18n-debug.mjs +0 -27
- package/scripts/_dbg-i18n-debug2.mjs +0 -26
- package/scripts/_dbg-i18n-final.mjs +0 -42
- package/scripts/_dbg-i18n-scan.mjs +0 -38
- package/scripts/_dbg-infra-lifecycle.mjs +0 -44
- package/scripts/_dbg-interval-config.mjs +0 -156
- package/scripts/_dbg-interval-scenario.mjs +0 -126
- package/scripts/_dbg-kicker-check.mjs +0 -11
- package/scripts/_dbg-line-aura-shots.mjs +0 -54
- package/scripts/_dbg-line-control-e2e.mjs +0 -120
- package/scripts/_dbg-line-gate-audit.mjs +0 -108
- package/scripts/_dbg-line-live-e2e.mjs +0 -144
- package/scripts/_dbg-line-repo-test.ts +0 -10
- package/scripts/_dbg-line-scenario-e2e.mjs +0 -256
- package/scripts/_dbg-line-spawn.ts +0 -31
- package/scripts/_dbg-live-engine-probe.mjs +0 -80
- package/scripts/_dbg-login-debug.py +0 -23
- package/scripts/_dbg-login-e2e.mjs +0 -26
- package/scripts/_dbg-logs-ui-e2e.py +0 -126
- package/scripts/_dbg-mcp-bridge-probe.mjs +0 -147
- package/scripts/_dbg-modbus-latency.mjs +0 -22
- package/scripts/_dbg-mqtt-chain-e2e.mjs +0 -90
- package/scripts/_dbg-mqtt-publisher.mjs +0 -17
- package/scripts/_dbg-nav-rpg.mjs +0 -84
- package/scripts/_dbg-nav-shot.mjs +0 -28
- package/scripts/_dbg-nav.mjs +0 -27
- package/scripts/_dbg-oneshot-impl-probe.ts +0 -67
- package/scripts/_dbg-opencode-sse.mjs +0 -101
- package/scripts/_dbg-opencode-start.ts +0 -57
- package/scripts/_dbg-opslog-e2e.mjs +0 -121
- package/scripts/_dbg-opslog-shots.mjs +0 -62
- package/scripts/_dbg-optimization-e2e.mjs +0 -94
- package/scripts/_dbg-orbit.mjs +0 -58
- package/scripts/_dbg-overview-probe.sh +0 -31
- package/scripts/_dbg-panesplitter-fix-check.mjs +0 -62
- package/scripts/_dbg-perms-visual.mjs +0 -36
- package/scripts/_dbg-pg-tcp-probe.cjs +0 -27
- package/scripts/_dbg-phase-e3-monitor.mjs +0 -25
- package/scripts/_dbg-pi-spawn-probe.ts +0 -33
- package/scripts/_dbg-plc-agent-loop.ts +0 -102
- package/scripts/_dbg-plc-e2e.mjs +0 -171
- package/scripts/_dbg-plugin-agent-read.ts +0 -56
- package/scripts/_dbg-plugin-config-ui.mjs +0 -111
- package/scripts/_dbg-plugin-matrix.mjs +0 -212
- package/scripts/_dbg-plugin-panels-ui.mjs +0 -54
- package/scripts/_dbg-plugin-sink-rest.mjs +0 -70
- package/scripts/_dbg-plugin-sink-ui.mjs +0 -81
- package/scripts/_dbg-plugin-tools-inject.ts +0 -80
- package/scripts/_dbg-plugin-ui-wizard.mjs +0 -125
- package/scripts/_dbg-plugin-verify-e2e.mjs +0 -123
- package/scripts/_dbg-plugins-e2e.mjs +0 -101
- package/scripts/_dbg-pop-clamp-verify.mjs +0 -77
- package/scripts/_dbg-preset-e2e.mjs +0 -116
- package/scripts/_dbg-preview-console.mjs +0 -28
- package/scripts/_dbg-preview-minrepro.mjs +0 -156
- package/scripts/_dbg-preview-pixels.mjs +0 -93
- package/scripts/_dbg-prompts-hotreload-test.ts +0 -76
- package/scripts/_dbg-prompts-resolve-test.ts +0 -39
- package/scripts/_dbg-quality-pages-e2e.mjs +0 -84
- package/scripts/_dbg-query-cancel.ts +0 -12
- package/scripts/_dbg-qwen-acp-probe.mjs +0 -30
- package/scripts/_dbg-qwen-capture.mjs +0 -21
- package/scripts/_dbg-rail-tree-e2e.mjs +0 -183
- package/scripts/_dbg-real-driver-e2e.mjs +0 -55
- package/scripts/_dbg-redesign-shots.mjs +0 -34
- package/scripts/_dbg-registry-smoke.ts +0 -14
- package/scripts/_dbg-release-smoke.mjs +0 -104
- package/scripts/_dbg-repo-setup-verify.mjs +0 -31
- package/scripts/_dbg-resolve-probe.ts +0 -6
- package/scripts/_dbg-restart-persist.mjs +0 -41
- package/scripts/_dbg-retention-test.ts +0 -25
- package/scripts/_dbg-rollback-mgr-audit.mjs +0 -169
- package/scripts/_dbg-rpg.mjs +0 -71
- package/scripts/_dbg-sc001-dispatch.mjs +0 -63
- package/scripts/_dbg-scenario-final-shot.mjs +0 -24
- package/scripts/_dbg-scenario-phase-e2.mjs +0 -75
- package/scripts/_dbg-scenario-phase-e3.mjs +0 -96
- package/scripts/_dbg-scenario-phase1.mjs +0 -90
- package/scripts/_dbg-scenario-phase2.mjs +0 -105
- package/scripts/_dbg-scenario-phase3-monitor.mjs +0 -48
- package/scripts/_dbg-scenario-phase3.mjs +0 -111
- package/scripts/_dbg-scene-polish-shot.mjs +0 -118
- package/scripts/_dbg-selring-probe.mjs +0 -47
- package/scripts/_dbg-settings-draft-probe.mjs +0 -39
- package/scripts/_dbg-settings-probe.mjs +0 -33
- package/scripts/_dbg-setup-e2e.mjs +0 -88
- package/scripts/_dbg-sideinfo.mjs +0 -101
- package/scripts/_dbg-sim-keeper.mjs +0 -100
- package/scripts/_dbg-splitter.mjs +0 -88
- package/scripts/_dbg-swatch-check.mjs +0 -10
- package/scripts/_dbg-task-cancel-probe.mjs +0 -66
- package/scripts/_dbg-team-drill.mjs +0 -173
- package/scripts/_dbg-town-alarm-e2e.mjs +0 -40
- package/scripts/_dbg-town-beauty-shots.mjs +0 -54
- package/scripts/_dbg-town-daq-shot.mjs +0 -26
- package/scripts/_dbg-town-full-e2e.mjs +0 -104
- package/scripts/_dbg-town-gate.mjs +0 -44
- package/scripts/_dbg-town-ins-probe.mjs +0 -37
- package/scripts/_dbg-town-perf.mjs +0 -50
- package/scripts/_dbg-town-polish-shots.mjs +0 -82
- package/scripts/_dbg-town-realtime.mjs +0 -42
- package/scripts/_dbg-town-shot.py +0 -25
- package/scripts/_dbg-town-shot3.mjs +0 -17
- package/scripts/_dbg-town-truth.mjs +0 -37
- package/scripts/_dbg-town-truth2.mjs +0 -27
- package/scripts/_dbg-transform-audit.mjs +0 -98
- package/scripts/_dbg-trend-expand-test.mjs +0 -38
- package/scripts/_dbg-twindaq-focus.mjs +0 -81
- package/scripts/_dbg-ui-polish-shot.mjs +0 -43
- package/scripts/_dbg-ui-polish-verify1.mjs +0 -92
- package/scripts/_dbg-ui-polish-verify2.mjs +0 -50
- package/scripts/_dbg-ui-polish-verify3.mjs +0 -51
- package/scripts/_dbg-ui-polish-verify4.mjs +0 -50
- package/scripts/_dbg-ui-shot.mjs +0 -26
- package/scripts/_dbg-ui-shots.mjs +0 -28
- package/scripts/_dbg-ui-survey.py +0 -52
- package/scripts/_dbg-unify-shot.mjs +0 -43
- package/scripts/_dbg-uplink-probe.mjs +0 -36
- package/scripts/_dbg-wizard-preview-shot.mjs +0 -58
- package/scripts/_dbg-wizard-ui-e2e.mjs +0 -93
- package/scripts/_dbg-ws-probe.mjs +0 -86
- package/scripts/_dbg-ws-shot2.mjs +0 -23
- package/scripts/_dbg-wsdot-sanity.mjs +0 -25
- package/scripts/_dev-stack.mjs +0 -46
- package/scripts/_http-driver-probe.mjs +0 -30
- package/scripts/_mqtt-driver-probe.mjs +0 -30
- package/scripts/_newdriver-rest-probe.mjs +0 -100
- package/scripts/_node-state-probe.mjs +0 -5
- package/scripts/_opcua-driver-probe.mjs +0 -31
- package/scripts/_rtu-debug.mjs +0 -41
- package/scripts/_rtu-direct.mjs +0 -6
- package/scripts/_rtu-driver-probe.mjs +0 -53
- package/scripts/_spike-pitui.mjs +0 -116
- package/scripts/_tmp-args-probe.mjs +0 -20
- package/scripts/_tmp-cyc-entry.mjs +0 -8
- package/scripts/_tmp-cyc-main.mjs +0 -5
- package/scripts/_tmp-cyc-mod.mjs +0 -2
- package/scripts/_tmp-cycle-a.mjs +0 -6
- package/scripts/_tmp-cycle-b.mjs +0 -2
- package/scripts/_tmp-cycle-probe.mjs +0 -4
- package/scripts/_tmp-entry-variant.mjs +0 -2
- package/scripts/_tmp-help-probe.mjs +0 -19
- package/scripts/_tmp-help-probe2.mjs +0 -2
- package/scripts/_tmp-trace-preload.mjs +0 -1
- package/scripts/_wizard-shots.mjs +0 -90
- package/scripts/acceptance-suite.py +0 -207
- package/scripts/aml-agent-bridge.ts +0 -230
- package/scripts/aml-industrial-loop.ts +0 -232
- package/scripts/build-film-devices.mjs +0 -227
- package/scripts/collab-live-test.py +0 -177
- package/scripts/debug-mcp-http.ts +0 -64
- package/scripts/demo-lead-worker.ts +0 -256
- package/scripts/demo-modes.ts +0 -415
- package/scripts/demo-omp-channel.ts +0 -135
- package/scripts/design-preflight.mjs +0 -223
- package/scripts/design-verify-templates.mjs +0 -110
- package/scripts/design-verify.mjs +0 -170
- package/scripts/dev-window.cmd +0 -6
- package/scripts/device-line-restore.mjs +0 -34
- package/scripts/diag-lead-status.ts +0 -101
- package/scripts/e2e-a2a-steer-live.mjs +0 -193
- package/scripts/e2e-dual-drive-comm.ts +0 -259
- package/scripts/e2e-full-scenario.ts +0 -321
- package/scripts/e2e-harness-consistency.ts +0 -204
- package/scripts/e2e-harness-provider-task.mjs +0 -126
- package/scripts/e2e-line-live.mjs +0 -144
- package/scripts/e2e-memory-persistence.ts +0 -320
- package/scripts/e2e-omp-modes.ts +0 -274
- package/scripts/e2e-omp-realtime.ts +0 -258
- package/scripts/e2e-plc-scenario.mjs +0 -292
- package/scripts/e2e-real-scenario.mjs +0 -466
- package/scripts/e2e-tab-close.mjs +0 -136
- package/scripts/e2e-token-ui.mjs +0 -149
- package/scripts/final-soup-run.py +0 -192
- package/scripts/final-soup-watch.py +0 -83
- package/scripts/i18n-codemod.mjs +0 -173
- package/scripts/i18n-fix-en.py +0 -28
- package/scripts/i18n-fix-en2.py +0 -31
- package/scripts/i18n-merge.mjs +0 -191
- package/scripts/migrate-local-time.mjs +0 -123
- package/scripts/omp-real-test.py +0 -328
- package/scripts/team-plugins-api-smoke.mjs +0 -149
- package/scripts/test-a2a-relay.mjs +0 -222
- package/scripts/test-aml-integration.ts +0 -159
- package/scripts/test-aml-job.ts +0 -174
- package/scripts/test-aml-unit.ts +0 -184
- package/scripts/test-api-client.ts +0 -108
- package/scripts/test-api-suite.mjs +0 -271
- package/scripts/test-block-consumption.mjs +0 -194
- package/scripts/test-cmd-render.mjs +0 -218
- package/scripts/test-collab-omp.mjs +0 -192
- package/scripts/test-config-precedence.ts +0 -124
- package/scripts/test-context-governor.ts +0 -176
- package/scripts/test-daq-frames.ts +0 -180
- package/scripts/test-daq-minio.ts +0 -77
- package/scripts/test-dedup-logic.ts +0 -132
- package/scripts/test-e2e-collaboration.ts +0 -262
- package/scripts/test-e2e-monitor.ts +0 -192
- package/scripts/test-event-history.ts +0 -112
- package/scripts/test-exec-modes.ts +0 -316
- package/scripts/test-fifo-realtime.mjs +0 -193
- package/scripts/test-final-e2e.mjs +0 -290
- package/scripts/test-goal-summary.ts +0 -202
- package/scripts/test-harness-liveness.ts +0 -109
- package/scripts/test-harness-terminal.ts +0 -164
- package/scripts/test-header-trail.mjs +0 -95
- package/scripts/test-hitl.ts +0 -360
- package/scripts/test-koda-restyle.mjs +0 -105
- package/scripts/test-lane-raw.ts +0 -67
- package/scripts/test-lanes-history-render.mjs +0 -138
- package/scripts/test-loop-omp.mjs +0 -154
- package/scripts/test-mdlite.ts +0 -53
- package/scripts/test-memory-brief-chronicle.ts +0 -180
- package/scripts/test-memory-rrf-mmr.ts +0 -114
- package/scripts/test-mock-collab.mjs +0 -226
- package/scripts/test-modern-render.mjs +0 -174
- package/scripts/test-omp-terminal.mjs +0 -187
- package/scripts/test-plugin-ext.ts +0 -173
- package/scripts/test-prompts-loader.ts +0 -56
- package/scripts/test-real-scenario.mjs +0 -290
- package/scripts/test-stream-render.ts +0 -37
- package/scripts/test-task-drawer.mjs +0 -204
- package/scripts/test-task-invariants.mjs +0 -169
- package/scripts/test-town-3d.mjs +0 -121
- package/scripts/test-town-layout.mjs +0 -200
- package/scripts/test-town-page.mjs +0 -136
- package/scripts/test-town-scene-math.ts +0 -169
- package/scripts/test-town-twin.mjs +0 -121
- package/scripts/test-town-upload.mjs +0 -89
- package/scripts/test-town-user-flow.mjs +0 -619
- package/scripts/test-town-world.mjs +0 -76
- package/scripts/test-town-wuwa.mjs +0 -198
- package/scripts/test-user-isolation.mjs +0 -193
- package/scripts/test-workshop-entries.ts +0 -370
- package/scripts/test-workspace-api.ts +0 -329
- package/scripts/test-ws-aep.mjs +0 -187
- package/scripts/test-ws-protocol.ts +0 -134
- package/scripts/town-demo-seed.mjs +0 -75
- package/scripts/town-scene-clear.mjs +0 -56
- package/scripts/verify-exec-modes-report.ts +0 -248
- package/scripts/verify-lead-mail.ts +0 -188
- package/scripts/verify-page-smoke.mjs +0 -87
- package/scripts/ws-test.mjs +0 -176
- package/scripts/ws-test.py +0 -4
package/shared/config/home.mjs
CHANGED
|
@@ -188,6 +188,61 @@ export function ensureDataDir(cwd = process.cwd(), env = process.env) {
|
|
|
188
188
|
return dir
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
/**
|
|
192
|
+
* AML 平台数据根(<amlRoot>):**项目目录下的 ./aml**,与配置根(.AgentWorkShop)分离。
|
|
193
|
+
*
|
|
194
|
+
* 为什么单独一个根、而不是挂在 <configRoot>/data/aml 下:
|
|
195
|
+
* - AML 的产物是「可移植的资产」——数据集数组、训练作业工作区、ONNX 模型工件。
|
|
196
|
+
* 这些需要能被 git/rsync/打包带走、被外部 Python 工具直接读取、被人在资源管理器里
|
|
197
|
+
* 打开查看;埋在 .AgentWorkShop/data 里(那是运行时状态目录,常被 GC/清理)不合适。
|
|
198
|
+
* - uv 虚拟环境固定在 <amlRoot>/.venv,与数据集/模型同级,整个 ./aml 可以整体删除重建。
|
|
199
|
+
*
|
|
200
|
+
* 解析优先级:
|
|
201
|
+
* ① AW_AML_DIR 环境变量(显式覆盖;测试隔离与自定义部署用)
|
|
202
|
+
* ② repo 模式 → <检出根>/aml (cwd 向上找 config.yml + nuxt.config.ts)
|
|
203
|
+
* ③ home 模式(全局安装) → <配置根>/aml (~/.AgentWorkShop/aml)
|
|
204
|
+
* ④ 兜底 → <cwd>/aml
|
|
205
|
+
*
|
|
206
|
+
* @returns {{ dir: string, mode: 'env'|'repo'|'home'|'cwd', projectRoot: string|null }}
|
|
207
|
+
*/
|
|
208
|
+
export function resolveAmlRoot({ cwd = process.cwd(), env = process.env } = {}) {
|
|
209
|
+
if (env.AW_AML_DIR && String(env.AW_AML_DIR).trim()) {
|
|
210
|
+
return { dir: resolve(String(env.AW_AML_DIR).trim()), mode: 'env', projectRoot: null }
|
|
211
|
+
}
|
|
212
|
+
if (env.AW_MODE !== 'home') {
|
|
213
|
+
const repoRoot = findRepoRoot(cwd)
|
|
214
|
+
if (repoRoot) return { dir: join(repoRoot, 'aml'), mode: 'repo', projectRoot: repoRoot }
|
|
215
|
+
}
|
|
216
|
+
const forceHome = env.AW_MODE === 'home'
|
|
217
|
+
if (forceHome) return { dir: join(awHome(env), 'aml'), mode: 'home', projectRoot: null }
|
|
218
|
+
// 非检出目录(既无 config.yml+nuxt.config.ts):配置根优先,最后才落 cwd
|
|
219
|
+
const localRoot = findLocalConfigRoot(cwd)
|
|
220
|
+
if (localRoot) return { dir: join(localRoot, 'aml'), mode: 'home', projectRoot: null }
|
|
221
|
+
return { dir: join(resolve(cwd), 'aml'), mode: 'cwd', projectRoot: null }
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** AML 数据根绝对路径(仅解析,不创建) */
|
|
225
|
+
export function amlDirFor(cwd = process.cwd(), env = process.env) {
|
|
226
|
+
return resolveAmlRoot({ cwd, env }).dir
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 确保 AML 数据根存在并落标准子目录骨架:
|
|
231
|
+
* .venv/ uv 创建的解释器环境
|
|
232
|
+
* datasets/<id>/ 数据集快照(spec.json/manifest.json/report.json/arrays/)
|
|
233
|
+
* jobs/<id>/ 训练作业(workspace/run.log/artifacts/)
|
|
234
|
+
* models/<id>/ 模型工件(model.onnx/io_spec.json)
|
|
235
|
+
* runtime/ 运行时状态(uv 安装记录/环境探针缓存)
|
|
236
|
+
* tools/ 项目本地自动安装的 uv 二进制(免管理员、不污染 PATH)
|
|
237
|
+
*/
|
|
238
|
+
export function ensureAmlDir(cwd = process.cwd(), env = process.env) {
|
|
239
|
+
const dir = amlDirFor(cwd, env)
|
|
240
|
+
for (const sub of ['datasets', 'jobs', 'models', 'runtime', 'tools']) {
|
|
241
|
+
mkdirSync(join(dir, sub), { recursive: true })
|
|
242
|
+
}
|
|
243
|
+
return dir
|
|
244
|
+
}
|
|
245
|
+
|
|
191
246
|
export default {
|
|
192
247
|
HOME_DIRNAME,
|
|
193
248
|
awHome,
|
|
@@ -197,4 +252,7 @@ export default {
|
|
|
197
252
|
resolveRunMode,
|
|
198
253
|
dataDirFor,
|
|
199
254
|
ensureDataDir,
|
|
255
|
+
resolveAmlRoot,
|
|
256
|
+
amlDirFor,
|
|
257
|
+
ensureAmlDir,
|
|
200
258
|
}
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
|
|
88
88
|
{ "key": "workshop.idle_sweep_ms", "type": "number", "group": "workshop", "label": "空产线扫描(ms)", "labelKey": "settings.runtime.workshop.idleSweepMs", "description": "车间空闲产线扫描周期", "applies": "restart", "default": 30000, "min": 5000, "max": 600000 },
|
|
89
89
|
{ "key": "workshop.idle_grace_ms", "type": "number", "group": "workshop", "label": "空闲宽限(ms)", "labelKey": "settings.runtime.workshop.idleGraceMs", "description": "产线空闲判定的宽限时长", "applies": "restart", "default": 120000, "min": 10000, "max": 3600000 },
|
|
90
|
+
{ "key": "workshop.stall_ms", "type": "number", "group": "workshop", "label": "任务停滞判定(ms)", "labelKey": "settings.runtime.workshop.stallMs", "description": "运行中任务进度停滞超过该时长先催办一次;再过同样时长仍无变化则收口:有产出保留成果(COMPLETED),完全无产出才取消。默认 5 分钟", "applies": "restart", "default": 300000, "min": 10000, "max": 7200000 },
|
|
90
91
|
|
|
91
92
|
{ "key": "backup.disabled", "type": "boolean", "group": "backup", "label": "禁用自动备份", "labelKey": "settings.runtime.backup.disabled", "description": "关闭运行数据自动备份", "applies": "restart", "default": false, "aliases": ["BACKUP_DISABLED"] },
|
|
92
93
|
{ "key": "backup.interval_hours", "type": "number", "group": "backup", "label": "备份间隔(h)", "labelKey": "settings.runtime.backup.intervalHours", "description": "自动备份间隔小时数", "applies": "restart", "default": 24, "min": 1, "max": 720, "aliases": ["BACKUP_INTERVAL_HOURS"] },
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
{ "key": "aml.python.indexUrl", "type": "string", "group": "aml", "label": "pip 镜像源", "labelKey": "settings.runtime.aml.indexUrl", "description": "venv 依赖安装的 PyPI 兼容镜像(空=默认源);仅 venv 供给阶段使用,训练进程不联网", "applies": "restart", "default": "", "aliases": ["AML_PYTHON_INDEX_URL"] },
|
|
106
107
|
{ "key": "aml.job.timeoutMs", "type": "number", "group": "aml", "label": "作业墙钟超时(ms)", "labelKey": "settings.runtime.aml.jobTimeoutMs", "description": "单个训练作业的墙钟上限,超时杀整棵进程树", "applies": "live", "default": 1800000, "min": 30000, "max": 21600000, "aliases": ["AML_JOB_TIMEOUT_MS"] },
|
|
107
108
|
{ "key": "aml.job.maxConcurrent", "type": "number", "group": "aml", "label": "最大并发作业", "labelKey": "settings.runtime.aml.jobMaxConcurrent", "description": "同时运行的训练子进程数上限(FIFO 队列)", "applies": "live", "default": 2, "min": 1, "max": 8, "aliases": ["AML_JOB_MAX_CONCURRENT"] },
|
|
108
|
-
{ "key": "aml.job.diskQuotaMb", "type": "number", "group": "aml", "label": "AML 磁盘配额(MB)", "labelKey": "settings.runtime.aml.jobDiskQuotaMb", "description": "
|
|
109
|
+
{ "key": "aml.job.diskQuotaMb", "type": "number", "group": "aml", "label": "AML 磁盘配额(MB)", "labelKey": "settings.runtime.aml.jobDiskQuotaMb", "description": "./aml 资产根总配额(数据集/作业/模型/虚拟环境),超限拒绝新建数据集/作业并提示清扫", "applies": "live", "default": 2048, "min": 128, "max": 1048576, "aliases": ["AML_DISK_QUOTA_MB"] },
|
|
109
110
|
{ "key": "aml.job.stallMs", "type": "number", "group": "aml", "label": "作业停摆判定(ms)", "labelKey": "settings.runtime.aml.jobStallMs", "description": "无进度协议输出持续该时长则判定停摆并终止作业", "applies": "live", "default": 600000, "min": 60000, "max": 7200000, "aliases": ["AML_JOB_STALL_MS"] },
|
|
110
111
|
{ "key": "aml.dataset.maxRows", "type": "number", "group": "aml", "label": "数据集行数上限", "labelKey": "settings.runtime.aml.datasetMaxRows", "description": "单个数据集滑窗样本上限,超出建议加粗 beatMs", "applies": "live", "default": 200000, "min": 1000, "max": 5000000 },
|
|
111
112
|
{ "key": "aml.dataset.retentionDays", "type": "number", "group": "aml", "label": "无引用数据集保留(天)", "labelKey": "settings.runtime.aml.datasetRetentionDays", "description": "无模型/实验引用的数据集快照保留天数(GC)", "applies": "live", "default": 30, "min": 1, "max": 3650 },
|
package/shared/lru.mjs
CHANGED
|
@@ -32,7 +32,10 @@ export class LruMap {
|
|
|
32
32
|
has(key) { return this.map.has(key) }
|
|
33
33
|
|
|
34
34
|
get(key) {
|
|
35
|
-
if (!this.map.has(key)) {
|
|
35
|
+
if (!this.map.has(key)) {
|
|
36
|
+
this.misses += 1
|
|
37
|
+
return undefined
|
|
38
|
+
}
|
|
36
39
|
// 访问即提升:删了重插(值不变),维持「尾部最新」
|
|
37
40
|
const v = this.map.get(key)
|
|
38
41
|
this.map.delete(key)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,J as t,X as n,Y as r,Z as i,d as a,n as o,o as s,p as c,r as l,t as u,u as d,v as f}from"./rqZ-1SoP.js";import{D as p,O as m,ot as h,vt as g,w as _}from"./BSCpFtzG.js";var v=Symbol(`layout-meta`),y=Symbol(`layout`),b=Symbol(`route`),x=i({docsBase:r,reporters:n});function S(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function C(e,t,n=`.`,r){if(!S(t))return C(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:S(a)&&S(i[t])?C(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function w(e){return(...t)=>t.reduce((t,n)=>C(t,n,``,e),{})}var T=w();function E(e,t){try{return t in e}catch{return!1}}var D=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:M(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=j(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function O(e){if(typeof e==`string`)return new D(e);if(k(e))return e;let t=new D(e.message??e.statusMessage??``,{cause:e.cause||e});if(E(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=M(e.statusCode,t.statusCode):e.status&&(t.statusCode=M(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;j(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function k(e){return e?.constructor?.__h3_error__===!0}var A=/[^\u0009\u0020-\u007E]/g;function j(e=``){return e.replace(A,``)}function M(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var N=()=>e()?.$router;function P(e){let t=e.scope,n=h();for(;n;){if(n===t)return!0;n=n.parent}return!1}var F=(()=>{if(p()){let t=_();if(!t||P(t))return m(b,e()._route)}return e()._route});function I(e){return e}var L=(t,n,r={})=>{let i=e(),a=r.global||typeof t!=`string`,o=typeof t==`string`?n:t;if(!o){x.NUXT_E2006({cause:t});return}a?i._middleware.global.push(o):i._middleware.named[t]=o},R=()=>{try{if(e()._processingMiddleware)return!0}catch{return!1}return!1},z=(t,n)=>{t||=`/`;let r=typeof t==`string`?t:`path`in t?B(t):N().resolve(t).href;if(n?.open){let{protocol:e}=new URL(r,window.location.href);if(e&&s(e))throw x.NUXT_E2002({toPath:r,protocol:e});let{target:t=`_blank`,windowFeatures:i={}}=n.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(r,t,a.join(`, `)),Promise.resolve()}let i=l(r,{acceptRelative:!0}),o=n?.external||i;if(o){if(!n?.external)throw x.NUXT_E2001({toPath:r});let{protocol:e}=new URL(r,window.location.href);if(e&&s(e))throw x.NUXT_E2002({toPath:r,protocol:e})}let c=R();if(!o&&c){if(n?.replace){if(typeof t==`string`){let{pathname:e,search:n,hash:r}=a(t);return{path:e,...n&&{query:d(n)},...r&&{hash:r},replace:!0}}return{...t,replace:!0}}return t}let u=N(),f=e();if(o)return f._scope.stop(),n?.replace?location.replace(r):location.href=r,c?f.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let p=typeof t==`string`?V(t):t;return n?.replace?u.replace(p):u.push(p)};function B(e){return c(e.path||``,e.query||{})+(e.hash||``)}function V(e){let t=a(e);return o(u(t.pathname))+t.search+t.hash}var H=`__nuxt_error`,U=()=>g(e().payload,`error`),W=t=>{let n=Y(t);try{let t=U();e().hooks.callHook(`app:error`,n),t.value||=n}catch{throw n}return n},G=(e,n)=>{let r=e.callHook(`app:error`,Y(n));return t.NUXT_E1012({userAgent:navigator.userAgent,cause:n}),r},K=async(e,t)=>{if(f(navigator.userAgent)){await G(e,t);return}await e.runWithContext(()=>W(t))},q=async(t={})=>{let n=e(),r=U();n.callHook(`app:error:cleared`,t),t.redirect&&await N().replace(t.redirect),r.value=void 0},J=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Y=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=O(e);return Object.defineProperty(t,H,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};export{v as _,J as a,L as c,z as d,B as f,x as g,T as h,Y as i,I as l,N as m,K as n,W as o,F as p,q as r,U as s,G as t,V as u,y as v,b as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as e}from"./rqZ-1SoP.js";import{E as t}from"./BSCpFtzG.js";import{h as n}from"./-6OnbLFb.js";var r=typeof document<`u`;function i(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function a(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&i(e.default)}var o=Object.assign;function s(e,t){let n={};for(let r in t){let i=t[r];n[r]=l(i)?i.map(e):e(i)}return n}var c=()=>{},l=Array.isArray;function u(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var d=/#/g,ee=/&/g,f=/\//g,p=/=/g,m=/\?/g,h=/\+/g,te=/%5B/g,ne=/%5D/g,g=/%5E/g,_=/%60/g,v=/%7B/g,y=/%7C/g,b=/%7D/g,re=/%20/g;function x(e){return e==null?``:encodeURI(``+e).replace(y,`|`).replace(te,`[`).replace(ne,`]`)}function ie(e){return x(e).replace(v,`{`).replace(b,`}`).replace(g,`^`)}function S(e){return x(e).replace(h,`%2B`).replace(re,`+`).replace(d,`%23`).replace(ee,`%26`).replace(_,"`").replace(v,`{`).replace(b,`}`).replace(g,`^`)}function ae(e){return S(e).replace(p,`%3D`)}function oe(e){return x(e).replace(d,`%23`).replace(m,`%3F`)}function se(e){return oe(e).replace(f,`%2F`)}function C(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var w=/\/$/,T=e=>e.replace(w,``);function E(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=P(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:C(o)}}function D(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function O(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function k(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&A(t.matched[r],n.matched[i])&&j(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function A(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function j(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!M(e[n],t[n]))return!1;return!0}function M(e,t){return l(e)?N(e,t):l(t)?N(t,e):e?.valueOf()===t?.valueOf()}function N(e,t){return l(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function P(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var F={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},I=function(e){return e.pop=`pop`,e.push=`push`,e}({}),L=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function R(e){if(!e){if(r){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),T(e)}var z=/^[^#]+#/;function B(e,t){return e.replace(z,`#`)+t}function V(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var H=()=>({left:window.scrollX,top:window.scrollY});function U(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=V(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function W(e,t){return(history.state?history.state.position-t:-1)+e}var G=new Map;function K(e,t){G.set(e,t)}function ce(e){let t=G.get(e);return G.delete(e),t}function le(e){return typeof e==`string`||e&&typeof e==`object`}function ue(e){return typeof e==`string`||typeof e==`symbol`}var q=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),J=Symbol(``);q.MATCHER_NOT_FOUND,q.NAVIGATION_GUARD_REDIRECT,q.NAVIGATION_ABORTED,q.NAVIGATION_CANCELLED,q.NAVIGATION_DUPLICATED;function Y(e,t){return o(Error(),{type:e,[J]:!0},t)}function de(e,t){return e instanceof Error&&J in e&&(t==null||!!(e.type&t))}function fe(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(h,` `),i=r.indexOf(`=`),a=C(i<0?r:r.slice(0,i)),o=i<0?null:C(r.slice(i+1));if(a in t){let e=t[a];l(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function pe(e){let t=``;for(let n in e){let r=e[n];if(n=ae(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(l(r)?r.map(e=>e&&S(e)):[r&&S(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function me(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=l(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var he=Symbol(``),ge=Symbol(``),_e=Symbol(``),ve=Symbol(``),ye=Symbol(``);function be(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Y(q.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):le(e)?c(Y(q.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function xe(e,t,n,r,o=e=>e()){let s=[];for(let c of e)for(let e in c.components){let l=c.components[e];if(!(t!==`beforeRouteEnter`&&!c.instances[e])){if(i(l)){let i=(l.__vccOpts||l)[t];i&&s.push(X(i,n,r,c,e,o))}else{let i=l();s.push(()=>i.then(i=>{if(!i)throw Error(`Couldn't resolve component "${e}" at "${c.path}"`);let s=a(i)?i.default:i;c.mods[e]=i,c.components[e]=s;let l=(s.__vccOpts||s)[t];return l&&X(l,n,r,c,e,o)()}))}}}return s}function Se(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>A(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>A(e,s))||i.push(s))}return[n,r,i]}var Z=(n,r)=>({default:()=>n?t(e,n===!0?{}:n,r):r.default?.()}),Ce=/(:\w+)\([^)]+\)/g,we=/(:\w+)[?+*]/g,Te=/:\w+/g;function Q(e){let t=e?.meta.key??e.path.replace(Ce,`$1`).replace(we,`$1`).replace(Te,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Ee(e,t){return e===t||t===F?!1:Q(e)!==Q(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}var De=/^[a-z][a-z0-9-]*$/i;function Oe(e,t){return e&&De.test(e)?e:t}function $(e){return Array.isArray(e)?e:[e]}function ke(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?$(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?$(n.onBeforeLeave):void 0});return n(...t)}export{u as A,U as B,r as C,j as D,k as E,E as F,ge as G,D as H,ve as I,_e as L,R as M,me as N,A as O,fe as P,ye as R,l as S,ue as T,O as U,pe as V,be as W,Se as _,q as a,W as b,F as c,H as d,B as f,se as g,ie as h,Oe as i,c as j,he as k,s as l,C as m,Z as n,L as o,Y as p,Ee as r,I as s,ke as t,o as u,xe as v,de as w,X as x,ce as y,K as z};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{G as e,I as t,K as n,W as r,q as i}from"./rqZ-1SoP.js";import{A as a,B as o,C as s,F as c,G as l,H as u,Ht as d,M as f,O as p,Q as m,St as h,U as g,Ut as _,V as v,Wt as y,Y as b,a as x,b as S,bt as C,c as w,d as T,dt as E,et as D,f as O,ft as k,g as A,gt as j,h as M,lt as N,m as P,mt as F,nt as I,p as L,q as R,rt as z,t as B,x as V,y as H,z as U}from"./BSCpFtzG.js";import{d as W,p as G}from"./-6OnbLFb.js";import{n as K}from"./B5S_UyaC.js";import{n as q}from"./BeIfu4N3.js";import{t as J}from"./DpojD719.js";import{t as Y}from"./DXRZPxGs.js";import{$ as X,At as Z,Ct as ee,E as te,J as ne,O as re,Q as ie,X as ae,Z as oe,at as se,ct as ce,d as le,et as ue,h as de,it as fe,j as pe,kt as Q,m as me,n as he,pt as ge,t as _e,tt as ve,u as ye}from"./BDUjyaF4.js";import{$ as be,c as xe,i as Se}from"./DtBu71ev.js";import{t as Ce}from"./BfGc7TJp.js";import{G as we,V as Te,t as Ee}from"./VLI2Zy4t.js";import{n as De,r as Oe,t as ke}from"./BuvcLKh1.js";import{a as Ae,i as je,t as Me}from"./BN_PdN3J.js";import{f as Ne,p as Pe,r as $,s as Fe,x as Ie}from"./D-Ca4BGY.js";import{a as Le,i as Re,n as ze,r as Be,t as Ve}from"./Cn3J3NXR.js";import{i as He,n as Ue,r as We,t as Ge}from"./DzuC31-i.js";import{t as Ke}from"./CKfhtOt7.js";import{n as qe,r as Je,t as Ye}from"./CmHzfVc5.js";import{t as Xe}from"./BBwMH_hG.js";import{t as Ze}from"./DTYBfjRY.js";import{t as Qe}from"./lO5tpDZ5.js";import{t as $e}from"./D1z7i2UP.js";import{t as et}from"./ORt9oDIy2.js";import{t as tt}from"./C77oC8yC2.js";import{n as nt,r as rt,t as it}from"./DZzGarBE2.js";import{t as at}from"./Bp5luxkg2.js";import{t as ot}from"./C9f8QMp12.js";import{t as st}from"./DoLasgPj2.js";import{t as ct}from"./BcrN7QEl2.js";import{t as lt}from"./C4OAdbVK2.js";import{t as ut}from"./G0qIw7Gq2.js";import{a as dt,c as ft,d as pt,f as mt,i as ht,l as gt,m as _t,n as vt,o as yt,r as bt,s as xt,t as St,u as Ct}from"./arUY5dyq2.js";import{t as wt}from"./DoTdlVVe2.js";import{t as Tt}from"./CNs_Ozdc2.js";import{t as Et}from"./DeYsUzhr.js";import{t as Dt}from"./BBBtwOpo.js";import{n as Ot,t as kt}from"./BgTB6h_q.js";function At(e){let{prefixCls:t,value:n,current:r,offset:i=0}=e,a;return i&&(a={position:`absolute`,top:`${i}00%`,left:0}),V(`p`,{style:a,class:ee(`${t}-only-unit`,{current:r})},[n])}function jt(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}var Mt=s({compatConfig:{MODE:3},name:`SingleNumber`,props:{prefixCls:String,value:String,count:Number},setup(e){let t=O(()=>Number(e.value)),n=O(()=>Math.abs(e.count)),r=k({prevValue:t.value,prevCount:n.value}),i=()=>{r.prevValue=t.value,r.prevCount=n.value},a=F();return D(t,()=>{clearTimeout(a.value),a.value=setTimeout(()=>{i()},1e3)},{flush:`post`}),o(()=>{clearTimeout(a.value)}),()=>{let a,o={},s=t.value;if(r.prevValue===s||Number.isNaN(s)||Number.isNaN(r.prevValue))a=[At(Q(Q({},e),{current:!0}))],o={transition:`none`};else{a=[];let t=s+10,i=[];for(let e=s;e<=t;e+=1)i.push(e);let c=i.findIndex(e=>e%10===r.prevValue);a=i.map((t,n)=>{let r=t%10;return At(Q(Q({},e),{value:r,offset:n-c,current:n===c}))});let l=r.prevCount<n.value?1:-1;o={transform:`translateY(${-jt(r.prevValue,s,l)}00%)`}}return V(`span`,{class:`${e.prefixCls}-only`,style:o,onTransitionend:()=>i()},[a])}}}),Nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Pt={prefixCls:String,count:_e.any,component:String,title:_e.any,show:Boolean},Ft=s({compatConfig:{MODE:3},name:`ScrollNumber`,inheritAttrs:!1,props:Pt,setup(e,t){let{attrs:n,slots:r}=t,{prefixCls:i}=he(`scroll-number`,e);return()=>{let t=Q(Q({},e),n),{prefixCls:a,count:o,title:s,show:c,component:l=`sup`,class:u,style:d}=t,f=Nt(t,[`prefixCls`,`count`,`title`,`show`,`component`,`class`,`style`]),p=Q(Q({},f),{style:d,"data-show":e.show,class:ee(i.value,u),title:s}),m=o;if(o&&Number(o)%1==0){let e=String(o).split(``);m=e.map((t,n)=>V(Mt,{prefixCls:i.value,count:Number(o),value:t,key:e.length-n},null))}d&&d.borderColor&&(p.style=Q(Q({},d),{boxShadow:`0 0 0 1px ${d.borderColor} inset`}));let h=se(r.default?.call(r));return h&&h.length?Te(h,{class:ee(`${i.value}-custom-component`)},!1):V(l,p,{default:()=>[m]})}}}),It=new re(`antStatusProcessing`,{"0%":{transform:`scale(0.8)`,opacity:.5},"100%":{transform:`scale(2.4)`,opacity:0}}),Lt=new re(`antZoomBadgeIn`,{"0%":{transform:`scale(0) translate(50%, -50%)`,opacity:0},"100%":{transform:`scale(1) translate(50%, -50%)`}}),Rt=new re(`antZoomBadgeOut`,{"0%":{transform:`scale(1) translate(50%, -50%)`},"100%":{transform:`scale(0) translate(50%, -50%)`,opacity:0}}),zt=new re(`antNoWrapperZoomBadgeIn`,{"0%":{transform:`scale(0)`,opacity:0},"100%":{transform:`scale(1)`}}),Bt=new re(`antNoWrapperZoomBadgeOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0)`,opacity:0}}),Vt=new re(`antBadgeLoadingCircle`,{"0%":{transformOrigin:`50%`},"100%":{transform:`translate(50%, -50%) rotate(360deg)`,transformOrigin:`50%`}}),Ht=e=>{let{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:i,badgeShadowSize:a,badgeHeightSm:o,motionDurationSlow:s,badgeStatusSize:c,marginXS:l,badgeRibbonOffset:u}=e,d=`${r}-scroll-number`,f=`${r}-ribbon`,p=`${r}-ribbon-wrapper`,m=be(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r}}}}),h=be(e,(e,t)=>{let{darkColor:n}=t;return{[`&${f}-color-${e}`]:{background:n,color:n}}});return{[t]:Q(Q(Q(Q({},de(e)),{position:`relative`,display:`inline-block`,width:`fit-content`,lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:`nowrap`,textAlign:`center`,background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:o,height:o,fontSize:e.badgeFontSizeSm,lineHeight:`${o}px`,borderRadius:o/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:`100%`,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${s}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:`absolute`,top:0,insetInlineEnd:0,transform:`translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&${n}-spin`]:{animationName:Vt,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}},[`&${t}-status`]:{lineHeight:`inherit`,verticalAlign:`baseline`,[`${t}-status-dot`]:{position:`relative`,top:-1,display:`inline-block`,width:c,height:c,verticalAlign:`middle`,borderRadius:`50%`},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:`visible`,color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:`absolute`,top:0,insetInlineStart:0,width:`100%`,height:`100%`,borderWidth:a,borderStyle:`solid`,borderColor:`inherit`,borderRadius:`50%`,animationName:It,animationDuration:e.badgeProcessingDuration,animationIterationCount:`infinite`,animationTimingFunction:`ease-in-out`,content:`""`}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:l,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Lt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:`both`},[`${t}-zoom-leave`]:{animationName:Rt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:`both`},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:zt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Bt,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:`middle`},[`${d}-custom-component, ${t}-count`]:{transform:`none`},[`${d}-custom-component, ${d}`]:{position:`relative`,top:`auto`,display:`block`,transformOrigin:`50% 50%`}},[`${d}`]:{overflow:`hidden`,[`${d}-only`]:{position:`relative`,display:`inline-block`,height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:`preserve-3d`,WebkitBackfaceVisibility:`hidden`,[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:`preserve-3d`,WebkitBackfaceVisibility:`hidden`}},[`${d}-symbol`]:{verticalAlign:`top`}},"&-rtl":{direction:`rtl`,[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:`translate(-50%, -50%)`}}}),[`${p}`]:{position:`relative`},[`${f}`]:Q(Q(Q(Q({},de(e)),{position:`absolute`,top:l,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${i}px`,whiteSpace:`nowrap`,backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:`absolute`,top:`100%`,width:u,height:u,color:`currentcolor`,border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:`top`,filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:`transparent`,borderBlockEndColor:`transparent`}},[`&${f}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:`transparent`,borderInlineStartColor:`transparent`}},"&-rtl":{direction:`rtl`}})}},Ut=le(`Badge`,e=>{let{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i,marginXS:a,colorBorderBg:o}=e,s=Math.round(t*n),c=i,l=s-2*c,u=e.colorBgContainer,d=r,f=e.colorError,p=e.colorErrorHover,m=t,h=r/2,g=r,_=r/2;return[Ht(ye(e,{badgeFontHeight:s,badgeShadowSize:c,badgeZIndex:`auto`,badgeHeight:l,badgeTextColor:u,badgeFontWeight:`normal`,badgeFontSize:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:o,badgeHeightSm:m,badgeDotSize:h,badgeFontSizeSm:g,badgeStatusSize:_,badgeProcessingDuration:`1.2s`,badgeRibbonOffset:a,badgeRibbonCornerTransform:`scaleY(0.75)`,badgeRibbonCornerFilter:`brightness(75%)`}))]}),Wt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Gt=s({compatConfig:{MODE:3},name:`ABadgeRibbon`,inheritAttrs:!1,props:{prefix:String,color:{type:String},text:_e.any,placement:{type:String,default:`end`}},slots:Object,setup(e,t){let{attrs:n,slots:r}=t,{prefixCls:i,direction:a}=he(`ribbon`,e),[o,s]=Ut(i),c=O(()=>xe(e.color,!1)),l=O(()=>[i.value,`${i.value}-placement-${e.placement}`,{[`${i.value}-rtl`]:a.value===`rtl`,[`${i.value}-color-${e.color}`]:c.value}]);return()=>{let{class:t,style:a}=n,u=Wt(n,[`class`,`style`]),d={},f={};return e.color&&!c.value&&(d.background=e.color,f.color=e.color),o(V(`div`,Z({class:`${i.value}-wrapper ${s.value}`},u),[r.default?.call(r),V(`div`,{class:[l.value,t,s.value],style:Q(Q({},d),a)},[V(`span`,{class:`${i.value}-text`},[e.text||r.text?.call(r)]),V(`div`,{class:`${i.value}-corner`,style:f},null)])]))}}}),Kt=s({compatConfig:{MODE:3},name:`ABadge`,Ribbon:Gt,inheritAttrs:!1,props:{count:_e.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:`default`},color:String,text:_e.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String},slots:Object,setup(n,r){let{slots:i,attrs:a}=r,{prefixCls:o,direction:s}=he(`badge`,n),[c,l]=Ut(o),u=O(()=>n.count>n.overflowCount?`${n.overflowCount}+`:n.count),d=O(()=>u.value===`0`||u.value===0),f=O(()=>n.count===null||d.value&&!n.showZero),p=O(()=>(n.status!==null&&n.status!==void 0||n.color!==null&&n.color!==void 0)&&f.value),m=O(()=>n.dot&&!d.value),h=O(()=>m.value?``:u.value),g=O(()=>(h.value===null||h.value===void 0||h.value===``||d.value&&!n.showZero)&&!m.value),_=F(n.count),v=F(h.value),y=F(m.value);D([()=>n.count,h,m],()=>{g.value||(_.value=n.count,v.value=h.value,y.value=m.value)},{immediate:!0});let b=O(()=>xe(n.color,!1)),x=O(()=>({[`${o.value}-status-dot`]:p.value,[`${o.value}-status-${n.status}`]:!!n.status,[`${o.value}-color-${n.color}`]:b.value})),S=O(()=>n.color&&!b.value?{background:n.color,color:n.color}:{}),C=O(()=>({[`${o.value}-dot`]:y.value,[`${o.value}-count`]:!y.value,[`${o.value}-count-sm`]:n.size===`small`,[`${o.value}-multiple-words`]:!y.value&&v.value&&v.value.toString().length>1,[`${o.value}-status-${n.status}`]:!!n.status,[`${o.value}-color-${n.color}`]:b.value}));return()=>{let{offset:r,title:u,color:d}=n,f=a.style,m=ge(i,n,`text`),h=o.value,y=_.value,w=ce(i.default?.call(i));w=w.length?w:null;let T=!!(!g.value||i.count),E=(()=>{if(!r)return Q({},f);let e={marginTop:Qe(r[1])?`${r[1]}px`:r[1]};return s.value===`rtl`?e.left=`${parseInt(r[0],10)}px`:e.right=`${-parseInt(r[0],10)}px`,Q(Q({},e),f)})(),D=u??(typeof y==`string`||typeof y==`number`?y:void 0),O=T||!m?null:V(`span`,{class:`${h}-status-text`},[m]),k=typeof y==`object`||y===void 0&&i.count?Te(y??i.count?.call(i),{style:E},!1):null,A=ee(h,{[`${h}-status`]:p.value,[`${h}-not-a-wrapper`]:!w,[`${h}-rtl`]:s.value===`rtl`},a.class,l.value);if(!w&&p.value){let e=E.color;return c(V(`span`,Z(Z({},a),{},{class:A,style:E}),[V(`span`,{class:x.value,style:S.value},null),V(`span`,{style:{color:e},class:`${h}-status-text`},[m])]))}let j=Ie(w?`${h}-zoom`:``,{appear:!1}),M=Q(Q({},E),n.numberStyle);return d&&!b.value&&(M||={},M.background=d),c(V(`span`,Z(Z({},a),{},{class:A}),[w,V(t,j,{default:()=>[z(V(Ft,{prefixCls:n.scrollNumberPrefixCls,show:T,class:C.value,count:v.value,title:D,style:M,key:`scrollNumber`},{default:()=>[k]}),[[e,T]])]}),O]))}}});Kt.install=function(e){return e.component(Kt.name,Kt),e.component(Gt.name,Gt),e};var qt=Kt,Jt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Yt=s({compatConfig:{MODE:3},name:`ABreadcrumbItem`,inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:{prefixCls:String,href:String,separator:_e.any,dropdownProps:X(),overlay:_e.any,onClick:oe()},slots:Object,setup(e,t){let{slots:n,attrs:r,emit:i}=t,{prefixCls:a}=he(`breadcrumb`,e),o=(t,r)=>{let i=ge(n,e,`overlay`);return i?V($e,Z(Z({},e.dropdownProps),{},{overlay:i,placement:`bottom`}),{default:()=>[V(`span`,{class:`${r}-overlay-link`},[t,V(Ae,null,null)])]}):t},s=e=>{i(`click`,e)};return()=>{let t=ge(n,e,`separator`)??`/`,i=ge(n,e),{class:c,style:l}=r,u=Jt(r,[`class`,`style`]),d;return d=e.href===void 0?V(`span`,Z({class:`${a.value}-link`,onClick:s},u),[i]):V(`a`,Z({class:`${a.value}-link`,onClick:s},u),[i]),d=o(d,a.value),i==null?null:V(`li`,{class:c,style:l},[d,t&&V(`span`,{class:`${a.value}-separator`},[t])])}}}),Xt=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:Q(Q({},de(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:`flex`,flexWrap:`wrap`,margin:0,padding:0,listStyle:`none`},a:Q({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:`inline-block`,marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},me(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:`none`}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[`
|
|
2
|
-
> ${n} + span,
|
|
3
|
-
> ${n} + a
|
|
4
|
-
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:`inline-block`,padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:`transparent`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}})}},Zt=le(`Breadcrumb`,e=>[Xt(ye(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription}))]),Qt=()=>({prefixCls:String,routes:{type:Array},params:_e.any,separator:_e.any,itemRender:{type:Function}});function $t(e,t){if(!e.breadcrumbName)return null;let n=Object.keys(t).join(`|`);return e.breadcrumbName.replace(RegExp(`:(${n})`,`g`),(e,n)=>t[n]||e)}function en(e){let{route:t,params:n,routes:r,paths:i}=e,a=r.indexOf(t)===r.length-1,o=$t(t,n);return a?V(`span`,null,[o]):V(`a`,{href:`#/${i.join(`/`)}`},[o])}var tn=s({compatConfig:{MODE:3},name:`ABreadcrumb`,inheritAttrs:!1,props:Qt(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=he(`breadcrumb`,e),[o,s]=Zt(i),c=(e,t)=>(e=(e||``).replace(/^\//,``),Object.keys(t).forEach(n=>{e=e.replace(`:${n}`,t[n])}),e),l=(e,t,n)=>{let r=[...e],i=c(t||``,n);return i&&r.push(i),r},u=e=>{let{routes:t=[],params:n={},separator:r,itemRender:i=en}=e,a=[];return t.map(e=>{let o=c(e.path,n);o&&a.push(o);let s=[...a],u=null;e.children&&e.children.length&&(u=V(Ke,{items:e.children.map(e=>({key:e.path||e.breadcrumbName,label:i({route:e,params:n,routes:t,paths:l(s,e.path,n)})}))},null));let d={separator:r};return u&&(d.overlay=u),V(Yt,Z(Z({},d),{},{key:o||e.breadcrumbName}),{default:()=>[i({route:e,params:n,routes:t,paths:s})]})})};return()=>{let t,{routes:c,params:l={}}=e,d=ce(ge(n,e)),f=ge(n,e,`separator`)??`/`,p=e.itemRender||n.itemRender||en;c&&c.length>0?t=u({routes:c,params:l,separator:f,itemRender:p}):d.length&&(t=d.map((e,t)=>(pe(typeof e.type==`object`&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR),`Breadcrumb`,`Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children`),T(e,{separator:f,key:t}))));let m={[i.value]:!0,[`${i.value}-rtl`]:a.value===`rtl`,[`${r.class}`]:!!r.class,[s.value]:!0};return o(V(`nav`,Z(Z({},r),{},{class:m}),[V(`ol`,null,[t])]))}}}),nn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},rn=s({compatConfig:{MODE:3},name:`ABreadcrumbSeparator`,__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:{prefixCls:String},setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=he(`breadcrumb`,e);return()=>{let{separator:e,class:t}=r,a=nn(r,[`separator`,`class`]),o=ce(n.default?.call(n));return V(`span`,Z({class:[`${i.value}-separator`,t]},a),[o.length>0?o:`/`])}}});tn.Item=Yt,tn.Separator=rn,tn.install=function(e){return e.component(tn.name,tn),e.component(Yt.name,Yt),e.component(rn.name,rn),e};var an=tn,on=[`normal`,`exception`,`active`,`success`],sn=()=>({prefixCls:String,type:ve(),percent:Number,format:ie(),status:ve(),showInfo:ae(),strokeWidth:Number,strokeLinecap:ve(),strokeColor:ne(),trailColor:String,width:Number,success:X(),gapDegree:Number,gapPosition:ve(),size:ue([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:ve()});function cn(e){return!e||e<0?0:e>100?100:e}function ln(e){let{success:t,successPercent:n}=e,r=n;return t&&`progress`in t&&(we(!1,`Progress`,"`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&`percent`in t&&(r=t.percent),r}function un(e){let{percent:t,success:n,successPercent:r}=e,i=cn(ln({success:n,successPercent:r}));return[i,cn(cn(t)-i)]}function dn(e){let{success:t={},strokeColor:n}=e,{strokeColor:r}=t;return[r||te.green,n||null]}var fn=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):typeof e==`number`?[r,i]=[e,e]:[r=14,i=8]=e,r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):typeof e==`number`?[r,i]=[e,e]:[r=-1,i=8]=e}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:typeof e==`number`?[r,i]=[e,e]:(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return{width:r,height:i}},pn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},mn=()=>Q(Q({},sn()),{strokeColor:ne(),direction:ve()}),hn=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=parseFloat(n.replace(/%/g,``));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(`, `)},gn=(e,t)=>{let{from:n=te.blue,to:r=te.blue,direction:i=t===`rtl`?`to left`:`to right`}=e,a=pn(e,[`from`,`to`,`direction`]);return Object.keys(a).length===0?{backgroundImage:`linear-gradient(${i}, ${n}, ${r})`}:{backgroundImage:`linear-gradient(${i}, ${hn(a)})`}},_n=s({compatConfig:{MODE:3},name:`ProgressLine`,inheritAttrs:!1,props:mn(),setup(e,t){let{slots:n,attrs:r}=t,i=O(()=>{let{strokeColor:t,direction:n}=e;return t&&typeof t!=`string`?gn(t,n):{backgroundColor:t}}),a=O(()=>e.strokeLinecap===`square`||e.strokeLinecap===`butt`?0:void 0),o=O(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),s=O(()=>e.size??[-1,e.strokeWidth||(e.size===`small`?6:8)]),c=O(()=>fn(s.value,`line`,{strokeWidth:e.strokeWidth})),l=O(()=>{let{percent:t}=e;return Q({width:`${cn(t)}%`,height:`${c.value.height}px`,borderRadius:a.value},i.value)}),u=O(()=>ln(e)),d=O(()=>{let{success:t}=e;return{width:`${cn(u.value)}%`,height:`${c.value.height}px`,borderRadius:a.value,backgroundColor:t?.strokeColor}}),f={width:c.value.width<0?`100%`:c.value.width,height:`${c.value.height}px`};return()=>V(x,null,[V(`div`,Z(Z({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,f]}),[V(`div`,{class:`${e.prefixCls}-inner`,style:o.value},[V(`div`,{class:`${e.prefixCls}-bg`,style:l.value},null),u.value===void 0?null:V(`div`,{class:`${e.prefixCls}-success-bg`,style:d.value},null)])]),n.default?.call(n)])}}),vn={percent:0,prefixCls:`vc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,trailColor:`#D9D9D9`,trailWidth:1},yn=e=>{let t=F(null);return v(()=>{let n=Date.now(),r=!1;e.value.forEach(e=>{let i=e?.$el||e;if(!i)return;r=!0;let a=i.style;a.transitionDuration=`.3s, .3s, .3s, .06s`,t.value&&n-t.value<100&&(a.transitionDuration=`0s, 0s`)}),r&&(t.value=Date.now())}),e},bn={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},xn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Sn=0;function Cn(e){return+e.replace(`%`,``)}function wn(e){return Array.isArray(e)?e:[e]}function Tn(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,o=50-r/2,s=0,c=-o,l=0,u=-2*o;switch(a){case`left`:s=-o,c=0,l=2*o,u=0;break;case`right`:s=o,c=0,l=-2*o,u=0;break;case`bottom`:c=o,u=2*o}let d=`M 50,50 m ${s},${c}
|
|
5
|
-
a ${o},${o} 0 1 1 ${l},${-u}
|
|
6
|
-
a ${o},${o} 0 1 1 ${-l},${u}`,f=Math.PI*2*o;return{pathString:d,pathStyle:{stroke:n,strokeDasharray:`${t/100*(f-i)}px ${f}px`,strokeDashoffset:`-${i/2+e/100*(f-i)}px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`}}}var En=s({compatConfig:{MODE:3},name:`VCCircle`,props:Ce(bn,vn),setup(e){Sn+=1;let t=F(Sn),n=O(()=>wn(e.percent)),r=O(()=>wn(e.strokeColor)),[i,a]=Je();yn(a);let o=()=>{let{prefixCls:a,strokeWidth:o,strokeLinecap:s,gapDegree:c,gapPosition:l}=e,u=0;return n.value.map((e,n)=>{let d=r.value[n]||r.value[r.value.length-1],f=Object.prototype.toString.call(d)===`[object Object]`?`url(#${a}-gradient-${t.value})`:``,{pathString:p,pathStyle:m}=Tn(u,e,d,o,c,l);u+=e;let h={key:n,d:p,stroke:f,"stroke-linecap":s,"stroke-width":o,opacity:e===0?0:1,"fill-opacity":`0`,class:`${a}-circle-path`,style:m};return V(`path`,Z({ref:i(n)},h),null)})};return()=>{let{prefixCls:n,strokeWidth:i,trailWidth:a,gapDegree:s,gapPosition:c,trailColor:l,strokeLinecap:u,strokeColor:d}=e,f=xn(e,[`prefixCls`,`strokeWidth`,`trailWidth`,`gapDegree`,`gapPosition`,`trailColor`,`strokeLinecap`,`strokeColor`]),{pathString:p,pathStyle:m}=Tn(0,100,l,i,s,c);delete f.percent;let h=r.value.find(e=>Object.prototype.toString.call(e)===`[object Object]`),g={d:p,stroke:l,"stroke-linecap":u,"stroke-width":a||i,"fill-opacity":`0`,class:`${n}-circle-trail`,style:m};return V(`svg`,Z({class:`${n}-circle`,viewBox:`0 0 100 100`},f),[h&&V(`defs`,null,[V(`linearGradient`,{id:`${n}-gradient-${t.value}`,x1:`100%`,y1:`0%`,x2:`0%`,y2:`0%`},[Object.keys(h).sort((e,t)=>Cn(e)-Cn(t)).map((e,t)=>V(`stop`,{key:t,offset:e,"stop-color":h[e]},null))])]),V(`path`,g,null),o().reverse()])}}}),Dn=()=>Q(Q({},sn()),{strokeColor:ne()}),On=3,kn=e=>On/e*100,An=s({compatConfig:{MODE:3},name:`ProgressCircle`,inheritAttrs:!1,props:Ce(Dn(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t,i=O(()=>e.width??120),a=O(()=>e.size??[i.value,i.value]),o=O(()=>fn(a.value,`circle`)),s=O(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type===`dashboard`)return 75}),c=O(()=>({width:`${o.value.width}px`,height:`${o.value.height}px`,fontSize:`${o.value.width*.15+6}px`})),l=O(()=>e.strokeWidth??Math.max(kn(o.value.width),6)),u=O(()=>e.gapPosition||e.type===`dashboard`&&`bottom`||void 0),d=O(()=>un(e)),f=O(()=>Object.prototype.toString.call(e.strokeColor)===`[object Object]`),p=O(()=>dn({success:e.success,strokeColor:e.strokeColor})),m=O(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{let t=V(En,{percent:d.value,strokeWidth:l.value,trailWidth:l.value,strokeColor:p.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:s.value,gapPosition:u.value},null);return V(`div`,Z(Z({},r),{},{class:[m.value,r.class],style:[r.style,c.value]}),[o.value.width<=20?V(Se,null,{default:()=>[V(`span`,null,[t])],title:n.default}):V(x,null,[t,n.default?.call(n)])])}}}),jn=s({compatConfig:{MODE:3},name:`Steps`,props:Q(Q({},sn()),{steps:Number,strokeColor:ue(),trailColor:String}),setup(e,t){let{slots:n}=t,r=O(()=>Math.round(e.steps*((e.percent||0)/100))),i=O(()=>e.size??[e.size===`small`?2:14,e.strokeWidth||8]),a=O(()=>fn(i.value,`step`,{steps:e.steps,strokeWidth:e.strokeWidth||8})),o=O(()=>{let{steps:t,strokeColor:n,trailColor:i,prefixCls:o}=e,s=[];for(let e=0;e<t;e+=1){let c=Array.isArray(n)?n[e]:n,l={[`${o}-steps-item`]:!0,[`${o}-steps-item-active`]:e<=r.value-1};s.push(V(`div`,{key:e,class:l,style:{backgroundColor:e<=r.value-1?c:i,width:`${a.value.width/t}px`,height:`${a.value.height}px`}},null))}return s});return()=>V(`div`,{class:`${e.prefixCls}-steps-outer`},[o.value,n.default?.call(n)])}}),Mn=new re(`antProgressActive`,{"0%":{transform:`translateX(-100%) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(-100%) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}}),Nn=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:Q(Q({},de(e)),{display:`inline-block`,"&-rtl":{direction:`rtl`},"&-line":{position:`relative`,width:`100%`,fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:`inline-block`,width:`100%`},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:`relative`,display:`inline-block`,width:`100%`,overflow:`hidden`,verticalAlign:`middle`,backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:`relative`,backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:`inline-block`,width:`2em`,marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:`nowrap`,textAlign:`start`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:Mn,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`,content:`""`}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Pn=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`&${t}-circle ${t}-text`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},Fn=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-outer":{display:`flex`,flexDirection:`row`,alignItems:`center`},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},In=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Ln=le(`Progress`,e=>{let t=e.marginXXS/2,n=ye(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[Nn(n),Pn(n),Fn(n),In(n)]}),Rn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},zn=s({compatConfig:{MODE:3},name:`AProgress`,inheritAttrs:!1,props:Ce(sn(),{type:`line`,percent:0,showInfo:!0,trailColor:null,size:`default`,strokeLinecap:`round`}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=he(`progress`,e),[o,s]=Ln(i),c=O(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),l=O(()=>{let{percent:t=0}=e,n=ln(e);return parseInt(n===void 0?t.toString():n.toString(),10)}),u=O(()=>{let{status:t}=e;return!on.includes(t)&&l.value>=100?`success`:t||`normal`}),d=O(()=>{let{type:t,showInfo:n,size:r}=e,o=i.value;return{[o]:!0,[`${o}-inline-circle`]:t===`circle`&&fn(r,`circle`).width<=20,[`${o}-${t===`dashboard`&&`circle`||t}`]:!0,[`${o}-status-${u.value}`]:!0,[`${o}-show-info`]:n,[`${o}-${r}`]:r,[`${o}-rtl`]:a.value===`rtl`,[s.value]:!0}}),f=O(()=>typeof e.strokeColor==`string`||Array.isArray(e.strokeColor)?e.strokeColor:void 0),p=()=>{let{showInfo:t,format:r,type:a,percent:o,title:s}=e,c=ln(e);if(!t)return null;let l,d=r||n?.format||(e=>`${e}%`),f=a===`line`;return r||n?.format||u.value!==`exception`&&u.value!==`success`?l=d(cn(o),cn(c)):u.value===`exception`?l=V(f?Ne:Pe,null,null):u.value===`success`&&(l=V(f?Fe:je,null,null)),V(`span`,{class:`${i.value}-text`,title:s===void 0&&typeof l==`string`?l:void 0},[l])};return()=>{let{type:t,steps:n,title:s}=e,{class:l}=r,m=Rn(r,[`class`]),h=p(),g;return t===`line`?g=n?V(jn,Z(Z({},e),{},{strokeColor:f.value,prefixCls:i.value,steps:n}),{default:()=>[h]}):V(_n,Z(Z({},e),{},{strokeColor:c.value,prefixCls:i.value,direction:a.value}),{default:()=>[h]}):(t===`circle`||t===`dashboard`)&&(g=V(An,Z(Z({},e),{},{prefixCls:i.value,strokeColor:c.value,progressStatus:u.value}),{default:()=>[h]})),o(V(`div`,Z(Z({role:`progressbar`},m),{},{class:[d.value,l],title:s}),[g]))}}}),Bn=fe(zn),Vn={class:`mh-body`},Hn={class:`mh-name`},Un={class:`mh-role`},Wn={key:0,class:`mh-task`},Gn={class:`mh-hint`},Kn=Object.assign(B(s({__name:`MentionHoverCard`,setup(e){let t=vt(),n=F(null),r=null,i=e=>{for(let[n,r]of Object.entries(t.agents)){let t=r.find(t=>t.agentId===e);if(t)return{agent:t,channelId:n}}return null},a=e=>e.target.closest?.(`.md-mention, .who-pill`)??null,o=e=>{let t=a(e);if(!t)return;let o=t.dataset.agentId;o&&(r&&clearTimeout(r),r=setTimeout(()=>{let t=i(o);if(!t)return;let r=Math.min(e.clientX+14,Math.max(window.innerWidth-280,8)),a=Math.min(e.clientY+16,Math.max(window.innerHeight-170,8));n.value={x:r,y:a,...t}},350))},s=e=>{a(e)&&(r&&clearTimeout(r),n.value=null)};U(()=>{document.addEventListener(`mouseover`,o),document.addEventListener(`mouseout`,s)}),c(()=>{r&&clearTimeout(r),document.removeEventListener(`mouseover`,o),document.removeEventListener(`mouseout`,s)});let l=e=>e===`busy`?`var(--tone-live-dot)`:`var(--ink-fainter)`;return(e,r)=>(u(),P(w,{to:`body`},[n.value?(u(),A(`div`,{key:0,class:`mh-card`,style:_({left:`${n.value.x}px`,top:`${n.value.y}px`})},[L(`span`,{class:`aw-avatar is-agent mh-ava`,style:_({"--av":h(xt)(n.value.agent.agentId)})},y(n.value.agent.name.trim().charAt(0).toUpperCase()),5),L(`div`,Vn,[L(`div`,Hn,[L(`span`,{class:`mh-dot`,style:_({background:l(n.value.agent.state)})},null,4),S(` `+y(n.value.agent.name),1)]),L(`div`,Un,y(n.value.agent.role)+` / `+y(n.value.agent.harness)+` / `+y(n.value.agent.state),1),n.value.agent.currentTaskId?(u(),A(`div`,Wn,y(e.$t(`mentionHoverCard.k3o5eky002`))+y(h(t).taskTitle(n.value.channelId,n.value.agent.currentTaskId)),1)):M(``,!0),L(`div`,Gn,y(e.$t(`mentionHoverCard.k1t89ag4001`)),1)])],4)):M(``,!0)]))}}),[[`__scopeId`,`data-v-b043d434`]]),{__name:`WorkshopMentionHoverCard`}),qn={class:`fs`},Jn={class:`addr`},Yn=[`onClick`],Xn={class:`list`},Zn={class:`name`},Qn=[`onClick`],$n={class:`icon`},er={class:`name`},tr={key:1,class:`empty`},nr={class:`hint`},rr=Object.assign(B(s({__name:`FileSelectorModal`,props:{open:{type:Boolean},initialPath:{},title:{}},emits:[`update:open`,`select`],setup(e,{emit:t}){let{t:n}=q(),r=e,a=t,o=ct(),s=F(``),c=F(null),d=F([]),f=F(!1),p=F(``),m=async e=>{f.value=!0;try{let t=await(await fetch(`/api/workshop/fs/dirs${e?`?path=${encodeURIComponent(e)}`:``}`,{headers:{authorization:`Bearer ${o.token}`}})).json();if(t.code!==0){$.warning(t.message??n(`fileSelectorModal.kz99pgv004`));return}s.value=t.data.cwd,c.value=t.data.parent,d.value=t.data.dirs??[],p.value=t.data.cwd}finally{f.value=!1}};D(()=>r.open,e=>{e&&m(r.initialPath||s.value||void 0)});let g=O(()=>{let e=s.value.includes(`\\`)?`\\`:`/`,t=s.value.split(e).filter(Boolean),n=[],r=``;for(let i of t)r=r?r+e+i:i.endsWith(`:`)?i+e:e+i,n.push({label:i,path:r});return n}),_=e=>void m(e),v=()=>{let e=p.value.trim();e&&m(e)},b=()=>{s.value&&(a(`select`,s.value),a(`update:open`,!1))},S=()=>a(`update:open`,!1);return(t,n)=>{let r=Yt,a=an,o=Re,s=ot,m=Xe;return u(),P(m,{open:e.open,title:e.title??`选择工作目录`,width:640,"ok-text":`选择此目录`,"cancel-text":`取消`,"confirm-loading":h(f),onOk:b,onCancel:S},{default:I(()=>[L(`div`,qn,[L(`div`,Jn,[V(a,{class:`crumbs`},{default:I(()=>[(u(!0),A(x,null,l(h(g),(e,t)=>(u(),P(r,{key:e.path+t},{default:I(()=>[L(`a`,{onClick:i(t=>_(e.path),[`prevent`])},y(e.label),9,Yn)]),_:2},1024))),128))]),_:1})]),V(o,{value:h(p),"onUpdate:value":n[0]||=e=>N(p)?p.value=e:null,size:`small`,class:`manual`,placeholder:`输入绝对路径跳转(如 D:\\\\projects\\\\my-app)`,"enter-button":`跳转`,onSearch:v},null,8,[`value`]),V(s,{spinning:h(f)},{default:I(()=>[L(`div`,Xn,[h(c)?(u(),A(`div`,{key:0,class:`row up`,onClick:n[1]||=e=>_(h(c))},[n[2]||=L(`span`,{class:`icon`},`⬆`,-1),L(`span`,Zn,y(t.$t(`fileSelectorModal.kvwnnvn001`)),1)])):M(``,!0),(u(!0),A(x,null,l(h(d),e=>(u(),A(`div`,{key:e.path,class:`row`,onClick:t=>_(e.path),onDblclick:b},[L(`span`,$n,y(e.hasChildren?`📂`:`📁`),1),L(`span`,er,y(e.name),1)],40,Qn))),128)),!h(f)&&h(d).length===0?(u(),A(`div`,tr,y(t.$t(`fileSelectorModal.k268o2o002`)),1)):M(``,!0)])]),_:1},8,[`spinning`]),L(`div`,nr,y(t.$t(`fileSelectorModal.k1rt80dq003`)),1)])]),_:1},8,[`open`,`title`,`confirm-loading`])}}}),[[`__scopeId`,`data-v-c35e0bdd`]]),{__name:`WorkshopFileSelectorModal`}),ir={class:`channel-list`},ar={class:`list-head`},or={class:`head-actions`},sr={key:0,class:`empty`},cr=[`onClick`],lr={class:`row1`},ur={class:`ch-name`},dr=[`title`,`aria-label`,`onClick`],fr=[`aria-label`,`onClick`],pr={class:`row2`},mr={key:0,class:`meta syncing`},hr={key:1,class:`meta`},gr=[`title`,`onClick`],_r={class:`mount-template`},vr={class:`tpl-hint`},yr={class:`ws-hint`},br={class:`ws-hint`},xr={class:`ws-hint`},Sr={key:0,class:`ch-plugin-list`},Cr={class:`ch-plugin-main`},wr={class:`aw-mono`},Tr={key:0,class:`ws-hint`},Er={key:1,class:`ws-hint ch-plugin-desc`},Dr={key:0,class:`ws-hint`},Or={key:1,class:`ws-hint`},kr={class:`ws-hint`},Ar={class:`ws-hint`},jr=Object.assign(B(s({__name:`ChannelSessionList`,props:{wsId:{}},setup(e){let{t}=q(),n=e,r=lt(),a=vt(),o=wt(),s=O(()=>r.workspaces.find(e=>e.id===n.wsId)),c=F([]),f=F([]),p=async()=>{if(typeof window>`u`)return;let[e,t]=await Promise.all([o.listChannels(),o.listChannelTemplates().catch(()=>null)]);c.value=e?.data??[],f.value=t?.data??[]};p();let m=O(()=>(s.value?.channelIds??[]).map(e=>({id:e,meta:c.value.find(t=>t.id===e),entity:a.channels[e]})).map(({id:e,meta:t,entity:n})=>({id:e,name:n?.name??t?.name??e.slice(0,8),synced:n!==void 0,busy:a.busyCount(e),agents:a.agents[e]?.length??0,activeTasks:(a.tasks[e]??[]).filter(e=>![`COMPLETED`,`CANCELED`,`FAILED`].includes(e.state)).length,workspace:t?.workspace??``}))),g=e=>{r.setActiveChannel(n.wsId,e)},_=async e=>{try{await navigator.clipboard.writeText(e),$.success(t(`channelSessionList.kud74vg040`,{p0:e}))}catch{$.error(t(`channelSessionList.krij3gg026`))}},v=e=>e.replace(/[\\/]+$/,``).split(/[\\/]/).pop()??e,b=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/i,C=e=>{let t=v(e);return b.test(t)?``:t},w=F(!1),T=k({name:``,description:``,workspace:``,scenarioPrompt:``}),E=F(!1),D=F(!1),j=async()=>{if(!T.name.trim()){$.warning(`Channel 名称必填`);return}E.value=!0;try{let e=(await o.createChannel({name:T.name.trim(),description:T.description||void 0,scenarioPrompt:T.scenarioPrompt.trim()||void 0,workspace:T.workspace.trim()||void 0}))?.data?.channelId;if(!e)throw Error(t(`channelSessionList.k1bg6shc027`));await r.mountChannel(n.wsId,e),w.value=!1,T.name=``,T.description=``,T.workspace=``,T.scenarioPrompt=``,p(),$.success(t(`channelSessionList.kn89jvs028`))}catch(e){$.error(t(`channelSessionList.k1x2th9e041`,{p0:ut(e)}))}finally{E.value=!1}},R=F(),z=F(!1),B=async()=>{if(R.value){z.value=!0;try{let e=(await o.mountChannelTemplate(n.wsId,R.value))?.data;$.success(t(`channelSessionList.kai50qc042`,{p0:e?.agentCount??0})),R.value=void 0,p()}catch(e){let n=e;$.error(ut(n,t(`channelSessionList.k97xi7u029`)))}finally{z.value=!1}}},H=e=>{r.unmountChannel(n.wsId,e).catch(e=>{$.error(ut(e,t(`channelSessionList.k1hgfvdc030`)))})},U=F(!1),G=F(``),K=k({name:``,scenarioPrompt:``,workspace:``}),Y=k({harness:`omp`,provider:``,model:``,effort:``,enabled:!1}),X=F([]),Z=F(`levels`),ee=F(!1),te=O(()=>X.value.map(e=>({value:e.id,label:e.id}))),ne=O(()=>(X.value.find(e=>e.id===Y.provider)?.models??[]).map(e=>({value:e.id,label:e.id}))),re=O(()=>{let e=X.value.find(e=>e.id===Y.provider)?.models.find(e=>e.id===Y.model);return(e?.efforts??[]).map(t=>({value:t,label:t+(e?.defaultEffort===t?`(默认)`:``)}))}),ie=async e=>{ee.value=!0,X.value=[];try{let t=(await o.listHarnessProviders(e))?.data?.catalog;X.value=t?.providers??[],Z.value=t?.effortMode??`unsupported`}catch{}finally{ee.value=!1}},ae=async()=>{Y.provider=``,Y.model=``,Y.effort=``,await ie(Y.harness)},oe=()=>{Y.model=``,Y.effort=``},se=()=>{Y.effort=``},ce=F(!1),le=F(!1),ue=e=>{let t=c.value.find(t=>t.id===e);G.value=e,K.name=t?.name??``,K.scenarioPrompt=t?.scenarioPrompt??``,K.workspace=t?.workspace??``;let n=null;try{let e=t;n=e?.llmJson?JSON.parse(e.llmJson):null}catch{n=null}Y.enabled=!!n?.model,Y.harness=`omp`,Y.provider=n?.provider??``,Y.model=n?.model??``,Y.effort=n?.effort??``,U.value=!0,Y.enabled&&ie(Y.harness),Q(e)},de=F([]),fe=F(`default`),pe=F(null),Q=async e=>{try{let t=(await o.listChannelPlugins(e))?.data??{};de.value=t.plugins??[],fe.value=t.source===`explicit`?`explicit`:`default`}catch{}},me=async(e,n)=>{if(!pe.value){pe.value=e.name;try{let r=de.value.map(t=>({name:t.name,enabled:t.name===e.name?n:t.enabled})),i=(await o.putChannelPlugins(G.value,{plugins:r}))?.data??{};de.value=i.plugins??r.map(e=>({...e})),fe.value=i.source===`explicit`?`explicit`:`default`,$.success(t(`channelSessionList.k1plugon044`))}catch(e){$.error(ut(e))}finally{pe.value=null}}},he=async()=>{ce.value=!0;try{await o.patchChannel(G.value,{scenarioPrompt:K.scenarioPrompt,workspace:K.workspace.trim()||void 0,llm:Y.enabled&&Y.model?{...Y.provider?{provider:Y.provider}:{},model:Y.model,...Y.effort?{effort:Y.effort}:{}}:null}),$.success(t(`channelSessionList.kvsxlu6031`)),U.value=!1,p()}catch(e){$.error(ut(e))}finally{ce.value=!1}},ge=F(!1),_e=k({name:``,description:``,visibility:`private`}),ve=F(!1),ye=()=>{_e.name=t(`channelSessionList.k2hfym5043`,{p0:K.name||`channel`}),_e.description=``,_e.visibility=`private`,ge.value=!0},be=async()=>{if(!_e.name.trim()){$.warning(t(`channelSessionList.k1i0ji0y032`));return}ve.value=!0;try{await o.captureChannelTemplate({channelId:G.value,name:_e.name.trim(),description:_e.description||void 0,visibility:_e.visibility}),$.success(t(`channelSessionList.kjpguxw033`)),ge.value=!1,p()}catch(e){$.error(ut(e))}finally{ve.value=!1}};return(e,n)=>{let r=J,a=Me,o=Ve,c=Oe,p=Be,v=Ee,b=Le,O=De,k=Xe,F=st,G=et,q=Ue,X=He,Q=rr;return u(),A(`div`,ir,[L(`div`,ar,[n[30]||=L(`span`,{class:`title`},`Channels`,-1),L(`span`,or,[L(`button`,{class:`head-op im`,type:`button`,title:`Channel 模板中心`,onClick:n[0]||=t=>(`navigateTo`in e?e.navigateTo:h(W))(`/workshop/channel-templates`)},[...n[28]||=[L(`span`,{class:`i-tabler-layout-grid-add im-pop`},null,-1)]]),L(`button`,{class:`head-op im`,type:`button`,title:`新建 Channel`,onClick:n[1]||=e=>w.value=!0},[...n[29]||=[L(`span`,{class:`i-tabler-plus im-pop`},null,-1)]])])]),V(r,null,{default:I(()=>[h(m).length===0?(u(),A(`div`,sr,y(e.$t(`channelSessionList.kkv789s014`)),1)):M(``,!0),(u(!0),A(x,null,l(h(m),t=>(u(),A(`div`,{key:t.id,class:d([`channel-item`,{active:h(s)?.activeChannelId===t.id}]),onClick:e=>g(t.id)},[L(`div`,lr,[L(`span`,{class:d([`dot`,{live:t.activeTasks>0}])},null,2),L(`span`,ur,y(t.name),1),L(`button`,{class:`op im`,type:`button`,title:e.$t(`channelSessionList.kne35ug001`),"aria-label":e.$t(`channelSessionList.kjmldih035`,{p0:t.name}),onClick:i(e=>ue(t.id),[`stop`])},[...n[31]||=[L(`span`,{class:`i-tabler-settings2 im-pop`},null,-1)]],8,dr),L(`button`,{class:`op im`,type:`button`,title:`移出 workspace`,"aria-label":e.$t(`channelSessionList.k1yurooi036`,{p0:t.name}),onClick:i(e=>H(t.id),[`stop`])},[...n[32]||=[L(`span`,{class:`i-tabler-x im-pop`},null,-1)]],8,fr)]),L(`div`,pr,[t.synced?(u(),A(`span`,hr,y(t.agents)+` `+y(e.$t(`channelSessionList.k1ggoa45025`))+` `+y(t.busy)+` / `+y(e.$t(`channelSessionList.k3wcox034`))+` `+y(t.activeTasks),1)):(u(),A(`span`,mr,y(e.$t(`channelSessionList.k1bst7s9015`)),1))]),C(t.workspace)?(u(),A(`button`,{key:0,class:`row2 ws im`,type:`button`,title:e.$t(`channelSessionList.kfe4pzq037`,{p0:t.workspace}),onClick:i(e=>_(t.workspace),[`stop`])},[n[33]||=L(`span`,{class:`i-tabler-folder`},null,-1),S(` `+y(C(t.workspace)),1)],8,gr)):M(``,!0)],10,cr))),128))]),_:1}),L(`div`,_r,[V(a,{value:h(R),"onUpdate:value":n[2]||=e=>N(R)?R.value=e:null,size:`small`,placeholder:`从 Channel 模板挂载`,class:`select`,loading:h(z),options:h(f).map(t=>({value:t.id,label:e.$t(`channelSessionList.k1oes209038`,{p0:t.isBuiltin?`内置 · `:t.visibility===`public`?`公开 · `:``,p1:t.name,p2:+!!t.lead+t.members.length})})),onChange:B},null,8,[`value`,`loading`,`options`]),L(`div`,vr,y(e.$t(`channelSessionList.k18ppu31016`)),1)]),V(k,{open:h(w),"onUpdate:open":n[8]||=e=>N(w)?w.value=e:null,title:e.$t(`channelSessionList.k1qjyl6l002`),"confirm-loading":h(E),"ok-text":`创建`,"cancel-text":`取消`,onOk:j},{default:I(()=>[V(O,{layout:`vertical`},{default:I(()=>[V(c,{label:`Channel 名称`},{default:I(()=>[V(o,{value:h(T).name,"onUpdate:value":n[3]||=e=>h(T).name=e},null,8,[`value`])]),_:1}),V(c,{label:e.$t(`channelSessionList.k40gkk003`)},{default:I(()=>[V(o,{value:h(T).description,"onUpdate:value":n[4]||=e=>h(T).description=e},null,8,[`value`])]),_:1},8,[`label`]),V(c,{label:e.$t(`channelSessionList.k1wj4f38004`)},{extra:I(()=>[L(`span`,yr,y(e.$t(`channelSessionList.k1u3zsr5017`)),1)]),default:I(()=>[V(p,{value:h(T).scenarioPrompt,"onUpdate:value":n[5]||=e=>h(T).scenarioPrompt=e,rows:4,placeholder:e.$t(`channelSessionList.k1098zie005`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),V(c,{label:e.$t(`channelSessionList.kmgv4h5006`)},{extra:I(()=>[L(`span`,br,y(e.$t(`channelSessionList.kucq30k019`)),1)]),default:I(()=>[V(b,{compact:``},{default:I(()=>[V(o,{value:h(T).workspace,"onUpdate:value":n[6]||=e=>h(T).workspace=e,style:{width:`70%`},placeholder:`留空 = data/workspaces/<channelId>`,"allow-clear":``,onPressEnter:j},null,8,[`value`]),V(v,{style:{width:`30%`},onClick:n[7]||=e=>D.value=!0},{default:I(()=>[S(y(e.$t(`channelSessionList.k3pz0ma018`)),1)]),_:1})]),_:1})]),_:1},8,[`label`]),V(c,null,{default:I(()=>[L(`span`,xr,y(e.$t(`channelSessionList.k1ful761020`)),1)]),_:1})]),_:1})]),_:1},8,[`open`,`title`,`confirm-loading`]),V(k,{open:h(U),"onUpdate:open":n[19]||=e=>N(U)?U.value=e:null,title:e.$t(`channelSessionList.k1pmemvt039`,{p0:h(K).name}),"confirm-loading":h(ce),"ok-text":`保存`,"cancel-text":`取消`,onOk:he},{default:I(()=>[V(O,{layout:`vertical`},{default:I(()=>[V(c,{label:e.$t(`channelSessionList.k1i8q46x007`)},{default:I(()=>[V(p,{value:h(K).scenarioPrompt,"onUpdate:value":n[9]||=e=>h(K).scenarioPrompt=e,rows:4,placeholder:e.$t(`channelSessionList.ku3ugac008`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),V(c,{label:e.$t(`channelSessionList.k67dzev009`)},{default:I(()=>[V(b,{compact:``},{default:I(()=>[V(o,{value:h(K).workspace,"onUpdate:value":n[10]||=e=>h(K).workspace=e,style:{width:`70%`},placeholder:`data/workspaces/<channelId>`,"allow-clear":``},null,8,[`value`]),V(v,{style:{width:`30%`},onClick:n[11]||=e=>le.value=!0},{default:I(()=>[S(y(e.$t(`channelSessionList.k3pz0ma018`)),1)]),_:1})]),_:1})]),_:1},8,[`label`]),V(c,{label:`默认模型(可选;留空用各 Harness 默认)`},{default:I(()=>[V(G,null,{default:I(()=>[V(F,{checked:h(Y).enabled,"onUpdate:checked":n[12]||=e=>h(Y).enabled=e,size:`small`,onChange:n[13]||=e=>{e&&ie(h(Y).harness)}},null,8,[`checked`]),V(a,{value:h(Y).harness,"onUpdate:value":n[14]||=e=>h(Y).harness=e,style:{width:`130px`},options:[{value:`omp`,label:`omp`},{value:`codex`,label:`codex`},{value:`opencode`,label:`opencode`},{value:`dsh`,label:`dsh`}],disabled:!h(Y).enabled,onChange:ae},null,8,[`value`,`disabled`]),V(a,{value:h(Y).provider,"onUpdate:value":n[15]||=e=>h(Y).provider=e,style:{width:`170px`},placeholder:h(ee)?`目录加载中…`:`provider`,options:h(te),disabled:!h(Y).enabled||h(ee),"show-search":``,onChange:oe},null,8,[`value`,`placeholder`,`options`,`disabled`]),V(a,{value:h(Y).model,"onUpdate:value":n[16]||=e=>h(Y).model=e,style:{width:`210px`},placeholder:`model`,options:h(ne),disabled:!h(Y).enabled||!h(Y).provider,"show-search":``,onChange:se},null,8,[`value`,`options`,`disabled`]),h(Z)===`levels`?(u(),P(a,{key:0,value:h(Y).effort,"onUpdate:value":n[17]||=e=>h(Y).effort=e,style:{width:`130px`},placeholder:`effort(可选)`,options:h(re),disabled:!h(Y).enabled||!h(Y).model,"allow-clear":``},null,8,[`value`,`options`,`disabled`])):h(Z)===`freetext`?(u(),P(o,{key:1,value:h(Y).effort,"onUpdate:value":n[18]||=e=>h(Y).effort=e,style:{width:`130px`},placeholder:`variant(可选)`,disabled:!h(Y).enabled||!h(Y).model,"allow-clear":``},null,8,[`value`,`disabled`])):M(``,!0)]),_:1})]),_:1}),V(c,{label:h(t)(`channelSessionList.k1pluglbl045`)},{default:I(()=>[h(de).length?(u(),A(`div`,Sr,[(u(!0),A(x,null,l(h(de),e=>(u(),A(`div`,{key:e.name,class:`ch-plugin-row`},[L(`div`,Cr,[L(`span`,wr,y(e.name),1),e.builtin?(u(),A(`span`,Tr,`内置`)):M(``,!0),e.description?(u(),A(`span`,Er,y(e.description),1)):M(``,!0)]),V(F,{checked:e.enabled,size:`small`,loading:h(pe)===e.name,onChange:t=>me(e,!!t)},null,8,[`checked`,`loading`,`onChange`])]))),128)),h(fe)===`explicit`?M(``,!0):(u(),A(`span`,Dr,y(h(t)(`channelSessionList.k1plugsrc046`)),1))])):(u(),A(`span`,Or,`—`))]),_:1},8,[`label`]),V(c,null,{default:I(()=>[V(v,{size:`small`,onClick:ye},{default:I(()=>[n[34]||=L(`span`,{class:`i-tabler-template`},null,-1),S(` `+y(e.$t(`channelSessionList.k6kpql010`)),1)]),_:1}),L(`span`,kr,y(e.$t(`channelSessionList.k1x6kznr021`)),1)]),_:1})]),_:1})]),_:1},8,[`open`,`title`,`confirm-loading`]),V(k,{open:h(ge),"onUpdate:open":n[23]||=e=>N(ge)?ge.value=e:null,title:e.$t(`channelSessionList.k6kpql010`),"confirm-loading":h(ve),"ok-text":`保存模板`,"cancel-text":`取消`,onOk:be},{default:I(()=>[V(O,{layout:`vertical`},{default:I(()=>[V(c,{label:e.$t(`channelSessionList.k1f55q76011`)},{default:I(()=>[V(o,{value:h(_e).name,"onUpdate:value":n[20]||=e=>h(_e).name=e},null,8,[`value`])]),_:1},8,[`label`]),V(c,{label:e.$t(`channelSessionList.k40gkk003`)},{default:I(()=>[V(o,{value:h(_e).description,"onUpdate:value":n[21]||=e=>h(_e).description=e},null,8,[`value`])]),_:1},8,[`label`]),V(c,{label:e.$t(`channelSessionList.k3lrqn0012`)},{default:I(()=>[V(X,{value:h(_e).visibility,"onUpdate:value":n[22]||=e=>h(_e).visibility=e},{default:I(()=>[V(q,{value:`private`},{default:I(()=>[S(y(e.$t(`channelSessionList.k1otvrfv022`)),1)]),_:1}),V(q,{value:`public`},{default:I(()=>[S(y(e.$t(`channelSessionList.k1cc399s023`)),1)]),_:1})]),_:1},8,[`value`])]),_:1},8,[`label`]),V(c,null,{default:I(()=>[L(`span`,Ar,y(e.$t(`channelSessionList.kl9btf7024`)),1)]),_:1})]),_:1})]),_:1},8,[`open`,`title`,`confirm-loading`]),V(Q,{open:h(D),"onUpdate:open":n[24]||=e=>N(D)?D.value=e:null,title:e.$t(`channelSessionList.kbdp56k013`),"initial-path":h(T).workspace||void 0,onSelect:n[25]||=e=>{h(T).workspace=e}},null,8,[`open`,`title`,`initial-path`]),V(Q,{open:h(le),"onUpdate:open":n[26]||=e=>N(le)?le.value=e:null,title:e.$t(`channelSessionList.kbdp56k013`),"initial-path":h(K).workspace||void 0,onSelect:n[27]||=e=>{h(K).workspace=e}},null,8,[`open`,`title`,`initial-path`])])}}}),[[`__scopeId`,`data-v-755dc699`]]),{__name:`WorkshopChannelSessionList`}),Mr={class:`live-bar`},Nr={key:0,class:`live-idle`},Pr={class:`idle-text`},Fr=[`title`],Ir={class:`live-ava`},Lr={class:`live-text`},Rr={class:`live-name`},zr={class:`live-detail`},Br=[`aria-expanded`,`title`],Vr={class:`live-pop`},Hr={class:`live-pop-title`},Ur=[`onClick`],Wr={class:`live-pop-text`},Gr={class:`live-pop-name`},Kr={class:`live-pop-detail`},qr=Object.assign(B(s({__name:`LiveAgentBar`,props:{wsId:{}},emits:[`openAgent`],setup(e,{emit:t}){let{t:n}=q(),r=e,i=t,a=lt(),o=vt(),s=O(()=>a.workspaces.find(e=>e.id===r.wsId)),c=O(()=>{let e=[];for(let t of s.value?.channelIds??[])for(let r of o.agents[t]??[])r.state===`busy`&&e.push({...r,channelId:t,taskLabel:r.currentTaskId?o.taskTitle(t,r.currentTaskId):r.queued?n(`liveAgentBar.k68d2a2006`,{p0:r.queued}):n(`liveAgentBar.k3o5tz9005`)});return e}),d=F(!1),f=e=>e.trim().charAt(0).toUpperCase(),p=e=>{d.value=!1,i(`openAgent`,{channelId:e.channelId,agentId:e.agentId})};return(e,t)=>(u(),A(`div`,Mr,[h(c).length===0?(u(),A(`div`,Nr,[t[3]||=L(`span`,{class:`idle-dot`,"aria-hidden":`true`},null,-1),L(`span`,Pr,y(e.$t(`liveAgentBar.kr4bxgp001`)),1)])):(u(),A(x,{key:1},[L(`button`,{type:`button`,class:`live-main`,title:e.$t(`liveAgentBar.kh66fan003`,{p0:h(c)[0].name}),onClick:t[0]||=e=>p(h(c)[0])},[L(`span`,Ir,[L(`span`,{class:`aw-avatar is-agent live-avatar`,style:_({"--av":h(xt)(h(c)[0].agentId)})},y(f(h(c)[0].name)),5),t[4]||=L(`span`,{class:`live-pip`,"aria-hidden":`true`},null,-1)]),L(`span`,Lr,[L(`span`,Rr,y(h(c)[0].name),1),L(`span`,zr,y(h(c)[0].taskLabel),1)])],8,Fr),h(c).length>1?(u(),A(`button`,{key:0,type:`button`,class:`live-more`,"aria-haspopup":`true`,"aria-expanded":h(d),title:e.$t(`liveAgentBar.k1a39d92004`,{p0:h(c).length-1}),onClick:t[1]||=e=>d.value=!h(d)},` +`+y(h(c).length-1),9,Br)):M(``,!0),h(d)&&h(c).length>1?(u(),A(x,{key:1},[L(`div`,{class:`live-backdrop`,onClick:t[2]||=e=>d.value=!1}),L(`div`,Vr,[L(`div`,Hr,y(e.$t(`liveAgentBar.k1sf0ymy002`))+` `+y(h(c).length),1),(u(!0),A(x,null,l(h(c),e=>(u(),A(`button`,{key:e.agentId,type:`button`,class:`live-pop-item`,onClick:t=>p(e)},[L(`span`,{class:`aw-avatar is-agent live-avatar-sm`,style:_({"--av":h(xt)(e.agentId)})},y(f(e.name)),5),L(`span`,Wr,[L(`span`,Gr,y(e.name),1),L(`span`,Kr,y(e.taskLabel),1)]),t[5]||=L(`span`,{class:`pop-dot`,"aria-hidden":`true`},null,-1)],8,Ur))),128))])],64)):M(``,!0)],64))]))}}),[[`__scopeId`,`data-v-865fed94`]]),{__name:`WorkshopLiveAgentBar`}),Jr=[`aria-label`],Yr=Object.assign(B(s({__name:`PaneSplitter`,props:{label:{default:``},variant:{default:`divider`}},emits:[`resize`,`reset`],setup(e,{emit:t}){let{t:n}=q(),r=e,i=O(()=>r.label||n(`paneSplitter.kejk1i9001`)),a=t,o=F(!1),s=0,c=e=>{e.button===0&&(o.value=!0,s=e.clientX,document.body.classList.add(`aw-pane-dragging`),e.currentTarget.setPointerCapture(e.pointerId))},l=e=>{if(!o.value)return;let t=e.clientX-s;s=e.clientX,t!==0&&a(`resize`,t)},f=e=>{if(o.value){o.value=!1,document.body.classList.remove(`aw-pane-dragging`);try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}}},p=e=>{let t=e.shiftKey?48:12;e.key===`ArrowLeft`?(a(`resize`,-t),e.preventDefault()):e.key===`ArrowRight`&&(a(`resize`,t),e.preventDefault())};return(t,n)=>(u(),A(`div`,{class:d([`pane-splitter`,[e.variant,{dragging:h(o)}]]),role:`separator`,"aria-orientation":`vertical`,"aria-label":h(i),tabindex:`0`,onPointerdown:c,onPointermove:l,onPointerup:f,onPointercancel:f,onDblclick:n[0]||=e=>a(`reset`),onKeydown:p},[...n[1]||=[L(`span`,{class:`grip`},null,-1)]],42,Jr))}}),[[`__scopeId`,`data-v-4f787ef8`]]),{__name:`WorkshopPaneSplitter`}),Xr=F(null);function Zr(){return{quoteText:Xr,quote:e=>{Xr.value=e}}}var Qr={key:0,class:`stream-covered`},$r={class:`stream-text prose`},ei=[`innerHTML`],ti={key:0,class:`cursor`},ni={key:2,class:`stream-pending`},ri=Object.assign(B(s({__name:`ClusterStream`,props:{block:{}},setup(e){let t=e,n=vt(),r=p(`aw:open-agent`,()=>{}),i=O(()=>t.block.events[0]?.channelId??``),a=O(()=>(n.agents[i.value]??[]).map(e=>({agentId:e.agentId,name:e.name}))),o=e=>{let t=e.target.closest(`.md-mention`);if(!t)return;let n=t.dataset.agentId;n&&r({channelId:i.value,agentId:n})},s=O(()=>gt(t.block)),l=O(()=>Ct(t.block)),f=F(0),m=null,h=()=>{m!==null&&(cancelAnimationFrame(m),m=null)},g=()=>{let e=s.value.length;if(f.value>=e){m=null;return}let t=e-f.value,n=Math.max(24,Math.min(1024,Math.ceil(t/16)));f.value=Math.min(e,f.value+n),m=requestAnimationFrame(g)},_=()=>{m===null&&(m=requestAnimationFrame(g))},v=()=>typeof document<`u`&&document.hidden;D([s,()=>t.block.settled],([e,t])=>{if(!e){f.value=0;return}if(t||e.length-f.value>4e3||v()){h(),f.value=e.length;return}f.value>e.length&&(f.value=e.length),f.value<e.length&&_()},{immediate:!0});let b=()=>{document.hidden||f.value<s.value.length&&(h(),_())};U(()=>{document.addEventListener(`visibilitychange`,b),t.block.settled||v()?f.value=s.value.length:(f.value=Math.min(f.value,s.value.length),_())}),c(()=>{h(),document.removeEventListener(`visibilitychange`,b)});let x=O(()=>mt(s.value.length,f.value,l.value)),S=O(()=>pt(s.value.slice(0,f.value),a.value));return(t,n)=>e.block.coveredBy?(u(),A(`div`,Qr,[n[0]||=L(`span`,{class:`i-tabler-corner-right-up`},null,-1),L(`span`,null,y(t.$t(`clusterStream.kpk9wff001`)),1)])):s.value?(u(),A(`div`,{key:1,class:d([`stream-bubble`,{settled:e.block.settled}]),onClick:o},[L(`div`,$r,[L(`span`,{innerHTML:S.value},null,8,ei),x.value?(u(),A(`span`,ti,`▋`)):M(``,!0)])],2)):l.value?(u(),A(`div`,ni,[...n[1]||=[L(`span`,{class:`pending-dot`},null,-1),L(`span`,{class:`pending-dot`},null,-1),L(`span`,{class:`pending-dot`},null,-1)]])):M(``,!0)}}),[[`__scopeId`,`data-v-89d25e3d`]]),{__name:`WorkshopBlocksClusterStream`}),ii={class:`tool-cluster`},ai={class:`tool-time aw-mono`},oi={class:`tool-name`},si=[`title`],ci={key:1,class:`tool-kind`},li=4,ui=Object.assign(B(s({__name:`ClusterTool`,props:{block:{}},setup(e){let t=e,n=O(()=>t.block.events.map(e=>{let t=String(e.payload.text??``).match(/^🔧\s*(\S+?)(?:\(([\s\S]*)\))?$/),n=t?.[1]??`tool`,r=t?.[2]??``;return{seq:e.seq,time:Et(e.at),name:n,args:r,meta:yt[n]??{icon:`i-tabler-tool`,kind:`native`}}})),r=F(!1),i=O(()=>r.value?n.value:n.value.slice(0,li)),a=O(()=>n.value.length>li);return(e,t)=>(u(),A(`div`,ii,[(u(!0),A(x,null,l(i.value,e=>(u(),A(`div`,{key:e.seq,class:d([`tool-line`,e.meta.kind])},[L(`time`,ai,y(e.time),1),t[1]||=L(`span`,{class:`tool-node`},null,-1),L(`span`,{class:d([`tool-icon`,e.meta.icon])},null,2),L(`span`,oi,y(e.name),1),e.args?(u(),A(`span`,{key:0,class:`tool-args`,title:e.args},y(e.args),9,si)):M(``,!0),e.meta.kind===`host`?(u(),A(`span`,ci,`harness`)):M(``,!0)],2))),128)),a.value?(u(),A(`button`,{key:0,class:`more-btn`,onClick:t[0]||=e=>r.value=!r.value},y(r.value?e.$t(`clusterTool.k40p82001`):`展开全部 ${n.value.length} 个调用`),1)):M(``,!0)]))}}),[[`__scopeId`,`data-v-0bef4195`]]),{__name:`WorkshopBlocksClusterTool`}),di={class:`status-cluster`},fi=[`aria-expanded`],pi={class:`st-label`},mi={class:`st-count`},hi={key:0,class:`st-preview`},gi={key:0,class:`st-detail`},_i={class:`st-text`},vi=Object.assign(B(s({__name:`ClusterStatus`,props:{block:{}},setup(e){let t=e,n=O(()=>t.block.events.map(e=>({seq:e.seq,text:String(e.payload.text??``)}))),r=O(()=>{let e=n.value[n.value.length-1];if(!e)return`(空)`;let t=(e.text.split(`
|
|
7
|
-
`).find(e=>e.trim().length>0)??``).replace(/\s+/g,` `).trim();return t.length>120?`${t.slice(0,120)}…`:t||`(空)`}),i=F(!1),a=()=>{i.value=!i.value};return(e,t)=>(u(),A(`div`,di,[L(`button`,{class:`st-toggle`,"aria-expanded":i.value,onClick:a},[L(`span`,{class:d([`chev`,{open:i.value}])},`▸`,2),L(`span`,pi,y(e.$t(`clusterStatus.k1fpy8te001`)),1),L(`span`,mi,y(n.value.length),1),i.value?M(``,!0):(u(),A(`span`,hi,y(r.value),1))],8,fi),i.value?(u(),A(`div`,gi,[(u(!0),A(x,null,l(n.value,e=>(u(),A(`div`,{key:e.seq,class:`st-line`},[t[0]||=L(`span`,{class:`st-mark`},`·`,-1),L(`pre`,_i,y(e.text),1)]))),128))])):M(``,!0)]))}}),[[`__scopeId`,`data-v-1da3d4ae`]]),{__name:`WorkshopBlocksClusterStatus`}),yi={class:`life-cluster`},bi=[`data-state`],xi={key:1,class:`life-row`},Si={class:`life-state`},Ci=[`title`],wi={class:`life-meta`},Ti={key:1,class:`life-count`},Ei={key:2,class:`life-row`},Di=Object.assign(B(s({__name:`ClusterLife`,props:{block:{}},setup(e){let t=e,n=vt(),r=O(()=>{let e=t.block.events[t.block.events.length-1];if(!e||e.type!==`agent.status`)return null;let n=e.payload;return{state:n.state,currentTaskId:n.currentTaskId??null,queued:n.queued??0,completed:n.completed??0,transitions:t.block.events.length,channelId:e.channelId}}),i=O(()=>{let e=r.value;if(!e?.currentTaskId)return``;let t=n.taskTitle(e.channelId,e.currentTaskId);return t&&t!==e.currentTaskId?t:e.currentTaskId.slice(0,12)});return(e,t)=>(u(),A(`div`,yi,[r.value?(u(),A(`span`,{key:0,class:`life-dot`,"data-state":r.value.state},null,8,bi)):M(``,!0),r.value?(u(),A(`div`,xi,[L(`span`,Si,y(r.value.state),1),i.value?(u(),A(`span`,{key:0,class:`life-task`,title:r.value.currentTaskId??``},`「`+y(i.value)+`」`,9,Ci)):M(``,!0),L(`span`,wi,y(e.$t(`clusterLife.k498bf002`))+` `+y(r.value.queued)+` · 完成 `+y(r.value.completed),1),r.value.transitions>1?(u(),A(`span`,Ti,y(r.value.transitions)+` `+y(e.$t(`clusterLife.k3pi5z1003`)),1)):M(``,!0)])):(u(),A(`span`,Ei,y(e.$t(`clusterLife.k1xthifv001`)),1))]))}}),[[`__scopeId`,`data-v-effa619b`]]),{__name:`WorkshopBlocksClusterLife`}),Oi={class:`chat-meta`},ki=[`title`],Ai=[`data-agent-id`,`title`],ji={key:2,class:`to-arrow`,"aria-hidden":`true`},Mi=[`data-agent-id`,`title`],Ni={key:4,class:`who-broadcast`},Pi=[`data-tone`],Fi=[`title`],Ii=[`title`],Li={class:`chat-time aw-mono`},Ri=[`innerHTML`],zi=4,Bi=Object.assign(B(s({__name:`ClusterRoute`,props:{block:{}},setup(e){let{t}=q(),n=e,r=vt(),i=p(`aw:open-agent`,()=>{}),a=O(()=>n.block.events.map((e,n)=>{let r=e.payload.metadata??{},i=typeof r[`x-aw-from-agent`]==`string`?r[`x-aw-from-agent`]:``,a=typeof r[`x-aw-from-label`]==`string`?r[`x-aw-from-label`]:``,o=typeof r[`x-aw-target-agent`]==`string`?r[`x-aw-target-agent`]:``,s=r[`x-aw-msg-priority`]===`immediate`?`immediate`:`task`,c=typeof r[`x-aw-task-kind`]==`string`?r[`x-aw-task-kind`]:``,l=c===`assign`?{icon:`i-tabler-send`,label:t(`clusterRoute.k1ax44eo005`),tone:`assign`}:c===`cancel`?{icon:`i-tabler-circle-x`,label:t(`clusterRoute.k1bsct42006`),tone:`notice`}:c===`child-completed`?{icon:`i-tabler-circle-check`,label:t(`clusterRoute.k1ax087h007`),tone:`notice`}:s===`immediate`?{icon:`i-tabler-bolt`,label:t(`clusterRoute.k1cxjc4m008`),tone:`immediate`}:{icon:`i-tabler-message`,label:t(`clusterRoute.k1bka5dz009`),tone:`peer`},u=e.payload.parts??[],d=r[`x-aw-in-reply-to`];return{seq:e.seq,i:n,channelId:e.channelId,from:i,fromLabel:a,to:o,kind:l,text:u.map(e=>e.text??``).join(`
|
|
8
|
-
`).trim(),time:Et(e.at),requireReply:r[`x-aw-require-reply`]===`true`,inReplyTo:typeof d==`string`?d:``}})),o=O(()=>n.block.events[0]?.channelId??``),s=O(()=>(r.agents[o.value]??[]).map(e=>({agentId:e.agentId,name:e.name}))),c=e=>e?r.agentName(o.value,e):``,f=e=>e.trim().charAt(0).toUpperCase(),m=O(()=>a.value.map(e=>pt(e.text,s.value))),g=e=>{let t=e.target.closest(`.md-mention, .who-pill`);if(!t)return;let n=t.dataset.agentId;n&&i({channelId:o.value,agentId:n})},v=F(!1),b=O(()=>v.value?a.value:a.value.slice(0,zi)),C=O(()=>v.value?m.value:m.value.slice(0,zi)),w=O(()=>a.value.length>zi);return(e,t)=>(u(),A(`div`,{class:`route-cluster`,onClick:g},[(u(!0),A(x,null,l(b.value,(n,r)=>(u(),A(`div`,{key:n.seq,class:`chat-row`},[L(`div`,Oi,[n.fromLabel&&!n.from?(u(),A(`span`,{key:0,class:`human-chip`,title:e.$t(`clusterRoute.k12448jn010`,{p0:n.fromLabel})},[t[1]||=L(`span`,{class:`i-tabler-user`},null,-1),S(` `+y(n.fromLabel),1)],8,ki)):M(``,!0),n.from?(u(),A(`button`,{key:1,type:`button`,class:`who-pill from`,"data-agent-id":n.from,title:e.$t(`clusterRoute.khsfl59011`,{p0:c(n.from)})},[L(`span`,{class:`aw-avatar is-agent who-ava`,style:_({"--av":h(xt)(n.from)})},y(f(c(n.from))),5),S(` @`+y(c(n.from)),1)],8,Ai)):M(``,!0),n.to?(u(),A(`span`,ji,`→`)):M(``,!0),n.to?(u(),A(`button`,{key:3,type:`button`,class:`who-pill`,"data-agent-id":n.to,title:e.$t(`clusterRoute.khsfl59011`,{p0:c(n.to)})},` @`+y(c(n.to)),9,Mi)):(u(),A(`span`,Ni,y(e.$t(`clusterRoute.kyza1ya002`)),1)),L(`span`,{class:`route-badge`,"data-tone":n.kind.tone},[L(`span`,{class:d(n.kind.icon)},null,2),S(y(n.kind.label),1)],8,Pi),n.requireReply?(u(),A(`span`,{key:5,class:`route-badge receipt`,title:e.$t(`clusterRoute.kfbpe32001`)},[t[2]||=L(`span`,{class:`i-tabler-message-reply`},null,-1),S(y(e.$t(`clusterRoute.k3wn89c003`)),1)],8,Fi)):M(``,!0),n.inReplyTo?(u(),A(`span`,{key:6,class:`route-badge reply-link aw-mono`,title:e.$t(`clusterRoute.k94hqp2012`,{p0:n.inReplyTo})},`↩ `+y(n.inReplyTo.slice(0,8)),9,Ii)):M(``,!0),L(`span`,Li,y(n.time),1)]),n.text?(u(),A(`div`,{key:0,class:`chat-body prose`,innerHTML:C.value[r]},null,8,Ri)):M(``,!0)]))),128)),w.value?(u(),A(`button`,{key:0,class:`more-btn`,onClick:t[0]||=e=>v.value=!v.value},y(v.value?e.$t(`clusterRoute.k40p82004`):e.$t(`clusterRoute.k13ewgum013`,{p0:a.value.length})),1)):M(``,!0)]))}}),[[`__scopeId`,`data-v-9422b1df`]]),{__name:`WorkshopBlocksClusterRoute`}),Vi={class:`task-cluster`},Hi={key:0,class:`chain-arrow`},Ui=[`data-state`,`title`],Wi={class:`state-code`},Gi={class:`task-title`},Ki={key:0,class:`task-assignee`},qi=Object.assign(B(s({__name:`ClusterTask`,props:{block:{}},setup(e){let{t}=q(),n=e,r=vt(),i=O(()=>n.block.events[0]?.channelId??``),a=O(()=>{let e=[];for(let t of n.block.events){if(t.type!==`task.status`)continue;let n=String(t.payload.state);e[e.length-1]!==n&&e.push(n)}return e}),o=O(()=>{let e=n.block.events.find(e=>e.type===`task.status`||e.type===`task.progress`),t=e?String(e.payload.taskId??``):``;return r.taskTitle(i.value,t)}),s=O(()=>{let e=n.block.events.find(e=>e.type===`task.status`&&e.payload.assigneeId);return e?r.agentName(i.value,e.payload.assigneeId):``}),c=O(()=>{let e=0;for(let t of n.block.events)t.type===`task.progress`&&(e=Math.max(e,t.payload.progress));return e}),d=O(()=>{let e=-1;for(let t of n.block.events)t.type===`task.progress`&&(e=Math.max(e,t.payload.progress));return e>=0}),f={SUBMITTED:{bg:`var(--tone-neutral-bg)`,dot:`var(--tone-neutral-dot)`},ASSIGNED:{bg:`var(--tone-info-bg)`,dot:`var(--tone-info-dot)`},WORKING:{bg:`var(--tone-info-bg)`,dot:`var(--tone-info-dot)`},WAITING:{bg:`var(--tone-warning-bg)`,dot:`var(--tone-warning-dot)`},COMPLETED:{bg:`var(--tone-success-bg)`,dot:`var(--tone-success-dot)`},FAILED:{bg:`var(--tone-danger-bg)`,dot:`var(--tone-danger-dot)`},CANCELED:{bg:`var(--tone-neutral-bg)`,dot:`var(--tone-neutral-dot)`}},p=e=>f[e]??f.SUBMITTED,m={SUBMITTED:t(`clusterTask.k3n8lhn001`),ASSIGNED:t(`clusterTask.k3n8mf0002`),WORKING:t(`clusterTask.k3o5tz9003`),WAITING:t(`clusterTask.k1hpsvap004`),COMPLETED:t(`clusterTask.k10w8u89005`),FAILED:t(`clusterTask.k4u7566006`),CANCELED:t(`clusterTask.k3n5vg5007`)},h=e=>m[e]??e;return(e,t)=>{let n=Bn;return u(),A(`div`,Vi,[(u(!0),A(x,null,l(a.value,(t,n)=>(u(),A(x,{key:t},[n>0?(u(),A(`span`,Hi,`→`)):M(``,!0),L(`span`,{class:`state-chip`,style:_({background:p(t).bg}),"data-state":t,title:e.$t(`clusterTask.kfwdcd4008`,{p0:t})},[L(`span`,{class:`state-dot`,style:_({background:p(t).dot})},null,4),S(y(h(t)),1),L(`span`,Wi,y(t),1)],12,Ui)],64))),128)),L(`span`,Gi,y(o.value),1),s.value?(u(),A(`span`,Ki,`→ `+y(s.value),1)):M(``,!0),d.value?(u(),P(n,{key:1,percent:c.value,size:`small`,class:`progress`,"show-info":!0},null,8,[`percent`])):M(``,!0)])}}}),[[`__scopeId`,`data-v-cdaa9d8e`]]),{__name:`WorkshopBlocksClusterTask`}),Ji={class:`artifact-head`},Yi={class:`tag`},Xi={class:`name`},Zi=Object.assign(B(s({__name:`ArtifactCard`,props:{artifact:{}},setup(e){let t=e,n=O(()=>t.artifact.parts.map(e=>e.text??``).join(`
|
|
9
|
-
`).trim()),r=O(()=>{let e=n.value;if(!e)return!1;try{return JSON.parse(e),!0}catch{return!1}}),i=O(()=>t.artifact.name===`deliverable`||t.artifact.name===`summary`||t.artifact.name===`result`||t.artifact.name===`goal-summary`),a=O(()=>{switch(t.artifact.name){case`deliverable`:return`i-tabler-package`;case`summary`:return`i-tabler-list-check`;case`result`:return`i-tabler-circle-check`;case`output`:return`i-tabler-file-text`;case`input`:return`i-tabler-inbox`;case`goal-summary`:return`i-tabler-flag`;default:return`i-tabler-receipt-2`}}),o=F(!1),s=O(()=>{let e=n.value;return e.length>200&&!o.value?`${e.slice(0,200)}…`:e}),c=F(!1),l=async()=>{try{await navigator.clipboard.writeText(n.value),c.value=!0,setTimeout(()=>{c.value=!1},1500)}catch{}};return(t,n)=>{let f=Ee;return u(),A(`div`,{class:d([`artifact-card`,{deliverable:h(i)}])},[L(`div`,Ji,[L(`span`,Yi,[L(`span`,{class:d(h(a))},null,2)]),L(`span`,Xi,y(e.artifact.name??`artifact`),1),V(f,{size:`small`,type:`text`,class:`op`,onClick:n[0]||=e=>o.value=!h(o)},{default:I(()=>[S(y(h(o)?t.$t(`artifactCard.k40p82001`):t.$t(`artifactCard.k3yu62003`)),1)]),_:1}),V(f,{size:`small`,type:`text`,class:`op`,onClick:l},{default:I(()=>[S(y(h(c)?t.$t(`artifactCard.k3n6o1m002`):t.$t(`artifactCard.k3y694004`)),1)]),_:1})]),L(`pre`,{class:d([`artifact-body`,{json:h(r)}])},y(h(s)||`(空)`),3)],2)}}}),[[`__scopeId`,`data-v-1699711f`]]),{__name:`WorkshopArtifactCard`}),Qi={class:`artifact-cluster`},$i={key:0,class:`dup-note`},ea=Object.assign(B(s({__name:`ClusterArtifact`,props:{block:{}},setup(e){let t=e,n=O(()=>t.block.events.filter(e=>e.type===`a2a.artifact`).map(e=>e.payload.artifact)),r=O(()=>!t.block.dupStream),i=F(t.block.dupStream);return(t,a)=>{let o=Zi;return u(),A(`div`,Qi,[e.block.dupStream?(u(),A(`div`,$i,[a[1]||=L(`span`,{class:`i-tabler-copy`},null,-1),L(`span`,null,y(t.$t(`clusterArtifact.kyh87lw001`)),1),L(`button`,{class:`mini-btn`,onClick:a[0]||=e=>i.value=!i.value},y(i.value?t.$t(`clusterArtifact.k49les002`):`查看`),1)])):M(``,!0),r.value||i.value?(u(!0),A(x,{key:1},l(n.value,(e,t)=>(u(),P(o,{key:t,artifact:e},null,8,[`artifact`]))),128)):M(``,!0)])}}}),[[`__scopeId`,`data-v-8e7bf1b1`]]),{__name:`WorkshopBlocksClusterArtifact`}),ta={class:`member-cluster`},na=[`data-op`],ra={class:`line-text`},ia=8,aa=Object.assign(B(s({__name:`ClusterMember`,props:{block:{}},setup(e){let t=e,n=vt(),r=O(()=>t.block.events[0]?.channelId??``),i=O(()=>t.block.events.map(e=>{let t=e.payload,i=t.by===`user`?`用户`:`lead ${n.agentName(r.value,t.by.replace(/^lead:/,``))}`,a=`${t.name}(${t.role}/${t.harness})`,o={added:`新增成员 ${a}`,updated:t.enabled===0?`禁用成员 ${a}`:`更新成员 ${a}`,removed:`移除成员 ${a}`};return{seq:e.seq,text:`${i}${o[t.op]}${t.reason?`,理由:${t.reason}`:``}`,op:t.op}})),a=F(!1),o=O(()=>a.value?i.value:i.value.slice(0,ia)),s=O(()=>i.value.length>ia);return(e,t)=>(u(),A(`div`,ta,[(u(!0),A(x,null,l(o.value,e=>(u(),A(`div`,{key:e.seq,class:`member-line`,"data-op":e.op},[t[1]||=L(`span`,{class:`i-tabler-users`},null,-1),L(`span`,ra,y(e.text),1)],8,na))),128)),s.value?(u(),A(`button`,{key:0,class:`more-btn`,onClick:t[0]||=e=>a.value=!a.value},y(a.value?e.$t(`clusterMember.k40p82001`):`全部 ${i.value.length} 条`),1)):M(``,!0)]))}}),[[`__scopeId`,`data-v-0647f285`]]),{__name:`WorkshopBlocksClusterMember`}),oa={class:`memory-cluster`},sa=[`data-scope`],ca={class:`mem-title`},la=8,ua=Object.assign(B(s({__name:`ClusterMemory`,props:{block:{}},setup(e){let t=e,n=O(()=>t.block.events.map(e=>({seq:e.seq,scope:String(e.payload.scope),title:String(e.payload.title)}))),r=F(!1),i=O(()=>r.value?n.value:n.value.slice(0,la)),a=O(()=>n.value.length>la);return(e,t)=>(u(),A(`div`,oa,[(u(!0),A(x,null,l(i.value,e=>(u(),A(`div`,{key:e.seq,class:`memory-line`},[t[1]||=L(`span`,{class:`i-tabler-bookmark`},null,-1),L(`span`,{class:`mem-scope`,"data-scope":e.scope},y(e.scope),9,sa),L(`span`,ca,y(e.title),1)]))),128)),a.value?(u(),A(`button`,{key:0,class:`more-btn`,onClick:t[0]||=e=>r.value=!r.value},y(r.value?e.$t(`clusterMemory.k40p82001`):`全部 ${n.value.length} 条`),1)):M(``,!0)]))}}),[[`__scopeId`,`data-v-9ba9f01b`]]),{__name:`WorkshopBlocksClusterMemory`}),da={class:`error-cluster`},fa={key:0,class:`error-code`},pa={class:`error-text`},ma=3,ha=Object.assign(B(s({__name:`ClusterError`,props:{block:{}},setup(e){let t=e,n=O(()=>t.block.events.map(e=>({seq:e.seq,code:String(e.payload.code??``),text:String(e.payload.message??``)}))),r=F(!1),i=O(()=>r.value?n.value:n.value.slice(0,ma)),a=O(()=>n.value.length>ma);return(e,t)=>(u(),A(`div`,da,[(u(!0),A(x,null,l(i.value,e=>(u(),A(`div`,{key:e.seq,class:`error-line`},[t[1]||=L(`span`,{class:`i-tabler-alert-triangle`},null,-1),e.code?(u(),A(`span`,fa,y(e.code),1)):M(``,!0),L(`span`,pa,y(e.text),1)]))),128)),a.value?(u(),A(`button`,{key:0,class:`more-btn`,onClick:t[0]||=e=>r.value=!r.value},y(r.value?e.$t(`clusterError.k40p82001`):`全部 ${n.value.length} 条`),1)):M(``,!0)]))}}),[[`__scopeId`,`data-v-22804f20`]]),{__name:`WorkshopBlocksClusterError`}),ga={class:`other-cluster`},_a={class:`other-type`},va=6,ya=Object.assign(B(s({__name:`ClusterOther`,props:{block:{}},setup(e){let t=e,n=O(()=>t.block.events.map(e=>({seq:e.seq,type:e.type}))),r=F(!1),i=O(()=>r.value?n.value:n.value.slice(0,va)),a=O(()=>n.value.length>va);return(e,t)=>(u(),A(`div`,ga,[(u(!0),A(x,null,l(i.value,e=>(u(),A(`div`,{key:e.seq,class:`other-row`},[t[1]||=L(`span`,{class:`i-tabler-dots`},null,-1),L(`span`,_a,y(e.type),1)]))),128)),a.value?(u(),A(`button`,{key:0,class:`more-btn`,onClick:t[0]||=e=>r.value=!r.value},y(r.value?e.$t(`clusterOther.k40p82001`):`全部 ${n.value.length} 条`),1)):M(``,!0)]))}}),[[`__scopeId`,`data-v-5f033e18`]]),{__name:`WorkshopBlocksClusterOther`}),ba=[`data-kind`,`data-tier`,`data-settled`,`data-covered`,`data-seq`,`data-events`,`data-folded`],xa=[`title`],Sa={key:0,class:`i-tabler-user system-icon`},Ca={key:1,class:`i-tabler-cpu system-icon`},wa=[`title`],Ta={class:`eb-main`},Ea={class:`block-head`},Da={class:`agent-name`},Oa={key:0,class:`role-label`},ka=[`title`],Aa={class:`head-right`},ja={key:0,class:`running-chip`},Ma=[`title`],Na={key:2,class:`merged`},Pa={class:`kind-chip`},Fa={class:`time`},Ia={key:2,class:`eb-toolbar`},La=[`title`],Ra=[`title`],za={key:0,class:`ghost-time`},Ba=Object.assign(B(s({__name:`EventBlock`,props:{block:{},turnStart:{type:Boolean},compact:{type:Boolean},enterStage:{}},setup(t){let n=t,r=vt(),{quote:i}=Zr(),a=O(()=>n.block.events[0]?.channelId??``),o=O(()=>Et(n.block.firstAt)),s=O(()=>{let e=n.block.agentId;return e?r.agentName(a.value,e):`system`}),c=O(()=>{if(n.block.agentId)return null;let e=n.block.events[0];if(!e||e.type!==`a2a.message`)return null;let t=(e.payload.metadata??{})[`x-aw-from-label`];return typeof t==`string`&&t?t:null}),l=O(()=>{let e=n.block.agentId;return e?(r.agentName(a.value,e)||e).charAt(0).toUpperCase():``}),f=O(()=>n.block.agentId?xt(n.block.agentId):void 0),m=O(()=>dt[n.block.kind]),g=p(`aw:open-agent`,()=>{}),v=()=>{n.block.agentId&&g({channelId:a.value,agentId:n.block.agentId})},C=O(()=>{let e=n.block.agentId;if(!e)return``;let t=(r.agents[a.value]??[]).find(t=>t.agentId===e);if(!t)return`agent`;let i=t.role===`lead`?`lead`:`worker`,o=t.harness??``;return o?`${i} · ${o}`:i}),w=O(()=>ft(n.block.events)),T=O(()=>{let e=n.block.agentId;return e?(r.agents[a.value]??[]).find(t=>t.agentId===e)?.state??null:null}),E=O(()=>n.block.kind===`stream`&&!n.block.settled&&T.value===`busy`),D=O(()=>n.block.events[0]?.seq??0),k={stream:ri,tool:ui,status:vi,life:Di,route:Bi,task:qi,artifact:ea,member:aa,memory:ua,error:ha,other:ya},j=O(()=>k[n.block.kind]??ya),N=O(()=>n.block.kind===`stream`?gt(n.block).trim()||null:n.block.kind===`route`&&n.block.events.map(e=>(e.payload.parts??[]).map(e=>e.text??``).join(`
|
|
10
|
-
`).trim()).filter(Boolean).join(`
|
|
11
|
-
`)||null),I=F(!1),R=async()=>{let e=N.value;if(e)try{await navigator.clipboard.writeText(e),I.value=!0,setTimeout(()=>{I.value=!1},1400)}catch{}},B=()=>{let e=N.value;e&&i(e)};return(n,r)=>(u(),A(`section`,{class:d([`event-block`,{"turn-start":t.turnStart,compact:t.compact,enter:t.enterStage?.enter}]),style:_(t.enterStage?.enter?{"--d":`${t.enterStage.delay}ms`}:void 0),"data-kind":t.block.kind,"data-tier":w.value,"data-settled":t.block.settled?`true`:`false`,"data-covered":t.block.coveredBy?`true`:`false`,"data-seq":D.value,"data-events":t.block.events.length,"data-folded":t.block.folded},[L(`button`,{type:`button`,class:d([`agent-avatar`,{"is-agent":!!t.block.agentId,"is-human":!!c.value,clickable:!!t.block.agentId}]),title:c.value??`${s.value}${C.value?` · ${C.value}`:``}`,style:_(f.value?{"--av":f.value}:void 0),onClick:v},[c.value?(u(),A(`span`,Sa)):t.block.agentId?(u(),A(x,{key:2},[S(y(l.value),1)],64)):(u(),A(`span`,Ca)),t.block.agentId&&T.value?(u(),A(`span`,{key:3,class:d([`av-status`,T.value]),title:T.value===`busy`?`运行中`:T.value===`stopped`?`已停止`:`空闲`},null,10,wa)):M(``,!0)],14,xa),L(`div`,Ta,[z(L(`header`,Ea,[L(`span`,Da,y(c.value??s.value),1),C.value?(u(),A(`span`,Oa,y(C.value),1)):M(``,!0),w.value===`attention`?(u(),A(`span`,{key:1,class:`tier-attention`,title:n.$t(`eventBlock.kc918hn001`)},[r[0]||=L(`span`,{class:`i-tabler-alert-circle`},null,-1),S(y(n.$t(`eventBlock.k3wmcv4004`)),1)],8,ka)):M(``,!0),L(`span`,Aa,[E.value?(u(),A(`span`,ja,[r[1]||=L(`span`,{class:`running-dot`},null,-1),S(y(n.$t(`eventBlock.k3vp67i005`)),1)])):M(``,!0),t.block.folded>0?(u(),A(`span`,{key:1,class:`folded`,title:n.$t(`eventBlock.kcugdph002`)},y(n.$t(`eventBlock.k3xk4t006`))+` `+y(t.block.folded),9,Ma)):M(``,!0),t.block.events.length>1?(u(),A(`span`,Na,`×`+y(t.block.events.length),1)):M(``,!0),L(`span`,Pa,y(m.value.label),1),L(`span`,Fa,y(o.value),1)]),N.value?(u(),A(`span`,Ia,[L(`button`,{type:`button`,class:`eb-tool`,title:h(I)?`已复制`:`复制全文`,onClick:R},[L(`span`,{class:d(h(I)?`i-tabler-check`:`i-tabler-copy`)},null,2)],8,La),L(`button`,{type:`button`,class:`eb-tool`,title:n.$t(`eventBlock.kknq700003`),onClick:B},[...r[2]||=[L(`span`,{class:`i-tabler-quote`},null,-1)]],8,Ra)])):M(``,!0)],512),[[e,!t.compact]]),t.compact?(u(),A(`span`,za,y(o.value.slice(0,5)),1)):M(``,!0),(u(),P(b(j.value),{block:t.block,class:`eb-body`},null,8,[`block`]))])],14,ba))}}),[[`__scopeId`,`data-v-49551fd4`]]),{__name:`WorkshopEventBlock`}),Va=160,Ha=8,Ua=new Set([`agent.message`,`a2a.artifact`,`error`,`task.status`,`a2a.message`,`agent.member`,`agent.status`]);function Wa(e,t={}){let n=bt(),r=new ht,i=j(r.blocks),a=O(()=>C(e)??``),o=O(()=>n.filters[a.value]??`all`),s=O(()=>n.focusAgents[a.value]??null),c=O(()=>C(t.resetKey)),l=O(()=>t.predicate??null),u=O(()=>t.raw?a.value?n.ring(a.value).items:[]:a.value?n.timeline(a.value):[]),d=O(()=>(c.value,l.value?u.value.filter(l.value):u.value)),f=null,p=!1,m=e=>{if(e.length===0)return e;let t=e.length-1;return e.filter((e,n)=>{if(e.kind!==`stream`)return!0;let r=gt(e).trim();return!(!r&&!e.overrideText||n===t&&!e.settled&&r.length<Ha)})},h=()=>{f!=null&&(clearTimeout(f),f=null),i.value=m(r.blocks)},g=e=>{if(e||p){p=!1,h();return}f??=setTimeout(h,Va)};return E(()=>{f!=null&&clearTimeout(f)}),t.raw?D([a,l,c],()=>{r.reset(),p=!0},{immediate:!0}):D([a,o,s,l,c],()=>{r.reset(),p=!0},{immediate:!0}),D(d,e=>{let t=e[e.length-1],n=t!=null&&Ua.has(t.type);r.sync(e),g(n)},{immediate:!0}),{blocks:i,totalEvents:O(()=>d.value.length),clusterer:r}}var Ga=!1;function Ka(){Ga||typeof document>`u`||(Ga=!0,document.addEventListener(`click`,e=>{let t=e.target?.closest?.(`.code-copy`);if(!(t instanceof HTMLElement))return;let n=t.closest(`.code-block`)?.querySelector(`pre code`)?.textContent??``,r=()=>{let e=t.textContent;t.textContent=`已复制`,setTimeout(()=>{t.textContent=e??`复制`},1400)};navigator.clipboard?.writeText?navigator.clipboard.writeText(n).then(r,r):r()}))}var qa={class:`transcript`},Ja={class:`filter-bar`},Ya={class:`count`},Xa=[`data-state`,`title`],Za={key:0,class:`sync-pulse`},Qa={key:1,class:`i-tabler-point-filled sync-dot`},$a=[`title`],eo=[`disabled`],to={key:1,class:`earlier-done`},no={key:2,class:`skel-stack`},ro={key:3,class:`empty`},io={key:0,class:`i-tabler-refresh empty-icon`},ao={key:1,class:`i-tabler-message-dots empty-icon`},oo={class:`empty-title`},so={class:`empty-hint`},co={key:4,class:`empty filtered`},lo={class:`empty-title`},uo={class:`empty-hint`},fo={key:0,class:`date-divider`},po={class:`date-divider-label`},mo=Object.assign(B(s({__name:`TranscriptTimeline`,props:{channelId:{}},setup(e){let{t}=q(),n=e,r=bt(),{conn:i}=St();Ka();let a=F(null),o=F(!0),s=O(()=>i.state===`connecting`&&r.ring(n.channelId).items.length===0),d=O({get:()=>r.filters[n.channelId]??`all`,set:e=>r.setFilter(n.channelId,e)}),{blocks:p,totalEvents:m}=Wa(()=>n.channelId),g=F(!1),v=F(!1),b=O(()=>r.ring(n.channelId).items.length),C=O(()=>!v.value&&b.value>0),w=async()=>{if(g.value||v.value)return;g.value=!0;let e=a.value,t=e?{top:e.scrollTop,height:e.scrollHeight}:null;try{await r.loadEarlier(n.channelId)||(v.value=!0),e&&t&&(await f(),e.scrollTop=e.scrollHeight-t.height+t.top)}catch{}finally{g.value=!1}},T=()=>{let e=a.value;e&&(o.value=e.scrollHeight-e.scrollTop-e.clientHeight<120)},E=F(!1),k=(e,t)=>new Promise(n=>{if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){e.scrollTop=e.scrollHeight,n();return}let r=e.scrollTop,i=e.scrollHeight-e.clientHeight-r,a=performance.now(),o=s=>{let c=Math.min(1,(s-a)/t),l=1-(1-c)**3;e.scrollTop=r+i*l,c<1?requestAnimationFrame(o):n()};requestAnimationFrame(o)}),j=async()=>{o.value=!0;let e=a.value;if(e){E.value=!0;try{await k(e,800)}finally{E.value=!1}}},P=F(new Map),I=0,R=0,z=Date.now();D(p,(e,t)=>{let n=new Set((t??[]).map(e=>e.id)),r=e.filter(e=>!n.has(e.id)),i=new Map,a=r.length===0||r.length>Math.max(8,Math.ceil(e.length*.4))||Date.now()-z<1500;if(!a){let e=Date.now();e-I>600&&(I=e,R=0)}for(let t of e){let e=!n.has(t.id)&&!a?Math.min(R++,7)*60:-1;i.set(t.id,{enter:e>=0,delay:Math.max(0,e)})}P.value=i},{immediate:!0});let B=async()=>{if(!o.value)return;await f();let e=a.value;e&&(e.scrollTop=e.scrollHeight)};D(()=>p.value.length,()=>{B()}),D(()=>r.lastSeq(n.channelId),()=>{B()});let W=F(null),G=null;U(()=>{let e=a.value,t=W.value;if(!e||!t||typeof ResizeObserver>`u`)return;let n=new ResizeObserver(()=>{o.value&&(e.scrollTop=e.scrollHeight)});n.observe(t),G=n}),c(()=>{G?.disconnect(),G=null});let K=O(()=>i.pendingReplay||i.state===`connecting`),J=O(()=>{if(!i.lastDataAt)return``;let e=Math.max(0,Math.round((Date.now()-i.lastDataAt)/1e3));return e<5?t(`transcriptTimeline.k3wwxl026`):t(`transcriptTimeline.k2gyl6l027`,{p0:e})}),Y=[{value:`all`,label:t(`transcriptTimeline.k3x4t1012`)},{value:`key`,label:t(`transcriptTimeline.k3x5xi013`)},{value:`messages`,label:t(`transcriptTimeline.k41ykc014`)},{value:`tasks`,label:t(`transcriptTimeline.k3wcox015`)},{value:`team`,label:t(`transcriptTimeline.k3y5ja016`)},{value:`errors`,label:t(`transcriptTimeline.k49d2l017`)}],X=e=>{let t=new Date(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()},Z=e=>{let n=new Date(e),r=new Date,i=new Date;i.setDate(r.getDate()-1);let a=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate();if(a(n,r))return t(`transcriptTimeline.k3wcqg018`);if(a(n,i))return t(`transcriptTimeline.k40l1y019`);let o=n.getFullYear()===r.getFullYear()?``:t(`transcriptTimeline.k2hda35028`,{p0:n.getFullYear()});return t(`transcriptTimeline.kbs29zx029`,{p0:o,p1:n.getMonth()+1,p2:n.getDate()})},ee=O(()=>{let e=[],t=null;for(let n of p.value){let r=X(n.firstAt);e.push({divider:t===null||r!==t?Z(n.firstAt):null}),t=r}return e});return(e,t)=>{let n=ke,r=Ba;return u(),A(`div`,qa,[L(`div`,Ja,[V(n,{value:h(d),"onUpdate:value":t[0]||=e=>N(d)?d.value=e:null,size:`small`,options:Y},null,8,[`value`]),L(`span`,Ya,y(h(m))+` `+y(e.$t(`transcriptTimeline.k1atjpx1005`))+` `+y(h(p).length)+` `+y(e.$t(`transcriptTimeline.k4a9o007`)),1),L(`span`,{class:`sync-chip`,"data-state":h(K)?`syncing`:h(i).state,title:h(K)?`连接中断,重连后将自动对齐缺失事件`:e.$t(`transcriptTimeline.kglov3b025`,{p0:h(J)||`无`})},[h(K)?(u(),A(`span`,Za)):h(i).state===`open`?(u(),A(`span`,Qa)):M(``,!0),S(` `+y(h(K)?e.$t(`transcriptTimeline.k3lmtk3008`):h(i).state===`open`?h(J)||e.$t(`transcriptTimeline.k3y2p8020`):e.$t(`transcriptTimeline.k44c2n024`)),1)],8,Xa)]),L(`div`,{ref_key:`scroller`,ref:a,class:`scroller`,onScroll:T},[!h(o)&&!h(E)?(u(),A(`button`,{key:0,class:`jump-latest`,title:e.$t(`transcriptTimeline.kqu93z8001`),onClick:j},[t[1]||=L(`span`,{class:`i-tabler-arrow-down`},null,-1),S(` `+y(e.$t(`transcriptTimeline.k40t11002`)),1)],8,$a)):M(``,!0),L(`div`,{ref_key:`columnEl`,ref:W,class:`column`},[h(C)?(u(),A(`button`,{key:0,class:`earlier-btn`,disabled:h(g),onClick:w},y(h(g)?e.$t(`transcriptTimeline.k1br0ij9009`):e.$t(`transcriptTimeline.kywgd38021`)),9,eo)):M(``,!0),h(v)&&h(b)>0?(u(),A(`div`,to,y(e.$t(`transcriptTimeline.k1kbaden003`)),1)):M(``,!0),h(s)?(u(),A(`div`,no,[(u(),A(x,null,l(3,e=>L(`div`,{key:e,class:`skel-row`,style:_({"--d":`${(e-1)*.12}s`})},[...t[2]||=[H(`<span class="aw-skel skel-ava" data-v-a25318ff></span><div class="skel-lines" data-v-a25318ff><span class="aw-skel skel-line name" data-v-a25318ff></span><span class="aw-skel skel-line w70" data-v-a25318ff></span><span class="aw-skel skel-line w45" data-v-a25318ff></span></div>`,2)]],4)),64))])):h(p).length===0&&h(m)===0?(u(),A(`div`,ro,[h(K)||h(i).state!==`open`?(u(),A(`span`,io)):(u(),A(`span`,ao)),L(`p`,oo,y(h(K)||h(i).state!==`open`?e.$t(`transcriptTimeline.klnne6o010`):e.$t(`transcriptTimeline.k126izdm022`)),1),L(`p`,so,y(h(K)||h(i).state!==`open`?e.$t(`transcriptTimeline.k1iuqpxj011`):e.$t(`transcriptTimeline.kuyjpmi023`)),1)])):h(p).length===0?(u(),A(`div`,co,[t[3]||=L(`span`,{class:`i-tabler-filter-off empty-icon`},null,-1),L(`p`,lo,y(e.$t(`transcriptTimeline.ktuo1zg004`)),1),L(`p`,uo,` 「`+y(Y.find(e=>e.value===h(d))?.label??h(d))+`」`+y(e.$t(`transcriptTimeline.kapxgq4006`)),1)])):M(``,!0),(u(!0),A(x,null,l(h(p),(e,t)=>(u(),A(x,{key:e.id},[h(ee)[t]?.divider?(u(),A(`div`,fo,[L(`span`,po,y(h(ee)[t].divider),1)])):M(``,!0),V(r,{block:e,"turn-start":t>0&&h(p)[t-1].agentId!==e.agentId,compact:t>0&&h(p)[t-1].agentId===e.agentId,"enter-stage":h(P).get(e.id)},null,8,[`block`,`turn-start`,`compact`,`enter-stage`])],64))),128))],512)],544)])}}}),[[`__scopeId`,`data-v-a25318ff`]]),{__name:`WorkshopTranscriptTimeline`}),ho={key:0,class:`lane-empty`},go={key:1,class:`lane-empty`},_o=[`disabled`],vo=Object.assign(B(s({__name:`LaneBlocks`,props:{channelId:{},agentId:{}},setup(e){let t=e,n=bt(),{blocks:r}=Wa(()=>t.channelId,{predicate:e=>e.agentId===t.agentId,resetKey:()=>t.agentId,raw:!0}),i=F(!0);U(()=>{n.loadLaneHistory(t.channelId,t.agentId).finally(()=>{i.value=!1})});let a=F(!1),o=F(!1),s=O(()=>r.value.length>0),c=O(()=>!o.value&&s.value),d=async()=>{if(!(a.value||o.value)){a.value=!0;try{await n.loadLaneEarlier(t.channelId,t.agentId)||(o.value=!0)}catch{}finally{a.value=!1}}};return(e,t)=>{let n=Ba;return h(r).length===0&&h(i)?(u(),A(`div`,ho,[t[0]||=L(`span`,{class:`i-tabler-refresh lane-empty-icon`},null,-1),S(` `+y(e.$t(`laneBlocks.k1otw1r3001`)),1)])):h(r).length===0?(u(),A(`div`,go,y(e.$t(`laneBlocks.k1el0s5k002`)),1)):(u(),A(x,{key:2},[h(c)?(u(),A(`button`,{key:0,type:`button`,class:`lane-earlier`,disabled:h(a),onClick:d},y(h(a)?e.$t(`laneBlocks.k1br0ij9003`):e.$t(`laneBlocks.k1br5dtr004`)),9,_o)):M(``,!0),(u(!0),A(x,null,l(h(r),e=>(u(),P(n,{key:e.id,block:e},null,8,[`block`]))),128))],64))}}}),[[`__scopeId`,`data-v-b04638b2`]]),{__name:`WorkshopLanesLaneBlocks`}),yo={class:`lanes-wrap`},bo={class:`toolbar`},xo={class:`team-summary`},So={class:`ts-label`},Co={class:`ts-count`},wo={class:`ts-unit`},To={class:`ts-detail`},Eo={class:`lanes`},Do={key:0,class:`empty`},Oo={class:`empty-title`},ko={class:`empty-title`},Ao={class:`empty-hint`},jo={class:`lane-head`},Mo={class:`head-top`},No={class:`lane-ava`},Po=[`title`],Fo=[`title`],Io=[`title`],Lo={class:`head-sub`},Ro={class:`lane-meta`},zo={key:0,class:`lane-progress`},Bo={class:`lane-actions`},Vo={class:`term-label`},Ho={class:`lane-body`},Uo={class:`mode-hint`},Wo={class:`mode-hint`},Go={class:`ws-hint`},Ko=320,qo=Object.assign(B(s({__name:`AgentLanesView`,props:{channelId:{}},setup(e){let{t}=q(),n=e,r=vt(),i=wt(),a=O(()=>r.agents[n.channelId]??[]),o=Ot(`aw.harness.laneW`,{}),s=e=>o.value[e]??Ko,f=(e,t)=>{o.value={...o.value,[e]:Math.min(720,Math.max(240,s(e)+t))}},p=e=>{let t={...o.value};Reflect.deleteProperty(t,e),o.value=t},m=e=>e.trim().charAt(0).toUpperCase()||`?`,g=e=>xt(e),v={processing:`var(--tone-live-dot)`,warning:`var(--tone-warning-dot)`,success:`var(--tone-success-dot)`},b=F(!1),C=F(!1),w=F(`create`),T=k({name:``,harness:`omp`,role:`worker`,systemPrompt:``}),E=F([]),D=F([]),j=F(``),R=F(``),z=async()=>{try{let[e,t]=await Promise.all([i.listTemplates(),i.listTeams()]);E.value=(e.data??[]).map(e=>({id:e.id,name:e.name,harness:e.harness,enabled:e.enabled})),D.value=(t.data??[]).map(e=>({id:e.id,name:e.name,memberCount:e.members.length,hasLead:e.members.some(e=>e.role===`lead`)}))}catch{}},B=F(!1),H=F(!1),W=k({agentId:``,name:``,role:`worker`,harness:``,systemPrompt:``}),G=e=>{W.agentId=e.agentId,W.name=e.name,W.role=e.role===`lead`?`lead`:`worker`,W.harness=e.harness,W.systemPrompt=typeof e.config?.systemPromptPrefix==`string`?e.config.systemPromptPrefix:``,B.value=!0},K=async()=>{let e=W.name.trim();if(!e){$.warning(t(`agentLanesView.ky6jqt4032`));return}H.value=!0;try{await i.updateChannelAgent(n.channelId,W.agentId,{name:e,config:{...r.agents[n.channelId]?.find(e=>e.agentId===W.agentId)?.config??{},systemPromptPrefix:W.systemPrompt.trim()},reason:t(`agentLanesView.kfvflle033`)}),$.success(t(`agentLanesView.k21xjz2044`,{p0:e})),B.value=!1}catch(e){$.error(t(`agentLanesView.k3jmrw1045`,{p0:ut(e)}))}finally{H.value=!1}},J=()=>{T.name=``,T.harness=`omp`,T.role=`worker`,T.systemPrompt=``,w.value=`create`,j.value=``,R.value=``,b.value=!0,z()},X=async()=>{if(w.value===`create`){let e=T.name.trim();if(!e){$.warning(t(`agentLanesView.ky6jqt4032`));return}C.value=!0;try{await i.addChannelAgent(n.channelId,{name:e,harness:T.harness,role:T.role,config:T.systemPrompt.trim()?{systemPromptPrefix:T.systemPrompt.trim()}:void 0}),$.success(t(`agentLanesView.k1g5ykr3046`,{p0:e})),b.value=!1}catch(e){$.error(t(`agentLanesView.k1j97j74047`,{p0:ut(e)}))}finally{C.value=!1}return}if(w.value===`template`){if(!j.value){$.warning(t(`agentLanesView.k13xo8sz034`));return}C.value=!0;try{let e=E.value.find(e=>e.id===j.value);await i.addChannelAgent(n.channelId,{agentId:j.value,role:T.role,config:T.systemPrompt.trim()?{systemPromptPrefix:T.systemPrompt.trim()}:void 0}),$.success(t(`agentLanesView.kk3uwzo048`,{p0:T.role,p1:e?.name??``})),b.value=!1}catch(e){let t=ut(e);$.error(`模板克隆失败${t.includes(`LEAD_EXISTS`)?`(已有 lead,不能再添加 lead)`:`: ${t}`}`)}finally{C.value=!1}return}if(!R.value){$.warning(t(`agentLanesView.k1tjd5ab035`));return}C.value=!0;try{let e=D.value.find(e=>e.id===R.value);await i.deployTeam(R.value,n.channelId),$.success(t(`agentLanesView.k1gslqf9050`,{p0:e?.name??``,p1:e?.memberCount??0})),b.value=!1}catch(e){let t=ut(e);$.error(`编组部署失败${t.includes(`LEAD_EXISTS`)?`(channel 已有 lead,编组内 lead 成员冲突;请先移除现有 lead 或选用无 lead 编组)`:`: ${t}`}`)}finally{C.value=!1}},Z=F(null),ee=async(e,r)=>{Z.value=e;try{await i.removeChannelAgent(n.channelId,e),$.success(t(`agentLanesView.k1n3o03a052`,{p0:r}))}catch(e){$.error(t(`agentLanesView.k13dsp10053`,{p0:ut(e)}))}finally{Z.value=null}},te=F(null),ne=async(e,r)=>{te.value=e;try{await i.stopChannelAgent(n.channelId,e),$.success(t(`agentLanesView.kcpbv47054`,{p0:r}))}catch(e){$.error(t(`agentLanesView.k139ec5j055`,{p0:ut(e)}))}finally{te.value=null}},re=F([]),ie=O(()=>{let e=new Map;for(let t of re.value)!t.alive||!t.agentId||e.set(t.agentId,t);return e}),ae=e=>e?e.streaming?{text:`streaming`,color:`processing`}:e.running?{text:`turn`,color:`warning`}:{text:`idle`,color:`success`}:null,oe=null,se=async()=>{try{let e=await i.listChannelTerminals(n.channelId);re.value=e.data??[]}catch{}},ce=F(!1),le=F(null),ue=F(``),de=e=>{le.value=e.agentId,ue.value=`${e.name} · ${e.role}`,ce.value=!0};return U(()=>{se(),oe=Y(()=>void se(),5e3)}),c(()=>{oe&&clearInterval(oe)}),(t,n)=>{let i=Ee,o=Ze,c=Yr,O=We,k=He,F=Ve,z=Oe,U=Ue,q=Be,Y=De,re=Me,oe=Xe,se=Ge,fe=et;return u(),A(`div`,yo,[L(`div`,bo,[L(`div`,xo,[L(`span`,So,y(t.$t(`agentLanesView.k3y5ja016`)),1),L(`span`,Co,y(h(a).length),1),L(`span`,wo,y(t.$t(`agentLanesView.k3ll6sa017`)),1),L(`span`,To,`lead `+y(h(a).filter(e=>e.role===`lead`).length)+` · worker `+y(h(a).filter(e=>e.role===`worker`).length),1)]),V(i,{size:`small`,type:`primary`,ghost:``,onClick:J},{default:I(()=>[n[14]||=L(`span`,{class:`i-tabler-user-plus`},null,-1),L(`span`,null,y(t.$t(`agentLanesView.k1fmutgo018`)),1)]),_:1})]),L(`div`,Eo,[h(a).length===0?(u(),A(`div`,Do,[h(r).channels[e.channelId]?(u(),A(x,{key:1},[n[16]||=L(`span`,{class:`i-tabler-users-group empty-icon`},null,-1),L(`p`,ko,y(t.$t(`agentLanesView.k122h4pc020`)),1),L(`p`,Ao,y(t.$t(`agentLanesView.k7cr2h8021`)),1)],64)):(u(),A(x,{key:0},[n[15]||=L(`span`,{class:`i-tabler-refresh empty-icon`},null,-1),L(`p`,Oo,y(t.$t(`agentLanesView.k1woev5v019`)),1)],64))])):M(``,!0),(u(!0),A(x,null,l(h(a),r=>(u(),A(x,{key:r.agentId},[L(`div`,{class:`lane`,style:_({flexBasis:`${s(r.agentId)}px`})},[L(`div`,jo,[L(`div`,Mo,[L(`span`,No,[L(`span`,{style:_({"--av":g(r.agentId)})},y(m(r.name)),5),L(`span`,{class:d([`lane-state`,r.state])},null,2)]),L(`span`,{class:`lane-name`,title:r.name},y(r.name),9,Po),r.config?.systemPromptPrefix?(u(),A(`span`,{key:0,class:`lane-chip`,title:t.$t(`agentLanesView.k107s4am001`)},y(t.$t(`agentLanesView.k3xycu022`)),9,Fo)):M(``,!0),L(`span`,{class:d([`lane-role`,r.role])},y(r.role),3),ae(h(ie).get(r.agentId))?(u(),A(`span`,{key:1,class:`term-badge`,title:t.$t(`agentLanesView.k1wn2vmt036`,{p0:h(ie).get(r.agentId)?.pid})},[L(`span`,{class:`term-dot`,style:_({background:v[ae(h(ie).get(r.agentId)).color]??`var(--tone-neutral-dot)`})},null,4),S(` `+y(ae(h(ie).get(r.agentId)).text),1)],8,Io)):M(``,!0)]),L(`div`,Lo,[L(`span`,Ro,[r.state===`busy`&&r.currentTaskTitle?(u(),A(x,{key:0},[S(y(r.currentTaskTitle)+` `,1),r.currentTaskProgress==null?M(``,!0):(u(),A(`span`,zo,y(r.currentTaskProgress)+`%`,1))],64)):(u(),A(x,{key:1},[S(y(r.state)+` · Q`+y(r.queued??0),1)],64))]),L(`div`,Bo,[r.harness===`omp`?(u(),P(i,{key:0,size:`small`,type:`primary`,ghost:``,class:`lane-term`,title:t.$t(`agentLanesView.k1884q17002`),onClick:e=>de(r)},{default:I(()=>[n[17]||=L(`span`,{class:`i-tabler-terminal-2`},null,-1),L(`span`,Vo,y(t.$t(`agentLanesView.k4588s023`)),1)]),_:1},8,[`title`,`onClick`])):M(``,!0),V(i,{size:`small`,type:`text`,class:`lane-edit`,title:t.$t(`agentLanesView.k1pgd3tf003`),onClick:e=>G(r)},{default:I(()=>[...n[18]||=[L(`span`,{class:`i-tabler-edit`},null,-1)]]),_:1},8,[`title`,`onClick`]),n[21]||=L(`span`,{class:`actions-divider`},null,-1),V(o,{title:t.$t(`agentLanesView.k1l029kf037`,{p0:r.name}),"ok-text":`停止`,"cancel-text":`取消`,onConfirm:e=>ne(r.agentId,r.name)},{default:I(()=>[V(i,{size:`small`,type:`text`,class:`lane-stop`,loading:h(te)===r.agentId,title:`HITL 停止该 Agent 运行时`},{default:I(()=>[...n[19]||=[L(`span`,{class:`i-tabler-player-stop`},null,-1)]]),_:1},8,[`loading`])]),_:2},1032,[`title`,`onConfirm`]),V(o,{title:t.$t(`agentLanesView.kt3n27m038`,{p0:r.name}),"ok-text":`移除`,"cancel-text":`取消`,onConfirm:e=>ee(r.agentId,r.name)},{default:I(()=>[V(i,{size:`small`,type:`text`,danger:``,class:`lane-remove`,loading:h(Z)===r.agentId},{default:I(()=>[...n[20]||=[L(`span`,{class:`i-tabler-x`},null,-1)]]),_:1},8,[`loading`])]),_:2},1032,[`title`,`onConfirm`])])])]),L(`div`,Ho,[V(vo,{"channel-id":e.channelId,"agent-id":r.agentId},null,8,[`channel-id`,`agent-id`])])],4),V(c,{label:t.$t(`agentLanesView.k7xt1y6039`,{p0:r.name}),onResize:e=>f(r.agentId,e),onReset:e=>p(r.agentId)},null,8,[`label`,`onResize`,`onReset`])],64))),128))]),V(oe,{open:h(b),"onUpdate:open":n[9]||=e=>N(b)?b.value=e:null,title:t.$t(`agentLanesView.k17kcn55004`),"confirm-loading":h(C),"ok-text":`添加`,"cancel-text":`取消`,onOk:X},{default:I(()=>[V(k,{value:h(w),"onUpdate:value":n[0]||=e=>N(w)?w.value=e:null,class:`mode-switch`},{default:I(()=>[V(O,{value:`create`},{default:I(()=>[S(y(t.$t(`agentLanesView.k1b7cwvy024`)),1)]),_:1}),V(O,{value:`template`},{default:I(()=>[S(y(t.$t(`agentLanesView.k1ndey1w025`)),1)]),_:1}),V(O,{value:`team`},{default:I(()=>[S(y(t.$t(`agentLanesView.k1l5qyux026`)),1)]),_:1})]),_:1},8,[`value`]),h(w)===`create`?(u(),P(Y,{key:0,layout:`vertical`,class:`member-form`},{default:I(()=>[V(z,{label:t.$t(`agentLanesView.k3nufdm005`)},{default:I(()=>[V(F,{value:h(T).name,"onUpdate:value":n[1]||=e=>h(T).name=e,placeholder:`如 db-migrator / test-writer`,onPressEnter:X},null,8,[`value`])]),_:1},8,[`label`]),V(z,{label:`harness`},{default:I(()=>[V(k,{value:h(T).harness,"onUpdate:value":n[2]||=e=>h(T).harness=e},{default:I(()=>[V(U,{value:`omp`},{default:I(()=>[...n[22]||=[S(` omp(完整 LLM agent) `,-1)]]),_:1}),V(U,{value:`mock`},{default:I(()=>[S(y(t.$t(`agentLanesView.kqg6783027`)),1)]),_:1}),V(U,{value:`claude`},{default:I(()=>[...n[23]||=[S(` claude `,-1)]]),_:1})]),_:1},8,[`value`])]),_:1}),V(z,{label:t.$t(`agentLanesView.k479op006`)},{default:I(()=>[V(k,{value:h(T).role,"onUpdate:value":n[3]||=e=>h(T).role=e},{default:I(()=>[V(U,{value:`worker`},{default:I(()=>[...n[24]||=[S(` worker `,-1)]]),_:1}),V(U,{value:`lead`},{default:I(()=>[S(y(t.$t(`agentLanesView.k1weovo028`)),1)]),_:1})]),_:1},8,[`value`])]),_:1},8,[`label`]),V(z,{label:t.$t(`agentLanesView.kaogfp007`)},{default:I(()=>[V(q,{value:h(T).systemPrompt,"onUpdate:value":n[4]||=e=>h(T).systemPrompt=e,rows:3,placeholder:t.$t(`agentLanesView.kbqn6w5008`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`])]),_:1})):h(w)===`template`?(u(),P(Y,{key:1,layout:`vertical`,class:`member-form`},{default:I(()=>[V(z,{label:`选择 Agent 模板(克隆 name/harness/config 为独立实例)`},{default:I(()=>[V(re,{value:h(j),"onUpdate:value":n[5]||=e=>N(j)?j.value=e:null,placeholder:t.$t(`agentLanesView.kung925009`),options:h(E).map(e=>({value:e.id,label:`${e.name}(${e.harness})${e.enabled===0?` · 已停用`:``}`}))},null,8,[`value`,`placeholder`,`options`])]),_:1}),V(z,{label:t.$t(`agentLanesView.k1bl78fu010`)},{default:I(()=>[V(k,{value:h(T).role,"onUpdate:value":n[6]||=e=>h(T).role=e},{default:I(()=>[V(U,{value:`worker`},{default:I(()=>[...n[25]||=[S(` worker `,-1)]]),_:1}),V(U,{value:`lead`},{default:I(()=>[S(y(t.$t(`agentLanesView.k1weovo028`)),1)]),_:1})]),_:1},8,[`value`])]),_:1},8,[`label`]),V(z,{label:t.$t(`agentLanesView.k1vhvbz7011`)},{default:I(()=>[V(q,{value:h(T).systemPrompt,"onUpdate:value":n[7]||=e=>h(T).systemPrompt=e,rows:3,placeholder:t.$t(`agentLanesView.k7ft6ig012`)},null,8,[`value`,`placeholder`])]),_:1},8,[`label`]),L(`div`,Uo,y(t.$t(`agentLanesView.knybb6r029`)),1)]),_:1})):(u(),P(Y,{key:2,layout:`vertical`,class:`member-form`},{default:I(()=>[V(z,{label:t.$t(`agentLanesView.k29om9b013`)},{default:I(()=>[V(re,{value:h(R),"onUpdate:value":n[8]||=e=>N(R)?R.value=e:null,placeholder:t.$t(`agentLanesView.kur1otz014`),options:h(D).map(e=>({value:e.id,label:t.$t(`agentLanesView.k1qcmxyu040`,{p0:e.name,p1:e.memberCount,p2:e.hasLead?`,含 lead`:``})}))},null,8,[`value`,`placeholder`,`options`])]),_:1},8,[`label`]),L(`div`,Wo,y(t.$t(`agentLanesView.k1qqnq5030`)),1)]),_:1}))]),_:1},8,[`open`,`title`,`confirm-loading`]),V(oe,{open:h(B),"onUpdate:open":n[12]||=e=>N(B)?B.value=e:null,title:t.$t(`agentLanesView.k19j5rho041`,{p0:h(W).name||``}),"confirm-loading":h(H),"ok-text":`保存`,"cancel-text":`取消`,onOk:K},{default:I(()=>[V(Y,{layout:`vertical`,class:`member-form`},{default:I(()=>[V(z,{label:t.$t(`agentLanesView.k3nufdm005`)},{default:I(()=>[V(F,{value:h(W).name,"onUpdate:value":n[10]||=e=>h(W).name=e},null,8,[`value`])]),_:1},8,[`label`]),V(z,{label:`角色 / harness`},{default:I(()=>[V(fe,null,{default:I(()=>[V(se,{color:h(W).role===`lead`?`purple`:`blue`},{default:I(()=>[S(y(h(W).role),1)]),_:1},8,[`color`]),V(se,null,{default:I(()=>[S(y(h(W).harness),1)]),_:1})]),_:1})]),_:1}),V(z,{label:`场景系统提示词(systemPromptPrefix)`},{extra:I(()=>[L(`span`,Go,y(t.$t(`agentLanesView.k1rw1rd2031`)),1)]),default:I(()=>[V(q,{value:h(W).systemPrompt,"onUpdate:value":n[11]||=e=>h(W).systemPrompt=e,rows:6,placeholder:t.$t(`agentLanesView.k10ti81i015`)},null,8,[`value`,`placeholder`])]),_:1})]),_:1})]),_:1},8,[`open`,`title`,`confirm-loading`]),V(Dt,{open:h(ce),"onUpdate:open":n[13]||=e=>N(ce)?ce.value=e:null,"agent-id":h(le),"channel-id":e.channelId,pid:null,subtitle:h(ue)},null,8,[`open`,`agent-id`,`channel-id`,`subtitle`])])}}}),[[`__scopeId`,`data-v-3d57301f`]]),{__name:`WorkshopAgentLanesView`}),Jo={class:`board-shell`},Yo={class:`toolbar`},Xo={class:`aw-seg`},Zo={class:`count`},Qo={key:0,class:`pane-empty`},$o={class:`pe-title`},es={class:`aw-serif-accent-italic`},ts={class:`pe-sub`},ns={key:1,class:`board`},rs=[`onDragover`,`onDragleave`,`onDrop`],is={class:`sec`},as={class:`sec-title`},os={class:`sec-cnt`},ss={class:`task-col-body`},cs=[`onDragstart`,`onClick`],ls={class:`tk-chan`},us={key:0,class:`tk-num`},ds={key:1,class:`tk-num`},fs={class:`tk-title`},ps=[`title`],ms={class:`tk-foot`},hs=[`onClick`],gs={key:0,class:`col-empty`},_s={key:2,class:`task-list`},vs={key:0,class:`list-sec sec`},ys={class:`sec-title`},bs={class:`sec-cnt`},xs=[`onClick`],Ss={class:`grow`},Cs={class:`lnum`},ws={class:`meta`},Ts=[`onClick`],Es=Object.assign(B(s({__name:`TaskBoardView`,props:{channelId:{}},emits:[`openTask`],setup(e,{emit:t}){let{t:n}=q(),r=e,a=t,o=vt(),s=wt(),c=O(()=>o.tasks[r.channelId]??[]),f=O(()=>o.channels[r.channelId]!==void 0||o.tasks[r.channelId]!==void 0),p=F(new Map),m=O(()=>c.value.map(e=>p.value.has(e.id)?{...e,state:p.value.get(e.id)}:e)),g=[{key:`todo`,title:n(`taskBoardView.k3nf71d008`),states:[`SUBMITTED`,`ASSIGNED`],dot:`var(--tone-neutral-dot)`,moveAction:`retry`},{key:`doing`,title:n(`taskBoardView.k3o5tz9009`),states:[`WORKING`],dot:`var(--tone-info-dot)`,moveAction:null},{key:`waiting`,title:n(`taskBoardView.k1hpx9p1010`),states:[`WAITING`],dot:`var(--tone-warning-dot)`,moveAction:null},{key:`done`,title:n(`taskBoardView.k3n77g3011`),states:[`COMPLETED`],dot:`var(--tone-success-dot)`,moveAction:null},{key:`bad`,title:n(`taskBoardView.k1veotws012`),states:[`FAILED`,`CANCELED`],dot:`var(--tone-danger-dot)`,moveAction:`cancel`}],v=O(()=>g.map(e=>({...e,items:m.value.filter(t=>e.states.includes(t.state))}))),b=e=>o.agentById(r.channelId,e)?.name??e.slice(0,6),C=e=>m.value.filter(t=>t.parentId===e).length,w=e=>e.state,T=F(localStorage.getItem(`aw.tasks.boardLayout`)===`list`?`list`:`board`),E=e=>{T.value=e,localStorage.setItem(`aw.tasks.boardLayout`,e)},D=F(null),k=F(null),j=F(null),N=e=>m.value.find(t=>t.id===e),I=(e,t)=>{if(!t.moveAction)return!1;let n=N(e);return!n||t.states.includes(n.state)?!1:t.moveAction===`retry`?[`FAILED`,`CANCELED`].includes(n.state):[`SUBMITTED`,`ASSIGNED`,`WORKING`,`WAITING`,`FAILED`].includes(n.state)},R=(e,t,n)=>{D.value=t.id,k.value=n,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t.id))},z=(e,t)=>{!D.value||!I(D.value,t)||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`))},B=e=>{j.value===e&&(j.value=null)},V=(e,t)=>{j.value=t.key,z(e,t)},H=()=>{D.value=null,k.value=null,j.value=null},U=e=>({"drop-over":j.value===e.key&&!!D.value&&I(D.value,e),"no-drop":!!D.value&&j.value===e.key&&!I(D.value,e),"drag-origin":k.value===e.key}),W=async(e,t)=>{e.preventDefault();let n=D.value;j.value=null,D.value=null,k.value=null,!(!n||!I(n,t))&&await K(n,t.moveAction)},G=F(new Set),K=async(e,t)=>{if(G.value.has(e))return;let n=N(e);if(!n)return;G.value.add(e);let r=n.state,i=t===`cancel`?`CANCELED`:`ASSIGNED`,a=new Map(p.value);a.set(e,i),p.value=a;try{await(t===`cancel`?s.cancelTask(e):s.retryTask(e)),$.success(n(t===`cancel`?`taskBoardView.k189y4q013`:`taskBoardView.kv1l1j3014`))}catch(t){let i=new Map(p.value);i.set(e,r),p.value=i;let a=t;$.error(ut(a,n(`taskBoardView.k1e7zwuc015`)))}finally{G.value.delete(e),setTimeout(()=>{let t=new Map(p.value);t.delete(e),p.value=t},4e3)}},J=F(null),Y=(e,t)=>{let n=Math.min(e.clientX,Math.max(window.innerWidth-156,8)),r=Math.min(e.clientY,Math.max(window.innerHeight-160,8));J.value={task:t,x:n,y:r}},X=()=>{J.value=null},Z=O(()=>{let e=J.value?.task;if(!e)return[];let t=[];return[`SUBMITTED`,`ASSIGNED`,`WORKING`,`WAITING`,`FAILED`].includes(e.state)&&t.push({key:`cancel`,label:e(`taskBoardView.k1bs0t9b016`),danger:!0}),[`FAILED`,`CANCELED`].includes(e.state)&&t.push({key:`retry`,label:e(`taskBoardView.k1lclwk6017`)}),t.push({key:`detail`,label:e(`taskBoardView.k1dx9ysj018`)}),t}),ee=async e=>{let t=J.value?.task;X(),t&&(e===`detail`?a(`openTask`,t.id):await K(t.id,e))};return(e,t)=>{let n=Bn;return u(),A(`div`,Jo,[L(`div`,Yo,[L(`div`,Xo,[L(`button`,{type:`button`,class:d({on:h(T)===`board`}),onClick:t[0]||=e=>E(`board`)},y(e.$t(`taskBoardView.k43pyn001`)),3),L(`button`,{type:`button`,class:d({on:h(T)===`list`}),onClick:t[1]||=e=>E(`list`)},y(e.$t(`taskBoardView.k3x7l0002`)),3)]),L(`span`,Zo,y(h(m).length)+` `+y(e.$t(`taskBoardView.k168w1ze004`)),1)]),h(m).length===0?(u(),A(`div`,Qo,[L(`span`,{class:d(h(f)?`pe-icon i-tabler-list-check`:`pe-icon i-tabler-refresh`)},null,2),L(`div`,$o,[S(y(h(f)?e.$t(`taskBoardView.k3vkhhj006`):e.$t(`taskBoardView.k1f9c17l019`))+` `,1),L(`span`,es,y(e.$t(`taskBoardView.k3wcox003`)),1)]),L(`div`,ts,y(h(f)?`在下方 Composer 提交首个任务(首行标题,支持 goal / loop / pipeline 模式)`:`任务快照对齐后自动呈现`),1)])):h(T)===`board`?(u(),A(`div`,ns,[(u(!0),A(x,null,l(h(v),r=>(u(),A(`div`,{key:r.key,class:d([`task-col`,U(r)]),onDragover:e=>V(e,r),onDragleave:e=>B(r.key),onDrop:e=>W(e,r)},[L(`div`,is,[L(`span`,{class:`st-dot`,style:_({background:r.dot})},null,4),L(`span`,as,y(r.title),1),L(`span`,os,y(r.items.length),1)]),L(`div`,ss,[(u(!0),A(x,null,l(r.items,o=>(u(),A(`div`,{key:o.id,class:d([`card task`,{dragging:h(D)===o.id}]),draggable:`true`,onDragstart:e=>R(e,o,r.key),onDragend:H,onClick:e=>a(`openTask`,o.id)},[L(`div`,ls,[L(`span`,null,`#`+y(b(o.assigneeId)),1),C(o.id)?(u(),A(`span`,us,y(e.$t(`taskBoardView.k4b1x005`))+` `+y(C(o.id)),1)):M(``,!0),o.artifacts?(u(),A(`span`,ds,[t[2]||=L(`span`,{class:`i-tabler-package`},null,-1),S(` `+y(o.artifacts),1)])):M(``,!0)]),L(`div`,fs,y(o.title),1),o.routeReason?(u(),A(`div`,{key:0,class:`tk-route`,title:e.$t(`taskBoardView.k8m7hm6020`,{p0:o.routeReason})},` ↳ `+y(o.routeReason),9,ps)):M(``,!0),o.state===`WORKING`&&o.progress>0?(u(),P(n,{key:1,percent:o.progress,size:`small`,"show-info":!1},null,8,[`percent`])):M(``,!0),L(`div`,ms,[L(`button`,{type:`button`,class:`st-pill-btn`,onClick:i(e=>Y(e,o),[`stop`])},[L(`span`,{class:`st-pill`,style:_({color:r.dot,borderColor:r.dot})},y(r.title),5)],8,hs)])],42,cs))),128)),r.items.length===0?(u(),A(`div`,gs,y(r.moveAction?e.$t(`taskBoardView.k13pad50007`):`-`),1)):M(``,!0)])],42,rs))),128))])):(u(),A(`div`,_s,[(u(!0),A(x,null,l(h(v),e=>(u(),A(x,{key:e.key},[e.items.length?(u(),A(`div`,vs,[L(`span`,{class:`st-dot`,style:_({background:e.dot})},null,4),L(`span`,ys,y(e.title),1),L(`span`,bs,y(e.items.length),1)])):M(``,!0),(u(!0),A(x,null,l(e.items,t=>(u(),A(`div`,{key:t.id,class:`list-row`,onClick:e=>a(`openTask`,t.id)},[L(`span`,Ss,y(t.title),1),L(`span`,Cs,`#`+y(b(t.assigneeId)),1),L(`span`,ws,y(t.id.slice(0,8)),1),L(`span`,{class:`st-pill`,style:_({color:e.dot,borderColor:e.dot})},y(w(t)),5)],8,xs))),128))],64))),128))])),h(J)?(u(),A(x,{key:3},[L(`div`,{class:`menu-backdrop`,onClick:X,onScroll:X},null,32),L(`div`,{class:`st-menu`,style:_({left:`${h(J).x}px`,top:`${h(J).y}px`})},[(u(!0),A(x,null,l(h(Z),e=>(u(),A(`button`,{key:e.key,type:`button`,class:d({danger:e.danger}),onClick:t=>ee(e.key)},[L(`span`,{class:d(e.key===`cancel`?`i-tabler-circle-off`:e.key===`retry`?`i-tabler-rotate`:`i-tabler-external-link`)},null,2),S(` `+y(e.label),1)],10,Ts))),128))],4)],64)):M(``,!0)])}}}),[[`__scopeId`,`data-v-22725176`]]),{__name:`WorkshopTaskBoardView`}),Ds={class:`split`},Os={key:0,class:`empty`},ks={class:`col-head`},As={class:`col-name`},js={class:`col-meta`},Ms={class:`col-body`},Ns={key:0,class:`col-empty`},Ps=[`onClick`],Fs={class:`me-time`},Is={class:`me-agent`},Ls={class:`me-text`},Rs=360,zs=Object.assign(B(s({__name:`MultiChannelView`,props:{wsId:{}},emits:[`openTask`],setup(e,{emit:t}){let{t:n}=q(),r=e,i=t,a=Ot(`aw.harness.mcColW`,{}),o=e=>a.value[e]??Rs,s=(e,t)=>{a.value={...a.value,[e]:Math.min(760,Math.max(300,o(e)+t))}},c=e=>{let t={...a.value};Reflect.deleteProperty(t,e),a.value=t},f=lt(),p=vt(),m=bt(),g=O(()=>(f.workspaces.find(e=>e.id===r.wsId)?.channelIds??[]).map(e=>{let t=p.agents[e]??[],n=p.tasks[e]??[];return{id:e,name:p.channels[e]?.name??e.slice(0,8),synced:p.channels[e]!==void 0,busy:t.filter(e=>e.state===`busy`).length,agents:t.length,activeTasks:n.filter(e=>![`COMPLETED`,`CANCELED`,`FAILED`].includes(e.state)).length,seq:m.lastSeq(e),items:m.ring(e).items.slice(-120)}})),v=e=>{let t=e.payload;switch(e.type){case`task.status`:return`${String(t.state)} ${String(t.taskId??``).slice(0,6)}`;case`task.progress`:return`${String(t.progress??``)}%`;case`agent.delta`:return`…${String(t.delta??``).slice(-24)}`;case`agent.message`:return`${String(t.parts?.[0]?.text??``).slice(0,40)}`;case`a2a.message`:return`文本 ${String(t.parts?.[0]?.text??``).slice(0,40)}`;case`a2a.artifact`:return`交付 ${String(t.artifact?.name??``)}`;case`memory.saved`:return n(`multiChannelView.kfvue7n009`,{p0:String(t.title??``)});case`agent.member`:return n(`multiChannelView.khq39oe010`,{p0:String(t.op??``),p1:String(t.name??``)});case`agent.status`:return`${String(t.state)}`;case`error`:return n(`multiChannelView.k16wopr9011`,{p0:String(t.code??``)});default:return e.type}};return(e,t)=>{let n=Yr;return u(),A(`div`,Ds,[h(g).length===0?(u(),A(`div`,Os,y(e.$t(`multiChannelView.k1bfi9ms001`)),1)):M(``,!0),(u(!0),A(x,null,l(h(g),t=>(u(),A(x,{key:t.id},[L(`div`,{class:`col`,style:_({flexBasis:`${o(t.id)}px`})},[L(`div`,ks,[L(`span`,As,y(t.name),1),L(`span`,js,[t.synced?(u(),A(x,{key:0},[S(y(t.agents)+`a / `+y(e.$t(`multiChannelView.k4by6003`))+y(t.busy)+` / `+y(e.$t(`multiChannelView.k3wcox005`))+y(t.activeTasks)+` / seq`+y(t.seq),1)],64)):(u(),A(x,{key:1},[S(y(e.$t(`multiChannelView.k1bst7s9002`)),1)],64))])]),L(`div`,Ms,[t.items.length===0?(u(),A(`div`,Ns,y(t.synced?e.$t(`multiChannelView.k1el0s5k004`):e.$t(`multiChannelView.k1bst7s9002`)),1)):M(``,!0),(u(!0),A(x,null,l(t.items,e=>(u(),A(`div`,{key:`${t.id}-${e.seq}`,class:d([`mini-event`,{clickable:e.type===`task.status`}]),onClick:t=>e.type===`task.status`&&i(`openTask`,e.payload.taskId)},[L(`span`,Fs,y(h(Et)(e.at)),1),L(`span`,Is,y(e.agentId?.slice(0,4)??`sys`),1),L(`span`,Ls,y(v(e)),1)],10,Ps))),128))])],4),V(n,{label:e.$t(`multiChannelView.kvfx0mh006`,{p0:t.name}),onResize:e=>s(t.id,e),onReset:e=>c(t.id)},null,8,[`label`,`onResize`,`onReset`])],64))),128))])}}}),[[`__scopeId`,`data-v-23486e32`]]),{__name:`WorkshopMultiChannelView`}),Bs={class:`memory-panel`},Vs={class:`toolbar`},Hs=[`data-ok`],Us={class:`search-bar`},Ws={key:1,class:`search-results`},Gs=[`title`],Ks=[`data-source`],qs={class:`score`},Js={class:`hit-title`},Ys={class:`list-head`},Xs={class:`row-head`},Zs={class:`row-importance`},Qs={class:`row-title`},$s={class:`row-content`},ec={key:0,class:`empty`},tc=Object.assign(B(s({__name:`MemoryPanel`,props:{channelId:{},agentId:{}},setup(e){let{t}=q(),n=e,r=vt(),i=wt(),a=F(`shared`),o=F(n.agentId??``);D(()=>n.agentId,e=>{e&&(o.value=e)});let s=F({}),c=F(``),d=O(()=>c.value.trim()||s.value[o.value]||``),f=O(()=>d.value.length>0),p=async()=>{try{let e=await i.listChannelAgents(n.channelId),t={};for(let n of e.data??[])n.token&&(t[n.id]=n.token);if(s.value=t,!o.value){let t=(e.data??[]).find(e=>e.role===`lead`);t&&(o.value=t.id)}}catch{}};U(()=>void p()),D(()=>n.channelId,()=>{s.value={},o.value=n.agentId??``,p()});let m=O(()=>{let e={};return d.value&&(e.authorization=`Bearer ${d.value}`),e}),g=O(()=>r.agents[n.channelId]??[]),_=F([]),v=F(!1),b=async()=>{v.value=!0;try{let e=a.value===`shared`?`/api/workshop/channels/${n.channelId}/memories`:`/api/workshop/channels/${n.channelId}/agents/${o.value}/memories`,r=await(await fetch(e,{headers:m.value})).json();_.value=r.code===0?r.data:[],r.code!==0&&$.warning(r.message??t(`memoryPanel.k186sctu014`))}finally{v.value=!1}};D([a,o,d],()=>{d.value&&(a.value===`shared`||o.value)&&b()});let C=F(``),w=F(`auto`),T=F([]),E=F(!1),j=async()=>{if(!C.value.trim()||!o.value||!d.value){$.warning(t(`memoryPanel.k1eh0fbo015`));return}E.value=!0;try{let e=await(await fetch(`/api/workshop/channels/${n.channelId}/agents/${o.value}/memories/search`,{method:`POST`,headers:{"content-type":`application/json`,...m.value},body:JSON.stringify({query:C.value,scope:w.value,limit:8})})).json();T.value=e.code===0?e.data:[]}finally{E.value=!1}},R=F(!1),z=k({title:``,content:``,scope:`shared`,importance:.8,dedupKey:``}),B=async()=>{if(!z.title||!z.content||!o.value||!d.value){$.warning(t(`memoryPanel.k1dpj734016`));return}let e=await(await fetch(`/api/workshop/channels/${n.channelId}/agents/${o.value}/memories`,{method:`POST`,headers:{"content-type":`application/json`,...m.value},body:JSON.stringify({...z,dedupKey:z.dedupKey||void 0})})).json();e.code===0?($.success(t(`memoryPanel.k3n5bat017`)),R.value=!1,z.title=``,z.content=``,b()):$.error(e.message??t(`memoryPanel.k1bb5i1l018`))};return(t,n)=>{let r=We,i=He,s=Me,d=Se,p=ze,m=Re,D=Ee,O=et,k=Ge,F=ot,H=Ue,U=Oe,W=Ve,G=Be,K=it,q=De,J=Xe;return u(),A(`div`,Bs,[L(`div`,Vs,[V(i,{value:h(a),"onUpdate:value":n[0]||=e=>N(a)?a.value=e:null,size:`small`,"button-style":`solid`},{default:I(()=>[V(r,{value:`shared`},{default:I(()=>[S(y(t.$t(`memoryPanel.k3l2hmp005`)),1)]),_:1}),V(r,{value:`private`},{default:I(()=>[S(y(t.$t(`memoryPanel.k3rve9a006`)),1)]),_:1})]),_:1},8,[`value`]),e.agentId?M(``,!0):(u(),P(s,{key:0,value:h(o),"onUpdate:value":n[1]||=e=>N(o)?o.value=e:null,size:`small`,placeholder:t.$t(`memoryPanel.k1du3379001`),class:`agent-select`,options:h(g).map(e=>({value:e.agentId,label:e.name}))},null,8,[`value`,`placeholder`,`options`])),V(d,{title:h(f)?`成员 token 已自动装配`:`自动装配失败,可手动填入成员 token`},{default:I(()=>[L(`span`,{class:`token-state`,"data-ok":h(f)},[n[12]||=L(`span`,{class:`i-tabler-key`},null,-1),S(y(h(f)?`auto`:t.$t(`memoryPanel.k3zul4013`)),1)],8,Hs)]),_:1},8,[`title`])]),h(f)?M(``,!0):(u(),P(p,{key:0,value:h(c),"onUpdate:value":n[2]||=e=>N(c)?c.value=e:null,size:`small`,placeholder:`Bearer token(成员身份,兜底手填)`,class:`token`},null,8,[`value`])),L(`div`,Us,[V(m,{value:h(C),"onUpdate:value":n[3]||=e=>N(C)?C.value=e:null,size:`small`,placeholder:`混合检索记忆(FTS+向量,与 agent search_memory 同源)…`,loading:h(E),onSearch:j},null,8,[`value`,`loading`]),V(s,{value:h(w),"onUpdate:value":n[4]||=e=>N(w)?w.value=e:null,size:`small`,class:`scope`,options:[{value:`auto`,label:`auto`},{value:`private`,label:`private`},{value:`shared`,label:`shared`}]},null,8,[`value`])]),h(T).length?(u(),A(`div`,Ws,[(u(!0),A(x,null,l(h(T),e=>(u(),A(`div`,{key:e.id,class:`hit`,title:e.content.slice(0,200)},[L(`span`,{class:`src`,"data-source":e.source},y(e.source),9,Ks),L(`span`,qs,y(e.score),1),L(`span`,Js,y(e.title),1)],8,Gs))),128))])):M(``,!0),L(`div`,Ys,[L(`span`,null,y(t.$t(`memoryPanel.k1k7okbe007`)),1),V(O,{size:`small`},{default:I(()=>[V(D,{size:`small`,type:`text`,onClick:b},{default:I(()=>[S(y(t.$t(`memoryPanel.k3x1jg008`)),1)]),_:1}),V(D,{size:`small`,type:`text`,onClick:n[5]||=e=>R.value=!0},{default:I(()=>[S(y(t.$t(`memoryPanel.k3wtib009`)),1)]),_:1})]),_:1})]),V(F,{spinning:h(v)},{default:I(()=>[(u(!0),A(x,null,l(h(_),e=>(u(),A(`div`,{key:e.id,class:`row`},[L(`div`,Xs,[V(k,{class:`kind`},{default:I(()=>[S(y(e.kind),1)]),_:2},1024),L(`span`,Zs,y(e.importance.toFixed(2)),1),L(`span`,Qs,y(e.title),1)]),L(`div`,$s,y(e.content.slice(0,140))+y(e.content.length>140?`…`:``),1)]))),128)),h(_).length===0&&!h(v)?(u(),A(`div`,ec,` (`+y(t.$t(`memoryPanel.k43rxk011`)),1)):M(``,!0)]),_:1},8,[`spinning`]),V(J,{open:h(R),"onUpdate:open":n[11]||=e=>N(R)?R.value=e:null,title:t.$t(`memoryPanel.k1bbee8p002`),"ok-text":`写入`,"cancel-text":`取消`,onOk:B},{default:I(()=>[V(q,{layout:`vertical`},{default:I(()=>[V(U,{label:`scope`},{default:I(()=>[V(i,{value:h(z).scope,"onUpdate:value":n[6]||=e=>h(z).scope=e},{default:I(()=>[V(H,{value:`shared`},{default:I(()=>[S(y(t.$t(`memoryPanel.kemjjvq010`)),1)]),_:1}),V(H,{value:`private`},{default:I(()=>[S(` private(`+y(t.$t(`memoryPanel.k3onh9w012`)),1)]),_:1})]),_:1},8,[`value`])]),_:1}),V(U,{label:t.$t(`memoryPanel.k419s4003`)},{default:I(()=>[V(W,{value:h(z).title,"onUpdate:value":n[7]||=e=>h(z).title=e},null,8,[`value`])]),_:1},8,[`label`]),V(U,{label:t.$t(`memoryPanel.k3wv1f004`)},{default:I(()=>[V(G,{value:h(z).content,"onUpdate:value":n[8]||=e=>h(z).content=e,rows:4},null,8,[`value`])]),_:1},8,[`label`]),V(U,{label:`importance(0-1)`},{default:I(()=>[V(K,{value:h(z).importance,"onUpdate:value":n[9]||=e=>h(z).importance=e,min:0,max:1,step:.1},null,8,[`value`])]),_:1}),V(U,{label:`dedupKey(可选,幂等)`},{default:I(()=>[V(W,{value:h(z).dedupKey,"onUpdate:value":n[10]||=e=>h(z).dedupKey=e},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`open`,`title`])])}}}),[[`__scopeId`,`data-v-25b1b7cc`]]),{__name:`WorkshopMemoryPanel`}),nc={class:`stats`},rc={class:`kpis`},ic={class:`kpi`},ac={class:`kpi-num`},oc={class:`kpi-label`},sc={class:`kpi`},cc={class:`kpi-num`},lc={class:`kpi-label`},uc={class:`kpi`},dc={class:`kpi-num`},fc={class:`kpi-label`},pc={class:`chart`},mc={class:`types`},hc={class:`types-title`},gc={class:`t-name`},_c={class:`t-bar-wrap`},vc={class:`t-n`},yc={key:0,class:`empty`},bc=60,xc=Object.assign(B(s({__name:`StatsPanel`,props:{channelId:{}},setup(e){let t=e,n=bt(),r=_t(),i=O(()=>{let e=n.ring(t.channelId).items,r=Date.now(),i=Array(bc).fill(0);for(let t of e){let e=Date.parse(t.at);if(Number.isNaN(e))continue;let n=Math.floor((r-e)/1e3),a=n>=0&&n<bc?59-n:-1;a>=0&&(i[a]=(i[a]??0)+1)}return i}),a=O(()=>{let e=new Map;for(let r of n.ring(t.channelId).items)e.set(r.type,(e.get(r.type)??0)+1);return[...e.entries()].sort((e,t)=>t[1]-e[1])}),o=O(()=>({grid:{left:36,right:8,top:12,bottom:20},xAxis:{type:`category`,data:i.value.map((e,t)=>String(t-bc+1))},yAxis:{type:`value`,minInterval:1},tooltip:{trigger:`axis`},series:[{type:`line`,data:i.value,smooth:!0,showSymbol:!1,areaStyle:{opacity:.15},lineStyle:{width:1.5}}]})),s=O(()=>n.ring(t.channelId).items.length),c=O(()=>i.value.slice(-10).reduce((e,t)=>e+t,0)/10);return(t,i)=>{let d=R(`app-chart`);return u(),A(`div`,nc,[L(`div`,rc,[L(`div`,ic,[L(`div`,ac,y(h(s)),1),L(`div`,oc,y(t.$t(`statsPanel.k1i88c0b001`)),1)]),L(`div`,sc,[L(`div`,cc,y(h(c).toFixed(1))+`/s `,1),L(`div`,lc,y(t.$t(`statsPanel.kfplawo002`)),1)]),L(`div`,uc,[L(`div`,dc,y(h(n).lastSeq(e.channelId)),1),L(`div`,fc,` seq / `+y(h(r).state),1)])]),L(`div`,pc,[V(d,{option:h(o),class:`app-chart`,autoresize:``},null,8,[`option`])]),L(`div`,mc,[L(`div`,hc,y(t.$t(`statsPanel.kzcd51003`)),1),(u(!0),A(x,null,l(h(a),([e,t])=>(u(),A(`div`,{key:e,class:`type-row`},[L(`span`,gc,y(e),1),L(`div`,_c,[L(`div`,{class:`t-bar`,style:_({width:`${Math.round(t/(h(a)[0]?.[1]??1)*100)}%`})},null,4)]),L(`span`,vc,y(t),1)]))),128)),h(a).length===0?(u(),A(`div`,yc,y(t.$t(`statsPanel.k1pevwxl004`)),1)):M(``,!0)])])}}}),[[`__scopeId`,`data-v-23e4d795`]]),{__name:`WorkshopStatsPanel`}),Sc={class:`inspector`},Cc=[`onClick`,`onKeydown`],wc={class:`member-info`},Tc={class:`member-name`},Ec={class:`name-text`},Dc={class:`member-meta`},Oc={key:0,class:`prog`},kc={class:`member-cap`},Ac={key:0,class:`empty`},jc=[`onClick`,`onKeydown`],Mc={class:`task-head`},Nc={class:`state-chip aw-mono`},Pc={class:`task-title`},Fc={class:`task-meta`},Ic={key:0},Lc={key:1},Rc={key:0,class:`empty`},zc=Object.assign(B(s({__name:`InspectorPanel`,props:{channelId:{}},emits:[`openAgent`,`openTask`],setup(e,{emit:t}){let{t:r}=q(),i=e,a=t,o=vt(),s=F(`members`),c=O(()=>o.agents[i.channelId]??[]),f=O(()=>o.tasks[i.channelId]??[]),p=O(()=>f.value.filter(e=>!e.parentId)),m=O(()=>o.channels[i.channelId]!==void 0),g=O(()=>{let e=new Map;for(let t of f.value){if(t.state!==`COMPLETED`&&t.state!==`FAILED`)continue;let n=e.get(t.assigneeId)??{total:0,completed:0,failed:0,durationSum:0};n.total+=1,t.state===`COMPLETED`?(n.completed+=1,t.updatedAt&&t.createdAt&&(n.durationSum+=Math.max(0,new Date(t.updatedAt).getTime()-new Date(t.createdAt).getTime()))):n.failed+=1,e.set(t.assigneeId,n)}return e}),v=e=>{let t=g.value.get(e);if(!t||t.total===0)return r(`inspectorPanel.k1el1plr007`);let n=Math.round(t.completed/t.total*100),i=t.completed>0?Math.round(t.durationSum/t.completed/1e3):0;return r(`inspectorPanel.k12oip5c010`,{p0:n,p1:i,p2:t.failed})},b=e=>f.value.filter(t=>t.parentId===e).length,C={idle:`var(--tone-success-dot)`,busy:`var(--tone-info-dot)`,stopped:`var(--tone-neutral-dot)`};return(t,r)=>{let i=qe,o=Bn,f=tc,g=xc,w=Ye;return u(),A(`div`,Sc,[V(w,{"active-key":h(s),"onUpdate:activeKey":r[0]||=e=>N(s)?s.value=e:null,size:`small`,class:`tabs`},{default:I(()=>[V(i,{key:`members`,tab:`成员`},{default:I(()=>[(u(!0),A(x,null,l(h(c),e=>(u(),A(`div`,{key:e.agentId,class:`member aw-tile`,role:`button`,tabindex:`0`,onClick:t=>a(`openAgent`,e.agentId),onKeydown:n(t=>a(`openAgent`,e.agentId),[`enter`])},[L(`span`,{class:`dot`,style:_({background:C[e.state]??`var(--tone-neutral-dot)`})},null,4),L(`div`,wc,[L(`div`,Tc,[L(`span`,Ec,y(e.name),1),L(`span`,{class:d([`role-chip`,e.role])},y(e.role),3)]),L(`div`,Dc,[e.state===`busy`&&e.currentTaskTitle?(u(),A(x,{key:0},[S(y(e.currentTaskTitle)+` `,1),e.currentTaskProgress==null?M(``,!0):(u(),A(`span`,Oc,y(e.currentTaskProgress)+`%`,1))],64)):(u(),A(x,{key:1},[S(y(e.state)+` `,1),e.queued?(u(),A(x,{key:0},[S(` · `+y(t.$t(`inspectorPanel.k498bf001`))+` `+y(e.queued),1)],64)):M(``,!0),e.completed?(u(),A(x,{key:1},[S(` · `+y(t.$t(`inspectorPanel.k3ypnl002`))+` `+y(e.completed),1)],64)):M(``,!0)],64))]),L(`div`,kc,y(v(e.agentId)),1)])],40,Cc))),128)),h(c).length===0?(u(),A(`div`,Ac,y(h(m)?t.$t(`inspectorPanel.k1el4cgf005`):t.$t(`inspectorPanel.k1tqitzl008`)),1)):M(``,!0)]),_:1}),V(i,{key:`tasks`,tab:`任务`},{default:I(()=>[(u(!0),A(x,null,l(h(p),e=>(u(),A(`div`,{key:e.id,class:`task aw-tile`,role:`button`,tabindex:`0`,onClick:t=>a(`openTask`,e.id),onKeydown:n(t=>a(`openTask`,e.id),[`enter`])},[L(`div`,Mc,[L(`span`,Nc,y(e.state),1),L(`span`,Pc,y(e.title),1)]),L(`div`,Fc,[S(y(e.id.slice(0,8))+` · `+y(e.progress)+`% `,1),b(e.id)?(u(),A(`span`,Ic,`· `+y(t.$t(`inspectorPanel.k3mp44x003`))+` `+y(b(e.id)),1)):M(``,!0),e.artifacts?(u(),A(`span`,Lc,`· `+y(t.$t(`inspectorPanel.k3w9q9004`))+` `+y(e.artifacts),1)):M(``,!0)]),e.state===`WORKING`?(u(),P(o,{key:0,percent:e.progress,size:`small`,"show-info":!1},null,8,[`percent`])):M(``,!0)],40,jc))),128)),h(p).length===0?(u(),A(`div`,Rc,y(h(m)?t.$t(`inspectorPanel.k1el0vqb006`):t.$t(`inspectorPanel.kks0y5h009`)),1)):M(``,!0)]),_:1}),V(i,{key:`memory`,tab:`记忆`},{default:I(()=>[V(f,{"channel-id":e.channelId},null,8,[`channel-id`])]),_:1}),V(i,{key:`stats`,tab:`统计`},{default:I(()=>[V(g,{"channel-id":e.channelId},null,8,[`channel-id`])]),_:1})]),_:1},8,[`active-key`])])}}}),[[`__scopeId`,`data-v-ea1bee22`]]),{__name:`WorkshopInspectorPanel`}),Bc={class:`composer`},Vc={class:`composer-box`},Hc={key:0,class:`mention-menu`},Uc={class:`mention-title`},Wc=[`onMousedown`,`onMouseenter`],Gc={class:`mention-name`},Kc={class:`mention-role`},qc=[`title`],Jc={class:`composer-status-chip`},Yc={class:`chip-key`},Xc={key:0},Zc=[`title`],Qc=[`data-tone`,`title`],$c={class:`chip-hint`},el={class:`chip-key`},tl={key:0},nl=[`data-tone`,`title`],rl=[`placeholder`],il={class:`composer-bar`},al={class:`cb-left`},ol={class:`aw-seg`},sl={class:`aw-seg`},cl=[`onClick`],ll={class:`aw-seg`},ul=[`title`],dl=[`title`],fl={class:`cb-right`},pl=[`disabled`],ml=Object.assign(B(s({__name:`Composer`,props:{channelId:{}},emits:[`submitted`],setup(e,{emit:t}){let{t:n}=q(),a=e,o=t,s=wt(),c=vt(),p=ct(),m=F(`task`),g=F(``),{quoteText:v}=Zr(),b=F(null);D(v,e=>{if(!e)return;let t=e.trim().split(`
|
|
12
|
-
`).map(e=>`> ${e}`).join(`
|
|
13
|
-
`);g.value=g.value?`${g.value}\n\n${t}\n\n`:`${t}\n\n`,v.value=null,f(()=>b.value?.focus())});let C=F(`goal`),w=F(60),T=F(null),E=O({get:()=>w.value??void 0,set:e=>{w.value=e??null}}),k=O({get:()=>T.value??void 0,set:e=>{T.value=e??null}}),j=F(!1),P=O(()=>c.agents[a.channelId]??[]),I=O(()=>P.value),R=O(()=>P.value.find(e=>e.role===`lead`)?.agentId??P.value[0]?.agentId??``),B=F(``);D([P,R],([e])=>{e.length!==0&&(!B.value||!e.some(e=>e.agentId===B.value))&&(B.value=R.value||(e[0]?.agentId??``))},{immediate:!0});let H=F(`immediate`),U=F(!1),W=()=>{B.value=R.value},G=F(!1),K=F(``),J=F(0),Y=()=>{let e=document.activeElement,t=e?.value??g.value,n=e?.selectionStart??t.length,r=t.slice(0,n),i=/(^|\s)@([^\s@]*)$/.exec(r);if(!i){G.value=!1;return}K.value=i[2]??``,G.value=X.value.length>0,J.value=0},X=O(()=>{let e=K.value.toLowerCase();return I.value.filter(t=>!e||t.name.toLowerCase().includes(e)).slice(0,6)}),Z=e=>{let t=X.value[e];if(!t)return;let n=document.activeElement,r=n?.value??g.value,i=n?.selectionStart??r.length,a=r.slice(0,i),o=/(^|\s)@([^\s@]*)$/.exec(a),s=o?i-(o[2]?.length??0):i,c=`${r.slice(0,s)}${t.name} ${r.slice(i)}`;g.value=c,B.value=t.agentId,G.value=!1,f(()=>{let e=s+t.name.length+1;n?.setSelectionRange(e,e),n?.focus()})},ee=e=>G.value?e.key===`ArrowDown`?(e.preventDefault(),J.value=Math.min(J.value+1,X.value.length-1),!0):e.key===`ArrowUp`?(e.preventDefault(),J.value=Math.max(J.value-1,0),!0):e.key===`Enter`||e.key===`Tab`?(e.preventDefault(),Z(J.value),!0):e.key===`Escape`&&(G.value=!1,!0):!1,te=()=>{let[e,...t]=g.value.trim().split(`
|
|
14
|
-
`);return{title:(e??``).slice(0,120),description:t.join(`
|
|
15
|
-
`).trim()||void 0}},ne=async()=>{let e=g.value.trim();if(e){j.value=!0;try{if(m.value===`task`){let{title:e,description:t}=te();if(!e){$.warning(n(`composer.kqdhdlq014`));return}let r=w.value,i=T.value;if(C.value===`loop`){if(r===null||!Number.isFinite(r)||r<1||r>86400){$.warning(`loop 间隔需设置为 1 到 86400 秒`);return}if(i!==null&&(!Number.isInteger(i)||i<1||i>1e4)){$.warning(n(`composer.k1l36qf9015`));return}}await s.submitTask(a.channelId,{title:e,description:t,mode:C.value,...C.value===`loop`?{modeConfig:{intervalMs:Math.round(r*1e3),...i===null?{}:{maxIterations:Math.floor(i)}}}:{},assigneeId:B.value||void 0,fromLabel:p.user?.name??void 0,parts:[{text:g.value.trim()}]});let o=ae.value||`lead`;$.success(n(`composer.k1d2idgj035`,{p0:o,p1:C.value}))}else{if(!B.value){$.warning(n(`composer.k1bw65is016`));return}await s.injectMessage(a.channelId,{toAgentId:B.value,text:e,priority:H.value,requireReply:U.value,fromLabel:p.user?.name??void 0}),$.success(n(`composer.k1wk4bf036`,{p0:ae.value,p1:H.value===`immediate`?n(`composer.k1cxjc4m034`):n(`composer.k40g8m009`)}))}g.value=``,W(),o(`submitted`)}catch(e){$.error(ut(e))}finally{j.value=!1}}},re=e=>{e.isComposing||ee(e)||e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),ne())};D(g,async()=>{await f();let e=b.value;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,160)}px`)});let ie=O(()=>I.value.find(e=>e.agentId===B.value)),ae=O(()=>ie.value?.name??``),oe=O(()=>!!R.value&&B.value===R.value),se=O(()=>{if(!ie.value)return null;let e=ie.value.state;return m.value===`task`?e===`busy`?{tone:`info`,text:n(`composer.k1ww0ftm017`),title:n(`composer.k9eq10w018`)}:e===`stopped`?{tone:`warn`,text:n(`composer.kbhz1rp019`),title:n(`composer.kophjf5020`)}:{tone:`ok`,text:n(`composer.k4qgtiw021`),title:n(`composer.kfmjwas022`)}:e===`busy`?{tone:`info`,text:H.value===`immediate`?n(`composer.kwg68t0023`):n(`composer.k7w1etd024`),title:n(`composer.k9m6p7u025`)}:e===`stopped`?{tone:`warn`,text:n(`composer.kj1ngpo026`),title:n(`composer.kmf7lcc027`)}:{tone:`ok`,text:n(`composer.k1tet5df028`),title:n(`composer.kn600in029`)}}),ce=O(()=>m.value===`task`?n(`composer.k2h5jwc030`):n(`composer.k15mwzt7031`));return(e,t)=>{let n=Me,a=it;return u(),A(`div`,Bc,[L(`div`,Vc,[h(G)?(u(),A(`div`,Hc,[L(`div`,Uc,y(e.$t(`composer.k1bxvc46004`)),1),(u(!0),A(x,null,l(h(X),(e,t)=>(u(),A(`button`,{key:e.agentId,type:`button`,class:d([`mention-opt`,{sel:t===h(J)}]),onMousedown:i(e=>Z(t),[`prevent`]),onMouseenter:e=>J.value=t},[L(`span`,{class:`aw-avatar is-agent mention-ava`,style:_({"--av":h(xt)(e.agentId)})},y(e.name.charAt(0).toUpperCase()),5),L(`span`,Gc,`@`+y(e.name),1),L(`span`,Kc,y(e.role),1),L(`span`,{class:d([`mention-state`,e.state]),title:e.state},null,10,qc)],42,Wc))),128))])):M(``,!0),L(`div`,Jc,[h(m)===`task`?(u(),A(x,{key:0},[L(`span`,Yc,y(e.$t(`composer.k3wcox005`)),1),L(`span`,null,y(h(C)),1),h(C)===`loop`?(u(),A(`span`,Xc,y(e.$t(`composer.k49kr1011`))+` `+y(h(w)??`-`)+`s `,1)):M(``,!0),L(`span`,{class:`chip-target`,title:h(oe)?`未 @ 指定:任务自动路由 lead 调度;@ 某成员可直发`:e.$t(`composer.kl3604i033`,{p0:h(ae)})},`→ `+y(h(ae)?`@${h(ae)}`:`lead`)+y(h(oe)?e.$t(`composer.k2z7yuw012`):e.$t(`composer.k2z0fsx032`)),9,Zc),h(se)?(u(),A(`span`,{key:1,class:`reach-chip`,"data-tone":h(se).tone,title:h(se).title},[t[10]||=L(`span`,{class:`reach-dot`,"aria-hidden":`true`},null,-1),S(y(h(se).text),1)],8,Qc)):M(``,!0),L(`span`,$c,y(e.$t(`composer.k17u6q77006`)),1)],64)):(u(),A(x,{key:1},[L(`span`,el,y(e.$t(`composer.k41ykc007`)),1),h(ae)?(u(),A(`span`,tl,`@`+y(h(ae))+y(h(oe)?e.$t(`composer.k2z7yuw012`):``),1)):M(``,!0),L(`span`,null,y(h(H)===`immediate`?e.$t(`composer.k1bosqfv013`):e.$t(`composer.k40g8m009`)),1),h(se)?(u(),A(`span`,{key:1,class:`reach-chip`,"data-tone":h(se).tone,title:h(se).title},[t[11]||=L(`span`,{class:`reach-dot`,"aria-hidden":`true`},null,-1),S(y(h(se).text),1)],8,nl)):M(``,!0),t[12]||=L(`span`,{class:`chip-hint`},`输入 @ 提及成员 · ⌘/Ctrl+Enter 发送`,-1)],64))]),z(L(`textarea`,{ref_key:`taEl`,ref:b,"onUpdate:modelValue":t[0]||=e=>N(g)?g.value=e:null,class:`composer-input`,rows:`1`,placeholder:h(ce),onInput:Y,onKeydown:re,onBlur:t[1]||=e=>G.value=!1},null,40,rl),[[r,h(g)]]),L(`div`,il,[L(`div`,al,[L(`div`,ol,[L(`button`,{type:`button`,class:d({on:h(m)===`task`}),onClick:t[2]||=e=>m.value=`task`},y(e.$t(`composer.k3wcox005`)),3),L(`button`,{type:`button`,class:d({on:h(m)===`message`}),onClick:t[3]||=e=>m.value=`message`},y(e.$t(`composer.k41ykc007`)),3)]),V(n,{value:h(B),"onUpdate:value":t[4]||=e=>N(B)?B.value=e:null,size:`small`,class:`target`,options:h(I).map(e=>({value:e.agentId,label:`@ ${e.name}${e.role===`lead`?` · lead`:``}`}))},null,8,[`value`,`options`]),h(m)===`task`?(u(),A(x,{key:0},[L(`div`,sl,[(u(),A(x,null,l([`goal`,`loop`,`pipeline`],e=>L(`button`,{key:e,type:`button`,class:d({on:h(C)===e}),onClick:t=>C.value=e},y(e),11,cl)),64))]),h(C)===`loop`?(u(),A(x,{key:0},[V(a,{value:h(E),"onUpdate:value":t[5]||=e=>N(E)?E.value=e:null,size:`small`,min:1,max:86400,step:1,precision:0,"addon-after":`秒`,class:`loop-number`},null,8,[`value`]),V(a,{value:h(k),"onUpdate:value":t[6]||=e=>N(k)?k.value=e:null,size:`small`,min:1,max:1e4,step:1,precision:0,placeholder:e.$t(`composer.k1b38y2b001`),class:`loop-number iterations`},null,8,[`value`,`placeholder`])],64)):M(``,!0)],64)):(u(),A(x,{key:1},[L(`div`,ll,[L(`button`,{type:`button`,class:d({on:h(H)===`immediate`}),title:e.$t(`composer.k1jqqvhe002`),onClick:t[7]||=e=>H.value=`immediate`},y(e.$t(`composer.k3x9n2008`)),11,ul),L(`button`,{type:`button`,class:d({on:h(H)===`task`}),onClick:t[8]||=e=>H.value=`task`},y(e.$t(`composer.k40g8m009`)),3)]),L(`button`,{type:`button`,class:d([`chip-toggle`,{on:h(U)}]),title:e.$t(`composer.k195594v003`),onClick:t[9]||=e=>U.value=!h(U)},[t[13]||=L(`span`,{class:`i-tabler-mail-forward`},null,-1),S(` `+y(e.$t(`composer.k3xv7u010`)),1)],10,dl)],64))]),L(`div`,fl,[L(`button`,{type:`button`,class:`send-btn im`,disabled:h(j)||!h(g).trim(),title:`发送(⌘/Ctrl+Enter)`,onClick:ne},[...t[14]||=[L(`span`,{class:`i-tabler-send im-nudge-up`},null,-1)]],8,pl)])])])])}}}),[[`__scopeId`,`data-v-dced774b`]]),{__name:`WorkshopComposer`}),hl={class:`head`},gl={class:`state-text`},_l={class:`role-chip`},vl={class:`queue-meta`},yl={key:0,class:`current-task`},bl={class:`stream`},xl={key:0,class:`empty`},Sl={class:`group-title`},Cl={class:`state-chip aw-mono`},wl={class:`qt-title`},Tl={class:`qt-meta`},El={key:0,class:`empty`},Dl={class:`footer`},Ol={key:0,class:`member-ops`},kl={class:`op-label`},Al={class:`send-box`},jl={class:`send-ops`},Ml=520,Nl=Object.assign(B(s({__name:`AgentInspectorDrawer`,props:a({channelId:{},agentId:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:a([`removed`],[`update:open`]),setup(e,{emit:t}){let{t:r}=q(),a=e,o=m(e,`open`),s=t,c=Ot(`aw.drawer.agentW`,Ml),d=e=>{c.value=Math.min(900,Math.max(360,c.value-e))},f=vt(),p=bt(),g=wt(),v=O(()=>a.agentId?f.agentById(a.channelId,a.agentId):void 0),b=F(`stream`),C=F(!1),w=async e=>{if(a.agentId){C.value=!0;try{await g.updateChannelAgent(a.channelId,a.agentId,{enabled:+(e===!0),reason:r(e===!0?`agentInspectorDrawer.kgjqkq9014`:`agentInspectorDrawer.kpkjhbz015`)}),$.success(r(e===!0?`agentInspectorDrawer.k3n5z7y016`:`agentInspectorDrawer.k1dst50d017`))}catch(e){$.error(ut(e))}finally{C.value=!1}}},T=F(!1),E=async()=>{if(a.agentId){T.value=!0;try{await g.removeChannelAgent(a.channelId,a.agentId),$.success(r(`agentInspectorDrawer.kane5dq018`)),o.value=!1,s(`removed`,a.agentId)}catch(e){$.error(ut(e))}finally{T.value=!1}}},{blocks:D}=Wa(()=>a.channelId,{predicate:e=>e.agentId===a.agentId,resetKey:()=>a.agentId,raw:!0}),k=O(()=>{let e=f.tasks[a.channelId]??[],t=a.agentId?e.filter(e=>e.assigneeId===a.agentId):[];return{working:t.filter(e=>[`WORKING`,`ASSIGNED`].includes(e.state)),queued:t.filter(e=>e.state===`SUBMITTED`),done:t.filter(e=>[`COMPLETED`,`FAILED`,`CANCELED`].includes(e.state))}}),j=O(()=>v.value?.currentTaskId?f.taskTitle(a.channelId,v.value.currentTaskId):``),R=O(()=>a.agentId&&(p.focusAgents[a.channelId]??null)===a.agentId),z=()=>{a.agentId&&(p.setFocusAgent(a.channelId,R.value?null:a.agentId),$.success(R.value?r(`agentInspectorDrawer.k1p055kl019`):r(`agentInspectorDrawer.ky2fhkf020`)))},B=F(``),H=F(`immediate`),U=F(!1),W=F(!1),G=async()=>{if(!(!a.agentId||!B.value.trim())){W.value=!0;try{await g.injectMessage(a.channelId,{toAgentId:a.agentId,text:B.value.trim(),priority:H.value,requireReply:U.value}),$.success(r(`agentInspectorDrawer.k1y2jrsr021`)),B.value=``}catch(e){$.error(ut(e))}finally{W.value=!1}}},K={idle:`var(--tone-success-dot)`,busy:`var(--tone-info-dot)`,stopped:`var(--tone-neutral-dot)`};return(t,r)=>{let a=Yr,s=Ee,f=Ba,p=qe,m=qt,g=tc,O=Ye,F=st,q=Ze,J=Be,Y=ke,X=tt,Z=at;return u(),P(Z,{open:o.value,"onUpdate:open":r[5]||=e=>o.value=e,placement:`right`,width:h(c),title:h(v)?`${h(v).name}(${h(v).role})`:`Agent`,class:`agent-drawer aw-resizable-drawer`},{default:I(()=>[V(a,{variant:`bare`,class:`drawer-resizer`,label:t.$t(`agentInspectorDrawer.k6hcbxi001`),onResize:d,onReset:r[0]||=e=>c.value=Ml},null,8,[`label`]),h(v)?(u(),A(x,{key:0},[L(`div`,hl,[L(`span`,{class:`dot`,style:_({background:K[h(v).state]??`var(--tone-neutral-dot)`})},null,4),L(`span`,gl,y(h(v).state),1),L(`span`,_l,y(h(v).harness),1),L(`span`,vl,y(t.$t(`agentInspectorDrawer.k498bf010`))+y(h(v).queued??0)+` · `+y(t.$t(`agentInspectorDrawer.k3ypnl022`))+y(h(v).completed??0),1),V(s,{size:`small`,type:h(R)?`primary`:`default`,onClick:z},{default:I(()=>[S(y(h(R)?t.$t(`agentInspectorDrawer.k1bs9x43013`):t.$t(`agentInspectorDrawer.k16t80ax023`)),1)]),_:1},8,[`type`])]),h(j)?(u(),A(`div`,yl,y(t.$t(`agentInspectorDrawer.kk653nv011`))+y(h(j))+`」 `,1)):M(``,!0),V(O,{"active-key":h(b),"onUpdate:activeKey":r[1]||=e=>N(b)?b.value=e:null,size:`small`,class:`drawer-tabs`},{default:I(()=>[V(p,{key:`stream`,tab:`独立输出流`},{default:I(()=>[L(`div`,bl,[h(D).length===0?(u(),A(`div`,xl,y(t.$t(`agentInspectorDrawer.k1frr9es004`)),1)):M(``,!0),(u(!0),A(x,null,l(h(D),e=>(u(),P(f,{key:e.id,block:e},null,8,[`block`]))),128))])]),_:1}),V(p,{key:`queue`},{tab:I(()=>[S(y(t.$t(`agentInspectorDrawer.k1axbijb005`))+` `,1),V(m,{count:h(k).working.length,"number-style":{backgroundColor:`var(--tone-info-dot)`},size:`small`},null,8,[`count`])]),default:I(()=>[(u(!0),A(x,null,l([[`执行中`,h(k).working],[`待执行`,h(k).queued],[`已完成`,h(k).done]],e=>(u(),A(`div`,{key:e[0],class:`queue-group`},[L(`div`,Sl,y(e[0])+`(`+y(e[1].length)+`) `,1),(u(!0),A(x,null,l(e[1],e=>(u(),A(`div`,{key:e.id,class:`queue-task`},[L(`span`,Cl,y(e.state),1),L(`span`,wl,y(e.title),1),L(`span`,Tl,y(e.progress)+`%`,1)]))),128)),e[1].length===0?(u(),A(`div`,El,` (`+y(t.$t(`agentInspectorDrawer.k43rxk012`)),1)):M(``,!0)]))),128))]),_:1}),V(p,{key:`memory`,tab:`记忆`},{default:I(()=>[V(g,{"channel-id":e.channelId,"agent-id":e.agentId??void 0},null,8,[`channel-id`,`agent-id`])]),_:1})]),_:1},8,[`active-key`]),L(`div`,Dl,[h(v).role===`worker`?(u(),A(`div`,Ol,[L(`span`,kl,y(t.$t(`agentInspectorDrawer.kas9m5q006`)),1),V(F,{checked:(h(v).enabled??1)===1,loading:h(C),"checked-children":`启用`,"un-checked-children":`停用`,size:`small`,onChange:w},null,8,[`checked`,`loading`]),V(q,{title:t.$t(`agentInspectorDrawer.k1ofh789002`),"ok-text":`移除`,"cancel-text":`取消`,onConfirm:E},{default:I(()=>[V(s,{size:`small`,danger:``,type:`text`,loading:h(T)},{default:I(()=>[S(y(t.$t(`agentInspectorDrawer.k1hrtylo007`)),1)]),_:1},8,[`loading`])]),_:1},8,[`title`])])):M(``,!0),L(`div`,Al,[V(J,{value:h(B),"onUpdate:value":r[2]||=e=>N(B)?B.value=e:null,"auto-size":{minRows:1,maxRows:3},placeholder:t.$t(`agentInspectorDrawer.kwsotdg003`),onKeydown:n(i(G,[`ctrl`,`prevent`]),[`enter`])},null,8,[`value`,`placeholder`,`onKeydown`]),L(`div`,jl,[V(Y,{value:h(H),"onUpdate:value":r[3]||=e=>N(H)?H.value=e:null,size:`small`,options:[{value:`immediate`,label:`即时`},{value:`task`,label:`排队`}]},null,8,[`value`]),V(X,{checked:h(U),"onUpdate:checked":r[4]||=e=>N(U)?U.value=e:null},{default:I(()=>[S(y(t.$t(`agentInspectorDrawer.k1jxt8vh008`)),1)]),_:1},8,[`checked`]),V(s,{type:`primary`,size:`small`,loading:h(W),onClick:G},{default:I(()=>[S(y(t.$t(`agentInspectorDrawer.k3xkc7009`)),1)]),_:1},8,[`loading`])])])])],64)):M(``,!0)]),_:1},8,[`open`,`width`,`title`])}}}),[[`__scopeId`,`data-v-857e6de6`]]),{__name:`WorkshopAgentInspectorDrawer`}),Pl={class:`head`},Fl={class:`meta`},Il={class:`meta`},Ll={key:0,class:`failure-reason`},Rl={class:`fr-text`},zl={key:2,class:`route-reason`},Bl={class:`route-label`},Vl={class:`route-text`},Hl={key:0,class:`empty`},Ul={class:`tl-time`},Wl={key:1,class:`tl-progress`},Gl={key:0,class:`empty`},Kl={key:0,class:`empty`},ql={class:`child-title`},Jl={class:`child-meta`},Yl={class:`raw`},Xl=560,Zl=Object.assign(B(s({__name:`TaskInspectorDrawer`,props:a({channelId:{},taskId:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let{t}=q(),n=e,r=m(e,`open`),i=Ot(`aw.drawer.taskW`,Xl),a=e=>{i.value=Math.min(960,Math.max(380,i.value-e))},o=vt(),s=bt(),c=wt(),d=F(null),f=F(!1),p=async()=>{if(n.taskId){f.value=!0;try{let e=await c.getTask(n.taskId);d.value=e.data??null}finally{f.value=!1}}};D(()=>[r.value,n.taskId],()=>{r.value&&n.taskId&&p()});let g=O(()=>n.taskId?o.taskById(n.channelId,n.taskId):void 0),_=O(()=>n.taskId?(o.tasks[n.channelId]??[]).filter(e=>e.parentId===n.taskId):[]),v=O(()=>n.taskId?s.ring(n.channelId).items.filter(e=>e.taskId===n.taskId&&(e.type===`task.status`||e.type===`task.progress`)):[]),b=F(!1),C=async()=>{if(n.taskId){b.value=!0;try{await c.cancelTask(n.taskId),$.success(t(`taskInspectorDrawer.k1xj595a013`)),p()}catch(e){$.error(ut(e))}finally{b.value=!1}}},w=F(!1),T=async()=>{if(n.taskId){w.value=!0;try{await c.retryTask(n.taskId),$.success(t(`taskInspectorDrawer.ke7bh8u014`)),p()}catch(e){$.error(ut(e))}finally{w.value=!1}}},E=e=>o.agentById(n.channelId,e)?.name??e.slice(0,8),k=O(()=>{let e=d.value;if(!e||e.state!==`FAILED`)return``;let t=e.history??[];for(let e=t.length-1;e>=0;e--){let n=(t[e]?.parts??[]).map(e=>e.text??``).join(` `).trim();if(n)return n.slice(0,500)}return e.description?.trim()??``}),j={SUBMITTED:`default`,ASSIGNED:`processing`,WORKING:`processing`,WAITING:`warning`,COMPLETED:`success`,FAILED:`error`,CANCELED:`default`};return(e,t)=>{let n=Yr,o=Ge,s=Ee,c=Ze,p=rt,m=nt,D=qe,O=Zi,N=Ye,F=ot,R=at;return u(),P(R,{open:r.value,"onUpdate:open":t[1]||=e=>r.value=e,placement:`right`,width:h(i),title:h(d)?.title??h(g)?.title??`任务详情`,class:`aw-resizable-drawer`},{default:I(()=>[V(n,{variant:`bare`,class:`drawer-resizer`,label:e.$t(`taskInspectorDrawer.k6hcbxi001`),onResize:a,onReset:t[0]||=e=>i.value=Xl},null,8,[`label`]),V(F,{spinning:h(f)},{default:I(()=>[h(d)||h(g)?(u(),A(x,{key:0},[L(`div`,Pl,[V(o,{color:j[h(g)?.state??h(d)?.state??``]??`default`},{default:I(()=>[S(y(h(g)?.state??h(d)?.state),1)]),_:1},8,[`color`]),L(`span`,Fl,y(e.$t(`taskInspectorDrawer.k3o48o4010`))+y(E(h(g)?.assigneeId??h(d)?.assigneeId??``)),1),L(`span`,Il,y(h(g)?.progress??h(d)?.progress??0)+`%`,1),t[2]||=L(`div`,{class:`spacer`},null,-1),(h(g)?.state??h(d)?.state)===`FAILED`?(u(),P(c,{key:0,title:e.$t(`taskInspectorDrawer.kns2a6x002`),onConfirm:T},{default:I(()=>[V(s,{size:`small`,loading:h(w)},{default:I(()=>[S(y(e.$t(`taskInspectorDrawer.k1lcgf2b005`)),1)]),_:1},8,[`loading`])]),_:1},8,[`title`])):M(``,!0),V(c,{title:e.$t(`taskInspectorDrawer.k1a7jqb9003`),onConfirm:C},{default:I(()=>[V(s,{danger:``,size:`small`,loading:h(b),disabled:[`COMPLETED`,`CANCELED`,`FAILED`].includes(h(g)?.state??h(d)?.state??``)},{default:I(()=>[S(y(e.$t(`taskInspectorDrawer.k1bs0t9b006`)),1)]),_:1},8,[`loading`,`disabled`])]),_:1},8,[`title`])]),(h(g)?.state??h(d)?.state)===`FAILED`&&h(k)?(u(),A(`div`,Ll,[t[3]||=L(`span`,{class:`fr-label`},`失败原因`,-1),L(`span`,Rl,y(h(k)),1)])):M(``,!0),h(d)?.description?(u(),P(m,{key:1,column:1,size:`small`,class:`desc`},{default:I(()=>[V(p,{label:e.$t(`taskInspectorDrawer.k40gkk004`)},{default:I(()=>[S(y(h(d).description),1)]),_:1},8,[`label`])]),_:1})):M(``,!0),h(d)?.routeReason?(u(),A(`div`,zl,[L(`span`,Bl,y(e.$t(`taskInspectorDrawer.k1knph8c007`)),1),L(`span`,Vl,y(h(d).routeReason),1)])):M(``,!0),V(N,{size:`small`,"default-active-key":`timeline`},{default:I(()=>[V(D,{key:`timeline`,tab:`状态时间线`},{default:I(()=>[h(v).length===0?(u(),A(`div`,Hl,y(e.$t(`taskInspectorDrawer.kr3vr2x008`)),1)):M(``,!0),(u(!0),A(x,null,l(h(v),t=>(u(),A(`div`,{key:`${t.seq}-${t.type}`,class:`tl-row`},[L(`span`,Ul,y(h(Et)(t.at)),1),t.type===`task.status`?(u(),P(o,{key:0,color:j[t.payload.state]??`default`,class:`state`},{default:I(()=>[S(y(t.payload.state),1)]),_:2},1032,[`color`])):(u(),A(`span`,Wl,y(e.$t(`taskInspectorDrawer.k485ye011`))+` `+y(t.payload.progress)+`%`,1))]))),128))]),_:1}),V(D,{key:`artifacts`,tab:e.$t(`taskInspectorDrawer.kkp77tf015`,{p0:h(d)?.artifacts.length??0})},{default:I(()=>[h(d)?.artifacts.length?M(``,!0):(u(),A(`div`,Gl,` (`+y(e.$t(`taskInspectorDrawer.k401n2012`)),1)),(u(!0),A(x,null,l(h(d)?.artifacts??[],e=>(u(),P(O,{key:e.artifactId,artifact:e},null,8,[`artifact`]))),128))]),_:1},8,[`tab`]),V(D,{key:`children`,tab:e.$t(`taskInspectorDrawer.khnua62016`,{p0:h(_).length})},{default:I(()=>[h(_).length===0?(u(),A(`div`,Kl,y(e.$t(`taskInspectorDrawer.k1kmqn5u009`)),1)):M(``,!0),(u(!0),A(x,null,l(h(_),e=>(u(),A(`div`,{key:e.id,class:`child-row`},[V(o,{color:j[e.state]??`default`,class:`state`},{default:I(()=>[S(y(e.state),1)]),_:2},1032,[`color`]),L(`span`,ql,y(e.title),1),L(`span`,Jl,y(E(e.assigneeId))+` · `+y(e.progress)+`%`,1)]))),128))]),_:1},8,[`tab`]),V(D,{key:`raw`,tab:e.$t(`taskInspectorDrawer.kxj74io017`,{p0:h(d)?.artifacts.reduce((e,t)=>e+t.parts.length,0)??0})},{default:I(()=>[L(`pre`,Yl,y(JSON.stringify(h(d)?.artifacts,null,2)?.slice(0,4e3)),1)]),_:1},8,[`tab`])]),_:1})],64)):M(``,!0)]),_:1},8,[`spinning`])]),_:1},8,[`open`,`width`,`title`])}}}),[[`__scopeId`,`data-v-4130ad00`]]),{__name:`WorkshopTaskInspectorDrawer`}),Ql={class:`dbg`},$l={class:`row`},eu={class:`row`},tu={class:`row ops`},nu={class:`output`},ru=600,iu=Object.assign(B(s({__name:`A2aRpcDebugger`,props:a({channelId:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(e){let{t}=q(),n=e,r=m(e,`open`),i=Ot(`aw.drawer.a2aW`,ru),a=e=>{i.value=Math.min(1040,Math.max(420,i.value-e))},o=vt(),s=O(()=>o.agents[n.channelId]??[]),c=F(``);D(s,e=>{!c.value&&e.length>0&&(c.value=e[0]?.agentId??``)},{immediate:!0});let l=F(`tasks/list`),d=[{value:`tasks/list`,label:`tasks/list`},{value:`tasks/get`,label:`tasks/get`},{value:`tasks/send`,label:`tasks/send`},{value:`tasks/sendSubscribe`,label:`tasks/sendSubscribe(SSE 流)`,sse:!0},{value:`message/send`,label:`message/send(需 token)`},{value:`agent/getCard`,label:`agent/getCard`}],f=F(`{}`),p=F(``),g=F(!1),_=F(``),v=()=>{switch(l.value){case`tasks/send`:case`tasks/sendSubscribe`:return{message:{role:`ROLE_USER`,parts:[{text:t(`a2aRpcDebugger.kq00d3v005`)}]}};case`tasks/get`:return{taskId:`<taskId>`};case`message/send`:return{message:{role:`ROLE_USER`,parts:[{text:t(`a2aRpcDebugger.k1kgwib8006`)}]}};default:return{}}},b=e=>{_.value+=`${e}\n`},x=async e=>{let n=await fetch(`/api/workshop/a2a/${c.value}/rpc`,{method:`POST`,headers:{"content-type":`application/json`,accept:`text/event-stream`,...p.value?{authorization:`Bearer ${p.value}`}:{}},body:JSON.stringify(e)});if(b(`▶ HTTP ${n.status} ${n.headers.get(`content-type`)??``}`),!n.body){b(await n.text());return}let r=n.body.getReader(),i=new TextDecoder,a=``;for(;;){let{done:e,value:t}=await r.read();if(e)break;a+=i.decode(t,{stream:!0});let n=a.split(`
|
|
16
|
-
|
|
17
|
-
`);a=n.pop()??``;for(let e of n){let t=e.split(`
|
|
18
|
-
`).find(e=>e.startsWith(`data:`));t&&b(`◀ ${t.slice(5).trim().slice(0,400)}`)}}b(t(`a2aRpcDebugger.k1e1hi4u007`))},C=async()=>{if(!c.value){$.warning(t(`a2aRpcDebugger.k1vryfv008`));return}let e;try{e=JSON.parse(f.value||`{}`)}catch{$.error(`params 不是合法 JSON`);return}g.value=!0,_.value=``;let n={jsonrpc:`2.0`,id:Date.now(),method:l.value,params:e};try{if(l.value===`tasks/sendSubscribe`)await x(n);else{let e=await fetch(`/api/workshop/a2a/${c.value}/rpc`,{method:`POST`,headers:{"content-type":`application/json`,...p.value?{authorization:`Bearer ${p.value}`}:{}},body:JSON.stringify(n)}),t=await e.text();b(`▶ POST /a2a/${c.value.slice(0,8)}/rpc ${l.value} → HTTP ${e.status}`),b(t.slice(0,4e3))}}catch(e){b(`✖ ${ut(e)}`)}finally{g.value=!1}};return(e,t)=>{let n=Yr,o=Me,m=ze,b=Be,x=Ee,w=at;return u(),P(w,{open:r.value,"onUpdate:open":t[6]||=e=>r.value=e,placement:`right`,width:h(i),title:`A2A RPC / SSE 调试器`,class:`aw-resizable-drawer`},{default:I(()=>[V(n,{variant:`bare`,class:`drawer-resizer`,label:e.$t(`a2aRpcDebugger.k6hcbxi001`),onResize:a,onReset:t[0]||=e=>i.value=ru},null,8,[`label`]),L(`div`,Ql,[L(`div`,$l,[V(o,{value:h(c),"onUpdate:value":t[1]||=e=>N(c)?c.value=e:null,class:`agent`,placeholder:e.$t(`a2aRpcDebugger.k34cz76002`),options:h(s).map(e=>({value:e.agentId,label:`${e.name}(${e.role})`}))},null,8,[`value`,`placeholder`,`options`]),V(o,{value:h(l),"onUpdate:value":t[2]||=e=>N(l)?l.value=e:null,class:`method`,options:d},null,8,[`value`])]),V(m,{value:h(p),"onUpdate:value":t[3]||=e=>N(p)?p.value=e:null,size:`small`,placeholder:`Bearer token(message/send 需要;留空匿名)`,class:`token`},null,8,[`value`]),L(`div`,eu,[V(b,{value:h(f),"onUpdate:value":t[4]||=e=>N(f)?f.value=e:null,rows:6,class:`params`},null,8,[`value`])]),L(`div`,tu,[V(x,{size:`small`,onClick:t[5]||=e=>f.value=JSON.stringify(v(),null,2)},{default:I(()=>[S(y(e.$t(`a2aRpcDebugger.k1bqe2pj003`)),1)]),_:1}),V(x,{type:`primary`,size:`small`,loading:h(g),onClick:C},{default:I(()=>[S(y(e.$t(`a2aRpcDebugger.k405w8004`)),1)]),_:1},8,[`loading`])]),L(`pre`,nu,y(h(_)||`(输出;sendSubscribe 将逐条渲染 SSE 事件)`),1)])]),_:1},8,[`open`,`width`])}}}),[[`__scopeId`,`data-v-56f080d0`]]),{__name:`WorkshopA2aRpcDebugger`}),au={class:`palette`},ou={class:`palette-search`},su=[`placeholder`],cu={class:`palette-list`},lu=[`onClick`,`onMousemove`],uu={class:`pi-label`},du={key:0,class:`pi-hint`},fu={key:0,class:`palette-empty`},pu={class:`palette-foot`},mu=Object.assign(B(s({__name:`CommandPalette`,props:a({wsId:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:a([`setView`,`openA2aDebug`,`compose`],[`update:open`]),setup(e,{emit:t}){let{t:n}=q(),a=e,o=m(e,`open`),s=lt(),f=vt(),p=bt(),g=t,_=F(``),v=F(0),b=O(()=>{let e=[{key:`nav-home`,label:n(`commandPalette.kmxxk3u006`),hint:`/workshop`,run:()=>W(`/workshop`)},{key:`nav-agents`,label:n(`commandPalette.k4s8e5q007`),hint:`/workshop/agents`,run:()=>W(`/workshop/agents`)},{key:`nav-teams`,label:`前往:AgentTeam 编组库`,hint:`/workshop/teams`,run:()=>W(`/workshop/teams`)},{key:`nav-channel-templates`,label:n(`commandPalette.k1ezz11x008`),hint:`/workshop/channel-templates`,run:()=>W(`/workshop/channel-templates`)},{key:`view-timeline`,label:n(`commandPalette.k143z9bg009`),run:()=>{g(`setView`,`timeline`)}},{key:`view-lanes`,label:`视图:Agent lanes`,run:()=>{g(`setView`,`lanes`)}},{key:`view-board`,label:n(`commandPalette.k13ztmim010`),run:()=>{g(`setView`,`board`)}},{key:`view-split`,label:n(`commandPalette.k21cpnp011`),run:()=>{g(`setView`,`split`)}},{key:`act-compose`,label:n(`commandPalette.k1tm54il012`),hint:`⌘I`,run:()=>{g(`compose`)}},{key:`act-a2a`,label:`动作:A2A RPC/SSE 调试器`,run:()=>{g(`openA2aDebug`)}}];for(let t of s.workspaces.find(e=>e.id===a.wsId)?.channelIds??[]){let r=f.channels[t]?.name??t.slice(0,8);e.push({key:`ch-${t}`,label:n(`commandPalette.k1nz14ux013`,{p0:r}),hint:t.slice(0,8),run:()=>s.setActiveChannel(a.wsId,t)})}let t=s.workspaces.find(e=>e.id===a.wsId)?.activeChannelId;if(t){let r=p.filters[t]??`all`;for(let i of[`all`,`messages`,`tasks`,`errors`])i!==r&&e.push({key:`filter-${i}`,label:n(`commandPalette.k1d8xtez014`,{p0:i}),run:()=>p.setFilter(t,i)})}return e}),C=O(()=>{let e=_.value.trim().toLowerCase();return e?b.value.filter(t=>t.label.toLowerCase().includes(e)||(t.hint??``).toLowerCase().includes(e)):b.value});D(C,()=>{v.value=0});let T=e=>{let t=e??C.value[v.value];t&&(t.run(),o.value=!1,_.value=``)},E=e=>{e.key===`ArrowDown`?(e.preventDefault(),v.value=Math.min(v.value+1,C.value.length-1)):e.key===`ArrowUp`?(e.preventDefault(),v.value=Math.max(v.value-1,0)):e.key===`Enter`?(e.preventDefault(),T()):e.key===`Escape`&&(o.value=!1)},k=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),o.value=!o.value,_.value=``)};return U(()=>window.addEventListener(`keydown`,k)),c(()=>window.removeEventListener(`keydown`,k)),(e,t)=>(u(),P(w,{to:`body`},[o.value?(u(),A(`div`,{key:0,class:`palette-mask`,onClick:t[1]||=i(e=>o.value=!1,[`self`])},[L(`div`,au,[L(`div`,ou,[t[2]||=L(`span`,{class:`i-tabler-search ps-icon`},null,-1),z(L(`input`,{"onUpdate:modelValue":t[0]||=e=>N(_)?_.value=e:null,class:`palette-input`,placeholder:e.$t(`commandPalette.k1nn6i83001`),autofocus:``,onKeydown:E},null,40,su),[[r,h(_)]])]),L(`div`,cu,[(u(!0),A(x,null,l(h(C),(e,t)=>(u(),A(`button`,{key:e.key,type:`button`,class:d([`palette-item`,{selected:t===h(v)}]),onClick:t=>T(e),onMousemove:e=>v.value=t},[L(`span`,uu,y(e.label),1),e.hint?(u(),A(`span`,du,y(e.hint),1)):M(``,!0)],42,lu))),128)),h(C).length===0?(u(),A(`div`,fu,y(e.$t(`commandPalette.ktup4q4002`)),1)):M(``,!0)]),L(`div`,pu,[t[3]||=L(`kbd`,null,`↑↓`,-1),S(` `+y(e.$t(`commandPalette.k1kvl0fa003`))+` `,1),t[4]||=L(`kbd`,null,`↵`,-1),S(` `+y(e.$t(`commandPalette.k1e3ualj004`))+` `,1),t[5]||=L(`kbd`,null,`esc`,-1),S(` `+y(e.$t(`commandPalette.k3x62t005`)),1)])])])):M(``,!0)]))}}),[[`__scopeId`,`data-v-e22e8b91`]]),{__name:`WorkshopCommandPalette`}),hu={class:`harness`},gu={class:`topbar`},_u={class:`ws-name`},vu=[`title`],yu={class:`right`},bu=[`title`],xu=[`title`],Su=[`title`],Cu=[`data-state`],wu={class:`seq`},Tu={class:`main`},Eu={class:`left-scroll`},Du={class:`center-pane`},Ou={key:1,class:`pane-empty`},ku={class:`pe-title`},Au={class:`pe-sub`},ju={key:1,class:`pane-loading`},Mu=248,Nu=300,Pu=B(s({__name:`[wsId]`,setup(e){let{t}=q();Tt({layout:`default`});let n=G(),r=O(()=>String(n.params.wsId)),i=ct(),a=lt(),o=F(!1);U(()=>{if(!i.isLoggedIn){W(`/workshop`);return}o.value=!0,a.loaded||a.load().catch(()=>{})});let s=vt(),{subscribe:l,unsubscribe:f,conn:p}=St(),m=O(()=>a.workspaces.find(e=>e.id===r.value)),v=O(()=>{let e=m.value;if(!e)return;let t=e.channelIds,n=e.activeChannelId;return n&&t.includes(n)?n:t[0]});D(()=>[r.value,m.value?.channelIds.join(`,`)??``],()=>{let e=new Set(m.value?.channelIds??[]);for(let t of e)l(t)},{immediate:!0}),D(()=>m.value?.channelIds.join(`,`)??``,(e,t)=>{if(t===void 0)return;let n=new Set(m.value?.channelIds??[]);for(let e of t.split(`,`).filter(Boolean))n.has(e)||f(e)}),c(()=>{for(let e of m.value?.channelIds??[])f(e)});let b=O(()=>p.state===`open`?`var(--tone-success-dot)`:p.state===`connecting`?`var(--tone-warning-dot)`:`var(--tone-danger-dot)`),C=O(()=>v.value?p.cursors[v.value]??0:0),w={1:`timeline`,2:`lanes`,3:`board`,4:`split`,5:`town`},T=new Set([`timeline`,`lanes`,`board`,`split`,`town`]),E=n.query.view,k=F(typeof E==`string`&&T.has(E)?E:`timeline`),j=[{value:`timeline`,label:t(`wsView.k3otu32010`)},{value:`lanes`,label:`Agent lanes`},{value:`board`,label:t(`wsView.k3ko7a8011`)},{value:`split`,label:t(`wsView.k3xbmo012`)},{value:`town`,label:t(`wsView.k1cz0pbw013`)}],I=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;if(t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable))return;let n=w[e.key];!n||!v.value||(e.preventDefault(),k.value=n)};U(()=>window.addEventListener(`keydown`,I)),c(()=>window.removeEventListener(`keydown`,I));let R=F(!0),z=F(!0),B=Ot(`aw.harness.leftW`,Mu),H=Ot(`aw.harness.rightW`,Nu),J=e=>{B.value=Math.min(460,Math.max(220,B.value+e))},Y=e=>{H.value=Math.min(560,Math.max(240,H.value-e))};J(0),Y(0);let X=F(!1),Z=F(null),ee=e=>{Z.value=e,X.value=!0},te=e=>{a.setActiveChannel(r.value,e.channelId),ee(e.agentId)};g(`aw:open-agent`,te);let ne=F(!1),re=F(null),ie=e=>{re.value=e,ne.value=!0},ae=F(!1),oe=F(!1),se=F(null),ce=()=>{se.value?.querySelector(`textarea`)?.focus()};return K({title:()=>`${m.value?.name??`Workspace`} · AgentWorkShop`}),(e,t)=>{let n=Kn,i=ke,o=jr,c=qr,l=Yr,f=mo,g=qo,w=Es,T=zs,E=kt,D=zc,O=ml,F=Nl,U=Zl,W=iu,G=mu;return u(),A(`div`,hu,[V(n),L(`div`,gu,[L(`div`,{class:`left`,tabindex:`-1`,onKeydown:I},[t[14]||=L(`span`,{class:`topbar-mark i-tabler-box`},null,-1),L(`span`,_u,y(h(m)?.name??`未知 Workspace`),1),h(v)?(u(),A(`span`,{key:0,class:`chan-chip`,title:h(v)},[t[13]||=L(`span`,{class:`chan-hash`},`#`,-1),S(y(h(s).channels[h(v)]?.name??h(v).slice(0,8)),1)],8,vu)):M(``,!0),h(v)?(u(),P(i,{key:1,value:h(k),"onUpdate:value":t[0]||=e=>N(k)?k.value=e:null,size:`small`,options:j,class:`view-switch`,title:e.$t(`wsView.kqwckjr001`),onKeydown:I},null,8,[`value`,`title`])):M(``,!0)],32),L(`div`,yu,[L(`button`,{class:d([`pane-toggle im`,{off:!h(R)}]),title:e.$t(`wsView.k1tsy2e4002`),onClick:t[1]||=e=>R.value=!h(R)},[...t[15]||=[L(`span`,{class:`i-tabler-layout-sidebar-left-collapse im-pop`},null,-1)]],10,bu),L(`button`,{class:d([`pane-toggle im`,{off:!h(z)}]),title:e.$t(`wsView.k1tx0ppf003`),onClick:t[2]||=e=>z.value=!h(z)},[...t[16]||=[L(`span`,{class:`i-tabler-layout-sidebar-right-collapse im-pop`},null,-1)]],10,xu),L(`button`,{class:`pane-toggle im`,title:`A2A RPC/SSE 调试器`,onClick:t[3]||=e=>oe.value=!0},[...t[17]||=[L(`span`,{class:`i-tabler-terminal-2 im-pop`},null,-1)]]),L(`button`,{class:`pane-toggle im`,title:e.$t(`wsView.k1cvg8sb004`),onClick:t[4]||=e=>ae.value=!0},[...t[18]||=[L(`span`,{class:`i-tabler-command im-pop`},null,-1)]],8,Su),L(`span`,{class:`dot`,style:_({background:h(b)})},null,4),L(`span`,{class:`ws-state`,"data-state":h(p).state},y(h(p).state),9,Cu),L(`span`,wu,`seq `+y(h(C)),1)])]),L(`div`,Tu,[h(R)?(u(),A(`div`,{key:0,class:`left-pane`,style:_({flexBasis:`${h(B)}px`})},[L(`div`,Eu,[V(o,{"ws-id":h(r)},null,8,[`ws-id`])]),V(c,{"ws-id":h(r),onOpenAgent:te},null,8,[`ws-id`])],4)):M(``,!0),h(R)?(u(),P(l,{key:1,label:e.$t(`wsView.k1fkfvra005`),onResize:J,onReset:t[5]||=e=>B.value=Mu},null,8,[`label`])):M(``,!0),L(`div`,Du,[h(v)?(u(),A(x,{key:0},[h(k)===`timeline`?(u(),P(f,{key:0,"channel-id":h(v)},null,8,[`channel-id`])):h(k)===`lanes`?(u(),P(g,{key:1,"channel-id":h(v)},null,8,[`channel-id`])):h(k)===`board`?(u(),P(w,{key:2,"channel-id":h(v),onOpenTask:ie},null,8,[`channel-id`])):h(k)===`split`?(u(),P(T,{key:3,"ws-id":h(r),onOpenTask:ie},null,8,[`ws-id`])):h(k)===`town`?(u(),P(E,{key:4,"channel-id":h(v)},null,8,[`channel-id`])):M(``,!0)],64)):(u(),A(`div`,Ou,[t[20]||=L(`span`,{class:`pe-icon i-tabler-messages`},null,-1),L(`div`,ku,[S(y(e.$t(`wsView.klzbtyp007`))+` `,1),t[19]||=L(`span`,{class:`aw-serif-accent-italic`},`Channel`,-1),S(` `+y(e.$t(`wsView.k3zaj4008`)),1)]),L(`div`,Au,y(e.$t(`wsView.k1us0cxy009`)),1)]))]),h(z)?(u(),P(l,{key:2,label:e.$t(`wsView.kwqb0st006`),onResize:Y,onReset:t[6]||=e=>H.value=Nu},null,8,[`label`])):M(``,!0),h(z)?(u(),A(`div`,{key:3,class:d([`right-pane`,{empty:h(a).loaded&&!h(v)}]),style:_({flexBasis:`${h(H)}px`})},[h(v)?(u(),P(D,{key:0,"channel-id":h(v),onOpenAgent:ee,onOpenTask:ie},null,8,[`channel-id`])):h(a).loaded?M(``,!0):(u(),A(`div`,ju,` 正在加载 Workspace… `))],6)):M(``,!0)]),h(v)?(u(),A(`div`,{key:0,ref_key:`composerBox`,ref:se,class:`composer-pane`},[V(O,{"channel-id":h(v)},null,8,[`channel-id`]),V(F,{open:h(X),"onUpdate:open":t[7]||=e=>N(X)?X.value=e:null,"channel-id":h(v)??``,"agent-id":h(Z)},null,8,[`open`,`channel-id`,`agent-id`]),V(U,{open:h(ne),"onUpdate:open":t[8]||=e=>N(ne)?ne.value=e:null,"channel-id":h(v)??``,"task-id":h(re)},null,8,[`open`,`channel-id`,`task-id`]),V(W,{open:h(oe),"onUpdate:open":t[9]||=e=>N(oe)?oe.value=e:null,"channel-id":h(v)??``},null,8,[`open`,`channel-id`]),V(G,{open:h(ae),"onUpdate:open":t[10]||=e=>N(ae)?ae.value=e:null,"ws-id":h(r),onSetView:t[11]||=e=>k.value=e,onOpenA2aDebug:t[12]||=e=>oe.value=!0,onCompose:ce},null,8,[`open`,`ws-id`])],512)):M(``,!0)])}}}),[[`__scopeId`,`data-v-f2913902`]]);export{Pu as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{C as e,f as t,k as n,x as r}from"./BSCpFtzG.js";import{At as i,Ct as a,O as o,_ as s,_t as c,ct as l,d as u,f as d,h as f,kt as p,n as m,ot as h,pt as g,rt as _,t as v,u as y}from"./BDUjyaF4.js";import{t as b}from"./BfGc7TJp.js";import{G as ee,K as x,U as te}from"./VLI2Zy4t.js";import{g as S}from"./Cn3J3NXR.js";import{t as C}from"./CmHzfVc5.js";var w=e=>{let{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:i,cardHeadTabsMarginBottom:a}=e;return p(p({display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:`transparent`,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},d()),{"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":p(p({display:`inline-block`,flex:1},s),{[`
|
|
2
|
-
> ${n}-typography,
|
|
3
|
-
> ${n}-typography-edit-content
|
|
4
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},T=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
|
5
|
-
${i}px 0 0 0 ${n},
|
|
6
|
-
0 ${i}px 0 0 ${n},
|
|
7
|
-
${i}px ${i}px 0 0 ${n},
|
|
8
|
-
${i}px 0 0 0 ${n} inset,
|
|
9
|
-
0 ${i}px 0 0 ${n} inset;
|
|
10
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},E=e=>{let{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a}=e;return p(p({margin:0,padding:0,listStyle:`none`,background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},d()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:`${i*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${a}`}}})},D=e=>p(p({margin:`-${e.marginXXS}px 0`,display:`flex`},d()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":p({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},s),"&-description":{color:e.colorTextDescription}}),O=e=>{let{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},k=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},A=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadow:a,cardPaddingBase:o}=e;return{[t]:p(p({},f(e)),{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:w(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:``,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:p({padding:o,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},d()),[`${t}-grid`]:T(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:E(e),[`${t}-meta`]:D(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:O(e),[`${t}-loading`]:k(e),[`${t}-rtl`]:{direction:`rtl`}}},j=e=>{let{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:`flex`,alignItems:`center`}}}}},M=u(`Card`,e=>{let t=y(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[A(t),j(t)]}),N=e({compatConfig:{MODE:3},name:`SkeletonTitle`,props:{prefixCls:String,width:{type:[Number,String]}},setup(e){return()=>{let{prefixCls:t,width:n}=e,i=typeof n==`number`?`${n}px`:n;return r(`h3`,{class:t,style:{width:i}},null)}}}),P=e({compatConfig:{MODE:3},name:`SkeletonParagraph`,props:{prefixCls:String,width:{type:[Number,String,Array]},rows:Number},setup(e){let t=t=>{let{width:n,rows:r=2}=e;if(Array.isArray(n))return n[t];if(r-1===t)return n};return()=>{let{prefixCls:n,rows:i}=e,a=[...Array(i)].map((e,n)=>{let i=t(n);return r(`li`,{key:n,style:{width:typeof i==`number`?`${i}px`:i}},null)});return r(`ul`,{class:n},[a])}}}),F=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),I=e=>{let{prefixCls:t,size:n,shape:i}=e,o=a({[`${t}-lg`]:n===`large`,[`${t}-sm`]:n===`small`}),s=a({[`${t}-circle`]:i===`circle`,[`${t}-square`]:i===`square`,[`${t}-round`]:i===`round`}),c=typeof n==`number`?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return r(`span`,{class:a(t,o,s),style:c},null)};I.displayName=`SkeletonElement`;var L=new o(`ant-skeleton-loading`,{"0%":{transform:`translateX(-37.5%)`},"100%":{transform:`translateX(37.5%)`}}),R=e=>({height:e,lineHeight:`${e}px`}),z=e=>p({width:e},R(e)),B=e=>({position:`relative`,zIndex:0,overflow:`hidden`,background:`transparent`,"&::after":{position:`absolute`,top:0,insetInlineEnd:`-150%`,bottom:0,insetInlineStart:`-150%`,background:e.skeletonLoadingBackground,animationName:L,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`,content:`""`}}),V=e=>p({width:e*5,minWidth:e*5},R(e)),ne=e=>{let{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[`${t}`]:p({display:`inline-block`,verticalAlign:`top`,background:n},z(r)),[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:p({},z(i)),[`${t}${t}-sm`]:p({},z(a))}},re=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,color:o}=e;return{[`${r}`]:p({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n},V(t)),[`${r}-lg`]:p({},V(i)),[`${r}-sm`]:p({},V(a))}},ie=e=>p({width:e},R(e)),ae=e=>{let{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:i}=e;return{[`${t}`]:p(p({display:`flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`top`,background:r,borderRadius:i},ie(n*2)),{[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:p(p({},ie(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}}),[`${t}${t}-circle`]:{borderRadius:`50%`}}},H=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},U=e=>p({width:e*2,minWidth:e*2},R(e)),oe=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,color:o}=e;return p(p(p(p(p({[`${n}`]:p({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:r*2,minWidth:r*2},U(r))},H(e,r,n)),{[`${n}-lg`]:p({},U(i))}),H(e,i,`${n}-lg`)),{[`${n}-sm`]:p({},U(a))}),H(e,a,`${n}-sm`))},se=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:c,controlHeightLG:l,controlHeightSM:u,color:d,padding:f,marginSM:m,borderRadius:h,skeletonTitleHeight:g,skeletonBlockRadius:_,skeletonParagraphLineHeight:v,controlHeightXS:y,skeletonParagraphMarginTop:b}=e;return{[`${t}`]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:f,verticalAlign:`top`,[`${n}`]:p({display:`inline-block`,verticalAlign:`top`,background:d},z(c)),[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:p({},z(l)),[`${n}-sm`]:p({},z(u))},[`${t}-content`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[`${r}`]:{width:`100%`,height:g,background:d,borderRadius:_,[`+ ${i}`]:{marginBlockStart:u}},[`${i}`]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:d,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:p(p(p(p({display:`inline-block`,width:`auto`},oe(e)),ne(e)),re(e)),ae(e)),[`${t}${t}-block`]:{width:`100%`,[`${a}`]:{width:`100%`},[`${o}`]:{width:`100%`}},[`${t}${t}-active`]:{[`
|
|
11
|
-
${r},
|
|
12
|
-
${i} > li,
|
|
13
|
-
${n},
|
|
14
|
-
${a},
|
|
15
|
-
${o},
|
|
16
|
-
${s}
|
|
17
|
-
`]:p({},B(e))}}},W=u(`Skeleton`,e=>{let{componentCls:t}=e;return[se(y(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))]},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),ce=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function G(e){return e&&typeof e==`object`?e:{}}function le(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function ue(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function de(e,t){let n={};return(!e||!t)&&(n.width=`61%`),n.rows=!e&&t?3:2,n}var K=e({compatConfig:{MODE:3},name:`ASkeleton`,props:b(ce(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t,{prefixCls:i,direction:o}=m(`skeleton`,e),[s,c]=W(i);return()=>{let{loading:t,avatar:l,title:u,paragraph:d,active:f,round:m}=e,h=i.value;if(t||e.loading===void 0){let e=!!l||l===``,t=!!u||u===``,n=!!d||d===``,i;if(e){let e=p(p({prefixCls:`${h}-avatar`},le(t,n)),G(l));i=r(`div`,{class:`${h}-header`},[r(I,e,null)])}let g;if(t||n){let i;if(t){let t=p(p({prefixCls:`${h}-title`},ue(e,n)),G(u));i=r(N,t,null)}let a;if(n){let n=p(p({prefixCls:`${h}-paragraph`},de(e,t)),G(d));a=r(P,n,null)}g=r(`div`,{class:`${h}-content`},[i,a])}let _=a(h,{[`${h}-with-avatar`]:e,[`${h}-active`]:f,[`${h}-rtl`]:o.value===`rtl`,[`${h}-round`]:m,[c.value]:!0});return s(r(`div`,{class:_},[i,g]))}return n.default?.call(n)}}}),q=e({compatConfig:{MODE:3},name:`ASkeletonButton`,props:b(p(p({},F()),{size:String,block:Boolean}),{size:`default`}),setup(e){let{prefixCls:n}=m(`skeleton`,e),[o,s]=W(n),c=t(()=>a(n.value,`${n.value}-element`,{[`${n.value}-active`]:e.active,[`${n.value}-block`]:e.block},s.value));return()=>o(r(`div`,{class:c.value},[r(I,i(i({},e),{},{prefixCls:`${n.value}-button`}),null)]))}}),J=e({compatConfig:{MODE:3},name:`ASkeletonInput`,props:p(p({},x(F(),[`shape`])),{size:String,block:Boolean}),setup(e){let{prefixCls:n}=m(`skeleton`,e),[o,s]=W(n),c=t(()=>a(n.value,`${n.value}-element`,{[`${n.value}-active`]:e.active,[`${n.value}-block`]:e.block},s.value));return()=>o(r(`div`,{class:c.value},[r(I,i(i({},e),{},{prefixCls:`${n.value}-input`}),null)]))}}),fe=`M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z`,Y=e({compatConfig:{MODE:3},name:`ASkeletonImage`,props:x(F(),[`size`,`shape`,`active`]),setup(e){let{prefixCls:n}=m(`skeleton`,e),[i,o]=W(n),s=t(()=>a(n.value,`${n.value}-element`,o.value));return()=>i(r(`div`,{class:s.value},[r(`div`,{class:`${n.value}-image`},[r(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,class:`${n.value}-image-svg`},[r(`path`,{d:fe,class:`${n.value}-image-path`},null)])])]))}}),X=e({compatConfig:{MODE:3},name:`ASkeletonAvatar`,props:b(p(p({},F()),{shape:String}),{size:`default`,shape:`circle`}),setup(e){let{prefixCls:n}=m(`skeleton`,e),[o,s]=W(n),c=t(()=>a(n.value,`${n.value}-element`,{[`${n.value}-active`]:e.active},s.value));return()=>o(r(`div`,{class:c.value},[r(I,i(i({},e),{},{prefixCls:`${n.value}-avatar`}),null)]))}});K.Button=q,K.Avatar=X,K.Input=J,K.Image=Y,K.Title=N,K.install=function(e){return e.component(K.name,K),e.component(K.Button.name,q),e.component(K.Avatar.name,X),e.component(K.Input.name,J),e.component(K.Image.name,Y),e.component(K.Title.name,N),e};var pe=K,{TabPane:me}=C,Z=e({compatConfig:{MODE:3},name:`ACard`,inheritAttrs:!1,props:{prefixCls:String,title:v.any,extra:v.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:v.any,tabList:{type:Array},tabBarExtraContent:v.any,activeTabKey:String,defaultActiveTabKey:String,cover:v.any,onTabChange:{type:Function}},slots:Object,setup(e,t){let{slots:a,attrs:o}=t,{prefixCls:s,direction:u,size:d}=m(`card`,e),[f,p]=M(s),g=e=>e.map((t,i)=>n(t)&&!c(t)||!n(t)?r(`li`,{style:{width:`${100/e.length}%`},key:`action-${i}`},[r(`span`,null,[t])]):null),_=t=>{var n;(n=e.onTabChange)==null||n.call(e,t)},v=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t;return e.forEach(e=>{e&&S(e.type)&&e.type.__ANT_CARD_GRID&&(t=!0)}),t};return()=>{let{headStyle:t={},bodyStyle:n={},loading:c,bordered:m=!0,type:y,tabList:b,hoverable:x,activeTabKey:S,defaultActiveTabKey:w,tabBarExtraContent:T=h(a.tabBarExtraContent?.call(a)),title:E=h(a.title?.call(a)),extra:D=h(a.extra?.call(a)),actions:O=h(a.actions?.call(a)),cover:k=h(a.cover?.call(a))}=e,A=l(a.default?.call(a)),j=s.value,M={[`${j}`]:!0,[p.value]:!0,[`${j}-loading`]:c,[`${j}-bordered`]:m,[`${j}-hoverable`]:!!x,[`${j}-contain-grid`]:v(A),[`${j}-contain-tabs`]:b&&b.length,[`${j}-${d.value}`]:d.value,[`${j}-type-${y}`]:!!y,[`${j}-rtl`]:u.value===`rtl`},N=r(pe,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[A]}),P=S!==void 0,F={size:`large`,[P?`activeKey`:`defaultActiveKey`]:P?S:w,onChange:_,class:`${j}-head-tabs`},I,L=b&&b.length?r(C,F,{default:()=>[b.map(e=>{let{tab:t,slots:n}=e,i=n?.tab;ee(!n,`Card`,"tabList slots is deprecated, Please use `customTab` instead.");let o=t===void 0?a[i]?a[i](e):null:t;return o=te(a,`customTab`,e,()=>[o]),r(me,{tab:o,key:e.key,disabled:e.disabled},null)})],rightExtra:T?()=>T:null}):null;(E||D||L)&&(I=r(`div`,{class:`${j}-head`,style:t},[r(`div`,{class:`${j}-head-wrapper`},[E&&r(`div`,{class:`${j}-head-title`},[E]),D&&r(`div`,{class:`${j}-extra`},[D])]),L]));let R=k?r(`div`,{class:`${j}-cover`},[k]):null,z=r(`div`,{class:`${j}-body`,style:n},[c?N:A]),B=O&&O.length?r(`ul`,{class:`${j}-actions`},[g(O)]):null;return f(r(`div`,i(i({ref:`cardContainerRef`},o),{},{class:[M,o.class]}),[I,R,A&&A.length?z:null,B]))}}}),Q=e({compatConfig:{MODE:3},name:`ACardMeta`,props:{prefixCls:String,title:_(),description:_(),avatar:_()},slots:Object,setup(e,t){let{slots:n}=t,{prefixCls:i}=m(`card`,e);return()=>{let t={[`${i.value}-meta`]:!0},a=g(n,e,`avatar`),o=g(n,e,`title`),s=g(n,e,`description`),c=a?r(`div`,{class:`${i.value}-meta-avatar`},[a]):null,l=o?r(`div`,{class:`${i.value}-meta-title`},[o]):null,u=s?r(`div`,{class:`${i.value}-meta-description`},[s]):null,d=l||u?r(`div`,{class:`${i.value}-meta-detail`},[l,u]):null;return r(`div`,{class:t},[c,d])}}}),$=e({compatConfig:{MODE:3},name:`ACardGrid`,__ANT_CARD_GRID:!0,props:{prefixCls:String,hoverable:{type:Boolean,default:!0}},setup(e,n){let{slots:i}=n,{prefixCls:a}=m(`card`,e),o=t(()=>({[`${a.value}-grid`]:!0,[`${a.value}-grid-hoverable`]:e.hoverable}));return()=>r(`div`,{class:o.value},[i.default?.call(i)])}});Z.Meta=Q,Z.Grid=$,Z.install=function(e){return e.component(Z.name,Z),e.component(Q.name,Q),e.component($.name,$),e};var he=Z;export{he as t};
|