Compare commits

..
Author SHA1 Message Date
Dax Raad 2d6d32b5b9 Snapshot release v0.0.0-202508022229 2025-08-02 18:29:44 -04:00
Dax Raad 4d9319a20d Snapshot release v0.0.0-202508022228 2025-08-02 18:28:21 -04:00
Dax Raad 3dc5a66de0 Snapshot release v0.0.0-202508022056 2025-08-02 16:56:12 -04:00
Dax Raad 09446605ec Snapshot release v0.0.0-202508022055 2025-08-02 16:55:53 -04:00
Dax Raad 1f9e8cc4a5 Snapshot release v0.0.0-202508022053 2025-08-02 16:55:35 -04:00
Dax Raad 09c4b71632 wip: plugins 2025-08-02 16:47:11 -04:00
Dax Raad c9bffc0f46 ignore: i am a senior engineer 2025-08-02 16:29:45 -04:00
16 changed files with 35 additions and 96 deletions
+1 -12
View File
@@ -39,15 +39,6 @@ jobs:
with:
bun-version: 1.2.19
- name: Cache ~/.bun
id: cache-bun
uses: actions/cache@v3
with:
path: ~/.bun
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install makepkg
run: |
sudo apt-get update
@@ -62,11 +53,9 @@ jobs:
git config --global user.email "opencode@sst.dev"
git config --global user.name "opencode"
- name: Install dependencies
run: bun install
- name: Publish
run: |
bun install
OPENCODE_VERSION=${{ inputs.version }} ./script/publish.ts
env:
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
+5 -6
View File
@@ -10,7 +10,7 @@
},
"packages/function": {
"name": "@opencode/function",
"version": "0.3.113",
"version": "0.0.1",
"dependencies": {
"@octokit/auth-app": "8.0.1",
"@octokit/rest": "22.0.0",
@@ -25,7 +25,7 @@
},
"packages/opencode": {
"name": "opencode",
"version": "0.3.113",
"version": "0.0.0",
"bin": {
"opencode": "./bin/opencode",
},
@@ -39,7 +39,6 @@
"@octokit/rest": "22.0.0",
"@openauthjs/openauth": "0.4.3",
"@opencode-ai/plugin": "workspace:*",
"@opencode-ai/sdk": "workspace:*",
"@standard-schema/spec": "1.0.0",
"@zip.js/zip.js": "2.7.62",
"ai": "catalog:",
@@ -78,7 +77,7 @@
},
"packages/plugin": {
"name": "@opencode-ai/plugin",
"version": "0.3.113",
"version": "0.0.0",
"devDependencies": {
"@hey-api/openapi-ts": "0.80.1",
"@opencode-ai/sdk": "workspace:*",
@@ -88,7 +87,7 @@
},
"packages/sdk/js": {
"name": "@opencode-ai/sdk",
"version": "0.3.113",
"version": "0.0.0",
"devDependencies": {
"@hey-api/openapi-ts": "0.80.1",
"@tsconfig/node22": "catalog:",
@@ -97,7 +96,7 @@
},
"packages/web": {
"name": "@opencode/web",
"version": "0.3.113",
"version": "0.0.1",
"dependencies": {
"@astrojs/cloudflare": "^12.5.4",
"@astrojs/markdown-remark": "6.3.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@opencode/function",
"version": "0.3.113",
"version": "0.0.0-202508022053",
"$schema": "https://json.schemastore.org/package.json",
"private": true,
"type": "module",
+1 -2
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"version": "0.3.113",
"version": "0.0.0-202508022053",
"name": "opencode",
"type": "module",
"private": true,
@@ -37,7 +37,6 @@
"@octokit/rest": "22.0.0",
"@openauthjs/openauth": "0.4.3",
"@opencode-ai/plugin": "workspace:*",
"@opencode-ai/sdk": "workspace:*",
"@standard-schema/spec": "1.0.0",
"@zip.js/zip.js": "2.7.62",
"ai": "catalog:",
-5
View File
@@ -2,11 +2,6 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/bun/tsconfig.json",
"compilerOptions": {
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"customConditions": [
"development"
]
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin",
"version": "0.3.113",
"version": "0.0.0",
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit"
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/sdk",
"version": "0.3.113",
"version": "0.0.0-202508022053",
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit"
+1 -1
View File
@@ -13,7 +13,7 @@ console.log()
import { createClient } from "@hey-api/openapi-ts"
await fs.rm(path.join(dir, "src/gen"), { recursive: true, force: true })
await $`bun run ./src/index.ts generate > openapi.json`.cwd(path.resolve(dir, "../../opencode"))
await $`bun run ../../opencode/src/index.ts generate > openapi.json`
await createClient({
input: "./openapi.json",
-4
View File
@@ -7,12 +7,8 @@
"declaration": true,
"moduleResolution": "bundler",
"lib": [
"es2022",
"dom",
"dom.iterable"
],
"customConditions": [
"development"
]
},
"include": [
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@opencode/web",
"type": "module",
"version": "0.3.113",
"version": "0.0.0-202508022053",
"scripts": {
"dev": "astro dev",
"dev:remote": "sst shell --stage=dev --target=Web astro dev",
-5
View File
@@ -1,5 +0,0 @@
User-agent: *
Allow: /
# Disallow shared content pages
Disallow: /s/
@@ -331,6 +331,7 @@ Or if you already have an API key, you can select **Manually enter API Key** and
1. Head over to the [Cerebras console](https://inference.cerebras.ai/), create an account, and generate an API key.
2. Run `opencode auth login` and select **Cerebras**.
```bash
@@ -588,7 +589,7 @@ To use Kimi K2 from Moonshot AI:
5. Configure Moonshot in your opencode config.
```json title="opencode.json" ""moonshot"" {5-15}
```json title="opencode.json" "\"moonshot\"" {5-15}
{
"$schema": "https://opencode.ai/config.json",
"provider": {
@@ -795,42 +796,6 @@ https://platform.openai.com/api-keys
---
### Zhipu AI
1. Head over to the [Zhipu API console](https://z.ai/manage-apikey/apikey-list), create an account, and click **Create a new API key**.
2. Run `opencode auth login` and select **Zhipu AI**.
```bash
$ opencode auth login
┌ Add credential
◆ Select provider
│ ● Zhipu AI
│ ...
```
3. Enter your Zhipu AI API key.
```bash
$ opencode auth login
┌ Add credential
◇ Select provider
│ Zhipu AI
◇ Enter your API key
│ _
```
4. Run the `/models` command to select a model like _GLM-4.5_.
---
## Troubleshooting
If you are having trouble with configuring a provider, check the following:
+1 -1
View File
@@ -71,7 +71,7 @@ const ogImage = `${config.socialCard}/opencode-share/${encodedTitle}.png?model=$
tag: "meta",
attrs: {
name: "robots",
content: "noindex, nofollow, noarchive, nosnippet",
content: "noindex",
}
},
{
+4 -18
View File
@@ -11,13 +11,6 @@ if (!version) {
}
process.env["OPENCODE_VERSION"] = version
const pkgjsons = await Array.fromAsync(
new Bun.Glob("**/package.json").scan({
absolute: true,
}),
)
const tree = await $`git add . && git write-tree`.text().then((x) => x.trim())
for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true,
})) {
@@ -26,7 +19,7 @@ for await (const file of new Bun.Glob("**/package.json").scan({
await Bun.file(file).write(pkg)
}
await import(`../packages/opencode/script/publish.ts`)
// await import(`../packages/opencode/script/publish.ts`)
await import(`../packages/sdk/js/script/publish.ts`)
await import(`../packages/plugin/script/publish.ts`)
// await import(`../packages/sdk/stainless/generate.ts`)
@@ -34,18 +27,11 @@ await import(`../packages/plugin/script/publish.ts`)
if (!snapshot) {
await $`git commit -am "release: v${version}"`
await $`git tag v${version}`
await $`git push origin HEAD --tags --no-verify`
await $`git push origin HEAD --tags`
}
if (snapshot) {
await $`git checkout -b snapshot-${version}`
await $`git commit --allow-empty -m "Snapshot release v${version}"`
await $`git tag v${version}`
await $`git push origin v${version} --no-verify`
await $`git checkout dev`
await $`git branch -D snapshot-${version}`
for await (const file of new Bun.Glob("**/package.json").scan({
absolute: true,
})) {
$`await git checkout ${tree} ${file}`
}
await $`git push origin v${version}`
await $`git reset --soft HEAD~1`
}
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "opencode",
"displayName": "opencode",
"description": "opencode for VS Code",
"version": "0.3.113",
"version": "0.0.0-202508022053",
"publisher": "sst-dev",
"repository": {
"type": "git",
+15
View File
@@ -0,0 +1,15 @@
import * as assert from 'assert';
// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
import * as vscode from 'vscode';
// import * as myExtension from '../../extension';
suite('Extension Test Suite', () => {
vscode.window.showInformationMessage('Start all tests.');
test('Sample test', () => {
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
});
});