@dpuse/dpuse-development 1.0.149 → 1.0.152

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.
@@ -5,7 +5,6 @@ export { documentProject } from './actions/documentProject';
5
5
  export { formatCode } from './actions/formatCode';
6
6
  export { lintCode } from './actions/lintCode';
7
7
  export { publishProject } from './actions/publishProject';
8
- export { releaseProject } from './actions/releaseProject';
9
8
  export { syncProjectWithGitHub } from './actions/syncProjectWithGitHub';
10
9
  export { testProject } from './actions/testProject';
11
10
  export { triggerGitHubRelease } from './actions/triggerGitHubRelease';
@@ -472,7 +472,101 @@ var D = /* @__PURE__ */ C({
472
472
  status: /* @__PURE__ */ y(ce),
473
473
  statusId: /* @__PURE__ */ y(se)
474
474
  };
475
- ({ ...A }), O([
475
+ ({ ...A });
476
+ var ue = [
477
+ {
478
+ id: "arrow",
479
+ isStructured: !1,
480
+ isTable: !1,
481
+ isText: !1,
482
+ supportId: "planned"
483
+ },
484
+ {
485
+ id: "avro",
486
+ isStructured: !1,
487
+ isTable: !1,
488
+ isText: !1,
489
+ supportId: "planned"
490
+ },
491
+ {
492
+ id: "dtv",
493
+ isStructured: !1,
494
+ isTable: !0,
495
+ isText: !0,
496
+ supportId: "supported"
497
+ },
498
+ {
499
+ id: "json",
500
+ isStructured: !0,
501
+ isTable: !0,
502
+ isText: !0,
503
+ supportId: "supported"
504
+ },
505
+ {
506
+ id: "jsonl",
507
+ isStructured: !0,
508
+ isTable: !0,
509
+ isText: !0,
510
+ supportId: "supported"
511
+ },
512
+ {
513
+ id: "markdown",
514
+ isStructured: !1,
515
+ isTable: !1,
516
+ isText: !0,
517
+ supportId: "unsupported"
518
+ },
519
+ {
520
+ id: "ods",
521
+ isStructured: !0,
522
+ isTable: !1,
523
+ isText: !1,
524
+ supportId: "planned"
525
+ },
526
+ {
527
+ id: "parquet",
528
+ isStructured: !1,
529
+ isTable: !1,
530
+ isText: !1,
531
+ supportId: "planned"
532
+ },
533
+ {
534
+ id: "sav",
535
+ isStructured: !1,
536
+ isTable: !1,
537
+ isText: !1,
538
+ supportId: "planned"
539
+ },
540
+ {
541
+ id: "sqlite",
542
+ isStructured: !1,
543
+ isTable: !1,
544
+ isText: !1,
545
+ supportId: "planned"
546
+ },
547
+ {
548
+ id: "xlsx",
549
+ isStructured: !0,
550
+ isTable: !1,
551
+ isText: !1,
552
+ supportId: "planned"
553
+ },
554
+ {
555
+ id: "xml",
556
+ isStructured: !0,
557
+ isTable: !1,
558
+ isText: !1,
559
+ supportId: "planned"
560
+ },
561
+ {
562
+ id: "unknown",
563
+ isStructured: !1,
564
+ isTable: !1,
565
+ isText: !1,
566
+ supportId: "unsupported"
567
+ }
568
+ ];
569
+ O([
476
570
  "app",
477
571
  "engine",
478
572
  "connector",
@@ -488,8 +582,7 @@ var j = {
488
582
  version: /* @__PURE__ */ w()
489
583
  };
490
584
  ({ ...j });
491
- var ue = O([
492
- "abortOperation",
585
+ var de = O([
493
586
  "auditObjectContent",
494
587
  "closeStore",
495
588
  "createObject",
@@ -499,30 +592,31 @@ var ue = O([
499
592
  "getInfo",
500
593
  "getReadableStream",
501
594
  "getRecord",
595
+ "indexObjectStructure",
502
596
  "listNodes",
597
+ "listObjectStructureEntries",
503
598
  "loadObjectRecords",
504
599
  "openStore",
505
600
  "previewObject",
506
601
  "queryRecords",
507
602
  "removeRecords",
508
- "retrieveChunks",
509
603
  "retrieveRecords",
510
604
  "upsertRecords"
511
- ]), de = O([
605
+ ]), fe = O([
512
606
  "application",
513
607
  "curatedDataset",
514
608
  "database",
515
609
  "fileStore"
516
- ]), fe = /* @__PURE__ */ C({ label: D }), pe = O([
610
+ ]), pe = /* @__PURE__ */ C({ label: D }), me = O([
517
611
  "apiEndpoint",
518
612
  "file",
519
613
  "table"
520
- ]), me = O([
614
+ ]), he = O([
521
615
  "bidirectional",
522
616
  "destination",
523
617
  "source",
524
618
  "unknown"
525
- ]), he = /* @__PURE__ */ C({ label: D }), ge = /* @__PURE__ */ C({
619
+ ]), ge = /* @__PURE__ */ C({ label: D }), _e = /* @__PURE__ */ C({
526
620
  authMethodId: O([
527
621
  "apiKey",
528
622
  "disabled",
@@ -535,17 +629,17 @@ var ue = O([
535
629
  label: /* @__PURE__ */ x(D),
536
630
  maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
537
631
  params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
538
- }), _e = /* @__PURE__ */ C({
632
+ }), ve = /* @__PURE__ */ C({
539
633
  ...j,
540
634
  typeId: /* @__PURE__ */ v("connector"),
541
- actionNames: /* @__PURE__ */ g(ue),
542
- category: /* @__PURE__ */ y(fe),
543
- categoryId: de,
544
- implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), ge),
545
- itemTypeId: pe,
546
- usage: /* @__PURE__ */ y(he),
547
- usageId: /* @__PURE__ */ y(me)
548
- }), ve = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ re(/* @__PURE__ */ g(O([
635
+ actionNames: /* @__PURE__ */ g(de),
636
+ category: /* @__PURE__ */ y(pe),
637
+ categoryId: fe,
638
+ implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), _e),
639
+ itemTypeId: me,
640
+ usage: /* @__PURE__ */ y(ge),
641
+ usageId: /* @__PURE__ */ y(he)
642
+ }), M = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ re(/* @__PURE__ */ g(O([
549
643
  "arrow",
550
644
  "avro",
551
645
  "dtv",
@@ -558,13 +652,14 @@ var ue = O([
558
652
  "sqlite",
559
653
  "xlsx",
560
654
  "xml"
561
- ])), /* @__PURE__ */ m(1)) }), M = /* @__PURE__ */ g(/* @__PURE__ */ w()), N = /* @__PURE__ */ C({
655
+ ])), /* @__PURE__ */ m(1)) }), N = /* @__PURE__ */ g(/* @__PURE__ */ w()), P = /* @__PURE__ */ C({
562
656
  ...j,
563
657
  typeId: /* @__PURE__ */ v("tool"),
564
- actionNames: /* @__PURE__ */ x(M),
565
- parser: /* @__PURE__ */ x(ve)
566
- }), P = {
567
- abortOperation: "Abort Operation",
658
+ actionNames: /* @__PURE__ */ x(N),
659
+ parser: /* @__PURE__ */ x(M)
660
+ });
661
+ new Set(ue.filter(({ isStructured: e }) => e).map(({ id: e }) => e));
662
+ var F = {
568
663
  auditObjectContent: "Audit Object Content",
569
664
  closeStore: "Close Store",
570
665
  createObject: "Create Object",
@@ -574,53 +669,55 @@ var ue = O([
574
669
  getInfo: "Get Info",
575
670
  getReadableStream: "Get Readable Stream",
576
671
  getRecord: "Get Record",
672
+ indexObjectStructure: "Index Object Structure",
577
673
  listNodes: "List Nodes",
674
+ listObjectStructureEntries: "List Object Structure Entries",
578
675
  loadObjectRecords: "Load Object Records",
579
676
  openStore: "Open Store",
580
677
  previewObject: "Preview Object",
581
678
  queryRecords: "Query Records",
582
679
  removeRecords: "Remove Records",
583
- retrieveChunks: "Retrieve Chunks",
584
680
  retrieveRecords: "Retrieve Records",
585
681
  upsertRecords: "Upsert Records"
586
- }, F = /* @__PURE__ */ new Set([
682
+ }, ye = /* @__PURE__ */ new Set([
587
683
  "createObject",
588
684
  "dropObject",
589
685
  "loadObjectRecords",
590
686
  "removeRecords",
591
687
  "upsertRecords"
592
- ]), ye = /* @__PURE__ */ new Set([
688
+ ]), be = /* @__PURE__ */ new Set([
593
689
  "auditObjectContent",
594
690
  "findObject",
595
691
  "getInfo",
596
692
  "getReadableStream",
597
693
  "getRecord",
694
+ "indexObjectStructure",
598
695
  "listNodes",
696
+ "listObjectStructureEntries",
599
697
  "previewObject",
600
698
  "queryRecords",
601
- "retrieveChunks",
602
699
  "retrieveRecords"
603
700
  ]);
604
701
  function I(e) {
605
702
  let t = !1, n = !1;
606
- for (let r of e) ye.has(r) && (t = !0), F.has(r) && (n = !0);
703
+ for (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);
607
704
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
608
705
  }
609
- function be(e) {
706
+ function xe(e) {
610
707
  let t = new Set(e), n = "|Action|Supported|\n";
611
708
  n += "|:----|:-------:|\n";
612
- for (let e of Object.keys(P)) n += `| ${P[e]} | ${t.has(e) ? "✓" : ""} |\n`;
709
+ for (let e of Object.keys(F)) n += `| ${F[e]} | ${t.has(e) ? "✓" : ""} |\n`;
613
710
  return n;
614
711
  }
615
712
  O(["list"]), { ...j };
616
- var xe = O([
713
+ var Se = O([
617
714
  "list",
618
715
  "render",
619
716
  "setColorMode"
620
- ]), Se = /* @__PURE__ */ C({
717
+ ]), Ce = /* @__PURE__ */ C({
621
718
  ...j,
622
719
  typeId: /* @__PURE__ */ v("presenter"),
623
- actionNames: /* @__PURE__ */ g(xe),
720
+ actionNames: /* @__PURE__ */ g(Se),
624
721
  presentations: /* @__PURE__ */ g(le)
625
722
  }), L = /* @__PURE__ */ new Map([
626
723
  ["arrow", "application/vnd.apache.arrow.file"],
@@ -644,23 +741,23 @@ var xe = O([
644
741
  ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
645
742
  ["xml", "application/xml"]
646
743
  ]);
647
- function Ce(e) {
744
+ function we(e) {
648
745
  if (!e) return;
649
- let t = Ee(e);
746
+ let t = De(e);
650
747
  return t === void 0 ? void 0 : e.slice(t + 1);
651
748
  }
652
- function we(e) {
749
+ function Te(e) {
653
750
  return e != null && L.has(e.toLowerCase());
654
751
  }
655
- function Te(e) {
752
+ function Ee(e) {
656
753
  return (e == null ? void 0 : L.get(e.toLowerCase())) ?? "application/octet-stream";
657
754
  }
658
- function Ee(e) {
755
+ function De(e) {
659
756
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
660
757
  return n > t && n < e.length - 1 ? n : void 0;
661
758
  }
662
759
  // src/utilities/index.ts
663
- var De = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), R = "code-health-reports/fallow", Oe = `${R}/badge.json`, ke = `${R}/index.md`, z = "<!-- CONTRIBUTING_LICENSE_END -->", B = "<!-- CONTRIBUTING_LICENSE_START -->", Ae = "<!-- GOVERNANCE_END -->", je = "<!-- GOVERNANCE_START -->", V = "<!-- QUALITY_SECURITY_END -->", H = "<!-- QUALITY_SECURITY_START -->", Me = "rust/Cargo.toml", Ne = [
760
+ var Oe = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), R = "code-health-reports/fallow", ke = `${R}/badge.json`, Ae = `${R}/index.md`, z = "<!-- CONTRIBUTING_LICENSE_END -->", B = "<!-- CONTRIBUTING_LICENSE_START -->", je = "<!-- GOVERNANCE_END -->", Me = "<!-- GOVERNANCE_START -->", V = "<!-- QUALITY_SECURITY_END -->", H = "<!-- QUALITY_SECURITY_START -->", Ne = "rust/Cargo.toml", Pe = [
664
761
  {
665
762
  idPrefix: "dpuse-app",
666
763
  typeId: "app",
@@ -745,8 +842,8 @@ var De = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-con
745
842
  publishedTo: "github",
746
843
  uploadGroupName: void 0
747
844
  }
748
- ], Pe = n(r);
749
- async function Fe(n, r) {
845
+ ], Fe = n(r);
846
+ async function Ie(n, r) {
750
847
  n !== void 0 && J(`${n} - clear(${r})`);
751
848
  let i;
752
849
  try {
@@ -767,15 +864,15 @@ async function Fe(n, r) {
767
864
  }
768
865
  }));
769
866
  }
770
- async function Ie(t, n) {
867
+ async function Le(t, n) {
771
868
  return e.readdir(t, n);
772
869
  }
773
- async function Le(t, n, r, i) {
870
+ async function Re(t, n, r, i) {
774
871
  t !== void 0 && J(`${t} - exec(${n} ${r.join(" ")})`);
775
- let { stdout: a, stderr: o } = await Pe(n, r);
872
+ let { stdout: a, stderr: o } = await Fe(n, r);
776
873
  i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
777
874
  }
778
- async function Re(e, t, n, r = !1, a = !1) {
875
+ async function ze(e, t, n, r = !1, a = !1) {
779
876
  return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
780
877
  i(t, n, {
781
878
  shell: a,
@@ -785,7 +882,7 @@ async function Re(e, t, n, r = !1, a = !1) {
785
882
  });
786
883
  });
787
884
  }
788
- async function ze(e, t, n) {
885
+ async function Be(e, t, n) {
789
886
  return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, r) => {
790
887
  let a = i(t, n, {
791
888
  shell: !1,
@@ -802,7 +899,7 @@ async function ze(e, t, n) {
802
899
  });
803
900
  });
804
901
  }
805
- async function Be(n, r, a, o, s = !1) {
902
+ async function Ve(n, r, a, o, s = !1) {
806
903
  return J(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
807
904
  let l = i(r, a, {
808
905
  shell: !1,
@@ -825,8 +922,8 @@ async function Be(n, r, a, o, s = !1) {
825
922
  });
826
923
  });
827
924
  }
828
- async function Ve() {
829
- let e = await W("./README.md"), t = e.indexOf(je), n = e.indexOf(Ae);
925
+ async function He() {
926
+ let e = await W("./README.md"), t = e.indexOf(Me), n = e.indexOf(je);
830
927
  if (t === -1 || n === -1) return;
831
928
  let r = `${H}\n${V}\n\n${B}\n${z}`;
832
929
  await q("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
@@ -845,36 +942,36 @@ async function G(t) {
845
942
  throw e;
846
943
  }
847
944
  }
848
- function He(e) {
945
+ function Ue(e) {
849
946
  let t = e.slice(e.lastIndexOf("/") + 1);
850
947
  if (t === "LICENSE") return "text/plain";
851
- let n = Ce(t);
852
- return we(n) || console.warn(`⚠️ No content type for '${e}', so it is treated as 'application/octet-stream'. Add its extension to dpuse-shared.`), Te(n);
948
+ let n = we(t);
949
+ return Te(n) || console.warn(`⚠️ No content type for '${e}', so it is treated as 'application/octet-stream'. Add its extension to dpuse-shared.`), Ee(n);
853
950
  }
854
951
  async function K(n, r) {
855
952
  await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
856
953
  }
857
- async function Ue(e, t, n) {
858
- await q("README.md", $e(await W("./README.md"), e, t, n));
954
+ async function We(e, t, n) {
955
+ await q("README.md", et(await W("./README.md"), e, t, n));
859
956
  }
860
957
  async function q(t, n) {
861
958
  await e.writeFile(t, n, "utf-8");
862
959
  }
863
- function We(e) {
960
+ function Ge(e) {
864
961
  console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}`);
865
962
  }
866
- function Ge(e) {
963
+ function Ke(e) {
867
964
  console.info(`✅ ${e}`);
868
965
  }
869
966
  function J(e) {
870
967
  console.info(e);
871
968
  }
872
- function Ke(e) {
873
- let t = Ne.find((t) => e.startsWith(t.idPrefix));
969
+ function qe(e) {
970
+ let t = Pe.find((t) => e.startsWith(t.idPrefix));
874
971
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
875
972
  return t;
876
973
  }
877
- function qe(e, t) {
974
+ function Je(e, t) {
878
975
  let n = e.repository, r = typeof n == "string" ? n : n?.url;
879
976
  if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
880
977
  let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
@@ -884,18 +981,18 @@ function qe(e, t) {
884
981
  repository: a[2]
885
982
  };
886
983
  }
887
- async function Je(t) {
984
+ async function Y(t) {
888
985
  return await e.stat(t);
889
986
  }
890
- async function Y(e, t, n) {
987
+ async function Ye(e, t, n) {
891
988
  switch (n.typeId) {
892
- case "connector": return await Xe(e, t);
893
- case "presenter": return await Ze(e, t);
894
- case "tool": return await Qe(e, t);
989
+ case "connector": return await Ze(e, t);
990
+ case "presenter": return await Qe(e, t);
991
+ case "tool": return await $e(e, t);
895
992
  default: return await Z(e, t);
896
993
  }
897
994
  }
898
- async function Ye(e, t, n = "./") {
995
+ async function Xe(e, t, n = "./") {
899
996
  if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
900
997
  else {
901
998
  let e = t.version, n = t.version.split(".");
@@ -909,21 +1006,21 @@ async function X(e) {
909
1006
  };
910
1007
  return i(n), r;
911
1008
  }
912
- async function Xe(e, t) {
1009
+ async function Ze(e, t) {
913
1010
  J(`${e} Build connector project configuration`);
914
- let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(_e, n);
1011
+ let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(ve, n);
915
1012
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
916
1013
  let a = await X(r);
917
1014
  return await Q(t, n, a, I(a));
918
1015
  }
919
- async function Ze(e, t) {
1016
+ async function Qe(e, t) {
920
1017
  J(`${e} Build presenter project configuration`);
921
- let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(Se, n);
1018
+ let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(Ce, n);
922
1019
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
923
1020
  return await Q(t, n, await X(r));
924
1021
  }
925
- async function Qe(e, t) {
926
- let n = await Z(e, t), r = /* @__PURE__ */ s(N.entries.parser, n.parser);
1022
+ async function $e(e, t) {
1023
+ let n = await Z(e, t), r = /* @__PURE__ */ s(P.entries.parser, n.parser);
927
1024
  if (!r.success) throw console.error("❌ The 'parser' configuration is invalid:"), console.table(r.issues), Error("Configuration is invalid");
928
1025
  return await Q(t, n, await X(await W("src/index.ts")));
929
1026
  }
@@ -943,10 +1040,10 @@ function $(e) {
943
1040
  ], 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" }));
944
1041
  return Object.fromEntries([...r, ...i]);
945
1042
  }
946
- function $e(e, t, n, r) {
1043
+ function et(e, t, n, r) {
947
1044
  let i = e.indexOf(n), a = e.indexOf(r);
948
1045
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
949
1046
  let o = t.trim();
950
1047
  return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
951
1048
  }
952
- export { Ue as A, G as C, ze as D, Re as E, I as M, be as N, Be as O, W as S, He as T, We as _, R as a, Ve as b, H as c, Ye as d, Fe as f, Je as g, Ke as h, Oe as i, q as j, K as k, Me as l, Ie as m, B as n, ke as o, Le as p, De as r, V as s, z as t, Y as u, Ge as v, qe as w, U as x, J as y };
1049
+ export { We as A, G as C, Be as D, ze as E, I as M, xe as N, Ve as O, W as S, Ue as T, Ge as _, R as a, He as b, H as c, Xe as d, Ie as f, Y as g, qe as h, ke as i, q as j, K as k, Ne as l, Le as m, B as n, Ae as o, Re as p, Oe as r, V as s, z as t, Ye as u, Ke as v, Je as w, U as x, J as y };