Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 21f59b8

Browse files
Merge branch 'dev' into feat/add-unbound-provider
2 parents a928f29 + af2a099 commit 21f59b8

112 files changed

Lines changed: 3136 additions & 1239 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.opencode/command/ai-deps.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
description: "Bump AI sdk dependencies minor / patch versions only"
3+
---
4+
5+
Please read @package.json and @packages/opencode/package.json.
6+
7+
Your job is to look into AI SDK dependencies, figure out if they have versions that can be upgraded (minor or patch versions ONLY no major ignore major changes).
8+
9+
I want a report of every dependency and the version that can be upgraded to.
10+
What would be even better is if you can give me links to the changelog for each dependency, or at least some reference info so I can see what bugs were fixed or new features were added.
11+
12+
Consider using subagents for each dep to save your context window.
13+
14+
Here is a short list of some deps (please be comprehensive tho):
15+
16+
- "ai"
17+
- "@ai-sdk/openai"
18+
- "@ai-sdk/anthropic"
19+
- "@openrouter/ai-sdk-provider"
20+
- etc, etc
21+
22+
DO NOT upgrade the dependencies yet, just make a list of all dependencies and their versions that can be upgraded to minor or patch versions only.
23+
24+
Write up your findings to ai-sdk-updates.md

SECURITY.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# Security
2+
3+
## Threat Model
4+
5+
### Overview
6+
7+
OpenCode is an AI-powered coding assistant that runs locally on your machine. It provides an agent system with access to powerful tools including shell execution, file operations, and web access.
8+
9+
### No Sandbox
10+
11+
OpenCode does **not** sandbox the agent. The permission system exists as a UX feature to help users stay aware of what actions the agent is taking - it prompts for confirmation before executing commands, writing files, etc. However, it is not designed to provide security isolation.
12+
13+
If you need true isolation, run OpenCode inside a Docker container or VM.
14+
15+
### Server Mode
16+
17+
Server mode is opt-in only. When enabled, set `OPENCODE_SERVER_PASSWORD` to require HTTP Basic Auth. Without this, the server runs unauthenticated (with a warning). It is the end user's responsibility to secure the server - any functionality it provides is not a vulnerability.
18+
19+
### Out of Scope
20+
21+
| Category | Rationale |
22+
| ------------------------------- | ----------------------------------------------------------------------- |
23+
| **Server access when opted-in** | If you enable server mode, API access is expected behavior |
24+
| **Sandbox escapes** | The permission system is not a sandbox (see above) |
25+
| **LLM provider data handling** | Data sent to your configured LLM provider is governed by their policies |
26+
| **MCP server behavior** | External MCP servers you configure are outside our trust boundary |
27+
28+
---
29+
130
# Reporting Security Issues
231

332
We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.

bun.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ case $current_shell in
369369
config_files="$HOME/.config/fish/config.fish"
370370
;;
371371
zsh)
372-
config_files="$HOME/.zshrc $HOME/.zshenv $XDG_CONFIG_HOME/zsh/.zshrc $XDG_CONFIG_HOME/zsh/.zshenv"
372+
config_files="${ZDOTDIR:-$HOME}/.zshrc ${ZDOTDIR:-$HOME}/.zshenv $XDG_CONFIG_HOME/zsh/.zshrc $XDG_CONFIG_HOME/zsh/.zshenv"
373373
;;
374374
bash)
375375
config_files="$HOME/.bashrc $HOME/.bash_profile $HOME/.profile $XDG_CONFIG_HOME/bash/.bashrc $XDG_CONFIG_HOME/bash/.bash_profile"

nix/hashes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"nodeModules": {
3-
"x86_64-linux": "sha256-1l4twtOi/7YYy1KFJME1XazAgTETAfbxB3EOv2qQeVs=",
4-
"aarch64-darwin": "sha256-jdZI3BA/v35er4xgWkI2rHo54D1TDNVhMX83b5BcIvk="
3+
"x86_64-linux": "sha256-4ndHIlS9t1ynRdFszJ1nvcu3YhunhuOc7jcuHI1FbnM=",
4+
"aarch64-darwin": "sha256-C0E9KAEj3GI83HwirIL2zlXYIe92T+7Iv6F51BB6slY="
55
}
66
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"packages/slack"
2222
],
2323
"catalog": {
24-
"@types/bun": "1.3.4",
24+
"@types/bun": "1.3.5",
2525
"@octokit/rest": "22.0.0",
2626
"@hono/zod-validator": "0.4.2",
2727
"ulid": "3.0.1",

packages/app/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
<meta name="theme-color" content="#131010" media="(prefers-color-scheme: dark)" />
1414
<meta property="og:image" content="/social-share.png" />
1515
<meta property="twitter:image" content="/social-share.png" />
16-
<!-- Theme preload script - applies cached theme to avoid FOUC -->
1716
<script id="oc-theme-preload-script" src="/oc-theme-preload.js"></script>
1817
</head>
1918
<body class="antialiased overscroll-none text-12-regular overflow-hidden">
2019
<noscript>You need to enable JavaScript to run this app.</noscript>
21-
<div id="root" class="flex flex-col h-dvh"></div>
20+
<div id="root" class="flex flex-col h-dvh p-px"></div>
2221
<script src="/src/entry.tsx" type="module"></script>
2322
</body>
2423
</html>

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode-ai/app",
3-
"version": "1.1.20",
3+
"version": "1.1.21",
44
"description": "",
55
"type": "module",
66
"exports": {

0 commit comments

Comments
 (0)