/** * OpenCode v1 plugin entry (hooks API). * * Runtime-agnostic Cursor internals live in src/plugin-core.ts; the OpenCode * v2 domain-adapter entry is src/v2-entry.ts. The package's dual "./server" * export imports this v1 function as `server`; the root export remains the * fallback for older v1 loaders. * cleanup-traps: ok -- background-shell supervisor owns process groups and disposes them on session teardown. */ import type { Plugin } from "@opencode-ai/plugin"; export { isOAuthAccessTokenUsable } from "./plugin-core"; /** * OpenCode plugin that provides Cursor authentication and model access. * Register in opencode.json: { "plugin": ["cursor-oauth-opencode"] } */ export declare const CursorAuthPlugin: Plugin; export default CursorAuthPlugin;