@dpuse/dpuse-development 0.3.722 → 0.3.725

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,29 +104,29 @@ _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 | 312.6 kB · brotli 63.4 kB |
108
- |     acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.9% |
109
- |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.7% |
110
- |     src | `██░░░░░░░░░░░░░░░░░░` 10.7% |
107
+ | dist/dpuse-development.es.js | 313.1 kB · brotli 63.5 kB |
108
+ |     acorn → dist/acorn.mjs | `████████░░░░░░░░░░░░` 41.8% |
109
+ |     acorn-typescript → lib/index.mjs | `███████░░░░░░░░░░░░░` 36.6% |
110
+ |     src | `██░░░░░░░░░░░░░░░░░░` 10.8% |
111
111
  |         manageProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
112
112
  |         documentDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 1.8% |
113
113
  |         index.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
114
114
  |         documentBundleSizes.ts | `░░░░░░░░░░░░░░░░░░░░` 1.3% |
115
115
  |         checkConfigFiles.ts | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
116
116
  |         documentGovernance.ts | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
117
+ |         documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
117
118
  |         documentOpening.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
118
119
  |         cloudflare.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
119
- |         documentActions.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
120
120
  |         checkDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
121
121
  |         documentUsage.ts | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
122
122
  |         formatCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
123
123
  |         auditDependencies.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
124
124
  |         lintCode.ts | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
125
125
  |     (unassigned) → [unassigned] | `█░░░░░░░░░░░░░░░░░░░` 7.1% |
126
- |     @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 3.5% |
127
- |         dist/componentConfig.schema-Dxqinpxy.js | `█░░░░░░░░░░░░░░░░░░░` 2.6% |
126
+ |     @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 3.6% |
127
+ |         dist/componentConfig.schema-DT3mO5rS.js | `█░░░░░░░░░░░░░░░░░░░` 2.7% |
128
128
  |         dist/dpuse-shared-componentModuleConnector.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
129
- |         dist/moduleConfig.schema-B_EBeUaj.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
129
+ |         dist/moduleConfig.schema-aYmFWSrn.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
130
130
  |         dist/dpuse-shared-componentModulePresenter.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
131
131
  |     valibot → dist/index.mjs | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
132
132
 
@@ -5768,7 +5768,7 @@ async function Pn(e, n) {
5768
5768
  async function Fn(e, n, r, i) {
5769
5769
  e !== void 0 && J(`${e} - exec(${n} ${r.join(" ")})`);
5770
5770
  let { stdout: a, stderr: o } = await Mn(n, r);
5771
- i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf8"), o.trim() && console.error(o.trim());
5771
+ i === void 0 ? a.trim() && console.log(a.trim()) : await t.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
5772
5772
  }
5773
5773
  async function U(e, t, n, r = !1, i = !1) {
5774
5774
  return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
@@ -5795,7 +5795,7 @@ async function In(e, n, r, i, o = !1) {
5795
5795
  }), c.on("close", (r) => {
5796
5796
  r === 0 || o ? (async () => {
5797
5797
  try {
5798
- await t.writeFile(i, l, "utf8"), e();
5798
+ await t.writeFile(i, l, "utf-8"), e();
5799
5799
  } catch (e) {
5800
5800
  s(e instanceof Error ? e : Error(String(e)));
5801
5801
  }
@@ -5804,24 +5804,24 @@ async function In(e, n, r, i, o = !1) {
5804
5804
  });
5805
5805
  }
5806
5806
  async function W(e) {
5807
- return JSON.parse(await t.readFile(e, "utf8"));
5807
+ return JSON.parse(await t.readFile(e, "utf-8"));
5808
5808
  }
5809
5809
  async function G(e) {
5810
- return await t.readFile(e, "utf8");
5810
+ return await t.readFile(e, "utf-8");
5811
5811
  }
5812
5812
  async function Ln(e) {
5813
5813
  try {
5814
- return await t.readFile(e, "utf8");
5814
+ return await t.readFile(e, "utf-8");
5815
5815
  } catch (e) {
5816
5816
  if (e.code === "ENOENT") return null;
5817
5817
  throw e;
5818
5818
  }
5819
5819
  }
5820
5820
  async function Rn(e, n) {
5821
- await t.writeFile(e, JSON.stringify(n, void 0, 4), "utf8");
5821
+ await t.writeFile(e, JSON.stringify(n, void 0, 4), "utf-8");
5822
5822
  }
5823
5823
  async function zn(e, n) {
5824
- await t.writeFile(e, n, "utf8");
5824
+ await t.writeFile(e, n, "utf-8");
5825
5825
  }
5826
5826
  function K(e) {
5827
5827
  let t = "────────────────────────────────────────────────────────────────────────────────";
@@ -5894,7 +5894,7 @@ async function Kn() {
5894
5894
  try {
5895
5895
  K("Check configuration files"), J("1️⃣ Check individual files");
5896
5896
  let e = Bn((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5897
- await Y(t, ".editorconfig"), await qn(e, t), await Y(t, ".gitignore", [e.publishedTo === "npm" ? ".gitignore_npm_published" : ".gitignore_default"]), await Y(t, ".markdownlint.json"), await Y(t, ".ncurc.json"), await Jn(e, t), await Y(t, "LICENSE"), await Yn(e, t), await Xn(e, t), await Zn(e, t), await Qn(e, t), q("Configuration files checked");
5897
+ await Y(t, ".editorconfig"), await qn(e, t), await Y(t, ".gitignore", [".gitignore_default"]), await Y(t, ".markdownlint.json"), await Y(t, ".ncurc.json"), await Jn(e, t), await Y(t, "LICENSE"), await Yn(e, t), await Xn(e, t), await Zn(e, t), await Qn(e, t), q("Configuration files checked");
5898
5898
  } catch (e) {
5899
5899
  console.error("❌ Error checking configuration files", e), process.exit(1);
5900
5900
  }
@@ -6326,7 +6326,7 @@ This project is licensed under the MIT License, permitting free use, modificatio
6326
6326
  [MIT](./LICENSE) © ${r}-present ${n}`;
6327
6327
  }
6328
6328
  //#endregion
6329
- //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-Dxqinpxy.js
6329
+ //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DT3mO5rS.js
6330
6330
  var Kr = {
6331
6331
  lang: void 0,
6332
6332
  message: void 0,
@@ -6488,57 +6488,6 @@ function ii(e) {
6488
6488
  });
6489
6489
  }
6490
6490
  /* @__NO_SIDE_EFFECTS__ */
6491
- function Q(e, t) {
6492
- return Qr({
6493
- kind: "schema",
6494
- type: "object",
6495
- reference: Q,
6496
- expects: "Object",
6497
- async: !1,
6498
- entries: e,
6499
- message: t,
6500
- "~run"(e, t) {
6501
- let n = e.value;
6502
- if (n && typeof n == "object") {
6503
- e.typed = !0, e.value = {};
6504
- for (let r in this.entries) {
6505
- let i = this.entries[r];
6506
- if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6507
- let a = r in n ? n[r] : /* @__PURE__ */ ei(i), o = i["~run"]({ value: a }, t);
6508
- if (o.issues) {
6509
- let i = {
6510
- type: "object",
6511
- origin: "value",
6512
- input: n,
6513
- key: r,
6514
- value: a
6515
- };
6516
- for (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);
6517
- if (e.issues ||= o.issues, t.abortEarly) {
6518
- e.typed = !1;
6519
- break;
6520
- }
6521
- }
6522
- o.typed || (e.typed = !1), e.value[r] = o.value;
6523
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ $r(i);
6524
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6525
- input: void 0,
6526
- expected: `"${r}"`,
6527
- path: [{
6528
- type: "object",
6529
- origin: "key",
6530
- input: n,
6531
- key: r,
6532
- value: n[r]
6533
- }]
6534
- }), t.abortEarly)) break;
6535
- }
6536
- } else X(this, "type", e, t);
6537
- return e;
6538
- }
6539
- });
6540
- }
6541
- /* @__NO_SIDE_EFFECTS__ */
6542
6491
  function ai(e, t) {
6543
6492
  return Qr({
6544
6493
  kind: "schema",
@@ -6607,6 +6556,73 @@ function oi(e, t, n) {
6607
6556
  });
6608
6557
  }
6609
6558
  /* @__NO_SIDE_EFFECTS__ */
6559
+ function Q(e, t) {
6560
+ return Qr({
6561
+ kind: "schema",
6562
+ type: "strict_object",
6563
+ reference: Q,
6564
+ expects: "Object",
6565
+ async: !1,
6566
+ entries: e,
6567
+ message: t,
6568
+ "~run"(e, t) {
6569
+ let n = e.value;
6570
+ if (n && typeof n == "object") {
6571
+ e.typed = !0, e.value = {};
6572
+ for (let r in this.entries) {
6573
+ let i = this.entries[r];
6574
+ 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__ */ ei(i), o = i["~run"]({ value: a }, t);
6576
+ if (o.issues) {
6577
+ let i = {
6578
+ type: "object",
6579
+ origin: "value",
6580
+ input: n,
6581
+ key: r,
6582
+ value: a
6583
+ };
6584
+ for (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);
6585
+ if (e.issues ||= o.issues, t.abortEarly) {
6586
+ e.typed = !1;
6587
+ break;
6588
+ }
6589
+ }
6590
+ o.typed || (e.typed = !1), e.value[r] = o.value;
6591
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ $r(i);
6592
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
6593
+ input: void 0,
6594
+ expected: `"${r}"`,
6595
+ path: [{
6596
+ type: "object",
6597
+ origin: "key",
6598
+ input: n,
6599
+ key: r,
6600
+ value: n[r]
6601
+ }]
6602
+ }), t.abortEarly)) break;
6603
+ }
6604
+ if (!e.issues || !t.abortEarly) {
6605
+ for (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {
6606
+ X(this, "key", e, t, {
6607
+ input: r,
6608
+ expected: "never",
6609
+ path: [{
6610
+ type: "object",
6611
+ origin: "key",
6612
+ input: n,
6613
+ key: r,
6614
+ value: n[r]
6615
+ }]
6616
+ });
6617
+ break;
6618
+ }
6619
+ }
6620
+ } else X(this, "type", e, t);
6621
+ return e;
6622
+ }
6623
+ });
6624
+ }
6625
+ /* @__NO_SIDE_EFFECTS__ */
6610
6626
  function $(e) {
6611
6627
  return Qr({
6612
6628
  kind: "schema",
@@ -6731,7 +6747,7 @@ var li = /* @__PURE__ */ Q({
6731
6747
  "tool"
6732
6748
  ]);
6733
6749
  //#endregion
6734
- //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-B_EBeUaj.js
6750
+ //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-aYmFWSrn.js
6735
6751
  var yi = {
6736
6752
  ...vi,
6737
6753
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
@@ -6766,7 +6782,8 @@ var bi = di([
6766
6782
  ]), Si = /* @__PURE__ */ Q({ label: li }), Ci = di([
6767
6783
  "bidirectional",
6768
6784
  "destination",
6769
- "source"
6785
+ "source",
6786
+ "unknown"
6770
6787
  ]), wi = /* @__PURE__ */ Q({ label: li }), Ti = /* @__PURE__ */ Q({
6771
6788
  authMethodId: di([
6772
6789
  "apiKey",
@@ -6824,7 +6841,7 @@ var bi = di([
6824
6841
  function Ai(e) {
6825
6842
  let t = !1, n = !1;
6826
6843
  for (let r of e) ki.has(r) && (t = !0), Oi.has(r) && (n = !0);
6827
- return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "source";
6844
+ return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6828
6845
  }
6829
6846
  function ji(e) {
6830
6847
  let t = new Set(e), n = "|Action|Supported|\n";
@@ -6837,7 +6854,8 @@ function ji(e) {
6837
6854
  var Mi = "<!-- CONNECTOR_ACTIONS_START -->", Ni = "<!-- CONNECTOR_ACTIONS_END -->", Pi = "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.", Fi = {
6838
6855
  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.",
6839
6856
  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.",
6840
- 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."
6857
+ 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
+ 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."
6841
6859
  }, Ii = "The table below lists all connector actions and highlights those supported by this connector.";
6842
6860
  async function Li() {
6843
6861
  try {