From 6a565ee12695e3f0848f500d2198e3285382213d Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 13 Dec 2025 00:31:48 +0900 Subject: [PATCH] refactor: remove opencode-openai-codex-auth dependency and auth subpath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- package.json | 8 ++------ src/auth.ts | 11 ----------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 src/auth.ts diff --git a/package.json b/package.json index fc3532f..6c72f46 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,6 @@ "types": "./dist/index.d.ts", "import": "./dist/index.js" }, - "./auth": { - "types": "./dist/auth.d.ts", - "import": "./dist/auth.js" - }, "./google-auth": { "types": "./dist/google-auth.d.ts", "import": "./dist/google-auth.js" @@ -24,7 +20,7 @@ "./schema.json": "./dist/oh-my-opencode.schema.json" }, "scripts": { - "build": "bun build src/index.ts src/auth.ts src/google-auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun run build:schema", + "build": "bun build src/index.ts src/google-auth.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun run build:schema", "build:schema": "bun run script/build-schema.ts", "clean": "rm -rf dist", "prepublishOnly": "bun run clean && bun run build", @@ -54,7 +50,7 @@ "@ast-grep/napi": "^0.40.0", "@code-yeongyu/comment-checker": "^0.5.0", "@opencode-ai/plugin": "^1.0.150", - "opencode-openai-codex-auth": "^4.1.0", + "picomatch": "^4.0.2", "xdg-basedir": "^5.1.0", "zod": "^4.1.8" diff --git a/src/auth.ts b/src/auth.ts deleted file mode 100644 index 74b8b56..0000000 --- a/src/auth.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * OpenAI Codex Auth Plugin re-export - * - * This module re-exports the OpenAI Codex OAuth authentication plugin, - * enabling users to authenticate with their ChatGPT Plus/Pro subscription. - * - * For Google Antigravity auth, use `oh-my-opencode/google-auth` instead. - * - * @see https://github.com/numman-ali/opencode-openai-codex-auth - */ -export { OpenAIAuthPlugin as default } from "opencode-openai-codex-auth"