refactor: manage monitor via gateway hooks

This commit is contained in:
2026-04-04 00:44:33 +00:00
parent 3b0ea0ad12
commit 038862ef8c
36 changed files with 244 additions and 1932 deletions

View File

@@ -224,7 +224,7 @@ export class CalendarBridgeClient {
// ---------------------------------------------------------------------------
import { hostname } from 'os';
import { getLivePluginConfig, type HarborForgeMonitorConfig } from '../core/live-config';
import { getPluginConfig } from '../core/config';
export interface CalendarPluginConfig {
/** Backend URL for calendar API (overrides monitor backendUrl) */
@@ -249,10 +249,7 @@ export function createCalendarBridgeClient(
fallbackUrl: string,
agentId: string
): CalendarBridgeClient {
const baseConfig = getLivePluginConfig(api, {
backendUrl: fallbackUrl,
identifier: hostname(),
} as HarborForgeMonitorConfig) as HarborForgeMonitorConfig;
const baseConfig = getPluginConfig(api as any);
const clawIdentifier = baseConfig.identifier || hostname();