mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-04 02:52:55 +08:00
20 lines
651 B
TypeScript
20 lines
651 B
TypeScript
import { defineProviderPlugin } from "cursor-byok:plugin";
|
|
import { antigravityAuthorizationCodeOAuth } 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: [antigravityAuthorizationCodeOAuth],
|
|
import: credentialImport,
|
|
present: presentAccount,
|
|
refresh: refreshAccount,
|
|
}],
|
|
});
|