fix: restore ci after rebase drift

This commit is contained in:
Peter Steinberger
2026-04-07 07:35:55 +01:00
parent 768e606f96
commit 371c4147f3
3 changed files with 27 additions and 42 deletions

View File

@@ -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" }),

View File

@@ -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,
},
]),
);

View File

@@ -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 = {