| 1 | /** |
| 2 | * OpenCode's client definition: settings form, label, and glyph. |
| 3 | * Browser- and React Native-safe. |
| 4 | * |
| 5 | * @module provider-opencode/client |
| 6 | */ |
| 7 | import { ProviderDriverKind } from "@t3tools/contracts"; |
| 8 | import { defineProviderClient } from "@t3tools/provider-core/client"; |
| 9 | |
| 10 | import { OpenCodeSettings } from "./settings.ts"; |
| 11 | |
| 12 | export const openCodeClient = defineProviderClient({ |
| 13 | driverKind: ProviderDriverKind.make("opencode"), |
| 14 | label: "OpenCode", |
| 15 | settingsSchema: OpenCodeSettings, |
| 16 | icon: { |
| 17 | viewBox: "0 0 32 40", |
| 18 | fill: { light: "#211E1E", dark: "#F1ECEC" }, |
| 19 | paths: [ |
| 20 | { d: "M24 32H8V16H24V32Z", fill: { light: "#CFCECD", dark: "#4B4646" } }, |
| 21 | { d: "M24 8H8V32H24V8ZM32 40H0V0H32V40Z" }, |
| 22 | ], |
| 23 | }, |
| 24 | }); |