GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ignore: docs & style · avillagran/opencode@5b34636

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .opencode
    • opencode.jsonc
  • AGENTS.md
  • CONTRIBUTING.md
  • STYLE_GUIDE.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.opencode/opencode.jsonc‎

Copy file name to clipboardExpand all lines: .opencode/opencode.jsonc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// "enterprise": {
55
// "url": "https://enterprise.dev.opencode.ai",
66
// },
7+
"instructions": ["STYLE_GUIDE.md"],
78
"provider": {
89
"opencode": {
910
"options": {
Collapse file

‎AGENTS.md‎

Copy file name to clipboardExpand all lines: AGENTS.md
-13Lines changed: 0 additions & 13 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
## IMPORTANT
2-
3-
- Try to keep things in one function unless composable or reusable
4-
- DO NOT do unnecessary destructuring of variables
5-
- DO NOT use `else` statements unless necessary
6-
- DO NOT use `try`/`catch` if it can be avoided
7-
- AVOID `try`/`catch` where possible
8-
- AVOID `else` statements
9-
- AVOID using `any` type
10-
- AVOID `let` statements
11-
- PREFER single word variable names where possible
12-
- Use as many bun apis as possible like Bun.file()
13-
141
## Debugging
152

163
- To test opencode in the `packages/opencode` directory you can run `bun dev`
Collapse file

‎CONTRIBUTING.md‎

Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Want to take on an issue? Leave a comment and a maintainer may assign it to you
4242
> [!NOTE]
4343
> After touching `packages/opencode/src/server/server.ts`, run "./packages/sdk/js/script/build.ts" to regenerate the JS sdk.
4444
45+
Please try to follow the [style guide](./STYLE_GUIDE.md)
46+
4547
### Setting up a Debugger
4648

4749
Bun debugging is currently rough around the edges. We hope this guide helps you get set up and avoid some pain points.
Collapse file

‎STYLE_GUIDE.md‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Style Guide
2+
3+
- Try to keep things in one function unless composable or reusable
4+
- DO NOT do unnecessary destructuring of variables
5+
- DO NOT use `else` statements unless necessary
6+
- DO NOT use `try`/`catch` if it can be avoided
7+
- AVOID `try`/`catch` where possible
8+
- AVOID `else` statements
9+
- AVOID using `any` type
10+
- AVOID `let` statements
11+
- PREFER single word variable names where possible
12+
- Use as many bun apis as possible like Bun.file()

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.