@dpuse/dpuse-development 0.3.618 → 0.3.620

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.
@@ -5916,7 +5916,7 @@ async function ir(e) {
5916
5916
  G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
5917
5917
  let t = await W("./bundle-analysis-reports/rollup-visualiser/index.json");
5918
5918
  q("2️⃣ Insert table into 'README.md'");
5919
- let n = await or(t, await ar(), e?.moduleLevel ?? !1);
5919
+ let n = await sr(t, await ar(), e?.moduleLevel ?? !1);
5920
5920
  await Hn("README.md", qn(await zn("./README.md"), `\n${n}\n`, er, tr)), K("Bundle sizes documented");
5921
5921
  } catch (e) {
5922
5922
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
@@ -5929,58 +5929,52 @@ async function ar() {
5929
5929
  return "./dist";
5930
5930
  }
5931
5931
  }
5932
- async function or(e, t, n) {
5933
- let r = dr(e), i = r.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.rendered, 0), a = await lr(t);
5932
+ function or(e) {
5933
+ return `${Sr(e.rendered)} · gz ${Sr(e.gzip)} · br ${Sr(e.brotli)}`;
5934
+ }
5935
+ async function sr(e, t, n) {
5936
+ let r = hr(e), i = r.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.rendered, 0), a = await pr(t);
5934
5937
  a.sort((e, t) => t[1].rendered - e[1].rendered);
5935
- let o = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"], s = (e) => `${vr(e.rendered)} · gz ${vr(e.gzip)} · br ${vr(e.brotli)}`;
5938
+ let o = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
5936
5939
  for (let [e, t] of a) {
5937
- let a = [...r.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.rendered - e[1].sizes.rendered);
5938
- if (a.length === 1) {
5939
- let [r, { sizes: c, files: l }] = sr(a), u = i > 0 ? c.rendered / i * 100 : 0;
5940
- if (l.size === 1) {
5941
- let n = cr(l);
5942
- o.push(`| ${e} → ${r} → ${n} | ${s(t)} · ${fr(u)} |`);
5943
- } else if (n) o.push(`| ${e} → ${r} | ${s(t)} · ${fr(u)} |`);
5944
- else {
5945
- o.push(`| ${e} → ${r} | ${s(t)} · ${fr(u)} |`);
5946
- let n = [...l].toSorted((e, t) => t[1].rendered - e[1].rendered);
5947
- for (let [e, t] of n) {
5948
- let n = i > 0 ? t.rendered / i * 100 : 0;
5949
- o.push(`| ${nr}${e} | ${fr(n)} |`);
5950
- }
5951
- }
5952
- } else {
5953
- o.push(`| ${e} | ${s(t)} |`);
5954
- for (let [e, { sizes: t, files: r }] of a) {
5955
- let a = i > 0 ? t.rendered / i * 100 : 0;
5956
- if (r.size === 1) {
5957
- let t = cr(r);
5958
- o.push(`| ${nr}${e} → ${t} | ${fr(a)} |`);
5959
- } else if (n) o.push(`| ${nr}${e} | ${fr(a)} |`);
5960
- else {
5961
- o.push(`| ${nr}${e} | ${fr(a)} |`);
5962
- let t = [...r].toSorted((e, t) => t[1].rendered - e[1].rendered);
5963
- for (let [e, n] of t) {
5964
- let t = i > 0 ? n.rendered / i * 100 : 0;
5965
- o.push(`| ${nr}${nr}${e} | ${fr(t)} |`);
5966
- }
5967
- }
5968
- }
5969
- }
5940
+ let a = [...r.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.rendered - e[1].sizes.rendered), s = a.length === 1 ? cr(e, t, dr(a), i, n) : lr(e, t, a, i, n);
5941
+ o.push(...s);
5970
5942
  }
5971
5943
  return o.join("\n");
5972
5944
  }
5973
- function sr(e) {
5945
+ function cr(e, t, n, r, i) {
5946
+ let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.rendered / r * 100 : 0;
5947
+ if (s.size === 1) return [`| ${e} → ${a} → ${fr(s)} | ${or(t)} · ${gr(c)} |`];
5948
+ let l = [`| ${e} → ${a} | ${or(t)} · ${gr(c)} |`];
5949
+ return i || l.push(...ur(s, nr, r)), l;
5950
+ }
5951
+ function lr(e, t, n, r, i) {
5952
+ let a = [`| ${e} | ${or(t)} |`];
5953
+ for (let [e, { sizes: t, files: o }] of n) {
5954
+ let n = r > 0 ? t.rendered / r * 100 : 0;
5955
+ if (o.size === 1) {
5956
+ let t = fr(o);
5957
+ a.push(`| ${nr}${e} → ${t} | ${gr(n)} |`);
5958
+ continue;
5959
+ }
5960
+ a.push(`| ${nr}${e} | ${gr(n)} |`), i || a.push(...ur(o, `${nr}${nr}`, r));
5961
+ }
5962
+ return a;
5963
+ }
5964
+ function ur(e, t, n) {
5965
+ return [...e].toSorted((e, t) => t[1].rendered - e[1].rendered).map(([e, r]) => `| ${t}${e} | ${gr(n > 0 ? r.rendered / n * 100 : 0)} |`);
5966
+ }
5967
+ function dr(e) {
5974
5968
  let [t] = e;
5975
5969
  if (t === void 0) throw Error("Expected exactly one entry");
5976
5970
  return t;
5977
5971
  }
5978
- function cr(e) {
5972
+ function fr(e) {
5979
5973
  let [t] = e.keys();
5980
5974
  if (t === void 0) throw Error("Expected exactly one file");
5981
5975
  return t;
5982
5976
  }
5983
- async function lr(e) {
5977
+ async function pr(e) {
5984
5978
  let n = (await t.readdir(e)).filter((e) => e.endsWith(".js") && !e.endsWith(".map"));
5985
5979
  return Promise.all(n.map(async (n) => {
5986
5980
  let r = await t.readFile(`${e}/${n}`), [i, a] = await Promise.all([Qn(r), $n(r)]);
@@ -5991,32 +5985,32 @@ async function lr(e) {
5991
5985
  }];
5992
5986
  }));
5993
5987
  }
5994
- function ur(e, t, n, r, i, a) {
5988
+ function mr(e, t, n, r, i, a) {
5995
5989
  let o = t.nodeParts[a];
5996
5990
  if (!o) return;
5997
- let s = hr(o), c = e.get(i);
5991
+ let s = yr(o), c = e.get(i);
5998
5992
  c === void 0 && (c = /* @__PURE__ */ new Map(), e.set(i, c));
5999
5993
  let l = c.get(n);
6000
5994
  l === void 0 && (l = {
6001
- sizes: gr(),
5995
+ sizes: br(),
6002
5996
  files: /* @__PURE__ */ new Map()
6003
- }, c.set(n, l)), _r(l.sizes, s);
5997
+ }, c.set(n, l)), xr(l.sizes, s);
6004
5998
  let u = l.files.get(r);
6005
- u === void 0 && (u = gr(), l.files.set(r, u)), _r(u, s);
5999
+ u === void 0 && (u = br(), l.files.set(r, u)), xr(u, s);
6006
6000
  }
6007
- function dr(e) {
6001
+ function hr(e) {
6008
6002
  let t = /* @__PURE__ */ new Map();
6009
6003
  for (let n of Object.values(e.nodeMetas)) {
6010
- let r = pr(n.id), i = mr(n.id);
6011
- for (let [a, o] of Object.entries(n.moduleParts)) ur(t, e, r, i, a.split("/").at(-1) ?? a, o);
6004
+ let r = _r(n.id), i = vr(n.id);
6005
+ for (let [a, o] of Object.entries(n.moduleParts)) mr(t, e, r, i, a.split("/").at(-1) ?? a, o);
6012
6006
  }
6013
6007
  return t;
6014
6008
  }
6015
- function fr(e) {
6009
+ function gr(e) {
6016
6010
  let t = Math.round(e / 100 * rr);
6017
6011
  return `\`${"█".repeat(t)}${"░".repeat(rr - t)}\` ${e.toFixed(1)}%`;
6018
6012
  }
6019
- function pr(e) {
6013
+ function _r(e) {
6020
6014
  let t = e.startsWith("/") ? e.slice(1) : e;
6021
6015
  if (t.startsWith("\0")) return "(runtime)";
6022
6016
  if (t.startsWith("node_modules/")) {
@@ -6029,7 +6023,7 @@ function pr(e) {
6029
6023
  }
6030
6024
  return t.startsWith("rust/") || t.startsWith("__vite-plugin-wasm") ? "wasm" : "src";
6031
6025
  }
6032
- function mr(e) {
6026
+ function vr(e) {
6033
6027
  let t = e.startsWith("/") ? e.slice(1) : e;
6034
6028
  if (t.startsWith("\0")) return t.slice(1);
6035
6029
  if (t.startsWith("node_modules/")) {
@@ -6038,35 +6032,35 @@ function mr(e) {
6038
6032
  }
6039
6033
  return t.split("/").at(-1) ?? t;
6040
6034
  }
6041
- function hr(e) {
6035
+ function yr(e) {
6042
6036
  return {
6043
6037
  rendered: e.renderedLength,
6044
6038
  gzip: e.gzipLength,
6045
6039
  brotli: e.brotliLength
6046
6040
  };
6047
6041
  }
6048
- function gr() {
6042
+ function br() {
6049
6043
  return {
6050
6044
  rendered: 0,
6051
6045
  gzip: 0,
6052
6046
  brotli: 0
6053
6047
  };
6054
6048
  }
6055
- function _r(e, t) {
6049
+ function xr(e, t) {
6056
6050
  e.rendered += t.rendered, e.gzip += t.gzip, e.brotli += t.brotli;
6057
6051
  }
6058
- function vr(e) {
6052
+ function Sr(e) {
6059
6053
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6060
6054
  }
6061
6055
  //#endregion
6062
6056
  //#region src/actions/documentDependencies.ts
6063
- var yr = "<!-- DEPENDENCY_LICENSES_START -->", br = "<!-- DEPENDENCY_LICENSES_END -->", xr = "<!-- DEPENDENCY_TREE_START -->", Sr = "<!-- DEPENDENCY_TREE_END -->";
6064
- async function Cr(e = "MIT") {
6057
+ var Cr = "<!-- DEPENDENCY_LICENSES_START -->", wr = "<!-- DEPENDENCY_LICENSES_END -->", Tr = "<!-- DEPENDENCY_TREE_START -->", Er = "<!-- DEPENDENCY_TREE_END -->";
6058
+ async function Dr(e = "MIT") {
6065
6059
  try {
6066
6060
  G("Document Dependencies");
6067
6061
  let t = await W("package.json");
6068
6062
  if (t.name === "@dpuse/dpuse-development") {
6069
- await wr(), K("Dependencies documented");
6063
+ await Or(), K("Dependencies documented");
6070
6064
  return;
6071
6065
  }
6072
6066
  await Pn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
@@ -6088,30 +6082,30 @@ async function Cr(e = "MIT") {
6088
6082
  "--all",
6089
6083
  "--json",
6090
6084
  "--omit=dev"
6091
- ], "licenses/licenseTree.json"), await Tr("4️⃣ "), K("Dependencies documented");
6085
+ ], "licenses/licenseTree.json"), await kr("4️⃣ "), K("Dependencies documented");
6092
6086
  } catch (e) {
6093
6087
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6094
6088
  }
6095
6089
  }
6096
- async function wr() {
6090
+ async function Or() {
6097
6091
  q("1️⃣ Skip: @dpuse/dpuse-development is a development-only tool and is never part of a production release");
6098
6092
  let e = "⚠️ Dependency licenses are not documented here: @dpuse/dpuse-development is a development-only tool and is never part of a production release";
6099
- await Hn("README.md", qn(qn(await zn("./README.md"), e, yr, br), e, xr, Sr));
6093
+ await Hn("README.md", qn(qn(await zn("./README.md"), e, Cr, wr), e, Tr, Er));
6100
6094
  }
6101
- async function Tr(e) {
6095
+ async function kr(e) {
6102
6096
  q(`${e} Insert licenses into 'README.md'`);
6103
6097
  let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
6104
- for (let [e, n] of Object.entries(t)) r.set(e, Er(e, n));
6098
+ for (let [e, n] of Object.entries(t)) r.set(e, Ar(e, n));
6105
6099
  await Promise.all(r.values().map(async (e) => {
6106
- let t = await Dr(e.name, e.installedVersion);
6100
+ let t = await jr(e.name, e.installedVersion);
6107
6101
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6108
6102
  }));
6109
6103
  let i = "|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n";
6110
- for (let e of r.values()) i += Or(e);
6104
+ for (let e of r.values()) i += Mr(e);
6111
6105
  let a = [];
6112
- n.dependencies != null && kr(n.dependencies, r, a, 0), await Hn("README.md", qn(qn(await zn("./README.md"), i, yr, br), a.join("\n"), xr, Sr));
6106
+ n.dependencies != null && Nr(n.dependencies, r, a, 0), await Hn("README.md", qn(qn(await zn("./README.md"), i, Cr, wr), a.join("\n"), Tr, Er));
6113
6107
  }
6114
- function Er(e, t) {
6108
+ function Ar(e, t) {
6115
6109
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6116
6110
  return {
6117
6111
  name: r,
@@ -6125,7 +6119,7 @@ function Er(e, t) {
6125
6119
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6126
6120
  };
6127
6121
  }
6128
- async function Dr(e, t) {
6122
+ async function jr(e, t) {
6129
6123
  try {
6130
6124
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6131
6125
  if (n.ok) {
@@ -6143,25 +6137,25 @@ async function Dr(e, t) {
6143
6137
  publishedDate: ""
6144
6138
  };
6145
6139
  }
6146
- function Or(e) {
6140
+ function Mr(e) {
6147
6141
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6148
6142
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6149
6143
  }
6150
- function kr(e, t, n, r) {
6144
+ function Nr(e, t, n, r) {
6151
6145
  let i = " ".repeat(r);
6152
6146
  for (let [a, o] of Object.entries(e)) {
6153
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Ar(s);
6154
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && kr(o.dependencies, t, n, r + 1);
6147
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Pr(s);
6148
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Nr(o.dependencies, t, n, r + 1);
6155
6149
  }
6156
6150
  }
6157
- function Ar(e) {
6151
+ function Pr(e) {
6158
6152
  if (e == null) return "";
6159
- let t = e.publishedDate ? jr(e.publishedDate.split("T", 1)[0]) : "";
6153
+ let t = e.publishedDate ? Fr(e.publishedDate.split("T", 1)[0]) : "";
6160
6154
  if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
6161
- let n = e.latestPublishedDate ? jr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6155
+ let n = e.latestPublishedDate ? Fr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6162
6156
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6163
6157
  }
6164
- function jr(e) {
6158
+ function Fr(e) {
6165
6159
  if (e == null || e === "") return "n/a";
6166
6160
  let t = e.split("T", 1)[0];
6167
6161
  if (t == null || t === "") return "n/a";
@@ -6170,43 +6164,43 @@ function jr(e) {
6170
6164
  }
6171
6165
  //#endregion
6172
6166
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
6173
- var Mr, Nr = {
6167
+ var Ir, Lr = {
6174
6168
  lang: void 0,
6175
6169
  message: void 0,
6176
6170
  abortEarly: void 0,
6177
6171
  abortPipeEarly: void 0
6178
6172
  };
6179
6173
  /* @__NO_SIDE_EFFECTS__ */
6180
- function Pr(e) {
6181
- return !e && !Mr ? Nr : {
6182
- lang: e?.lang ?? Mr?.lang,
6174
+ function Rr(e) {
6175
+ return !e && !Ir ? Lr : {
6176
+ lang: e?.lang ?? Ir?.lang,
6183
6177
  message: e?.message,
6184
- abortEarly: e?.abortEarly ?? Mr?.abortEarly,
6185
- abortPipeEarly: e?.abortPipeEarly ?? Mr?.abortPipeEarly
6178
+ abortEarly: e?.abortEarly ?? Ir?.abortEarly,
6179
+ abortPipeEarly: e?.abortPipeEarly ?? Ir?.abortPipeEarly
6186
6180
  };
6187
6181
  }
6188
- var Fr;
6182
+ var zr;
6189
6183
  /* @__NO_SIDE_EFFECTS__ */
6190
- function Ir(e) {
6191
- return Fr?.get(e);
6184
+ function Br(e) {
6185
+ return zr?.get(e);
6192
6186
  }
6193
- var Lr;
6187
+ var Vr;
6194
6188
  /* @__NO_SIDE_EFFECTS__ */
6195
- function Rr(e) {
6196
- return Lr?.get(e);
6189
+ function Hr(e) {
6190
+ return Vr?.get(e);
6197
6191
  }
6198
- var zr;
6192
+ var Ur;
6199
6193
  /* @__NO_SIDE_EFFECTS__ */
6200
- function Br(e, t) {
6201
- return zr?.get(e)?.get(t);
6194
+ function Wr(e, t) {
6195
+ return Ur?.get(e)?.get(t);
6202
6196
  }
6203
6197
  /* @__NO_SIDE_EFFECTS__ */
6204
- function Vr(e) {
6198
+ function Gr(e) {
6205
6199
  let t = typeof e;
6206
6200
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6207
6201
  }
6208
6202
  function J(e, t, n, r, i) {
6209
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Vr(a), c = {
6203
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Gr(a), c = {
6210
6204
  kind: e.kind,
6211
6205
  type: e.type,
6212
6206
  input: a,
@@ -6219,36 +6213,36 @@ function J(e, t, n, r, i) {
6219
6213
  lang: r.lang,
6220
6214
  abortEarly: r.abortEarly,
6221
6215
  abortPipeEarly: r.abortPipeEarly
6222
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Br(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Rr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Ir(c.lang);
6216
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Wr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Hr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Br(c.lang);
6223
6217
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6224
6218
  }
6225
- var Hr = /* @__PURE__ */ new WeakMap();
6219
+ var Kr = /* @__PURE__ */ new WeakMap();
6226
6220
  /* @__NO_SIDE_EFFECTS__ */
6227
6221
  function Y(e) {
6228
- let t = Hr.get(e);
6222
+ let t = Kr.get(e);
6229
6223
  return t || (t = {
6230
6224
  version: 1,
6231
6225
  vendor: "valibot",
6232
6226
  validate(t) {
6233
- return e["~run"]({ value: t }, /* @__PURE__ */ Pr());
6227
+ return e["~run"]({ value: t }, /* @__PURE__ */ Rr());
6234
6228
  }
6235
- }, Hr.set(e, t)), t;
6229
+ }, Kr.set(e, t)), t;
6236
6230
  }
6237
6231
  /* @__NO_SIDE_EFFECTS__ */
6238
- function Ur(e, t) {
6232
+ function qr(e, t) {
6239
6233
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6240
6234
  }
6241
6235
  /* @__NO_SIDE_EFFECTS__ */
6242
- function Wr(e, t) {
6236
+ function Jr(e, t) {
6243
6237
  let n = [...new Set(e)];
6244
6238
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6245
6239
  }
6246
6240
  /* @__NO_SIDE_EFFECTS__ */
6247
- function Gr(e, t, n) {
6241
+ function Yr(e, t, n) {
6248
6242
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6249
6243
  }
6250
6244
  /* @__NO_SIDE_EFFECTS__ */
6251
- function Kr(e, t, n) {
6245
+ function Xr(e, t, n) {
6252
6246
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6253
6247
  }
6254
6248
  /* @__NO_SIDE_EFFECTS__ */
@@ -6292,11 +6286,11 @@ function X(e, t) {
6292
6286
  };
6293
6287
  }
6294
6288
  /* @__NO_SIDE_EFFECTS__ */
6295
- function qr(e) {
6289
+ function Zr(e) {
6296
6290
  return {
6297
6291
  kind: "schema",
6298
6292
  type: "boolean",
6299
- reference: qr,
6293
+ reference: Zr,
6300
6294
  expects: "boolean",
6301
6295
  async: !1,
6302
6296
  message: e,
@@ -6309,12 +6303,12 @@ function qr(e) {
6309
6303
  };
6310
6304
  }
6311
6305
  /* @__NO_SIDE_EFFECTS__ */
6312
- function Jr(e, t) {
6306
+ function Qr(e, t) {
6313
6307
  return {
6314
6308
  kind: "schema",
6315
6309
  type: "literal",
6316
- reference: Jr,
6317
- expects: /* @__PURE__ */ Vr(e),
6310
+ reference: Qr,
6311
+ expects: /* @__PURE__ */ Gr(e),
6318
6312
  async: !1,
6319
6313
  literal: e,
6320
6314
  message: t,
@@ -6340,16 +6334,16 @@ function Z(e, t) {
6340
6334
  return /* @__PURE__ */ Y(this);
6341
6335
  },
6342
6336
  "~run"(e, t) {
6343
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Kr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6337
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Xr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6344
6338
  }
6345
6339
  };
6346
6340
  }
6347
6341
  /* @__NO_SIDE_EFFECTS__ */
6348
- function Yr(e) {
6342
+ function $r(e) {
6349
6343
  return {
6350
6344
  kind: "schema",
6351
6345
  type: "number",
6352
- reference: Yr,
6346
+ reference: $r,
6353
6347
  expects: "number",
6354
6348
  async: !1,
6355
6349
  message: e,
@@ -6381,7 +6375,7 @@ function Q(e, t) {
6381
6375
  for (let r in this.entries) {
6382
6376
  let i = this.entries[r];
6383
6377
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6384
- let a = r in n ? n[r] : /* @__PURE__ */ Kr(i), o = i["~run"]({ value: a }, t);
6378
+ let a = r in n ? n[r] : /* @__PURE__ */ Xr(i), o = i["~run"]({ value: a }, t);
6385
6379
  if (o.issues) {
6386
6380
  let i = {
6387
6381
  type: "object",
@@ -6397,7 +6391,7 @@ function Q(e, t) {
6397
6391
  }
6398
6392
  }
6399
6393
  o.typed || (e.typed = !1), e.value[r] = o.value;
6400
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Gr(i);
6394
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Yr(i);
6401
6395
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (J(this, "key", e, t, {
6402
6396
  input: void 0,
6403
6397
  expected: `"${r}"`,
@@ -6416,11 +6410,11 @@ function Q(e, t) {
6416
6410
  };
6417
6411
  }
6418
6412
  /* @__NO_SIDE_EFFECTS__ */
6419
- function Xr(e, t) {
6413
+ function ei(e, t) {
6420
6414
  return {
6421
6415
  kind: "schema",
6422
6416
  type: "optional",
6423
- reference: Xr,
6417
+ reference: ei,
6424
6418
  expects: `(${e.expects} | undefined)`,
6425
6419
  async: !1,
6426
6420
  wrapped: e,
@@ -6429,16 +6423,16 @@ function Xr(e, t) {
6429
6423
  return /* @__PURE__ */ Y(this);
6430
6424
  },
6431
6425
  "~run"(e, t) {
6432
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Kr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6426
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Xr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6433
6427
  }
6434
6428
  };
6435
6429
  }
6436
6430
  /* @__NO_SIDE_EFFECTS__ */
6437
- function Zr(e, t, n) {
6431
+ function ti(e, t, n) {
6438
6432
  return {
6439
6433
  kind: "schema",
6440
6434
  type: "record",
6441
- reference: Zr,
6435
+ reference: ti,
6442
6436
  expects: "Object",
6443
6437
  async: !1,
6444
6438
  key: e,
@@ -6451,7 +6445,7 @@ function Zr(e, t, n) {
6451
6445
  let n = e.value;
6452
6446
  if (n && typeof n == "object") {
6453
6447
  e.typed = !0, e.value = {};
6454
- for (let r in n) if (/* @__PURE__ */ Ur(n, r)) {
6448
+ for (let r in n) if (/* @__PURE__ */ qr(n, r)) {
6455
6449
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6456
6450
  if (a.issues) {
6457
6451
  let o = {
@@ -6507,19 +6501,19 @@ function $(e) {
6507
6501
  };
6508
6502
  }
6509
6503
  /* @__NO_SIDE_EFFECTS__ */
6510
- function Qr(e) {
6504
+ function ni(e) {
6511
6505
  let t;
6512
6506
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6513
6507
  else t = n.issues;
6514
6508
  return t;
6515
6509
  }
6516
6510
  /* @__NO_SIDE_EFFECTS__ */
6517
- function $r(e, t) {
6511
+ function ri(e, t) {
6518
6512
  return {
6519
6513
  kind: "schema",
6520
6514
  type: "union",
6521
- reference: $r,
6522
- expects: /* @__PURE__ */ Wr(e.map((e) => e.expects), "|"),
6515
+ reference: ri,
6516
+ expects: /* @__PURE__ */ Jr(e.map((e) => e.expects), "|"),
6523
6517
  async: !1,
6524
6518
  options: e,
6525
6519
  message: t,
@@ -6540,24 +6534,24 @@ function $r(e, t) {
6540
6534
  if (n) return n;
6541
6535
  if (r) {
6542
6536
  if (r.length === 1) return r[0];
6543
- J(this, "type", e, t, { issues: /* @__PURE__ */ Qr(r) }), e.typed = !0;
6537
+ J(this, "type", e, t, { issues: /* @__PURE__ */ ni(r) }), e.typed = !0;
6544
6538
  } else if (i?.length === 1) return i[0];
6545
- else J(this, "type", e, t, { issues: /* @__PURE__ */ Qr(i) });
6539
+ else J(this, "type", e, t, { issues: /* @__PURE__ */ ni(i) });
6546
6540
  return e;
6547
6541
  }
6548
6542
  };
6549
6543
  }
6550
- var ei = (e) => /* @__PURE__ */ $r(e.map((e) => /* @__PURE__ */ Jr(e))), ti = /* @__PURE__ */ Q({
6544
+ var ii = (e) => /* @__PURE__ */ ri(e.map((e) => /* @__PURE__ */ Qr(e))), ai = /* @__PURE__ */ Q({
6551
6545
  en: /* @__PURE__ */ $(),
6552
6546
  es: /* @__PURE__ */ $()
6553
- }), ni = /* @__PURE__ */ Q({
6554
- en: /* @__PURE__ */ Xr(/* @__PURE__ */ X(/* @__PURE__ */ $())),
6555
- es: /* @__PURE__ */ Xr(/* @__PURE__ */ X(/* @__PURE__ */ $()))
6556
- }), ri = /* @__PURE__ */ Q({
6557
- en: /* @__PURE__ */ Xr(/* @__PURE__ */ $()),
6558
- es: /* @__PURE__ */ Xr(/* @__PURE__ */ $())
6547
+ }), oi = /* @__PURE__ */ Q({
6548
+ en: /* @__PURE__ */ ei(/* @__PURE__ */ X(/* @__PURE__ */ $())),
6549
+ es: /* @__PURE__ */ ei(/* @__PURE__ */ X(/* @__PURE__ */ $()))
6550
+ }), si = /* @__PURE__ */ Q({
6551
+ en: /* @__PURE__ */ ei(/* @__PURE__ */ $()),
6552
+ es: /* @__PURE__ */ ei(/* @__PURE__ */ $())
6559
6553
  });
6560
- ei([
6554
+ ii([
6561
6555
  "app",
6562
6556
  "connection",
6563
6557
  "connector",
@@ -6582,12 +6576,12 @@ ei([
6582
6576
  "presenterPresentation",
6583
6577
  "tool"
6584
6578
  ]);
6585
- var ii = ei([
6579
+ var ci = ii([
6586
6580
  "amber",
6587
6581
  "green",
6588
6582
  "red",
6589
6583
  "other"
6590
- ]), ai = ei([
6584
+ ]), li = ii([
6591
6585
  "alpha",
6592
6586
  "beta",
6593
6587
  "generalAvailability",
@@ -6597,31 +6591,31 @@ var ii = ei([
6597
6591
  "releaseCandidate",
6598
6592
  "unavailable",
6599
6593
  "underReview"
6600
- ]), oi = /* @__PURE__ */ Q({
6601
- color: ii,
6594
+ ]), ui = /* @__PURE__ */ Q({
6595
+ color: ci,
6602
6596
  label: /* @__PURE__ */ $()
6603
- }), si = /* @__PURE__ */ Q({
6597
+ }), di = /* @__PURE__ */ Q({
6604
6598
  id: /* @__PURE__ */ $(),
6605
- label: ri,
6606
- description: ni,
6599
+ label: si,
6600
+ description: oi,
6607
6601
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6608
6602
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6609
6603
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6610
- order: /* @__PURE__ */ Yr(),
6604
+ order: /* @__PURE__ */ $r(),
6611
6605
  path: /* @__PURE__ */ $()
6612
- }), ci = {
6606
+ }), fi = {
6613
6607
  id: /* @__PURE__ */ $(),
6614
- label: ri,
6615
- description: ni,
6616
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Yr()),
6608
+ label: si,
6609
+ description: oi,
6610
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ $r()),
6617
6611
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6618
6612
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6619
6613
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6620
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Yr()),
6621
- status: /* @__PURE__ */ Z(oi),
6622
- statusId: /* @__PURE__ */ Z(ai)
6614
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ $r()),
6615
+ status: /* @__PURE__ */ Z(ui),
6616
+ statusId: /* @__PURE__ */ Z(li)
6623
6617
  };
6624
- ({ ...ci }), ei([
6618
+ ({ ...fi }), ii([
6625
6619
  "app",
6626
6620
  "engine",
6627
6621
  "connector",
@@ -6632,14 +6626,14 @@ var ii = ei([
6632
6626
  ]);
6633
6627
  //#endregion
6634
6628
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
6635
- var li = {
6636
- ...ci,
6629
+ var pi = {
6630
+ ...fi,
6637
6631
  version: /* @__PURE__ */ $()
6638
6632
  };
6639
- ({ ...li });
6633
+ ({ ...pi });
6640
6634
  //#endregion
6641
6635
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6642
- var ui = ei([
6636
+ var mi = ii([
6643
6637
  "abortOperation",
6644
6638
  "auditObjectContent",
6645
6639
  "createObject",
@@ -6654,35 +6648,35 @@ var ui = ei([
6654
6648
  "retrieveChunks",
6655
6649
  "retrieveRecords",
6656
6650
  "upsertRecords"
6657
- ]), di = ei([
6651
+ ]), hi = ii([
6658
6652
  "application",
6659
6653
  "curatedDataset",
6660
6654
  "database",
6661
6655
  "fileStore"
6662
- ]), fi = /* @__PURE__ */ Q({ label: ti }), pi = /* @__PURE__ */ Q({
6663
- authMethodId: ei([
6656
+ ]), gi = /* @__PURE__ */ Q({ label: ai }), _i = /* @__PURE__ */ Q({
6657
+ authMethodId: ii([
6664
6658
  "apiKey",
6665
6659
  "disabled",
6666
6660
  "oAuth2",
6667
6661
  "none"
6668
6662
  ]),
6669
- activeConnectionCount: /* @__PURE__ */ Xr(/* @__PURE__ */ Yr()),
6670
- canDescribe: /* @__PURE__ */ Xr(/* @__PURE__ */ qr()),
6671
- id: /* @__PURE__ */ Xr(/* @__PURE__ */ $()),
6672
- label: /* @__PURE__ */ Xr(ti),
6673
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ Yr()),
6674
- params: /* @__PURE__ */ Xr(/* @__PURE__ */ X(/* @__PURE__ */ Zr(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6675
- }), mi = /* @__PURE__ */ Q({
6676
- typeId: /* @__PURE__ */ Jr("connector"),
6677
- ...li,
6678
- actionNames: /* @__PURE__ */ X(ui),
6679
- category: /* @__PURE__ */ Z(fi),
6680
- categoryId: di,
6681
- implementations: /* @__PURE__ */ Zr(/* @__PURE__ */ $(), pi),
6663
+ activeConnectionCount: /* @__PURE__ */ ei(/* @__PURE__ */ $r()),
6664
+ canDescribe: /* @__PURE__ */ ei(/* @__PURE__ */ Zr()),
6665
+ id: /* @__PURE__ */ ei(/* @__PURE__ */ $()),
6666
+ label: /* @__PURE__ */ ei(ai),
6667
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ $r()),
6668
+ params: /* @__PURE__ */ ei(/* @__PURE__ */ X(/* @__PURE__ */ ti(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6669
+ }), vi = /* @__PURE__ */ Q({
6670
+ typeId: /* @__PURE__ */ Qr("connector"),
6671
+ ...pi,
6672
+ actionNames: /* @__PURE__ */ X(mi),
6673
+ category: /* @__PURE__ */ Z(gi),
6674
+ categoryId: hi,
6675
+ implementations: /* @__PURE__ */ ti(/* @__PURE__ */ $(), _i),
6682
6676
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6683
6677
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6684
6678
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6685
- }), hi = {
6679
+ }), yi = {
6686
6680
  abortOperation: "Abort Operation",
6687
6681
  auditObjectContent: "Audit Object Content",
6688
6682
  createObject: "Create Object",
@@ -6698,27 +6692,27 @@ var ui = ei([
6698
6692
  retrieveRecords: "Retrieve Records",
6699
6693
  upsertRecords: "Upsert Records"
6700
6694
  };
6701
- function gi(e) {
6695
+ function bi(e) {
6702
6696
  let t = new Set(e), n = "|Action|Supported|\n";
6703
6697
  n += "|:----|:-------:|\n";
6704
- for (let e of Object.keys(hi)) n += `| ${hi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6698
+ for (let e of Object.keys(yi)) n += `| ${yi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6705
6699
  return n;
6706
6700
  }
6707
6701
  //#endregion
6708
6702
  //#region src/actions/documentActions.ts
6709
- var _i = "<!-- CONNECTOR_ACTIONS_START -->", vi = "<!-- CONNECTOR_ACTIONS_END -->";
6710
- async function yi() {
6703
+ var xi = "<!-- CONNECTOR_ACTIONS_START -->", Si = "<!-- CONNECTOR_ACTIONS_END -->";
6704
+ async function Ci() {
6711
6705
  try {
6712
6706
  G("Document Actions"), q("1️⃣ Insert actions table into 'README.md'");
6713
- let e = gi((await W("config.json")).actionNames ?? []);
6714
- await Hn("README.md", qn(await zn("./README.md"), e, _i, vi)), K("Actions documented");
6707
+ let e = bi((await W("config.json")).actionNames ?? []);
6708
+ await Hn("README.md", qn(await zn("./README.md"), e, xi, Si)), K("Actions documented");
6715
6709
  } catch (e) {
6716
6710
  console.error("❌ Error documenting actions", e), process.exit(1);
6717
6711
  }
6718
6712
  }
6719
6713
  //#endregion
6720
6714
  //#region src/actions/formatCode.ts
6721
- async function bi() {
6715
+ async function wi() {
6722
6716
  try {
6723
6717
  G("Format Code"), await Ln("1️⃣ Format", "prettier", [
6724
6718
  "--write",
@@ -6733,7 +6727,7 @@ async function bi() {
6733
6727
  }
6734
6728
  //#endregion
6735
6729
  //#region src/actions/lintCode.ts
6736
- async function xi() {
6730
+ async function Ti() {
6737
6731
  try {
6738
6732
  G("Lint Code"), await Ln("1️⃣ Lint", "eslint", ["."]), K("Code linted");
6739
6733
  } catch (e) {
@@ -6742,7 +6736,7 @@ async function xi() {
6742
6736
  }
6743
6737
  //#endregion
6744
6738
  //#region src/utilities/cloudflare.ts
6745
- async function Si() {
6739
+ async function Ei() {
6746
6740
  let e = await W("config.json"), t = {
6747
6741
  body: JSON.stringify(e),
6748
6742
  headers: { "Content-Type": "application/json" },
@@ -6750,7 +6744,7 @@ async function Si() {
6750
6744
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6751
6745
  if (!n.ok) throw Error(await n.text());
6752
6746
  }
6753
- async function Ci(e, t) {
6747
+ async function Di(e, t) {
6754
6748
  async function n(e, t, r) {
6755
6749
  for (let i of r) {
6756
6750
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6768,7 +6762,7 @@ async function Ci(e, t) {
6768
6762
  let r = await Fn(`${e}/${t}/`);
6769
6763
  await n(`${e}/${t}`, t, r);
6770
6764
  }
6771
- async function wi(e) {
6765
+ async function Oi(e) {
6772
6766
  let t = e.id, n = {
6773
6767
  body: JSON.stringify(e),
6774
6768
  headers: { "Content-Type": "application/json" },
@@ -6776,7 +6770,7 @@ async function wi(e) {
6776
6770
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6777
6771
  if (!r.ok) throw Error(await r.text());
6778
6772
  }
6779
- async function Ti(e, t) {
6773
+ async function ki(e, t) {
6780
6774
  let n = `v${e.version ?? "unknown"}`;
6781
6775
  async function r(e, r = "") {
6782
6776
  let i = await Fn(e, { withFileTypes: !0 });
@@ -6800,24 +6794,24 @@ async function Ti(e, t) {
6800
6794
  }
6801
6795
  //#endregion
6802
6796
  //#region node_modules/valibot/dist/index.mjs
6803
- var Ei, Di = {
6797
+ var Ai, ji = {
6804
6798
  lang: void 0,
6805
6799
  message: void 0,
6806
6800
  abortEarly: void 0,
6807
6801
  abortPipeEarly: void 0
6808
6802
  };
6809
6803
  /* @__NO_SIDE_EFFECTS__ */
6810
- function Oi(e) {
6811
- return !e && !Ei ? Di : {
6812
- lang: e?.lang ?? Ei?.lang,
6804
+ function Mi(e) {
6805
+ return !e && !Ai ? ji : {
6806
+ lang: e?.lang ?? Ai?.lang,
6813
6807
  message: e?.message,
6814
- abortEarly: e?.abortEarly ?? Ei?.abortEarly,
6815
- abortPipeEarly: e?.abortPipeEarly ?? Ei?.abortPipeEarly
6808
+ abortEarly: e?.abortEarly ?? Ai?.abortEarly,
6809
+ abortPipeEarly: e?.abortPipeEarly ?? Ai?.abortPipeEarly
6816
6810
  };
6817
6811
  }
6818
6812
  /* @__NO_SIDE_EFFECTS__ */
6819
- function ki(e, t, n) {
6820
- let r = e["~run"]({ value: t }, /* @__PURE__ */ Oi(n));
6813
+ function Ni(e, t, n) {
6814
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ Mi(n));
6821
6815
  return {
6822
6816
  typed: r.typed,
6823
6817
  success: !r.issues,
@@ -6827,31 +6821,31 @@ function ki(e, t, n) {
6827
6821
  }
6828
6822
  //#endregion
6829
6823
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
6830
- var Ai = /* @__PURE__ */ Q({
6831
- typeId: /* @__PURE__ */ Jr("contextArea"),
6832
- ...ci,
6833
- modelRefs: /* @__PURE__ */ X(si),
6834
- order: /* @__PURE__ */ Yr()
6835
- }), ji = ei(["listContextFocuses"]), Mi = /* @__PURE__ */ Q({
6836
- typeId: /* @__PURE__ */ Jr("context"),
6837
- ...li,
6838
- actionNames: /* @__PURE__ */ X(ji),
6839
- models: /* @__PURE__ */ X(Ai)
6840
- }), Ni = ei([
6824
+ var Pi = /* @__PURE__ */ Q({
6825
+ typeId: /* @__PURE__ */ Qr("contextArea"),
6826
+ ...fi,
6827
+ modelRefs: /* @__PURE__ */ X(di),
6828
+ order: /* @__PURE__ */ $r()
6829
+ }), Fi = ii(["listContextFocuses"]), Ii = /* @__PURE__ */ Q({
6830
+ typeId: /* @__PURE__ */ Qr("context"),
6831
+ ...pi,
6832
+ actionNames: /* @__PURE__ */ X(Fi),
6833
+ models: /* @__PURE__ */ X(Pi)
6834
+ }), Li = ii([
6841
6835
  "list",
6842
6836
  "render",
6843
6837
  "setColorMode"
6844
- ]), Pi = /* @__PURE__ */ Q({
6845
- typeId: /* @__PURE__ */ Jr("presenter"),
6846
- ...li,
6847
- actionNames: /* @__PURE__ */ X(Ni),
6848
- presentations: /* @__PURE__ */ X(si)
6849
- }), Fi = /* @__PURE__ */ new Set([
6838
+ ]), Ri = /* @__PURE__ */ Q({
6839
+ typeId: /* @__PURE__ */ Qr("presenter"),
6840
+ ...pi,
6841
+ actionNames: /* @__PURE__ */ X(Li),
6842
+ presentations: /* @__PURE__ */ X(di)
6843
+ }), zi = /* @__PURE__ */ new Set([
6850
6844
  "createObject",
6851
6845
  "dropObject",
6852
6846
  "removeRecords",
6853
6847
  "upsertRecords"
6854
- ]), Ii = /* @__PURE__ */ new Set([
6848
+ ]), Bi = /* @__PURE__ */ new Set([
6855
6849
  "auditObjectContent",
6856
6850
  "findObjectFolderPath",
6857
6851
  "getReadableStream",
@@ -6861,30 +6855,30 @@ var Ai = /* @__PURE__ */ Q({
6861
6855
  "retrieveChunks",
6862
6856
  "retrieveRecords"
6863
6857
  ]);
6864
- async function Li() {
6858
+ async function Vi() {
6865
6859
  try {
6866
6860
  G("Build Project"), await Ln("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
6867
6861
  } catch (e) {
6868
6862
  console.error("❌ Error building project", e), process.exit(1);
6869
6863
  }
6870
6864
  }
6871
- async function Ri() {
6865
+ async function Hi() {
6872
6866
  try {
6873
6867
  G("Release Project");
6874
6868
  let e = await W("package.json"), t = await W("config.json");
6875
- await Ji("1️⃣ ", e);
6869
+ await Qi("1️⃣ ", e);
6876
6870
  let n = Un(t.id);
6877
6871
  switch (n.typeId) {
6878
6872
  case "connector":
6879
- t = await Bi("2️⃣ ", e);
6873
+ t = await Wi("2️⃣ ", e);
6880
6874
  break;
6881
6875
  case "context":
6882
- t = await Vi("2️⃣ ", e);
6876
+ t = await Gi("2️⃣ ", e);
6883
6877
  break;
6884
6878
  case "presenter":
6885
- t = await Hi("2️⃣ ", e);
6879
+ t = await Ki("2️⃣ ", e);
6886
6880
  break;
6887
- default: t = await zi("2️⃣ ", e);
6881
+ default: t = await Ui("2️⃣ ", e);
6888
6882
  }
6889
6883
  if (await Ln("3️⃣ Bundle project", "vite", ["build"]), await In("4️⃣ Stage changes", "git", ["add", "."]), await In("5️⃣ Commit changes", "git", [
6890
6884
  "commit",
@@ -6894,13 +6888,13 @@ async function Ri() {
6894
6888
  "push",
6895
6889
  "origin",
6896
6890
  "main:main"
6897
- ]), n.typeId === "app") q("7️⃣ Register module"), await Si();
6898
- else if (n.typeId === "engine") q("7️⃣ Register module"), await Ti(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await wi(t);
6891
+ ]), n.typeId === "app") q("7️⃣ Register module"), await Ei();
6892
+ else if (n.typeId === "engine") q("7️⃣ Register module"), await ki(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Oi(t);
6899
6893
  else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
6900
6894
  else {
6901
6895
  q("7️⃣ Register module");
6902
6896
  let r = t.id.split("-").slice(2).join("-");
6903
- await Ti(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await wi(t);
6897
+ await ki(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Oi(t);
6904
6898
  }
6905
6899
  if (n.publishedTo === "npm") {
6906
6900
  let e = ".npmrc";
@@ -6919,70 +6913,70 @@ async function Ri() {
6919
6913
  console.error("❌ Error releasing project", e), process.exit(1);
6920
6914
  }
6921
6915
  }
6922
- async function zi(e, t) {
6916
+ async function Ui(e, t) {
6923
6917
  q(`${e} Build project configuration`);
6924
6918
  let n = await W("config.json");
6925
6919
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Vn("config.json", n), n;
6926
6920
  }
6927
- async function Bi(e, t) {
6921
+ async function Wi(e, t) {
6928
6922
  q(`${e} Build connector project configuration`);
6929
- let [n, r] = await Promise.all([W("config.json"), zn("src/index.ts")]), i = /* @__PURE__ */ ki(mi, n);
6923
+ let [n, r] = await Promise.all([W("config.json"), zn("src/index.ts")]), i = /* @__PURE__ */ Ni(vi, n);
6930
6924
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6931
6925
  let a = Gn(r);
6932
- return await Wi(t, n, a, Ui(a));
6926
+ return await Ji(t, n, a, qi(a));
6933
6927
  }
6934
- async function Vi(e, t) {
6928
+ async function Gi(e, t) {
6935
6929
  q(`${e} Build context project configuration`);
6936
- let [n, r] = await Promise.all([W("config.json"), zn("src/index.ts")]), i = /* @__PURE__ */ ki(Mi, n);
6930
+ let [n, r] = await Promise.all([W("config.json"), zn("src/index.ts")]), i = /* @__PURE__ */ Ni(Ii, n);
6937
6931
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6938
- return await Wi(t, n, Gn(r));
6932
+ return await Ji(t, n, Gn(r));
6939
6933
  }
6940
- async function Hi(e, t) {
6934
+ async function Ki(e, t) {
6941
6935
  q(`${e} Build presenter project configuration`);
6942
- let [n, r] = await Promise.all([W("config.json"), zn("src/index.ts")]), i = /* @__PURE__ */ ki(Pi, n);
6936
+ let [n, r] = await Promise.all([W("config.json"), zn("src/index.ts")]), i = /* @__PURE__ */ Ni(Ri, n);
6943
6937
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6944
- return await Wi(t, n, Gn(r));
6938
+ return await Ji(t, n, Gn(r));
6945
6939
  }
6946
- function Ui(e) {
6940
+ function qi(e) {
6947
6941
  let t = !1, n = !1;
6948
- for (let r of e) Ii.has(r) && (t = !0), Fi.has(r) && (n = !0);
6942
+ for (let r of e) Bi.has(r) && (t = !0), zi.has(r) && (n = !0);
6949
6943
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6950
6944
  }
6951
- async function Wi(e, t, n, r) {
6945
+ async function Ji(e, t, n, r) {
6952
6946
  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 Vn("config.json", t), t;
6953
6947
  }
6954
- async function Gi() {
6948
+ async function Yi() {
6955
6949
  try {
6956
6950
  G("Publish Project");
6957
6951
  let e = await W("package.json"), t = await W("config.json"), n = Un(t.id);
6958
- if (n.typeId === "app") q("1️⃣ Register module"), await Si();
6959
- else if (n.typeId === "engine") q("1️⃣ Register module"), await Ti(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await wi(t);
6952
+ if (n.typeId === "app") q("1️⃣ Register module"), await Ei();
6953
+ else if (n.typeId === "engine") q("1️⃣ Register module"), await ki(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Oi(t);
6960
6954
  else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
6961
6955
  else {
6962
6956
  q("1️⃣ Register module");
6963
6957
  let r = t.id.split("-").slice(2).join("-");
6964
- await Ti(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await wi(t);
6958
+ await ki(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Oi(t);
6965
6959
  }
6966
6960
  K(`Project version '${e.version ?? "unknown"}' published.`);
6967
6961
  } catch (e) {
6968
6962
  console.error("❌ Error publishing project", e), process.exit(1);
6969
6963
  }
6970
6964
  }
6971
- async function Ki() {
6965
+ async function Xi() {
6972
6966
  try {
6973
6967
  G("Synchronise Project with GitHub");
6974
6968
  let e = await W("package.json"), t = await W("config.json");
6975
- switch (await Ji("1️⃣ ", e), Un(t.id).typeId) {
6969
+ switch (await Qi("1️⃣ ", e), Un(t.id).typeId) {
6976
6970
  case "connector":
6977
- await Bi("2️⃣ ", e);
6971
+ await Wi("2️⃣ ", e);
6978
6972
  break;
6979
6973
  case "context":
6980
- await Vi("2️⃣ ", e);
6974
+ await Gi("2️⃣ ", e);
6981
6975
  break;
6982
6976
  case "presenter":
6983
- await Hi("2️⃣ ", e);
6977
+ await Ki("2️⃣ ", e);
6984
6978
  break;
6985
- default: await zi("2️⃣ ", e);
6979
+ default: await Ui("2️⃣ ", e);
6986
6980
  }
6987
6981
  await In("3️⃣ Stage changes", "git", ["add", "."]), await In("4️⃣ Commit changes", "git", [
6988
6982
  "commit",
@@ -6997,14 +6991,14 @@ async function Ki() {
6997
6991
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
6998
6992
  }
6999
6993
  }
7000
- function qi() {
6994
+ function Zi() {
7001
6995
  try {
7002
6996
  G("Test Project"), console.error("\n❌ No tests implemented.\n");
7003
6997
  } catch (e) {
7004
6998
  console.error("❌ Error testing project", e), process.exit(1);
7005
6999
  }
7006
7000
  }
7007
- async function Ji(e, t, n = "./") {
7001
+ async function Qi(e, t, n = "./") {
7008
7002
  if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7009
7003
  else {
7010
7004
  let e = t.version, n = t.version.split(".");
@@ -7013,6 +7007,6 @@ async function Ji(e, t, n = "./") {
7013
7007
  await Vn(`${n}package.json`, t);
7014
7008
  }
7015
7009
  //#endregion
7016
- export { Jn as auditDependencies, Li as buildProject, Yn as checkConfigFiles, Zn as checkDependencies, yi as documentActions, ir as documentBundleSizes, Cr as documentDependencies, bi as formatCode, xi as lintCode, Gi as publishProject, Ri as releaseProject, Ki as syncProjectWithGitHub, qi as testProject, Ci as uploadDirectoryToR2 };
7010
+ export { Jn as auditDependencies, Vi as buildProject, Yn as checkConfigFiles, Zn as checkDependencies, Ci as documentActions, ir as documentBundleSizes, Dr as documentDependencies, wi as formatCode, Ti as lintCode, Yi as publishProject, Hi as releaseProject, Xi as syncProjectWithGitHub, Zi as testProject, Di as uploadDirectoryToR2 };
7017
7011
 
7018
7012
  //# sourceMappingURL=dpuse-development.es.js.map