@vtj/designer 0.16.5 → 0.16.7

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.
@@ -19,10 +19,10 @@ import { editor as Bm } from "monaco-editor";
19
19
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
20
20
  * @name @vtj/designer
21
21
  * @author CHC chenhuachun1549@dingtalk.com
22
- * @version 0.16.5
22
+ * @version 0.16.7
23
23
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
24
24
  */
25
- const dr = "0.16.5", Um = {
25
+ const dr = "0.16.7", Um = {
26
26
  width: 390,
27
27
  height: 844
28
28
  }, zm = {
@@ -52,7 +52,7 @@ const dr = "0.16.5", Um = {
52
52
  "once",
53
53
  "passive",
54
54
  "enter"
55
- ], CO = "__vue-devtools-frame-state__", AO = "@id/virtual:vue-devtools-path:overlay.js", TO = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs", Km = [
55
+ ], TO = "__vue-devtools-frame-state__", OO = "@id/virtual:vue-devtools-path:overlay.js", IO = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs", Km = [
56
56
  "h",
57
57
  "t",
58
58
  "t",
@@ -109,7 +109,7 @@ const dr = "0.16.5", Um = {
109
109
  "o",
110
110
  "r",
111
111
  "t"
112
- ].join(""), Bl = "SESSION_ID__", Ul = "ENGINE_STATE__", OO = 16 * 1024, qm = "https://app.vtj.pro/#/workbench/token", Qm = {
112
+ ].join(""), Bl = "SESSION_ID__", Ul = "ENGINE_STATE__", RO = 16 * 1024, qm = "https://app.vtj.pro/#/workbench/token", Qm = {
113
113
  package: "hotkeys-js",
114
114
  version: "latest",
115
115
  library: "hotkeys",
@@ -117,7 +117,7 @@ const dr = "0.16.5", Um = {
117
117
  required: !0,
118
118
  official: !0,
119
119
  urls: ["@vtj/materials/deps/hotkeys-js/hotkeys.min.js"]
120
- }, IO = {
120
+ }, DO = {
121
121
  package: "vue-devtools",
122
122
  version: "latest",
123
123
  library: "VueDevtools",
@@ -2403,7 +2403,7 @@ function pv(e) {
2403
2403
  toolRegistry: s,
2404
2404
  config: { activeDelayMs: r, ...e }
2405
2405
  };
2406
- _T.forEach((b) => {
2406
+ ET.forEach((b) => {
2407
2407
  s.register({
2408
2408
  name: b.name,
2409
2409
  description: b.description,
@@ -2524,7 +2524,7 @@ function pv(e) {
2524
2524
  },
2525
2525
  shouldNext: (b) => {
2526
2526
  const k = b.content || b.reasoning || "";
2527
- return k.includes("F:") || k.includes("R:") ? !1 : b.toolCallId && (b.toolContent || b.message) ? !0 : b.status === "Error" || b.status === "Failed" ? b.message && !b.message.startsWith("4") && !b.message.startsWith("5") : !1;
2527
+ return b.status === "Error" || b.status === "Failed" ? b.message && !b.message.startsWith("4") && !b.message.startsWith("5") : k.includes("F:") || k.includes("R:") ? !1 : !!(b.toolCallId && (b.toolContent || b.message));
2528
2528
  },
2529
2529
  createNextPrompt: (b) => b.toolCallId ? b.toolContent || b.message || "O: 动作执行成功" : b.status === "Error" || b.status === "Failed" ? b.toolContent || b.message || "O: 动作执行失败" : "执行计划",
2530
2530
  getCurrentVue: p,
@@ -2925,12 +2925,14 @@ const bv = async (e) => new Promise((t, n) => {
2925
2925
  let n = ff(t) ? new URL(t).pathname : t;
2926
2926
  return n = n.replace(/\:/g, "").replace(/\//g, "-"), gf(`${e}-${n}`);
2927
2927
  }, Ev = (e) => {
2928
+ console.log(e);
2928
2929
  const t = [], n = Object.entries(e.paths || {});
2929
2930
  for (const [o, s] of n)
2930
2931
  for (const [r, a] of Object.entries(s)) {
2931
- const l = a, c = o.replace(/{([^}]+)}/g, ":$1"), d = r.toLowerCase(), f = {
2932
+ const l = a, c = o.replace(/{([^}]+)}/g, ":$1"), d = r.toLowerCase(), f = l.tags ? l.tags.join(",") : "", u = {
2932
2933
  id: _s(),
2933
2934
  name: wv(d, c),
2935
+ category: f,
2934
2936
  url: c,
2935
2937
  method: d,
2936
2938
  label: l.summary,
@@ -2940,7 +2942,7 @@ const bv = async (e) => new Promise((t, n) => {
2940
2942
  validSuccess: !1
2941
2943
  }
2942
2944
  };
2943
- t.push(f);
2945
+ t.push(u);
2944
2946
  }
2945
2947
  return t;
2946
2948
  };
@@ -8966,7 +8968,7 @@ const Mw = "data:image/svg+xml,%3csvg%20width='200'%20height='200'%20xmlns='http
8966
8968
  ]));
8967
8969
  }
8968
8970
  }), Ye = pp({
8969
- loader: () => import("./Editor-CdFOSqH8.js"),
8971
+ loader: () => import("./Editor-BIJ_WidI.js"),
8970
8972
  loadingComponent: H({
8971
8973
  render() {
8972
8974
  return eo("div", "正在拼命加载...");
@@ -17099,6 +17101,11 @@ const Ii = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17099
17101
  field: "label",
17100
17102
  title: "备注",
17101
17103
  minWidth: 100
17104
+ },
17105
+ {
17106
+ field: "category",
17107
+ title: "分组",
17108
+ minWidth: 100
17102
17109
  }
17103
17110
  ], s = {
17104
17111
  method: {
@@ -17149,7 +17156,8 @@ const Ii = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17149
17156
  },
17150
17157
  url: "XInput",
17151
17158
  name: "XInput",
17152
- label: "XInput"
17159
+ label: "XInput",
17160
+ category: "XInput"
17153
17161
  }, r = {
17154
17162
  method: [{ required: !0, message: "不能为空" }],
17155
17163
  "settings.type": [{ required: !0, message: "不能为空" }],
@@ -17204,7 +17212,11 @@ const Ii = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17204
17212
  ), g = V(() => Object.keys(p.value)), m = V(() => g.value[0]), y = D(m.value), _ = V(() => {
17205
17213
  const S = t.value?.globals?.axios;
17206
17214
  if (S && ec(S) && S.value)
17207
- return za(S, {}, !1, !1, !0)(n.simulator.renderer?.app || Da({}))?.settings || {};
17215
+ try {
17216
+ return za(S, {}, !1, !1, !0)(n.simulator.renderer?.app || Da({}))?.settings || {};
17217
+ } catch (O) {
17218
+ return console.warn(O), {};
17219
+ }
17208
17220
  }), b = () => ({
17209
17221
  id: "",
17210
17222
  method: "get",
@@ -17341,7 +17353,7 @@ const Ii = /* @__PURE__ */ Od(E1, [["render", C1]]), A1 = ["theme"], T1 = {
17341
17353
  _: 1
17342
17354
  }));
17343
17355
  }
17344
- }), rk = /* @__PURE__ */ Jt(ok, [["__scopeId", "data-v-bff8f9c2"]]), sk = /* @__PURE__ */ H({
17356
+ }), rk = /* @__PURE__ */ Jt(ok, [["__scopeId", "data-v-4a3568a5"]]), sk = /* @__PURE__ */ H({
17345
17357
  name: "DepsWidget",
17346
17358
  __name: "index",
17347
17359
  setup(e) {
@@ -25944,7 +25956,7 @@ ${m}${y}`;
25944
25956
  ]) : B("", !0)
25945
25957
  ]));
25946
25958
  }
25947
- }), dC = { class: "v-ai-widget-new-chat" }, pC = { class: "v-ai-widget-new-chat__input-type" }, fC = /* @__PURE__ */ H({
25959
+ }), dC = { class: "v-ai-widget-new-chat" }, pC = { class: "v-ai-widget-new-chat__input-type" }, fC = { class: "hot-list" }, gC = /* @__PURE__ */ H({
25948
25960
  __name: "new-topic",
25949
25961
  props: {
25950
25962
  models: { default: () => [] },
@@ -26023,7 +26035,7 @@ ${m}${y}`;
26023
26035
  ])]),
26024
26036
  _: 1
26025
26037
  }),
26026
- N("div", null, [
26038
+ N("div", fC, [
26027
26039
  (h(!0), j(Z, null, pe(a.value, (y, _) => (h(), A(i(St), {
26028
26040
  index: _ + 1,
26029
26041
  title: y.title,
@@ -26061,13 +26073,13 @@ ${m}${y}`;
26061
26073
  const s = n, r = D();
26062
26074
  let a = null;
26063
26075
  const l = async () => {
26064
- a && (await a.getAction("editor.action.formatDocument")?.run(), a.setValue(a.getValue()));
26076
+ a && (await a.getAction("editor.action.formatDocument")?.run().catch((u) => u), a.setValue(a.getValue()));
26065
26077
  }, c = async () => {
26066
26078
  await l();
26067
26079
  const u = a?.getValue();
26068
26080
  s("update:modelValue", u), s("blur", u);
26069
26081
  }, d = () => {
26070
- a = Bm.create(r.value, {
26082
+ a && (a.dispose(), a = null), a = Bm.create(r.value, {
26071
26083
  value: o.modelValue,
26072
26084
  language: o.lang,
26073
26085
  readOnly: o.readonly,
@@ -26100,7 +26112,7 @@ ${m}${y}`;
26100
26112
  style: Kn({ height: o.height })
26101
26113
  }, null, 38));
26102
26114
  }
26103
- }), gC = /* @__PURE__ */ H({
26115
+ }), mC = /* @__PURE__ */ H({
26104
26116
  __name: "detail",
26105
26117
  props: {
26106
26118
  chat: {},
@@ -26160,13 +26172,13 @@ ${m}${y}`;
26160
26172
  _: 1
26161
26173
  }));
26162
26174
  }
26163
- }), mC = /* @__PURE__ */ Jt(gC, [["__scopeId", "data-v-3af93469"]]), hC = {
26175
+ }), hC = /* @__PURE__ */ Jt(mC, [["__scopeId", "data-v-3af93469"]]), vC = {
26164
26176
  key: 0,
26165
26177
  class: "v-ai-widget__mask is-limit"
26166
- }, vC = {
26178
+ }, bC = {
26167
26179
  key: 1,
26168
26180
  class: "limit-tip"
26169
- }, bC = { class: "limit-tip__content" }, yC = ["src"], _C = /* @__PURE__ */ H({
26181
+ }, yC = { class: "limit-tip__content" }, _C = ["src"], wC = /* @__PURE__ */ H({
26170
26182
  __name: "invite-tip",
26171
26183
  props: {
26172
26184
  settings: {},
@@ -26175,8 +26187,8 @@ ${m}${y}`;
26175
26187
  setup(e) {
26176
26188
  const t = e, n = V(() => t.settings?.mode === 2 && !t.settings?.invited);
26177
26189
  return (o, s) => (h(), j(Z, null, [
26178
- n.value ? (h(), j("div", hC)) : B("", !0),
26179
- n.value ? (h(), j("div", vC, [
26190
+ n.value ? (h(), j("div", vC)) : B("", !0),
26191
+ n.value ? (h(), j("div", bC, [
26180
26192
  v(i(no), {
26181
26193
  title: "仅限邀请",
26182
26194
  type: "warning",
@@ -26187,23 +26199,23 @@ ${m}${y}`;
26187
26199
  ])]),
26188
26200
  _: 1
26189
26201
  }),
26190
- N("div", bC, [
26202
+ N("div", yC, [
26191
26203
  N("img", {
26192
26204
  class: "limit-tip__qr",
26193
26205
  src: t.getImage(t.settings?.groupQr),
26194
26206
  draggable: "false"
26195
- }, null, 8, yC)
26207
+ }, null, 8, _C)
26196
26208
  ])
26197
26209
  ])) : B("", !0)
26198
26210
  ], 64));
26199
26211
  }
26200
- }), wC = /* @__PURE__ */ Jt(_C, [["__scopeId", "data-v-f0a3b533"]]), EC = {
26212
+ }), EC = /* @__PURE__ */ Jt(wC, [["__scopeId", "data-v-f0a3b533"]]), kC = {
26201
26213
  key: 0,
26202
26214
  class: "v-ai-widget__mask is-limit"
26203
- }, kC = {
26215
+ }, SC = {
26204
26216
  key: 1,
26205
26217
  class: "limit-tip"
26206
- }, SC = { class: "limit-tip__content" }, xC = { class: "price" }, CC = { class: "pay-steps__content" }, AC = ["src"], TC = { class: "pay-steps__content" }, OC = ["src"], IC = { class: "pay-steps__content" }, RC = { class: "order-link" }, DC = { class: "pay-tip" }, NC = /* @__PURE__ */ H({
26218
+ }, xC = { class: "limit-tip__content" }, CC = { class: "price" }, AC = { class: "pay-steps__content" }, TC = ["src"], OC = { class: "pay-steps__content" }, IC = ["src"], RC = { class: "pay-steps__content" }, DC = { class: "order-link" }, NC = { class: "pay-tip" }, VC = /* @__PURE__ */ H({
26207
26219
  __name: "pay-tip",
26208
26220
  props: {
26209
26221
  settings: {},
@@ -26247,8 +26259,8 @@ ${m}${y}`;
26247
26259
  }).catch(() => !1) && await t.cancelOrder(s.value?.id) && (o.value = !1);
26248
26260
  };
26249
26261
  return (g, m) => (h(), j(Z, null, [
26250
- n.value ? (h(), j("div", EC)) : B("", !0),
26251
- n.value ? (h(), j("div", kC, [
26262
+ n.value ? (h(), j("div", kC)) : B("", !0),
26263
+ n.value ? (h(), j("div", SC, [
26252
26264
  v(i(no), {
26253
26265
  title: "免费体验次数已用完",
26254
26266
  type: "warning",
@@ -26259,7 +26271,7 @@ ${m}${y}`;
26259
26271
  ])]),
26260
26272
  _: 1
26261
26273
  }),
26262
- N("div", SC, [
26274
+ N("div", xC, [
26263
26275
  v(i(ve), {
26264
26276
  icon: i(om),
26265
26277
  type: "primary",
@@ -26268,7 +26280,7 @@ ${m}${y}`;
26268
26280
  }, {
26269
26281
  default: E(() => [
26270
26282
  m[2] || (m[2] = ee(" 立即开通 ", -1)),
26271
- N("span", xC, se(Number.parseInt(t.settings?.price)) + "元/月 ", 1)
26283
+ N("span", CC, se(Number.parseInt(t.settings?.price)) + "元/月 ", 1)
26272
26284
  ]),
26273
26285
  _: 1
26274
26286
  }, 8, ["icon"]),
@@ -26364,12 +26376,12 @@ ${m}${y}`;
26364
26376
  }, {
26365
26377
  description: E(() => [
26366
26378
  m[7] || (m[7] = N("div", null, "微信扫码完成支付", -1)),
26367
- N("div", CC, [
26379
+ N("div", AC, [
26368
26380
  N("img", {
26369
26381
  width: "200",
26370
26382
  src: t.getImage(t.settings?.payQr),
26371
26383
  draggable: ""
26372
- }, null, 8, AC)
26384
+ }, null, 8, TC)
26373
26385
  ])
26374
26386
  ]),
26375
26387
  _: 1
@@ -26380,12 +26392,12 @@ ${m}${y}`;
26380
26392
  }, {
26381
26393
  description: E(() => [
26382
26394
  m[8] || (m[8] = N("div", null, "微信扫码添加客服好友", -1)),
26383
- N("div", TC, [
26395
+ N("div", OC, [
26384
26396
  N("img", {
26385
26397
  width: "200",
26386
26398
  src: t.getImage(t.settings?.contactQr),
26387
26399
  draggable: ""
26388
- }, null, 8, OC)
26400
+ }, null, 8, IC)
26389
26401
  ])
26390
26402
  ]),
26391
26403
  _: 1
@@ -26397,8 +26409,8 @@ ${m}${y}`;
26397
26409
  }, {
26398
26410
  description: E(() => [
26399
26411
  m[10] || (m[10] = N("div", null, "复制以下订单信息发送给客服", -1)),
26400
- N("div", IC, [
26401
- N("div", RC, se(r.value), 1),
26412
+ N("div", RC, [
26413
+ N("div", DC, se(r.value), 1),
26402
26414
  v(i(ve), {
26403
26415
  size: "small",
26404
26416
  icon: i(sc),
@@ -26416,7 +26428,7 @@ ${m}${y}`;
26416
26428
  ]),
26417
26429
  _: 1
26418
26430
  }),
26419
- N("div", DC, [
26431
+ N("div", NC, [
26420
26432
  m[11] || (m[11] = N("strong", null, "提示:", -1)),
26421
26433
  ee(" 订阅成功后您将拥有VTJ.PRO全功能权限,并赠送DeepSeek官方" + se(parseInt(String(t.settings?.max || 0), 10)) + "百万tokens使用量。 ", 1)
26422
26434
  ])
@@ -26425,7 +26437,7 @@ ${m}${y}`;
26425
26437
  }, 8, ["modelValue"])
26426
26438
  ], 64));
26427
26439
  }
26428
- }), VC = /* @__PURE__ */ Jt(NC, [["__scopeId", "data-v-5aac6f5d"]]), PC = { class: "v-ai-widget__input" }, MC = /* @__PURE__ */ H({
26440
+ }), PC = /* @__PURE__ */ Jt(VC, [["__scopeId", "data-v-5aac6f5d"]]), MC = { class: "v-ai-widget__input" }, jC = /* @__PURE__ */ H({
26429
26441
  name: "AIWidget",
26430
26442
  __name: "index",
26431
26443
  setup(e) {
@@ -26575,7 +26587,7 @@ ${m}${y}`;
26575
26587
  ]),
26576
26588
  default: E(() => [
26577
26589
  rt.value ? B("", !0) : (h(), A(Zx, { key: 0 })),
26578
- i(o) ? (h(), A(fC, {
26590
+ i(o) ? (h(), A(gC, {
26579
26591
  key: 1,
26580
26592
  models: i(r),
26581
26593
  loading: i(s),
@@ -26618,7 +26630,7 @@ ${m}${y}`;
26618
26630
  ], 64))), 128)),
26619
26631
  i(l).length ? B("", !0) : (h(), A(i(nt), { key: 0 }))
26620
26632
  ], 512)),
26621
- i(k) ? (h(), A(mC, {
26633
+ i(k) ? (h(), A(hC, {
26622
26634
  key: 3,
26623
26635
  modelValue: i(x),
26624
26636
  "onUpdate:modelValue": mt[0] || (mt[0] = (at) => to(x) ? x.value = at : null),
@@ -26632,7 +26644,7 @@ ${m}${y}`;
26632
26644
  i(o) ? void 0 : {
26633
26645
  name: "footer",
26634
26646
  fn: E(() => [
26635
- N("div", PC, [
26647
+ N("div", MC, [
26636
26648
  v(i(ve), {
26637
26649
  class: "new-btn",
26638
26650
  round: "",
@@ -26704,12 +26716,12 @@ ${m}${y}`;
26704
26716
  ]),
26705
26717
  _: 1
26706
26718
  }, 8, ["modelValue"]),
26707
- i(z) ? (h(), A(wC, {
26719
+ i(z) ? (h(), A(EC, {
26708
26720
  key: 0,
26709
26721
  settings: i(z),
26710
26722
  "get-image": i(te)
26711
26723
  }, null, 8, ["settings", "get-image"])) : B("", !0),
26712
- i(z) ? (h(), A(VC, {
26724
+ i(z) ? (h(), A(PC, {
26713
26725
  key: 1,
26714
26726
  remote: i(t).remote,
26715
26727
  settings: i(z),
@@ -26722,7 +26734,7 @@ ${m}${y}`;
26722
26734
  _: 1
26723
26735
  }));
26724
26736
  }
26725
- }), jC = `(app) => {
26737
+ }), LC = `(app) => {
26726
26738
  return {
26727
26739
  state: () => {
26728
26740
  return {
@@ -26736,17 +26748,17 @@ ${m}${y}`;
26736
26748
 
26737
26749
  }
26738
26750
  }
26739
- }`, LC = `(app) => {
26751
+ }`, BC = `(app) => {
26740
26752
  // 在此添加增强代码
26741
- }`, BC = `(config, app) => {
26753
+ }`, UC = `(config, app) => {
26742
26754
  return config;
26743
- }`, UC = `(res, app) => {
26755
+ }`, zC = `(res, app) => {
26744
26756
  return res;
26745
- }`, zC = `(to, from, next, app) => {
26757
+ }`, $C = `(to, from, next, app) => {
26746
26758
  next();
26747
- }`, $C = `(to, from, failure, app) => {
26759
+ }`, FC = `(to, from, failure, app) => {
26748
26760
 
26749
- }`, FC = `(app) => {
26761
+ }`, HC = `(app) => {
26750
26762
  return {
26751
26763
  // session: false,
26752
26764
  // authKey: 'Authorization',
@@ -26759,7 +26771,7 @@ ${m}${y}`;
26759
26771
  // noPermissionMessage: '无权限访问该页面',
26760
26772
  // statusKey: 'code'
26761
26773
  }
26762
- }`, HC = `(app) => {
26774
+ }`, JC = `(app) => {
26763
26775
  return {
26764
26776
  // baseURL: '/',
26765
26777
  // timeout: 60000,
@@ -26774,7 +26786,7 @@ ${m}${y}`;
26774
26786
  // }
26775
26787
  // }
26776
26788
  }
26777
- }`, JC = /* @__PURE__ */ H({
26789
+ }`, GC = /* @__PURE__ */ H({
26778
26790
  name: "GlobalsWidget",
26779
26791
  __name: "index",
26780
26792
  setup(e) {
@@ -26822,7 +26834,7 @@ ${m}${y}`;
26822
26834
  v(kn, {
26823
26835
  title: "应用状态「Pinia」",
26824
26836
  subtitle: "JSFunction",
26825
- "default-code": jC,
26837
+ "default-code": LC,
26826
26838
  "model-value": n("store"),
26827
26839
  onChange: r[2] || (r[2] = (a) => o("store", a))
26828
26840
  }, null, 8, ["model-value"])
@@ -26838,7 +26850,7 @@ ${m}${y}`;
26838
26850
  v(kn, {
26839
26851
  title: "权限控制「Access」",
26840
26852
  subtitle: "JSFunction",
26841
- "default-code": FC,
26853
+ "default-code": HC,
26842
26854
  "model-value": n("access"),
26843
26855
  onChange: r[4] || (r[4] = (a) => o("access", a))
26844
26856
  }, null, 8, ["model-value"])
@@ -26854,7 +26866,7 @@ ${m}${y}`;
26854
26866
  v(kn, {
26855
26867
  title: "应用增强「JS」",
26856
26868
  subtitle: "JSFunction",
26857
- "default-code": LC,
26869
+ "default-code": BC,
26858
26870
  "model-value": n("enhance"),
26859
26871
  onChange: r[6] || (r[6] = (a) => o("enhance", a))
26860
26872
  }, null, 8, ["model-value"])
@@ -26887,7 +26899,7 @@ ${m}${y}`;
26887
26899
  v(kn, {
26888
26900
  title: "请求配置「IRequestOptions」",
26889
26901
  subtitle: "JSFunction",
26890
- "default-code": HC,
26902
+ "default-code": JC,
26891
26903
  "model-value": n("axios"),
26892
26904
  onChange: r[8] || (r[8] = (a) => o("axios", a))
26893
26905
  }, null, 8, ["model-value"])
@@ -26903,7 +26915,7 @@ ${m}${y}`;
26903
26915
  v(kn, {
26904
26916
  title: "请求拦截器",
26905
26917
  subtitle: "JSFunction",
26906
- "default-code": BC,
26918
+ "default-code": UC,
26907
26919
  "model-value": n("request"),
26908
26920
  onChange: r[10] || (r[10] = (a) => o("request", a))
26909
26921
  }, null, 8, ["model-value"])
@@ -26919,7 +26931,7 @@ ${m}${y}`;
26919
26931
  v(kn, {
26920
26932
  title: "响应拦截器",
26921
26933
  subtitle: "JSFunction",
26922
- "default-code": UC,
26934
+ "default-code": zC,
26923
26935
  "model-value": n("response"),
26924
26936
  onChange: r[12] || (r[12] = (a) => o("response", a))
26925
26937
  }, null, 8, ["model-value"])
@@ -26952,7 +26964,7 @@ ${m}${y}`;
26952
26964
  v(kn, {
26953
26965
  title: "前置守卫「beforeEach」",
26954
26966
  subtitle: "JSFunction",
26955
- "default-code": zC,
26967
+ "default-code": $C,
26956
26968
  "model-value": n("beforeEach"),
26957
26969
  onChange: r[14] || (r[14] = (a) => o("beforeEach", a))
26958
26970
  }, null, 8, ["model-value"])
@@ -26968,7 +26980,7 @@ ${m}${y}`;
26968
26980
  v(kn, {
26969
26981
  title: "后置守卫「afterEach」",
26970
26982
  subtitle: "JSFunction",
26971
- "default-code": $C,
26983
+ "default-code": FC,
26972
26984
  "model-value": n("afterEach"),
26973
26985
  onChange: r[16] || (r[16] = (a) => o("afterEach", a))
26974
26986
  }, null, 8, ["model-value"])
@@ -26982,7 +26994,7 @@ ${m}${y}`;
26982
26994
  _: 1
26983
26995
  }));
26984
26996
  }
26985
- }), GC = /* @__PURE__ */ H({
26997
+ }), KC = /* @__PURE__ */ H({
26986
26998
  name: "I18nWidget",
26987
26999
  __name: "index",
26988
27000
  setup(e) {
@@ -27123,7 +27135,7 @@ ${m}${y}`;
27123
27135
  _: 1
27124
27136
  }));
27125
27137
  }
27126
- }), KC = { class: "v-hotkeys-item" }, WC = { class: "v-hotkeys-item__value" }, qC = /* @__PURE__ */ H({
27138
+ }), WC = { class: "v-hotkeys-item" }, qC = { class: "v-hotkeys-item__value" }, QC = /* @__PURE__ */ H({
27127
27139
  name: "HotkeysWidget",
27128
27140
  inheritAttrs: !1,
27129
27141
  __name: "index",
@@ -27144,15 +27156,15 @@ ${m}${y}`;
27144
27156
  onCommand: s
27145
27157
  }, {
27146
27158
  item: E(({ item: l }) => [
27147
- N("div", KC, [
27159
+ N("div", WC, [
27148
27160
  N("span", null, se(l.label), 1),
27149
- N("span", WC, se(l.value), 1)
27161
+ N("span", qC, se(l.value), 1)
27150
27162
  ])
27151
27163
  ]),
27152
27164
  _: 1
27153
27165
  }, 8, ["menus"]));
27154
27166
  }
27155
- }), QC = /* @__PURE__ */ H({
27167
+ }), YC = /* @__PURE__ */ H({
27156
27168
  name: "DevtoolsWidget",
27157
27169
  inheritAttrs: !1,
27158
27170
  __name: "index",
@@ -27224,7 +27236,7 @@ ${m}${y}`;
27224
27236
  }, 8, ["class", "src", "resizable", "modelValue", "onOpen", "onClose"])) : B("", !0)
27225
27237
  ], 64));
27226
27238
  }
27227
- }), YC = /* @__PURE__ */ H({
27239
+ }), XC = /* @__PURE__ */ H({
27228
27240
  name: "Themer",
27229
27241
  inheritAttrs: !1,
27230
27242
  __name: "index",
@@ -27243,7 +27255,7 @@ ${m}${y}`;
27243
27255
  size: "small"
27244
27256
  }, n.value, { onClick: o }), null, 16));
27245
27257
  }
27246
- }), XC = /* @__PURE__ */ H({
27258
+ }), ZC = /* @__PURE__ */ H({
27247
27259
  name: "EnvWidget",
27248
27260
  __name: "index",
27249
27261
  setup(e) {
@@ -27387,14 +27399,14 @@ ${m}${y}`;
27387
27399
  Market: XS,
27388
27400
  Templates: sx,
27389
27401
  UserAvatar: lx,
27390
- AI: MC,
27391
- Globals: JC,
27392
- I18n: GC,
27393
- Hotkeys: qC,
27394
- Devtools: QC,
27395
- Themer: YC,
27396
- Env: XC
27397
- }, ZC = [
27402
+ AI: jC,
27403
+ Globals: GC,
27404
+ I18n: KC,
27405
+ Hotkeys: QC,
27406
+ Devtools: YC,
27407
+ Themer: XC,
27408
+ Env: ZC
27409
+ }, eA = [
27398
27410
  {
27399
27411
  name: "Logo",
27400
27412
  region: "Brand",
@@ -27709,7 +27721,7 @@ ${m}${y}`;
27709
27721
  component: Ve.Themer,
27710
27722
  group: Rt.Right
27711
27723
  }
27712
- ], eA = [
27724
+ ], tA = [
27713
27725
  {
27714
27726
  package: "vue",
27715
27727
  version: "latest",
@@ -27937,7 +27949,7 @@ ${m}${y}`;
27937
27949
  official: !0,
27938
27950
  enabled: !0
27939
27951
  }
27940
- ], tA = [
27952
+ ], nA = [
27941
27953
  {
27942
27954
  id: "html",
27943
27955
  category: "HTML"
@@ -27950,7 +27962,7 @@ ${m}${y}`;
27950
27962
  id: "components",
27951
27963
  category: "内置组件"
27952
27964
  }
27953
- ], nA = [
27965
+ ], oA = [
27954
27966
  {
27955
27967
  name: "div",
27956
27968
  label: "容器",
@@ -28095,8 +28107,8 @@ ${m}${y}`;
28095
28107
  children: "默认插槽内容"
28096
28108
  }
28097
28109
  }
28098
- ], oA = [
28099
- ...nA,
28110
+ ], rA = [
28111
+ ...oA,
28100
28112
  {
28101
28113
  name: "Transition",
28102
28114
  label: "过渡效果",
@@ -28450,23 +28462,23 @@ ${m}${y}`;
28450
28462
  }
28451
28463
  ]
28452
28464
  }
28453
- ], rA = [
28465
+ ], sA = [
28454
28466
  {
28455
28467
  name: Xr,
28456
28468
  version: "latest",
28457
28469
  label: "内置",
28458
28470
  library: Xr,
28459
28471
  order: 0,
28460
- categories: tA,
28461
- components: oA
28472
+ categories: nA,
28473
+ components: rA
28462
28474
  }
28463
- ], sA = /* @__PURE__ */ H({
28475
+ ], aA = /* @__PURE__ */ H({
28464
28476
  name: "StringSetter",
28465
28477
  __name: "string",
28466
28478
  setup(e) {
28467
28479
  return (t, n) => (h(), A(i(Xe), it({ clearable: "" }, t.$attrs), null, 16));
28468
28480
  }
28469
- }), aA = /* @__PURE__ */ H({
28481
+ }), lA = /* @__PURE__ */ H({
28470
28482
  name: "BooleanSetter",
28471
28483
  __name: "boolean",
28472
28484
  setup(e) {
@@ -28474,7 +28486,7 @@ ${m}${y}`;
28474
28486
  "model-value": !!t.$attrs.modelValue
28475
28487
  }), null, 16, ["model-value"]));
28476
28488
  }
28477
- }), lA = "{{", iA = "}}", cA = /* @__PURE__ */ H({
28489
+ }), iA = "{{", cA = "}}", uA = /* @__PURE__ */ H({
28478
28490
  name: "ExpressionSetter",
28479
28491
  __name: "expression",
28480
28492
  props: {
@@ -28510,15 +28522,15 @@ ${m}${y}`;
28510
28522
  onChange: l
28511
28523
  }, {
28512
28524
  prefix: E(() => [
28513
- ee(se(lA))
28525
+ ee(se(iA))
28514
28526
  ]),
28515
28527
  suffix: E(() => [
28516
- ee(se(iA))
28528
+ ee(se(cA))
28517
28529
  ]),
28518
28530
  _: 1
28519
28531
  }, 8, ["modelValue"]));
28520
28532
  }
28521
- }), uA = /* @__PURE__ */ H({
28533
+ }), dA = /* @__PURE__ */ H({
28522
28534
  name: "SelectSetter",
28523
28535
  __name: "select",
28524
28536
  props: {
@@ -28535,7 +28547,7 @@ ${m}${y}`;
28535
28547
  _: 1
28536
28548
  }, 16));
28537
28549
  }
28538
- }), dA = /* @__PURE__ */ H({
28550
+ }), pA = /* @__PURE__ */ H({
28539
28551
  name: "NumberSetter",
28540
28552
  __name: "number",
28541
28553
  props: {
@@ -28552,13 +28564,13 @@ ${m}${y}`;
28552
28564
  "model-value": s.value
28553
28565
  }, a.$attrs, { onChange: r }), null, 16, ["model-value"]));
28554
28566
  }
28555
- }), pA = /* @__PURE__ */ H({
28567
+ }), fA = /* @__PURE__ */ H({
28556
28568
  name: "ColorSetter",
28557
28569
  __name: "color",
28558
28570
  setup(e) {
28559
28571
  return (t, n) => (h(), A(i(Sp), Ia(Ra(t.$attrs)), null, 16));
28560
28572
  }
28561
- }), fA = /* @__PURE__ */ H({
28573
+ }), gA = /* @__PURE__ */ H({
28562
28574
  name: "RadioSetter",
28563
28575
  __name: "radio",
28564
28576
  props: {
@@ -28590,7 +28602,7 @@ ${m}${y}`;
28590
28602
  _: 1
28591
28603
  }, 16));
28592
28604
  }
28593
- }), gA = ["label", "title", "onClick"], mA = /* @__PURE__ */ H({
28605
+ }), mA = ["label", "title", "onClick"], hA = /* @__PURE__ */ H({
28594
28606
  name: "TagSetter",
28595
28607
  __name: "tag",
28596
28608
  props: {
@@ -28621,10 +28633,10 @@ ${m}${y}`;
28621
28633
  }, null, 8, ["src"])) : (h(), j(Z, { key: 1 }, [
28622
28634
  ee(se(l.label), 1)
28623
28635
  ], 64))
28624
- ], 10, gA))), 256))
28636
+ ], 10, mA))), 256))
28625
28637
  ], 16));
28626
28638
  }
28627
- }), hA = {
28639
+ }), vA = {
28628
28640
  mounted(e, t) {
28629
28641
  const n = {};
28630
28642
  typeof t.value == "number" ? n.step = t.value : typeof t.value == "object" && Object.assign(n, t.value);
@@ -28686,10 +28698,10 @@ ${m}${y}`;
28686
28698
  "onUpdate:modelValue": d[0] || (d[0] = (f) => a.value = f),
28687
28699
  onChange: l
28688
28700
  }, c.$attrs), null, 16, ["unit", "with-unit", "modelValue"])), [
28689
- [i(hA)]
28701
+ [i(vA)]
28690
28702
  ]);
28691
28703
  }
28692
- }), vA = { class: "v-image-setter__plus" }, bA = /* @__PURE__ */ H({
28704
+ }), bA = { class: "v-image-setter__plus" }, yA = /* @__PURE__ */ H({
28693
28705
  name: "ImageSetter",
28694
28706
  __name: "image",
28695
28707
  props: {
@@ -28734,14 +28746,14 @@ ${m}${y}`;
28734
28746
  "on-remove": c
28735
28747
  }, d.$attrs), {
28736
28748
  default: E(() => [
28737
- N("span", vA, [
28749
+ N("span", bA, [
28738
28750
  v(i(Bt), { icon: i(hc) }, null, 8, ["icon"])
28739
28751
  ])
28740
28752
  ]),
28741
28753
  _: 1
28742
28754
  }, 16, ["class", "file-list"]));
28743
28755
  }
28744
- }), yA = { class: "v-section-setter" }, _A = /* @__PURE__ */ H({
28756
+ }), _A = { class: "v-section-setter" }, wA = /* @__PURE__ */ H({
28745
28757
  name: "SectionSetter",
28746
28758
  __name: "section",
28747
28759
  props: {
@@ -28761,7 +28773,7 @@ ${m}${y}`;
28761
28773
  const r = () => {
28762
28774
  o("change", s.value.join(" ").trim());
28763
28775
  };
28764
- return (a, l) => (h(), j("div", yA, [
28776
+ return (a, l) => (h(), j("div", _A, [
28765
28777
  (h(!0), j(Z, null, pe(n.sections, (c) => (h(), A(Ld, {
28766
28778
  name: c - 1,
28767
28779
  modelValue: s.value[c - 1],
@@ -28771,7 +28783,7 @@ ${m}${y}`;
28771
28783
  }, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
28772
28784
  ]));
28773
28785
  }
28774
- }), wA = { class: "v-slider-setter" }, EA = /* @__PURE__ */ H({
28786
+ }), EA = { class: "v-slider-setter" }, kA = /* @__PURE__ */ H({
28775
28787
  name: "SliderSetter",
28776
28788
  __name: "slider",
28777
28789
  props: {
@@ -28792,7 +28804,7 @@ ${m}${y}`;
28792
28804
  const r = () => {
28793
28805
  s.value = void 0, o("change", void 0), o("update:modelValue", void 0);
28794
28806
  };
28795
- return (a, l) => (h(), j("div", wA, [
28807
+ return (a, l) => (h(), j("div", EA, [
28796
28808
  v(i(xp), it({ size: "small" }, a.$attrs, {
28797
28809
  modelValue: s.value,
28798
28810
  "onUpdate:modelValue": l[0] || (l[0] = (c) => s.value = c)
@@ -29064,7 +29076,7 @@ ${m}${y}`;
29064
29076
  "discount-o",
29065
29077
  "ecard-pay",
29066
29078
  "envelop-o"
29067
- ], kA = { class: "van-icon-setter" }, SA = { class: "van-icon-setter__body" }, xA = { class: "van-icon-setter__content" }, CA = { class: "van-icon-setter__list" }, AA = ["onClick"], TA = /* @__PURE__ */ H({
29079
+ ], SA = { class: "van-icon-setter" }, xA = { class: "van-icon-setter__body" }, CA = { class: "van-icon-setter__content" }, AA = { class: "van-icon-setter__list" }, TA = ["onClick"], OA = /* @__PURE__ */ H({
29068
29080
  name: "VanIconSetter",
29069
29081
  __name: "index",
29070
29082
  props: {
@@ -29087,7 +29099,7 @@ ${m}${y}`;
29087
29099
  }, p = () => {
29088
29100
  s.value = !0;
29089
29101
  };
29090
- return (g, m) => (h(), j("div", kA, [
29102
+ return (g, m) => (h(), j("div", SA, [
29091
29103
  v(i(Xe), {
29092
29104
  size: o.size,
29093
29105
  readonly: "",
@@ -29129,7 +29141,7 @@ ${m}${y}`;
29129
29141
  })
29130
29142
  ]),
29131
29143
  default: E(() => [
29132
- N("div", SA, [
29144
+ N("div", xA, [
29133
29145
  v(i(Xe), {
29134
29146
  size: o.size,
29135
29147
  "prefix-icon": i(un),
@@ -29139,8 +29151,8 @@ ${m}${y}`;
29139
29151
  placeholder: "请输入查询关键字",
29140
29152
  class: "van-icon-setter__input"
29141
29153
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
29142
- N("div", xA, [
29143
- N("div", CA, [
29154
+ N("div", CA, [
29155
+ N("div", AA, [
29144
29156
  (h(!0), j(Z, null, pe(c.value, (y) => (h(), j("i", {
29145
29157
  onClick: (_) => d(y),
29146
29158
  class: ye([
@@ -29149,7 +29161,7 @@ ${m}${y}`;
29149
29161
  "van-icon",
29150
29162
  "van-icon-setter__item"
29151
29163
  ])
29152
- }, null, 10, AA))), 256)),
29164
+ }, null, 10, TA))), 256)),
29153
29165
  c.value.length === 0 ? (h(), A(i(nt), {
29154
29166
  key: 0,
29155
29167
  class: "empty-wrapper"
@@ -29162,30 +29174,30 @@ ${m}${y}`;
29162
29174
  }, 8, ["modelValue"])) : B("", !0)
29163
29175
  ]));
29164
29176
  }
29165
- }), OA = /* @__PURE__ */ Jt(TA, [["__scopeId", "data-v-b0e9c57b"]]), Qe = {
29166
- StringSetter: sA,
29167
- BooleanSetter: aA,
29168
- ExpressionSetter: cA,
29169
- SelectSetter: uA,
29170
- NumberSetter: dA,
29171
- ColorSetter: pA,
29177
+ }), IA = /* @__PURE__ */ Jt(OA, [["__scopeId", "data-v-b0e9c57b"]]), Qe = {
29178
+ StringSetter: aA,
29179
+ BooleanSetter: lA,
29180
+ ExpressionSetter: uA,
29181
+ SelectSetter: dA,
29182
+ NumberSetter: pA,
29183
+ ColorSetter: fA,
29172
29184
  IconSetter: ld,
29173
29185
  JsonSetter: Aa,
29174
29186
  FunctionSetter: kn,
29175
- RadioSetter: fA,
29176
- TagSetter: mA,
29187
+ RadioSetter: gA,
29188
+ TagSetter: hA,
29177
29189
  SizeSetter: Ld,
29178
- ImageSetter: bA,
29179
- SectionSetter: _A,
29180
- SliderSetter: EA,
29190
+ ImageSetter: yA,
29191
+ SectionSetter: wA,
29192
+ SliderSetter: kA,
29181
29193
  FileSetter: pl,
29182
- VanIconSetter: OA,
29194
+ VanIconSetter: IA,
29183
29195
  CssSetter: bl
29184
- }, IA = {
29196
+ }, RA = {
29185
29197
  name: "StringSetter",
29186
29198
  component: Qe.StringSetter,
29187
29199
  type: "String"
29188
- }, RA = [
29200
+ }, DA = [
29189
29201
  {
29190
29202
  name: "InputSetter",
29191
29203
  component: Qe.StringSetter,
@@ -29327,7 +29339,7 @@ ${m}${y}`;
29327
29339
  component: Qe.CssSetter,
29328
29340
  type: "String"
29329
29341
  }
29330
- ], DA = {
29342
+ ], NA = {
29331
29343
  name: "getSkills",
29332
29344
  description: `获取技能文档, 调用示例:
29333
29345
  \`\`\`json
@@ -29346,7 +29358,7 @@ ${m}${y}`;
29346
29358
  }
29347
29359
  ],
29348
29360
  createHandler: ({ config: e }) => async (...t) => e.getSkills ? await e.getSkills(t) : ""
29349
- }, NA = {
29361
+ }, VA = {
29350
29362
  name: "getMenus",
29351
29363
  description: "获取当前项目的页面菜单树结构",
29352
29364
  parameters: [],
@@ -29362,7 +29374,7 @@ ${m}${y}`;
29362
29374
  children: d
29363
29375
  };
29364
29376
  })
29365
- }, VA = {
29377
+ }, PA = {
29366
29378
  name: "getPages",
29367
29379
  description: "获取当前项目的全部页面",
29368
29380
  parameters: [],
@@ -29377,7 +29389,7 @@ ${m}${y}`;
29377
29389
  icon: c
29378
29390
  };
29379
29391
  })
29380
- }, PA = {
29392
+ }, MA = {
29381
29393
  name: "createPage",
29382
29394
  description: `在当前项目新建页面。有层级的页面,需先创建父级,例如如先创建目录或布局类型的页面。示例:
29383
29395
  \`\`\`json
@@ -29423,7 +29435,7 @@ ${m}${y}`;
29423
29435
  },
29424
29436
  layout: {
29425
29437
  type: "boolean",
29426
- description: "是否布局页面,布局页面的子级是子页面,需要以 RouterView 结合",
29438
+ description: "是否布局页面,布局页面的子级是子页面,需要以 RouterView 结合,UniApp平台不支持目录和布局类型",
29427
29439
  required: !1
29428
29440
  }
29429
29441
  }
@@ -29440,7 +29452,8 @@ ${m}${y}`;
29440
29452
  throw new Error(
29441
29453
  "调用 createPage 工具参数错误,第一个参数要求是 PageFile 对象"
29442
29454
  );
29443
- const s = o || n.parentId, r = await e.createPage(
29455
+ e.platform === "uniapp" && (n.dir = !1, n.layout = !1);
29456
+ const r = o || n.parentId, a = await e.createPage(
29444
29457
  Object.assign(
29445
29458
  {
29446
29459
  cache: !1,
@@ -29458,19 +29471,19 @@ ${m}${y}`;
29458
29471
  },
29459
29472
  n
29460
29473
  ),
29461
- s
29474
+ r
29462
29475
  );
29463
- r.dir || (e.active(r), await Ie(t.activeDelayMs));
29464
- const { name: a, title: l, layout: c, dir: d } = n;
29465
- return r ? {
29466
- name: a,
29467
- title: l,
29468
- layout: c,
29469
- dir: d,
29470
- id: r.id
29476
+ a.dir || (e.active(a), await Ie(t.activeDelayMs));
29477
+ const { name: l, title: c, layout: d, dir: f } = n;
29478
+ return a ? {
29479
+ name: l,
29480
+ title: c,
29481
+ layout: d,
29482
+ dir: f,
29483
+ id: a.id
29471
29484
  } : null;
29472
29485
  }
29473
- }, MA = {
29486
+ }, jA = {
29474
29487
  name: "updatePage",
29475
29488
  description: "更改页面文件元信息",
29476
29489
  parameters: [
@@ -29515,7 +29528,7 @@ ${m}${y}`;
29515
29528
  }
29516
29529
  throw new Error("页面不存在");
29517
29530
  }
29518
- }, jA = {
29531
+ }, LA = {
29519
29532
  name: "movePage",
29520
29533
  description: "更改页面层级,布局和目录类型的页面可以有子级页面",
29521
29534
  parameters: [
@@ -29533,7 +29546,7 @@ ${m}${y}`;
29533
29546
  }
29534
29547
  ],
29535
29548
  createHandler: ({ project: e }) => async (t, n) => e.movePageTo(t, n)
29536
- }, LA = {
29549
+ }, BA = {
29537
29550
  name: "removePage",
29538
29551
  description: "删除页面或目录文件, 如删除目录或布局类型的页面,需先删除子级页面",
29539
29552
  parameters: [
@@ -29545,7 +29558,7 @@ ${m}${y}`;
29545
29558
  }
29546
29559
  ],
29547
29560
  createHandler: ({ project: e, config: t }) => async (n) => (e.removePage(n), await Ie(t.activeDelayMs), !0)
29548
- }, BA = {
29561
+ }, UA = {
29549
29562
  name: "getBlocks",
29550
29563
  description: "获取当前项目的全部区块组件",
29551
29564
  parameters: [],
@@ -29557,7 +29570,7 @@ ${m}${y}`;
29557
29570
  title: r
29558
29571
  };
29559
29572
  })
29560
- }, UA = {
29573
+ }, zA = {
29561
29574
  name: "createBlock",
29562
29575
  description: "在当前项目新建区块组件",
29563
29576
  parameters: [
@@ -29594,7 +29607,7 @@ ${m}${y}`;
29594
29607
  id: o.id
29595
29608
  } : null;
29596
29609
  }
29597
- }, zA = {
29610
+ }, $A = {
29598
29611
  name: "updateBlock",
29599
29612
  description: "更改区块文件元信息",
29600
29613
  parameters: [
@@ -29634,7 +29647,7 @@ ${m}${y}`;
29634
29647
  }
29635
29648
  throw new Error("区块文件不存在");
29636
29649
  }
29637
- }, $A = {
29650
+ }, FA = {
29638
29651
  name: "removeBlock",
29639
29652
  description: "删除区块文件",
29640
29653
  parameters: [
@@ -29646,7 +29659,7 @@ ${m}${y}`;
29646
29659
  }
29647
29660
  ],
29648
29661
  createHandler: ({ project: e, config: t }) => async (n) => (e.removeBlock(n), await Ie(t.activeDelayMs), !0)
29649
- }, FA = {
29662
+ }, HA = {
29650
29663
  name: "active",
29651
29664
  description: "打开一个文件(页面或区块组件)",
29652
29665
  parameters: [
@@ -29661,7 +29674,7 @@ ${m}${y}`;
29661
29674
  const o = e.getFile(n);
29662
29675
  return o ? (e.active(o), await Ie(t.activeDelayMs), !0) : null;
29663
29676
  }
29664
- }, HA = {
29677
+ }, JA = {
29665
29678
  name: "getCurrentFile",
29666
29679
  description: "获取当前打开的文件(页面、区块)元信息",
29667
29680
  parameters: [],
@@ -29677,7 +29690,7 @@ ${m}${y}`;
29677
29690
  }
29678
29691
  throw new Error("当前没有打开的文件");
29679
29692
  }
29680
- }, JA = {
29693
+ }, GA = {
29681
29694
  name: "getCurrentFileContent",
29682
29695
  description: "获取当前打开的文件(页面、区块)内容源码",
29683
29696
  parameters: [],
@@ -29691,7 +29704,7 @@ ${m}${y}`;
29691
29704
  }
29692
29705
  throw new Error("当前没有打开的文件");
29693
29706
  }
29694
- }, GA = {
29707
+ }, KA = {
29695
29708
  name: "refresh",
29696
29709
  description: "刷新当前页面或区块组件运行时,当需要检测代码是否存在运行时错误可调用",
29697
29710
  parameters: [],
@@ -29703,7 +29716,7 @@ ${m}${y}`;
29703
29716
  ${n.message}
29704
29717
  请检查页面代码并修复` : !0;
29705
29718
  }
29706
- }, KA = {
29719
+ }, WA = {
29707
29720
  name: "setApi",
29708
29721
  description: "新增或更新项目接口API",
29709
29722
  parameters: [
@@ -29740,14 +29753,14 @@ ${n.message}
29740
29753
  return await Ie(t.activeDelayMs), o;
29741
29754
  };
29742
29755
  }
29743
- }, WA = {
29756
+ }, qA = {
29744
29757
  name: "getApis",
29745
29758
  description: "获取当前项目可用的APIs",
29746
29759
  parameters: [],
29747
29760
  createHandler({ project: e, config: t }) {
29748
29761
  return async () => (await Ie(t.activeDelayMs), e.apis);
29749
29762
  }
29750
- }, qA = {
29763
+ }, QA = {
29751
29764
  name: "removeApi",
29752
29765
  description: "删除API",
29753
29766
  parameters: [
@@ -29759,7 +29772,27 @@ ${n.message}
29759
29772
  }
29760
29773
  ],
29761
29774
  createHandler: ({ project: e, config: t }) => async (n) => (e.removeApi(n), await Ie(t.activeDelayMs), !0)
29762
- }, QA = {
29775
+ }, YA = {
29776
+ name: "removeApis",
29777
+ description: "批量删除API",
29778
+ parameters: [
29779
+ {
29780
+ name: "apis",
29781
+ type: "array",
29782
+ description: "API名称或ID数组",
29783
+ required: !0,
29784
+ items: {
29785
+ type: "string",
29786
+ description: "API名称或ID"
29787
+ }
29788
+ }
29789
+ ],
29790
+ createHandler: ({ project: e, config: t }) => async (n = []) => {
29791
+ for (const o of n)
29792
+ e.removeApi(o);
29793
+ return await Ie(t.activeDelayMs), !0;
29794
+ }
29795
+ }, XA = {
29763
29796
  name: "setHomepage",
29764
29797
  description: "设置应用主页, 把页面设置为应用的主页",
29765
29798
  parameters: [
@@ -29771,7 +29804,7 @@ ${n.message}
29771
29804
  }
29772
29805
  ],
29773
29806
  createHandler: ({ project: e, config: t }) => async (n) => (e.setHomepage(n), await Ie(t.activeDelayMs), !0)
29774
- }, YA = {
29807
+ }, ZA = {
29775
29808
  name: "setGlobalCss",
29776
29809
  description: "设置应用的全局css代码",
29777
29810
  parameters: [
@@ -29783,12 +29816,12 @@ ${n.message}
29783
29816
  }
29784
29817
  ],
29785
29818
  createHandler: ({ project: e, config: t }) => async (n) => (e.setGloblas("css", n), await Ie(t.activeDelayMs), !0)
29786
- }, XA = {
29819
+ }, eT = {
29787
29820
  name: "getGlobalCss",
29788
29821
  description: "获取应用的全局css代码",
29789
29822
  parameters: [],
29790
29823
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.css || "没有全局CSS")
29791
- }, ZA = {
29824
+ }, tT = {
29792
29825
  name: "setGlobalStore",
29793
29826
  description: "设置应用的全局Pinia状态",
29794
29827
  parameters: [
@@ -29813,7 +29846,8 @@ ${n.message}
29813
29846
  }
29814
29847
  }
29815
29848
  \`\`\`
29816
- store的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回一个标准 Pinia Store
29849
+ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回一个标准 Pinia Store
29850
+ 你可以调用 getSkills 工具或取 pinia 的用法
29817
29851
  `,
29818
29852
  required: !0
29819
29853
  }
@@ -29822,12 +29856,12 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
29822
29856
  type: "JSFunction",
29823
29857
  value: n
29824
29858
  }), await Ie(t.activeDelayMs), !0)
29825
- }, eT = {
29859
+ }, nT = {
29826
29860
  name: "getGlobalStore",
29827
29861
  description: "获取应用的全局状态(Pinia Store)",
29828
29862
  parameters: [],
29829
29863
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.store?.value || "当前没有配置全局状态")
29830
- }, tT = {
29864
+ }, oT = {
29831
29865
  name: "setGlobalAccess",
29832
29866
  description: `设置权限控制插件配置项, 配置样例:
29833
29867
  \`\`\`javascript
@@ -29848,95 +29882,7 @@ store的代码是一个js函数,函数接收的app参数是 Vue的应用实例
29848
29882
  \`\`\`
29849
29883
 
29850
29884
  权限控制配置的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回 AccessOptions 配置项对象
29851
-
29852
- 配置项说明:
29853
-
29854
- export interface AccessOptions {
29855
- /**
29856
- * 开启session, token 储存到cookie,关闭浏览器将登录失效
29857
- */
29858
- session: boolean;
29859
-
29860
- /**
29861
- * 请求头和cookie记录token名称
29862
- */
29863
- authKey: string;
29864
-
29865
- /**
29866
- * 本地缓存key前缀
29867
- */
29868
- storagePrefix: string;
29869
-
29870
- /**
29871
- * 本地缓存key
29872
- */
29873
- storageKey: string;
29874
-
29875
- /**
29876
- * 路由拦截白名单
29877
- */
29878
- whiteList?: string[] | ((to: RouteLocationNormalized) => boolean);
29879
-
29880
- /**
29881
- * 未授权页面路由路径
29882
- */
29883
- unauthorized?: string | (() => void);
29884
-
29885
- /**
29886
- * 授权登录页面 pathname
29887
- */
29888
- auth?: string | ((search: string) => void);
29889
-
29890
- /**
29891
- * 判断是否登录页面
29892
- * @param path
29893
- * @returns
29894
- */
29895
- isAuth?: (to: RouteLocationNormalized) => boolean;
29896
-
29897
- /**
29898
- * 重定向参数名
29899
- */
29900
- redirectParam?: string;
29901
-
29902
- /**
29903
- * 未登录响应状态码
29904
- */
29905
- unauthorizedCode?: number;
29906
-
29907
- /**
29908
- * 提示信息方法
29909
- * @param message
29910
- * @returns
29911
- */
29912
- alert?: (message: string, options?: Record<string, any>) => Promise<any>;
29913
-
29914
- /**
29915
- * 未登录提示文本
29916
- */
29917
- unauthorizedMessage?: string;
29918
-
29919
- /**
29920
- * 无权限提示
29921
- */
29922
- noPermissionMessage?: string;
29923
-
29924
- /**
29925
- * RSA解密私钥
29926
- */
29927
- privateKey?: string;
29928
-
29929
- /**
29930
- * 应用编码
29931
- */
29932
- appName?: string;
29933
-
29934
- /**
29935
- * 请求响应数据状态的key
29936
- */
29937
- statusKey?: string;
29938
- }
29939
-
29885
+ 你可以调用 getSkills 工具或取 access 用法
29940
29886
  `,
29941
29887
  parameters: [
29942
29888
  {
@@ -29950,17 +29896,17 @@ export interface AccessOptions {
29950
29896
  type: "JSFunction",
29951
29897
  value: n
29952
29898
  }), await Ie(t.activeDelayMs), !0)
29953
- }, nT = {
29899
+ }, rT = {
29954
29900
  name: "getGlobalAccess",
29955
29901
  description: "查看权限控制插件配置项",
29956
29902
  parameters: [],
29957
29903
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.access?.value || "当前没有配置权限控制插件")
29958
- }, oT = {
29904
+ }, sT = {
29959
29905
  name: "getGlobalAxios",
29960
29906
  description: "查看Axios请求工具配置项",
29961
29907
  parameters: [],
29962
29908
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.axios?.value || "当前没有配置请求工具")
29963
- }, rT = {
29909
+ }, aT = {
29964
29910
  name: "setGlobalAxios",
29965
29911
  description: `
29966
29912
  设置全局Axios请求工具配置项, 配置样例:
@@ -29983,79 +29929,7 @@ export interface AccessOptions {
29983
29929
  }
29984
29930
  \`\`\`
29985
29931
  设置全局Axios请求工具配置项的代码是一个js函数,函数接收的app参数是 Vue的应用实例,函数返回 IRequestOptions 配置项对象
29986
-
29987
- export interface IRequestOptions extends CreateAxiosDefaults {
29988
- settings?: IRequestSettings;
29989
- }
29990
-
29991
- settings 配置项说明:
29992
-
29993
- export interface IRequestSettings {
29994
- /**
29995
- * 发送数据类型
29996
- */
29997
- type?: 'form' | 'json' | 'data';
29998
-
29999
- /**
30000
- * 是否注入自定义的请求头
30001
- */
30002
- injectHeaders?: boolean;
30003
-
30004
- /**
30005
- * 自定义请求头
30006
- */
30007
- headers?:
30008
- | RawAxiosRequestHeaders
30009
- | ((
30010
- id: string,
30011
- config: AxiosRequestConfig,
30012
- settings: IRequestSettings
30013
- ) => RawAxiosRequestHeaders);
30014
- /**
30015
- * 是否显示 loading
30016
- */
30017
- loading?: boolean;
30018
-
30019
- /**
30020
- * 显示 loading
30021
- */
30022
- showLoading?: () => void;
30023
- /**
30024
- * 关闭 loading
30025
- */
30026
- hideLoading?: () => void;
30027
-
30028
- /**
30029
- * 显示失败提示
30030
- */
30031
- failMessage?: boolean;
30032
-
30033
- /**
30034
- * 自定义失败提示
30035
- */
30036
- showError?: (msg: string, e: any) => void;
30037
-
30038
- /**
30039
- * 返回原始 axios 响应对象
30040
- */
30041
- originResponse?: boolean;
30042
-
30043
- /**
30044
- * 校验响应成功
30045
- */
30046
- validSuccess?: boolean;
30047
-
30048
- /**
30049
- * 自定义校验方法
30050
- */
30051
- validate?: (res: AxiosResponse) => boolean;
30052
-
30053
- /**
30054
- * 请求响应警告执行程序插件
30055
- */
30056
- skipWarn?: IRequestSkipWarn;
30057
-
30058
- }
29932
+ 你可以调用 getSkills 工具或取 axios 用法
30059
29933
  `,
30060
29934
  parameters: [
30061
29935
  {
@@ -30069,7 +29943,7 @@ export interface IRequestSettings {
30069
29943
  type: "JSFunction",
30070
29944
  value: n
30071
29945
  }), await Ie(t.activeDelayMs), !0)
30072
- }, sT = {
29946
+ }, lT = {
30073
29947
  name: "setGlobalRequestInterceptor",
30074
29948
  description: `设置全局Axios全局请求拦截器, 代码样例:
30075
29949
 
@@ -30098,12 +29972,12 @@ axios请求拦截的代码是一个js函数,函数接收两个参数:
30098
29972
  type: "JSFunction",
30099
29973
  value: n
30100
29974
  }), await Ie(t.activeDelayMs), !0)
30101
- }, aT = {
29975
+ }, iT = {
30102
29976
  name: "getGlobalRequestInterceptor",
30103
29977
  description: "查看全局Axios全局请求拦截器",
30104
29978
  parameters: [],
30105
29979
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.request?.value || "当前没有配置请求拦截器")
30106
- }, lT = {
29980
+ }, cT = {
30107
29981
  name: "setGlobalResponseInterceptor",
30108
29982
  description: `设置全局Axios全局响应拦截器, 代码样例:
30109
29983
 
@@ -30132,22 +30006,22 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30132
30006
  type: "JSFunction",
30133
30007
  value: n
30134
30008
  }), await Ie(t.activeDelayMs), !0)
30135
- }, iT = {
30009
+ }, uT = {
30136
30010
  name: "getGlobalResponseInterceptor",
30137
30011
  description: "查看全局Axios全局响应拦截器",
30138
30012
  parameters: [],
30139
30013
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.response?.value || "当前没有配置响应拦截器")
30140
- }, cT = {
30014
+ }, dT = {
30141
30015
  name: "getGlobalBeforeEach",
30142
30016
  description: "查看全局前置路由守卫",
30143
30017
  parameters: [],
30144
30018
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.beforeEach?.value || "当前没有全局前置路由守卫")
30145
- }, uT = {
30019
+ }, pT = {
30146
30020
  name: "getGlobalAfterEach",
30147
30021
  description: "查看全局后置路由守卫",
30148
30022
  parameters: [],
30149
30023
  createHandler: ({ project: e, config: t }) => async () => (await Ie(t.activeDelayMs), e.globals.afterEach?.value || "当前没有全局后置路由守卫")
30150
- }, dT = {
30024
+ }, fT = {
30151
30025
  name: "setGlobalBeforeEach",
30152
30026
  description: `设置全局前置路由守卫, 代码样例:
30153
30027
 
@@ -30178,7 +30052,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30178
30052
  type: "JSFunction",
30179
30053
  value: n
30180
30054
  }), await Ie(t.activeDelayMs), !0)
30181
- }, pT = {
30055
+ }, gT = {
30182
30056
  name: "setGlobalAfterEach",
30183
30057
  description: `设置全局后置路由守卫, 代码样例:
30184
30058
 
@@ -30209,7 +30083,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30209
30083
  type: "JSFunction",
30210
30084
  value: n
30211
30085
  }), await Ie(t.activeDelayMs), !0)
30212
- }, fT = {
30086
+ }, mT = {
30213
30087
  name: "getNodeSelected",
30214
30088
  description: "获取当前页面选中的节点路径,用于定位当前选中的页面元素,路径最后一个是选中的元素名称",
30215
30089
  parameters: [],
@@ -30219,12 +30093,12 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30219
30093
  const n = t.selected.value?.path;
30220
30094
  return n ? n.map((o) => o.name).reverse().join(">") : null;
30221
30095
  }
30222
- }, gT = {
30096
+ }, hT = {
30223
30097
  name: "getEnv",
30224
30098
  description: "获取环境变量列表, 环境变量的值可用 `app.config.globalProperties.$provider.env.变量名` 或在组件中用 `this.$provider.env.变量名`获取",
30225
30099
  parameters: [],
30226
30100
  createHandler: ({ project: e }) => async () => e.env || []
30227
- }, mT = {
30101
+ }, vT = {
30228
30102
  name: "createEnv",
30229
30103
  description: "新增环境变量",
30230
30104
  parameters: [
@@ -30256,7 +30130,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30256
30130
  const n = [...e.env, t];
30257
30131
  return e.setEnv(n), !0;
30258
30132
  }
30259
- }, hT = {
30133
+ }, bT = {
30260
30134
  name: "removeEnv",
30261
30135
  description: "删除环境变量",
30262
30136
  parameters: [
@@ -30271,12 +30145,12 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30271
30145
  const n = (e.env || []).filter((o) => o.name !== t);
30272
30146
  return e.setEnv(n), !0;
30273
30147
  }
30274
- }, vT = {
30148
+ }, yT = {
30275
30149
  name: "getI18nMessage",
30276
30150
  description: "获取 vue-i18n 的 message 中英对照词条, 在组件可用 `this.$t.key` 调用词条",
30277
30151
  parameters: [],
30278
30152
  createHandler: ({ project: e }) => async () => e.i18n.messages || []
30279
- }, bT = {
30153
+ }, _T = {
30280
30154
  name: "createI18nMessage",
30281
30155
  description: "新增 vue-i18n 的 message 中英对照词条",
30282
30156
  parameters: [
@@ -30305,7 +30179,7 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30305
30179
  }
30306
30180
  ],
30307
30181
  createHandler: ({ project: e }) => async (t) => (e.i18n.messages?.push(t), e.setI18n(e.i18n), !0)
30308
- }, yT = {
30182
+ }, wT = {
30309
30183
  name: "removeI18nMessage",
30310
30184
  description: "删除 vue-i18n 的 message 词条",
30311
30185
  parameters: [
@@ -30319,16 +30193,15 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30319
30193
  createHandler: ({ project: e }) => async (t) => (e.i18n.messages = e.i18n.messages?.filter(
30320
30194
  (n) => n.key !== t
30321
30195
  ), e.setI18n(e.i18n), !0)
30322
- }, _T = [
30323
- DA,
30196
+ }, ET = [
30324
30197
  NA,
30325
30198
  VA,
30326
- BA,
30327
30199
  PA,
30200
+ UA,
30328
30201
  MA,
30329
30202
  jA,
30330
30203
  LA,
30331
- UA,
30204
+ BA,
30332
30205
  zA,
30333
30206
  $A,
30334
30207
  FA,
@@ -30349,10 +30222,10 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30349
30222
  rT,
30350
30223
  sT,
30351
30224
  aT,
30352
- iT,
30353
30225
  lT,
30354
- cT,
30226
+ iT,
30355
30227
  uT,
30228
+ cT,
30356
30229
  dT,
30357
30230
  pT,
30358
30231
  fT,
@@ -30361,16 +30234,18 @@ axios响应拦截的代码是一个js函数,函数接收两个参数:
30361
30234
  hT,
30362
30235
  vT,
30363
30236
  bT,
30364
- yT
30237
+ yT,
30238
+ _T,
30239
+ wT
30365
30240
  ];
30366
- class wT {
30241
+ class kT {
30367
30242
  constructor() {
30368
30243
  fe(this, "widgets", {});
30369
30244
  this.widgets = this.createWidgets();
30370
30245
  }
30371
30246
  createWidgets() {
30372
30247
  const t = {};
30373
- for (const n of ZC)
30248
+ for (const n of eA)
30374
30249
  t[n.name] = n;
30375
30250
  return t;
30376
30251
  }
@@ -30433,9 +30308,9 @@ class wT {
30433
30308
  this.getRemoteWidgets().forEach((n) => this.unregister(n.name));
30434
30309
  }
30435
30310
  }
30436
- const Zn = new wT();
30437
- class ET {
30438
- constructor(t = eA) {
30311
+ const Zn = new kT();
30312
+ class ST {
30313
+ constructor(t = tA) {
30439
30314
  this.deps = t;
30440
30315
  }
30441
30316
  /**
@@ -30509,16 +30384,16 @@ class ET {
30509
30384
  n > -1 && this.deps.splice(n, 1);
30510
30385
  }
30511
30386
  }
30512
- const Mi = new ET();
30513
- class kT {
30387
+ const Mi = new ST();
30388
+ class xT {
30514
30389
  constructor() {
30515
30390
  fe(this, "setters", {});
30516
- fe(this, "defaultSetter", IA);
30391
+ fe(this, "defaultSetter", RA);
30517
30392
  this.setters = this.createSetters();
30518
30393
  }
30519
30394
  createSetters() {
30520
30395
  const t = {};
30521
- for (const n of RA)
30396
+ for (const n of DA)
30522
30397
  t[n.name] = n;
30523
30398
  return t;
30524
30399
  }
@@ -30555,7 +30430,7 @@ class kT {
30555
30430
  return Object.values(this.setters).filter((o) => o.type.toLowerCase() === t.toLowerCase()).map((o) => o.name);
30556
30431
  }
30557
30432
  }
30558
- const nr = new kT(), Jn = H({
30433
+ const nr = new xT(), Jn = H({
30559
30434
  name: "RegionWrapper",
30560
30435
  props: {
30561
30436
  region: {
@@ -30598,7 +30473,7 @@ const nr = new kT(), Jn = H({
30598
30473
  ref: "widgetRef"
30599
30474
  });
30600
30475
  }
30601
- }), ST = H({
30476
+ }), CT = H({
30602
30477
  name: "SkeletonWrapper",
30603
30478
  setup() {
30604
30479
  const e = D(), t = Be(), n = D({});
@@ -30613,7 +30488,7 @@ const nr = new kT(), Jn = H({
30613
30488
  },
30614
30489
  render() {
30615
30490
  const { $props: e = {}, $attrs: t = {} } = this;
30616
- return eo(jT, { ...e, ...t, ref: "skeletonRef" });
30491
+ return eo(BT, { ...e, ...t, ref: "skeletonRef" });
30617
30492
  },
30618
30493
  methods: {
30619
30494
  /**
@@ -30768,7 +30643,7 @@ const nr = new kT(), Jn = H({
30768
30643
  onRemove: p,
30769
30644
  disabled: g
30770
30645
  } = this;
30771
- return eo(HT, {
30646
+ return eo(GT, {
30772
30647
  context: e,
30773
30648
  current: t,
30774
30649
  name: n,
@@ -30798,7 +30673,7 @@ const nr = new kT(), Jn = H({
30798
30673
  }
30799
30674
  }
30800
30675
  });
30801
- function xT(e, t) {
30676
+ function AT(e, t) {
30802
30677
  return new Promise((n, o) => {
30803
30678
  const s = Da(kE, {
30804
30679
  name: e,
@@ -30813,7 +30688,7 @@ function xT(e, t) {
30813
30688
  s.mount(document.createElement("div"));
30814
30689
  });
30815
30690
  }
30816
- class CT {
30691
+ class TT {
30817
30692
  constructor(t, n, o) {
30818
30693
  fe(this, "proxied", {});
30819
30694
  fe(this, "document", null);
@@ -30910,7 +30785,7 @@ class CT {
30910
30785
  const { name: p, params: g = [] } = f[0];
30911
30786
  return p === "default" && !g.length ? void 0 : f[0];
30912
30787
  }
30913
- const u = await xT(t.name, f).catch(() => null);
30788
+ const u = await AT(t.name, f).catch(() => null);
30914
30789
  if (!(u && u.name === "default" && (!u.params || u.params?.length === 0)))
30915
30790
  return u;
30916
30791
  }
@@ -31137,13 +31012,13 @@ class CT {
31137
31012
  this.setSelected(null), this.setHover(null), this.setDragging(null), this.lines.value = [], t && n && this.unbindEvents(t, n), this.document = null;
31138
31013
  }
31139
31014
  }
31140
- const AT = [
31015
+ const OT = [
31141
31016
  '"ResizeObserver loop completed with undelivered notifications."',
31142
31017
  "ResizeObserver loop completed with undelivered notifications.",
31143
31018
  '"ResizeObserver loop completed with undelivered notifications."',
31144
31019
  "ResizeObserver loop limit exceeded"
31145
31020
  ];
31146
- class TT {
31021
+ class IT {
31147
31022
  constructor(t, n, o) {
31148
31023
  fe(this, "api");
31149
31024
  fe(this, "remote");
@@ -31184,7 +31059,7 @@ class TT {
31184
31059
  bindGlobalError() {
31185
31060
  window.addEventListener("error", (t) => {
31186
31061
  const n = t.error || t;
31187
- AT.includes(n.message) || this.error(n, {
31062
+ OT.includes(n.message) || this.error(n, {
31188
31063
  type: "window.error",
31189
31064
  event: n,
31190
31065
  eventString: n.toString()
@@ -31253,7 +31128,7 @@ class TT {
31253
31128
  }), console.error(t);
31254
31129
  }
31255
31130
  }
31256
- class OT {
31131
+ class RT {
31257
31132
  constructor(t, n, o, s, r = null, a = null) {
31258
31133
  fe(this, "app", null);
31259
31134
  fe(this, "dsl", null);
@@ -31410,7 +31285,7 @@ class OT {
31410
31285
  return !1;
31411
31286
  }
31412
31287
  }
31413
- class IT extends Zi {
31288
+ class DT extends Zi {
31414
31289
  constructor(n) {
31415
31290
  super();
31416
31291
  fe(this, "contentWindow", null);
@@ -31429,7 +31304,7 @@ class IT extends Zi {
31429
31304
  le(
31430
31305
  [n, o, s, r, a, l, c, d],
31431
31306
  () => {
31432
- n.value && o.value.length && (this.resetReady(), this.renderer?.dispose(), this.renderer = null, this.setup(n.value, o.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new CT(
31307
+ n.value && o.value.length && (this.resetReady(), this.renderer?.dispose(), this.renderer = null, this.setup(n.value, o.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new TT(
31433
31308
  this.engine,
31434
31309
  this.contentWindow,
31435
31310
  o
@@ -31562,7 +31437,7 @@ class IT extends Zi {
31562
31437
  m,
31563
31438
  r
31564
31439
  );
31565
- this.renderer = new OT(
31440
+ this.renderer = new RT(
31566
31441
  y,
31567
31442
  c,
31568
31443
  f,
@@ -31638,7 +31513,7 @@ class IT extends Zi {
31638
31513
  this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null, this.resetReady();
31639
31514
  }
31640
31515
  }
31641
- class RT {
31516
+ class NT {
31642
31517
  constructor(t, n) {
31643
31518
  fe(this, "components", []);
31644
31519
  fe(this, "componentMap", /* @__PURE__ */ new Map());
@@ -31679,7 +31554,7 @@ class RT {
31679
31554
  return n;
31680
31555
  }
31681
31556
  load(t) {
31682
- const n = [...rA, ...t].filter((o) => !!o);
31557
+ const n = [...sA, ...t].filter((o) => !!o);
31683
31558
  n.sort((o, s) => o.order - s.order), this.components = [];
31684
31559
  for (let o of n)
31685
31560
  o.components && (this.components = this.components.concat(o.components));
@@ -31727,9 +31602,9 @@ class RT {
31727
31602
  this.caches = {};
31728
31603
  }
31729
31604
  }
31730
- class DO {
31605
+ class VO {
31731
31606
  }
31732
- const DT = {
31607
+ const VT = {
31733
31608
  outlineEnabled: !0,
31734
31609
  activeEvent: !0,
31735
31610
  autoApply: !0,
@@ -31740,9 +31615,9 @@ const DT = {
31740
31615
  dark: !1,
31741
31616
  streaming: !1
31742
31617
  };
31743
- class NT {
31618
+ class PT {
31744
31619
  constructor() {
31745
- fe(this, "__state", an(DT));
31620
+ fe(this, "__state", an(VT));
31746
31621
  fe(this, "__isDark", Oh({
31747
31622
  storageKey: "color-schema"
31748
31623
  }));
@@ -31827,7 +31702,7 @@ class NT {
31827
31702
  return this.__state.LLMs.find((n) => n.id === t);
31828
31703
  }
31829
31704
  }
31830
- class VT {
31705
+ class MT {
31831
31706
  constructor() {
31832
31707
  /**
31833
31708
  * 工具存储
@@ -31952,7 +31827,7 @@ class VT {
31952
31827
  }
31953
31828
  }
31954
31829
  const Bd = Symbol("VtjEngine"), aa = "SAVE_BLOCK_FILE_FINISH";
31955
- class NO extends Zi {
31830
+ class PO extends Zi {
31956
31831
  constructor(n) {
31957
31832
  super();
31958
31833
  fe(this, "app");
@@ -31998,9 +31873,9 @@ class NO extends Zi {
31998
31873
  // 是否检查版本
31999
31874
  fe(this, "openApi");
32000
31875
  // OpenAPI服务
32001
- fe(this, "state", new NT());
31876
+ fe(this, "state", new PT());
32002
31877
  // 引擎状态
32003
- fe(this, "toolRegistry", new VT());
31878
+ fe(this, "toolRegistry", new MT());
32004
31879
  this.options = n;
32005
31880
  const {
32006
31881
  container: o,
@@ -32032,11 +31907,11 @@ class NO extends Zi {
32032
31907
  adapter: p,
32033
31908
  pageRouteName: u,
32034
31909
  install: g
32035
- }), this.assets = new RT(this.service, this.provider), this.simulator = new IT({
31910
+ }), this.assets = new NT(this.service, this.provider), this.simulator = new DT({
32036
31911
  engine: this,
32037
31912
  materialPath: d,
32038
31913
  enhance: this.getEnhanceConfig(k)
32039
- }), this.access = m || new uf({ alert: Kt, ...df }), this.remote = y, this.report = new TT(this.remote, this.access, this.service), this.checkVersion = _, this.bindEvents(), this.init(r).then(this.render.bind(this)), gs(this.dispose.bind(this));
31914
+ }), this.access = m || new uf({ alert: Kt, ...df }), this.remote = y, this.report = new IT(this.remote, this.access, this.service), this.checkVersion = _, this.bindEvents(), this.init(r).then(this.render.bind(this)), gs(this.dispose.bind(this));
32040
31915
  }
32041
31916
  /**
32042
31917
  * 初始化引擎
@@ -32093,7 +31968,7 @@ class NO extends Zi {
32093
31968
  render() {
32094
31969
  const n = i(this.container);
32095
31970
  if (n) {
32096
- const o = Da(ST);
31971
+ const o = Da(CT);
32097
31972
  this.options.install && o.use(this.options.install, this), o.provide(Bd, gp(this)), o.mount(n), this.app = o;
32098
31973
  } else
32099
31974
  jn.warn("VTJEngine constructor param [ container ] is undefined");
@@ -32332,7 +32207,7 @@ function Be() {
32332
32207
  const e = fs(Bd, null);
32333
32208
  return e || jn.error("VTJEngine is not exist"), e;
32334
32209
  }
32335
- class PT {
32210
+ class jT {
32336
32211
  constructor() {
32337
32212
  // 缓存正则表达式,避免重复编译
32338
32213
  fe(this, "vueCodeRegex", /```vue\r?\n([\s\S]*?)(?:\r?\n```|$)/);
@@ -32634,7 +32509,7 @@ ${r.join(`
32634
32509
  }), n;
32635
32510
  }
32636
32511
  }
32637
- const ji = new PT(), MT = /* @__PURE__ */ H({
32512
+ const ji = new jT(), LT = /* @__PURE__ */ H({
32638
32513
  __name: "tour",
32639
32514
  setup(e) {
32640
32515
  const t = Be();
@@ -32694,7 +32569,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
32694
32569
  _: 1
32695
32570
  }, 8, ["modelValue"]));
32696
32571
  }
32697
- }), jT = /* @__PURE__ */ H({
32572
+ }), BT = /* @__PURE__ */ H({
32698
32573
  name: "Skeletion",
32699
32574
  __name: "skeleton",
32700
32575
  props: {
@@ -32852,15 +32727,15 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
32852
32727
  ]),
32853
32728
  _: 1
32854
32729
  }),
32855
- v(MT)
32730
+ v(LT)
32856
32731
  ]),
32857
32732
  _: 1
32858
32733
  }, 8, ["locale"]));
32859
32734
  }
32860
- }), LT = ["title"], BT = { class: "v-setter__content" }, UT = {
32735
+ }), UT = ["title"], zT = { class: "v-setter__content" }, $T = {
32861
32736
  key: 0,
32862
32737
  class: "v-setter__input"
32863
- }, zT = { class: "v-setter__action" }, $T = "{{", FT = "}}", HT = /* @__PURE__ */ H({
32738
+ }, FT = { class: "v-setter__action" }, HT = "{{", JT = "}}", GT = /* @__PURE__ */ H({
32864
32739
  __name: "setter",
32865
32740
  props: {
32866
32741
  context: {},
@@ -32928,11 +32803,11 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
32928
32803
  }, 8, ["content"])) : (h(), j("span", {
32929
32804
  key: 1,
32930
32805
  title: n.name
32931
- }, se(n.label || n.name), 9, LT))
32806
+ }, se(n.label || n.name), 9, UT))
32932
32807
  ]),
32933
32808
  default: E(() => [
32934
- N("div", BT, [
32935
- a.value ? (h(), j("div", UT, [
32809
+ N("div", zT, [
32810
+ a.value ? (h(), j("div", $T, [
32936
32811
  c.value ? B("", !0) : (h(), A(zi(a.value.component), it({
32937
32812
  key: 0,
32938
32813
  current: n.current,
@@ -32951,15 +32826,15 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
32951
32826
  "model-value": "JSExpression"
32952
32827
  }, {
32953
32828
  prefix: E(() => [
32954
- ee(se($T))
32829
+ ee(se(HT))
32955
32830
  ]),
32956
32831
  suffix: E(() => [
32957
- ee(se(FT))
32832
+ ee(se(JT))
32958
32833
  ]),
32959
32834
  _: 1
32960
32835
  })) : B("", !0)
32961
32836
  ])) : B("", !0),
32962
- N("div", zT, [
32837
+ N("div", FT, [
32963
32838
  n.variable ? (h(), A(i(Im), {
32964
32839
  key: 0,
32965
32840
  onClick: g,
@@ -33021,16 +32896,16 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33021
32896
  _: 1
33022
32897
  }));
33023
32898
  }
33024
- }), JT = { class: "v-empty-region" }, GT = /* @__PURE__ */ H({
32899
+ }), KT = { class: "v-empty-region" }, WT = /* @__PURE__ */ H({
33025
32900
  name: "EmptyRegion",
33026
32901
  __name: "empty",
33027
32902
  props: {
33028
32903
  region: {}
33029
32904
  },
33030
32905
  setup(e) {
33031
- return (t, n) => (h(), j("div", JT, "找不到符合【" + se(e.region) + "】名称的区域组件", 1));
32906
+ return (t, n) => (h(), j("div", KT, "找不到符合【" + se(e.region) + "】名称的区域组件", 1));
33032
32907
  }
33033
- }), KT = { class: "v-brand-region" }, WT = /* @__PURE__ */ H({
32908
+ }), qT = { class: "v-brand-region" }, QT = /* @__PURE__ */ H({
33034
32909
  name: "BrandRegion",
33035
32910
  inheritAttrs: !1,
33036
32911
  __name: "brand",
@@ -33042,7 +32917,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33042
32917
  return t({
33043
32918
  widgets: o,
33044
32919
  widgetsRef: s
33045
- }), (r, a) => (h(), j("div", KT, [
32920
+ }), (r, a) => (h(), j("div", qT, [
33046
32921
  (h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
33047
32922
  ref_for: !0,
33048
32923
  ref_key: "widgetsRef",
@@ -33052,7 +32927,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33052
32927
  }, null, 8, ["region", "widget"]))), 256))
33053
32928
  ]));
33054
32929
  }
33055
- }), qT = { class: "v-toolbar-region" }, QT = /* @__PURE__ */ H({
32930
+ }), YT = { class: "v-toolbar-region" }, XT = /* @__PURE__ */ H({
33056
32931
  name: "ToolbarRegion",
33057
32932
  __name: "toolbar",
33058
32933
  props: {
@@ -33064,7 +32939,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33064
32939
  return t({
33065
32940
  widgets: o,
33066
32941
  widgetsRef: s
33067
- }), (r, a) => (h(), j("div", qT, [
32942
+ }), (r, a) => (h(), j("div", YT, [
33068
32943
  (h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
33069
32944
  ref_for: !0,
33070
32945
  ref_key: "widgetsRef",
@@ -33075,7 +32950,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33075
32950
  }, null, 8, ["region", "widget", "preview"]))), 256))
33076
32951
  ]));
33077
32952
  }
33078
- }), YT = { class: "v-actions-region" }, XT = /* @__PURE__ */ H({
32953
+ }), ZT = { class: "v-actions-region" }, eO = /* @__PURE__ */ H({
33079
32954
  name: "ActionsRegion",
33080
32955
  inheritAttrs: !1,
33081
32956
  __name: "actions",
@@ -33087,7 +32962,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33087
32962
  return t({
33088
32963
  widgets: o,
33089
32964
  widgetsRef: s
33090
- }), (r, a) => (h(), j("div", YT, [
32965
+ }), (r, a) => (h(), j("div", ZT, [
33091
32966
  (h(!0), j(Z, null, pe(i(o), (l) => (h(), A(i(Cn), {
33092
32967
  ref_for: !0,
33093
32968
  ref_key: "widgetsRef",
@@ -33097,7 +32972,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33097
32972
  }, null, 8, ["region", "widget"]))), 256))
33098
32973
  ]));
33099
32974
  }
33100
- }), ZT = { class: "v-apps-region" }, eO = { class: "v-apps-region__header" }, tO = { class: "v-apps-region__top" }, nO = { class: "v-apps-region__bottom" }, oO = { class: "v-apps-region__panels" }, rO = /* @__PURE__ */ H({
32975
+ }), tO = { class: "v-apps-region" }, nO = { class: "v-apps-region__header" }, oO = { class: "v-apps-region__top" }, rO = { class: "v-apps-region__bottom" }, sO = { class: "v-apps-region__panels" }, aO = /* @__PURE__ */ H({
33101
32976
  name: "AppsRegion",
33102
32977
  inheritAttrs: !1,
33103
32978
  __name: "apps",
@@ -33130,9 +33005,9 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33130
33005
  const b = c.value.find((k) => k.name === _);
33131
33006
  u.value = b, p.value = b;
33132
33007
  }
33133
- }), (_, b) => (h(), j("div", ZT, [
33134
- N("div", eO, [
33135
- N("div", tO, [
33008
+ }), (_, b) => (h(), j("div", tO, [
33009
+ N("div", nO, [
33010
+ N("div", oO, [
33136
33011
  (h(!0), j(Z, null, pe(c.value, (k) => (h(), A(i(vi), {
33137
33012
  key: `icon-${k.name}`,
33138
33013
  class: ye(`v-apps-region-${k.name}`),
@@ -33143,7 +33018,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33143
33018
  onClick: (x) => g(k)
33144
33019
  }, null, 8, ["class", "icon", "label", "active", "open", "onClick"]))), 128))
33145
33020
  ]),
33146
- N("div", nO, [
33021
+ N("div", rO, [
33147
33022
  (h(!0), j(Z, null, pe(d.value, (k) => (h(), A(i(vi), {
33148
33023
  key: `icon-${k.name}`,
33149
33024
  icon: k.icon,
@@ -33152,7 +33027,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33152
33027
  }, null, 8, ["icon", "label", "onClick"]))), 128))
33153
33028
  ])
33154
33029
  ]),
33155
- N("div", oO, [
33030
+ N("div", sO, [
33156
33031
  (h(!0), j(Z, null, pe(c.value, (k) => (h(), j(Z, {
33157
33032
  key: k.name
33158
33033
  }, [
@@ -33179,7 +33054,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33179
33054
  ])
33180
33055
  ]));
33181
33056
  }
33182
- }), sO = /* @__PURE__ */ H({
33057
+ }), lO = /* @__PURE__ */ H({
33183
33058
  name: "WorkspaceRegion",
33184
33059
  __name: "workspace",
33185
33060
  props: {
@@ -33272,7 +33147,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33272
33147
  _: 1
33273
33148
  }, 8, ["items", "menus", "modelValue", "onRemove"]));
33274
33149
  }
33275
- }), aO = /* @__PURE__ */ H({
33150
+ }), iO = /* @__PURE__ */ H({
33276
33151
  name: "SettingsRegion",
33277
33152
  __name: "settings",
33278
33153
  props: {
@@ -33404,7 +33279,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33404
33279
  _: 1
33405
33280
  })) : B("", !0);
33406
33281
  }
33407
- }), lO = { class: "v-status-region" }, iO = { class: "v-status-region__left" }, cO = { class: "v-status-region__right" }, uO = /* @__PURE__ */ H({
33282
+ }), cO = { class: "v-status-region" }, uO = { class: "v-status-region__left" }, dO = { class: "v-status-region__right" }, pO = /* @__PURE__ */ H({
33408
33283
  name: "StatusRegion",
33409
33284
  inheritAttrs: !1,
33410
33285
  __name: "status",
@@ -33416,8 +33291,8 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33416
33291
  return t({
33417
33292
  widgets: o,
33418
33293
  widgetsRef: s
33419
- }), (l, c) => (h(), j("div", lO, [
33420
- N("div", iO, [
33294
+ }), (l, c) => (h(), j("div", cO, [
33295
+ N("div", uO, [
33421
33296
  (h(!0), j(Z, null, pe(r.value, (d) => (h(), A(i(Cn), {
33422
33297
  ref_for: !0,
33423
33298
  ref_key: "widgetsRef",
@@ -33426,7 +33301,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33426
33301
  widget: d
33427
33302
  }, null, 8, ["region", "widget"]))), 256))
33428
33303
  ]),
33429
- N("div", cO, [
33304
+ N("div", dO, [
33430
33305
  (h(!0), j(Z, null, pe(a.value, (d) => (h(), A(i(Cn), {
33431
33306
  ref_for: !0,
33432
33307
  ref_key: "widgetsRef",
@@ -33437,7 +33312,7 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33437
33312
  ])
33438
33313
  ]));
33439
33314
  }
33440
- }), dO = /* @__PURE__ */ H({
33315
+ }), fO = /* @__PURE__ */ H({
33441
33316
  name: "PreviewRegion",
33442
33317
  __name: "preview",
33443
33318
  props: {
@@ -33481,38 +33356,38 @@ const ji = new PT(), MT = /* @__PURE__ */ H({
33481
33356
  }, 8, ["items", "modelValue"]));
33482
33357
  }
33483
33358
  }), Li = {
33484
- EmptyRegion: GT,
33485
- Brand: WT,
33486
- Toolbar: QT,
33487
- Actions: XT,
33488
- Apps: rO,
33489
- Workspace: sO,
33490
- Settings: aO,
33491
- Status: uO,
33492
- Preview: dO
33359
+ EmptyRegion: WT,
33360
+ Brand: QT,
33361
+ Toolbar: XT,
33362
+ Actions: eO,
33363
+ Apps: aO,
33364
+ Workspace: lO,
33365
+ Settings: iO,
33366
+ Status: pO,
33367
+ Preview: fO
33493
33368
  };
33494
33369
  export {
33495
33370
  Kt as $,
33496
33371
  Jm as A,
33497
33372
  As as B,
33498
- PT as C,
33499
- IO as D,
33373
+ jT as C,
33374
+ DO as D,
33500
33375
  Gm as E,
33501
- VT as F,
33376
+ MT as F,
33502
33377
  qm as G,
33503
33378
  Qm as H,
33504
33379
  dr as I,
33505
- CO as J,
33380
+ TO as J,
33506
33381
  Hm as K,
33507
- TO as L,
33508
- OO as M,
33382
+ IO as L,
33383
+ RO as M,
33509
33384
  An as N,
33510
- DO as O,
33385
+ VO as O,
33511
33386
  zm as P,
33512
- AO as Q,
33387
+ OO as Q,
33513
33388
  Wm as R,
33514
33389
  aa as S,
33515
- _T as T,
33390
+ ET as T,
33516
33391
  vk as U,
33517
33392
  $m as V,
33518
33393
  wE as W,
@@ -33521,14 +33396,14 @@ export {
33521
33396
  Cn as Z,
33522
33397
  Vi as _,
33523
33398
  SE as a,
33524
- eA as a0,
33525
- rA as a1,
33526
- RA as a2,
33527
- ZC as a3,
33399
+ tA as a0,
33400
+ sA as a1,
33401
+ DA as a2,
33402
+ eA as a3,
33528
33403
  ji as a4,
33529
33404
  Tn as a5,
33530
- xT as a6,
33531
- IA as a7,
33405
+ AT as a6,
33406
+ RA as a7,
33532
33407
  Mi as a8,
33533
33408
  Bd as a9,
33534
33409
  Pt as aa,
@@ -33545,12 +33420,12 @@ export {
33545
33420
  Be as al,
33546
33421
  Zn as am,
33547
33422
  Ve as an,
33548
- RT as b,
33423
+ NT as b,
33549
33424
  dl as c,
33550
33425
  cs as d,
33551
- CT as e,
33426
+ TT as e,
33552
33427
  Ye as f,
33553
- NO as g,
33428
+ PO as g,
33554
33429
  bk as h,
33555
33430
  vi as i,
33556
33431
  St as j,
@@ -33560,14 +33435,14 @@ export {
33560
33435
  xe as n,
33561
33436
  Ym as o,
33562
33437
  Jn as p,
33563
- OT as q,
33438
+ RT as q,
33564
33439
  Bl as r,
33565
33440
  Ul as s,
33566
- HT as t,
33441
+ GT as t,
33567
33442
  Se as u,
33568
- IT as v,
33569
- jT as w,
33570
- ST as x,
33443
+ DT as v,
33444
+ BT as w,
33445
+ CT as x,
33571
33446
  kE as y,
33572
- NT as z
33447
+ PT as z
33573
33448
  };