@adhdev/daemon-core 0.9.82-rc.334 → 0.9.82-rc.335
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.mjs
CHANGED
|
@@ -311,10 +311,10 @@ function readInjected(value) {
|
|
|
311
311
|
}
|
|
312
312
|
function getDaemonBuildInfo() {
|
|
313
313
|
if (cached) return cached;
|
|
314
|
-
const commit = readInjected(true ? "
|
|
315
|
-
const commitShort = readInjected(true ? "
|
|
316
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
317
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
314
|
+
const commit = readInjected(true ? "e9e62c9770c0f4a419a90f5287125f3d3bb0fd95" : void 0) ?? "unknown";
|
|
315
|
+
const commitShort = readInjected(true ? "e9e62c97" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
316
|
+
const version = readInjected(true ? "0.9.82-rc.335" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
317
|
+
const builtAt = readInjected(true ? "2026-06-20T04:30:54.863Z" : void 0);
|
|
318
318
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
319
319
|
return cached;
|
|
320
320
|
}
|
|
@@ -15125,7 +15125,7 @@ function appendBoundedText(current, chunk, maxChars) {
|
|
|
15125
15125
|
if (current.length <= keepFromCurrent) return current + chunk;
|
|
15126
15126
|
return current.slice(-keepFromCurrent) + chunk;
|
|
15127
15127
|
}
|
|
15128
|
-
var ProviderCliAdapter;
|
|
15128
|
+
var FORCE_SUBMIT_SETTLE_MS, FORCE_SUBMIT_MAX_WAIT_MS, FORCE_SUBMIT_POLL_MS, ProviderCliAdapter;
|
|
15129
15129
|
var init_provider_cli_adapter = __esm({
|
|
15130
15130
|
"src/cli-adapters/provider-cli-adapter.ts"() {
|
|
15131
15131
|
"use strict";
|
|
@@ -15140,6 +15140,9 @@ var init_provider_cli_adapter = __esm({
|
|
|
15140
15140
|
init_provider_cli_config();
|
|
15141
15141
|
init_provider_cli_runtime();
|
|
15142
15142
|
init_provider_cli_shared();
|
|
15143
|
+
FORCE_SUBMIT_SETTLE_MS = 150;
|
|
15144
|
+
FORCE_SUBMIT_MAX_WAIT_MS = 1500;
|
|
15145
|
+
FORCE_SUBMIT_POLL_MS = 50;
|
|
15143
15146
|
ProviderCliAdapter = class _ProviderCliAdapter {
|
|
15144
15147
|
constructor(provider, workingDir, extraArgs = [], extraEnv = {}, transportFactory = new NodePtyTransportFactory()) {
|
|
15145
15148
|
this.extraArgs = extraArgs;
|
|
@@ -16068,9 +16071,23 @@ ${lastSnapshot}`;
|
|
|
16068
16071
|
return;
|
|
16069
16072
|
}
|
|
16070
16073
|
LOG.info("CLI", `[${this.cliType}] force-sending prompt while status=${this.engine.currentStatus}`);
|
|
16071
|
-
await this.writeToPty(content
|
|
16074
|
+
await this.writeToPty(content);
|
|
16075
|
+
await this.waitForForceSubmitSettle(content);
|
|
16076
|
+
await this.writeToPty(this.sendKey);
|
|
16072
16077
|
this.onStatusChange?.();
|
|
16073
16078
|
}
|
|
16079
|
+
async waitForForceSubmitSettle(content) {
|
|
16080
|
+
const startedAt = Date.now();
|
|
16081
|
+
const normalizedPromptSnippet = normalizePromptText(extractPromptRetrySnippet(content));
|
|
16082
|
+
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_SETTLE_MS));
|
|
16083
|
+
if (!normalizedPromptSnippet) return;
|
|
16084
|
+
while (Date.now() - startedAt < FORCE_SUBMIT_MAX_WAIT_MS) {
|
|
16085
|
+
if (!this.ptyProcess) return;
|
|
16086
|
+
const screenText = this.terminalScreen.getText();
|
|
16087
|
+
if (promptLikelyVisible(screenText, normalizedPromptSnippet)) return;
|
|
16088
|
+
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_POLL_MS));
|
|
16089
|
+
}
|
|
16090
|
+
}
|
|
16074
16091
|
enqueuePendingOutboundMessage(text, reason) {
|
|
16075
16092
|
const content = String(text || "");
|
|
16076
16093
|
const duplicate = this.pendingOutboundQueue.some((message2) => message2.content === content);
|