Add Pi coding-agent provider #3818
main fromrefs/pull/3818/head·opened View on GitHubShowing 34 changed files with 125 additions and 0 deletions (loading 31).
🟡 Medium scripts/cli.ts:194
When src/provider/assets/pi/t3-approvals.ts does not exist, the build command logs a warning and succeeds, producing a packaged server that ships without dist/assets/pi/t3-approvals.ts. Since PiAdapter's runtime path resolution expects that file for the approval-gate handshake, Pi tool-capable sessions in the built artifact fail at runtime instead of the build failing immediately. The else branch should fail the build (e.g., yield* new ServerCliBuildAssetMissingError({ assetPath: piExtensionSource })) rather than only warning.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/scripts/cli.ts around lines 194-196:
When `src/provider/assets/pi/t3-approvals.ts` does not exist, the `build` command logs a warning and succeeds, producing a packaged server that ships without `dist/assets/pi/t3-approvals.ts`. Since `PiAdapter`'s runtime path resolution expects that file for the approval-gate handshake, Pi tool-capable sessions in the built artifact fail at runtime instead of the build failing immediately. The `else` branch should fail the build (e.g., `yield* new ServerCliBuildAssetMissingError({ assetPath: piExtensionSource })`) rather than only warning.
Fixed: server build now fails with ServerCliBuildAssetMissingError if the bundled Pi approval extension source is missing.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.