@adhdev/daemon-core 0.8.67 → 0.8.68
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/cli-adapters/provider-cli-adapter.d.ts +0 -3
- package/dist/cli-adapters/provider-cli-config.d.ts +2 -0
- package/dist/cli-adapters/provider-cli-shared.d.ts +2 -0
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -5
- package/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/cli-adapters/provider-cli-adapter.ts +2 -9
- package/src/cli-adapters/provider-cli-config.ts +4 -0
- package/src/cli-adapters/provider-cli-shared.ts +2 -0
package/package.json
CHANGED
|
@@ -184,9 +184,6 @@ export class ProviderCliAdapter implements CliAdapter {
|
|
|
184
184
|
private traceSessionId = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
|
|
185
185
|
private static readonly MAX_TRACE_ENTRIES = 250;
|
|
186
186
|
private readonly providerResolutionMeta: ProviderResolutionMeta;
|
|
187
|
-
private static readonly IDLE_FINISH_CONFIRM_MS = 2000;
|
|
188
|
-
private static readonly HERMES_IDLE_FINISH_CONFIRM_MS = 5000;
|
|
189
|
-
private static readonly STATUS_ACTIVITY_HOLD_MS = 2000;
|
|
190
187
|
private static readonly FINISH_RETRY_DELAY_MS = 300;
|
|
191
188
|
private static readonly MAX_FINISH_RETRIES = 2;
|
|
192
189
|
|
|
@@ -196,15 +193,11 @@ export class ProviderCliAdapter implements CliAdapter {
|
|
|
196
193
|
}
|
|
197
194
|
|
|
198
195
|
private getIdleFinishConfirmMs(): number {
|
|
199
|
-
return this.
|
|
200
|
-
? ProviderCliAdapter.HERMES_IDLE_FINISH_CONFIRM_MS
|
|
201
|
-
: ProviderCliAdapter.IDLE_FINISH_CONFIRM_MS;
|
|
196
|
+
return this.timeouts.idleFinishConfirm;
|
|
202
197
|
}
|
|
203
198
|
|
|
204
199
|
private getStatusActivityHoldMs(): number {
|
|
205
|
-
return this.
|
|
206
|
-
? ProviderCliAdapter.HERMES_IDLE_FINISH_CONFIRM_MS
|
|
207
|
-
: ProviderCliAdapter.STATUS_ACTIVITY_HOLD_MS;
|
|
200
|
+
return this.timeouts.statusActivityHold;
|
|
208
201
|
}
|
|
209
202
|
|
|
210
203
|
private setStatus(status: CliSessionStatus['status'], trigger?: string): void {
|
|
@@ -19,6 +19,8 @@ export interface ResolvedCliAdapterConfig {
|
|
|
19
19
|
approvalCooldown: number;
|
|
20
20
|
generatingIdle: number;
|
|
21
21
|
idleFinish: number;
|
|
22
|
+
idleFinishConfirm: number;
|
|
23
|
+
statusActivityHold: number;
|
|
22
24
|
maxResponse: number;
|
|
23
25
|
shutdownGrace: number;
|
|
24
26
|
outputSettle: number;
|
|
@@ -41,6 +43,8 @@ export function resolveCliAdapterConfig(provider: CliProviderModule): ResolvedCl
|
|
|
41
43
|
approvalCooldown: t.approvalCooldown ?? 3000,
|
|
42
44
|
generatingIdle: t.generatingIdle ?? 6000,
|
|
43
45
|
idleFinish: t.idleFinish ?? 5000,
|
|
46
|
+
idleFinishConfirm: t.idleFinishConfirm ?? 2000,
|
|
47
|
+
statusActivityHold: t.statusActivityHold ?? 2000,
|
|
44
48
|
maxResponse: t.maxResponse ?? 300000,
|
|
45
49
|
shutdownGrace: t.shutdownGrace ?? 1000,
|
|
46
50
|
outputSettle: t.outputSettle ?? 300,
|
|
@@ -123,6 +123,8 @@ export interface CliProviderModule {
|
|
|
123
123
|
approvalCooldown?: number;
|
|
124
124
|
generatingIdle?: number;
|
|
125
125
|
idleFinish?: number;
|
|
126
|
+
idleFinishConfirm?: number;
|
|
127
|
+
statusActivityHold?: number;
|
|
126
128
|
maxResponse?: number;
|
|
127
129
|
shutdownGrace?: number;
|
|
128
130
|
outputSettle?: number;
|