@adhdev/daemon-standalone 1.0.58-rc.57 → 1.0.58-rc.58

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 CHANGED
@@ -36911,10 +36911,10 @@ var require_dist3 = __commonJS({
36911
36911
  }
36912
36912
  function getDaemonBuildInfo() {
36913
36913
  if (cached2) return cached2;
36914
- const commit = readInjected(true ? "c934db53d11d585f6e21c0715d9b9b180d83ced6" : void 0) ?? "unknown";
36915
- const commitShort = readInjected(true ? "c934db53" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36916
- const version2 = readInjected(true ? "1.0.58-rc.57" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36917
- const builtAt = readInjected(true ? "2026-09-01T10:26:03.358Z" : void 0);
36914
+ const commit = readInjected(true ? "53c86b267804d92042ea66029ca5182680eb7b9c" : void 0) ?? "unknown";
36915
+ const commitShort = readInjected(true ? "53c86b26" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36916
+ const version2 = readInjected(true ? "1.0.58-rc.58" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36917
+ const builtAt = readInjected(true ? "2026-09-01T12:37:49.617Z" : void 0);
36918
36918
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
36919
36919
  return cached2;
36920
36920
  }
@@ -101975,7 +101975,7 @@ ${e?.stderr || ""}`;
101975
101975
  }
101976
101976
  function parseClaudeHeaderlessInteractiveTuiQuestion(page, index) {
101977
101977
  if (!isClaudeTuiSelectFooter(page.screenText)) return null;
101978
- const lines = page.screenText.split(/\r?\n/);
101978
+ const lines = page.screenText.split(/\r?\n/).map((line) => line.replace(/\s+[│┃].*$/, ""));
101979
101979
  let footerIndex = -1;
101980
101980
  for (let i = lines.length - 1; i >= 0; i -= 1) {
101981
101981
  if (/Enter to select/i.test(lines[i])) {
@@ -102042,8 +102042,21 @@ ${e?.stderr || ""}`;
102042
102042
  function isClaudeTuiReviewScreen(screenText) {
102043
102043
  return /(?:^|\n)\s*(?:Review your answers|Ready to submit your answers\?)\s*(?:\r?\n|$)/.test(screenText);
102044
102044
  }
102045
+ function readFocusedClaudeTuiPickerRegion(screenText) {
102046
+ if (!screenText.includes("Enter to select")) return null;
102047
+ const lines = screenText.split(/\r?\n/);
102048
+ let lastFooterIndex = -1;
102049
+ let previousFooterIndex = -1;
102050
+ for (let index = 0; index < lines.length; index += 1) {
102051
+ if (!lines[index].includes("Enter to select")) continue;
102052
+ previousFooterIndex = lastFooterIndex;
102053
+ lastFooterIndex = index;
102054
+ }
102055
+ if (lastFooterIndex < 0) return null;
102056
+ return lines.slice(previousFooterIndex + 1, lastFooterIndex + 1).join("\n");
102057
+ }
102045
102058
  function parseClaudeInteractiveTuiQuestion(page, index) {
102046
- const lines = page.screenText.split(/\r?\n/);
102059
+ const lines = page.screenText.split(/\r?\n/).map((line) => line.replace(/\s+[│┃].*$/, ""));
102047
102060
  let navIndex = -1;
102048
102061
  for (let i = lines.length - 1; i >= 0; i -= 1) {
102049
102062
  if (lines[i].includes("\u2714 Submit") && /[☐☒]/.test(lines[i])) {
@@ -102099,17 +102112,8 @@ ${e?.stderr || ""}`;
102099
102112
  };
102100
102113
  }
102101
102114
  function readFocusedClaudeTuiQuestion(screenText) {
102102
- if (!screenText.includes("Enter to select")) return null;
102103
- const lines = screenText.split(/\r?\n/);
102104
- let lastFooterIndex = -1;
102105
- let previousFooterIndex = -1;
102106
- for (let index = 0; index < lines.length; index += 1) {
102107
- if (!lines[index].includes("Enter to select")) continue;
102108
- previousFooterIndex = lastFooterIndex;
102109
- lastFooterIndex = index;
102110
- }
102111
- if (lastFooterIndex < 0) return null;
102112
- const focusedScreenText = lines.slice(previousFooterIndex + 1, lastFooterIndex + 1).join("\n");
102115
+ const focusedScreenText = readFocusedClaudeTuiPickerRegion(screenText);
102116
+ if (focusedScreenText === null) return null;
102113
102117
  const parsed = parseClaudeInteractiveTuiQuestion({ screenText: focusedScreenText }, 0);
102114
102118
  if (!parsed) return null;
102115
102119
  return {
@@ -124890,7 +124894,8 @@ ${text}` : text;
124890
124894
  }
124891
124895
  claudeTuiQuestionTextAppears(expected, screenText) {
124892
124896
  const expectedQuestion = this.normalizeClaudeTuiIdentity(expected.question);
124893
- return !!expectedQuestion && this.normalizeClaudeTuiIdentity(screenText).includes(expectedQuestion);
124897
+ const focusedPickerRegion = readFocusedClaudeTuiPickerRegion(screenText);
124898
+ return !!expectedQuestion && focusedPickerRegion !== null && this.normalizeClaudeTuiIdentity(focusedPickerRegion).includes(expectedQuestion);
124894
124899
  }
124895
124900
  readClaudeTuiSnapshotForAnswer() {
124896
124901
  try {