Repository navigation
[3552 by Claude Opus 5.5] Plugin slash commands: write authorization, handler commands and shared command ownership - #3581
Conversation
… name across plugins. Everything I ran passes: the plugin, extension and OpenAPI suites, the 21 root suites that load the changed comment-intake and job code, `plugins:check`, the Plugins page UI tests, typechecks for every package, and zero-warning lint on the changed files. I did not run the full repository suite or the Playwright suite (the Plugins page end-to-end tests). Write access (`needsWrite`) - Such a command runs only when two things hold: - An administrator switched on "Allow this command to use write access" for it on the Plugins page. It is off at install. - The commenter has write, maintain or admin permission on the repository. - Otherwise ProPR replies saying which of the two is missing, and nothing starts. - When the command is accepted, ProPR records a write grant tied to that plugin, command, repository and issue or PR number. The run uses it up when it starts, through the extension library's existing write-authorization path. A retry of the run or a later follow-up finds it used and gets read servers only. - The grant covers only the plugin's own write servers that the command names. I added an optional `writeServers` limit to the extension request so other write servers in the library stay out. Without that, switching write on would also have brought in every other auto-applied write server. Handler commands (`kind: 'handler'`) - The comment's repository, number, commenter and argument are queued as a delivery of kind `command` and shown in the plugin's Activity. - The delivery id comes from the comment id, so a redelivered comment is queued once. - A new runner in the daemon runs these deliveries with the same retry schedule as events, and waits while the plugin's deliveries are paused. The handler gets the full `ctx`, so it can comment back through `ctx.propr` and call out with `ctx.http`. - Failed command deliveries have no Retry button; posting the command again runs it again. Shared command names - A command can be marked `shared`. The manifest check and `plugins:check` require each plugin that does so to also declare a specific command of the same kind. - Enabling two plugins with the same name is allowed only when both mark it shared. - The plain name runs the only enabled plugin offering it, or the owner an administrator chose. With several and no owner, it replies naming the specific commands. Plugins page - A new Commands section has the write switch and the shared-owner choice, with who changed each and when. - Both changes are recorded in the audit trail. An owner change is also recorded on the previous and new owner plugins. - The Install step explains which commands can use write access and that they start off. - Two new admin-only routes back this: `PUT …/commands/<name>/write` and `PUT …/commands/<name>/owner`. - One new migration holds the command settings, shared owners, write grants and the command delivery input. The example plugin gains `/example-status`, a handler command that logs who ran it and where. Two fixture plugins, `fixture-deploy-one` and `fixture-deploy-two`, each offer a shared `/deploy`, and the first also has a `needsWrite` command with a write server. I checked that the main write test fails if the `writeServers` limit is removed. Previews of the Commands section, the install text and a command delivery in Activity are attached. Acceptance criteria - AC1: met — `packages/core/src/plugins/pluginCommands.ts`, `pluginCommandSettings.ts`, `src/jobs/pluginCommandTask.ts`, `packages/shared/src/extensionLibrary.ts`; `packages/core/test/pluginCommandAuthorization.test.ts`, `test/pluginCommandWriteGrant.test.ts` - AC2: met — `packages/core/src/plugins/pluginCommandDeliveries.ts`, intake in `issueCommentCommands.ts` and `commentEventHandler.ts`; `pluginCommandAuthorization.test.ts` (handler gets repo, number, commenter and argument, comments back through `ctx.propr`, delivery shows in Activity), `test/pluginCommandIntake.test.ts`, `PluginActivity.test.tsx` - AC3: met — `choosePluginCommand` and `sharedCommandChoiceMessage` in `pluginCommands.ts`, `scripts/check-plugins.mjs`; `pluginCommandAuthorization.test.ts` (two plugins share `/deploy`), `test/checkPlugins.test.mjs`, `packages/shared/test/plugins.test.ts` - AC4: met — `PluginStore.setCommandWrite` and `setSharedCommandOwner`, `packages/api/routes/pluginRoutes.ts`, `propr-ui/src/pages/PluginsPage/PluginCommandSettings.tsx`; `packages/api/test/pluginCommandRoutes.test.ts` (admin only, audited), `PluginCommandSettings.test.tsx` - AC5: met — `docs/docs/features/pr-commands.md` and `docs/docs/features/plugins.md`
|
/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 implements write grants, handler command delivery, shared command ownership, and administrator controls with substantial test coverage. It needs changes before merging because paused deliveries can block unrelated plugins, and shared-command redelivery can execute the same comment twice. ✅ Scoped write access — Write grants are consumed once, and ✅ Administrator controls — The new routes enforce administrator access, validate requests, and audit changes, including shared-owner changes on affected plugins. ✅ Current checks pass — The supplied authoritative status reports 35 passed checks, no failures, and no pending checks. This review uses static analysis of the supplied diff and context; no commands or tests were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Paused deliveries starve unrelated plugins
F2: 🔴 Shared-owner changes defeat comment deduplication
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Explicit shared-command alternatives
ScoreThe implementation covers the main features and has passing current-head checks, but two reproducible delivery defects require localized corrections 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 e44fd22
Summary of ChangesI fixed both findings. The new tests pass, and each one fails when I take its fix back out. F1: paused plugins no longer block other plugins' commands
F2: a redelivered command comment runs once, even after the shared owner changes
Tests (in
Checks run
The root suites hit the container's read-only Separate issue, not fixed: a delivery id is The change has nothing visible in the UI, so there are no previews. Review digestRisk-tiered paths
Validation evidence
Diff size: 4 files changed, +103/−5 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ls when I take its fix back out. I fixed both findings. The new tests pass, and each one fails when I take its fix back out. **F1: paused plugins no longer block other plugins' commands** - In `packages/core/src/plugins/pluginCommandDeliveries.ts`, the runner now drops command deliveries of any plugin whose deliveries are paused before it takes the batch of 20. A paused plugin's records can no longer fill every batch. - Those records stay pending and run after Resume. The existing pause check inside `attempt` is still there, for a pause that lands after the batch was read. **F2: a redelivered command comment runs once, even after the shared owner changes** - The migration now adds a `plugin_command_acceptances` table. It is keyed by the comment's delivery id only (`cmd-<target>-<comment id>`), not by plugin, and records which plugin got the command. - `enqueuePluginCommandDelivery` writes this row in the same transaction as the delivery. If the row already exists, the comment counts as a duplicate and nothing is recorded, whichever plugin the command resolves to now. - Both routes for handler commands go through this one function: the issue branch the finding names, and the pull request branch. On pull requests, the existing Redis claim only blocked a redelivery until that claim expired. - Uninstalling a plugin deletes its delivery records but not these rows, so a redelivery after an uninstall is also a duplicate. - The hourly cleanup (`prunePluginDeliveries`) now also deletes these rows once they are past the 14-day retention and have no delivery record left. - I checked the other comment-command routes. They already key their duplicate checks by comment, not by plugin, so they don't have this defect. **Tests** (in `packages/core/test/pluginCommandAuthorization.test.ts`) - **F1:** a paused plugin has more due commands than one batch holds, all older than another plugin's command. The other plugin's command still runs, and the paused ones all run after Resume. - **F2:** the owner of `/deploy` is changed from Deploy one to Deploy two. Redelivering the original comment is a duplicate and Deploy two records nothing. It is still a duplicate after Deploy one is uninstalled, and a new comment is accepted as normal. - **Cleanup:** a row whose delivery records are gone is deleted after retention, and one whose delivery is still pending is kept. **Checks run** - That test file plus the three plugin dispatcher suites. - `test/pluginCommandIntake.test.ts`, `test/pluginCommandWriteGrant.test.ts`, and the API plugin route suites (commands, activity, plugins, webhooks). - Core typecheck, and zero-warning lint on the changed source files. The root suites hit the container's read-only `/tmp/git-processor` on the first run. I reran them with writable clone and worktree paths and they passed. I did not run the full repository suite. **Separate issue, not fixed:** a delivery id is `cmd-<target>-<comment id>`. GitHub numbers pull request review comments separately from conversation comments. If review comments ever run plugin commands, a review comment and a conversation comment with the same number on a pull request would share an id. This predates these fixes and I left it alone. The change has nothing visible in the UI, so there are no previews. PR: #3581 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 write authorization, handler deliveries, shared command ownership, and administrator controls with substantial coverage. It needs a localized correction before merge: shared-command alternatives can point users to unrelated operations. ✅ Scoped write access — Grant consumption is single-use, and ✅ Durable handler deduplication — Acceptance and delivery records are written transactionally; acceptance survives owner changes and uninstall. ✅ Protected administration — Both new settings routes enforce administrator access and record changes in the audit trail. The supplied current-head checks report 35 passed, none failed, and none pending. This review uses static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 AC3 alternatives can invoke unrelated commands
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Clarify delivery versus execution deduplicationThe new handler documentation says redelivery “does not call the handler twice,” while the runner intentionally provides at-least-once execution and retries failures. Clarify that comment redelivery does not create another delivery, but one delivery may execute repeatedly; recommend using ScoreThe implementation has strong authorization and persistence protections, broad tests, and passing current-head checks. Incorrect shared-command alternatives remain a localized merge blocker. 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 08a5508
Summary of ChangesI fixed F3. A shared command now lists its alternatives itself, and ProPR no longer guesses them. Before, any command of the same kind that worked in the same places counted as an alternative, so The fix (
Fixtures and docs
Tests
What I ran, all passing
The dispatcher and intake files only run with Node's test module mocks turned on, and the intake file also needs a writable git clone directory in this container. The API route tests finish their checks but the process then doesn't exit, so I cut those runs off with a timeout after reading the results. The Plugins page looks the same, so I made no previews. Review digestRisk-tiered paths
Validation evidence
Diff size: 9 files changed, +98/−32 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…elf, and ProPR no longer guesses them. Before, any command of the same kind that worked in the same places counted as an alternative, so `/status` could stand in for `/deploy`. I fixed F3. A shared command now lists its alternatives itself, and ProPR no longer guesses them. Before, any command of the same kind that worked in the same places counted as an alternative, so `/status` could stand in for `/deploy`. **The fix** (`packages/shared/src/plugins.ts`) - **New `specific` field:** a shared command must list its alternatives in it, for example `"shared": true, "specific": ["deploy-one"]`. - **What counts as an alternative:** each command listed must exist in the same plugin and not be shared itself. It must also be of the same kind and work everywhere the shared name does. For handler commands it must also call the same handler, so `/status` calling `reportStatus` is refused as an alternative for `/deploy` calling `deploy`. Listing the same command twice is refused. A command that isn't shared can't have a `specific` list. - **One source everywhere:** `pluginSharedCommandSiblings` now returns only the listed alternatives that pass those checks. It feeds every place that shows alternatives, so they all agree: manifest validation, `plugins:check`, the plugin's public command list, the owner choices on the Plugins page, and the reply ProPR gives when several plugins offer the name. **Fixtures and docs** - Both deploy fixtures now list their own deploy command in `specific`. - `fixture-deploy-one` gains `/deploy-one-status`, a handler command calling a different handler that is not an alternative to `/deploy`. - `docs/docs/features/plugins.md` and the comment in `scripts/check-plugins.mjs` describe the new field. **Tests** - `packages/shared/test/plugins.test.ts`: the old test expected the unrelated `/notify` among the `/deploy` alternatives. It now expects only the listed command, and one rule-breaking case per check above is refused. A new test checks that a same-kind command with another handler is not accepted as an alternative, whether or not it is listed. - `test/checkPlugins.test.mjs`: `plugins:check` now refuses a plugin whose only other command is unrelated. - `packages/core/test/pluginCommandAuthorization.test.ts` was not edited, but with the new fixture command it now catches the bug. When I put the old matching back, its check on the ambiguity reply and the owner choices fails, because `/deploy-one-status` shows up there. - `packages/api/test/pluginCommandRoutes.test.ts`: the expected command list now includes the new fixture command. **What I ran, all passing** - Shared plugin tests, `checkPlugins.test.mjs` (23) and `plugins:check`. - The core plugin suites: 112 tests, plus 33 dispatcher tests. - The API plugin route tests and `test/pluginCommandIntake.test.ts` (57). - The Plugins page command settings UI test (3), and typechecks for shared and core. The dispatcher and intake files only run with Node's test module mocks turned on, and the intake file also needs a writable git clone directory in this container. The API route tests finish their checks but the process then doesn't exit, so I cut those runs off with a timeout after reading the results. The Plugins page looks the same, so I made no previews. PR: #3581 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 substantially implements write authorization, handler deliveries, shared command ownership, and administrator controls. It needs a localized correctness fix before merging. ✅ Restricted write grants — Grants are consumed once, and ✅ Administrative controls — Both settings routes enforce durable administrator authorization and record changes in the audit trail. ✅ Shared command validation — Shared names require explicit, valid specific commands, with tests covering ownership and ambiguity. This review used static analysis of the supplied code; no commands were run. Current checks report 29 passed, five pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Distinguish GitHub comment resource types
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Clarify at-least-once handler executionThe documentation says redelivery “does not call the handler twice,” while the runner intentionally retries failures and recovers stale running attempts. Clarify that comment acceptance is deduplicated but handler execution is at least once, and recommend using ScoreThe implementation has substantial coverage and clear authorization boundaries, but comment identity collisions can silently discard legitimate commands. The remaining checks are pending, with no reported failures. 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 30bb794
Summary of ChangesI fixed F4. An issue comment and a pull request review comment with the same number are now two separate commands, each gets its own delivery, and a redelivery of either one is still dropped. What changed
Tests
Separate issue (not fixed): before the database check, the PR comment intake takes a Redis claim keyed There's nothing visible to preview, so I made no preview images. Review digestRisk-tiered paths
Validation evidence
Diff size: 12 files changed, +123/−34 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ent with the same number are now two separate commands, each gets its own delivery, and a redelivery of either one is still dropped. I fixed F4. An issue comment and a pull request review comment with the same number are now two separate commands, each gets its own delivery, and a redelivery of either one is still dropped. **What changed** - **Intake:** a handler command now passes along which kind of comment it came from: `issue` (on an issue or a PR's conversation) or `review` (a PR line comment). On a pull request this is worked out with the existing `isReviewComment` check (`commentEventHandler.ts:813`); comments on an issue are always `issue` (`issueCommentCommands.ts`). - **Delivery id:** the id, which is also the acceptance key, now includes the comment kind: `cmd-issue-<id>` or `cmd-review-<id>` (`pluginCommandDeliveries.ts`). - **Existing acceptance records:** issue ids are unchanged, so old records still match exactly. The old pull request id `cmd-pull_request-<id>` is never written now. If one already exists, a new comment of either kind with that number is treated as a duplicate. Those old records can't say which kind of comment they were, so I chose to drop a possible repeat rather than risk running it twice. No new migration was needed. - **Docs:** I updated the delivery-id format in the SDK comment, the OpenAPI description (regenerated the client types and the YAML), the migration comment and `docs/docs/features/plugins.md`. I also updated a delivery id in the UI test fixture. **Tests** - New core tests (in `pluginCommandAuthorization.test.ts`): - An issue comment and a review comment with the same number, for different plugins and repositories, both get accepted and both handlers run. Each redelivery is dropped, even when it would now go to a different plugin. - An old `cmd-pull_request-<id>` record still blocks both kinds of comment, and an old `cmd-issue-<id>` record is still the same record. - New intake test (in `test/pluginCommandIntake.test.ts`): a review comment numbered like an earlier issue comment is accepted as `review`. Its redelivery is dropped even when the Redis claim is gone, because the recorded acceptance still blocks it. - I checked each new test fails when its fix is taken back out. - **Results:** - `pluginCommandAuthorization.test.ts` passes (12 of 12). - `pluginCommandIntake.test.ts` passes (58 of 58). It needs writable `GIT_CLONES_BASE_PATH`/`GIT_WORKTREES_BASE_PATH` in this container. - The `PluginActivity` UI test passes. - The TypeScript checks for shared, core and the root project pass. - `gen:openapi:check` passes. - Lint with zero warnings is clean on the changed core and api files. - I did not run the full repository suite. **Separate issue (not fixed):** before the database check, the PR comment intake takes a Redis claim keyed `pr-comment-processed:<owner>:<repo>:<pr>:<comment id>`, which doesn't include the comment kind. So on the *same* pull request, a review comment whose number matches an earlier issue comment would still be dropped there. That key existed before this PR and is shared with the built-in commands and comment polling, which rely on it to avoid handling a comment twice. Changing it only for plugin commands would break that, so this needs its own fix across all of those paths. The new intake test uses a second pull request for that reason. There's nothing visible to preview, so I made no preview images. PR: #3581 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 write-authorized prompt commands, durable handler deliveries, shared command ownership, and administrator controls. The supplied diff supports AC1–AC5. No merge blocker was verified through static review; merge readiness is conditional on the three pending checks completing successfully. ✅ Scoped write authorization — Grants are consumed once, and ✅ Durable command deduplication — Transactional acceptances prevent handler redelivery across shared-owner changes and uninstall, while distinguishing issue comments from review comments. ✅ Administrative controls — Both settings routes enforce administrator authorization, validate their inputs, and record audited changes. No commands or tests were run during this review, as requested. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Exercise competing command runnersAdd coverage for two ScoreThe implementation addresses the requested behavior with substantial authorization, delivery, API, and UI coverage. The supplied current-head status reports no failures, with three checks still pending. Score: 8/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 #3552
Branch:
3552/claude-opus-5-5-plugin-slash-commands-wri-20261116-0911-db6Commits: ✅ Changes committed (f8853e4)
AI Processing Completed
Execution Details:
Summary:
Plugin commands can now use write access, call a handler, and share a name across plugins. Everything I ran passes: the plugin, extension and OpenAPI suites, the 21 root suites that load the changed comment-intake and job code,
plugins:check, the Plugins page UI tests, typechecks for every package, and zero-warning lint on the changed files. I did not run the full repository suite or the Playwright suite (the Plugins page end-to-end tests).Write access (
needsWrite)writeServerslimit to the extension request so other write servers in the library stay out. Without that, switching write on would also have brought in every other auto-applied write server.Handler commands (
kind: 'handler')commandand shown in the plugin's Activity.ctx, so it can comment back throughctx.proprand call out withctx.http.Shared command names
shared. The manifest check andplugins:checkrequire each plugin that does so to also declare a specific command of the same kind.Plugins page
PUT …/commands/<name>/writeandPUT …/commands/<name>/owner.The example plugin gains
/example-status, a handler command that logs who ran it and where. Two fixture plugins,fixture-deploy-oneandfixture-deploy-two, each offer a shared/deploy, and the first also has aneedsWritecommand with a write server. I checked that the main write test fails if thewriteServerslimit is removed. Previews of the Commands section, the install text and a command delivery in Activity are attached.Acceptance criteria
packages/core/src/plugins/pluginCommands.ts,pluginCommandSettings.ts,src/jobs/pluginCommandTask.ts,packages/shared/src/extensionLibrary.ts;packages/core/test/pluginCommandAuthorization.test.ts,test/pluginCommandWriteGrant.test.tspackages/core/src/plugins/pluginCommandDeliveries.ts, intake inissueCommentCommands.tsandcommentEventHandler.ts;pluginCommandAuthorization.test.ts(handler gets repo, number, commenter and argument, comments back throughctx.propr, delivery shows in Activity),test/pluginCommandIntake.test.ts,PluginActivity.test.tsxchoosePluginCommandandsharedCommandChoiceMessageinpluginCommands.ts,scripts/check-plugins.mjs;pluginCommandAuthorization.test.ts(two plugins share/deploy),test/checkPlugins.test.mjs,packages/shared/test/plugins.test.tsPluginStore.setCommandWriteandsetSharedCommandOwner,packages/api/routes/pluginRoutes.ts,propr-ui/src/pages/PluginsPage/PluginCommandSettings.tsx;packages/api/test/pluginCommandRoutes.test.ts(admin only, audited),PluginCommandSettings.test.tsxdocs/docs/features/pr-commands.mdanddocs/docs/features/plugins.mdReview digest
Acceptance criteria (5 of 5 met, as stated by the agent)
`needsWrite` commands are refused unless the administrator switch is on and the commenter has write permission; when allowed, the write server is exposed to that run only (not to a retry or a later follow-up).—`packages/core/src/plugins/pluginCommands.ts`, `pluginCommandSettings.ts`, `src/jobs/pluginCommandTask.ts`, `packages/shared/src/extensionLibrary.ts`; `packages/core/test/pluginCommandAuthorization.test.ts`, `test/pluginCommandWriteGrant.test.ts`A `handler` command invokes the handler with repository, number, commenter and argument; the handler can comment back through `ctx.propr`; the delivery appears in Activity.—`packages/core/src/plugins/pluginCommandDeliveries.ts`, intake in `issueCommentCommands.ts` and `commentEventHandler.ts`; `pluginCommandAuthorization.test.ts` (handler gets repo, number, commenter and argument, comments back through `ctx.propr`, delivery shows in Activity), `test/pluginCommandIntak…With two plugins offering a shared command: specific commands work, the plain name follows the instance setting, and with no setting the reply names the specific commands.—`choosePluginCommand` and `sharedCommandChoiceMessage` in `pluginCommands.ts`, `scripts/check-plugins.mjs`; `pluginCommandAuthorization.test.ts` (two plugins share `/deploy`), `test/checkPlugins.test.mjs`, `packages/shared/test/plugins.test.ts`The per-command write switch and the shared-command owner are editable on the Plugins page by administrators only and recorded in the audit trail.—`PluginStore.setCommandWrite` and `setSharedCommandOwner`, `packages/api/routes/pluginRoutes.ts`, `propr-ui/src/pages/PluginsPage/PluginCommandSettings.tsx`; `packages/api/test/pluginCommandRoutes.test.ts` (admin only, audited), `PluginCommandSettings.test.tsx`Docs: `docs/docs/features/pr-commands.md` and `docs/docs/features/plugins.md`.—`docs/docs/features/pr-commands.md` and `docs/docs/features/plugins.md`Risk-tiered paths
packages/core/src/db/migrations/20261116120000_plugin_command_settings.js(added, +62/−0): database migrationpackages/api/openapi/routeDocsPlugins.ts(+8/−2)packages/api/openapi/schemasPlugins.ts(+21/−7)packages/api/pluginRouteRegistry.ts(+2/−0)packages/api/routes/pluginRoutes.ts(+5/−0)packages/client/src/generated/apiTypes.ts(+77/−13)packages/core/src/agents/types.ts(+2/−0)packages/core/src/extensions/extensionLaunch.ts(+2/−1)packages/core/src/extensions/extensionProfileStore.ts(+3/−2)packages/core/src/index.ts(+10/−1)packages/core/src/plugins/pluginCommandDeliveries.ts(added, +187/−0)packages/core/src/plugins/pluginCommandSettings.ts(added, +144/−0)packages/core/src/plugins/pluginCommands.ts(+139/−30)packages/core/src/plugins/pluginStore.ts(+29/−1)packages/core/src/webhook/commentEventHandler.ts(+17/−5)packages/core/src/webhook/issueCommentCommands.ts(+13/−2)packages/plugins/example-pack/handlers.ts(+12/−1)packages/plugins/example-pack/manifest.json(+7/−0)packages/shared/src/extensionLibrary.ts(+9/−1)packages/shared/src/pluginDeliveries.ts(+6/−4)packages/shared/src/pluginInstallations.ts(+31/−1)packages/shared/src/pluginSdk.ts(+11/−1)packages/shared/src/plugins.ts(+60/−11)propr-ui/src/api/pluginsApi.ts(+8/−0)propr-ui/src/pages/PluginsPage/PluginActivity.tsx(+12/−5)propr-ui/src/pages/PluginsPage/PluginCommandSettings.tsx(added, +88/−0)propr-ui/src/pages/PluginsPage/PluginContributions.tsx(+8/−4)propr-ui/src/pages/PluginsPage/PluginDetail.tsx(+3/−1)propr-ui/src/pages/PluginsPage/pluginFixtures.testUtils.tsx(+1/−1)propr-ui/src/pages/PluginsPage/pluginUi.ts(+13/−1)propr-ui/src/pages/PluginsPage/usePluginDetail.ts(+6/−2)scripts/check-plugins.mjs(+8/−5)src/daemon/pluginEventDispatch.ts(+10/−6)src/jobs/issueJob/agent.ts(+4/−2)src/jobs/pluginCommandTask.ts(+46/−0)src/jobs/processPullRequestCommentJob.ts(+6/−3)docs/docs/features/plugins.md(+112/−14)docs/docs/features/pr-commands.md(+28/−4)docs/static/openapi/propr-api.yaml(+287/−12)packages/api/test/pluginActivityRoutes.test.ts(+2/−1)packages/api/test/pluginCommandRoutes.test.ts(added, +119/−0)packages/api/test/pluginRoutes.test.ts(+2/−1)packages/api/test/pluginWebhookRoutes.test.ts(+2/−1)packages/core/test/fixtures/plugins/fixture-deploy-one/handlers.ts(added, +21/−0)packages/core/test/fixtures/plugins/fixture-deploy-one/manifest.json(added, +22/−0)packages/core/test/fixtures/plugins/fixture-deploy-two/handlers.ts(added, +21/−0)packages/core/test/fixtures/plugins/fixture-deploy-two/manifest.json(added, +22/−0)packages/core/test/fixtures/plugins/registry.json(+3/−1)packages/core/test/helpers/pluginHandlerFixture.ts(+2/−1)packages/core/test/pluginCommandAuthorization.test.ts(added, +274/−0)Validation evidence
Diff size: 61 files changed, +2,297/−158 lines
Detailed Logs:
ad0a2f5c-a562-4a09-aa04-b75987034793Log files stored at:
/usr/src/app/logs/executions/issue-3552-2026-11-16T09-47-55-845Z-conversation.json/usr/src/app/logs/executions/issue-3552-2026-11-16T09-47-55-845Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3552.
💡 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
Command delivery in Activity
A handler command delivery (command.example-status to reportCommand) in the plugin's Activity, with the repository and the pull request it was posted on.
Full-size original
Install step explains write access
Before installing, What it adds says the needsWrite command stays off until an administrator allows it, and describes handler and shared commands.
Full-size original
Commands section on the plugin page
The new Commands section after an administrator switched on "Allow this command to use write access" for /example-release and chose which plugin the shared /deploy runs; What it added now shows handler commands, shared names and the write state.
Full-size original
Commands section on a phone
The Commands section and a command delivery in Activity at 390 px width.
Full-size original