@dpuse/dpuse-development 0.3.572 → 0.3.573

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