@adhdev/daemon-core 0.9.82-rc.335 → 0.9.82-rc.336
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 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cli-adapters/provider-cli-adapter.ts +43 -34
package/dist/index.js
CHANGED
|
@@ -316,10 +316,10 @@ function readInjected(value) {
|
|
|
316
316
|
}
|
|
317
317
|
function getDaemonBuildInfo() {
|
|
318
318
|
if (cached) return cached;
|
|
319
|
-
const commit = readInjected(true ? "
|
|
320
|
-
const commitShort = readInjected(true ? "
|
|
321
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
322
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
319
|
+
const commit = readInjected(true ? "40f2025c1de385e59792869a793811db906f4f91" : void 0) ?? "unknown";
|
|
320
|
+
const commitShort = readInjected(true ? "40f2025c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
321
|
+
const version = readInjected(true ? "0.9.82-rc.336" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
322
|
+
const builtAt = readInjected(true ? "2026-06-20T06:32:36.100Z" : void 0);
|
|
323
323
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
324
324
|
return cached;
|
|
325
325
|
}
|
|
@@ -15128,7 +15128,7 @@ function appendBoundedText(current, chunk, maxChars) {
|
|
|
15128
15128
|
if (current.length <= keepFromCurrent) return current + chunk;
|
|
15129
15129
|
return current.slice(-keepFromCurrent) + chunk;
|
|
15130
15130
|
}
|
|
15131
|
-
var os14, import_session_host_core5, FORCE_SUBMIT_SETTLE_MS,
|
|
15131
|
+
var os14, import_session_host_core5, FORCE_SUBMIT_SETTLE_MS, ProviderCliAdapter;
|
|
15132
15132
|
var init_provider_cli_adapter = __esm({
|
|
15133
15133
|
"src/cli-adapters/provider-cli-adapter.ts"() {
|
|
15134
15134
|
"use strict";
|
|
@@ -15146,8 +15146,6 @@ var init_provider_cli_adapter = __esm({
|
|
|
15146
15146
|
init_provider_cli_runtime();
|
|
15147
15147
|
init_provider_cli_shared();
|
|
15148
15148
|
FORCE_SUBMIT_SETTLE_MS = 150;
|
|
15149
|
-
FORCE_SUBMIT_MAX_WAIT_MS = 1500;
|
|
15150
|
-
FORCE_SUBMIT_POLL_MS = 50;
|
|
15151
15149
|
ProviderCliAdapter = class _ProviderCliAdapter {
|
|
15152
15150
|
constructor(provider, workingDir, extraArgs = [], extraEnv = {}, transportFactory = new NodePtyTransportFactory()) {
|
|
15153
15151
|
this.extraArgs = extraArgs;
|
|
@@ -16076,22 +16074,12 @@ ${lastSnapshot}`;
|
|
|
16076
16074
|
return;
|
|
16077
16075
|
}
|
|
16078
16076
|
LOG.info("CLI", `[${this.cliType}] force-sending prompt while status=${this.engine.currentStatus}`);
|
|
16079
|
-
await this.
|
|
16080
|
-
await this.
|
|
16081
|
-
await this.writeToPty(this.sendKey);
|
|
16077
|
+
await this.waitForForceSubmitSettle();
|
|
16078
|
+
await this.writeToPty(content + this.sendKey);
|
|
16082
16079
|
this.onStatusChange?.();
|
|
16083
16080
|
}
|
|
16084
|
-
async waitForForceSubmitSettle(
|
|
16085
|
-
const startedAt = Date.now();
|
|
16086
|
-
const normalizedPromptSnippet = normalizePromptText(extractPromptRetrySnippet(content));
|
|
16081
|
+
async waitForForceSubmitSettle() {
|
|
16087
16082
|
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_SETTLE_MS));
|
|
16088
|
-
if (!normalizedPromptSnippet) return;
|
|
16089
|
-
while (Date.now() - startedAt < FORCE_SUBMIT_MAX_WAIT_MS) {
|
|
16090
|
-
if (!this.ptyProcess) return;
|
|
16091
|
-
const screenText = this.terminalScreen.getText();
|
|
16092
|
-
if (promptLikelyVisible(screenText, normalizedPromptSnippet)) return;
|
|
16093
|
-
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_POLL_MS));
|
|
16094
|
-
}
|
|
16095
16083
|
}
|
|
16096
16084
|
enqueuePendingOutboundMessage(text, reason) {
|
|
16097
16085
|
const content = String(text || "");
|