@dpuse/dpuse-development 0.3.676 → 0.3.677

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 | 311.8 kB · brotli 62.9 kB |
108
+ |     acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.9% |
109
+ |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.7% |
110
+ |     src | `██░░░░░░░░░░░░░░░░░░` 10.1% |
111
111
  |         documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
112
112
  |         manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
113
113
  |         index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
@@ -116,14 +116,15 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
116
116
  |         documentGovernance.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
117
117
  |         documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
118
118
  |         cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
119
+ |         documentOpening.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,73 @@ 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"), { owner: t, repo: n } = Ui(e), r = Gi(t, n, Wi(e));
6863
+ await zn("README.md", Wn(await G("./README.md"), r, 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, t, n) {
6884
+ let r = `https://github.com/${e}/${t}`;
6885
+ return `[![License: ${n}](https://img.shields.io/badge/License-${n.replace(/-/g, "--")}-blue.svg)](./LICENSE)
6886
+ [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${r}/releases/latest)
6887
+ [![CI](${r}/actions/workflows/ci.yml/badge.svg)](${r}/actions/workflows/ci.yml)
6888
+ [![CodeQL](${r}/actions/workflows/codeql.yml/badge.svg)](${r}/actions/workflows/codeql.yml)
6889
+ [![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})
6890
+
6891
+ [Documentation](https://www.dpuse.app) · [Report a Vulnerability](${r}/security/advisories/new) · [Open an Issue](${r}/issues)
6892
+
6893
+ ## About DPUse
6894
+
6895
+ 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.`;
6896
+ }
6897
+ //#endregion
6898
+ //#region src/actions/documentUsage.ts
6899
+ var Ki = "<!-- USAGE_START -->", qi = "<!-- USAGE_END -->";
6900
+ async function Ji() {
6860
6901
  try {
6861
6902
  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");
6903
+ let e = await W("package.json"), t = Yi(e), n = Qi(t, Xi(t), Zi(e.engines?.node), Zi(e.engines?.npm), Zi(e.devDependencies?.typescript));
6904
+ await zn("README.md", Wn(await G("./README.md"), n, Ki, qi)), q("Usage documented");
6864
6905
  } catch (e) {
6865
6906
  console.error("❌ Error documenting usage", e), process.exit(1);
6866
6907
  }
6867
6908
  }
6868
- function Ui(e) {
6909
+ function Yi(e) {
6869
6910
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6870
6911
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6871
6912
  return n.replace(/^git\+/, "");
6872
6913
  }
6873
- function Wi(e) {
6914
+ function Xi(e) {
6874
6915
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6875
6916
  }
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}'.`);
6917
+ function Zi(e) {
6918
+ if (e == null) throw Error("package.json version range is required to document usage.");
6919
+ let t = /\d+/.exec(e);
6920
+ if (t == null) throw Error(`Unable to parse major version from '${e}'.`);
6880
6921
  return t[0];
6881
6922
  }
6882
- function Ki(e, t, n, r) {
6923
+ function Qi(e, t, n, r, i) {
6883
6924
  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
6925
 
6885
6926
  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 +6931,11 @@ cd ${t}
6890
6931
  npm install
6891
6932
  \`\`\`
6892
6933
 
6893
- _Requires [Node.js](https://nodejs.org/) ${n} or later and [npm](https://www.npmjs.com/) ${r} or later._`;
6934
+ _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
6935
  }
6895
6936
  //#endregion
6896
6937
  //#region src/actions/formatCode.ts
6897
- async function qi() {
6938
+ async function $i() {
6898
6939
  try {
6899
6940
  K("Format Code"), await Fn("1️⃣ Format", "prettier", [
6900
6941
  "--write",
@@ -6909,7 +6950,7 @@ async function qi() {
6909
6950
  }
6910
6951
  //#endregion
6911
6952
  //#region src/actions/lintCode.ts
6912
- async function Ji() {
6953
+ async function ea() {
6913
6954
  try {
6914
6955
  K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6915
6956
  } catch (e) {
@@ -6918,7 +6959,7 @@ async function Ji() {
6918
6959
  }
6919
6960
  //#endregion
6920
6961
  //#region src/utilities/cloudflare.ts
6921
- async function Yi() {
6962
+ async function ta() {
6922
6963
  let e = await W("config.json"), t = {
6923
6964
  body: JSON.stringify(e),
6924
6965
  headers: { "Content-Type": "application/json" },
@@ -6926,7 +6967,7 @@ async function Yi() {
6926
6967
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6927
6968
  if (!n.ok) throw Error(await n.text());
6928
6969
  }
6929
- async function Xi(e, t) {
6970
+ async function na(e, t) {
6930
6971
  async function n(e, t, r) {
6931
6972
  for (let i of r) {
6932
6973
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6944,7 +6985,7 @@ async function Xi(e, t) {
6944
6985
  let r = await Nn(`${e}/${t}/`);
6945
6986
  await n(`${e}/${t}`, t, r);
6946
6987
  }
6947
- async function Zi(e) {
6988
+ async function ra(e) {
6948
6989
  let t = e.id, n = {
6949
6990
  body: JSON.stringify(e),
6950
6991
  headers: { "Content-Type": "application/json" },
@@ -6952,7 +6993,7 @@ async function Zi(e) {
6952
6993
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6953
6994
  if (!r.ok) throw Error(await r.text());
6954
6995
  }
6955
- async function Qi(e, t) {
6996
+ async function ia(e, t) {
6956
6997
  let n = `v${e.version ?? "unknown"}`;
6957
6998
  async function r(e, r = "") {
6958
6999
  let i = await Nn(e, { withFileTypes: !0 });
@@ -6976,24 +7017,24 @@ async function Qi(e, t) {
6976
7017
  }
6977
7018
  //#endregion
6978
7019
  //#region node_modules/valibot/dist/index.mjs
6979
- var $i, ea = {
7020
+ var aa, oa = {
6980
7021
  lang: void 0,
6981
7022
  message: void 0,
6982
7023
  abortEarly: void 0,
6983
7024
  abortPipeEarly: void 0
6984
7025
  };
6985
7026
  /* @__NO_SIDE_EFFECTS__ */
6986
- function ta(e) {
6987
- return !e && !$i ? ea : {
6988
- lang: e?.lang ?? $i?.lang,
7027
+ function sa(e) {
7028
+ return !e && !aa ? oa : {
7029
+ lang: e?.lang ?? aa?.lang,
6989
7030
  message: e?.message,
6990
- abortEarly: e?.abortEarly ?? $i?.abortEarly,
6991
- abortPipeEarly: e?.abortPipeEarly ?? $i?.abortPipeEarly
7031
+ abortEarly: e?.abortEarly ?? aa?.abortEarly,
7032
+ abortPipeEarly: e?.abortPipeEarly ?? aa?.abortPipeEarly
6992
7033
  };
6993
7034
  }
6994
7035
  /* @__NO_SIDE_EFFECTS__ */
6995
- function na(e, t, n) {
6996
- let r = e["~run"]({ value: t }, /* @__PURE__ */ ta(n));
7036
+ function ca(e, t, n) {
7037
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ sa(n));
6997
7038
  return {
6998
7039
  typed: r.typed,
6999
7040
  success: !r.issues,
@@ -7003,69 +7044,69 @@ function na(e, t, n) {
7003
7044
  }
7004
7045
  //#endregion
7005
7046
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
7006
- var ra = /* @__PURE__ */ Q({
7047
+ var la = /* @__PURE__ */ Q({
7007
7048
  typeId: /* @__PURE__ */ ci("contextArea"),
7008
7049
  ...Si,
7009
7050
  modelRefs: /* @__PURE__ */ oi(xi),
7010
7051
  order: /* @__PURE__ */ li()
7011
- }), ia = mi(["listContextFocuses"]), aa = /* @__PURE__ */ Q({
7052
+ }), ua = mi(["listContextFocuses"]), da = /* @__PURE__ */ Q({
7012
7053
  typeId: /* @__PURE__ */ ci("context"),
7013
7054
  ...Ci,
7014
- actionNames: /* @__PURE__ */ oi(ia),
7015
- models: /* @__PURE__ */ oi(ra)
7016
- }), oa = mi([
7055
+ actionNames: /* @__PURE__ */ oi(ua),
7056
+ models: /* @__PURE__ */ oi(la)
7057
+ }), fa = mi([
7017
7058
  "list",
7018
7059
  "render",
7019
7060
  "setColorMode"
7020
- ]), sa = /* @__PURE__ */ Q({
7061
+ ]), pa = /* @__PURE__ */ Q({
7021
7062
  typeId: /* @__PURE__ */ ci("presenter"),
7022
7063
  ...Ci,
7023
- actionNames: /* @__PURE__ */ oi(oa),
7064
+ actionNames: /* @__PURE__ */ oi(fa),
7024
7065
  presentations: /* @__PURE__ */ oi(xi)
7025
7066
  });
7026
7067
  //#endregion
7027
7068
  //#region src/actions/manageProject.ts
7028
- async function ca() {
7069
+ async function ma() {
7029
7070
  try {
7030
7071
  K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7031
7072
  } catch (e) {
7032
7073
  console.error("❌ Error building project", e), process.exit(1);
7033
7074
  }
7034
7075
  }
7035
- async function la() {
7076
+ async function ha() {
7036
7077
  try {
7037
7078
  K("Publish Project");
7038
7079
  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);
7080
+ if (n.typeId === "app") J("1️⃣ Register module"), await ta();
7081
+ else if (n.typeId === "engine") J("1️⃣ Register module"), await ia(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ra(t);
7041
7082
  else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
7042
7083
  else {
7043
7084
  J("1️⃣ Register module");
7044
7085
  let r = t.id.split("-").slice(2).join("-");
7045
- await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
7086
+ await ia(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ra(t);
7046
7087
  }
7047
7088
  q(`Project version '${e.version ?? "unknown"}' published.`);
7048
7089
  } catch (e) {
7049
7090
  console.error("❌ Error publishing project", e), process.exit(1);
7050
7091
  }
7051
7092
  }
7052
- async function ua() {
7093
+ async function ga() {
7053
7094
  try {
7054
7095
  K("Release Project");
7055
7096
  let e = await W("package.json"), t = await W("config.json");
7056
- await va("1️⃣ ", e);
7097
+ await wa("1️⃣ ", e);
7057
7098
  let n = Bn(t.id);
7058
7099
  switch (n.typeId) {
7059
7100
  case "connector":
7060
- t = await fa("2️⃣ ", e);
7101
+ t = await va("2️⃣ ", e);
7061
7102
  break;
7062
7103
  case "context":
7063
- t = await pa("2️⃣ ", e);
7104
+ t = await ya("2️⃣ ", e);
7064
7105
  break;
7065
7106
  case "presenter":
7066
- t = await ma("2️⃣ ", e);
7107
+ t = await ba("2️⃣ ", e);
7067
7108
  break;
7068
- default: t = await da("2️⃣ ", e);
7109
+ default: t = await _a("2️⃣ ", e);
7069
7110
  }
7070
7111
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7071
7112
  "commit",
@@ -7075,13 +7116,13 @@ async function ua() {
7075
7116
  "push",
7076
7117
  "origin",
7077
7118
  "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);
7119
+ ]), n.typeId === "app") J("7️⃣ Register module"), await ta();
7120
+ else if (n.typeId === "engine") J("7️⃣ Register module"), await ia(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ra(t);
7080
7121
  else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7081
7122
  else {
7082
7123
  J("7️⃣ Register module");
7083
7124
  let r = t.id.split("-").slice(2).join("-");
7084
- await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
7125
+ await ia(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ra(t);
7085
7126
  }
7086
7127
  if (n.publishedTo === "npm") {
7087
7128
  let e = ".npmrc";
@@ -7100,48 +7141,48 @@ async function ua() {
7100
7141
  console.error("❌ Error releasing project", e), process.exit(1);
7101
7142
  }
7102
7143
  }
7103
- async function da(e, t) {
7144
+ async function _a(e, t) {
7104
7145
  J(`${e} Build project configuration`);
7105
7146
  let n = await W("config.json");
7106
7147
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
7107
7148
  }
7108
- async function fa(e, t) {
7149
+ async function va(e, t) {
7109
7150
  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);
7151
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ca(Oi, n);
7111
7152
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7112
7153
  let a = Hn(r);
7113
- return await ha(t, n, a, Mi(a));
7154
+ return await xa(t, n, a, Mi(a));
7114
7155
  }
7115
- async function pa(e, t) {
7156
+ async function ya(e, t) {
7116
7157
  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);
7158
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ca(da, n);
7118
7159
  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));
7160
+ return await xa(t, n, Hn(r));
7120
7161
  }
7121
- async function ma(e, t) {
7162
+ async function ba(e, t) {
7122
7163
  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);
7164
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ca(pa, n);
7124
7165
  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));
7166
+ return await xa(t, n, Hn(r));
7126
7167
  }
7127
- async function ha(e, t, n, r) {
7168
+ async function xa(e, t, n, r) {
7128
7169
  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
7170
  }
7130
- async function ga() {
7171
+ async function Sa() {
7131
7172
  try {
7132
7173
  K("Synchronise Project with GitHub");
7133
7174
  let e = await W("package.json"), t = await W("config.json");
7134
- switch (await va("1️⃣ ", e), Bn(t.id).typeId) {
7175
+ switch (await wa("1️⃣ ", e), Bn(t.id).typeId) {
7135
7176
  case "connector":
7136
- await fa("2️⃣ ", e);
7177
+ await va("2️⃣ ", e);
7137
7178
  break;
7138
7179
  case "context":
7139
- await pa("2️⃣ ", e);
7180
+ await ya("2️⃣ ", e);
7140
7181
  break;
7141
7182
  case "presenter":
7142
- await ma("2️⃣ ", e);
7183
+ await ba("2️⃣ ", e);
7143
7184
  break;
7144
- default: await da("2️⃣ ", e);
7185
+ default: await _a("2️⃣ ", e);
7145
7186
  }
7146
7187
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7147
7188
  "commit",
@@ -7156,14 +7197,14 @@ async function ga() {
7156
7197
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7157
7198
  }
7158
7199
  }
7159
- function _a() {
7200
+ function Ca() {
7160
7201
  try {
7161
7202
  K("Test Project"), console.error("\n❌ No tests implemented.\n");
7162
7203
  } catch (e) {
7163
7204
  console.error("❌ Error testing project", e), process.exit(1);
7164
7205
  }
7165
7206
  }
7166
- async function va(e, t, n = "./") {
7207
+ async function wa(e, t, n = "./") {
7167
7208
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7168
7209
  else {
7169
7210
  let e = t.version, n = t.version.split(".");
@@ -7172,6 +7213,6 @@ async function va(e, t, n = "./") {
7172
7213
  await Rn(`${n}package.json`, t);
7173
7214
  }
7174
7215
  //#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 };
7216
+ export { Gn as auditDependencies, ma as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, zi as documentActions, ir as documentBundleSizes, Er as documentDependencies, zr as documentGovernance, Hi as documentOpening, Ji as documentUsage, $i as formatCode, ea as lintCode, ha as publishProject, ga as releaseProject, Sa as syncProjectWithGitHub, Ca as testProject, na as uploadDirectoryToR2 };
7176
7217
 
7177
7218
  //# sourceMappingURL=dpuse-development.es.js.map