Upgrade adapter-utils to canary with getConfigSchema type support

The UI wasn't surfacing config parameters because getConfigSchema wasn't
part of the ServerAdapterModule interface in adapter-utils >=0.3.0. The
canary release (2026.411.0-canary.8) adds ConfigFieldSchema,
AdapterConfigSchema, and getConfigSchema to the type. This removes the
local type augmentation workaround and the unsafe `as ServerAdapterModule`
cast, letting TypeScript properly validate the schema contract.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-04-12 14:58:07 +00:00
parent a7b42da7a0
commit faa5f09984
4 changed files with 14 additions and 29 deletions
+1 -17
View File
@@ -1,20 +1,4 @@
// Local type augmentation for adapter-utils version that has getConfigSchema.
// The deployed environment has a newer version of adapter-utils with these types.
interface ConfigFieldSchema {
key: string;
label: string;
type: "text" | "select" | "toggle" | "number" | "textarea" | "combobox";
options?: { label: string; value: string }[];
default?: unknown;
hint?: string;
required?: boolean;
group?: string;
meta?: Record<string, unknown>;
}
interface AdapterConfigSchema {
fields: ConfigFieldSchema[];
}
import type { AdapterConfigSchema } from "@paperclipai/adapter-utils";
export function getConfigSchema(): AdapterConfigSchema {
return {
+1 -1
View File
@@ -15,7 +15,7 @@ export function createServerAdapter(): ServerAdapterModule {
supportsLocalAgentJwt: true,
agentConfigurationDoc,
getConfigSchema,
} as ServerAdapterModule;
};
}
export { execute, testEnvironment, sessionCodec };