@wandox/sdk 0.1.32 → 0.1.34

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.
Files changed (106) hide show
  1. package/README.md +6 -2
  2. package/dist/{arc-CioPTVlR.js → arc-D0KfcB3y.js} +1 -1
  3. package/dist/{arc-D3DbHFp3.cjs → arc-DtBHZfqY.cjs} +1 -1
  4. package/dist/{architectureDiagram-3BPJPVTR-DxudWzpN.cjs → architectureDiagram-3BPJPVTR-C2P4Wdju.cjs} +1 -1
  5. package/dist/{architectureDiagram-3BPJPVTR-Ca6Rglif.js → architectureDiagram-3BPJPVTR-VUz_J4KY.js} +3 -3
  6. package/dist/{blockDiagram-GPEHLZMM-Yn5xixU8.cjs → blockDiagram-GPEHLZMM-DyKZmQ5w.cjs} +1 -1
  7. package/dist/{blockDiagram-GPEHLZMM-ChXtK3M_.js → blockDiagram-GPEHLZMM-HQFLyzc_.js} +3 -3
  8. package/dist/{c4Diagram-AAUBKEIU-Da9pYrIH.js → c4Diagram-AAUBKEIU-DH1AHWgW.js} +2 -2
  9. package/dist/{c4Diagram-AAUBKEIU-DrzPSMNU.cjs → c4Diagram-AAUBKEIU-TV86wAk4.cjs} +1 -1
  10. package/dist/{channel-DbhX4bkx.cjs → channel-AJpjl4EL.cjs} +1 -1
  11. package/dist/{channel-lhgg4d-Z.js → channel-BlVX_pqv.js} +1 -1
  12. package/dist/{chunk-2J33WTMH-BD0Wesfp.cjs → chunk-2J33WTMH-B3QEVdxo.cjs} +1 -1
  13. package/dist/{chunk-2J33WTMH-2ChKkOqa.js → chunk-2J33WTMH-t0efBHaF.js} +1 -1
  14. package/dist/{chunk-4BX2VUAB-BHR93RDh.cjs → chunk-4BX2VUAB-B3PBOdBd.cjs} +1 -1
  15. package/dist/{chunk-4BX2VUAB-7mSXeK96.js → chunk-4BX2VUAB-B6_TK6LC.js} +1 -1
  16. package/dist/{chunk-55IACEB6-BTuQ65Ck.js → chunk-55IACEB6-Dn6M7DjU.js} +1 -1
  17. package/dist/{chunk-55IACEB6-BH_OU6H_.cjs → chunk-55IACEB6-DrbqgVSi.cjs} +1 -1
  18. package/dist/{chunk-727SXJPM-BnccE2nF.cjs → chunk-727SXJPM-BxPLhhtr.cjs} +1 -1
  19. package/dist/{chunk-727SXJPM-15eoo_Jp.js → chunk-727SXJPM-CZZ8vzvu.js} +5 -5
  20. package/dist/{chunk-AQP2D5EJ-Bo9qEj7F.js → chunk-AQP2D5EJ-B5tlMkxW.js} +3 -3
  21. package/dist/{chunk-AQP2D5EJ-lO8iIlJc.cjs → chunk-AQP2D5EJ-DEFjJjvF.cjs} +1 -1
  22. package/dist/{chunk-FMBD7UC4-CyMUdtfG.cjs → chunk-FMBD7UC4-gFc5W2fF.cjs} +1 -1
  23. package/dist/{chunk-FMBD7UC4-CNcIY-Tp.js → chunk-FMBD7UC4-rlodMWnO.js} +1 -1
  24. package/dist/{chunk-ND2GUHAM-cpaA7UYQ.cjs → chunk-ND2GUHAM-B9qs3P-w.cjs} +1 -1
  25. package/dist/{chunk-ND2GUHAM-D4a94ENo.js → chunk-ND2GUHAM-dJ5LgRGw.js} +1 -1
  26. package/dist/{chunk-QZHKN3VN-R0vs-DGO.js → chunk-QZHKN3VN-ChUvXVo2.js} +1 -1
  27. package/dist/{chunk-QZHKN3VN-Co-kjbN3.cjs → chunk-QZHKN3VN-D25PBsy4.cjs} +1 -1
  28. package/dist/{classDiagram-4FO5ZUOK-CbqKWjnE.js → classDiagram-4FO5ZUOK-CPy1KaCR.js} +2 -2
  29. package/dist/{classDiagram-4FO5ZUOK-D1axqCjS.cjs → classDiagram-4FO5ZUOK-wFEmQFl-.cjs} +1 -1
  30. package/dist/{classDiagram-v2-Q7XG4LA2-sFqdEE1I.js → classDiagram-v2-Q7XG4LA2-CSZEPTC6.js} +2 -2
  31. package/dist/{classDiagram-v2-Q7XG4LA2-D1axqCjS.cjs → classDiagram-v2-Q7XG4LA2-wFEmQFl-.cjs} +1 -1
  32. package/dist/{cose-bilkent-S5V4N54A-xVCpwGiF.cjs → cose-bilkent-S5V4N54A-C4j5j5T6.cjs} +1 -1
  33. package/dist/{cose-bilkent-S5V4N54A-0mQl6Vf3.js → cose-bilkent-S5V4N54A-uRPNkg7E.js} +2 -2
  34. package/dist/{dagre-BM42HDAG-CoW4kJ-S.cjs → dagre-BM42HDAG-C--V1vcV.cjs} +1 -1
  35. package/dist/{dagre-BM42HDAG-BzUwXIpn.js → dagre-BM42HDAG-Iv0znKTe.js} +1 -1
  36. package/dist/{diagram-2AECGRRQ-1lKx7yON.js → diagram-2AECGRRQ-BSOkNy0d.js} +2 -2
  37. package/dist/{diagram-2AECGRRQ-NYDVOLPV.cjs → diagram-2AECGRRQ-DgTZEGRd.cjs} +1 -1
  38. package/dist/{diagram-5GNKFQAL-Dazq-bYh.js → diagram-5GNKFQAL-C91PObIK.js} +3 -3
  39. package/dist/{diagram-5GNKFQAL-bUagQsKx.cjs → diagram-5GNKFQAL-D5Mkr0VI.cjs} +1 -1
  40. package/dist/{diagram-KO2AKTUF-D2qkXjsL.cjs → diagram-KO2AKTUF-Bg-zssV4.cjs} +1 -1
  41. package/dist/{diagram-KO2AKTUF-CLmczKft.js → diagram-KO2AKTUF-CAH3eDcz.js} +2 -2
  42. package/dist/{diagram-LMA3HP47-BGSEnaOB.cjs → diagram-LMA3HP47-SMfJTnR5.cjs} +1 -1
  43. package/dist/{diagram-LMA3HP47-CELNhpuN.js → diagram-LMA3HP47-hOSm9f_K.js} +2 -2
  44. package/dist/{diagram-OG6HWLK6-Ch4tCuzD.js → diagram-OG6HWLK6-B-QlPomq.js} +3 -3
  45. package/dist/{diagram-OG6HWLK6-ehL7z21j.cjs → diagram-OG6HWLK6-DNEN_x2d.cjs} +1 -1
  46. package/dist/{erDiagram-TEJ5UH35-BUt_0_3y.cjs → erDiagram-TEJ5UH35-CG6J3vIN.cjs} +1 -1
  47. package/dist/{erDiagram-TEJ5UH35-4iEaO2FZ.js → erDiagram-TEJ5UH35-CmiMTzqm.js} +4 -4
  48. package/dist/{flowDiagram-I6XJVG4X-CnL9TmJ4.js → flowDiagram-I6XJVG4X-B-oB1PyG.js} +6 -6
  49. package/dist/{flowDiagram-I6XJVG4X-l_OuhLDt.cjs → flowDiagram-I6XJVG4X-BODLJZMQ.cjs} +1 -1
  50. package/dist/{ganttDiagram-6RSMTGT7-Deo05MSP.js → ganttDiagram-6RSMTGT7-4H-Azqhw.js} +3 -3
  51. package/dist/{ganttDiagram-6RSMTGT7-B9KlRuUy.cjs → ganttDiagram-6RSMTGT7-kGQE-0fY.cjs} +1 -1
  52. package/dist/{gitGraphDiagram-PVQCEYII-D5Km92vZ.cjs → gitGraphDiagram-PVQCEYII-Dj601cg2.cjs} +1 -1
  53. package/dist/{gitGraphDiagram-PVQCEYII-C0z4BKW0.js → gitGraphDiagram-PVQCEYII-ZKxubOBO.js} +3 -3
  54. package/dist/{index-BP1prynY.cjs → index-5xbDqXDX.cjs} +1 -1
  55. package/dist/{index-CqTYX11s.cjs → index-BPJc-VZw.cjs} +265 -265
  56. package/dist/{index-2p6OpkKo.cjs → index-BUHRhy1Y.cjs} +1 -1
  57. package/dist/{index-Cq00yE0b.js → index-BXVFHGjy.js} +4 -4
  58. package/dist/{index-Ba5zI0ll.js → index-B_nZ3LrV.js} +333 -331
  59. package/dist/{index-C2s6emQt.cjs → index-D3SW2cEr.cjs} +1 -1
  60. package/dist/{index-qxfBoy6M.js → index-D4dy8yHF.js} +25054 -24913
  61. package/dist/{index-6AGyZRc4.js → index-DkJpASom.js} +1 -1
  62. package/dist/{index-DG-vw0s1.cjs → index-DwVmVXmF.cjs} +2 -2
  63. package/dist/{index-CE_9sUtt.js → index-q34Z4QAw.js} +3 -3
  64. package/dist/{infoDiagram-5YYISTIA-BIOX1rtb.cjs → infoDiagram-5YYISTIA-CfJwXJqb.cjs} +1 -1
  65. package/dist/{infoDiagram-5YYISTIA-BagRF4_4.js → infoDiagram-5YYISTIA-mdLUb8Pf.js} +1 -1
  66. package/dist/{ishikawaDiagram-YF4QCWOH-DqBoe_NW.cjs → ishikawaDiagram-YF4QCWOH-BSPYHzHI.cjs} +1 -1
  67. package/dist/{ishikawaDiagram-YF4QCWOH-BQ8d0OVU.js → ishikawaDiagram-YF4QCWOH-CfS3BeT3.js} +1 -1
  68. package/dist/{journeyDiagram-JHISSGLW-B1rwd3zj.js → journeyDiagram-JHISSGLW-DUwZdGOg.js} +4 -4
  69. package/dist/{journeyDiagram-JHISSGLW-CszD79nr.cjs → journeyDiagram-JHISSGLW-nnM-h5QJ.cjs} +1 -1
  70. package/dist/{kanban-definition-UN3LZRKU-Dh0PCb4D.js → kanban-definition-UN3LZRKU-BtP29Iaf.js} +2 -2
  71. package/dist/{kanban-definition-UN3LZRKU-OBkVJz6T.cjs → kanban-definition-UN3LZRKU-Dt1TxPqZ.cjs} +1 -1
  72. package/dist/{linear-C_UIfrsT.cjs → linear-Bj7ETfty.cjs} +1 -1
  73. package/dist/{linear-zqWKeem9.js → linear-DZDNy162.js} +1 -1
  74. package/dist/{mermaid.core-BBvOg7Qw.cjs → mermaid.core-BTaTUIUu.cjs} +3 -3
  75. package/dist/{mermaid.core-B6KyHfvP.js → mermaid.core-Cc1KxlCM.js} +35 -35
  76. package/dist/{mindmap-definition-RKZ34NQL-DNUeY8GU.cjs → mindmap-definition-RKZ34NQL-Cf0zrR9M.cjs} +1 -1
  77. package/dist/{mindmap-definition-RKZ34NQL-DxdoIxDJ.js → mindmap-definition-RKZ34NQL-DZH26qfU.js} +3 -3
  78. package/dist/{pieDiagram-4H26LBE5-D-cxRy5s.cjs → pieDiagram-4H26LBE5-DRAafsrW.cjs} +1 -1
  79. package/dist/{pieDiagram-4H26LBE5-DHhBlzuW.js → pieDiagram-4H26LBE5-Ddif1ew2.js} +3 -3
  80. package/dist/{quadrantDiagram-W4KKPZXB-D9TkCc0Q.cjs → quadrantDiagram-W4KKPZXB-BbkfZqRA.cjs} +1 -1
  81. package/dist/{quadrantDiagram-W4KKPZXB-CGqNa97s.js → quadrantDiagram-W4KKPZXB-Cug5Y7_G.js} +2 -2
  82. package/dist/{requirementDiagram-4Y6WPE33-B_jqlh3e.cjs → requirementDiagram-4Y6WPE33-CWZD0-rx.cjs} +1 -1
  83. package/dist/{requirementDiagram-4Y6WPE33-Bt2WtRHt.js → requirementDiagram-4Y6WPE33-DwnBT67e.js} +3 -3
  84. package/dist/{sankeyDiagram-5OEKKPKP-BbRTca3X.js → sankeyDiagram-5OEKKPKP-BFE8-91E.js} +1 -1
  85. package/dist/{sankeyDiagram-5OEKKPKP-D8pQ53jS.cjs → sankeyDiagram-5OEKKPKP-I3_O-pWr.cjs} +1 -1
  86. package/dist/{sequenceDiagram-3UESZ5HK-CWmiw92i.cjs → sequenceDiagram-3UESZ5HK-CfoKZAsg.cjs} +1 -1
  87. package/dist/{sequenceDiagram-3UESZ5HK-CcqEtFwC.js → sequenceDiagram-3UESZ5HK-ChL5sWeE.js} +3 -3
  88. package/dist/{stateDiagram-AJRCARHV-DYPdua5Y.cjs → stateDiagram-AJRCARHV-DUnFbttq.cjs} +1 -1
  89. package/dist/{stateDiagram-AJRCARHV-Cq88b1Tx.js → stateDiagram-AJRCARHV-DuflU8kG.js} +2 -2
  90. package/dist/{stateDiagram-v2-BHNVJYJU-CxdPvM6i.cjs → stateDiagram-v2-BHNVJYJU-Cf7QVlcI.cjs} +1 -1
  91. package/dist/{stateDiagram-v2-BHNVJYJU-RJUVEtHQ.js → stateDiagram-v2-BHNVJYJU-DjhPlTO0.js} +2 -2
  92. package/dist/{timeline-definition-PNZ67QCA-CBEIY1Lw.cjs → timeline-definition-PNZ67QCA-DZfQpSWh.cjs} +1 -1
  93. package/dist/{timeline-definition-PNZ67QCA-By7osiII.js → timeline-definition-PNZ67QCA-Iy3R3U3O.js} +2 -2
  94. package/dist/{useWorkbenchSession-BLTRFEWl.cjs → useWorkbenchSession-CuBY6GKC.cjs} +1 -1
  95. package/dist/{useWorkbenchSession-CuCWHFoG.js → useWorkbenchSession-kwuVHEAF.js} +2 -2
  96. package/dist/{vennDiagram-CIIHVFJN-BpRNec9_.js → vennDiagram-CIIHVFJN-DcNPQahe.js} +1 -1
  97. package/dist/{vennDiagram-CIIHVFJN-CMlYTUk2.cjs → vennDiagram-CIIHVFJN-DxHgY0Ea.cjs} +1 -1
  98. package/dist/wandox.cjs +1 -1
  99. package/dist/wandox.css +1 -1
  100. package/dist/wandox.js +1 -1
  101. package/dist/wandox.umd.js +596 -596
  102. package/dist/{wardleyDiagram-YWT4CUSO-Bqi7M6ds.cjs → wardleyDiagram-YWT4CUSO-Dy3rxs_V.cjs} +1 -1
  103. package/dist/{wardleyDiagram-YWT4CUSO-DF7SXmn7.js → wardleyDiagram-YWT4CUSO-b2m-CjkO.js} +2 -2
  104. package/dist/{xychartDiagram-2RQKCTM6-P8AO8xfU.js → xychartDiagram-2RQKCTM6-CQEovrBb.js} +2 -2
  105. package/dist/{xychartDiagram-2RQKCTM6-Y82ZRBaL.cjs → xychartDiagram-2RQKCTM6-TK9Lfh_u.cjs} +1 -1
  106. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { ds as a, af as Rs, eb as ia, R as da, cs as ua, Q as As, aI as ma, S as Es, c0 as ha, d0 as e, bK as Is, aZ as xa, a_ as $s, ai as ss, a$ as Be, dZ as Ps, K as bs, aa as pa, P as _a, d9 as He, dF as X, J as Ge, c_ as fa, cO as ba, dN as ya, cd as ga, cH as wa, cG as ja, as as ka, ap as va, o as Na, m as Ca, v as Sa, b0 as Ms, b1 as Ra, bB as Ts, b2 as We, n as Aa, ar as Ea, cI as Ia, a9 as $a, cJ as Pa, aE as ys, b3 as Ma, aY as Ta, b4 as gs, b5 as Fa, b6 as La, b7 as Da, b8 as qa } from "./index-qxfBoy6M.js";
2
- import { h as Oa, A as za, R as Ye, g as Re, i as Qe, u as Va, f as Ze, b as Fs, c as ws, d as Ua, e as Ka, a as Ba, S as Ha } from "./useWorkbenchSession-CuCWHFoG.js";
3
- import { D as Ga } from "./index-6AGyZRc4.js";
4
- var Wa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z" } }] }, name: "sliders", theme: "outlined" };
1
+ import { ds as a, af as Rs, eb as ia, R as da, cs as ua, Q as As, aI as ma, S as Es, c0 as ha, d0 as e, bK as Is, aZ as xa, a_ as $s, ai as ss, a$ as Be, dZ as Ps, K as bs, aa as pa, P as _a, d9 as He, dF as X, J as Ge, c_ as fa, cO as ba, dN as ya, cd as ga, cH as wa, cG as ja, as as ka, ap as va, o as Na, m as Ca, v as Sa, b0 as Ms, b1 as Ra, bB as Ts, b2 as We, n as Aa, ar as Ea, cI as Ia, a9 as $a, cJ as Pa, aE as ys, b3 as Ma, aY as Ta, b4 as gs, b5 as Fa, b6 as La, b7 as Da, b8 as qa, ej as Oa } from "./index-D4dy8yHF.js";
2
+ import { h as za, A as Va, R as Ye, g as Re, i as Qe, u as Ua, f as Ze, b as Fs, c as ws, d as Ka, e as Ba, a as Ha, S as Ga } from "./useWorkbenchSession-kwuVHEAF.js";
3
+ import { D as Wa } from "./index-DkJpASom.js";
4
+ var Ya = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z" } }] }, name: "sliders", theme: "outlined" };
5
5
  function Je() {
6
6
  return Je = Object.assign ? Object.assign.bind() : function(n) {
7
7
  for (var t = 1; t < arguments.length; t++) {
@@ -12,11 +12,11 @@ function Je() {
12
12
  return n;
13
13
  }, Je.apply(this, arguments);
14
14
  }
15
- const Ya = (n, t) => /* @__PURE__ */ a.createElement(Rs, Je({}, n, {
15
+ const Qa = (n, t) => /* @__PURE__ */ a.createElement(Rs, Je({}, n, {
16
16
  ref: t,
17
- icon: Wa
18
- })), Ls = /* @__PURE__ */ a.forwardRef(Ya);
19
- var Qa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "unordered-list", theme: "outlined" };
17
+ icon: Ya
18
+ })), Ls = /* @__PURE__ */ a.forwardRef(Qa);
19
+ var Za = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "unordered-list", theme: "outlined" };
20
20
  function Xe() {
21
21
  return Xe = Object.assign ? Object.assign.bind() : function(n) {
22
22
  for (var t = 1; t < arguments.length; t++) {
@@ -27,11 +27,11 @@ function Xe() {
27
27
  return n;
28
28
  }, Xe.apply(this, arguments);
29
29
  }
30
- const Za = (n, t) => /* @__PURE__ */ a.createElement(Rs, Xe({}, n, {
30
+ const Ja = (n, t) => /* @__PURE__ */ a.createElement(Rs, Xe({}, n, {
31
31
  ref: t,
32
- icon: Qa
33
- })), Ja = /* @__PURE__ */ a.forwardRef(Za), Xa = 99;
34
- function en(n) {
32
+ icon: Za
33
+ })), Xa = /* @__PURE__ */ a.forwardRef(Ja), en = 99;
34
+ function sn(n) {
35
35
  return {
36
36
  id: n.agent_id || n.agent_code || "",
37
37
  agentId: n.agent_id,
@@ -43,7 +43,7 @@ function en(n) {
43
43
  };
44
44
  }
45
45
  function Ue(n) {
46
- const t = en(n);
46
+ const t = sn(n);
47
47
  return {
48
48
  id: t.id,
49
49
  agentId: t.agentId,
@@ -73,29 +73,29 @@ function ks(n) {
73
73
  function es(n, t) {
74
74
  return t ? n.id === t || n.agentId === t || n.agentCode === t : !1;
75
75
  }
76
- function sn({
76
+ function an({
77
77
  presetAgents: n
78
78
  } = {}) {
79
79
  const { setAllQuestions: t } = ia(), [l, r] = a.useState(
80
80
  () => n && n.length > 0 ? n.filter((w) => !w.hidden).map(Ue) : []
81
81
  ), [d, b] = a.useState(
82
82
  () => n && n.length > 0 ? n.filter((w) => !w.hidden) : []
83
- ), [_, h] = a.useState(0), [y, v] = a.useState(0), [$, f] = a.useState(!0), [P, g] = a.useState(null), C = a.useCallback(async () => {
83
+ ), [_, h] = a.useState(0), [y, v] = a.useState(0), [P, f] = a.useState(!0), [M, g] = a.useState(null), C = a.useCallback(async () => {
84
84
  var w;
85
85
  f(!0), g(null);
86
86
  try {
87
87
  if (n && n.length > 0) {
88
88
  const N = n.filter(
89
- (U) => !U.hidden
89
+ (K) => !K.hidden
90
90
  );
91
91
  r(N.map(Ue));
92
- const M = N.map(js);
93
- b(M), t(ks(M)), h(N.length), v(N.length);
92
+ const T = N.map(js);
93
+ b(T), t(ks(T)), h(N.length), v(N.length);
94
94
  return;
95
95
  }
96
96
  const m = await da({
97
97
  page: 1,
98
- page_size: Xa
98
+ page_size: en
99
99
  }), u = m.data || [], S = u.filter((N) => !N.hidden);
100
100
  !S.some((N) => N.is_main) && S.length > 0 && (S[0] = { ...S[0], is_main: !0 }), r(S.map(Ue));
101
101
  const Z = S.map(js);
@@ -115,12 +115,12 @@ function sn({
115
115
  sourceAgents: d,
116
116
  total: _,
117
117
  hasMore: y < _,
118
- loading: $,
119
- error: P,
118
+ loading: P,
119
+ error: M,
120
120
  reload: C
121
121
  };
122
122
  }
123
- function an(n) {
123
+ function nn(n) {
124
124
  const t = n || {};
125
125
  return {
126
126
  playbooks: ha(t),
@@ -128,21 +128,21 @@ function an(n) {
128
128
  childAgents: Array.isArray(t.children) ? t.children : []
129
129
  };
130
130
  }
131
- function nn(n) {
131
+ function tn(n) {
132
132
  return Array.isArray(n) ? n.reduce((t, l) => {
133
133
  const r = typeof (l == null ? void 0 : l.name) == "string" ? l.name.trim() : "";
134
134
  return r && t.push({ ...l, name: r }), t;
135
135
  }, []) : [];
136
136
  }
137
- function tn(n) {
138
- var _, h, y, v, $;
137
+ function on(n) {
138
+ var _, h, y, v, P;
139
139
  const t = n, l = (t == null ? void 0 : t.roles) ?? ((_ = t == null ? void 0 : t.data) == null ? void 0 : _.roles) ?? [];
140
140
  if (!Array.isArray(l))
141
141
  return { categories: [], scenes: [], totalCount: 0 };
142
142
  const r = [], d = [];
143
143
  let b = 0;
144
144
  for (const f of l) {
145
- const P = f.name || f.role_code || "";
145
+ const M = f.name || f.role_code || "";
146
146
  for (const g of f.goals || []) {
147
147
  const C = g.items || [], w = String(g.id);
148
148
  C.length > 0 && r.push({
@@ -156,10 +156,10 @@ function tn(n) {
156
156
  key: `${w}-${u}`,
157
157
  title: m.title || m.name || ((y = m.playbook) == null ? void 0 : y.name) || "未命名剧本",
158
158
  description: m.subtitle || m.description || ((v = m.playbook) == null ? void 0 : v.description) || "",
159
- sourceLabel: P,
160
- tags: nn(m.tags),
159
+ sourceLabel: M,
160
+ tags: tn(m.tags),
161
161
  playbookId: u,
162
- inputFields: m.input_fields || (($ = m.playbook) == null ? void 0 : $.input_fields) || [],
162
+ inputFields: m.input_fields || ((P = m.playbook) == null ? void 0 : P.input_fields) || [],
163
163
  categoryKey: w
164
164
  });
165
165
  }
@@ -168,11 +168,11 @@ function tn(n) {
168
168
  }
169
169
  return { categories: r, scenes: d, totalCount: b };
170
170
  }
171
- const on = "默认场景";
171
+ const cn = "默认场景";
172
172
  function Ds(n) {
173
- return n.category_name || n.category || n.type || on;
173
+ return n.category_name || n.category || n.type || cn;
174
174
  }
175
- function cn(n) {
175
+ function ln(n) {
176
176
  const t = /* @__PURE__ */ new Map();
177
177
  for (const l of n) {
178
178
  const r = Ds(l);
@@ -180,7 +180,7 @@ function cn(n) {
180
180
  }
181
181
  return Array.from(t, ([l, r]) => ({ key: l, name: l, count: r }));
182
182
  }
183
- function ln(n) {
183
+ function rn(n) {
184
184
  return n.map((t) => {
185
185
  const l = Ds(t);
186
186
  return {
@@ -210,38 +210,38 @@ function Os(n) {
210
210
  categoryKey: n.categoryKey
211
211
  };
212
212
  }
213
- function rn(n) {
214
- return cn(n).map(qs);
215
- }
216
213
  function dn(n) {
217
- return ln(n).map(Os);
214
+ return ln(n).map(qs);
218
215
  }
219
216
  function un(n) {
217
+ return rn(n).map(Os);
218
+ }
219
+ function mn(n) {
220
220
  if (Array.isArray(n)) return n;
221
221
  const t = n;
222
222
  return Array.isArray(t == null ? void 0 : t.user_playbooks) ? t.user_playbooks : [];
223
223
  }
224
- function mn(n) {
225
- const [t, l] = a.useState([]), [r, d] = a.useState([]), [b, _] = a.useState([]), [h, y] = a.useState([]), [v, $] = a.useState(!1), [f, P] = a.useState([]), [g, C] = a.useState([]), [w, m] = a.useState(0), [u, S] = a.useState(!1), [Z, N] = a.useState(null), [M, U] = a.useState(
224
+ function hn(n) {
225
+ const [t, l] = a.useState([]), [r, d] = a.useState([]), [b, _] = a.useState([]), [h, y] = a.useState([]), [v, P] = a.useState(!1), [f, M] = a.useState([]), [g, C] = a.useState([]), [w, m] = a.useState(0), [u, S] = a.useState(!1), [Z, N] = a.useState(null), [T, K] = a.useState(
226
226
  null
227
- ), [se, z] = a.useState(null), T = a.useRef(0), D = a.useRef(0), ne = a.useCallback(async () => {
228
- const k = ++T.current;
227
+ ), [se, z] = a.useState(null), F = a.useRef(0), D = a.useRef(0), ne = a.useCallback(async () => {
228
+ const k = ++F.current;
229
229
  if (!n) {
230
- l([]), d([]), _([]), y([]), P([]), C([]), m(0), S(!1), D.current += 1;
230
+ l([]), d([]), _([]), y([]), M([]), C([]), m(0), S(!1), D.current += 1;
231
231
  return;
232
232
  }
233
- S(!0), N(null), U(null), z(null), y([]), D.current += 1;
233
+ S(!0), N(null), K(null), z(null), y([]), D.current += 1;
234
234
  const J = [
235
235
  (async () => {
236
236
  try {
237
237
  const { data: q } = await As({
238
238
  agent_id: n
239
239
  });
240
- if (k !== T.current) return;
241
- const E = an(q);
242
- l(E.playbooks), d(E.playbookGroups), _(E.childAgents);
240
+ if (k !== F.current) return;
241
+ const I = nn(q);
242
+ l(I.playbooks), d(I.playbookGroups), _(I.childAgents);
243
243
  } catch {
244
- if (k !== T.current) return;
244
+ if (k !== F.current) return;
245
245
  N("剧本加载失败"), l([]), d([]), _([]);
246
246
  }
247
247
  })(),
@@ -251,38 +251,38 @@ function mn(n) {
251
251
  agent_id: n,
252
252
  role_id: null
253
253
  });
254
- if (k !== T.current) return;
255
- const E = tn(q);
256
- P(E.categories), C(E.scenes), m(E.totalCount);
254
+ if (k !== F.current) return;
255
+ const I = on(q);
256
+ M(I.categories), C(I.scenes), m(I.totalCount);
257
257
  } catch {
258
- if (k !== T.current) return;
259
- z("使用地图加载失败"), P([]), C([]), m(0);
258
+ if (k !== F.current) return;
259
+ z("使用地图加载失败"), M([]), C([]), m(0);
260
260
  }
261
261
  })()
262
262
  ];
263
- await Promise.allSettled(J), k === T.current && S(!1);
264
- }, [n]), F = a.useCallback(async () => {
263
+ await Promise.allSettled(J), k === F.current && S(!1);
264
+ }, [n]), V = a.useCallback(async () => {
265
265
  const k = ++D.current;
266
266
  if (!n) {
267
267
  y([]);
268
268
  return;
269
269
  }
270
- $(!0), U(null);
270
+ P(!0), K(null);
271
271
  try {
272
272
  const { data: J } = await Es({
273
273
  agent_id: n
274
274
  });
275
275
  if (k !== D.current) return;
276
- y(un(J));
276
+ y(mn(J));
277
277
  } catch {
278
278
  if (k !== D.current) return;
279
- U("我的场景加载失败"), y([]);
279
+ K("我的场景加载失败"), y([]);
280
280
  } finally {
281
- k === D.current && $(!1);
281
+ k === D.current && P(!1);
282
282
  }
283
283
  }, [n]);
284
284
  a.useEffect(() => (ne(), () => {
285
- T.current += 1;
285
+ F.current += 1;
286
286
  }), [ne]);
287
287
  const ee = a.useMemo(
288
288
  () => f.map(qs),
@@ -294,13 +294,13 @@ function mn(n) {
294
294
  childAgents: b,
295
295
  userPlaybooks: h,
296
296
  userPlaybooksLoading: v,
297
- loadUserPlaybooks: F,
297
+ loadUserPlaybooks: V,
298
298
  sceneCategories: f,
299
299
  scenes: g,
300
300
  sceneTotalCount: w,
301
301
  loading: u,
302
302
  detailError: Z,
303
- userPlaybooksError: M,
303
+ userPlaybooksError: T,
304
304
  sceneMapError: se,
305
305
  reload: ne,
306
306
  // Console 迁移期兼容字段。
@@ -310,23 +310,23 @@ function mn(n) {
310
310
  useMapError: se
311
311
  };
312
312
  }
313
- function hn({
313
+ function xn({
314
314
  presetAgents: n,
315
315
  initialAgentId: t
316
316
  } = {}) {
317
- const l = sn({ presetAgents: n }), [r, d] = a.useState(t || ""), b = a.useRef(null);
317
+ const l = an({ presetAgents: n }), [r, d] = a.useState(t || ""), b = a.useRef(null);
318
318
  a.useEffect(() => {
319
319
  if (l.agents.length !== 0) {
320
320
  if (t && b.current !== t) {
321
321
  b.current = t;
322
- const P = l.agents.find(
322
+ const M = l.agents.find(
323
323
  (g) => es(g, t)
324
324
  ) || l.agents.find((g) => g.current) || l.agents[0];
325
- r !== P.id && d(P.id);
325
+ r !== M.id && d(M.id);
326
326
  return;
327
327
  }
328
328
  if (!l.agents.some((f) => f.id === r)) {
329
- const f = l.agents.find((P) => P.current) || l.agents[0];
329
+ const f = l.agents.find((M) => M.current) || l.agents[0];
330
330
  d(f.id);
331
331
  }
332
332
  }
@@ -341,12 +341,12 @@ function hn({
341
341
  (f) => f.agent_id === r || f.agent_code === r
342
342
  ),
343
343
  [l.sourceAgents, r]
344
- ), $ = mn(r);
344
+ ), P = hn(r);
345
345
  return {
346
346
  ...l,
347
347
  agentLoading: l.loading,
348
- ...$,
349
- sceneLoading: $.loading,
348
+ ...P,
349
+ sceneLoading: P.loading,
350
350
  selectedAgentId: r,
351
351
  selectedAgent: y,
352
352
  sourceAgents: l.sourceAgents,
@@ -356,7 +356,7 @@ function hn({
356
356
  selectAgent: _
357
357
  };
358
358
  }
359
- const xn = (n) => {
359
+ const pn = (n) => {
360
360
  const { onError: t } = n;
361
361
  t == null || t(new Error("该场景暂不支持文件上传"));
362
362
  };
@@ -369,7 +369,7 @@ function as({
369
369
  onChange: b,
370
370
  onUpload: _
371
371
  }) {
372
- const h = Oa(n.type), y = _ ?? ((v, $) => xn);
372
+ const h = za(n.type), y = _ ?? ((v, P) => pn);
373
373
  return /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-field", children: [
374
374
  /* @__PURE__ */ e.jsxs("label", { htmlFor: `wc-param-${n.name}`, children: [
375
375
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__label-text", children: n.label || n.name }),
@@ -383,7 +383,7 @@ function as({
383
383
  h && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-field__required", children: "多值" })
384
384
  ] }),
385
385
  /* @__PURE__ */ e.jsx(
386
- za,
386
+ Va,
387
387
  {
388
388
  field: n,
389
389
  value: t,
@@ -397,15 +397,15 @@ function as({
397
397
  )
398
398
  ] });
399
399
  }
400
- const Ke = "__all__", vs = "__my__", Ns = "__library_all__", pn = "__library__:", _n = [
400
+ const Ke = "__all__", vs = "__my__", Ns = "__library_all__", _n = "__library__:", fn = [
401
401
  { key: "map", label: "使用地图" },
402
402
  { key: "my", label: "我的场景" },
403
403
  { key: "all", label: "全部场景" }
404
404
  ];
405
- function fn(n) {
405
+ function bn(n) {
406
406
  return n === "map" ? "搜索当前地图下的场景" : n === "my" ? "搜索我的场景" : "搜索全部场景";
407
407
  }
408
- function bn({
408
+ function yn({
409
409
  open: n,
410
410
  source: t,
411
411
  categories: l,
@@ -416,19 +416,19 @@ function bn({
416
416
  fields: h,
417
417
  values: y,
418
418
  executing: v,
419
- onClose: $,
419
+ onClose: P,
420
420
  onSourceChange: f,
421
- onCategoryChange: P,
421
+ onCategoryChange: M,
422
422
  onSearchChange: g,
423
423
  onSelectScene: C,
424
424
  onValueChange: w,
425
425
  onStart: m
426
426
  }) {
427
427
  return /* @__PURE__ */ e.jsx(
428
- Ga,
428
+ Wa,
429
429
  {
430
430
  open: n,
431
- onClose: $,
431
+ onClose: P,
432
432
  placement: "bottom",
433
433
  height: "min(82vh, 780px)",
434
434
  destroyOnClose: !1,
@@ -447,7 +447,7 @@ function bn({
447
447
  {
448
448
  className: "wandox-console-chat__drawer-tabs",
449
449
  "aria-label": "场景来源",
450
- children: _n.map((u) => /* @__PURE__ */ e.jsx(
450
+ children: fn.map((u) => /* @__PURE__ */ e.jsx(
451
451
  "button",
452
452
  {
453
453
  type: "button",
@@ -464,7 +464,7 @@ function bn({
464
464
  {
465
465
  type: "button",
466
466
  className: "wandox-console-chat__drawer-close",
467
- onClick: $,
467
+ onClick: P,
468
468
  "aria-label": "关闭",
469
469
  children: /* @__PURE__ */ e.jsx($s, {})
470
470
  }
@@ -480,7 +480,7 @@ function bn({
480
480
  {
481
481
  type: "button",
482
482
  className: `wandox-console-chat__drawer-cat${S ? " wandox-console-chat__drawer-cat--active" : ""}`,
483
- onClick: () => P(u.key),
483
+ onClick: () => M(u.key),
484
484
  children: [
485
485
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__drawer-cat-name", children: u.name }),
486
486
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__drawer-cat-count", children: u.count })
@@ -496,7 +496,7 @@ function bn({
496
496
  {
497
497
  allowClear: !0,
498
498
  prefix: /* @__PURE__ */ e.jsx(Be, {}),
499
- placeholder: fn(t),
499
+ placeholder: bn(t),
500
500
  value: d,
501
501
  onChange: (u) => g(u.target.value)
502
502
  }
@@ -561,12 +561,12 @@ function bn({
561
561
  }
562
562
  );
563
563
  }
564
- function yn(n) {
564
+ function gn(n) {
565
565
  if (Array.isArray(n)) return n;
566
566
  const t = n;
567
567
  return Array.isArray(t == null ? void 0 : t.user_playbooks) ? t.user_playbooks : [];
568
568
  }
569
- function gn({
569
+ function wn({
570
570
  agentId: n,
571
571
  agentName: t,
572
572
  playbookId: l,
@@ -577,31 +577,31 @@ function gn({
577
577
  useMapCategories: h = [],
578
578
  playbooks: y = [],
579
579
  userPlaybooks: v = [],
580
- agents: $ = [],
580
+ agents: P = [],
581
581
  onChangeAgent: f,
582
- onBack: P,
582
+ onBack: M,
583
583
  onSelectScene: g,
584
584
  onReady: C
585
585
  }) {
586
- const w = localStorage.getItem("sso_token") || "", m = localStorage.getItem("sso_domain") || "maiduo", u = localStorage.getItem("sso_company") || "", S = a.useRef(null), Z = a.useRef(!1), [N, M] = a.useState(!1), [U, se] = a.useState(""), [z, T] = a.useState("map"), [D, ne] = a.useState(Ke), [F, ee] = a.useState(null), de = a.useRef(null);
586
+ const w = localStorage.getItem("sso_token") || "", m = localStorage.getItem("sso_domain") || "maiduo", u = localStorage.getItem("sso_company") || "", S = a.useRef(null), Z = a.useRef(!1), [N, T] = a.useState(!1), [K, se] = a.useState(""), [z, F] = a.useState("map"), [D, ne] = a.useState(Ke), [V, ee] = a.useState(null), de = a.useRef(null);
587
587
  a.useEffect(() => {
588
- if (!F || N) return;
588
+ if (!V || N) return;
589
589
  const s = setTimeout(() => {
590
590
  var o;
591
591
  (o = de.current) == null || o.focus();
592
592
  }, 120);
593
593
  return () => clearTimeout(s);
594
- }, [F, N]);
595
- const [k, J] = a.useState([]), [q, E] = a.useState({}), ye = Ps(
594
+ }, [V, N]);
595
+ const [k, J] = a.useState([]), [q, I] = a.useState({}), ye = Ps(
596
596
  k,
597
597
  q,
598
- E
598
+ I
599
599
  ), H = a.useMemo(
600
600
  () => Re(k, q).filter(
601
601
  (s) => s.required && Qe(q[s.name])
602
602
  ),
603
603
  [k, q]
604
- ), [te, re] = a.useState("chat"), [he, ge] = a.useState([]), [G, ce] = a.useState(null), [R, fe] = a.useState("results"), [ve, Ne] = a.useState(!1), [x, W] = a.useState([]);
604
+ ), [te, re] = a.useState("chat"), [he, ge] = a.useState([]), [G, ce] = a.useState(null), [R, fe] = a.useState("results"), [ve, Ne] = a.useState(!1), [p, W] = a.useState([]);
605
605
  a.useEffect(() => {
606
606
  C == null || C({
607
607
  showInspectionResults: (s) => {
@@ -609,9 +609,9 @@ function gn({
609
609
  }
610
610
  });
611
611
  }, [C]);
612
- const [ie, Le] = a.useState([]), [we, ue] = a.useState(!1), [oe, c] = a.useState(void 0), [O, V] = a.useState([]), [I, Y] = a.useState(
612
+ const [ie, Le] = a.useState([]), [we, ue] = a.useState(!1), [oe, c] = a.useState(void 0), [O, U] = a.useState([]), [$, Y] = a.useState(
613
613
  "map"
614
- ), [je, me] = a.useState(void 0), Q = a.useRef(0), K = a.useRef(0), [xe, Ae] = a.useState(
614
+ ), [je, me] = a.useState(void 0), Q = a.useRef(0), B = a.useRef(0), [xe, Ae] = a.useState(
615
615
  bs
616
616
  ), [le, Ee] = a.useState({}), [Ie, ns] = a.useState(
617
617
  () => /* @__PURE__ */ new Set()
@@ -629,11 +629,11 @@ function gn({
629
629
  []
630
630
  ), Ce = a.useMemo(() => {
631
631
  const s = v.map(
632
- (p) => De(p, vs, "我的场景")
632
+ (x) => De(x, vs, "我的场景")
633
633
  ), o = /* @__PURE__ */ new Map();
634
- for (const p of y) {
635
- const L = p.category_name || p.category || p.type || "默认场景", A = `${pn}${L}`, _e = o.get(A) || [];
636
- _e.push(De(p, A, L)), o.set(A, _e);
634
+ for (const x of y) {
635
+ const L = x.category_name || x.category || x.type || "默认场景", E = `${_n}${L}`, _e = o.get(E) || [];
636
+ _e.push(De(x, E, L)), o.set(E, _e);
637
637
  }
638
638
  const i = Array.from(o.values()).flat(), j = [
639
639
  {
@@ -642,30 +642,30 @@ function gn({
642
642
  count: i.length,
643
643
  cards: i
644
644
  },
645
- ...Array.from(o, ([p, L]) => {
646
- var A;
645
+ ...Array.from(o, ([x, L]) => {
646
+ var E;
647
647
  return {
648
- key: p,
649
- name: ((A = L[0]) == null ? void 0 : A.reason) || "默认场景",
648
+ key: x,
649
+ name: ((E = L[0]) == null ? void 0 : E.reason) || "默认场景",
650
650
  count: L.length,
651
651
  cards: L
652
652
  };
653
653
  })
654
- ], B = [
654
+ ], A = [
655
655
  {
656
656
  key: Ke,
657
657
  name: t || "全部场景",
658
658
  count: _.length,
659
659
  cards: _
660
660
  },
661
- ...h.map((p) => ({
662
- key: p.key,
663
- name: p.name,
664
- count: p.count,
665
- cards: _.filter((L) => L.categoryKey === p.key)
661
+ ...h.map((x) => ({
662
+ key: x.key,
663
+ name: x.name,
664
+ count: x.count,
665
+ cards: _.filter((L) => L.categoryKey === x.key)
666
666
  }))
667
667
  ];
668
- return { allCategories: j, mapCategories: B, myCards: s };
668
+ return { allCategories: j, mapCategories: A, myCards: s };
669
669
  }, [
670
670
  t,
671
671
  y,
@@ -728,9 +728,9 @@ function gn({
728
728
  label: o.name,
729
729
  playbooks: _.filter((i) => i.categoryKey === o.key).map((i) => s.get(i.playbook_id)).filter((i) => !!i)
730
730
  }));
731
- }, [_, h, $e]), Ks = I === "map" ? Us : Vs, Bs = a.useMemo(() => {
731
+ }, [_, h, $e]), Ks = $ === "map" ? Us : Vs, Bs = a.useMemo(() => {
732
732
  var i;
733
- const s = U.trim().toLowerCase(), o = z === "my" ? Ce.myCards : ((i = qe.find((j) => j.key === D)) == null ? void 0 : i.cards) || [];
733
+ const s = K.trim().toLowerCase(), o = z === "my" ? Ce.myCards : ((i = qe.find((j) => j.key === D)) == null ? void 0 : i.cards) || [];
734
734
  return s ? o.filter(
735
735
  (j) => j.title.toLowerCase().includes(s) || j.desc.toLowerCase().includes(s)
736
736
  ) : o;
@@ -739,14 +739,14 @@ function gn({
739
739
  D,
740
740
  Ce.myCards,
741
741
  z,
742
- U
742
+ K
743
743
  ]), Hs = a.useCallback((s) => {
744
744
  const o = Array.isArray(s) ? s : [];
745
745
  Le(o), ue(o.length > 0);
746
746
  }, []), ke = a.useMemo(
747
- () => $.find((s) => s.id === n),
748
- [$, n]
749
- ), { messageData: Gs, executing: ae, stopping: Ws, actions: Ys } = Va({
747
+ () => P.find((s) => s.id === n),
748
+ [P, n]
749
+ ), { messageData: Gs, executing: ae, stopping: Ws, actions: Ys } = Ua({
750
750
  activeAgent: n,
751
751
  ssoToken: w,
752
752
  ssoDomain: m,
@@ -769,7 +769,7 @@ function gn({
769
769
  if (pe[s].role === "assistant") return pe[s].id;
770
770
  }, [pe]), Te = a.useCallback(async () => {
771
771
  if (!n || !w) {
772
- V([]);
772
+ U([]);
773
773
  return;
774
774
  }
775
775
  try {
@@ -777,7 +777,7 @@ function gn({
777
777
  agent_id: n,
778
778
  limit: 8
779
779
  });
780
- V(Array.isArray(s.data) ? s.data : []);
780
+ U(Array.isArray(s.data) ? s.data : []);
781
781
  } catch {
782
782
  }
783
783
  }, [n, w]);
@@ -841,18 +841,18 @@ function gn({
841
841
  limit: 50
842
842
  });
843
843
  if (o) return;
844
- const B = (Array.isArray(i == null ? void 0 : i.data) ? i.data : []).map(
845
- (p, L) => ({
846
- id: p.id || p.execute_id || `record_${L}`,
847
- action_name: p.action_name || p.display_name || "未知动作",
848
- status: p.status || "pending",
849
- created_at: p.created_at || "",
850
- completed_at: p.completed_at,
851
- output_data: p.output_data,
852
- error: p.error
844
+ const A = (Array.isArray(i == null ? void 0 : i.data) ? i.data : []).map(
845
+ (x, L) => ({
846
+ id: x.id || x.execute_id || `record_${L}`,
847
+ action_name: x.action_name || x.display_name || "未知动作",
848
+ status: x.status || "pending",
849
+ created_at: x.created_at || "",
850
+ completed_at: x.completed_at,
851
+ output_data: x.output_data,
852
+ error: x.error
853
853
  })
854
854
  );
855
- W(B);
855
+ W(A);
856
856
  } catch {
857
857
  W([]);
858
858
  } finally {
@@ -868,15 +868,15 @@ function gn({
868
868
  },
869
869
  [Pe]
870
870
  ), Js = a.useCallback((s) => {
871
- T(s), ne(
871
+ F(s), ne(
872
872
  s === "all" ? Ns : s === "map" ? Ke : vs
873
- ), se(""), ee(null), J([]), E({});
873
+ ), se(""), ee(null), J([]), I({});
874
874
  }, []), Xs = a.useCallback(() => {
875
- M(!1), ee(null), J([]), E({});
875
+ T(!1), ee(null), J([]), I({});
876
876
  }, []), ea = a.useCallback((s) => {
877
877
  ee(s);
878
878
  const o = He(s.input_fields || []);
879
- J(o), E(Ze(o));
879
+ J(o), I(Ze(o));
880
880
  }, []), Oe = a.useCallback((s) => {
881
881
  ee({
882
882
  key: s.playbook_id,
@@ -889,7 +889,7 @@ function gn({
889
889
  input_fields: s.input_fields || []
890
890
  });
891
891
  const o = He(s.input_fields || []);
892
- J(o), E(Ze(o));
892
+ J(o), I(Ze(o));
893
893
  }, []), ze = a.useCallback(
894
894
  async (s) => {
895
895
  if (!ae) {
@@ -910,28 +910,30 @@ function gn({
910
910
  },
911
911
  [ae, be, Oe]
912
912
  ), us = a.useCallback(async () => {
913
- if (!F || ae) return;
913
+ if (!V || ae) return;
914
914
  const o = Re(k, q).filter(
915
- (i) => i.required && Qe(q[i.name])
915
+ (A) => A.required && Qe(q[A.name])
916
916
  );
917
917
  if (o.length > 0) {
918
918
  X.warning(`请先填写 ${o.length} 项必填参数`);
919
919
  return;
920
920
  }
921
- M(!1), ue(!1);
921
+ T(!1), ue(!1);
922
+ const i = V, j = q;
923
+ ee(null), J([]), I({});
922
924
  try {
923
- const i = F.title || (d == null ? void 0 : d.trim()) || "执行剧本";
925
+ const A = i.title || (d == null ? void 0 : d.trim()) || "执行剧本";
924
926
  await be({
925
- message: i,
926
- playbook_id: F.playbook_id,
927
- playbook_params: q
928
- }), g == null || g(F), ee(null), J([]), E({});
929
- } catch (i) {
930
- const j = i instanceof Error ? i.message : "执行失败";
931
- X.error(j);
927
+ message: A,
928
+ playbook_id: i.playbook_id,
929
+ playbook_params: j
930
+ }), g == null || g(i);
931
+ } catch (A) {
932
+ const x = A instanceof Error ? A.message : "执行失败";
933
+ X.error(x);
932
934
  }
933
935
  }, [
934
- F,
936
+ V,
935
937
  k,
936
938
  q,
937
939
  ae,
@@ -939,12 +941,12 @@ function gn({
939
941
  d,
940
942
  g
941
943
  ]), sa = a.useCallback((s) => {
942
- K.current += 1, me({
944
+ B.current += 1, me({
943
945
  requestId: ++Q.current,
944
946
  playbooks: s
945
947
  });
946
948
  }, []), aa = a.useCallback(() => {
947
- const s = ++K.current;
949
+ const s = ++B.current;
948
950
  me({
949
951
  requestId: ++Q.current,
950
952
  playbooks: [],
@@ -957,13 +959,13 @@ function gn({
957
959
  const { data: o } = await Es({
958
960
  agent_id: n
959
961
  });
960
- if (s !== K.current) return;
962
+ if (s !== B.current) return;
961
963
  me({
962
964
  requestId: ++Q.current,
963
- playbooks: yn(o)
965
+ playbooks: gn(o)
964
966
  });
965
967
  } catch {
966
- if (s !== K.current) return;
968
+ if (s !== B.current) return;
967
969
  X.error("我的场景加载失败"), me({
968
970
  requestId: ++Q.current,
969
971
  playbooks: []
@@ -979,13 +981,13 @@ function gn({
979
981
  Ge,
980
982
  {
981
983
  menu: {
982
- selectedKeys: [I],
984
+ selectedKeys: [$],
983
985
  items: [
984
986
  { key: "all", label: "全部场景" },
985
987
  { key: "map", label: "使用地图" }
986
988
  ],
987
989
  onClick: ({ key: s }) => {
988
- K.current += 1, Y(s);
990
+ B.current += 1, Y(s);
989
991
  }
990
992
  },
991
993
  trigger: ["click"],
@@ -997,7 +999,7 @@ function gn({
997
999
  className: "wandox-console-chat__scene-source",
998
1000
  disabled: ae,
999
1001
  children: [
1000
- /* @__PURE__ */ e.jsx("span", { children: I === "map" ? "使用地图" : "全部场景" }),
1002
+ /* @__PURE__ */ e.jsx("span", { children: $ === "map" ? "使用地图" : "全部场景" }),
1001
1003
  /* @__PURE__ */ e.jsx(
1002
1004
  "svg",
1003
1005
  {
@@ -1029,17 +1031,17 @@ function gn({
1029
1031
  s.key
1030
1032
  )) })
1031
1033
  ] }), ms = a.useCallback(async (s) => {
1032
- var p;
1033
- const o = (p = s.meta_content) != null && p.playbook_id ? "数据报表" : "对话内容", i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
1034
+ var x;
1035
+ const o = (x = s.meta_content) != null && x.playbook_id ? "数据报表" : "对话内容", i = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
1034
1036
  if (fa(s)) {
1035
1037
  const L = ba(s);
1036
1038
  if (!L) {
1037
1039
  X.warning("没有可导出的表格数据");
1038
1040
  return;
1039
1041
  }
1040
- const A = L.fields.map((Ve) => Ve.label).join(","), _e = L.rows.map(
1042
+ const E = L.fields.map((Ve) => Ve.label).join(","), _e = L.rows.map(
1041
1043
  (Ve) => L.fields.map((ra) => ya(Ve[ra.name])).join(",")
1042
- ), la = `\uFEFF${[A, ..._e].join(`
1044
+ ), la = `\uFEFF${[E, ..._e].join(`
1043
1045
  `)}`;
1044
1046
  ga(
1045
1047
  new Blob([la], { type: "text/csv;charset=utf-8;" }),
@@ -1054,27 +1056,27 @@ function gn({
1054
1056
  X.warning("无法定位消息内容");
1055
1057
  return;
1056
1058
  }
1057
- const B = window.open("", "_blank");
1058
- if (!B) {
1059
+ const A = window.open("", "_blank");
1060
+ if (!A) {
1059
1061
  X.warning("请允许弹出窗口");
1060
1062
  return;
1061
1063
  }
1062
- B.document.write(
1064
+ A.document.write(
1063
1065
  `<!DOCTYPE html><html><head><meta charset="utf-8"><title>${o}_${i}</title><style>body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;padding:20px;color:#333}table{border-collapse:collapse;width:100%}th,td{border:1px solid #d9d9d9;padding:6px 8px;font-size:13px;text-align:left}th{background:#fafafa}img{max-width:100%}pre{white-space:pre-wrap;word-break:break-all;font-size:12px;background:#f5f5f5;padding:12px;border-radius:4px}button,.ant-btn,.ant-tooltip-open{display:none!important}</style></head><body>${j.innerHTML}</body></html>`
1064
- ), B.document.close(), B.onload = () => {
1065
- B.print(), B.close();
1066
+ ), A.document.close(), A.onload = () => {
1067
+ A.print(), A.close();
1066
1068
  };
1067
1069
  }, []), hs = a.useCallback(
1068
1070
  (s) => {
1069
- var B, p, L;
1071
+ var A, x, L;
1070
1072
  const o = pe.find(
1071
- (A) => A.message_id === s || A.id === s
1073
+ (E) => E.message_id === s || E.id === s
1072
1074
  ), i = wa(o);
1073
1075
  if (!i) {
1074
1076
  X.warning("缺少剧本 ID,无法配置定时触发");
1075
1077
  return;
1076
1078
  }
1077
- const j = ((p = (B = o == null ? void 0 : o.actions) == null ? void 0 : B.find((A) => A.playbook_id === i)) == null ? void 0 : p.display_name) || ((L = o == null ? void 0 : o.meta_content) == null ? void 0 : L.playbook_name) || i;
1079
+ const j = ((x = (A = o == null ? void 0 : o.actions) == null ? void 0 : A.find((E) => E.playbook_id === i)) == null ? void 0 : x.display_name) || ((L = o == null ? void 0 : o.meta_content) == null ? void 0 : L.playbook_name) || i;
1078
1080
  Ae({
1079
1081
  visible: !0,
1080
1082
  messageId: s,
@@ -1097,37 +1099,37 @@ function gn({
1097
1099
  var L;
1098
1100
  const j = s.message_id;
1099
1101
  if (!j || Ie.has(j)) return !1;
1100
- const B = Fe(s), p = Ia(
1101
- B,
1102
+ const A = Fe(s), x = Ia(
1103
+ A,
1102
1104
  o
1103
1105
  );
1104
- Ee((A) => ({
1105
- ...A,
1106
- [j]: p
1107
- })), ns((A) => new Set(A).add(j));
1106
+ Ee((E) => ({
1107
+ ...E,
1108
+ [j]: x
1109
+ })), ns((E) => new Set(E).add(j));
1108
1110
  try {
1109
- const A = await ka(
1111
+ const E = await ka(
1110
1112
  { domain: m },
1111
1113
  {
1112
1114
  message_id: j,
1113
- rating: p,
1115
+ rating: x,
1114
1116
  tags: (L = i == null ? void 0 : i.tags) != null && L.length ? i.tags : void 0,
1115
1117
  text: (i == null ? void 0 : i.text) || void 0
1116
1118
  }
1117
1119
  );
1118
- if ((A == null ? void 0 : A.success) === !1)
1119
- throw new Error(A.message || "反馈提交失败");
1120
+ if ((E == null ? void 0 : E.success) === !1)
1121
+ throw new Error(E.message || "反馈提交失败");
1120
1122
  return !0;
1121
- } catch (A) {
1123
+ } catch (E) {
1122
1124
  return Ee((_e) => ({
1123
1125
  ..._e,
1124
- [j]: B
1126
+ [j]: A
1125
1127
  })), X.error(
1126
- A instanceof Error ? A.message : "反馈提交失败,请稍后重试"
1128
+ E instanceof Error ? E.message : "反馈提交失败,请稍后重试"
1127
1129
  ), !1;
1128
1130
  } finally {
1129
- ns((A) => {
1130
- const _e = new Set(A);
1131
+ ns((E) => {
1132
+ const _e = new Set(E);
1131
1133
  return _e.delete(j), _e;
1132
1134
  });
1133
1135
  }
@@ -1149,7 +1151,7 @@ function gn({
1149
1151
  }, []), fs = a.useCallback(
1150
1152
  (s, o) => {
1151
1153
  if (s.role !== "assistant" || s.execution_status === "executing") return null;
1152
- const j = o && s.id === oe && ie.length > 0, B = we ? "隐藏推荐" : j ? `显示推荐(${ie.length})` : "推荐";
1154
+ const j = o && s.id === oe && ie.length > 0, A = we ? "隐藏推荐" : j ? `显示推荐(${ie.length})` : "推荐";
1153
1155
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1154
1156
  /* @__PURE__ */ e.jsx(
1155
1157
  va,
@@ -1164,16 +1166,16 @@ function gn({
1164
1166
  feedbackRating: Fe(s),
1165
1167
  feedbackPending: !!s.message_id && Ie.has(s.message_id),
1166
1168
  onFeedback: xs,
1167
- extraActions: j ? /* @__PURE__ */ e.jsx(Is, { title: B, children: /* @__PURE__ */ e.jsxs(
1169
+ extraActions: j ? /* @__PURE__ */ e.jsx(Is, { title: A, children: /* @__PURE__ */ e.jsxs(
1168
1170
  "button",
1169
1171
  {
1170
1172
  type: "button",
1171
1173
  className: `wandox-console-chat__toolbar-toggle${we ? " is-active" : ""}`,
1172
- "aria-label": B,
1174
+ "aria-label": A,
1173
1175
  "aria-expanded": we,
1174
1176
  onClick: _s,
1175
1177
  children: [
1176
- /* @__PURE__ */ e.jsx(Ja, {}),
1178
+ /* @__PURE__ */ e.jsx(Xa, {}),
1177
1179
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__toolbar-toggle-count", children: ie.length })
1178
1180
  ]
1179
1181
  }
@@ -1185,7 +1187,7 @@ function gn({
1185
1187
  {
1186
1188
  className: "wandox-console-chat__recommendations",
1187
1189
  "aria-label": "推荐剧本",
1188
- children: ie.map((p, L) => /* @__PURE__ */ e.jsx(
1190
+ children: ie.map((x, L) => /* @__PURE__ */ e.jsx(
1189
1191
  "li",
1190
1192
  {
1191
1193
  className: "wandox-console-chat__recommendations-item",
@@ -1196,17 +1198,17 @@ function gn({
1196
1198
  className: "wandox-console-chat__recommendations-pill",
1197
1199
  disabled: ae,
1198
1200
  onClick: () => {
1199
- ze(p);
1201
+ ze(x);
1200
1202
  },
1201
- title: p.description || p.name,
1203
+ title: x.description || x.name,
1202
1204
  children: [
1203
- /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-label", children: p.name }),
1205
+ /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-label", children: x.name }),
1204
1206
  /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__recommendations-pill-arrow", children: /* @__PURE__ */ e.jsx(Ye, {}) })
1205
1207
  ]
1206
1208
  }
1207
1209
  )
1208
1210
  },
1209
- `${p.playbook_id || p.name}-${L}`
1211
+ `${x.playbook_id || x.name}-${L}`
1210
1212
  ))
1211
1213
  }
1212
1214
  )
@@ -1281,7 +1283,7 @@ function gn({
1281
1283
  {
1282
1284
  type: "button",
1283
1285
  className: "wandox-console-chat__back",
1284
- onClick: P,
1286
+ onClick: M,
1285
1287
  children: [
1286
1288
  /* @__PURE__ */ e.jsx(Fs, {}),
1287
1289
  /* @__PURE__ */ e.jsx("span", { children: "返回" })
@@ -1292,7 +1294,7 @@ function gn({
1292
1294
  Ge,
1293
1295
  {
1294
1296
  menu: {
1295
- items: $.map((s) => ({
1297
+ items: P.map((s) => ({
1296
1298
  key: s.id,
1297
1299
  disabled: s.id === n,
1298
1300
  label: /* @__PURE__ */ e.jsxs("span", { className: "wandox-console-agent-menu-item", children: [
@@ -1384,7 +1386,7 @@ function gn({
1384
1386
  onClick: () => fe("history"),
1385
1387
  children: [
1386
1388
  "执行记录",
1387
- R === "history" && G && x.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-tab-badge", children: x.length })
1389
+ R === "history" && G && p.length > 0 && /* @__PURE__ */ e.jsx("span", { className: "wandox-console-chat__robot-tab-badge", children: p.length })
1388
1390
  ]
1389
1391
  }
1390
1392
  )
@@ -1396,7 +1398,7 @@ function gn({
1396
1398
  ] }) : G ? ve ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat__robot-loading", children: [
1397
1399
  /* @__PURE__ */ e.jsx(Ts, { size: "small" }),
1398
1400
  /* @__PURE__ */ e.jsx("span", { children: "加载中..." })
1399
- ] }) : x.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: "暂无执行记录" }) }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-history", children: x.map((s) => /* @__PURE__ */ e.jsxs(
1401
+ ] }) : p.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-title", children: "暂无执行记录" }) }) : /* @__PURE__ */ e.jsx("ul", { className: "wandox-console-chat__robot-history", children: p.map((s) => /* @__PURE__ */ e.jsxs(
1400
1402
  "li",
1401
1403
  {
1402
1404
  className: `wandox-console-chat__robot-history-item wandox-console-chat__robot-history-item--${s.status}`,
@@ -1434,7 +1436,7 @@ function gn({
1434
1436
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__robot-empty-desc", children: "在上方选择机器人以查看其执行记录" })
1435
1437
  ] }) })
1436
1438
  ] }),
1437
- te === "chat" && O.length > 0 && !(F && !N) && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent-bar", children: O.map((s, o) => /* @__PURE__ */ e.jsx(
1439
+ te === "chat" && O.length > 0 && !(V && !N) && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent", children: /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__recent-bar", children: O.map((s, o) => /* @__PURE__ */ e.jsx(
1438
1440
  "button",
1439
1441
  {
1440
1442
  type: "button",
@@ -1448,11 +1450,11 @@ function gn({
1448
1450
  },
1449
1451
  `${s.playbook_id || s.name}-${o}`
1450
1452
  )) }) }),
1451
- te === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: F && !N ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-input-playbook wandox-console-prompt", children: [
1453
+ te === "chat" && /* @__PURE__ */ e.jsx("div", { className: "wandox-console-chat__input", children: V && !N ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-input-playbook wandox-console-prompt", children: [
1452
1454
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-prompt__head", children: [
1453
1455
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-scenechoice", children: [
1454
1456
  /* @__PURE__ */ e.jsx("span", { children: "已选择剧本" }),
1455
- /* @__PURE__ */ e.jsx("strong", { children: F.title })
1457
+ /* @__PURE__ */ e.jsx("strong", { children: V.title })
1456
1458
  ] }),
1457
1459
  /* @__PURE__ */ e.jsx(
1458
1460
  "button",
@@ -1460,7 +1462,7 @@ function gn({
1460
1462
  type: "button",
1461
1463
  className: "wandox-console-changescene",
1462
1464
  onClick: () => {
1463
- ee(null), J([]), E({});
1465
+ ee(null), J([]), I({});
1464
1466
  },
1465
1467
  children: "重新选择"
1466
1468
  }
@@ -1472,7 +1474,7 @@ function gn({
1472
1474
  ref: de,
1473
1475
  tabIndex: -1,
1474
1476
  className: "wandox-console-taskarea wandox-console-taskarea--static",
1475
- children: F.desc || F.title
1477
+ children: V.desc || V.title
1476
1478
  }
1477
1479
  ),
1478
1480
  k.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
@@ -1496,7 +1498,7 @@ function gn({
1496
1498
  uploading: !1,
1497
1499
  fileNameMap: {},
1498
1500
  getOptionState: ye.getFieldState,
1499
- onChange: (o, i) => E((j) => ({
1501
+ onChange: (o, i) => I((j) => ({
1500
1502
  ...j,
1501
1503
  [o]: i
1502
1504
  }))
@@ -1511,7 +1513,7 @@ function gn({
1511
1513
  {
1512
1514
  type: "button",
1513
1515
  className: "wandox-console-start",
1514
- disabled: !F || ae || H.length > 0,
1516
+ disabled: !V || ae || H.length > 0,
1515
1517
  onClick: us,
1516
1518
  children: [
1517
1519
  "开始执行",
@@ -1537,21 +1539,21 @@ function gn({
1537
1539
  mentionTriggerChar: "/",
1538
1540
  mentionListRequest: je,
1539
1541
  onMentionListRequestHandled: na,
1540
- autoFocusInput: !F,
1542
+ autoFocusInput: !V,
1541
1543
  playbooks: zs,
1542
1544
  onRequestPlaybookParams: Oe
1543
1545
  }
1544
1546
  ) }),
1545
1547
  /* @__PURE__ */ e.jsx(
1546
- bn,
1548
+ yn,
1547
1549
  {
1548
1550
  open: N,
1549
1551
  source: z,
1550
1552
  categories: qe,
1551
1553
  categoryKey: D,
1552
- search: U,
1554
+ search: K,
1553
1555
  cards: Bs,
1554
- selectedScene: F,
1556
+ selectedScene: V,
1555
1557
  fields: k,
1556
1558
  values: q,
1557
1559
  executing: ae,
@@ -1560,7 +1562,7 @@ function gn({
1560
1562
  onCategoryChange: ne,
1561
1563
  onSearchChange: se,
1562
1564
  onSelectScene: ea,
1563
- onValueChange: (s, o) => E((i) => ({
1565
+ onValueChange: (s, o) => I((i) => ({
1564
1566
  ...i,
1565
1567
  [s]: o
1566
1568
  })),
@@ -1580,8 +1582,8 @@ function gn({
1580
1582
  ] })
1581
1583
  );
1582
1584
  }
1583
- const { TextArea: wn } = ss;
1584
- function jn({
1585
+ const { TextArea: jn } = ss;
1586
+ function kn({
1585
1587
  useMapCards: n,
1586
1588
  useMapCategories: t,
1587
1589
  playbooks: l = [],
@@ -1592,12 +1594,12 @@ function jn({
1592
1594
  onRetry: h,
1593
1595
  onStartAnalysis: y,
1594
1596
  agents: v,
1595
- selectedAgentId: $,
1597
+ selectedAgentId: P,
1596
1598
  onAgentSelect: f,
1597
- onOpenAgentChat: P
1599
+ onOpenAgentChat: M
1598
1600
  }) {
1599
- const [g, C] = a.useState(""), [w, m] = a.useState(""), u = a.useRef(null), [S, Z] = a.useState([]), [N, M] = a.useState(!1), [U, se] = a.useState(""), z = a.useRef(0), [T, D] = a.useState({}), [ne, F] = a.useState({}), [ee, de] = a.useState({}), [k, J] = a.useState([]), [q, E] = a.useState(!1), ye = a.useRef(null), H = a.useMemo(
1600
- () => n.length > 0 ? n : dn(l),
1601
+ const [g, C] = a.useState(""), [w, m] = a.useState(""), u = a.useRef(null), [S, Z] = a.useState([]), [N, T] = a.useState(!1), [K, se] = a.useState(""), z = a.useRef(0), [F, D] = a.useState({}), [ne, V] = a.useState({}), [ee, de] = a.useState({}), [k, J] = a.useState([]), [q, I] = a.useState(!1), ye = a.useRef(null), H = a.useMemo(
1602
+ () => n.length > 0 ? n : un(l),
1601
1603
  [n, l]
1602
1604
  ), te = a.useMemo(() => r ? H.filter((c) => c.categoryKey === r) : H, [H, r]), re = a.useMemo(() => {
1603
1605
  const c = w.trim().toLowerCase();
@@ -1606,9 +1608,9 @@ function jn({
1606
1608
  ) : te;
1607
1609
  }, [te, w]), he = a.useMemo(() => re.slice(0, 6), [re]), ge = b || _ && H.length === 0 || re.length > 0, [G, ce] = a.useState("");
1608
1610
  a.useEffect(() => {
1609
- z.current += 1, ce(""), C(""), Z([]), D({}), M(!1), se("");
1611
+ z.current += 1, ce(""), C(""), Z([]), D({}), T(!1), se("");
1610
1612
  }, [r]), a.useEffect(() => {
1611
- G && !H.some((c) => c.playbook_id === G) && (z.current += 1, ce(""), C(""), Z([]), D({}), M(!1), se(""));
1613
+ G && !H.some((c) => c.playbook_id === G) && (z.current += 1, ce(""), C(""), Z([]), D({}), T(!1), se(""));
1612
1614
  }, [G, H]);
1613
1615
  const R = a.useMemo(
1614
1616
  () => H.find((c) => c.playbook_id === G) ?? null,
@@ -1617,8 +1619,8 @@ function jn({
1617
1619
  a.useEffect(() => {
1618
1620
  if (b || R) return;
1619
1621
  const c = window.setTimeout(() => {
1620
- var V, I;
1621
- const O = (I = (V = u.current) == null ? void 0 : V.resizableTextArea) == null ? void 0 : I.textArea;
1622
+ var U, $;
1623
+ const O = ($ = (U = u.current) == null ? void 0 : U.resizableTextArea) == null ? void 0 : $.textArea;
1622
1624
  O == null || O.focus();
1623
1625
  }, 0);
1624
1626
  return () => window.clearTimeout(c);
@@ -1629,50 +1631,50 @@ function jn({
1629
1631
  X.error("剧本缺少 playbook_id");
1630
1632
  return;
1631
1633
  }
1632
- const V = ++z.current;
1633
- ce(O), Z([]), D({}), F({}), de({}), M(!0), se("");
1634
+ const U = ++z.current;
1635
+ ce(O), Z([]), D({}), V({}), de({}), T(!0), se("");
1634
1636
  try {
1635
- const { data: I } = await $a({
1637
+ const { data: $ } = await $a({
1636
1638
  playbook_id: O
1637
1639
  });
1638
- if (V !== z.current) return;
1639
- if (!I || typeof I != "object" || Array.isArray(I))
1640
+ if (U !== z.current) return;
1641
+ if (!$ || typeof $ != "object" || Array.isArray($))
1640
1642
  throw new Error("剧本详情为空");
1641
1643
  const Y = He(
1642
- Pa(I)
1644
+ Pa($)
1643
1645
  );
1644
1646
  Z(Y), D(Ze(Y));
1645
- } catch (I) {
1646
- if (V !== z.current) return;
1647
- const Y = I instanceof Error ? I.message : "剧本参数加载失败";
1647
+ } catch ($) {
1648
+ if (U !== z.current) return;
1649
+ const Y = $ instanceof Error ? $.message : "剧本参数加载失败";
1648
1650
  se(Y), X.error("剧本参数加载失败,请稍后重试");
1649
1651
  } finally {
1650
- V === z.current && M(!1);
1652
+ U === z.current && T(!1);
1651
1653
  }
1652
1654
  }, []), ve = () => {
1653
- z.current += 1, ce(""), C(""), Z([]), D({}), M(!1), se("");
1654
- }, Ne = Ps(S, T, D), x = a.useMemo(
1655
- () => Re(S, T),
1656
- [S, T]
1655
+ z.current += 1, ce(""), C(""), Z([]), D({}), T(!1), se("");
1656
+ }, Ne = Ps(S, F, D), p = a.useMemo(
1657
+ () => Re(S, F),
1658
+ [S, F]
1657
1659
  ), W = a.useCallback((c, O) => {
1658
- D((V) => ({ ...V, [c]: O }));
1660
+ D((U) => ({ ...U, [c]: O }));
1659
1661
  }, []), ie = a.useCallback(
1660
- (c, O) => async ({ file: V, onSuccess: I, onError: Y }) => {
1662
+ (c, O) => async ({ file: U, onSuccess: $, onError: Y }) => {
1661
1663
  var je, me;
1662
- F((Q) => ({ ...Q, [c]: !0 }));
1664
+ V((Q) => ({ ...Q, [c]: !0 }));
1663
1665
  try {
1664
- const Q = V, K = await ys(Q), xe = (je = K == null ? void 0 : K.data) == null ? void 0 : je.url, Ae = ((me = K == null ? void 0 : K.data) == null ? void 0 : me.name) || Q.name;
1666
+ const Q = U, B = await ys(Q), xe = (je = B == null ? void 0 : B.data) == null ? void 0 : je.url, Ae = ((me = B == null ? void 0 : B.data) == null ? void 0 : me.name) || Q.name;
1665
1667
  if (!xe) throw new Error("上传结果缺少文件地址");
1666
1668
  de((le) => ({ ...le, [xe]: Ae })), D((le) => {
1667
1669
  if (O <= 1) return { ...le, [c]: xe };
1668
1670
  const Ee = Array.isArray(le[c]) ? le[c] : le[c] ? [le[c]] : [];
1669
1671
  return { ...le, [c]: [...Ee, xe] };
1670
- }), I == null || I(K), X.success("上传成功");
1672
+ }), $ == null || $(B), X.success("上传成功");
1671
1673
  } catch (Q) {
1672
- const K = Q instanceof Error ? Q : new Error("上传失败");
1673
- Y == null || Y(K), X.error(K.message);
1674
+ const B = Q instanceof Error ? Q : new Error("上传失败");
1675
+ Y == null || Y(B), X.error(B.message);
1674
1676
  } finally {
1675
- F((Q) => ({ ...Q, [c]: !1 }));
1677
+ V((Q) => ({ ...Q, [c]: !1 }));
1676
1678
  }
1677
1679
  },
1678
1680
  []
@@ -1680,40 +1682,40 @@ function jn({
1680
1682
  async (c) => {
1681
1683
  const O = Array.from(c.target.files ?? []);
1682
1684
  if (c.target.value = "", O.length !== 0) {
1683
- E(!0);
1685
+ I(!0);
1684
1686
  try {
1685
- const V = await Promise.all(
1686
- O.map(async (I) => {
1687
- var Q, K;
1688
- const Y = await ys(I), je = (Q = Y == null ? void 0 : Y.data) == null ? void 0 : Q.url, me = ((K = Y == null ? void 0 : Y.data) == null ? void 0 : K.name) || I.name;
1687
+ const U = await Promise.all(
1688
+ O.map(async ($) => {
1689
+ var Q, B;
1690
+ const Y = await ys($), je = (Q = Y == null ? void 0 : Y.data) == null ? void 0 : Q.url, me = ((B = Y == null ? void 0 : Y.data) == null ? void 0 : B.name) || $.name;
1689
1691
  if (!je) throw new Error("上传结果缺少文件地址");
1690
1692
  return {
1691
- type: I.type.startsWith("image/") ? "image" : "file",
1693
+ type: $.type.startsWith("image/") ? "image" : "file",
1692
1694
  url: je,
1693
1695
  name: me,
1694
- mime_type: I.type
1696
+ mime_type: $.type
1695
1697
  };
1696
1698
  })
1697
1699
  );
1698
- J((I) => [...I, ...V]), X.success(`已添加 ${V.length} 个附件`);
1699
- } catch (V) {
1700
- X.error(V instanceof Error ? V.message : "上传失败");
1700
+ J(($) => [...$, ...U]), X.success(`已添加 ${U.length} 个附件`);
1701
+ } catch (U) {
1702
+ X.error(U instanceof Error ? U.message : "上传失败");
1701
1703
  } finally {
1702
- E(!1);
1704
+ I(!1);
1703
1705
  }
1704
1706
  }
1705
1707
  },
1706
1708
  []
1707
1709
  ), we = a.useCallback((c) => {
1708
- J((O) => O.filter((V) => V.url !== c));
1710
+ J((O) => O.filter((U) => U.url !== c));
1709
1711
  }, []), ue = a.useMemo(
1710
- () => x.filter(
1711
- (c) => c.required && Qe(T[c.name])
1712
+ () => p.filter(
1713
+ (c) => c.required && Qe(F[c.name])
1712
1714
  ),
1713
- [x, T]
1715
+ [p, F]
1714
1716
  ), oe = a.useMemo(
1715
- () => v.find((c) => c.id === $) ?? v.find((c) => c.current) ?? v[0],
1716
- [v, $]
1717
+ () => v.find((c) => c.id === P) ?? v.find((c) => c.current) ?? v[0],
1718
+ [v, P]
1717
1719
  );
1718
1720
  return /* @__PURE__ */ e.jsx("div", { className: "wandox-console-view", children: /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-homecenter", children: [
1719
1721
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-homecenter-hero", children: [
@@ -1767,7 +1769,7 @@ function jn({
1767
1769
  {
1768
1770
  type: "button",
1769
1771
  className: "wandox-console-home-header__history",
1770
- onClick: () => P == null ? void 0 : P(),
1772
+ onClick: () => M == null ? void 0 : M(),
1771
1773
  children: [
1772
1774
  /* @__PURE__ */ e.jsx("span", { children: "会话记录" }),
1773
1775
  /* @__PURE__ */ e.jsx(Ma, { className: "wandox-console-home-header__history-arrow" })
@@ -1792,7 +1794,7 @@ function jn({
1792
1794
  )
1793
1795
  ] }),
1794
1796
  R ? /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea wandox-console-taskarea--static", children: R.desc || R.title }) : /* @__PURE__ */ e.jsx("div", { className: "wandox-console-taskarea", children: /* @__PURE__ */ e.jsx(
1795
- wn,
1797
+ jn,
1796
1798
  {
1797
1799
  ref: u,
1798
1800
  value: g,
@@ -1806,7 +1808,7 @@ function jn({
1806
1808
  /* @__PURE__ */ e.jsx(Ta, {}),
1807
1809
  /* @__PURE__ */ e.jsx("span", { children: "正在读取剧本参数..." })
1808
1810
  ] }),
1809
- R && !N && U && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
1811
+ R && !N && K && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea wandox-console-paramarea--state", children: [
1810
1812
  /* @__PURE__ */ e.jsx("span", { children: "剧本参数加载失败" }),
1811
1813
  /* @__PURE__ */ e.jsxs(
1812
1814
  "button",
@@ -1821,7 +1823,7 @@ function jn({
1821
1823
  }
1822
1824
  )
1823
1825
  ] }),
1824
- R && !N && !U && x.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
1826
+ R && !N && !K && p.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramarea", children: [
1825
1827
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-paramhead", children: [
1826
1828
  /* @__PURE__ */ e.jsx(Ls, {}),
1827
1829
  /* @__PURE__ */ e.jsx("strong", { children: "确认分析范围" }),
@@ -1831,11 +1833,11 @@ function jn({
1831
1833
  ue.length > 0 ? `待填 ${ue.length} 项必填参数` : "参数已就绪"
1832
1834
  ] })
1833
1835
  ] }),
1834
- /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: x.map((c) => /* @__PURE__ */ e.jsx(
1836
+ /* @__PURE__ */ e.jsx("div", { className: "wandox-console-params", children: p.map((c) => /* @__PURE__ */ e.jsx(
1835
1837
  as,
1836
1838
  {
1837
1839
  field: c,
1838
- value: T[c.name],
1840
+ value: F[c.name],
1839
1841
  uploading: !!ne[c.name],
1840
1842
  fileNameMap: ee,
1841
1843
  getOptionState: Ne.getFieldState,
@@ -1876,11 +1878,11 @@ function jn({
1876
1878
  {
1877
1879
  type: "button",
1878
1880
  className: "wandox-console-prompt__send",
1879
- disabled: !R && !g.trim() || N || !!U || ue.length > 0,
1881
+ disabled: !R && !g.trim() || N || !!K || ue.length > 0,
1880
1882
  onClick: () => {
1881
1883
  y == null || y({
1882
1884
  playbookId: R == null ? void 0 : R.playbook_id,
1883
- playbookParams: R ? T : {},
1885
+ playbookParams: R ? F : {},
1884
1886
  message: R ? R.title : g.trim(),
1885
1887
  attachments: k
1886
1888
  });
@@ -2003,12 +2005,12 @@ function jn({
2003
2005
  )
2004
2006
  ] }) });
2005
2007
  }
2006
- const kn = [
2008
+ const vn = [
2007
2009
  {
2008
2010
  id: "conversation",
2009
2011
  title: "智能体",
2010
2012
  desc: "与智能体自由对话或选择场景执行任务",
2011
- icon: /* @__PURE__ */ e.jsx(Ka, {}),
2013
+ icon: /* @__PURE__ */ e.jsx(Ba, {}),
2012
2014
  accent: "#4f46e5"
2013
2015
  },
2014
2016
  {
@@ -2021,10 +2023,10 @@ const kn = [
2021
2023
  ], Se = {
2022
2024
  id: "notification",
2023
2025
  title: "通知配置",
2024
- icon: /* @__PURE__ */ e.jsx(Ua, {}),
2026
+ icon: /* @__PURE__ */ e.jsx(Ka, {}),
2025
2027
  accent: "#e0730c"
2026
2028
  };
2027
- function vn({
2029
+ function Nn({
2028
2030
  features: n,
2029
2031
  onOpenFeature: t,
2030
2032
  activeId: l
@@ -2065,7 +2067,7 @@ function vn({
2065
2067
  )
2066
2068
  ] });
2067
2069
  }
2068
- function Nn({
2070
+ function Cn({
2069
2071
  className: n = "",
2070
2072
  state: t = "idle"
2071
2073
  }) {
@@ -2074,7 +2076,7 @@ function Nn({
2074
2076
  {
2075
2077
  className: `wandox-console-companion${n ? ` ${n}` : ""}`,
2076
2078
  "data-state": t,
2077
- src: "/brand/wandox-mark.svg",
2079
+ src: Oa,
2078
2080
  alt: "",
2079
2081
  "aria-hidden": "true"
2080
2082
  }
@@ -2091,7 +2093,7 @@ function Cs({ fading: n }) {
2091
2093
  /* @__PURE__ */ e.jsx("div", { className: "wandox-console-init__halo wandox-console-init__halo--b" }),
2092
2094
  /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-init__inner", children: [
2093
2095
  /* @__PURE__ */ e.jsx(
2094
- Nn,
2096
+ Cn,
2095
2097
  {
2096
2098
  className: "wandox-console-init__companion",
2097
2099
  state: "thinking"
@@ -2146,7 +2148,7 @@ function Ss({
2146
2148
  }
2147
2149
  );
2148
2150
  }
2149
- function An({
2151
+ function En({
2150
2152
  agents: n,
2151
2153
  initialAgentId: t,
2152
2154
  initialPlaybookId: l,
@@ -2159,56 +2161,56 @@ function An({
2159
2161
  selectedAgentId: h,
2160
2162
  selectedAgent: y,
2161
2163
  selectAgent: v,
2162
- ...$
2163
- } = hn({ presetAgents: n, initialAgentId: t }), [f, P] = a.useState(null), g = a.useRef(null), C = a.useRef(!1), [w, m] = a.useState("home"), [u, S] = a.useState(
2164
+ ...P
2165
+ } = xn({ presetAgents: n, initialAgentId: t }), [f, M] = a.useState(null), g = a.useRef(null), C = a.useRef(!1), [w, m] = a.useState("home"), [u, S] = a.useState(
2164
2166
  null
2165
- ), [Z, N] = a.useState(!1), [M, U] = a.useState(null), [se, z] = a.useState(""), T = y == null ? void 0 : y.name, D = a.useCallback((x) => {
2167
+ ), [Z, N] = a.useState(!1), [T, K] = a.useState(null), [se, z] = a.useState(""), F = y == null ? void 0 : y.name, D = a.useCallback((p) => {
2166
2168
  if (g.current) {
2167
- g.current.showInspectionResults(x);
2169
+ g.current.showInspectionResults(p);
2168
2170
  return;
2169
2171
  }
2170
- P({ robotName: x });
2172
+ M({ robotName: p });
2171
2173
  }, []);
2172
2174
  a.useEffect(() => {
2173
2175
  d == null || d({ showInspectionResults: D });
2174
2176
  }, [D, d]), a.useEffect(() => {
2175
- !f || g.current || !h || w === "chat" || (U({
2177
+ !f || g.current || !h || w === "chat" || (K({
2176
2178
  agentId: h,
2177
- agentName: T,
2179
+ agentName: F,
2178
2180
  playbookParams: {},
2179
2181
  message: ""
2180
2182
  }), m("chat"));
2181
- }, [w, f, h, T]), a.useEffect(() => {
2183
+ }, [w, f, h, F]), a.useEffect(() => {
2182
2184
  z("");
2183
2185
  }, [h]);
2184
2186
  const {
2185
2187
  playbooks: ne,
2186
- userPlaybooks: F,
2188
+ userPlaybooks: V,
2187
2189
  useMapCategories: ee,
2188
2190
  useMapCards: de,
2189
2191
  sceneLoading: k,
2190
2192
  useMapError: J,
2191
2193
  reload: q
2192
- } = $, E = a.useMemo(
2193
- () => ee.length > 0 ? ee : rn(ne),
2194
+ } = P, I = a.useMemo(
2195
+ () => ee.length > 0 ? ee : dn(ne),
2194
2196
  [ee, ne]
2195
2197
  );
2196
2198
  a.useEffect(() => {
2197
- if (E.length === 0) return;
2198
- E.some(
2199
+ if (I.length === 0) return;
2200
+ I.some(
2199
2201
  (W) => W.key === se
2200
- ) || z(E[0].key);
2201
- }, [E]);
2202
+ ) || z(I[0].key);
2203
+ }, [I]);
2202
2204
  const ye = a.useRef(!1);
2203
2205
  a.useEffect(() => {
2204
2206
  if (ye.current || !l || !h || k)
2205
2207
  return;
2206
- const x = b.find(
2208
+ const p = b.find(
2207
2209
  (W) => W.id === h && es(W, t)
2208
2210
  );
2209
- x && (ye.current = !0, U({
2211
+ p && (ye.current = !0, K({
2210
2212
  agentId: h,
2211
- agentName: x.name,
2213
+ agentName: p.name,
2212
2214
  playbookId: l,
2213
2215
  playbookParams: r || {},
2214
2216
  message: ""
@@ -2220,16 +2222,16 @@ function An({
2220
2222
  l,
2221
2223
  r,
2222
2224
  h,
2223
- T
2225
+ F
2224
2226
  ]), a.useEffect(() => {
2225
2227
  if (C.current || !t || l || !h || k)
2226
2228
  return;
2227
- const x = b.find(
2229
+ const p = b.find(
2228
2230
  (W) => W.id === h && es(W, t)
2229
2231
  );
2230
- x && (C.current = !0, U({
2231
- agentId: x.id,
2232
- agentName: x.name,
2232
+ p && (C.current = !0, K({
2233
+ agentId: p.id,
2234
+ agentName: p.name,
2233
2235
  playbookParams: {},
2234
2236
  message: ""
2235
2237
  }), m("chat"));
@@ -2244,59 +2246,59 @@ function An({
2244
2246
  const ge = a.useCallback(() => {
2245
2247
  m("home"), S(null), N(!1);
2246
2248
  }, []), G = a.useCallback(
2247
- (x) => {
2248
- if (x === "conversation") {
2249
+ (p) => {
2250
+ if (p === "conversation") {
2249
2251
  ge();
2250
2252
  return;
2251
2253
  }
2252
- N(!1), S(x);
2254
+ N(!1), S(p);
2253
2255
  },
2254
2256
  [ge]
2255
- ), ce = (x) => {
2256
- v(x), m("home");
2257
- }, R = (x) => {
2258
- if (x === h) return;
2259
- const W = b.find((ie) => ie.id === x);
2260
- v(x), U({
2261
- agentId: x,
2257
+ ), ce = (p) => {
2258
+ v(p), m("home");
2259
+ }, R = (p) => {
2260
+ if (p === h) return;
2261
+ const W = b.find((ie) => ie.id === p);
2262
+ v(p), K({
2263
+ agentId: p,
2262
2264
  agentName: W == null ? void 0 : W.name,
2263
2265
  playbookParams: {},
2264
2266
  message: ""
2265
2267
  });
2266
2268
  }, fe = () => {
2267
- h && (U({
2269
+ h && (K({
2268
2270
  agentId: h,
2269
- agentName: T,
2271
+ agentName: F,
2270
2272
  playbookParams: {},
2271
2273
  message: ""
2272
2274
  }), m("chat"));
2273
- }, ve = (x) => {
2274
- U({
2275
+ }, ve = (p) => {
2276
+ K({
2275
2277
  agentId: h,
2276
- agentName: T,
2277
- playbookId: x.playbookId,
2278
- playbookParams: x.playbookParams,
2279
- message: x.message,
2280
- attachments: x.attachments
2278
+ agentName: F,
2279
+ playbookId: p.playbookId,
2280
+ playbookParams: p.playbookParams,
2281
+ message: p.message,
2282
+ attachments: p.attachments
2281
2283
  }), m("chat");
2282
2284
  };
2283
- return w === "chat" && M ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat-shell", children: [
2285
+ return w === "chat" && T ? /* @__PURE__ */ e.jsxs("div", { className: "wandox-console-chat-shell", children: [
2284
2286
  /* @__PURE__ */ e.jsx(
2285
- gn,
2287
+ wn,
2286
2288
  {
2287
- agentId: M.agentId,
2288
- agentName: M.agentName,
2289
- playbookId: M.playbookId,
2290
- playbookParams: M.playbookParams,
2291
- initialMessage: M.message,
2292
- initialAttachments: M.attachments,
2289
+ agentId: T.agentId,
2290
+ agentName: T.agentName,
2291
+ playbookId: T.playbookId,
2292
+ playbookParams: T.playbookParams,
2293
+ initialMessage: T.message,
2294
+ initialAttachments: T.attachments,
2293
2295
  useMapCards: de,
2294
2296
  useMapCategories: ee,
2295
2297
  playbooks: ne,
2296
- userPlaybooks: F,
2298
+ userPlaybooks: V,
2297
2299
  agents: b,
2298
- onReady: (x) => {
2299
- g.current = x, f && (x.showInspectionResults(f.robotName), P(null));
2300
+ onReady: (p) => {
2301
+ g.current = p, f && (p.showInspectionResults(f.robotName), M(null));
2300
2302
  },
2301
2303
  onChangeAgent: R,
2302
2304
  onBack: () => {
@@ -2305,7 +2307,7 @@ function An({
2305
2307
  onSelectScene: () => {
2306
2308
  }
2307
2309
  },
2308
- `${M.agentId}:${M.playbookId || "free-chat"}`
2310
+ `${T.agentId}:${T.playbookId || "free-chat"}`
2309
2311
  ),
2310
2312
  H && /* @__PURE__ */ e.jsx(Cs, { fading: re })
2311
2313
  ] }) : /* @__PURE__ */ e.jsxs(
@@ -2315,9 +2317,9 @@ function An({
2315
2317
  children: [
2316
2318
  H && /* @__PURE__ */ e.jsx(Cs, { fading: re }),
2317
2319
  !Z && /* @__PURE__ */ e.jsx(
2318
- vn,
2320
+ Nn,
2319
2321
  {
2320
- features: kn,
2322
+ features: vn,
2321
2323
  activeId: u ?? "conversation",
2322
2324
  onOpenFeature: G
2323
2325
  }
@@ -2331,7 +2333,7 @@ function An({
2331
2333
  hideHeader: !0,
2332
2334
  className: "wandox-console-featureview--automation",
2333
2335
  children: /* @__PURE__ */ e.jsx(
2334
- Ba,
2336
+ Ha,
2335
2337
  {
2336
2338
  onCockpitEnter: () => N(!0),
2337
2339
  onCockpitExit: () => N(!1),
@@ -2346,14 +2348,14 @@ function An({
2346
2348
  title: "通知配置",
2347
2349
  onBack: () => S(null),
2348
2350
  hideHeader: !0,
2349
- children: /* @__PURE__ */ e.jsx(Ha, {})
2351
+ children: /* @__PURE__ */ e.jsx(Ga, {})
2350
2352
  }
2351
2353
  ),
2352
2354
  !u && /* @__PURE__ */ e.jsx(
2353
- jn,
2355
+ kn,
2354
2356
  {
2355
2357
  useMapCards: de,
2356
- useMapCategories: E,
2358
+ useMapCategories: I,
2357
2359
  playbooks: ne,
2358
2360
  selectedCategoryKey: se,
2359
2361
  onCategorySelect: z,
@@ -2373,5 +2375,5 @@ function An({
2373
2375
  );
2374
2376
  }
2375
2377
  export {
2376
- An as default
2378
+ En as default
2377
2379
  };