@dpuse/dpuse-development 0.3.742 → 0.3.744

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.
@@ -6268,10 +6268,10 @@ var Ur = "<!-- GOVERNANCE_START -->", Wr = "<!-- GOVERNANCE_END -->", Gr = "code
6268
6268
  async function Yr() {
6269
6269
  try {
6270
6270
  K("Document Governance");
6271
- let [e, t] = await Promise.all([G("package.json"), G("config.json")]), n = await Xr(e);
6272
- J("3️⃣ Insert governance content into 'README.md'");
6273
- let { owner: r, repo: i } = Hn(e, "document governance");
6274
- await zn(ei(r, i, Qr(e), $r(t.firstCreatedAt), n), Ur, Wr), q("Governance documented");
6271
+ let [e, t] = await Promise.all([G("package.json"), G("config.json")]), n = await Xr(e), { owner: r, repo: i } = Hn(e, "document governance");
6272
+ J("3️⃣ Look up OpenSSF Best Practices badge");
6273
+ let a = await Qr(`https://github.com/${r}/${i}`);
6274
+ J("4️⃣ Insert governance content into 'README.md'"), await zn(ti(r, i, $r(e), ei(t.firstCreatedAt), n, a), Ur, Wr), q("Governance documented");
6275
6275
  } catch (e) {
6276
6276
  console.error("❌ Error documenting governance", e), process.exit(1);
6277
6277
  }
@@ -6310,25 +6310,30 @@ function Zr(e) {
6310
6310
 
6311
6311
  `;
6312
6312
  }
6313
- function Qr(e) {
6313
+ async function Qr(e) {
6314
+ let t = await fetch(`https://www.bestpractices.dev/projects.json?url=${encodeURIComponent(e)}`);
6315
+ if (!t.ok) throw Error(`OpenSSF Best Practices lookup failed with status ${String(t.status)}.`);
6316
+ return (await t.json()).find((t) => t.repo_url === e)?.id;
6317
+ }
6318
+ function $r(e) {
6314
6319
  let t = e.author, n = typeof t == "string" ? t : t?.name;
6315
6320
  if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
6316
6321
  let r = n.indexOf("<"), i = r === -1 ? -1 : n.indexOf(">", r);
6317
6322
  return (i === -1 ? n : n.slice(0, r).trimEnd() + n.slice(i + 1).trimStart()).trim();
6318
6323
  }
6319
- function $r(e) {
6324
+ function ei(e) {
6320
6325
  let t = (/* @__PURE__ */ new Date()).getFullYear();
6321
6326
  if (e == null) return String(t);
6322
6327
  let n = new Date(e).getFullYear();
6323
6328
  return n === t ? String(t) : `${String(n)}-present`;
6324
6329
  }
6325
- function ei(e, t, n, r, i) {
6326
- let a = `https://github.com/${e}/${t}`, o = `github.com/${e}/${t}`;
6330
+ function ti(e, t, n, r, i, a) {
6331
+ let o = `https://github.com/${e}/${t}`, s = `github.com/${e}/${t}`, c = `https://www.bestpractices.dev/projects/${String(a)}`, l = a === void 0 ? "" : `[![OpenSSF Best Practices](${c}/badge)](${c})\n`;
6327
6332
  return `## Security & Quality
6328
6333
 
6329
6334
  ### CodeQL
6330
6335
 
6331
- [CodeQL](${a}/security/code-scanning) static analysis runs on every push to \`main\` and on a weekly schedule, scanning TypeScript, JavaScript, Rust, and GitHub Actions workflow files for security vulnerabilities and coding errors.
6336
+ [CodeQL](${o}/security/code-scanning) static analysis runs on every push to \`main\` and on a weekly schedule, scanning TypeScript, JavaScript, Rust, and GitHub Actions workflow files for security vulnerabilities and coding errors.
6332
6337
 
6333
6338
  ### SonarCloud
6334
6339
 
@@ -6347,19 +6352,19 @@ Two complementary tools continuously monitor dependencies for known vulnerabilit
6347
6352
 
6348
6353
  ### Reporting Vulnerabilities
6349
6354
 
6350
- Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](${a}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
6355
+ Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](${o}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
6351
6356
 
6352
6357
  ### OpenSSF 🚧
6353
6358
 
6354
- [![OpenSSF Scorecard](https://api.scorecard.dev/projects/${o}/badge)](https://scorecard.dev/viewer/?uri=${o})
6359
+ ${l}[![OpenSSF Scorecard](https://api.scorecard.dev/projects/${s}/badge)](https://scorecard.dev/viewer/?uri=${s})
6355
6360
 
6356
- This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=${o}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
6361
+ This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=${s}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
6357
6362
 
6358
6363
  ## Contributing
6359
6364
 
6360
6365
  This repository is maintained solely by its owner and does not, at present, accept external contributions into the canonical repo. Its source is published openly under the MIT License — every DPUse project is fully open source except DPUse Engine, which remains closed and proprietary.
6361
6366
 
6362
- For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${a}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
6367
+ For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${o}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
6363
6368
 
6364
6369
  ## License
6365
6370
 
@@ -6369,28 +6374,28 @@ This project is licensed under the MIT License, permitting free use, modificatio
6369
6374
  }
6370
6375
  //#endregion
6371
6376
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DT3mO5rS.js
6372
- var ti = {
6377
+ var ni = {
6373
6378
  lang: void 0,
6374
6379
  message: void 0,
6375
6380
  abortEarly: void 0,
6376
6381
  abortPipeEarly: void 0
6377
6382
  };
6378
6383
  /* @__NO_SIDE_EFFECTS__ */
6379
- function ni(e) {
6384
+ function ri(e) {
6380
6385
  return e ? {
6381
6386
  lang: e?.lang ?? void 0,
6382
6387
  message: e?.message,
6383
6388
  abortEarly: e?.abortEarly ?? void 0,
6384
6389
  abortPipeEarly: e?.abortPipeEarly ?? void 0
6385
- } : ti;
6390
+ } : ni;
6386
6391
  }
6387
6392
  /* @__NO_SIDE_EFFECTS__ */
6388
- function ri(e) {
6393
+ function ii(e) {
6389
6394
  let t = typeof e;
6390
6395
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6391
6396
  }
6392
6397
  function X(e, t, n, r, i) {
6393
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ri(a), c = {
6398
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ii(a), c = {
6394
6399
  kind: e.kind,
6395
6400
  type: e.type,
6396
6401
  input: a,
@@ -6407,39 +6412,39 @@ function X(e, t, n, r, i) {
6407
6412
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6408
6413
  }
6409
6414
  /* @__NO_SIDE_EFFECTS__ */
6410
- function ii(e, t) {
6415
+ function ai(e, t) {
6411
6416
  return e === t || Number.isNaN(e) && Number.isNaN(t);
6412
6417
  }
6413
6418
  /* @__NO_SIDE_EFFECTS__ */
6414
- function ai(e, t) {
6419
+ function oi(e, t) {
6415
6420
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6416
6421
  }
6417
6422
  /* @__NO_SIDE_EFFECTS__ */
6418
- function oi(e, t) {
6423
+ function si(e, t) {
6419
6424
  let n = [...new Set(e)];
6420
6425
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6421
6426
  }
6422
- function si(e) {
6427
+ function ci(e) {
6423
6428
  return e["~standard"] = {
6424
6429
  version: 1,
6425
6430
  vendor: "valibot",
6426
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ ni())
6431
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ ri())
6427
6432
  }, e;
6428
6433
  }
6429
6434
  /* @__NO_SIDE_EFFECTS__ */
6430
- function ci(e, t, n) {
6435
+ function li(e, t, n) {
6431
6436
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6432
6437
  }
6433
6438
  /* @__NO_SIDE_EFFECTS__ */
6434
- function li(e, t, n) {
6439
+ function ui(e, t, n) {
6435
6440
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6436
6441
  }
6437
6442
  /* @__NO_SIDE_EFFECTS__ */
6438
- function ui(e, t) {
6439
- return si({
6443
+ function di(e, t) {
6444
+ return ci({
6440
6445
  kind: "schema",
6441
6446
  type: "array",
6442
- reference: ui,
6447
+ reference: di,
6443
6448
  expects: "Array",
6444
6449
  async: !1,
6445
6450
  item: e,
@@ -6472,11 +6477,11 @@ function ui(e, t) {
6472
6477
  });
6473
6478
  }
6474
6479
  /* @__NO_SIDE_EFFECTS__ */
6475
- function di(e) {
6476
- return si({
6480
+ function fi(e) {
6481
+ return ci({
6477
6482
  kind: "schema",
6478
6483
  type: "boolean",
6479
- reference: di,
6484
+ reference: fi,
6480
6485
  expects: "boolean",
6481
6486
  async: !1,
6482
6487
  message: e,
@@ -6486,23 +6491,23 @@ function di(e) {
6486
6491
  });
6487
6492
  }
6488
6493
  /* @__NO_SIDE_EFFECTS__ */
6489
- function fi(e, t) {
6490
- return si({
6494
+ function pi(e, t) {
6495
+ return ci({
6491
6496
  kind: "schema",
6492
6497
  type: "literal",
6493
- reference: fi,
6494
- expects: /* @__PURE__ */ ri(e),
6498
+ reference: pi,
6499
+ expects: /* @__PURE__ */ ii(e),
6495
6500
  async: !1,
6496
6501
  literal: e,
6497
6502
  message: t,
6498
6503
  "~run"(e, t) {
6499
- return /* @__PURE__ */ ii(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6504
+ return /* @__PURE__ */ ai(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6500
6505
  }
6501
6506
  });
6502
6507
  }
6503
6508
  /* @__NO_SIDE_EFFECTS__ */
6504
6509
  function Z(e, t) {
6505
- return si({
6510
+ return ci({
6506
6511
  kind: "schema",
6507
6512
  type: "nullable",
6508
6513
  reference: Z,
@@ -6511,16 +6516,16 @@ function Z(e, t) {
6511
6516
  wrapped: e,
6512
6517
  default: t,
6513
6518
  "~run"(e, t) {
6514
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ li(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6519
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ui(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6515
6520
  }
6516
6521
  });
6517
6522
  }
6518
6523
  /* @__NO_SIDE_EFFECTS__ */
6519
- function pi(e) {
6520
- return si({
6524
+ function mi(e) {
6525
+ return ci({
6521
6526
  kind: "schema",
6522
6527
  type: "number",
6523
- reference: pi,
6528
+ reference: mi,
6524
6529
  expects: "number",
6525
6530
  async: !1,
6526
6531
  message: e,
@@ -6530,26 +6535,26 @@ function pi(e) {
6530
6535
  });
6531
6536
  }
6532
6537
  /* @__NO_SIDE_EFFECTS__ */
6533
- function mi(e, t) {
6534
- return si({
6538
+ function hi(e, t) {
6539
+ return ci({
6535
6540
  kind: "schema",
6536
6541
  type: "optional",
6537
- reference: mi,
6542
+ reference: hi,
6538
6543
  expects: `(${e.expects} | undefined)`,
6539
6544
  async: !1,
6540
6545
  wrapped: e,
6541
6546
  default: t,
6542
6547
  "~run"(e, t) {
6543
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ li(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6548
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ui(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6544
6549
  }
6545
6550
  });
6546
6551
  }
6547
6552
  /* @__NO_SIDE_EFFECTS__ */
6548
- function hi(e, t, n) {
6549
- return si({
6553
+ function gi(e, t, n) {
6554
+ return ci({
6550
6555
  kind: "schema",
6551
6556
  type: "record",
6552
- reference: hi,
6557
+ reference: gi,
6553
6558
  expects: "Object",
6554
6559
  async: !1,
6555
6560
  key: e,
@@ -6559,7 +6564,7 @@ function hi(e, t, n) {
6559
6564
  let n = e.value;
6560
6565
  if (n && typeof n == "object") {
6561
6566
  e.typed = !0, e.value = {};
6562
- for (let r in n) if (/* @__PURE__ */ ai(n, r)) {
6567
+ for (let r in n) if (/* @__PURE__ */ oi(n, r)) {
6563
6568
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6564
6569
  if (a.issues) {
6565
6570
  let o = {
@@ -6599,7 +6604,7 @@ function hi(e, t, n) {
6599
6604
  }
6600
6605
  /* @__NO_SIDE_EFFECTS__ */
6601
6606
  function Q(e, t) {
6602
- return si({
6607
+ return ci({
6603
6608
  kind: "schema",
6604
6609
  type: "strict_object",
6605
6610
  reference: Q,
@@ -6614,7 +6619,7 @@ function Q(e, t) {
6614
6619
  for (let r in this.entries) {
6615
6620
  let i = this.entries[r];
6616
6621
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6617
- let a = r in n ? n[r] : /* @__PURE__ */ li(i), o = i["~run"]({ value: a }, t);
6622
+ let a = r in n ? n[r] : /* @__PURE__ */ ui(i), o = i["~run"]({ value: a }, t);
6618
6623
  if (o.issues) {
6619
6624
  let i = {
6620
6625
  type: "object",
@@ -6630,7 +6635,7 @@ function Q(e, t) {
6630
6635
  }
6631
6636
  }
6632
6637
  o.typed || (e.typed = !1), e.value[r] = o.value;
6633
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ci(i);
6638
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ li(i);
6634
6639
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6635
6640
  input: void 0,
6636
6641
  expected: `"${r}"`,
@@ -6666,7 +6671,7 @@ function Q(e, t) {
6666
6671
  }
6667
6672
  /* @__NO_SIDE_EFFECTS__ */
6668
6673
  function $(e) {
6669
- return si({
6674
+ return ci({
6670
6675
  kind: "schema",
6671
6676
  type: "string",
6672
6677
  reference: $,
@@ -6679,19 +6684,19 @@ function $(e) {
6679
6684
  });
6680
6685
  }
6681
6686
  /* @__NO_SIDE_EFFECTS__ */
6682
- function gi(e) {
6687
+ function _i(e) {
6683
6688
  let t;
6684
6689
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6685
6690
  else t = n.issues;
6686
6691
  return t;
6687
6692
  }
6688
6693
  /* @__NO_SIDE_EFFECTS__ */
6689
- function _i(e, t) {
6690
- return si({
6694
+ function vi(e, t) {
6695
+ return ci({
6691
6696
  kind: "schema",
6692
6697
  type: "union",
6693
- reference: _i,
6694
- expects: /* @__PURE__ */ oi(e.map((e) => e.expects), "|"),
6698
+ reference: vi,
6699
+ expects: /* @__PURE__ */ si(e.map((e) => e.expects), "|"),
6695
6700
  async: !1,
6696
6701
  options: e,
6697
6702
  message: t,
@@ -6710,29 +6715,29 @@ function _i(e, t) {
6710
6715
  if (n) return n;
6711
6716
  if (r) {
6712
6717
  if (r.length === 1) return r[0];
6713
- X(this, "type", e, t, { issues: /* @__PURE__ */ gi(r) }), e.typed = !0;
6718
+ X(this, "type", e, t, { issues: /* @__PURE__ */ _i(r) }), e.typed = !0;
6714
6719
  } else if (i?.length === 1) return i[0];
6715
- else X(this, "type", e, t, { issues: /* @__PURE__ */ gi(i) });
6720
+ else X(this, "type", e, t, { issues: /* @__PURE__ */ _i(i) });
6716
6721
  return e;
6717
6722
  }
6718
6723
  });
6719
6724
  }
6720
- var vi = /* @__PURE__ */ Q({
6725
+ var yi = /* @__PURE__ */ Q({
6721
6726
  en: /* @__PURE__ */ $(),
6722
6727
  es: /* @__PURE__ */ $()
6723
- }), yi = {
6728
+ }), bi = {
6724
6729
  id: /* @__PURE__ */ $(),
6725
6730
  label: /* @__PURE__ */ Q({
6726
- en: /* @__PURE__ */ mi(/* @__PURE__ */ $()),
6727
- es: /* @__PURE__ */ mi(/* @__PURE__ */ $())
6731
+ en: /* @__PURE__ */ hi(/* @__PURE__ */ $()),
6732
+ es: /* @__PURE__ */ hi(/* @__PURE__ */ $())
6728
6733
  }),
6729
6734
  description: /* @__PURE__ */ Q({
6730
- en: /* @__PURE__ */ mi(/* @__PURE__ */ $()),
6731
- es: /* @__PURE__ */ mi(/* @__PURE__ */ $())
6735
+ en: /* @__PURE__ */ hi(/* @__PURE__ */ $()),
6736
+ es: /* @__PURE__ */ hi(/* @__PURE__ */ $())
6732
6737
  }),
6733
6738
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6734
6739
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6735
- }, bi = (e) => /* @__PURE__ */ _i(e.map((e) => /* @__PURE__ */ fi(e))), xi = bi([
6740
+ }, xi = (e) => /* @__PURE__ */ vi(e.map((e) => /* @__PURE__ */ pi(e))), Si = xi([
6736
6741
  "app",
6737
6742
  "connector",
6738
6743
  "connectorConnection",
@@ -6754,33 +6759,33 @@ var vi = /* @__PURE__ */ Q({
6754
6759
  "presenter",
6755
6760
  "presenterPresentation",
6756
6761
  "tool"
6757
- ]), Si = bi([
6762
+ ]), Ci = xi([
6758
6763
  "danger",
6759
6764
  "success",
6760
6765
  "warning"
6761
- ]), Ci = bi([
6766
+ ]), wi = xi([
6762
6767
  "alpha",
6763
6768
  "beta",
6764
6769
  "releaseCandidate",
6765
6770
  "generalAvailability"
6766
- ]), wi = /* @__PURE__ */ Q({
6767
- color: Si,
6771
+ ]), Ti = /* @__PURE__ */ Q({
6772
+ color: Ci,
6768
6773
  label: /* @__PURE__ */ $()
6769
- }), Ti = {
6770
- ...yi,
6771
- typeId: xi
6772
- }, Ei = /* @__PURE__ */ Q({
6773
- ...Ti,
6774
- order: /* @__PURE__ */ pi(),
6774
+ }), Ei = {
6775
+ ...bi,
6776
+ typeId: Si
6777
+ }, Di = /* @__PURE__ */ Q({
6778
+ ...Ei,
6779
+ order: /* @__PURE__ */ mi(),
6775
6780
  path: /* @__PURE__ */ $()
6776
- }), Di = {
6777
- ...Ti,
6778
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ pi()),
6779
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ pi()),
6780
- status: /* @__PURE__ */ Z(wi),
6781
- statusId: /* @__PURE__ */ Z(Ci)
6781
+ }), Oi = {
6782
+ ...Ei,
6783
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ mi()),
6784
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ mi()),
6785
+ status: /* @__PURE__ */ Z(Ti),
6786
+ statusId: /* @__PURE__ */ Z(wi)
6782
6787
  };
6783
- ({ ...Di }), bi([
6788
+ ({ ...Oi }), xi([
6784
6789
  "app",
6785
6790
  "engine",
6786
6791
  "connector",
@@ -6790,17 +6795,17 @@ var vi = /* @__PURE__ */ Q({
6790
6795
  ]);
6791
6796
  //#endregion
6792
6797
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-aYmFWSrn.js
6793
- var Oi = {
6794
- ...Di,
6798
+ var ki = {
6799
+ ...Oi,
6795
6800
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6796
6801
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6797
6802
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6798
6803
  version: /* @__PURE__ */ $()
6799
6804
  };
6800
- ({ ...Oi });
6805
+ ({ ...ki });
6801
6806
  //#endregion
6802
6807
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6803
- var ki = bi([
6808
+ var Ai = xi([
6804
6809
  "abortOperation",
6805
6810
  "auditObjectContent",
6806
6811
  "createObject",
@@ -6816,39 +6821,39 @@ var ki = bi([
6816
6821
  "retrieveChunks",
6817
6822
  "retrieveRecords",
6818
6823
  "upsertRecords"
6819
- ]), Ai = bi([
6824
+ ]), ji = xi([
6820
6825
  "application",
6821
6826
  "curatedDataset",
6822
6827
  "database",
6823
6828
  "fileStore"
6824
- ]), ji = /* @__PURE__ */ Q({ label: vi }), Mi = bi([
6829
+ ]), Mi = /* @__PURE__ */ Q({ label: yi }), Ni = xi([
6825
6830
  "bidirectional",
6826
6831
  "destination",
6827
6832
  "source",
6828
6833
  "unknown"
6829
- ]), Ni = /* @__PURE__ */ Q({ label: vi }), Pi = /* @__PURE__ */ Q({
6830
- authMethodId: bi([
6834
+ ]), Pi = /* @__PURE__ */ Q({ label: yi }), Fi = /* @__PURE__ */ Q({
6835
+ authMethodId: xi([
6831
6836
  "apiKey",
6832
6837
  "disabled",
6833
6838
  "oAuth2",
6834
6839
  "none"
6835
6840
  ]),
6836
- activeConnectionCount: /* @__PURE__ */ mi(/* @__PURE__ */ pi()),
6837
- canDescribe: /* @__PURE__ */ mi(/* @__PURE__ */ di()),
6838
- id: /* @__PURE__ */ mi(/* @__PURE__ */ $()),
6839
- label: /* @__PURE__ */ mi(vi),
6840
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ pi()),
6841
- params: /* @__PURE__ */ mi(/* @__PURE__ */ ui(/* @__PURE__ */ hi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6842
- }), Fi = /* @__PURE__ */ Q({
6843
- ...Oi,
6844
- typeId: /* @__PURE__ */ fi("connector"),
6845
- actionNames: /* @__PURE__ */ ui(ki),
6846
- category: /* @__PURE__ */ Z(ji),
6847
- categoryId: Ai,
6848
- implementations: /* @__PURE__ */ hi(/* @__PURE__ */ $(), Pi),
6849
- usage: /* @__PURE__ */ Z(Ni),
6850
- usageId: /* @__PURE__ */ Z(Mi)
6851
- }), Ii = {
6841
+ activeConnectionCount: /* @__PURE__ */ hi(/* @__PURE__ */ mi()),
6842
+ canDescribe: /* @__PURE__ */ hi(/* @__PURE__ */ fi()),
6843
+ id: /* @__PURE__ */ hi(/* @__PURE__ */ $()),
6844
+ label: /* @__PURE__ */ hi(yi),
6845
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ mi()),
6846
+ params: /* @__PURE__ */ hi(/* @__PURE__ */ di(/* @__PURE__ */ gi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6847
+ }), Ii = /* @__PURE__ */ Q({
6848
+ ...ki,
6849
+ typeId: /* @__PURE__ */ pi("connector"),
6850
+ actionNames: /* @__PURE__ */ di(Ai),
6851
+ category: /* @__PURE__ */ Z(Mi),
6852
+ categoryId: ji,
6853
+ implementations: /* @__PURE__ */ gi(/* @__PURE__ */ $(), Fi),
6854
+ usage: /* @__PURE__ */ Z(Pi),
6855
+ usageId: /* @__PURE__ */ Z(Ni)
6856
+ }), Li = {
6852
6857
  abortOperation: "Abort Operation",
6853
6858
  auditObjectContent: "Audit Object Content",
6854
6859
  createObject: "Create Object",
@@ -6864,12 +6869,12 @@ var ki = bi([
6864
6869
  retrieveChunks: "Retrieve Chunks",
6865
6870
  retrieveRecords: "Retrieve Records",
6866
6871
  upsertRecords: "Upsert Records"
6867
- }, Li = /* @__PURE__ */ new Set([
6872
+ }, Ri = /* @__PURE__ */ new Set([
6868
6873
  "createObject",
6869
6874
  "dropObject",
6870
6875
  "removeRecords",
6871
6876
  "upsertRecords"
6872
- ]), Ri = /* @__PURE__ */ new Set([
6877
+ ]), zi = /* @__PURE__ */ new Set([
6873
6878
  "auditObjectContent",
6874
6879
  "findObject",
6875
6880
  "getInfo",
@@ -6880,57 +6885,57 @@ var ki = bi([
6880
6885
  "retrieveChunks",
6881
6886
  "retrieveRecords"
6882
6887
  ]);
6883
- function zi(e) {
6888
+ function Bi(e) {
6884
6889
  let t = !1, n = !1;
6885
- for (let r of e) Ri.has(r) && (t = !0), Li.has(r) && (n = !0);
6890
+ for (let r of e) zi.has(r) && (t = !0), Ri.has(r) && (n = !0);
6886
6891
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6887
6892
  }
6888
- function Bi(e) {
6893
+ function Vi(e) {
6889
6894
  let t = new Set(e), n = "|Action|Supported|\n";
6890
6895
  n += "|:----|:-------:|\n";
6891
- for (let e of Object.keys(Ii)) n += `| ${Ii[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6896
+ for (let e of Object.keys(Li)) n += `| ${Li[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6892
6897
  return n;
6893
6898
  }
6894
6899
  //#endregion
6895
6900
  //#region src/actions/documentActions.ts
6896
- var Vi = "<!-- CONNECTOR_ACTIONS_START -->", Hi = "<!-- CONNECTOR_ACTIONS_END -->", Ui = "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.", Wi = {
6901
+ var Hi = "<!-- CONNECTOR_ACTIONS_START -->", Ui = "<!-- CONNECTOR_ACTIONS_END -->", Wi = "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.", Gi = {
6897
6902
  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.",
6898
6903
  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.",
6899
6904
  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.",
6900
6905
  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."
6901
- }, Gi = "The table below lists all connector actions and highlights those supported by this connector.";
6902
- async function Ki() {
6906
+ }, Ki = "The table below lists all connector actions and highlights those supported by this connector.";
6907
+ async function qi() {
6903
6908
  try {
6904
6909
  K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6905
- let e = (await G("config.json")).actionNames ?? [], t = zi(e), n = Bi(e);
6906
- await zn(`${Ui}\n\n${Wi[t]} ${Gi}\n\n${n}`, Vi, Hi), q("Actions documented");
6910
+ let e = (await G("config.json")).actionNames ?? [], t = Bi(e), n = Vi(e);
6911
+ await zn(`${Wi}\n\n${Gi[t]} ${Ki}\n\n${n}`, Hi, Ui), q("Actions documented");
6907
6912
  } catch (e) {
6908
6913
  console.error("❌ Error documenting actions", e), process.exit(1);
6909
6914
  }
6910
6915
  }
6911
6916
  //#endregion
6912
6917
  //#region src/actions/documentOpening.ts
6913
- var qi = "<!-- OPENING_START -->", Ji = "<!-- OPENING_END -->";
6914
- async function Yi() {
6918
+ var Ji = "<!-- OPENING_START -->", Yi = "<!-- OPENING_END -->";
6919
+ async function Xi() {
6915
6920
  try {
6916
6921
  K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6917
6922
  let e = await G("package.json"), t = await G("config.json"), { owner: n, repo: r } = Hn(e, "document opening");
6918
- await zn(Qi(n, r, Xi(e), Zi(t)), qi, Ji), q("Opening documented");
6923
+ await zn($i(n, r, Zi(e), Qi(t)), Ji, Yi), q("Opening documented");
6919
6924
  } catch (e) {
6920
6925
  console.error("❌ Error documenting opening", e), process.exit(1);
6921
6926
  }
6922
6927
  }
6923
- function Xi(e) {
6928
+ function Zi(e) {
6924
6929
  let t = e.license;
6925
6930
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6926
6931
  return t;
6927
6932
  }
6928
- function Zi(e) {
6933
+ function Qi(e) {
6929
6934
  let t = e.description.en;
6930
6935
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6931
6936
  return t;
6932
6937
  }
6933
- function Qi(e, t, n, r) {
6938
+ function $i(e, t, n, r) {
6934
6939
  let i = `https://github.com/${e}/${t}`;
6935
6940
  return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6936
6941
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
@@ -6958,31 +6963,31 @@ ${r}`;
6958
6963
  }
6959
6964
  //#endregion
6960
6965
  //#region src/actions/documentUsage.ts
6961
- var $i = "<!-- USAGE_START -->", ea = "<!-- USAGE_END -->";
6962
- async function ta() {
6966
+ var ea = "<!-- USAGE_START -->", ta = "<!-- USAGE_END -->";
6967
+ async function na() {
6963
6968
  try {
6964
6969
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6965
- let e = await G("package.json"), t = na(e);
6966
- await zn(aa(t, ra(t), ia(e.engines?.node), ia(e.engines?.npm), ia(e.devDependencies?.typescript)), $i, ea), q("Usage documented");
6970
+ let e = await G("package.json"), t = ra(e);
6971
+ await zn(oa(t, ia(t), aa(e.engines?.node), aa(e.engines?.npm), aa(e.devDependencies?.typescript)), ea, ta), q("Usage documented");
6967
6972
  } catch (e) {
6968
6973
  console.error("❌ Error documenting usage", e), process.exit(1);
6969
6974
  }
6970
6975
  }
6971
- function na(e) {
6976
+ function ra(e) {
6972
6977
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6973
6978
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6974
6979
  return n.replace(/^git\+/, "");
6975
6980
  }
6976
- function ra(e) {
6981
+ function ia(e) {
6977
6982
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6978
6983
  }
6979
- function ia(e) {
6984
+ function aa(e) {
6980
6985
  if (e == null) throw Error("package.json version range is required to document usage.");
6981
6986
  let t = /\d+(?:\.\d+)*/.exec(e);
6982
6987
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6983
6988
  return t[0];
6984
6989
  }
6985
- function aa(e, t, n, r, i) {
6990
+ function oa(e, t, n, r, i) {
6986
6991
  return `This connector is automatically uploaded to the DPUse Engine cloud once released and becomes instantly available to all new browser app instances, with existing instances notified of the update.
6987
6992
 
6988
6993
  You may view or clone this repository for your own purposes, such as building a new, similar connector, though there is currently no process to accept third-party connectors into DPUse at this stage. Cloned or forked code is unsupported and isn't guaranteed to remain compatible with the DPUse Engine as it evolves.
@@ -6997,7 +7002,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
6997
7002
  }
6998
7003
  //#endregion
6999
7004
  //#region src/actions/formatCode.ts
7000
- async function oa() {
7005
+ async function sa() {
7001
7006
  try {
7002
7007
  K("Format Code"), await W("1️⃣ Format", "prettier", [
7003
7008
  "--write",
@@ -7012,7 +7017,7 @@ async function oa() {
7012
7017
  }
7013
7018
  //#endregion
7014
7019
  //#region src/actions/lintCode.ts
7015
- async function sa() {
7020
+ async function ca() {
7016
7021
  try {
7017
7022
  K("Lint Code"), await W("1️⃣ Lint", "eslint", ["."]), q("Code linted");
7018
7023
  } catch (e) {
@@ -7021,7 +7026,7 @@ async function sa() {
7021
7026
  }
7022
7027
  //#endregion
7023
7028
  //#region src/utilities/cloudflare.ts
7024
- async function ca() {
7029
+ async function la() {
7025
7030
  let e = await G("config.json"), t = {
7026
7031
  body: JSON.stringify(e),
7027
7032
  headers: { "Content-Type": "application/json" },
@@ -7029,7 +7034,7 @@ async function ca() {
7029
7034
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
7030
7035
  if (!n.ok) throw Error(await n.text());
7031
7036
  }
7032
- async function la(e, t) {
7037
+ async function ua(e, t) {
7033
7038
  async function n(e, t, r) {
7034
7039
  for (let i of r) {
7035
7040
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -7047,7 +7052,7 @@ async function la(e, t) {
7047
7052
  let r = await Nn(`${e}/${t}/`);
7048
7053
  await n(`${e}/${t}`, t, r);
7049
7054
  }
7050
- async function ua(e) {
7055
+ async function da(e) {
7051
7056
  let t = e.id, n = {
7052
7057
  body: JSON.stringify(e),
7053
7058
  headers: { "Content-Type": "application/json" },
@@ -7055,7 +7060,7 @@ async function ua(e) {
7055
7060
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7056
7061
  if (!r.ok) throw Error(await r.text());
7057
7062
  }
7058
- async function da(e, t) {
7063
+ async function fa(e, t) {
7059
7064
  let n = `v${e.version ?? "unknown"}`;
7060
7065
  async function r(e, r = "") {
7061
7066
  let i = await Nn(e, { withFileTypes: !0 });
@@ -7079,24 +7084,24 @@ async function da(e, t) {
7079
7084
  }
7080
7085
  //#endregion
7081
7086
  //#region node_modules/valibot/dist/index.mjs
7082
- var fa = {
7087
+ var pa = {
7083
7088
  lang: void 0,
7084
7089
  message: void 0,
7085
7090
  abortEarly: void 0,
7086
7091
  abortPipeEarly: void 0
7087
7092
  };
7088
7093
  /* @__NO_SIDE_EFFECTS__ */
7089
- function pa(e) {
7094
+ function ma(e) {
7090
7095
  return e ? {
7091
7096
  lang: e?.lang ?? void 0,
7092
7097
  message: e?.message,
7093
7098
  abortEarly: e?.abortEarly ?? void 0,
7094
7099
  abortPipeEarly: e?.abortPipeEarly ?? void 0
7095
- } : fa;
7100
+ } : pa;
7096
7101
  }
7097
7102
  /* @__NO_SIDE_EFFECTS__ */
7098
- function ma(e, t, n) {
7099
- let r = e["~run"]({ value: t }, /* @__PURE__ */ pa(n));
7103
+ function ha(e, t, n) {
7104
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ ma(n));
7100
7105
  return {
7101
7106
  typed: r.typed,
7102
7107
  success: !r.issues,
@@ -7106,21 +7111,21 @@ function ma(e, t, n) {
7106
7111
  }
7107
7112
  //#endregion
7108
7113
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7109
- var ha = bi([
7114
+ var ga = xi([
7110
7115
  "list",
7111
7116
  "render",
7112
7117
  "setColorMode"
7113
- ]), ga = /* @__PURE__ */ Q({
7114
- ...Oi,
7115
- typeId: /* @__PURE__ */ fi("presenter"),
7116
- actionNames: /* @__PURE__ */ ui(ha),
7117
- presentations: /* @__PURE__ */ ui(Ei)
7118
- }), _a = [
7118
+ ]), _a = /* @__PURE__ */ Q({
7119
+ ...ki,
7120
+ typeId: /* @__PURE__ */ pi("presenter"),
7121
+ actionNames: /* @__PURE__ */ di(ga),
7122
+ presentations: /* @__PURE__ */ di(Di)
7123
+ }), va = [
7119
7124
  "1️⃣ ",
7120
7125
  "2️⃣ ",
7121
7126
  "3️⃣ ",
7122
7127
  "4️⃣ "
7123
- ], va = [{
7128
+ ], ya = [{
7124
7129
  id: "unit",
7125
7130
  label: "Run unit tests",
7126
7131
  command: "vitest",
@@ -7133,36 +7138,36 @@ var ha = bi([
7133
7138
  arguments: ["test", "--pass-with-no-tests"],
7134
7139
  configFileName: "playwright.config.ts"
7135
7140
  }];
7136
- async function ya() {
7141
+ async function ba() {
7137
7142
  try {
7138
7143
  K("Build Project"), await W("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7139
7144
  } catch (e) {
7140
7145
  console.error("❌ Error building project", e), process.exit(1);
7141
7146
  }
7142
7147
  }
7143
- async function ba() {
7148
+ async function xa() {
7144
7149
  try {
7145
7150
  K("Publish Project");
7146
7151
  let e = await G("package.json"), t = await G("config.json");
7147
- await ka("1️⃣ ", e, t, Vn(t.id)), q(`Project version '${e.version ?? "unknown"}' published.`);
7152
+ await Aa("1️⃣ ", e, t, Vn(t.id)), q(`Project version '${e.version ?? "unknown"}' published.`);
7148
7153
  } catch (e) {
7149
7154
  console.error("❌ Error publishing project", e), process.exit(1);
7150
7155
  }
7151
7156
  }
7152
- async function xa() {
7157
+ async function Sa() {
7153
7158
  try {
7154
7159
  K("Release Project");
7155
7160
  let e = await G("package.json"), t = await G("config.json");
7156
- await Oa("1️⃣ ", e);
7161
+ await ka("1️⃣ ", e);
7157
7162
  let n = Vn(t.id);
7158
7163
  switch (n.typeId) {
7159
7164
  case "connector":
7160
- t = await Ca("2️⃣ ", e);
7165
+ t = await wa("2️⃣ ", e);
7161
7166
  break;
7162
7167
  case "presenter":
7163
- t = await wa("2️⃣ ", e);
7168
+ t = await Ta("2️⃣ ", e);
7164
7169
  break;
7165
- default: t = await Sa("2️⃣ ", e);
7170
+ default: t = await Ca("2️⃣ ", e);
7166
7171
  }
7167
7172
  await W("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7168
7173
  "commit",
@@ -7172,7 +7177,7 @@ async function xa() {
7172
7177
  "push",
7173
7178
  "origin",
7174
7179
  "main:main"
7175
- ]), await ka("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await W("8️⃣ Create GitHub release", "gh", [
7180
+ ]), await Aa("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await W("8️⃣ Create GitHub release", "gh", [
7176
7181
  "release",
7177
7182
  "create",
7178
7183
  `v${e.version ?? "unknown"}`,
@@ -7185,39 +7190,39 @@ async function xa() {
7185
7190
  console.error("❌ Error releasing project", e), process.exit(1);
7186
7191
  }
7187
7192
  }
7188
- async function Sa(e, t) {
7193
+ async function Ca(e, t) {
7189
7194
  J(`${e} Build project configuration`);
7190
7195
  let n = await G("config.json");
7191
7196
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await Ln("logo.svg"), n.iconDark ??= await Ln("logoDark.svg"), await Rn("config.json", n), n;
7192
7197
  }
7193
- async function Ca(e, t) {
7198
+ async function wa(e, t) {
7194
7199
  J(`${e} Build connector project configuration`);
7195
- let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ma(Fi, n);
7200
+ let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ha(Ii, n);
7196
7201
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7197
7202
  let a = Wn(r);
7198
- return await Ta(t, n, a, zi(a));
7203
+ return await Ea(t, n, a, Bi(a));
7199
7204
  }
7200
- async function wa(e, t) {
7205
+ async function Ta(e, t) {
7201
7206
  J(`${e} Build presenter project configuration`);
7202
- let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ma(ga, n);
7207
+ let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ha(_a, n);
7203
7208
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7204
- return await Ta(t, n, Wn(r));
7209
+ return await Ea(t, n, Wn(r));
7205
7210
  }
7206
- async function Ta(e, t, n, r) {
7211
+ async function Ea(e, t, n, r) {
7207
7212
  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, r !== void 0 && (t.usageId = r), await Rn("config.json", t), t;
7208
7213
  }
7209
- async function Ea() {
7214
+ async function Da() {
7210
7215
  try {
7211
7216
  K("Synchronise Project with GitHub");
7212
7217
  let e = await G("package.json"), t = await G("config.json");
7213
- switch (await Oa("1️⃣ ", e), Vn(t.id).typeId) {
7218
+ switch (await ka("1️⃣ ", e), Vn(t.id).typeId) {
7214
7219
  case "connector":
7215
- await Ca("2️⃣ ", e);
7220
+ await wa("2️⃣ ", e);
7216
7221
  break;
7217
7222
  case "presenter":
7218
- await wa("2️⃣ ", e);
7223
+ await Ta("2️⃣ ", e);
7219
7224
  break;
7220
- default: await Sa("2️⃣ ", e);
7225
+ default: await Ca("2️⃣ ", e);
7221
7226
  }
7222
7227
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7223
7228
  "commit",
@@ -7232,14 +7237,14 @@ async function Ea() {
7232
7237
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7233
7238
  }
7234
7239
  }
7235
- async function Da(e = ["unit"], t = !1) {
7240
+ async function Oa(e = ["unit"], t = !1) {
7236
7241
  try {
7237
7242
  K("Test Project");
7238
7243
  let n = 0;
7239
- for (let r of va) {
7244
+ for (let r of ya) {
7240
7245
  if (!e.includes(r.id) || await Ln(r.configFileName) === null) continue;
7241
7246
  let i = t && r.id === "unit" ? ["--coverage"] : [];
7242
- await W(`${_a[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7247
+ await W(`${va[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7243
7248
  }
7244
7249
  if (n === 0) {
7245
7250
  console.warn("\n⚠️ No tests configured for this project.\n");
@@ -7250,7 +7255,7 @@ async function Da(e = ["unit"], t = !1) {
7250
7255
  console.error("❌ Error testing project", e), process.exit(1);
7251
7256
  }
7252
7257
  }
7253
- async function Oa(e, t, n = "./") {
7258
+ async function ka(e, t, n = "./") {
7254
7259
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7255
7260
  else {
7256
7261
  let e = t.version, n = t.version.split(".");
@@ -7258,17 +7263,17 @@ async function Oa(e, t, n = "./") {
7258
7263
  }
7259
7264
  await Rn(`${n}package.json`, t);
7260
7265
  }
7261
- async function ka(e, t, n, r) {
7262
- if (r.typeId === "app") J(`${e} Register module`), await ca();
7263
- else if (r.typeId === "engine") J(`${e} Register module`), await da(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await ua(n);
7266
+ async function Aa(e, t, n, r) {
7267
+ if (r.typeId === "app") J(`${e} Register module`), await la();
7268
+ else if (r.typeId === "engine") J(`${e} Register module`), await fa(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await da(n);
7264
7269
  else if (r.uploadGroupName === void 0) J(`${e} Registration NOT required`);
7265
7270
  else {
7266
7271
  J(`${e} Register module`);
7267
7272
  let i = n.id.split("-").slice(2).join("-");
7268
- await da(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await ua(n);
7273
+ await fa(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await da(n);
7269
7274
  }
7270
7275
  }
7271
7276
  //#endregion
7272
- export { qn as auditDependencies, ya as buildProject, Jn as checkConfigFiles, tr as checkDependencies, Ki as documentActions, ur as documentBundleSizes, Mr as documentDependencies, Yr as documentGovernance, Yi as documentOpening, ta as documentUsage, oa as formatCode, sa as lintCode, ba as publishProject, xa as releaseProject, Ea as syncProjectWithGitHub, Da as testProject, la as uploadDirectoryToR2 };
7277
+ export { qn as auditDependencies, ba as buildProject, Jn as checkConfigFiles, tr as checkDependencies, qi as documentActions, ur as documentBundleSizes, Mr as documentDependencies, Yr as documentGovernance, Xi as documentOpening, na as documentUsage, sa as formatCode, ca as lintCode, xa as publishProject, Sa as releaseProject, Da as syncProjectWithGitHub, Oa as testProject, ua as uploadDirectoryToR2 };
7273
7278
 
7274
7279
  //# sourceMappingURL=dpuse-development.es.js.map