@dpuse/dpuse-development 0.3.703 → 0.3.705

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,7 +104,7 @@ _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 | 311.6 kB · brotli 63.1 kB |
107
+ | dist/dpuse-development.es.js | 311.5 kB · brotli 63.0 kB |
108
108
  |     acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 42.0% |
109
109
  |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.8% |
110
110
  |     src | `██░░░░░░░░░░░░░░░░░░` 10.1% |
@@ -124,10 +124,10 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
124
124
  |         lintCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
125
125
  |     (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░` 7.2% |
126
126
  |     @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 3.8% |
127
- |         dist/componentConfig.schema-CqVgZGPq.js | `█░░░░░░░░░░░░░░░░░░░` 2.9% |
127
+ |         dist/componentConfig.schema-BRbvCPIW.js | `█░░░░░░░░░░░░░░░░░░░` 2.9% |
128
128
  |         dist/dpuse-shared-componentModuleConnector.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
129
129
  |         dist/dpuse-shared-componentModulePresenter.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
130
- |         dist/moduleConfig.schema-vxTWrD6x.js | `░░░░░░░░░░░░░░░░░░░░` 0.0% |
130
+ |         dist/moduleConfig.schema-DOb6pxQ0.js | `░░░░░░░░░░░░░░░░░░░░` 0.0% |
131
131
  |     valibot → dist/index.mjs | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
132
132
 
133
133
  (unassigned) = bytes Sonda can't trace to a specific source line (whitespace, stray keywords, bundler-injected region markers) — not actual missing/unknown code.
@@ -6296,7 +6296,7 @@ This project is licensed under the MIT License, permitting free use, modificatio
6296
6296
  [MIT](./LICENSE) © ${r}-present ${n}`;
6297
6297
  }
6298
6298
  //#endregion
6299
- //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-CqVgZGPq.js
6299
+ //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-BRbvCPIW.js
6300
6300
  var Gr, Kr = {
6301
6301
  lang: void 0,
6302
6302
  message: void 0,
@@ -6674,18 +6674,23 @@ function mi(e, t) {
6674
6674
  }
6675
6675
  };
6676
6676
  }
6677
- var hi = (e) => /* @__PURE__ */ mi(e.map((e) => /* @__PURE__ */ li(e))), gi = /* @__PURE__ */ Q({
6677
+ var hi = /* @__PURE__ */ Q({
6678
6678
  en: /* @__PURE__ */ $(),
6679
6679
  es: /* @__PURE__ */ $()
6680
- }), _i = /* @__PURE__ */ Q({
6681
- en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6682
- es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6683
- }), vi = /* @__PURE__ */ Q({
6684
- en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6685
- es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6686
- }), yi = hi([
6680
+ }), gi = {
6681
+ id: /* @__PURE__ */ $(),
6682
+ label: /* @__PURE__ */ Q({
6683
+ en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6684
+ es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6685
+ }),
6686
+ description: /* @__PURE__ */ Q({
6687
+ en: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6688
+ es: /* @__PURE__ */ di(/* @__PURE__ */ $())
6689
+ }),
6690
+ icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6691
+ iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6692
+ }, _i = (e) => /* @__PURE__ */ mi(e.map((e) => /* @__PURE__ */ li(e))), vi = _i([
6687
6693
  "app",
6688
- "connection",
6689
6694
  "connector",
6690
6695
  "connectorConnection",
6691
6696
  "context",
@@ -6707,43 +6712,33 @@ var hi = (e) => /* @__PURE__ */ mi(e.map((e) => /* @__PURE__ */ li(e))), gi = /*
6707
6712
  "presenter",
6708
6713
  "presenterPresentation",
6709
6714
  "tool"
6710
- ]), bi = hi([
6715
+ ]), yi = _i([
6711
6716
  "amber",
6712
6717
  "green",
6713
- "red",
6714
- "other"
6715
- ]), xi = hi([
6718
+ "red"
6719
+ ]), bi = _i([
6716
6720
  "alpha",
6717
6721
  "beta",
6718
- "generalAvailability",
6719
- "notApplicable",
6720
- "preAlpha",
6721
- "proposed",
6722
6722
  "releaseCandidate",
6723
- "unavailable",
6724
- "underReview"
6725
- ]), Si = /* @__PURE__ */ Q({
6726
- color: bi,
6723
+ "generalAvailability"
6724
+ ]), xi = /* @__PURE__ */ Q({
6725
+ color: yi,
6727
6726
  label: /* @__PURE__ */ $()
6728
- }), Ci = {
6729
- id: /* @__PURE__ */ $(),
6730
- label: vi,
6731
- description: _i,
6732
- icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6733
- iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6734
- typeId: yi
6735
- }, wi = /* @__PURE__ */ Q({
6736
- ...Ci,
6727
+ }), Si = {
6728
+ ...gi,
6729
+ typeId: vi
6730
+ }, Ci = /* @__PURE__ */ Q({
6731
+ ...Si,
6737
6732
  order: /* @__PURE__ */ ui(),
6738
6733
  path: /* @__PURE__ */ $()
6739
- }), Ti = {
6740
- ...Ci,
6734
+ }), wi = {
6735
+ ...Si,
6741
6736
  firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6742
6737
  lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6743
- status: /* @__PURE__ */ Z(Si),
6744
- statusId: /* @__PURE__ */ Z(xi)
6738
+ status: /* @__PURE__ */ Z(xi),
6739
+ statusId: /* @__PURE__ */ Z(bi)
6745
6740
  };
6746
- ({ ...Ti }), hi([
6741
+ ({ ...wi }), _i([
6747
6742
  "app",
6748
6743
  "engine",
6749
6744
  "connector",
@@ -6752,15 +6747,15 @@ var hi = (e) => /* @__PURE__ */ mi(e.map((e) => /* @__PURE__ */ li(e))), gi = /*
6752
6747
  "tool"
6753
6748
  ]);
6754
6749
  //#endregion
6755
- //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-vxTWrD6x.js
6756
- var Ei = {
6757
- ...Ti,
6750
+ //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-DOb6pxQ0.js
6751
+ var Ti = {
6752
+ ...wi,
6758
6753
  version: /* @__PURE__ */ $()
6759
6754
  };
6760
- ({ ...Ei });
6755
+ ({ ...Ti });
6761
6756
  //#endregion
6762
6757
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6763
- var Di = hi([
6758
+ var Ei = _i([
6764
6759
  "abortOperation",
6765
6760
  "auditObjectContent",
6766
6761
  "createObject",
@@ -6776,17 +6771,17 @@ var Di = hi([
6776
6771
  "retrieveChunks",
6777
6772
  "retrieveRecords",
6778
6773
  "upsertRecords"
6779
- ]), Oi = hi([
6774
+ ]), Di = _i([
6780
6775
  "application",
6781
6776
  "curatedDataset",
6782
6777
  "database",
6783
6778
  "fileStore"
6784
- ]), ki = /* @__PURE__ */ Q({ label: gi }), Ai = hi([
6779
+ ]), Oi = /* @__PURE__ */ Q({ label: hi }), ki = _i([
6785
6780
  "bidirectional",
6786
6781
  "destination",
6787
6782
  "source"
6788
- ]), ji = /* @__PURE__ */ Q({ label: gi }), Mi = /* @__PURE__ */ Q({
6789
- authMethodId: hi([
6783
+ ]), Ai = /* @__PURE__ */ Q({ label: hi }), ji = /* @__PURE__ */ Q({
6784
+ authMethodId: _i([
6790
6785
  "apiKey",
6791
6786
  "disabled",
6792
6787
  "oAuth2",
@@ -6795,22 +6790,22 @@ var Di = hi([
6795
6790
  activeConnectionCount: /* @__PURE__ */ di(/* @__PURE__ */ ui()),
6796
6791
  canDescribe: /* @__PURE__ */ di(/* @__PURE__ */ ci()),
6797
6792
  id: /* @__PURE__ */ di(/* @__PURE__ */ $()),
6798
- label: /* @__PURE__ */ di(gi),
6793
+ label: /* @__PURE__ */ di(hi),
6799
6794
  maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ui()),
6800
6795
  params: /* @__PURE__ */ di(/* @__PURE__ */ si(/* @__PURE__ */ fi(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6801
- }), Ni = /* @__PURE__ */ Q({
6802
- ...Ei,
6796
+ }), Mi = /* @__PURE__ */ Q({
6797
+ ...Ti,
6803
6798
  typeId: /* @__PURE__ */ li("connector"),
6804
- actionNames: /* @__PURE__ */ si(Di),
6805
- category: /* @__PURE__ */ Z(ki),
6806
- categoryId: Oi,
6807
- implementations: /* @__PURE__ */ fi(/* @__PURE__ */ $(), Mi),
6808
- usage: /* @__PURE__ */ Z(ji),
6809
- usageId: /* @__PURE__ */ Z(Ai),
6799
+ actionNames: /* @__PURE__ */ si(Ei),
6800
+ category: /* @__PURE__ */ Z(Oi),
6801
+ categoryId: Di,
6802
+ implementations: /* @__PURE__ */ fi(/* @__PURE__ */ $(), ji),
6803
+ usage: /* @__PURE__ */ Z(Ai),
6804
+ usageId: /* @__PURE__ */ Z(ki),
6810
6805
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6811
6806
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6812
6807
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6813
- }), Pi = {
6808
+ }), Ni = {
6814
6809
  abortOperation: "Abort Operation",
6815
6810
  auditObjectContent: "Audit Object Content",
6816
6811
  createObject: "Create Object",
@@ -6826,12 +6821,12 @@ var Di = hi([
6826
6821
  retrieveChunks: "Retrieve Chunks",
6827
6822
  retrieveRecords: "Retrieve Records",
6828
6823
  upsertRecords: "Upsert Records"
6829
- }, Fi = /* @__PURE__ */ new Set([
6824
+ }, Pi = /* @__PURE__ */ new Set([
6830
6825
  "createObject",
6831
6826
  "dropObject",
6832
6827
  "removeRecords",
6833
6828
  "upsertRecords"
6834
- ]), Ii = /* @__PURE__ */ new Set([
6829
+ ]), Fi = /* @__PURE__ */ new Set([
6835
6830
  "auditObjectContent",
6836
6831
  "findObject",
6837
6832
  "getInfo",
@@ -6842,46 +6837,46 @@ var Di = hi([
6842
6837
  "retrieveChunks",
6843
6838
  "retrieveRecords"
6844
6839
  ]);
6845
- function Li(e) {
6840
+ function Ii(e) {
6846
6841
  let t = !1, n = !1;
6847
- for (let r of e) Ii.has(r) && (t = !0), Fi.has(r) && (n = !0);
6842
+ for (let r of e) Fi.has(r) && (t = !0), Pi.has(r) && (n = !0);
6848
6843
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
6849
6844
  }
6850
- function Ri(e) {
6845
+ function Li(e) {
6851
6846
  let t = new Set(e), n = "|Action|Supported|\n";
6852
6847
  n += "|:----|:-------:|\n";
6853
- for (let e of Object.keys(Pi)) n += `| ${Pi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6848
+ for (let e of Object.keys(Ni)) n += `| ${Ni[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6854
6849
  return n;
6855
6850
  }
6856
6851
  //#endregion
6857
6852
  //#region src/actions/documentActions.ts
6858
- var zi = "<!-- CONNECTOR_ACTIONS_START -->", Bi = "<!-- CONNECTOR_ACTIONS_END -->", Vi = "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.", Hi = {
6853
+ var Ri = "<!-- CONNECTOR_ACTIONS_START -->", zi = "<!-- CONNECTOR_ACTIONS_END -->", Bi = "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.", Vi = {
6859
6854
  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.",
6860
6855
  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.",
6861
6856
  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."
6862
- }, Ui = "The table below lists all connector actions and highlights those supported by this connector.";
6863
- async function Wi() {
6857
+ }, Hi = "The table below lists all connector actions and highlights those supported by this connector.";
6858
+ async function Ui() {
6864
6859
  try {
6865
6860
  K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6866
- let e = (await W("config.json")).actionNames ?? [], t = Li(e), n = Ri(e), r = `${Vi}\n\n${Hi[t]} ${Ui}\n\n${n}`;
6867
- await Bn("README.md", Gn(await G("./README.md"), r, zi, Bi)), q("Actions documented");
6861
+ let e = (await W("config.json")).actionNames ?? [], t = Ii(e), n = Li(e), r = `${Bi}\n\n${Vi[t]} ${Hi}\n\n${n}`;
6862
+ await Bn("README.md", Gn(await G("./README.md"), r, Ri, zi)), q("Actions documented");
6868
6863
  } catch (e) {
6869
6864
  console.error("❌ Error documenting actions", e), process.exit(1);
6870
6865
  }
6871
6866
  }
6872
6867
  //#endregion
6873
6868
  //#region src/actions/documentOpening.ts
6874
- var Gi = "<!-- OPENING_START -->", Ki = "<!-- OPENING_END -->";
6875
- async function qi() {
6869
+ var Wi = "<!-- OPENING_START -->", Gi = "<!-- OPENING_END -->";
6870
+ async function Ki() {
6876
6871
  try {
6877
6872
  K("Document Opening"), J("1️⃣ Insert opening content into 'README.md'");
6878
- let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = Ji(e), i = Zi(n, r, Yi(e), Xi(t));
6879
- await Bn("README.md", Gn(await G("./README.md"), i, Gi, Ki)), q("Opening documented");
6873
+ let e = await W("package.json"), t = await W("config.json"), { owner: n, repo: r } = qi(e), i = Xi(n, r, Ji(e), Yi(t));
6874
+ await Bn("README.md", Gn(await G("./README.md"), i, Wi, Gi)), q("Opening documented");
6880
6875
  } catch (e) {
6881
6876
  console.error("❌ Error documenting opening", e), process.exit(1);
6882
6877
  }
6883
6878
  }
6884
- function Ji(e) {
6879
+ function qi(e) {
6885
6880
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6886
6881
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document opening.");
6887
6882
  let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
@@ -6891,17 +6886,17 @@ function Ji(e) {
6891
6886
  repo: i[2]
6892
6887
  };
6893
6888
  }
6894
- function Yi(e) {
6889
+ function Ji(e) {
6895
6890
  let t = e.license;
6896
6891
  if (t == null || t === "") throw Error("package.json 'license' field is required to document opening.");
6897
6892
  return t;
6898
6893
  }
6899
- function Xi(e) {
6894
+ function Yi(e) {
6900
6895
  let t = e.description.en;
6901
6896
  if (t == null || t.length === 0) throw Error("config.json 'description.en' field is required to document opening.");
6902
6897
  return t;
6903
6898
  }
6904
- function Zi(e, t, n, r) {
6899
+ function Xi(e, t, n, r) {
6905
6900
  let i = `https://github.com/${e}/${t}`;
6906
6901
  return `[![License: ${n}](https://img.shields.io/badge/License-${n.replaceAll("-", "--")}-blue.svg)](./LICENSE)
6907
6902
  [![DPUse version](https://img.shields.io/github/v/release/${e}/${t}?color=f6821f&label=DPUse)](${i}/releases/latest)
@@ -6921,31 +6916,31 @@ ${r}`;
6921
6916
  }
6922
6917
  //#endregion
6923
6918
  //#region src/actions/documentUsage.ts
6924
- var Qi = "<!-- USAGE_START -->", $i = "<!-- USAGE_END -->";
6925
- async function ea() {
6919
+ var Zi = "<!-- USAGE_START -->", Qi = "<!-- USAGE_END -->";
6920
+ async function $i() {
6926
6921
  try {
6927
6922
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6928
- let e = await W("package.json"), t = ta(e), n = ia(t, na(t), ra(e.engines?.node), ra(e.engines?.npm), ra(e.devDependencies?.typescript));
6929
- await Bn("README.md", Gn(await G("./README.md"), n, Qi, $i)), q("Usage documented");
6923
+ let e = await W("package.json"), t = ea(e), n = ra(t, ta(t), na(e.engines?.node), na(e.engines?.npm), na(e.devDependencies?.typescript));
6924
+ await Bn("README.md", Gn(await G("./README.md"), n, Zi, Qi)), q("Usage documented");
6930
6925
  } catch (e) {
6931
6926
  console.error("❌ Error documenting usage", e), process.exit(1);
6932
6927
  }
6933
6928
  }
6934
- function ta(e) {
6929
+ function ea(e) {
6935
6930
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6936
6931
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6937
6932
  return n.replace(/^git\+/, "");
6938
6933
  }
6939
- function na(e) {
6934
+ function ta(e) {
6940
6935
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6941
6936
  }
6942
- function ra(e) {
6937
+ function na(e) {
6943
6938
  if (e == null) throw Error("package.json version range is required to document usage.");
6944
6939
  let t = /\d+(?:\.\d+)*/.exec(e);
6945
6940
  if (t == null) throw Error(`Unable to parse version from '${e}'.`);
6946
6941
  return t[0];
6947
6942
  }
6948
- function ia(e, t, n, r, i) {
6943
+ function ra(e, t, n, r, i) {
6949
6944
  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.
6950
6945
 
6951
6946
  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.
@@ -6960,7 +6955,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later, [npm](https://www.npmjs.
6960
6955
  }
6961
6956
  //#endregion
6962
6957
  //#region src/actions/formatCode.ts
6963
- async function aa() {
6958
+ async function ia() {
6964
6959
  try {
6965
6960
  K("Format Code"), await Fn("1️⃣ Format", "prettier", [
6966
6961
  "--write",
@@ -6975,7 +6970,7 @@ async function aa() {
6975
6970
  }
6976
6971
  //#endregion
6977
6972
  //#region src/actions/lintCode.ts
6978
- async function oa() {
6973
+ async function aa() {
6979
6974
  try {
6980
6975
  K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6981
6976
  } catch (e) {
@@ -6984,7 +6979,7 @@ async function oa() {
6984
6979
  }
6985
6980
  //#endregion
6986
6981
  //#region src/utilities/cloudflare.ts
6987
- async function sa() {
6982
+ async function oa() {
6988
6983
  let e = await W("config.json"), t = {
6989
6984
  body: JSON.stringify(e),
6990
6985
  headers: { "Content-Type": "application/json" },
@@ -6992,7 +6987,7 @@ async function sa() {
6992
6987
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6993
6988
  if (!n.ok) throw Error(await n.text());
6994
6989
  }
6995
- async function ca(e, t) {
6990
+ async function sa(e, t) {
6996
6991
  async function n(e, t, r) {
6997
6992
  for (let i of r) {
6998
6993
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -7010,7 +7005,7 @@ async function ca(e, t) {
7010
7005
  let r = await Nn(`${e}/${t}/`);
7011
7006
  await n(`${e}/${t}`, t, r);
7012
7007
  }
7013
- async function la(e) {
7008
+ async function ca(e) {
7014
7009
  let t = e.id, n = {
7015
7010
  body: JSON.stringify(e),
7016
7011
  headers: { "Content-Type": "application/json" },
@@ -7018,7 +7013,7 @@ async function la(e) {
7018
7013
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
7019
7014
  if (!r.ok) throw Error(await r.text());
7020
7015
  }
7021
- async function ua(e, t) {
7016
+ async function la(e, t) {
7022
7017
  let n = `v${e.version ?? "unknown"}`;
7023
7018
  async function r(e, r = "") {
7024
7019
  let i = await Nn(e, { withFileTypes: !0 });
@@ -7042,24 +7037,24 @@ async function ua(e, t) {
7042
7037
  }
7043
7038
  //#endregion
7044
7039
  //#region node_modules/valibot/dist/index.mjs
7045
- var da, fa = {
7040
+ var ua, da = {
7046
7041
  lang: void 0,
7047
7042
  message: void 0,
7048
7043
  abortEarly: void 0,
7049
7044
  abortPipeEarly: void 0
7050
7045
  };
7051
7046
  /* @__NO_SIDE_EFFECTS__ */
7052
- function pa(e) {
7053
- return !e && !da ? fa : {
7054
- lang: e?.lang ?? da?.lang,
7047
+ function fa(e) {
7048
+ return !e && !ua ? da : {
7049
+ lang: e?.lang ?? ua?.lang,
7055
7050
  message: e?.message,
7056
- abortEarly: e?.abortEarly ?? da?.abortEarly,
7057
- abortPipeEarly: e?.abortPipeEarly ?? da?.abortPipeEarly
7051
+ abortEarly: e?.abortEarly ?? ua?.abortEarly,
7052
+ abortPipeEarly: e?.abortPipeEarly ?? ua?.abortPipeEarly
7058
7053
  };
7059
7054
  }
7060
7055
  /* @__NO_SIDE_EFFECTS__ */
7061
- function ma(e, t, n) {
7062
- let r = e["~run"]({ value: t }, /* @__PURE__ */ pa(n));
7056
+ function pa(e, t, n) {
7057
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ fa(n));
7063
7058
  return {
7064
7059
  typed: r.typed,
7065
7060
  success: !r.issues,
@@ -7069,56 +7064,56 @@ function ma(e, t, n) {
7069
7064
  }
7070
7065
  //#endregion
7071
7066
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModulePresenter.es.js
7072
- var ha = hi([
7067
+ var ma = _i([
7073
7068
  "list",
7074
7069
  "render",
7075
7070
  "setColorMode"
7076
- ]), ga = /* @__PURE__ */ Q({
7077
- ...Ei,
7071
+ ]), ha = /* @__PURE__ */ Q({
7072
+ ...Ti,
7078
7073
  typeId: /* @__PURE__ */ li("presenter"),
7079
- actionNames: /* @__PURE__ */ si(ha),
7080
- presentations: /* @__PURE__ */ si(wi)
7074
+ actionNames: /* @__PURE__ */ si(ma),
7075
+ presentations: /* @__PURE__ */ si(Ci)
7081
7076
  });
7082
7077
  //#endregion
7083
7078
  //#region src/actions/manageProject.ts
7084
- async function _a() {
7079
+ async function ga() {
7085
7080
  try {
7086
7081
  K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
7087
7082
  } catch (e) {
7088
7083
  console.error("❌ Error building project", e), process.exit(1);
7089
7084
  }
7090
7085
  }
7091
- async function va() {
7086
+ async function _a() {
7092
7087
  try {
7093
7088
  K("Publish Project");
7094
7089
  let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
7095
- if (n.typeId === "app") J("1️⃣ Register module"), await sa();
7096
- else if (n.typeId === "engine") J("1️⃣ Register module"), await ua(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await la(t);
7090
+ if (n.typeId === "app") J("1️⃣ Register module"), await oa();
7091
+ else if (n.typeId === "engine") J("1️⃣ Register module"), await la(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ca(t);
7097
7092
  else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
7098
7093
  else {
7099
7094
  J("1️⃣ Register module");
7100
7095
  let r = t.id.split("-").slice(2).join("-");
7101
- await ua(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await la(t);
7096
+ await la(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ca(t);
7102
7097
  }
7103
7098
  q(`Project version '${e.version ?? "unknown"}' published.`);
7104
7099
  } catch (e) {
7105
7100
  console.error("❌ Error publishing project", e), process.exit(1);
7106
7101
  }
7107
7102
  }
7108
- async function ya() {
7103
+ async function va() {
7109
7104
  try {
7110
7105
  K("Release Project");
7111
7106
  let e = await W("package.json"), t = await W("config.json");
7112
- await Ea("1️⃣ ", e);
7107
+ await Ta("1️⃣ ", e);
7113
7108
  let n = Vn(t.id);
7114
7109
  switch (n.typeId) {
7115
7110
  case "connector":
7116
- t = await xa("2️⃣ ", e);
7111
+ t = await ba("2️⃣ ", e);
7117
7112
  break;
7118
7113
  case "presenter":
7119
- t = await Sa("2️⃣ ", e);
7114
+ t = await xa("2️⃣ ", e);
7120
7115
  break;
7121
- default: t = await ba("2️⃣ ", e);
7116
+ default: t = await ya("2️⃣ ", e);
7122
7117
  }
7123
7118
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
7124
7119
  "commit",
@@ -7128,13 +7123,13 @@ async function ya() {
7128
7123
  "push",
7129
7124
  "origin",
7130
7125
  "main:main"
7131
- ]), n.typeId === "app") J("7️⃣ Register module"), await sa();
7132
- else if (n.typeId === "engine") J("7️⃣ Register module"), await ua(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await la(t);
7126
+ ]), n.typeId === "app") J("7️⃣ Register module"), await oa();
7127
+ else if (n.typeId === "engine") J("7️⃣ Register module"), await la(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await ca(t);
7133
7128
  else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7134
7129
  else {
7135
7130
  J("7️⃣ Register module");
7136
7131
  let r = t.id.split("-").slice(2).join("-");
7137
- await ua(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await la(t);
7132
+ await la(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await ca(t);
7138
7133
  }
7139
7134
  if (n.publishedTo === "npm") {
7140
7135
  let e = ".npmrc";
@@ -7153,39 +7148,39 @@ async function ya() {
7153
7148
  console.error("❌ Error releasing project", e), process.exit(1);
7154
7149
  }
7155
7150
  }
7156
- async function ba(e, t) {
7151
+ async function ya(e, t) {
7157
7152
  J(`${e} Build project configuration`);
7158
7153
  let n = await W("config.json");
7159
7154
  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 zn("config.json", n), n;
7160
7155
  }
7161
- async function xa(e, t) {
7156
+ async function ba(e, t) {
7162
7157
  J(`${e} Build connector project configuration`);
7163
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ma(Ni, n);
7158
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ pa(Mi, n);
7164
7159
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7165
7160
  let a = Un(r);
7166
- return await Ca(t, n, a, Li(a));
7161
+ return await Sa(t, n, a, Ii(a));
7167
7162
  }
7168
- async function Sa(e, t) {
7163
+ async function xa(e, t) {
7169
7164
  J(`${e} Build presenter project configuration`);
7170
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ ma(ga, n);
7165
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ pa(ha, n);
7171
7166
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7172
- return await Ca(t, n, Un(r));
7167
+ return await Sa(t, n, Un(r));
7173
7168
  }
7174
- async function Ca(e, t, n, r) {
7169
+ async function Sa(e, t, n, r) {
7175
7170
  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 zn("config.json", t), t;
7176
7171
  }
7177
- async function wa() {
7172
+ async function Ca() {
7178
7173
  try {
7179
7174
  K("Synchronise Project with GitHub");
7180
7175
  let e = await W("package.json"), t = await W("config.json");
7181
- switch (await Ea("1️⃣ ", e), Vn(t.id).typeId) {
7176
+ switch (await Ta("1️⃣ ", e), Vn(t.id).typeId) {
7182
7177
  case "connector":
7183
- await xa("2️⃣ ", e);
7178
+ await ba("2️⃣ ", e);
7184
7179
  break;
7185
7180
  case "presenter":
7186
- await Sa("2️⃣ ", e);
7181
+ await xa("2️⃣ ", e);
7187
7182
  break;
7188
- default: await ba("2️⃣ ", e);
7183
+ default: await ya("2️⃣ ", e);
7189
7184
  }
7190
7185
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7191
7186
  "commit",
@@ -7200,14 +7195,14 @@ async function wa() {
7200
7195
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7201
7196
  }
7202
7197
  }
7203
- function Ta() {
7198
+ function wa() {
7204
7199
  try {
7205
7200
  K("Test Project"), console.error("\n❌ No tests implemented.\n");
7206
7201
  } catch (e) {
7207
7202
  console.error("❌ Error testing project", e), process.exit(1);
7208
7203
  }
7209
7204
  }
7210
- async function Ea(e, t, n = "./") {
7205
+ async function Ta(e, t, n = "./") {
7211
7206
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7212
7207
  else {
7213
7208
  let e = t.version, n = t.version.split(".");
@@ -7216,6 +7211,6 @@ async function Ea(e, t, n = "./") {
7216
7211
  await zn(`${n}package.json`, t);
7217
7212
  }
7218
7213
  //#endregion
7219
- export { Kn as auditDependencies, _a as buildProject, qn as checkConfigFiles, $n as checkDependencies, Wi as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Br as documentGovernance, qi as documentOpening, ea as documentUsage, aa as formatCode, oa as lintCode, va as publishProject, ya as releaseProject, wa as syncProjectWithGitHub, Ta as testProject, ca as uploadDirectoryToR2 };
7214
+ export { Kn as auditDependencies, ga as buildProject, qn as checkConfigFiles, $n as checkDependencies, Ui as documentActions, ar as documentBundleSizes, Dr as documentDependencies, Br as documentGovernance, Ki as documentOpening, $i as documentUsage, ia as formatCode, aa as lintCode, _a as publishProject, va as releaseProject, Ca as syncProjectWithGitHub, wa as testProject, sa as uploadDirectoryToR2 };
7220
7215
 
7221
7216
  //# sourceMappingURL=dpuse-development.es.js.map