The open source coding agent.
TypeScript
drop excess dependency in opencode sdk
Dax Raadf211fc45a35d
diff --git a/bun.lock b/bun.lockindex cf8863f8419..27400792175 100644--- a/bun.lock+++ b/bun.lock@@ -208,11 +208,8 @@"packages/sdk/js": {"name": "@opencode-ai/sdk","version": "0.14.6",- "dependencies": {- "@hey-api/openapi-ts": "0.81.0",- },"devDependencies": {- "@hey-api/openapi-ts": "0.80.1",+ "@hey-api/openapi-ts": "0.81.0","@tsconfig/node22": "catalog:","typescript": "catalog:",},@@ -555,7 +552,7 @@"@hey-api/json-schema-ref-parser": ["@hey-api/[email protected]", "", { "dependencies": { "@jsdevtools/ono": "^7.1.3", "@types/json-schema": "^7.0.15", "js-yaml": "^4.1.0", "lodash": "^4.17.21" } }, "sha512-yktiFZoWPtEW8QKS65eqKwA5MTKp88CyiL8q72WynrBs/73SAaxlSWlA2zW/DZlywZ5hX1OYzrCC0wFdvO9c2w=="],- "@hey-api/openapi-ts": ["@hey-api/[email protected]", "", { "dependencies": { "@hey-api/json-schema-ref-parser": "1.0.6", "ansi-colors": "4.1.3", "c12": "2.0.1", "color-support": "1.1.3", "commander": "13.0.0", "handlebars": "4.7.8", "open": "10.1.2", "semver": "7.7.2" }, "peerDependencies": { "typescript": "^5.5.3" }, "bin": { "openapi-ts": "bin/index.cjs" } }, "sha512-AC478kg36vmmrseLZNFonZ/cmXXmDzW5yWz4PVg1S8ebJsRtVRJ/QU+mtnXfzf9avN2P0pz/AO4WAe4jyFY2gA=="],+ "@hey-api/openapi-ts": ["@hey-api/[email protected]", "", { "dependencies": { "@hey-api/json-schema-ref-parser": "1.0.6", "ansi-colors": "4.1.3", "c12": "2.0.1", "color-support": "1.1.3", "commander": "13.0.0", "handlebars": "4.7.8", "js-yaml": "4.1.0", "open": "10.1.2", "semver": "7.7.2" }, "peerDependencies": { "typescript": "^5.5.3" }, "bin": { "openapi-ts": "bin/index.cjs" } }, "sha512-PoJukNBkUfHOoMDpN33bBETX49TUhy7Hu8Sa0jslOvFndvZ5VjQr4Nl/Dzjb9LG1Lp5HjybyTJMA6a1zYk/q6A=="],"@hono/standard-validator": ["@hono/[email protected]", "", { "peerDependencies": { "@standard-schema/spec": "1.0.0", "hono": ">=3.9.0" } }, "sha512-EIyZPPwkyLn6XKwFj5NBEWHXhXbgmnVh2ceIFo5GO7gKI9WmzTjPDKnppQB0KrqKeAkq3kpoW4SIbu5X1dgx3w=="],@@ -3129,8 +3126,6 @@"@opencode-ai/console-resource/@cloudflare/workers-types": ["@cloudflare/[email protected]", "", {}, "sha512-MXseDjmqL1hIdQCqwHDMG8SE60W4FdwqLsofZjo/KtLH9zFcoQfZkCYyQrdfEJINiSoNJjrup7WR6KsqiFUSsg=="],- "@opencode-ai/sdk/@hey-api/openapi-ts": ["@hey-api/[email protected]", "", { "dependencies": { "@hey-api/json-schema-ref-parser": "1.0.6", "ansi-colors": "4.1.3", "c12": "2.0.1", "color-support": "1.1.3", "commander": "13.0.0", "handlebars": "4.7.8", "js-yaml": "4.1.0", "open": "10.1.2", "semver": "7.7.2" }, "peerDependencies": { "typescript": "^5.5.3" }, "bin": { "openapi-ts": "bin/index.cjs" } }, "sha512-PoJukNBkUfHOoMDpN33bBETX49TUhy7Hu8Sa0jslOvFndvZ5VjQr4Nl/Dzjb9LG1Lp5HjybyTJMA6a1zYk/q6A=="],-"@opencode-ai/web/@shikijs/transformers": ["@shikijs/[email protected]", "", { "dependencies": { "@shikijs/core": "3.4.2", "@shikijs/types": "3.4.2" } }, "sha512-I5baLVi/ynLEOZoWSAMlACHNnG+yw5HDmse0oe+GW6U1u+ULdEB3UHiVWaHoJSSONV7tlcVxuaMy74sREDkSvg=="],"@opencode-ai/web/@types/luxon": ["@types/[email protected]", "", {}, "sha512-R/BdP7OxEMc44l2Ex5lSXHoIXTB2JLNa3y2QISIbr58U/YcsffyQrYW//hZSdrfxrjRZj3GcUoxMPGdO8gSYuw=="],diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.jsonindex 56390dd5794..bd5778e10a5 100644--- a/packages/sdk/js/package.json+++ b/packages/sdk/js/package.json@@ -17,13 +17,11 @@],"devDependencies": {"typescript": "catalog:",- "@hey-api/openapi-ts": "0.80.1",+ "@hey-api/openapi-ts": "0.81.0","@tsconfig/node22": "catalog:"},- "dependencies": {- "@hey-api/openapi-ts": "0.81.0"- },+ "dependencies": {},"publishConfig": {"directory": "dist"}-}\ No newline at end of file+}diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.tsindex cc94c1f1f9b..706fff125e9 100644--- a/packages/sdk/js/src/gen/types.gen.ts+++ b/packages/sdk/js/src/gen/types.gen.ts@@ -413,6 +413,10 @@ export type Config = {context: numberoutput: number}+ modalities?: {+ input: Array<"text" | "audio" | "image" | "video" | "pdf">+ output: Array<"text" | "audio" | "image" | "video" | "pdf">+ }experimental?: booleanoptions?: {[key: string]: unknown@@ -746,6 +750,7 @@ export type ToolStateCompleted = {end: numbercompacted?: number}+ attachments?: Array<FilePart>}export type ToolStateError = {@@ -904,6 +909,10 @@ export type Model = {context: numberoutput: number}+ modalities?: {+ input: Array<"text" | "audio" | "image" | "video" | "pdf">+ output: Array<"text" | "audio" | "image" | "video" | "pdf">+ }experimental?: booleanoptions: {[key: string]: unknown