diff --git a/src/commands/backup.test.ts b/src/commands/backup.test.ts index 91b16ba946f..004f9d6e418 100644 --- a/src/commands/backup.test.ts +++ b/src/commands/backup.test.ts @@ -214,10 +214,10 @@ describe("backup commands", () => { ); expect(capturedManifest).not.toBeNull(); expect(capturedOnWriteEntry).not.toBeNull(); - const manifest = capturedManifest as { + const manifest = capturedManifest as unknown as { assets: Array<{ kind: string; archivePath: string }>; }; - const onWriteEntry = capturedOnWriteEntry as (entry: { path: string }) => void; + const onWriteEntry = capturedOnWriteEntry as unknown as (entry: { path: string }) => void; expect(manifest.assets).toEqual( expect.arrayContaining([ expect.objectContaining({ kind: "state" }), diff --git a/src/plugins/config-contracts.test.ts b/src/plugins/config-contracts.test.ts index 79edf84e7bc..ffbe69583c0 100644 --- a/src/plugins/config-contracts.test.ts +++ b/src/plugins/config-contracts.test.ts @@ -19,38 +19,7 @@ import { resolvePluginConfigContractsById } from "./config-contracts.js"; function createRegistry(plugins: PluginManifestRegistry["plugins"]): PluginManifestRegistry { return { plugins, - channels: [], - modelProviderConfigs: [], - modelProviderEntries: [], - providerAuthResolvers: [], - providerCatalogProviders: [], - modelCatalogProviders: [], - modelAliasProviders: [], - modelCompatibilityProviders: [], - dynamicModelResolvers: [], - endpointFactories: [], - providerLoaders: [], - providerSetups: [], - onboardingProviders: [], - authChoiceProviders: [], - providerAuthChoiceProviders: [], - providerPromptCachePolicies: [], - providerMetadataProviders: [], - providerPricingResolvers: [], - providerHealthChecks: [], - providerRewriters: [], - providerToolCatalogProviders: [], - builtinToolProviders: [], - skillProviders: [], - slashCommandProviders: [], - installProviders: [], - cliRegistrars: [], - toolProviders: [], - webSearchProviders: [], - webFetchProviders: [], - providerTtsProviders: [], - memoryEmbeddingProviders: [], - custom: [], + diagnostics: [], }; } @@ -71,17 +40,33 @@ describe("resolvePluginConfigContractsById", () => { manifestPath: "/tmp/brave/openclaw.plugin.json", channelConfigs: undefined, providerAuthEnvVars: undefined, - uiHints: undefined, + configUiHints: undefined, configSchema: undefined, configContracts: undefined, contracts: undefined, + name: undefined, + description: undefined, + version: undefined, + enabledByDefault: undefined, + autoEnableWhenConfiguredProviders: undefined, + legacyPluginIds: undefined, + format: undefined, + bundleFormat: undefined, + bundleCapabilities: undefined, kind: undefined, - appSync: undefined, - packageName: undefined, - packageVersion: undefined, - publicSurfaceArtifacts: undefined, - runtimeSidecarArtifacts: undefined, - packageManifest: undefined, + channels: [], + providers: [], + modelSupport: undefined, + cliBackends: [], + channelEnvVars: undefined, + providerAuthChoices: undefined, + skills: [], + settingsFiles: undefined, + hooks: [], + source: "/tmp/brave/openclaw.plugin.json", + setupSource: undefined, + startupDeferConfiguredChannelFullLoadUntilAfterListen: undefined, + channelCatalogMeta: undefined, }, ]), ); diff --git a/src/process/supervisor/supervisor.ts b/src/process/supervisor/supervisor.ts index afa51bd661e..214deaa7a5d 100644 --- a/src/process/supervisor/supervisor.ts +++ b/src/process/supervisor/supervisor.ts @@ -60,7 +60,7 @@ export function createProcessSupervisor(): ProcessSupervisor { const runId = normalizeOptionalString(input.runId) ?? crypto.randomUUID(); const scopeKey = normalizeOptionalString(input.scopeKey); if (input.replaceExistingScope && scopeKey) { - cancelScope(input.scopeKey, "manual-cancel"); + cancelScope(scopeKey, "manual-cancel"); } const startedAtMs = Date.now(); const record: RunRecord = {