opencode/packages
Ryan Vogel e86ed5d0e0 fix(core): limit provider packages from remote sources to known names
A provider's `package` from the Console config (new and legacy formats) and
from the models.dev catalog was used as written. Picking such a model made
OpenCode npm-install and import that package, so whoever controlled the
Console response or the catalog could run any code (npm, git, file or URL
spec) on every connected machine, contradicting the rule that a remote
config can never run commands.

Add Provider.remotePackage: a remote source may only name builtin
@opencode/ai/* packages, official @ai-sdk/* packages, or the third-party AI
SDK providers the catalog already routes through, by bare name (no version,
git, file, URL or path spec). ConfigIntegration.make and the legacy Console
transform drop any other provider or model package, so the provider falls
back to the package it would use without one. models-dev route() skips a
model whose package is not allowed. Local config files still name any
package.

Removed: a Console or catalog entry can no longer name an arbitrary npm
package; such models now use the provider's default package (Console) or are
left out (catalog).

Verified: bun typecheck (core), bun run check (root), models, provider-opencode,
config/provider, config/config, models-dev, provider, aisdk-native and gitlab
test files pass; new cases fail with the predicate disabled and the local
case fails when the predicate is applied to local config.
2026-10-26 14:42:48 -04:00
..
ai ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
app ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
cli ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
client ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
codemode ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
console feat(console): serve apple-app-site-association for iOS pair links (#58540) 2026-10-25 15:53:00 -07:00
core fix(core): limit provider packages from remote sources to known names 2026-10-26 14:42:48 -04:00
desktop ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
effect-drizzle-sqlite sync release versions for v1.18.35 2026-10-06 20:18:36 +00:00
function sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00
gui-extensions ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
http-recorder sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00
httpapi-codegen fix(httpapi-codegen): emit flat Promise input field types (#58875) 2026-10-26 01:33:32 -05:00
identity
latex sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00
merman sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00
patchmark feat(session-ui): replace marked + remend streaming re-lexing with @opencode/patchmark (#57016) 2026-10-19 22:32:18 -07:00
plugin ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
plugin-browser ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
plugins sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00
posts chore: use bun check for local typechecks and TypeScript 7.1 in CI (#58253) 2026-10-23 09:23:31 +10:00
protocol ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
schema ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
script ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
sdk ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
server ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
session-ui fix(session-ui): make question highlight instant and hover-only (#59333) 2026-10-26 11:03:11 -07:00
simulation ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
stats docs(go): add Iceman Contributor Free (#58792) 2026-10-24 13:24:13 -07:00
stories chore: merge beta into dev 2026-10-26 13:56:31 +10:00
theme ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
tui fix(tui): keep pasted text intact when you copy it out of the prompt (#59209) 2026-10-26 09:57:10 -07:00
ui ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
util ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
web sync release versions for v2.1.4 [skip ci] 2026-10-23 10:15:01 +00:00