@adhdev/daemon-standalone 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.js +25 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30036,10 +30036,10 @@ var require_dist3 = __commonJS({
|
|
|
30036
30036
|
}
|
|
30037
30037
|
function getDaemonBuildInfo() {
|
|
30038
30038
|
if (cached2) return cached2;
|
|
30039
|
-
const commit = readInjected(true ? "
|
|
30040
|
-
const commitShort = readInjected(true ? "
|
|
30041
|
-
const version2 = readInjected(true ? "0.9.82-rc.
|
|
30042
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
30039
|
+
const commit = readInjected(true ? "e9e62c9770c0f4a419a90f5287125f3d3bb0fd95" : void 0) ?? "unknown";
|
|
30040
|
+
const commitShort = readInjected(true ? "e9e62c97" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30041
|
+
const version2 = readInjected(true ? "0.9.82-rc.335" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30042
|
+
const builtAt = readInjected(true ? "2026-06-20T04:31:22.998Z" : void 0);
|
|
30043
30043
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30044
30044
|
return cached2;
|
|
30045
30045
|
}
|
|
@@ -44922,6 +44922,9 @@ ${cont}` : cont;
|
|
|
44922
44922
|
}
|
|
44923
44923
|
var os14;
|
|
44924
44924
|
var import_session_host_core5;
|
|
44925
|
+
var FORCE_SUBMIT_SETTLE_MS;
|
|
44926
|
+
var FORCE_SUBMIT_MAX_WAIT_MS;
|
|
44927
|
+
var FORCE_SUBMIT_POLL_MS;
|
|
44925
44928
|
var ProviderCliAdapter;
|
|
44926
44929
|
var init_provider_cli_adapter = __esm2({
|
|
44927
44930
|
"src/cli-adapters/provider-cli-adapter.ts"() {
|
|
@@ -44939,6 +44942,9 @@ ${cont}` : cont;
|
|
|
44939
44942
|
init_provider_cli_config();
|
|
44940
44943
|
init_provider_cli_runtime();
|
|
44941
44944
|
init_provider_cli_shared();
|
|
44945
|
+
FORCE_SUBMIT_SETTLE_MS = 150;
|
|
44946
|
+
FORCE_SUBMIT_MAX_WAIT_MS = 1500;
|
|
44947
|
+
FORCE_SUBMIT_POLL_MS = 50;
|
|
44942
44948
|
ProviderCliAdapter = class _ProviderCliAdapter {
|
|
44943
44949
|
constructor(provider, workingDir, extraArgs = [], extraEnv = {}, transportFactory = new NodePtyTransportFactory()) {
|
|
44944
44950
|
this.extraArgs = extraArgs;
|
|
@@ -45867,9 +45873,23 @@ ${lastSnapshot}`;
|
|
|
45867
45873
|
return;
|
|
45868
45874
|
}
|
|
45869
45875
|
LOG2.info("CLI", `[${this.cliType}] force-sending prompt while status=${this.engine.currentStatus}`);
|
|
45870
|
-
await this.writeToPty(content
|
|
45876
|
+
await this.writeToPty(content);
|
|
45877
|
+
await this.waitForForceSubmitSettle(content);
|
|
45878
|
+
await this.writeToPty(this.sendKey);
|
|
45871
45879
|
this.onStatusChange?.();
|
|
45872
45880
|
}
|
|
45881
|
+
async waitForForceSubmitSettle(content) {
|
|
45882
|
+
const startedAt = Date.now();
|
|
45883
|
+
const normalizedPromptSnippet = normalizePromptText(extractPromptRetrySnippet(content));
|
|
45884
|
+
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_SETTLE_MS));
|
|
45885
|
+
if (!normalizedPromptSnippet) return;
|
|
45886
|
+
while (Date.now() - startedAt < FORCE_SUBMIT_MAX_WAIT_MS) {
|
|
45887
|
+
if (!this.ptyProcess) return;
|
|
45888
|
+
const screenText = this.terminalScreen.getText();
|
|
45889
|
+
if (promptLikelyVisible(screenText, normalizedPromptSnippet)) return;
|
|
45890
|
+
await new Promise((resolve24) => setTimeout(resolve24, FORCE_SUBMIT_POLL_MS));
|
|
45891
|
+
}
|
|
45892
|
+
}
|
|
45873
45893
|
enqueuePendingOutboundMessage(text, reason) {
|
|
45874
45894
|
const content = String(text || "");
|
|
45875
45895
|
const duplicate = this.pendingOutboundQueue.some((message2) => message2.content === content);
|