mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-10 01:42:44 +08:00
25 lines
638 B
TypeScript
25 lines
638 B
TypeScript
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,
|
|
}],
|
|
});
|