Repository navigation
[3542 by Claude Opus 5.5] Plugins: manifest schema, in-repo registry package and plugins:check - #3562
Conversation
…, a new `@propr/plugins` registry workspace with `example-pack`, `npm run plugins:check` wired into CI, tests and a docs page. As the issue asked, there are no tables, routes or UI. All 48 tests in the new files and the existing extension library tests pass. The CI workflow and classifier tests also pass, and so do `release:verify` and the typechecks for both packages. Schema (`packages/shared/src/plugins.ts`, exported from the shared index) - It covers every manifest field in the issue. The permission list is closed: `events.read`, `tasks.read`/`create`, `issues.read`/`create`/`comment`, `pull_requests.read`/`comment`, `repositories.read` and `notifications.send`. Commands may only use permissions the plugin requests, and event subscriptions require `events.read`. - Remote and package servers reuse the extension library's schemas rather than redefining them. On top of those, the manifest must record the `integrity` value itself, and each `secretEnv` entry maps a variable to a connection. Version ranges, tags, paths, images, commands and unknown fields are refused. - Cross-reference checks: a server or webhook must point at a declared connection of the right type, names must be unique in each list, and setting defaults must fit their own limits. - `publicPluginManifest()` is the public view. It leaves out the integrity value, launch arguments and environment values. Registry (`packages/plugins`) - `registry.json` lists plugins in order and marks development-only ones. `officialPlugins()` and `getOfficialPlugin()` return each manifest with its asset paths resolved. `example-pack` only appears when `PROPR_PLUGINS_DEVELOPMENT=1` is set. - `example-pack` has one remote OAuth server, one package server, one skill and one automation template. The package server points at the existing `[email protected]` test package. I computed its integrity value with the existing npm registry test helper, and two runs gave the same value. - The package is added to the root `test:prepare` build, and `package-lock.json` gains only the new workspace entries. `plugins:check` (`scripts/check-plugins.mjs`, runs through `tsx` so no build is needed) - It runs the schema, then checks that `registry.json` and the plugin folders match one-to-one, that ids match folder names, and that command names are unique across plugins. It also checks that each plugin has a README and its icon, that each skill folder has a `SKILL.md` with a matching name, and that each automation template passes the existing template checks. - It reports every problem in one run and exits 1 if there are any. - `--online [--registry <url>]` compares recorded integrity values with the npm registry. Run against public npm it reports `example-pack`'s package as not found, because the test package isn't published there. - CI: there is no standalone CI step for `automation-templates:check` (it only runs through the test suite). So I added a "Plugins: Manifest Check" section to the Run Checks step in `pr-build-check.yml` instead. It runs on every pull request. Tests - `packages/shared/test/plugins.test.ts` covers every invalid case in the acceptance criteria, plus settings rules and the public view. - `test/checkPlugins.test.mjs` runs 11 broken fixture manifests (in `test/fixtures/plugins-check/`), each expecting a specific message. It also tests missing files, registry mismatches, duplicate commands across plugins, the command-line exit codes, and `--online` against a fake registry. - `packages/plugins/test/registry.test.ts` covers the development flag and asset paths. Docs: `docs/docs/features/plugins.md` explains the concept, the folder layout, the manifest and the check, with a link from the agent extensions page. It isn't in the sidebar, which matches the existing agent extensions page. Two choices the issue left open: - Development flag: the development marking lives in `registry.json`, not in the manifest. - Folder references: skills and automation templates are referenced by folder path inside the plugin. Templates use the existing `template.json` + `prompt.md` layout. No previews were made, since nothing here is visible in the UI.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR delivers the manifest schema, official registry, validation command, CI integration, fixtures, and documentation within the stated scope. No merge-blocking defect was verified from the supplied diff and surrounding context. It is ready to merge within scope, conditional on the pending checks completing successfully. ✅ Cross-reference validation — Connections must exist and match their consumers’ credential types; commands cannot request undeclared permissions. ✅ Explicit public projection — Package servers expose selected metadata while excluding integrity values, launch arguments, and plain environment values. ✅ Targeted negative coverage — Tests exercise invalid manifests, missing assets, registry mismatches, duplicate commands, and online integrity mismatches. This was a static review; no commands or tests were run. The supplied current-head status reports no failures and five pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Parse skill front matter consistently
S2: 🟢 Consolidate registry index validation
ScoreThe implementation is cohesive, appropriately scoped, and supported by targeted tests. Static review found no actionable blocker; merge readiness remains conditional on the outstanding checks. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met). To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge. |
AI Implementation Summary
Closes #3542
Branch:
3542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zoxCommits: ✅ Changes committed (404aece)
AI Processing Completed
Execution Details:
Summary:
I've implemented #3542: the plugin manifest schema in
@propr/shared, a new@propr/pluginsregistry workspace withexample-pack,npm run plugins:checkwired into CI, tests and a docs page. As the issue asked, there are no tables, routes or UI. All 48 tests in the new files and the existing extension library tests pass. The CI workflow and classifier tests also pass, and so dorelease:verifyand the typechecks for both packages.Schema (
packages/shared/src/plugins.ts, exported from the shared index)events.read,tasks.read/create,issues.read/create/comment,pull_requests.read/comment,repositories.readandnotifications.send. Commands may only use permissions the plugin requests, and event subscriptions requireevents.read.integrityvalue itself, and eachsecretEnventry maps a variable to a connection. Version ranges, tags, paths, images, commands and unknown fields are refused.publicPluginManifest()is the public view. It leaves out the integrity value, launch arguments and environment values.Registry (
packages/plugins)registry.jsonlists plugins in order and marks development-only ones.officialPlugins()andgetOfficialPlugin()return each manifest with its asset paths resolved.example-packonly appears whenPROPR_PLUGINS_DEVELOPMENT=1is set.example-packhas one remote OAuth server, one package server, one skill and one automation template. The package server points at the existing[email protected]test package. I computed its integrity value with the existing npm registry test helper, and two runs gave the same value.test:preparebuild, andpackage-lock.jsongains only the new workspace entries.plugins:check(scripts/check-plugins.mjs, runs throughtsxso no build is needed)registry.jsonand the plugin folders match one-to-one, that ids match folder names, and that command names are unique across plugins. It also checks that each plugin has a README and its icon, that each skill folder has aSKILL.mdwith a matching name, and that each automation template passes the existing template checks.--online [--registry <url>]compares recorded integrity values with the npm registry. Run against public npm it reportsexample-pack's package as not found, because the test package isn't published there.automation-templates:check(it only runs through the test suite). So I added a "Plugins: Manifest Check" section to the Run Checks step inpr-build-check.ymlinstead. It runs on every pull request.Tests
packages/shared/test/plugins.test.tscovers every invalid case in the acceptance criteria, plus settings rules and the public view.test/checkPlugins.test.mjsruns 11 broken fixture manifests (intest/fixtures/plugins-check/), each expecting a specific message. It also tests missing files, registry mismatches, duplicate commands across plugins, the command-line exit codes, and--onlineagainst a fake registry.packages/plugins/test/registry.test.tscovers the development flag and asset paths.Docs:
docs/docs/features/plugins.mdexplains the concept, the folder layout, the manifest and the check, with a link from the agent extensions page. It isn't in the sidebar, which matches the existing agent extensions page.Two choices the issue left open:
registry.json, not in the manifest.template.json+prompt.mdlayout.No previews were made, since nothing here is visible in the UI.
Detailed Logs:
d4d4f00c-cd6b-46e7-b58c-73a9933a09c0Log files stored at:
/usr/src/app/logs/executions/issue-3542-2026-11-14T03-37-24-749Z-conversation.json/usr/src/app/logs/executions/issue-3542-2026-11-14T03-37-24-749Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3542.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!