diff --git a/server/src/__tests__/plugin-orchestration-apis.test.ts b/server/src/__tests__/plugin-orchestration-apis.test.ts index 9409ac02846..71f22c181e1 100644 --- a/server/src/__tests__/plugin-orchestration-apis.test.ts +++ b/server/src/__tests__/plugin-orchestration-apis.test.ts @@ -862,7 +862,14 @@ describeEmbeddedPostgres("plugin orchestration APIs", () => { contextSnapshot: {}, }); - const services = buildHostServices(db, "plugin-record-id", "paperclip.gateway", createEventBusStub()); + const services = buildHostServices( + db, + "plugin-record-id", + "paperclip.gateway", + createEventBusStub(), + undefined, + { heartbeatRuntimeEnv: {} }, + ); const comment = await services.issues.createComment({ issueId, companyId, diff --git a/server/src/services/plugin-host-services.ts b/server/src/services/plugin-host-services.ts index 09f40e250bd..78400a43f56 100644 --- a/server/src/services/plugin-host-services.ts +++ b/server/src/services/plugin-host-services.ts @@ -690,7 +690,11 @@ export function buildHostServices( pluginKey: string, eventBus: PluginEventBus, notifyWorker?: (method: string, params: unknown) => void, - options: { pluginWorkerManager?: PluginWorkerManager; manifest?: import("@paperclipai/shared").PaperclipPluginManifestV1 } = {}, + options: { + pluginWorkerManager?: PluginWorkerManager; + manifest?: import("@paperclipai/shared").PaperclipPluginManifestV1; + heartbeatRuntimeEnv?: Record; + } = {}, ): HostServices & { dispose(): void } { const registry = pluginRegistryService(db); const stateStore = pluginStateStore(db); @@ -730,6 +734,7 @@ export function buildHostServices( }); const heartbeat = heartbeatService(db, { pluginWorkerManager: options.pluginWorkerManager, + runtimeEnv: options.heartbeatRuntimeEnv, }); const projects = projectService(db); const executionWorkspaces = executionWorkspaceService(db);