Skip to content

Commit bc3e8f6

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into dev
2 parents a7ae33b + 93e52f7 commit bc3e8f6

408 files changed

Lines changed: 16438 additions & 31104 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.

.github/actions/setup-bun/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ runs:
55
steps:
66
- name: Setup Bun
77
uses: oven-sh/setup-bun@v2
8+
with:
9+
bun-version-file: package.json
810

911
- name: Cache ~/.bun
1012
id: cache-bun
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Auto-label TUI Issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
auto-label:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
issues: write
13+
steps:
14+
- name: Add opentui label
15+
uses: actions/github-script@v7
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
script: |
19+
const issue = context.payload.issue;
20+
const title = issue.title;
21+
const description = issue.body || '';
22+
23+
// Check for version patterns like v1.0.x or 1.0.x
24+
const versionPattern = /[v]?1\.0\./i;
25+
26+
if (versionPattern.test(title) || versionPattern.test(description)) {
27+
await github.rest.issues.addLabels({
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
issue_number: issue.number,
31+
labels: ['opentui']
32+
});
33+
}

.github/workflows/opencode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
env:
2727
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
2828
with:
29-
model: opencode/kimi-k2
29+
model: opencode/glm-4.6

.github/workflows/snapshot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- dev
77
- opentui
8+
- v0
89

910
concurrency: ${{ github.workflow }}-${{ github.ref }}
1011

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
.env
66
.idea
77
.vscode
8+
*~
89
openapi.json
910
playground
1011
tmp

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
bun run typecheck
2+
bun typecheck

.opencode/command/commit.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ For anything in the packages/app use the ignore: prefix.
1818

1919
prefer to explain WHY something was done from an end user perspective instead of
2020
WHAT was done.
21+
22+
do not do generic messages like "improved agent experience" be very specific
23+
about what user facing changes were made

.opencode/command/hello.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: hello world
2+
description: hello world iaosd ioasjdoiasjd oisadjoisajd osiajd oisaj dosaij dsoajsajdaijdoisa jdoias jdoias jdoia jois jo jdois jdoias jdoias j djoasdj
33
---
44

55
hey there $ARGUMENTS

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
## Tool Calling
1919

20-
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE. Here is an example illustrating how to execute 3 parallel file reads in this chat environnement:
20+
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE. Here is an example illustrating how to execute 3 parallel file reads in this chat environment:
2121

2222
json
2323
{

CONTRIBUTING.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ If you are unsure if a PR would be accepted, feel free to ask a maintainer or lo
1717
- [`help wanted`](https://github.com/sst/opencode/issues?q=is%3Aissue%20state%3Aopen%20label%3Ahelp-wanted)
1818
- [`good first issue`](https://github.com/sst/opencode/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22)
1919
- [`bug`](https://github.com/sst/opencode/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug)
20+
- [`perf`](https://github.com/sst/opencode/issues?q=is%3Aopen%20is%3Aissue%20label%3A%22perf%22)
2021

2122
> [!NOTE]
2223
> PRs that ignore these guardrails will likely be closed.
@@ -25,7 +26,7 @@ Want to take on an issue? Leave a comment and a maintainer may assign it to you
2526

2627
## Developing OpenCode
2728

28-
- Requirements: Bun 1.3+, Go 1.24.x.
29+
- Requirements: Bun 1.3+
2930
- Install dependencies and start the dev server from the repo root:
3031

3132
```bash
@@ -35,11 +36,11 @@ Want to take on an issue? Leave a comment and a maintainer may assign it to you
3536

3637
- Core pieces:
3738
- `packages/opencode`: OpenCode core business logic & server.
38-
- `packages/tui`: The TUI code, written in Go (will be removed soon in favor of [opentui](https://github.com/sst/opentui))
39+
- `packages/opencode/src/cli/cmd/tui/`: The TUI code, written in SolidJS with [opentui](https://github.com/sst/opentui)
3940
- `packages/plugin`: Source for `@opencode-ai/plugin`
4041

4142
> [!NOTE]
42-
> After touching `packages/opencode/src/server/server.ts`, the OpenCode team must regenerate the Stainless SDK before any client updates merge.
43+
> After touching `packages/opencode/src/server/server.ts`, run "./packages/sdk/js/script/build.ts" to regenerate the JS sdk.
4344
4445
## Pull Request Expectations
4546

0 commit comments

Comments
 (0)