Skip to content

Commit a7d13df

Browse files
authored
Merge branch 'dev' into feat/python_sdk
2 parents fcc2b72 + 7216a8c commit a7d13df

File tree

1,657 files changed

+45253
-9063
lines changed

Some content is hidden

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

1,657 files changed

+45253
-9063
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Bug report
2+
description: Report an issue that should be fixed
3+
labels: ["bug"]
4+
body:
5+
- type: textarea
6+
id: description
7+
attributes:
8+
label: Description
9+
description: Describe the bug you encountered
10+
placeholder: What happened?
11+
validations:
12+
required: true
13+
14+
- type: input
15+
id: opencode-version
16+
attributes:
17+
label: OpenCode version
18+
description: What version of OpenCode are you using?
19+
validations:
20+
required: false
21+
22+
- type: textarea
23+
id: reproduce
24+
attributes:
25+
label: Steps to reproduce
26+
description: How can we reproduce this issue?
27+
placeholder: |
28+
1.
29+
2.
30+
3.
31+
validations:
32+
required: false
33+
34+
- type: textarea
35+
id: screenshot-or-link
36+
attributes:
37+
label: Screenshot and/or share link
38+
description: Run `/share` to get a share link, or attach a screenshot
39+
placeholder: Paste link or drag and drop screenshot here
40+
validations:
41+
required: false
42+
43+
- type: input
44+
id: os
45+
attributes:
46+
label: Operating System
47+
description: what OS are you using?
48+
placeholder: e.g., macOS 26.0.1, Ubuntu 22.04, Windows 11
49+
validations:
50+
required: false
51+
52+
- type: input
53+
id: terminal
54+
attributes:
55+
label: Terminal
56+
description: what terminal are you using?
57+
placeholder: e.g., iTerm2, Ghostty, Alacritty, Windows Terminal
58+
validations:
59+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: 💬 Discord Community
4+
url: https://discord.gg/opencode
5+
about: For quick questions or real-time discussion. Note that issues are searchable and help others with the same question.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 🚀 Feature Request
2+
description: Suggest an idea, feature, or enhancement
3+
labels: [discussion]
4+
title: "[FEATURE]:"
5+
6+
body:
7+
- type: checkboxes
8+
id: verified
9+
attributes:
10+
label: Feature hasn't been suggested before.
11+
options:
12+
- label: I have verified this feature I'm about to request hasn't been suggested before.
13+
required: true
14+
15+
- type: textarea
16+
attributes:
17+
label: Describe the enhancement you want to request
18+
description: What do you want to change or add? What are the benefits of implementing this? Try to be detailed so we can understand your request better :)
19+
validations:
20+
required: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Question
2+
description: Ask a question
3+
labels: ["question"]
4+
body:
5+
- type: textarea
6+
id: question
7+
attributes:
8+
label: Question
9+
description: What's your question?
10+
validations:
11+
required: true
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Setup Bun"
2+
description: "Setup Bun with caching and install dependencies"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setup Bun
7+
uses: oven-sh/setup-bun@v2
8+
9+
- name: Cache ~/.bun
10+
id: cache-bun
11+
uses: actions/cache@v4
12+
with:
13+
path: ~/.bun
14+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lockb', 'bun.lock') }}
15+
restore-keys: |
16+
${{ runner.os }}-bun-
17+
18+
- name: Install dependencies
19+
run: bun install
20+
shell: bash

.github/workflows/deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717

18-
- uses: oven-sh/setup-bun@v1
19-
with:
20-
bun-version: 1.2.21
21-
22-
- run: bun install
18+
- uses: ./.github/actions/setup-bun
2319

2420
- run: bun sst deploy --stage=${{ github.ref_name }}
2521
env:

.github/workflows/format.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121

2222
- name: Setup Bun
23-
uses: oven-sh/setup-bun@v1
24-
with:
25-
bun-version: 1.2.21
23+
uses: ./.github/actions/setup-bun
2624

2725
- name: run
2826
run: |
29-
bun install
3027
./script/format.ts
3128
env:
3229
CI: true

.github/workflows/opencode.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ jobs:
88
opencode:
99
if: |
1010
contains(github.event.comment.body, ' /oc') ||
11-
contains(github.event.comment.body, ' /opencode')
11+
startsWith(github.event.comment.body, '/oc') ||
12+
contains(github.event.comment.body, ' /opencode') ||
13+
startsWith(github.event.comment.body, '/opencode')
1214
runs-on: ubuntu-latest
1315
permissions:
1416
id-token: write
@@ -24,4 +26,4 @@ jobs:
2426
env:
2527
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
2628
with:
27-
model: opencode/sonic
29+
model: opencode/kimi-k2

.github/workflows/publish-vscode.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- uses: oven-sh/setup-bun@v2
23-
with:
24-
bun-version: 1.2.21
22+
- uses: ./.github/actions/setup-bun
2523

2624
- run: git fetch --force --tags
2725
- run: bun install -g @vscode/vsce
2826

27+
- name: Install extension dependencies
28+
run: bun install
29+
working-directory: ./sdks/vscode
30+
2931
- name: Publish
3032
run: |
31-
bun install
3233
./script/publish
3334
working-directory: ./sdks/vscode
3435
env:

.github/workflows/publish.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,7 @@ jobs:
3535
cache: true
3636
cache-dependency-path: go.sum
3737

38-
- uses: oven-sh/setup-bun@v2
39-
with:
40-
bun-version: 1.2.21
41-
42-
- name: Cache ~/.bun
43-
id: cache-bun
44-
uses: actions/cache@v3
45-
with:
46-
path: ~/.bun
47-
key: ${{ runner.os }}-bun-1-2-21-${{ hashFiles('bun.lock') }}
48-
restore-keys: |
49-
${{ runner.os }}-bun-1-2-21-
38+
- uses: ./.github/actions/setup-bun
5039

5140
- name: Install makepkg
5241
run: |
@@ -60,14 +49,17 @@ jobs:
6049
git config --global user.email "[email protected]"
6150
git config --global user.name "opencode"
6251
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true
63-
- name: Install dependencies
64-
run: bun install
52+
53+
- name: Install OpenCode
54+
run: curl -fsSL https://opencode.ai/install | bash
6555

6656
- name: Publish
6757
run: |
6858
./script/publish.ts
6959
env:
7060
OPENCODE_BUMP: ${{ inputs.bump }}
61+
OPENCODE_CHANNEL: latest
7162
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
7263
AUR_KEY: ${{ secrets.AUR_KEY }}
7364
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}

0 commit comments

Comments
 (0)