@adhdev/daemon-core 0.8.67 → 0.8.69

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/session-host-core",
3
- "version": "0.8.67",
3
+ "version": "0.8.69",
4
4
  "description": "ADHDev local session host core \u2014 session registry, protocol, buffers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.8.67",
3
+ "version": "0.8.69",
4
4
  "description": "ADHDev daemon core \u2014 CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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.cliType === 'hermes-cli'
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.cliType === 'hermes-cli'
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;