@dpuse/dpuse-development 0.3.587 → 0.3.589

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