refactor: manage monitor via gateway hooks
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user