@adhdev/daemon-core 0.9.82-rc.226 → 0.9.82-rc.227
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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/sessions/registry.d.ts +3 -0
- package/package.json +1 -1
- package/src/commands/cli-manager.ts +2 -0
- package/src/providers/cli-provider-instance.ts +2 -2
- package/src/sessions/registry.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -30904,7 +30904,7 @@ var CliProviderInstance = class {
|
|
|
30904
30904
|
const latestStatus = this.adapter.getStatus({ allowParse: false });
|
|
30905
30905
|
const latestAutoApproveActive = latestStatus.status === "waiting_approval" && this.shouldAutoApprove();
|
|
30906
30906
|
const externalNativeFinal = this.getExternalNativeFinalReconciliation(void 0, latestStatus);
|
|
30907
|
-
const latestVisibleStatus = externalNativeFinal && isCliGeneratingLikeStatus(latestStatus.status) ? "idle" : latestAutoApproveActive ? "generating" : latestStatus.status;
|
|
30907
|
+
const latestVisibleStatus = externalNativeFinal && isCliGeneratingLikeStatus(latestStatus.status) ? "idle" : latestAutoApproveActive || this.autoApproveBusy ? "generating" : latestStatus.status;
|
|
30908
30908
|
LOG.debug("CLI", `[${this.type}] flush attempt: adapterStatus=${latestStatus.status} latestVisible=${latestVisibleStatus} externalNativeFinal=${!!externalNativeFinal} generatingStartedAt=${this.generatingStartedAt} isWaitingForResponse=${!!this.adapter?.isWaitingForResponse} hasPartial=${!!this.adapter.getPartialResponse?.()}`);
|
|
30909
30909
|
if (latestVisibleStatus !== "idle") {
|
|
30910
30910
|
LOG.info("CLI", `[${this.type}] cancelled pending completed (resumed ${latestVisibleStatus})`);
|
|
@@ -31000,7 +31000,7 @@ var CliProviderInstance = class {
|
|
|
31000
31000
|
this.autoApproveBusy = false;
|
|
31001
31001
|
this.autoApproveBusyTimer = null;
|
|
31002
31002
|
this.lastAutoApprovalSignature = "";
|
|
31003
|
-
},
|
|
31003
|
+
}, 5e3);
|
|
31004
31004
|
this.recordAutoApproval(modal?.message, buttonLabel, now);
|
|
31005
31005
|
setTimeout(() => {
|
|
31006
31006
|
this.adapter.resolveModal(buttonIndex);
|
|
@@ -33381,6 +33381,7 @@ var DaemonCliManager = class {
|
|
|
33381
33381
|
transport: "pty",
|
|
33382
33382
|
adapterKey: key,
|
|
33383
33383
|
instanceKey: key,
|
|
33384
|
+
workspace: resolvedDir,
|
|
33384
33385
|
// attachExisting === true means we're restoring an already-spawned
|
|
33385
33386
|
// hosted runtime after a daemon restart, not starting a fresh PTY.
|
|
33386
33387
|
// The real spawn time is in the past and we don't have it on the
|
|
@@ -33444,7 +33445,8 @@ ${installInfo}`
|
|
|
33444
33445
|
providerType: normalizedType,
|
|
33445
33446
|
transport: "acp",
|
|
33446
33447
|
adapterKey: key,
|
|
33447
|
-
instanceKey: key
|
|
33448
|
+
instanceKey: key,
|
|
33449
|
+
workspace: resolvedDir
|
|
33448
33450
|
});
|
|
33449
33451
|
this.adapters.set(key, {
|
|
33450
33452
|
cliType: normalizedType,
|