fix: route PAT login through pi LoginDialog callbacks
The custom ctx.ui.custom login menu stole focus from pi's built-in LoginDialog, so onPrompt never received keystrokes and PAT login silently failed with 'No API key found'. Drive login via the provided onPrompt/onAuth/onProgress callbacks instead, and drop login-ui.ts and the now-unused pi-tui dependency. Also clears remaining lint warnings by removing any-casts in models/oauth/stream/transform.
This commit is contained in:
+1
-2
@@ -19,7 +19,7 @@
|
||||
"README.md"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "./node_modules/esbuild/bin/esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:@earendil-works/pi-ai --external:@earendil-works/pi-coding-agent --external:@earendil-works/pi-tui",
|
||||
"build": "./node_modules/esbuild/bin/esbuild src/index.ts --bundle --platform=node --format=esm --outfile=dist/index.js --external:@earendil-works/pi-ai --external:@earendil-works/pi-coding-agent",
|
||||
"check": "node node_modules/typescript/bin/tsc --noEmit",
|
||||
"lint": "node node_modules/@biomejs/biome/bin/biome check .",
|
||||
"lint:fix": "node node_modules/@biomejs/biome/bin/biome check --write .",
|
||||
@@ -36,7 +36,6 @@
|
||||
"@biomejs/biome": "2.4.2",
|
||||
"@earendil-works/pi-ai": "^0.75.5",
|
||||
"@earendil-works/pi-coding-agent": "^0.75.5",
|
||||
"@earendil-works/pi-tui": "^0.75.5",
|
||||
"esbuild": "^0.25.0",
|
||||
"typescript": "^5.7.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user