feat: add support for omp - #19
Open
rcmorano wants to merge 5 commits into
Open
Conversation
before_agent_start: omp passes systemPrompt as string[] (pi: string); append the GitNexus note in the host's own shape instead of string-concatenating, which comma-mangled omp's prompt sections. SEARCH_TOOLS: add glob (omp renamed find->glob). extractPattern: route glob through the find branch (omp's glob tool uses the path param).
Add an omp section to package.json mirroring pi, so omp discovers the extension entry and bundled skills from the package manifest.
Assert the GitNexus note appends to pi's string prompt and to omp's string[] prompt without collapsing the array into a comma-joined string.
Ship .omp-plugin/marketplace.json so the repo works as an omp marketplace source (local dir or git repo) for 'omp plugin marketplace add'.
Mention omp alongside pi in the intro and install step. Add a marketplace install section covering the remote-git and local-dir forms, the pi-gitnexus@pi-gitnexus plugin id, and the bare-dot / session-restart gotchas.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for omp (oh-my-pi) as a host runtime
This extension currently targets pi. omp is a fork of pi with a legacy-compat layer that already remaps most of the extension's imports (
@earendil-works/*→ bundled host packages, baretypebox→ omptype facade,StringEnum/getSettingsListTheme/SettingsListall served). A few real divergences blocked it from loading. This PR resolves them so the same package runs unmodified on both hosts.Changes
Runtime compatibility (
src/index.ts,src/gitnexus.ts)before_agent_start: omp passessystemPromptasstring[](pi:string). The old string-concatenation comma-mangled omp's prompt sections ("part one,part two"). Now branches onArray.isArrayand appends the GitNexus note in the host's own shape.SEARCH_TOOLS: addedglob— omp renamedfind→glob.extractPattern: routesglobthrough the existingfindbranch (omp's glob tool uses thepathparam, already covered).Packaging (
package.json)ompmanifest section mirroringpi, so omp discovers the extension entry and bundled skills from the package manifest.Marketplace (
.omp-plugin/marketplace.json)omp plugin marketplace add, not just the npm registry.Docs (
README.md)pi-gitnexus@pi-gitnexusplugin id and the bare-dot / session-restart gotchas.Verification
biomelint +tsctypecheck clean; 50 tests pass (2 new: pi-string and omp-string[]prompt shapes, the latter asserting no comma-mangle).omp install .and via the marketplace (using this PR's fork, which mimicks the end resultomp plugin marketplace add rcmorano/pi-gitnexus && omp plugin install pi-gitnexus@pi-gitnexus)gitnexuscommand + subcommand completions register with zeroextension_errorframes.Notes
read_many/findbranches stay dead-but-harmless on omp (pi-only), preserving dual-host support.