Repository navigation
fix(plugins): honor native OMP marketplace builds - #588
Conversation
Resolve OMP entries from their native marketplace when present and inspect package.json extension-only plugins. Keep target-specific source paths, marketplace identities and components so Claude adoption and hybrid manifests remain valid.\n\nShow separate builds in text discovery without changing logical JSON selection, and cover native precedence, invalid catalogs, manifestless and hybrid packages, global/project materialization and CLI output with regression tests. Update the plugin docs and existing translations.\n\nFixes #587
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
skillshare/internal/plugin/source.go
Lines 323 to 324 in ded0469
When same-name catalogs provide different builds, this merge leaves the candidate-level version from the first catalog and recomputes candidate-level components as their union. For the new OMP/Claude fixture, the dashboard candidate card in PluginAddDialog.tsx:168-170 therefore shows OMP 2.0.0 and extensions · hooks even for the Claude 0.1.0/hooks build; only the later preview uses the correct targetInfo. Update the dashboard presentation to use or expose the per-target version and components rather than presenting the merged aggregate as one build.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| for target, info := range c.TargetInfo { | ||
| info.Marketplace = catalog.Name | ||
| c.TargetInfo[target] = info |
There was a problem hiding this comment.
Preserve versions declared by OMP catalog entries
When a supported .omp-plugin/marketplace.json entry declares a version different from its package manifest, this loop records only the marketplace name and leaves TargetInfo["omp"].Version at the manifest fallback. The ompInstallVersion contract in internal/plugin/omp.go explicitly applies only when the catalog entry has no version, and pluginEntry also drops entry metadata for non-Claude targets, so preview and the generated Skillshare marketplace use the wrong version and cache identity. Carry the OMP entry's version into its per-target metadata and materialized catalog.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 8844e87. OMP catalog versions now override the manifest fallback in target metadata and are written into the generated native marketplace, so discovery, preview/bindings, cache allocation and native install agree. The same fix covers legacy Claude-catalog fallback. TestOMPCatalogVersionReachesNativeInstall reproduces catalog 3.0.0 versus package 2.0.0 for both native and legacy catalogs and verifies discovery, preview and materialized catalog versions. make check and the plugin integration suite passed in the devcontainer.
Keep OMP catalog versions in target discovery metadata and materialized marketplace entries so previews, cache guards, and native installs use the same version, including legacy catalog fallback. Cover catalog versions that differ from package manifests. Show each dashboard discovery target's own version, components, and source path instead of presenting a merged candidate as one build.
|
Fixed the per-target dashboard metadata finding from review #588 (review) in 8844e87. The discovery card now lists each target’s own version, components and build path rather than the logical candidate’s merged aggregate. I checked the remaining CLI/TUI/JSON/server/dashboard consumers; previews already use target metadata. Browser assertion and screenshots verify Claude 0.1.0/hooks versus OMP 2.0.0/extensions across Clean/Playful light/dark and a 390px viewport. Existing PluginAddDialog tests, UI lint/build and React Doctor passed (90/100, no new findings); make check passed. PR evidence and limitations are updated. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
skillshare/internal/plugin/source.go
Line 330 in 8844e87
When same-name OMP and Claude catalogs expose different versions, this merge preserves the first candidate's aggregate Version while combining their per-target metadata. If the user chooses the supported no-Agent option, Service.Preview records that arbitrary version at service.go:302, and PluginList.tsx:86-88 displays it even though no build was selected and the other target has a different version. Clear the aggregate version when target versions differ, or derive this presentation from a selected target. Fresh evidence beyond the earlier picker comment is this post-fix no-Agent persistence and list consumer.
AGENTS.md reference: AGENTS.md:L36-L38
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| name = strings.ReplaceAll(strings.TrimPrefix(name, "@"), "/", "-") | ||
| if spec.target == "pi" { | ||
| if spec.target == "omp" { | ||
| if m["omp"] == nil || !ompExtensions(root) { |
There was a problem hiding this comment.
Accept Pi-only extension manifests for OMP catalogs
When an .omp-plugin/marketplace.json entry points to a package declaring only pi.extensions, this new m["omp"] == nil gate skips creating OMP target metadata even though ompExtensions explicitly recognizes pi.extensions as OMP's fallback. The authoritative-catalog pass then reports no OMP-compatible manifest, so users cannot install that valid native catalog entry for OMP. Accept either extension declaration here.
AGENTS.md reference: AGENTS.md:L36-L36
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed against OMP v18.6.1: extensibility/plugins/loader.ts uses pluginPkg.omp || pluginPkg.pi, and our ompExtensions helper already accepts pi.extensions. The additional omp-only gate in source_manifest.go rejects this supported native catalog case. This remains unfixed; after three completed Codex rounds I am pausing for maintainer approval before a fourth fixing round, as wiki/pull-requests.md requires. The minimal correction is to reuse ompExtensions without the extra gate and add native-catalog discovery/materialization regressions. No additional Codex review has been requested.
There was a problem hiding this comment.
Fixed in 9d0af51 after maintainer approval. The package inspector now reuses ompExtensions without the extra omp-only key gate, matching OMP v18.6.1 Pi compatibility. This covers native catalog discovery (including scoped package names) and target-specific global/project snapshot materialization without changing catalog authority. TestOMPDiscoverUsesItsOwnCatalogPackage and TestOMPAddCatalogPackageMaterializesNativeSource reproduced the Pi-only failures before the one-line fix; the plugin suite, full make check, rebuilt plugin integration suite, five-locale website build and context-router check passed. All five independent review passes were clean. No fourth Codex review requested, per the maintainer’s decision.
Derive candidate versions from agreement across supported targets and recompute after catalog overrides. No-Agent records and lists no longer inherit an arbitrary native build version; equal versions remain available and unknown versions stay unknown. Keep Cursor and Antigravity inventory target-specific when manifests disagree. Cover no-Agent preview and persistence, equal and unknown versions, catalog overrides, and mixed-manifest local inventories. Align English and translated plugin references.
|
Fixed the no-Agent aggregate-version finding from #588 (review) in a329841. Candidate metadata now keeps a shared version only when all supported targets agree, and discovery recomputes it after catalog overrides. This covers JSON/TUI aggregation, no-Agent preview/config persistence and the managed list without changing per-target binding/cache versions. The consumer sweep also changed Cursor/Antigravity local inventory to use its own target version. TestOMPMergedBuildVersionWithoutTargets covers different/equal/unknown versions through preview and persisted config; TestOMPCatalogVersionReachesNativeInstall covers catalog overrides; TestLocalInventoryUsesTargetVersion covers mixed Cursor/Antigravity and Pi manifests. Each new failure was reproduced before its fix. Full make check, rebuilt plugin integration tests, all-locale website build, context-router check and re-review passed. The recurring issue was aggregate metadata reaching consumers that represent different concepts; aggregation is now centralized, while installed-target inventory reads target metadata. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Reuse the existing OMP extension detector instead of requiring an OMP-specific manifest key. Native OMP accepts Pi extension manifests too, so the extra gate rejected supported native catalog entries. Cover Pi-only discovery with scoped package names and global/project materialization. Align the English plugin references and all existing translations.
Type
proposals/only)Linked Issue
Closes #587
Summary
Recognize
package.jsonplugins declaringomp.extensionsor compatiblepi.extensions. Text discovery shows distinct build rows; JSON retains one logical candidate with per-target metadata. Preserve explicit OMP catalog versions through previews, cache identity and generated native catalogs, including legacy fallback. Dashboard discovery shows each target's own version, components and build path. Shared versions are retained only when all supported targets agree, so no-Agent records/list rows do not claim an arbitrary build version. Local Cursor/Antigravity inventory continues to use the native target's version. Preserve native adoption, Claude-defined components and manifestless Claude support in hybrid/shared-folder packages. Sync the English plugin docs, four existing translations and built-in reference.Evidence
Before: regressions reproduced the wrong OMP build/version and combined discovery row, plus dropped metadata in hybrid/shared-folder packages.
After: native OMP version/components/path, global/project materialization, Claude adoption and separate text rows pass focused unit/integration coverage.
GitHub CI at
a329841: all seven executed checks passed;redteam-signalskipped by workflow.make checkin the devcontainer: passed again after Codex fixes; focused plugin integration tests also passed after rebuilding.UI: existing
PluginAddDialogtests (6), lint and production build passed. Lint/build retain existing warnings. React Doctor changed-scope scan: 90/100, no new issues.Browser discovery check with a mocked API response: reproduced the merged version/components before the fix; asserted separate Claude
0.1.0/hooksand OMP2.0.0/extensionsmetadata after it. Screenshots checked Clean/Playful light/dark and a 390px viewport. No install request was submitted.Website
npm run buildin the devcontainer: passed for English, Japanese, Korean, Simplified Chinese and Traditional Chinese.python3 scripts/ai-context.py checkandgit diff --check: passed.Two Go overlay mutation checks deliberately disabled catalog authority and extension detection; each made its regression fail. Unmodified OMP tests pass.
Independent correctness/rules/spec/consumer/cleanup reviews completed; confirmed findings fixed and re-reviewed.
Codex follow-up regressions: explicit catalog version versus manifest version (native and legacy); no-Agent preview/config persistence with different, equal and unknown versions; Cursor/Antigravity inventory with differing Pi versions. All reproduced red before fixes, then passed
make checkand rebuilt plugin integration tests. All five website locales rebuilt successfully after the final docs update.Final Pi-only compatibility fix
9d0af516: native discovery (including scoped npm names) and global/project materialization reproduced red before the fix, then passed the plugin suite, fullmake check, rebuilt plugin integration suite, five-locale website build, context-router check and five independent review passes. The maintainer approved this final fixing round; no fourth Codex review was requested.Not covered
a329841; the final Pi-only fix9d0af516has local verification and independent review, but no further Codex review. GitHub CI for the new commit is pending.Merge Danger
Door: Two-way; no migration or persistent-data rewrite.
Blast Radius: Plugins — catalog discovery, target metadata and install/adoption previews. Existing native OMP catalogs now intentionally prevent Claude fallback, including invalid or empty catalogs.
Checklist
make check) — for code changes