GeezerVison is showing github.com — chore: better local dev with stainless script · klevo/opencode@5a0910e
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .gitignore +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,3 +5,4 @@ node_modules | 5 | 5 | .env | 6 | 6 | .idea | 7 | 7 | .vscode | | 8 | +openapi.json |
Collapse file Copy file name to clipboardExpand all lines: package.json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | | 7 | 7 | "scripts": { | 8 | 8 | "typecheck": "bun run --filter='*' typecheck", | | 9 | + "stainless": "bun run ./packages/opencode/src/index.ts serve ", | 9 | 10 | "postinstall": "./scripts/hooks" | 10 | 11 | }, | 11 | 12 | "workspaces": { | |
Collapse file Copy file name to clipboardExpand all lines: packages/tui/go.mod +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,8 @@ require ( | 20 | 20 | rsc.io/qr v0.2.0 | 21 | 21 | ) | 22 | 22 |
| | 23 | +replace github.com/sst/opencode-sdk-go => ./sdk | | 24 | + | 23 | 25 | require golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect | 24 | 26 |
| 25 | 27 | require ( | |
Collapse file Copy file name to clipboardExpand all lines: packages/tui/go.sum -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -181,8 +181,6 @@ github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= | 181 | 181 | github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= | 182 | 182 | github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= | 183 | 183 | github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= | 184 | | -github.com/sst/opencode-sdk-go v0.1.0-alpha.8 h1:Tp7nbckbMCwAA/ieVZeeZCp79xXtrPMaWLRk5mhNwrw= | 185 | | -github.com/sst/opencode-sdk-go v0.1.0-alpha.8/go.mod h1:uagorfAHZsVy6vf0xY6TlQraM4uCILdZ5tKKhl1oToM= | 186 | 184 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | 187 | 185 | github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= | 188 | 186 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= | |
Collapse file Copy file name to clipboard +7Lines changed: 7 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the | | 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/debian | | 3 | +{ | | 4 | + "name": "Development", | | 5 | + "image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm", | | 6 | + "postCreateCommand": "go mod tidy" | | 7 | +} |
Collapse file Copy file name to clipboard +49Lines changed: 49 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +name: CI | | 2 | +on: | | 3 | + push: | | 4 | + branches-ignore: | | 5 | + - 'generated' | | 6 | + - 'codegen/**' | | 7 | + - 'integrated/**' | | 8 | + - 'stl-preview-head/**' | | 9 | + - 'stl-preview-base/**' | | 10 | + pull_request: | | 11 | + branches-ignore: | | 12 | + - 'stl-preview-head/**' | | 13 | + - 'stl-preview-base/**' | | 14 | + | | 15 | +jobs: | | 16 | + lint: | | 17 | + timeout-minutes: 10 | | 18 | + name: lint | | 19 | + runs-on: ${{ github.repository == 'stainless-sdks/opencode-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | | 20 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.fork | | 21 | + | | 22 | + steps: | | 23 | + - uses: actions/checkout@v4 | | 24 | + | | 25 | + - name: Setup go | | 26 | + uses: actions/setup-go@v5 | | 27 | + with: | | 28 | + go-version-file: ./go.mod | | 29 | + | | 30 | + - name: Run lints | | 31 | + run: ./scripts/lint | | 32 | + test: | | 33 | + timeout-minutes: 10 | | 34 | + name: test | | 35 | + runs-on: ${{ github.repository == 'stainless-sdks/opencode-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | | 36 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.fork | | 37 | + steps: | | 38 | + - uses: actions/checkout@v4 | | 39 | + | | 40 | + - name: Setup go | | 41 | + uses: actions/setup-go@v5 | | 42 | + with: | | 43 | + go-version-file: ./go.mod | | 44 | + | | 45 | + - name: Bootstrap | | 46 | + run: ./scripts/bootstrap | | 47 | + | | 48 | + - name: Run tests | | 49 | + run: ./scripts/test |
Collapse file Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +.prism.log | | 2 | +codegen.log | | 3 | +Brewfile.lock.json | | 4 | +.idea/ |
Collapse file Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +{ | | 2 | + ".": "0.1.0-alpha.8" | | 3 | +} |
Collapse file Copy file name to clipboard +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +configured_endpoints: 20 | | 2 | +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-945f9da9e9a4c4008834deef63e4346c0076e020eed3d3c98c249095033c1ac5.yml | | 3 | +openapi_spec_hash: 522a44f6cb0677435fe2ac7693848ad7 | | 4 | +config_hash: 6c8822d278ba83456e5eed6d774ca230 |
Collapse file Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +brew "go" |
|