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