@dpuse/dpuse-development 0.3.740 → 0.3.742

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.
@@ -5780,26 +5780,26 @@ async function W(e, t, n, r = !1, i = !1) {
5780
5780
  });
5781
5781
  });
5782
5782
  }
5783
- async function Fn(e, n, r, i, o = !1) {
5784
- return J(`${e} - spawn(${n} ${r.join(" ")}) > ${i}`), new Promise((e, s) => {
5785
- let c = a(n, r, {
5783
+ async function Fn(e, r, i, o, s = !1) {
5784
+ return J(`${e} - spawn(${r} ${i.join(" ")}) > ${o}`), new Promise((e, c) => {
5785
+ let l = a(r, i, {
5786
5786
  shell: !1,
5787
5787
  stdio: [
5788
5788
  "inherit",
5789
5789
  "pipe",
5790
5790
  "inherit"
5791
5791
  ]
5792
- }), l = "";
5793
- c.stdout.on("data", (e) => {
5794
- l += String(e);
5795
- }), c.on("close", (r) => {
5796
- r === 0 || o ? (async () => {
5792
+ }), u = "";
5793
+ l.stdout.on("data", (e) => {
5794
+ u += String(e);
5795
+ }), l.on("close", (i) => {
5796
+ i === 0 || s ? (async () => {
5797
5797
  try {
5798
- await t.writeFile(i, l, "utf-8"), e();
5798
+ await t.mkdir(n.dirname(o), { recursive: !0 }), await t.writeFile(o, u, "utf-8"), e();
5799
5799
  } catch (e) {
5800
- s(e instanceof Error ? e : Error(String(e)));
5800
+ c(e instanceof Error ? e : Error(String(e)));
5801
5801
  }
5802
- })() : s(/* @__PURE__ */ Error(`${n} exited with code ${String(r ?? "unknown")}`));
5802
+ })() : c(/* @__PURE__ */ Error(`${r} exited with code ${String(i ?? "unknown")}`));
5803
5803
  });
5804
5804
  });
5805
5805
  }
@@ -6258,41 +6258,83 @@ function Hr(e) {
6258
6258
  }
6259
6259
  //#endregion
6260
6260
  //#region src/actions/documentGovernance.ts
6261
- var Ur = "<!-- GOVERNANCE_START -->", Wr = "<!-- GOVERNANCE_END -->";
6262
- async function Gr() {
6261
+ var Ur = "<!-- GOVERNANCE_START -->", Wr = "<!-- GOVERNANCE_END -->", Gr = "code-health-reports/fallow", Kr = {
6262
+ A: "brightgreen",
6263
+ B: "green",
6264
+ C: "yellow",
6265
+ D: "orange",
6266
+ F: "red"
6267
+ }, qr = `${Gr}/health.json`, Jr = `${Gr}/index.md`;
6268
+ async function Yr() {
6263
6269
  try {
6264
- K("Document Governance"), J("1️⃣ Insert governance content into 'README.md'");
6265
- let [e, t] = await Promise.all([G("package.json"), G("config.json")]), { owner: n, repo: r } = Hn(e, "document governance");
6266
- await zn(Jr(n, r, Kr(e), qr(t.firstCreatedAt)), Ur, Wr), q("Governance documented");
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");
6267
6275
  } catch (e) {
6268
6276
  console.error("❌ Error documenting governance", e), process.exit(1);
6269
6277
  }
6270
6278
  }
6271
- function Kr(e) {
6279
+ async function Xr(e) {
6280
+ if (e.devDependencies?.fallow == null) {
6281
+ J("1️⃣ Code health NOT measured, as Fallow is not installed"), J("2️⃣ Code health report NOT required");
6282
+ return;
6283
+ }
6284
+ return await Fn("1️⃣ Measure code health", "fallow", [
6285
+ "health",
6286
+ "--report-only",
6287
+ "--format",
6288
+ "json"
6289
+ ], qr), await Fn("2️⃣ Write code health report", "fallow", ["--format", "markdown"], Jr, !0), await G(qr);
6290
+ }
6291
+ function Zr(e) {
6292
+ let { score: t, grade: n } = e.health_score, { functions_above_threshold: r, functions_analyzed: i, average_maintainability: a } = e.summary, o = e.vital_signs;
6293
+ return `### Code Health
6294
+
6295
+ [![Fallow code health](${`https://img.shields.io/badge/fallow-${encodeURIComponent(`${n} (${String(Math.round(t))})`).replaceAll("-", "--").replaceAll("(", "%28").replaceAll(")", "%29")}-${Kr[n] ?? "lightgrey"}`})](./${Jr})
6296
+
6297
+ [Fallow](https://github.com/fallow-rs/fallow) analyses the TypeScript source on each release for unused code, duplication, complexity, and dependency hygiene. See the [full Fallow report](./${Jr}) for every finding.
6298
+
6299
+ |Measure|Value|
6300
+ |:-|-:|
6301
+ |Health score|${t.toFixed(1)} (${n})|
6302
+ |Maintainability (average)|${a.toFixed(1)}|
6303
+ |Unused files|${o.dead_file_pct.toFixed(1)}%|
6304
+ |Unused exports|${o.dead_export_pct.toFixed(1)}%|
6305
+ |Duplicated code|${o.duplication_pct.toFixed(1)}%|
6306
+ |Functions over the complexity limits|${String(r)} of ${String(i)}|
6307
+ |Unused dependencies|${String(o.unused_dep_count)}|
6308
+ |Circular dependencies|${String(o.circular_dep_count)}|
6309
+ |Hotspots (complex and often changed)|${String(o.hotspot_count)}|
6310
+
6311
+ `;
6312
+ }
6313
+ function Qr(e) {
6272
6314
  let t = e.author, n = typeof t == "string" ? t : t?.name;
6273
6315
  if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
6274
6316
  let r = n.indexOf("<"), i = r === -1 ? -1 : n.indexOf(">", r);
6275
6317
  return (i === -1 ? n : n.slice(0, r).trimEnd() + n.slice(i + 1).trimStart()).trim();
6276
6318
  }
6277
- function qr(e) {
6319
+ function $r(e) {
6278
6320
  let t = (/* @__PURE__ */ new Date()).getFullYear();
6279
6321
  if (e == null) return String(t);
6280
6322
  let n = new Date(e).getFullYear();
6281
6323
  return n === t ? String(t) : `${String(n)}-present`;
6282
6324
  }
6283
- function Jr(e, t, n, r) {
6284
- let i = `https://github.com/${e}/${t}`, a = `github.com/${e}/${t}`;
6325
+ function ei(e, t, n, r, i) {
6326
+ let a = `https://github.com/${e}/${t}`, o = `github.com/${e}/${t}`;
6285
6327
  return `## Security & Quality
6286
6328
 
6287
6329
  ### CodeQL
6288
6330
 
6289
- [CodeQL](${i}/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.
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.
6290
6332
 
6291
6333
  ### SonarCloud
6292
6334
 
6293
6335
  [SonarCloud](https://sonarcloud.io/summary/new_code?id=${e}_${t}) performs continuous code quality and security analysis on every push, detecting bugs, code smells, and security vulnerabilities in the TypeScript source.
6294
6336
 
6295
- ### Vulnerability Scanning
6337
+ ${i === void 0 ? "" : Zr(i)}### Vulnerability Scanning
6296
6338
 
6297
6339
  Two complementary tools continuously monitor dependencies for known vulnerabilities:
6298
6340
 
@@ -6305,19 +6347,19 @@ Two complementary tools continuously monitor dependencies for known vulnerabilit
6305
6347
 
6306
6348
  ### Reporting Vulnerabilities
6307
6349
 
6308
- Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](${i}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
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.
6309
6351
 
6310
6352
  ### OpenSSF 🚧
6311
6353
 
6312
- [![OpenSSF Scorecard](https://api.scorecard.dev/projects/${a}/badge)](https://scorecard.dev/viewer/?uri=${a})
6354
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/${o}/badge)](https://scorecard.dev/viewer/?uri=${o})
6313
6355
 
6314
- 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=${a}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
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.
6315
6357
 
6316
6358
  ## Contributing
6317
6359
 
6318
6360
  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.
6319
6361
 
6320
- For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${i}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
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.
6321
6363
 
6322
6364
  ## License
6323
6365
 
@@ -6327,28 +6369,28 @@ This project is licensed under the MIT License, permitting free use, modificatio
6327
6369
  }
6328
6370
  //#endregion
6329
6371
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DT3mO5rS.js
6330
- var Yr = {
6372
+ var ti = {
6331
6373
  lang: void 0,
6332
6374
  message: void 0,
6333
6375
  abortEarly: void 0,
6334
6376
  abortPipeEarly: void 0
6335
6377
  };
6336
6378
  /* @__NO_SIDE_EFFECTS__ */
6337
- function Xr(e) {
6379
+ function ni(e) {
6338
6380
  return e ? {
6339
6381
  lang: e?.lang ?? void 0,
6340
6382
  message: e?.message,
6341
6383
  abortEarly: e?.abortEarly ?? void 0,
6342
6384
  abortPipeEarly: e?.abortPipeEarly ?? void 0
6343
- } : Yr;
6385
+ } : ti;
6344
6386
  }
6345
6387
  /* @__NO_SIDE_EFFECTS__ */
6346
- function Zr(e) {
6388
+ function ri(e) {
6347
6389
  let t = typeof e;
6348
6390
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6349
6391
  }
6350
6392
  function X(e, t, n, r, i) {
6351
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Zr(a), c = {
6393
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ ri(a), c = {
6352
6394
  kind: e.kind,
6353
6395
  type: e.type,
6354
6396
  input: a,
@@ -6365,39 +6407,39 @@ function X(e, t, n, r, i) {
6365
6407
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6366
6408
  }
6367
6409
  /* @__NO_SIDE_EFFECTS__ */
6368
- function Qr(e, t) {
6410
+ function ii(e, t) {
6369
6411
  return e === t || Number.isNaN(e) && Number.isNaN(t);
6370
6412
  }
6371
6413
  /* @__NO_SIDE_EFFECTS__ */
6372
- function $r(e, t) {
6414
+ function ai(e, t) {
6373
6415
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6374
6416
  }
6375
6417
  /* @__NO_SIDE_EFFECTS__ */
6376
- function ei(e, t) {
6418
+ function oi(e, t) {
6377
6419
  let n = [...new Set(e)];
6378
6420
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6379
6421
  }
6380
- function ti(e) {
6422
+ function si(e) {
6381
6423
  return e["~standard"] = {
6382
6424
  version: 1,
6383
6425
  vendor: "valibot",
6384
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ Xr())
6426
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ ni())
6385
6427
  }, e;
6386
6428
  }
6387
6429
  /* @__NO_SIDE_EFFECTS__ */
6388
- function ni(e, t, n) {
6430
+ function ci(e, t, n) {
6389
6431
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6390
6432
  }
6391
6433
  /* @__NO_SIDE_EFFECTS__ */
6392
- function ri(e, t, n) {
6434
+ function li(e, t, n) {
6393
6435
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6394
6436
  }
6395
6437
  /* @__NO_SIDE_EFFECTS__ */
6396
- function ii(e, t) {
6397
- return ti({
6438
+ function ui(e, t) {
6439
+ return si({
6398
6440
  kind: "schema",
6399
6441
  type: "array",
6400
- reference: ii,
6442
+ reference: ui,
6401
6443
  expects: "Array",
6402
6444
  async: !1,
6403
6445
  item: e,
@@ -6430,11 +6472,11 @@ function ii(e, t) {
6430
6472
  });
6431
6473
  }
6432
6474
  /* @__NO_SIDE_EFFECTS__ */
6433
- function ai(e) {
6434
- return ti({
6475
+ function di(e) {
6476
+ return si({
6435
6477
  kind: "schema",
6436
6478
  type: "boolean",
6437
- reference: ai,
6479
+ reference: di,
6438
6480
  expects: "boolean",
6439
6481
  async: !1,
6440
6482
  message: e,
@@ -6444,23 +6486,23 @@ function ai(e) {
6444
6486
  });
6445
6487
  }
6446
6488
  /* @__NO_SIDE_EFFECTS__ */
6447
- function oi(e, t) {
6448
- return ti({
6489
+ function fi(e, t) {
6490
+ return si({
6449
6491
  kind: "schema",
6450
6492
  type: "literal",
6451
- reference: oi,
6452
- expects: /* @__PURE__ */ Zr(e),
6493
+ reference: fi,
6494
+ expects: /* @__PURE__ */ ri(e),
6453
6495
  async: !1,
6454
6496
  literal: e,
6455
6497
  message: t,
6456
6498
  "~run"(e, t) {
6457
- return /* @__PURE__ */ Qr(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6499
+ return /* @__PURE__ */ ii(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
6458
6500
  }
6459
6501
  });
6460
6502
  }
6461
6503
  /* @__NO_SIDE_EFFECTS__ */
6462
6504
  function Z(e, t) {
6463
- return ti({
6505
+ return si({
6464
6506
  kind: "schema",
6465
6507
  type: "nullable",
6466
6508
  reference: Z,
@@ -6469,16 +6511,16 @@ function Z(e, t) {
6469
6511
  wrapped: e,
6470
6512
  default: t,
6471
6513
  "~run"(e, t) {
6472
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ri(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~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);
6473
6515
  }
6474
6516
  });
6475
6517
  }
6476
6518
  /* @__NO_SIDE_EFFECTS__ */
6477
- function si(e) {
6478
- return ti({
6519
+ function pi(e) {
6520
+ return si({
6479
6521
  kind: "schema",
6480
6522
  type: "number",
6481
- reference: si,
6523
+ reference: pi,
6482
6524
  expects: "number",
6483
6525
  async: !1,
6484
6526
  message: e,
@@ -6488,26 +6530,26 @@ function si(e) {
6488
6530
  });
6489
6531
  }
6490
6532
  /* @__NO_SIDE_EFFECTS__ */
6491
- function ci(e, t) {
6492
- return ti({
6533
+ function mi(e, t) {
6534
+ return si({
6493
6535
  kind: "schema",
6494
6536
  type: "optional",
6495
- reference: ci,
6537
+ reference: mi,
6496
6538
  expects: `(${e.expects} | undefined)`,
6497
6539
  async: !1,
6498
6540
  wrapped: e,
6499
6541
  default: t,
6500
6542
  "~run"(e, t) {
6501
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ri(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~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);
6502
6544
  }
6503
6545
  });
6504
6546
  }
6505
6547
  /* @__NO_SIDE_EFFECTS__ */
6506
- function li(e, t, n) {
6507
- return ti({
6548
+ function hi(e, t, n) {
6549
+ return si({
6508
6550
  kind: "schema",
6509
6551
  type: "record",
6510
- reference: li,
6552
+ reference: hi,
6511
6553
  expects: "Object",
6512
6554
  async: !1,
6513
6555
  key: e,
@@ -6517,7 +6559,7 @@ function li(e, t, n) {
6517
6559
  let n = e.value;
6518
6560
  if (n && typeof n == "object") {
6519
6561
  e.typed = !0, e.value = {};
6520
- for (let r in n) if (/* @__PURE__ */ $r(n, r)) {
6562
+ for (let r in n) if (/* @__PURE__ */ ai(n, r)) {
6521
6563
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6522
6564
  if (a.issues) {
6523
6565
  let o = {
@@ -6557,7 +6599,7 @@ function li(e, t, n) {
6557
6599
  }
6558
6600
  /* @__NO_SIDE_EFFECTS__ */
6559
6601
  function Q(e, t) {
6560
- return ti({
6602
+ return si({
6561
6603
  kind: "schema",
6562
6604
  type: "strict_object",
6563
6605
  reference: Q,
@@ -6572,7 +6614,7 @@ function Q(e, t) {
6572
6614
  for (let r in this.entries) {
6573
6615
  let i = this.entries[r];
6574
6616
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6575
- let a = r in n ? n[r] : /* @__PURE__ */ ri(i), o = i["~run"]({ value: a }, t);
6617
+ let a = r in n ? n[r] : /* @__PURE__ */ li(i), o = i["~run"]({ value: a }, t);
6576
6618
  if (o.issues) {
6577
6619
  let i = {
6578
6620
  type: "object",
@@ -6588,7 +6630,7 @@ function Q(e, t) {
6588
6630
  }
6589
6631
  }
6590
6632
  o.typed || (e.typed = !1), e.value[r] = o.value;
6591
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ni(i);
6633
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ci(i);
6592
6634
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6593
6635
  input: void 0,
6594
6636
  expected: `"${r}"`,
@@ -6624,7 +6666,7 @@ function Q(e, t) {
6624
6666
  }
6625
6667
  /* @__NO_SIDE_EFFECTS__ */
6626
6668
  function $(e) {
6627
- return ti({
6669
+ return si({
6628
6670
  kind: "schema",
6629
6671
  type: "string",
6630
6672
  reference: $,
@@ -6637,19 +6679,19 @@ function $(e) {
6637
6679
  });
6638
6680
  }
6639
6681
  /* @__NO_SIDE_EFFECTS__ */
6640
- function ui(e) {
6682
+ function gi(e) {
6641
6683
  let t;
6642
6684
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6643
6685
  else t = n.issues;
6644
6686
  return t;
6645
6687
  }
6646
6688
  /* @__NO_SIDE_EFFECTS__ */
6647
- function di(e, t) {
6648
- return ti({
6689
+ function _i(e, t) {
6690
+ return si({
6649
6691
  kind: "schema",
6650
6692
  type: "union",
6651
- reference: di,
6652
- expects: /* @__PURE__ */ ei(e.map((e) => e.expects), "|"),
6693
+ reference: _i,
6694
+ expects: /* @__PURE__ */ oi(e.map((e) => e.expects), "|"),
6653
6695
  async: !1,
6654
6696
  options: e,
6655
6697
  message: t,
@@ -6668,29 +6710,29 @@ function di(e, t) {
6668
6710
  if (n) return n;
6669
6711
  if (r) {
6670
6712
  if (r.length === 1) return r[0];
6671
- X(this, "type", e, t, { issues: /* @__PURE__ */ ui(r) }), e.typed = !0;
6713
+ X(this, "type", e, t, { issues: /* @__PURE__ */ gi(r) }), e.typed = !0;
6672
6714
  } else if (i?.length === 1) return i[0];
6673
- else X(this, "type", e, t, { issues: /* @__PURE__ */ ui(i) });
6715
+ else X(this, "type", e, t, { issues: /* @__PURE__ */ gi(i) });
6674
6716
  return e;
6675
6717
  }
6676
6718
  });
6677
6719
  }
6678
- var fi = /* @__PURE__ */ Q({
6720
+ var vi = /* @__PURE__ */ Q({
6679
6721
  en: /* @__PURE__ */ $(),
6680
6722
  es: /* @__PURE__ */ $()
6681
- }), pi = {
6723
+ }), yi = {
6682
6724
  id: /* @__PURE__ */ $(),
6683
6725
  label: /* @__PURE__ */ Q({
6684
- en: /* @__PURE__ */ ci(/* @__PURE__ */ $()),
6685
- es: /* @__PURE__ */ ci(/* @__PURE__ */ $())
6726
+ en: /* @__PURE__ */ mi(/* @__PURE__ */ $()),
6727
+ es: /* @__PURE__ */ mi(/* @__PURE__ */ $())
6686
6728
  }),
6687
6729
  description: /* @__PURE__ */ Q({
6688
- en: /* @__PURE__ */ ci(/* @__PURE__ */ $()),
6689
- es: /* @__PURE__ */ ci(/* @__PURE__ */ $())
6730
+ en: /* @__PURE__ */ mi(/* @__PURE__ */ $()),
6731
+ es: /* @__PURE__ */ mi(/* @__PURE__ */ $())
6690
6732
  }),
6691
6733
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6692
6734
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6693
- }, mi = (e) => /* @__PURE__ */ di(e.map((e) => /* @__PURE__ */ oi(e))), hi = mi([
6735
+ }, bi = (e) => /* @__PURE__ */ _i(e.map((e) => /* @__PURE__ */ fi(e))), xi = bi([
6694
6736
  "app",
6695
6737
  "connector",
6696
6738
  "connectorConnection",
@@ -6712,33 +6754,33 @@ var fi = /* @__PURE__ */ Q({
6712
6754
  "presenter",
6713
6755
  "presenterPresentation",
6714
6756
  "tool"
6715
- ]), gi = mi([
6757
+ ]), Si = bi([
6716
6758
  "danger",
6717
6759
  "success",
6718
6760
  "warning"
6719
- ]), _i = mi([
6761
+ ]), Ci = bi([
6720
6762
  "alpha",
6721
6763
  "beta",
6722
6764
  "releaseCandidate",
6723
6765
  "generalAvailability"
6724
- ]), vi = /* @__PURE__ */ Q({
6725
- color: gi,
6766
+ ]), wi = /* @__PURE__ */ Q({
6767
+ color: Si,
6726
6768
  label: /* @__PURE__ */ $()
6727
- }), yi = {
6728
- ...pi,
6729
- typeId: hi
6730
- }, bi = /* @__PURE__ */ Q({
6769
+ }), Ti = {
6731
6770
  ...yi,
6732
- order: /* @__PURE__ */ si(),
6771
+ typeId: xi
6772
+ }, Ei = /* @__PURE__ */ Q({
6773
+ ...Ti,
6774
+ order: /* @__PURE__ */ pi(),
6733
6775
  path: /* @__PURE__ */ $()
6734
- }), xi = {
6735
- ...yi,
6736
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ si()),
6737
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ si()),
6738
- status: /* @__PURE__ */ Z(vi),
6739
- statusId: /* @__PURE__ */ Z(_i)
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)
6740
6782
  };
6741
- ({ ...xi }), mi([
6783
+ ({ ...Di }), bi([
6742
6784
  "app",
6743
6785
  "engine",
6744
6786
  "connector",
@@ -6748,17 +6790,17 @@ var fi = /* @__PURE__ */ Q({
6748
6790
  ]);
6749
6791
  //#endregion
6750
6792
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-aYmFWSrn.js
6751
- var Si = {
6752
- ...xi,
6793
+ var Oi = {
6794
+ ...Di,
6753
6795
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6754
6796
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6755
6797
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6756
6798
  version: /* @__PURE__ */ $()
6757
6799
  };
6758
- ({ ...Si });
6800
+ ({ ...Oi });
6759
6801
  //#endregion
6760
6802
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6761
- var Ci = mi([
6803
+ var ki = bi([
6762
6804
  "abortOperation",
6763
6805
  "auditObjectContent",
6764
6806
  "createObject",
@@ -6774,39 +6816,39 @@ var Ci = mi([
6774
6816
  "retrieveChunks",
6775
6817
  "retrieveRecords",
6776
6818
  "upsertRecords"
6777
- ]), wi = mi([
6819
+ ]), Ai = bi([
6778
6820
  "application",
6779
6821
  "curatedDataset",
6780
6822
  "database",
6781
6823
  "fileStore"
6782
- ]), Ti = /* @__PURE__ */ Q({ label: fi }), Ei = mi([
6824
+ ]), ji = /* @__PURE__ */ Q({ label: vi }), Mi = bi([
6783
6825
  "bidirectional",
6784
6826
  "destination",
6785
6827
  "source",
6786
6828
  "unknown"
6787
- ]), Di = /* @__PURE__ */ Q({ label: fi }), Oi = /* @__PURE__ */ Q({
6788
- authMethodId: mi([
6829
+ ]), Ni = /* @__PURE__ */ Q({ label: vi }), Pi = /* @__PURE__ */ Q({
6830
+ authMethodId: bi([
6789
6831
  "apiKey",
6790
6832
  "disabled",
6791
6833
  "oAuth2",
6792
6834
  "none"
6793
6835
  ]),
6794
- activeConnectionCount: /* @__PURE__ */ ci(/* @__PURE__ */ si()),
6795
- canDescribe: /* @__PURE__ */ ci(/* @__PURE__ */ ai()),
6796
- id: /* @__PURE__ */ ci(/* @__PURE__ */ $()),
6797
- label: /* @__PURE__ */ ci(fi),
6798
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ si()),
6799
- params: /* @__PURE__ */ ci(/* @__PURE__ */ ii(/* @__PURE__ */ li(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6800
- }), ki = /* @__PURE__ */ Q({
6801
- ...Si,
6802
- typeId: /* @__PURE__ */ oi("connector"),
6803
- actionNames: /* @__PURE__ */ ii(Ci),
6804
- category: /* @__PURE__ */ Z(Ti),
6805
- categoryId: wi,
6806
- implementations: /* @__PURE__ */ li(/* @__PURE__ */ $(), Oi),
6807
- usage: /* @__PURE__ */ Z(Di),
6808
- usageId: /* @__PURE__ */ Z(Ei)
6809
- }), Ai = {
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 = {
6810
6852
  abortOperation: "Abort Operation",
6811
6853
  auditObjectContent: "Audit Object Content",
6812
6854
  createObject: "Create Object",
@@ -6822,12 +6864,12 @@ var Ci = mi([
6822
6864
  retrieveChunks: "Retrieve Chunks",
6823
6865
  retrieveRecords: "Retrieve Records",
6824
6866
  upsertRecords: "Upsert Records"
6825
- }, ji = /* @__PURE__ */ new Set([
6867
+ }, Li = /* @__PURE__ */ new Set([
6826
6868
  "createObject",
6827
6869
  "dropObject",
6828
6870
  "removeRecords",
6829
6871
  "upsertRecords"
6830
- ]), Mi = /* @__PURE__ */ new Set([
6872
+ ]), Ri = /* @__PURE__ */ new Set([
6831
6873
  "auditObjectContent",
6832
6874
  "findObject",
6833
6875
  "getInfo",
@@ -6838,57 +6880,57 @@ var Ci = mi([
6838
6880
  "retrieveChunks",
6839
6881
  "retrieveRecords"
6840
6882
  ]);
6841
- function Ni(e) {
6883
+ function zi(e) {
6842
6884
  let t = !1, n = !1;
6843
- for (let r of e) Mi.has(r) && (t = !0), ji.has(r) && (n = !0);
6885
+ for (let r of e) Ri.has(r) && (t = !0), Li.has(r) && (n = !0);
6844
6886
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6845
6887
  }
6846
- function Pi(e) {
6888
+ function Bi(e) {
6847
6889
  let t = new Set(e), n = "|Action|Supported|\n";
6848
6890
  n += "|:----|:-------:|\n";
6849
- for (let e of Object.keys(Ai)) n += `| ${Ai[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6891
+ for (let e of Object.keys(Ii)) n += `| ${Ii[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6850
6892
  return n;
6851
6893
  }
6852
6894
  //#endregion
6853
6895
  //#region src/actions/documentActions.ts
6854
- var Fi = "<!-- CONNECTOR_ACTIONS_START -->", Ii = "<!-- CONNECTOR_ACTIONS_END -->", Li = "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.", Ri = {
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 = {
6855
6897
  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.",
6856
6898
  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.",
6857
6899
  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.",
6858
6900
  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."
6859
- }, zi = "The table below lists all connector actions and highlights those supported by this connector.";
6860
- async function Bi() {
6901
+ }, Gi = "The table below lists all connector actions and highlights those supported by this connector.";
6902
+ async function Ki() {
6861
6903
  try {
6862
6904
  K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6863
- let e = (await G("config.json")).actionNames ?? [], t = Ni(e), n = Pi(e);
6864
- await zn(`${Li}\n\n${Ri[t]} ${zi}\n\n${n}`, Fi, Ii), q("Actions documented");
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");
6865
6907
  } catch (e) {
6866
6908
  console.error("❌ Error documenting actions", e), process.exit(1);
6867
6909
  }
6868
6910
  }
6869
6911
  //#endregion
6870
6912
  //#region src/actions/documentOpening.ts
6871
- var Vi = "<!-- OPENING_START -->", Hi = "<!-- OPENING_END -->";
6872
- async function Ui() {
6913
+ var qi = "<!-- OPENING_START -->", Ji = "<!-- OPENING_END -->";
6914
+ async function Yi() {
6873
6915
  try {
6874
6916
  K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6875
6917
  let e = await G("package.json"), t = await G("config.json"), { owner: n, repo: r } = Hn(e, "document opening");
6876
- await zn(Ki(n, r, Wi(e), Gi(t)), Vi, Hi), q("Opening documented");
6918
+ await zn(Qi(n, r, Xi(e), Zi(t)), qi, Ji), q("Opening documented");
6877
6919
  } catch (e) {
6878
6920
  console.error("❌ Error documenting opening", e), process.exit(1);
6879
6921
  }
6880
6922
  }
6881
- function Wi(e) {
6923
+ function Xi(e) {
6882
6924
  let t = e.license;
6883
6925
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6884
6926
  return t;
6885
6927
  }
6886
- function Gi(e) {
6928
+ function Zi(e) {
6887
6929
  let t = e.description.en;
6888
6930
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6889
6931
  return t;
6890
6932
  }
6891
- function Ki(e, t, n, r) {
6933
+ function Qi(e, t, n, r) {
6892
6934
  let i = `https://github.com/${e}/${t}`;
6893
6935
  return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6894
6936
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
@@ -6916,31 +6958,31 @@ ${r}`;
6916
6958
  }
6917
6959
  //#endregion
6918
6960
  //#region src/actions/documentUsage.ts
6919
- var qi = "<!-- USAGE_START -->", Ji = "<!-- USAGE_END -->";
6920
- async function Yi() {
6961
+ var $i = "<!-- USAGE_START -->", ea = "<!-- USAGE_END -->";
6962
+ async function ta() {
6921
6963
  try {
6922
6964
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6923
- let e = await G("package.json"), t = Xi(e);
6924
- await zn($i(t, Zi(t), Qi(e.engines?.node), Qi(e.engines?.npm), Qi(e.devDependencies?.typescript)), qi, Ji), q("Usage documented");
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");
6925
6967
  } catch (e) {
6926
6968
  console.error("❌ Error documenting usage", e), process.exit(1);
6927
6969
  }
6928
6970
  }
6929
- function Xi(e) {
6971
+ function na(e) {
6930
6972
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6931
6973
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6932
6974
  return n.replace(/^git\+/, "");
6933
6975
  }
6934
- function Zi(e) {
6976
+ function ra(e) {
6935
6977
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6936
6978
  }
6937
- function Qi(e) {
6979
+ function ia(e) {
6938
6980
  if (e == null) throw Error("package.json version range is required to document usage.");
6939
6981
  let t = /\d+(?:\.\d+)*/.exec(e);
6940
6982
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6941
6983
  return t[0];
6942
6984
  }
6943
- function $i(e, t, n, r, i) {
6985
+ function aa(e, t, n, r, i) {
6944
6986
  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.
6945
6987
 
6946
6988
  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.
@@ -6955,7 +6997,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
6955
6997
  }
6956
6998
  //#endregion
6957
6999
  //#region src/actions/formatCode.ts
6958
- async function ea() {
7000
+ async function oa() {
6959
7001
  try {
6960
7002
  K("Format Code"), await W("1️⃣ Format", "prettier", [
6961
7003
  "--write",
@@ -6970,7 +7012,7 @@ async function ea() {
6970
7012
  }
6971
7013
  //#endregion
6972
7014
  //#region src/actions/lintCode.ts
6973
- async function ta() {
7015
+ async function sa() {
6974
7016
  try {
6975
7017
  K("Lint Code"), await W("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6976
7018
  } catch (e) {
@@ -6979,7 +7021,7 @@ async function ta() {
6979
7021
  }
6980
7022
  //#endregion
6981
7023
  //#region src/utilities/cloudflare.ts
6982
- async function na() {
7024
+ async function ca() {
6983
7025
  let e = await G("config.json"), t = {
6984
7026
  body: JSON.stringify(e),
6985
7027
  headers: { "Content-Type": "application/json" },
@@ -6987,7 +7029,7 @@ async function na() {
6987
7029
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6988
7030
  if (!n.ok) throw Error(await n.text());
6989
7031
  }
6990
- async function ra(e, t) {
7032
+ async function la(e, t) {
6991
7033
  async function n(e, t, r) {
6992
7034
  for (let i of r) {
6993
7035
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -7005,7 +7047,7 @@ async function ra(e, t) {
7005
7047
  let r = await Nn(`${e}/${t}/`);
7006
7048
  await n(`${e}/${t}`, t, r);
7007
7049
  }
7008
- async function ia(e) {
7050
+ async function ua(e) {
7009
7051
  let t = e.id, n = {
7010
7052
  body: JSON.stringify(e),
7011
7053
  headers: { "Content-Type": "application/json" },
@@ -7013,7 +7055,7 @@ async function ia(e) {
7013
7055
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7014
7056
  if (!r.ok) throw Error(await r.text());
7015
7057
  }
7016
- async function aa(e, t) {
7058
+ async function da(e, t) {
7017
7059
  let n = `v${e.version ?? "unknown"}`;
7018
7060
  async function r(e, r = "") {
7019
7061
  let i = await Nn(e, { withFileTypes: !0 });
@@ -7037,24 +7079,24 @@ async function aa(e, t) {
7037
7079
  }
7038
7080
  //#endregion
7039
7081
  //#region node_modules/valibot/dist/index.mjs
7040
- var oa = {
7082
+ var fa = {
7041
7083
  lang: void 0,
7042
7084
  message: void 0,
7043
7085
  abortEarly: void 0,
7044
7086
  abortPipeEarly: void 0
7045
7087
  };
7046
7088
  /* @__NO_SIDE_EFFECTS__ */
7047
- function sa(e) {
7089
+ function pa(e) {
7048
7090
  return e ? {
7049
7091
  lang: e?.lang ?? void 0,
7050
7092
  message: e?.message,
7051
7093
  abortEarly: e?.abortEarly ?? void 0,
7052
7094
  abortPipeEarly: e?.abortPipeEarly ?? void 0
7053
- } : oa;
7095
+ } : fa;
7054
7096
  }
7055
7097
  /* @__NO_SIDE_EFFECTS__ */
7056
- function ca(e, t, n) {
7057
- let r = e["~run"]({ value: t }, /* @__PURE__ */ sa(n));
7098
+ function ma(e, t, n) {
7099
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ pa(n));
7058
7100
  return {
7059
7101
  typed: r.typed,
7060
7102
  success: !r.issues,
@@ -7064,21 +7106,21 @@ function ca(e, t, n) {
7064
7106
  }
7065
7107
  //#endregion
7066
7108
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7067
- var la = mi([
7109
+ var ha = bi([
7068
7110
  "list",
7069
7111
  "render",
7070
7112
  "setColorMode"
7071
- ]), ua = /* @__PURE__ */ Q({
7072
- ...Si,
7073
- typeId: /* @__PURE__ */ oi("presenter"),
7074
- actionNames: /* @__PURE__ */ ii(la),
7075
- presentations: /* @__PURE__ */ ii(bi)
7076
- }), da = [
7113
+ ]), ga = /* @__PURE__ */ Q({
7114
+ ...Oi,
7115
+ typeId: /* @__PURE__ */ fi("presenter"),
7116
+ actionNames: /* @__PURE__ */ ui(ha),
7117
+ presentations: /* @__PURE__ */ ui(Ei)
7118
+ }), _a = [
7077
7119
  "1️⃣ ",
7078
7120
  "2️⃣ ",
7079
7121
  "3️⃣ ",
7080
7122
  "4️⃣ "
7081
- ], fa = [{
7123
+ ], va = [{
7082
7124
  id: "unit",
7083
7125
  label: "Run unit tests",
7084
7126
  command: "vitest",
@@ -7091,36 +7133,36 @@ var la = mi([
7091
7133
  arguments: ["test", "--pass-with-no-tests"],
7092
7134
  configFileName: "playwright.config.ts"
7093
7135
  }];
7094
- async function pa() {
7136
+ async function ya() {
7095
7137
  try {
7096
7138
  K("Build Project"), await W("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7097
7139
  } catch (e) {
7098
7140
  console.error("❌ Error building project", e), process.exit(1);
7099
7141
  }
7100
7142
  }
7101
- async function ma() {
7143
+ async function ba() {
7102
7144
  try {
7103
7145
  K("Publish Project");
7104
7146
  let e = await G("package.json"), t = await G("config.json");
7105
- await Ca("1️⃣ ", e, t, Vn(t.id)), q(`Project version '${e.version ?? "unknown"}' published.`);
7147
+ await ka("1️⃣ ", e, t, Vn(t.id)), q(`Project version '${e.version ?? "unknown"}' published.`);
7106
7148
  } catch (e) {
7107
7149
  console.error("❌ Error publishing project", e), process.exit(1);
7108
7150
  }
7109
7151
  }
7110
- async function ha() {
7152
+ async function xa() {
7111
7153
  try {
7112
7154
  K("Release Project");
7113
7155
  let e = await G("package.json"), t = await G("config.json");
7114
- await Sa("1️⃣ ", e);
7156
+ await Oa("1️⃣ ", e);
7115
7157
  let n = Vn(t.id);
7116
7158
  switch (n.typeId) {
7117
7159
  case "connector":
7118
- t = await _a("2️⃣ ", e);
7160
+ t = await Ca("2️⃣ ", e);
7119
7161
  break;
7120
7162
  case "presenter":
7121
- t = await va("2️⃣ ", e);
7163
+ t = await wa("2️⃣ ", e);
7122
7164
  break;
7123
- default: t = await ga("2️⃣ ", e);
7165
+ default: t = await Sa("2️⃣ ", e);
7124
7166
  }
7125
7167
  await W("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7126
7168
  "commit",
@@ -7130,7 +7172,7 @@ async function ha() {
7130
7172
  "push",
7131
7173
  "origin",
7132
7174
  "main:main"
7133
- ]), await Ca("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await W("8️⃣ Create GitHub release", "gh", [
7175
+ ]), await ka("7️⃣ ", e, t, n), n.publishedTo === "npm" ? await W("8️⃣ Create GitHub release", "gh", [
7134
7176
  "release",
7135
7177
  "create",
7136
7178
  `v${e.version ?? "unknown"}`,
@@ -7143,39 +7185,39 @@ async function ha() {
7143
7185
  console.error("❌ Error releasing project", e), process.exit(1);
7144
7186
  }
7145
7187
  }
7146
- async function ga(e, t) {
7188
+ async function Sa(e, t) {
7147
7189
  J(`${e} Build project configuration`);
7148
7190
  let n = await G("config.json");
7149
7191
  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;
7150
7192
  }
7151
- async function _a(e, t) {
7193
+ async function Ca(e, t) {
7152
7194
  J(`${e} Build connector project configuration`);
7153
- let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ca(ki, n);
7195
+ let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ma(Fi, n);
7154
7196
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7155
7197
  let a = Wn(r);
7156
- return await ya(t, n, a, Ni(a));
7198
+ return await Ta(t, n, a, zi(a));
7157
7199
  }
7158
- async function va(e, t) {
7200
+ async function wa(e, t) {
7159
7201
  J(`${e} Build presenter project configuration`);
7160
- let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ca(ua, n);
7202
+ let [n, r] = await Promise.all([G("config.json"), In("src/index.ts")]), i = /* @__PURE__ */ ma(ga, n);
7161
7203
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7162
- return await ya(t, n, Wn(r));
7204
+ return await Ta(t, n, Wn(r));
7163
7205
  }
7164
- async function ya(e, t, n, r) {
7206
+ async function Ta(e, t, n, r) {
7165
7207
  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;
7166
7208
  }
7167
- async function ba() {
7209
+ async function Ea() {
7168
7210
  try {
7169
7211
  K("Synchronise Project with GitHub");
7170
7212
  let e = await G("package.json"), t = await G("config.json");
7171
- switch (await Sa("1️⃣ ", e), Vn(t.id).typeId) {
7213
+ switch (await Oa("1️⃣ ", e), Vn(t.id).typeId) {
7172
7214
  case "connector":
7173
- await _a("2️⃣ ", e);
7215
+ await Ca("2️⃣ ", e);
7174
7216
  break;
7175
7217
  case "presenter":
7176
- await va("2️⃣ ", e);
7218
+ await wa("2️⃣ ", e);
7177
7219
  break;
7178
- default: await ga("2️⃣ ", e);
7220
+ default: await Sa("2️⃣ ", e);
7179
7221
  }
7180
7222
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7181
7223
  "commit",
@@ -7190,14 +7232,14 @@ async function ba() {
7190
7232
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7191
7233
  }
7192
7234
  }
7193
- async function xa(e = ["unit"], t = !1) {
7235
+ async function Da(e = ["unit"], t = !1) {
7194
7236
  try {
7195
7237
  K("Test Project");
7196
7238
  let n = 0;
7197
- for (let r of fa) {
7239
+ for (let r of va) {
7198
7240
  if (!e.includes(r.id) || await Ln(r.configFileName) === null) continue;
7199
7241
  let i = t && r.id === "unit" ? ["--coverage"] : [];
7200
- await W(`${da[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7242
+ await W(`${_a[n] ?? ""} ${r.label}`, r.command, [...r.arguments, ...i]), n += 1;
7201
7243
  }
7202
7244
  if (n === 0) {
7203
7245
  console.warn("\n⚠️ No tests configured for this project.\n");
@@ -7208,7 +7250,7 @@ async function xa(e = ["unit"], t = !1) {
7208
7250
  console.error("❌ Error testing project", e), process.exit(1);
7209
7251
  }
7210
7252
  }
7211
- async function Sa(e, t, n = "./") {
7253
+ async function Oa(e, t, n = "./") {
7212
7254
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7213
7255
  else {
7214
7256
  let e = t.version, n = t.version.split(".");
@@ -7216,17 +7258,17 @@ async function Sa(e, t, n = "./") {
7216
7258
  }
7217
7259
  await Rn(`${n}package.json`, t);
7218
7260
  }
7219
- async function Ca(e, t, n, r) {
7220
- if (r.typeId === "app") J(`${e} Register module`), await na();
7221
- else if (r.typeId === "engine") J(`${e} Register module`), await aa(t, `dpuse-engine-eu/${r.uploadGroupName ?? "unknown"}`), await ia(n);
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);
7222
7264
  else if (r.uploadGroupName === void 0) J(`${e} Registration NOT required`);
7223
7265
  else {
7224
7266
  J(`${e} Register module`);
7225
7267
  let i = n.id.split("-").slice(2).join("-");
7226
- await aa(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await ia(n);
7268
+ await da(t, `dpuse-engine-eu/${r.uploadGroupName}/${i}`), await ua(n);
7227
7269
  }
7228
7270
  }
7229
7271
  //#endregion
7230
- export { qn as auditDependencies, pa as buildProject, Jn as checkConfigFiles, tr as checkDependencies, Bi as documentActions, ur as documentBundleSizes, Mr as documentDependencies, Gr as documentGovernance, Ui as documentOpening, Yi as documentUsage, ea as formatCode, ta as lintCode, ma as publishProject, ha as releaseProject, ba as syncProjectWithGitHub, xa as testProject, ra as uploadDirectoryToR2 };
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 };
7231
7273
 
7232
7274
  //# sourceMappingURL=dpuse-development.es.js.map