co-mono/packages/proxy/package.json
Mario Zechner 030788140a WIP: Remove global state from pi-ai OAuth/API key handling
- Remove setApiKey, resolveApiKey, and global apiKeys Map from stream.ts
- Rename getApiKey to getApiKeyFromEnv (only checks env vars)
- Remove OAuth storage layer (storage.ts deleted)
- OAuth login/refresh functions now return credentials instead of saving
- getOAuthApiKey/refreshOAuthToken now take credentials as params
- Add test/oauth.ts helper for ai package tests
- Simplify root npm run check (single biome + tsgo pass)
- Remove redundant check scripts from most packages
- Add web-ui and coding-agent examples to biome/tsgo includes

coding-agent still has compile errors - needs refactoring for new API
2025-12-25 01:01:03 +01:00

26 lines
544 B
JSON

{
"name": "@mariozechner/pi-proxy",
"version": "0.27.9",
"type": "module",
"description": "CORS and authentication proxy for pi-ai",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"pi-proxy": "dist/cli.js"
},
"scripts": {
"clean": "rm -rf dist",
"build": "tsc",
"typecheck": "tsgo --noEmit",
"dev": "tsx src/cors-proxy.ts 3001"
},
"dependencies": {
"@hono/node-server": "^1.14.0",
"hono": "^4.6.16"
},
"devDependencies": {
"@types/node": "^22.10.5",
"tsx": "^4.19.2",
"typescript": "^5.7.3"
}
}