@adhdev/daemon-standalone 0.9.82-rc.202 → 0.9.82-rc.203
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 +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61348,7 +61348,8 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
61348
61348
|
}
|
|
61349
61349
|
function evaluate(spec, screenText, cursor) {
|
|
61350
61350
|
const trace = [];
|
|
61351
|
-
const lines = screenText.split("\n");
|
|
61351
|
+
const lines = screenText.split("\n").map((l) => l.endsWith("\r") ? l.slice(0, -1) : l);
|
|
61352
|
+
const cleanScreen = lines.join("\n");
|
|
61352
61353
|
const sections = resolveSections(spec, lines);
|
|
61353
61354
|
for (const s of sections) {
|
|
61354
61355
|
trace.push({ kind: "section", text: `section[${s.id}] lines [${s.fromLine}, ${s.toLine}) (${s.toLine - s.fromLine} lines)` });
|
|
@@ -61359,9 +61360,9 @@ ${formatManifestValidationIssues2(validation.issues)}`,
|
|
|
61359
61360
|
let activeState = null;
|
|
61360
61361
|
let modal = null;
|
|
61361
61362
|
for (const st of spec.states) {
|
|
61362
|
-
const { matched, title } = matchState(st, sections,
|
|
61363
|
+
const { matched, title } = matchState(st, sections, cleanScreen, trace, cursor);
|
|
61363
61364
|
if (!matched) continue;
|
|
61364
|
-
const extractedModal = extractModal(st, sections,
|
|
61365
|
+
const extractedModal = extractModal(st, sections, cleanScreen, title, trace);
|
|
61365
61366
|
if (st.modal_buttons && !extractedModal) {
|
|
61366
61367
|
trace.push({ kind: "state_skip", text: `state[${st.id}] matched but modal_buttons extraction failed \u2014 not promoting` });
|
|
61367
61368
|
continue;
|
|
@@ -87514,6 +87515,7 @@ var StandaloneServer = class {
|
|
|
87514
87515
|
onStatusChange: () => {
|
|
87515
87516
|
this.scheduleBroadcastStatus();
|
|
87516
87517
|
void this.flushWsChatSubscriptions(void 0, { onlyActive: true });
|
|
87518
|
+
void this.flushWsSessionModalSubscriptions();
|
|
87517
87519
|
},
|
|
87518
87520
|
removeAgentTracking: () => {
|
|
87519
87521
|
},
|
|
@@ -87543,6 +87545,7 @@ var StandaloneServer = class {
|
|
|
87543
87545
|
onStatusChange: () => {
|
|
87544
87546
|
this.scheduleBroadcastStatus();
|
|
87545
87547
|
void this.flushWsChatSubscriptions(void 0, { onlyActive: true });
|
|
87548
|
+
void this.flushWsSessionModalSubscriptions();
|
|
87546
87549
|
},
|
|
87547
87550
|
sessionHostControl,
|
|
87548
87551
|
onStreamsUpdated: (ideType, streams) => {
|