@dpuse/dpuse-development 0.3.664 → 0.3.666

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.
@@ -6088,13 +6088,13 @@ function br(e) {
6088
6088
  }
6089
6089
  //#endregion
6090
6090
  //#region src/actions/documentDependencies.ts
6091
- var xr = "<!-- DEPENDENCY_LICENSES_START -->", Sr = "<!-- DEPENDENCY_LICENSES_END -->", Cr = "<!-- DEPENDENCY_TREE_START -->", wr = "<!-- DEPENDENCY_TREE_END -->";
6092
- async function Tr(e = "MIT") {
6091
+ var xr = "<!-- DEPENDENCY_LICENSES_START -->", Sr = "<!-- DEPENDENCY_LICENSES_END -->", Cr = "<!-- DEPENDENCY_TREE_START -->", wr = "<!-- DEPENDENCY_TREE_END -->", Tr = "The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are simply mature and stable, requiring no active development.";
6092
+ async function Er(e = "MIT") {
6093
6093
  try {
6094
6094
  G("Document Dependencies");
6095
6095
  let t = await W("package.json");
6096
6096
  if (t.name === "@dpuse/dpuse-development") {
6097
- await Er(), K("Dependencies documented");
6097
+ await Dr(), K("Dependencies documented");
6098
6098
  return;
6099
6099
  }
6100
6100
  await Mn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
@@ -6116,30 +6116,38 @@ async function Tr(e = "MIT") {
6116
6116
  "--all",
6117
6117
  "--json",
6118
6118
  "--omit=dev"
6119
- ], "licenses/licenseTree.json"), await Dr("4️⃣ "), K("Dependencies documented");
6119
+ ], "licenses/licenseTree.json"), await Or("4️⃣ ", e), K("Dependencies documented");
6120
6120
  } catch (e) {
6121
6121
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6122
6122
  }
6123
6123
  }
6124
- async function Er() {
6124
+ async function Dr() {
6125
6125
  q("1️⃣ Skip: @dpuse/dpuse-development is a development-only tool and is never part of a production release");
6126
6126
  let e = "> [!WARNING]\n> Dependency licenses are not documented here: @dpuse/dpuse-development is a development-only tool and is never part of a production release";
6127
6127
  await Bn("README.md", Gn(Gn(await Ln("./README.md"), e, xr, Sr), e, Cr, wr));
6128
6128
  }
6129
- async function Dr(e) {
6129
+ async function Or(e, t) {
6130
6130
  q(`${e} Insert licenses into 'README.md'`);
6131
- let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
6132
- for (let [e, n] of Object.entries(t)) r.set(e, Or(e, n));
6133
- await Promise.all(r.values().map(async (e) => {
6134
- let t = await kr(e.name, e.installedVersion);
6131
+ let [n, r] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), i = /* @__PURE__ */ new Map();
6132
+ for (let [e, t] of Object.entries(n)) i.set(e, jr(e, t));
6133
+ await Promise.all(i.values().map(async (e) => {
6134
+ let t = await Mr(e.name, e.installedVersion);
6135
6135
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6136
6136
  }));
6137
- let i = "|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n";
6138
- for (let e of r.values()) i += Ar(e);
6139
- let a = [];
6140
- n.dependencies != null && jr(n.dependencies, r, a, 0), await Bn("README.md", Gn(Gn(await Ln("./README.md"), i, xr, Sr), a.join("\n"), Cr, wr));
6137
+ let a = `${kr(t)}\n\n|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n`;
6138
+ for (let e of i.values()) a += Nr(e);
6139
+ let o = [];
6140
+ r.dependencies != null && Pr(r.dependencies, i, o, 0);
6141
+ let s = `${Tr}\n\n${o.join("\n")}`;
6142
+ await Bn("README.md", Gn(Gn(await Ln("./README.md"), a, xr, Sr), s, Cr, wr));
6141
6143
  }
6142
- function Or(e, t) {
6144
+ function kr(e) {
6145
+ return `License data is collected automatically on each release using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use ${Ar(e.split(";"))} — all permissive, commercially-friendly licenses. Developers cloning this repository should independently verify development dependencies; users of the uploaded library are covered by these checks.`;
6146
+ }
6147
+ function Ar(e) {
6148
+ return e.length === 1 ? e[0] ?? "" : e.length === 2 ? `${String(e[0])} or ${String(e[1])}` : `${e.slice(0, -1).join(", ")}, or ${String(e.at(-1))}`;
6149
+ }
6150
+ function jr(e, t) {
6143
6151
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6144
6152
  return {
6145
6153
  name: r,
@@ -6153,7 +6161,7 @@ function Or(e, t) {
6153
6161
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6154
6162
  };
6155
6163
  }
6156
- async function kr(e, t) {
6164
+ async function Mr(e, t) {
6157
6165
  try {
6158
6166
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6159
6167
  if (n.ok) {
@@ -6171,25 +6179,25 @@ async function kr(e, t) {
6171
6179
  publishedDate: ""
6172
6180
  };
6173
6181
  }
6174
- function Ar(e) {
6182
+ function Nr(e) {
6175
6183
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6176
6184
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6177
6185
  }
6178
- function jr(e, t, n, r) {
6186
+ function Pr(e, t, n, r) {
6179
6187
  let i = " ".repeat(r);
6180
6188
  for (let [a, o] of Object.entries(e)) {
6181
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Mr(s);
6182
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && jr(o.dependencies, t, n, r + 1);
6189
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Fr(s);
6190
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Pr(o.dependencies, t, n, r + 1);
6183
6191
  }
6184
6192
  }
6185
- function Mr(e) {
6193
+ function Fr(e) {
6186
6194
  if (e == null) return "";
6187
- let t = e.publishedDate ? Nr(e.publishedDate.split("T", 1)[0]) : "";
6195
+ let t = e.publishedDate ? Ir(e.publishedDate.split("T", 1)[0]) : "";
6188
6196
  if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
6189
- let n = e.latestPublishedDate ? Nr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6197
+ let n = e.latestPublishedDate ? Ir(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6190
6198
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6191
6199
  }
6192
- function Nr(e) {
6200
+ function Ir(e) {
6193
6201
  if (e == null || e === "") return "n/a";
6194
6202
  let t = e.split("T", 1)[0];
6195
6203
  if (t == null || t === "") return "n/a";
@@ -6198,43 +6206,43 @@ function Nr(e) {
6198
6206
  }
6199
6207
  //#endregion
6200
6208
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
6201
- var Pr, Fr = {
6209
+ var Lr, Rr = {
6202
6210
  lang: void 0,
6203
6211
  message: void 0,
6204
6212
  abortEarly: void 0,
6205
6213
  abortPipeEarly: void 0
6206
6214
  };
6207
6215
  /* @__NO_SIDE_EFFECTS__ */
6208
- function Ir(e) {
6209
- return !e && !Pr ? Fr : {
6210
- lang: e?.lang ?? Pr?.lang,
6216
+ function zr(e) {
6217
+ return !e && !Lr ? Rr : {
6218
+ lang: e?.lang ?? Lr?.lang,
6211
6219
  message: e?.message,
6212
- abortEarly: e?.abortEarly ?? Pr?.abortEarly,
6213
- abortPipeEarly: e?.abortPipeEarly ?? Pr?.abortPipeEarly
6220
+ abortEarly: e?.abortEarly ?? Lr?.abortEarly,
6221
+ abortPipeEarly: e?.abortPipeEarly ?? Lr?.abortPipeEarly
6214
6222
  };
6215
6223
  }
6216
- var Lr;
6224
+ var Br;
6217
6225
  /* @__NO_SIDE_EFFECTS__ */
6218
- function Rr(e) {
6219
- return Lr?.get(e);
6226
+ function Vr(e) {
6227
+ return Br?.get(e);
6220
6228
  }
6221
- var zr;
6229
+ var Hr;
6222
6230
  /* @__NO_SIDE_EFFECTS__ */
6223
- function Br(e) {
6224
- return zr?.get(e);
6231
+ function Ur(e) {
6232
+ return Hr?.get(e);
6225
6233
  }
6226
- var Vr;
6234
+ var Wr;
6227
6235
  /* @__NO_SIDE_EFFECTS__ */
6228
- function Hr(e, t) {
6229
- return Vr?.get(e)?.get(t);
6236
+ function Gr(e, t) {
6237
+ return Wr?.get(e)?.get(t);
6230
6238
  }
6231
6239
  /* @__NO_SIDE_EFFECTS__ */
6232
- function Ur(e) {
6240
+ function Kr(e) {
6233
6241
  let t = typeof e;
6234
6242
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6235
6243
  }
6236
6244
  function Y(e, t, n, r, i) {
6237
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Ur(a), c = {
6245
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Kr(a), c = {
6238
6246
  kind: e.kind,
6239
6247
  type: e.type,
6240
6248
  input: a,
@@ -6247,50 +6255,50 @@ function Y(e, t, n, r, i) {
6247
6255
  lang: r.lang,
6248
6256
  abortEarly: r.abortEarly,
6249
6257
  abortPipeEarly: r.abortPipeEarly
6250
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Hr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Br(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Rr(c.lang);
6258
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Gr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Ur(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Vr(c.lang);
6251
6259
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6252
6260
  }
6253
- var Wr = /* @__PURE__ */ new WeakMap();
6261
+ var qr = /* @__PURE__ */ new WeakMap();
6254
6262
  /* @__NO_SIDE_EFFECTS__ */
6255
- function X(e) {
6256
- let t = Wr.get(e);
6263
+ function Jr(e) {
6264
+ let t = qr.get(e);
6257
6265
  return t || (t = {
6258
6266
  version: 1,
6259
6267
  vendor: "valibot",
6260
6268
  validate(t) {
6261
- return e["~run"]({ value: t }, /* @__PURE__ */ Ir());
6269
+ return e["~run"]({ value: t }, /* @__PURE__ */ zr());
6262
6270
  }
6263
- }, Wr.set(e, t)), t;
6271
+ }, qr.set(e, t)), t;
6264
6272
  }
6265
6273
  /* @__NO_SIDE_EFFECTS__ */
6266
- function Gr(e, t) {
6274
+ function Yr(e, t) {
6267
6275
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6268
6276
  }
6269
6277
  /* @__NO_SIDE_EFFECTS__ */
6270
- function Kr(e, t) {
6278
+ function Xr(e, t) {
6271
6279
  let n = [...new Set(e)];
6272
6280
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6273
6281
  }
6274
6282
  /* @__NO_SIDE_EFFECTS__ */
6275
- function qr(e, t, n) {
6283
+ function Zr(e, t, n) {
6276
6284
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6277
6285
  }
6278
6286
  /* @__NO_SIDE_EFFECTS__ */
6279
- function Jr(e, t, n) {
6287
+ function Qr(e, t, n) {
6280
6288
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6281
6289
  }
6282
6290
  /* @__NO_SIDE_EFFECTS__ */
6283
- function Yr(e, t) {
6291
+ function $r(e, t) {
6284
6292
  return {
6285
6293
  kind: "schema",
6286
6294
  type: "array",
6287
- reference: Yr,
6295
+ reference: $r,
6288
6296
  expects: "Array",
6289
6297
  async: !1,
6290
6298
  item: e,
6291
6299
  message: t,
6292
6300
  get "~standard"() {
6293
- return /* @__PURE__ */ X(this);
6301
+ return /* @__PURE__ */ Jr(this);
6294
6302
  },
6295
6303
  "~run"(e, t) {
6296
6304
  let n = e.value;
@@ -6320,16 +6328,16 @@ function Yr(e, t) {
6320
6328
  };
6321
6329
  }
6322
6330
  /* @__NO_SIDE_EFFECTS__ */
6323
- function Xr(e) {
6331
+ function ei(e) {
6324
6332
  return {
6325
6333
  kind: "schema",
6326
6334
  type: "boolean",
6327
- reference: Xr,
6335
+ reference: ei,
6328
6336
  expects: "boolean",
6329
6337
  async: !1,
6330
6338
  message: e,
6331
6339
  get "~standard"() {
6332
- return /* @__PURE__ */ X(this);
6340
+ return /* @__PURE__ */ Jr(this);
6333
6341
  },
6334
6342
  "~run"(e, t) {
6335
6343
  return typeof e.value == "boolean" ? e.typed = !0 : Y(this, "type", e, t), e;
@@ -6337,17 +6345,17 @@ function Xr(e) {
6337
6345
  };
6338
6346
  }
6339
6347
  /* @__NO_SIDE_EFFECTS__ */
6340
- function Zr(e, t) {
6348
+ function ti(e, t) {
6341
6349
  return {
6342
6350
  kind: "schema",
6343
6351
  type: "literal",
6344
- reference: Zr,
6345
- expects: /* @__PURE__ */ Ur(e),
6352
+ reference: ti,
6353
+ expects: /* @__PURE__ */ Kr(e),
6346
6354
  async: !1,
6347
6355
  literal: e,
6348
6356
  message: t,
6349
6357
  get "~standard"() {
6350
- return /* @__PURE__ */ X(this);
6358
+ return /* @__PURE__ */ Jr(this);
6351
6359
  },
6352
6360
  "~run"(e, t) {
6353
6361
  return e.value === this.literal ? e.typed = !0 : Y(this, "type", e, t), e;
@@ -6355,34 +6363,34 @@ function Zr(e, t) {
6355
6363
  };
6356
6364
  }
6357
6365
  /* @__NO_SIDE_EFFECTS__ */
6358
- function Z(e, t) {
6366
+ function X(e, t) {
6359
6367
  return {
6360
6368
  kind: "schema",
6361
6369
  type: "nullable",
6362
- reference: Z,
6370
+ reference: X,
6363
6371
  expects: `(${e.expects} | null)`,
6364
6372
  async: !1,
6365
6373
  wrapped: e,
6366
6374
  default: t,
6367
6375
  get "~standard"() {
6368
- return /* @__PURE__ */ X(this);
6376
+ return /* @__PURE__ */ Jr(this);
6369
6377
  },
6370
6378
  "~run"(e, t) {
6371
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Jr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6379
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Qr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6372
6380
  }
6373
6381
  };
6374
6382
  }
6375
6383
  /* @__NO_SIDE_EFFECTS__ */
6376
- function Qr(e) {
6384
+ function ni(e) {
6377
6385
  return {
6378
6386
  kind: "schema",
6379
6387
  type: "number",
6380
- reference: Qr,
6388
+ reference: ni,
6381
6389
  expects: "number",
6382
6390
  async: !1,
6383
6391
  message: e,
6384
6392
  get "~standard"() {
6385
- return /* @__PURE__ */ X(this);
6393
+ return /* @__PURE__ */ Jr(this);
6386
6394
  },
6387
6395
  "~run"(e, t) {
6388
6396
  return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : Y(this, "type", e, t), e;
@@ -6390,17 +6398,17 @@ function Qr(e) {
6390
6398
  };
6391
6399
  }
6392
6400
  /* @__NO_SIDE_EFFECTS__ */
6393
- function Q(e, t) {
6401
+ function Z(e, t) {
6394
6402
  return {
6395
6403
  kind: "schema",
6396
6404
  type: "object",
6397
- reference: Q,
6405
+ reference: Z,
6398
6406
  expects: "Object",
6399
6407
  async: !1,
6400
6408
  entries: e,
6401
6409
  message: t,
6402
6410
  get "~standard"() {
6403
- return /* @__PURE__ */ X(this);
6411
+ return /* @__PURE__ */ Jr(this);
6404
6412
  },
6405
6413
  "~run"(e, t) {
6406
6414
  let n = e.value;
@@ -6409,7 +6417,7 @@ function Q(e, t) {
6409
6417
  for (let r in this.entries) {
6410
6418
  let i = this.entries[r];
6411
6419
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6412
- let a = r in n ? n[r] : /* @__PURE__ */ Jr(i), o = i["~run"]({ value: a }, t);
6420
+ let a = r in n ? n[r] : /* @__PURE__ */ Qr(i), o = i["~run"]({ value: a }, t);
6413
6421
  if (o.issues) {
6414
6422
  let i = {
6415
6423
  type: "object",
@@ -6425,7 +6433,7 @@ function Q(e, t) {
6425
6433
  }
6426
6434
  }
6427
6435
  o.typed || (e.typed = !1), e.value[r] = o.value;
6428
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ qr(i);
6436
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Zr(i);
6429
6437
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (Y(this, "key", e, t, {
6430
6438
  input: void 0,
6431
6439
  expected: `"${r}"`,
@@ -6444,42 +6452,42 @@ function Q(e, t) {
6444
6452
  };
6445
6453
  }
6446
6454
  /* @__NO_SIDE_EFFECTS__ */
6447
- function $r(e, t) {
6455
+ function Q(e, t) {
6448
6456
  return {
6449
6457
  kind: "schema",
6450
6458
  type: "optional",
6451
- reference: $r,
6459
+ reference: Q,
6452
6460
  expects: `(${e.expects} | undefined)`,
6453
6461
  async: !1,
6454
6462
  wrapped: e,
6455
6463
  default: t,
6456
6464
  get "~standard"() {
6457
- return /* @__PURE__ */ X(this);
6465
+ return /* @__PURE__ */ Jr(this);
6458
6466
  },
6459
6467
  "~run"(e, t) {
6460
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Jr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6468
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Qr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6461
6469
  }
6462
6470
  };
6463
6471
  }
6464
6472
  /* @__NO_SIDE_EFFECTS__ */
6465
- function ei(e, t, n) {
6473
+ function ri(e, t, n) {
6466
6474
  return {
6467
6475
  kind: "schema",
6468
6476
  type: "record",
6469
- reference: ei,
6477
+ reference: ri,
6470
6478
  expects: "Object",
6471
6479
  async: !1,
6472
6480
  key: e,
6473
6481
  value: t,
6474
6482
  message: n,
6475
6483
  get "~standard"() {
6476
- return /* @__PURE__ */ X(this);
6484
+ return /* @__PURE__ */ Jr(this);
6477
6485
  },
6478
6486
  "~run"(e, t) {
6479
6487
  let n = e.value;
6480
6488
  if (n && typeof n == "object") {
6481
6489
  e.typed = !0, e.value = {};
6482
- for (let r in n) if (/* @__PURE__ */ Gr(n, r)) {
6490
+ for (let r in n) if (/* @__PURE__ */ Yr(n, r)) {
6483
6491
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6484
6492
  if (a.issues) {
6485
6493
  let o = {
@@ -6527,7 +6535,7 @@ function $(e) {
6527
6535
  async: !1,
6528
6536
  message: e,
6529
6537
  get "~standard"() {
6530
- return /* @__PURE__ */ X(this);
6538
+ return /* @__PURE__ */ Jr(this);
6531
6539
  },
6532
6540
  "~run"(e, t) {
6533
6541
  return typeof e.value == "string" ? e.typed = !0 : Y(this, "type", e, t), e;
@@ -6535,24 +6543,24 @@ function $(e) {
6535
6543
  };
6536
6544
  }
6537
6545
  /* @__NO_SIDE_EFFECTS__ */
6538
- function ti(e) {
6546
+ function ii(e) {
6539
6547
  let t;
6540
6548
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6541
6549
  else t = n.issues;
6542
6550
  return t;
6543
6551
  }
6544
6552
  /* @__NO_SIDE_EFFECTS__ */
6545
- function ni(e, t) {
6553
+ function ai(e, t) {
6546
6554
  return {
6547
6555
  kind: "schema",
6548
6556
  type: "union",
6549
- reference: ni,
6550
- expects: /* @__PURE__ */ Kr(e.map((e) => e.expects), "|"),
6557
+ reference: ai,
6558
+ expects: /* @__PURE__ */ Xr(e.map((e) => e.expects), "|"),
6551
6559
  async: !1,
6552
6560
  options: e,
6553
6561
  message: t,
6554
6562
  get "~standard"() {
6555
- return /* @__PURE__ */ X(this);
6563
+ return /* @__PURE__ */ Jr(this);
6556
6564
  },
6557
6565
  "~run"(e, t) {
6558
6566
  let n, r, i;
@@ -6568,24 +6576,24 @@ function ni(e, t) {
6568
6576
  if (n) return n;
6569
6577
  if (r) {
6570
6578
  if (r.length === 1) return r[0];
6571
- Y(this, "type", e, t, { issues: /* @__PURE__ */ ti(r) }), e.typed = !0;
6579
+ Y(this, "type", e, t, { issues: /* @__PURE__ */ ii(r) }), e.typed = !0;
6572
6580
  } else if (i?.length === 1) return i[0];
6573
- else Y(this, "type", e, t, { issues: /* @__PURE__ */ ti(i) });
6581
+ else Y(this, "type", e, t, { issues: /* @__PURE__ */ ii(i) });
6574
6582
  return e;
6575
6583
  }
6576
6584
  };
6577
6585
  }
6578
- var ri = (e) => /* @__PURE__ */ ni(e.map((e) => /* @__PURE__ */ Zr(e))), ii = /* @__PURE__ */ Q({
6586
+ var oi = (e) => /* @__PURE__ */ ai(e.map((e) => /* @__PURE__ */ ti(e))), si = /* @__PURE__ */ Z({
6579
6587
  en: /* @__PURE__ */ $(),
6580
6588
  es: /* @__PURE__ */ $()
6581
- }), ai = /* @__PURE__ */ Q({
6582
- en: /* @__PURE__ */ $r(/* @__PURE__ */ Yr(/* @__PURE__ */ $())),
6583
- es: /* @__PURE__ */ $r(/* @__PURE__ */ Yr(/* @__PURE__ */ $()))
6584
- }), oi = /* @__PURE__ */ Q({
6585
- en: /* @__PURE__ */ $r(/* @__PURE__ */ $()),
6586
- es: /* @__PURE__ */ $r(/* @__PURE__ */ $())
6589
+ }), ci = /* @__PURE__ */ Z({
6590
+ en: /* @__PURE__ */ Q(/* @__PURE__ */ $r(/* @__PURE__ */ $())),
6591
+ es: /* @__PURE__ */ Q(/* @__PURE__ */ $r(/* @__PURE__ */ $()))
6592
+ }), li = /* @__PURE__ */ Z({
6593
+ en: /* @__PURE__ */ Q(/* @__PURE__ */ $()),
6594
+ es: /* @__PURE__ */ Q(/* @__PURE__ */ $())
6587
6595
  });
6588
- ri([
6596
+ oi([
6589
6597
  "app",
6590
6598
  "connection",
6591
6599
  "connector",
@@ -6610,12 +6618,12 @@ ri([
6610
6618
  "presenterPresentation",
6611
6619
  "tool"
6612
6620
  ]);
6613
- var si = ri([
6621
+ var ui = oi([
6614
6622
  "amber",
6615
6623
  "green",
6616
6624
  "red",
6617
6625
  "other"
6618
- ]), ci = ri([
6626
+ ]), di = oi([
6619
6627
  "alpha",
6620
6628
  "beta",
6621
6629
  "generalAvailability",
@@ -6625,31 +6633,31 @@ var si = ri([
6625
6633
  "releaseCandidate",
6626
6634
  "unavailable",
6627
6635
  "underReview"
6628
- ]), li = /* @__PURE__ */ Q({
6629
- color: si,
6636
+ ]), fi = /* @__PURE__ */ Z({
6637
+ color: ui,
6630
6638
  label: /* @__PURE__ */ $()
6631
- }), ui = /* @__PURE__ */ Q({
6639
+ }), pi = /* @__PURE__ */ Z({
6632
6640
  id: /* @__PURE__ */ $(),
6633
- label: oi,
6634
- description: ai,
6635
- icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6636
- iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6637
- iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6638
- order: /* @__PURE__ */ Qr(),
6641
+ label: li,
6642
+ description: ci,
6643
+ icon: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6644
+ iconDark: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6645
+ iconNeutral: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6646
+ order: /* @__PURE__ */ ni(),
6639
6647
  path: /* @__PURE__ */ $()
6640
- }), di = {
6648
+ }), mi = {
6641
6649
  id: /* @__PURE__ */ $(),
6642
- label: oi,
6643
- description: ai,
6644
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6645
- icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6646
- iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6647
- iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6648
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6649
- status: /* @__PURE__ */ Z(li),
6650
- statusId: /* @__PURE__ */ Z(ci)
6650
+ label: li,
6651
+ description: ci,
6652
+ firstCreatedAt: /* @__PURE__ */ X(/* @__PURE__ */ ni()),
6653
+ icon: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6654
+ iconDark: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6655
+ iconNeutral: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6656
+ lastUpdatedAt: /* @__PURE__ */ X(/* @__PURE__ */ ni()),
6657
+ status: /* @__PURE__ */ X(fi),
6658
+ statusId: /* @__PURE__ */ X(di)
6651
6659
  };
6652
- ({ ...di }), ri([
6660
+ ({ ...mi }), oi([
6653
6661
  "app",
6654
6662
  "engine",
6655
6663
  "connector",
@@ -6660,14 +6668,14 @@ var si = ri([
6660
6668
  ]);
6661
6669
  //#endregion
6662
6670
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
6663
- var fi = {
6664
- ...di,
6671
+ var hi = {
6672
+ ...mi,
6665
6673
  version: /* @__PURE__ */ $()
6666
6674
  };
6667
- ({ ...fi });
6675
+ ({ ...hi });
6668
6676
  //#endregion
6669
6677
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6670
- var pi = ri([
6678
+ var gi = oi([
6671
6679
  "abortOperation",
6672
6680
  "auditObjectContent",
6673
6681
  "createObject",
@@ -6682,35 +6690,35 @@ var pi = ri([
6682
6690
  "retrieveChunks",
6683
6691
  "retrieveRecords",
6684
6692
  "upsertRecords"
6685
- ]), mi = ri([
6693
+ ]), _i = oi([
6686
6694
  "application",
6687
6695
  "curatedDataset",
6688
6696
  "database",
6689
6697
  "fileStore"
6690
- ]), hi = /* @__PURE__ */ Q({ label: ii }), gi = /* @__PURE__ */ Q({
6691
- authMethodId: ri([
6698
+ ]), vi = /* @__PURE__ */ Z({ label: si }), yi = /* @__PURE__ */ Z({
6699
+ authMethodId: oi([
6692
6700
  "apiKey",
6693
6701
  "disabled",
6694
6702
  "oAuth2",
6695
6703
  "none"
6696
6704
  ]),
6697
- activeConnectionCount: /* @__PURE__ */ $r(/* @__PURE__ */ Qr()),
6698
- canDescribe: /* @__PURE__ */ $r(/* @__PURE__ */ Xr()),
6699
- id: /* @__PURE__ */ $r(/* @__PURE__ */ $()),
6700
- label: /* @__PURE__ */ $r(ii),
6701
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ Qr()),
6702
- params: /* @__PURE__ */ $r(/* @__PURE__ */ Yr(/* @__PURE__ */ ei(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6703
- }), _i = /* @__PURE__ */ Q({
6704
- typeId: /* @__PURE__ */ Zr("connector"),
6705
- ...fi,
6706
- actionNames: /* @__PURE__ */ Yr(pi),
6707
- category: /* @__PURE__ */ Z(hi),
6708
- categoryId: mi,
6709
- implementations: /* @__PURE__ */ ei(/* @__PURE__ */ $(), gi),
6710
- vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6711
- vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6712
- vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6713
- }), vi = {
6705
+ activeConnectionCount: /* @__PURE__ */ Q(/* @__PURE__ */ ni()),
6706
+ canDescribe: /* @__PURE__ */ Q(/* @__PURE__ */ ei()),
6707
+ id: /* @__PURE__ */ Q(/* @__PURE__ */ $()),
6708
+ label: /* @__PURE__ */ Q(si),
6709
+ maxConnectionCount: /* @__PURE__ */ X(/* @__PURE__ */ ni()),
6710
+ params: /* @__PURE__ */ Q(/* @__PURE__ */ $r(/* @__PURE__ */ ri(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6711
+ }), bi = /* @__PURE__ */ Z({
6712
+ typeId: /* @__PURE__ */ ti("connector"),
6713
+ ...hi,
6714
+ actionNames: /* @__PURE__ */ $r(gi),
6715
+ category: /* @__PURE__ */ X(vi),
6716
+ categoryId: _i,
6717
+ implementations: /* @__PURE__ */ ri(/* @__PURE__ */ $(), yi),
6718
+ vendorAccountURL: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6719
+ vendorDocumentationURL: /* @__PURE__ */ X(/* @__PURE__ */ $()),
6720
+ vendorHomeURL: /* @__PURE__ */ X(/* @__PURE__ */ $())
6721
+ }), xi = {
6714
6722
  abortOperation: "Abort Operation",
6715
6723
  auditObjectContent: "Audit Object Content",
6716
6724
  createObject: "Create Object",
@@ -6725,28 +6733,52 @@ var pi = ri([
6725
6733
  retrieveChunks: "Retrieve Chunks",
6726
6734
  retrieveRecords: "Retrieve Records",
6727
6735
  upsertRecords: "Upsert Records"
6728
- };
6729
- function yi(e) {
6736
+ }, Si = /* @__PURE__ */ new Set([
6737
+ "createObject",
6738
+ "dropObject",
6739
+ "removeRecords",
6740
+ "upsertRecords"
6741
+ ]), Ci = /* @__PURE__ */ new Set([
6742
+ "auditObjectContent",
6743
+ "findObject",
6744
+ "getReadableStream",
6745
+ "getRecord",
6746
+ "listNodes",
6747
+ "previewObject",
6748
+ "retrieveChunks",
6749
+ "retrieveRecords"
6750
+ ]);
6751
+ function wi(e) {
6752
+ let t = !1, n = !1;
6753
+ for (let r of e) Ci.has(r) && (t = !0), Si.has(r) && (n = !0);
6754
+ return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6755
+ }
6756
+ function Ti(e) {
6730
6757
  let t = new Set(e), n = "|Action|Supported|\n";
6731
6758
  n += "|:----|:-------:|\n";
6732
- for (let e of Object.keys(vi)) n += `| ${vi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6759
+ for (let e of Object.keys(xi)) n += `| ${xi[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6733
6760
  return n;
6734
6761
  }
6735
6762
  //#endregion
6736
6763
  //#region src/actions/documentActions.ts
6737
- var bi = "<!-- CONNECTOR_ACTIONS_START -->", xi = "<!-- CONNECTOR_ACTIONS_END -->";
6738
- async function Si() {
6764
+ var Ei = "<!-- CONNECTOR_ACTIONS_START -->", Di = "<!-- CONNECTOR_ACTIONS_END -->", Oi = "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.", ki = {
6765
+ 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.",
6766
+ 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.",
6767
+ 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.",
6768
+ 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."
6769
+ }, Ai = "The table below lists all connector actions and highlights those supported by this connector.";
6770
+ async function ji() {
6739
6771
  try {
6740
- G("Document Actions"), q("1️⃣ Insert actions table into 'README.md'");
6741
- let e = yi((await W("config.json")).actionNames ?? []);
6742
- await Bn("README.md", Gn(await Ln("./README.md"), e, bi, xi)), K("Actions documented");
6772
+ G("Document Actions"), q("1️⃣ Insert actions description and table into 'README.md'");
6773
+ let e = (await W("config.json")).actionNames ?? [], t = wi(e), n = Ti(e), r = `${Oi}\n\n${ki[t]} ${Ai}\n\n${n}`;
6774
+ await Bn("README.md", Gn(await Ln("./README.md"), r, Ei, Di)), K("Actions documented");
6743
6775
  } catch (e) {
6744
6776
  console.error("❌ Error documenting actions", e), process.exit(1);
6745
6777
  }
6746
6778
  }
6747
6779
  //#endregion
6748
6780
  //#region src/actions/formatCode.ts
6749
- async function Ci() {
6781
+ async function Mi() {
6750
6782
  try {
6751
6783
  G("Format Code"), await Fn("1️⃣ Format", "prettier", [
6752
6784
  "--write",
@@ -6761,7 +6793,7 @@ async function Ci() {
6761
6793
  }
6762
6794
  //#endregion
6763
6795
  //#region src/actions/lintCode.ts
6764
- async function wi() {
6796
+ async function Ni() {
6765
6797
  try {
6766
6798
  G("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), K("Code linted");
6767
6799
  } catch (e) {
@@ -6770,7 +6802,7 @@ async function wi() {
6770
6802
  }
6771
6803
  //#endregion
6772
6804
  //#region src/utilities/cloudflare.ts
6773
- async function Ti() {
6805
+ async function Pi() {
6774
6806
  let e = await W("config.json"), t = {
6775
6807
  body: JSON.stringify(e),
6776
6808
  headers: { "Content-Type": "application/json" },
@@ -6778,7 +6810,7 @@ async function Ti() {
6778
6810
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6779
6811
  if (!n.ok) throw Error(await n.text());
6780
6812
  }
6781
- async function Ei(e, t) {
6813
+ async function Fi(e, t) {
6782
6814
  async function n(e, t, r) {
6783
6815
  for (let i of r) {
6784
6816
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6796,7 +6828,7 @@ async function Ei(e, t) {
6796
6828
  let r = await Nn(`${e}/${t}/`);
6797
6829
  await n(`${e}/${t}`, t, r);
6798
6830
  }
6799
- async function Di(e) {
6831
+ async function Ii(e) {
6800
6832
  let t = e.id, n = {
6801
6833
  body: JSON.stringify(e),
6802
6834
  headers: { "Content-Type": "application/json" },
@@ -6804,7 +6836,7 @@ async function Di(e) {
6804
6836
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6805
6837
  if (!r.ok) throw Error(await r.text());
6806
6838
  }
6807
- async function Oi(e, t) {
6839
+ async function Li(e, t) {
6808
6840
  let n = `v${e.version ?? "unknown"}`;
6809
6841
  async function r(e, r = "") {
6810
6842
  let i = await Nn(e, { withFileTypes: !0 });
@@ -6828,24 +6860,24 @@ async function Oi(e, t) {
6828
6860
  }
6829
6861
  //#endregion
6830
6862
  //#region node_modules/valibot/dist/index.mjs
6831
- var ki, Ai = {
6863
+ var Ri, zi = {
6832
6864
  lang: void 0,
6833
6865
  message: void 0,
6834
6866
  abortEarly: void 0,
6835
6867
  abortPipeEarly: void 0
6836
6868
  };
6837
6869
  /* @__NO_SIDE_EFFECTS__ */
6838
- function ji(e) {
6839
- return !e && !ki ? Ai : {
6840
- lang: e?.lang ?? ki?.lang,
6870
+ function Bi(e) {
6871
+ return !e && !Ri ? zi : {
6872
+ lang: e?.lang ?? Ri?.lang,
6841
6873
  message: e?.message,
6842
- abortEarly: e?.abortEarly ?? ki?.abortEarly,
6843
- abortPipeEarly: e?.abortPipeEarly ?? ki?.abortPipeEarly
6874
+ abortEarly: e?.abortEarly ?? Ri?.abortEarly,
6875
+ abortPipeEarly: e?.abortPipeEarly ?? Ri?.abortPipeEarly
6844
6876
  };
6845
6877
  }
6846
6878
  /* @__NO_SIDE_EFFECTS__ */
6847
- function Mi(e, t, n) {
6848
- let r = e["~run"]({ value: t }, /* @__PURE__ */ ji(n));
6879
+ function Vi(e, t, n) {
6880
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ Bi(n));
6849
6881
  return {
6850
6882
  typed: r.typed,
6851
6883
  success: !r.issues,
@@ -6855,81 +6887,69 @@ function Mi(e, t, n) {
6855
6887
  }
6856
6888
  //#endregion
6857
6889
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
6858
- var Ni = /* @__PURE__ */ Q({
6859
- typeId: /* @__PURE__ */ Zr("contextArea"),
6860
- ...di,
6861
- modelRefs: /* @__PURE__ */ Yr(ui),
6862
- order: /* @__PURE__ */ Qr()
6863
- }), Pi = ri(["listContextFocuses"]), Fi = /* @__PURE__ */ Q({
6864
- typeId: /* @__PURE__ */ Zr("context"),
6865
- ...fi,
6866
- actionNames: /* @__PURE__ */ Yr(Pi),
6867
- models: /* @__PURE__ */ Yr(Ni)
6868
- }), Ii = ri([
6890
+ var Hi = /* @__PURE__ */ Z({
6891
+ typeId: /* @__PURE__ */ ti("contextArea"),
6892
+ ...mi,
6893
+ modelRefs: /* @__PURE__ */ $r(pi),
6894
+ order: /* @__PURE__ */ ni()
6895
+ }), Ui = oi(["listContextFocuses"]), Wi = /* @__PURE__ */ Z({
6896
+ typeId: /* @__PURE__ */ ti("context"),
6897
+ ...hi,
6898
+ actionNames: /* @__PURE__ */ $r(Ui),
6899
+ models: /* @__PURE__ */ $r(Hi)
6900
+ }), Gi = oi([
6869
6901
  "list",
6870
6902
  "render",
6871
6903
  "setColorMode"
6872
- ]), Li = /* @__PURE__ */ Q({
6873
- typeId: /* @__PURE__ */ Zr("presenter"),
6874
- ...fi,
6875
- actionNames: /* @__PURE__ */ Yr(Ii),
6876
- presentations: /* @__PURE__ */ Yr(ui)
6877
- }), Ri = /* @__PURE__ */ new Set([
6878
- "createObject",
6879
- "dropObject",
6880
- "removeRecords",
6881
- "upsertRecords"
6882
- ]), zi = /* @__PURE__ */ new Set([
6883
- "auditObjectContent",
6884
- "findObjectFolderPath",
6885
- "getReadableStream",
6886
- "getRecord",
6887
- "listNodes",
6888
- "previewObject",
6889
- "retrieveChunks",
6890
- "retrieveRecords"
6891
- ]);
6892
- async function Bi() {
6904
+ ]), Ki = /* @__PURE__ */ Z({
6905
+ typeId: /* @__PURE__ */ ti("presenter"),
6906
+ ...hi,
6907
+ actionNames: /* @__PURE__ */ $r(Gi),
6908
+ presentations: /* @__PURE__ */ $r(pi)
6909
+ });
6910
+ //#endregion
6911
+ //#region src/actions/manageProject.ts
6912
+ async function qi() {
6893
6913
  try {
6894
6914
  G("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), K("Project built");
6895
6915
  } catch (e) {
6896
6916
  console.error("❌ Error building project", e), process.exit(1);
6897
6917
  }
6898
6918
  }
6899
- async function Vi() {
6919
+ async function Ji() {
6900
6920
  try {
6901
6921
  G("Publish Project");
6902
6922
  let e = await W("package.json"), t = await W("config.json"), n = Vn(t.id);
6903
- if (n.typeId === "app") q("1️⃣ Register module"), await Ti();
6904
- else if (n.typeId === "engine") q("1️⃣ Register module"), await Oi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Di(t);
6923
+ if (n.typeId === "app") q("1️⃣ Register module"), await Pi();
6924
+ else if (n.typeId === "engine") q("1️⃣ Register module"), await Li(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Ii(t);
6905
6925
  else if (n.uploadGroupName === void 0) q("1️⃣ Publishing NOT required");
6906
6926
  else {
6907
6927
  q("1️⃣ Register module");
6908
6928
  let r = t.id.split("-").slice(2).join("-");
6909
- await Oi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Di(t);
6929
+ await Li(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Ii(t);
6910
6930
  }
6911
6931
  K(`Project version '${e.version ?? "unknown"}' published.`);
6912
6932
  } catch (e) {
6913
6933
  console.error("❌ Error publishing project", e), process.exit(1);
6914
6934
  }
6915
6935
  }
6916
- async function Hi() {
6936
+ async function Yi() {
6917
6937
  try {
6918
6938
  G("Release Project");
6919
6939
  let e = await W("package.json"), t = await W("config.json");
6920
- await Zi("1️⃣ ", e);
6940
+ await ra("1️⃣ ", e);
6921
6941
  let n = Vn(t.id);
6922
6942
  switch (n.typeId) {
6923
6943
  case "connector":
6924
- t = await Wi("2️⃣ ", e);
6944
+ t = await Zi("2️⃣ ", e);
6925
6945
  break;
6926
6946
  case "context":
6927
- t = await Gi("2️⃣ ", e);
6947
+ t = await Qi("2️⃣ ", e);
6928
6948
  break;
6929
6949
  case "presenter":
6930
- t = await Ki("2️⃣ ", e);
6950
+ t = await $i("2️⃣ ", e);
6931
6951
  break;
6932
- default: t = await Ui("2️⃣ ", e);
6952
+ default: t = await Xi("2️⃣ ", e);
6933
6953
  }
6934
6954
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
6935
6955
  "commit",
@@ -6939,13 +6959,13 @@ async function Hi() {
6939
6959
  "push",
6940
6960
  "origin",
6941
6961
  "main:main"
6942
- ]), n.typeId === "app") q("7️⃣ Register module"), await Ti();
6943
- else if (n.typeId === "engine") q("7️⃣ Register module"), await Oi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Di(t);
6962
+ ]), n.typeId === "app") q("7️⃣ Register module"), await Pi();
6963
+ else if (n.typeId === "engine") q("7️⃣ Register module"), await Li(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Ii(t);
6944
6964
  else if (n.uploadGroupName === void 0) q("7️⃣ Registration NOT required");
6945
6965
  else {
6946
6966
  q("7️⃣ Register module");
6947
6967
  let r = t.id.split("-").slice(2).join("-");
6948
- await Oi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Di(t);
6968
+ await Li(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Ii(t);
6949
6969
  }
6950
6970
  if (n.publishedTo === "npm") {
6951
6971
  let e = ".npmrc";
@@ -6964,53 +6984,48 @@ async function Hi() {
6964
6984
  console.error("❌ Error releasing project", e), process.exit(1);
6965
6985
  }
6966
6986
  }
6967
- async function Ui(e, t) {
6987
+ async function Xi(e, t) {
6968
6988
  q(`${e} Build project configuration`);
6969
6989
  let n = await W("config.json");
6970
6990
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await zn("config.json", n), n;
6971
6991
  }
6972
- async function Wi(e, t) {
6992
+ async function Zi(e, t) {
6973
6993
  q(`${e} Build connector project configuration`);
6974
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Mi(_i, n);
6994
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Vi(bi, n);
6975
6995
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6976
6996
  let a = Un(r);
6977
- return await Ji(t, n, a, qi(a));
6997
+ return await ea(t, n, a, wi(a));
6978
6998
  }
6979
- async function Gi(e, t) {
6999
+ async function Qi(e, t) {
6980
7000
  q(`${e} Build context project configuration`);
6981
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Mi(Fi, n);
7001
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Vi(Wi, n);
6982
7002
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6983
- return await Ji(t, n, Un(r));
7003
+ return await ea(t, n, Un(r));
6984
7004
  }
6985
- async function Ki(e, t) {
7005
+ async function $i(e, t) {
6986
7006
  q(`${e} Build presenter project configuration`);
6987
- let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Mi(Li, n);
7007
+ let [n, r] = await Promise.all([W("config.json"), Ln("src/index.ts")]), i = /* @__PURE__ */ Vi(Ki, n);
6988
7008
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
6989
- return await Ji(t, n, Un(r));
7009
+ return await ea(t, n, Un(r));
6990
7010
  }
6991
- function qi(e) {
6992
- let t = !1, n = !1;
6993
- for (let r of e) zi.has(r) && (t = !0), Ri.has(r) && (n = !0);
6994
- return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
7011
+ async function ea(e, t, n, r) {
7012
+ 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 zn("config.json", t), t;
6995
7013
  }
6996
- async function Ji(e, t, n, r) {
6997
- 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") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await zn("config.json", t), t;
6998
- }
6999
- async function Yi() {
7014
+ async function ta() {
7000
7015
  try {
7001
7016
  G("Synchronise Project with GitHub");
7002
7017
  let e = await W("package.json"), t = await W("config.json");
7003
- switch (await Zi("1️⃣ ", e), Vn(t.id).typeId) {
7018
+ switch (await ra("1️⃣ ", e), Vn(t.id).typeId) {
7004
7019
  case "connector":
7005
- await Wi("2️⃣ ", e);
7020
+ await Zi("2️⃣ ", e);
7006
7021
  break;
7007
7022
  case "context":
7008
- await Gi("2️⃣ ", e);
7023
+ await Qi("2️⃣ ", e);
7009
7024
  break;
7010
7025
  case "presenter":
7011
- await Ki("2️⃣ ", e);
7026
+ await $i("2️⃣ ", e);
7012
7027
  break;
7013
- default: await Ui("2️⃣ ", e);
7028
+ default: await Xi("2️⃣ ", e);
7014
7029
  }
7015
7030
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7016
7031
  "commit",
@@ -7025,14 +7040,14 @@ async function Yi() {
7025
7040
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7026
7041
  }
7027
7042
  }
7028
- function Xi() {
7043
+ function na() {
7029
7044
  try {
7030
7045
  G("Test Project"), console.error("\n❌ No tests implemented.\n");
7031
7046
  } catch (e) {
7032
7047
  console.error("❌ Error testing project", e), process.exit(1);
7033
7048
  }
7034
7049
  }
7035
- async function Zi(e, t, n = "./") {
7050
+ async function ra(e, t, n = "./") {
7036
7051
  if (q(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7037
7052
  else {
7038
7053
  let e = t.version, n = t.version.split(".");
@@ -7041,6 +7056,6 @@ async function Zi(e, t, n = "./") {
7041
7056
  await zn(`${n}package.json`, t);
7042
7057
  }
7043
7058
  //#endregion
7044
- export { Kn as auditDependencies, Bi as buildProject, qn as checkConfigFiles, $n as checkDependencies, Si as documentActions, ir as documentBundleSizes, Tr as documentDependencies, Ci as formatCode, wi as lintCode, Vi as publishProject, Hi as releaseProject, Yi as syncProjectWithGitHub, Xi as testProject, Ei as uploadDirectoryToR2 };
7059
+ export { Kn as auditDependencies, qi as buildProject, qn as checkConfigFiles, $n as checkDependencies, ji as documentActions, ir as documentBundleSizes, Er as documentDependencies, Mi as formatCode, Ni as lintCode, Ji as publishProject, Yi as releaseProject, ta as syncProjectWithGitHub, na as testProject, Fi as uploadDirectoryToR2 };
7045
7060
 
7046
7061
  //# sourceMappingURL=dpuse-development.es.js.map