mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-06 21:52:51 +08:00
feat(desktop): add plugin resource actions
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import { defineProviderPlugin } from "cursor-byok:plugin";
|
||||
import { codexDeviceOAuth } from "./oauth.ts";
|
||||
import { codexProvider } from "./provider.ts";
|
||||
import { credentialImport, presentAccount, refreshAccount, RESOURCE_TYPE } from "./resources.ts";
|
||||
import {
|
||||
credentialImport,
|
||||
consumeResetCardAction,
|
||||
listResetCardsAction,
|
||||
presentAccount,
|
||||
refreshAccount,
|
||||
RESOURCE_TYPE,
|
||||
} from "./resources.ts";
|
||||
|
||||
export default defineProviderPlugin({
|
||||
providers: [codexProvider],
|
||||
@@ -11,6 +18,7 @@ export default defineProviderPlugin({
|
||||
add: [codexDeviceOAuth],
|
||||
import: credentialImport,
|
||||
present: presentAccount,
|
||||
actions: [listResetCardsAction, consumeResetCardAction],
|
||||
refresh: refreshAccount,
|
||||
}],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user