- Resolve the real Qoder identity (userID/email/name/machineID) from the job token at request time. OMP keeps login credentials in its own agent.db, not in ~/.pi/agent/auth.json, so a cache miss sent uid "qoder-user" and Qoder CN rejected it with "Login expired" (105). - Normalize the system prompt to a plain string. OMP supplies it as a single-element content array which Qoder's MessagesInputDto#content (String) rejects with 400 "Execution failed: set property" on qwen models. - Drop the modifyModels hook. OMP (Bun) structuredClones the whole model catalog before invoking it, and its bundled catalog is not cloneable, which removed qoder from `omp models`. - Make the build script cross-platform: use esbuild on PATH instead of a Unix-style ./node_modules path that fails on Windows cmd.exe.
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"name": "pi-provider-qoder",
|
|
"version": "0.3.0",
|
|
"description": "Pi extension for Qoder AI \u2014 with OAuth authentication, COSY signatures and WAF bypass",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"pi-package",
|
|
"pi",
|
|
"qoder",
|
|
"ai",
|
|
"provider"
|
|
],
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "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 .",
|
|
"format": "node node_modules/@biomejs/biome/bin/biome format --write .",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"prepare": "npm run build",
|
|
"prepublishOnly": "npm run check && npm run build"
|
|
},
|
|
"pi": {
|
|
"extensions": [
|
|
"./dist/index.js"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.4.2",
|
|
"@earendil-works/pi-ai": "^0.80.2",
|
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
"esbuild": "^0.28.1",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^4.1.9"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/simonsmh/pi-provider-qoder.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/simonsmh/pi-provider-qoder/issues"
|
|
},
|
|
"homepage": "https://github.com/simonsmh/pi-provider-qoder#readme"
|
|
}
|