@datarails-ai/dr-appspace-cli 0.10.16 → 0.10.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +28 -10
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
|
|
|
13
13
|
// package.json
|
|
14
14
|
var package_default = {
|
|
15
15
|
name: "@datarails-ai/dr-appspace-cli",
|
|
16
|
-
version: "0.10.
|
|
16
|
+
version: "0.10.17",
|
|
17
17
|
description: "Datarails App Space CLI \u2014 build, try, push and publish App Space apps",
|
|
18
18
|
type: "module",
|
|
19
19
|
engines: {
|
|
@@ -57,7 +57,7 @@ var package_default = {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
// src/buildInfo.ts
|
|
60
|
-
var BUILD_TIME = "2026-10-
|
|
60
|
+
var BUILD_TIME = "2026-10-01T11:50:28.550Z";
|
|
61
61
|
function formatBuildTime(iso) {
|
|
62
62
|
if (iso === "") return "";
|
|
63
63
|
const d = new Date(iso);
|
|
@@ -7774,10 +7774,11 @@ async function runLiveness(dir, appId, whole, client, only) {
|
|
|
7774
7774
|
`${handler.file} is not in this folder, so no handler was run`
|
|
7775
7775
|
);
|
|
7776
7776
|
}
|
|
7777
|
-
const groups =
|
|
7777
|
+
const groups = pagesToLoad(whole, only);
|
|
7778
7778
|
const merged = {};
|
|
7779
7779
|
const violations = /* @__PURE__ */ new Map();
|
|
7780
7780
|
const skipped = /* @__PURE__ */ new Map();
|
|
7781
|
+
const others = [];
|
|
7781
7782
|
const where2 = handler.file;
|
|
7782
7783
|
let loaded = false;
|
|
7783
7784
|
const keep = (verdict) => {
|
|
@@ -7795,7 +7796,8 @@ async function runLiveness(dir, appId, whole, client, only) {
|
|
|
7795
7796
|
{ violations: [...violations.values()], skipped: [...skipped.values()] },
|
|
7796
7797
|
declaredWidgets(contract)
|
|
7797
7798
|
),
|
|
7798
|
-
...loaded ? { payloads: merged } : {}
|
|
7799
|
+
...loaded ? { payloads: merged } : {},
|
|
7800
|
+
...others.length > 0 ? { others } : {}
|
|
7799
7801
|
});
|
|
7800
7802
|
const sole = groups.length === 1 ? groups[0] : null;
|
|
7801
7803
|
for (const group of groups.length > 1 || only !== void 0 ? groups : [null]) {
|
|
@@ -7837,13 +7839,19 @@ async function runLiveness(dir, appId, whole, client, only) {
|
|
|
7837
7839
|
const result = isRecord(answer.result) ? answer.result : {};
|
|
7838
7840
|
const answered = isRecord(result["widgets"]) ? result["widgets"] : {};
|
|
7839
7841
|
loaded = true;
|
|
7842
|
+
const load = { ok: true, envelope: { ...result, widgets: answered } };
|
|
7840
7843
|
keep(
|
|
7841
|
-
checkLiveness(
|
|
7842
|
-
view,
|
|
7843
|
-
{ ok: true, envelope: { ...result, widgets: answered } },
|
|
7844
|
-
{ handlerWhere: where2 }
|
|
7845
|
-
)
|
|
7844
|
+
checkLiveness(view, load, { handlerWhere: where2 })
|
|
7846
7845
|
);
|
|
7846
|
+
if (only !== void 0 && group !== null) {
|
|
7847
|
+
const rest = narrowTo(whole, group.ids.filter((id) => !only.has(id)));
|
|
7848
|
+
const verdict = checkLiveness(rest, load, { handlerWhere: where2 });
|
|
7849
|
+
for (const one of verdict.violations) {
|
|
7850
|
+
if (one.rule === "R5.1" && one.message !== void 0 && !others.includes(one.message)) {
|
|
7851
|
+
others.push(one.message);
|
|
7852
|
+
}
|
|
7853
|
+
}
|
|
7854
|
+
}
|
|
7847
7855
|
for (const [id, payload2] of Object.entries(answered)) {
|
|
7848
7856
|
if (!(id in merged)) merged[id] = payload2;
|
|
7849
7857
|
}
|
|
@@ -7889,6 +7897,11 @@ function pageGroups(contract) {
|
|
|
7889
7897
|
if (orphans.length > 0) groups.push({ path: null, ids: orphans });
|
|
7890
7898
|
return groups;
|
|
7891
7899
|
}
|
|
7900
|
+
function pagesToLoad(whole, only) {
|
|
7901
|
+
const groups = pageGroups(whole);
|
|
7902
|
+
if (only === void 0) return groups;
|
|
7903
|
+
return groups.map((group) => group.path === null ? { ...group, ids: group.ids.filter((id) => only.has(id)) } : group).filter((group) => group.ids.some((id) => only.has(id)));
|
|
7904
|
+
}
|
|
7892
7905
|
function pageFilters(contract, path3) {
|
|
7893
7906
|
const pages = contract.pages;
|
|
7894
7907
|
if (!Array.isArray(pages)) return null;
|
|
@@ -26037,9 +26050,14 @@ function livenessLine(report) {
|
|
|
26037
26050
|
`;
|
|
26038
26051
|
}
|
|
26039
26052
|
const blank4 = live.problems.length;
|
|
26040
|
-
|
|
26053
|
+
const line2 = blank4 === 0 ? `liveness: ${String(live.widgets)} of ${String(live.widgets)} widget(s) came back with a figure.
|
|
26041
26054
|
` : `liveness: ${String(blank4)} of ${String(live.widgets)} widget(s) came back with NO figure.
|
|
26042
26055
|
`;
|
|
26056
|
+
const others = live.others ?? [];
|
|
26057
|
+
if (others.length === 0) return line2;
|
|
26058
|
+
return line2 + `liveness: noted \u2014 ${String(others.length)} card(s) other landings put on these pages came back with NO figure (not this landing's to fix):
|
|
26059
|
+
` + others.map((one) => ` ${one}
|
|
26060
|
+
`).join("");
|
|
26043
26061
|
}
|
|
26044
26062
|
function describe5(report, skipped) {
|
|
26045
26063
|
let out = `${report.kit}: ${String(report.files.length)} files, round trip equal
|