@dpuse/dpuse-development 0.3.676 → 0.3.678

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,10 +104,10 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
104
104
 
105
105
  |Chunk/Module/File|Composition|
106
106
  |:------ |:-----------|
107
- | dist/dpuse-development.es.js | 308.8 kB · brotli 62.3 kB |
108
- |     acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 42.3% |
109
- |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 37.1% |
110
- |     src | `██░░░░░░░░░░░░░░░░░░` 9.7% |
107
+ | dist/dpuse-development.es.js | 312.1 kB · brotli 63.0 kB |
108
+ |     acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.9% |
109
+ |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.7% |
110
+ |     src | `██░░░░░░░░░░░░░░░░░░` 10.2% |
111
111
  |         documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
112
112
  |         manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
113
113
  |         index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
@@ -115,15 +115,16 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
115
115
  |         checkConfigFiles.ts | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
116
116
  |         documentGovernance.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
117
117
  |         documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
118
+ |         documentOpening.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
118
119
  |         cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
119
120
  |         documentUsage.ts | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
120
121
  |         checkDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
121
122
  |         formatCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
122
123
  |         auditDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
123
124
  |         lintCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
124
- |     (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░` 6.8% |
125
+ |     (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░` 7.2% |
125
126
  |     @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 3.9% |
126
- |         dist/componentConfig.schema-DzuoA1f0.js | `█░░░░░░░░░░░░░░░░░░░` 3.0% |
127
+ |         dist/componentConfig.schema-DzuoA1f0.js | `█░░░░░░░░░░░░░░░░░░░` 2.9% |
127
128
  |         dist/dpuse-shared-componentModuleConnector.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
128
129
  |         dist/dpuse-shared-componentModuleContext.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
129
130
  |         dist/dpuse-shared-componentModulePresenter.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
@@ -6320,7 +6320,7 @@ function $r(e) {
6320
6320
  let t = typeof e;
6321
6321
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6322
6322
  }
6323
- function X(e, t, n, r, i) {
6323
+ function ei(e, t, n, r, i) {
6324
6324
  let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ $r(a), c = {
6325
6325
  kind: e.kind,
6326
6326
  type: e.type,
@@ -6337,17 +6337,17 @@ function X(e, t, n, r, i) {
6337
6337
  }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Qr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Xr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Jr(c.lang);
6338
6338
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6339
6339
  }
6340
- var ei = /* @__PURE__ */ new WeakMap();
6340
+ var ti = /* @__PURE__ */ new WeakMap();
6341
6341
  /* @__NO_SIDE_EFFECTS__ */
6342
- function ti(e) {
6343
- let t = ei.get(e);
6342
+ function X(e) {
6343
+ let t = ti.get(e);
6344
6344
  return t || (t = {
6345
6345
  version: 1,
6346
6346
  vendor: "valibot",
6347
6347
  validate(t) {
6348
6348
  return e["~run"]({ value: t }, /* @__PURE__ */ Kr());
6349
6349
  }
6350
- }, ei.set(e, t)), t;
6350
+ }, ti.set(e, t)), t;
6351
6351
  }
6352
6352
  /* @__NO_SIDE_EFFECTS__ */
6353
6353
  function ni(e, t) {
@@ -6377,7 +6377,7 @@ function oi(e, t) {
6377
6377
  item: e,
6378
6378
  message: t,
6379
6379
  get "~standard"() {
6380
- return /* @__PURE__ */ ti(this);
6380
+ return /* @__PURE__ */ X(this);
6381
6381
  },
6382
6382
  "~run"(e, t) {
6383
6383
  let n = e.value;
@@ -6401,7 +6401,7 @@ function oi(e, t) {
6401
6401
  }
6402
6402
  a.typed || (e.typed = !1), e.value.push(a.value);
6403
6403
  }
6404
- } else X(this, "type", e, t);
6404
+ } else ei(this, "type", e, t);
6405
6405
  return e;
6406
6406
  }
6407
6407
  };
@@ -6416,10 +6416,10 @@ function si(e) {
6416
6416
  async: !1,
6417
6417
  message: e,
6418
6418
  get "~standard"() {
6419
- return /* @__PURE__ */ ti(this);
6419
+ return /* @__PURE__ */ X(this);
6420
6420
  },
6421
6421
  "~run"(e, t) {
6422
- return typeof e.value == "boolean" ? e.typed = !0 : X(this, "type", e, t), e;
6422
+ return typeof e.value == "boolean" ? e.typed = !0 : ei(this, "type", e, t), e;
6423
6423
  }
6424
6424
  };
6425
6425
  }
@@ -6434,10 +6434,10 @@ function ci(e, t) {
6434
6434
  literal: e,
6435
6435
  message: t,
6436
6436
  get "~standard"() {
6437
- return /* @__PURE__ */ ti(this);
6437
+ return /* @__PURE__ */ X(this);
6438
6438
  },
6439
6439
  "~run"(e, t) {
6440
- return e.value === this.literal ? e.typed = !0 : X(this, "type", e, t), e;
6440
+ return e.value === this.literal ? e.typed = !0 : ei(this, "type", e, t), e;
6441
6441
  }
6442
6442
  };
6443
6443
  }
@@ -6452,7 +6452,7 @@ function Z(e, t) {
6452
6452
  wrapped: e,
6453
6453
  default: t,
6454
6454
  get "~standard"() {
6455
- return /* @__PURE__ */ ti(this);
6455
+ return /* @__PURE__ */ X(this);
6456
6456
  },
6457
6457
  "~run"(e, t) {
6458
6458
  return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ ai(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
@@ -6469,10 +6469,10 @@ function li(e) {
6469
6469
  async: !1,
6470
6470
  message: e,
6471
6471
  get "~standard"() {
6472
- return /* @__PURE__ */ ti(this);
6472
+ return /* @__PURE__ */ X(this);
6473
6473
  },
6474
6474
  "~run"(e, t) {
6475
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : X(this, "type", e, t), e;
6475
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : ei(this, "type", e, t), e;
6476
6476
  }
6477
6477
  };
6478
6478
  }
@@ -6487,7 +6487,7 @@ function Q(e, t) {
6487
6487
  entries: e,
6488
6488
  message: t,
6489
6489
  get "~standard"() {
6490
- return /* @__PURE__ */ ti(this);
6490
+ return /* @__PURE__ */ X(this);
6491
6491
  },
6492
6492
  "~run"(e, t) {
6493
6493
  let n = e.value;
@@ -6513,7 +6513,7 @@ function Q(e, t) {
6513
6513
  }
6514
6514
  o.typed || (e.typed = !1), e.value[r] = o.value;
6515
6515
  } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ii(i);
6516
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6516
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (ei(this, "key", e, t, {
6517
6517
  input: void 0,
6518
6518
  expected: `"${r}"`,
6519
6519
  path: [{
@@ -6525,7 +6525,7 @@ function Q(e, t) {
6525
6525
  }]
6526
6526
  }), t.abortEarly)) break;
6527
6527
  }
6528
- } else X(this, "type", e, t);
6528
+ } else ei(this, "type", e, t);
6529
6529
  return e;
6530
6530
  }
6531
6531
  };
@@ -6541,7 +6541,7 @@ function ui(e, t) {
6541
6541
  wrapped: e,
6542
6542
  default: t,
6543
6543
  get "~standard"() {
6544
- return /* @__PURE__ */ ti(this);
6544
+ return /* @__PURE__ */ X(this);
6545
6545
  },
6546
6546
  "~run"(e, t) {
6547
6547
  return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ ai(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
@@ -6560,7 +6560,7 @@ function di(e, t, n) {
6560
6560
  value: t,
6561
6561
  message: n,
6562
6562
  get "~standard"() {
6563
- return /* @__PURE__ */ ti(this);
6563
+ return /* @__PURE__ */ X(this);
6564
6564
  },
6565
6565
  "~run"(e, t) {
6566
6566
  let n = e.value;
@@ -6599,7 +6599,7 @@ function di(e, t, n) {
6599
6599
  }
6600
6600
  (!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
6601
6601
  }
6602
- } else X(this, "type", e, t);
6602
+ } else ei(this, "type", e, t);
6603
6603
  return e;
6604
6604
  }
6605
6605
  };
@@ -6614,10 +6614,10 @@ function $(e) {
6614
6614
  async: !1,
6615
6615
  message: e,
6616
6616
  get "~standard"() {
6617
- return /* @__PURE__ */ ti(this);
6617
+ return /* @__PURE__ */ X(this);
6618
6618
  },
6619
6619
  "~run"(e, t) {
6620
- return typeof e.value == "string" ? e.typed = !0 : X(this, "type", e, t), e;
6620
+ return typeof e.value == "string" ? e.typed = !0 : ei(this, "type", e, t), e;
6621
6621
  }
6622
6622
  };
6623
6623
  }
@@ -6639,7 +6639,7 @@ function pi(e, t) {
6639
6639
  options: e,
6640
6640
  message: t,
6641
6641
  get "~standard"() {
6642
- return /* @__PURE__ */ ti(this);
6642
+ return /* @__PURE__ */ X(this);
6643
6643
  },
6644
6644
  "~run"(e, t) {
6645
6645
  let n, r, i;
@@ -6655,9 +6655,9 @@ function pi(e, t) {
6655
6655
  if (n) return n;
6656
6656
  if (r) {
6657
6657
  if (r.length === 1) return r[0];
6658
- X(this, "type", e, t, { issues: /* @__PURE__ */ fi(r) }), e.typed = !0;
6658
+ ei(this, "type", e, t, { issues: /* @__PURE__ */ fi(r) }), e.typed = !0;
6659
6659
  } else if (i?.length === 1) return i[0];
6660
- else X(this, "type", e, t, { issues: /* @__PURE__ */ fi(i) });
6660
+ else ei(this, "type", e, t, { issues: /* @__PURE__ */ fi(i) });
6661
6661
  return e;
6662
6662
  }
6663
6663
  };
@@ -6854,32 +6854,82 @@ async function zi() {
6854
6854
  }
6855
6855
  }
6856
6856
  //#endregion
6857
- //#region src/actions/documentUsage.ts
6858
- var Bi = "<!-- USAGE_START -->", Vi = "<!-- USAGE_END -->";
6857
+ //#region src/actions/documentOpening.ts
6858
+ var Bi = "<!-- OPENING_START -->", Vi = "<!-- OPENING_END -->";
6859
6859
  async function Hi() {
6860
+ try {
6861
+ K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6862
+ let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Ui(e), i = Ki(n, r, Wi(e), Gi(t));
6863
+ await zn("README.md", Wn(await G("./README.md"), i, Bi, Vi)), q("Opening documented");
6864
+ } catch (e) {
6865
+ console.error("❌ Error documenting opening", e), process.exit(1);
6866
+ }
6867
+ }
6868
+ function Ui(e) {
6869
+ let t = e.repository, n = typeof t == "string" ? t : t?.url;
6870
+ if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
6871
+ let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
6872
+ if (i?.[1] == null || i[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${n}'.`);
6873
+ return {
6874
+ owner: i[1],
6875
+ repo: i[2]
6876
+ };
6877
+ }
6878
+ function Wi(e) {
6879
+ let t = e.license;
6880
+ if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6881
+ return t;
6882
+ }
6883
+ function Gi(e) {
6884
+ let t = e.description.en;
6885
+ if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6886
+ return t.join("\n\n");
6887
+ }
6888
+ function Ki(e, t, n, r) {
6889
+ let i = `https://github.com/${e}/${t}`;
6890
+ return `[![License: ${n}](https://img.shields.io/badge/License-${n.replace(/-/g, "--")}-blue.svg)](./LICENSE)
6891
+ [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
6892
+ [![CI](${i}/actions/workflows/ci.yml/badge.svg)](${i}/actions/workflows/ci.yml)
6893
+ [![CodeQL](${i}/actions/workflows/codeql.yml/badge.svg)](${i}/actions/workflows/codeql.yml)
6894
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=${e}_${t}&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=${e}_${t})
6895
+
6896
+ [Documentation](https://www.dpuse.app) · [Report a Vulnerability](${i}/security/advisories/new) · [Open an Issue](${i}/issues)
6897
+
6898
+ ## About DPUse
6899
+
6900
+ DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing. **Sourcing** uses a library of [Connectors](https://www.dpuse.app) to establish [Connections](https://www.dpuse.app) to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured [Data Views](https://www.dpuse.app) from the underlying sources. **Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This provides the DPUse Engine with the structural framework required to generate deterministic transactions, facts, or observations. **Publishing** employs a library of [Presenters](https://www.dpuse.app) to render standard [Presentations](https://www.dpuse.app) immediately using the contextualised data; additionally, [Cookbooks](https://www.dpuse.app) of [Recipes](https://www.dpuse.app) allow you to build Data Apps using your preferred tools.
6901
+
6902
+ ## Introduction
6903
+
6904
+ ${r}`;
6905
+ }
6906
+ //#endregion
6907
+ //#region src/actions/documentUsage.ts
6908
+ var qi = "<!-- USAGE_START -->", Ji = "<!-- USAGE_END -->";
6909
+ async function Yi() {
6860
6910
  try {
6861
6911
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6862
- let e = await W("package.json"), t = Ui(e), n = Ki(t, Wi(t), Gi(e.engines?.node), Gi(e.engines?.npm));
6863
- await zn("README.md", Wn(await G("./README.md"), n, Bi, Vi)), q("Usage documented");
6912
+ let e = await W("package.json"), t = Xi(e), n = $i(t, Zi(t), Qi(e.engines?.node), Qi(e.engines?.npm), Qi(e.devDependencies?.typescript));
6913
+ await zn("README.md", Wn(await G("./README.md"), n, qi, Ji)), q("Usage documented");
6864
6914
  } catch (e) {
6865
6915
  console.error("❌ Error documenting usage", e), process.exit(1);
6866
6916
  }
6867
6917
  }
6868
- function Ui(e) {
6918
+ function Xi(e) {
6869
6919
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6870
6920
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6871
6921
  return n.replace(/^git\+/, "");
6872
6922
  }
6873
- function Wi(e) {
6923
+ function Zi(e) {
6874
6924
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6875
6925
  }
6876
- function Gi(e) {
6877
- if (e == null) throw Error("package.json 'engines' field is required to document usage.");
6878
- let t = /\d+(?:\.\d+)*/.exec(e);
6879
- if (t == null) throw Error(`Unable to parse engine version from '${e}'.`);
6926
+ function Qi(e) {
6927
+ if (e == null) throw Error("package.json version range is required to document usage.");
6928
+ let t = /\d+/.exec(e);
6929
+ if (t == null) throw Error(`Unable to parse major version from '${e}'.`);
6880
6930
  return t[0];
6881
6931
  }
6882
- function Ki(e, t, n, r) {
6932
+ function $i(e, t, n, r, i) {
6883
6933
  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.
6884
6934
 
6885
6935
  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.
@@ -6890,11 +6940,11 @@ cd ${t}
6890
6940
  npm install
6891
6941
  \`\`\`
6892
6942
 
6893
- _Requires [Node.js](https://nodejs.org/) ${n} or later and [npm](https://www.npmjs.com/) ${r} or later._`;
6943
+ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.com/) ${r} or later, and [TypeScript](https://www.typescriptlang.org/) ${i} or later._`;
6894
6944
  }
6895
6945
  //#endregion
6896
6946
  //#region src/actions/formatCode.ts
6897
- async function qi() {
6947
+ async function ea() {
6898
6948
  try {
6899
6949
  K("Format Code"), await Fn("1️⃣ Format", "prettier", [
6900
6950
  "--write",
@@ -6909,7 +6959,7 @@ async function qi() {
6909
6959
  }
6910
6960
  //#endregion
6911
6961
  //#region src/actions/lintCode.ts
6912
- async function Ji() {
6962
+ async function ta() {
6913
6963
  try {
6914
6964
  K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6915
6965
  } catch (e) {
@@ -6918,7 +6968,7 @@ async function Ji() {
6918
6968
  }
6919
6969
  //#endregion
6920
6970
  //#region src/utilities/cloudflare.ts
6921
- async function Yi() {
6971
+ async function na() {
6922
6972
  let e = await W("config.json"), t = {
6923
6973
  body: JSON.stringify(e),
6924
6974
  headers: { "Content-Type": "application/json" },
@@ -6926,7 +6976,7 @@ async function Yi() {
6926
6976
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6927
6977
  if (!n.ok) throw Error(await n.text());
6928
6978
  }
6929
- async function Xi(e, t) {
6979
+ async function ra(e, t) {
6930
6980
  async function n(e, t, r) {
6931
6981
  for (let i of r) {
6932
6982
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6944,7 +6994,7 @@ async function Xi(e, t) {
6944
6994
  let r = await Nn(`${e}/${t}/`);
6945
6995
  await n(`${e}/${t}`, t, r);
6946
6996
  }
6947
- async function Zi(e) {
6997
+ async function ia(e) {
6948
6998
  let t = e.id, n = {
6949
6999
  body: JSON.stringify(e),
6950
7000
  headers: { "Content-Type": "application/json" },
@@ -6952,7 +7002,7 @@ async function Zi(e) {
6952
7002
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6953
7003
  if (!r.ok) throw Error(await r.text());
6954
7004
  }
6955
- async function Qi(e, t) {
7005
+ async function aa(e, t) {
6956
7006
  let n = `v${e.version ?? "unknown"}`;
6957
7007
  async function r(e, r = "") {
6958
7008
  let i = await Nn(e, { withFileTypes: !0 });
@@ -6976,24 +7026,24 @@ async function Qi(e, t) {
6976
7026
  }
6977
7027
  //#endregion
6978
7028
  //#region node_modules/valibot/dist/index.mjs
6979
- var $i, ea = {
7029
+ var oa, sa = {
6980
7030
  lang: void 0,
6981
7031
  message: void 0,
6982
7032
  abortEarly: void 0,
6983
7033
  abortPipeEarly: void 0
6984
7034
  };
6985
7035
  /* @__NO_SIDE_EFFECTS__ */
6986
- function ta(e) {
6987
- return !e && !$i ? ea : {
6988
- lang: e?.lang ?? $i?.lang,
7036
+ function ca(e) {
7037
+ return !e && !oa ? sa : {
7038
+ lang: e?.lang ?? oa?.lang,
6989
7039
  message: e?.message,
6990
- abortEarly: e?.abortEarly ?? $i?.abortEarly,
6991
- abortPipeEarly: e?.abortPipeEarly ?? $i?.abortPipeEarly
7040
+ abortEarly: e?.abortEarly ?? oa?.abortEarly,
7041
+ abortPipeEarly: e?.abortPipeEarly ?? oa?.abortPipeEarly
6992
7042
  };
6993
7043
  }
6994
7044
  /* @__NO_SIDE_EFFECTS__ */
6995
- function na(e, t, n) {
6996
- let r = e["~run"]({ value: t }, /* @__PURE__ */ ta(n));
7045
+ function la(e, t, n) {
7046
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ ca(n));
6997
7047
  return {
6998
7048
  typed: r.typed,
6999
7049
  success: !r.issues,
@@ -7003,69 +7053,69 @@ function na(e, t, n) {
7003
7053
  }
7004
7054
  //#endregion
7005
7055
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
7006
- var ra = /* @__PURE__ */ Q({
7056
+ var ua = /* @__PURE__ */ Q({
7007
7057
  typeId: /* @__PURE__ */ ci("contextArea"),
7008
7058
  ...Si,
7009
7059
  modelRefs: /* @__PURE__ */ oi(xi),
7010
7060
  order: /* @__PURE__ */ li()
7011
- }), ia = mi(["listContextFocuses"]), aa = /* @__PURE__ */ Q({
7061
+ }), da = mi(["listContextFocuses"]), fa = /* @__PURE__ */ Q({
7012
7062
  typeId: /* @__PURE__ */ ci("context"),
7013
7063
  ...Ci,
7014
- actionNames: /* @__PURE__ */ oi(ia),
7015
- models: /* @__PURE__ */ oi(ra)
7016
- }), oa = mi([
7064
+ actionNames: /* @__PURE__ */ oi(da),
7065
+ models: /* @__PURE__ */ oi(ua)
7066
+ }), pa = mi([
7017
7067
  "list",
7018
7068
  "render",
7019
7069
  "setColorMode"
7020
- ]), sa = /* @__PURE__ */ Q({
7070
+ ]), ma = /* @__PURE__ */ Q({
7021
7071
  typeId: /* @__PURE__ */ ci("presenter"),
7022
7072
  ...Ci,
7023
- actionNames: /* @__PURE__ */ oi(oa),
7073
+ actionNames: /* @__PURE__ */ oi(pa),
7024
7074
  presentations: /* @__PURE__ */ oi(xi)
7025
7075
  });
7026
7076
  //#endregion
7027
7077
  //#region src/actions/manageProject.ts
7028
- async function ca() {
7078
+ async function ha() {
7029
7079
  try {
7030
7080
  K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7031
7081
  } catch (e) {
7032
7082
  console.error("❌ Error building project", e), process.exit(1);
7033
7083
  }
7034
7084
  }
7035
- async function la() {
7085
+ async function ga() {
7036
7086
  try {
7037
7087
  K("Publish Project");
7038
7088
  let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
7039
- if (n.typeId === "app") J("1️⃣ Register module"), await Yi();
7040
- else if (n.typeId === "engine") J("1️⃣ Register module"), await Qi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Zi(t);
7089
+ if (n.typeId === "app") J("1️⃣ Register module"), await na();
7090
+ else if (n.typeId === "engine") J("1️⃣ Register module"), await aa(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ia(t);
7041
7091
  else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
7042
7092
  else {
7043
7093
  J("1️⃣ Register module");
7044
7094
  let r = t.id.split("-").slice(2).join("-");
7045
- await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
7095
+ await aa(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ia(t);
7046
7096
  }
7047
7097
  q(`Project version '${e.version ?? "unknown"}' published.`);
7048
7098
  } catch (e) {
7049
7099
  console.error("❌ Error publishing project", e), process.exit(1);
7050
7100
  }
7051
7101
  }
7052
- async function ua() {
7102
+ async function _a() {
7053
7103
  try {
7054
7104
  K("Release Project");
7055
7105
  let e = await W("package.json"), t = await W("config.json");
7056
- await va("1️⃣ ", e);
7106
+ await Ta("1️⃣ ", e);
7057
7107
  let n = Bn(t.id);
7058
7108
  switch (n.typeId) {
7059
7109
  case "connector":
7060
- t = await fa("2️⃣ ", e);
7110
+ t = await ya("2️⃣ ", e);
7061
7111
  break;
7062
7112
  case "context":
7063
- t = await pa("2️⃣ ", e);
7113
+ t = await ba("2️⃣ ", e);
7064
7114
  break;
7065
7115
  case "presenter":
7066
- t = await ma("2️⃣ ", e);
7116
+ t = await xa("2️⃣ ", e);
7067
7117
  break;
7068
- default: t = await da("2️⃣ ", e);
7118
+ default: t = await va("2️⃣ ", e);
7069
7119
  }
7070
7120
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7071
7121
  "commit",
@@ -7075,13 +7125,13 @@ async function ua() {
7075
7125
  "push",
7076
7126
  "origin",
7077
7127
  "main:main"
7078
- ]), n.typeId === "app") J("7️⃣ Register module"), await Yi();
7079
- else if (n.typeId === "engine") J("7️⃣ Register module"), await Qi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Zi(t);
7128
+ ]), n.typeId === "app") J("7️⃣ Register module"), await na();
7129
+ else if (n.typeId === "engine") J("7️⃣ Register module"), await aa(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ia(t);
7080
7130
  else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7081
7131
  else {
7082
7132
  J("7️⃣ Register module");
7083
7133
  let r = t.id.split("-").slice(2).join("-");
7084
- await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
7134
+ await aa(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ia(t);
7085
7135
  }
7086
7136
  if (n.publishedTo === "npm") {
7087
7137
  let e = ".npmrc";
@@ -7100,48 +7150,48 @@ async function ua() {
7100
7150
  console.error("❌ Error releasing project", e), process.exit(1);
7101
7151
  }
7102
7152
  }
7103
- async function da(e, t) {
7153
+ async function va(e, t) {
7104
7154
  J(`${e} Build project configuration`);
7105
7155
  let n = await W("config.json");
7106
7156
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
7107
7157
  }
7108
- async function fa(e, t) {
7158
+ async function ya(e, t) {
7109
7159
  J(`${e} Build connector project configuration`);
7110
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(Oi, n);
7160
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ la(Oi, n);
7111
7161
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7112
7162
  let a = Hn(r);
7113
- return await ha(t, n, a, Mi(a));
7163
+ return await Sa(t, n, a, Mi(a));
7114
7164
  }
7115
- async function pa(e, t) {
7165
+ async function ba(e, t) {
7116
7166
  J(`${e} Build context project configuration`);
7117
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(aa, n);
7167
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ la(fa, n);
7118
7168
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7119
- return await ha(t, n, Hn(r));
7169
+ return await Sa(t, n, Hn(r));
7120
7170
  }
7121
- async function ma(e, t) {
7171
+ async function xa(e, t) {
7122
7172
  J(`${e} Build presenter project configuration`);
7123
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(sa, n);
7173
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ la(ma, n);
7124
7174
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7125
- return await ha(t, n, Hn(r));
7175
+ return await Sa(t, n, Hn(r));
7126
7176
  }
7127
- async function ha(e, t, n, r) {
7177
+ async function Sa(e, t, n, r) {
7128
7178
  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 Rn("config.json", t), t;
7129
7179
  }
7130
- async function ga() {
7180
+ async function Ca() {
7131
7181
  try {
7132
7182
  K("Synchronise Project with GitHub");
7133
7183
  let e = await W("package.json"), t = await W("config.json");
7134
- switch (await va("1️⃣ ", e), Bn(t.id).typeId) {
7184
+ switch (await Ta("1️⃣ ", e), Bn(t.id).typeId) {
7135
7185
  case "connector":
7136
- await fa("2️⃣ ", e);
7186
+ await ya("2️⃣ ", e);
7137
7187
  break;
7138
7188
  case "context":
7139
- await pa("2️⃣ ", e);
7189
+ await ba("2️⃣ ", e);
7140
7190
  break;
7141
7191
  case "presenter":
7142
- await ma("2️⃣ ", e);
7192
+ await xa("2️⃣ ", e);
7143
7193
  break;
7144
- default: await da("2️⃣ ", e);
7194
+ default: await va("2️⃣ ", e);
7145
7195
  }
7146
7196
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7147
7197
  "commit",
@@ -7156,14 +7206,14 @@ async function ga() {
7156
7206
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7157
7207
  }
7158
7208
  }
7159
- function _a() {
7209
+ function wa() {
7160
7210
  try {
7161
7211
  K("Test Project"), console.error("\n❌ No tests implemented.\n");
7162
7212
  } catch (e) {
7163
7213
  console.error("❌ Error testing project", e), process.exit(1);
7164
7214
  }
7165
7215
  }
7166
- async function va(e, t, n = "./") {
7216
+ async function Ta(e, t, n = "./") {
7167
7217
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7168
7218
  else {
7169
7219
  let e = t.version, n = t.version.split(".");
@@ -7172,6 +7222,6 @@ async function va(e, t, n = "./") {
7172
7222
  await Rn(`${n}package.json`, t);
7173
7223
  }
7174
7224
  //#endregion
7175
- export { Gn as auditDependencies, ca as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentUsage, qi as formatCode, Ji as lintCode, la as publishProject, ua as releaseProject, ga as syncProjectWithGitHub, _a as testProject, Xi as uploadDirectoryToR2 };
7225
+ export { Gn as auditDependencies, ha as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentOpening, Yi as documentUsage, ea as formatCode, ta as lintCode, ga as publishProject, _a as releaseProject, Ca as syncProjectWithGitHub, wa as testProject, ra as uploadDirectoryToR2 };
7176
7226
 
7177
7227
  //# sourceMappingURL=dpuse-development.es.js.map