Skip to content

feat: add OMP (Oh My Pi) provider compatibility#9

Merged
patlux merged 2 commits into
patlux:mainfrom
AlexVagrant:main
May 28, 2026
Merged

feat: add OMP (Oh My Pi) provider compatibility#9
patlux merged 2 commits into
patlux:mainfrom
AlexVagrant:main

Conversation

@AlexVagrant

Copy link
Copy Markdown
Contributor

I created a new fork repository based on main and fixed the issues from your review.

Support OMP as a host alongside pi:
- Convert OMP's array-format system prompts to string via systemPromptToText
- Guard against OMP passing the literal env-var name as the API key value
- Add ~/.omp/agent/auth.json to default auth path lookup
- Fix --list-models output to check both stdout and stderr
- Add OMP compatibility smoke test with isolated temp HOME and mock server
- Deduplicate usage section in README, add OMP install and usage docs

@patlux patlux left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! The OMP compatibility direction looks good, especially the isolated smoke test and the system-prompt conversion. I found a few issues to fix before merge: formatting/check failures, a loose auth regression assertion, unrelated lockfile drift, and one docs/error-message mismatch.

Reviewed with gpt-5.5 xhigh.

Comment thread src/converters.ts Outdated
Comment thread src/core.ts
Comment thread tests/test-omp-compat.mjs Outdated
Comment thread package-lock.json Outdated
- Removed unnecessary blank lines and improved formatting for better readability in index.ts and converters.ts.
- Updated package-lock.json to downgrade several dependencies for compatibility, including @protobufjs/eventemitter, @protobufjs/fetch, and others.
- Enhanced error message in core.ts to clarify configuration options for the Command Code API key.
- Added a test to ensure the correct handling of environment variable values in test-stream.ts.
@patlux

patlux commented May 28, 2026

Copy link
Copy Markdown
Owner

Thanks @AlexVagrant — all review feedback addressed cleanly. Merging! 🎉

@patlux patlux merged commit 98ee522 into patlux:main May 28, 2026
2 checks passed
@patlux

patlux commented May 28, 2026

Copy link
Copy Markdown
Owner

Released in pi-commandcode-provider@0.3.0GitHub Release. Thanks for the contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants