Skip to content

Commit 5786f0a

Browse files
merge upstream (conflicts auto-accepted - needs review)
2 parents a021149 + c529529 commit 5786f0a

1,977 files changed

Lines changed: 212832 additions & 90090 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/TEAM_MEMBERS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
adamdotdevin
2+
Brendonovich
3+
fwang
4+
Hona
5+
iamdavidhill
6+
jayair
7+
jlongster
8+
kitlangton
9+
kommander
10+
MrMushrooooom
11+
nexxeln
12+
R44VC0RP
13+
rekram1-node
14+
RhysSullivan
15+
thdxr

.github/VOUCHED.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88
# - Denounce with minus prefix: -username or -platform:username.
99
# - Optional details after a space following the handle.
1010
adamdotdevin
11+
-agusbasari29 AI PR slop
1112
ariane-emory
13+
-danieljoshuanazareth
14+
edemaine
1215
-florianleibert
1316
fwang
1417
iamdavidhill
1518
jayair
1619
kitlangton
1720
kommander
21+
-opencode2026
1822
r44vc0rp
1923
rekram1-node
2024
-spider-yamet clawdbot/llm psychosis, spam pinging the team
2125
thdxr
26+
-danieljoshuanazareth

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

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,51 @@ description: "Setup Bun with caching and install dependencies"
33
runs:
44
using: "composite"
55
steps:
6-
- name: Mount Bun Cache
7-
uses: useblacksmith/stickydisk@v1
8-
with:
9-
key: ${{ github.repository }}-bun-cache-${{ runner.os }}
10-
path: ~/.bun
6+
- name: Get baseline download URL
7+
id: bun-url
8+
shell: bash
9+
run: |
10+
if [ "$RUNNER_ARCH" = "X64" ]; then
11+
V=$(node -p "require('./package.json').packageManager.split('@')[1]")
12+
case "$RUNNER_OS" in
13+
macOS) OS=darwin ;;
14+
Linux) OS=linux ;;
15+
Windows) OS=windows ;;
16+
esac
17+
echo "url=https://github.com/oven-sh/bun/releases/download/bun-v${V}/bun-${OS}-x64-baseline.zip" >> "$GITHUB_OUTPUT"
18+
fi
1119
1220
- name: Setup Bun
1321
uses: oven-sh/setup-bun@v2
1422
with:
15-
bun-version-file: package.json
23+
bun-version-file: ${{ !steps.bun-url.outputs.url && 'package.json' || '' }}
24+
bun-download-url: ${{ steps.bun-url.outputs.url }}
25+
26+
- name: Get cache directory
27+
id: cache
28+
shell: bash
29+
run: echo "dir=$(bun pm cache)" >> "$GITHUB_OUTPUT"
30+
31+
- name: Cache Bun dependencies
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ steps.cache.outputs.dir }}
35+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-bun-
38+
39+
- name: Install setuptools for distutils compatibility
40+
run: python3 -m pip install setuptools || pip install setuptools || true
41+
shell: bash
1642

1743
- name: Install dependencies
18-
run: bun install
44+
run: |
45+
# Workaround for patched peer variants
46+
# e.g. ./patches/ for standard-openapi
47+
# https://github.com/oven-sh/bun/issues/28147
48+
if [ "$RUNNER_OS" = "Windows" ]; then
49+
bun install --linker hoisted
50+
else
51+
bun install
52+
fi
1953
shell: bash

.github/pull_request_template.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
1+
### Issue for this PR
2+
3+
Closes #
4+
5+
### Type of change
6+
7+
- [ ] Bug fix
8+
- [ ] New feature
9+
- [ ] Refactor / code improvement
10+
- [ ] Documentation
11+
112
### What does this PR do?
213

3-
Please provide a description of the issue (if there is one), the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.
14+
Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.
415

516
**If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!**
617

718
### How did you verify your code works?
19+
20+
### Screenshots / recordings
21+
22+
_If this is a UI change, please include a screenshot or recording._
23+
24+
### Checklist
25+
26+
- [ ] I have tested my changes locally
27+
- [ ] I have not included unrelated changes in this PR
28+
29+
_If you do not follow this template your PR will be automatically rejected._

.github/workflows/beta.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ jobs:
2727
opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
2828
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
2929

30+
- name: Install OpenCode
31+
run: bun i -g opencode-ai
32+
3033
- name: Sync beta branch
3134
env:
3235
GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
36+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
3337
run: bun script/beta.ts

.github/workflows/compliance-close.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ jobs:
6565
body: closeMessage,
6666
});
6767
68+
try {
69+
await github.rest.issues.removeLabel({
70+
owner: context.repo.owner,
71+
repo: context.repo.repo,
72+
issue_number: item.number,
73+
name: 'needs:compliance',
74+
});
75+
} catch (e) {}
76+
6877
if (isPR) {
6978
await github.rest.pulls.update({
7079
owner: context.repo.owner,

.github/workflows/docs-locale-sync.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ jobs:
1212
if: github.actor != 'opencode-agent[bot]'
1313
runs-on: blacksmith-4vcpu-ubuntu-2404
1414
permissions:
15-
id-token: write
1615
contents: write
1716
steps:
1817
- name: Checkout repository
1918
uses: actions/checkout@v4
2019
with:
20+
persist-credentials: false
2121
fetch-depth: 0
22+
ref: ${{ github.ref_name }}
2223

2324
- name: Setup Bun
2425
uses: ./.github/actions/setup-bun
@@ -46,15 +47,26 @@ jobs:
4647
echo "EOF"
4748
} >> "$GITHUB_OUTPUT"
4849
50+
- name: Install OpenCode
51+
if: steps.changes.outputs.has_changes == 'true'
52+
run: curl -fsSL https://opencode.ai/install | bash
53+
4954
- name: Sync locale docs with OpenCode
5055
if: steps.changes.outputs.has_changes == 'true'
51-
uses: sst/opencode/github@latest
5256
env:
5357
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
54-
with:
55-
model: opencode/gpt-5.2
56-
agent: docs
57-
prompt: |
58+
OPENCODE_CONFIG_CONTENT: |
59+
{
60+
"permission": {
61+
"*": "deny",
62+
"read": "allow",
63+
"edit": "allow",
64+
"glob": "allow",
65+
"task": "allow"
66+
}
67+
}
68+
run: |
69+
opencode run --agent docs --model opencode/gpt-5.3-codex <<'EOF'
5870
Update localized docs to match the latest English docs changes.
5971
6072
Changed English doc files:
@@ -67,10 +79,12 @@ jobs:
6779
2. You MUST use the Task tool for translation work and launch subagents with subagent_type `translator` (defined in .opencode/agent/translator.md).
6880
3. Do not translate directly in the primary agent. Use translator subagent output as the source for locale text updates.
6981
4. Run translator subagent Task calls in parallel whenever file/locale translation work is independent.
70-
5. Preserve frontmatter keys, internal links, code blocks, and existing locale-specific metadata unless the English change requires an update.
71-
6. Keep locale docs structure aligned with their corresponding English pages.
72-
7. Do not modify English source docs in packages/web/src/content/docs/*.mdx.
73-
8. If no locale updates are needed, make no changes.
82+
5. Use only the minimum tools needed for this task (read/glob, file edits, and translator Task). Do not use shell, web, search, or GitHub tools for translation work.
83+
6. Preserve frontmatter keys, internal links, code blocks, and existing locale-specific metadata unless the English change requires an update.
84+
7. Keep locale docs structure aligned with their corresponding English pages.
85+
8. Do not modify English source docs in packages/web/src/content/docs/*.mdx.
86+
9. If no locale updates are needed, make no changes.
87+
EOF
7488
7589
- name: Commit and push locale docs updates
7690
if: steps.changes.outputs.has_changes == 'true'

.github/workflows/duplicate-issues.yml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: duplicate-issues
22

33
on:
44
issues:
5-
types: [opened]
5+
types: [opened, edited]
66

77
jobs:
88
check-duplicates:
9+
if: github.event.action == 'opened'
910
runs-on: blacksmith-4vcpu-ubuntu-2404
1011
permissions:
1112
contents: read
@@ -34,7 +35,7 @@ jobs:
3435
"webfetch": "deny"
3536
}
3637
run: |
37-
opencode run -m opencode/claude-haiku-4-5 "A new issue has been created:
38+
opencode run -m opencode/claude-sonnet-4-6 "A new issue has been created:
3839
3940
Issue number: ${{ github.event.issue.number }}
4041
@@ -115,3 +116,62 @@ jobs:
115116
If you believe this was flagged incorrectly, please let a maintainer know.
116117
117118
Remember: post at most ONE comment combining all findings. If everything is fine, post nothing."
119+
120+
recheck-compliance:
121+
if: github.event.action == 'edited' && contains(github.event.issue.labels.*.name, 'needs:compliance')
122+
runs-on: blacksmith-4vcpu-ubuntu-2404
123+
permissions:
124+
contents: read
125+
issues: write
126+
steps:
127+
- name: Checkout repository
128+
uses: actions/checkout@v4
129+
with:
130+
fetch-depth: 1
131+
132+
- uses: ./.github/actions/setup-bun
133+
134+
- name: Install opencode
135+
run: curl -fsSL https://opencode.ai/install | bash
136+
137+
- name: Recheck compliance
138+
env:
139+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
140+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141+
OPENCODE_PERMISSION: |
142+
{
143+
"bash": {
144+
"*": "deny",
145+
"gh issue*": "allow"
146+
},
147+
"webfetch": "deny"
148+
}
149+
run: |
150+
opencode run -m opencode/claude-sonnet-4-6 "Issue #${{ github.event.issue.number }} was previously flagged as non-compliant and has been edited.
151+
152+
Lookup this issue with gh issue view ${{ github.event.issue.number }}.
153+
154+
Re-check whether the issue now follows our contributing guidelines and issue templates.
155+
156+
This project has three issue templates that every issue MUST use one of:
157+
158+
1. Bug Report - requires a Description field with real content
159+
2. Feature Request - requires a verification checkbox and description, title should start with [FEATURE]:
160+
3. Question - requires the Question field with real content
161+
162+
Additionally check:
163+
- No AI-generated walls of text (long, AI-generated descriptions are not acceptable)
164+
- The issue has real content, not just template placeholder text left unchanged
165+
- Bug reports should include some context about how to reproduce
166+
- Feature requests should explain the problem or need
167+
- We want to push for having the user provide system description & information
168+
169+
Do NOT be nitpicky about optional fields. Only flag real problems like: no template used, required fields empty or placeholder text only, obviously AI-generated walls of text, or completely empty/nonsensical content.
170+
171+
If the issue is NOW compliant:
172+
1. Remove the needs:compliance label: gh issue edit ${{ github.event.issue.number }} --remove-label needs:compliance
173+
2. Find and delete the previous compliance comment (the one containing <!-- issue-compliance -->) using: gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments --jq '.[] | select(.body | contains(\"<!-- issue-compliance -->\")) | .id' then delete it with: gh api -X DELETE repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments/{id}
174+
3. Post a short comment thanking them for updating the issue.
175+
176+
If the issue is STILL not compliant:
177+
Post a comment explaining what still needs to be fixed. Keep the needs:compliance label."

.github/workflows/nix-desktop.yml.disabled

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

0 commit comments

Comments
 (0)