@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.
@@ -94,9 +94,6 @@ export declare class ProviderCliAdapter implements CliAdapter {
94
94
  private traceSessionId;
95
95
  private static readonly MAX_TRACE_ENTRIES;
96
96
  private readonly providerResolutionMeta;
97
- private static readonly IDLE_FINISH_CONFIRM_MS;
98
- private static readonly HERMES_IDLE_FINISH_CONFIRM_MS;
99
- private static readonly STATUS_ACTIVITY_HOLD_MS;
100
97
  private static readonly FINISH_RETRY_DELAY_MS;
101
98
  private static readonly MAX_FINISH_RETRIES;
102
99
  private syncMessageViews;
@@ -17,6 +17,8 @@ export interface ResolvedCliAdapterConfig {
17
17
  approvalCooldown: number;
18
18
  generatingIdle: number;
19
19
  idleFinish: number;
20
+ idleFinishConfirm: number;
21
+ statusActivityHold: number;
20
22
  maxResponse: number;
21
23
  shutdownGrace: number;
22
24
  outputSettle: number;
@@ -119,6 +119,8 @@ export interface CliProviderModule {
119
119
  approvalCooldown?: number;
120
120
  generatingIdle?: number;
121
121
  idleFinish?: number;
122
+ idleFinishConfirm?: number;
123
+ statusActivityHold?: number;
122
124
  maxResponse?: number;
123
125
  shutdownGrace?: number;
124
126
  outputSettle?: number;
package/dist/index.js CHANGED
@@ -1671,6 +1671,8 @@ function resolveCliAdapterConfig(provider) {
1671
1671
  approvalCooldown: t.approvalCooldown ?? 3e3,
1672
1672
  generatingIdle: t.generatingIdle ?? 6e3,
1673
1673
  idleFinish: t.idleFinish ?? 5e3,
1674
+ idleFinishConfirm: t.idleFinishConfirm ?? 2e3,
1675
+ statusActivityHold: t.statusActivityHold ?? 2e3,
1674
1676
  maxResponse: t.maxResponse ?? 3e5,
1675
1677
  shutdownGrace: t.shutdownGrace ?? 1e3,
1676
1678
  outputSettle: t.outputSettle ?? 300
@@ -1920,9 +1922,6 @@ var init_provider_cli_adapter = __esm({
1920
1922
  traceSessionId = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
1921
1923
  static MAX_TRACE_ENTRIES = 250;
1922
1924
  providerResolutionMeta;
1923
- static IDLE_FINISH_CONFIRM_MS = 2e3;
1924
- static HERMES_IDLE_FINISH_CONFIRM_MS = 5e3;
1925
- static STATUS_ACTIVITY_HOLD_MS = 2e3;
1926
1925
  static FINISH_RETRY_DELAY_MS = 300;
1927
1926
  static MAX_FINISH_RETRIES = 2;
1928
1927
  syncMessageViews() {
@@ -1930,10 +1929,10 @@ var init_provider_cli_adapter = __esm({
1930
1929
  this.structuredMessages = [...this.committedMessages];
1931
1930
  }
1932
1931
  getIdleFinishConfirmMs() {
1933
- return this.cliType === "hermes-cli" ? _ProviderCliAdapter.HERMES_IDLE_FINISH_CONFIRM_MS : _ProviderCliAdapter.IDLE_FINISH_CONFIRM_MS;
1932
+ return this.timeouts.idleFinishConfirm;
1934
1933
  }
1935
1934
  getStatusActivityHoldMs() {
1936
- return this.cliType === "hermes-cli" ? _ProviderCliAdapter.HERMES_IDLE_FINISH_CONFIRM_MS : _ProviderCliAdapter.STATUS_ACTIVITY_HOLD_MS;
1935
+ return this.timeouts.statusActivityHold;
1937
1936
  }
1938
1937
  setStatus(status, trigger) {
1939
1938
  const prev = this.currentStatus;