// ---------------------------------------------------------------------------// @executor-js/plugin-openapi/client — `defineClientPlugin` entry.//// Aggregates the openapi plugin's frontend contributions into a single// declarative spec. The host's Vite plugin reads this via// `virtual:executor/plugins-client`, so the host's integrations page derives// the openapi entry from here without a direct `*/react` import.//// The richer add/edit/summary components still live in `./react`; this// module just imports them and bundles them into the spec.// ---------------------------------------------------------------------------import { defineClientPlugin } from "@executor-js/sdk/client";import { createOpenApiIntegrationPlugin, type OpenApiClientConfig } from "./integration-plugin";export default function createOpenApiClientPlugin(config?: OpenApiClientConfig) { return defineClientPlugin({ id: "openapi" as const, integrationPlugin: createOpenApiIntegrationPlugin(config), });}
// ---------------------------------------------------------------------------
// @executor-js/plugin-openapi/client — `defineClientPlugin` entry.
//
// Aggregates the openapi plugin's frontend contributions into a single
// declarative spec. The host's Vite plugin reads this via
// `virtual:executor/plugins-client`, so the host's integrations page derives
// the openapi entry from here without a direct `*/react` import.
//
// The richer add/edit/summary components still live in `./react`; this
// module just imports them and bundles them into the spec.
// ---------------------------------------------------------------------------
import { defineClientPlugin } from "@executor-js/sdk/client";
import { createOpenApiIntegrationPlugin, type OpenApiClientConfig } from "./integration-plugin";
export default function createOpenApiClientPlugin(config?: OpenApiClientConfig) {
return defineClientPlugin({
id: "openapi" as const,
integrationPlugin: createOpenApiIntegrationPlugin(config),
});
}