Skip to content

Commit 1f750d3

Browse files
authored
Merge pull request #80 from AltimateAI/restructure/pr
feat: restructure fork on upstream v1.2.18
2 parents 8071ed2 + 465f5fa commit 1f750d3

File tree

4,535 files changed

+558747
-38598
lines changed

Some content is hidden

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

4,535 files changed

+558747
-38598
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
insert_final_newline = true
6+
end_of_line = lf
7+
indent_style = space
8+
indent_size = 2
9+
max_line_length = 80

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# web + desktop packages
2+
packages/app/ @adamdotdevin
3+
packages/tauri/ @adamdotdevin
4+
packages/desktop/src-tauri/ @brendonovich
5+
packages/desktop/ @adamdotdevin
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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: plugins
16+
attributes:
17+
label: Plugins
18+
description: What plugins are you using?
19+
validations:
20+
required: false
21+
22+
- type: input
23+
id: opencode-version
24+
attributes:
25+
label: OpenCode version
26+
description: What version of OpenCode are you using?
27+
validations:
28+
required: false
29+
30+
- type: textarea
31+
id: reproduce
32+
attributes:
33+
label: Steps to reproduce
34+
description: How can we reproduce this issue?
35+
placeholder: |
36+
1.
37+
2.
38+
3.
39+
validations:
40+
required: false
41+
42+
- type: textarea
43+
id: screenshot-or-link
44+
attributes:
45+
label: Screenshot and/or share link
46+
description: Run `/share` to get a share link, or attach a screenshot
47+
placeholder: Paste link or drag and drop screenshot here
48+
validations:
49+
required: false
50+
51+
- type: input
52+
id: os
53+
attributes:
54+
label: Operating System
55+
description: what OS are you using?
56+
placeholder: e.g., macOS 26.0.1, Ubuntu 22.04, Windows 11
57+
validations:
58+
required: false
59+
60+
- type: input
61+
id: terminal
62+
attributes:
63+
label: Terminal
64+
description: what terminal are you using?
65+
placeholder: e.g., iTerm2, Ghostty, Alacritty, Windows Terminal
66+
validations:
67+
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: false
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

.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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Vouched contributors for this project.
2+
#
3+
# See https://github.com/mitchellh/vouch for details.
4+
#
5+
# Syntax:
6+
# - One handle per line (without @), sorted alphabetically.
7+
# - Optional platform prefix: platform:username (e.g., github:user).
8+
# - Denounce with minus prefix: -username or -platform:username.
9+
# - Optional details after a space following the handle.
10+
adamdotdevin
11+
-agusbasari29 AI PR slop
12+
ariane-emory
13+
edemaine
14+
-florianleibert
15+
fwang
16+
iamdavidhill
17+
jayair
18+
kitlangton
19+
kommander
20+
r44vc0rp
21+
rekram1-node
22+
-spider-yamet clawdbot/llm psychosis, spam pinging the team
23+
thdxr
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Setup Bun"
2+
description: "Setup Bun with caching and install dependencies"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Cache Bun dependencies
7+
uses: actions/cache@v4
8+
with:
9+
path: ~/.bun/install/cache
10+
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
11+
restore-keys: |
12+
${{ runner.os }}-bun-
13+
14+
- name: Get baseline download URL
15+
id: bun-url
16+
shell: bash
17+
run: |
18+
if [ "$RUNNER_ARCH" = "X64" ]; then
19+
V=$(node -p "require('./package.json').packageManager.split('@')[1]")
20+
case "$RUNNER_OS" in
21+
macOS) OS=darwin ;;
22+
Linux) OS=linux ;;
23+
Windows) OS=windows ;;
24+
esac
25+
echo "url=https://github.com/oven-sh/bun/releases/download/bun-v${V}/bun-${OS}-x64-baseline.zip" >> "$GITHUB_OUTPUT"
26+
fi
27+
28+
- name: Setup Bun
29+
uses: oven-sh/setup-bun@v2
30+
with:
31+
bun-version-file: ${{ !steps.bun-url.outputs.url && 'package.json' || '' }}
32+
bun-download-url: ${{ steps.bun-url.outputs.url }}
33+
34+
- name: Install dependencies
35+
run: bun install
36+
shell: bash
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Setup Git Committer"
2+
description: "Create app token and configure git user"
3+
inputs:
4+
opencode-app-id:
5+
description: "OpenCode GitHub App ID"
6+
required: true
7+
opencode-app-secret:
8+
description: "OpenCode GitHub App private key"
9+
required: true
10+
outputs:
11+
token:
12+
description: "GitHub App token"
13+
value: ${{ steps.apptoken.outputs.token }}
14+
app-slug:
15+
description: "GitHub App slug"
16+
value: ${{ steps.apptoken.outputs.app-slug }}
17+
runs:
18+
using: "composite"
19+
steps:
20+
- name: Create app token
21+
id: apptoken
22+
uses: actions/create-github-app-token@v2
23+
with:
24+
app-id: ${{ inputs.opencode-app-id }}
25+
private-key: ${{ inputs.opencode-app-secret }}
26+
owner: ${{ github.repository_owner }}
27+
28+
- name: Configure git user
29+
run: |
30+
slug="${{ steps.apptoken.outputs.app-slug }}"
31+
git config --global user.name "${slug}[bot]"
32+
git config --global user.email "${slug}[bot]@users.noreply.github.com"
33+
shell: bash
34+
35+
- name: Clear checkout auth
36+
run: |
37+
git config --local --unset-all http.https://github.com/.extraheader || true
38+
shell: bash
39+
40+
- name: Configure git remote
41+
run: |
42+
git remote set-url origin https://x-access-token:${{ steps.apptoken.outputs.token }}@github.com/${{ github.repository }}
43+
shell: bash

0 commit comments

Comments
 (0)