@lotics/cli 0.258.1 → 0.260.0
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/probe_page.js +16 -1
- package/dist/src/cli.js +4363 -3706
- package/dist/src/client.d.ts +12 -0
- package/dist/src/client.js +8 -0
- package/docs/building_an_app.md +1 -1
- package/docs/cli_reference.md +3 -3
- package/package.json +1 -1
package/dist/probe_page.js
CHANGED
|
@@ -1862,6 +1862,12 @@ var __loticsProbe = (() => {
|
|
|
1862
1862
|
section: "9c",
|
|
1863
1863
|
fix: "A screen that never stops changing has a render that re-renders or a request that never lands \u2014 find which."
|
|
1864
1864
|
},
|
|
1865
|
+
/** An exception the frame threw and nothing caught while the walk reached the surface — raised by the walk. */
|
|
1866
|
+
crash: {
|
|
1867
|
+
law: "reviewing.md",
|
|
1868
|
+
section: "7",
|
|
1869
|
+
fix: "Fix what threw: a reader who opens this surface meets it too. A SpecError is app.json stating what the runtime cannot draw, which `lotics scaffold check` should have refused \u2014 report that check gap."
|
|
1870
|
+
},
|
|
1865
1871
|
/**
|
|
1866
1872
|
* The three CENSUSES. They differ from every probe above in shape: each one
|
|
1867
1873
|
* makes SEVERAL measurements and raises one finding per measurement that
|
|
@@ -1908,6 +1914,14 @@ var __loticsProbe = (() => {
|
|
|
1908
1914
|
var MONEY_COLUMN_MIN = 3;
|
|
1909
1915
|
var BARE_VALUES_FLOOR = 8;
|
|
1910
1916
|
var QUANTITY_COLUMN_MIN = 2;
|
|
1917
|
+
var isUnread = (value) => typeof value === "object" && value !== null && typeof Reflect.get(value, "label") === "string" && typeof Reflect.get(value, "reason") === "string";
|
|
1918
|
+
function unreadReadings(surface) {
|
|
1919
|
+
return within(surface, "[data-lotics-unread]").flatMap((marker) => {
|
|
1920
|
+
const stated2 = JSON.parse(marker.getAttribute("data-lotics-unread") ?? "");
|
|
1921
|
+
if (!Array.isArray(stated2) || !stated2.every(isUnread)) throw new Error(`data-lotics-unread holds no list of { label, reason }: ${JSON.stringify(stated2).slice(0, 200)}`);
|
|
1922
|
+
return stated2;
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1911
1925
|
function run(options) {
|
|
1912
1926
|
const findings = [];
|
|
1913
1927
|
const surface = measuredSurface();
|
|
@@ -2120,7 +2134,8 @@ var __loticsProbe = (() => {
|
|
|
2120
2134
|
device_kinds: values.deviceKinds.map(
|
|
2121
2135
|
(device) => `${device.kind}\xD7${device.slot === "" ? "(unnamed)" : device.slot}: ${device.count}`
|
|
2122
2136
|
),
|
|
2123
|
-
strips: strips.counted
|
|
2137
|
+
strips: strips.counted,
|
|
2138
|
+
unread: unreadReadings(surface)
|
|
2124
2139
|
}
|
|
2125
2140
|
};
|
|
2126
2141
|
}
|