@dpuse/dpuse-development 0.3.665 → 0.3.667

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.
@@ -5964,78 +5964,78 @@ async function $n() {
5964
5964
  }
5965
5965
  //#endregion
5966
5966
  //#region src/actions/documentBundleSizes.ts
5967
- var er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = "&nbsp;&nbsp;&nbsp;&nbsp;", rr = 20;
5968
- async function ir(e) {
5967
+ var er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = "&nbsp;&nbsp;&nbsp;&nbsp;", rr = 20, ir = "The Bundle Analysis Report is generated automatically on each release using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates. Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS.";
5968
+ async function ar(e) {
5969
5969
  try {
5970
5970
  G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
5971
5971
  let t = await W("./bundle-analysis-reports/sonda/index.json");
5972
5972
  q("2️⃣ Insert table into 'README.md'");
5973
- let n = ar(t, e?.moduleLevel ?? !1);
5974
- await Bn("README.md", Gn(await Ln("./README.md"), `\n${n}\n`, er, tr)), K("Bundle sizes documented");
5973
+ let n = or(t, e?.moduleLevel ?? !1);
5974
+ await Bn("README.md", Gn(await Ln("./README.md"), `\n${ir}\n\n${n}\n`, er, tr)), K("Bundle sizes documented");
5975
5975
  } catch (e) {
5976
5976
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
5977
5977
  }
5978
5978
  }
5979
- function ar(e, t) {
5980
- let n = dr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, hr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
5979
+ function or(e, t) {
5980
+ let n = fr(e), r = n.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.uncompressed, 0), i = e.resources.filter((e) => e.kind === "asset").map((e) => [e.name, gr(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
5981
5981
  for (let [e, o] of i) {
5982
- let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? or(e, o, lr(i), r, t) : sr(e, o, i, r, t);
5982
+ let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? sr(e, o, ur(i), r, t) : cr(e, o, i, r, t);
5983
5983
  a.push(...s);
5984
5984
  }
5985
5985
  return a.join("\n");
5986
5986
  }
5987
- function or(e, t, n, r, i) {
5987
+ function sr(e, t, n, r, i) {
5988
5988
  let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.uncompressed / r * 100 : 0;
5989
- if (s.size === 1) return [`| ${e} → ${a} → ${ur(s)} | ${gr(t)} · ${_r(c)} |`];
5990
- let l = [`| ${e} → ${a} | ${gr(t)} · ${_r(c)} |`];
5991
- return i || l.push(...cr(s, nr, r)), l;
5989
+ if (s.size === 1) return [`| ${e} → ${a} → ${dr(s)} | ${_r(t)} · ${vr(c)} |`];
5990
+ let l = [`| ${e} → ${a} | ${_r(t)} · ${vr(c)} |`];
5991
+ return i || l.push(...lr(s, nr, r)), l;
5992
5992
  }
5993
- function sr(e, t, n, r, i) {
5994
- let a = [`| ${e} | ${gr(t)} |`];
5993
+ function cr(e, t, n, r, i) {
5994
+ let a = [`| ${e} | ${_r(t)} |`];
5995
5995
  for (let [e, { sizes: t, files: o }] of n) {
5996
5996
  let n = r > 0 ? t.uncompressed / r * 100 : 0;
5997
5997
  if (o.size === 1) {
5998
- let t = ur(o);
5999
- a.push(`| ${nr}${e} → ${t} | ${_r(n)} |`);
5998
+ let t = dr(o);
5999
+ a.push(`| ${nr}${e} → ${t} | ${vr(n)} |`);
6000
6000
  continue;
6001
6001
  }
6002
- a.push(`| ${nr}${e} | ${_r(n)} |`), i || a.push(...cr(o, `${nr}${nr}`, r));
6002
+ a.push(`| ${nr}${e} | ${vr(n)} |`), i || a.push(...lr(o, `${nr}${nr}`, r));
6003
6003
  }
6004
6004
  return a;
6005
6005
  }
6006
- function cr(e, t, n) {
6007
- return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${_r(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6006
+ function lr(e, t, n) {
6007
+ return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${vr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
6008
6008
  }
6009
- function lr(e) {
6009
+ function ur(e) {
6010
6010
  let [t] = e;
6011
6011
  if (t === void 0) throw Error("Expected exactly one entry");
6012
6012
  return t;
6013
6013
  }
6014
- function ur(e) {
6014
+ function dr(e) {
6015
6015
  let [t] = e.keys();
6016
6016
  if (t === void 0) throw Error("Expected exactly one file");
6017
6017
  return t;
6018
6018
  }
6019
- function dr(e) {
6020
- let t = fr(e.dependencies), n = /* @__PURE__ */ new Map();
6019
+ function fr(e) {
6020
+ let t = pr(e.dependencies), n = /* @__PURE__ */ new Map();
6021
6021
  for (let r of e.resources) {
6022
6022
  if (r.kind !== "chunk" || !r.parent) continue;
6023
- let { group: e, file: i } = pr(r.name, t), a = hr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6023
+ let { group: e, file: i } = mr(r.name, t), a = gr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6024
6024
  n.set(r.parent, o);
6025
6025
  let s = o.get(e) ?? {
6026
- sizes: vr(),
6026
+ sizes: yr(),
6027
6027
  files: /* @__PURE__ */ new Map()
6028
6028
  };
6029
- o.set(e, s), yr(s.sizes, a);
6030
- let c = s.files.get(i) ?? vr();
6031
- s.files.set(i, c), yr(c, a);
6029
+ o.set(e, s), br(s.sizes, a);
6030
+ let c = s.files.get(i) ?? yr();
6031
+ s.files.set(i, c), br(c, a);
6032
6032
  }
6033
6033
  return n;
6034
6034
  }
6035
- function fr(e) {
6035
+ function pr(e) {
6036
6036
  return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
6037
6037
  }
6038
- function pr(e, t) {
6038
+ function mr(e, t) {
6039
6039
  let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
6040
6040
  if (n) {
6041
6041
  let [t, r] = n;
@@ -6052,49 +6052,49 @@ function pr(e, t) {
6052
6052
  file: e.slice(1)
6053
6053
  } : e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? {
6054
6054
  group: "wasm",
6055
- file: mr(e)
6055
+ file: hr(e)
6056
6056
  } : {
6057
6057
  group: "src",
6058
- file: mr(e)
6058
+ file: hr(e)
6059
6059
  };
6060
6060
  }
6061
- function mr(e) {
6061
+ function hr(e) {
6062
6062
  return e.split("/").at(-1) ?? e;
6063
6063
  }
6064
- function hr(e) {
6064
+ function gr(e) {
6065
6065
  return {
6066
6066
  uncompressed: e.uncompressed,
6067
6067
  brotli: e.brotli ?? 0
6068
6068
  };
6069
6069
  }
6070
- function gr(e) {
6071
- return `${br(e.uncompressed)} · brotli ${br(e.brotli)}`;
6072
- }
6073
6070
  function _r(e) {
6071
+ return `${xr(e.uncompressed)} · brotli ${xr(e.brotli)}`;
6072
+ }
6073
+ function vr(e) {
6074
6074
  let t = Math.round(e / 100 * rr);
6075
6075
  return `\`${"█".repeat(t)}${"░".repeat(rr - t)}\` ${e.toFixed(1)}%`;
6076
6076
  }
6077
- function vr() {
6077
+ function yr() {
6078
6078
  return {
6079
6079
  uncompressed: 0,
6080
6080
  brotli: 0
6081
6081
  };
6082
6082
  }
6083
- function yr(e, t) {
6083
+ function br(e, t) {
6084
6084
  e.uncompressed += t.uncompressed, e.brotli += t.brotli;
6085
6085
  }
6086
- function br(e) {
6086
+ function xr(e) {
6087
6087
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6088
6088
  }
6089
6089
  //#endregion
6090
6090
  //#region src/actions/documentDependencies.ts
6091
- var xr = "<!-- DEPENDENCY_LICENSES_START -->", Sr = "<!-- DEPENDENCY_LICENSES_END -->", Cr = "<!-- DEPENDENCY_TREE_START -->", wr = "<!-- DEPENDENCY_TREE_END -->";
6092
- async function Tr(e = "MIT") {
6091
+ var Sr = "<!-- DEPENDENCY_LICENSES_START -->", Cr = "<!-- DEPENDENCY_LICENSES_END -->", wr = "<!-- DEPENDENCY_TREE_START -->", Tr = "<!-- DEPENDENCY_TREE_END -->", Er = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are simply mature and stable, requiring no active development.";
6092
+ async function Dr(e = "MIT") {
6093
6093
  try {
6094
6094
  G("Document Dependencies");
6095
6095
  let t = await W("package.json");
6096
6096
  if (t.name === "@dpuse/dpuse-development") {
6097
- await Er(), K("Dependencies documented");
6097
+ await Or(), K("Dependencies documented");
6098
6098
  return;
6099
6099
  }
6100
6100
  await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
@@ -6116,30 +6116,38 @@ async function Tr(e = "MIT") {
6116
6116
  "--all",
6117
6117
  "--json",
6118
6118
  "--omit=dev"
6119
- ], "licenses/licenseTree.json"), await Dr("4️⃣ "), K("Dependencies documented");
6119
+ ], "licenses/licenseTree.json"), await kr("4️⃣ ", e), K("Dependencies documented");
6120
6120
  } catch (e) {
6121
6121
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6122
6122
  }
6123
6123
  }
6124
- async function Er() {
6124
+ async function Or() {
6125
6125
  q("1️⃣ Skip: @dpuse/dpuse-development is a development-only tool and is never part of a production release");
6126
6126
  let e = "> [!WARNING]\n> Dependency licenses are not documented here: @dpuse/dpuse-development is a development-only tool and is never part of a production release";
6127
- await Bn("README.md", Gn(Gn(await Ln("./README.md"), e, xr, Sr), e, Cr, wr));
6127
+ await Bn("README.md", Gn(Gn(await Ln("./README.md"), e, Sr, Cr), e, wr, Tr));
6128
6128
  }
6129
- async function Dr(e) {
6129
+ async function kr(e, t) {
6130
6130
  q(`${e} Insert licenses into 'README.md'`);
6131
- let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
6132
- for (let [e, n] of Object.entries(t)) r.set(e, Or(e, n));
6133
- await Promise.all(r.values().map(async (e) => {
6134
- let t = await kr(e.name, e.installedVersion);
6131
+ let [n, r] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6132
+ for (let [e, t] of Object.entries(n)) i.set(e, Mr(e, t));
6133
+ await Promise.all(i.values().map(async (e) => {
6134
+ let t = await Nr(e.name, e.installedVersion);
6135
6135
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6136
6136
  }));
6137
- let i = "|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n";
6138
- for (let e of r.values()) i += Ar(e);
6139
- let a = [];
6140
- n.dependencies != null && jr(n.dependencies, r, a, 0), await Bn("README.md", Gn(Gn(await Ln("./README.md"), i, xr, Sr), a.join("\n"), Cr, wr));
6137
+ let a = `${Ar(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6138
+ for (let e of i.values()) a += Pr(e);
6139
+ let o = [];
6140
+ r.dependencies != null && Fr(r.dependencies, i, o, 0);
6141
+ let s = `${Er}\n\n${o.join("\n")}`;
6142
+ await Bn("README.md", Gn(Gn(await Ln("./README.md"), a, Sr, Cr), s, wr, Tr));
6141
6143
  }
6142
- function Or(e, t) {
6144
+ function Ar(e) {
6145
+ return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${jr(e.split(";"))} — all permissive, commercially-friendly licenses. Developers cloning this repository should independently verify development dependencies; users of the uploaded library are covered by these checks.`;
6146
+ }
6147
+ function jr(e) {
6148
+ return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
6149
+ }
6150
+ function Mr(e, t) {
6143
6151
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6144
6152
  return {
6145
6153
  name: r,
@@ -6153,7 +6161,7 @@ function Or(e, t) {
6153
6161
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6154
6162
  };
6155
6163
  }
6156
- async function kr(e, t) {
6164
+ async function Nr(e, t) {
6157
6165
  try {
6158
6166
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6159
6167
  if (n.ok) {
@@ -6171,25 +6179,25 @@ async function kr(e, t) {
6171
6179
  publishedDate: ""
6172
6180
  };
6173
6181
  }
6174
- function Ar(e) {
6182
+ function Pr(e) {
6175
6183
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6176
6184
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6177
6185
  }
6178
- function jr(e, t, n, r) {
6186
+ function Fr(e, t, n, r) {
6179
6187
  let i = " ".repeat(r);
6180
6188
  for (let [a, o] of Object.entries(e)) {
6181
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Mr(s);
6182
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && jr(o.dependencies, t, n, r + 1);
6189
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Ir(s);
6190
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Fr(o.dependencies, t, n, r + 1);
6183
6191
  }
6184
6192
  }
6185
- function Mr(e) {
6193
+ function Ir(e) {
6186
6194
  if (e == null) return "";
6187
- let t = e.publishedDate ? Nr(e.publishedDate.split("T", 1)[0]) : "";
6195
+ let t = e.publishedDate ? Lr(e.publishedDate.split("T", 1)[0]) : "";
6188
6196
  if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
6189
- let n = e.latestPublishedDate ? Nr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6197
+ let n = e.latestPublishedDate ? Lr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6190
6198
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6191
6199
  }
6192
- function Nr(e) {
6200
+ function Lr(e) {
6193
6201
  if (e == null || e === "") return "n/a";
6194
6202
  let t = e.split("T", 1)[0];
6195
6203
  if (t == null || t === "") return "n/a";
@@ -6198,43 +6206,43 @@ function Nr(e) {
6198
6206
  }
6199
6207
  //#endregion
6200
6208
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
6201
- var Pr, Fr = {
6209
+ var Rr, zr = {
6202
6210
  lang: void 0,
6203
6211
  message: void 0,
6204
6212
  abortEarly: void 0,
6205
6213
  abortPipeEarly: void 0
6206
6214
  };
6207
6215
  /* @__NO_SIDE_EFFECTS__ */
6208
- function Ir(e) {
6209
- return !e && !Pr ? Fr : {
6210
- lang: e?.lang ?? Pr?.lang,
6216
+ function Br(e) {
6217
+ return !e && !Rr ? zr : {
6218
+ lang: e?.lang ?? Rr?.lang,
6211
6219
  message: e?.message,
6212
- abortEarly: e?.abortEarly ?? Pr?.abortEarly,
6213
- abortPipeEarly: e?.abortPipeEarly ?? Pr?.abortPipeEarly
6220
+ abortEarly: e?.abortEarly ?? Rr?.abortEarly,
6221
+ abortPipeEarly: e?.abortPipeEarly ?? Rr?.abortPipeEarly
6214
6222
  };
6215
6223
  }
6216
- var Lr;
6224
+ var Vr;
6217
6225
  /* @__NO_SIDE_EFFECTS__ */
6218
- function Rr(e) {
6219
- return Lr?.get(e);
6226
+ function Hr(e) {
6227
+ return Vr?.get(e);
6220
6228
  }
6221
- var zr;
6229
+ var Ur;
6222
6230
  /* @__NO_SIDE_EFFECTS__ */
6223
- function Br(e) {
6224
- return zr?.get(e);
6231
+ function Wr(e) {
6232
+ return Ur?.get(e);
6225
6233
  }
6226
- var Vr;
6234
+ var Gr;
6227
6235
  /* @__NO_SIDE_EFFECTS__ */
6228
- function Hr(e, t) {
6229
- return Vr?.get(e)?.get(t);
6236
+ function Kr(e, t) {
6237
+ return Gr?.get(e)?.get(t);
6230
6238
  }
6231
6239
  /* @__NO_SIDE_EFFECTS__ */
6232
- function Ur(e) {
6240
+ function qr(e) {
6233
6241
  let t = typeof e;
6234
6242
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6235
6243
  }
6236
6244
  function Y(e, t, n, r, i) {
6237
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Ur(a), c = {
6245
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ qr(a), c = {
6238
6246
  kind: e.kind,
6239
6247
  type: e.type,
6240
6248
  input: a,
@@ -6247,44 +6255,44 @@ function Y(e, t, n, r, i) {
6247
6255
  lang: r.lang,
6248
6256
  abortEarly: r.abortEarly,
6249
6257
  abortPipeEarly: r.abortPipeEarly
6250
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Hr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Br(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Rr(c.lang);
6258
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Kr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Wr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Hr(c.lang);
6251
6259
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6252
6260
  }
6253
- var Wr = /* @__PURE__ */ new WeakMap();
6261
+ var Jr = /* @__PURE__ */ new WeakMap();
6254
6262
  /* @__NO_SIDE_EFFECTS__ */
6255
6263
  function X(e) {
6256
- let t = Wr.get(e);
6264
+ let t = Jr.get(e);
6257
6265
  return t || (t = {
6258
6266
  version: 1,
6259
6267
  vendor: "valibot",
6260
6268
  validate(t) {
6261
- return e["~run"]({ value: t }, /* @__PURE__ */ Ir());
6269
+ return e["~run"]({ value: t }, /* @__PURE__ */ Br());
6262
6270
  }
6263
- }, Wr.set(e, t)), t;
6271
+ }, Jr.set(e, t)), t;
6264
6272
  }
6265
6273
  /* @__NO_SIDE_EFFECTS__ */
6266
- function Gr(e, t) {
6274
+ function Yr(e, t) {
6267
6275
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6268
6276
  }
6269
6277
  /* @__NO_SIDE_EFFECTS__ */
6270
- function Kr(e, t) {
6278
+ function Xr(e, t) {
6271
6279
  let n = [...new Set(e)];
6272
6280
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6273
6281
  }
6274
6282
  /* @__NO_SIDE_EFFECTS__ */
6275
- function qr(e, t, n) {
6283
+ function Zr(e, t, n) {
6276
6284
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6277
6285
  }
6278
6286
  /* @__NO_SIDE_EFFECTS__ */
6279
- function Jr(e, t, n) {
6287
+ function Qr(e, t, n) {
6280
6288
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6281
6289
  }
6282
6290
  /* @__NO_SIDE_EFFECTS__ */
6283
- function Yr(e, t) {
6291
+ function $r(e, t) {
6284
6292
  return {
6285
6293
  kind: "schema",
6286
6294
  type: "array",
6287
- reference: Yr,
6295
+ reference: $r,
6288
6296
  expects: "Array",
6289
6297
  async: !1,
6290
6298
  item: e,
@@ -6320,11 +6328,11 @@ function Yr(e, t) {
6320
6328
  };
6321
6329
  }
6322
6330
  /* @__NO_SIDE_EFFECTS__ */
6323
- function Xr(e) {
6331
+ function ei(e) {
6324
6332
  return {
6325
6333
  kind: "schema",
6326
6334
  type: "boolean",
6327
- reference: Xr,
6335
+ reference: ei,
6328
6336
  expects: "boolean",
6329
6337
  async: !1,
6330
6338
  message: e,
@@ -6337,12 +6345,12 @@ function Xr(e) {
6337
6345
  };
6338
6346
  }
6339
6347
  /* @__NO_SIDE_EFFECTS__ */
6340
- function Zr(e, t) {
6348
+ function ti(e, t) {
6341
6349
  return {
6342
6350
  kind: "schema",
6343
6351
  type: "literal",
6344
- reference: Zr,
6345
- expects: /* @__PURE__ */ Ur(e),
6352
+ reference: ti,
6353
+ expects: /* @__PURE__ */ qr(e),
6346
6354
  async: !1,
6347
6355
  literal: e,
6348
6356
  message: t,
@@ -6368,16 +6376,16 @@ function Z(e, t) {
6368
6376
  return /* @__PURE__ */ X(this);
6369
6377
  },
6370
6378
  "~run"(e, t) {
6371
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Jr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6379
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Qr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6372
6380
  }
6373
6381
  };
6374
6382
  }
6375
6383
  /* @__NO_SIDE_EFFECTS__ */
6376
- function Qr(e) {
6384
+ function ni(e) {
6377
6385
  return {
6378
6386
  kind: "schema",
6379
6387
  type: "number",
6380
- reference: Qr,
6388
+ reference: ni,
6381
6389
  expects: "number",
6382
6390
  async: !1,
6383
6391
  message: e,
@@ -6409,7 +6417,7 @@ function Q(e, t) {
6409
6417
  for (let r in this.entries) {
6410
6418
  let i = this.entries[r];
6411
6419
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6412
- let a = r in n ? n[r] : /* @__PURE__ */ Jr(i), o = i["~run"]({ value: a }, t);
6420
+ let a = r in n ? n[r] : /* @__PURE__ */ Qr(i), o = i["~run"]({ value: a }, t);
6413
6421
  if (o.issues) {
6414
6422
  let i = {
6415
6423
  type: "object",
@@ -6425,7 +6433,7 @@ function Q(e, t) {
6425
6433
  }
6426
6434
  }
6427
6435
  o.typed || (e.typed = !1), e.value[r] = o.value;
6428
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ qr(i);
6436
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Zr(i);
6429
6437
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (Y(this, "key", e, t, {
6430
6438
  input: void 0,
6431
6439
  expected: `"${r}"`,
@@ -6444,11 +6452,11 @@ function Q(e, t) {
6444
6452
  };
6445
6453
  }
6446
6454
  /* @__NO_SIDE_EFFECTS__ */
6447
- function $r(e, t) {
6455
+ function ri(e, t) {
6448
6456
  return {
6449
6457
  kind: "schema",
6450
6458
  type: "optional",
6451
- reference: $r,
6459
+ reference: ri,
6452
6460
  expects: `(${e.expects} | undefined)`,
6453
6461
  async: !1,
6454
6462
  wrapped: e,
@@ -6457,16 +6465,16 @@ function $r(e, t) {
6457
6465
  return /* @__PURE__ */ X(this);
6458
6466
  },
6459
6467
  "~run"(e, t) {
6460
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Jr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6468
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Qr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6461
6469
  }
6462
6470
  };
6463
6471
  }
6464
6472
  /* @__NO_SIDE_EFFECTS__ */
6465
- function ei(e, t, n) {
6473
+ function ii(e, t, n) {
6466
6474
  return {
6467
6475
  kind: "schema",
6468
6476
  type: "record",
6469
- reference: ei,
6477
+ reference: ii,
6470
6478
  expects: "Object",
6471
6479
  async: !1,
6472
6480
  key: e,
@@ -6479,7 +6487,7 @@ function ei(e, t, n) {
6479
6487
  let n = e.value;
6480
6488
  if (n && typeof n == "object") {
6481
6489
  e.typed = !0, e.value = {};
6482
- for (let r in n) if (/* @__PURE__ */ Gr(n, r)) {
6490
+ for (let r in n) if (/* @__PURE__ */ Yr(n, r)) {
6483
6491
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6484
6492
  if (a.issues) {
6485
6493
  let o = {
@@ -6535,19 +6543,19 @@ function $(e) {
6535
6543
  };
6536
6544
  }
6537
6545
  /* @__NO_SIDE_EFFECTS__ */
6538
- function ti(e) {
6546
+ function ai(e) {
6539
6547
  let t;
6540
6548
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6541
6549
  else t = n.issues;
6542
6550
  return t;
6543
6551
  }
6544
6552
  /* @__NO_SIDE_EFFECTS__ */
6545
- function ni(e, t) {
6553
+ function oi(e, t) {
6546
6554
  return {
6547
6555
  kind: "schema",
6548
6556
  type: "union",
6549
- reference: ni,
6550
- expects: /* @__PURE__ */ Kr(e.map((e) => e.expects), "|"),
6557
+ reference: oi,
6558
+ expects: /* @__PURE__ */ Xr(e.map((e) => e.expects), "|"),
6551
6559
  async: !1,
6552
6560
  options: e,
6553
6561
  message: t,
@@ -6568,24 +6576,24 @@ function ni(e, t) {
6568
6576
  if (n) return n;
6569
6577
  if (r) {
6570
6578
  if (r.length === 1) return r[0];
6571
- Y(this, "type", e, t, { issues: /* @__PURE__ */ ti(r) }), e.typed = !0;
6579
+ Y(this, "type", e, t, { issues: /* @__PURE__ */ ai(r) }), e.typed = !0;
6572
6580
  } else if (i?.length === 1) return i[0];
6573
- else Y(this, "type", e, t, { issues: /* @__PURE__ */ ti(i) });
6581
+ else Y(this, "type", e, t, { issues: /* @__PURE__ */ ai(i) });
6574
6582
  return e;
6575
6583
  }
6576
6584
  };
6577
6585
  }
6578
- var ri = (e) => /* @__PURE__ */ ni(e.map((e) => /* @__PURE__ */ Zr(e))), ii = /* @__PURE__ */ Q({
6586
+ var si = (e) => /* @__PURE__ */ oi(e.map((e) => /* @__PURE__ */ ti(e))), ci = /* @__PURE__ */ Q({
6579
6587
  en: /* @__PURE__ */ $(),
6580
6588
  es: /* @__PURE__ */ $()
6581
- }), ai = /* @__PURE__ */ Q({
6582
- en: /* @__PURE__ */ $r(/* @__PURE__ */ Yr(/* @__PURE__ */ $())),
6583
- es: /* @__PURE__ */ $r(/* @__PURE__ */ Yr(/* @__PURE__ */ $()))
6584
- }), oi = /* @__PURE__ */ Q({
6585
- en: /* @__PURE__ */ $r(/* @__PURE__ */ $()),
6586
- es: /* @__PURE__ */ $r(/* @__PURE__ */ $())
6589
+ }), li = /* @__PURE__ */ Q({
6590
+ en: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ $())),
6591
+ es: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ $()))
6592
+ }), ui = /* @__PURE__ */ Q({
6593
+ en: /* @__PURE__ */ ri(/* @__PURE__ */ $()),
6594
+ es: /* @__PURE__ */ ri(/* @__PURE__ */ $())
6587
6595
  });
6588
- ri([
6596
+ si([
6589
6597
  "app",
6590
6598
  "connection",
6591
6599
  "connector",
@@ -6610,12 +6618,12 @@ ri([
6610
6618
  "presenterPresentation",
6611
6619
  "tool"
6612
6620
  ]);
6613
- var si = ri([
6621
+ var di = si([
6614
6622
  "amber",
6615
6623
  "green",
6616
6624
  "red",
6617
6625
  "other"
6618
- ]), ci = ri([
6626
+ ]), fi = si([
6619
6627
  "alpha",
6620
6628
  "beta",
6621
6629
  "generalAvailability",
@@ -6625,31 +6633,31 @@ var si = ri([
6625
6633
  "releaseCandidate",
6626
6634
  "unavailable",
6627
6635
  "underReview"
6628
- ]), li = /* @__PURE__ */ Q({
6629
- color: si,
6636
+ ]), pi = /* @__PURE__ */ Q({
6637
+ color: di,
6630
6638
  label: /* @__PURE__ */ $()
6631
- }), ui = /* @__PURE__ */ Q({
6639
+ }), mi = /* @__PURE__ */ Q({
6632
6640
  id: /* @__PURE__ */ $(),
6633
- label: oi,
6634
- description: ai,
6641
+ label: ui,
6642
+ description: li,
6635
6643
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6636
6644
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6637
6645
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6638
- order: /* @__PURE__ */ Qr(),
6646
+ order: /* @__PURE__ */ ni(),
6639
6647
  path: /* @__PURE__ */ $()
6640
- }), di = {
6648
+ }), hi = {
6641
6649
  id: /* @__PURE__ */ $(),
6642
- label: oi,
6643
- description: ai,
6644
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6650
+ label: ui,
6651
+ description: li,
6652
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
6645
6653
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6646
6654
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6647
6655
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6648
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6649
- status: /* @__PURE__ */ Z(li),
6650
- statusId: /* @__PURE__ */ Z(ci)
6656
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
6657
+ status: /* @__PURE__ */ Z(pi),
6658
+ statusId: /* @__PURE__ */ Z(fi)
6651
6659
  };
6652
- ({ ...di }), ri([
6660
+ ({ ...hi }), si([
6653
6661
  "app",
6654
6662
  "engine",
6655
6663
  "connector",
@@ -6660,14 +6668,14 @@ var si = ri([
6660
6668
  ]);
6661
6669
  //#endregion
6662
6670
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
6663
- var fi = {
6664
- ...di,
6671
+ var gi = {
6672
+ ...hi,
6665
6673
  version: /* @__PURE__ */ $()
6666
6674
  };
6667
- ({ ...fi });
6675
+ ({ ...gi });
6668
6676
  //#endregion
6669
6677
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6670
- var pi = ri([
6678
+ var _i = si([
6671
6679
  "abortOperation",
6672
6680
  "auditObjectContent",
6673
6681
  "createObject",
@@ -6682,35 +6690,35 @@ var pi = ri([
6682
6690
  "retrieveChunks",
6683
6691
  "retrieveRecords",
6684
6692
  "upsertRecords"
6685
- ]), mi = ri([
6693
+ ]), vi = si([
6686
6694
  "application",
6687
6695
  "curatedDataset",
6688
6696
  "database",
6689
6697
  "fileStore"
6690
- ]), hi = /* @__PURE__ */ Q({ label: ii }), gi = /* @__PURE__ */ Q({
6691
- authMethodId: ri([
6698
+ ]), yi = /* @__PURE__ */ Q({ label: ci }), bi = /* @__PURE__ */ Q({
6699
+ authMethodId: si([
6692
6700
  "apiKey",
6693
6701
  "disabled",
6694
6702
  "oAuth2",
6695
6703
  "none"
6696
6704
  ]),
6697
- activeConnectionCount: /* @__PURE__ */ $r(/* @__PURE__ */ Qr()),
6698
- canDescribe: /* @__PURE__ */ $r(/* @__PURE__ */ Xr()),
6699
- id: /* @__PURE__ */ $r(/* @__PURE__ */ $()),
6700
- label: /* @__PURE__ */ $r(ii),
6701
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6702
- params: /* @__PURE__ */ $r(/* @__PURE__ */ Yr(/* @__PURE__ */ ei(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6703
- }), _i = /* @__PURE__ */ Q({
6704
- typeId: /* @__PURE__ */ Zr("connector"),
6705
- ...fi,
6706
- actionNames: /* @__PURE__ */ Yr(pi),
6707
- category: /* @__PURE__ */ Z(hi),
6708
- categoryId: mi,
6709
- implementations: /* @__PURE__ */ ei(/* @__PURE__ */ $(), gi),
6705
+ activeConnectionCount: /* @__PURE__ */ ri(/* @__PURE__ */ ni()),
6706
+ canDescribe: /* @__PURE__ */ ri(/* @__PURE__ */ ei()),
6707
+ id: /* @__PURE__ */ ri(/* @__PURE__ */ $()),
6708
+ label: /* @__PURE__ */ ri(ci),
6709
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
6710
+ params: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ ii(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6711
+ }), xi = /* @__PURE__ */ Q({
6712
+ typeId: /* @__PURE__ */ ti("connector"),
6713
+ ...gi,
6714
+ actionNames: /* @__PURE__ */ $r(_i),
6715
+ category: /* @__PURE__ */ Z(yi),
6716
+ categoryId: vi,
6717
+ implementations: /* @__PURE__ */ ii(/* @__PURE__ */ $(), bi),
6710
6718
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6711
6719
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6712
6720
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6713
- }), vi = {
6721
+ }), Si = {
6714
6722
  abortOperation: "Abort Operation",
6715
6723
  auditObjectContent: "Audit Object Content",
6716
6724
  createObject: "Create Object",
@@ -6725,12 +6733,12 @@ var pi = ri([
6725
6733
  retrieveChunks: "Retrieve Chunks",
6726
6734
  retrieveRecords: "Retrieve Records",
6727
6735
  upsertRecords: "Upsert Records"
6728
- }, yi = /* @__PURE__ */ new Set([
6736
+ }, Ci = /* @__PURE__ */ new Set([
6729
6737
  "createObject",
6730
6738
  "dropObject",
6731
6739
  "removeRecords",
6732
6740
  "upsertRecords"
6733
- ]), bi = /* @__PURE__ */ new Set([
6741
+ ]), wi = /* @__PURE__ */ new Set([
6734
6742
  "auditObjectContent",
6735
6743
  "findObject",
6736
6744
  "getReadableStream",
@@ -6740,37 +6748,37 @@ var pi = ri([
6740
6748
  "retrieveChunks",
6741
6749
  "retrieveRecords"
6742
6750
  ]);
6743
- function xi(e) {
6751
+ function Ti(e) {
6744
6752
  let t = !1, n = !1;
6745
- for (let r of e) bi.has(r) && (t = !0), yi.has(r) && (n = !0);
6753
+ for (let r of e) wi.has(r) && (t = !0), Ci.has(r) && (n = !0);
6746
6754
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6747
6755
  }
6748
- function Si(e) {
6756
+ function Ei(e) {
6749
6757
  let t = new Set(e), n = "|Action|Supported|\n";
6750
6758
  n += "|:----|:-------:|\n";
6751
- for (let e of Object.keys(vi)) n += `| ${vi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6759
+ for (let e of Object.keys(Si)) n += `| ${Si[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6752
6760
  return n;
6753
6761
  }
6754
6762
  //#endregion
6755
6763
  //#region src/actions/documentActions.ts
6756
- var Ci = "<!-- CONNECTOR_ACTIONS_START -->", wi = "<!-- CONNECTOR_ACTIONS_END -->", Ti = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Ei = {
6764
+ var Di = "<!-- CONNECTOR_ACTIONS_START -->", Oi = "<!-- CONNECTOR_ACTIONS_END -->", ki = "Connectors conform to a unified interface contract by implementing a specific subset of standard actions. These standardised actions allow the DPUse application to interact with any underlying data source in the same way, enabling Connectors to be built independently and loaded dynamically at runtime.", Ai = {
6757
6765
  source: "This connector is a Source connector that supports only read actions. Connectors can also function as a Destination (write-only) or Bidirectional (read/write), depending on the actions they support.",
6758
6766
  destination: "This connector is a Destination connector that supports only write actions. Connectors can also function as a Source (read-only) or Bidirectional (read/write), depending on the actions they support.",
6759
6767
  bidirectional: "This connector is a Bidirectional connector that supports both read and write actions. Connectors can also function as a Source (read-only) or Destination (write-only), depending on the actions they support.",
6760
6768
  unknown: "This connector does not yet implement any read or write actions, so its type cannot be determined. Connectors function as a Source (read-only), a Destination (write-only), or Bidirectional (read/write), depending on the actions they support."
6761
- }, Di = "The table below lists all connector actions and highlights those supported by this connector.";
6762
- async function Oi() {
6769
+ }, ji = "The table below lists all connector actions and highlights those supported by this connector.";
6770
+ async function Mi() {
6763
6771
  try {
6764
6772
  G("Document Actions"), q("1️⃣ Insert actions description and table into 'README.md'");
6765
- let e = (await W("config.json")).actionNames ?? [], t = xi(e), n = Si(e), r = `${Ti}\n\n${Ei[t]} ${Di}\n\n${n}`;
6766
- await Bn("README.md", Gn(await Ln("./README.md"), r, Ci, wi)), K("Actions documented");
6773
+ let e = (await W("config.json")).actionNames ?? [], t = Ti(e), n = Ei(e), r = `${ki}\n\n${Ai[t]} ${ji}\n\n${n}`;
6774
+ await Bn("README.md", Gn(await Ln("./README.md"), r, Di, Oi)), K("Actions documented");
6767
6775
  } catch (e) {
6768
6776
  console.error("❌ Error documenting actions", e), process.exit(1);
6769
6777
  }
6770
6778
  }
6771
6779
  //#endregion
6772
6780
  //#region src/actions/formatCode.ts
6773
- async function ki() {
6781
+ async function Ni() {
6774
6782
  try {
6775
6783
  G("Format Code"), await Fn("1️⃣ Format", "prettier", [
6776
6784
  "--write",
@@ -6785,7 +6793,7 @@ async function ki() {
6785
6793
  }
6786
6794
  //#endregion
6787
6795
  //#region src/actions/lintCode.ts
6788
- async function Ai() {
6796
+ async function Pi() {
6789
6797
  try {
6790
6798
  G("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), K("Code linted");
6791
6799
  } catch (e) {
@@ -6794,7 +6802,7 @@ async function Ai() {
6794
6802
  }
6795
6803
  //#endregion
6796
6804
  //#region src/utilities/cloudflare.ts
6797
- async function ji() {
6805
+ async function Fi() {
6798
6806
  let e = await W("config.json"), t = {
6799
6807
  body: JSON.stringify(e),
6800
6808
  headers: { "Content-Type": "application/json" },
@@ -6802,7 +6810,7 @@ async function ji() {
6802
6810
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6803
6811
  if (!n.ok) throw Error(await n.text());
6804
6812
  }
6805
- async function Mi(e, t) {
6813
+ async function Ii(e, t) {
6806
6814
  async function n(e, t, r) {
6807
6815
  for (let i of r) {
6808
6816
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6820,7 +6828,7 @@ async function Mi(e, t) {
6820
6828
  let r = await Nn(`${e}/${t}/`);
6821
6829
  await n(`${e}/${t}`, t, r);
6822
6830
  }
6823
- async function Ni(e) {
6831
+ async function Li(e) {
6824
6832
  let t = e.id, n = {
6825
6833
  body: JSON.stringify(e),
6826
6834
  headers: { "Content-Type": "application/json" },
@@ -6828,7 +6836,7 @@ async function Ni(e) {
6828
6836
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6829
6837
  if (!r.ok) throw Error(await r.text());
6830
6838
  }
6831
- async function Pi(e, t) {
6839
+ async function Ri(e, t) {
6832
6840
  let n = `v${e.version ?? "unknown"}`;
6833
6841
  async function r(e, r = "") {
6834
6842
  let i = await Nn(e, { withFileTypes: !0 });
@@ -6852,24 +6860,24 @@ async function Pi(e, t) {
6852
6860
  }
6853
6861
  //#endregion
6854
6862
  //#region node_modules/valibot/dist/index.mjs
6855
- var Fi, Ii = {
6863
+ var zi, Bi = {
6856
6864
  lang: void 0,
6857
6865
  message: void 0,
6858
6866
  abortEarly: void 0,
6859
6867
  abortPipeEarly: void 0
6860
6868
  };
6861
6869
  /* @__NO_SIDE_EFFECTS__ */
6862
- function Li(e) {
6863
- return !e && !Fi ? Ii : {
6864
- lang: e?.lang ?? Fi?.lang,
6870
+ function Vi(e) {
6871
+ return !e && !zi ? Bi : {
6872
+ lang: e?.lang ?? zi?.lang,
6865
6873
  message: e?.message,
6866
- abortEarly: e?.abortEarly ?? Fi?.abortEarly,
6867
- abortPipeEarly: e?.abortPipeEarly ?? Fi?.abortPipeEarly
6874
+ abortEarly: e?.abortEarly ?? zi?.abortEarly,
6875
+ abortPipeEarly: e?.abortPipeEarly ?? zi?.abortPipeEarly
6868
6876
  };
6869
6877
  }
6870
6878
  /* @__NO_SIDE_EFFECTS__ */
6871
- function Ri(e, t, n) {
6872
- let r = e["~run"]({ value: t }, /* @__PURE__ */ Li(n));
6879
+ function Hi(e, t, n) {
6880
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ Vi(n));
6873
6881
  return {
6874
6882
  typed: r.typed,
6875
6883
  success: !r.issues,
@@ -6879,69 +6887,69 @@ function Ri(e, t, n) {
6879
6887
  }
6880
6888
  //#endregion
6881
6889
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
6882
- var zi = /* @__PURE__ */ Q({
6883
- typeId: /* @__PURE__ */ Zr("contextArea"),
6884
- ...di,
6885
- modelRefs: /* @__PURE__ */ Yr(ui),
6886
- order: /* @__PURE__ */ Qr()
6887
- }), Bi = ri(["listContextFocuses"]), Vi = /* @__PURE__ */ Q({
6888
- typeId: /* @__PURE__ */ Zr("context"),
6889
- ...fi,
6890
- actionNames: /* @__PURE__ */ Yr(Bi),
6891
- models: /* @__PURE__ */ Yr(zi)
6892
- }), Hi = ri([
6890
+ var Ui = /* @__PURE__ */ Q({
6891
+ typeId: /* @__PURE__ */ ti("contextArea"),
6892
+ ...hi,
6893
+ modelRefs: /* @__PURE__ */ $r(mi),
6894
+ order: /* @__PURE__ */ ni()
6895
+ }), Wi = si(["listContextFocuses"]), Gi = /* @__PURE__ */ Q({
6896
+ typeId: /* @__PURE__ */ ti("context"),
6897
+ ...gi,
6898
+ actionNames: /* @__PURE__ */ $r(Wi),
6899
+ models: /* @__PURE__ */ $r(Ui)
6900
+ }), Ki = si([
6893
6901
  "list",
6894
6902
  "render",
6895
6903
  "setColorMode"
6896
- ]), Ui = /* @__PURE__ */ Q({
6897
- typeId: /* @__PURE__ */ Zr("presenter"),
6898
- ...fi,
6899
- actionNames: /* @__PURE__ */ Yr(Hi),
6900
- presentations: /* @__PURE__ */ Yr(ui)
6904
+ ]), qi = /* @__PURE__ */ Q({
6905
+ typeId: /* @__PURE__ */ ti("presenter"),
6906
+ ...gi,
6907
+ actionNames: /* @__PURE__ */ $r(Ki),
6908
+ presentations: /* @__PURE__ */ $r(mi)
6901
6909
  });
6902
6910
  //#endregion
6903
6911
  //#region src/actions/manageProject.ts
6904
- async function Wi() {
6912
+ async function Ji() {
6905
6913
  try {
6906
6914
  G("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
6907
6915
  } catch (e) {
6908
6916
  console.error("❌ Error building project", e), process.exit(1);
6909
6917
  }
6910
6918
  }
6911
- async function Gi() {
6919
+ async function Yi() {
6912
6920
  try {
6913
6921
  G("Publish Project");
6914
6922
  let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
6915
- if (n.typeId === "app") q("1️⃣ Register module"), await ji();
6916
- else if (n.typeId === "engine") q("1️⃣ Register module"), await Pi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Ni(t);
6923
+ if (n.typeId === "app") q("1️⃣ Register module"), await Fi();
6924
+ else if (n.typeId === "engine") q("1️⃣ Register module"), await Ri(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Li(t);
6917
6925
  else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
6918
6926
  else {
6919
6927
  q("1️⃣ Register module");
6920
6928
  let r = t.id.split("-").slice(2).join("-");
6921
- await Pi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Ni(t);
6929
+ await Ri(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Li(t);
6922
6930
  }
6923
6931
  K(`Project version '${e.version ?? "unknown"}' published.`);
6924
6932
  } catch (e) {
6925
6933
  console.error("❌ Error publishing project", e), process.exit(1);
6926
6934
  }
6927
6935
  }
6928
- async function Ki() {
6936
+ async function Xi() {
6929
6937
  try {
6930
6938
  G("Release Project");
6931
6939
  let e = await W("package.json"), t = await W("config.json");
6932
- await ea("1️⃣ ", e);
6940
+ await ia("1️⃣ ", e);
6933
6941
  let n = Vn(t.id);
6934
6942
  switch (n.typeId) {
6935
6943
  case "connector":
6936
- t = await Ji("2️⃣ ", e);
6944
+ t = await Qi("2️⃣ ", e);
6937
6945
  break;
6938
6946
  case "context":
6939
- t = await Yi("2️⃣ ", e);
6947
+ t = await $i("2️⃣ ", e);
6940
6948
  break;
6941
6949
  case "presenter":
6942
- t = await Xi("2️⃣ ", e);
6950
+ t = await ea("2️⃣ ", e);
6943
6951
  break;
6944
- default: t = await qi("2️⃣ ", e);
6952
+ default: t = await Zi("2️⃣ ", e);
6945
6953
  }
6946
6954
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
6947
6955
  "commit",
@@ -6951,13 +6959,13 @@ async function Ki() {
6951
6959
  "push",
6952
6960
  "origin",
6953
6961
  "main:main"
6954
- ]), n.typeId === "app") q("7️⃣ Register module"), await ji();
6955
- else if (n.typeId === "engine") q("7️⃣ Register module"), await Pi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Ni(t);
6962
+ ]), n.typeId === "app") q("7️⃣ Register module"), await Fi();
6963
+ else if (n.typeId === "engine") q("7️⃣ Register module"), await Ri(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Li(t);
6956
6964
  else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
6957
6965
  else {
6958
6966
  q("7️⃣ Register module");
6959
6967
  let r = t.id.split("-").slice(2).join("-");
6960
- await Pi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Ni(t);
6968
+ await Ri(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Li(t);
6961
6969
  }
6962
6970
  if (n.publishedTo === "npm") {
6963
6971
  let e = ".npmrc";
@@ -6976,48 +6984,48 @@ async function Ki() {
6976
6984
  console.error("❌ Error releasing project", e), process.exit(1);
6977
6985
  }
6978
6986
  }
6979
- async function qi(e, t) {
6987
+ async function Zi(e, t) {
6980
6988
  q(`${e} Build project configuration`);
6981
6989
  let n = await W("config.json");
6982
6990
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await zn("config.json", n), n;
6983
6991
  }
6984
- async function Ji(e, t) {
6992
+ async function Qi(e, t) {
6985
6993
  q(`${e} Build connector project configuration`);
6986
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ri(_i, n);
6994
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Hi(xi, n);
6987
6995
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6988
6996
  let a = Un(r);
6989
- return await Zi(t, n, a, xi(a));
6997
+ return await ta(t, n, a, Ti(a));
6990
6998
  }
6991
- async function Yi(e, t) {
6999
+ async function $i(e, t) {
6992
7000
  q(`${e} Build context project configuration`);
6993
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ri(Vi, n);
7001
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Hi(Gi, n);
6994
7002
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6995
- return await Zi(t, n, Un(r));
7003
+ return await ta(t, n, Un(r));
6996
7004
  }
6997
- async function Xi(e, t) {
7005
+ async function ea(e, t) {
6998
7006
  q(`${e} Build presenter project configuration`);
6999
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Ri(Ui, n);
7007
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Hi(qi, n);
7000
7008
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7001
- return await Zi(t, n, Un(r));
7009
+ return await ta(t, n, Un(r));
7002
7010
  }
7003
- async function Zi(e, t, n, r) {
7011
+ async function ta(e, t, n, r) {
7004
7012
  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") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, await zn("config.json", t), t;
7005
7013
  }
7006
- async function Qi() {
7014
+ async function na() {
7007
7015
  try {
7008
7016
  G("Synchronise Project with GitHub");
7009
7017
  let e = await W("package.json"), t = await W("config.json");
7010
- switch (await ea("1️⃣ ", e), Vn(t.id).typeId) {
7018
+ switch (await ia("1️⃣ ", e), Vn(t.id).typeId) {
7011
7019
  case "connector":
7012
- await Ji("2️⃣ ", e);
7020
+ await Qi("2️⃣ ", e);
7013
7021
  break;
7014
7022
  case "context":
7015
- await Yi("2️⃣ ", e);
7023
+ await $i("2️⃣ ", e);
7016
7024
  break;
7017
7025
  case "presenter":
7018
- await Xi("2️⃣ ", e);
7026
+ await ea("2️⃣ ", e);
7019
7027
  break;
7020
- default: await qi("2️⃣ ", e);
7028
+ default: await Zi("2️⃣ ", e);
7021
7029
  }
7022
7030
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7023
7031
  "commit",
@@ -7032,14 +7040,14 @@ async function Qi() {
7032
7040
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7033
7041
  }
7034
7042
  }
7035
- function $i() {
7043
+ function ra() {
7036
7044
  try {
7037
7045
  G("Test Project"), console.error("\n❌ No tests implemented.\n");
7038
7046
  } catch (e) {
7039
7047
  console.error("❌ Error testing project", e), process.exit(1);
7040
7048
  }
7041
7049
  }
7042
- async function ea(e, t, n = "./") {
7050
+ async function ia(e, t, n = "./") {
7043
7051
  if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7044
7052
  else {
7045
7053
  let e = t.version, n = t.version.split(".");
@@ -7048,6 +7056,6 @@ async function ea(e, t, n = "./") {
7048
7056
  await zn(`${n}package.json`, t);
7049
7057
  }
7050
7058
  //#endregion
7051
- export { Kn as auditDependencies, Wi as buildProject, qn as checkConfigFiles, $n as checkDependencies, Oi as documentActions, ir as documentBundleSizes, Tr as documentDependencies, ki as formatCode, Ai as lintCode, Gi as publishProject, Ki as releaseProject, Qi as syncProjectWithGitHub, $i as testProject, Mi as uploadDirectoryToR2 };
7059
+ export { Kn as auditDependencies, Ji as buildProject, qn as checkConfigFiles, $n as checkDependencies, Mi as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Ni as formatCode, Pi as lintCode, Yi as publishProject, Xi as releaseProject, na as syncProjectWithGitHub, ra as testProject, Ii as uploadDirectoryToR2 };
7052
7060
 
7053
7061
  //# sourceMappingURL=dpuse-development.es.js.map