@adhdev/daemon-standalone 0.9.23 → 0.9.25
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 +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-CCt9RFKL.css +1 -0
- package/public/assets/{index-CO9PvKP8.js → index-DaZ-j9ka.js} +26 -26
- package/public/index.html +2 -2
- package/vendor/session-host-daemon/index.js +6 -4
- package/vendor/session-host-daemon/index.js.map +1 -1
- package/vendor/session-host-daemon/index.mjs +6 -4
- package/vendor/session-host-daemon/index.mjs.map +1 -1
- package/public/assets/index-C-TSgji3.css +0 -1
package/dist/index.js
CHANGED
|
@@ -31839,8 +31839,10 @@ var require_dist2 = __commonJS({
|
|
|
31839
31839
|
if (buttonIndex in this.approvalKeys) {
|
|
31840
31840
|
this.ptyProcess.write(this.approvalKeys[buttonIndex]);
|
|
31841
31841
|
} else {
|
|
31842
|
+
const buttonCount = Array.isArray(modal?.buttons) ? modal.buttons.length : 0;
|
|
31843
|
+
const clampedIndex = buttonCount > 0 ? Math.min(Math.max(0, buttonIndex), buttonCount - 1) : Math.max(0, buttonIndex);
|
|
31842
31844
|
const DOWN = "\x1B[B";
|
|
31843
|
-
const keys = DOWN.repeat(
|
|
31845
|
+
const keys = DOWN.repeat(clampedIndex) + "\r";
|
|
31844
31846
|
this.ptyProcess.write(keys);
|
|
31845
31847
|
}
|
|
31846
31848
|
}
|
|
@@ -40157,6 +40159,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40157
40159
|
return { success: true, ...state };
|
|
40158
40160
|
}
|
|
40159
40161
|
var COMMAND_DEBUG_LEVELS = /* @__PURE__ */ new Set([
|
|
40162
|
+
"read_chat",
|
|
40160
40163
|
"pty_input",
|
|
40161
40164
|
"pty_resize",
|
|
40162
40165
|
"cdp_eval",
|
|
@@ -46286,6 +46289,9 @@ Run 'adhdev doctor' for detailed diagnostics.`
|
|
|
46286
46289
|
if (logs.length > 0) {
|
|
46287
46290
|
return { success: true, logs, totalBuffered: logs.length };
|
|
46288
46291
|
}
|
|
46292
|
+
if (sinceTs > 0) {
|
|
46293
|
+
return { success: true, logs: [], totalBuffered: 0 };
|
|
46294
|
+
}
|
|
46289
46295
|
if (fs9.existsSync(LOG_PATH)) {
|
|
46290
46296
|
const content = fs9.readFileSync(LOG_PATH, "utf-8");
|
|
46291
46297
|
const allLines = content.split("\n");
|
|
@@ -54014,8 +54020,8 @@ data: ${JSON.stringify(msg.data)}
|
|
|
54014
54020
|
}
|
|
54015
54021
|
try {
|
|
54016
54022
|
await this.client.close();
|
|
54017
|
-
} catch {
|
|
54018
|
-
if (destroy) throw new Error(`Failed to close session host client: ${this.options.runtimeId}`);
|
|
54023
|
+
} catch (err) {
|
|
54024
|
+
if (destroy) throw err instanceof Error ? err : new Error(`Failed to close session host client: ${this.options.runtimeId}`);
|
|
54019
54025
|
}
|
|
54020
54026
|
}
|
|
54021
54027
|
};
|