@adhdev/daemon-standalone 0.9.82-rc.203 → 0.9.82-rc.204
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/index.js +5 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63520,21 +63520,11 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
63520
63520
|
let sections;
|
|
63521
63521
|
try {
|
|
63522
63522
|
screen = this.driver.snapshot();
|
|
63523
|
-
const
|
|
63524
|
-
|
|
63525
|
-
|
|
63526
|
-
|
|
63527
|
-
|
|
63528
|
-
let start = 0;
|
|
63529
|
-
let end = lines.length;
|
|
63530
|
-
if (typeof from === "number") start = Math.max(0, from);
|
|
63531
|
-
else if (typeof fromBottom === "number") start = Math.max(0, lines.length - fromBottom);
|
|
63532
|
-
const until = sec.until;
|
|
63533
|
-
if (until && typeof until === "object" && typeof until.section === "string") {
|
|
63534
|
-
const ref = (this.spec.layout?.sections ?? []).find((s) => s.id === until.section);
|
|
63535
|
-
if (ref && typeof ref.from_bottom === "number") end = Math.max(start, lines.length - ref.from_bottom);
|
|
63536
|
-
}
|
|
63537
|
-
sections[sec.id] = lines.slice(start, end).join("\n");
|
|
63523
|
+
const driverSections = this.driver.getSections?.();
|
|
63524
|
+
if (driverSections) {
|
|
63525
|
+
sections = Object.fromEntries(driverSections.map((s) => [s.id, s.text]));
|
|
63526
|
+
} else {
|
|
63527
|
+
sections = this.readCurrentScreenSections(screen);
|
|
63538
63528
|
}
|
|
63539
63529
|
} catch {
|
|
63540
63530
|
}
|