Repository navigation
[3561 by Claude Opus 5.5] Plugin authoring guide, scaffold command and compatibility rules for official plugins - #3645
Conversation
…uthoring guide, generated docs checked in CI, contract tests and the two CLI commands. The suites for these changes pass (174 tests), as do `plugins:check`, `plugins:docs:check`, the CLI and plugins typecheck and lint, and a full Docusaurus build with no broken links or anchors. I did not run the full repository suite. Scaffold (`npm run plugins:new -- <id> [--name] [--category] [--description]`), in `scripts/new-plugin.mjs`: - It creates `packages/plugins/<id>/` with a manifest, a README template (setup, permissions, settings, smoke-test checklist, documentation links), an icon and an example handler. The handler counts merged pull requests and skips repeated deliveries. - It also writes a test in `packages/plugins/test/<id>.test.ts` that uses the plugin test kit, plus a docs page `docs/docs/plugins/<id>.md`. - It adds the plugin to `registry.json` after the official plugins and regenerates the plugin docs. Generated docs (`npm run plugins:docs`, with `--check` added to the CI plugins step), in `scripts/gen-plugin-docs.mjs`: - In `docs/docs/plugins/authoring.md` it fills in the manifest reference (from the zod schema), the event payload table and the SDK reference. - It also writes the catalog page, the manifest JSON Schema and the list of plugin pages the sidebar reads. - Generation fails if a manifest field has no description in `scripts/plugin-manifest-descriptions.mjs`, or if an official plugin has no docs page. A new manifest field therefore can't ship undocumented. Compatibility rules: - `packages/shared/src/pluginContract.ts` describes the manifest fields, event payloads and SDK surface as data. Compile-time checks keep it matched to the TypeScript types. - `packages/shared/test/pluginContract.test.ts` compares it with a committed snapshot and fails on any breaking change. - After an additive change, record it with `npm run plugins:contract:update`. That script refuses breaking changes unless you pass `--accept-breaking`. - `PLUGIN_SUPPORTED_MANIFEST_VERSIONS` covers the rule that an old manifest version keeps being read. CLI: `propr plugin list` and `propr plugin show <id>`, both read-only with `--json`, using the plugin REST API. Like the Plugins page, they need an instance administrator. Docs: the authoring guide covers every topic the issue lists, with a worked example (I ran its code through the type checker and the test kit), compatibility rules and a "Not yet supported" section. The Plugins sidebar now has the overview, the catalog, one page per official plugin and the authoring guide. I also linked the new pages from the plugins overview and added the commands to the CLI reference. One thing to know: `packages/plugins/test/registry.test.ts` lists the official plugins in a fixed order, so after scaffolding a real plugin you must add its id to that test. I left the test alone because it deliberately pins catalog order. I captured the catalog page and three sections of the authoring guide as previews. The manifest reference tables still scroll sideways at desktop width, even after I narrowed them to three columns. Acceptance criteria - AC1: met — `scripts/new-plugin.mjs`; `test/newPlugin.test.mjs` scaffolds a plugin, then runs `plugins:check`, ESLint with the real plugin-folder config (and confirms that config refuses a core import), `tsc`, the docs drift check and the generated test, all without edits. - AC2: met — `scripts/gen-plugin-docs.mjs --check` runs in the plugins step of `.github/workflows/pr-build-check.yml`; `test/genPluginDocs.test.mjs` shows it fails on a stale catalog, reference or sidebar. - AC3: met — `packages/shared/test/pluginContract.test.ts` compares against `packages/shared/test/contracts/plugin-contract.snapshot.json`; the fixture `packages/shared/test/fixtures/plugin-contract/breaking-previous.json` shows each kind of breaking change being reported. - AC4: met — `packages/cli/src/commands/pluginCommands.ts` and `packages/cli/src/api/plugins.ts`; `packages/cli/src/commands/pluginCommands.test.ts` runs them against a local HTTP server that answers like the plugin API, including 404 and 403 cases and `--json`. - AC5: met — `docs/sidebars.ts` (Plugins section with overview, catalog, one page per plugin from `docs/plugin-pages.json`, and the authoring guide); the docs build succeeds.
|
/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 scaffold, generated documentation, CLI commands, and compatibility checks, but needs changes before merge: the compatibility guard misses actual type changes, and valid scaffold names can produce invalid documentation. ✅ Read-only CLI integration — Both commands use the existing GET endpoints, with coverage for JSON output, unknown plugins, and administrator access refusals. ✅ Documentation drift detection — CI checks generated references, catalog, schema, and sidebar entries; tests also cover missing official-plugin pages. The supplied current-head status is green: 35 passed, 27 neutral/skipped, and no failures or pending checks. This review used static inspection only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Check actual payload and SDK types
F2: 🔴 Escape scaffolded documentation values
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Explain registry test maintenanceThe existing registry tests pin the official-plugin list, so adding a scaffolded plugin requires updating those expectations. Mention that step in the authoring checklist or scaffold completion message. This is optional because the stated scaffold acceptance criterion requires its generated test to pass, not automatic maintenance of every existing catalog assertion. ScoreThe implementation is well scoped and has substantial coverage and green checks, but its compatibility guarantee and scaffold output need localized corrections before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix |
|
✅ Applied the requested follow-up changes in commit fa77a8e
Summary of ChangesI fixed both findings. The plugin contract test now reads the real TypeScript interfaces, so changing a field or method type in the source fails it. The scaffold now writes front matter that stays valid YAML when a name or description has quotes or backslashes. F1: contract bound to the real types
F2: escaped front matter
What I ran: the contract tests (13 pass, about 9 s, of which reading the sources takes about 2.5 s), the scaffold and docs-generator tests (12 pass), Still unbound or approximate (I didn't change these):
No visual preview this time; the only visible change is a few sentences in the guide. Review digestRisk-tiered paths
Validation evidence
Diff size: 10 files changed, +478/−23 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…he real TypeScript interfaces, so changing a field or method type in the source fails it. The scaffold now writes front matter that stays valid YAML when a name or description has quotes or backslashes. I fixed both findings. The plugin contract test now reads the real TypeScript interfaces, so changing a field or method type in the source fails it. The scaffold now writes front matter that stays valid YAML when a name or description has quotes or backslashes. **F1: contract bound to the real types** - **How it reads the source:** a new helper, `packages/shared/test/support/pluginContractSource.ts`, reads the payload and SDK interfaces with the TypeScript compiler. - **Payloads:** each field's real type is turned into the same short form `pluginContract.ts` uses (`number | null`, `string[]`, …), inherited fields included. A new test fails if the hand-written `PLUGIN_EVENT_PAYLOAD_FIELDS` or `PLUGIN_EVENT_ENVELOPE_FIELDS` differ from the interfaces. - **SDK:** the contract has a new `sdk.types` section. It records the declared type of every `ctx` member, every `ctx.state` and `ctx.propr` method (parameters and result), every input envelope field, and the shared types they lead to (`PluginPullRequestSummary` and the like). `comparePluginContract` reports a changed or removed entry as breaking and a new one as an addition. - **Snapshot:** `npm run plugins:contract:update` now builds the snapshot from the source. It refuses to write if the hand-written descriptors disagree with the interfaces. I regenerated the snapshot; the only change is the new `sdk.types` section. - **Regression tests:** these edit the real source text in memory and then compare with the committed snapshot: - `score: number` → `string` - an inherited task field and an envelope field retyped - `PluginStateStore.set` gets a new parameter type - `PluginStateStore.delete` gets a new result type - `keys` is removed - `getTask` gets a new parameter list - `PluginPullRequestSummary.draft`, a type that `getPullRequest` returns, is retyped The earlier fixture now also includes a changed and a removed SDK type. I updated the compatibility section of the authoring guide to say how the test reads the source. **F2: escaped front matter** - `docsPageFor` in `scripts/new-plugin.mjs` now writes the label, title and description as JSON strings, which YAML reads back exactly. - The new test in `test/newPlugin.test.mjs` scaffolds a plugin named `Acme "Chat" \ Ops` with a description full of quotes and backslashes. It parses the front matter strictly and checks the values come back unchanged. It also checks that `plugins:check` and the docs drift check still pass. With the old `new-plugin.mjs` this test fails with a YAML parse error. - I also loaded the output with js-yaml, which the docs site uses to read front matter, and it parsed correctly. The catalog page's front matter is fixed text, so it doesn't have this problem. **What I ran:** the contract tests (13 pass, about 9 s, of which reading the sources takes about 2.5 s), the scaffold and docs-generator tests (12 pass), `plugins:check`, `plugins:docs:check`, the shared package typecheck, and a typecheck of the new test files. I did not run the full repository suite or a Docusaurus build. **Still unbound or approximate (I didn't change these):** - Some events have no payload interface in `packages/shared`: `pull_request.opened`, `head_changed`, `auto_merge_decision`, `merged`, `closed`, and `epic_queue.started` and `completed`. Their descriptors are still hand-written, because core builds those payloads without a shared type. - SDK types are compared as exact text. So a change that is actually safe, like widening a parameter type, is reported as breaking and needs `--accept-breaking`. - A new required field in a type the plugin builds itself (`PluginListEventsInput`, `PluginHttpRequestInit`) is reported as an addition, although it would break existing plugins. No visual preview this time; the only visible change is a few sentences in the guide. PR: #3645 Comment by: @integry (ID: 6942538245) Model: Claude Opus 5.5
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR provides the scaffold, generated documentation, compatibility checks, and read-only CLI commands. It needs localized corrections to the compatibility checker before merge. ✅ CLI matches the API — List and detail commands consume the existing response envelopes and test authentication failures, missing plugins, and JSON output. ✅ Documentation drift is checked — CI checks the reference, catalog, schema, and sidebar, with tests covering stale generated files. ✅ Scaffold validation is substantive — Tests exercise generated handlers through lint, typechecking, manifest validation, and the plugin test kit. The supplied current-head status reports 35 passed checks and no failures or pending checks. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Reject newly required SDK input properties
F4: 🔴 Detect newly imposed enum restrictions
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Validate scaffold options before writing
S3: 🟢 Explain the registry test updateThe existing registry tests pin the official plugin list, so adding a scaffold requires updating those expectations. Mentioning that step in the generated next-step message and authoring checklist would make the contributor workflow clearer. The explicitly promised scaffold checks remain independently covered. ScoreThe implementation is well covered and current checks pass, but two compatibility-classification gaps allow breaking changes through the ordinary snapshot update workflow. Both corrections can remain localized. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/ultrafix |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ Applied the requested follow-up changes in commit b2d95a5
Summary of ChangesI fixed F3 and F4. The contract test passes (15 of 15) and F3: required properties added to SDK inputs
F4: unrestricted fields gaining an enum
The "Compatibility rules" section of One thing I found and left alone: the checker records optional members under a different name ( Review digestRisk-tiered paths
Validation evidence
Diff size: 5 files changed, +98/−24 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…`plugins:docs:check` passes. I also checked both fixes the other way round: with the new comparison lines switched off, the two new tests fail.
I fixed F3 and F4. The contract test passes (15 of 15) and `plugins:docs:check` passes. I also checked both fixes the other way round: with the new comparison lines switched off, the two new tests fail.
**F3: required properties added to SDK inputs**
- **What was wrong:** the checker counted every new SDK member as an addition. It couldn't tell objects that ProPR hands to plugins from objects that plugins build and pass in.
- **Which objects count as passed in:** the source reader in `packages/shared/test/support/pluginContractSource.ts` now marks a type as passed in when it is reached through a function parameter. A callback's own parameter flips back, so the value ProPR passes to a plugin's callback still counts as handed to the plugin. Today that marks three interfaces: `PluginListEventsInput`, `PluginHttpRequestInit` (the `init` of the function `ctx.http()` returns) and `PluginHttpSignature`. They are recorded in a new `sdk.suppliedTypes` field, and I regenerated the snapshot to include it.
- **The new rule:** in `packages/shared/src/pluginContract.ts`, a new required member of one of those interfaces is now a breaking change. A new optional member, or any new member of an interface plugins only receive, is still an addition.
- **Tests:**
- `cursor: number` on `PluginListEventsInput` is breaking.
- `cursor?: number` is not.
- A required field on `PluginHttpRequestInit` is breaking.
- A new required field on `PluginCreatedIssue`, which plugins only receive, is not.
- **The update command:** I made the `cursor: number` change for real and ran `npm run plugins:contract:update`. It refused with that breaking change and left the snapshot as it was.
**F4: unrestricted fields gaining an enum**
- `compareManifest` now reports a breaking change when a field with no enum gains one, for example "field name now only accepts …". This covers single-value fields and string lists, since a list's allowed item values are stored on the field itself.
- Removing an enum is still compatible.
- The tests cover `name` and the string list `connections[]{type=oauth}.scopes`, plus the reverse, where removing the enum breaks nothing.
The "Compatibility rules" section of `docs/docs/plugins/authoring.md` and the module comment in `pluginContract.ts` now state both rules. The shared sources and both test files typecheck. The root ESLint config doesn't cover `packages/shared`, so those files had no lint run, and I didn't run the full repository suite. These changes aren't visible in the UI, so I made no previews.
One thing I found and left alone: the checker records optional members under a different name (`cursor?`), so making a required member of a passed-in object optional shows up as a removal and is flagged as breaking. That change is actually compatible, so the check is too strict there, but it doesn't let a real breaking change through.
PR: #3645
Comment by: @integry (ID: 6944339213)
Model: Claude Opus 5.5
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryI resolved the one conflict, in The conflict in
How I resolved it: I kept this PR's version and dropped the hand-written list. Cloudflare and Vercel are already in the merged Why: the point of this PR is that the docs come from the registry and CI checks they are current. Re-adding hand-written entries would undo that, and generating the list keeps the epic's two new pages. Two checks the merge broke without a conflict. The epic added new manifest fields:
Checks run after the fixes:
🤖 Resolution Details
System-triggered merge conflict resolution |
…laude-opus-5-5-plugin-authoring-guide-sc-20261117-0455-agt Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - docs/sidebars.ts PR: #3645 Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryThis looks like a one-off flake, not something this PR broke, so I made no code changes. Re-running the job should clear it. What failed: 1 of 1,439 tests in "Typecheck and test unsigned desktop runtime". The test was Why I think it's a flake:
I couldn't reproduce it locally because GnuPG isn't installed in this container. If it fails the same way again, the next step would be a bounded retry around the key generation in that helper. The whole run now shows as cancelled, so it needs a fresh run, either by re-running that job or with the next push. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR delivers the scaffold, generated documentation, CLI commands, and substantial compatibility coverage. It needs a localized correction before merge: the event contract extractor loses type information that can conceal a breaking payload change. ✅ Read-only CLI integration — List and detail commands match the supplied API response envelopes and include tests for authorization failures, unknown plugins, and JSON output. ✅ Documentation drift checks — CI checks the generated reference, catalog, schema, and sidebar; tests exercise stale files and missing plugin pages. ✅ Scaffold validation — Integration tests check generated handlers against the plugin lint configuration, type checker, and test kit. The supplied current-head status reports 35 passed checks and 12 neutral/skipped checks, with no failures. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F5: 🔴 Preserve undefined in payload contracts
SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Validate before scaffold writes
S5: 🟢 Document registry test updatesThe supplied ScoreThe implementation is well scoped and has substantial test coverage and passing current-head checks. One compatibility enforcement gap remains and should be corrected before merge. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 9376d5d
Summary of ChangesI fixed F5. A required payload or envelope field that is changed to also allow The fix, in The committed snapshot and the descriptors in Regression test, in
With the old descriptor logic put back, the new test fails. Nothing changed is visible to users, so I made no previews. Review digestRisk-tiered paths
Validation evidence
Diff size: 2 files changed, +24/−4 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…anged to also allow `undefined` now fails the contract check. The contract test passes (16 of 16, one more than before), `plugins:docs:check` passes and the test file type-checks. I didn't run the full repository suite. I fixed F5. A required payload or envelope field that is changed to also allow `undefined` now fails the contract check. The contract test passes (16 of 16, one more than before), `plugins:docs:check` passes and the test file type-checks. I didn't run the full repository suite. **The fix**, in `packages/shared/test/support/pluginContractSource.ts`: when the checker reduced a field's type to a descriptor, it used to drop `undefined` from every union. Now it keeps it, written after `null` (for example `number | null | undefined`). It still drops it for optional properties, because there the compiler adds `undefined` itself and the `?` on the key already records that the field can be missing. Array item types keep `undefined` the same way. The committed snapshot and the descriptors in `pluginContract.ts` didn't need to change. None of the current required fields include `undefined`, so the snapshot and consistency tests still pass as they are. **Regression test**, in `packages/shared/test/pluginContract.test.ts`. It edits the real source and checks four cases: - `ReviewScoredEventPayload.score: number | undefined` causes a mismatch with `PLUGIN_EVENT_PAYLOAD_FIELDS` and the breaking change "field score changed type from number to number | undefined". - `goal: number | null | undefined` is also reported as breaking. The existing tests already covered `null`, but not `undefined` added on top of it. - `RepositoryEvent.seq: number | undefined` on the event envelope (one of the other places the same code reads) causes an envelope mismatch and is reported as breaking. - A new optional `rank?: number | undefined` is recorded as `rank?: number` and is not reported as breaking. With the old descriptor logic put back, the new test fails. Nothing changed is visible to users, so I made no previews. PR: #3645 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR implements the scaffold, generated documentation, compatibility checks, and read-only CLI commands with substantial focused coverage. It needs localized corrections before merge. ✅ CLI matches the API — The wrappers use the existing GET routes and response envelopes, with tests covering administrator refusal, missing plugins, and JSON output. ✅ Documentation drift detection — CI checks generated references, catalog, schema, and sidebar entries; tests demonstrate stale-file and missing-page failures. The supplied current-head status reports 34 passed checks, one pending, and no failures. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F6: 🔴 Escape manifest text in generated MDX
F7: 🔴 Snapshot exported SDK signatures
SuggestionsThese are optional follow-ups and are not sent to S6: 🟢 Document the registry test updateThe scaffold registers a new official plugin, but the existing registry tests pin the complete catalog. Mention the required expectation update in the generated next steps and authoring guide. This is optional because AC1 specifically requires the generated test to pass, rather than every existing registry test. ScoreThe implementation is well covered and current checks are encouraging, but valid metadata can break generated documentation and the compatibility guard misses part of the public SDK surface. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 8844fa3
Summary of ChangesI fixed F6 and F7. The contract test now passes 18 of 18, up from 16. The scaffold and docs-generator tests pass 14 of 14, F6: manifest text in generated MDX
F7: exported SDK functions and classes
Separate finding, not fixed: the scaffolded There is no preview: the checked-in docs look the same as before. Review digestRisk-tiered paths
Validation evidence
Diff size: 7 files changed, +220/−18 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…p from 16. The scaffold and docs-generator tests pass 14 of 14, `plugins:docs:check` passes, and the changed files type-check and lint clean. I didn't run the full repository suite.
I fixed F6 and F7. The contract test now passes 18 of 18, up from 16. The scaffold and docs-generator tests pass 14 of 14, `plugins:docs:check` passes, and the changed files type-check and lint clean. I didn't run the full repository suite.
**F6: manifest text in generated MDX**
- There is a new `mdxText` helper in `scripts/gen-plugin-docs.mjs`. It puts a manifest's name or description on one line and backslash-escapes every character Markdown or MDX would read as syntax, such as `<`, `{` and `*`. Table pipes are still escaped by `cell`.
- The catalog uses it in table cells, link labels and the "By category" list. The scaffolded docs page (`scripts/new-plugin.mjs`) uses it in the heading and both bold mentions. Front matter still uses the existing YAML quoting.
- The checked-in plugin docs are unchanged, because no official plugin has any of these characters.
- New tests in `test/newPlugin.test.mjs` scaffold a plugin named `Acme <Cloud> {beta}` with a description containing `<widgets>`, `{templates}`, `*every*`, `[team]` and `&`. One test checks the exact escaped text in the page and the catalog. The other compiles both pages with Docusaurus's MDX compiler, and first checks that the unescaped heading does not compile.
- **Decision for you:** the MDX compiler is only installed with the docs dependencies. Without them that second test is skipped (with a message), so CI probably skips it in the root suite; the escaped-text test still runs. The alternative is adding `@mdx-js/mdx` to the root dev dependencies, which changes the root lockfile. I didn't do that.
- With the escaping switched off, both new tests fail.
**F7: exported SDK functions and classes**
- The contract walk in `packages/shared/test/support/pluginContractSource.ts` now also records what the SDK module exports at runtime:
- Functions, as `definePluginHandler()`, `parsePluginRetryAfter()` and so on, each with its signature.
- Classes, as `PluginSdkError.constructor`, `.code`, `.name` and `extends Error`, and the same for `PluginDeliveryError`.
- Any shared type those signatures name, such as `PluginHandler`, `PluginWebhookRequest` and `PluginWebhookResponse`.
- Any change to one of these is reported as breaking. I recorded the new entries with `plugins:contract:update`; they are all additions, so nothing breaking was accepted.
- One bug turned up while doing this. `definePluginHandler` returns its handler to ProPR, not to the plugin. Treated like any other return value, it made `PluginContext` and the other context types look like things plugins build, which would have wrongly flagged new required members on them as breaking. Return types are now recorded without that marking. The only new plugin-built type is `PluginWebhookResponse`, which a plugin's webhook responder does return.
- New tests change a helper's arguments, a function's return type, a type only a helper reaches, an export removed, the error-class constructors (an option made required, parameters reordered), the `code` property dropped, a member retyped, and `extends Error` removed. Each is reported as breaking, and both tests fail with the export walk switched off.
**Separate finding, not fixed:** the scaffolded `README.md` also puts the name in verbatim. It is ordinary GitHub Markdown rather than MDX, so it doesn't break the docs build, but GitHub would hide a name like `<Cloud>` as an HTML tag. It is outside F6's scope.
There is no preview: the checked-in docs look the same as before.
PR: #3645
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR delivers the scaffold, generated documentation, CLI commands, and substantial compatibility coverage. It needs a localized correction before merge: the contract checker rejects additions that the documented policy explicitly permits. ✅ Read-only CLI integration — Both commands use the existing authenticated GET client and match the supplied API response envelopes, with coverage for authorization failures and missing plugins. ✅ Documentation drift checks — Generation checks the catalog, sidebar, manifest schema, and reference blocks, and rejects missing official plugin pages. This review used static analysis of the supplied diff and context; no commands were run. Current checks show 32 passed, none failed, and two pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F8: 🔴 Permit documented additive contract changes
SuggestionsThese are optional follow-ups and are not sent to S7: 🟢 Validate metadata before writing
ScoreThe implementation is well scoped and extensively tested, but its compatibility updater contradicts an explicit supported workflow. Pending checks are not themselves blockers. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 10ac2cd
Summary of ChangesI fixed F8. Adding an SDK error code or a repository event domain is now recorded as an addition, so The fix (
New test (
Checks I ran:
I didn't find the same exact-text comparison problem anywhere else in the code this PR changed. The remaining Separate from F8 (not changed): any value added to either alias now counts as compatible. That would be wrong if a type plugins supply ever listed one of these aliases exhaustively, such as a Review digestRisk-tiered paths
Validation evidence
Diff size: 2 files changed, +55/−1 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…domain is now recorded as an addition, so `plugins:contract:update` takes it without `--accept-breaking`. Removing one is still a breaking change. The contract test passes 19 of 19, up from 18. The test file and `packages/shared` type-check, and `plugins:docs:check` passes. I didn't run the full repository suite.
I fixed F8. Adding an SDK error code or a repository event domain is now recorded as an addition, so `plugins:contract:update` takes it without `--accept-breaking`. Removing one is still a breaking change. The contract test passes 19 of 19, up from 18. The test file and `packages/shared` type-check, and `plugins:docs:check` passes. I didn't run the full repository suite.
**The fix** (`packages/shared/src/pluginContract.ts`): `comparePluginContract` used to report any change to the stored text of an SDK type as breaking. It now handles one case differently: an alias the extractor stores as `<declared text> = <literal union>`, which is what it does when the alias follows a runtime list. Only `PluginSdkErrorCode` and `RepositoryEventDomain` take that form today. For these aliases:
- If the declared text is unchanged, the values are compared as sets. A new value is an addition (`sdk: type PluginSdkErrorCode now includes "rate_limited"`). A missing value is breaking (`… no longer includes "state_limit"`).
- Any other change is still breaking with the old message. That includes changing the declared text (for example adding `| string`) and any type that isn't a literal union.
**New test** (`packages/shared/test/pluginContract.test.ts`): it edits the real source files rather than the contract lists. It covers:
- adding an error code to `PLUGIN_SDK_ERROR_CODES` and a domain to `REPOSITORY_EVENT_DOMAINS`: no breaking change, and the expected additions are reported.
- removing a code and a domain: both breaking.
- widening the alias to `| string`: breaking.
**Checks I ran:**
- **Old comparison line put back:** the new test fails.
- **Real updater run:** I added `rate_limited` to `pluginSdk.ts` and `deployment` to `repositoryEvents.ts`, then ran `npm run plugins:contract:update` without the flag. It exited 0 and recorded all three additions: the error-code list entry and both alias changes. I then restored both sources and the snapshot.
I didn't find the same exact-text comparison problem anywhere else in the code this PR changed. The remaining `sdk.types` entries are signatures and member types, and changing those is breaking by policy.
**Separate from F8 (not changed):** any value added to either alias now counts as compatible. That would be wrong if a type plugins supply ever listed one of these aliases exhaustively, such as a `{ [D in RepositoryEventDomain]: … }` they must fill in. Nothing in the SDK does that today.
PR: #3645
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR delivers the scaffold, generated documentation, compatibility checks, and read-only CLI commands with substantial targeted coverage. It needs a localized correction before merge: invalid scaffold metadata can leave the repository modified and failing validation. ✅ Read-only CLI integration — The new commands use the existing GET endpoints and handle installation states, removed plugins, JSON output, and authorization failures. ✅ Documentation drift checks — CI checks the generated reference, catalog, schema, and sidebar; tests cover stale outputs and missing plugin pages. This review used static analysis only, as requested. The supplied current-head status reports 31 passed checks, three pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F9: 🔴 Validate scaffold metadata before writing
SuggestionsThese are optional follow-ups and are not sent to S8: 🟢 Explain the registry test updateThe authoring guide’s submission checklist could mention updating the fixed official-plugin expectations in ScoreThe implementation is comprehensive and well covered, but the scaffold’s invalid-input path leaves persistent broken output and requires correction. Pending checks should also complete before merging. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 6edf884
Summary of ChangesI fixed F9: The fix ( The new test (
It then reruns with valid values and checks that the scaffold and docs regeneration succeed. Results: I checked the other ways the scaffold can fail and found no other value that passes the early checks but then fails Two things I noticed but didn't change, since they're outside F9:
I made no visual preview because the change only affects a command-line script and its tests. Review digestRisk-tiered paths
Validation evidence
Diff size: 2 files changed, +34/−2 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…nifest before it writes anything. I fixed F9: `plugins:new` now checks the whole generated manifest before it writes anything. **The fix** (`scripts/new-plugin.mjs`, `scaffoldPlugin`): once the id and category checks pass, the script builds the manifest and runs it through `parsePluginManifest`, the same check `plugins:check` uses. If that fails, it stops before writing any file and lists the schema errors. So an empty, blank or overlong `--name` or `--description` no longer leaves a half-registered plugin that fails `plugins:check` and blocks a corrected rerun. I ran `npm run plugins:new -- acme-chat --name ""` in the checkout. It exits 1 with `name: Too small: expected string to have >=1 characters`, the working tree is unchanged, and `plugins:check` still passes. **The new test** (`test/newPlugin.test.mjs`) covers an empty, blank and 81-character name, and an empty, blank and 501-character description. For each one it checks that: - the command fails with the "nothing was written" message and the right field error. - `registry.json` is byte-for-byte unchanged. - no plugin folder, generated test, docs page, catalog page or `plugin-pages.json` was written. - `checkPlugins` reports no errors. It then reruns with valid values and checks that the scaffold and docs regeneration succeed. **Results:** `test/newPlugin.test.mjs` passes 9 of 9. With the new check switched off, the new test fails, so it does catch the bug. ESLint is clean on both files. I didn't run the full repository suite. I checked the other ways the scaffold can fail and found no other value that passes the early checks but then fails `plugins:check` for the new plugin. The icon, README, id/folder match and homepage are all fixed values the scaffold writes itself. Two things I noticed but didn't change, since they're outside F9: - **Docs regeneration after the write:** if the plugin docs can't be regenerated for some other reason, such as a problem that was already in the repository, the scaffold still fails with the plugin files and `registry.json` already written. - **Surrounding spaces:** a name like `" Acme "` passes the check, because the schema trims it, but it's written with the spaces into the manifest, README and docs page. This is cosmetic; `plugins:check` still passes. I made no visual preview because the change only affects a command-line script and its tests. PR: #3645 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR delivers the scaffold, generated documentation, compatibility checks, and read-only CLI commands with substantial focused coverage. It needs a localized correction to the manifest compatibility guard before merge. ✅ CLI integration — The new commands use the existing authenticated API client and correctly consume the list/detail response envelopes, with tests for authorization failures and missing plugins. ✅ Scaffold validation — Invalid manifest metadata is rejected before files are written; tests also cover generated code, registry placement, and YAML/MDX escaping. ✅ Documentation drift checks — CI checks the reference, catalog, schema, and sidebar against generated output. This review used static analysis only; no commands were run. The supplied current-head status reports 29 passed checks, five pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F10: 🔴 Preserve manifest bounds in compatibility snapshots
SuggestionsThese are optional follow-ups and are not sent to S9: 🟢 Document the registry test updateThe unchanged registry tests pin the official plugin list, so scaffolding a plugin requires updating those expectations before the full suite passes. Mention this in the scaffold’s completion message and authoring checklist. This is optional because the stated scaffold acceptance criterion requires its generated test to pass, rather than the entire registry suite without edits. ScoreThe implementation is cohesive and well covered, but the compatibility guard currently misses a concrete class of breaking manifest changes. The remaining correction is localized; pending checks alone do not lower the score. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 7080e46
Summary of ChangesI fixed F10. If the manifest's limits get tighter without a The fix (in
The snapshot: the old snapshot had no limits, so the updater saw all 118 recorded limits as new and refused. I regenerated it once with Tests (in
Checks I ran:
Found but not fixed (outside F10): regex patterns, I made no preview, since the only visible change is one sentence in the compatibility rules. Review digestRisk-tiered paths
Validation evidence
Diff size: 6 files changed, +553/−83 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… `manifestVersion` bump, the contract check now fails, so the case in the finding (`name` cut from 80 to 40 characters) is caught. Looser limits are still allowed. The contract test passes 22 of 22, up from 19. I didn't run the full repository suite.
I fixed F10. If the manifest's limits get tighter without a `manifestVersion` bump, the contract check now fails, so the case in the finding (`name` cut from 80 to 40 characters) is caught. Looser limits are still allowed. The contract test passes 22 of 22, up from 19. I didn't run the full repository suite.
**The fix** (in `packages/shared/src/pluginContract.ts`):
- **What's recorded:** each manifest field in the contract now carries its length, entry-count and value limits in a new `bounds` entry. That covers min/max length, min/max entries and min/max values, including the exclusive forms.
- **Lists and union fields:** limits on each entry of a list are recorded too (`outboundHosts[]`, for example). For fields that accept several shapes, such as subscription filter values, the limit recorded is the loosest one any shape allows.
- **How changes are judged:** a new or stricter limit is reported as breaking, e.g. `manifest: field name length is now limited to at most 40 instead of at most 80 (a breaking manifest change needs a new manifestVersion)`. A looser or removed limit is reported as an addition. Moving a numeric limit from "at most 500" to "less than 500" counts as stricter.
- **For tests:** `buildPluginContract()` now takes an optional manifest JSON Schema, so tests can change the real schema and rebuild the contract.
**The snapshot:** the old snapshot had no limits, so the updater saw all 118 recorded limits as new and refused. I regenerated it once with `--accept-breaking` and confirmed that apart from the new `bounds` entries it is identical to before.
**Tests** (in `pluginContract.test.ts`):
- **What's recorded:** the snapshot holds the expected limits (single fields, list entries, numeric and union cases), and rebuilding from the unchanged schema gives the same result.
- **Tighter limits fail:** I edited the real JSON Schema to tighten limits on single fields, list sizes, list entries, a numeric field and the union field, plus one new limit. Each produces the expected breaking message. The same edits are allowed under a new manifest version.
- **Looser limits pass:** loosening or removing limits gives no breaking change and is recorded as an addition. One case checks that adding a second, unlimited string shape removes the union's length limit, whichever shape comes first.
- **Fixture:** `breaking-previous.json` now includes tightened length, entry-count and list-entry limits. Its README, the compatibility rules in `authoring.md` and the header comment in `pluginContract.ts` now list "adding or tightening a limit" as a breaking change.
**Checks I ran:**
- **The finding's scenario:** I changed `name` to `textSchema(40)` in `plugins.ts`. The contract test failed, and `npm run plugins:contract:update` refused and left the snapshot alone. Changing it to `textSchema(120)` was recorded as an addition without the flag. I restored both files afterwards.
- **Breaking the fix on purpose:** I tried four versions of the fix with one part broken: no limit comparison, no limits recorded, the earlier version of the union handling, and exclusive limits ignored. The new tests failed each time.
- **Other checks:** `packages/shared` and the test file type-check, `plugins:docs:check` passes, and the docs-generator and scaffold tests pass 15 of 15.
**Found but not fixed (outside F10):** regex patterns, `format` and map-key rules aren't in the contract either, and neither are the cross-field checks in `pluginManifestSchema`. So making a pattern stricter within the same version, for example `^[a-z][a-z0-9_-]{0,47}$` to `{0,31}`, still passes the check.
I made no preview, since the only visible change is one sentence in the compatibility rules.
PR: #3645
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR delivers the scaffold, generated documentation, CLI commands, and substantial contract-test coverage. It needs a localized correction before merge: the payload contract loses literal types and can silently accept a breaking interface change. ✅ CLI integration — The read-only commands match the supplied API response envelopes and cover authentication failures, missing plugins, and JSON output. ✅ Scaffold validation — Manifest validation occurs before writes, and tests exercise generated handlers, lint configuration, typechecking, and documentation escaping. This review used static analysis only; no commands were run. Current checks report 30 passed, four pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F11: 🔴 Preserve literal payload types
SuggestionsThese are optional follow-ups and are not sent to S10: 🟢 Document registry test updatesThe authoring guide should mention the existing catalog-order assertions in S11: 🟢 Render exclusive numeric limits
ScoreThe implementation is well scoped and extensively tested, but a central compatibility guarantee still has a demonstrated blind spot. Correcting the payload representation should be localized. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 41f7c1a
Summary of ChangesI fixed F11. Renaming What changed
The snapshot needed Tests
Docs: the payload rule in the authoring guide's "Compatibility rules" now says a fixed value is never removed or renamed, and that new values are fine. The fixture README and the comments in I made no previews, since the only user-facing change is a sentence of docs text. Found but not fixed (outside F11):
Review digestRisk-tiered paths
Validation evidence
Diff size: 7 files changed, +186/−49 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ewScoredEventPayload.source` now fails the contract check with `field source no longer includes "review"`. The contract test passes 24 of 24, up from 22. I didn't run the full repository suite or a Docusaurus build.
I fixed F11. Renaming `'review'` to `'assessment'` in `ReviewScoredEventPayload.source` now fails the contract check with `field source no longer includes "review"`. The contract test passes 24 of 24, up from 22. I didn't run the full repository suite or a Docusaurus build.
**What changed**
- **The source reader** (`packages/shared/test/support/pluginContractSource.ts`) now keeps literal values for payload and envelope fields, so the snapshot records `source: "review" | "ultrafix"` instead of `string`. Numeric and boolean literals are kept too (`1 | 2`, `true`), and `true` with `false` together is still written as `boolean`.
- **The docs descriptors stay simple.** It also produces a widened copy (`source: string`), and the check against the hand-written descriptors uses that. Those descriptors and the generated docs are unchanged.
- **The comparison** (`compareFields` in `pluginContract.ts`): when only a field's literal values differ, removing or replacing one is a breaking change and adding one is recorded as an addition. This matches how F8 handles error codes and event domains. Any other type change, including widening to `string`, is still a breaking change. A field that gains a value and also becomes optional is still reported as no longer always present.
- **Same defect elsewhere:** the same helper also widened `UltrafixEndedEventPayload.outcome`, the `kind`, `status` and `pullRequest` fields on all task payloads, and the envelope's `domain`. All of these now keep their values. The `domain` field was already protected through the SDK type `RepositoryEventDomain`; it now also reports changes as an envelope field.
**The snapshot needed `--accept-breaking`.** I re-recorded it with `npm run plugins:contract:update -- --accept-breaking`, which accepted 14 entries. They are those fields going from `string` to their declared literal values. The interface itself didn't change.
**Tests**
- New source-edit tests cover:
- the rename from the finding, plus adding a value, making the field optional, and widening to `string`.
- renaming a value in `TASK_EVENT_KINDS`, which breaks all five task payloads through an alias and an inherited field.
- removing `'updated'` from `TaskEventPullRequestOutcome`.
- numeric and boolean literals.
- The breaking-change fixture now has a payload value that was later removed.
- I updated the F8 test, which now also expects the envelope messages for `domain`.
- **Negative check:** with the old widening reader and the HEAD snapshot, exactly the four tests that encode this behaviour fail.
- Also passing: the docs-generator and scaffold tests (15 of 15), `plugins:docs:check`, and the type check of `packages/shared` and the changed test files. ESLint isn't configured for `packages/shared`.
**Docs:** the payload rule in the authoring guide's "Compatibility rules" now says a fixed value is never removed or renamed, and that new values are fine. The fixture README and the comments in `pluginContract.ts` say the same.
I made no previews, since the only user-facing change is a sentence of docs text.
**Found but not fixed (outside F11):**
- Payloads with no shared interface are snapshotted only from the hand-written descriptors. That covers `pull_request.auto_merge_decision`, `epic_queue.started` and a few others, and the compiler never reads them. In core, `opportunity` on `auto_merge_decision` has the literal type `AutoMergeOpportunity`, so renaming one of its values still isn't caught.
- A change to literal values inside an array element (`("a" | "b")[]`) is reported as a type change, so adding a value there would also count as breaking. No current field has this.
PR: #3645
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR is ready to merge within scope. It delivers scaffolding, generated documentation, compatibility checks, and read-only CLI commands with substantial targeted coverage. Review was static; no commands were run. Current-head checks report 35 passed, 12 neutral/skipped, and no failures. ✅ Validated scaffolding — The scaffold validates the complete manifest and checks output collisions before writing; tests cover invalid metadata and generated handler validation. ✅ Consistent CLI integration — The commands use the existing authenticated API client and match the supplied API response envelopes, including removed plugins and administrator refusals. ✅ Documentation drift protection — CI checks generated references, catalog, schema, and sidebar entries; generation also detects missing official-plugin pages. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S12: 🟢 Clarify contract coverage boundaries
S13: 🟢 Document registry test updatesThe scaffold updates ScoreThe implementation satisfies the supplied acceptance criteria, has strong targeted tests, and has no verified merge blockers. The current checks are green; the remaining suggestions are non-blocking maintenance improvements. 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 #3561
Branch:
3561/claude-opus-5-5-plugin-authoring-guide-sc-20261117-0455-agtCommits: ✅ Changes committed (ecb0e20)
AI Processing Completed
Execution Details:
Summary:
I've built everything the issue asks for: the scaffold command, the authoring guide, generated docs checked in CI, contract tests and the two CLI commands. The suites for these changes pass (174 tests), as do
plugins:check,plugins:docs:check, the CLI and plugins typecheck and lint, and a full Docusaurus build with no broken links or anchors. I did not run the full repository suite.Scaffold (
npm run plugins:new -- <id> [--name] [--category] [--description]), inscripts/new-plugin.mjs:packages/plugins/<id>/with a manifest, a README template (setup, permissions, settings, smoke-test checklist, documentation links), an icon and an example handler. The handler counts merged pull requests and skips repeated deliveries.packages/plugins/test/<id>.test.tsthat uses the plugin test kit, plus a docs pagedocs/docs/plugins/<id>.md.registry.jsonafter the official plugins and regenerates the plugin docs.Generated docs (
npm run plugins:docs, with--checkadded to the CI plugins step), inscripts/gen-plugin-docs.mjs:docs/docs/plugins/authoring.mdit fills in the manifest reference (from the zod schema), the event payload table and the SDK reference.scripts/plugin-manifest-descriptions.mjs, or if an official plugin has no docs page. A new manifest field therefore can't ship undocumented.Compatibility rules:
packages/shared/src/pluginContract.tsdescribes the manifest fields, event payloads and SDK surface as data. Compile-time checks keep it matched to the TypeScript types.packages/shared/test/pluginContract.test.tscompares it with a committed snapshot and fails on any breaking change.npm run plugins:contract:update. That script refuses breaking changes unless you pass--accept-breaking.PLUGIN_SUPPORTED_MANIFEST_VERSIONScovers the rule that an old manifest version keeps being read.CLI:
propr plugin listandpropr plugin show <id>, both read-only with--json, using the plugin REST API. Like the Plugins page, they need an instance administrator.Docs: the authoring guide covers every topic the issue lists, with a worked example (I ran its code through the type checker and the test kit), compatibility rules and a "Not yet supported" section. The Plugins sidebar now has the overview, the catalog, one page per official plugin and the authoring guide. I also linked the new pages from the plugins overview and added the commands to the CLI reference.
One thing to know:
packages/plugins/test/registry.test.tslists the official plugins in a fixed order, so after scaffolding a real plugin you must add its id to that test. I left the test alone because it deliberately pins catalog order.I captured the catalog page and three sections of the authoring guide as previews. The manifest reference tables still scroll sideways at desktop width, even after I narrowed them to three columns.
Acceptance criteria
scripts/new-plugin.mjs;test/newPlugin.test.mjsscaffolds a plugin, then runsplugins:check, ESLint with the real plugin-folder config (and confirms that config refuses a core import),tsc, the docs drift check and the generated test, all without edits.scripts/gen-plugin-docs.mjs --checkruns in the plugins step of.github/workflows/pr-build-check.yml;test/genPluginDocs.test.mjsshows it fails on a stale catalog, reference or sidebar.packages/shared/test/pluginContract.test.tscompares againstpackages/shared/test/contracts/plugin-contract.snapshot.json; the fixturepackages/shared/test/fixtures/plugin-contract/breaking-previous.jsonshows each kind of breaking change being reported.packages/cli/src/commands/pluginCommands.tsandpackages/cli/src/api/plugins.ts;packages/cli/src/commands/pluginCommands.test.tsruns them against a local HTTP server that answers like the plugin API, including 404 and 403 cases and--json.docs/sidebars.ts(Plugins section with overview, catalog, one page per plugin fromdocs/plugin-pages.json, and the authoring guide); the docs build succeeds.Review digest
Acceptance criteria (5 of 5 met, as stated by the agent)
The scaffold produces a plugin that passes `plugins:check`, lint and its generated test without edits.—`scripts/new-plugin.mjs`; `test/newPlugin.test.mjs` scaffolds a plugin, then runs `plugins:check`, ESLint with the real plugin-folder config (and confirms that config refuses a core import), `tsc`, the docs drift check and the generated test, all without edits.The generated manifest reference and plugin catalog are checked in CI for drift.—`scripts/gen-plugin-docs.mjs --check` runs in the plugins step of `.github/workflows/pr-build-check.yml`; `test/genPluginDocs.test.mjs` shows it fails on a stale catalog, reference or sidebar.Contract tests for event payloads and the SDK surface exist and fail on a breaking change (demonstrated by a test fixture).—`packages/shared/test/pluginContract.test.ts` compares against `packages/shared/test/contracts/plugin-contract.snapshot.json`; the fixture `packages/shared/test/fixtures/plugin-contract/breaking-previous.json` shows each kind of breaking change being reported.CLI commands work against the API and are covered by CLI tests.—`packages/cli/src/commands/pluginCommands.ts` and `packages/cli/src/api/plugins.ts`; `packages/cli/src/commands/pluginCommands.test.ts` runs them against a local HTTP server that answers like the plugin API, including 404 and 403 cases and `--json`.Docs sidebar has a Plugins section: overview, one page per official plugin, authoring guide.—`docs/sidebars.ts` (Plugins section with overview, catalog, one page per plugin from `docs/plugin-pages.json`, and the authoring guide); the docs build succeeds.Risk-tiered paths
.github/workflows/pr-build-check.yml(+18/−0): CI or workflow filepackage.json(+4/−0): dependency manifestpackages/cli/src/api/plugins.ts(added, +32/−0)packages/cli/src/commands/index.ts(+1/−0)packages/cli/src/commands/pluginCommands.ts(added, +167/−0)packages/cli/src/index.ts(+3/−0)packages/shared/src/index.ts(+1/−0)packages/shared/src/pluginContract.ts(added, +330/−0)scripts/gen-plugin-docs.mjs(added, +313/−0)scripts/new-plugin.mjs(added, +346/−0)scripts/plugin-manifest-descriptions.mjs(added, +121/−0)scripts/update-plugin-contract.mjs(added, +44/−0)docs/docs/features/plugins.md(+20/−0)docs/docs/features/propr-cli.md(+13/−0)docs/docs/plugins/authoring.md(added, +773/−0)docs/docs/plugins/catalog.md(added, +50/−0)docs/plugin-pages.json(added, +10/−0)docs/sidebars.ts(+6/−8)docs/static/schemas/plugin-manifest.v1.schema.json(added, +1,114/−0)packages/cli/src/commands/pluginCommands.test.ts(added, +165/−0)packages/shared/test/contracts/plugin-contract.snapshot.json(added, +897/−0)packages/shared/test/fixtures/plugin-contract/README.md(added, +11/−0)packages/shared/test/fixtures/plugin-contract/breaking-previous.json(added, +28/−0)packages/shared/test/pluginContract.test.ts(added, +108/−0)test/genPluginDocs.test.mjs(added, +95/−0)test/newPlugin.test.mjs(added, +140/−0)Validation evidence
Diff size: 26 files changed, +4,810/−8 lines
Detailed Logs:
790ad2c5-6919-46ad-86ad-fe3d55c75fd2Log files stored at:
/usr/src/app/logs/executions/issue-3561-2026-11-17T05-21-32-150Z-conversation.json/usr/src/app/logs/executions/issue-3561-2026-11-17T05-21-32-150Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3561.
💡 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!
Visual preview
Compatibility rules
The compatibility rules section of the authoring guide
Full-size original
Authoring guide
Top of 'Writing an official plugin' with the npm run plugins:new quick start
Full-size original
Generated manifest reference
The manifest reference section generated from the zod schema
Full-size original
Generated plugin catalog
docs/plugins/catalog: every official plugin with category and one-line description, generated from the manifests; Plugins sidebar with overview, catalog, one page per plugin and the authoring guide
Full-size original