Skip to content

Commit 475467a

Browse files
sng-asyncfuncclaude
andcommitted
fix(ci): resolve 'codex-auth' in tsc via tsconfig paths; drop top README warning
CI failed because the demo imports the bare 'codex-auth' specifier, which only the Vite alias resolved — plain `tsc --noEmit` (run before the build, so no dist/) could not find it, cascading into implicit-any errors. Add a tsconfig `paths` map (codex-auth + subpaths -> src/) so typecheck resolves the package from source, independent of build order or symlinks. Also remove the top-of-README research/education warning blockquote (the full Disclaimer section at the bottom remains). Verified the full CI sequence locally with dist/ removed: typecheck + build + 114 tests all green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9ed7424 commit 475467a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ Your users sign in with their own ChatGPT account and run prompts on it.
1414

1515
[Quick start](#quick-start) · [Two runners](#pick-a-runner) · [Headless](#headless-usage) · [Deploy](./DEPLOYMENT.md) · [Security](./SECURITY.md)
1616

17-
> ⚠️ **For research & education only.** This uses OpenAI's Codex client off-label
18-
> and likely violates the ChatGPT Terms of Use. **You are solely responsible for
19-
> your use.** [Read the disclaimer ↓](#%EF%B8%8F-disclaimer--read-before-you-use-this)
20-
2117
</div>
2218

2319
<p align="center">

tsconfig.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@
1212
"isolatedModules": true,
1313
"declaration": true,
1414
"noEmit": true,
15-
"types": ["node", "vitest/globals"]
15+
"types": ["node", "vitest/globals"],
16+
"baseUrl": ".",
17+
"paths": {
18+
"codex-auth": ["./src/index.ts"],
19+
"codex-auth/run": ["./src/run.ts"],
20+
"codex-auth/backend": ["./src/backend/index.ts"],
21+
"codex-auth/backend/direct": ["./src/backend/direct/index.ts"],
22+
"codex-auth/backend/next": ["./src/backend/next/index.ts"],
23+
"codex-auth/backend/worker": ["./src/backend/worker/index.ts"]
24+
}
1625
},
1726
"include": ["src", "tests", "demo"]
1827
}

0 commit comments

Comments
 (0)