@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.
- package/dist/cli-adapters/cli-state-engine.d.ts +9 -0
- package/dist/config/config.d.ts +5 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +255 -140
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +218 -109
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/coordinator-registry.d.ts +25 -0
- package/dist/shared-types.d.ts +5 -0
- package/package.json +1 -1
- package/src/boot/daemon-lifecycle.ts +2 -0
- package/src/cli-adapters/cli-state-engine.ts +41 -12
- package/src/cli-adapters/provider-cli-adapter.ts +15 -13
- package/src/commands/cli-manager.ts +4 -0
- package/src/commands/router.ts +13 -4
- package/src/config/config.ts +12 -0
- package/src/index.ts +3 -1
- package/src/mesh/coordinator-registry.ts +75 -0
- package/src/providers/cli-provider-instance.ts +19 -2
- package/src/shared-types.ts +2 -0
- package/src/status/builders.ts +23 -6
|
@@ -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;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -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';
|