fix(core): resolve the compat api registration at runtime for Oh My Pi
0.6.1 imported registerApiProvider from @earendil-works/pi-ai/compat as a named import. Oh My Pi maps that specifier onto its own pi-ai, which has no such export and instead registers custom APIs inside registerProvider, so omp plugin install rejected the extension with "Export named 'registerApiProvider' not found". Import the compat module as a namespace and call registerApiProvider only when the host provides it. pi keeps the sibling-extension fix from #68; omp loads again and its own custom-api registry covers that case. Verified with omp 18.1.2: plugin install of the linked checkout succeeds and tests/test-omp-compat.mjs passes; tests/test-pi-local.mjs still covers the compat registry path on pi. Closes #74
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- Fix `omp plugin install` on Oh My Pi 18.x, which rejected 0.6.1 because its pi-ai lacks the `registerApiProvider` export; the compat registration now resolves at runtime and is skipped on hosts that register custom APIs themselves.
|
||||
|
||||
## 0.6.1 - 2026-09-01
|
||||
|
||||
- Expose selectable thinking levels (`minimal`, `low`, `medium`, `high`, `xhigh`) for `meta/muse-spark-1.1`, `meta/muse-spark-1.2`, and `meta/muse-spark-1.2-contributor` through a manual catalog override, so `/thinking` and `Shift+Tab` no longer stay locked on `off` for these reasoning models.
|
||||
|
||||
Reference in New Issue
Block a user