@dpuse/dpuse-development 0.3.660 → 0.3.661

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.
@@ -5878,38 +5878,52 @@ async function qn() {
5878
5878
  try {
5879
5879
  G("Check configuration files"), q("1️⃣ Check individual files");
5880
5880
  let e = Vn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5881
- if (await J(t, ".editorconfig"), await J(t, ".gitattributes"), await J(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_npm_published" : ".gitignore_default"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), [
5882
- "app",
5883
- "api",
5884
- "development",
5885
- "eslint"
5886
- ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await J(t, "eslint.config.js", ["eslint.config.default.js"]), await J(t, "LICENSE"), [
5887
- "connector",
5888
- "engine",
5889
- "shared",
5890
- "tool"
5891
- ].includes(e.typeId) ? await J(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project"), await J(t, "tsconfig.scripts.json"), ["eslint", "kb"].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is NOT required by this project");
5892
- else if ([
5893
- "app",
5894
- "api",
5895
- "development",
5896
- "engine",
5897
- "shared"
5898
- ].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project");
5899
- else {
5900
- let n;
5901
- n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await J(t, "vite.config.ts", n);
5902
- }
5903
- [
5904
- "app",
5905
- "api",
5906
- "eslint",
5907
- "kb"
5908
- ].includes(e.typeId) ? console.info("ℹ️ File 'vitest.config.ts' is NOT required by this project") : await J(t, "vitest.config.ts"), K("Configuration files checked");
5881
+ await J(t, ".editorconfig"), await Jn(e, t), await J(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_npm_published" : ".gitignore_default"]), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), await Yn(e, t), await J(t, "LICENSE"), await Xn(e, t), await J(t, "tsconfig.scripts.json"), await Zn(e, t), await Qn(e, t), K("Configuration files checked");
5909
5882
  } catch (e) {
5910
5883
  console.error("❌ Error checking configuration files", e), process.exit(1);
5911
5884
  }
5912
5885
  }
5886
+ async function Jn(e, t) {
5887
+ ["development"].includes(e.typeId) ? console.info("ℹ️ File '.gitattributes' is UNIQUE to this project") : await J(t, ".gitattributes", ["gitattributes.default"]);
5888
+ }
5889
+ async function Yn(e, t) {
5890
+ [
5891
+ "app",
5892
+ "api",
5893
+ "development",
5894
+ "eslint"
5895
+ ].includes(e.typeId) ? console.info("ℹ️ File 'eslint.config.js' is UNIQUE to this project") : await J(t, "eslint.config.js", ["eslint.config.default.js"]);
5896
+ }
5897
+ async function Xn(e, t) {
5898
+ [
5899
+ "connector",
5900
+ "engine",
5901
+ "shared",
5902
+ "tool"
5903
+ ].includes(e.typeId) ? await J(t, "tsconfig.json", ["tsconfig.default.json"]) : console.info("ℹ️ File 'tsconfig.json' is UNIQUE to this project");
5904
+ }
5905
+ async function Zn(e, t) {
5906
+ if (["eslint", "kb"].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is NOT required by this project");
5907
+ else if ([
5908
+ "app",
5909
+ "api",
5910
+ "development",
5911
+ "engine",
5912
+ "shared"
5913
+ ].includes(e.typeId)) console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project");
5914
+ else {
5915
+ let n;
5916
+ n = e.typeId === "connector" ? ["vite.config.default.ts", "vite.config.wasm.ts"] : e.typeId === "tool" ? ["vite.config.tool.ts"] : ["vite.config.default.ts"], await J(t, "vite.config.ts", n);
5917
+ }
5918
+ }
5919
+ async function Qn(e, t) {
5920
+ [
5921
+ "app",
5922
+ "api",
5923
+ "eslint",
5924
+ "kb"
5925
+ ].includes(e.typeId) ? console.info("ℹ️ File 'vitest.config.ts' is NOT required by this project") : await J(t, "vitest.config.ts");
5926
+ }
5913
5927
  async function J(e, t, r = []) {
5914
5928
  let i = n.resolve(process.cwd(), t), a = r.length > 0 ? r : [t], o;
5915
5929
  try {
@@ -5928,7 +5942,7 @@ async function J(e, t, r = []) {
5928
5942
  }
5929
5943
  //#endregion
5930
5944
  //#region src/actions/checkDependencies.ts
5931
- async function Jn() {
5945
+ async function $n() {
5932
5946
  try {
5933
5947
  G("Check Dependencies"), await Fn("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), q("2️⃣ Check using 'npm-check-updates'");
5934
5948
  let e = {};
@@ -5950,78 +5964,78 @@ async function Jn() {
5950
5964
  }
5951
5965
  //#endregion
5952
5966
  //#region src/actions/documentBundleSizes.ts
5953
- var Yn = "<!-- BUNDLE_START -->", Xn = "<!-- BUNDLE_END -->", Zn = "&nbsp;&nbsp;&nbsp;&nbsp;", Qn = 20;
5954
- async function $n(e) {
5967
+ var er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = "&nbsp;&nbsp;&nbsp;&nbsp;", rr = 20;
5968
+ async function ir(e) {
5955
5969
  try {
5956
5970
  G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
5957
5971
  let t = await W("./bundle-analysis-reports/sonda/index.json");
5958
5972
  q("2️⃣ Insert table into 'README.md'");
5959
- let n = er(t, e?.moduleLevel ?? !1);
5960
- await Bn("README.md", Gn(await Ln("./README.md"), `\n${n}\n`, Yn, Xn)), K("Bundle sizes documented");
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");
5961
5975
  } catch (e) {
5962
5976
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
5963
5977
  }
5964
5978
  }
5965
- function er(e, t) {
5966
- let n = or(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, ur(e)]).toSorted((e, t) => t[1].uncompressed - e[1].uncompressed), a = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
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|", "|:------ |:-----------|"];
5967
5981
  for (let [e, o] of i) {
5968
- let i = [...n.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.uncompressed - e[1].sizes.uncompressed), s = i.length === 1 ? tr(e, o, ir(i), r, t) : nr(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 ? or(e, o, lr(i), r, t) : sr(e, o, i, r, t);
5969
5983
  a.push(...s);
5970
5984
  }
5971
5985
  return a.join("\n");
5972
5986
  }
5973
- function tr(e, t, n, r, i) {
5987
+ function or(e, t, n, r, i) {
5974
5988
  let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.uncompressed / r * 100 : 0;
5975
- if (s.size === 1) return [`| ${e} → ${a} → ${ar(s)} | ${dr(t)} · ${fr(c)} |`];
5976
- let l = [`| ${e} → ${a} | ${dr(t)} · ${fr(c)} |`];
5977
- return i || l.push(...rr(s, Zn, r)), l;
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;
5978
5992
  }
5979
- function nr(e, t, n, r, i) {
5980
- let a = [`| ${e} | ${dr(t)} |`];
5993
+ function sr(e, t, n, r, i) {
5994
+ let a = [`| ${e} | ${gr(t)} |`];
5981
5995
  for (let [e, { sizes: t, files: o }] of n) {
5982
5996
  let n = r > 0 ? t.uncompressed / r * 100 : 0;
5983
5997
  if (o.size === 1) {
5984
- let t = ar(o);
5985
- a.push(`| ${Zn}${e} → ${t} | ${fr(n)} |`);
5998
+ let t = ur(o);
5999
+ a.push(`| ${nr}${e} → ${t} | ${_r(n)} |`);
5986
6000
  continue;
5987
6001
  }
5988
- a.push(`| ${Zn}${e} | ${fr(n)} |`), i || a.push(...rr(o, `${Zn}${Zn}`, r));
6002
+ a.push(`| ${nr}${e} | ${_r(n)} |`), i || a.push(...cr(o, `${nr}${nr}`, r));
5989
6003
  }
5990
6004
  return a;
5991
6005
  }
5992
- function rr(e, t, n) {
5993
- return [...e].toSorted((e, t) => t[1].uncompressed - e[1].uncompressed).map(([e, r]) => `| ${t}${e} | ${fr(n > 0 ? r.uncompressed / n * 100 : 0)} |`);
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)} |`);
5994
6008
  }
5995
- function ir(e) {
6009
+ function lr(e) {
5996
6010
  let [t] = e;
5997
6011
  if (t === void 0) throw Error("Expected exactly one entry");
5998
6012
  return t;
5999
6013
  }
6000
- function ar(e) {
6014
+ function ur(e) {
6001
6015
  let [t] = e.keys();
6002
6016
  if (t === void 0) throw Error("Expected exactly one file");
6003
6017
  return t;
6004
6018
  }
6005
- function or(e) {
6006
- let t = sr(e.dependencies), n = /* @__PURE__ */ new Map();
6019
+ function dr(e) {
6020
+ let t = fr(e.dependencies), n = /* @__PURE__ */ new Map();
6007
6021
  for (let r of e.resources) {
6008
6022
  if (r.kind !== "chunk" || !r.parent) continue;
6009
- let { group: e, file: i } = cr(r.name, t), a = ur(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6023
+ let { group: e, file: i } = pr(r.name, t), a = hr(r), o = n.get(r.parent) ?? /* @__PURE__ */ new Map();
6010
6024
  n.set(r.parent, o);
6011
6025
  let s = o.get(e) ?? {
6012
- sizes: pr(),
6026
+ sizes: vr(),
6013
6027
  files: /* @__PURE__ */ new Map()
6014
6028
  };
6015
- o.set(e, s), mr(s.sizes, a);
6016
- let c = s.files.get(i) ?? pr();
6017
- s.files.set(i, c), mr(c, a);
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);
6018
6032
  }
6019
6033
  return n;
6020
6034
  }
6021
- function sr(e) {
6035
+ function fr(e) {
6022
6036
  return e.flatMap((e) => e.paths.map((t) => [t, e.name])).toSorted((e, t) => t[0].length - e[0].length);
6023
6037
  }
6024
- function cr(e, t) {
6038
+ function pr(e, t) {
6025
6039
  let n = t.find(([t]) => e === t || e.startsWith(`${t}/`));
6026
6040
  if (n) {
6027
6041
  let [t, r] = n;
@@ -6038,49 +6052,49 @@ function cr(e, t) {
6038
6052
  file: e.slice(1)
6039
6053
  } : e.startsWith("rust/") || e.includes("vite-plugin-wasm") ? {
6040
6054
  group: "wasm",
6041
- file: lr(e)
6055
+ file: mr(e)
6042
6056
  } : {
6043
6057
  group: "src",
6044
- file: lr(e)
6058
+ file: mr(e)
6045
6059
  };
6046
6060
  }
6047
- function lr(e) {
6061
+ function mr(e) {
6048
6062
  return e.split("/").at(-1) ?? e;
6049
6063
  }
6050
- function ur(e) {
6064
+ function hr(e) {
6051
6065
  return {
6052
6066
  uncompressed: e.uncompressed,
6053
6067
  brotli: e.brotli ?? 0
6054
6068
  };
6055
6069
  }
6056
- function dr(e) {
6057
- return `${hr(e.uncompressed)} · brotli ${hr(e.brotli)}`;
6070
+ function gr(e) {
6071
+ return `${br(e.uncompressed)} · brotli ${br(e.brotli)}`;
6058
6072
  }
6059
- function fr(e) {
6060
- let t = Math.round(e / 100 * Qn);
6061
- return `\`${"█".repeat(t)}${"░".repeat(Qn - t)}\` ${e.toFixed(1)}%`;
6073
+ function _r(e) {
6074
+ let t = Math.round(e / 100 * rr);
6075
+ return `\`${"█".repeat(t)}${"░".repeat(rr - t)}\` ${e.toFixed(1)}%`;
6062
6076
  }
6063
- function pr() {
6077
+ function vr() {
6064
6078
  return {
6065
6079
  uncompressed: 0,
6066
6080
  brotli: 0
6067
6081
  };
6068
6082
  }
6069
- function mr(e, t) {
6083
+ function yr(e, t) {
6070
6084
  e.uncompressed += t.uncompressed, e.brotli += t.brotli;
6071
6085
  }
6072
- function hr(e) {
6086
+ function br(e) {
6073
6087
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6074
6088
  }
6075
6089
  //#endregion
6076
6090
  //#region src/actions/documentDependencies.ts
6077
- var gr = "<!-- DEPENDENCY_LICENSES_START -->", _r = "<!-- DEPENDENCY_LICENSES_END -->", vr = "<!-- DEPENDENCY_TREE_START -->", yr = "<!-- DEPENDENCY_TREE_END -->";
6078
- async function br(e = "MIT") {
6091
+ var xr = "<!-- DEPENDENCY_LICENSES_START -->", Sr = "<!-- DEPENDENCY_LICENSES_END -->", Cr = "<!-- DEPENDENCY_TREE_START -->", wr = "<!-- DEPENDENCY_TREE_END -->";
6092
+ async function Tr(e = "MIT") {
6079
6093
  try {
6080
6094
  G("Document Dependencies");
6081
6095
  let t = await W("package.json");
6082
6096
  if (t.name === "@dpuse/dpuse-development") {
6083
- await xr(), K("Dependencies documented");
6097
+ await Er(), K("Dependencies documented");
6084
6098
  return;
6085
6099
  }
6086
6100
  await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
@@ -6102,30 +6116,30 @@ async function br(e = "MIT") {
6102
6116
  "--all",
6103
6117
  "--json",
6104
6118
  "--omit=dev"
6105
- ], "licenses/licenseTree.json"), await Sr("4️⃣ "), K("Dependencies documented");
6119
+ ], "licenses/licenseTree.json"), await Dr("4️⃣ "), K("Dependencies documented");
6106
6120
  } catch (e) {
6107
6121
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6108
6122
  }
6109
6123
  }
6110
- async function xr() {
6124
+ async function Er() {
6111
6125
  q("1️⃣ Skip: @dpuse/dpuse-development is a development-only tool and is never part of a production release");
6112
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";
6113
- await Bn("README.md", Gn(Gn(await Ln("./README.md"), e, gr, _r), e, vr, yr));
6127
+ await Bn("README.md", Gn(Gn(await Ln("./README.md"), e, xr, Sr), e, Cr, wr));
6114
6128
  }
6115
- async function Sr(e) {
6129
+ async function Dr(e) {
6116
6130
  q(`${e} Insert licenses into 'README.md'`);
6117
6131
  let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
6118
- for (let [e, n] of Object.entries(t)) r.set(e, Cr(e, n));
6132
+ for (let [e, n] of Object.entries(t)) r.set(e, Or(e, n));
6119
6133
  await Promise.all(r.values().map(async (e) => {
6120
- let t = await wr(e.name, e.installedVersion);
6134
+ let t = await kr(e.name, e.installedVersion);
6121
6135
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6122
6136
  }));
6123
6137
  let i = "|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n";
6124
- for (let e of r.values()) i += Tr(e);
6138
+ for (let e of r.values()) i += Ar(e);
6125
6139
  let a = [];
6126
- n.dependencies != null && Er(n.dependencies, r, a, 0), await Bn("README.md", Gn(Gn(await Ln("./README.md"), i, gr, _r), a.join("\n"), vr, yr));
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));
6127
6141
  }
6128
- function Cr(e, t) {
6142
+ function Or(e, t) {
6129
6143
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6130
6144
  return {
6131
6145
  name: r,
@@ -6139,7 +6153,7 @@ function Cr(e, t) {
6139
6153
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6140
6154
  };
6141
6155
  }
6142
- async function wr(e, t) {
6156
+ async function kr(e, t) {
6143
6157
  try {
6144
6158
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6145
6159
  if (n.ok) {
@@ -6157,25 +6171,25 @@ async function wr(e, t) {
6157
6171
  publishedDate: ""
6158
6172
  };
6159
6173
  }
6160
- function Tr(e) {
6174
+ function Ar(e) {
6161
6175
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6162
6176
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6163
6177
  }
6164
- function Er(e, t, n, r) {
6178
+ function jr(e, t, n, r) {
6165
6179
  let i = " ".repeat(r);
6166
6180
  for (let [a, o] of Object.entries(e)) {
6167
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Dr(s);
6168
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Er(o.dependencies, t, n, r + 1);
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);
6169
6183
  }
6170
6184
  }
6171
- function Dr(e) {
6185
+ function Mr(e) {
6172
6186
  if (e == null) return "";
6173
- let t = e.publishedDate ? Or(e.publishedDate.split("T", 1)[0]) : "";
6187
+ let t = e.publishedDate ? Nr(e.publishedDate.split("T", 1)[0]) : "";
6174
6188
  if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
6175
- let n = e.latestPublishedDate ? Or(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6189
+ let n = e.latestPublishedDate ? Nr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6176
6190
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6177
6191
  }
6178
- function Or(e) {
6192
+ function Nr(e) {
6179
6193
  if (e == null || e === "") return "n/a";
6180
6194
  let t = e.split("T", 1)[0];
6181
6195
  if (t == null || t === "") return "n/a";
@@ -6184,43 +6198,43 @@ function Or(e) {
6184
6198
  }
6185
6199
  //#endregion
6186
6200
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
6187
- var kr, Ar = {
6201
+ var Pr, Fr = {
6188
6202
  lang: void 0,
6189
6203
  message: void 0,
6190
6204
  abortEarly: void 0,
6191
6205
  abortPipeEarly: void 0
6192
6206
  };
6193
6207
  /* @__NO_SIDE_EFFECTS__ */
6194
- function jr(e) {
6195
- return !e && !kr ? Ar : {
6196
- lang: e?.lang ?? kr?.lang,
6208
+ function Ir(e) {
6209
+ return !e && !Pr ? Fr : {
6210
+ lang: e?.lang ?? Pr?.lang,
6197
6211
  message: e?.message,
6198
- abortEarly: e?.abortEarly ?? kr?.abortEarly,
6199
- abortPipeEarly: e?.abortPipeEarly ?? kr?.abortPipeEarly
6212
+ abortEarly: e?.abortEarly ?? Pr?.abortEarly,
6213
+ abortPipeEarly: e?.abortPipeEarly ?? Pr?.abortPipeEarly
6200
6214
  };
6201
6215
  }
6202
- var Mr;
6216
+ var Lr;
6203
6217
  /* @__NO_SIDE_EFFECTS__ */
6204
- function Nr(e) {
6205
- return Mr?.get(e);
6218
+ function Rr(e) {
6219
+ return Lr?.get(e);
6206
6220
  }
6207
- var Pr;
6221
+ var zr;
6208
6222
  /* @__NO_SIDE_EFFECTS__ */
6209
- function Fr(e) {
6210
- return Pr?.get(e);
6223
+ function Br(e) {
6224
+ return zr?.get(e);
6211
6225
  }
6212
- var Ir;
6226
+ var Vr;
6213
6227
  /* @__NO_SIDE_EFFECTS__ */
6214
- function Lr(e, t) {
6215
- return Ir?.get(e)?.get(t);
6228
+ function Hr(e, t) {
6229
+ return Vr?.get(e)?.get(t);
6216
6230
  }
6217
6231
  /* @__NO_SIDE_EFFECTS__ */
6218
- function Rr(e) {
6232
+ function Ur(e) {
6219
6233
  let t = typeof e;
6220
6234
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6221
6235
  }
6222
6236
  function Y(e, t, n, r, i) {
6223
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Rr(a), c = {
6237
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Ur(a), c = {
6224
6238
  kind: e.kind,
6225
6239
  type: e.type,
6226
6240
  input: a,
@@ -6233,44 +6247,44 @@ function Y(e, t, n, r, i) {
6233
6247
  lang: r.lang,
6234
6248
  abortEarly: r.abortEarly,
6235
6249
  abortPipeEarly: r.abortPipeEarly
6236
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Lr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Fr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Nr(c.lang);
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);
6237
6251
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6238
6252
  }
6239
- var zr = /* @__PURE__ */ new WeakMap();
6253
+ var Wr = /* @__PURE__ */ new WeakMap();
6240
6254
  /* @__NO_SIDE_EFFECTS__ */
6241
6255
  function X(e) {
6242
- let t = zr.get(e);
6256
+ let t = Wr.get(e);
6243
6257
  return t || (t = {
6244
6258
  version: 1,
6245
6259
  vendor: "valibot",
6246
6260
  validate(t) {
6247
- return e["~run"]({ value: t }, /* @__PURE__ */ jr());
6261
+ return e["~run"]({ value: t }, /* @__PURE__ */ Ir());
6248
6262
  }
6249
- }, zr.set(e, t)), t;
6263
+ }, Wr.set(e, t)), t;
6250
6264
  }
6251
6265
  /* @__NO_SIDE_EFFECTS__ */
6252
- function Br(e, t) {
6266
+ function Gr(e, t) {
6253
6267
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6254
6268
  }
6255
6269
  /* @__NO_SIDE_EFFECTS__ */
6256
- function Vr(e, t) {
6270
+ function Kr(e, t) {
6257
6271
  let n = [...new Set(e)];
6258
6272
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6259
6273
  }
6260
6274
  /* @__NO_SIDE_EFFECTS__ */
6261
- function Hr(e, t, n) {
6275
+ function qr(e, t, n) {
6262
6276
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6263
6277
  }
6264
6278
  /* @__NO_SIDE_EFFECTS__ */
6265
- function Ur(e, t, n) {
6279
+ function Jr(e, t, n) {
6266
6280
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6267
6281
  }
6268
6282
  /* @__NO_SIDE_EFFECTS__ */
6269
- function Wr(e, t) {
6283
+ function Yr(e, t) {
6270
6284
  return {
6271
6285
  kind: "schema",
6272
6286
  type: "array",
6273
- reference: Wr,
6287
+ reference: Yr,
6274
6288
  expects: "Array",
6275
6289
  async: !1,
6276
6290
  item: e,
@@ -6306,11 +6320,11 @@ function Wr(e, t) {
6306
6320
  };
6307
6321
  }
6308
6322
  /* @__NO_SIDE_EFFECTS__ */
6309
- function Gr(e) {
6323
+ function Xr(e) {
6310
6324
  return {
6311
6325
  kind: "schema",
6312
6326
  type: "boolean",
6313
- reference: Gr,
6327
+ reference: Xr,
6314
6328
  expects: "boolean",
6315
6329
  async: !1,
6316
6330
  message: e,
@@ -6323,12 +6337,12 @@ function Gr(e) {
6323
6337
  };
6324
6338
  }
6325
6339
  /* @__NO_SIDE_EFFECTS__ */
6326
- function Kr(e, t) {
6340
+ function Zr(e, t) {
6327
6341
  return {
6328
6342
  kind: "schema",
6329
6343
  type: "literal",
6330
- reference: Kr,
6331
- expects: /* @__PURE__ */ Rr(e),
6344
+ reference: Zr,
6345
+ expects: /* @__PURE__ */ Ur(e),
6332
6346
  async: !1,
6333
6347
  literal: e,
6334
6348
  message: t,
@@ -6354,16 +6368,16 @@ function Z(e, t) {
6354
6368
  return /* @__PURE__ */ X(this);
6355
6369
  },
6356
6370
  "~run"(e, t) {
6357
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Ur(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~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);
6358
6372
  }
6359
6373
  };
6360
6374
  }
6361
6375
  /* @__NO_SIDE_EFFECTS__ */
6362
- function qr(e) {
6376
+ function Qr(e) {
6363
6377
  return {
6364
6378
  kind: "schema",
6365
6379
  type: "number",
6366
- reference: qr,
6380
+ reference: Qr,
6367
6381
  expects: "number",
6368
6382
  async: !1,
6369
6383
  message: e,
@@ -6395,7 +6409,7 @@ function Q(e, t) {
6395
6409
  for (let r in this.entries) {
6396
6410
  let i = this.entries[r];
6397
6411
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6398
- let a = r in n ? n[r] : /* @__PURE__ */ Ur(i), o = i["~run"]({ value: a }, t);
6412
+ let a = r in n ? n[r] : /* @__PURE__ */ Jr(i), o = i["~run"]({ value: a }, t);
6399
6413
  if (o.issues) {
6400
6414
  let i = {
6401
6415
  type: "object",
@@ -6411,7 +6425,7 @@ function Q(e, t) {
6411
6425
  }
6412
6426
  }
6413
6427
  o.typed || (e.typed = !1), e.value[r] = o.value;
6414
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Hr(i);
6428
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ qr(i);
6415
6429
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (Y(this, "key", e, t, {
6416
6430
  input: void 0,
6417
6431
  expected: `"${r}"`,
@@ -6430,11 +6444,11 @@ function Q(e, t) {
6430
6444
  };
6431
6445
  }
6432
6446
  /* @__NO_SIDE_EFFECTS__ */
6433
- function Jr(e, t) {
6447
+ function $r(e, t) {
6434
6448
  return {
6435
6449
  kind: "schema",
6436
6450
  type: "optional",
6437
- reference: Jr,
6451
+ reference: $r,
6438
6452
  expects: `(${e.expects} | undefined)`,
6439
6453
  async: !1,
6440
6454
  wrapped: e,
@@ -6443,16 +6457,16 @@ function Jr(e, t) {
6443
6457
  return /* @__PURE__ */ X(this);
6444
6458
  },
6445
6459
  "~run"(e, t) {
6446
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Ur(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~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);
6447
6461
  }
6448
6462
  };
6449
6463
  }
6450
6464
  /* @__NO_SIDE_EFFECTS__ */
6451
- function Yr(e, t, n) {
6465
+ function ei(e, t, n) {
6452
6466
  return {
6453
6467
  kind: "schema",
6454
6468
  type: "record",
6455
- reference: Yr,
6469
+ reference: ei,
6456
6470
  expects: "Object",
6457
6471
  async: !1,
6458
6472
  key: e,
@@ -6465,7 +6479,7 @@ function Yr(e, t, n) {
6465
6479
  let n = e.value;
6466
6480
  if (n && typeof n == "object") {
6467
6481
  e.typed = !0, e.value = {};
6468
- for (let r in n) if (/* @__PURE__ */ Br(n, r)) {
6482
+ for (let r in n) if (/* @__PURE__ */ Gr(n, r)) {
6469
6483
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6470
6484
  if (a.issues) {
6471
6485
  let o = {
@@ -6521,19 +6535,19 @@ function $(e) {
6521
6535
  };
6522
6536
  }
6523
6537
  /* @__NO_SIDE_EFFECTS__ */
6524
- function Xr(e) {
6538
+ function ti(e) {
6525
6539
  let t;
6526
6540
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6527
6541
  else t = n.issues;
6528
6542
  return t;
6529
6543
  }
6530
6544
  /* @__NO_SIDE_EFFECTS__ */
6531
- function Zr(e, t) {
6545
+ function ni(e, t) {
6532
6546
  return {
6533
6547
  kind: "schema",
6534
6548
  type: "union",
6535
- reference: Zr,
6536
- expects: /* @__PURE__ */ Vr(e.map((e) => e.expects), "|"),
6549
+ reference: ni,
6550
+ expects: /* @__PURE__ */ Kr(e.map((e) => e.expects), "|"),
6537
6551
  async: !1,
6538
6552
  options: e,
6539
6553
  message: t,
@@ -6554,24 +6568,24 @@ function Zr(e, t) {
6554
6568
  if (n) return n;
6555
6569
  if (r) {
6556
6570
  if (r.length === 1) return r[0];
6557
- Y(this, "type", e, t, { issues: /* @__PURE__ */ Xr(r) }), e.typed = !0;
6571
+ Y(this, "type", e, t, { issues: /* @__PURE__ */ ti(r) }), e.typed = !0;
6558
6572
  } else if (i?.length === 1) return i[0];
6559
- else Y(this, "type", e, t, { issues: /* @__PURE__ */ Xr(i) });
6573
+ else Y(this, "type", e, t, { issues: /* @__PURE__ */ ti(i) });
6560
6574
  return e;
6561
6575
  }
6562
6576
  };
6563
6577
  }
6564
- var Qr = (e) => /* @__PURE__ */ Zr(e.map((e) => /* @__PURE__ */ Kr(e))), $r = /* @__PURE__ */ Q({
6578
+ var ri = (e) => /* @__PURE__ */ ni(e.map((e) => /* @__PURE__ */ Zr(e))), ii = /* @__PURE__ */ Q({
6565
6579
  en: /* @__PURE__ */ $(),
6566
6580
  es: /* @__PURE__ */ $()
6567
- }), ei = /* @__PURE__ */ Q({
6568
- en: /* @__PURE__ */ Jr(/* @__PURE__ */ Wr(/* @__PURE__ */ $())),
6569
- es: /* @__PURE__ */ Jr(/* @__PURE__ */ Wr(/* @__PURE__ */ $()))
6570
- }), ti = /* @__PURE__ */ Q({
6571
- en: /* @__PURE__ */ Jr(/* @__PURE__ */ $()),
6572
- es: /* @__PURE__ */ Jr(/* @__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__ */ $())
6573
6587
  });
6574
- Qr([
6588
+ ri([
6575
6589
  "app",
6576
6590
  "connection",
6577
6591
  "connector",
@@ -6596,12 +6610,12 @@ Qr([
6596
6610
  "presenterPresentation",
6597
6611
  "tool"
6598
6612
  ]);
6599
- var ni = Qr([
6613
+ var si = ri([
6600
6614
  "amber",
6601
6615
  "green",
6602
6616
  "red",
6603
6617
  "other"
6604
- ]), ri = Qr([
6618
+ ]), ci = ri([
6605
6619
  "alpha",
6606
6620
  "beta",
6607
6621
  "generalAvailability",
@@ -6611,31 +6625,31 @@ var ni = Qr([
6611
6625
  "releaseCandidate",
6612
6626
  "unavailable",
6613
6627
  "underReview"
6614
- ]), ii = /* @__PURE__ */ Q({
6615
- color: ni,
6628
+ ]), li = /* @__PURE__ */ Q({
6629
+ color: si,
6616
6630
  label: /* @__PURE__ */ $()
6617
- }), ai = /* @__PURE__ */ Q({
6631
+ }), ui = /* @__PURE__ */ Q({
6618
6632
  id: /* @__PURE__ */ $(),
6619
- label: ti,
6620
- description: ei,
6633
+ label: oi,
6634
+ description: ai,
6621
6635
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6622
6636
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6623
6637
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6624
- order: /* @__PURE__ */ qr(),
6638
+ order: /* @__PURE__ */ Qr(),
6625
6639
  path: /* @__PURE__ */ $()
6626
- }), oi = {
6640
+ }), di = {
6627
6641
  id: /* @__PURE__ */ $(),
6628
- label: ti,
6629
- description: ei,
6630
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ qr()),
6642
+ label: oi,
6643
+ description: ai,
6644
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6631
6645
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6632
6646
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6633
6647
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6634
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ qr()),
6635
- status: /* @__PURE__ */ Z(ii),
6636
- statusId: /* @__PURE__ */ Z(ri)
6648
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6649
+ status: /* @__PURE__ */ Z(li),
6650
+ statusId: /* @__PURE__ */ Z(ci)
6637
6651
  };
6638
- ({ ...oi }), Qr([
6652
+ ({ ...di }), ri([
6639
6653
  "app",
6640
6654
  "engine",
6641
6655
  "connector",
@@ -6646,14 +6660,14 @@ var ni = Qr([
6646
6660
  ]);
6647
6661
  //#endregion
6648
6662
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
6649
- var si = {
6650
- ...oi,
6663
+ var fi = {
6664
+ ...di,
6651
6665
  version: /* @__PURE__ */ $()
6652
6666
  };
6653
- ({ ...si });
6667
+ ({ ...fi });
6654
6668
  //#endregion
6655
6669
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6656
- var ci = Qr([
6670
+ var pi = ri([
6657
6671
  "abortOperation",
6658
6672
  "auditObjectContent",
6659
6673
  "createObject",
@@ -6668,35 +6682,35 @@ var ci = Qr([
6668
6682
  "retrieveChunks",
6669
6683
  "retrieveRecords",
6670
6684
  "upsertRecords"
6671
- ]), li = Qr([
6685
+ ]), mi = ri([
6672
6686
  "application",
6673
6687
  "curatedDataset",
6674
6688
  "database",
6675
6689
  "fileStore"
6676
- ]), ui = /* @__PURE__ */ Q({ label: $r }), di = /* @__PURE__ */ Q({
6677
- authMethodId: Qr([
6690
+ ]), hi = /* @__PURE__ */ Q({ label: ii }), gi = /* @__PURE__ */ Q({
6691
+ authMethodId: ri([
6678
6692
  "apiKey",
6679
6693
  "disabled",
6680
6694
  "oAuth2",
6681
6695
  "none"
6682
6696
  ]),
6683
- activeConnectionCount: /* @__PURE__ */ Jr(/* @__PURE__ */ qr()),
6684
- canDescribe: /* @__PURE__ */ Jr(/* @__PURE__ */ Gr()),
6685
- id: /* @__PURE__ */ Jr(/* @__PURE__ */ $()),
6686
- label: /* @__PURE__ */ Jr($r),
6687
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ qr()),
6688
- params: /* @__PURE__ */ Jr(/* @__PURE__ */ Wr(/* @__PURE__ */ Yr(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6689
- }), fi = /* @__PURE__ */ Q({
6690
- typeId: /* @__PURE__ */ Kr("connector"),
6691
- ...si,
6692
- actionNames: /* @__PURE__ */ Wr(ci),
6693
- category: /* @__PURE__ */ Z(ui),
6694
- categoryId: li,
6695
- implementations: /* @__PURE__ */ Yr(/* @__PURE__ */ $(), di),
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),
6696
6710
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6697
6711
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6698
6712
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6699
- }), pi = {
6713
+ }), vi = {
6700
6714
  abortOperation: "Abort Operation",
6701
6715
  auditObjectContent: "Audit Object Content",
6702
6716
  createObject: "Create Object",
@@ -6712,27 +6726,27 @@ var ci = Qr([
6712
6726
  retrieveRecords: "Retrieve Records",
6713
6727
  upsertRecords: "Upsert Records"
6714
6728
  };
6715
- function mi(e) {
6729
+ function yi(e) {
6716
6730
  let t = new Set(e), n = "|Action|Supported|\n";
6717
6731
  n += "|:----|:-------:|\n";
6718
- for (let e of Object.keys(pi)) n += `| ${pi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6732
+ for (let e of Object.keys(vi)) n += `| ${vi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6719
6733
  return n;
6720
6734
  }
6721
6735
  //#endregion
6722
6736
  //#region src/actions/documentActions.ts
6723
- var hi = "<!-- CONNECTOR_ACTIONS_START -->", gi = "<!-- CONNECTOR_ACTIONS_END -->";
6724
- async function _i() {
6737
+ var bi = "<!-- CONNECTOR_ACTIONS_START -->", xi = "<!-- CONNECTOR_ACTIONS_END -->";
6738
+ async function Si() {
6725
6739
  try {
6726
6740
  G("Document Actions"), q("1️⃣ Insert actions table into 'README.md'");
6727
- let e = mi((await W("config.json")).actionNames ?? []);
6728
- await Bn("README.md", Gn(await Ln("./README.md"), e, hi, gi)), K("Actions documented");
6741
+ let e = yi((await W("config.json")).actionNames ?? []);
6742
+ await Bn("README.md", Gn(await Ln("./README.md"), e, bi, xi)), K("Actions documented");
6729
6743
  } catch (e) {
6730
6744
  console.error("❌ Error documenting actions", e), process.exit(1);
6731
6745
  }
6732
6746
  }
6733
6747
  //#endregion
6734
6748
  //#region src/actions/formatCode.ts
6735
- async function vi() {
6749
+ async function Ci() {
6736
6750
  try {
6737
6751
  G("Format Code"), await Fn("1️⃣ Format", "prettier", [
6738
6752
  "--write",
@@ -6747,7 +6761,7 @@ async function vi() {
6747
6761
  }
6748
6762
  //#endregion
6749
6763
  //#region src/actions/lintCode.ts
6750
- async function yi() {
6764
+ async function wi() {
6751
6765
  try {
6752
6766
  G("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), K("Code linted");
6753
6767
  } catch (e) {
@@ -6756,7 +6770,7 @@ async function yi() {
6756
6770
  }
6757
6771
  //#endregion
6758
6772
  //#region src/utilities/cloudflare.ts
6759
- async function bi() {
6773
+ async function Ti() {
6760
6774
  let e = await W("config.json"), t = {
6761
6775
  body: JSON.stringify(e),
6762
6776
  headers: { "Content-Type": "application/json" },
@@ -6764,7 +6778,7 @@ async function bi() {
6764
6778
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6765
6779
  if (!n.ok) throw Error(await n.text());
6766
6780
  }
6767
- async function xi(e, t) {
6781
+ async function Ei(e, t) {
6768
6782
  async function n(e, t, r) {
6769
6783
  for (let i of r) {
6770
6784
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6782,7 +6796,7 @@ async function xi(e, t) {
6782
6796
  let r = await Nn(`${e}/${t}/`);
6783
6797
  await n(`${e}/${t}`, t, r);
6784
6798
  }
6785
- async function Si(e) {
6799
+ async function Di(e) {
6786
6800
  let t = e.id, n = {
6787
6801
  body: JSON.stringify(e),
6788
6802
  headers: { "Content-Type": "application/json" },
@@ -6790,7 +6804,7 @@ async function Si(e) {
6790
6804
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6791
6805
  if (!r.ok) throw Error(await r.text());
6792
6806
  }
6793
- async function Ci(e, t) {
6807
+ async function Oi(e, t) {
6794
6808
  let n = `v${e.version ?? "unknown"}`;
6795
6809
  async function r(e, r = "") {
6796
6810
  let i = await Nn(e, { withFileTypes: !0 });
@@ -6814,24 +6828,24 @@ async function Ci(e, t) {
6814
6828
  }
6815
6829
  //#endregion
6816
6830
  //#region node_modules/valibot/dist/index.mjs
6817
- var wi, Ti = {
6831
+ var ki, Ai = {
6818
6832
  lang: void 0,
6819
6833
  message: void 0,
6820
6834
  abortEarly: void 0,
6821
6835
  abortPipeEarly: void 0
6822
6836
  };
6823
6837
  /* @__NO_SIDE_EFFECTS__ */
6824
- function Ei(e) {
6825
- return !e && !wi ? Ti : {
6826
- lang: e?.lang ?? wi?.lang,
6838
+ function ji(e) {
6839
+ return !e && !ki ? Ai : {
6840
+ lang: e?.lang ?? ki?.lang,
6827
6841
  message: e?.message,
6828
- abortEarly: e?.abortEarly ?? wi?.abortEarly,
6829
- abortPipeEarly: e?.abortPipeEarly ?? wi?.abortPipeEarly
6842
+ abortEarly: e?.abortEarly ?? ki?.abortEarly,
6843
+ abortPipeEarly: e?.abortPipeEarly ?? ki?.abortPipeEarly
6830
6844
  };
6831
6845
  }
6832
6846
  /* @__NO_SIDE_EFFECTS__ */
6833
- function Di(e, t, n) {
6834
- let r = e["~run"]({ value: t }, /* @__PURE__ */ Ei(n));
6847
+ function Mi(e, t, n) {
6848
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ ji(n));
6835
6849
  return {
6836
6850
  typed: r.typed,
6837
6851
  success: !r.issues,
@@ -6841,31 +6855,31 @@ function Di(e, t, n) {
6841
6855
  }
6842
6856
  //#endregion
6843
6857
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
6844
- var Oi = /* @__PURE__ */ Q({
6845
- typeId: /* @__PURE__ */ Kr("contextArea"),
6846
- ...oi,
6847
- modelRefs: /* @__PURE__ */ Wr(ai),
6848
- order: /* @__PURE__ */ qr()
6849
- }), ki = Qr(["listContextFocuses"]), Ai = /* @__PURE__ */ Q({
6850
- typeId: /* @__PURE__ */ Kr("context"),
6851
- ...si,
6852
- actionNames: /* @__PURE__ */ Wr(ki),
6853
- models: /* @__PURE__ */ Wr(Oi)
6854
- }), ji = Qr([
6858
+ var Ni = /* @__PURE__ */ Q({
6859
+ typeId: /* @__PURE__ */ Zr("contextArea"),
6860
+ ...di,
6861
+ modelRefs: /* @__PURE__ */ Yr(ui),
6862
+ order: /* @__PURE__ */ Qr()
6863
+ }), Pi = ri(["listContextFocuses"]), Fi = /* @__PURE__ */ Q({
6864
+ typeId: /* @__PURE__ */ Zr("context"),
6865
+ ...fi,
6866
+ actionNames: /* @__PURE__ */ Yr(Pi),
6867
+ models: /* @__PURE__ */ Yr(Ni)
6868
+ }), Ii = ri([
6855
6869
  "list",
6856
6870
  "render",
6857
6871
  "setColorMode"
6858
- ]), Mi = /* @__PURE__ */ Q({
6859
- typeId: /* @__PURE__ */ Kr("presenter"),
6860
- ...si,
6861
- actionNames: /* @__PURE__ */ Wr(ji),
6862
- presentations: /* @__PURE__ */ Wr(ai)
6863
- }), Ni = /* @__PURE__ */ new Set([
6872
+ ]), Li = /* @__PURE__ */ Q({
6873
+ typeId: /* @__PURE__ */ Zr("presenter"),
6874
+ ...fi,
6875
+ actionNames: /* @__PURE__ */ Yr(Ii),
6876
+ presentations: /* @__PURE__ */ Yr(ui)
6877
+ }), Ri = /* @__PURE__ */ new Set([
6864
6878
  "createObject",
6865
6879
  "dropObject",
6866
6880
  "removeRecords",
6867
6881
  "upsertRecords"
6868
- ]), Pi = /* @__PURE__ */ new Set([
6882
+ ]), zi = /* @__PURE__ */ new Set([
6869
6883
  "auditObjectContent",
6870
6884
  "findObjectFolderPath",
6871
6885
  "getReadableStream",
@@ -6875,47 +6889,47 @@ var Oi = /* @__PURE__ */ Q({
6875
6889
  "retrieveChunks",
6876
6890
  "retrieveRecords"
6877
6891
  ]);
6878
- async function Fi() {
6892
+ async function Bi() {
6879
6893
  try {
6880
6894
  G("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
6881
6895
  } catch (e) {
6882
6896
  console.error("❌ Error building project", e), process.exit(1);
6883
6897
  }
6884
6898
  }
6885
- async function Ii() {
6899
+ async function Vi() {
6886
6900
  try {
6887
6901
  G("Publish Project");
6888
6902
  let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
6889
- if (n.typeId === "app") q("1️⃣ Register module"), await bi();
6890
- else if (n.typeId === "engine") q("1️⃣ Register module"), await Ci(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Si(t);
6903
+ if (n.typeId === "app") q("1️⃣ Register module"), await Ti();
6904
+ else if (n.typeId === "engine") q("1️⃣ Register module"), await Oi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Di(t);
6891
6905
  else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
6892
6906
  else {
6893
6907
  q("1️⃣ Register module");
6894
6908
  let r = t.id.split("-").slice(2).join("-");
6895
- await Ci(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Si(t);
6909
+ await Oi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Di(t);
6896
6910
  }
6897
6911
  K(`Project version '${e.version ?? "unknown"}' published.`);
6898
6912
  } catch (e) {
6899
6913
  console.error("❌ Error publishing project", e), process.exit(1);
6900
6914
  }
6901
6915
  }
6902
- async function Li() {
6916
+ async function Hi() {
6903
6917
  try {
6904
6918
  G("Release Project");
6905
6919
  let e = await W("package.json"), t = await W("config.json");
6906
- await Ki("1️⃣ ", e);
6920
+ await Zi("1️⃣ ", e);
6907
6921
  let n = Vn(t.id);
6908
6922
  switch (n.typeId) {
6909
6923
  case "connector":
6910
- t = await zi("2️⃣ ", e);
6924
+ t = await Wi("2️⃣ ", e);
6911
6925
  break;
6912
6926
  case "context":
6913
- t = await Bi("2️⃣ ", e);
6927
+ t = await Gi("2️⃣ ", e);
6914
6928
  break;
6915
6929
  case "presenter":
6916
- t = await Vi("2️⃣ ", e);
6930
+ t = await Ki("2️⃣ ", e);
6917
6931
  break;
6918
- default: t = await Ri("2️⃣ ", e);
6932
+ default: t = await Ui("2️⃣ ", e);
6919
6933
  }
6920
6934
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
6921
6935
  "commit",
@@ -6925,13 +6939,13 @@ async function Li() {
6925
6939
  "push",
6926
6940
  "origin",
6927
6941
  "main:main"
6928
- ]), n.typeId === "app") q("7️⃣ Register module"), await bi();
6929
- else if (n.typeId === "engine") q("7️⃣ Register module"), await Ci(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Si(t);
6942
+ ]), n.typeId === "app") q("7️⃣ Register module"), await Ti();
6943
+ else if (n.typeId === "engine") q("7️⃣ Register module"), await Oi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Di(t);
6930
6944
  else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
6931
6945
  else {
6932
6946
  q("7️⃣ Register module");
6933
6947
  let r = t.id.split("-").slice(2).join("-");
6934
- await Ci(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Si(t);
6948
+ await Oi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Di(t);
6935
6949
  }
6936
6950
  if (n.publishedTo === "npm") {
6937
6951
  let e = ".npmrc";
@@ -6950,53 +6964,53 @@ async function Li() {
6950
6964
  console.error("❌ Error releasing project", e), process.exit(1);
6951
6965
  }
6952
6966
  }
6953
- async function Ri(e, t) {
6967
+ async function Ui(e, t) {
6954
6968
  q(`${e} Build project configuration`);
6955
6969
  let n = await W("config.json");
6956
6970
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await zn("config.json", n), n;
6957
6971
  }
6958
- async function zi(e, t) {
6972
+ async function Wi(e, t) {
6959
6973
  q(`${e} Build connector project configuration`);
6960
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Di(fi, n);
6974
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Mi(_i, n);
6961
6975
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6962
6976
  let a = Un(r);
6963
- return await Ui(t, n, a, Hi(a));
6977
+ return await Ji(t, n, a, qi(a));
6964
6978
  }
6965
- async function Bi(e, t) {
6979
+ async function Gi(e, t) {
6966
6980
  q(`${e} Build context project configuration`);
6967
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Di(Ai, n);
6981
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Mi(Fi, n);
6968
6982
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6969
- return await Ui(t, n, Un(r));
6983
+ return await Ji(t, n, Un(r));
6970
6984
  }
6971
- async function Vi(e, t) {
6985
+ async function Ki(e, t) {
6972
6986
  q(`${e} Build presenter project configuration`);
6973
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Di(Mi, n);
6987
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Mi(Li, n);
6974
6988
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6975
- return await Ui(t, n, Un(r));
6989
+ return await Ji(t, n, Un(r));
6976
6990
  }
6977
- function Hi(e) {
6991
+ function qi(e) {
6978
6992
  let t = !1, n = !1;
6979
- for (let r of e) Pi.has(r) && (t = !0), Ni.has(r) && (n = !0);
6993
+ for (let r of e) zi.has(r) && (t = !0), Ri.has(r) && (n = !0);
6980
6994
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6981
6995
  }
6982
- async function Ui(e, t, n, r) {
6996
+ async function Ji(e, t, n, r) {
6983
6997
  return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await zn("config.json", t), t;
6984
6998
  }
6985
- async function Wi() {
6999
+ async function Yi() {
6986
7000
  try {
6987
7001
  G("Synchronise Project with GitHub");
6988
7002
  let e = await W("package.json"), t = await W("config.json");
6989
- switch (await Ki("1️⃣ ", e), Vn(t.id).typeId) {
7003
+ switch (await Zi("1️⃣ ", e), Vn(t.id).typeId) {
6990
7004
  case "connector":
6991
- await zi("2️⃣ ", e);
7005
+ await Wi("2️⃣ ", e);
6992
7006
  break;
6993
7007
  case "context":
6994
- await Bi("2️⃣ ", e);
7008
+ await Gi("2️⃣ ", e);
6995
7009
  break;
6996
7010
  case "presenter":
6997
- await Vi("2️⃣ ", e);
7011
+ await Ki("2️⃣ ", e);
6998
7012
  break;
6999
- default: await Ri("2️⃣ ", e);
7013
+ default: await Ui("2️⃣ ", e);
7000
7014
  }
7001
7015
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7002
7016
  "commit",
@@ -7011,14 +7025,14 @@ async function Wi() {
7011
7025
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7012
7026
  }
7013
7027
  }
7014
- function Gi() {
7028
+ function Xi() {
7015
7029
  try {
7016
7030
  G("Test Project"), console.error("\n❌ No tests implemented.\n");
7017
7031
  } catch (e) {
7018
7032
  console.error("❌ Error testing project", e), process.exit(1);
7019
7033
  }
7020
7034
  }
7021
- async function Ki(e, t, n = "./") {
7035
+ async function Zi(e, t, n = "./") {
7022
7036
  if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7023
7037
  else {
7024
7038
  let e = t.version, n = t.version.split(".");
@@ -7027,6 +7041,6 @@ async function Ki(e, t, n = "./") {
7027
7041
  await zn(`${n}package.json`, t);
7028
7042
  }
7029
7043
  //#endregion
7030
- export { Kn as auditDependencies, Fi as buildProject, qn as checkConfigFiles, Jn as checkDependencies, _i as documentActions, $n as documentBundleSizes, br as documentDependencies, vi as formatCode, yi as lintCode, Ii as publishProject, Li as releaseProject, Wi as syncProjectWithGitHub, Gi as testProject, xi as uploadDirectoryToR2 };
7044
+ export { Kn as auditDependencies, Bi as buildProject, qn as checkConfigFiles, $n as checkDependencies, Si as documentActions, ir as documentBundleSizes, Tr as documentDependencies, Ci as formatCode, wi as lintCode, Vi as publishProject, Hi as releaseProject, Yi as syncProjectWithGitHub, Xi as testProject, Ei as uploadDirectoryToR2 };
7031
7045
 
7032
7046
  //# sourceMappingURL=dpuse-development.es.js.map