Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/plugins-v2-16-ship-hardening
branch
from
October 28, 2026 04:59
3fb174f to
66f6cb3
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-17-deeplinks
branch
from
October 28, 2026 04:59
e65190d to
cf38620
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-16-ship-hardening
branch
from
October 28, 2026 05:31
66f6cb3 to
dca9872
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-17-deeplinks
branch
from
October 28, 2026 05:32
cf38620 to
8d70df3
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-16-ship-hardening
branch
from
October 28, 2026 05:46
dca9872 to
c58df2c
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-17-deeplinks
branch
from
October 28, 2026 05:46
8d70df3 to
6d821a4
Compare
orca://plugins/<publisher.id>?catalog=<official|community|git URL> opens Settings -> Plugins at that plugin; it never installs. Plugins off shows Turn on plugins first, an unknown catalog asks before it is fetched, and a malformed link only toasts. Reuses the skill-share deep-link path (open-url, second-instance argv, sidecar handoff) with repeat/burst dedupe, and registers orca:// on packaged Windows, which NSIS leaves unregistered. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
nwparker
force-pushed
the
nwparker/plugins-v2-16-ship-hardening
branch
from
October 28, 2026 10:53
c58df2c to
67b5e44
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-17-deeplinks
branch
from
October 28, 2026 10:53
6d821a4 to
5618bc4
Compare
nwparker
marked this pull request as ready for review
October 28, 2026 12:38
Contributor
Author
|
Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
A plugin author can now put an "Open in Orca" link in their README. When someone clicks it, Orca opens and shows that plugin's page in Settings → Plugins. The link never installs anything: the user still reads the page and presses Install.
What Changed
Link format.
orca://plugins/<publisher>.<id>?catalog=<official | community | catalog Git URL>. Leave outcatalogto use the official catalog.communitypoints athttps://github.com/stablyai/orca-community-plugins.git. Any other value must be an HTTPS or SSH Git URL of at most 512 characters, with no password or token in it, and it is read atmain. Browsers often block custom schemes, so the docs tell authors to link tohttps://onorca.dev/plugins/<publisher>.<id>?catalog=<same value>. That page is a separate piece of work: it will try theorca://link and show install steps if Orca isn't installed. This PR only documents its URL shape.What the user sees
orca://plugins/....How it works
Shared parser (
src/shared/plugins/catalog/plugin-install-link.ts). It caps the link at 2048 characters. The id must be<publisher>.<id>and pass the existing plugin-id checks. It rejects any query parameter other than onecatalog, and rejects fragments. Catalog URLs go through the existingisAllowedPluginGitUrl, so only HTTPS or SSH URLs without credentials get through. A reserved publisher such asstablyaiis accepted only with the official catalog. The installer already enforces this, so an attacker can't use a lookalike catalog to make a fake page.Main process reuses the existing skill-share deep-link path:
open-urlsecond-instanceargv, plus cold-start argvSkillShareDeepLinkStatebecame a small genericPendingDeepLinkState, which both link types now use. It ignores the same link repeated within 3 seconds and allows at most 5 links in that window.Bringing the window forward. This goes through the existing desktop-activation gate, which already raises the window only for real user launches and never for background or test launches.
Windows registration. electron-builder writes
orca://into the macOS app bundle and the Linux desktop entry, but the Windows installer does not register it. Packaged Windows desktop launches now callsetAsDefaultProtocolClient('orca')once. Dev, test, serve and background launches never call it.Renderer. The parsed link waits in the existing plugin page-request store, the same one file-type suggestions use. The plugin catalog view picks it up once its catalogs have loaded, so a link that arrives while plugins are off is kept until they're turned on. A new dialog handles the unknown-catalog question.
Docs. There is a new "Install links" section in
docs/reference/plugin-catalog.md, generated fromplugin-schema-policy-notes.ts. It covers the format, the rules, the https page shape and a README snippet you can copy.Why
Linked Issue
N/A (maintainer stack)
Visual Proof
Plugins off, after clicking a link (the earlier malformed link left its toast in the corner):

The plugin page after Turn on plugins. Nothing is installed:

A link that names an unknown catalog:

The screenshots come from a hidden window in the e2e test below.
Testing
Unit tests:
plugin-install-link.test.ts: parsing, the length, charset, credential and reserved-publisher checks, and Windows/Linux argv.plugin-install-link-state.test.ts: repeat and burst dedupe, cold-start and second-instance capture, and which URLs macOSopen-urlclaims.orca-protocol-registration.test.ts: registers only on packaged Windows desktop launches.use-plugin-install-link.test.tsx: routing to the page, keeping the link while plugins are off, the unknown-catalog confirm and cancel, and a check thatinstallMarketplacePluginis never called.macos-desktop-handoff.test.ts: the hand-off now carries the plugin link.Hidden e2e,
tests/e2e/plugin-install-link.spec.ts. It delivers the link by emitting main'sopen-urlevent, so no protocol is registered on the test machine, and it runs withORCA_BACKGROUND_LAUNCH=1. It covers the malformed-link toast, plugins off then Turn on then the plugin page, no install, the unknown-catalog prompt, and that Cancel adds no catalog.plugin-file-type-suggestion.spec.tsstill passes after its catalog fixture moved into a shared helper.pnpm tc, oxlint,check:code-quality:changedand the localization sync and coverage checks all pass.Tested on macOS only. Windows protocol registration and second-instance argv are covered by unit tests only.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)