Files
cat-shark 9821439603
CI / Lint, typecheck & build (push) Failing after 32s
fix: read prompt and tools from the transcript
pi 0.87 made the session transcript canonical for provider context: the
context handed to a custom provider's stream no longer carries
`systemPrompt` and `tools`; they live on the leading system message
(`sections` + `toolsAdded`). streamQoder still read the removed fields,
so every request went out with `system: ""` and `tools: []` - the model
saw no prompt and no tools and answered that it cannot access files.

- resolve the prompt with getCurrentSystemPrompt(messages) and the tool
  list with getCurrentTools(messages)
- give tool parameters a root `type: "object"`: Qoder's upstream rejects
  a union root ("schema must be a JSON Schema of 'type: \"object\"', got
  'type: null'"), e.g. the agent-browser Electron tool, which failed the
  whole request with a 400
- bump the pi-ai / pi-coding-agent devDependencies to ^0.87.1 and cover
  the transcript prompt/tools path with a regression test
2026-09-29 10:18:44 +08:00

56 lines
1.6 KiB
JSON

{
"name": "pi-provider-qoder",
"version": "0.4.6",
"description": "Pi extension for Qoder AI — 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 --external:@earendil-works/pi-ai/compat",
"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:live": "tsx scripts/record-live-fixtures.ts",
"test:watch": "vitest",
"prepare": "npm run build",
"prepublishOnly": "npm run check && npm run build"
},
"pi": {
"extensions": [
"./dist/index.js"
]
},
"devDependencies": {
"@biomejs/biome": "2.5.12",
"@earendil-works/pi-ai": "^0.87.1",
"@earendil-works/pi-coding-agent": "^0.87.1",
"esbuild": "^0.28.1",
"tsx": "^4.23.13",
"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"
}