@adhdev/daemon-core 0.9.82-rc.139 → 0.9.82-rc.140

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.
@@ -64,6 +64,15 @@ export declare class CliStateEngine {
64
64
  } | null;
65
65
  lastApprovalResolvedAt: number;
66
66
  lastResolvedModalMessage: string;
67
+ /**
68
+ * When the engine previously held a modal but the latest parse failed
69
+ * to extract one, we record the timestamp here and only drop the modal
70
+ * after the configured `approvalCooldown` to avoid flapping between
71
+ * waiting_approval and generating on every Claude TUI redraw — that
72
+ * flapping is what fed auto-approve a fresh modal signature on each
73
+ * paint and made the engine type "1" repeatedly into the prompt.
74
+ */
75
+ modalLostAt: number;
67
76
  private approvalExitTimeout;
68
77
  responseEpoch: number;
69
78
  submitPendingUntil: number;
@@ -86,6 +86,11 @@ export declare function isStableMachineId(machineId?: string | null): boolean;
86
86
  * Get the config directory path
87
87
  */
88
88
  export declare function getConfigDir(): string;
89
+ /**
90
+ * Get the daemon runtime data directory (~/.adhdev/daemon/).
91
+ * Distinct from the user-config dir so runtime state can be cleared independently.
92
+ */
93
+ export declare function getDaemonDataDir(): string;
89
94
  /**
90
95
  * Load configuration from disk
91
96
  */
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export type { SessionHostEndpoint } from '@adhdev/session-host-core';
20
20
  export type SessionStatus = 'idle' | 'generating' | 'waiting_approval' | 'error' | 'stopped' | 'starting' | 'panel_hidden' | 'not_monitored' | 'disconnected';
21
21
  export type RecentSessionBucket = 'needs_attention' | 'working' | 'task_complete' | 'idle';
22
22
  export type { IDaemonCore, DaemonCoreOptions } from './daemon-core.js';
23
- export { loadConfig, saveConfig, resetConfig, isSetupComplete, markSetupComplete, updateConfig } from './config/config.js';
23
+ export { loadConfig, saveConfig, resetConfig, isSetupComplete, markSetupComplete, updateConfig, getDaemonDataDir } from './config/config.js';
24
24
  export { getWorkspaceState } from './config/workspaces.js';
25
25
  export { appendRecentActivity, getRecentActivity } from './config/recent-activity.js';
26
26
  export type { RecentActivityEntry } from './config/recent-activity.js';
@@ -30,6 +30,8 @@ export { listMeshes, getMesh, getMeshByRepo, createMesh, updateMesh, deleteMesh,
30
30
  export type { CreateMeshOptions, UpdateMeshOptions, AddNodeOptions } from './config/mesh-config.js';
31
31
  export { buildCoordinatorSystemPrompt } from './mesh/coordinator-prompt.js';
32
32
  export type { CoordinatorPromptContext } from './mesh/coordinator-prompt.js';
33
+ export { loadMeshCoordinatorRegistry, registerMeshCoordinator, unregisterMeshCoordinator, getCoordinatorForSession, listCoordinatorsForWorkspace } from './mesh/coordinator-registry.js';
34
+ export type { CoordinatorRegistryEntry } from './mesh/coordinator-registry.js';
33
35
  export { MESH_REFINE_CONFIG_LOCATIONS, MESH_REFINE_CONFIG_SCHEMA, loadMeshRefineConfig, resolveMeshRefineValidationPlan, suggestMeshRefineConfig, validateMeshRefineConfig, } from './mesh/refine-config.js';
34
36
  export { MESH_WORKTREE_BOOTSTRAP_CONFIG_LOCATIONS, MESH_WORKTREE_BOOTSTRAP_CONFIG_SCHEMA, loadMeshWorktreeBootstrapConfig, runMeshWorktreeBootstrap, validateMeshWorktreeBootstrapConfig, type RepoMeshWorktreeBootstrapConfig, type WorktreeBootstrapState, } from './mesh/worktree-bootstrap-config.js';
35
37
  export type { MeshRefineValidationCategory, MeshRefineValidationCommandPlan, MeshRefineValidationPlan, RepoMeshRefineConfig, RepoMeshRefineValidationCommandConfig, } from './mesh/refine-config.js';