import { defineProviderPlugin } from "cursor-byok:plugin"; import { antigravityDeviceOAuth } from "./oauth.ts"; import { antigravityProvider } from "./provider.ts"; import { credentialImport, presentAccount, refreshAccount, RESOURCE_TYPE, } from "./resources.ts"; export default defineProviderPlugin({ providers: [antigravityProvider], resources: [{ type: RESOURCE_TYPE, displayName: { "en-US": "Google accounts & API keys", "zh-CN": "Google 账号与 API 密钥", }, add: [antigravityDeviceOAuth], import: credentialImport, present: presentAccount, refresh: refreshAccount, }], });