Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

client.ts

31 lines1.3 KB

1import { ProviderDriverKind } from "@t3tools/contracts";
2import { defineProviderClient } from "@t3tools/provider-core/client";
3​
4import { CursorSettings } from "./settings.ts";
5​
6export const cursorClient = defineProviderClient({
7 driverKind: ProviderDriverKind.make("cursor"),
8 label: "Grok Build",
9 modelFamilies: ["Grok "],
10 acpRegistryAgentIds: ["cursor", "grok-build"],
11 settingsSchema: CursorSettings,
12 environmentFields: [
13 {
14 name: "CURSOR_API_KEY",
15 label: "Grok Build API key",
16 description: "Optional. Overrides browser sign-in for this provider.",
17 placeholder: "Paste API key",
18 sensitive: true,
19 },
20 ],
21 icon: {
22 // Cube mark used in the official Grok Build product artwork.
23 viewBox: "0 0 466.73 532.09",
24 fill: { light: "#0F0F0F", dark: "#F5F5F5" },
25 paths: [
26 {
27 d: "M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z",
28 },
29 ],
30 },
31});