@dpuse/dpuse-development 0.3.671 → 0.3.674

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.
@@ -6206,44 +6206,122 @@ function Ir(e) {
6206
6206
  return r.getDate() < n.getDate() && --i, i === 0 ? `this month: ${t}` : i === 1 ? `1 month ago: ${t}` : i <= 6 ? `${String(i)} months ago: ${t}` : `${String(i)} months ago: ${t} ⚠️ `;
6207
6207
  }
6208
6208
  //#endregion
6209
+ //#region src/actions/documentGovernance.ts
6210
+ var Lr = "<!-- GOVERNANCE_START -->", Rr = "<!-- GOVERNANCE_END -->";
6211
+ async function zr() {
6212
+ try {
6213
+ K("Document Governance"), J("1️⃣ Insert governance content into 'README.md'");
6214
+ let [e, t] = await Promise.all([W("package.json"), W("config.json")]), { owner: n, repo: r } = Br(e), i = Ur(n, r, Vr(e), Hr(t.firstCreatedAt));
6215
+ await zn("README.md", Wn(await G("./README.md"), i, Lr, Rr)), q("Governance documented");
6216
+ } catch (e) {
6217
+ console.error("❌ Error documenting governance", e), process.exit(1);
6218
+ }
6219
+ }
6220
+ function Br(e) {
6221
+ let t = e.repository, n = typeof t == "string" ? t : t?.url;
6222
+ if (n == null || n === "") throw Error("package.json 'repository' field is required to document governance.");
6223
+ let r = n.replace(/^git\+/, "").replace(/\.git$/, ""), i = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(r);
6224
+ if (i?.[1] == null || i[2] == null) throw Error(`Unable to parse GitHub owner/repo from '${n}'.`);
6225
+ return {
6226
+ owner: i[1],
6227
+ repo: i[2]
6228
+ };
6229
+ }
6230
+ function Vr(e) {
6231
+ let t = e.author, n = typeof t == "string" ? t : t?.name;
6232
+ if (n == null || n === "") throw Error("package.json 'author' field is required to document governance.");
6233
+ return n.replace(/\s*<[^>]*>\s*/, "").trim();
6234
+ }
6235
+ function Hr(e) {
6236
+ let t = (/* @__PURE__ */ new Date()).getFullYear();
6237
+ if (e == null) return String(t);
6238
+ let n = new Date(e).getFullYear();
6239
+ return n === t ? String(t) : `${String(n)}-present`;
6240
+ }
6241
+ function Ur(e, t, n, r) {
6242
+ let i = `https://github.com/${e}/${t}`, a = `github.com/${e}/${t}`;
6243
+ return `## Security & Quality
6244
+
6245
+ ### CodeQL
6246
+
6247
+ [CodeQL](${i}/security/code-scanning) static analysis runs on every push to \`main\` and on a weekly schedule, scanning TypeScript, JavaScript, Rust, and GitHub Actions workflow files for security vulnerabilities and coding errors.
6248
+
6249
+ ### SonarCloud
6250
+
6251
+ [SonarCloud](https://sonarcloud.io/summary/new_code?id=${e}_${t}) performs continuous code quality and security analysis on every push, detecting bugs, code smells, and security vulnerabilities in the TypeScript source.
6252
+
6253
+ ### Vulnerability Scanning
6254
+
6255
+ Two complementary tools continuously monitor dependencies for known vulnerabilities:
6256
+
6257
+ - **[GitHub Dependabot](https://docs.github.com/en/code-security/dependabot)** automatically raises pull requests to update vulnerable dependencies, drawing on the GitHub Advisory Database which combines NVD and npm-specific advisories.
6258
+ - **npm audit** runs on every push to \`main\` via the CI workflow, failing the build if any high or critical severity vulnerabilities are detected.
6259
+
6260
+ ### Supply Chain Security
6261
+
6262
+ [Socket.dev](https://socket.dev) monitors all dependencies for supply chain risk — detecting malicious packages, dependency confusion, typosquatting, and suspicious behaviour that may not yet have a CVE.
6263
+
6264
+ ### Reporting Vulnerabilities
6265
+
6266
+ Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](${i}/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
6267
+
6268
+ ### OpenSSF 🚧
6269
+
6270
+ [![OpenSSF Scorecard](https://api.scorecard.dev/projects/${a}/badge)](https://scorecard.dev/viewer/?uri=${a})
6271
+
6272
+ This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=${a}) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
6273
+
6274
+ ## Contributing
6275
+
6276
+ This repository is maintained solely by its owner and does not, at present, accept external contributions into the canonical repo. Its source is published openly under the MIT License — every DPUse project is fully open source except DPUse Engine, which remains closed and proprietary.
6277
+
6278
+ For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnerabilities). For bugs, inconsistencies, or other feedback, [open a GitHub issue](${i}/issues) — feedback is read, but responses and fixes are at the maintainer's discretion.
6279
+
6280
+ ## License
6281
+
6282
+ This project is licensed under the MIT License, permitting free use, modification, and distribution.
6283
+
6284
+ [MIT](./LICENSE) © ${r}-present ${n}`;
6285
+ }
6286
+ //#endregion
6209
6287
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
6210
- var Lr, Rr = {
6288
+ var Wr, Gr = {
6211
6289
  lang: void 0,
6212
6290
  message: void 0,
6213
6291
  abortEarly: void 0,
6214
6292
  abortPipeEarly: void 0
6215
6293
  };
6216
6294
  /* @__NO_SIDE_EFFECTS__ */
6217
- function zr(e) {
6218
- return !e && !Lr ? Rr : {
6219
- lang: e?.lang ?? Lr?.lang,
6295
+ function Kr(e) {
6296
+ return !e && !Wr ? Gr : {
6297
+ lang: e?.lang ?? Wr?.lang,
6220
6298
  message: e?.message,
6221
- abortEarly: e?.abortEarly ?? Lr?.abortEarly,
6222
- abortPipeEarly: e?.abortPipeEarly ?? Lr?.abortPipeEarly
6299
+ abortEarly: e?.abortEarly ?? Wr?.abortEarly,
6300
+ abortPipeEarly: e?.abortPipeEarly ?? Wr?.abortPipeEarly
6223
6301
  };
6224
6302
  }
6225
- var Br;
6303
+ var qr;
6226
6304
  /* @__NO_SIDE_EFFECTS__ */
6227
- function Vr(e) {
6228
- return Br?.get(e);
6305
+ function Jr(e) {
6306
+ return qr?.get(e);
6229
6307
  }
6230
- var Hr;
6308
+ var Yr;
6231
6309
  /* @__NO_SIDE_EFFECTS__ */
6232
- function Ur(e) {
6233
- return Hr?.get(e);
6310
+ function Xr(e) {
6311
+ return Yr?.get(e);
6234
6312
  }
6235
- var Wr;
6313
+ var Zr;
6236
6314
  /* @__NO_SIDE_EFFECTS__ */
6237
- function Gr(e, t) {
6238
- return Wr?.get(e)?.get(t);
6315
+ function Qr(e, t) {
6316
+ return Zr?.get(e)?.get(t);
6239
6317
  }
6240
6318
  /* @__NO_SIDE_EFFECTS__ */
6241
- function Kr(e) {
6319
+ function $r(e) {
6242
6320
  let t = typeof e;
6243
6321
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6244
6322
  }
6245
- function qr(e, t, n, r, i) {
6246
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Kr(a), c = {
6323
+ function X(e, t, n, r, i) {
6324
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ $r(a), c = {
6247
6325
  kind: e.kind,
6248
6326
  type: e.type,
6249
6327
  input: a,
@@ -6256,50 +6334,50 @@ function qr(e, t, n, r, i) {
6256
6334
  lang: r.lang,
6257
6335
  abortEarly: r.abortEarly,
6258
6336
  abortPipeEarly: r.abortPipeEarly
6259
- }, 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);
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);
6260
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];
6261
6339
  }
6262
- var Jr = /* @__PURE__ */ new WeakMap();
6340
+ var ei = /* @__PURE__ */ new WeakMap();
6263
6341
  /* @__NO_SIDE_EFFECTS__ */
6264
- function X(e) {
6265
- let t = Jr.get(e);
6342
+ function ti(e) {
6343
+ let t = ei.get(e);
6266
6344
  return t || (t = {
6267
6345
  version: 1,
6268
6346
  vendor: "valibot",
6269
6347
  validate(t) {
6270
- return e["~run"]({ value: t }, /* @__PURE__ */ zr());
6348
+ return e["~run"]({ value: t }, /* @__PURE__ */ Kr());
6271
6349
  }
6272
- }, Jr.set(e, t)), t;
6350
+ }, ei.set(e, t)), t;
6273
6351
  }
6274
6352
  /* @__NO_SIDE_EFFECTS__ */
6275
- function Yr(e, t) {
6353
+ function ni(e, t) {
6276
6354
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6277
6355
  }
6278
6356
  /* @__NO_SIDE_EFFECTS__ */
6279
- function Xr(e, t) {
6357
+ function ri(e, t) {
6280
6358
  let n = [...new Set(e)];
6281
6359
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6282
6360
  }
6283
6361
  /* @__NO_SIDE_EFFECTS__ */
6284
- function Zr(e, t, n) {
6362
+ function ii(e, t, n) {
6285
6363
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6286
6364
  }
6287
6365
  /* @__NO_SIDE_EFFECTS__ */
6288
- function Qr(e, t, n) {
6366
+ function ai(e, t, n) {
6289
6367
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6290
6368
  }
6291
6369
  /* @__NO_SIDE_EFFECTS__ */
6292
- function $r(e, t) {
6370
+ function oi(e, t) {
6293
6371
  return {
6294
6372
  kind: "schema",
6295
6373
  type: "array",
6296
- reference: $r,
6374
+ reference: oi,
6297
6375
  expects: "Array",
6298
6376
  async: !1,
6299
6377
  item: e,
6300
6378
  message: t,
6301
6379
  get "~standard"() {
6302
- return /* @__PURE__ */ X(this);
6380
+ return /* @__PURE__ */ ti(this);
6303
6381
  },
6304
6382
  "~run"(e, t) {
6305
6383
  let n = e.value;
@@ -6323,43 +6401,43 @@ function $r(e, t) {
6323
6401
  }
6324
6402
  a.typed || (e.typed = !1), e.value.push(a.value);
6325
6403
  }
6326
- } else qr(this, "type", e, t);
6404
+ } else X(this, "type", e, t);
6327
6405
  return e;
6328
6406
  }
6329
6407
  };
6330
6408
  }
6331
6409
  /* @__NO_SIDE_EFFECTS__ */
6332
- function ei(e) {
6410
+ function si(e) {
6333
6411
  return {
6334
6412
  kind: "schema",
6335
6413
  type: "boolean",
6336
- reference: ei,
6414
+ reference: si,
6337
6415
  expects: "boolean",
6338
6416
  async: !1,
6339
6417
  message: e,
6340
6418
  get "~standard"() {
6341
- return /* @__PURE__ */ X(this);
6419
+ return /* @__PURE__ */ ti(this);
6342
6420
  },
6343
6421
  "~run"(e, t) {
6344
- return typeof e.value == "boolean" ? e.typed = !0 : qr(this, "type", e, t), e;
6422
+ return typeof e.value == "boolean" ? e.typed = !0 : X(this, "type", e, t), e;
6345
6423
  }
6346
6424
  };
6347
6425
  }
6348
6426
  /* @__NO_SIDE_EFFECTS__ */
6349
- function ti(e, t) {
6427
+ function ci(e, t) {
6350
6428
  return {
6351
6429
  kind: "schema",
6352
6430
  type: "literal",
6353
- reference: ti,
6354
- expects: /* @__PURE__ */ Kr(e),
6431
+ reference: ci,
6432
+ expects: /* @__PURE__ */ $r(e),
6355
6433
  async: !1,
6356
6434
  literal: e,
6357
6435
  message: t,
6358
6436
  get "~standard"() {
6359
- return /* @__PURE__ */ X(this);
6437
+ return /* @__PURE__ */ ti(this);
6360
6438
  },
6361
6439
  "~run"(e, t) {
6362
- return e.value === this.literal ? e.typed = !0 : qr(this, "type", e, t), e;
6440
+ return e.value === this.literal ? e.typed = !0 : X(this, "type", e, t), e;
6363
6441
  }
6364
6442
  };
6365
6443
  }
@@ -6374,27 +6452,27 @@ function Z(e, t) {
6374
6452
  wrapped: e,
6375
6453
  default: t,
6376
6454
  get "~standard"() {
6377
- return /* @__PURE__ */ X(this);
6455
+ return /* @__PURE__ */ ti(this);
6378
6456
  },
6379
6457
  "~run"(e, t) {
6380
- 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);
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);
6381
6459
  }
6382
6460
  };
6383
6461
  }
6384
6462
  /* @__NO_SIDE_EFFECTS__ */
6385
- function ni(e) {
6463
+ function li(e) {
6386
6464
  return {
6387
6465
  kind: "schema",
6388
6466
  type: "number",
6389
- reference: ni,
6467
+ reference: li,
6390
6468
  expects: "number",
6391
6469
  async: !1,
6392
6470
  message: e,
6393
6471
  get "~standard"() {
6394
- return /* @__PURE__ */ X(this);
6472
+ return /* @__PURE__ */ ti(this);
6395
6473
  },
6396
6474
  "~run"(e, t) {
6397
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : qr(this, "type", e, t), e;
6475
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : X(this, "type", e, t), e;
6398
6476
  }
6399
6477
  };
6400
6478
  }
@@ -6409,7 +6487,7 @@ function Q(e, t) {
6409
6487
  entries: e,
6410
6488
  message: t,
6411
6489
  get "~standard"() {
6412
- return /* @__PURE__ */ X(this);
6490
+ return /* @__PURE__ */ ti(this);
6413
6491
  },
6414
6492
  "~run"(e, t) {
6415
6493
  let n = e.value;
@@ -6418,7 +6496,7 @@ function Q(e, t) {
6418
6496
  for (let r in this.entries) {
6419
6497
  let i = this.entries[r];
6420
6498
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6421
- let a = r in n ? n[r] : /* @__PURE__ */ Qr(i), o = i["~run"]({ value: a }, t);
6499
+ let a = r in n ? n[r] : /* @__PURE__ */ ai(i), o = i["~run"]({ value: a }, t);
6422
6500
  if (o.issues) {
6423
6501
  let i = {
6424
6502
  type: "object",
@@ -6434,8 +6512,8 @@ function Q(e, t) {
6434
6512
  }
6435
6513
  }
6436
6514
  o.typed || (e.typed = !1), e.value[r] = o.value;
6437
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Zr(i);
6438
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (qr(this, "key", e, t, {
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, {
6439
6517
  input: void 0,
6440
6518
  expected: `"${r}"`,
6441
6519
  path: [{
@@ -6447,48 +6525,48 @@ function Q(e, t) {
6447
6525
  }]
6448
6526
  }), t.abortEarly)) break;
6449
6527
  }
6450
- } else qr(this, "type", e, t);
6528
+ } else X(this, "type", e, t);
6451
6529
  return e;
6452
6530
  }
6453
6531
  };
6454
6532
  }
6455
6533
  /* @__NO_SIDE_EFFECTS__ */
6456
- function ri(e, t) {
6534
+ function ui(e, t) {
6457
6535
  return {
6458
6536
  kind: "schema",
6459
6537
  type: "optional",
6460
- reference: ri,
6538
+ reference: ui,
6461
6539
  expects: `(${e.expects} | undefined)`,
6462
6540
  async: !1,
6463
6541
  wrapped: e,
6464
6542
  default: t,
6465
6543
  get "~standard"() {
6466
- return /* @__PURE__ */ X(this);
6544
+ return /* @__PURE__ */ ti(this);
6467
6545
  },
6468
6546
  "~run"(e, t) {
6469
- 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);
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);
6470
6548
  }
6471
6549
  };
6472
6550
  }
6473
6551
  /* @__NO_SIDE_EFFECTS__ */
6474
- function ii(e, t, n) {
6552
+ function di(e, t, n) {
6475
6553
  return {
6476
6554
  kind: "schema",
6477
6555
  type: "record",
6478
- reference: ii,
6556
+ reference: di,
6479
6557
  expects: "Object",
6480
6558
  async: !1,
6481
6559
  key: e,
6482
6560
  value: t,
6483
6561
  message: n,
6484
6562
  get "~standard"() {
6485
- return /* @__PURE__ */ X(this);
6563
+ return /* @__PURE__ */ ti(this);
6486
6564
  },
6487
6565
  "~run"(e, t) {
6488
6566
  let n = e.value;
6489
6567
  if (n && typeof n == "object") {
6490
6568
  e.typed = !0, e.value = {};
6491
- for (let r in n) if (/* @__PURE__ */ Yr(n, r)) {
6569
+ for (let r in n) if (/* @__PURE__ */ ni(n, r)) {
6492
6570
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6493
6571
  if (a.issues) {
6494
6572
  let o = {
@@ -6521,7 +6599,7 @@ function ii(e, t, n) {
6521
6599
  }
6522
6600
  (!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
6523
6601
  }
6524
- } else qr(this, "type", e, t);
6602
+ } else X(this, "type", e, t);
6525
6603
  return e;
6526
6604
  }
6527
6605
  };
@@ -6536,32 +6614,32 @@ function $(e) {
6536
6614
  async: !1,
6537
6615
  message: e,
6538
6616
  get "~standard"() {
6539
- return /* @__PURE__ */ X(this);
6617
+ return /* @__PURE__ */ ti(this);
6540
6618
  },
6541
6619
  "~run"(e, t) {
6542
- return typeof e.value == "string" ? e.typed = !0 : qr(this, "type", e, t), e;
6620
+ return typeof e.value == "string" ? e.typed = !0 : X(this, "type", e, t), e;
6543
6621
  }
6544
6622
  };
6545
6623
  }
6546
6624
  /* @__NO_SIDE_EFFECTS__ */
6547
- function ai(e) {
6625
+ function fi(e) {
6548
6626
  let t;
6549
6627
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
6550
6628
  else t = n.issues;
6551
6629
  return t;
6552
6630
  }
6553
6631
  /* @__NO_SIDE_EFFECTS__ */
6554
- function oi(e, t) {
6632
+ function pi(e, t) {
6555
6633
  return {
6556
6634
  kind: "schema",
6557
6635
  type: "union",
6558
- reference: oi,
6559
- expects: /* @__PURE__ */ Xr(e.map((e) => e.expects), "|"),
6636
+ reference: pi,
6637
+ expects: /* @__PURE__ */ ri(e.map((e) => e.expects), "|"),
6560
6638
  async: !1,
6561
6639
  options: e,
6562
6640
  message: t,
6563
6641
  get "~standard"() {
6564
- return /* @__PURE__ */ X(this);
6642
+ return /* @__PURE__ */ ti(this);
6565
6643
  },
6566
6644
  "~run"(e, t) {
6567
6645
  let n, r, i;
@@ -6577,24 +6655,24 @@ function oi(e, t) {
6577
6655
  if (n) return n;
6578
6656
  if (r) {
6579
6657
  if (r.length === 1) return r[0];
6580
- qr(this, "type", e, t, { issues: /* @__PURE__ */ ai(r) }), e.typed = !0;
6658
+ X(this, "type", e, t, { issues: /* @__PURE__ */ fi(r) }), e.typed = !0;
6581
6659
  } else if (i?.length === 1) return i[0];
6582
- else qr(this, "type", e, t, { issues: /* @__PURE__ */ ai(i) });
6660
+ else X(this, "type", e, t, { issues: /* @__PURE__ */ fi(i) });
6583
6661
  return e;
6584
6662
  }
6585
6663
  };
6586
6664
  }
6587
- var si = (e) => /* @__PURE__ */ oi(e.map((e) => /* @__PURE__ */ ti(e))), ci = /* @__PURE__ */ Q({
6665
+ var mi = (e) => /* @__PURE__ */ pi(e.map((e) => /* @__PURE__ */ ci(e))), hi = /* @__PURE__ */ Q({
6588
6666
  en: /* @__PURE__ */ $(),
6589
6667
  es: /* @__PURE__ */ $()
6590
- }), li = /* @__PURE__ */ Q({
6591
- en: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ $())),
6592
- es: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ $()))
6593
- }), ui = /* @__PURE__ */ Q({
6594
- en: /* @__PURE__ */ ri(/* @__PURE__ */ $()),
6595
- es: /* @__PURE__ */ ri(/* @__PURE__ */ $())
6668
+ }), gi = /* @__PURE__ */ Q({
6669
+ en: /* @__PURE__ */ ui(/* @__PURE__ */ oi(/* @__PURE__ */ $())),
6670
+ es: /* @__PURE__ */ ui(/* @__PURE__ */ oi(/* @__PURE__ */ $()))
6671
+ }), _i = /* @__PURE__ */ Q({
6672
+ en: /* @__PURE__ */ ui(/* @__PURE__ */ $()),
6673
+ es: /* @__PURE__ */ ui(/* @__PURE__ */ $())
6596
6674
  });
6597
- si([
6675
+ mi([
6598
6676
  "app",
6599
6677
  "connection",
6600
6678
  "connector",
@@ -6619,12 +6697,12 @@ si([
6619
6697
  "presenterPresentation",
6620
6698
  "tool"
6621
6699
  ]);
6622
- var di = si([
6700
+ var vi = mi([
6623
6701
  "amber",
6624
6702
  "green",
6625
6703
  "red",
6626
6704
  "other"
6627
- ]), fi = si([
6705
+ ]), yi = mi([
6628
6706
  "alpha",
6629
6707
  "beta",
6630
6708
  "generalAvailability",
@@ -6634,31 +6712,31 @@ var di = si([
6634
6712
  "releaseCandidate",
6635
6713
  "unavailable",
6636
6714
  "underReview"
6637
- ]), pi = /* @__PURE__ */ Q({
6638
- color: di,
6715
+ ]), bi = /* @__PURE__ */ Q({
6716
+ color: vi,
6639
6717
  label: /* @__PURE__ */ $()
6640
- }), mi = /* @__PURE__ */ Q({
6718
+ }), xi = /* @__PURE__ */ Q({
6641
6719
  id: /* @__PURE__ */ $(),
6642
- label: ui,
6643
- description: li,
6720
+ label: _i,
6721
+ description: gi,
6644
6722
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6645
6723
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6646
6724
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6647
- order: /* @__PURE__ */ ni(),
6725
+ order: /* @__PURE__ */ li(),
6648
6726
  path: /* @__PURE__ */ $()
6649
- }), hi = {
6727
+ }), Si = {
6650
6728
  id: /* @__PURE__ */ $(),
6651
- label: ui,
6652
- description: li,
6653
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
6729
+ label: _i,
6730
+ description: gi,
6731
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
6654
6732
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6655
6733
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6656
6734
  iconNeutral: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6657
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
6658
- status: /* @__PURE__ */ Z(pi),
6659
- statusId: /* @__PURE__ */ Z(fi)
6735
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
6736
+ status: /* @__PURE__ */ Z(bi),
6737
+ statusId: /* @__PURE__ */ Z(yi)
6660
6738
  };
6661
- ({ ...hi }), si([
6739
+ ({ ...Si }), mi([
6662
6740
  "app",
6663
6741
  "engine",
6664
6742
  "connector",
@@ -6669,14 +6747,14 @@ var di = si([
6669
6747
  ]);
6670
6748
  //#endregion
6671
6749
  //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CUHmgYLu.js
6672
- var gi = {
6673
- ...hi,
6750
+ var Ci = {
6751
+ ...Si,
6674
6752
  version: /* @__PURE__ */ $()
6675
6753
  };
6676
- ({ ...gi });
6754
+ ({ ...Ci });
6677
6755
  //#endregion
6678
6756
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
6679
- var _i = si([
6757
+ var wi = mi([
6680
6758
  "abortOperation",
6681
6759
  "auditObjectContent",
6682
6760
  "createObject",
@@ -6691,35 +6769,35 @@ var _i = si([
6691
6769
  "retrieveChunks",
6692
6770
  "retrieveRecords",
6693
6771
  "upsertRecords"
6694
- ]), vi = si([
6772
+ ]), Ti = mi([
6695
6773
  "application",
6696
6774
  "curatedDataset",
6697
6775
  "database",
6698
6776
  "fileStore"
6699
- ]), yi = /* @__PURE__ */ Q({ label: ci }), bi = /* @__PURE__ */ Q({
6700
- authMethodId: si([
6777
+ ]), Ei = /* @__PURE__ */ Q({ label: hi }), Di = /* @__PURE__ */ Q({
6778
+ authMethodId: mi([
6701
6779
  "apiKey",
6702
6780
  "disabled",
6703
6781
  "oAuth2",
6704
6782
  "none"
6705
6783
  ]),
6706
- activeConnectionCount: /* @__PURE__ */ ri(/* @__PURE__ */ ni()),
6707
- canDescribe: /* @__PURE__ */ ri(/* @__PURE__ */ ei()),
6708
- id: /* @__PURE__ */ ri(/* @__PURE__ */ $()),
6709
- label: /* @__PURE__ */ ri(ci),
6710
- maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ ni()),
6711
- params: /* @__PURE__ */ ri(/* @__PURE__ */ $r(/* @__PURE__ */ ii(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6712
- }), xi = /* @__PURE__ */ Q({
6713
- typeId: /* @__PURE__ */ ti("connector"),
6714
- ...gi,
6715
- actionNames: /* @__PURE__ */ $r(_i),
6716
- category: /* @__PURE__ */ Z(yi),
6717
- categoryId: vi,
6718
- implementations: /* @__PURE__ */ ii(/* @__PURE__ */ $(), bi),
6784
+ activeConnectionCount: /* @__PURE__ */ ui(/* @__PURE__ */ li()),
6785
+ canDescribe: /* @__PURE__ */ ui(/* @__PURE__ */ si()),
6786
+ id: /* @__PURE__ */ ui(/* @__PURE__ */ $()),
6787
+ label: /* @__PURE__ */ ui(hi),
6788
+ maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ li()),
6789
+ params: /* @__PURE__ */ ui(/* @__PURE__ */ oi(/* @__PURE__ */ di(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6790
+ }), Oi = /* @__PURE__ */ Q({
6791
+ typeId: /* @__PURE__ */ ci("connector"),
6792
+ ...Ci,
6793
+ actionNames: /* @__PURE__ */ oi(wi),
6794
+ category: /* @__PURE__ */ Z(Ei),
6795
+ categoryId: Ti,
6796
+ implementations: /* @__PURE__ */ di(/* @__PURE__ */ $(), Di),
6719
6797
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6720
6798
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ $()),
6721
6799
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ $())
6722
- }), Si = {
6800
+ }), ki = {
6723
6801
  abortOperation: "Abort Operation",
6724
6802
  auditObjectContent: "Audit Object Content",
6725
6803
  createObject: "Create Object",
@@ -6734,12 +6812,12 @@ var _i = si([
6734
6812
  retrieveChunks: "Retrieve Chunks",
6735
6813
  retrieveRecords: "Retrieve Records",
6736
6814
  upsertRecords: "Upsert Records"
6737
- }, Ci = /* @__PURE__ */ new Set([
6815
+ }, Ai = /* @__PURE__ */ new Set([
6738
6816
  "createObject",
6739
6817
  "dropObject",
6740
6818
  "removeRecords",
6741
6819
  "upsertRecords"
6742
- ]), wi = /* @__PURE__ */ new Set([
6820
+ ]), ji = /* @__PURE__ */ new Set([
6743
6821
  "auditObjectContent",
6744
6822
  "findObject",
6745
6823
  "getReadableStream",
@@ -6749,61 +6827,61 @@ var _i = si([
6749
6827
  "retrieveChunks",
6750
6828
  "retrieveRecords"
6751
6829
  ]);
6752
- function Ti(e) {
6830
+ function Mi(e) {
6753
6831
  let t = !1, n = !1;
6754
- for (let r of e) wi.has(r) && (t = !0), Ci.has(r) && (n = !0);
6832
+ for (let r of e) ji.has(r) && (t = !0), Ai.has(r) && (n = !0);
6755
6833
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6756
6834
  }
6757
- function Ei(e) {
6835
+ function Ni(e) {
6758
6836
  let t = new Set(e), n = "|Action|Supported|\n";
6759
6837
  n += "|:----|:-------:|\n";
6760
- for (let e of Object.keys(Si)) n += `| ${Si[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6838
+ for (let e of Object.keys(ki)) n += `| ${ki[e]} | ${t.has(e) ? "✓" : ""} |\n`;
6761
6839
  return n;
6762
6840
  }
6763
6841
  //#endregion
6764
6842
  //#region src/actions/documentActions.ts
6765
- var Di = "<!-- CONNECTOR_ACTIONS_START -->", Oi = "<!-- CONNECTOR_ACTIONS_END -->", ki = "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.", Ai = {
6843
+ var Pi = "<!-- CONNECTOR_ACTIONS_START -->", Fi = "<!-- CONNECTOR_ACTIONS_END -->", Ii = "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.", Li = {
6766
6844
  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.",
6767
6845
  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.",
6768
6846
  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.",
6769
6847
  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."
6770
- }, ji = "The table below lists all connector actions and highlights those supported by this connector.";
6771
- async function Mi() {
6848
+ }, Ri = "The table below lists all connector actions and highlights those supported by this connector.";
6849
+ async function zi() {
6772
6850
  try {
6773
6851
  K("Document Actions"), J("1️⃣ Insert actions description and table into 'README.md'");
6774
- let e = (await W("config.json")).actionNames ?? [], t = Ti(e), n = Ei(e), r = `${ki}\n\n${Ai[t]} ${ji}\n\n${n}`;
6775
- await zn("README.md", Wn(await G("./README.md"), r, Di, Oi)), q("Actions documented");
6852
+ let e = (await W("config.json")).actionNames ?? [], t = Mi(e), n = Ni(e), r = `${Ii}\n\n${Li[t]} ${Ri}\n\n${n}`;
6853
+ await zn("README.md", Wn(await G("./README.md"), r, Pi, Fi)), q("Actions documented");
6776
6854
  } catch (e) {
6777
6855
  console.error("❌ Error documenting actions", e), process.exit(1);
6778
6856
  }
6779
6857
  }
6780
6858
  //#endregion
6781
6859
  //#region src/actions/documentUsage.ts
6782
- var Ni = "<!-- USAGE_START -->", Pi = "<!-- USAGE_END -->";
6783
- async function Fi() {
6860
+ var Bi = "<!-- USAGE_START -->", Vi = "<!-- USAGE_END -->";
6861
+ async function Hi() {
6784
6862
  try {
6785
6863
  K("Document Usage"), J("1️⃣ Insert usage content into 'README.md'");
6786
- let e = await W("package.json"), t = Ii(e), n = zi(t, Li(t), Ri(e.engines?.node), Ri(e.engines?.npm));
6787
- await zn("README.md", Wn(await G("./README.md"), n, Ni, Pi)), q("Usage documented");
6864
+ let e = await W("package.json"), t = Ui(e), n = Ki(t, Wi(t), Gi(e.engines?.node), Gi(e.engines?.npm));
6865
+ await zn("README.md", Wn(await G("./README.md"), n, Bi, Vi)), q("Usage documented");
6788
6866
  } catch (e) {
6789
6867
  console.error("❌ Error documenting usage", e), process.exit(1);
6790
6868
  }
6791
6869
  }
6792
- function Ii(e) {
6870
+ function Ui(e) {
6793
6871
  let t = e.repository, n = typeof t == "string" ? t : t?.url;
6794
6872
  if (n == null || n === "") throw Error("package.json 'repository' field is required to document usage.");
6795
6873
  return n.replace(/^git\+/, "");
6796
6874
  }
6797
- function Li(e) {
6875
+ function Wi(e) {
6798
6876
  return (e.split("/").at(-1) ?? "").replace(/\.git$/, "");
6799
6877
  }
6800
- function Ri(e) {
6878
+ function Gi(e) {
6801
6879
  if (e == null) throw Error("package.json 'engines' field is required to document usage.");
6802
6880
  let t = /\d+(?:\.\d+)*/.exec(e);
6803
6881
  if (t == null) throw Error(`Unable to parse engine version from '${e}'.`);
6804
6882
  return t[0];
6805
6883
  }
6806
- function zi(e, t, n, r) {
6884
+ function Ki(e, t, n, r) {
6807
6885
  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.
6808
6886
 
6809
6887
  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.
@@ -6818,7 +6896,7 @@ _Requires [Node.js](https://nodejs.org/) ${n} or later and [npm](https://www.npm
6818
6896
  }
6819
6897
  //#endregion
6820
6898
  //#region src/actions/formatCode.ts
6821
- async function Bi() {
6899
+ async function qi() {
6822
6900
  try {
6823
6901
  K("Format Code"), await Fn("1️⃣ Format", "prettier", [
6824
6902
  "--write",
@@ -6833,7 +6911,7 @@ async function Bi() {
6833
6911
  }
6834
6912
  //#endregion
6835
6913
  //#region src/actions/lintCode.ts
6836
- async function Vi() {
6914
+ async function Ji() {
6837
6915
  try {
6838
6916
  K("Lint Code"), await Fn("1️⃣ Lint", "eslint", ["."]), q("Code linted");
6839
6917
  } catch (e) {
@@ -6842,7 +6920,7 @@ async function Vi() {
6842
6920
  }
6843
6921
  //#endregion
6844
6922
  //#region src/utilities/cloudflare.ts
6845
- async function Hi() {
6923
+ async function Yi() {
6846
6924
  let e = await W("config.json"), t = {
6847
6925
  body: JSON.stringify(e),
6848
6926
  headers: { "Content-Type": "application/json" },
@@ -6850,7 +6928,7 @@ async function Hi() {
6850
6928
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6851
6929
  if (!n.ok) throw Error(await n.text());
6852
6930
  }
6853
- async function Ui(e, t) {
6931
+ async function Xi(e, t) {
6854
6932
  async function n(e, t, r) {
6855
6933
  for (let i of r) {
6856
6934
  let r = `${e}/${i}`, a = `${t}/${i}`;
@@ -6868,7 +6946,7 @@ async function Ui(e, t) {
6868
6946
  let r = await Nn(`${e}/${t}/`);
6869
6947
  await n(`${e}/${t}`, t, r);
6870
6948
  }
6871
- async function Wi(e) {
6949
+ async function Zi(e) {
6872
6950
  let t = e.id, n = {
6873
6951
  body: JSON.stringify(e),
6874
6952
  headers: { "Content-Type": "application/json" },
@@ -6876,7 +6954,7 @@ async function Wi(e) {
6876
6954
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6877
6955
  if (!r.ok) throw Error(await r.text());
6878
6956
  }
6879
- async function Gi(e, t) {
6957
+ async function Qi(e, t) {
6880
6958
  let n = `v${e.version ?? "unknown"}`;
6881
6959
  async function r(e, r = "") {
6882
6960
  let i = await Nn(e, { withFileTypes: !0 });
@@ -6900,24 +6978,24 @@ async function Gi(e, t) {
6900
6978
  }
6901
6979
  //#endregion
6902
6980
  //#region node_modules/valibot/dist/index.mjs
6903
- var Ki, qi = {
6981
+ var $i, ea = {
6904
6982
  lang: void 0,
6905
6983
  message: void 0,
6906
6984
  abortEarly: void 0,
6907
6985
  abortPipeEarly: void 0
6908
6986
  };
6909
6987
  /* @__NO_SIDE_EFFECTS__ */
6910
- function Ji(e) {
6911
- return !e && !Ki ? qi : {
6912
- lang: e?.lang ?? Ki?.lang,
6988
+ function ta(e) {
6989
+ return !e && !$i ? ea : {
6990
+ lang: e?.lang ?? $i?.lang,
6913
6991
  message: e?.message,
6914
- abortEarly: e?.abortEarly ?? Ki?.abortEarly,
6915
- abortPipeEarly: e?.abortPipeEarly ?? Ki?.abortPipeEarly
6992
+ abortEarly: e?.abortEarly ?? $i?.abortEarly,
6993
+ abortPipeEarly: e?.abortPipeEarly ?? $i?.abortPipeEarly
6916
6994
  };
6917
6995
  }
6918
6996
  /* @__NO_SIDE_EFFECTS__ */
6919
- function Yi(e, t, n) {
6920
- let r = e["~run"]({ value: t }, /* @__PURE__ */ Ji(n));
6997
+ function na(e, t, n) {
6998
+ let r = e["~run"]({ value: t }, /* @__PURE__ */ ta(n));
6921
6999
  return {
6922
7000
  typed: r.typed,
6923
7001
  success: !r.issues,
@@ -6927,69 +7005,69 @@ function Yi(e, t, n) {
6927
7005
  }
6928
7006
  //#endregion
6929
7007
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleContext.es.js
6930
- var Xi = /* @__PURE__ */ Q({
6931
- typeId: /* @__PURE__ */ ti("contextArea"),
6932
- ...hi,
6933
- modelRefs: /* @__PURE__ */ $r(mi),
6934
- order: /* @__PURE__ */ ni()
6935
- }), Zi = si(["listContextFocuses"]), Qi = /* @__PURE__ */ Q({
6936
- typeId: /* @__PURE__ */ ti("context"),
6937
- ...gi,
6938
- actionNames: /* @__PURE__ */ $r(Zi),
6939
- models: /* @__PURE__ */ $r(Xi)
6940
- }), $i = si([
7008
+ var ra = /* @__PURE__ */ Q({
7009
+ typeId: /* @__PURE__ */ ci("contextArea"),
7010
+ ...Si,
7011
+ modelRefs: /* @__PURE__ */ oi(xi),
7012
+ order: /* @__PURE__ */ li()
7013
+ }), ia = mi(["listContextFocuses"]), aa = /* @__PURE__ */ Q({
7014
+ typeId: /* @__PURE__ */ ci("context"),
7015
+ ...Ci,
7016
+ actionNames: /* @__PURE__ */ oi(ia),
7017
+ models: /* @__PURE__ */ oi(ra)
7018
+ }), oa = mi([
6941
7019
  "list",
6942
7020
  "render",
6943
7021
  "setColorMode"
6944
- ]), ea = /* @__PURE__ */ Q({
6945
- typeId: /* @__PURE__ */ ti("presenter"),
6946
- ...gi,
6947
- actionNames: /* @__PURE__ */ $r($i),
6948
- presentations: /* @__PURE__ */ $r(mi)
7022
+ ]), sa = /* @__PURE__ */ Q({
7023
+ typeId: /* @__PURE__ */ ci("presenter"),
7024
+ ...Ci,
7025
+ actionNames: /* @__PURE__ */ oi(oa),
7026
+ presentations: /* @__PURE__ */ oi(xi)
6949
7027
  });
6950
7028
  //#endregion
6951
7029
  //#region src/actions/manageProject.ts
6952
- async function ta() {
7030
+ async function ca() {
6953
7031
  try {
6954
7032
  K("Build Project"), await Fn("1️⃣ Bundle project", "vite", ["build"]), q("Project built");
6955
7033
  } catch (e) {
6956
7034
  console.error("❌ Error building project", e), process.exit(1);
6957
7035
  }
6958
7036
  }
6959
- async function na() {
7037
+ async function la() {
6960
7038
  try {
6961
7039
  K("Publish Project");
6962
7040
  let e = await W("package.json"), t = await W("config.json"), n = Bn(t.id);
6963
- if (n.typeId === "app") J("1️⃣ Register module"), await Hi();
6964
- else if (n.typeId === "engine") J("1️⃣ Register module"), await Gi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Wi(t);
7041
+ if (n.typeId === "app") J("1️⃣ Register module"), await Yi();
7042
+ else if (n.typeId === "engine") J("1️⃣ Register module"), await Qi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Zi(t);
6965
7043
  else if (n.uploadGroupName === void 0) J("1️⃣ Publishing NOT required");
6966
7044
  else {
6967
7045
  J("1️⃣ Register module");
6968
7046
  let r = t.id.split("-").slice(2).join("-");
6969
- await Gi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Wi(t);
7047
+ await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
6970
7048
  }
6971
7049
  q(`Project version '${e.version ?? "unknown"}' published.`);
6972
7050
  } catch (e) {
6973
7051
  console.error("❌ Error publishing project", e), process.exit(1);
6974
7052
  }
6975
7053
  }
6976
- async function ra() {
7054
+ async function ua() {
6977
7055
  try {
6978
7056
  K("Release Project");
6979
7057
  let e = await W("package.json"), t = await W("config.json");
6980
- await da("1️⃣ ", e);
7058
+ await va("1️⃣ ", e);
6981
7059
  let n = Bn(t.id);
6982
7060
  switch (n.typeId) {
6983
7061
  case "connector":
6984
- t = await aa("2️⃣ ", e);
7062
+ t = await fa("2️⃣ ", e);
6985
7063
  break;
6986
7064
  case "context":
6987
- t = await oa("2️⃣ ", e);
7065
+ t = await pa("2️⃣ ", e);
6988
7066
  break;
6989
7067
  case "presenter":
6990
- t = await sa("2️⃣ ", e);
7068
+ t = await ma("2️⃣ ", e);
6991
7069
  break;
6992
- default: t = await ia("2️⃣ ", e);
7070
+ default: t = await da("2️⃣ ", e);
6993
7071
  }
6994
7072
  if (await Fn("3️⃣ Bundle project", "vite", ["build"]), await Pn("4️⃣ Stage changes", "git", ["add", "."]), await Pn("5️⃣ Commit changes", "git", [
6995
7073
  "commit",
@@ -6999,13 +7077,13 @@ async function ra() {
6999
7077
  "push",
7000
7078
  "origin",
7001
7079
  "main:main"
7002
- ]), n.typeId === "app") J("7️⃣ Register module"), await Hi();
7003
- else if (n.typeId === "engine") J("7️⃣ Register module"), await Gi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Wi(t);
7080
+ ]), n.typeId === "app") J("7️⃣ Register module"), await Yi();
7081
+ else if (n.typeId === "engine") J("7️⃣ Register module"), await Qi(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Zi(t);
7004
7082
  else if (n.uploadGroupName === void 0) J("7️⃣ Registration NOT required");
7005
7083
  else {
7006
7084
  J("7️⃣ Register module");
7007
7085
  let r = t.id.split("-").slice(2).join("-");
7008
- await Gi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Wi(t);
7086
+ await Qi(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Zi(t);
7009
7087
  }
7010
7088
  if (n.publishedTo === "npm") {
7011
7089
  let e = ".npmrc";
@@ -7024,48 +7102,48 @@ async function ra() {
7024
7102
  console.error("❌ Error releasing project", e), process.exit(1);
7025
7103
  }
7026
7104
  }
7027
- async function ia(e, t) {
7105
+ async function da(e, t) {
7028
7106
  J(`${e} Build project configuration`);
7029
7107
  let n = await W("config.json");
7030
7108
  return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), await Rn("config.json", n), n;
7031
7109
  }
7032
- async function aa(e, t) {
7110
+ async function fa(e, t) {
7033
7111
  J(`${e} Build connector project configuration`);
7034
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ Yi(xi, n);
7112
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(Oi, n);
7035
7113
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7036
7114
  let a = Hn(r);
7037
- return await ca(t, n, a, Ti(a));
7115
+ return await ha(t, n, a, Mi(a));
7038
7116
  }
7039
- async function oa(e, t) {
7117
+ async function pa(e, t) {
7040
7118
  J(`${e} Build context project configuration`);
7041
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ Yi(Qi, n);
7119
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(aa, n);
7042
7120
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7043
- return await ca(t, n, Hn(r));
7121
+ return await ha(t, n, Hn(r));
7044
7122
  }
7045
- async function sa(e, t) {
7123
+ async function ma(e, t) {
7046
7124
  J(`${e} Build presenter project configuration`);
7047
- let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ Yi(ea, n);
7125
+ let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ na(sa, n);
7048
7126
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
7049
- return await ca(t, n, Hn(r));
7127
+ return await ha(t, n, Hn(r));
7050
7128
  }
7051
- async function ca(e, t, n, r) {
7129
+ async function ha(e, t, n, r) {
7052
7130
  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;
7053
7131
  }
7054
- async function la() {
7132
+ async function ga() {
7055
7133
  try {
7056
7134
  K("Synchronise Project with GitHub");
7057
7135
  let e = await W("package.json"), t = await W("config.json");
7058
- switch (await da("1️⃣ ", e), Bn(t.id).typeId) {
7136
+ switch (await va("1️⃣ ", e), Bn(t.id).typeId) {
7059
7137
  case "connector":
7060
- await aa("2️⃣ ", e);
7138
+ await fa("2️⃣ ", e);
7061
7139
  break;
7062
7140
  case "context":
7063
- await oa("2️⃣ ", e);
7141
+ await pa("2️⃣ ", e);
7064
7142
  break;
7065
7143
  case "presenter":
7066
- await sa("2️⃣ ", e);
7144
+ await ma("2️⃣ ", e);
7067
7145
  break;
7068
- default: await ia("2️⃣ ", e);
7146
+ default: await da("2️⃣ ", e);
7069
7147
  }
7070
7148
  await Pn("3️⃣ Stage changes", "git", ["add", "."]), await Pn("4️⃣ Commit changes", "git", [
7071
7149
  "commit",
@@ -7080,14 +7158,14 @@ async function la() {
7080
7158
  console.error("❌ Error synchronising project with GitHub", e), process.exit(1);
7081
7159
  }
7082
7160
  }
7083
- function ua() {
7161
+ function _a() {
7084
7162
  try {
7085
7163
  K("Test Project"), console.error("\n❌ No tests implemented.\n");
7086
7164
  } catch (e) {
7087
7165
  console.error("❌ Error testing project", e), process.exit(1);
7088
7166
  }
7089
7167
  }
7090
- async function da(e, t, n = "./") {
7168
+ async function va(e, t, n = "./") {
7091
7169
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
7092
7170
  else {
7093
7171
  let e = t.version, n = t.version.split(".");
@@ -7096,6 +7174,6 @@ async function da(e, t, n = "./") {
7096
7174
  await Rn(`${n}package.json`, t);
7097
7175
  }
7098
7176
  //#endregion
7099
- export { Gn as auditDependencies, ta as buildProject, Kn as checkConfigFiles, Qn as checkDependencies, Mi as documentActions, ir as documentBundleSizes, Er as documentDependencies, Fi as documentUsage, Bi as formatCode, Vi as lintCode, na as publishProject, ra as releaseProject, la as syncProjectWithGitHub, ua as testProject, Ui as uploadDirectoryToR2 };
7177
+ 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 };
7100
7178
 
7101
7179
  //# sourceMappingURL=dpuse-development.es.js.map