summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
committerDavid Hill <[email protected]>2025-11-10 13:44:12 +0000
commitc6e830c954418808dc39284a1c073aa63a6d4d21 (patch)
tree9c3052e0509115188768a553c0be5a8441ebdd96 /packages/sdk
parent7088bfabd773e2f076aab1c9d2468c04feff0570 (diff)
parentfc78c28df64383a9f99382093f61fc28caf6569f (diff)
downloadopencode-c6e830c954418808dc39284a1c073aa63a6d4d21.tar.gz
opencode-c6e830c954418808dc39284a1c073aa63a6d4d21.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/go/.github/workflows/ci.yml14
-rw-r--r--packages/sdk/go/.release-please-manifest.json2
-rw-r--r--packages/sdk/go/CHANGELOG.md147
-rw-r--r--packages/sdk/go/release-please-config.json7
-rw-r--r--packages/sdk/js/package.json2
-rw-r--r--packages/sdk/js/src/gen/client.gen.ts7
-rw-r--r--packages/sdk/js/src/gen/client/client.gen.ts4
-rw-r--r--packages/sdk/js/src/gen/client/types.gen.ts19
-rw-r--r--packages/sdk/js/src/gen/client/utils.gen.ts37
-rw-r--r--packages/sdk/js/src/gen/core/bodySerializer.gen.ts4
-rw-r--r--packages/sdk/js/src/gen/core/pathSerializer.gen.ts12
-rw-r--r--packages/sdk/js/src/gen/core/serverSentEvents.gen.ts6
-rw-r--r--packages/sdk/js/src/gen/core/types.gen.ts11
-rw-r--r--packages/sdk/js/src/gen/core/utils.gen.ts4
-rw-r--r--packages/sdk/js/src/gen/sdk.gen.ts355
-rw-r--r--packages/sdk/js/src/gen/types.gen.ts87
-rw-r--r--packages/sdk/js/sst-env.d.ts2
-rw-r--r--packages/sdk/python/README.md18
-rw-r--r--packages/sdk/python/docs/generation.md3
-rw-r--r--packages/sdk/python/docs/index.md1
-rw-r--r--packages/sdk/python/docs/installation.md5
-rw-r--r--packages/sdk/python/docs/publishing.md3
-rw-r--r--packages/sdk/python/docs/testing.md1
-rw-r--r--packages/sdk/python/mkdocs.yml2
-rw-r--r--packages/sdk/python/sst.pyi10
25 files changed, 298 insertions, 465 deletions
diff --git a/packages/sdk/go/.github/workflows/ci.yml b/packages/sdk/go/.github/workflows/ci.yml
index 4bf1e907c..0f5d45dc2 100644
--- a/packages/sdk/go/.github/workflows/ci.yml
+++ b/packages/sdk/go/.github/workflows/ci.yml
@@ -2,15 +2,15 @@ name: CI
on:
push:
branches-ignore:
- - 'generated'
- - 'codegen/**'
- - 'integrated/**'
- - 'stl-preview-head/**'
- - 'stl-preview-base/**'
+ - "generated"
+ - "codegen/**"
+ - "integrated/**"
+ - "stl-preview-head/**"
+ - "stl-preview-base/**"
pull_request:
branches-ignore:
- - 'stl-preview-head/**'
- - 'stl-preview-base/**'
+ - "stl-preview-head/**"
+ - "stl-preview-base/**"
jobs:
lint:
diff --git a/packages/sdk/go/.release-please-manifest.json b/packages/sdk/go/.release-please-manifest.json
index 4ad3fef33..5e39b9417 100644
--- a/packages/sdk/go/.release-please-manifest.json
+++ b/packages/sdk/go/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
".": "0.18.0"
-} \ No newline at end of file
+}
diff --git a/packages/sdk/go/CHANGELOG.md b/packages/sdk/go/CHANGELOG.md
index 498a78029..937fbfdd0 100644
--- a/packages/sdk/go/CHANGELOG.md
+++ b/packages/sdk/go/CHANGELOG.md
@@ -6,7 +6,7 @@ Full Changelog: [v0.17.0...v0.18.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([0a7f5e7](https://github.com/sst/opencode-sdk-go/commit/0a7f5e710911506512a132ba39e0593c412beb77))
+- **api:** api update ([0a7f5e7](https://github.com/sst/opencode-sdk-go/commit/0a7f5e710911506512a132ba39e0593c412beb77))
## 0.17.0 (2025-10-07)
@@ -14,7 +14,7 @@ Full Changelog: [v0.16.2...v0.17.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([84a3df5](https://github.com/sst/opencode-sdk-go/commit/84a3df50a7ff3d87e5593e4f29dfb5d561f71cc3))
+- **api:** api update ([84a3df5](https://github.com/sst/opencode-sdk-go/commit/84a3df50a7ff3d87e5593e4f29dfb5d561f71cc3))
## 0.16.2 (2025-09-26)
@@ -22,7 +22,7 @@ Full Changelog: [v0.16.1...v0.16.2](https://github.com/sst/opencode-sdk-go/compa
### Bug Fixes
-* bugfix for setting JSON keys with special characters ([ac9a36f](https://github.com/sst/opencode-sdk-go/commit/ac9a36feb1c185ebf766d76909d0b86ac805e8a6))
+- bugfix for setting JSON keys with special characters ([ac9a36f](https://github.com/sst/opencode-sdk-go/commit/ac9a36feb1c185ebf766d76909d0b86ac805e8a6))
## 0.16.1 (2025-09-20)
@@ -30,14 +30,13 @@ Full Changelog: [v0.16.0...v0.16.1](https://github.com/sst/opencode-sdk-go/compa
### Bug Fixes
-* use slices.Concat instead of sometimes modifying r.Options ([12e8b40](https://github.com/sst/opencode-sdk-go/commit/12e8b40809071095b0abb9b8031686353c8ac149))
-
+- use slices.Concat instead of sometimes modifying r.Options ([12e8b40](https://github.com/sst/opencode-sdk-go/commit/12e8b40809071095b0abb9b8031686353c8ac149))
### Chores
-* bump minimum go version to 1.22 ([1a61c5c](https://github.com/sst/opencode-sdk-go/commit/1a61c5cc7e8f68cc1b0c219738cab530cb6aa3a2))
-* do not install brew dependencies in ./scripts/bootstrap by default ([f6d3eaf](https://github.com/sst/opencode-sdk-go/commit/f6d3eafffc20e124bbfae6ac5ddc1b1122ad3e27))
-* update more docs for 1.22 ([a3d0b0f](https://github.com/sst/opencode-sdk-go/commit/a3d0b0f26ed92ce1a6433f5bcf37a6436d268ba5))
+- bump minimum go version to 1.22 ([1a61c5c](https://github.com/sst/opencode-sdk-go/commit/1a61c5cc7e8f68cc1b0c219738cab530cb6aa3a2))
+- do not install brew dependencies in ./scripts/bootstrap by default ([f6d3eaf](https://github.com/sst/opencode-sdk-go/commit/f6d3eafffc20e124bbfae6ac5ddc1b1122ad3e27))
+- update more docs for 1.22 ([a3d0b0f](https://github.com/sst/opencode-sdk-go/commit/a3d0b0f26ed92ce1a6433f5bcf37a6436d268ba5))
## 0.16.0 (2025-09-17)
@@ -45,7 +44,7 @@ Full Changelog: [v0.15.0...v0.16.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([46e978e](https://github.com/sst/opencode-sdk-go/commit/46e978e43aee733d5c1c09dc5be6d8ac2a752427))
+- **api:** api update ([46e978e](https://github.com/sst/opencode-sdk-go/commit/46e978e43aee733d5c1c09dc5be6d8ac2a752427))
## 0.15.0 (2025-09-16)
@@ -53,7 +52,7 @@ Full Changelog: [v0.14.0...v0.15.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([397048f](https://github.com/sst/opencode-sdk-go/commit/397048faca7a1de7a028edd2254a0ad7797b151f))
+- **api:** api update ([397048f](https://github.com/sst/opencode-sdk-go/commit/397048faca7a1de7a028edd2254a0ad7797b151f))
## 0.14.0 (2025-09-14)
@@ -61,7 +60,7 @@ Full Changelog: [v0.13.0...v0.14.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([dad0bc3](https://github.com/sst/opencode-sdk-go/commit/dad0bc3da99f20a0d002a6b94e049fb70f8e6a77))
+- **api:** api update ([dad0bc3](https://github.com/sst/opencode-sdk-go/commit/dad0bc3da99f20a0d002a6b94e049fb70f8e6a77))
## 0.13.0 (2025-09-14)
@@ -69,7 +68,7 @@ Full Changelog: [v0.12.0...v0.13.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([80da4fb](https://github.com/sst/opencode-sdk-go/commit/80da4fb4ea9c6afb51a7e7135d9f5560ce6f2a6c))
+- **api:** api update ([80da4fb](https://github.com/sst/opencode-sdk-go/commit/80da4fb4ea9c6afb51a7e7135d9f5560ce6f2a6c))
## 0.12.0 (2025-09-14)
@@ -77,7 +76,7 @@ Full Changelog: [v0.11.0...v0.12.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([7e3808b](https://github.com/sst/opencode-sdk-go/commit/7e3808ba349dc653174b32b48a1120c18d2975c2))
+- **api:** api update ([7e3808b](https://github.com/sst/opencode-sdk-go/commit/7e3808ba349dc653174b32b48a1120c18d2975c2))
## 0.11.0 (2025-09-14)
@@ -85,7 +84,7 @@ Full Changelog: [v0.10.0...v0.11.0](https://github.com/sst/opencode-sdk-go/compa
### Features
-* **api:** api update ([a3d37f5](https://github.com/sst/opencode-sdk-go/commit/a3d37f5671545866547d351fc21b49809cc8b3c2))
+- **api:** api update ([a3d37f5](https://github.com/sst/opencode-sdk-go/commit/a3d37f5671545866547d351fc21b49809cc8b3c2))
## 0.10.0 (2025-09-11)
@@ -93,7 +92,7 @@ Full Changelog: [v0.9.0...v0.10.0](https://github.com/sst/opencode-sdk-go/compar
### Features
-* **api:** api update ([0dc01f6](https://github.com/sst/opencode-sdk-go/commit/0dc01f6695c9b8400a4dc92166c5002bb120cf50))
+- **api:** api update ([0dc01f6](https://github.com/sst/opencode-sdk-go/commit/0dc01f6695c9b8400a4dc92166c5002bb120cf50))
## 0.9.0 (2025-09-10)
@@ -101,7 +100,7 @@ Full Changelog: [v0.8.0...v0.9.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([2d3a28d](https://github.com/sst/opencode-sdk-go/commit/2d3a28df5657845aa4d73087e1737d1fc8c3ce1c))
+- **api:** api update ([2d3a28d](https://github.com/sst/opencode-sdk-go/commit/2d3a28df5657845aa4d73087e1737d1fc8c3ce1c))
## 0.8.0 (2025-09-01)
@@ -109,7 +108,7 @@ Full Changelog: [v0.7.0...v0.8.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([ae87a71](https://github.com/sst/opencode-sdk-go/commit/ae87a71949994590ace8285a39f0991ef34b664d))
+- **api:** api update ([ae87a71](https://github.com/sst/opencode-sdk-go/commit/ae87a71949994590ace8285a39f0991ef34b664d))
## 0.7.0 (2025-09-01)
@@ -117,7 +116,7 @@ Full Changelog: [v0.6.0...v0.7.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([64bb1b1](https://github.com/sst/opencode-sdk-go/commit/64bb1b1ee0cbe153abc6fb7bd9703b47911724d4))
+- **api:** api update ([64bb1b1](https://github.com/sst/opencode-sdk-go/commit/64bb1b1ee0cbe153abc6fb7bd9703b47911724d4))
## 0.6.0 (2025-09-01)
@@ -125,7 +124,7 @@ Full Changelog: [v0.5.0...v0.6.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([928e384](https://github.com/sst/opencode-sdk-go/commit/928e3843355f96899f046f002b84372281dad0c8))
+- **api:** api update ([928e384](https://github.com/sst/opencode-sdk-go/commit/928e3843355f96899f046f002b84372281dad0c8))
## 0.5.0 (2025-08-31)
@@ -133,7 +132,7 @@ Full Changelog: [v0.4.0...v0.5.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([44b281d](https://github.com/sst/opencode-sdk-go/commit/44b281d0bb39c5022a984ac9d0fca1529ccc0604))
+- **api:** api update ([44b281d](https://github.com/sst/opencode-sdk-go/commit/44b281d0bb39c5022a984ac9d0fca1529ccc0604))
## 0.4.0 (2025-08-31)
@@ -141,7 +140,7 @@ Full Changelog: [v0.3.0...v0.4.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([fa9d6ec](https://github.com/sst/opencode-sdk-go/commit/fa9d6ec6472e62f4f6605d0a71a7aa8bf8a24559))
+- **api:** api update ([fa9d6ec](https://github.com/sst/opencode-sdk-go/commit/fa9d6ec6472e62f4f6605d0a71a7aa8bf8a24559))
## 0.3.0 (2025-08-31)
@@ -149,7 +148,7 @@ Full Changelog: [v0.2.0...v0.3.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([aae1c06](https://github.com/sst/opencode-sdk-go/commit/aae1c06bb5a93a1cd9c589846a84b3f16246f5da))
+- **api:** api update ([aae1c06](https://github.com/sst/opencode-sdk-go/commit/aae1c06bb5a93a1cd9c589846a84b3f16246f5da))
## 0.2.0 (2025-08-31)
@@ -157,7 +156,7 @@ Full Changelog: [v0.1.0...v0.2.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([1472790](https://github.com/sst/opencode-sdk-go/commit/1472790542515f47bd46e2a9e28d8afea024cf9c))
+- **api:** api update ([1472790](https://github.com/sst/opencode-sdk-go/commit/1472790542515f47bd46e2a9e28d8afea024cf9c))
## 0.1.0 (2025-08-31)
@@ -165,61 +164,59 @@ Full Changelog: [v0.0.1...v0.1.0](https://github.com/sst/opencode-sdk-go/compare
### Features
-* **api:** api update ([3f03ddd](https://github.com/sst/opencode-sdk-go/commit/3f03dddd5ec0de98f99ce48679077dcae9ceffd6))
-* **api:** api update ([e9f79c4](https://github.com/sst/opencode-sdk-go/commit/e9f79c4792b21ef64ab0431ffd76f5a71e04d182))
-* **api:** api update ([139a686](https://github.com/sst/opencode-sdk-go/commit/139a6862d2f0ab0c8ea791663d736868be3e96e6))
-* **api:** api update ([2ed0800](https://github.com/sst/opencode-sdk-go/commit/2ed0800b2c5b99877e9f7fde669a6c005fad6b77))
-* **api:** api update ([88a87a4](https://github.com/sst/opencode-sdk-go/commit/88a87a458f56ce0c18b502c73da933f614f56e8b))
-* **api:** api update ([0e5d65b](https://github.com/sst/opencode-sdk-go/commit/0e5d65b571e7b30dc6347e6730098878ebba3a42))
-* **api:** api update ([ba381f1](https://github.com/sst/opencode-sdk-go/commit/ba381f1e07aad24e9824df7d53befae2a644f69f))
-* **api:** api update ([3f429f5](https://github.com/sst/opencode-sdk-go/commit/3f429f5b4be5607433ef5fdc0d5bf67fe590d039))
-* **api:** api update ([9f34787](https://github.com/sst/opencode-sdk-go/commit/9f347876b35b7f898060c1a5f71c322e95978e3e))
-* **api:** api update ([379c8e0](https://github.com/sst/opencode-sdk-go/commit/379c8e00197e13aebaf2f2d61277b125f1f90011))
-* **api:** api update ([550511c](https://github.com/sst/opencode-sdk-go/commit/550511c4c5b5055ac8ff22b7b11731331bd9d088))
-* **api:** api update ([547f0c2](https://github.com/sst/opencode-sdk-go/commit/547f0c262f2df1ce83eaa7267d68be64bb29b841))
-* **api:** api update ([b7b0720](https://github.com/sst/opencode-sdk-go/commit/b7b07204bff314da24b1819c128835a43ef64065))
-* **api:** api update ([7250ffc](https://github.com/sst/opencode-sdk-go/commit/7250ffcba262b916c958ddecc2a42927982db39f))
-* **api:** api update ([17fbab7](https://github.com/sst/opencode-sdk-go/commit/17fbab73111a3eae488737c69b12370bc69c65f7))
-* **api:** api update ([1270b5c](https://github.com/sst/opencode-sdk-go/commit/1270b5cd81e6ac769dcd92ade6d877891bf51bd5))
-* **api:** api update ([a238d4a](https://github.com/sst/opencode-sdk-go/commit/a238d4abd6ed7d15f3547d27a4b6ecf4aec8431e))
-* **api:** api update ([7475655](https://github.com/sst/opencode-sdk-go/commit/7475655aca577fe4f807c2f02f92171f6a358e9c))
-* **api:** api update ([429d258](https://github.com/sst/opencode-sdk-go/commit/429d258bb56e9cdeb1528be3944bf5537ac26a96))
-* **api:** api update ([f250915](https://github.com/sst/opencode-sdk-go/commit/f2509157eaf1b453e741ee9482127cad2e3ace25))
-* **api:** api update ([5efc987](https://github.com/sst/opencode-sdk-go/commit/5efc987353801d1e772c20edf162b1c75da32743))
-* **api:** api update ([98a8350](https://github.com/sst/opencode-sdk-go/commit/98a83504f7cfc361e83314c3e79a4e9ff53f0560))
-* **api:** api update ([6da8bf8](https://github.com/sst/opencode-sdk-go/commit/6da8bf8bfe91d45991fb580753d77c5534fc0b1b))
-* **api:** api update ([f8c7148](https://github.com/sst/opencode-sdk-go/commit/f8c7148ae56143823186e2675a78e82676154956))
-* **api:** manual updates ([7cf038f](https://github.com/sst/opencode-sdk-go/commit/7cf038ffae5da1b77e1cef11b5fa166a53b467f2))
-* **api:** update via SDK Studio ([068a0eb](https://github.com/sst/opencode-sdk-go/commit/068a0eb025010da0c8d86fa1bb496a39dbedcef9))
-* **api:** update via SDK Studio ([ca651ed](https://github.com/sst/opencode-sdk-go/commit/ca651edaf71d1f3678f929287474f5bc4f1aad10))
-* **api:** update via SDK Studio ([13550a5](https://github.com/sst/opencode-sdk-go/commit/13550a5c65d77325e945ed99fe0799cd1107b775))
-* **api:** update via SDK Studio ([7b73730](https://github.com/sst/opencode-sdk-go/commit/7b73730c7fa62ba966dda3541c3e97b49be8d2bf))
-* **api:** update via SDK Studio ([9e39a59](https://github.com/sst/opencode-sdk-go/commit/9e39a59b3d5d1bd5e64633732521fb28362cc70e))
-* **api:** update via SDK Studio ([9609d1b](https://github.com/sst/opencode-sdk-go/commit/9609d1b1db7806d00cb846c9914cb4935cdedf52))
-* **api:** update via SDK Studio ([51315fa](https://github.com/sst/opencode-sdk-go/commit/51315fa2eae424743ea79701e67d44447c44144d))
-* **api:** update via SDK Studio ([af07955](https://github.com/sst/opencode-sdk-go/commit/af0795543240aefaf04fc7663a348825541c79ed))
-* **api:** update via SDK Studio ([5e3468a](https://github.com/sst/opencode-sdk-go/commit/5e3468a0aaa5ed3b13e019c3a24e0ba9147d1675))
-* **api:** update via SDK Studio ([0a73e04](https://github.com/sst/opencode-sdk-go/commit/0a73e04c23c90b2061611edaa8fd6282dc0ce397))
-* **api:** update via SDK Studio ([9b7883a](https://github.com/sst/opencode-sdk-go/commit/9b7883a144eeac526d9d04538e0876a9d18bb844))
-* **client:** expand max streaming buffer size ([76303e5](https://github.com/sst/opencode-sdk-go/commit/76303e51067e78e732af26ced9d83b8bad7655c3))
-* **client:** support optional json html escaping ([449748f](https://github.com/sst/opencode-sdk-go/commit/449748f35a1d8cb6f91dc36d25bf9489f4f371bd))
-
+- **api:** api update ([3f03ddd](https://github.com/sst/opencode-sdk-go/commit/3f03dddd5ec0de98f99ce48679077dcae9ceffd6))
+- **api:** api update ([e9f79c4](https://github.com/sst/opencode-sdk-go/commit/e9f79c4792b21ef64ab0431ffd76f5a71e04d182))
+- **api:** api update ([139a686](https://github.com/sst/opencode-sdk-go/commit/139a6862d2f0ab0c8ea791663d736868be3e96e6))
+- **api:** api update ([2ed0800](https://github.com/sst/opencode-sdk-go/commit/2ed0800b2c5b99877e9f7fde669a6c005fad6b77))
+- **api:** api update ([88a87a4](https://github.com/sst/opencode-sdk-go/commit/88a87a458f56ce0c18b502c73da933f614f56e8b))
+- **api:** api update ([0e5d65b](https://github.com/sst/opencode-sdk-go/commit/0e5d65b571e7b30dc6347e6730098878ebba3a42))
+- **api:** api update ([ba381f1](https://github.com/sst/opencode-sdk-go/commit/ba381f1e07aad24e9824df7d53befae2a644f69f))
+- **api:** api update ([3f429f5](https://github.com/sst/opencode-sdk-go/commit/3f429f5b4be5607433ef5fdc0d5bf67fe590d039))
+- **api:** api update ([9f34787](https://github.com/sst/opencode-sdk-go/commit/9f347876b35b7f898060c1a5f71c322e95978e3e))
+- **api:** api update ([379c8e0](https://github.com/sst/opencode-sdk-go/commit/379c8e00197e13aebaf2f2d61277b125f1f90011))
+- **api:** api update ([550511c](https://github.com/sst/opencode-sdk-go/commit/550511c4c5b5055ac8ff22b7b11731331bd9d088))
+- **api:** api update ([547f0c2](https://github.com/sst/opencode-sdk-go/commit/547f0c262f2df1ce83eaa7267d68be64bb29b841))
+- **api:** api update ([b7b0720](https://github.com/sst/opencode-sdk-go/commit/b7b07204bff314da24b1819c128835a43ef64065))
+- **api:** api update ([7250ffc](https://github.com/sst/opencode-sdk-go/commit/7250ffcba262b916c958ddecc2a42927982db39f))
+- **api:** api update ([17fbab7](https://github.com/sst/opencode-sdk-go/commit/17fbab73111a3eae488737c69b12370bc69c65f7))
+- **api:** api update ([1270b5c](https://github.com/sst/opencode-sdk-go/commit/1270b5cd81e6ac769dcd92ade6d877891bf51bd5))
+- **api:** api update ([a238d4a](https://github.com/sst/opencode-sdk-go/commit/a238d4abd6ed7d15f3547d27a4b6ecf4aec8431e))
+- **api:** api update ([7475655](https://github.com/sst/opencode-sdk-go/commit/7475655aca577fe4f807c2f02f92171f6a358e9c))
+- **api:** api update ([429d258](https://github.com/sst/opencode-sdk-go/commit/429d258bb56e9cdeb1528be3944bf5537ac26a96))
+- **api:** api update ([f250915](https://github.com/sst/opencode-sdk-go/commit/f2509157eaf1b453e741ee9482127cad2e3ace25))
+- **api:** api update ([5efc987](https://github.com/sst/opencode-sdk-go/commit/5efc987353801d1e772c20edf162b1c75da32743))
+- **api:** api update ([98a8350](https://github.com/sst/opencode-sdk-go/commit/98a83504f7cfc361e83314c3e79a4e9ff53f0560))
+- **api:** api update ([6da8bf8](https://github.com/sst/opencode-sdk-go/commit/6da8bf8bfe91d45991fb580753d77c5534fc0b1b))
+- **api:** api update ([f8c7148](https://github.com/sst/opencode-sdk-go/commit/f8c7148ae56143823186e2675a78e82676154956))
+- **api:** manual updates ([7cf038f](https://github.com/sst/opencode-sdk-go/commit/7cf038ffae5da1b77e1cef11b5fa166a53b467f2))
+- **api:** update via SDK Studio ([068a0eb](https://github.com/sst/opencode-sdk-go/commit/068a0eb025010da0c8d86fa1bb496a39dbedcef9))
+- **api:** update via SDK Studio ([ca651ed](https://github.com/sst/opencode-sdk-go/commit/ca651edaf71d1f3678f929287474f5bc4f1aad10))
+- **api:** update via SDK Studio ([13550a5](https://github.com/sst/opencode-sdk-go/commit/13550a5c65d77325e945ed99fe0799cd1107b775))
+- **api:** update via SDK Studio ([7b73730](https://github.com/sst/opencode-sdk-go/commit/7b73730c7fa62ba966dda3541c3e97b49be8d2bf))
+- **api:** update via SDK Studio ([9e39a59](https://github.com/sst/opencode-sdk-go/commit/9e39a59b3d5d1bd5e64633732521fb28362cc70e))
+- **api:** update via SDK Studio ([9609d1b](https://github.com/sst/opencode-sdk-go/commit/9609d1b1db7806d00cb846c9914cb4935cdedf52))
+- **api:** update via SDK Studio ([51315fa](https://github.com/sst/opencode-sdk-go/commit/51315fa2eae424743ea79701e67d44447c44144d))
+- **api:** update via SDK Studio ([af07955](https://github.com/sst/opencode-sdk-go/commit/af0795543240aefaf04fc7663a348825541c79ed))
+- **api:** update via SDK Studio ([5e3468a](https://github.com/sst/opencode-sdk-go/commit/5e3468a0aaa5ed3b13e019c3a24e0ba9147d1675))
+- **api:** update via SDK Studio ([0a73e04](https://github.com/sst/opencode-sdk-go/commit/0a73e04c23c90b2061611edaa8fd6282dc0ce397))
+- **api:** update via SDK Studio ([9b7883a](https://github.com/sst/opencode-sdk-go/commit/9b7883a144eeac526d9d04538e0876a9d18bb844))
+- **client:** expand max streaming buffer size ([76303e5](https://github.com/sst/opencode-sdk-go/commit/76303e51067e78e732af26ced9d83b8bad7655c3))
+- **client:** support optional json html escaping ([449748f](https://github.com/sst/opencode-sdk-go/commit/449748f35a1d8cb6f91dc36d25bf9489f4f371bd))
### Bug Fixes
-* **client:** process custom base url ahead of time ([9b360d6](https://github.com/sst/opencode-sdk-go/commit/9b360d642cf6f302104308af5622e17099899e5f))
-* **client:** resolve lint errors in streaming tests ([4d36cb0](https://github.com/sst/opencode-sdk-go/commit/4d36cb09fc9d436734d5dab1c499acaa88568ff7))
-* close body before retrying ([4da3f7f](https://github.com/sst/opencode-sdk-go/commit/4da3f7f372bad222a189ba3eabcfde3373166ae5))
-* don't try to deserialize as json when ResponseBodyInto is []byte ([595291f](https://github.com/sst/opencode-sdk-go/commit/595291f6dba6af472f160b9f8e3d145002f43a4a))
-
+- **client:** process custom base url ahead of time ([9b360d6](https://github.com/sst/opencode-sdk-go/commit/9b360d642cf6f302104308af5622e17099899e5f))
+- **client:** resolve lint errors in streaming tests ([4d36cb0](https://github.com/sst/opencode-sdk-go/commit/4d36cb09fc9d436734d5dab1c499acaa88568ff7))
+- close body before retrying ([4da3f7f](https://github.com/sst/opencode-sdk-go/commit/4da3f7f372bad222a189ba3eabcfde3373166ae5))
+- don't try to deserialize as json when ResponseBodyInto is []byte ([595291f](https://github.com/sst/opencode-sdk-go/commit/595291f6dba6af472f160b9f8e3d145002f43a4a))
### Chores
-* **ci:** only run for pushes and fork pull requests ([bea59b8](https://github.com/sst/opencode-sdk-go/commit/bea59b886800ef555f89c47a9256d6392ed2e53d))
-* **internal:** codegen related update ([6a22ce6](https://github.com/sst/opencode-sdk-go/commit/6a22ce6df155f5003e80b8a75686a9e513a5568a))
-* **internal:** fix lint script for tests ([391c482](https://github.com/sst/opencode-sdk-go/commit/391c482148ed0a77c4ad52807abeb2d540b56797))
-* **internal:** update comment in script ([b7f1c3e](https://github.com/sst/opencode-sdk-go/commit/b7f1c3e16935c71e243004b8f321d661cd8e9474))
-* lint tests ([616796b](https://github.com/sst/opencode-sdk-go/commit/616796b761704bde6be5c6c2428f28c79c7f05ff))
-* lint tests in subpackages ([50c82ff](https://github.com/sst/opencode-sdk-go/commit/50c82ff0757c973834b68adc22566b70f767b611))
-* sync repo ([2f34d5d](https://github.com/sst/opencode-sdk-go/commit/2f34d5d53e56e9cdc3df99be7ee7efc83dd977a3))
-* update @stainless-api/prism-cli to v5.15.0 ([2f24852](https://github.com/sst/opencode-sdk-go/commit/2f2485216d4f4891d1fbfbc23ff8410c2f35152a))
+- **ci:** only run for pushes and fork pull requests ([bea59b8](https://github.com/sst/opencode-sdk-go/commit/bea59b886800ef555f89c47a9256d6392ed2e53d))
+- **internal:** codegen related update ([6a22ce6](https://github.com/sst/opencode-sdk-go/commit/6a22ce6df155f5003e80b8a75686a9e513a5568a))
+- **internal:** fix lint script for tests ([391c482](https://github.com/sst/opencode-sdk-go/commit/391c482148ed0a77c4ad52807abeb2d540b56797))
+- **internal:** update comment in script ([b7f1c3e](https://github.com/sst/opencode-sdk-go/commit/b7f1c3e16935c71e243004b8f321d661cd8e9474))
+- lint tests ([616796b](https://github.com/sst/opencode-sdk-go/commit/616796b761704bde6be5c6c2428f28c79c7f05ff))
+- lint tests in subpackages ([50c82ff](https://github.com/sst/opencode-sdk-go/commit/50c82ff0757c973834b68adc22566b70f767b611))
+- sync repo ([2f34d5d](https://github.com/sst/opencode-sdk-go/commit/2f34d5d53e56e9cdc3df99be7ee7efc83dd977a3))
+- update @stainless-api/prism-cli to v5.15.0 ([2f24852](https://github.com/sst/opencode-sdk-go/commit/2f2485216d4f4891d1fbfbc23ff8410c2f35152a))
diff --git a/packages/sdk/go/release-please-config.json b/packages/sdk/go/release-please-config.json
index a38198eca..32960ce27 100644
--- a/packages/sdk/go/release-please-config.json
+++ b/packages/sdk/go/release-please-config.json
@@ -60,8 +60,5 @@
}
],
"release-type": "go",
- "extra-files": [
- "internal/version.go",
- "README.md"
- ]
-} \ No newline at end of file
+ "extra-files": ["internal/version.go", "README.md"]
+}
diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json
index d4de9ca17..e7760678a 100644
--- a/packages/sdk/js/package.json
+++ b/packages/sdk/js/package.json
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/sdk",
- "version": "1.0.23",
+ "version": "1.0.55",
"type": "module",
"scripts": {
"typecheck": "tsgo --noEmit",
diff --git a/packages/sdk/js/src/gen/client.gen.ts b/packages/sdk/js/src/gen/client.gen.ts
index 77ef579a6..e7cdb292c 100644
--- a/packages/sdk/js/src/gen/client.gen.ts
+++ b/packages/sdk/js/src/gen/client.gen.ts
@@ -1,12 +1,7 @@
// This file is auto-generated by @hey-api/openapi-ts
import type { ClientOptions } from "./types.gen.js"
-import {
- type Config,
- type ClientOptions as DefaultClientOptions,
- createClient,
- createConfig,
-} from "./client/index.js"
+import { type Config, type ClientOptions as DefaultClientOptions, createClient, createConfig } from "./client/index.js"
/**
* The `createClientConfig()` function will be called on client initialization
diff --git a/packages/sdk/js/src/gen/client/client.gen.ts b/packages/sdk/js/src/gen/client/client.gen.ts
index 3a2499efb..34a8d0bec 100644
--- a/packages/sdk/js/src/gen/client/client.gen.ts
+++ b/packages/sdk/js/src/gen/client/client.gen.ts
@@ -107,9 +107,7 @@ export const createClient = (config: Config = {}): Client => {
}
const parseAs =
- (opts.parseAs === "auto"
- ? getParseAs(response.headers.get("Content-Type"))
- : opts.parseAs) ?? "json"
+ (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json"
let data: any
switch (parseAs) {
diff --git a/packages/sdk/js/src/gen/client/types.gen.ts b/packages/sdk/js/src/gen/client/types.gen.ts
index 1761dacbf..db8e544cf 100644
--- a/packages/sdk/js/src/gen/client/types.gen.ts
+++ b/packages/sdk/js/src/gen/client/types.gen.ts
@@ -1,10 +1,7 @@
// This file is auto-generated by @hey-api/openapi-ts
import type { Auth } from "../core/auth.gen.js"
-import type {
- ServerSentEventsOptions,
- ServerSentEventsResult,
-} from "../core/serverSentEvents.gen.js"
+import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.js"
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen.js"
import type { Middleware } from "./utils.gen.js"
@@ -65,11 +62,7 @@ export interface RequestOptions<
}>,
Pick<
ServerSentEventsOptions<TData>,
- | "onSseError"
- | "onSseEvent"
- | "sseDefaultRetryDelay"
- | "sseMaxRetryAttempts"
- | "sseMaxRetryDelay"
+ "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"
> {
/**
* Any body that you want to add to your request.
@@ -209,10 +202,7 @@ export type Options<
ThrowOnError extends boolean = boolean,
TResponse = unknown,
TResponseStyle extends ResponseStyle = "fields",
-> = OmitKeys<
- RequestOptions<TResponse, TResponseStyle, ThrowOnError>,
- "body" | "path" | "query" | "url"
-> &
+> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> &
Omit<TData, "url">
export type OptionsLegacyParser<
@@ -221,8 +211,7 @@ export type OptionsLegacyParser<
TResponseStyle extends ResponseStyle = "fields",
> = TData extends { body?: any }
? TData extends { headers?: any }
- ? OmitKeys<RequestOptions<unknown, TResponseStyle, ThrowOnError>, "body" | "headers" | "url"> &
- TData
+ ? OmitKeys<RequestOptions<unknown, TResponseStyle, ThrowOnError>, "body" | "headers" | "url"> & TData
: OmitKeys<RequestOptions<unknown, TResponseStyle, ThrowOnError>, "body" | "url"> &
TData &
Pick<RequestOptions<unknown, TResponseStyle, ThrowOnError>, "headers">
diff --git a/packages/sdk/js/src/gen/client/utils.gen.ts b/packages/sdk/js/src/gen/client/utils.gen.ts
index 53ffbad1b..209bfbe8e 100644
--- a/packages/sdk/js/src/gen/client/utils.gen.ts
+++ b/packages/sdk/js/src/gen/client/utils.gen.ts
@@ -3,19 +3,11 @@
import { getAuthToken } from "../core/auth.gen.js"
import type { QuerySerializerOptions } from "../core/bodySerializer.gen.js"
import { jsonBodySerializer } from "../core/bodySerializer.gen.js"
-import {
- serializeArrayParam,
- serializeObjectParam,
- serializePrimitiveParam,
-} from "../core/pathSerializer.gen.js"
+import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam } from "../core/pathSerializer.gen.js"
import { getUrl } from "../core/utils.gen.js"
import type { Client, ClientOptions, Config, RequestOptions } from "./types.gen.js"
-export const createQuerySerializer = <T = unknown>({
- allowReserved,
- array,
- object,
-}: QuerySerializerOptions = {}) => {
+export const createQuerySerializer = <T = unknown>({ allowReserved, array, object }: QuerySerializerOptions = {}) => {
const querySerializer = (queryParams: T) => {
const search: string[] = []
if (queryParams && typeof queryParams === "object") {
@@ -85,9 +77,7 @@ export const getParseAs = (contentType: string | null): Exclude<Config["parseAs"
return "formData"
}
- if (
- ["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))
- ) {
+ if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
return "blob"
}
@@ -107,11 +97,7 @@ const checkForExistence = (
if (!name) {
return false
}
- if (
- options.headers.has(name) ||
- options.query?.[name] ||
- options.headers.get("Cookie")?.includes(`${name}=`)
- ) {
+ if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
return true
}
return false
@@ -176,9 +162,7 @@ export const mergeConfigs = (a: Config, b: Config): Config => {
return config
}
-export const mergeHeaders = (
- ...headers: Array<Required<Config>["headers"] | undefined>
-): Headers => {
+export const mergeHeaders = (...headers: Array<Required<Config>["headers"] | undefined>): Headers => {
const mergedHeaders = new Headers()
for (const header of headers) {
if (!header || typeof header !== "object") {
@@ -197,10 +181,7 @@ export const mergeHeaders = (
} else if (value !== undefined) {
// assume object headers are meant to be JSON stringified, i.e. their
// content value in OpenAPI specification is 'application/json'
- mergedHeaders.set(
- key,
- typeof value === "object" ? JSON.stringify(value) : (value as string),
- )
+ mergedHeaders.set(key, typeof value === "object" ? JSON.stringify(value) : (value as string))
}
}
}
@@ -216,11 +197,7 @@ type ErrInterceptor<Err, Res, Req, Options> = (
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>
-type ResInterceptor<Res, Req, Options> = (
- response: Res,
- request: Req,
- options: Options,
-) => Res | Promise<Res>
+type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>
class Interceptors<Interceptor> {
_fns: (Interceptor | null)[]
diff --git a/packages/sdk/js/src/gen/core/bodySerializer.gen.ts b/packages/sdk/js/src/gen/core/bodySerializer.gen.ts
index 83e3f56d7..066061605 100644
--- a/packages/sdk/js/src/gen/core/bodySerializer.gen.ts
+++ b/packages/sdk/js/src/gen/core/bodySerializer.gen.ts
@@ -31,9 +31,7 @@ const serializeUrlSearchParamsPair = (data: URLSearchParams, key: string, value:
}
export const formDataBodySerializer = {
- bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(
- body: T,
- ): FormData => {
+ bodySerializer: <T extends Record<string, any> | Array<Record<string, any>>>(body: T): FormData => {
const data = new FormData()
Object.entries(body).forEach(([key, value]) => {
diff --git a/packages/sdk/js/src/gen/core/pathSerializer.gen.ts b/packages/sdk/js/src/gen/core/pathSerializer.gen.ts
index f13528357..96be3bc5a 100644
--- a/packages/sdk/js/src/gen/core/pathSerializer.gen.ts
+++ b/packages/sdk/js/src/gen/core/pathSerializer.gen.ts
@@ -74,9 +74,9 @@ export const serializeArrayParam = ({
value: unknown[]
}) => {
if (!explode) {
- const joinedValues = (
- allowReserved ? value : value.map((v) => encodeURIComponent(v as string))
- ).join(separatorArrayNoExplode(style))
+ const joinedValues = (allowReserved ? value : value.map((v) => encodeURIComponent(v as string))).join(
+ separatorArrayNoExplode(style),
+ )
switch (style) {
case "label":
return `.${joinedValues}`
@@ -106,11 +106,7 @@ export const serializeArrayParam = ({
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues
}
-export const serializePrimitiveParam = ({
- allowReserved,
- name,
- value,
-}: SerializePrimitiveParam) => {
+export const serializePrimitiveParam = ({ allowReserved, name, value }: SerializePrimitiveParam) => {
if (value === undefined || value === null) {
return ""
}
diff --git a/packages/sdk/js/src/gen/core/serverSentEvents.gen.ts b/packages/sdk/js/src/gen/core/serverSentEvents.gen.ts
index 183855da1..8f7fac549 100644
--- a/packages/sdk/js/src/gen/core/serverSentEvents.gen.ts
+++ b/packages/sdk/js/src/gen/core/serverSentEvents.gen.ts
@@ -60,11 +60,7 @@ export interface StreamEvent<TData = unknown> {
}
export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
- stream: AsyncGenerator<
- TData extends Record<string, unknown> ? TData[keyof TData] : TData,
- TReturn,
- TNext
- >
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>
}
export const createSseClient = <TData = unknown>({
diff --git a/packages/sdk/js/src/gen/core/types.gen.ts b/packages/sdk/js/src/gen/core/types.gen.ts
index b60604fee..16408b2d0 100644
--- a/packages/sdk/js/src/gen/core/types.gen.ts
+++ b/packages/sdk/js/src/gen/core/types.gen.ts
@@ -1,11 +1,7 @@
// This file is auto-generated by @hey-api/openapi-ts
import type { Auth, AuthToken } from "./auth.gen.js"
-import type {
- BodySerializer,
- QuerySerializer,
- QuerySerializerOptions,
-} from "./bodySerializer.gen.js"
+import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.js"
export interface Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never> {
/**
@@ -45,10 +41,7 @@ export interface Config {
*/
headers?:
| RequestInit["headers"]
- | Record<
- string,
- string | number | boolean | (string | number | boolean)[] | null | undefined | unknown
- >
+ | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>
/**
* The request method.
*
diff --git a/packages/sdk/js/src/gen/core/utils.gen.ts b/packages/sdk/js/src/gen/core/utils.gen.ts
index 62e02972c..be18c608a 100644
--- a/packages/sdk/js/src/gen/core/utils.gen.ts
+++ b/packages/sdk/js/src/gen/core/utils.gen.ts
@@ -73,9 +73,7 @@ export const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {
continue
}
- const replaceValue = encodeURIComponent(
- style === "label" ? `.${value as string}` : (value as string),
- )
+ const replaceValue = encodeURIComponent(style === "label" ? `.${value as string}` : (value as string))
url = url.replace(match, replaceValue)
}
}
diff --git a/packages/sdk/js/src/gen/sdk.gen.ts b/packages/sdk/js/src/gen/sdk.gen.ts
index 1a54da8fa..6987eb471 100644
--- a/packages/sdk/js/src/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/gen/sdk.gen.ts
@@ -106,6 +106,9 @@ import type {
AppAgentsResponses,
McpStatusData,
McpStatusResponses,
+ McpAddData,
+ McpAddResponses,
+ McpAddErrors,
LspStatusData,
LspStatusResponses,
FormatterStatusData,
@@ -145,10 +148,10 @@ import type {
} from "./types.gen.js"
import { client as _heyApiClient } from "./client.gen.js"
-export type Options<
- TData extends TDataShape = TDataShape,
- ThrowOnError extends boolean = boolean,
-> = ClientOptions<TData, ThrowOnError> & {
+export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<
+ TData,
+ ThrowOnError
+> & {
/**
* You can provide a client instance returned by `createClient()` instead of
* individual options. This might be also useful if you want to implement a
@@ -176,9 +179,7 @@ class Project extends _HeyApiClient {
/**
* List all projects
*/
- public list<ThrowOnError extends boolean = false>(
- options?: Options<ProjectListData, ThrowOnError>,
- ) {
+ public list<ThrowOnError extends boolean = false>(options?: Options<ProjectListData, ThrowOnError>) {
return (options?.client ?? this._client).get<ProjectListResponses, unknown, ThrowOnError>({
url: "/project",
...options,
@@ -188,9 +189,7 @@ class Project extends _HeyApiClient {
/**
* Get the current project
*/
- public current<ThrowOnError extends boolean = false>(
- options?: Options<ProjectCurrentData, ThrowOnError>,
- ) {
+ public current<ThrowOnError extends boolean = false>(options?: Options<ProjectCurrentData, ThrowOnError>) {
return (options?.client ?? this._client).get<ProjectCurrentResponses, unknown, ThrowOnError>({
url: "/project/current",
...options,
@@ -212,14 +211,8 @@ class Config extends _HeyApiClient {
/**
* Update config
*/
- public update<ThrowOnError extends boolean = false>(
- options?: Options<ConfigUpdateData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).patch<
- ConfigUpdateResponses,
- ConfigUpdateErrors,
- ThrowOnError
- >({
+ public update<ThrowOnError extends boolean = false>(options?: Options<ConfigUpdateData, ThrowOnError>) {
+ return (options?.client ?? this._client).patch<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError>({
url: "/config",
...options,
headers: {
@@ -232,9 +225,7 @@ class Config extends _HeyApiClient {
/**
* List all providers
*/
- public providers<ThrowOnError extends boolean = false>(
- options?: Options<ConfigProvidersData, ThrowOnError>,
- ) {
+ public providers<ThrowOnError extends boolean = false>(options?: Options<ConfigProvidersData, ThrowOnError>) {
return (options?.client ?? this._client).get<ConfigProvidersResponses, unknown, ThrowOnError>({
url: "/config/providers",
...options,
@@ -280,9 +271,7 @@ class Session extends _HeyApiClient {
/**
* List all sessions
*/
- public list<ThrowOnError extends boolean = false>(
- options?: Options<SessionListData, ThrowOnError>,
- ) {
+ public list<ThrowOnError extends boolean = false>(options?: Options<SessionListData, ThrowOnError>) {
return (options?.client ?? this._client).get<SessionListResponses, unknown, ThrowOnError>({
url: "/session",
...options,
@@ -292,14 +281,8 @@ class Session extends _HeyApiClient {
/**
* Create a new session
*/
- public create<ThrowOnError extends boolean = false>(
- options?: Options<SessionCreateData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).post<
- SessionCreateResponses,
- SessionCreateErrors,
- ThrowOnError
- >({
+ public create<ThrowOnError extends boolean = false>(options?: Options<SessionCreateData, ThrowOnError>) {
+ return (options?.client ?? this._client).post<SessionCreateResponses, SessionCreateErrors, ThrowOnError>({
url: "/session",
...options,
headers: {
@@ -312,14 +295,8 @@ class Session extends _HeyApiClient {
/**
* Delete a session and all its data
*/
- public delete<ThrowOnError extends boolean = false>(
- options: Options<SessionDeleteData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).delete<
- SessionDeleteResponses,
- SessionDeleteErrors,
- ThrowOnError
- >({
+ public delete<ThrowOnError extends boolean = false>(options: Options<SessionDeleteData, ThrowOnError>) {
+ return (options.client ?? this._client).delete<SessionDeleteResponses, SessionDeleteErrors, ThrowOnError>({
url: "/session/{id}",
...options,
})
@@ -329,11 +306,7 @@ class Session extends _HeyApiClient {
* Get session
*/
public get<ThrowOnError extends boolean = false>(options: Options<SessionGetData, ThrowOnError>) {
- return (options.client ?? this._client).get<
- SessionGetResponses,
- SessionGetErrors,
- ThrowOnError
- >({
+ return (options.client ?? this._client).get<SessionGetResponses, SessionGetErrors, ThrowOnError>({
url: "/session/{id}",
...options,
})
@@ -342,14 +315,8 @@ class Session extends _HeyApiClient {
/**
* Update session properties
*/
- public update<ThrowOnError extends boolean = false>(
- options: Options<SessionUpdateData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).patch<
- SessionUpdateResponses,
- SessionUpdateErrors,
- ThrowOnError
- >({
+ public update<ThrowOnError extends boolean = false>(options: Options<SessionUpdateData, ThrowOnError>) {
+ return (options.client ?? this._client).patch<SessionUpdateResponses, SessionUpdateErrors, ThrowOnError>({
url: "/session/{id}",
...options,
headers: {
@@ -362,14 +329,8 @@ class Session extends _HeyApiClient {
/**
* Get a session's children
*/
- public children<ThrowOnError extends boolean = false>(
- options: Options<SessionChildrenData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).get<
- SessionChildrenResponses,
- SessionChildrenErrors,
- ThrowOnError
- >({
+ public children<ThrowOnError extends boolean = false>(options: Options<SessionChildrenData, ThrowOnError>) {
+ return (options.client ?? this._client).get<SessionChildrenResponses, SessionChildrenErrors, ThrowOnError>({
url: "/session/{id}/children",
...options,
})
@@ -378,14 +339,8 @@ class Session extends _HeyApiClient {
/**
* Get the todo list for a session
*/
- public todo<ThrowOnError extends boolean = false>(
- options: Options<SessionTodoData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).get<
- SessionTodoResponses,
- SessionTodoErrors,
- ThrowOnError
- >({
+ public todo<ThrowOnError extends boolean = false>(options: Options<SessionTodoData, ThrowOnError>) {
+ return (options.client ?? this._client).get<SessionTodoResponses, SessionTodoErrors, ThrowOnError>({
url: "/session/{id}/todo",
...options,
})
@@ -394,14 +349,8 @@ class Session extends _HeyApiClient {
/**
* Analyze the app and create an AGENTS.md file
*/
- public init<ThrowOnError extends boolean = false>(
- options: Options<SessionInitData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionInitResponses,
- SessionInitErrors,
- ThrowOnError
- >({
+ public init<ThrowOnError extends boolean = false>(options: Options<SessionInitData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionInitResponses, SessionInitErrors, ThrowOnError>({
url: "/session/{id}/init",
...options,
headers: {
@@ -414,9 +363,7 @@ class Session extends _HeyApiClient {
/**
* Fork an existing session at a specific message
*/
- public fork<ThrowOnError extends boolean = false>(
- options: Options<SessionForkData, ThrowOnError>,
- ) {
+ public fork<ThrowOnError extends boolean = false>(options: Options<SessionForkData, ThrowOnError>) {
return (options.client ?? this._client).post<SessionForkResponses, unknown, ThrowOnError>({
url: "/session/{id}/fork",
...options,
@@ -430,14 +377,8 @@ class Session extends _HeyApiClient {
/**
* Abort a session
*/
- public abort<ThrowOnError extends boolean = false>(
- options: Options<SessionAbortData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionAbortResponses,
- SessionAbortErrors,
- ThrowOnError
- >({
+ public abort<ThrowOnError extends boolean = false>(options: Options<SessionAbortData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionAbortResponses, SessionAbortErrors, ThrowOnError>({
url: "/session/{id}/abort",
...options,
})
@@ -446,14 +387,8 @@ class Session extends _HeyApiClient {
/**
* Unshare the session
*/
- public unshare<ThrowOnError extends boolean = false>(
- options: Options<SessionUnshareData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).delete<
- SessionUnshareResponses,
- SessionUnshareErrors,
- ThrowOnError
- >({
+ public unshare<ThrowOnError extends boolean = false>(options: Options<SessionUnshareData, ThrowOnError>) {
+ return (options.client ?? this._client).delete<SessionUnshareResponses, SessionUnshareErrors, ThrowOnError>({
url: "/session/{id}/share",
...options,
})
@@ -462,14 +397,8 @@ class Session extends _HeyApiClient {
/**
* Share a session
*/
- public share<ThrowOnError extends boolean = false>(
- options: Options<SessionShareData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionShareResponses,
- SessionShareErrors,
- ThrowOnError
- >({
+ public share<ThrowOnError extends boolean = false>(options: Options<SessionShareData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionShareResponses, SessionShareErrors, ThrowOnError>({
url: "/session/{id}/share",
...options,
})
@@ -478,14 +407,8 @@ class Session extends _HeyApiClient {
/**
* Get the diff for this session
*/
- public diff<ThrowOnError extends boolean = false>(
- options: Options<SessionDiffData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).get<
- SessionDiffResponses,
- SessionDiffErrors,
- ThrowOnError
- >({
+ public diff<ThrowOnError extends boolean = false>(options: Options<SessionDiffData, ThrowOnError>) {
+ return (options.client ?? this._client).get<SessionDiffResponses, SessionDiffErrors, ThrowOnError>({
url: "/session/{id}/diff",
...options,
})
@@ -494,14 +417,8 @@ class Session extends _HeyApiClient {
/**
* Summarize the session
*/
- public summarize<ThrowOnError extends boolean = false>(
- options: Options<SessionSummarizeData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionSummarizeResponses,
- SessionSummarizeErrors,
- ThrowOnError
- >({
+ public summarize<ThrowOnError extends boolean = false>(options: Options<SessionSummarizeData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError>({
url: "/session/{id}/summarize",
...options,
headers: {
@@ -514,14 +431,8 @@ class Session extends _HeyApiClient {
/**
* List messages for a session
*/
- public messages<ThrowOnError extends boolean = false>(
- options: Options<SessionMessagesData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).get<
- SessionMessagesResponses,
- SessionMessagesErrors,
- ThrowOnError
- >({
+ public messages<ThrowOnError extends boolean = false>(options: Options<SessionMessagesData, ThrowOnError>) {
+ return (options.client ?? this._client).get<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError>({
url: "/session/{id}/message",
...options,
})
@@ -530,14 +441,8 @@ class Session extends _HeyApiClient {
/**
* Create and send a new message to a session
*/
- public prompt<ThrowOnError extends boolean = false>(
- options: Options<SessionPromptData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionPromptResponses,
- SessionPromptErrors,
- ThrowOnError
- >({
+ public prompt<ThrowOnError extends boolean = false>(options: Options<SessionPromptData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionPromptResponses, SessionPromptErrors, ThrowOnError>({
url: "/session/{id}/message",
...options,
headers: {
@@ -550,14 +455,8 @@ class Session extends _HeyApiClient {
/**
* Get a message from a session
*/
- public message<ThrowOnError extends boolean = false>(
- options: Options<SessionMessageData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).get<
- SessionMessageResponses,
- SessionMessageErrors,
- ThrowOnError
- >({
+ public message<ThrowOnError extends boolean = false>(options: Options<SessionMessageData, ThrowOnError>) {
+ return (options.client ?? this._client).get<SessionMessageResponses, SessionMessageErrors, ThrowOnError>({
url: "/session/{id}/message/{messageID}",
...options,
})
@@ -566,14 +465,8 @@ class Session extends _HeyApiClient {
/**
* Send a new command to a session
*/
- public command<ThrowOnError extends boolean = false>(
- options: Options<SessionCommandData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionCommandResponses,
- SessionCommandErrors,
- ThrowOnError
- >({
+ public command<ThrowOnError extends boolean = false>(options: Options<SessionCommandData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionCommandResponses, SessionCommandErrors, ThrowOnError>({
url: "/session/{id}/command",
...options,
headers: {
@@ -586,14 +479,8 @@ class Session extends _HeyApiClient {
/**
* Run a shell command
*/
- public shell<ThrowOnError extends boolean = false>(
- options: Options<SessionShellData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionShellResponses,
- SessionShellErrors,
- ThrowOnError
- >({
+ public shell<ThrowOnError extends boolean = false>(options: Options<SessionShellData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionShellResponses, SessionShellErrors, ThrowOnError>({
url: "/session/{id}/shell",
...options,
headers: {
@@ -606,14 +493,8 @@ class Session extends _HeyApiClient {
/**
* Revert a message
*/
- public revert<ThrowOnError extends boolean = false>(
- options: Options<SessionRevertData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionRevertResponses,
- SessionRevertErrors,
- ThrowOnError
- >({
+ public revert<ThrowOnError extends boolean = false>(options: Options<SessionRevertData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionRevertResponses, SessionRevertErrors, ThrowOnError>({
url: "/session/{id}/revert",
...options,
headers: {
@@ -626,14 +507,8 @@ class Session extends _HeyApiClient {
/**
* Restore all reverted messages
*/
- public unrevert<ThrowOnError extends boolean = false>(
- options: Options<SessionUnrevertData, ThrowOnError>,
- ) {
- return (options.client ?? this._client).post<
- SessionUnrevertResponses,
- SessionUnrevertErrors,
- ThrowOnError
- >({
+ public unrevert<ThrowOnError extends boolean = false>(options: Options<SessionUnrevertData, ThrowOnError>) {
+ return (options.client ?? this._client).post<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError>({
url: "/session/{id}/unrevert",
...options,
})
@@ -644,9 +519,7 @@ class Command extends _HeyApiClient {
/**
* List all commands
*/
- public list<ThrowOnError extends boolean = false>(
- options?: Options<CommandListData, ThrowOnError>,
- ) {
+ public list<ThrowOnError extends boolean = false>(options?: Options<CommandListData, ThrowOnError>) {
return (options?.client ?? this._client).get<CommandListResponses, unknown, ThrowOnError>({
url: "/command",
...options,
@@ -668,9 +541,7 @@ class Find extends _HeyApiClient {
/**
* Find files
*/
- public files<ThrowOnError extends boolean = false>(
- options: Options<FindFilesData, ThrowOnError>,
- ) {
+ public files<ThrowOnError extends boolean = false>(options: Options<FindFilesData, ThrowOnError>) {
return (options.client ?? this._client).get<FindFilesResponses, unknown, ThrowOnError>({
url: "/find/file",
...options,
@@ -680,9 +551,7 @@ class Find extends _HeyApiClient {
/**
* Find workspace symbols
*/
- public symbols<ThrowOnError extends boolean = false>(
- options: Options<FindSymbolsData, ThrowOnError>,
- ) {
+ public symbols<ThrowOnError extends boolean = false>(options: Options<FindSymbolsData, ThrowOnError>) {
return (options.client ?? this._client).get<FindSymbolsResponses, unknown, ThrowOnError>({
url: "/find/symbol",
...options,
@@ -714,9 +583,7 @@ class File extends _HeyApiClient {
/**
* Get file status
*/
- public status<ThrowOnError extends boolean = false>(
- options?: Options<FileStatusData, ThrowOnError>,
- ) {
+ public status<ThrowOnError extends boolean = false>(options?: Options<FileStatusData, ThrowOnError>) {
return (options?.client ?? this._client).get<FileStatusResponses, unknown, ThrowOnError>({
url: "/file/status",
...options,
@@ -742,9 +609,7 @@ class App extends _HeyApiClient {
/**
* List all agents
*/
- public agents<ThrowOnError extends boolean = false>(
- options?: Options<AppAgentsData, ThrowOnError>,
- ) {
+ public agents<ThrowOnError extends boolean = false>(options?: Options<AppAgentsData, ThrowOnError>) {
return (options?.client ?? this._client).get<AppAgentsResponses, unknown, ThrowOnError>({
url: "/agent",
...options,
@@ -756,23 +621,33 @@ class Mcp extends _HeyApiClient {
/**
* Get MCP server status
*/
- public status<ThrowOnError extends boolean = false>(
- options?: Options<McpStatusData, ThrowOnError>,
- ) {
+ public status<ThrowOnError extends boolean = false>(options?: Options<McpStatusData, ThrowOnError>) {
return (options?.client ?? this._client).get<McpStatusResponses, unknown, ThrowOnError>({
url: "/mcp",
...options,
})
}
+
+ /**
+ * Add MCP server dynamically
+ */
+ public add<ThrowOnError extends boolean = false>(options?: Options<McpAddData, ThrowOnError>) {
+ return (options?.client ?? this._client).post<McpAddResponses, McpAddErrors, ThrowOnError>({
+ url: "/mcp",
+ ...options,
+ headers: {
+ "Content-Type": "application/json",
+ ...options?.headers,
+ },
+ })
+ }
}
class Lsp extends _HeyApiClient {
/**
* Get LSP server status
*/
- public status<ThrowOnError extends boolean = false>(
- options?: Options<LspStatusData, ThrowOnError>,
- ) {
+ public status<ThrowOnError extends boolean = false>(options?: Options<LspStatusData, ThrowOnError>) {
return (options?.client ?? this._client).get<LspStatusResponses, unknown, ThrowOnError>({
url: "/lsp",
...options,
@@ -784,9 +659,7 @@ class Formatter extends _HeyApiClient {
/**
* Get formatter status
*/
- public status<ThrowOnError extends boolean = false>(
- options?: Options<FormatterStatusData, ThrowOnError>,
- ) {
+ public status<ThrowOnError extends boolean = false>(options?: Options<FormatterStatusData, ThrowOnError>) {
return (options?.client ?? this._client).get<FormatterStatusResponses, unknown, ThrowOnError>({
url: "/formatter",
...options,
@@ -798,9 +671,7 @@ class Control extends _HeyApiClient {
/**
* Get the next TUI request from the queue
*/
- public next<ThrowOnError extends boolean = false>(
- options?: Options<TuiControlNextData, ThrowOnError>,
- ) {
+ public next<ThrowOnError extends boolean = false>(options?: Options<TuiControlNextData, ThrowOnError>) {
return (options?.client ?? this._client).get<TuiControlNextResponses, unknown, ThrowOnError>({
url: "/tui/control/next",
...options,
@@ -810,14 +681,8 @@ class Control extends _HeyApiClient {
/**
* Submit a response to the TUI request queue
*/
- public response<ThrowOnError extends boolean = false>(
- options?: Options<TuiControlResponseData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).post<
- TuiControlResponseResponses,
- unknown,
- ThrowOnError
- >({
+ public response<ThrowOnError extends boolean = false>(options?: Options<TuiControlResponseData, ThrowOnError>) {
+ return (options?.client ?? this._client).post<TuiControlResponseResponses, unknown, ThrowOnError>({
url: "/tui/control/response",
...options,
headers: {
@@ -832,14 +697,8 @@ class Tui extends _HeyApiClient {
/**
* Append prompt to the TUI
*/
- public appendPrompt<ThrowOnError extends boolean = false>(
- options?: Options<TuiAppendPromptData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).post<
- TuiAppendPromptResponses,
- TuiAppendPromptErrors,
- ThrowOnError
- >({
+ public appendPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiAppendPromptData, ThrowOnError>) {
+ return (options?.client ?? this._client).post<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError>({
url: "/tui/append-prompt",
...options,
headers: {
@@ -852,9 +711,7 @@ class Tui extends _HeyApiClient {
/**
* Open the help dialog
*/
- public openHelp<ThrowOnError extends boolean = false>(
- options?: Options<TuiOpenHelpData, ThrowOnError>,
- ) {
+ public openHelp<ThrowOnError extends boolean = false>(options?: Options<TuiOpenHelpData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiOpenHelpResponses, unknown, ThrowOnError>({
url: "/tui/open-help",
...options,
@@ -864,9 +721,7 @@ class Tui extends _HeyApiClient {
/**
* Open the session dialog
*/
- public openSessions<ThrowOnError extends boolean = false>(
- options?: Options<TuiOpenSessionsData, ThrowOnError>,
- ) {
+ public openSessions<ThrowOnError extends boolean = false>(options?: Options<TuiOpenSessionsData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiOpenSessionsResponses, unknown, ThrowOnError>({
url: "/tui/open-sessions",
...options,
@@ -876,9 +731,7 @@ class Tui extends _HeyApiClient {
/**
* Open the theme dialog
*/
- public openThemes<ThrowOnError extends boolean = false>(
- options?: Options<TuiOpenThemesData, ThrowOnError>,
- ) {
+ public openThemes<ThrowOnError extends boolean = false>(options?: Options<TuiOpenThemesData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiOpenThemesResponses, unknown, ThrowOnError>({
url: "/tui/open-themes",
...options,
@@ -888,9 +741,7 @@ class Tui extends _HeyApiClient {
/**
* Open the model dialog
*/
- public openModels<ThrowOnError extends boolean = false>(
- options?: Options<TuiOpenModelsData, ThrowOnError>,
- ) {
+ public openModels<ThrowOnError extends boolean = false>(options?: Options<TuiOpenModelsData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiOpenModelsResponses, unknown, ThrowOnError>({
url: "/tui/open-models",
...options,
@@ -900,9 +751,7 @@ class Tui extends _HeyApiClient {
/**
* Submit the prompt
*/
- public submitPrompt<ThrowOnError extends boolean = false>(
- options?: Options<TuiSubmitPromptData, ThrowOnError>,
- ) {
+ public submitPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiSubmitPromptData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiSubmitPromptResponses, unknown, ThrowOnError>({
url: "/tui/submit-prompt",
...options,
@@ -912,9 +761,7 @@ class Tui extends _HeyApiClient {
/**
* Clear the prompt
*/
- public clearPrompt<ThrowOnError extends boolean = false>(
- options?: Options<TuiClearPromptData, ThrowOnError>,
- ) {
+ public clearPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiClearPromptData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiClearPromptResponses, unknown, ThrowOnError>({
url: "/tui/clear-prompt",
...options,
@@ -924,14 +771,8 @@ class Tui extends _HeyApiClient {
/**
* Execute a TUI command (e.g. agent_cycle)
*/
- public executeCommand<ThrowOnError extends boolean = false>(
- options?: Options<TuiExecuteCommandData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).post<
- TuiExecuteCommandResponses,
- TuiExecuteCommandErrors,
- ThrowOnError
- >({
+ public executeCommand<ThrowOnError extends boolean = false>(options?: Options<TuiExecuteCommandData, ThrowOnError>) {
+ return (options?.client ?? this._client).post<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError>({
url: "/tui/execute-command",
...options,
headers: {
@@ -944,9 +785,7 @@ class Tui extends _HeyApiClient {
/**
* Show a toast notification in the TUI
*/
- public showToast<ThrowOnError extends boolean = false>(
- options?: Options<TuiShowToastData, ThrowOnError>,
- ) {
+ public showToast<ThrowOnError extends boolean = false>(options?: Options<TuiShowToastData, ThrowOnError>) {
return (options?.client ?? this._client).post<TuiShowToastResponses, unknown, ThrowOnError>({
url: "/tui/show-toast",
...options,
@@ -960,14 +799,8 @@ class Tui extends _HeyApiClient {
/**
* Publish a TUI event
*/
- public publish<ThrowOnError extends boolean = false>(
- options?: Options<TuiPublishData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).post<
- TuiPublishResponses,
- TuiPublishErrors,
- ThrowOnError
- >({
+ public publish<ThrowOnError extends boolean = false>(options?: Options<TuiPublishData, ThrowOnError>) {
+ return (options?.client ?? this._client).post<TuiPublishResponses, TuiPublishErrors, ThrowOnError>({
url: "/tui/publish",
...options,
headers: {
@@ -999,14 +832,8 @@ class Event extends _HeyApiClient {
/**
* Get events
*/
- public subscribe<ThrowOnError extends boolean = false>(
- options?: Options<EventSubscribeData, ThrowOnError>,
- ) {
- return (options?.client ?? this._client).get.sse<
- EventSubscribeResponses,
- unknown,
- ThrowOnError
- >({
+ public subscribe<ThrowOnError extends boolean = false>(options?: Options<EventSubscribeData, ThrowOnError>) {
+ return (options?.client ?? this._client).get.sse<EventSubscribeResponses, unknown, ThrowOnError>({
url: "/event",
...options,
})
diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts
index 0c0135b4f..19f7a3a77 100644
--- a/packages/sdk/js/src/gen/types.gen.ts
+++ b/packages/sdk/js/src/gen/types.gen.ts
@@ -198,6 +198,8 @@ export type AgentConfig = {
[key: string]: "ask" | "allow" | "deny"
}
webfetch?: "ask" | "allow" | "deny"
+ doom_loop?: "ask" | "allow" | "deny"
+ external_directory?: "ask" | "allow" | "deny"
}
[key: string]:
| unknown
@@ -216,6 +218,8 @@ export type AgentConfig = {
[key: string]: "ask" | "allow" | "deny"
}
webfetch?: "ask" | "allow" | "deny"
+ doom_loop?: "ask" | "allow" | "deny"
+ external_directory?: "ask" | "allow" | "deny"
}
| undefined
}
@@ -463,6 +467,8 @@ export type Config = {
[key: string]: "ask" | "allow" | "deny"
}
webfetch?: "ask" | "allow" | "deny"
+ doom_loop?: "ask" | "allow" | "deny"
+ external_directory?: "ask" | "allow" | "deny"
}
tools?: {
[key: string]: boolean
@@ -533,6 +539,7 @@ export type Session = {
summary?: {
additions: number
deletions: number
+ files: number
diffs?: Array<FileDiff>
}
share?: {
@@ -643,13 +650,7 @@ export type AssistantMessage = {
created: number
completed?: number
}
- error?:
- | ProviderAuthError
- | UnknownError
- | MessageOutputLengthError
- | MessageAbortedError
- | ApiError
- system: Array<string>
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
parentID: string
modelID: string
providerID: string
@@ -1048,6 +1049,8 @@ export type Agent = {
[key: string]: "ask" | "allow" | "deny"
}
webfetch?: "ask" | "allow" | "deny"
+ doom_loop?: "ask" | "allow" | "deny"
+ external_directory?: "ask" | "allow" | "deny"
}
model?: {
modelID: string
@@ -1253,14 +1256,6 @@ export type EventFileEdited = {
}
}
-export type EventFileWatcherUpdated = {
- type: "file.watcher.updated"
- properties: {
- file: string
- event: "add" | "change" | "unlink"
- }
-}
-
export type EventTodoUpdated = {
type: "todo.updated"
properties: {
@@ -1307,16 +1302,19 @@ export type EventSessionDeleted = {
}
}
+export type EventSessionDiff = {
+ type: "session.diff"
+ properties: {
+ sessionID: string
+ diff: Array<FileDiff>
+ }
+}
+
export type EventSessionError = {
type: "session.error"
properties: {
sessionID?: string
- error?:
- | ProviderAuthError
- | UnknownError
- | MessageOutputLengthError
- | MessageAbortedError
- | ApiError
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError
}
}
@@ -1327,6 +1325,14 @@ export type EventServerConnected = {
}
}
+export type EventFileWatcherUpdated = {
+ type: "file.watcher.updated"
+ properties: {
+ file: string
+ event: "add" | "change" | "unlink"
+ }
+}
+
export type Event =
| EventInstallationUpdated
| EventLspClientDiagnostics
@@ -1339,18 +1345,19 @@ export type Event =
| EventPermissionUpdated
| EventPermissionReplied
| EventFileEdited
- | EventFileWatcherUpdated
| EventTodoUpdated
| EventCommandExecuted
| EventSessionIdle
| EventSessionCreated
| EventSessionUpdated
| EventSessionDeleted
+ | EventSessionDiff
| EventSessionError
| EventTuiPromptAppend
| EventTuiCommandExecute
| EventTuiToastShow
| EventServerConnected
+ | EventFileWatcherUpdated
export type ProjectListData = {
body?: never
@@ -1972,6 +1979,7 @@ export type SessionMessagesData = {
}
query?: {
directory?: string
+ limit?: number
}
url: "/session/{id}/message"
}
@@ -2542,6 +2550,38 @@ export type McpStatusResponses = {
export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses]
+export type McpAddData = {
+ body?: {
+ name: string
+ config: McpLocalConfig | McpRemoteConfig
+ }
+ path?: never
+ query?: {
+ directory?: string
+ }
+ url: "/mcp"
+}
+
+export type McpAddErrors = {
+ /**
+ * Bad request
+ */
+ 400: BadRequestError
+}
+
+export type McpAddError = McpAddErrors[keyof McpAddErrors]
+
+export type McpAddResponses = {
+ /**
+ * MCP server added successfully
+ */
+ 200: {
+ [key: string]: McpStatus
+ }
+}
+
+export type McpAddResponse = McpAddResponses[keyof McpAddResponses]
+
export type LspStatusData = {
body?: never
path?: never
@@ -2834,8 +2874,7 @@ export type TuiControlResponseResponses = {
200: boolean
}
-export type TuiControlResponseResponse =
- TuiControlResponseResponses[keyof TuiControlResponseResponses]
+export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses]
export type AuthSetData = {
body?: Auth
diff --git a/packages/sdk/js/sst-env.d.ts b/packages/sdk/js/sst-env.d.ts
index 9b9de7327..bd5588217 100644
--- a/packages/sdk/js/sst-env.d.ts
+++ b/packages/sdk/js/sst-env.d.ts
@@ -6,4 +6,4 @@
/// <reference path="../../../sst-env.d.ts" />
import "sst"
-export {} \ No newline at end of file
+export {}
diff --git a/packages/sdk/python/README.md b/packages/sdk/python/README.md
index a17c36ab3..5d54434af 100644
--- a/packages/sdk/python/README.md
+++ b/packages/sdk/python/README.md
@@ -2,50 +2,59 @@
This package provides a Python SDK for the Opencode API. It is generated using openapi-python-client (not Stainless).
-
Documentation
+
- Full docs: see `mkdocs` site under `packages/sdk/python/docs/`
- Preview locally:
+
```bash
uv run --project packages/sdk/python mkdocs serve -f packages/sdk/python/mkdocs.yml
```
Badges
+
- PyPI: https://img.shields.io/pypi/v/opencode-ai?style=flat-square
Requirements
+
- Python 3.8+
- uv (recommended) -> https://docs.astral.sh/uv/
- openapi-python-client (invoked via `uvx`)
Install uv
+
```bash
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Set up the environment (from this directory)
+
```bash
uv sync --dev
```
Generate client code (from CLI-generated spec)
+
```bash
# From repository root OR from this directory
uv run python packages/sdk/python/scripts/generate.py --source cli
```
Alternatively, fetch spec from a running server
+
```bash
uv run python packages/sdk/python/scripts/generate.py --source server --server-url http://localhost:4096/doc
```
This will:
-1) Produce an OpenAPI spec from the local CLI or a running server
-2) Run openapi-python-client (via `uvx`) to generate client code
-3) Copy the generated Python package into src/opencode_ai
+
+1. Produce an OpenAPI spec from the local CLI or a running server
+2. Run openapi-python-client (via `uvx`) to generate client code
+3. Copy the generated Python package into src/opencode_ai
Usage (after generation)
+
```python
from opencode_ai import OpenCodeClient
@@ -77,6 +86,7 @@ client = OpenCodeClient(retries=2, backoff_factor=0.1)
```
Notes
+
- We intentionally do not use Stainless for the Python SDK.
- The generator targets OpenAPI 3.1 emitted by the opencode server at /doc.
- See scripts/generate.py for details and customization points.
diff --git a/packages/sdk/python/docs/generation.md b/packages/sdk/python/docs/generation.md
index f949760a1..2151e3709 100644
--- a/packages/sdk/python/docs/generation.md
+++ b/packages/sdk/python/docs/generation.md
@@ -3,10 +3,12 @@
The SDK is generated from the Opencode server's OpenAPI 3.1 spec.
Two source modes are supported:
+
- CLI (default): runs `bun dev generate` to emit the OpenAPI JSON
- Server: fetches `http://localhost:4096/doc` from a running server
Generator command
+
```bash
# From repo root
uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
@@ -15,5 +17,6 @@ uv run --project packages/sdk/python python packages/sdk/python/scripts/generate
```
Post-generation
+
- The generator injects `extras.py` (OpenCodeClient) and patches `__init__.py` to export it
- Code is formatted with `ruff` (imports) and `black`
diff --git a/packages/sdk/python/docs/index.md b/packages/sdk/python/docs/index.md
index bc7b550f9..e0cfe5d5d 100644
--- a/packages/sdk/python/docs/index.md
+++ b/packages/sdk/python/docs/index.md
@@ -3,6 +3,7 @@
The official Python client for the Opencode API, generated from the OpenAPI spec and extended with ergonomic helpers.
Highlights
+
- Provider-agnostic client generated from OpenAPI 3.1
- Thin convenience wrapper (OpenCodeClient) for common tasks
- Sync and async SSE streaming for live event feeds
diff --git a/packages/sdk/python/docs/installation.md b/packages/sdk/python/docs/installation.md
index f66e217ae..fe48f5189 100644
--- a/packages/sdk/python/docs/installation.md
+++ b/packages/sdk/python/docs/installation.md
@@ -1,26 +1,31 @@
# Installation
Requirements
+
- Python 3.8+
- uv (recommended) -> https://docs.astral.sh/uv/
Install uv
+
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Project setup
+
```bash
# From repo root or this directory
uv sync --dev --project packages/sdk/python
```
Using pip (alternative)
+
```bash
pip install opencode-ai
```
Preview docs locally
+
```bash
# From repo root
uv run --project packages/sdk/python mkdocs serve -f packages/sdk/python/mkdocs.yml
diff --git a/packages/sdk/python/docs/publishing.md b/packages/sdk/python/docs/publishing.md
index c598baa88..c05a12a33 100644
--- a/packages/sdk/python/docs/publishing.md
+++ b/packages/sdk/python/docs/publishing.md
@@ -3,6 +3,7 @@
Automated publishing runs on GitHub Releases.
Workflow
+
- Create a new Release (the tag value becomes the package version)
- The `publish-python-sdk` workflow will:
- Generate the SDK from OpenAPI (CLI path)
@@ -10,9 +11,11 @@ Workflow
- Build wheel/sdist and upload to PyPI
Prerequisites
+
- Repository secret: `PYPI_API_TOKEN`
Manual publish
+
```bash
# TestPyPI
REPOSITORY=testpypi PYPI_TOKEN=$TEST_PYPI_API_TOKEN \
diff --git a/packages/sdk/python/docs/testing.md b/packages/sdk/python/docs/testing.md
index 3119035d0..e2c777e31 100644
--- a/packages/sdk/python/docs/testing.md
+++ b/packages/sdk/python/docs/testing.md
@@ -11,5 +11,6 @@ uv run --project packages/sdk/python pytest -q
```
Notes
+
- Integration test starts a headless opencode server via Bun in a subprocess
- SSE behavior is validated using real streaming from the server
diff --git a/packages/sdk/python/mkdocs.yml b/packages/sdk/python/mkdocs.yml
index 25de28fb3..565eb7701 100644
--- a/packages/sdk/python/mkdocs.yml
+++ b/packages/sdk/python/mkdocs.yml
@@ -3,7 +3,7 @@ site_description: Official Python SDK for the Opencode API
site_url: https://opencode.ai
repo_url: https://github.com/sst/opencode
repo_name: sst/opencode
-edit_uri: ''
+edit_uri: ""
theme:
name: material
features:
diff --git a/packages/sdk/python/sst.pyi b/packages/sdk/python/sst.pyi
index c64110c5b..b9353f7f7 100644
--- a/packages/sdk/python/sst.pyi
+++ b/packages/sdk/python/sst.pyi
@@ -25,10 +25,17 @@ class Resource:
type: str
url: str
class AuthStorage:
+ namespaceId: str
type: str
class Bucket:
name: str
type: str
+ class CLOUDFLARE_API_TOKEN:
+ type: str
+ value: str
+ class CLOUDFLARE_DEFAULT_ACCOUNT_ID:
+ type: str
+ value: str
class Console:
type: str
url: str
@@ -60,6 +67,9 @@ class Resource:
class GOOGLE_CLIENT_ID:
type: str
value: str
+ class GatewayKv:
+ namespaceId: str
+ type: str
class HONEYCOMB_API_KEY:
type: str
value: str