fix: load registerApiProvider dynamically for OMP

OMP rewrites @earendil-works/pi-ai/compat to a bundle without
registerApiProvider, which broke static import at install/load.
Probe the export at runtime; stock pi still registers qoder-api for
global streamSimple, while OMP relies on registerProvider(streamSimple).
This commit is contained in:
Cursor Agent
2026-09-06 12:53:03 +00:00
parent ab80759fe0
commit a238e428fe
5 changed files with 57 additions and 16 deletions
+1
View File
@@ -4,6 +4,7 @@ A [pi](https://shittycodingagent.ai/) extension that connects pi to Qoder.
```bash
pi install npm:pi-provider-qoder
# or: omp install npm:pi-provider-qoder
```
```bash