@opencode/sdk 2.2.7 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./promise-9rqn6x4v.js";
4
4
 
5
5
  // src/internal/instances.ts
6
6
  var exports_instances = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./promise-9rqn6x4v.js";
4
4
 
5
5
  // src/internal/fetch.ts
6
6
  var exports_fetch = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  create5
3
- } from "./workerd-9makpp9m.js";
3
+ } from "./promise-xemjnw1g.js";
4
4
  import {
5
5
  __export
6
- } from "./workerd-9rqn6x4v.js";
6
+ } from "./promise-9rqn6x4v.js";
7
7
 
8
8
  // src/promise.ts
9
9
  var exports_promise = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  create5
3
- } from "./workerd-9makpp9m.js";
3
+ } from "./promise-xemjnw1g.js";
4
4
  import {
5
5
  __export
6
- } from "./workerd-9rqn6x4v.js";
6
+ } from "./promise-9rqn6x4v.js";
7
7
 
8
8
  // src/effect/opencode.ts
9
9
  var exports_opencode2 = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./promise-9rqn6x4v.js";
4
4
 
5
5
  // src/effect/tool.ts
6
6
  var exports_tool = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./promise-9rqn6x4v.js";
4
4
 
5
5
  // src/internal/workerd.ts
6
6
  var exports_workerd = {};
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  create3
3
- } from "./workerd-achf5fp4.js";
3
+ } from "./promise-ghgw79bz.js";
4
4
  import {
5
5
  __export
6
- } from "./workerd-9rqn6x4v.js";
6
+ } from "./promise-9rqn6x4v.js";
7
7
 
8
8
  // src/opencode.ts
9
9
  var exports_opencode = {};
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  layer4,
3
3
  context2
4
- } from "./workerd-t7drb6e9.js";
4
+ } from "./promise-t7drb6e9.js";
5
5
  import {
6
6
  make3
7
- } from "./workerd-f8tdk121.js";
7
+ } from "./promise-f8tdk121.js";
8
8
  import {
9
9
  provide2,
10
10
  node2
11
- } from "./workerd-5k7t7h61.js";
11
+ } from "./promise-5k7t7h61.js";
12
12
  import {
13
13
  __export
14
- } from "./workerd-9rqn6x4v.js";
14
+ } from "./promise-9rqn6x4v.js";
15
15
 
16
16
  // src/internal/host.ts
17
17
  var exports_host = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./workerd-9rqn6x4v.js";
3
+ } from "./promise-9rqn6x4v.js";
4
4
 
5
5
  // src/tool.ts
6
6
  var exports_tool2 = {};
package/dist/contracts.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  SessionMessage2,
27
27
  Skill2,
28
28
  Workspace2
29
- } from "./chunks/workerd-j1jhtwv7.js";
29
+ } from "./chunks/promise-j1jhtwv7.js";
30
30
  export {
31
31
  AbsolutePath2 as AbsolutePath,
32
32
  Agent2 as Agent,
@@ -1,13 +1,13 @@
1
- import"../chunks/workerd-t7drb6e9.js";
2
- import"../chunks/workerd-f8tdk121.js";
3
- import"../chunks/workerd-5k7t7h61.js";
4
- import"../chunks/workerd-9makpp9m.js";
1
+ import"../chunks/promise-t7drb6e9.js";
2
+ import"../chunks/promise-f8tdk121.js";
3
+ import"../chunks/promise-5k7t7h61.js";
4
+ import"../chunks/promise-xemjnw1g.js";
5
5
  import {
6
6
  exports_opencode2
7
- } from "../chunks/workerd-fqnpkcpy.js";
7
+ } from "../chunks/promise-na8njday.js";
8
8
  import {
9
9
  exports_tool
10
- } from "../chunks/workerd-v20ebq3t.js";
10
+ } from "../chunks/promise-v20ebq3t.js";
11
11
  import {
12
12
  Agent2,
13
13
  Command2,
@@ -36,7 +36,7 @@ import {
36
36
  SessionMessage2,
37
37
  Skill2,
38
38
  Workspace2
39
- } from "../chunks/workerd-j1jhtwv7.js";
39
+ } from "../chunks/promise-j1jhtwv7.js";
40
40
 
41
41
  // src/effect/index.ts
42
42
  import { EnvironmentDriver } from "@opencode/core/environment/driver";
@@ -3,11 +3,11 @@ import {
3
3
  Service2,
4
4
  layer2,
5
5
  exports_opencode2
6
- } from "../chunks/workerd-fqnpkcpy.js";
7
- import"../chunks/workerd-9makpp9m.js";
8
- import"../chunks/workerd-f8tdk121.js";
9
- import"../chunks/workerd-5k7t7h61.js";
10
- import"../chunks/workerd-t7drb6e9.js";
6
+ } from "../chunks/promise-na8njday.js";
7
+ import"../chunks/promise-xemjnw1g.js";
8
+ import"../chunks/promise-5k7t7h61.js";
9
+ import"../chunks/promise-f8tdk121.js";
10
+ import"../chunks/promise-t7drb6e9.js";
11
11
  export {
12
12
  exports_opencode2 as OpenCode,
13
13
  Service2 as Service,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RegistrationError2,
3
3
  Error2
4
- } from "../chunks/workerd-v20ebq3t.js";
4
+ } from "../chunks/promise-v20ebq3t.js";
5
5
  export {
6
6
  Error2 as Error,
7
7
  RegistrationError2 as RegistrationError
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  make2
3
- } from "../chunks/workerd-v4tj0tsx.js";
4
- import"../chunks/workerd-t7drb6e9.js";
5
- import"../chunks/workerd-f8tdk121.js";
6
- import"../chunks/workerd-5k7t7h61.js";
7
- import"../chunks/workerd-9makpp9m.js";
3
+ } from "../chunks/promise-v4tj0tsx.js";
4
+ import"../chunks/promise-t7drb6e9.js";
5
+ import"../chunks/promise-f8tdk121.js";
6
+ import"../chunks/promise-5k7t7h61.js";
7
+ import"../chunks/promise-xemjnw1g.js";
8
8
  import {
9
9
  create4,
10
10
  Service2
11
- } from "../chunks/workerd-fqnpkcpy.js";
11
+ } from "../chunks/promise-na8njday.js";
12
12
  import {
13
13
  __export
14
- } from "../chunks/workerd-9rqn6x4v.js";
14
+ } from "../chunks/promise-9rqn6x4v.js";
15
15
 
16
16
  // src/effect/workerd.ts
17
17
  var exports_workerd = {};
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import"./chunks/workerd-t7drb6e9.js";
2
- import"./chunks/workerd-f8tdk121.js";
3
- import"./chunks/workerd-5k7t7h61.js";
4
- import"./chunks/workerd-9makpp9m.js";
5
- import"./chunks/workerd-achf5fp4.js";
1
+ import"./chunks/promise-t7drb6e9.js";
2
+ import"./chunks/promise-f8tdk121.js";
3
+ import"./chunks/promise-5k7t7h61.js";
4
+ import"./chunks/promise-xemjnw1g.js";
5
+ import"./chunks/promise-ghgw79bz.js";
6
6
  import {
7
7
  exports_opencode
8
- } from "./chunks/workerd-vd0pesy2.js";
8
+ } from "./chunks/promise-wty4b70h.js";
9
9
  import {
10
10
  exports_tool2
11
- } from "./chunks/workerd-xk8fc419.js";
11
+ } from "./chunks/promise-xk8fc419.js";
12
12
  import {
13
13
  Agent2,
14
14
  Command2,
@@ -37,7 +37,7 @@ import {
37
37
  SessionMessage2,
38
38
  Skill2,
39
39
  Workspace2
40
- } from "./chunks/workerd-j1jhtwv7.js";
40
+ } from "./chunks/promise-j1jhtwv7.js";
41
41
 
42
42
  // src/index.ts
43
43
  import { ClientError } from "@opencode/client";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make3,
3
3
  exports_fetch
4
- } from "../chunks/workerd-f8tdk121.js";
4
+ } from "../chunks/promise-f8tdk121.js";
5
5
  export {
6
6
  exports_fetch as OwnedFetch,
7
7
  make3 as make
@@ -22,7 +22,7 @@ export interface EmbedOptions {
22
22
  readonly overrides?: LayerNode.Replacements;
23
23
  }
24
24
  export declare const create: <R = never>(options?: CreateOptions<R> | undefined, embed?: EmbedOptions | undefined) => Effect.Effect<{
25
- runtime: ManagedRuntime.ManagedRuntime<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/util/fs-util").FSUtil.Service | import("@opencode/core/project").Service | import("@opencode/core/app").Service | import("@opencode/core/credential").Service | import("@opencode/core/kv").Service | import("@opencode/core/wellknown").Service | Workspace.Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/job").Service | import("@opencode/core/permission/saved").Service | import("@opencode/core/location-service-map").Service | Session.Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/worktree").Service | import("@opencode/core/schedule").Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/instance").Service | import("@opencode/core/bus").Service | SdkPlugins.Service | SessionRestart.Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/location-activity").Service | import("@opencode/core/filesystem/file-watch").Service | import("@opencode/server/pairing").Service, Error | import("@opencode/core/persistent-pty/index").UnavailableError>;
25
+ runtime: ManagedRuntime.ManagedRuntime<import("@opencode/core/shell").Daemon | import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/util/fs-util").FSUtil.Service | import("@opencode/core/project").Service | import("@opencode/core/app").Service | import("@opencode/core/credential").Service | import("@opencode/core/kv").Service | import("@opencode/core/wellknown").Service | Workspace.Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/job").Service | import("@opencode/core/permission/saved").Service | import("@opencode/core/location-service-map").Service | import("@opencode/core/persistent-pty/index").Service | Session.Service | import("@opencode/core/worktree").Service | import("@opencode/core/schedule").Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/instance").Service | import("@opencode/core/bus").Service | SdkPlugins.Service | SessionRestart.Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/location-activity").Service | import("@opencode/core/filesystem/file-watch").Service | import("@opencode/server/pairing").Service, Error | import("@opencode/core/persistent-pty/index").UnavailableError>;
26
26
  fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) & {
27
27
  preconnect: () => undefined;
28
28
  };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  create5,
3
3
  exports_host
4
- } from "../chunks/workerd-9makpp9m.js";
5
- import"../chunks/workerd-f8tdk121.js";
6
- import"../chunks/workerd-5k7t7h61.js";
7
- import"../chunks/workerd-t7drb6e9.js";
4
+ } from "../chunks/promise-xemjnw1g.js";
5
+ import"../chunks/promise-5k7t7h61.js";
6
+ import"../chunks/promise-f8tdk121.js";
7
+ import"../chunks/promise-t7drb6e9.js";
8
8
  export {
9
9
  exports_host as EmbeddedHost,
10
10
  create5 as create
@@ -3,7 +3,7 @@ import {
3
3
  node2,
4
4
  layer3,
5
5
  exports_instances
6
- } from "../chunks/workerd-5k7t7h61.js";
6
+ } from "../chunks/promise-5k7t7h61.js";
7
7
  export {
8
8
  exports_instances as SdkInstances,
9
9
  layer3 as layer,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  make2,
3
3
  exports_workerd
4
- } from "../chunks/workerd-v4tj0tsx.js";
4
+ } from "../chunks/promise-v4tj0tsx.js";
5
5
  export {
6
6
  exports_workerd as WorkerdProfile,
7
7
  make2 as make
package/dist/logging.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  layer4,
3
3
  context2
4
- } from "./chunks/workerd-t7drb6e9.js";
4
+ } from "./chunks/promise-t7drb6e9.js";
5
5
  export {
6
6
  context2 as context,
7
7
  layer4 as layer
package/dist/opencode.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  create2
3
- } from "./chunks/workerd-vd0pesy2.js";
4
- import"./chunks/workerd-achf5fp4.js";
5
- import"./chunks/workerd-9makpp9m.js";
6
- import"./chunks/workerd-f8tdk121.js";
7
- import"./chunks/workerd-5k7t7h61.js";
8
- import"./chunks/workerd-t7drb6e9.js";
3
+ } from "./chunks/promise-wty4b70h.js";
4
+ import"./chunks/promise-ghgw79bz.js";
5
+ import"./chunks/promise-xemjnw1g.js";
6
+ import"./chunks/promise-5k7t7h61.js";
7
+ import"./chunks/promise-f8tdk121.js";
8
+ import"./chunks/promise-t7drb6e9.js";
9
9
  export {
10
10
  create2 as create
11
11
  };
package/dist/promise.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  create3,
3
3
  exports_promise
4
- } from "./chunks/workerd-achf5fp4.js";
5
- import"./chunks/workerd-9makpp9m.js";
6
- import"./chunks/workerd-f8tdk121.js";
7
- import"./chunks/workerd-5k7t7h61.js";
8
- import"./chunks/workerd-t7drb6e9.js";
4
+ } from "./chunks/promise-ghgw79bz.js";
5
+ import"./chunks/promise-xemjnw1g.js";
6
+ import"./chunks/promise-5k7t7h61.js";
7
+ import"./chunks/promise-f8tdk121.js";
8
+ import"./chunks/promise-t7drb6e9.js";
9
9
  export {
10
10
  exports_promise as PromiseSdk,
11
11
  create3 as create
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RegistrationError3,
3
3
  Error3
4
- } from "./chunks/workerd-xk8fc419.js";
4
+ } from "./chunks/promise-xk8fc419.js";
5
5
  export {
6
6
  Error3 as Error,
7
7
  RegistrationError3 as RegistrationError
package/dist/workerd.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  make2
3
- } from "./chunks/workerd-v4tj0tsx.js";
4
- import"./chunks/workerd-t7drb6e9.js";
5
- import"./chunks/workerd-f8tdk121.js";
6
- import"./chunks/workerd-5k7t7h61.js";
7
- import"./chunks/workerd-9makpp9m.js";
3
+ } from "./chunks/promise-v4tj0tsx.js";
4
+ import"./chunks/promise-t7drb6e9.js";
5
+ import"./chunks/promise-f8tdk121.js";
6
+ import"./chunks/promise-5k7t7h61.js";
7
+ import"./chunks/promise-xemjnw1g.js";
8
8
  import {
9
9
  create3
10
- } from "./chunks/workerd-achf5fp4.js";
10
+ } from "./chunks/promise-ghgw79bz.js";
11
11
  import {
12
12
  __export
13
- } from "./chunks/workerd-9rqn6x4v.js";
13
+ } from "./chunks/promise-9rqn6x4v.js";
14
14
 
15
15
  // src/workerd.ts
16
16
  var exports_workerd = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "2.2.7",
3
+ "version": "2.3.0",
4
4
  "name": "@opencode/sdk",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,18 +42,18 @@
42
42
  "verify:package": "bun run script/verify-package.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@opencode/client": "2.2.7",
46
- "@opencode/core": "2.2.7",
47
- "@opencode/plugin": "2.2.7",
48
- "@opencode/schema": "2.2.7",
49
- "@opencode/server": "2.2.7",
50
- "@opencode/util": "2.2.7",
45
+ "@opencode/client": "2.3.0",
46
+ "@opencode/core": "2.3.0",
47
+ "@opencode/plugin": "2.3.0",
48
+ "@opencode/schema": "2.3.0",
49
+ "@opencode/server": "2.3.0",
50
+ "@opencode/util": "2.3.0",
51
51
  "effect": "4.1.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@opencode/ai": "2.2.7",
55
- "@opencode/httpapi-codegen": "2.2.7",
56
- "@opencode/protocol": "2.2.7",
54
+ "@opencode/ai": "2.3.0",
55
+ "@opencode/httpapi-codegen": "2.3.0",
56
+ "@opencode/protocol": "2.3.0",
57
57
  "@tsconfig/bun": "1.0.9",
58
58
  "@types/bun": "1.4.3",
59
59
  "@typescript/native": "npm:typescript@7.1.0-beta"