@dpuse/dpuse-development 0.3.567 → 0.3.569

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.
@@ -5902,9 +5902,92 @@ async function qn() {
5902
5902
  }
5903
5903
  }
5904
5904
  //#endregion
5905
+ //#region src/actions/documentBundleSizes.ts
5906
+ var Jn = "<!-- BUNDLE_CHUNKS_START -->", Yn = "<!-- BUNDLE_CHUNKS_END -->", Xn = "<!-- BUNDLE_SIZES_START -->", Zn = "<!-- BUNDLE_SIZES_END -->";
5907
+ async function Qn() {
5908
+ try {
5909
+ G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
5910
+ let e = await W("./bundle-analysis-reports/rollup-visualiser/index.json");
5911
+ q("2️⃣ Insert tables into 'README.md'");
5912
+ let t = $n(e), n = er(e);
5913
+ await Rn("README.md", Un(Un(await Fn("./README.md"), `\n${t}\n`, Jn, Yn), `\n${n}\n`, Xn, Zn)), K("Bundle sizes documented.");
5914
+ } catch (e) {
5915
+ console.error("❌ Error documenting bundle sizes.", e), process.exit(1);
5916
+ }
5917
+ }
5918
+ function $n(e) {
5919
+ let t = /* @__PURE__ */ new Map();
5920
+ for (let n of Object.values(e.nodeMetas)) for (let [r, i] of Object.entries(n.moduleParts)) {
5921
+ let n = e.nodeParts[i];
5922
+ if (!n) continue;
5923
+ let a = t.get(r) ?? {
5924
+ rendered: 0,
5925
+ gzip: 0,
5926
+ brotli: 0
5927
+ };
5928
+ t.set(r, {
5929
+ rendered: a.rendered + n.renderedLength,
5930
+ gzip: a.gzip + n.gzipLength,
5931
+ brotli: a.brotli + n.brotliLength
5932
+ });
5933
+ }
5934
+ return nr([...t.entries()].sort((e, t) => t[1].rendered - e[1].rendered));
5935
+ }
5936
+ function er(e) {
5937
+ let t = /* @__PURE__ */ new Map();
5938
+ for (let n of Object.values(e.nodeMetas)) for (let r of Object.values(n.moduleParts)) {
5939
+ let i = e.nodeParts[r];
5940
+ if (!i) continue;
5941
+ let a = tr(n.id), o = t.get(a) ?? {
5942
+ rendered: 0,
5943
+ gzip: 0,
5944
+ brotli: 0
5945
+ };
5946
+ t.set(a, {
5947
+ rendered: o.rendered + i.renderedLength,
5948
+ gzip: o.gzip + i.gzipLength,
5949
+ brotli: o.brotli + i.brotliLength
5950
+ });
5951
+ }
5952
+ return nr([...t.entries()].sort((e, t) => t[1].rendered - e[1].rendered));
5953
+ }
5954
+ function tr(e) {
5955
+ let t = e.startsWith("/") ? e.slice(1) : e;
5956
+ if (t.startsWith("\0")) return "(runtime)";
5957
+ if (t.startsWith("node_modules/")) {
5958
+ let e = t.slice(13);
5959
+ if (e.startsWith("@")) {
5960
+ let t = e.split("/");
5961
+ return `${t[0]}/${t[1]}`;
5962
+ }
5963
+ return e.split("/")[0] ?? e;
5964
+ }
5965
+ return t.startsWith("rust/") || t.startsWith("__vite-plugin-wasm") ? "wasm" : "src";
5966
+ }
5967
+ function nr(e) {
5968
+ let t = e.reduce((e, [, t]) => ({
5969
+ rendered: e.rendered + t.rendered,
5970
+ gzip: e.gzip + t.gzip,
5971
+ brotli: e.brotli + t.brotli
5972
+ }), {
5973
+ rendered: 0,
5974
+ gzip: 0,
5975
+ brotli: 0
5976
+ });
5977
+ return [
5978
+ "| Module | Rendered | Gzip | Brotli |",
5979
+ "| ------ | -------: | ---: | -----: |",
5980
+ ...e.map(([e, t]) => `| \`${e}\` | ${rr(t.rendered)} | ${rr(t.gzip)} | ${rr(t.brotli)} |`),
5981
+ `| **Total** | **${rr(t.rendered)}** | **${rr(t.gzip)}** | **${rr(t.brotli)}** |`
5982
+ ].join("\n");
5983
+ }
5984
+ function rr(e) {
5985
+ return e < 1024 ? `${e} B` : `${(e / 1024).toFixed(1)} kB`;
5986
+ }
5987
+ //#endregion
5905
5988
  //#region src/actions/documentDependencies.ts
5906
- var Jn = "<!-- DEPENDENCY_LICENSES_START -->", Yn = "<!-- DEPENDENCY_LICENSES_END -->", Xn = "<!-- DEPENDENCY_TREE_START -->", Zn = "<!-- DEPENDENCY_TREE_END -->";
5907
- async function Qn(e = "MIT") {
5989
+ var ir = "<!-- DEPENDENCY_LICENSES_START -->", ar = "<!-- DEPENDENCY_LICENSES_END -->", or = "<!-- DEPENDENCY_TREE_START -->", sr = "<!-- DEPENDENCY_TREE_END -->";
5990
+ async function cr(e = "MIT") {
5908
5991
  try {
5909
5992
  G("Document Dependencies"), await An("1️⃣ Clear downloaded licenses", "licenses/downloads"), await Mn("2️⃣ Identify production licenses", "license-checker-rseidelsohn", [
5910
5993
  "--production",
@@ -5924,25 +6007,25 @@ async function Qn(e = "MIT") {
5924
6007
  "--all",
5925
6008
  "--json",
5926
6009
  "--omit=dev"
5927
- ], "licenses/licenseTree.json"), await $n("4️⃣ "), K("Dependencies documented.");
6010
+ ], "licenses/licenseTree.json"), await lr("4️⃣ "), K("Dependencies documented.");
5928
6011
  } catch (e) {
5929
6012
  console.error("❌ Error documenting dependencies.", e), process.exit(1);
5930
6013
  }
5931
6014
  }
5932
- async function $n(e) {
6015
+ async function lr(e) {
5933
6016
  q(`${e} Insert licenses into 'README.md'`);
5934
6017
  let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
5935
- for (let [e, n] of Object.entries(t)) r.set(e, er(e, n));
6018
+ for (let [e, n] of Object.entries(t)) r.set(e, ur(e, n));
5936
6019
  await Promise.all(r.values().map(async (e) => {
5937
- let t = await tr(e.name, e.installedVersion);
6020
+ let t = await dr(e.name, e.installedVersion);
5938
6021
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
5939
6022
  }));
5940
6023
  let i = "|Name|Version|License(s)|Document|\n|-|:-:|-|-|\n";
5941
- for (let e of r.values()) i += nr(e);
6024
+ for (let e of r.values()) i += fr(e);
5942
6025
  let a = [];
5943
- n.dependencies != null && rr(n.dependencies, r, a, 0), await Rn("README.md", Un(Un(await Fn("./README.md"), i, Jn, Yn), a.join("\n"), Xn, Zn));
6026
+ n.dependencies != null && pr(n.dependencies, r, a, 0), await Rn("README.md", Un(Un(await Fn("./README.md"), i, ir, ar), a.join("\n"), or, sr));
5944
6027
  }
5945
- function er(e, t) {
6028
+ function ur(e, t) {
5946
6029
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
5947
6030
  return {
5948
6031
  name: r,
@@ -5956,7 +6039,7 @@ function er(e, t) {
5956
6039
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
5957
6040
  };
5958
6041
  }
5959
- async function tr(e, t) {
6042
+ async function dr(e, t) {
5960
6043
  try {
5961
6044
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
5962
6045
  if (n.ok) {
@@ -5974,25 +6057,25 @@ async function tr(e, t) {
5974
6057
  publishedDate: ""
5975
6058
  };
5976
6059
  }
5977
- function nr(e) {
6060
+ function fr(e) {
5978
6061
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
5979
6062
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
5980
6063
  }
5981
- function rr(e, t, n, r) {
6064
+ function pr(e, t, n, r) {
5982
6065
  let i = " ".repeat(r);
5983
6066
  for (let [a, o] of Object.entries(e)) {
5984
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = ir(s);
5985
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && rr(o.dependencies, t, n, r + 1);
6067
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = mr(s);
6068
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && pr(o.dependencies, t, n, r + 1);
5986
6069
  }
5987
6070
  }
5988
- function ir(e) {
6071
+ function mr(e) {
5989
6072
  if (e == null) return "";
5990
- let t = e.publishedDate ? ar(e.publishedDate.split("T", 1)[0]) : "";
6073
+ let t = e.publishedDate ? hr(e.publishedDate.split("T", 1)[0]) : "";
5991
6074
  if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
5992
- let n = e.latestPublishedDate ? ar(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6075
+ let n = e.latestPublishedDate ? hr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
5993
6076
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
5994
6077
  }
5995
- function ar(e) {
6078
+ function hr(e) {
5996
6079
  if (e == null || e === "") return "n/a";
5997
6080
  let t = e.split("T", 1)[0];
5998
6081
  if (t == null || t === "") return "n/a";
@@ -6001,43 +6084,43 @@ function ar(e) {
6001
6084
  }
6002
6085
  //#endregion
6003
6086
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-B7kVKqVP.js
6004
- var or, sr = {
6087
+ var gr, _r = {
6005
6088
  lang: void 0,
6006
6089
  message: void 0,
6007
6090
  abortEarly: void 0,
6008
6091
  abortPipeEarly: void 0
6009
6092
  };
6010
6093
  /* @__NO_SIDE_EFFECTS__ */
6011
- function cr(e) {
6012
- return !e && !or ? sr : {
6013
- lang: e?.lang ?? or?.lang,
6094
+ function vr(e) {
6095
+ return !e && !gr ? _r : {
6096
+ lang: e?.lang ?? gr?.lang,
6014
6097
  message: e?.message,
6015
- abortEarly: e?.abortEarly ?? or?.abortEarly,
6016
- abortPipeEarly: e?.abortPipeEarly ?? or?.abortPipeEarly
6098
+ abortEarly: e?.abortEarly ?? gr?.abortEarly,
6099
+ abortPipeEarly: e?.abortPipeEarly ?? gr?.abortPipeEarly
6017
6100
  };
6018
6101
  }
6019
- var lr;
6102
+ var yr;
6020
6103
  /* @__NO_SIDE_EFFECTS__ */
6021
- function ur(e) {
6022
- return lr?.get(e);
6104
+ function br(e) {
6105
+ return yr?.get(e);
6023
6106
  }
6024
- var dr;
6107
+ var xr;
6025
6108
  /* @__NO_SIDE_EFFECTS__ */
6026
- function fr(e) {
6027
- return dr?.get(e);
6109
+ function Sr(e) {
6110
+ return xr?.get(e);
6028
6111
  }
6029
- var pr;
6112
+ var Cr;
6030
6113
  /* @__NO_SIDE_EFFECTS__ */
6031
- function mr(e, t) {
6032
- return pr?.get(e)?.get(t);
6114
+ function wr(e, t) {
6115
+ return Cr?.get(e)?.get(t);
6033
6116
  }
6034
6117
  /* @__NO_SIDE_EFFECTS__ */
6035
- function hr(e) {
6118
+ function Tr(e) {
6036
6119
  let t = typeof e;
6037
6120
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6038
6121
  }
6039
6122
  function J(e, t, n, r, i) {
6040
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ hr(a), c = {
6123
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Tr(a), c = {
6041
6124
  kind: e.kind,
6042
6125
  type: e.type,
6043
6126
  input: a,
@@ -6050,36 +6133,36 @@ function J(e, t, n, r, i) {
6050
6133
  lang: r.lang,
6051
6134
  abortEarly: r.abortEarly,
6052
6135
  abortPipeEarly: r.abortPipeEarly
6053
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ mr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ fr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ ur(c.lang);
6136
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ wr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Sr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ br(c.lang);
6054
6137
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6055
6138
  }
6056
- var gr = /* @__PURE__ */ new WeakMap();
6139
+ var Er = /* @__PURE__ */ new WeakMap();
6057
6140
  /* @__NO_SIDE_EFFECTS__ */
6058
6141
  function Y(e) {
6059
- let t = gr.get(e);
6142
+ let t = Er.get(e);
6060
6143
  return t || (t = {
6061
6144
  version: 1,
6062
6145
  vendor: "valibot",
6063
6146
  validate(t) {
6064
- return e["~run"]({ value: t }, /* @__PURE__ */ cr());
6147
+ return e["~run"]({ value: t }, /* @__PURE__ */ vr());
6065
6148
  }
6066
- }, gr.set(e, t)), t;
6149
+ }, Er.set(e, t)), t;
6067
6150
  }
6068
6151
  /* @__NO_SIDE_EFFECTS__ */
6069
- function _r(e, t) {
6152
+ function Dr(e, t) {
6070
6153
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6071
6154
  }
6072
6155
  /* @__NO_SIDE_EFFECTS__ */
6073
- function vr(e, t) {
6156
+ function Or(e, t) {
6074
6157
  let n = [...new Set(e)];
6075
6158
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6076
6159
  }
6077
6160
  /* @__NO_SIDE_EFFECTS__ */
6078
- function yr(e, t, n) {
6161
+ function kr(e, t, n) {
6079
6162
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6080
6163
  }
6081
6164
  /* @__NO_SIDE_EFFECTS__ */
6082
- function br(e, t, n) {
6165
+ function Ar(e, t, n) {
6083
6166
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6084
6167
  }
6085
6168
  /* @__NO_SIDE_EFFECTS__ */
@@ -6123,11 +6206,11 @@ function X(e, t) {
6123
6206
  };
6124
6207
  }
6125
6208
  /* @__NO_SIDE_EFFECTS__ */
6126
- function xr(e) {
6209
+ function jr(e) {
6127
6210
  return {
6128
6211
  kind: "schema",
6129
6212
  type: "boolean",
6130
- reference: xr,
6213
+ reference: jr,
6131
6214
  expects: "boolean",
6132
6215
  async: !1,
6133
6216
  message: e,
@@ -6140,12 +6223,12 @@ function xr(e) {
6140
6223
  };
6141
6224
  }
6142
6225
  /* @__NO_SIDE_EFFECTS__ */
6143
- function Sr(e, t) {
6226
+ function Mr(e, t) {
6144
6227
  return {
6145
6228
  kind: "schema",
6146
6229
  type: "literal",
6147
- reference: Sr,
6148
- expects: /* @__PURE__ */ hr(e),
6230
+ reference: Mr,
6231
+ expects: /* @__PURE__ */ Tr(e),
6149
6232
  async: !1,
6150
6233
  literal: e,
6151
6234
  message: t,
@@ -6171,16 +6254,16 @@ function Z(e, t) {
6171
6254
  return /* @__PURE__ */ Y(this);
6172
6255
  },
6173
6256
  "~run"(e, t) {
6174
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ br(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6257
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Ar(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6175
6258
  }
6176
6259
  };
6177
6260
  }
6178
6261
  /* @__NO_SIDE_EFFECTS__ */
6179
- function Cr(e) {
6262
+ function Nr(e) {
6180
6263
  return {
6181
6264
  kind: "schema",
6182
6265
  type: "number",
6183
- reference: Cr,
6266
+ reference: Nr,
6184
6267
  expects: "number",
6185
6268
  async: !1,
6186
6269
  message: e,
@@ -6212,7 +6295,7 @@ function Q(e, t) {
6212
6295
  for (let r in this.entries) {
6213
6296
  let i = this.entries[r];
6214
6297
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6215
- let a = r in n ? n[r] : /* @__PURE__ */ br(i), o = i["~run"]({ value: a }, t);
6298
+ let a = r in n ? n[r] : /* @__PURE__ */ Ar(i), o = i["~run"]({ value: a }, t);
6216
6299
  if (o.issues) {
6217
6300
  let i = {
6218
6301
  type: "object",
@@ -6228,7 +6311,7 @@ function Q(e, t) {
6228
6311
  }
6229
6312
  }
6230
6313
  o.typed || (e.typed = !1), e.value[r] = o.value;
6231
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ yr(i);
6314
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ kr(i);
6232
6315
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (J(this, "key", e, t, {
6233
6316
  input: void 0,
6234
6317
  expected: `"${r}"`,
@@ -6247,11 +6330,11 @@ function Q(e, t) {
6247
6330
  };
6248
6331
  }
6249
6332
  /* @__NO_SIDE_EFFECTS__ */
6250
- function wr(e, t) {
6333
+ function Pr(e, t) {
6251
6334
  return {
6252
6335
  kind: "schema",
6253
6336
  type: "optional",
6254
- reference: wr,
6337
+ reference: Pr,
6255
6338
  expects: `(${e.expects} | undefined)`,
6256
6339
  async: !1,
6257
6340
  wrapped: e,
@@ -6260,16 +6343,16 @@ function wr(e, t) {
6260
6343
  return /* @__PURE__ */ Y(this);
6261
6344
  },
6262
6345
  "~run"(e, t) {
6263
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ br(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6346
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Ar(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6264
6347
  }
6265
6348
  };
6266
6349
  }
6267
6350
  /* @__NO_SIDE_EFFECTS__ */
6268
- function Tr(e, t, n) {
6351
+ function Fr(e, t, n) {
6269
6352
  return {
6270
6353
  kind: "schema",
6271
6354
  type: "record",
6272
- reference: Tr,
6355
+ reference: Fr,
6273
6356
  expects: "Object",
6274
6357
  async: !1,
6275
6358
  key: e,
@@ -6282,7 +6365,7 @@ function Tr(e, t, n) {
6282
6365
  let n = e.value;
6283
6366
  if (n && typeof n == "object") {
6284
6367
  e.typed = !0, e.value = {};
6285
- for (let r in n) if (/* @__PURE__ */ _r(n, r)) {
6368
+ for (let r in n) if (/* @__PURE__ */ Dr(n, r)) {
6286
6369
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6287
6370
  if (a.issues) {
6288
6371
  let o = {
@@ -6338,19 +6421,19 @@ function $(e) {
6338
6421
  };
6339
6422
  }
6340
6423
  /* @__NO_SIDE_EFFECTS__ */
6341
- function Er(e) {
6424
+ function Ir(e) {
6342
6425
  let t;
6343
6426
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6344
6427
  else t = n.issues;
6345
6428
  return t;
6346
6429
  }
6347
6430
  /* @__NO_SIDE_EFFECTS__ */
6348
- function Dr(e, t) {
6431
+ function Lr(e, t) {
6349
6432
  return {
6350
6433
  kind: "schema",
6351
6434
  type: "union",
6352
- reference: Dr,
6353
- expects: /* @__PURE__ */ vr(e.map((e) => e.expects), "|"),
6435
+ reference: Lr,
6436
+ expects: /* @__PURE__ */ Or(e.map((e) => e.expects), "|"),
6354
6437
  async: !1,
6355
6438
  options: e,
6356
6439
  message: t,
@@ -6371,24 +6454,24 @@ function Dr(e, t) {
6371
6454
  if (n) return n;
6372
6455
  if (r) {
6373
6456
  if (r.length === 1) return r[0];
6374
- J(this, "type", e, t, { issues: /* @__PURE__ */ Er(r) }), e.typed = !0;
6457
+ J(this, "type", e, t, { issues: /* @__PURE__ */ Ir(r) }), e.typed = !0;
6375
6458
  } else if (i?.length === 1) return i[0];
6376
- else J(this, "type", e, t, { issues: /* @__PURE__ */ Er(i) });
6459
+ else J(this, "type", e, t, { issues: /* @__PURE__ */ Ir(i) });
6377
6460
  return e;
6378
6461
  }
6379
6462
  };
6380
6463
  }
6381
- var Or = (e) => /* @__PURE__ */ Dr(e.map((e) => /* @__PURE__ */ Sr(e))), kr = /* @__PURE__ */ Q({
6464
+ var Rr = (e) => /* @__PURE__ */ Lr(e.map((e) => /* @__PURE__ */ Mr(e))), zr = /* @__PURE__ */ Q({
6382
6465
  en: /* @__PURE__ */ $(),
6383
6466
  es: /* @__PURE__ */ $()
6384
- }), Ar = /* @__PURE__ */ Q({
6385
- en: /* @__PURE__ */ wr(/* @__PURE__ */ X(/* @__PURE__ */ $())),
6386
- es: /* @__PURE__ */ wr(/* @__PURE__ */ X(/* @__PURE__ */ $()))
6387
- }), jr = /* @__PURE__ */ Q({
6388
- en: /* @__PURE__ */ wr(/* @__PURE__ */ $()),
6389
- es: /* @__PURE__ */ wr(/* @__PURE__ */ $())
6467
+ }), Br = /* @__PURE__ */ Q({
6468
+ en: /* @__PURE__ */ Pr(/* @__PURE__ */ X(/* @__PURE__ */ $())),
6469
+ es: /* @__PURE__ */ Pr(/* @__PURE__ */ X(/* @__PURE__ */ $()))
6470
+ }), Vr = /* @__PURE__ */ Q({
6471
+ en: /* @__PURE__ */ Pr(/* @__PURE__ */ $()),
6472
+ es: /* @__PURE__ */ Pr(/* @__PURE__ */ $())
6390
6473
  });
6391
- Or([
6474
+ Rr([
6392
6475
  "app",
6393
6476
  "connector",
6394
6477
  "connectorConnection",
@@ -6413,12 +6496,12 @@ Or([
6413
6496
  "presenterPresentation",
6414
6497
  "tool"
6415
6498
  ]);
6416
- var Mr = Or([
6499
+ var Hr = Rr([
6417
6500
  "amber",
6418
6501
  "green",
6419
6502
  "red",
6420
6503
  "other"
6421
- ]), Nr = Or([
6504
+ ]), Ur = Rr([
6422
6505
  "alpha",
6423
6506
  "beta",
6424
6507
  "generalAvailability",
@@ -6428,31 +6511,31 @@ var Mr = Or([
6428
6511
  "releaseCandidate",
6429
6512
  "unavailable",
6430
6513
  "underReview"
6431
- ]), Pr = /* @__PURE__ */ Q({
6432
- color: Mr,
6514
+ ]), Wr = /* @__PURE__ */ Q({
6515
+ color: Hr,
6433
6516
  label: /* @__PURE__ */ $()
6434
- }), Fr = /* @__PURE__ */ Q({
6517
+ }), Gr = /* @__PURE__ */ Q({
6435
6518
  id: /* @__PURE__ */ $(),
6436
- label: jr,
6437
- description: Ar,
6519
+ label: Vr,
6520
+ description: Br,
6438
6521
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6439
6522
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6440
6523
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6441
- order: /* @__PURE__ */ Cr(),
6524
+ order: /* @__PURE__ */ Nr(),
6442
6525
  path: /* @__PURE__ */ $()
6443
- }), Ir = {
6526
+ }), Kr = {
6444
6527
  id: /* @__PURE__ */ $(),
6445
- label: jr,
6446
- description: Ar,
6447
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Cr()),
6528
+ label: Vr,
6529
+ description: Br,
6530
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Nr()),
6448
6531
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6449
6532
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6450
6533
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6451
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Cr()),
6452
- status: /* @__PURE__ */ Z(Pr),
6453
- statusId: /* @__PURE__ */ Z(Nr)
6534
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Nr()),
6535
+ status: /* @__PURE__ */ Z(Wr),
6536
+ statusId: /* @__PURE__ */ Z(Ur)
6454
6537
  };
6455
- ({ ...Ir }), Or([
6538
+ ({ ...Kr }), Rr([
6456
6539
  "app",
6457
6540
  "engine",
6458
6541
  "connector",
@@ -6462,32 +6545,32 @@ var Mr = Or([
6462
6545
  ]);
6463
6546
  //#endregion
6464
6547
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-Cvc9QRvr.js
6465
- var Lr = {
6466
- ...Ir,
6548
+ var qr = {
6549
+ ...Kr,
6467
6550
  version: /* @__PURE__ */ $()
6468
6551
  };
6469
- ({ ...Lr });
6552
+ ({ ...qr });
6470
6553
  //#endregion
6471
6554
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6472
- var Rr = Or([
6555
+ var Jr = Rr([
6473
6556
  "application",
6474
6557
  "curatedDataset",
6475
6558
  "database",
6476
6559
  "fileStore"
6477
- ]), zr = /* @__PURE__ */ Q({ label: kr }), Br = /* @__PURE__ */ Q({
6478
- authMethodId: Or([
6560
+ ]), Yr = /* @__PURE__ */ Q({ label: zr }), Xr = /* @__PURE__ */ Q({
6561
+ authMethodId: Rr([
6479
6562
  "apiKey",
6480
6563
  "disabled",
6481
6564
  "oAuth2",
6482
6565
  "none"
6483
6566
  ]),
6484
- activeConnectionCount: /* @__PURE__ */ wr(/* @__PURE__ */ Cr()),
6485
- canDescribe: /* @__PURE__ */ wr(/* @__PURE__ */ xr()),
6486
- id: /* @__PURE__ */ wr(/* @__PURE__ */ $()),
6487
- label: /* @__PURE__ */ wr(kr),
6488
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ Cr()),
6489
- params: /* @__PURE__ */ wr(/* @__PURE__ */ X(/* @__PURE__ */ Tr(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6490
- }), Vr = Or([
6567
+ activeConnectionCount: /* @__PURE__ */ Pr(/* @__PURE__ */ Nr()),
6568
+ canDescribe: /* @__PURE__ */ Pr(/* @__PURE__ */ jr()),
6569
+ id: /* @__PURE__ */ Pr(/* @__PURE__ */ $()),
6570
+ label: /* @__PURE__ */ Pr(zr),
6571
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ Nr()),
6572
+ params: /* @__PURE__ */ Pr(/* @__PURE__ */ X(/* @__PURE__ */ Fr(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6573
+ }), Zr = Rr([
6491
6574
  "abortOperation",
6492
6575
  "auditObjectContent",
6493
6576
  "createObject",
@@ -6502,17 +6585,17 @@ var Rr = Or([
6502
6585
  "retrieveChunks",
6503
6586
  "retrieveRecords",
6504
6587
  "upsertRecords"
6505
- ]), Hr = /* @__PURE__ */ Q({
6506
- typeId: /* @__PURE__ */ Sr("connector"),
6507
- ...Lr,
6508
- actionNames: /* @__PURE__ */ X(Vr),
6509
- category: /* @__PURE__ */ Z(zr),
6510
- categoryId: Rr,
6511
- implementations: /* @__PURE__ */ Tr(/* @__PURE__ */ $(), Br),
6588
+ ]), Qr = /* @__PURE__ */ Q({
6589
+ typeId: /* @__PURE__ */ Mr("connector"),
6590
+ ...qr,
6591
+ actionNames: /* @__PURE__ */ X(Zr),
6592
+ category: /* @__PURE__ */ Z(Yr),
6593
+ categoryId: Jr,
6594
+ implementations: /* @__PURE__ */ Fr(/* @__PURE__ */ $(), Xr),
6512
6595
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6513
6596
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6514
6597
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6515
- }), Ur = {
6598
+ }), $r = {
6516
6599
  abortOperation: "Abort Operation",
6517
6600
  auditObjectContent: "Audit Object Content",
6518
6601
  createObject: "Create Object",
@@ -6528,27 +6611,27 @@ var Rr = Or([
6528
6611
  retrieveRecords: "Retrieve Records",
6529
6612
  upsertRecords: "Upsert Records"
6530
6613
  };
6531
- function Wr(e) {
6614
+ function ei(e) {
6532
6615
  let t = new Set(e), n = "| Name | Supported |\n";
6533
6616
  n += "| ---- | :-------: |\n";
6534
- for (let e of Object.keys(Ur)) n += `| ${Ur[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6617
+ for (let e of Object.keys($r)) n += `| ${$r[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6535
6618
  return n;
6536
6619
  }
6537
6620
  //#endregion
6538
6621
  //#region src/actions/documentOperations.ts
6539
- var Gr = "<!-- CONNECTOR_OPERATIONS_START -->", Kr = "<!-- CONNECTOR_OPERATIONS_END -->";
6540
- async function qr() {
6622
+ var ti = "<!-- CONNECTOR_OPERATIONS_START -->", ni = "<!-- CONNECTOR_OPERATIONS_END -->";
6623
+ async function ri() {
6541
6624
  try {
6542
6625
  G("Document Operations"), q("1️⃣ Insert operations table into 'README.md'");
6543
- let e = Wr((await W("config.json")).operations ?? []);
6544
- await Rn("README.md", Un(await Fn("./README.md"), e, Gr, Kr)), K("Operations documented.");
6626
+ let e = ei((await W("config.json")).operations ?? []);
6627
+ await Rn("README.md", Un(await Fn("./README.md"), e, ti, ni)), K("Operations documented.");
6545
6628
  } catch (e) {
6546
6629
  console.error("❌ Error documenting operations.", e), process.exit(1);
6547
6630
  }
6548
6631
  }
6549
6632
  //#endregion
6550
6633
  //#region src/actions/formatCode.ts
6551
- async function Jr() {
6634
+ async function ii() {
6552
6635
  try {
6553
6636
  G("Format Code"), await Nn("1️⃣ Format", "prettier", [
6554
6637
  "--write",
@@ -6563,7 +6646,7 @@ async function Jr() {
6563
6646
  }
6564
6647
  //#endregion
6565
6648
  //#region src/actions/lintCode.ts
6566
- async function Yr() {
6649
+ async function ai() {
6567
6650
  try {
6568
6651
  G("Lint Code"), await Nn("1️⃣ Lint", "eslint", ["."]), K("Code linted.");
6569
6652
  } catch (e) {
@@ -6572,7 +6655,7 @@ async function Yr() {
6572
6655
  }
6573
6656
  //#endregion
6574
6657
  //#region src/utilities/cloudflare.ts
6575
- async function Xr() {
6658
+ async function oi() {
6576
6659
  let e = await W("config.json"), t = {
6577
6660
  body: JSON.stringify(e),
6578
6661
  headers: { "Content-Type": "application/json" },
@@ -6580,7 +6663,7 @@ async function Xr() {
6580
6663
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6581
6664
  if (!n.ok) throw Error(await n.text());
6582
6665
  }
6583
- async function Zr(e, t) {
6666
+ async function si(e, t) {
6584
6667
  async function n(e, t, r) {
6585
6668
  for (let i of r) {
6586
6669
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6598,7 +6681,7 @@ async function Zr(e, t) {
6598
6681
  let r = await jn(`${e}/${t}/`);
6599
6682
  await n(`${e}/${t}`, t, r);
6600
6683
  }
6601
- async function Qr(e) {
6684
+ async function ci(e) {
6602
6685
  let t = e.id, n = {
6603
6686
  body: JSON.stringify(e),
6604
6687
  headers: { "Content-Type": "application/json" },
@@ -6606,7 +6689,7 @@ async function Qr(e) {
6606
6689
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6607
6690
  if (!r.ok) throw Error(await r.text());
6608
6691
  }
6609
- async function $r(e, t) {
6692
+ async function li(e, t) {
6610
6693
  let n = `v${e.version ?? "unknown"}`;
6611
6694
  async function r(e, r = "") {
6612
6695
  let i = await jn(e, { withFileTypes: !0 });
@@ -6630,24 +6713,24 @@ async function $r(e, t) {
6630
6713
  }
6631
6714
  //#endregion
6632
6715
  //#region node_modules/valibot/dist/index.mjs
6633
- var ei, ti = {
6716
+ var ui, di = {
6634
6717
  lang: void 0,
6635
6718
  message: void 0,
6636
6719
  abortEarly: void 0,
6637
6720
  abortPipeEarly: void 0
6638
6721
  };
6639
6722
  /* @__NO_SIDE_EFFECTS__ */
6640
- function ni(e) {
6641
- return !e && !ei ? ti : {
6642
- lang: e?.lang ?? ei?.lang,
6723
+ function fi(e) {
6724
+ return !e && !ui ? di : {
6725
+ lang: e?.lang ?? ui?.lang,
6643
6726
  message: e?.message,
6644
- abortEarly: e?.abortEarly ?? ei?.abortEarly,
6645
- abortPipeEarly: e?.abortPipeEarly ?? ei?.abortPipeEarly
6727
+ abortEarly: e?.abortEarly ?? ui?.abortEarly,
6728
+ abortPipeEarly: e?.abortPipeEarly ?? ui?.abortPipeEarly
6646
6729
  };
6647
6730
  }
6648
6731
  /* @__NO_SIDE_EFFECTS__ */
6649
- function ri(e, t, n) {
6650
- let r = e["~run"]({ value: t }, /* @__PURE__ */ ni(n));
6732
+ function pi(e, t, n) {
6733
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ fi(n));
6651
6734
  return {
6652
6735
  typed: r.typed,
6653
6736
  success: !r.issues,
@@ -6657,31 +6740,31 @@ function ri(e, t, n) {
6657
6740
  }
6658
6741
  //#endregion
6659
6742
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
6660
- var ii = /* @__PURE__ */ Q({
6661
- ...Ir,
6662
- typeId: /* @__PURE__ */ Sr("contextModelGroup"),
6663
- modelRefs: /* @__PURE__ */ X(Fr),
6664
- order: /* @__PURE__ */ Cr()
6665
- }), ai = Or(["listContextFocuses"]), oi = /* @__PURE__ */ Q({
6666
- ...Lr,
6667
- typeId: /* @__PURE__ */ Sr("context"),
6668
- models: /* @__PURE__ */ X(ii),
6669
- operations: /* @__PURE__ */ X(ai)
6670
- }), si = Or([
6743
+ var mi = /* @__PURE__ */ Q({
6744
+ ...Kr,
6745
+ typeId: /* @__PURE__ */ Mr("contextModelGroup"),
6746
+ modelRefs: /* @__PURE__ */ X(Gr),
6747
+ order: /* @__PURE__ */ Nr()
6748
+ }), hi = Rr(["listContextFocuses"]), gi = /* @__PURE__ */ Q({
6749
+ ...qr,
6750
+ typeId: /* @__PURE__ */ Mr("context"),
6751
+ models: /* @__PURE__ */ X(mi),
6752
+ operations: /* @__PURE__ */ X(hi)
6753
+ }), _i = Rr([
6671
6754
  "list",
6672
6755
  "render",
6673
6756
  "setColorMode"
6674
- ]), ci = /* @__PURE__ */ Q({
6675
- typeId: /* @__PURE__ */ Sr("presenter"),
6676
- ...Lr,
6677
- actionNames: /* @__PURE__ */ X(si),
6678
- presentations: /* @__PURE__ */ X(Fr)
6679
- }), li = /* @__PURE__ */ new Set([
6757
+ ]), vi = /* @__PURE__ */ Q({
6758
+ typeId: /* @__PURE__ */ Mr("presenter"),
6759
+ ...qr,
6760
+ actionNames: /* @__PURE__ */ X(_i),
6761
+ presentations: /* @__PURE__ */ X(Gr)
6762
+ }), yi = /* @__PURE__ */ new Set([
6680
6763
  "createObject",
6681
6764
  "dropObject",
6682
6765
  "removeRecords",
6683
6766
  "upsertRecords"
6684
- ]), ui = /* @__PURE__ */ new Set([
6767
+ ]), bi = /* @__PURE__ */ new Set([
6685
6768
  "auditObjectContent",
6686
6769
  "findObjectFolderPath",
6687
6770
  "getReadableStream",
@@ -6691,30 +6774,30 @@ var ii = /* @__PURE__ */ Q({
6691
6774
  "retrieveChunks",
6692
6775
  "retrieveRecords"
6693
6776
  ]);
6694
- async function di() {
6777
+ async function xi() {
6695
6778
  try {
6696
6779
  G("Build Project"), await Nn("1️⃣ Bundle project", "vite", ["build"]), K("Project built.");
6697
6780
  } catch (e) {
6698
6781
  console.error("❌ Error building project.", e), process.exit(1);
6699
6782
  }
6700
6783
  }
6701
- async function fi() {
6784
+ async function Si() {
6702
6785
  try {
6703
6786
  G("Release Project");
6704
6787
  let e = await W("package.json"), t = await W("config.json");
6705
- await Si("1️⃣ ", e);
6788
+ await Mi("1️⃣ ", e);
6706
6789
  let n = zn(t.id);
6707
6790
  switch (n.typeId) {
6708
6791
  case "connector":
6709
- t = await mi("2️⃣ ", e);
6792
+ t = await wi("2️⃣ ", e);
6710
6793
  break;
6711
6794
  case "context":
6712
- t = await hi("2️⃣ ", e);
6795
+ t = await Ti("2️⃣ ", e);
6713
6796
  break;
6714
6797
  case "presenter":
6715
- t = await gi("2️⃣ ", e);
6798
+ t = await Ei("2️⃣ ", e);
6716
6799
  break;
6717
- default: t = await pi("2️⃣ ", e);
6800
+ default: t = await Ci("2️⃣ ", e);
6718
6801
  }
6719
6802
  if (await Nn("3️⃣ Bundle project", "vite", ["build"]), await Mn("4️⃣ Stage changes", "git", ["add", "."]), await Mn("5️⃣ Commit changes", "git", [
6720
6803
  "commit",
@@ -6724,13 +6807,13 @@ async function fi() {
6724
6807
  "push",
6725
6808
  "origin",
6726
6809
  "main:main"
6727
- ]), n.typeId === "app") q("7️⃣ Register module"), await Xr();
6728
- else if (n.typeId === "engine") q("7️⃣ Register module"), await $r(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Qr(t);
6810
+ ]), n.typeId === "app") q("7️⃣ Register module"), await oi();
6811
+ else if (n.typeId === "engine") q("7️⃣ Register module"), await li(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ci(t);
6729
6812
  else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required.");
6730
6813
  else {
6731
6814
  q("7️⃣ Register module");
6732
6815
  let r = t.id.split("-").slice(2).join("-");
6733
- await $r(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Qr(t);
6816
+ await li(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ci(t);
6734
6817
  }
6735
6818
  if (n.publishedTo === "npm") {
6736
6819
  let e = ".npmrc";
@@ -6749,70 +6832,70 @@ async function fi() {
6749
6832
  console.error("❌ Error releasing project.", e), process.exit(1);
6750
6833
  }
6751
6834
  }
6752
- async function pi(e, t) {
6835
+ async function Ci(e, t) {
6753
6836
  q(`${e} Build project configuration`);
6754
6837
  let n = await W("config.json");
6755
6838
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Ln("config.json", n), n;
6756
6839
  }
6757
- async function mi(e, t) {
6840
+ async function wi(e, t) {
6758
6841
  q(`${e} Build connector project configuration`);
6759
- let [n, r] = await Promise.all([W("config.json"), Fn("src/index.ts")]), i = /* @__PURE__ */ ri(Hr, n);
6842
+ let [n, r] = await Promise.all([W("config.json"), Fn("src/index.ts")]), i = /* @__PURE__ */ pi(Qr, n);
6760
6843
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
6761
6844
  let a = Vn(r);
6762
- return await vi(t, n, a, _i(a));
6845
+ return await Oi(t, n, a, Di(a));
6763
6846
  }
6764
- async function hi(e, t) {
6847
+ async function Ti(e, t) {
6765
6848
  q(`${e} Build context project configuration`);
6766
- let [n, r] = await Promise.all([W("config.json"), Fn("src/index.ts")]), i = /* @__PURE__ */ ri(oi, n);
6849
+ let [n, r] = await Promise.all([W("config.json"), Fn("src/index.ts")]), i = /* @__PURE__ */ pi(gi, n);
6767
6850
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
6768
- return await vi(t, n, Vn(r));
6851
+ return await Oi(t, n, Vn(r));
6769
6852
  }
6770
- async function gi(e, t) {
6853
+ async function Ei(e, t) {
6771
6854
  q(`${e} Build presenter project configuration`);
6772
- let [n, r] = await Promise.all([W("config.json"), Fn("src/index.ts")]), i = /* @__PURE__ */ ri(ci, n);
6855
+ let [n, r] = await Promise.all([W("config.json"), Fn("src/index.ts")]), i = /* @__PURE__ */ pi(vi, n);
6773
6856
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
6774
- return await vi(t, n, Vn(r));
6857
+ return await Oi(t, n, Vn(r));
6775
6858
  }
6776
- function _i(e) {
6859
+ function Di(e) {
6777
6860
  let t = !1, n = !1;
6778
- for (let r of e) ui.has(r) && (t = !0), li.has(r) && (n = !0);
6861
+ for (let r of e) bi.has(r) && (t = !0), yi.has(r) && (n = !0);
6779
6862
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6780
6863
  }
6781
- async function vi(e, t, n, r) {
6864
+ async function Oi(e, t, n, r) {
6782
6865
  return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations."), r === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await Ln("config.json", t), t;
6783
6866
  }
6784
- async function yi() {
6867
+ async function ki() {
6785
6868
  try {
6786
6869
  G("Publish Project");
6787
6870
  let e = await W("package.json"), t = await W("config.json"), n = zn(t.id);
6788
- if (n.typeId === "app") q("1️⃣ Register module"), await Xr();
6789
- else if (n.typeId === "engine") q("1️⃣ Register module"), await $r(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Qr(t);
6871
+ if (n.typeId === "app") q("1️⃣ Register module"), await oi();
6872
+ else if (n.typeId === "engine") q("1️⃣ Register module"), await li(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ci(t);
6790
6873
  else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required.");
6791
6874
  else {
6792
6875
  q("1️⃣ Register module");
6793
6876
  let r = t.id.split("-").slice(2).join("-");
6794
- await $r(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Qr(t);
6877
+ await li(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ci(t);
6795
6878
  }
6796
6879
  K(`Project version '${e.version ?? "unknown"}' published.`);
6797
6880
  } catch (e) {
6798
6881
  console.error("❌ Error publishing project.", e), process.exit(1);
6799
6882
  }
6800
6883
  }
6801
- async function bi() {
6884
+ async function Ai() {
6802
6885
  try {
6803
6886
  G("Synchronise Project with GitHub");
6804
6887
  let e = await W("package.json"), t = await W("config.json");
6805
- switch (await Si("1️⃣ ", e), zn(t.id).typeId) {
6888
+ switch (await Mi("1️⃣ ", e), zn(t.id).typeId) {
6806
6889
  case "connector":
6807
- await mi("2️⃣ ", e);
6890
+ await wi("2️⃣ ", e);
6808
6891
  break;
6809
6892
  case "context":
6810
- await hi("2️⃣ ", e);
6893
+ await Ti("2️⃣ ", e);
6811
6894
  break;
6812
6895
  case "presenter":
6813
- await gi("2️⃣ ", e);
6896
+ await Ei("2️⃣ ", e);
6814
6897
  break;
6815
- default: await pi("2️⃣ ", e);
6898
+ default: await Ci("2️⃣ ", e);
6816
6899
  }
6817
6900
  await Mn("3️⃣ Stage changes", "git", ["add", "."]), await Mn("4️⃣ Commit changes", "git", [
6818
6901
  "commit",
@@ -6827,14 +6910,14 @@ async function bi() {
6827
6910
  console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
6828
6911
  }
6829
6912
  }
6830
- function xi() {
6913
+ function ji() {
6831
6914
  try {
6832
6915
  G("Test Project"), console.error("\n❌ No tests implemented.\n");
6833
6916
  } catch (e) {
6834
6917
  console.error("❌ Error testing project.", e), process.exit(1);
6835
6918
  }
6836
6919
  }
6837
- async function Si(e, t, n = "./") {
6920
+ async function Mi(e, t, n = "./") {
6838
6921
  if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
6839
6922
  else {
6840
6923
  let e = t.version, n = t.version.split(".");
@@ -6843,6 +6926,6 @@ async function Si(e, t, n = "./") {
6843
6926
  await Ln(`${n}package.json`, t);
6844
6927
  }
6845
6928
  //#endregion
6846
- export { Wn as auditDependencies, di as buildProject, Gn as checkConfigFiles, qn as checkDependencies, Qn as documentDependencies, qr as documentOperations, Jr as formatCode, Yr as lintCode, yi as publishProject, fi as releaseProject, bi as syncProjectWithGitHub, xi as testProject, Zr as uploadDirectoryToR2 };
6929
+ export { Wn as auditDependencies, xi as buildProject, Gn as checkConfigFiles, qn as checkDependencies, Qn as documentBundleSizes, cr as documentDependencies, ri as documentOperations, ii as formatCode, ai as lintCode, ki as publishProject, Si as releaseProject, Ai as syncProjectWithGitHub, ji as testProject, si as uploadDirectoryToR2 };
6847
6930
 
6848
6931
  //# sourceMappingURL=dpuse-development.es.js.map