@adhdev/daemon-core 0.9.82-rc.334 → 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.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 ? "40f2025c1de385e59792869a793811db906f4f91" : void 0) ?? "unknown";
|
|
315
|
+
const commitShort = readInjected(true ? "40f2025c" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
316
|
+
const version = readInjected(true ? "0.9.82-rc.336" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
317
|
+
const builtAt = readInjected(true ? "2026-06-20T06:32:36.100Z" : 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, 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,7 @@ 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;
|
|
15143
15144
|
ProviderCliAdapter = class _ProviderCliAdapter {
|
|
15144
15145
|
constructor(provider, workingDir, extraArgs = [], extraEnv = {}, transportFactory = new NodePtyTransportFactory()) {
|
|
15145
15146
|
this.extraArgs = extraArgs;
|
|
@@ -16068,9 +16069,13 @@ ${lastSnapshot}`;
|
|
|
16068
16069
|
return;
|
|
16069
16070
|
}
|
|
16070
16071
|
LOG.info("CLI", `[${this.cliType}] force-sending prompt while status=${this.engine.currentStatus}`);
|
|
16072
|
+
await this.waitForForceSubmitSettle();
|
|
16071
16073
|
await this.writeToPty(content + this.sendKey);
|
|
16072
16074
|
this.onStatusChange?.();
|
|
16073
16075
|
}
|
|
16076
|
+
async waitForForceSubmitSettle() {
|
|
16077
|
+
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_SETTLE_MS));
|
|
16078
|
+
}
|
|
16074
16079
|
enqueuePendingOutboundMessage(text, reason) {
|
|
16075
16080
|
const content = String(text || "");
|
|
16076
16081
|
const duplicate = this.pendingOutboundQueue.some((message2) => message2.content === content);
|