@dpuse/dpuse-development 0.3.595 → 0.3.598

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