@dpuse/dpuse-development 0.3.665 → 0.3.666

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