WIP: Add CLI for OAuth login, update README

- Add src/cli.ts with login command for OAuth providers
- Add bin entry to package.json for 'npx @mariozechner/pi-ai'
- Update README: remove setApiKey docs, rewrite OAuth section
- OAuth storage is caller's responsibility, not library's
- Use getOAuthProviders() instead of duplicating provider list
This commit is contained in:
Mario Zechner 2025-12-25 01:08:09 +01:00
parent 030788140a
commit 0ae23f19fe
3 changed files with 216 additions and 81 deletions

View file

@ -5,6 +5,9 @@
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"pi-ai": "./dist/cli.js"
},
"files": [
"dist",
"README.md"