Skip to content

Commit 1f29c18

Browse files
committed
fix: build
1 parent 2acd922 commit 1f29c18

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const CURSOR_PLUGIN_ID = "@playwo/opencode-cursor-oauth" as const;
2+
13
export const CURSOR_PROVIDER_ID = "cursor" as const;
24

35
export const OPENCODE_TITLE_REQUEST_MARKER =

src/plugin/cursor-auth-plugin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
pollCursorAuth,
1212
refreshCursorToken,
1313
} from "../auth";
14-
import { CURSOR_PROVIDER_ID } from "../constants";
14+
import { CURSOR_PLUGIN_ID, CURSOR_PROVIDER_ID } from "../constants";
1515
import {
1616
configurePluginLogger,
1717
errorDetails,
@@ -28,7 +28,6 @@ import {
2828
import { startProxy, stopProxy } from "../proxy";
2929

3030
let lastModelDiscoveryError: string | null = null;
31-
const PLUGIN_ID = "@playwo/opencode-cursor-oauth";
3231

3332
export const server: Plugin = async (
3433
input: PluginInput,
@@ -169,7 +168,7 @@ export const server: Plugin = async (
169168
export const CursorAuthPlugin = server;
170169

171170
export const CursorAuthPluginModule: PluginModule = {
172-
id: PLUGIN_ID,
171+
id: CURSOR_PLUGIN_ID,
173172
server,
174173
};
175174

0 commit comments

Comments
 (0)