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