Repository navigation
Conversation
|
The new protected components reject existing language packs as a whole, not just the three components. The description says these components "now ignore plugin translations", but
All five fail with A possible fix: skip these paths in the walk instead of failing it. The components then show Orca's own copy, which matches the description, and a pack still can't relabel Allow and Deny. Packs couldn't have left these keys out, because until now they were translatable. Related: |
stablyai/orca#33069 protects three components outright: the native chat approval card, the Official badge and the file type suggestion banner. The list lives in plugin-language-pack-artifact.ts, not in plugin-translatable-chrome.ts, so build.py and audit-pack.py would have kept those keys and called a pack the engine rejects accepted. Both now read PROTECTED_TRANSLATION_COMPONENTS from the release's engine module, at either of its two paths. audit-pack.py also reads the entry limit there, takes --artifact offline, and stops instead of printing a verdict when the module declares a protection rule it does not model. Releases up to v1.4.239 have no such list, so today's build is unchanged byte for byte.
1e67b57 to
83c3d6f
Compare
e4507f0 to
f429e40
Compare
83c3d6f to
9e00b8c
Compare
f429e40 to
d4473fb
Compare
9e00b8c to
f13d06c
Compare
d63420c to
0ad69ec
Compare
|
An update for the current head Each pack's catalog at the ref submitted to orca-plugins, keys under
Besides Two of the new prefixes reach well past the prompts named in the commit:
The fix from my comment still applies: skip protected paths in the walk instead of failing it. If these components should stay protected, listing the trust keys would keep the rest of the notebook editor and the error page translatable. Dropping the keys ahead of time doesn't help packs either: users on v1.4.240 would lose those translations today, and installs from a pinned Git URL would never get the new pack. |
f13d06c to
3adb64b
Compare
3fedbac to
efe308c
Compare
|
Thanks for loading packs that cover protected copy instead of refusing them. On
The loaded catalogs also pass One small thing for authors: strict mode stops at the first protected path, so |
22f0f85 to
f22dea6
Compare
efe308c to
b04037f
Compare
This comment has been minimized.
This comment has been minimized.
f22dea6 to
6c98339
Compare
3fb174f to
66f6cb3
Compare
6c98339 to
07b68ee
Compare
66f6cb3 to
dca9872
Compare
07b68ee to
324702c
Compare
dca9872 to
c58df2c
Compare
This comment has been minimized.
This comment has been minimized.
…vents by domain capability events:subscribe and the events.subscribe host method are gone; workspace events need workspace:read and agent status needs the new agents:read. Format 1 manifests keep their old names, rewritten on parse.
Events become workspace.created/removed with workspaceId and a kind field, agent status carries workspaceId, and command context/keybinding when use workspace. Format 1 names are rewritten on parse, v1 workers still receive worktree.* handlers, and clients treat any non-global context from older hosts as workspace-scoped.
Format 2 keeps contributes.agents empty like every reserved point; format 1 entries, which Orca never read, are dropped on parse so they stay inert and bind no content.
The page offered Install & enable even with full access off, then failed with a generic error. It now shows the card's 'Turn on in settings' action, names the real reason when main refuses, and drops a stale install error once the full access setting changes.
…it crashed Language packs and other data plugins have no code or logs, so a load failure now reads "Couldn't load its files" on the page and the row instead of "Its code kept crashing".
…n page Built-in actions such as Open Board and Go Back are disabled while Settings covers the app, so Run on the plugin page always failed. Run now closes Settings, commits that synchronously so the dispatcher sees the app view, then runs the action.
…anel approvals Panels get no host method that types into a terminal, yet a panel's approval listed "Type and run commands in your terminals". Format 2 manifests now fail validation when a profile below trusted-worker asks for terminal:send, and approvals, the access section and update review drop that line for format 1 panels that still declare it.
The menu said "Catalog sources…" but the dialog it opens said "Marketplace sources" and asked for orca-marketplace.json. Plugin copy now says catalog in every locale, names orca-catalog.json (still accepting the older file), and the author guide matches the UI. Internal identifiers and settings keys are unchanged.
Update review shows one line per plugin and only what's new for updates that need approval, with the rest behind a See all access disclosure. Consent, Can access, dialogs, settings menu and empty states drop restated titles and filler; safety facts (new access, full access = files/network) stay visible where the user decides.
Plugin app themes now fill a Light theme or Dark theme slot by their base. Orca paints the slot for its current mode, so under System it swaps live with the OS. Appearance shows both pickers grouped by plugin; install fills the matching slot(s) and Switch back restores them. A legacy single selection migrates into its base's slot.
…ate; load language packs that cover protected copy
Menus, popovers, selects, hover cards, sheets and dialogs painted a fixed glass tint (dialogs rgb 23,23,23 in dark mode), so a plugin theme's --popover was ignored and a true-black theme still showed grey dialogs. The tint now lives in --floating-surface / --dialog-surface, which a plugin theme replaces with its --popover.
… of initials The installed carousel pages with its arrows and snap points; the native scrollbar under it only added a stray bar. Format 1 catalog listings (the official catalog until catalog v2 publishes) carry no release types or images, so their cards fell back to a two-letter monogram. Art now reads the kind from catalog categories, and the last fallback is a plugin glyph.
…ls to their catalog Reserved publishers (stablyai, official, anthropic, openai, github, orca*; case-insensitive) and orca-* ids now install only from Orca's official catalog: a Git URL, local folder or any other catalog is refused, and a third-party catalog listing one is refused whole. The rule lives in one import-free module the directory indexer can vendor; validate:plugin uses it too and warns when publisher differs from the origin remote's owner. A marketplace install never replaces one recorded from a different catalog; switching means remove and reinstall. Docs state the publisher == repository owner policy (enforced by the official and community catalog CI, not a new runtime field).
…g an install The chip beside a plugin now says where trust comes from: the Official mark for Orca's catalog, otherwise the catalog name and the owner parsed from its Git URL (github.com/acme, gitlab.com/acme/tools), never manifest text; Dev · unverified for development folders and Unverified for Git URL installs. An installed plugin's page says which other catalogs list it.
…timeout Install and update review each fetch a plugin over Git. On a loaded machine that took 25-30s with or without the publisher checks, past the 10s expect default, so the test read as stalled on Installing…
Shows "Alpha: The plugin interface may change. Expect nuances." under the Plugins title until dismissed; dismissal persists in UI state (pluginsAlphaNoticeDismissed). Localized in all locales, with unit and e2e coverage for show-by-default and dismiss-across-reload. Co-Authored-By: Claude <[email protected]>
…dled installs Removes the bundled copy and its fallback-catalog listing. On startup, bundled bootstrap now uninstalls any previously bundled plugin this release no longer ships, so existing users don't keep a protected entry they cannot remove. Removal code moves to plugin-removal.ts to keep plugin-install.ts under the line limit. Co-Authored-By: Claude <[email protected]>
… review Each save now writes its own uniquely named temp file and treats a rename failure as success when a concurrent writer already produced the same content-addressed file. A cache failure now only drops the image from the preview or catalog refresh instead of failing it.
…w's New list Recipes always counted as new because their commands live in files the manifest diff cannot see. Main now reads what each recipe can run (id, checkout mode, commands) from the installed tree and the preview's staging tree, and only a recipe that runs something new asks for review. An unreadable file still counts as new.
…Colors Theme files gain optional tokenColors (TextMate scope -> foreground/fontStyle). The derived Monaco theme maps them onto Monaco's token names, the plugin-syntax legend and raw TextMate scopes; unreadable colors are dropped.
c58df2c to
67b5e44
Compare
|
Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR. |
ELI5
This tightens the plugin system before it ships. It does two things. It closes several ways a plugin could do more than the person installing it agreed to. It also renames and simplifies the public plugin contract now, while no published plugins depend on the old names yet.
What Changed
Security changes (what a plugin can do)
connect-srcis'none'. The panel shell now removesRTCPeerConnectionbefore plugin code runs, and the main window uses the same WebRTC IP policy as doc preview.-, because ssh reads that as an option. It also rejects a host of.., and provenance parsing rejects..path segments, sostablyai/../evilno longer reads as the official owner.Contract changes (names and formats plugin authors use)
storage→storage:own,secrets→secrets:own.events:subscribeis removed. Workspace events now needworkspace:read, and agent status needs a newagents:read.workspace.created/workspace.removedcarryworkspaceIdand akind. Folder workspaces are not git worktrees, so the old name was wrong for them.instructionalexecution profile is renamed todeclarative.worktree.*events.validate:pluginstill rejects them). Unknown fields in the safety list and in consent requests are dropped instead of rejected. Catalog releasetypesis now optional and is worked out from the other fields.--orca-*CSS variables. Panel icons come from a fixed, documented list.orca,orca-*,official,anthropic,openaiandgithubare reserved.plugin-service.tsandplugin-catalog-release.tswere over the line limit. The runtime policy checks (feature switch, safety list, full access) moved intoplugin-activation-policy.ts, and the catalog type list and its derivation moved intoplugin-catalog-types.ts.Why
When a capability's consent wording doesn't match what it can actually do, the consent is misleading. Typing into a terminal is running commands. A worker is full access. An approval should cover only the bytes and folder the person reviewed. Each fix sits in main or in the panel shell, where it is enforced, and not only in the UI. For example, the repository-move check runs in main, so a renderer that skips its own check still cannot one-click approve an update from a moved repository. For the safety list, a 6-hour timer reuses the existing refresh path and its listeners, so a hit behaves exactly as it does at launch. Polling more often would add network traffic for little gain.
The contract renames happen now because renaming later would break published plugins and older clients forever. Each new field is optional or worked out from other fields because client and host versions update separately. Something required today cannot be dropped later without breaking older clients.
Accepted gap: a panel can still trigger DNS-prefetch lookups. Doc preview already accepts the same risk. Blocking it would mean changing Chromium networking for the whole window, and those lookups cannot carry data back.
Linked Issue
N/A (internal plugin-system work)
Visual Proof
Copy and setting changes only (consent wording, the full-access setting and card label, the moved-repository notice in update review). Screenshots to be attached.
Testing
pnpm tcpasses.Plugin, settings and sidebar unit suites pass. The release-tag test now passes (manifest v2 is gated on 1.4.240, set in feat(plugins): one documented schema for manifests and catalogs, with actionable errors #31087).
New tests: periodic safety-list refresh (picks up a revocation, stops when plugins are off). Installer flags a moved repository but not a different spelling of the same repository (https vs scp, case,
.git). IPC returns needsReview for a moved repository with and without one-click.Schema/doc generation produces no diff.
pnpm run check:code-quality:changed, oxlint on changed files, and the localization checks pass.Plugin e2e specs ran hidden (
ORCA_BACKGROUND_LAUNCH=1), one at a time, on macOS.Automated tests added/updated
Notes