refactor(runtime): replace Bun dependency with Node fetch

Run Perplexity search and auth requests through pi's Node runtime instead of
shelling out to Bun. Move development and CI commands to npm, add a Node test
build path, and keep OTP auth fail-fast when Set-Cookie headers are not
available.
This commit is contained in:
Ivan Pereira
2026-06-23 15:51:16 +01:00
parent 142640d96c
commit bbb5623f25
29 changed files with 4085 additions and 882 deletions
+4 -6
View File
@@ -29,22 +29,20 @@
"@mariozechner/pi-ai": "*",
"@sinclair/typebox": "*"
},
"dependencies": {
"bun": "^1.3.9"
},
"devDependencies": {
"@mariozechner/pi-coding-agent": "*",
"@mariozechner/pi-tui": "*",
"@mariozechner/pi-ai": "*",
"@sinclair/typebox": "*",
"bun-types": "*",
"@types/node": "*",
"typescript": "*"
},
"scripts": {
"typecheck": "tsc --noEmit",
"test": "bun test"
"test:build": "node -e \"require('node:fs').rmSync('.tmp-test',{recursive:true,force:true})\" && tsc --project tsconfig.test.json",
"test": "npm run test:build && node --test --experimental-test-module-mocks \".tmp-test/test/**/*.test.js\""
},
"engines": {
"bun": ">=1.3.9"
"node": ">=18.14.1"
}
}