diff --git a/src/hub/hub-client.ts b/src/hub/hub-client.ts index 920e7c9..c02a212 100644 --- a/src/hub/hub-client.ts +++ b/src/hub/hub-client.ts @@ -23,6 +23,8 @@ export interface HubClient { projects?: Array<{ name: string; path: string; discovered?: boolean; remote?: string }>; activeRunIds: string[]; daemonVersion: string; + agentsDefault?: string; + projectsDefault?: string; } ) => Promise<{ pendingCommands: unknown[]; diff --git a/src/hub/hub-sync.test.ts b/src/hub/hub-sync.test.ts index 76b2c63..054c45a 100644 --- a/src/hub/hub-sync.test.ts +++ b/src/hub/hub-sync.test.ts @@ -227,6 +227,8 @@ describe('hub-sync', () => { ], activeRunIds: ['run-1'], daemonVersion: '0.7.1', + agentsDefault: '/tmp/agents', + projectsDefault: '/tmp/projects', }); }); diff --git a/src/hub/hub-sync.ts b/src/hub/hub-sync.ts index a32787f..032cb51 100644 --- a/src/hub/hub-sync.ts +++ b/src/hub/hub-sync.ts @@ -76,6 +76,8 @@ export const createHubSync = (): HubSync => { const sendHeartbeat = async (auth: AuthState): Promise => { if (!hubClient) return; + const config = loadConfig(); + const agents = getAgents().map((a) => ({ name: a.manifest.name, description: a.manifest.description, @@ -103,6 +105,8 @@ export const createHubSync = (): HubSync => { projects, activeRunIds, daemonVersion: VERSION, + agentsDefault: config.agents.default, + projectsDefault: config.projects.default, }); // Reconcile local cron registry against the authoritative bindings