From efe37d4cfc5dbc28efec541c4be01330ef0761d6 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 12 Dec 2025 19:39:24 +0900 Subject: [PATCH] refactor(auth): rename codex-auth to auth subpath export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename src/codex-auth.ts → src/auth.ts - Update package.json exports: ./codex-auth → ./auth - Update build script to include auth.ts Users can now use oh-my-opencode/auth as OpenAI auth plugin. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- package.json | 8 ++++---- src/auth.ts | 1 + src/codex-auth.ts | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 src/auth.ts delete mode 100644 src/codex-auth.ts diff --git a/package.json b/package.json index a9b7e05..10c3d64 100644 --- a/package.json +++ b/package.json @@ -13,14 +13,14 @@ "types": "./dist/index.d.ts", "import": "./dist/index.js" }, - "./codex-auth": { - "types": "./dist/codex-auth.d.ts", - "import": "./dist/codex-auth.js" + "./auth": { + "types": "./dist/auth.d.ts", + "import": "./dist/auth.js" }, "./schema.json": "./dist/oh-my-opencode.schema.json" }, "scripts": { - "build": "bun build src/index.ts src/codex-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/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", diff --git a/src/auth.ts b/src/auth.ts new file mode 100644 index 0000000..6164c53 --- /dev/null +++ b/src/auth.ts @@ -0,0 +1 @@ +export { OpenAIAuthPlugin as default } from "opencode-openai-codex-auth"; diff --git a/src/codex-auth.ts b/src/codex-auth.ts deleted file mode 100644 index 601b21f..0000000 --- a/src/codex-auth.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "opencode-openai-codex-auth";