| 13 | const api = composePluginApi([toolkitsPlugin(), openApiHttpPlugin()] as const); |
| 14 | |
| 15 | const hiddenPersonalSpec = (baseUrl: string): string => |
| 16 | JSON.stringify({ |
| 17 | openapi: "3.0.3", |
| 18 | info: { title: "Personal Hidden API", version: "1.0.0" }, |
| 19 | servers: [{ url: baseUrl }], |
| 20 | paths: { |
| 21 | "/personal-only": { |
| 22 | get: { |
| 23 | operationId: "personalOnly", |
| 24 | responses: { "200": { description: "Personal-only response" } }, |
| 25 | }, |
| 26 | }, |
| 27 | }, |
| 28 | }); |
| 29 | |
| 30 | scenario( |
| 31 | "Toolkits · self-host UI creates a toolkit and configures tools", |