Skip to content

Commit 65f90b0

Browse files
authored
Merge branch 'sst:dev' into dev
2 parents accba9b + 340e802 commit 65f90b0

Some content is hidden

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

82 files changed

+1283
-642
lines changed

.github/workflows/duplicate-issues.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
with:
1717
fetch-depth: 1
1818

19+
- uses: ./.github/actions/setup-bun
20+
1921
- name: Install opencode
2022
run: curl -fsSL https://opencode.ai/install | bash
2123

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ jobs:
165165
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
166166
RUST_TARGET: ${{ matrix.settings.target }}
167167
GH_TOKEN: ${{ github.token }}
168+
OPENCODE_RELEASE_TAG: ${{ needs.publish.outputs.tagName }}
168169

169170
# Fixes AppImage build issues, can be removed when https://github.com/tauri-apps/tauri/pull/12491 is released
170171
- name: Install tauri-cli from portable appimage branch
@@ -197,3 +198,20 @@ jobs:
197198
releaseId: ${{ needs.publish.outputs.releaseId }}
198199
tagName: ${{ needs.publish.outputs.tagName }}
199200
releaseAssetNamePattern: opencode-desktop-[platform]-[arch][ext]
201+
releaseDraft: true
202+
203+
publish-release:
204+
needs:
205+
- publish
206+
- publish-tauri
207+
if: needs.publish.outputs.tagName
208+
runs-on: blacksmith-4vcpu-ubuntu-2404
209+
steps:
210+
- uses: actions/checkout@v3
211+
with:
212+
fetch-depth: 0
213+
ref: ${{ needs.publish.outputs.tagName }}
214+
215+
- run: gh release edit ${{ needs.publish.outputs.tagName }} --draft=false
216+
env:
217+
GH_TOKEN: ${{ github.token }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: release-github-action
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
paths:
8+
- "github/**"
9+
10+
concurrency: ${{ github.workflow }}-${{ github.ref }}
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
release:
17+
runs-on: blacksmith-4vcpu-ubuntu-2404
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- run: git fetch --force --tags
24+
25+
- name: Release
26+
run: |
27+
git config --global user.email "opencode@sst.dev"
28+
git config --global user.name "opencode"
29+
./github/script/release

.github/workflows/review.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
with:
3030
fetch-depth: 1
3131

32+
- uses: ./.github/actions/setup-bun
33+
3234
- name: Install opencode
3335
run: curl -fsSL https://opencode.ai/install | bash
3436

.github/workflows/triage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
with:
1717
fetch-depth: 1
1818

19+
- name: Setup Bun
20+
uses: ./.github/actions/setup-bun
21+
1922
- name: Install opencode
2023
run: curl -fsSL https://opencode.ai/install | bash
2124

.opencode/agent/triage.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
mode: primary
33
hidden: true
4-
model: opencode/gpt-5-nano
4+
model: opencode/claude-haiku-4-5
55
tools:
66
"*": false
77
"github-triage": true
@@ -10,3 +10,62 @@ tools:
1010
You are a triage agent responsible for triaging github issues.
1111

1212
Use your github-triage tool to triage issues.
13+
14+
## Labels
15+
16+
#### perf
17+
18+
Performance-related issues:
19+
20+
- Slow performance
21+
- High RAM usage
22+
- High CPU usage
23+
24+
**Only** add if it's likely a RAM or CPU issue. **Do not** add for LLM slowness.
25+
26+
#### desktop
27+
28+
Desktop app issues:
29+
30+
- `opencode web` command
31+
- The desktop app itself
32+
33+
**Only** add if it's specifically about the Desktop application or `opencode web` view. **Do not** add for terminal, TUI, or general opencode issues.
34+
35+
#### nix
36+
37+
**Only** add if the issue explicitly mentions nix.
38+
39+
#### zen
40+
41+
**Only** add if the issue mentions "zen" or "opencode zen". Zen is our gateway for coding models. **Do not** add for other gateways or inference providers.
42+
43+
If the issue doesn't have "zen" in it then don't add zen label
44+
45+
#### docs
46+
47+
Add if the issue requests better documentation or docs updates.
48+
49+
#### opentui
50+
51+
TUI issues potentially caused by our underlying TUI library:
52+
53+
- Keybindings not working
54+
- Scroll speed issues (too fast/slow/laggy)
55+
- Screen flickering
56+
- Crashes with opentui in the log
57+
58+
**Do not** add for general TUI bugs.
59+
60+
When assigning to people here are the following rules:
61+
62+
adamdotdev:
63+
ONLY assign adam if the issue will have the "desktop" label.
64+
65+
fwang:
66+
ONLY assign fwang if the issue will have the "zen" label.
67+
68+
jayair:
69+
ONLY assign jayair if the issue will have the "docs" label.
70+
71+
In all other cases use best judgment. Avoid assigning to kommander needlessly, when in doubt assign to rekram1-node.

.opencode/bun.lock

Lines changed: 0 additions & 49 deletions
This file was deleted.

.opencode/command/commit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
description: git commit and push
33
model: opencode/glm-4.6
4+
subtask: true
45
---
56

67
commit and push

.opencode/package.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.opencode/tool/github-triage.ts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference path="../env.d.ts" />
12
import { Octokit } from "@octokit/rest"
23
import { tool } from "@opencode-ai/plugin"
34
import DESCRIPTION from "./github-triage.txt"
@@ -16,9 +17,9 @@ export default tool({
1617
.describe("The username of the assignee")
1718
.default("rekram1-node"),
1819
labels: tool.schema
19-
.array(tool.schema.enum(["nix", "opentui", "perf", "web", "zen", "docs"]))
20+
.array(tool.schema.enum(["nix", "opentui", "perf", "desktop", "zen", "docs"]))
2021
.describe("The labels(s) to add to the issue")
21-
.optional(),
22+
.default([]),
2223
},
2324
async execute(args) {
2425
const issue = getIssueNumber()
@@ -28,6 +29,18 @@ export default tool({
2829

2930
const results: string[] = []
3031

32+
if (args.assignee === "adamdotdevin" && !args.labels.includes("desktop")) {
33+
throw new Error("Only desktop issues should be assigned to adamdotdevin")
34+
}
35+
36+
if (args.assignee === "fwang" && !args.labels.includes("zen")) {
37+
throw new Error("Only zen issues should be assigned to fwang")
38+
}
39+
40+
if (args.assignee === "kommander" && !args.labels.includes("opentui")) {
41+
throw new Error("Only opentui issues should be assigned to kommander")
42+
}
43+
3144
await octokit.rest.issues.addAssignees({
3245
owner,
3346
repo,
@@ -36,12 +49,14 @@ export default tool({
3649
})
3750
results.push(`Assigned @${args.assignee} to issue #${issue}`)
3851

39-
if (args.labels && args.labels.length > 0) {
52+
const labels: string[] = args.labels.map((label) => (label === "desktop" ? "web" : label))
53+
54+
if (labels.length > 0) {
4055
await octokit.rest.issues.addLabels({
4156
owner,
4257
repo,
4358
issue_number: issue,
44-
labels: args.labels,
59+
labels,
4560
})
4661
results.push(`Added labels: ${args.labels.join(", ")}`)
4762
}

0 commit comments

Comments
 (0)