@openbkn/workshop 0.2.3 → 0.3.0-rc.2

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 (96) hide show
  1. package/README.md +1 -1
  2. package/dist/{ActionConfirm-ITBip2Ic.js → ActionConfirm-G-F1ZPqU.js} +5 -5
  3. package/dist/{ActionFailure-CWifUJ2j.js → ActionFailure-PXLm8Yrm.js} +2 -2
  4. package/dist/{AgentChat-C1uyzwuA.js → AgentChat-D2h4hYuv.js} +406 -382
  5. package/dist/AppListPage-CjAyblsr.js +1549 -0
  6. package/dist/{AskDrawer-Bw1NM5v_.js → AskDrawer-BOZHK2uD.js} +4 -4
  7. package/dist/{ComputedView-_CaPjqhY.js → ComputedView-CFB6TLqD.js} +1028 -1009
  8. package/dist/{ConclusionApply-CG5wSeVp.js → ConclusionApply-QzEgCkEr.js} +4 -4
  9. package/dist/{CypherEditor-DbLHQoJJ.js → CypherEditor-ChbgNwGj.js} +47 -47
  10. package/dist/{LandingList-BMPCXj6K.js → LandingList-D4rN2C_h.js} +5 -5
  11. package/dist/{MenuUnfoldOutlined-BoARCVho.js → MenuUnfoldOutlined-9J7j6Kim.js} +3 -3
  12. package/dist/{ModelTrial-DZjC0E8E.js → ModelTrial-DWE5fBa4.js} +4 -4
  13. package/dist/{PageRenderer-Debi-U0v.js → PageRenderer-BYBHi5At.js} +21744 -20979
  14. package/dist/{ScenarioApply-BNFfjIwR.js → ScenarioApply-Ck68QOWM.js} +25 -25
  15. package/dist/{SimulateForm-CEqqMjks.js → SimulateForm-QwSu0BWO.js} +4 -4
  16. package/dist/{Subgraph-C0VjOnZf.js → Subgraph-CMIts4-k.js} +3 -3
  17. package/dist/WorkshopLabPage-N-CVblXc.js +12331 -0
  18. package/dist/{WorkshopRunPage-BlyM18id.js → WorkshopRunPage-LtG2nDNS.js} +25 -25
  19. package/dist/{abnfDiagram-WEYOIA3C-wqYhe75a.js → abnfDiagram-WEYOIA3C-CEkD2Kbr.js} +3 -3
  20. package/dist/{action-type-tool.service-CtCfESYq.js → action-type-tool.service-DfyMNDaF.js} +1 -1
  21. package/dist/{architectureDiagram-ZHVYKT53-BYJ2H7bS.js → architectureDiagram-ZHVYKT53-ypBqmKJn.js} +3 -3
  22. package/dist/{bkn-agent-execution.service-ogW6NIAz.js → bkn-agent-execution.service-DpOKT3iR.js} +1 -1
  23. package/dist/{blockDiagram-RJAE7QA3-DZfrfHRw.js → blockDiagram-RJAE7QA3-BQiz7ppY.js} +3 -3
  24. package/dist/{c4Diagram-XDPPPE54--S7sRxgd.js → c4Diagram-XDPPPE54-DoQEicnh.js} +2 -2
  25. package/dist/{channel-Ca2_7Xkz.js → channel-CLsZYFb3.js} +1 -1
  26. package/dist/{chunk-2E7WHVMD-BMnl6-jy.js → chunk-2E7WHVMD-C7KAk7Aw.js} +1 -1
  27. package/dist/{chunk-2Q5K7J3B-BNVTYluA.js → chunk-2Q5K7J3B-DJjZ1fjz.js} +1 -1
  28. package/dist/{chunk-4EMNKR2T-CKorQf5z.js → chunk-4EMNKR2T-Da2DlW9r.js} +1 -1
  29. package/dist/{chunk-55XCU76K-C4xutPQ4.js → chunk-55XCU76K-Dke6HW5r.js} +1 -1
  30. package/dist/{chunk-5VM5RSS4-BM5F2WnL.js → chunk-5VM5RSS4-CfxCWhgL.js} +1 -1
  31. package/dist/{chunk-JWPE2WC7-CSU5SIs8.js → chunk-JWPE2WC7-BvFVx2S8.js} +1 -1
  32. package/dist/{chunk-VQ5W62QI-Dtk59D_l.js → chunk-VQ5W62QI-BKtRw0gX.js} +1 -1
  33. package/dist/{chunk-XXDRQBXY-DzVLFl9c.js → chunk-XXDRQBXY-BFdjgXiI.js} +1 -1
  34. package/dist/{chunk-ZCHMQSOR-cdQdJeDJ.js → chunk-ZCHMQSOR-BV9eKUlK.js} +2 -2
  35. package/dist/{classDiagram-v2-4MYWR3UA-CABAzYlW.js → classDiagram-v2-4MYWR3UA-CrCmRIma.js} +5 -5
  36. package/dist/{cose-bilkent-JH36ORCC-Ca8GJbqv.js → cose-bilkent-JH36ORCC-BLuhBHgL.js} +2 -2
  37. package/dist/customComponents-DasaZ6pq.js +1 -1
  38. package/dist/customComponents.en-US-CkabuCXg.js +1 -1
  39. package/dist/{customParseFormat-H00Ur3YB.js → customParseFormat-LvPG_yWc.js} +1 -1
  40. package/dist/{cynefinDiagram-WF24UDRP-iIy_O6OH.js → cynefinDiagram-WF24UDRP-Dkdu7UWf.js} +2 -2
  41. package/dist/{dagre-NK4GIZVX-lW5Hra0G.js → dagre-NK4GIZVX-wQ94w-j-.js} +2 -2
  42. package/dist/{dayjs.min-C8_4Wqpb.js → dayjs.min-C7Hp2iGA.js} +1 -1
  43. package/dist/{diagram-CBK3MWTC-l5LVSm6X.js → diagram-CBK3MWTC-DFfVlq-I.js} +3 -3
  44. package/dist/{diagram-I5XIIV2D-ChpwB8Wz.js → diagram-I5XIIV2D-kg2lU_ud.js} +2 -2
  45. package/dist/{diagram-ODIL2UCW-DBavGl7R.js → diagram-ODIL2UCW-Cq22spS8.js} +3 -3
  46. package/dist/{diagram-PFBEJUXE-B3fNIQm9.js → diagram-PFBEJUXE-6v743_6i.js} +2 -2
  47. package/dist/{diagram-RJA3I4VV-Dmj0Shdh.js → diagram-RJA3I4VV-CfpzBZG7.js} +2 -2
  48. package/dist/{diagram-TYUNFSNR-D98rsKpY.js → diagram-TYUNFSNR-DWcS3i5W.js} +6 -6
  49. package/dist/{ebnfDiagram-V4P3TTPT-Bxr2oP9U.js → ebnfDiagram-V4P3TTPT-CDdo-DHX.js} +3 -3
  50. package/dist/{elk-QONTBCTQ-CvFT6Pst.js → elk-QONTBCTQ-tURRkPjL.js} +5 -5
  51. package/dist/{erDiagram-KYQIGQAA-dgeEoLzk.js → erDiagram-KYQIGQAA-DOUye_XT.js} +4 -4
  52. package/dist/{flowDiagram-IUGLLWBU-ChsJgBPn.js → flowDiagram-IUGLLWBU-DSva8jfA.js} +7 -7
  53. package/dist/{ganttDiagram-R7GPNTJY-C9WcR8Tf.js → ganttDiagram-R7GPNTJY-yY38MCsA.js} +4 -4
  54. package/dist/generateCypher-Cv-1H1ju.js +1088 -0
  55. package/dist/{gitGraphDiagram-PDYL7XHY-CeZTDs7V.js → gitGraphDiagram-PDYL7XHY-Cib4RIM7.js} +3 -3
  56. package/dist/{infoDiagram-MVDRKAX5-CzfcVWVf.js → infoDiagram-MVDRKAX5-C95Rlu7T.js} +1 -1
  57. package/dist/{ishikawaDiagram-HPEHV2GE-BK4ExPHB.js → ishikawaDiagram-HPEHV2GE-BAJtxdug.js} +2 -2
  58. package/dist/{journeyDiagram-BOSHW7O7-DXJ-ihrY.js → journeyDiagram-BOSHW7O7-D0_UFC4-.js} +4 -4
  59. package/dist/{kanban-definition-FNSA4HC5-C9rAkIZN.js → kanban-definition-FNSA4HC5-DVGJd60c.js} +2 -2
  60. package/dist/{mermaid.core-uROF3Ult.js → mermaid.core-CaigvKK3.js} +5803 -5740
  61. package/dist/{mindmap-definition-6OY57UG3-DC9FfvxT.js → mindmap-definition-6OY57UG3-Cc9NVGcT.js} +3 -3
  62. package/dist/{models-D5Mffixi.js → models-9HukOADg.js} +1 -1
  63. package/dist/{object-metric-numeric-DIgqXqB5.js → object-metric-numeric-DpQoy02c.js} +1 -1
  64. package/dist/{object-metric.service-B3PtIPEA.js → object-metric.service-Bs69yRkm.js} +2 -2
  65. package/dist/{pegDiagram-ECIUJNBX-CUCvcOc0.js → pegDiagram-ECIUJNBX-DAnSZciK.js} +3 -3
  66. package/dist/{pieDiagram-GNMPY74T-DprBId-p.js → pieDiagram-GNMPY74T-CPRmYgcD.js} +2 -2
  67. package/dist/{prompt-D9VtVs5i.js → prompt-CdE-v-Ut.js} +131 -110
  68. package/dist/{quadrantDiagram-D57K4MC3-CcvW9eIV.js → quadrantDiagram-D57K4MC3--PBqyWig.js} +1 -1
  69. package/dist/{railroadDiagram-Y72NRBL7-DH43paGB.js → railroadDiagram-Y72NRBL7-v4wxw4pH.js} +3 -3
  70. package/dist/{requirementDiagram-EQYSW5RA-CBY8WT39.js → requirementDiagram-EQYSW5RA-CXUiIggI.js} +3 -3
  71. package/dist/{sankeyDiagram-SY24JHO5-DD80tYLM.js → sankeyDiagram-SY24JHO5-CXWMlyCF.js} +2 -2
  72. package/dist/{sequenceDiagram-BLEHNHQU-Bo9dDD6b.js → sequenceDiagram-BLEHNHQU-BBOTQGfc.js} +3 -3
  73. package/dist/{sizeCapture-INFHLROL-BQTwKEEH.js → sizeCapture-INFHLROL-CoWTXUCl.js} +1 -1
  74. package/dist/{stateDiagram-v2-A6IESKWZ-um_LWxkE.js → stateDiagram-v2-A6IESKWZ-f2F4pX57.js} +4 -4
  75. package/dist/{swimlanes-B3ENRKFQ-DyYkLRSQ.js → swimlanes-B3ENRKFQ-Cpfk8ZRY.js} +3 -3
  76. package/dist/{swimlanesDiagram-AYQRV4AK-DlAG_Vwl.js → swimlanesDiagram-AYQRV4AK-hM77bzoI.js} +3 -3
  77. package/dist/{text-BqSVQKS6.js → text-CzC6K33E.js} +7 -3
  78. package/dist/{text.en-US-BhAxy_LE.js → text.en-US-D8mxBP0p.js} +6 -2
  79. package/dist/{timeline-definition-JXYKGLGB-DVH8Jsv4.js → timeline-definition-JXYKGLGB-BR5tHWmO.js} +1 -1
  80. package/dist/toolMatchLines-CvXMA8LD.js +4675 -0
  81. package/dist/{useLabData-fKy_tVvS.js → useLabData-OIsblj-7.js} +8035 -7259
  82. package/dist/{usecaseDiagram-WPOLBNNX-DvsgvjCb.js → usecaseDiagram-WPOLBNNX-DKhBwmOs.js} +3 -3
  83. package/dist/{vennDiagram-Q3Y3IDCW-BQcWfjtm.js → vennDiagram-Q3Y3IDCW-BnwNAM2m.js} +2 -2
  84. package/dist/{wardleyDiagram-IVAIDKWA-M_Wv4tRx.js → wardleyDiagram-IVAIDKWA-BAl9UccR.js} +2 -2
  85. package/dist/{workshop-app-wZ37Phc-.js → workshop-app-7WTuNuCp.js} +9216 -8813
  86. package/dist/workshop-app.css +1 -1
  87. package/dist/workshop-app.js +2 -2
  88. package/dist/{xychartDiagram-4URNHDU4-DBviJ7Ux.js → xychartDiagram-4URNHDU4-DAUWzPOU.js} +1 -1
  89. package/dist-cli/workshop.js +221 -169
  90. package/package.json +1 -1
  91. package/skill/SKILL.en-US.md +5 -0
  92. package/skill/SKILL.md +3 -0
  93. package/dist/AppFormModal-ByNEloW-.js +0 -4282
  94. package/dist/AppListPage-D2NVBJs7.js +0 -1465
  95. package/dist/WorkshopLabPage-C7hssyUo.js +0 -11364
  96. package/dist/generateCypher-kvNYDLY4.js +0 -399
@@ -0,0 +1,1549 @@
1
+ import { N as V, r as i, O as U, u as F, b as qe, j as e, a as T, I as Ye, V as hs, ap as us, aq as Ge, ar as At, w as ms, a8 as gt, i as Ee, X as Te, Y as bt } from "./workshop-app-7WTuNuCp.js";
2
+ import { d as gs } from "./dayjs.min-C7Hp2iGA.js";
3
+ import { M as bs, p as ue, bm as xs, b8 as ws, bn as f, bo as fs, bp as ks, bq as vs, br as js, D as _s, bs as Je, am as ys, A as Ls, bt as Ns, bu as Xe, bv as Os, bw as Cs, bx as Ss, by as Is, bz as Et, aR as me, ab as xt, bA as As, al as Es, bB as te, bC as wt, bD as ft, bE as Ts, R as $s, bF as Rs, bG as Ms, bH as Bs, bI as Ps, T as $e, ae as zs, bJ as Ws, bK as Fs, bL as Hs, bM as Ks, bN as Ds } from "./useLabData-OIsblj-7.js";
4
+ import { R as Vs, U as Us, A as kt, r as qs, z as Ys, f as Gs, i as Js, m as Xs, u as Zs, w as Qs, a as ea, b as ta, c as sa, e as aa, d as na } from "./toolMatchLines-CvXMA8LD.js";
5
+ var oe = {}, vt;
6
+ function oa() {
7
+ if (vt) return oe;
8
+ vt = 1, Object.defineProperty(oe, "__esModule", { value: !0 });
9
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" };
10
+ return oe.default = t, oe;
11
+ }
12
+ var ra = /* @__PURE__ */ oa();
13
+ const la = /* @__PURE__ */ V(ra);
14
+ function Me() {
15
+ return Me = Object.assign ? Object.assign.bind() : function(t) {
16
+ for (var a = 1; a < arguments.length; a++) {
17
+ var o = arguments[a];
18
+ for (var s in o)
19
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
20
+ }
21
+ return t;
22
+ }, Me.apply(this, arguments);
23
+ }
24
+ const ia = (t, a) => /* @__PURE__ */ i.createElement(U, Me({}, t, {
25
+ ref: a,
26
+ icon: la
27
+ })), ca = /* @__PURE__ */ i.forwardRef(ia);
28
+ var re = {}, jt;
29
+ function da() {
30
+ if (jt) return re;
31
+ jt = 1, Object.defineProperty(re, "__esModule", { value: !0 });
32
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, name: "code", theme: "outlined" };
33
+ return re.default = t, re;
34
+ }
35
+ var pa = /* @__PURE__ */ da();
36
+ const ha = /* @__PURE__ */ V(pa);
37
+ function Be() {
38
+ return Be = Object.assign ? Object.assign.bind() : function(t) {
39
+ for (var a = 1; a < arguments.length; a++) {
40
+ var o = arguments[a];
41
+ for (var s in o)
42
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
43
+ }
44
+ return t;
45
+ }, Be.apply(this, arguments);
46
+ }
47
+ const ua = (t, a) => /* @__PURE__ */ i.createElement(U, Be({}, t, {
48
+ ref: a,
49
+ icon: ha
50
+ })), ma = /* @__PURE__ */ i.forwardRef(ua);
51
+ var le = {}, _t;
52
+ function ga() {
53
+ if (_t) return le;
54
+ _t = 1, Object.defineProperty(le, "__esModule", { value: !0 });
55
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z" } }] }, name: "deployment-unit", theme: "outlined" };
56
+ return le.default = t, le;
57
+ }
58
+ var ba = /* @__PURE__ */ ga();
59
+ const xa = /* @__PURE__ */ V(ba);
60
+ function Pe() {
61
+ return Pe = Object.assign ? Object.assign.bind() : function(t) {
62
+ for (var a = 1; a < arguments.length; a++) {
63
+ var o = arguments[a];
64
+ for (var s in o)
65
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
66
+ }
67
+ return t;
68
+ }, Pe.apply(this, arguments);
69
+ }
70
+ const wa = (t, a) => /* @__PURE__ */ i.createElement(U, Pe({}, t, {
71
+ ref: a,
72
+ icon: xa
73
+ })), fa = /* @__PURE__ */ i.forwardRef(wa);
74
+ var ie = {}, yt;
75
+ function ka() {
76
+ if (yt) return ie;
77
+ yt = 1, Object.defineProperty(ie, "__esModule", { value: !0 });
78
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" };
79
+ return ie.default = t, ie;
80
+ }
81
+ var va = /* @__PURE__ */ ka();
82
+ const ja = /* @__PURE__ */ V(va);
83
+ function ze() {
84
+ return ze = Object.assign ? Object.assign.bind() : function(t) {
85
+ for (var a = 1; a < arguments.length; a++) {
86
+ var o = arguments[a];
87
+ for (var s in o)
88
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
89
+ }
90
+ return t;
91
+ }, ze.apply(this, arguments);
92
+ }
93
+ const _a = (t, a) => /* @__PURE__ */ i.createElement(U, ze({}, t, {
94
+ ref: a,
95
+ icon: ja
96
+ })), ya = /* @__PURE__ */ i.forwardRef(_a);
97
+ var ce = {}, Lt;
98
+ function La() {
99
+ if (Lt) return ce;
100
+ Lt = 1, Object.defineProperty(ce, "__esModule", { value: !0 });
101
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, name: "folder", theme: "outlined" };
102
+ return ce.default = t, ce;
103
+ }
104
+ var Na = /* @__PURE__ */ La();
105
+ const Oa = /* @__PURE__ */ V(Na);
106
+ function We() {
107
+ return We = Object.assign ? Object.assign.bind() : function(t) {
108
+ for (var a = 1; a < arguments.length; a++) {
109
+ var o = arguments[a];
110
+ for (var s in o)
111
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
112
+ }
113
+ return t;
114
+ }, We.apply(this, arguments);
115
+ }
116
+ const Ca = (t, a) => /* @__PURE__ */ i.createElement(U, We({}, t, {
117
+ ref: a,
118
+ icon: Oa
119
+ })), Tt = /* @__PURE__ */ i.forwardRef(Ca);
120
+ var de = {}, Nt;
121
+ function Sa() {
122
+ if (Nt) return de;
123
+ Nt = 1, Object.defineProperty(de, "__esModule", { value: !0 });
124
+ var t = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z" } }] }, name: "import", theme: "outlined" };
125
+ return de.default = t, de;
126
+ }
127
+ var Ia = /* @__PURE__ */ Sa();
128
+ const Aa = /* @__PURE__ */ V(Ia);
129
+ function Fe() {
130
+ return Fe = Object.assign ? Object.assign.bind() : function(t) {
131
+ for (var a = 1; a < arguments.length; a++) {
132
+ var o = arguments[a];
133
+ for (var s in o)
134
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
135
+ }
136
+ return t;
137
+ }, Fe.apply(this, arguments);
138
+ }
139
+ const Ea = (t, a) => /* @__PURE__ */ i.createElement(U, Fe({}, t, {
140
+ ref: a,
141
+ icon: Aa
142
+ })), Ta = /* @__PURE__ */ i.forwardRef(Ea);
143
+ var pe = {}, Ot;
144
+ function $a() {
145
+ if (Ot) return pe;
146
+ Ot = 1, Object.defineProperty(pe, "__esModule", { value: !0 });
147
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z" } }] }, name: "layout", theme: "outlined" };
148
+ return pe.default = t, pe;
149
+ }
150
+ var Ra = /* @__PURE__ */ $a();
151
+ const Ma = /* @__PURE__ */ V(Ra);
152
+ function He() {
153
+ return He = Object.assign ? Object.assign.bind() : function(t) {
154
+ for (var a = 1; a < arguments.length; a++) {
155
+ var o = arguments[a];
156
+ for (var s in o)
157
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
158
+ }
159
+ return t;
160
+ }, He.apply(this, arguments);
161
+ }
162
+ const Ba = (t, a) => /* @__PURE__ */ i.createElement(U, He({}, t, {
163
+ ref: a,
164
+ icon: Ma
165
+ })), Pa = /* @__PURE__ */ i.forwardRef(Ba);
166
+ var he = {}, Ct;
167
+ function za() {
168
+ if (Ct) return he;
169
+ Ct = 1, Object.defineProperty(he, "__esModule", { value: !0 });
170
+ var t = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z" } }] }, name: "sort-ascending", theme: "outlined" };
171
+ return he.default = t, he;
172
+ }
173
+ var Wa = /* @__PURE__ */ za();
174
+ const Fa = /* @__PURE__ */ V(Wa);
175
+ function Ke() {
176
+ return Ke = Object.assign ? Object.assign.bind() : function(t) {
177
+ for (var a = 1; a < arguments.length; a++) {
178
+ var o = arguments[a];
179
+ for (var s in o)
180
+ Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
181
+ }
182
+ return t;
183
+ }, Ke.apply(this, arguments);
184
+ }
185
+ const Ha = (t, a) => /* @__PURE__ */ i.createElement(U, Ke({}, t, {
186
+ ref: a,
187
+ icon: Fa
188
+ })), Ka = /* @__PURE__ */ i.forwardRef(Ha), Da = "_body_s2xam_6", Va = "_nav_s2xam_13", Ua = "_note_s2xam_23", qa = "_footnote_s2xam_30", Ya = "_item_s2xam_35", Ga = "_itemName_s2xam_60", Ja = "_itemNote_s2xam_68", Xa = "_create_s2xam_75", Za = "_pane_s2xam_79", Qa = "_field_s2xam_88", en = "_label_s2xam_95", tn = "_hint_s2xam_100", sn = "_agent_s2xam_107", an = "_danger_s2xam_121", nn = "_dangerText_s2xam_131", j = {
189
+ body: Da,
190
+ nav: Va,
191
+ note: Ua,
192
+ footnote: qa,
193
+ item: Ya,
194
+ itemName: Ga,
195
+ itemNote: Ja,
196
+ create: Xa,
197
+ pane: Za,
198
+ field: Qa,
199
+ label: en,
200
+ hint: tn,
201
+ agent: sn,
202
+ danger: an,
203
+ dangerText: nn
204
+ }, X = "new", on = 64, St = (t) => t && {
205
+ mcp: t.mcp,
206
+ tool: t.tool,
207
+ mcpName: t.mcpName,
208
+ ...t.agentId ? { agentId: t.agentId } : {}
209
+ }, rn = (t) => ({
210
+ mcp: t.mcp,
211
+ mcpName: t.mcpName || t.mcp,
212
+ tool: t.tool,
213
+ ...t.agentId ? { agentId: t.agentId } : {}
214
+ });
215
+ function De(t, a) {
216
+ return t instanceof fs && t.detail ? t.detail : a("workshopLab.workspace.failed");
217
+ }
218
+ function ln({
219
+ workspaces: t,
220
+ initial: a,
221
+ nameOf: o,
222
+ onChanged: s,
223
+ onClose: g
224
+ }) {
225
+ const { t: k } = F(), { message: u, modal: C } = qe(), r = (d, v) => k(`workshopLab.workspace.${d}`, v), A = (d) => {
226
+ const v = t.find((B) => B.id === d);
227
+ return {
228
+ id: v ? d : X,
229
+ name: v ? v.name : "",
230
+ agent: St(v?.defaultAgent)
231
+ };
232
+ }, [w, c] = i.useState(() => A(a)), [L, b] = i.useState(!1), [M, E] = i.useState(null), y = t.find((d) => d.id === w.id), N = y?.isDefault ?? !1, x = (d) => {
233
+ E(null), c(A(d));
234
+ }, $ = async () => {
235
+ const d = w.name.trim();
236
+ if (!N && !d) return E("name");
237
+ if (w.agent?.mcp && !w.agent.tool) return E("tool");
238
+ E(null);
239
+ const v = {
240
+ name: N ? "" : d,
241
+ ...w.agent?.mcp ? { defaultAgent: rn(w.agent) } : {}
242
+ };
243
+ b(!0);
244
+ try {
245
+ const B = w.id === X ? await vs(v) : await js(w.id, v);
246
+ await s(), c({
247
+ id: B.id,
248
+ name: B.name,
249
+ agent: St(B.defaultAgent)
250
+ }), u.success(r("saved"));
251
+ } catch (B) {
252
+ u.error(De(B, k));
253
+ } finally {
254
+ b(!1);
255
+ }
256
+ }, h = () => {
257
+ !y || N || C.confirm({
258
+ title: r("deleteConfirm", { name: o(y) }),
259
+ okText: r("delete"),
260
+ okButtonProps: { danger: !0 },
261
+ onOk: async () => {
262
+ try {
263
+ await ks(y.id), await s(), x(t.find((d) => d.isDefault)?.id ?? X), u.success(r("deleted"));
264
+ } catch (d) {
265
+ u.error(De(d, k));
266
+ }
267
+ }
268
+ });
269
+ };
270
+ return /* @__PURE__ */ e.jsx(
271
+ bs,
272
+ {
273
+ open: !0,
274
+ width: 880,
275
+ title: r("manageTitle"),
276
+ onCancel: g,
277
+ footer: [
278
+ /* @__PURE__ */ e.jsx(T, { onClick: g, children: r("close") }, "close"),
279
+ /* @__PURE__ */ e.jsx(T, { type: "primary", loading: L, onClick: () => {
280
+ $();
281
+ }, children: r("save") }, "save")
282
+ ],
283
+ children: /* @__PURE__ */ e.jsxs("div", { className: j.body, children: [
284
+ /* @__PURE__ */ e.jsxs("nav", { className: j.nav, "aria-label": r("manageTitle"), children: [
285
+ /* @__PURE__ */ e.jsx("p", { className: j.note, children: r("onlyYou") }),
286
+ t.map((d) => /* @__PURE__ */ e.jsxs(
287
+ "button",
288
+ {
289
+ type: "button",
290
+ className: j.item,
291
+ "aria-current": d.id === w.id ? "true" : void 0,
292
+ onClick: () => x(d.id),
293
+ children: [
294
+ /* @__PURE__ */ e.jsx("span", { className: j.itemName, children: o(d) }),
295
+ d.isDefault ? /* @__PURE__ */ e.jsx("span", { className: j.itemNote, children: r("defaultFixed") }) : d.defaultAgent ? /* @__PURE__ */ e.jsx("span", { className: j.itemNote, children: r("hasAgent") }) : null
296
+ ]
297
+ },
298
+ d.id
299
+ )),
300
+ w.id === X ? /* @__PURE__ */ e.jsx("button", { type: "button", className: j.item, "aria-current": "true", children: /* @__PURE__ */ e.jsx("span", { className: j.itemName, children: w.name.trim() || r("newName") }) }) : null,
301
+ /* @__PURE__ */ e.jsx(
302
+ T,
303
+ {
304
+ className: j.create,
305
+ type: "dashed",
306
+ icon: /* @__PURE__ */ e.jsx(ue, {}),
307
+ onClick: () => x(X),
308
+ children: r("create")
309
+ }
310
+ ),
311
+ /* @__PURE__ */ e.jsx("p", { className: `${j.note} ${j.footnote}`, children: r("footnote") })
312
+ ] }),
313
+ /* @__PURE__ */ e.jsxs("div", { className: j.pane, children: [
314
+ /* @__PURE__ */ e.jsxs("label", { className: j.field, children: [
315
+ /* @__PURE__ */ e.jsx("span", { className: j.label, children: r("nameLabel") }),
316
+ /* @__PURE__ */ e.jsx(
317
+ Ye,
318
+ {
319
+ value: N ? r("default") : w.name,
320
+ disabled: N,
321
+ maxLength: on,
322
+ placeholder: r("newName"),
323
+ status: M === "name" ? "error" : void 0,
324
+ onChange: (d) => c({ ...w, name: d.target.value })
325
+ }
326
+ ),
327
+ /* @__PURE__ */ e.jsx("span", { className: j.hint, children: r(M === "name" ? "nameRequired" : N ? "defaultFixed" : "nameHint") })
328
+ ] }),
329
+ /* @__PURE__ */ e.jsxs("fieldset", { className: j.agent, children: [
330
+ /* @__PURE__ */ e.jsx("legend", { className: j.label, children: r("agentTitle") }),
331
+ /* @__PURE__ */ e.jsx("p", { className: j.hint, children: r("agentIntro") }),
332
+ /* @__PURE__ */ e.jsx(
333
+ xs,
334
+ {
335
+ value: w.agent,
336
+ onChange: (d) => c({
337
+ ...w,
338
+ agent: ws(d) ? d : void 0
339
+ })
340
+ },
341
+ w.id
342
+ ),
343
+ M === "tool" ? /* @__PURE__ */ e.jsx(f.Text, { type: "danger", children: r("agentToolRequired") }) : null,
344
+ w.agent?.mcp ? /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(T, { size: "small", onClick: () => c({ ...w, agent: void 0 }), children: r("clearAgent") }) }) : null
345
+ ] }),
346
+ y && !N ? /* @__PURE__ */ e.jsxs("div", { className: j.danger, children: [
347
+ /* @__PURE__ */ e.jsxs("div", { className: j.dangerText, children: [
348
+ /* @__PURE__ */ e.jsx("div", { className: j.label, children: r("deleteTitle") }),
349
+ /* @__PURE__ */ e.jsx("div", { className: j.hint, children: r("deleteHint") })
350
+ ] }),
351
+ /* @__PURE__ */ e.jsx(T, { danger: !0, onClick: h, children: r("delete") })
352
+ ] }) : null
353
+ ] })
354
+ ] })
355
+ }
356
+ );
357
+ }
358
+ const be = "bkn-workshop", xe = "bkn-agent-retrieval", Ve = ["claude", "cursor", "workbuddy", "generic"], cn = ["oauth", "apiKey"];
359
+ function dn(t) {
360
+ return t === "oauth" ? Ve : Ve.filter((a) => a !== "workbuddy");
361
+ }
362
+ const pn = "bak_";
363
+ function hn(t) {
364
+ const a = t.replace(/\/+$/, "");
365
+ return {
366
+ workshop: `${a}/api/workshop/v1/mcp`,
367
+ network: `${a}/api/agent-retrieval/v1/mcp/`
368
+ };
369
+ }
370
+ function Ue(t) {
371
+ return `Authorization: Bearer ${t}`;
372
+ }
373
+ function un(t, a) {
374
+ const o = (s, g) => a === void 0 ? ["claude mcp add --transport http --scope user \\", ` ${s} ${g}`] : [
375
+ "claude mcp add --transport http --scope user \\",
376
+ ` ${s} ${g} \\`,
377
+ ` --header "${Ue(a)}"`
378
+ ];
379
+ return [
380
+ ...o(be, t.workshop),
381
+ ...o(xe, t.network)
382
+ ].join(`
383
+ `);
384
+ }
385
+ function mn(t, a) {
386
+ const o = (s) => a === void 0 ? { type: "http", url: s } : { type: "http", url: s, headers: { Authorization: `Bearer ${a}` } };
387
+ return JSON.stringify(
388
+ {
389
+ mcpServers: {
390
+ [be]: o(t.workshop),
391
+ [xe]: o(t.network)
392
+ }
393
+ },
394
+ null,
395
+ 2
396
+ );
397
+ }
398
+ function gn(t) {
399
+ const a = t.replace(/\/+$/, "");
400
+ let o = a;
401
+ try {
402
+ o = new URL(a).host;
403
+ } catch {
404
+ }
405
+ return [
406
+ "location /api/ {",
407
+ ` proxy_pass ${a}/api/;`,
408
+ " proxy_ssl_server_name on;",
409
+ ` proxy_set_header Host ${o};`,
410
+ ' proxy_set_header Cookie "";',
411
+ " proxy_buffering off;",
412
+ " proxy_read_timeout 300s;",
413
+ "}"
414
+ ].join(`
415
+ `);
416
+ }
417
+ const bn = /^\d{1,3}(\.\d{1,3}){3}$/;
418
+ function xn(t) {
419
+ let a;
420
+ try {
421
+ a = new URL(t);
422
+ } catch {
423
+ return null;
424
+ }
425
+ if (a.protocol === "http:") return "http";
426
+ if (a.protocol !== "https:") return null;
427
+ const o = a.hostname.toLowerCase();
428
+ return o.startsWith("[") || bn.test(o) || /\.local\.?$/.test(o) ? "selfSigned" : null;
429
+ }
430
+ const $t = "workshop.connectAgent.client", Rt = "workshop.connectAgent.auth";
431
+ function wn() {
432
+ try {
433
+ const t = localStorage.getItem($t);
434
+ return Ve.find((a) => a === t) ?? "claude";
435
+ } catch {
436
+ return "claude";
437
+ }
438
+ }
439
+ function fn(t) {
440
+ try {
441
+ localStorage.setItem($t, t);
442
+ } catch {
443
+ }
444
+ }
445
+ function kn() {
446
+ try {
447
+ const t = localStorage.getItem(Rt);
448
+ return cn.find((a) => a === t) ?? "oauth";
449
+ } catch {
450
+ return "oauth";
451
+ }
452
+ }
453
+ function vn(t) {
454
+ try {
455
+ localStorage.setItem(Rt, t);
456
+ } catch {
457
+ }
458
+ }
459
+ const jn = "_body_1xxio_6", _n = "_scope_1xxio_14", yn = "_can_1xxio_30", Ln = "_cannot_1xxio_34", Nn = "_auth_1xxio_38", On = "_key_1xxio_46", Cn = "_keyError_1xxio_57", Sn = "_code_1xxio_62", In = "_codeHead_1xxio_68", An = "_addresses_1xxio_87", En = "_server_1xxio_91", Tn = "_steps_1xxio_107", $n = "_prompt_1xxio_116", Rn = "_foot_1xxio_120", Mn = "_sections_1xxio_127", Bn = "_contract_1xxio_136", Pn = "_note_1xxio_147", _ = {
460
+ body: jn,
461
+ scope: _n,
462
+ can: yn,
463
+ cannot: Ln,
464
+ auth: Nn,
465
+ key: On,
466
+ keyError: Cn,
467
+ code: Sn,
468
+ codeHead: In,
469
+ addresses: An,
470
+ server: En,
471
+ steps: Tn,
472
+ prompt: $n,
473
+ foot: Rn,
474
+ sections: Mn,
475
+ contract: Bn,
476
+ note: Pn
477
+ }, Mt = () => null;
478
+ function zn() {
479
+ return (Ge()?.useConnectedClients ?? Mt)();
480
+ }
481
+ function Wn() {
482
+ return (Ge()?.useApiKeys ?? Mt)();
483
+ }
484
+ const Fn = {
485
+ claude: "Claude Code",
486
+ cursor: "Cursor",
487
+ workbuddy: "WorkBuddy"
488
+ }, Hn = ["use", "develop", "call", "embed"], Ze = () => Ge()?.gateway?.() ?? window.location.origin;
489
+ function D({ label: t, code: a }) {
490
+ return /* @__PURE__ */ e.jsxs("div", { className: _.code, children: [
491
+ /* @__PURE__ */ e.jsxs("div", { className: _.codeHead, children: [
492
+ /* @__PURE__ */ e.jsx("span", { children: t }),
493
+ /* @__PURE__ */ e.jsx(f.Text, { copyable: { text: a } })
494
+ ] }),
495
+ /* @__PURE__ */ e.jsx("pre", { children: a })
496
+ ] });
497
+ }
498
+ function Bt({ texts: t }) {
499
+ const { t: a } = F();
500
+ return /* @__PURE__ */ e.jsx(e.Fragment, { children: t.map((o) => /* @__PURE__ */ e.jsx(f.Paragraph, { className: _.prompt, copyable: { text: o }, children: a("workshopLab.agents.quoted", { text: o }) }, o)) });
501
+ }
502
+ function Kn({
503
+ open: t,
504
+ section: a = "use",
505
+ onClose: o
506
+ }) {
507
+ const { t: s } = F(), [g, k] = i.useState(a), { token: u } = hs.useToken(), C = {
508
+ "--agent-code-bg": u.colorFillTertiary,
509
+ "--agent-mono": u.fontFamilyCode,
510
+ "--agent-can": u.colorSuccess,
511
+ "--agent-cannot": u.colorTextTertiary
512
+ };
513
+ return /* @__PURE__ */ e.jsx(
514
+ _s,
515
+ {
516
+ open: t,
517
+ onClose: o,
518
+ width: 640,
519
+ title: s(`workshopLab.agents.sections.${g}.title`),
520
+ children: /* @__PURE__ */ e.jsxs("div", { className: _.body, style: C, children: [
521
+ /* @__PURE__ */ e.jsx(
522
+ Je,
523
+ {
524
+ className: _.sections,
525
+ block: !0,
526
+ value: g,
527
+ onChange: k,
528
+ options: Hn.map((r) => ({
529
+ value: r,
530
+ label: s(`workshopLab.agents.sections.${r}.tab`)
531
+ }))
532
+ }
533
+ ),
534
+ g === "use" ? /* @__PURE__ */ e.jsx(Dn, {}) : g === "develop" ? /* @__PURE__ */ e.jsx(qn, {}) : g === "call" ? /* @__PURE__ */ e.jsx(Yn, {}) : /* @__PURE__ */ e.jsx(Zn, {})
535
+ ] })
536
+ }
537
+ );
538
+ }
539
+ function Dn() {
540
+ const { t } = F(), a = hn(Ze()), [o, s] = i.useState(kn), [g, k] = i.useState(wn), [u, C] = i.useState(""), r = zn(), A = Wn(), w = dn(o), c = w.includes(g) ? g : "claude", L = o === "apiKey", b = L ? u.trim() || t("workshopLab.agents.apiKey.placeholder") : void 0, M = L && u.trim() !== "" && !u.trim().startsWith(pn), E = xn(a.workshop), y = (x) => x === "generic" ? t("workshopLab.agents.generic") : Fn[x], N = c === "claude" ? un(a, b) : mn(a, b);
541
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
542
+ /* @__PURE__ */ e.jsx(f.Paragraph, { children: t("workshopLab.agents.intro") }),
543
+ /* @__PURE__ */ e.jsxs("ul", { className: _.scope, children: [
544
+ /* @__PURE__ */ e.jsxs("li", { children: [
545
+ /* @__PURE__ */ e.jsx(us, { className: _.can }),
546
+ /* @__PURE__ */ e.jsx("span", { children: t("workshopLab.agents.can") })
547
+ ] }),
548
+ /* @__PURE__ */ e.jsxs("li", { children: [
549
+ /* @__PURE__ */ e.jsx(Vs, { className: _.cannot }),
550
+ /* @__PURE__ */ e.jsx("span", { children: t("workshopLab.agents.cannot") })
551
+ ] })
552
+ ] }),
553
+ /* @__PURE__ */ e.jsxs("div", { className: _.auth, children: [
554
+ /* @__PURE__ */ e.jsx(
555
+ Je,
556
+ {
557
+ value: o,
558
+ onChange: (x) => {
559
+ s(x), vn(x);
560
+ },
561
+ options: [
562
+ { value: "oauth", label: t("workshopLab.agents.auth.oauth") },
563
+ { value: "apiKey", label: t("workshopLab.agents.auth.apiKey") }
564
+ ]
565
+ }
566
+ ),
567
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: t(`workshopLab.agents.auth.${o}Hint`) })
568
+ ] }),
569
+ L && /* @__PURE__ */ e.jsxs("div", { className: _.key, children: [
570
+ /* @__PURE__ */ e.jsx(
571
+ Ye.Password,
572
+ {
573
+ value: u,
574
+ onChange: (x) => C(x.target.value),
575
+ placeholder: t("workshopLab.agents.apiKey.input"),
576
+ "aria-label": t("workshopLab.agents.auth.apiKey"),
577
+ status: M ? "error" : void 0,
578
+ autoComplete: "off"
579
+ }
580
+ ),
581
+ A && /* @__PURE__ */ e.jsx(f.Link, { onClick: A, children: t("workshopLab.agents.apiKey.issue") })
582
+ ] }),
583
+ M && /* @__PURE__ */ e.jsx(f.Text, { type: "danger", className: _.keyError, children: t("workshopLab.agents.apiKey.invalid") }),
584
+ /* @__PURE__ */ e.jsx(
585
+ ys,
586
+ {
587
+ activeKey: c,
588
+ onChange: (x) => {
589
+ const $ = w.find((h) => h === x) ?? "claude";
590
+ k($), fn($);
591
+ },
592
+ items: w.map((x) => ({ key: x, label: y(x) }))
593
+ }
594
+ ),
595
+ /* @__PURE__ */ e.jsx(
596
+ D,
597
+ {
598
+ label: t(c === "claude" ? "workshopLab.agents.terminal" : "workshopLab.agents.config"),
599
+ code: N
600
+ }
601
+ ),
602
+ c === "generic" && /* @__PURE__ */ e.jsxs("div", { className: _.addresses, children: [
603
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: t("workshopLab.agents.addresses") }),
604
+ [
605
+ ["workshop", be, a.workshop],
606
+ ["network", xe, a.network]
607
+ ].map(([x, $, h]) => /* @__PURE__ */ e.jsxs("div", { className: _.server, children: [
608
+ /* @__PURE__ */ e.jsxs("div", { children: [
609
+ /* @__PURE__ */ e.jsx(f.Text, { strong: !0, children: $ }),
610
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: t(`workshopLab.agents.serverRole.${x}`) })
611
+ ] }),
612
+ /* @__PURE__ */ e.jsx(f.Text, { code: !0, copyable: { text: h }, children: h })
613
+ ] }, x)),
614
+ b !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: _.server, children: [
615
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: t("workshopLab.agents.header") }),
616
+ /* @__PURE__ */ e.jsx(f.Text, { code: !0, copyable: { text: Ue(b) }, children: Ue(b) })
617
+ ] })
618
+ ] }),
619
+ /* @__PURE__ */ e.jsx(f.Text, { strong: !0, children: c === "generic" ? t("workshopLab.agents.stepsHeadingGeneric") : t("workshopLab.agents.stepsHeading", { client: y(c) }) }),
620
+ /* @__PURE__ */ e.jsxs("ol", { className: _.steps, children: [
621
+ L && /* @__PURE__ */ e.jsx("li", { children: t("workshopLab.agents.apiKey.issueStep") }),
622
+ /* @__PURE__ */ e.jsx("li", { children: t(`workshopLab.agents.steps.${c}.copy`) }),
623
+ /* @__PURE__ */ e.jsx("li", { children: L ? t("workshopLab.agents.apiKey.noSignIn") : t(`workshopLab.agents.steps.${c}.signIn`, {
624
+ workshop: be,
625
+ network: xe
626
+ }) }),
627
+ /* @__PURE__ */ e.jsxs("li", { children: [
628
+ t("workshopLab.agents.try"),
629
+ /* @__PURE__ */ e.jsx(
630
+ Bt,
631
+ {
632
+ texts: ["tasks", "analyze"].map(
633
+ (x) => t(`workshopLab.agents.prompts.${x}`)
634
+ )
635
+ }
636
+ )
637
+ ] })
638
+ ] }),
639
+ E && /* @__PURE__ */ e.jsx(
640
+ Ls,
641
+ {
642
+ type: "warning",
643
+ showIcon: !0,
644
+ message: t(
645
+ `workshopLab.agents.concern.${E === "http" && L ? "httpKey" : E}`
646
+ )
647
+ }
648
+ ),
649
+ r && !L && /* @__PURE__ */ e.jsx("div", { className: _.foot, children: /* @__PURE__ */ e.jsx(f.Link, { onClick: r, children: t("workshopLab.agents.connectedClients") }) })
650
+ ] });
651
+ }
652
+ const Vn = "npm install -g @openbkn/workshop @openbkn/bkn-sdk", Un = ["workshop list", "workshop pull <app>", "workshop dev"];
653
+ function qn() {
654
+ const { t } = F(), a = (o, s) => t(`workshopLab.agents.develop.${o}`, s);
655
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
656
+ /* @__PURE__ */ e.jsx(f.Paragraph, { children: a("intro") }),
657
+ /* @__PURE__ */ e.jsxs("ol", { className: _.steps, children: [
658
+ /* @__PURE__ */ e.jsxs("li", { children: [
659
+ a("install"),
660
+ /* @__PURE__ */ e.jsx(
661
+ D,
662
+ {
663
+ label: t("workshopLab.agents.terminal"),
664
+ code: `${Vn}
665
+ workshop skill add`
666
+ }
667
+ ),
668
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: a("skill") })
669
+ ] }),
670
+ /* @__PURE__ */ e.jsxs("li", { children: [
671
+ a("signIn"),
672
+ /* @__PURE__ */ e.jsx(
673
+ D,
674
+ {
675
+ label: t("workshopLab.agents.terminal"),
676
+ code: `openbkn auth login ${Ze()}`
677
+ }
678
+ )
679
+ ] }),
680
+ /* @__PURE__ */ e.jsxs("li", { children: [
681
+ a("ask"),
682
+ /* @__PURE__ */ e.jsx(Bt, { texts: [a("prompts.create"), a("prompts.change")] })
683
+ ] }),
684
+ /* @__PURE__ */ e.jsxs("li", { children: [
685
+ a("commands"),
686
+ /* @__PURE__ */ e.jsx(
687
+ D,
688
+ {
689
+ label: t("workshopLab.agents.terminal"),
690
+ code: Un.map((o) => o.replace("<app>", a("appPlaceholder"))).join(
691
+ `
692
+ `
693
+ )
694
+ }
695
+ ),
696
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: a("publish") })
697
+ ] })
698
+ ] })
699
+ ] });
700
+ }
701
+ function Yn() {
702
+ const { t } = F(), a = (s) => t(`workshopLab.agents.call.${s}`), o = (s) => t(`workshopLab.config.mcpTool.${s}`);
703
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
704
+ /* @__PURE__ */ e.jsx(f.Paragraph, { children: a("intro") }),
705
+ /* @__PURE__ */ e.jsxs("ol", { className: _.steps, children: [
706
+ /* @__PURE__ */ e.jsx("li", { children: a("register") }),
707
+ /* @__PURE__ */ e.jsxs("li", { children: [
708
+ a("pick"),
709
+ /* @__PURE__ */ e.jsx(f.Paragraph, { type: "secondary", className: _.note, children: a("passToken") })
710
+ ] }),
711
+ /* @__PURE__ */ e.jsxs("li", { children: [
712
+ a("contract"),
713
+ /* @__PURE__ */ e.jsxs("div", { className: _.contract, children: [
714
+ /* @__PURE__ */ e.jsx(f.Text, { children: o("contractIntro") }),
715
+ /* @__PURE__ */ e.jsx("ul", { children: Ns.map((s) => /* @__PURE__ */ e.jsxs("li", { children: [
716
+ /* @__PURE__ */ e.jsx(f.Text, { code: !0, children: s }),
717
+ " ",
718
+ t(`workshopLab.config.mcpTool.params.${s}`)
719
+ ] }, s)) }),
720
+ /* @__PURE__ */ e.jsx(f.Text, { children: o("contractOutput") })
721
+ ] })
722
+ ] })
723
+ ] })
724
+ ] });
725
+ }
726
+ const Gn = "npm install @openbkn/workshop", Jn = "node node_modules/@openbkn/workshop/example/server.mjs", Xn = (t) => [
727
+ 'import { mountWorkshop } from "@openbkn/workshop";',
728
+ 'import "@openbkn/workshop/style.css";',
729
+ "",
730
+ 'const workshop = mountWorkshop(document.getElementById("workshop"), {',
731
+ ' apiBase: "/api",',
732
+ " getToken: () => currentToken(),",
733
+ " refreshToken: () => signIn(),",
734
+ ' locale: "zh-CN",',
735
+ ` place: { page: "run", appId: "${t}" },`,
736
+ " onNavigate: (place) => (location.hash = hashOf(place)),",
737
+ " href: (place) => hashOf(place),",
738
+ "});",
739
+ "",
740
+ 'addEventListener("hashchange", () => workshop.show(placeOf(location.hash)));'
741
+ ].join(`
742
+ `);
743
+ function Zn() {
744
+ const { t } = F(), a = (s) => t(`workshopLab.agents.embed.${s}`), o = Ze();
745
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
746
+ /* @__PURE__ */ e.jsx(f.Paragraph, { children: a("intro") }),
747
+ /* @__PURE__ */ e.jsxs("ol", { className: _.steps, children: [
748
+ /* @__PURE__ */ e.jsxs("li", { children: [
749
+ a("install"),
750
+ /* @__PURE__ */ e.jsx(D, { label: t("workshopLab.agents.terminal"), code: Gn })
751
+ ] }),
752
+ /* @__PURE__ */ e.jsxs("li", { children: [
753
+ a("mount"),
754
+ /* @__PURE__ */ e.jsx(D, { label: a("page"), code: Xn(a("appPlaceholder")) }),
755
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: a("mountNote") }),
756
+ /* @__PURE__ */ e.jsx(f.Paragraph, { type: "secondary", className: _.note, children: a("styles") })
757
+ ] }),
758
+ /* @__PURE__ */ e.jsxs("li", { children: [
759
+ a("proxy"),
760
+ /* @__PURE__ */ e.jsx(D, { label: "nginx", code: gn(o) }),
761
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: a("proxyNote") })
762
+ ] }),
763
+ /* @__PURE__ */ e.jsx("li", { children: a("token") }),
764
+ /* @__PURE__ */ e.jsxs("li", { children: [
765
+ a("example"),
766
+ /* @__PURE__ */ e.jsx(
767
+ D,
768
+ {
769
+ label: t("workshopLab.agents.terminal"),
770
+ code: `openbkn auth login ${o}
771
+ ${Jn}`
772
+ }
773
+ ),
774
+ /* @__PURE__ */ e.jsx(f.Text, { type: "secondary", children: a("exampleNote") })
775
+ ] })
776
+ ] })
777
+ ] });
778
+ }
779
+ function Qn(t, a, o, s = "all") {
780
+ const g = a.trim().toLowerCase();
781
+ return t.filter(
782
+ (k) => (o === "all" || Xe(k).some((u) => u.id === o)) && (s === "all" || (k.tags ?? []).includes(s)) && (!g || `${k.name}
783
+ ${k.description ?? ""}`.toLowerCase().includes(g))
784
+ );
785
+ }
786
+ function Pt(t, a) {
787
+ return a === "all" || t.workspaceId === a;
788
+ }
789
+ function ge(t, a) {
790
+ return t.creator !== "" && t.creator !== a;
791
+ }
792
+ const It = (t, a, o) => t === "all" || t === "shared" === ge(a, o);
793
+ function eo(t, a, o, s, g) {
794
+ const k = o.keyword.trim().toLowerCase(), u = o.kind === "analysis" || o.kind === "whatif" ? [] : Qn(t, o.keyword, o.network, o.tag).filter(
795
+ (c) => It(o.owner, c, o.me) && Pt(c, o.workspace ?? "all")
796
+ ).map((c) => ({ kind: "app", id: c.id, app: c })), C = o.kind === "app" || o.tag !== "all" ? [] : a.filter(
797
+ (c) => (o.kind === "all" || (c.kind ?? "analysis") === o.kind) && (o.network === "all" || c.knId === o.network) && It(o.owner, c, o.me) && (!k || c.name.toLowerCase().includes(k))
798
+ ).map((c) => ({ kind: "analysis", id: c.id, analysis: c })), r = (c) => c.kind === "app" ? c.app.name : c.analysis.name, A = (c) => c.kind === "app" ? c.app.updatedAt : c.analysis.updatedAt, w = g === "asc" ? 1 : -1;
799
+ return [...u, ...C].sort(
800
+ (c, L) => w * (s === "name" ? r(c).localeCompare(r(L)) : A(c) - A(L))
801
+ );
802
+ }
803
+ const to = "_page_vgc0a_10", so = "_titleBar_vgc0a_20", ao = "_title_vgc0a_20", no = "_switcher_vgc0a_35", oo = "_switcherLabel_vgc0a_42", ro = "_switcherName_vgc0a_46", lo = "_toolbar_vgc0a_53", io = "_hint_vgc0a_62", co = "_toolbarSpacer_vgc0a_68", po = "_toolbarRight_vgc0a_72", ho = "_searchInput_vgc0a_79", uo = "_searchIcon_vgc0a_88", mo = "_filterLabel_vgc0a_92", go = "_filterSelect_vgc0a_98", bo = "_iconButton_vgc0a_106", xo = "_toolbarButton_vgc0a_125", wo = "_grid_vgc0a_130", fo = "_empty_vgc0a_138", ko = "_card_vgc0a_145", vo = "_header_vgc0a_177", jo = "_titleRow_vgc0a_185", _o = "_iconBox_vgc0a_192", yo = "_titleContent_vgc0a_206", Lo = "_name_vgc0a_213", No = "_meta_vgc0a_223", Oo = "_description_vgc0a_230", Co = "_state_vgc0a_245", So = "_createItem_vgc0a_259", Io = "_createIcon_vgc0a_267", Ao = "_createHint_vgc0a_282", Eo = "_moreButton_vgc0a_287", To = "_footer_vgc0a_307", $o = "_metaItem_vgc0a_320", Ro = "_footerLeft_vgc0a_328", Mo = "_footerRight_vgc0a_332", Bo = "_metaText_vgc0a_336", Po = "_tabWithBadge_vgc0a_349", zo = "_betaBadge_vgc0a_356", l = {
804
+ page: to,
805
+ titleBar: so,
806
+ title: ao,
807
+ switcher: no,
808
+ switcherLabel: oo,
809
+ switcherName: ro,
810
+ toolbar: lo,
811
+ hint: io,
812
+ toolbarSpacer: co,
813
+ toolbarRight: po,
814
+ searchInput: ho,
815
+ searchIcon: uo,
816
+ filterLabel: mo,
817
+ filterSelect: go,
818
+ iconButton: bo,
819
+ toolbarButton: xo,
820
+ grid: wo,
821
+ empty: fo,
822
+ card: ko,
823
+ header: vo,
824
+ titleRow: jo,
825
+ iconBox: _o,
826
+ titleContent: yo,
827
+ name: Lo,
828
+ meta: No,
829
+ description: Oo,
830
+ state: Co,
831
+ createItem: So,
832
+ createIcon: Io,
833
+ createHint: Ao,
834
+ moreButton: Eo,
835
+ footer: To,
836
+ metaItem: $o,
837
+ footerLeft: Ro,
838
+ footerRight: Mo,
839
+ metaText: Bo,
840
+ tabWithBadge: Po,
841
+ betaBadge: zo
842
+ }, Wo = [], Re = (t) => t.kind ?? "analysis", Fo = [
843
+ { key: "use", icon: /* @__PURE__ */ e.jsx(Ts, {}) },
844
+ { key: "develop", icon: /* @__PURE__ */ e.jsx(ma, {}) },
845
+ { key: "call", icon: /* @__PURE__ */ e.jsx($s, {}) },
846
+ { key: "embed", icon: /* @__PURE__ */ e.jsx(Pa, {}) }
847
+ ];
848
+ async function Ho(t, a) {
849
+ const o = await zs(t.id);
850
+ if (!o) return !1;
851
+ const s = o.draft ? { ...o, draft: await sa(o.draft) } : o;
852
+ let g, k;
853
+ if (a === "zip") {
854
+ const r = await aa(
855
+ s,
856
+ (A) => Fs(t.id, A)
857
+ );
858
+ if (!r) return !1;
859
+ g = new Blob([r.bytes], { type: "application/zip" }), k = r.name;
860
+ } else {
861
+ const r = na(s);
862
+ if (!r) return !1;
863
+ g = new Blob([r.text], { type: "application/yaml" }), k = r.name;
864
+ }
865
+ const u = URL.createObjectURL(g), C = document.createElement("a");
866
+ return C.href = u, C.download = k, C.click(), URL.revokeObjectURL(u), !0;
867
+ }
868
+ const zt = "workshop-lab.network";
869
+ function Ko() {
870
+ try {
871
+ return window.localStorage.getItem(zt);
872
+ } catch {
873
+ return null;
874
+ }
875
+ }
876
+ function Do(t) {
877
+ try {
878
+ window.localStorage.setItem(zt, t);
879
+ } catch {
880
+ }
881
+ }
882
+ const Wt = "workshop-lab.workspace";
883
+ function Vo() {
884
+ try {
885
+ return window.localStorage.getItem(Wt) ?? "all";
886
+ } catch {
887
+ return "all";
888
+ }
889
+ }
890
+ function Uo(t) {
891
+ try {
892
+ window.localStorage.setItem(Wt, t);
893
+ } catch {
894
+ }
895
+ }
896
+ const Ft = "workshop-lab.view";
897
+ function qo() {
898
+ try {
899
+ return window.localStorage.getItem(Ft);
900
+ } catch {
901
+ return null;
902
+ }
903
+ }
904
+ function Yo(t) {
905
+ try {
906
+ window.localStorage.setItem(Ft, t);
907
+ } catch {
908
+ }
909
+ }
910
+ function er({
911
+ analyses: t,
912
+ samples: a,
913
+ titled: o = !0
914
+ }) {
915
+ const { t: s, i18n: g } = F(), k = At(), [u, C] = i.useState([]), [r, A] = i.useState("loading"), [w, c] = i.useState(!1), [L, b] = i.useState(null), [M, E] = i.useState(null), { message: y, modal: N } = qe(), x = Ds() ?? "", { ShareDrawer: $ } = ms(), h = i.useRef(/* @__PURE__ */ new Set()), d = i.useCallback(async () => {
916
+ try {
917
+ const n = await Os();
918
+ C(n.filter((p) => !h.current.has(p.id))), A("ready");
919
+ } catch {
920
+ A((n) => n === "ready" ? n : "error");
921
+ }
922
+ }, []);
923
+ i.useEffect(() => {
924
+ d();
925
+ }, [d]);
926
+ const [v, B] = i.useState(null), we = i.useCallback(async () => {
927
+ try {
928
+ B(await Cs());
929
+ } catch {
930
+ }
931
+ }, []);
932
+ i.useEffect(() => {
933
+ we();
934
+ }, [we]);
935
+ const [Qe, Ht] = i.useState(Vo), P = v?.some((n) => n.id === Qe) ? Qe : "all", Kt = (n) => {
936
+ Ht(n), Uo(n);
937
+ }, ee = v?.find((n) => n.id === P), Z = (n) => n.isDefault ? s("workshopLab.workspace.default") : n.name, [et, se] = i.useState(null), Dt = async (n, p) => {
938
+ try {
939
+ await Ws(n.id, p.id), ft(n.id), C(
940
+ (m) => m.map((R) => R.id === n.id ? { ...R, workspaceId: p.id } : R)
941
+ ), y.success(s("workshopLab.workspace.moved", { name: Z(p) }));
942
+ } catch (m) {
943
+ y.error(De(m, s)), await d();
944
+ }
945
+ }, tt = P === "all" ? void 0 : P, st = async (n) => {
946
+ try {
947
+ await n();
948
+ } catch (p) {
949
+ y.error(te(p, s));
950
+ }
951
+ await d();
952
+ }, Vt = async (n) => {
953
+ await Ks(n), h.current.add(n), C((p) => p.filter((m) => m.id !== n));
954
+ }, [fe, at] = i.useState(null), Q = t !== void 0, z = t?.items ?? Wo, [ke, Ut] = i.useState("all"), [ve, je] = i.useState(null), H = Ss(), K = H.status === "ready" ? H.networks : [], nt = K.find((n) => n.id === Ko())?.id ?? K[0]?.id, [qt, ot] = i.useState(!1), Yt = async (n) => {
955
+ ot(!0);
956
+ try {
957
+ let p;
958
+ try {
959
+ p = await qs(n);
960
+ } catch (O) {
961
+ const J = Ys(O, s);
962
+ if (!J) throw O;
963
+ N.error({ title: s("workshopLab.list.importFailed"), content: J });
964
+ return;
965
+ }
966
+ const m = p.packages.map(Gs).filter((O) => O !== null);
967
+ let R = [];
968
+ const Y = await Js(
969
+ p.text,
970
+ K,
971
+ (O) => Rs(O.id, O.name),
972
+ async (O) => {
973
+ R = await Ms(O.components, m, g?.language ?? "zh-CN");
974
+ }
975
+ );
976
+ if (R.length > 0) {
977
+ N.error({
978
+ title: s("workshopLab.list.importFailed"),
979
+ content: s("workshopLab.list.importMissingPackages", { types: R.join(", ") })
980
+ });
981
+ return;
982
+ }
983
+ if (!Y.ok) {
984
+ N.error({
985
+ title: s("workshopLab.list.importFailed"),
986
+ content: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
987
+ /* @__PURE__ */ e.jsx("ul", { children: Y.errors.slice(0, 8).map((O) => /* @__PURE__ */ e.jsx("li", { children: O }, O)) }),
988
+ Y.refit && /* @__PURE__ */ e.jsx("p", { children: s("workshopLab.list.importAiHint") })
989
+ ] })
990
+ });
991
+ return;
992
+ }
993
+ const I = await Xs(Y.spec), G = await wt(
994
+ Y.spec.app.name,
995
+ Y.network,
996
+ I.spec,
997
+ { description: Y.spec.app.description },
998
+ tt
999
+ ), { uploaded: ds, failed: Ae } = await Zs(
1000
+ p.packages,
1001
+ (O) => Bs(G.id, O)
1002
+ ), mt = Qs(I.spec, ds);
1003
+ if (JSON.stringify(mt.components) !== JSON.stringify(I.spec.components) && await Ps(G.id, mt, G.revision), await d(), Ae.length > 0 ? y.warning(
1004
+ s("workshopLab.list.importPackagesFailed", {
1005
+ name: G.name,
1006
+ count: Ae.length,
1007
+ names: Ae.map(({ folder: O, error: J }) => `${O} (${te(J, s)})`).join("; ")
1008
+ })
1009
+ ) : I.missing.length === 0 && !I.unchecked && y.success(
1010
+ I.moved.length > 0 ? s("workshopLab.list.importedToolsMoved", {
1011
+ name: G.name,
1012
+ count: I.moved.length
1013
+ }) : s("workshopLab.list.imported", { name: G.name })
1014
+ ), I.missing.length > 0 || I.unchecked) {
1015
+ const O = (g?.language ?? "zh-CN").startsWith("zh");
1016
+ N.warning({
1017
+ title: s(
1018
+ I.missing.length > 0 ? "workshopLab.list.importedToolsMissing" : "workshopLab.list.imported",
1019
+ { name: G.name }
1020
+ ),
1021
+ content: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1022
+ I.moved.length > 0 && /* @__PURE__ */ e.jsx("p", { children: s("workshopLab.importTools.movedCount", { count: I.moved.length }) }),
1023
+ I.missing.length > 0 && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1024
+ /* @__PURE__ */ e.jsx("p", { children: s("workshopLab.importTools.missing", { count: I.missing.length }) }),
1025
+ /* @__PURE__ */ e.jsx("ul", { children: I.missing.map((J) => /* @__PURE__ */ e.jsx("li", { children: ea(J, s, (ps) => ps.join(O ? "、" : ", ")) }, J.name)) }),
1026
+ /* @__PURE__ */ e.jsx("p", { children: s("workshopLab.importTools.missingHint") })
1027
+ ] }),
1028
+ I.unchecked && /* @__PURE__ */ e.jsx("p", { children: s("workshopLab.importTools.unchecked") })
1029
+ ] })
1030
+ });
1031
+ }
1032
+ } catch (p) {
1033
+ y.error(te(p, s));
1034
+ } finally {
1035
+ ot(!1);
1036
+ }
1037
+ }, _e = Is(H, nt), { reload: ye } = H, Gt = () => {
1038
+ ye(), c(!0);
1039
+ }, Jt = (n) => {
1040
+ ye(), b(n);
1041
+ }, Xt = (n) => {
1042
+ ye(), je(n);
1043
+ }, [rt, Zt] = i.useState("all"), lt = i.useMemo(() => [...new Set(u.flatMap((n) => n.tags ?? []))].sort(), [u]), [Le, Qt] = i.useState(""), [it, es] = i.useState("all"), [ae, ts] = i.useState({
1044
+ by: "updatedAt",
1045
+ direction: "desc"
1046
+ }), Ne = i.useMemo(() => {
1047
+ const n = new Map(
1048
+ u.flatMap(
1049
+ (m) => Et(Xe(m), K).map((R) => [R.id, R.name])
1050
+ )
1051
+ ), p = new Map(K.map((m) => [m.id, m.name]));
1052
+ for (const m of z)
1053
+ n.has(m.knId) || n.set(m.knId, p.get(m.knId) ?? m.knId);
1054
+ return [...n].map(([m, R]) => ({ id: m, name: R }));
1055
+ }, [z, u, K]), ss = (n) => Ne.find((p) => p.id === n)?.name ?? n, Oe = lt.includes(rt) ? rt : "all", Ce = Ne.some((n) => n.id === it) ? it : "all", as = r === "ready" && u.length === 0 && z.length === 0, [ct, dt] = i.useState(() => {
1056
+ const n = qo();
1057
+ return n === "apps" || (n === "analyses" || n === "whatifs") && Q || n === "samples" && a ? n : null;
1058
+ }), ns = (n) => {
1059
+ dt(n), Yo(n);
1060
+ }, os = H.status === "ready" && K.length === 0, rs = r !== "loading" && H.status !== "loading" && t?.status !== "loading";
1061
+ (a || Q) && ct === null && rs && dt(
1062
+ a && (as || os) ? "samples" : Q && u.length === 0 && z.length > 0 ? z.some((n) => Re(n) === "analysis") ? "analyses" : "whatifs" : "apps"
1063
+ );
1064
+ const W = ct ?? (a ? null : "apps"), q = W === "whatifs", S = W === "analyses" || q, ne = q ? "whatif" : "analysis", pt = i.useMemo(
1065
+ () => eo(
1066
+ u,
1067
+ z,
1068
+ {
1069
+ keyword: Le,
1070
+ network: Ce,
1071
+ // Tags belong to apps; the analyses tab hides the tag filter, so it must not narrow it.
1072
+ tag: S ? "all" : Oe,
1073
+ kind: S ? ne : "app",
1074
+ owner: ke,
1075
+ me: x,
1076
+ // Analyses go in no workspace.
1077
+ workspace: S ? "all" : P
1078
+ },
1079
+ ae.by,
1080
+ ae.direction
1081
+ ),
1082
+ [
1083
+ z,
1084
+ u,
1085
+ Le,
1086
+ x,
1087
+ Ce,
1088
+ S,
1089
+ ne,
1090
+ ke,
1091
+ Oe,
1092
+ ae,
1093
+ P
1094
+ ]
1095
+ ), ls = !S && P !== "all" && !u.some((n) => Pt(n, P)), is = (n) => {
1096
+ if (P !== "all" || !v || v.length < 2) return;
1097
+ const p = v.find((m) => m.id === n.workspaceId);
1098
+ return p && Z(p);
1099
+ }, Se = (n) => S ? /* @__PURE__ */ e.jsx(
1100
+ T,
1101
+ {
1102
+ type: "primary",
1103
+ className: n,
1104
+ icon: /* @__PURE__ */ e.jsx(ue, {}),
1105
+ onClick: () => Jt(ne),
1106
+ children: s(q ? "workshopLab.analysis.createWhatif" : "workshopLab.analysis.createAnalysis")
1107
+ }
1108
+ ) : /* @__PURE__ */ e.jsx(T, { type: "primary", className: n, icon: /* @__PURE__ */ e.jsx(ue, {}), onClick: Gt, children: s("workshopLab.list.create") }), cs = {
1109
+ items: Fo.flatMap(({ key: n, icon: p }) => [
1110
+ ...n === "embed" ? [{ type: "divider" }] : [],
1111
+ {
1112
+ key: n,
1113
+ label: /* @__PURE__ */ e.jsxs("div", { className: l.createItem, children: [
1114
+ /* @__PURE__ */ e.jsx("span", { className: l.createIcon, children: p }),
1115
+ /* @__PURE__ */ e.jsxs("div", { children: [
1116
+ /* @__PURE__ */ e.jsx("div", { children: s(`workshopLab.agents.sections.${n}.title`) }),
1117
+ /* @__PURE__ */ e.jsx("div", { className: l.createHint, children: s(`workshopLab.agents.sections.${n}.hint`) })
1118
+ ] })
1119
+ ] })
1120
+ }
1121
+ ]),
1122
+ onClick: ({ key: n }) => E(n)
1123
+ }, Ie = [
1124
+ {
1125
+ value: "apps",
1126
+ label: s(Q ? "workshopLab.analysis.tabApps" : "workshopLab.list.tabApps")
1127
+ },
1128
+ ...Q ? [
1129
+ { value: "analyses", label: s("workshopLab.analysis.kind") },
1130
+ {
1131
+ value: "whatifs",
1132
+ label: /* @__PURE__ */ e.jsxs("span", { className: l.tabWithBadge, children: [
1133
+ /* @__PURE__ */ e.jsx("span", { children: s("workshopLab.analysis.tabWhatif") }),
1134
+ /* @__PURE__ */ e.jsx("span", { className: l.betaBadge, "data-testid": "whatif-beta", children: s("workshopLab.analysis.beta") })
1135
+ ] })
1136
+ }
1137
+ ] : [],
1138
+ ...a ? [{ value: "samples", label: s("workshopLab.list.tabSamples") }] : []
1139
+ ], ht = W === "apps" && v ? /* @__PURE__ */ e.jsx(
1140
+ me,
1141
+ {
1142
+ trigger: ["click"],
1143
+ menu: {
1144
+ selectable: !0,
1145
+ selectedKeys: [P],
1146
+ items: [
1147
+ { key: "all", label: s("workshopLab.workspace.all") },
1148
+ ...v.map((n) => ({ key: n.id, label: Z(n) })),
1149
+ { type: "divider" },
1150
+ { key: "create", icon: /* @__PURE__ */ e.jsx(ue, {}), label: s("workshopLab.workspace.create") },
1151
+ { key: "manage", label: s("workshopLab.workspace.manage") }
1152
+ ],
1153
+ onClick: ({ key: n }) => {
1154
+ n === "create" ? se(X) : n === "manage" ? se(P === "all" ? v[0]?.id ?? X : P) : Kt(n);
1155
+ }
1156
+ },
1157
+ children: /* @__PURE__ */ e.jsxs(T, { className: l.switcher, icon: /* @__PURE__ */ e.jsx(Tt, {}), children: [
1158
+ /* @__PURE__ */ e.jsx("span", { className: l.switcherLabel, children: s("workshopLab.workspace.label") }),
1159
+ /* @__PURE__ */ e.jsx("span", { className: l.switcherName, children: ee ? Z(ee) : s("workshopLab.workspace.all") }),
1160
+ /* @__PURE__ */ e.jsx(gt, {})
1161
+ ] })
1162
+ }
1163
+ ) : null, ut = o || Ie.length > 1 && W || ht ? /* @__PURE__ */ e.jsxs("div", { className: l.titleBar, children: [
1164
+ o ? /* @__PURE__ */ e.jsx("h2", { className: l.title, children: s("workshopLab.list.title") }) : null,
1165
+ ht,
1166
+ Ie.length > 1 && W ? /* @__PURE__ */ e.jsx(Je, { value: W, onChange: ns, options: Ie }) : null
1167
+ ] }) : null;
1168
+ return W === null || W === "samples" ? /* @__PURE__ */ e.jsxs("div", { className: l.page, children: [
1169
+ ut,
1170
+ W === "samples" ? a : /* @__PURE__ */ e.jsx("div", { className: l.empty, children: /* @__PURE__ */ e.jsx(xt, {}) })
1171
+ ] }) : /* @__PURE__ */ e.jsxs("div", { className: l.page, children: [
1172
+ ut,
1173
+ /* @__PURE__ */ e.jsxs("div", { className: l.toolbar, children: [
1174
+ Se(l.toolbarButton),
1175
+ S ? null : /* @__PURE__ */ e.jsx(
1176
+ Us,
1177
+ {
1178
+ accept: ".zip,.yaml,.yml,.json",
1179
+ showUploadList: !1,
1180
+ disabled: H.status !== "ready",
1181
+ beforeUpload: (n) => (Yt(n), !1),
1182
+ children: /* @__PURE__ */ e.jsx(
1183
+ T,
1184
+ {
1185
+ className: l.toolbarButton,
1186
+ icon: /* @__PURE__ */ e.jsx(Ta, {}),
1187
+ loading: qt,
1188
+ disabled: H.status !== "ready",
1189
+ children: s("workshopLab.list.import")
1190
+ }
1191
+ )
1192
+ }
1193
+ ),
1194
+ S ? null : /* @__PURE__ */ e.jsx(me, { trigger: ["click"], menu: cs, children: /* @__PURE__ */ e.jsxs(T, { className: l.toolbarButton, icon: /* @__PURE__ */ e.jsx(As, {}), children: [
1195
+ s("workshopLab.agents.open"),
1196
+ " ",
1197
+ /* @__PURE__ */ e.jsx(gt, {})
1198
+ ] }) }),
1199
+ /* @__PURE__ */ e.jsx("span", { className: l.toolbarSpacer }),
1200
+ /* @__PURE__ */ e.jsxs("div", { className: l.toolbarRight, children: [
1201
+ /* @__PURE__ */ e.jsx(
1202
+ Ye,
1203
+ {
1204
+ allowClear: !0,
1205
+ className: l.searchInput,
1206
+ placeholder: s("workshopLab.list.searchPlaceholder"),
1207
+ prefix: /* @__PURE__ */ e.jsx(Es, { className: l.searchIcon }),
1208
+ value: Le,
1209
+ onChange: (n) => Qt(n.target.value)
1210
+ }
1211
+ ),
1212
+ Q ? /* @__PURE__ */ e.jsx(
1213
+ Ee,
1214
+ {
1215
+ className: l.filterSelect,
1216
+ value: ke,
1217
+ onChange: Ut,
1218
+ "aria-label": s("workshopLab.analysis.ownerFilter"),
1219
+ options: [
1220
+ { value: "all", label: s("workshopLab.analysis.ownerAll") },
1221
+ { value: "mine", label: s("workshopLab.analysis.ownerMine") },
1222
+ { value: "shared", label: s("workshopLab.analysis.ownerShared") }
1223
+ ]
1224
+ }
1225
+ ) : null,
1226
+ S ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1227
+ /* @__PURE__ */ e.jsx("span", { className: l.filterLabel, children: s("workshopLab.list.tagsLabel") }),
1228
+ /* @__PURE__ */ e.jsx(
1229
+ Ee,
1230
+ {
1231
+ className: l.filterSelect,
1232
+ value: Oe,
1233
+ onChange: Zt,
1234
+ options: [
1235
+ { value: "all", label: s("workshopLab.list.allNetworks") },
1236
+ ...lt.map((n) => ({ value: n, label: n }))
1237
+ ]
1238
+ }
1239
+ )
1240
+ ] }),
1241
+ /* @__PURE__ */ e.jsx("span", { className: l.filterLabel, children: s("workshopLab.list.networkFilter") }),
1242
+ /* @__PURE__ */ e.jsx(
1243
+ Ee,
1244
+ {
1245
+ className: l.filterSelect,
1246
+ value: Ce,
1247
+ onChange: es,
1248
+ options: [
1249
+ { value: "all", label: s("workshopLab.list.allNetworks") },
1250
+ ...Ne.map((n) => ({ value: n.id, label: n.name }))
1251
+ ]
1252
+ }
1253
+ ),
1254
+ /* @__PURE__ */ e.jsx(
1255
+ me,
1256
+ {
1257
+ trigger: ["click"],
1258
+ menu: {
1259
+ selectable: !0,
1260
+ selectedKeys: [ae.by],
1261
+ items: [
1262
+ { key: "updatedAt", label: s("workshopLab.list.sortByUpdated") },
1263
+ { key: "name", label: s("workshopLab.list.sortByName") }
1264
+ ],
1265
+ onClick: ({ key: n }) => {
1266
+ const p = n;
1267
+ ts((m) => ({
1268
+ by: p,
1269
+ direction: p === m.by && m.direction === "desc" ? "asc" : "desc"
1270
+ }));
1271
+ }
1272
+ },
1273
+ children: /* @__PURE__ */ e.jsx(
1274
+ "button",
1275
+ {
1276
+ type: "button",
1277
+ className: l.iconButton,
1278
+ "aria-label": s("workshopLab.list.sort"),
1279
+ children: /* @__PURE__ */ e.jsx(Ka, {})
1280
+ }
1281
+ )
1282
+ }
1283
+ )
1284
+ ] })
1285
+ ] }),
1286
+ /* @__PURE__ */ e.jsx("p", { className: l.hint, children: s(q ? "workshopLab.analysis.whatifHint" : S ? "workshopLab.analysis.hint" : "workshopLab.list.hint") }),
1287
+ !S && ee?.defaultAgent ? /* @__PURE__ */ e.jsxs("p", { className: l.hint, children: [
1288
+ s("workshopLab.workspace.agentHint", { name: ee.defaultAgent.mcpName }),
1289
+ " ",
1290
+ /* @__PURE__ */ e.jsx(T, { type: "link", size: "small", onClick: () => se(ee.id), children: s("workshopLab.workspace.agentEdit") })
1291
+ ] }) : null,
1292
+ !S && r === "error" ? /* @__PURE__ */ e.jsxs("p", { className: l.hint, children: [
1293
+ s("workshopLab.store.listFailed"),
1294
+ " ",
1295
+ /* @__PURE__ */ e.jsx(T, { type: "link", size: "small", onClick: () => {
1296
+ d();
1297
+ }, children: s("workshopLab.store.retry") })
1298
+ ] }) : null,
1299
+ S && t?.status === "error" ? /* @__PURE__ */ e.jsxs("p", { className: l.hint, children: [
1300
+ s(q ? "workshopLab.analysis.whatifLoadFailed" : "workshopLab.analysis.loadFailed"),
1301
+ " ",
1302
+ /* @__PURE__ */ e.jsx(T, { type: "link", size: "small", onClick: () => {
1303
+ t.reload();
1304
+ }, children: s("workshopLab.analysis.retry") })
1305
+ ] }) : null,
1306
+ (S ? t?.status === "loading" : r === "loading") ? /* @__PURE__ */ e.jsx("div", { className: l.empty, children: /* @__PURE__ */ e.jsx(xt, {}) }) : (S ? !z.some((n) => Re(n) === ne) : u.length === 0 && r === "ready") ? /* @__PURE__ */ e.jsx("div", { className: l.empty, children: /* @__PURE__ */ e.jsx(
1307
+ Te,
1308
+ {
1309
+ description: s(q ? "workshopLab.analysis.whatifEmpty" : S ? "workshopLab.analysis.empty" : "workshopLab.list.empty"),
1310
+ children: Se()
1311
+ }
1312
+ ) }) : ls ? /* @__PURE__ */ e.jsx("div", { className: l.empty, children: /* @__PURE__ */ e.jsx(Te, { description: s("workshopLab.workspace.empty"), children: Se() }) }) : pt.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: l.empty, children: /* @__PURE__ */ e.jsx(
1313
+ Te,
1314
+ {
1315
+ description: s(q ? "workshopLab.analysis.whatifNoMatch" : S ? "workshopLab.analysis.noMatch" : "workshopLab.list.noMatch")
1316
+ }
1317
+ ) }) : /* @__PURE__ */ e.jsx("div", { className: l.grid, children: pt.map(
1318
+ (n) => n.kind === "app" ? /* @__PURE__ */ e.jsx(
1319
+ Go,
1320
+ {
1321
+ app: n.app,
1322
+ networks: K,
1323
+ sharedWithMe: ge(n.app, x),
1324
+ workspaceName: is(n.app),
1325
+ workspaces: v ?? [],
1326
+ nameOfWorkspace: Z,
1327
+ onMove: (p) => {
1328
+ Dt(n.app, p);
1329
+ },
1330
+ onOpen: () => (
1331
+ // Building it needs modify; one shared to use opens as its users see it.
1332
+ k.go({
1333
+ page: n.app.operations.includes("modify") ? "builder" : "run",
1334
+ appId: n.app.id
1335
+ })
1336
+ ),
1337
+ canShare: $ !== void 0,
1338
+ onEdit: () => Xt(n.app),
1339
+ onShare: () => at(n.app),
1340
+ onExport: (p) => {
1341
+ Ho(n.app, p).then((m) => {
1342
+ m || y.info(s("workshopLab.list.exportBlank"));
1343
+ }).catch((m) => {
1344
+ y.error(te(m, s));
1345
+ });
1346
+ },
1347
+ onDelete: () => st(() => Vt(n.app.id))
1348
+ },
1349
+ n.id
1350
+ ) : /* @__PURE__ */ e.jsx(i.Fragment, { children: t?.card(n.id, {
1351
+ networkName: ss(n.analysis.knId),
1352
+ sharedWithMe: ge(n.analysis, x)
1353
+ }) }, n.id)
1354
+ ) }),
1355
+ w && /* @__PURE__ */ e.jsx(
1356
+ kt,
1357
+ {
1358
+ networks: _e,
1359
+ onCancel: () => c(!1),
1360
+ onSubmit: (n, p) => {
1361
+ p && (Do(p.id), wt(n.name, p, null, n, tt).then((m) => {
1362
+ c(!1), k.go({ page: "builder", appId: m.id });
1363
+ }).catch((m) => {
1364
+ y.error(te(m, s));
1365
+ }));
1366
+ }
1367
+ }
1368
+ ),
1369
+ L && t?.createDialog({
1370
+ networks: _e,
1371
+ initial: nt,
1372
+ kind: L,
1373
+ count: z.filter(
1374
+ (n) => !ge(n, x) && Re(n) === L
1375
+ ).length,
1376
+ onCancel: () => b(null)
1377
+ }),
1378
+ t?.dialogs,
1379
+ M && /* @__PURE__ */ e.jsx(Kn, { open: !0, section: M, onClose: () => E(null) }),
1380
+ ve && /* @__PURE__ */ e.jsx(
1381
+ kt,
1382
+ {
1383
+ app: ve,
1384
+ networks: _e,
1385
+ onCancel: () => je(null),
1386
+ onSubmit: (n) => {
1387
+ const p = ve.id;
1388
+ je(null), st(() => Hs(p, n));
1389
+ }
1390
+ }
1391
+ ),
1392
+ et !== null && v ? /* @__PURE__ */ e.jsx(
1393
+ ln,
1394
+ {
1395
+ workspaces: v,
1396
+ initial: et,
1397
+ nameOf: Z,
1398
+ onChanged: async () => {
1399
+ ft(), await we(), await d();
1400
+ },
1401
+ onClose: () => se(null)
1402
+ }
1403
+ ) : null,
1404
+ fe && $ ? /* @__PURE__ */ e.jsx(
1405
+ $,
1406
+ {
1407
+ appId: fe.id,
1408
+ appName: fe.name,
1409
+ onClose: () => {
1410
+ at(null), d();
1411
+ }
1412
+ }
1413
+ ) : null
1414
+ ] });
1415
+ }
1416
+ function Go({
1417
+ app: t,
1418
+ networks: a,
1419
+ sharedWithMe: o,
1420
+ workspaceName: s,
1421
+ workspaces: g,
1422
+ nameOfWorkspace: k,
1423
+ onMove: u,
1424
+ canShare: C,
1425
+ onOpen: r,
1426
+ onEdit: A,
1427
+ onShare: w,
1428
+ onExport: c,
1429
+ onDelete: L
1430
+ }) {
1431
+ const { t: b } = F(), { modal: M } = qe(), E = At().href({ page: "run", appId: t.id }), y = Et(Xe(t), a).map((h) => h.name).join("、"), N = (h) => t.operations.includes(h), x = t.version === 0 ? { color: "warning", text: b("workshopLab.list.unpublished") } : { color: "success", text: b("workshopLab.top.published", { version: t.version }) }, $ = () => M.confirm({
1432
+ title: b("workshopLab.list.deleteConfirm"),
1433
+ okText: b("workshopLab.list.delete"),
1434
+ okButtonProps: { danger: !0 },
1435
+ onOk: L
1436
+ });
1437
+ return /* @__PURE__ */ e.jsxs(
1438
+ "article",
1439
+ {
1440
+ className: l.card,
1441
+ style: t.color ? { "--app-accent": t.color } : void 0,
1442
+ "aria-label": t.name,
1443
+ role: "button",
1444
+ tabIndex: 0,
1445
+ onClick: r,
1446
+ onKeyDown: (h) => {
1447
+ h.target === h.currentTarget && (h.key === "Enter" || h.key === " ") && (h.preventDefault(), r());
1448
+ },
1449
+ children: [
1450
+ /* @__PURE__ */ e.jsxs("div", { className: l.header, children: [
1451
+ /* @__PURE__ */ e.jsxs("div", { className: l.titleRow, children: [
1452
+ /* @__PURE__ */ e.jsx("span", { className: l.iconBox, children: /* @__PURE__ */ e.jsx(ta, { icon: t.icon, size: 18 }) }),
1453
+ /* @__PURE__ */ e.jsxs("div", { className: l.titleContent, children: [
1454
+ /* @__PURE__ */ e.jsx("div", { className: l.name, children: t.name }),
1455
+ /* @__PURE__ */ e.jsxs("div", { className: l.meta, children: [
1456
+ /* @__PURE__ */ e.jsx($e, { className: l.state, color: x.color, children: x.text }),
1457
+ o ? /* @__PURE__ */ e.jsx($e, { className: l.state, children: b("workshopLab.list.shared") }) : null,
1458
+ s ? /* @__PURE__ */ e.jsx($e, { className: l.state, icon: /* @__PURE__ */ e.jsx(Tt, {}), children: s }) : null
1459
+ ] }),
1460
+ /* @__PURE__ */ e.jsx("div", { className: l.description, children: t.description || b("workshopLab.list.noDescription") })
1461
+ ] })
1462
+ ] }),
1463
+ /* @__PURE__ */ e.jsx(
1464
+ me,
1465
+ {
1466
+ trigger: ["click"],
1467
+ menu: {
1468
+ items: [
1469
+ { key: "open", label: b("workshopLab.list.open") },
1470
+ { key: "edit", label: b("workshopLab.list.edit"), disabled: !N("modify") },
1471
+ { key: "run", label: b("workshopLab.top.run"), disabled: t.version === 0 },
1472
+ {
1473
+ key: "export",
1474
+ label: b("workshopLab.list.export"),
1475
+ children: [
1476
+ { key: "export:zip", label: b("workshopLab.list.exportZip") },
1477
+ { key: "export:yaml", label: b("workshopLab.list.exportYaml") }
1478
+ ]
1479
+ },
1480
+ // Its own and those shared with the user alike: a workspace is the user's own group.
1481
+ ...g.length > 0 ? [
1482
+ {
1483
+ key: "move",
1484
+ label: b("workshopLab.workspace.moveTo"),
1485
+ children: g.map((h) => ({
1486
+ key: `move:${h.id}`,
1487
+ label: k(h),
1488
+ disabled: h.id === t.workspaceId
1489
+ }))
1490
+ }
1491
+ ] : [],
1492
+ ...C ? [
1493
+ // Shared in the outside system that manages it, not here.
1494
+ {
1495
+ key: "share",
1496
+ label: t.managedBy ? b("workshopLab.list.shareManaged", { name: t.managedBy }) : b("workshopLab.list.share"),
1497
+ disabled: !N("authorize") || !!t.managedBy
1498
+ }
1499
+ ] : [],
1500
+ {
1501
+ key: "delete",
1502
+ label: b("workshopLab.list.delete"),
1503
+ danger: !0,
1504
+ disabled: !N("delete")
1505
+ }
1506
+ ],
1507
+ onClick: ({ key: h, domEvent: d }) => {
1508
+ if (d.stopPropagation(), h === "open") r();
1509
+ else if (h === "edit") A();
1510
+ else if (h === "run") window.open(E, "_blank", "noopener");
1511
+ else if (h === "export:zip" || h === "export:yaml")
1512
+ c(h === "export:zip" ? "zip" : "yaml");
1513
+ else if (h === "share") w();
1514
+ else if (h.startsWith("move:")) {
1515
+ const v = g.find((B) => `move:${B.id}` === h);
1516
+ v && u(v);
1517
+ } else h === "delete" && $();
1518
+ }
1519
+ },
1520
+ children: /* @__PURE__ */ e.jsx(
1521
+ "button",
1522
+ {
1523
+ type: "button",
1524
+ className: l.moreButton,
1525
+ "aria-label": b("workshopLab.list.moreActions"),
1526
+ onClick: (h) => h.stopPropagation(),
1527
+ children: /* @__PURE__ */ e.jsx(ya, {})
1528
+ }
1529
+ )
1530
+ }
1531
+ )
1532
+ ] }),
1533
+ /* @__PURE__ */ e.jsxs("div", { className: l.footer, children: [
1534
+ /* @__PURE__ */ e.jsx(bt, { title: y, children: /* @__PURE__ */ e.jsxs("span", { className: `${l.metaItem} ${l.footerLeft}`, children: [
1535
+ /* @__PURE__ */ e.jsx(fa, {}),
1536
+ /* @__PURE__ */ e.jsx("span", { className: l.metaText, children: y })
1537
+ ] }) }),
1538
+ /* @__PURE__ */ e.jsx(bt, { title: b("workshopLab.list.updatedAt"), children: /* @__PURE__ */ e.jsxs("span", { className: `${l.metaItem} ${l.footerRight}`, children: [
1539
+ /* @__PURE__ */ e.jsx(ca, {}),
1540
+ /* @__PURE__ */ e.jsx("span", { children: gs(t.updatedAt).format("YYYY-MM-DD HH:mm") })
1541
+ ] }) })
1542
+ ] })
1543
+ ]
1544
+ }
1545
+ );
1546
+ }
1547
+ export {
1548
+ er as AppListPage
1549
+ };