mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
7975432eb5
* fix(onboard): enable Runway and Alibaba video provider authentication * perf(ui): load image lightbox only when opening images * perf(ui): defer onboarding memory import outside setup
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
// Runway plugin entrypoint registers its OpenClaw integration.
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
import { buildRunwayVideoGenerationProvider } from "./video-generation-provider.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "runway",
|
|
name: "Runway Provider",
|
|
description: "Bundled Runway video provider plugin",
|
|
register(api) {
|
|
api.registerProvider({
|
|
id: "runway",
|
|
label: "Runway",
|
|
docsPath: "/providers/runway",
|
|
envVars: ["RUNWAYML_API_SECRET", "RUNWAY_API_KEY"],
|
|
auth: [
|
|
createProviderApiKeyAuthMethod({
|
|
providerId: "runway",
|
|
methodId: "api-key",
|
|
label: "Runway API key",
|
|
optionKey: "runwayApiKey",
|
|
flagName: "--runway-api-key",
|
|
envVar: "RUNWAYML_API_SECRET",
|
|
promptMessage: "Enter Runway API key",
|
|
wizard: {
|
|
choiceId: "runway-api-key",
|
|
choiceLabel: "Runway API key",
|
|
groupId: "runway",
|
|
groupLabel: "Runway",
|
|
groupHint: "API key",
|
|
onboardingScopes: ["image-generation"],
|
|
},
|
|
}),
|
|
],
|
|
});
|
|
api.registerVideoGenerationProvider(buildRunwayVideoGenerationProvider());
|
|
},
|
|
});
|