mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
release: v0.10.0
This commit is contained in:
18
bun.lock
18
bun.lock
@@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
"packages/app": {
|
"packages/app": {
|
||||||
"name": "@opencode/app",
|
"name": "@opencode/app",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@kobalte/core": "0.13.11",
|
"@kobalte/core": "0.13.11",
|
||||||
"@opencode-ai/sdk": "workspace:*",
|
"@opencode-ai/sdk": "workspace:*",
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
},
|
},
|
||||||
"packages/console/core": {
|
"packages/console/core": {
|
||||||
"name": "@opencode/console-core",
|
"name": "@opencode/console-core",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-sts": "3.782.0",
|
"@aws-sdk/client-sts": "3.782.0",
|
||||||
"@opencode/console-resource": "workspace:*",
|
"@opencode/console-resource": "workspace:*",
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
},
|
},
|
||||||
"packages/console/function": {
|
"packages/console/function": {
|
||||||
"name": "@opencode/console-function",
|
"name": "@opencode/console-function",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ai-sdk/anthropic": "2.0.0",
|
"@ai-sdk/anthropic": "2.0.0",
|
||||||
"@ai-sdk/openai": "2.0.2",
|
"@ai-sdk/openai": "2.0.2",
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
},
|
},
|
||||||
"packages/console/scripts": {
|
"packages/console/scripts": {
|
||||||
"name": "@opencode/console-scripts",
|
"name": "@opencode/console-scripts",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@opencode/console-core": "workspace:*",
|
"@opencode/console-core": "workspace:*",
|
||||||
"tsx": "4.20.5",
|
"tsx": "4.20.5",
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
},
|
},
|
||||||
"packages/function": {
|
"packages/function": {
|
||||||
"name": "@opencode/function",
|
"name": "@opencode/function",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/auth-app": "8.0.1",
|
"@octokit/auth-app": "8.0.1",
|
||||||
"@octokit/rest": "22.0.0",
|
"@octokit/rest": "22.0.0",
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
},
|
},
|
||||||
"packages/opencode": {
|
"packages/opencode": {
|
||||||
"name": "opencode",
|
"name": "opencode",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"opencode": "./bin/opencode",
|
"opencode": "./bin/opencode",
|
||||||
},
|
},
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
},
|
},
|
||||||
"packages/plugin": {
|
"packages/plugin": {
|
||||||
"name": "@opencode-ai/plugin",
|
"name": "@opencode-ai/plugin",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@opencode-ai/sdk": "workspace:*",
|
"@opencode-ai/sdk": "workspace:*",
|
||||||
"zod": "catalog:",
|
"zod": "catalog:",
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
},
|
},
|
||||||
"packages/sdk/js": {
|
"packages/sdk/js": {
|
||||||
"name": "@opencode-ai/sdk",
|
"name": "@opencode-ai/sdk",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hey-api/openapi-ts": "0.81.0",
|
"@hey-api/openapi-ts": "0.81.0",
|
||||||
},
|
},
|
||||||
@@ -204,7 +204,7 @@
|
|||||||
},
|
},
|
||||||
"packages/web": {
|
"packages/web": {
|
||||||
"name": "@opencode/web",
|
"name": "@opencode/web",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/cloudflare": "12.6.3",
|
"@astrojs/cloudflare": "12.6.3",
|
||||||
"@astrojs/markdown-remark": "6.3.1",
|
"@astrojs/markdown-remark": "6.3.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@opencode/app",
|
"name": "@opencode/app",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"dev:remote": "VITE_AUTH_URL=https://auth.dev.opencode.ai bun sst shell --stage=dev bun dev",
|
"dev:remote": "VITE_AUTH_URL=https://auth.dev.opencode.ai bun sst shell --stage=dev bun dev",
|
||||||
"build": "vinxi build && ../../opencode/script/schema.ts ./.output/public/config.json",
|
"build": "vinxi build && ../../opencode/script/schema.ts ./.output/public/config.json",
|
||||||
"start": "vinxi start",
|
"start": "vinxi start",
|
||||||
"version": "0.9.11"
|
"version": "0.10.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ibm/plex": "6.4.1",
|
"@ibm/plex": "6.4.1",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "@opencode/console-core",
|
"name": "@opencode/console-core",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@opencode/console-function",
|
"name": "@opencode/console-function",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@opencode/console-scripts",
|
"name": "@opencode/console-scripts",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@opencode/function",
|
"name": "@opencode/function",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"name": "opencode",
|
"name": "opencode",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "@opencode-ai/plugin",
|
"name": "@opencode-ai/plugin",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"name": "@opencode-ai/sdk",
|
"name": "@opencode-ai/sdk",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"typecheck": "tsc --noEmit"
|
"typecheck": "tsc --noEmit"
|
||||||
|
|||||||
@@ -8,9 +8,6 @@ import type {
|
|||||||
ProjectCurrentResponses,
|
ProjectCurrentResponses,
|
||||||
ConfigGetData,
|
ConfigGetData,
|
||||||
ConfigGetResponses,
|
ConfigGetResponses,
|
||||||
ToolRegisterData,
|
|
||||||
ToolRegisterResponses,
|
|
||||||
ToolRegisterErrors,
|
|
||||||
ToolIdsData,
|
ToolIdsData,
|
||||||
ToolIdsResponses,
|
ToolIdsResponses,
|
||||||
ToolIdsErrors,
|
ToolIdsErrors,
|
||||||
@@ -176,20 +173,6 @@ class Config extends _HeyApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Tool extends _HeyApiClient {
|
class Tool extends _HeyApiClient {
|
||||||
/**
|
|
||||||
* Register a new HTTP callback tool
|
|
||||||
*/
|
|
||||||
public register<ThrowOnError extends boolean = false>(options?: Options<ToolRegisterData, ThrowOnError>) {
|
|
||||||
return (options?.client ?? this._client).post<ToolRegisterResponses, ToolRegisterErrors, ThrowOnError>({
|
|
||||||
url: "/experimental/tool/register",
|
|
||||||
...options,
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
...options?.headers,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List all tool IDs (including built-in and dynamically registered)
|
* List all tool IDs (including built-in and dynamically registered)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -504,36 +504,14 @@ export type Config = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ToolIds = Array<string>
|
||||||
|
|
||||||
export type _Error = {
|
export type _Error = {
|
||||||
data: {
|
data: {
|
||||||
[key: string]: unknown
|
[key: string]: unknown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type HttpParamSpec = {
|
|
||||||
type: "string" | "number" | "boolean" | "array"
|
|
||||||
description?: string
|
|
||||||
optional?: boolean
|
|
||||||
items?: "string" | "number" | "boolean"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type HttpToolRegistration = {
|
|
||||||
id: string
|
|
||||||
description: string
|
|
||||||
parameters: {
|
|
||||||
type: "object"
|
|
||||||
properties: {
|
|
||||||
[key: string]: HttpParamSpec
|
|
||||||
}
|
|
||||||
}
|
|
||||||
callbackUrl: string
|
|
||||||
headers?: {
|
|
||||||
[key: string]: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ToolIds = Array<string>
|
|
||||||
|
|
||||||
export type ToolListItem = {
|
export type ToolListItem = {
|
||||||
id: string
|
id: string
|
||||||
description: string
|
description: string
|
||||||
@@ -1222,33 +1200,6 @@ export type ConfigGetResponses = {
|
|||||||
|
|
||||||
export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses]
|
export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses]
|
||||||
|
|
||||||
export type ToolRegisterData = {
|
|
||||||
body?: HttpToolRegistration
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/experimental/tool/register"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ToolRegisterErrors = {
|
|
||||||
/**
|
|
||||||
* Bad request
|
|
||||||
*/
|
|
||||||
400: _Error
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ToolRegisterError = ToolRegisterErrors[keyof ToolRegisterErrors]
|
|
||||||
|
|
||||||
export type ToolRegisterResponses = {
|
|
||||||
/**
|
|
||||||
* Tool registered successfully
|
|
||||||
*/
|
|
||||||
200: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ToolRegisterResponse = ToolRegisterResponses[keyof ToolRegisterResponses]
|
|
||||||
|
|
||||||
export type ToolIdsData = {
|
export type ToolIdsData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@opencode/web",
|
"name": "@opencode/web",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"dev:remote": "VITE_API_URL=https://api.opencode.ai astro dev",
|
"dev:remote": "VITE_API_URL=https://api.opencode.ai astro dev",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "opencode",
|
"name": "opencode",
|
||||||
"displayName": "opencode",
|
"displayName": "opencode",
|
||||||
"description": "opencode for VS Code",
|
"description": "opencode for VS Code",
|
||||||
"version": "0.9.11",
|
"version": "0.10.0",
|
||||||
"publisher": "sst-dev",
|
"publisher": "sst-dev",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user