@adhdev/daemon-standalone 0.9.9 → 0.9.11
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 +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-BbUILAkr.js +76 -0
- package/public/index.html +1 -1
- package/public/assets/index-Ba7wraKN.js +0 -76
package/dist/index.js
CHANGED
|
@@ -30076,7 +30076,7 @@ var require_dist2 = __commonJS({
|
|
|
30076
30076
|
sendDelayMs;
|
|
30077
30077
|
sendKey;
|
|
30078
30078
|
submitStrategy;
|
|
30079
|
-
static SCRIPT_STATUS_DEBOUNCE_MS =
|
|
30079
|
+
static SCRIPT_STATUS_DEBOUNCE_MS = 3e3;
|
|
30080
30080
|
/** Inject CLI scripts after construction (e.g. when resolved by ProviderLoader) */
|
|
30081
30081
|
setCliScripts(scripts) {
|
|
30082
30082
|
this.cliScripts = scripts;
|
|
@@ -37855,6 +37855,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
37855
37855
|
}
|
|
37856
37856
|
init_chat_message_normalization();
|
|
37857
37857
|
var RECENT_SEND_WINDOW_MS = 1200;
|
|
37858
|
+
var READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS = 25e3;
|
|
37858
37859
|
var recentSendByTarget = /* @__PURE__ */ new Map();
|
|
37859
37860
|
function getCurrentProviderType(h, fallback = "") {
|
|
37860
37861
|
return h.currentSession?.providerType || h.currentProviderType || fallback;
|
|
@@ -38148,7 +38149,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
38148
38149
|
}
|
|
38149
38150
|
async function readExtensionChatState(h) {
|
|
38150
38151
|
try {
|
|
38151
|
-
const evalResult = await h.evaluateProviderScript("readChat", void 0,
|
|
38152
|
+
const evalResult = await h.evaluateProviderScript("readChat", void 0, READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS);
|
|
38152
38153
|
if (!evalResult?.result) return null;
|
|
38153
38154
|
const parsed = parseMaybeJson(evalResult.result);
|
|
38154
38155
|
return parsed && typeof parsed === "object" ? parsed : null;
|
|
@@ -38236,7 +38237,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
38236
38237
|
const title = typeof parsedRecord?.title === "string" ? parsedRecord.title : void 0;
|
|
38237
38238
|
const providerSessionId = typeof parsedRecord?.providerSessionId === "string" ? parsedRecord.providerSessionId : void 0;
|
|
38238
38239
|
if (status) {
|
|
38239
|
-
LOG2.
|
|
38240
|
+
LOG2.debug("Command", `[read_chat] cli-like resolved provider=${adapter.cliType} target=${String(args?.targetSessionId || "")} adapterStatus=${String(adapterStatus.status || "")} parsedStatus=${String(parsedRecord?.status || "")} shouldPreferAdapterMessages=${String(shouldPreferAdapterMessages)} adapterMsgCount=${Array.isArray(adapterStatus.messages) ? adapterStatus.messages.length : 0} parsedMsgCount=${Array.isArray(parsedRecord?.messages) ? parsedRecord.messages.length : 0} returnedMsgCount=${Array.isArray(status.messages) ? status.messages.length : 0}`);
|
|
38240
38241
|
return buildReadChatCommandResult({
|
|
38241
38242
|
messages: status.messages || [],
|
|
38242
38243
|
status: status.status,
|
|
@@ -38261,7 +38262,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
38261
38262
|
}
|
|
38262
38263
|
if (isExtensionTransport(transport)) {
|
|
38263
38264
|
try {
|
|
38264
|
-
const evalResult = await h.evaluateProviderScript("readChat", void 0,
|
|
38265
|
+
const evalResult = await h.evaluateProviderScript("readChat", void 0, READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS);
|
|
38265
38266
|
if (evalResult?.result) {
|
|
38266
38267
|
let parsed = evalResult.result;
|
|
38267
38268
|
if (typeof parsed === "string") {
|
|
@@ -38365,7 +38366,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
38365
38366
|
const script = h.getProviderScript("readChat") || h.getProviderScript("read_chat");
|
|
38366
38367
|
if (script) {
|
|
38367
38368
|
try {
|
|
38368
|
-
const evalResult = await h.evaluateProviderScript("readChat", void 0,
|
|
38369
|
+
const evalResult = await h.evaluateProviderScript("readChat", void 0, READ_CHAT_PROVIDER_EVAL_TIMEOUT_MS);
|
|
38369
38370
|
if (evalResult?.result) {
|
|
38370
38371
|
let parsed = evalResult.result;
|
|
38371
38372
|
if (typeof parsed === "string") {
|
|
@@ -40925,7 +40926,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40925
40926
|
this.generatingDebouncePending = null;
|
|
40926
40927
|
}
|
|
40927
40928
|
this.generatingDebounceTimer = null;
|
|
40928
|
-
},
|
|
40929
|
+
}, 3e3);
|
|
40929
40930
|
} else if (newStatus === "waiting_approval") {
|
|
40930
40931
|
this.suppressIdleHistoryReplay = false;
|
|
40931
40932
|
if (this.generatingDebouncePending) {
|
|
@@ -40981,7 +40982,7 @@ ${effect.notification.body || ""}`.trim();
|
|
|
40981
40982
|
this.generatingStartedAt = 0;
|
|
40982
40983
|
}
|
|
40983
40984
|
this.completedDebounceTimer = null;
|
|
40984
|
-
},
|
|
40985
|
+
}, 3e3);
|
|
40985
40986
|
}
|
|
40986
40987
|
} else if (newStatus === "stopped") {
|
|
40987
40988
|
if (this.generatingDebounceTimer) {
|