@dpuse/dpuse-development 0.3.808 → 0.3.809

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.
@@ -75,15 +75,15 @@ function ee(e, t) {
75
75
  return e === t || Number.isNaN(e) && Number.isNaN(t);
76
76
  }
77
77
  /* @__NO_SIDE_EFFECTS__ */
78
- function p(e, t) {
78
+ function te(e, t) {
79
79
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
80
80
  }
81
81
  /* @__NO_SIDE_EFFECTS__ */
82
- function te(e, t) {
82
+ function ne(e, t) {
83
83
  let n = [...new Set(e)];
84
84
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
85
85
  }
86
- function m(e) {
86
+ function p(e) {
87
87
  return e["~standard"] = {
88
88
  version: 1,
89
89
  vendor: "valibot",
@@ -91,19 +91,19 @@ function m(e) {
91
91
  }, e;
92
92
  }
93
93
  /* @__NO_SIDE_EFFECTS__ */
94
- function ne(e, t, n) {
94
+ function re(e, t, n) {
95
95
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
96
96
  }
97
97
  /* @__NO_SIDE_EFFECTS__ */
98
- function h(e, t, n) {
98
+ function m(e, t, n) {
99
99
  return typeof e.default == "function" ? e.default(t, n) : e.default;
100
100
  }
101
101
  /* @__NO_SIDE_EFFECTS__ */
102
- function g(e, t) {
103
- return m({
102
+ function h(e, t) {
103
+ return p({
104
104
  kind: "schema",
105
105
  type: "array",
106
- reference: g,
106
+ reference: h,
107
107
  expects: "Array",
108
108
  async: !1,
109
109
  item: e,
@@ -136,11 +136,11 @@ function g(e, t) {
136
136
  });
137
137
  }
138
138
  /* @__NO_SIDE_EFFECTS__ */
139
- function _(e) {
140
- return m({
139
+ function g(e) {
140
+ return p({
141
141
  kind: "schema",
142
142
  type: "boolean",
143
- reference: _,
143
+ reference: g,
144
144
  expects: "boolean",
145
145
  async: !1,
146
146
  message: e,
@@ -150,11 +150,11 @@ function _(e) {
150
150
  });
151
151
  }
152
152
  /* @__NO_SIDE_EFFECTS__ */
153
- function v(e, t) {
154
- return m({
153
+ function _(e, t) {
154
+ return p({
155
155
  kind: "schema",
156
156
  type: "literal",
157
- reference: v,
157
+ reference: _,
158
158
  expects: /* @__PURE__ */ d(e),
159
159
  async: !1,
160
160
  literal: e,
@@ -165,26 +165,26 @@ function v(e, t) {
165
165
  });
166
166
  }
167
167
  /* @__NO_SIDE_EFFECTS__ */
168
- function y(e, t) {
169
- return m({
168
+ function v(e, t) {
169
+ return p({
170
170
  kind: "schema",
171
171
  type: "nullable",
172
- reference: y,
172
+ reference: v,
173
173
  expects: `(${e.expects} | null)`,
174
174
  async: !1,
175
175
  wrapped: e,
176
176
  default: t,
177
177
  "~run"(e, t) {
178
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
178
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
179
179
  }
180
180
  });
181
181
  }
182
182
  /* @__NO_SIDE_EFFECTS__ */
183
- function b(e) {
184
- return m({
183
+ function y(e) {
184
+ return p({
185
185
  kind: "schema",
186
186
  type: "number",
187
- reference: b,
187
+ reference: y,
188
188
  expects: "number",
189
189
  async: !1,
190
190
  message: e,
@@ -194,26 +194,26 @@ function b(e) {
194
194
  });
195
195
  }
196
196
  /* @__NO_SIDE_EFFECTS__ */
197
- function x(e, t) {
198
- return m({
197
+ function b(e, t) {
198
+ return p({
199
199
  kind: "schema",
200
200
  type: "optional",
201
- reference: x,
201
+ reference: b,
202
202
  expects: `(${e.expects} | undefined)`,
203
203
  async: !1,
204
204
  wrapped: e,
205
205
  default: t,
206
206
  "~run"(e, t) {
207
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
207
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
208
208
  }
209
209
  });
210
210
  }
211
211
  /* @__NO_SIDE_EFFECTS__ */
212
- function S(e, t, n) {
213
- return m({
212
+ function x(e, t, n) {
213
+ return p({
214
214
  kind: "schema",
215
215
  type: "record",
216
- reference: S,
216
+ reference: x,
217
217
  expects: "Object",
218
218
  async: !1,
219
219
  key: e,
@@ -223,7 +223,7 @@ function S(e, t, n) {
223
223
  let n = e.value;
224
224
  if (n && typeof n == "object") {
225
225
  e.typed = !0, e.value = {};
226
- for (let r in n) if (/* @__PURE__ */ p(n, r)) {
226
+ for (let r in n) if (/* @__PURE__ */ te(n, r)) {
227
227
  let i = n[r], a = this.key["~run"]({ value: r }, t);
228
228
  if (a.issues) {
229
229
  let o = {
@@ -262,11 +262,11 @@ function S(e, t, n) {
262
262
  });
263
263
  }
264
264
  /* @__NO_SIDE_EFFECTS__ */
265
- function C(e, t) {
266
- return m({
265
+ function S(e, t) {
266
+ return p({
267
267
  kind: "schema",
268
268
  type: "strict_object",
269
- reference: C,
269
+ reference: S,
270
270
  expects: "Object",
271
271
  async: !1,
272
272
  entries: e,
@@ -278,7 +278,7 @@ function C(e, t) {
278
278
  for (let r in this.entries) {
279
279
  let i = this.entries[r];
280
280
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
281
- let a = r in n ? n[r] : /* @__PURE__ */ h(i), o = i["~run"]({ value: a }, t);
281
+ let a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i["~run"]({ value: a }, t);
282
282
  if (o.issues) {
283
283
  let i = {
284
284
  type: "object",
@@ -294,7 +294,7 @@ function C(e, t) {
294
294
  }
295
295
  }
296
296
  o.typed || (e.typed = !1), e.value[r] = o.value;
297
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ne(i);
297
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ re(i);
298
298
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (f(this, "key", e, t, {
299
299
  input: void 0,
300
300
  expected: `"${r}"`,
@@ -329,11 +329,11 @@ function C(e, t) {
329
329
  });
330
330
  }
331
331
  /* @__NO_SIDE_EFFECTS__ */
332
- function w(e) {
333
- return m({
332
+ function C(e) {
333
+ return p({
334
334
  kind: "schema",
335
335
  type: "string",
336
- reference: w,
336
+ reference: C,
337
337
  expects: "string",
338
338
  async: !1,
339
339
  message: e,
@@ -343,19 +343,19 @@ function w(e) {
343
343
  });
344
344
  }
345
345
  /* @__NO_SIDE_EFFECTS__ */
346
- function T(e) {
346
+ function w(e) {
347
347
  let t;
348
348
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
349
349
  else t = n.issues;
350
350
  return t;
351
351
  }
352
352
  /* @__NO_SIDE_EFFECTS__ */
353
- function E(e, t) {
354
- return m({
353
+ function T(e, t) {
354
+ return p({
355
355
  kind: "schema",
356
356
  type: "union",
357
- reference: E,
358
- expects: /* @__PURE__ */ te(e.map((e) => e.expects), "|"),
357
+ reference: T,
358
+ expects: /* @__PURE__ */ ne(e.map((e) => e.expects), "|"),
359
359
  async: !1,
360
360
  options: e,
361
361
  message: t,
@@ -374,29 +374,29 @@ function E(e, t) {
374
374
  if (n) return n;
375
375
  if (r) {
376
376
  if (r.length === 1) return r[0];
377
- f(this, "type", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;
377
+ f(this, "type", e, t, { issues: /* @__PURE__ */ w(r) }), e.typed = !0;
378
378
  } else if (i?.length === 1) return i[0];
379
- else f(this, "type", e, t, { issues: /* @__PURE__ */ T(i) });
379
+ else f(this, "type", e, t, { issues: /* @__PURE__ */ w(i) });
380
380
  return e;
381
381
  }
382
382
  });
383
383
  }
384
- var D = /* @__PURE__ */ C({
385
- en: /* @__PURE__ */ w(),
386
- es: /* @__PURE__ */ w()
387
- }), re = {
388
- id: /* @__PURE__ */ w(),
389
- label: /* @__PURE__ */ C({
390
- en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
391
- es: /* @__PURE__ */ x(/* @__PURE__ */ w())
384
+ var E = /* @__PURE__ */ S({
385
+ en: /* @__PURE__ */ C(),
386
+ es: /* @__PURE__ */ C()
387
+ }), ie = {
388
+ id: /* @__PURE__ */ C(),
389
+ label: /* @__PURE__ */ S({
390
+ en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
391
+ es: /* @__PURE__ */ b(/* @__PURE__ */ C())
392
392
  }),
393
- description: /* @__PURE__ */ C({
394
- en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
395
- es: /* @__PURE__ */ x(/* @__PURE__ */ w())
393
+ description: /* @__PURE__ */ S({
394
+ en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
395
+ es: /* @__PURE__ */ b(/* @__PURE__ */ C())
396
396
  }),
397
- icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
398
- iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
399
- }, O = (e) => /* @__PURE__ */ E(e.map((e) => /* @__PURE__ */ v(e))), ie = O([
397
+ icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
398
+ iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
399
+ }, D = (e) => /* @__PURE__ */ T(e.map((e) => /* @__PURE__ */ _(e))), ae = D([
400
400
  "app",
401
401
  "connector",
402
402
  "connectorConnection",
@@ -418,33 +418,33 @@ var D = /* @__PURE__ */ C({
418
418
  "presenter",
419
419
  "presenterPresentation",
420
420
  "tool"
421
- ]), ae = O([
421
+ ]), oe = D([
422
422
  "danger",
423
423
  "success",
424
424
  "warning"
425
- ]), k = O([
425
+ ]), O = D([
426
426
  "alpha",
427
427
  "beta",
428
428
  "releaseCandidate",
429
429
  "generalAvailability"
430
- ]), oe = /* @__PURE__ */ C({
431
- color: ae,
432
- label: /* @__PURE__ */ w()
430
+ ]), se = /* @__PURE__ */ S({
431
+ color: oe,
432
+ label: /* @__PURE__ */ C()
433
+ }), k = {
434
+ ...ie,
435
+ typeId: ae
436
+ }, ce = /* @__PURE__ */ S({
437
+ ...k,
438
+ order: /* @__PURE__ */ y(),
439
+ path: /* @__PURE__ */ C()
433
440
  }), A = {
434
- ...re,
435
- typeId: ie
436
- }, se = /* @__PURE__ */ C({
437
- ...A,
438
- order: /* @__PURE__ */ b(),
439
- path: /* @__PURE__ */ w()
440
- }), j = {
441
- ...A,
442
- firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
443
- lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
444
- status: /* @__PURE__ */ y(oe),
445
- statusId: /* @__PURE__ */ y(k)
441
+ ...k,
442
+ firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
443
+ lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
444
+ status: /* @__PURE__ */ v(se),
445
+ statusId: /* @__PURE__ */ v(O)
446
446
  };
447
- ({ ...j }), c({ en: "Data Positioning Events" }), c({ en: "Delimited Text" }), c({ en: "JSON" }), c({ en: "SPSS" }), c({ en: "XLSX" }), c({ en: "XML" }), c({ en: "Newline" }), c({ en: "Carriage Return" }), c({ en: "Carriage Return/Newline" }), c({ en: "Colon" }), c({ en: "Comma" }), c({ en: "Exclamation Mark" }), c({ en: "Record Separator" }), c({ en: "Semicolon" }), c({ en: "Space" }), c({ en: "Tab" }), c({ en: "Underscore" }), c({ en: "Unit Separator" }), c({ en: "Vertical Bar" }), O([
447
+ ({ ...A }), c({ en: "Data Positioning Events" }), c({ en: "Delimited Text" }), c({ en: "JSON" }), c({ en: "SPSS" }), c({ en: "XLSX" }), c({ en: "XML" }), c({ en: "Newline" }), c({ en: "Carriage Return" }), c({ en: "Carriage Return/Newline" }), c({ en: "Colon" }), c({ en: "Comma" }), c({ en: "Exclamation Mark" }), c({ en: "Record Separator" }), c({ en: "Semicolon" }), c({ en: "Space" }), c({ en: "Tab" }), c({ en: "Underscore" }), c({ en: "Unit Separator" }), c({ en: "Vertical Bar" }), D([
448
448
  "app",
449
449
  "engine",
450
450
  "connector",
@@ -452,15 +452,15 @@ var D = /* @__PURE__ */ C({
452
452
  "presenter",
453
453
  "tool"
454
454
  ]);
455
- var M = {
456
- ...j,
457
- vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
458
- vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
459
- vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
460
- version: /* @__PURE__ */ w()
455
+ var j = {
456
+ ...A,
457
+ vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
458
+ vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
459
+ vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
460
+ version: /* @__PURE__ */ C()
461
461
  };
462
- ({ ...M });
463
- var ce = O([
462
+ ({ ...j });
463
+ var le = D([
464
464
  "abortOperation",
465
465
  "auditObjectContent",
466
466
  "createObject",
@@ -476,39 +476,39 @@ var ce = O([
476
476
  "retrieveChunks",
477
477
  "retrieveRecords",
478
478
  "upsertRecords"
479
- ]), le = O([
479
+ ]), ue = D([
480
480
  "application",
481
481
  "curatedDataset",
482
482
  "database",
483
483
  "fileStore"
484
- ]), ue = /* @__PURE__ */ C({ label: D }), de = O([
484
+ ]), de = /* @__PURE__ */ S({ label: E }), fe = D([
485
485
  "bidirectional",
486
486
  "destination",
487
487
  "source",
488
488
  "unknown"
489
- ]), fe = /* @__PURE__ */ C({ label: D }), pe = /* @__PURE__ */ C({
490
- authMethodId: O([
489
+ ]), pe = /* @__PURE__ */ S({ label: E }), me = /* @__PURE__ */ S({
490
+ authMethodId: D([
491
491
  "apiKey",
492
492
  "disabled",
493
493
  "oAuth2",
494
494
  "none"
495
495
  ]),
496
- activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
497
- canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ _()),
498
- id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
499
- label: /* @__PURE__ */ x(D),
500
- maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
501
- params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
502
- }), me = /* @__PURE__ */ C({
503
- ...M,
504
- typeId: /* @__PURE__ */ v("connector"),
505
- actionNames: /* @__PURE__ */ g(ce),
506
- category: /* @__PURE__ */ y(ue),
507
- categoryId: le,
508
- implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), pe),
509
- usage: /* @__PURE__ */ y(fe),
510
- usageId: /* @__PURE__ */ y(de)
511
- }), N = {
496
+ activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
497
+ canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
498
+ id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
499
+ label: /* @__PURE__ */ b(E),
500
+ maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
501
+ params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
502
+ }), he = /* @__PURE__ */ S({
503
+ ...j,
504
+ typeId: /* @__PURE__ */ _("connector"),
505
+ actionNames: /* @__PURE__ */ h(le),
506
+ category: /* @__PURE__ */ v(de),
507
+ categoryId: ue,
508
+ implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), me),
509
+ usage: /* @__PURE__ */ v(pe),
510
+ usageId: /* @__PURE__ */ v(fe)
511
+ }), M = {
512
512
  abortOperation: "Abort Operation",
513
513
  auditObjectContent: "Audit Object Content",
514
514
  createObject: "Create Object",
@@ -524,12 +524,12 @@ var ce = O([
524
524
  retrieveChunks: "Retrieve Chunks",
525
525
  retrieveRecords: "Retrieve Records",
526
526
  upsertRecords: "Upsert Records"
527
- }, P = /* @__PURE__ */ new Set([
527
+ }, N = /* @__PURE__ */ new Set([
528
528
  "createObject",
529
529
  "dropObject",
530
530
  "removeRecords",
531
531
  "upsertRecords"
532
- ]), F = /* @__PURE__ */ new Set([
532
+ ]), P = /* @__PURE__ */ new Set([
533
533
  "auditObjectContent",
534
534
  "findObject",
535
535
  "getInfo",
@@ -540,28 +540,28 @@ var ce = O([
540
540
  "retrieveChunks",
541
541
  "retrieveRecords"
542
542
  ]);
543
- function I(e) {
543
+ function F(e) {
544
544
  let t = !1, n = !1;
545
- for (let r of e) F.has(r) && (t = !0), P.has(r) && (n = !0);
545
+ for (let r of e) P.has(r) && (t = !0), N.has(r) && (n = !0);
546
546
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
547
547
  }
548
- function L(e) {
548
+ function I(e) {
549
549
  let t = new Set(e), n = "|Action|Supported|\n";
550
550
  n += "|:----|:-------:|\n";
551
- for (let e of Object.keys(N)) n += `| ${N[e]} | ${t.has(e) ? "✓" : ""} |\n`;
551
+ for (let e of Object.keys(M)) n += `| ${M[e]} | ${t.has(e) ? "✓" : ""} |\n`;
552
552
  return n;
553
553
  }
554
- O(["list"]), { ...M };
555
- var R = O([
554
+ D(["list"]), { ...j };
555
+ var L = D([
556
556
  "list",
557
557
  "render",
558
558
  "setColorMode"
559
- ]), z = /* @__PURE__ */ C({
560
- ...M,
561
- typeId: /* @__PURE__ */ v("presenter"),
562
- actionNames: /* @__PURE__ */ g(R),
563
- presentations: /* @__PURE__ */ g(se)
564
- }), B = "code-health-reports/fallow", he = `${B}/badge.json`, ge = `${B}/index.md`, V = "<!-- CONTRIBUTING_LICENSE_END -->", H = "<!-- CONTRIBUTING_LICENSE_START -->", _e = "<!-- GOVERNANCE_END -->", U = "<!-- GOVERNANCE_START -->", W = "<!-- QUALITY_SECURITY_END -->", G = "<!-- QUALITY_SECURITY_START -->", ve = "rust/Cargo.toml", ye = [
559
+ ]), R = /* @__PURE__ */ S({
560
+ ...j,
561
+ typeId: /* @__PURE__ */ _("presenter"),
562
+ actionNames: /* @__PURE__ */ h(L),
563
+ presentations: /* @__PURE__ */ h(ce)
564
+ }), z = "code-health-reports/fallow", ge = `${z}/badge.json`, _e = `${z}/index.md`, B = "<!-- CONTRIBUTING_LICENSE_END -->", V = "<!-- CONTRIBUTING_LICENSE_START -->", ve = "<!-- GOVERNANCE_END -->", H = "<!-- GOVERNANCE_START -->", U = "<!-- QUALITY_SECURITY_END -->", W = "<!-- QUALITY_SECURITY_START -->", ye = "rust/Cargo.toml", be = [
565
565
  {
566
566
  idPrefix: "dpuse-app",
567
567
  typeId: "app",
@@ -646,9 +646,9 @@ var R = O([
646
646
  publishedTo: "github",
647
647
  uploadGroupName: void 0
648
648
  }
649
- ], be = n(r);
650
- async function xe(n, r) {
651
- n !== void 0 && Z(`${n} - clear(${r})`);
649
+ ], xe = n(r);
650
+ async function Se(n, r) {
651
+ n !== void 0 && X(`${n} - clear(${r})`);
652
652
  let i;
653
653
  try {
654
654
  i = await e.readdir(r, { withFileTypes: !0 });
@@ -668,16 +668,16 @@ async function xe(n, r) {
668
668
  }
669
669
  }));
670
670
  }
671
- async function Se(t, n) {
671
+ async function Ce(t, n) {
672
672
  return e.readdir(t, n);
673
673
  }
674
- async function Ce(t, n, r, i) {
675
- t !== void 0 && Z(`${t} - exec(${n} ${r.join(" ")})`);
676
- let { stdout: a, stderr: o } = await be(n, r);
674
+ async function we(t, n, r, i) {
675
+ t !== void 0 && X(`${t} - exec(${n} ${r.join(" ")})`);
676
+ let { stdout: a, stderr: o } = await xe(n, r);
677
677
  i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
678
678
  }
679
- async function we(e, t, n, r = !1, a = !1) {
680
- return Z(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
679
+ async function Te(e, t, n, r = !1, a = !1) {
680
+ return X(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
681
681
  i(t, n, {
682
682
  shell: a,
683
683
  stdio: "inherit"
@@ -686,8 +686,8 @@ async function we(e, t, n, r = !1, a = !1) {
686
686
  });
687
687
  });
688
688
  }
689
- async function Te(n, r, a, o, s = !1) {
690
- return Z(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
689
+ async function Ee(n, r, a, o, s = !1) {
690
+ return X(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
691
691
  let l = i(r, a, {
692
692
  shell: !1,
693
693
  stdio: [
@@ -709,19 +709,19 @@ async function Te(n, r, a, o, s = !1) {
709
709
  });
710
710
  });
711
711
  }
712
- async function Ee() {
713
- let e = await q("./README.md"), t = e.indexOf(U), n = e.indexOf(_e);
712
+ async function De() {
713
+ let e = await K("./README.md"), t = e.indexOf(H), n = e.indexOf(ve);
714
714
  if (t === -1 || n === -1) return;
715
- let r = `${G}\n${W}\n\n${H}\n${V}`;
716
- await X("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
715
+ let r = `${W}\n${U}\n\n${V}\n${B}`;
716
+ await Y("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
717
717
  }
718
- async function K(t) {
718
+ async function G(t) {
719
719
  return JSON.parse(await e.readFile(t, "utf-8"));
720
720
  }
721
- async function q(t) {
721
+ async function K(t) {
722
722
  return await e.readFile(t, "utf-8");
723
723
  }
724
- async function J(t) {
724
+ async function q(t) {
725
725
  try {
726
726
  return await e.readFile(t, "utf-8");
727
727
  } catch (e) {
@@ -729,30 +729,30 @@ async function J(t) {
729
729
  throw e;
730
730
  }
731
731
  }
732
- async function Y(n, r) {
732
+ async function J(n, r) {
733
733
  await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
734
734
  }
735
- async function De(e, t, n) {
736
- await X("README.md", Re(await q("./README.md"), e, t, n));
735
+ async function Oe(e, t, n) {
736
+ await Y("README.md", ze(await K("./README.md"), e, t, n));
737
737
  }
738
- async function X(t, n) {
738
+ async function Y(t, n) {
739
739
  await e.writeFile(t, n, "utf-8");
740
740
  }
741
- function Oe(e) {
741
+ function ke(e) {
742
742
  console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}`);
743
743
  }
744
- function ke(e) {
744
+ function Ae(e) {
745
745
  console.info(`✅ ${e}`);
746
746
  }
747
- function Z(e) {
747
+ function X(e) {
748
748
  console.info(e);
749
749
  }
750
- function Ae(e) {
751
- let t = ye.find((t) => e.startsWith(t.idPrefix));
750
+ function je(e) {
751
+ let t = be.find((t) => e.startsWith(t.idPrefix));
752
752
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
753
753
  return t;
754
754
  }
755
- function je(e, t) {
755
+ function Me(e, t) {
756
756
  let n = e.repository, r = typeof n == "string" ? n : n?.url;
757
757
  if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
758
758
  let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
@@ -762,56 +762,64 @@ function je(e, t) {
762
762
  repo: a[2]
763
763
  };
764
764
  }
765
- async function Me(t) {
765
+ async function Ne(t) {
766
766
  return await e.stat(t);
767
767
  }
768
- async function Ne(e, t, n) {
768
+ async function Pe(e, t, n) {
769
769
  switch (n.typeId) {
770
- case "connector": return await Fe(e, t);
771
- case "presenter": return await Ie(e, t);
772
- default: return await Le(e, t);
770
+ case "connector": return await Ie(e, t);
771
+ case "presenter": return await Le(e, t);
772
+ default: return await Re(e, t);
773
773
  }
774
774
  }
775
- async function Pe(e, t, n = "./") {
776
- if (Z(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
775
+ async function Fe(e, t, n = "./") {
776
+ if (X(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
777
777
  else {
778
778
  let e = t.version, n = t.version.split(".");
779
779
  t.version = `${n[0] ?? "unknown"}.${n[1] ?? "unknown"}.${String(Number(n[2]) + 1)}`, console.info(`Project version bumped from '${e}' to '${t.version}'.`);
780
780
  }
781
- await Y(`${n}package.json`, t);
781
+ await J(`${n}package.json`, t);
782
782
  }
783
- async function Q(e) {
783
+ async function Z(e) {
784
784
  let { default: t } = await import("typescript"), n = t.createSourceFile("index.ts", e, t.ScriptTarget.Latest, !0), r = [], i = (e) => {
785
785
  t.isMethodDeclaration(e) && t.isClassLike(e.parent) && t.isIdentifier(e.name) && ((e.modifiers?.some((e) => e.kind === t.SyntaxKind.PrivateKeyword) ?? !1) || r.push(e.name.text)), t.forEachChild(e, i);
786
786
  };
787
787
  return i(n), r;
788
788
  }
789
- async function Fe(e, t) {
790
- Z(`${e} Build connector project configuration`);
791
- let [n, r] = await Promise.all([K("config.json"), q("src/index.ts")]), i = /* @__PURE__ */ s(me, n);
792
- if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
793
- let a = await Q(r);
794
- return await $(t, n, a, I(a));
795
- }
796
789
  async function Ie(e, t) {
797
- Z(`${e} Build presenter project configuration`);
798
- let [n, r] = await Promise.all([K("config.json"), q("src/index.ts")]), i = /* @__PURE__ */ s(z, n);
790
+ X(`${e} Build connector project configuration`);
791
+ let [n, r] = await Promise.all([G("config.json"), K("src/index.ts")]), i = /* @__PURE__ */ s(he, n);
799
792
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
800
- return await $(t, n, await Q(r));
793
+ let a = await Z(r);
794
+ return await Q(t, n, a, F(a));
801
795
  }
802
796
  async function Le(e, t) {
803
- Z(`${e} Build project configuration`);
804
- let n = await K("config.json");
805
- return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await J("logo.svg"), n.iconDark ??= await J("logoDark.svg"), await Y("config.json", n), n;
797
+ X(`${e} Build presenter project configuration`);
798
+ let [n, r] = await Promise.all([G("config.json"), K("src/index.ts")]), i = /* @__PURE__ */ s(R, n);
799
+ if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
800
+ return await Q(t, n, await Z(r));
801
+ }
802
+ async function Re(e, t) {
803
+ X(`${e} Build project configuration`);
804
+ let n = await G("config.json");
805
+ return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await q("logo.svg"), n.iconDark ??= await q("logoDark.svg"), await J("config.json", $(n)), n;
806
+ }
807
+ async function Q(e, t, n, r) {
808
+ return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await J("config.json", $(t)), t;
806
809
  }
807
- async function $(e, t, n, r) {
808
- return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations"), r === "unknown" ? console.warn("⚠️ No usage identified") : r && console.info(`ℹ️ Supports '${r}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.actionNames = n, r !== void 0 && (t.usageId = r), await Y("config.json", t), t;
810
+ function $(e) {
811
+ let t = [
812
+ "id",
813
+ "label",
814
+ "description"
815
+ ], n = Object.entries(e), r = t.flatMap((e) => n.filter(([t]) => t === e)), i = n.filter(([e]) => !t.includes(e)).toSorted(([e], [t]) => e.localeCompare(t, "en", { sensitivity: "base" }));
816
+ return Object.fromEntries([...r, ...i]);
809
817
  }
810
- function Re(e, t, n, r) {
818
+ function ze(e, t, n, r) {
811
819
  let i = e.indexOf(n), a = e.indexOf(r);
812
820
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
813
821
  let o = t.trim();
814
822
  return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
815
823
  }
816
824
  //#endregion
817
- export { L as A, je as C, De as D, Y as E, X as O, J as S, Te as T, ke as _, ge as a, K as b, ve as c, xe as d, Ce as f, Oe as g, Me as h, B as i, I as k, Ne as l, Ae as m, H as n, W as o, Se as p, he as r, G as s, V as t, Pe as u, Z as v, we as w, q as x, Ee as y };
825
+ export { I as A, Me as C, Oe as D, J as E, Y as O, q as S, Ee as T, Ae as _, _e as a, G as b, ye as c, Se as d, we as f, ke as g, Ne as h, z as i, F as k, Pe as l, je as m, V as n, U as o, Ce as p, ge as r, W as s, B as t, Fe as u, X as v, Te as w, K as x, De as y };