refactor(auth): rename codex-auth to auth subpath export

- 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)
This commit is contained in:
YeonGyu-Kim
2025-12-12 19:39:24 +09:00
parent c662f9c240
commit efe37d4cfc
3 changed files with 5 additions and 5 deletions

View File

@@ -13,14 +13,14 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"import": "./dist/index.js" "import": "./dist/index.js"
}, },
"./codex-auth": { "./auth": {
"types": "./dist/codex-auth.d.ts", "types": "./dist/auth.d.ts",
"import": "./dist/codex-auth.js" "import": "./dist/auth.js"
}, },
"./schema.json": "./dist/oh-my-opencode.schema.json" "./schema.json": "./dist/oh-my-opencode.schema.json"
}, },
"scripts": { "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", "build:schema": "bun run script/build-schema.ts",
"clean": "rm -rf dist", "clean": "rm -rf dist",
"prepublishOnly": "bun run clean && bun run build", "prepublishOnly": "bun run clean && bun run build",

1
src/auth.ts Normal file
View File

@@ -0,0 +1 @@
export { OpenAIAuthPlugin as default } from "opencode-openai-codex-auth";

View File

@@ -1 +0,0 @@
export * from "opencode-openai-codex-auth";