@dpuse/dpuse-development 0.3.569 → 0.3.570

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