Repository navigation
feat(plugin): install and update commands declared by plugins - #907
salmonumbrella wants to merge 14 commits into
Conversation
Read executable declarations from the portable Skillshare extension without interpreting native slash commands. Validate candidate-relative executable paths before lifecycle publication, preserving catalog provider identity.
Keep package commands independent of native bindings and publish exact receipt-owned links into the scoped bin. Persist pending work before publication, retain reviewed snapshots for sync, and recover previous output when publication or applied-state persistence fails.
Carry reviewed package source observations through command-only selections and retries so native successes remain independent. Cover platform rejection, final command removal and snapshot cleanup recovery, and classify the scoped publisher writes in the existing filesystem ratchet.
Show package commands across CLI, dashboard and Herdr without presenting them as a native Agent. Document scoped PATH setup and receipt ownership in existing translations, with reproducible CLI and browser fixtures for update, conflict preservation and offline removal.
Isolate logical package snapshots and retain interrupted ownership before replacing pending intent so aliases and retries preserve executable provenance. Discover current commands independently of native selection, surface failed checks, refresh package versions, and localize command guidance through API outcomes. Preserve native default-source semantics with current-source proof, correct stale built-in documentation, and remove the optional screenshot helper.
Include package commands in targeted CLI checks and updates only for selected default recipes. Preserve observed versions when final commands disappear, distinguish preview rows, and reuse existing parser and snapshot ownership proofs. Avoid unchanged-source sync downloads and document receipt-less publication.
Journal removal against the persisted declaration and replay each receipt only when its own intent matches. Isolate discovery errors between packages, retain offline final-command cleanup, and consolidate regression assertions at their existing behavior owners.
Propagate the existing root schema error instead of interpreting unsupported metadata as a removal. Reuse materialization and public approval proofs, remove unreachable guards and strings, and shorten optional native target guidance.
Preserve the accepted entry in package intent and command receipts while keeping targeted alternate distributions independent. Report command cleanup before pending work in CLI rows and use blocked for derived observation failures.
Retain original snapshot proofs until cleanup succeeds so removal permits an immediate re-add. Offer whole-package updates for recorded sources before their first command receipt, while preserving native deselection and receipt-based removal.
Use the ordinary untargeted request for the wizard package choice so native bindings update with commands. Verify both native digest and installed content through the actual helper and Apply, including packages without commands.
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Keep native Cursor add and update coverage on Windows while asserting unsupported command publication, localized failure identities, and absent receipts. Preserve the full Unix publication and cleanup walks.
Only treat an operator entry as a conflict when its name remains desired. Retired names can stay under operator ownership while retained and renamed package commands update.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aca098be46
ℹ️ 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".
Reject Applied or Pending receipts from another command bin before side effects so updates, re-adds and sync preserve the original ownership proof. Keep preservation guidance action-neutral in all locales, with regressions for changed-home transitions and localized single and batch consumers.
|
Thanks for all the work you've put into these. A lot of large PRs have arrived at once, more than I can take in right now, so I need to go through them slowly. I can't promise a date, but I'll get to them. |
What changed
extensions.cc.runkids.skillshare.commands. On macOS/Linux,plugin addpublishes links into~/.local/binglobally or.skillshare/binin a project, including when no native target is selected.checkfirst to review it.Why
Updating
agents-context-routerupdates the plugin but leaves a separately installedai-contextcommand behind. Linking directly into the plugin's hashed content directory breaks on the next update. Declaring the command lets Skillshare keep it with the plugin and remove its owned link when the plugin is removed.feat-plugin-install-and-update-commands-declared-by-plugins.mp4
Usage
Extend a portable root
plugin.json, for example:{ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "demo", "extensions": { "cc.runkids.skillshare": { "commands": { "demo-tool": "bin/demo-tool" } } } }Commit
bin/demo-toolas an executable file inside the package, then:Add
~/.local/binto PATH yourself. For project mode, use-p, add<project>/.skillshare/binto PATH, and add.skillshare/bin/to the project root.gitignore. Skillshare does not edit shell profiles. Windows command publication is unsupported.The router producer still needs to declare
"ai-context": "skills/agents-context-router/scripts/ai-context.py"in this extension and commit that script with its executable bit set. Its current package has neither; this PR alone does not publishai-context.Type
proposals/only)approvedlabel.Linked Issue
#897. This AI-assisted implementation and PR prose are offered as a reference. Maintainer approval is pending, and human line-by-line review remains outstanding.
Verification
6c4ec91fedaadaeb9ebc97cae232870e467f0f4c. Affected plugin (4.909 s), CLI (0.101 s), server (0.043 s) and integration tests (0.135 s), 80 UI/locale tests, and the production UI build passed. Exact-headmake checkpassed (exit 0), covering docs, formatting, vet, Go unit tests, real CLI integration and Herdr tests (139 passed, 0 failed). Hosted CI settled with seven successful jobs (Nix, Linux unit/race, Ubuntu and macOS integration/race, Windows, offline Docker and redteam), two optional skips, and no pending or failed jobs.aca098be464d0363ab51aabdbc4c35501105bee2: allTestPluginCommandstests passed on Linux (41.747 s), after the new regression cases failed ata1fd02e. Exact-headmake checkpassed (exit 0), including Herdr tests (139/139). Hosted CI settled with seven successful jobs (Nix, Linux unit/race, Ubuntu and macOS integration/race, Windows, offline Docker and redteam), two optional skips, and no pending or failed jobs.a1fd02e5494b7a2af3af99cba07535c7c5ca8644:make checkpassed (exit 0), covering docs, formatting, lint, Go unit tests, real CLI integration and Herdr tests (139/139). Focused Linux CLI tests also passed (0.913 s). Hosted CI settled with seven successful jobs (Nix, Linux unit/race, Ubuntu and macOS integration/race, Windows, offline Docker and redteam), two optional skips, and no pending or failed jobs. Windows passed all three affected CLI test owners and all four wizard modes, including commandless and mixed-native cases. That revision changed tests only.8a27fb1b93e1cbe596cf328048ddf6137121335d:make checkpassed (exit 0), including Herdr tests (139/139). Focused command, plugin, CLI integration and API tests also passed.8a27fb1b9: macOS and Ubuntu integration/race, Linux unit/race, Nix, offline Docker and redteam passed; two optional jobs were skipped. Windows failed in three CLI test owners. The test-only revision ata1fd02ecorrected platform expectations and home-directory isolation; its fresh Windows job passed ata1fd02e5494b7a2af3af99cba07535c7c5ca8644.make check, including unit tests, real CLI integration tests and Herdr tests (139/139), passed. Affected UI tests (70/70) and browser checks also passed before the final CLI change.8a27fb1b9failed: failed summary, usage limit. That attempt returned neither findings nor a clean review. A later automatic review ataca098bcompleted with two findings, corrected at6c4ec91fedaadaeb9ebc97cae232870e467f0f4c.mainwith no merge conflicts; maintainer review remains required.Checklist
make check) — passed at6c4ec91fedaadaeb9ebc97cae232870e467f0f4c.Closes #897