@opencode/sdk 2.1.4 → 2.2.1
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.
- package/dist/chunks/{promise-q6shpj80.js → index-5k7t7h61.js} +3 -3
- package/dist/chunks/{promise-f8tdk121.js → index-f8tdk121.js} +1 -1
- package/dist/chunks/{promise-d77cxa24.js → index-h8mg8k3f.js} +2 -2
- package/dist/chunks/{promise-kfnfv948.js → index-k3qz9gzb.js} +2 -2
- package/dist/chunks/{promise-hp200032.js → index-s54ac1hk.js} +4 -4
- package/dist/chunks/{promise-v20ebq3t.js → index-v20ebq3t.js} +1 -1
- package/dist/chunks/{promise-v4tj0tsx.js → index-v4tj0tsx.js} +1 -1
- package/dist/chunks/{promise-4zpjdggv.js → index-vq0gzq71.js} +2 -2
- package/dist/chunks/{promise-xk8fc419.js → index-xk8fc419.js} +1 -1
- package/dist/contracts.js +1 -1
- package/dist/effect/index.js +7 -7
- package/dist/effect/opencode.js +5 -5
- package/dist/effect/tool.js +1 -1
- package/dist/effect/workerd.js +7 -7
- package/dist/index.js +8 -8
- package/dist/internal/fetch.js +1 -1
- package/dist/internal/host.d.ts +1 -1
- package/dist/internal/host.js +4 -4
- package/dist/internal/instances.js +1 -1
- package/dist/internal/workerd.js +1 -1
- package/dist/logging.js +1 -1
- package/dist/opencode.js +6 -6
- package/dist/promise.js +5 -5
- package/dist/tool.js +1 -1
- package/dist/workerd.js +7 -7
- package/package.json +11 -10
- /package/dist/chunks/{promise-9rqn6x4v.js → index-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{promise-j1jhtwv7.js → index-j1jhtwv7.js} +0 -0
- /package/dist/chunks/{promise-t7drb6e9.js → index-t7drb6e9.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./index-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/instances.ts
|
|
6
6
|
var exports_instances = {};
|
|
@@ -14,7 +14,7 @@ import { Instance } from "@opencode/core/instance";
|
|
|
14
14
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
15
15
|
import { Plugin } from "@opencode/core/plugin";
|
|
16
16
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
17
|
-
import { Context, Duration, Effect, Layer, LayerMap } from "effect";
|
|
17
|
+
import { Context, Duration, Effect, Layer, LayerMap, RcMap } from "effect";
|
|
18
18
|
function provide2(options, context) {
|
|
19
19
|
return {
|
|
20
20
|
key: options.key,
|
|
@@ -54,7 +54,7 @@ function layer3(options, replacements) {
|
|
|
54
54
|
yield* Effect.die(new Error(`Instance plugin setup failed: ${failed.map((plugin) => plugin.id).join(", ")}`));
|
|
55
55
|
}).pipe(Effect.provide(context))));
|
|
56
56
|
})).pipe(Layer.tapCause(() => instances.invalidate(input).pipe(Effect.forkIn(scope, { startImmediately: true }), Effect.asVoid))), { idleTimeToLive: Duration.infinity });
|
|
57
|
-
return Instance.Service.of({ provide });
|
|
57
|
+
return Instance.Service.of({ provide, live: (session) => RcMap.has(instances.rcMap, key(session)) });
|
|
58
58
|
}));
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer4,
|
|
3
3
|
context2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./index-t7drb6e9.js";
|
|
5
5
|
import {
|
|
6
6
|
make3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./index-f8tdk121.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./index-5k7t7h61.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./index-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/internal/host.ts
|
|
17
17
|
var exports_host = {};
|
package/dist/contracts.js
CHANGED
package/dist/effect/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/index-t7drb6e9.js";
|
|
2
|
+
import"../chunks/index-f8tdk121.js";
|
|
3
|
+
import"../chunks/index-5k7t7h61.js";
|
|
4
|
+
import"../chunks/index-s54ac1hk.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_opencode
|
|
7
|
-
} from "../chunks/
|
|
7
|
+
} from "../chunks/index-vq0gzq71.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_tool
|
|
10
|
-
} from "../chunks/
|
|
10
|
+
} from "../chunks/index-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/
|
|
39
|
+
} from "../chunks/index-j1jhtwv7.js";
|
|
40
40
|
|
|
41
41
|
// src/effect/index.ts
|
|
42
42
|
import { EnvironmentDriver } from "@opencode/core/environment/driver";
|
package/dist/effect/opencode.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
5
|
exports_opencode
|
|
6
|
-
} from "../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
6
|
+
} from "../chunks/index-vq0gzq71.js";
|
|
7
|
+
import"../chunks/index-s54ac1hk.js";
|
|
8
|
+
import"../chunks/index-5k7t7h61.js";
|
|
9
|
+
import"../chunks/index-t7drb6e9.js";
|
|
10
|
+
import"../chunks/index-f8tdk121.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_opencode as OpenCode,
|
|
13
13
|
Service2 as Service,
|
package/dist/effect/tool.js
CHANGED
package/dist/effect/workerd.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/index-v4tj0tsx.js";
|
|
4
|
+
import"../chunks/index-t7drb6e9.js";
|
|
5
|
+
import"../chunks/index-f8tdk121.js";
|
|
6
|
+
import"../chunks/index-5k7t7h61.js";
|
|
7
|
+
import"../chunks/index-s54ac1hk.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/index-vq0gzq71.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/index-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/
|
|
2
|
-
import"./chunks/
|
|
3
|
-
import"./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/index-t7drb6e9.js";
|
|
2
|
+
import"./chunks/index-f8tdk121.js";
|
|
3
|
+
import"./chunks/index-5k7t7h61.js";
|
|
4
|
+
import"./chunks/index-s54ac1hk.js";
|
|
5
|
+
import"./chunks/index-k3qz9gzb.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_opencode2
|
|
8
|
-
} from "./chunks/
|
|
8
|
+
} from "./chunks/index-h8mg8k3f.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_tool2
|
|
11
|
-
} from "./chunks/
|
|
11
|
+
} from "./chunks/index-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/
|
|
40
|
+
} from "./chunks/index-j1jhtwv7.js";
|
|
41
41
|
|
|
42
42
|
// src/index.ts
|
|
43
43
|
import { ClientError } from "@opencode/client";
|
package/dist/internal/fetch.js
CHANGED
package/dist/internal/host.d.ts
CHANGED
|
@@ -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/
|
|
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/credential").Service | import("@opencode/core/wellknown").Service | import("@opencode/core/bus").Service | import("@opencode/core/persistent-pty/index").Service | Workspace.Service | import("@opencode/core/permission/saved").Service | import("@opencode/core/instance").Service | import("@opencode/core/session/instruction-entry").Service | import("@opencode/core/job").Service | Session.Service | import("@opencode/core/worktree").Service | import("@opencode/core/schedule").Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/location-service-map").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
|
};
|
package/dist/internal/host.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5,
|
|
3
3
|
exports_host
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/index-s54ac1hk.js";
|
|
5
|
+
import"../chunks/index-5k7t7h61.js";
|
|
6
|
+
import"../chunks/index-t7drb6e9.js";
|
|
7
|
+
import"../chunks/index-f8tdk121.js";
|
|
8
8
|
export {
|
|
9
9
|
exports_host as EmbeddedHost,
|
|
10
10
|
create5 as create
|
package/dist/internal/workerd.js
CHANGED
package/dist/logging.js
CHANGED
package/dist/opencode.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
3
|
+
} from "./chunks/index-h8mg8k3f.js";
|
|
4
|
+
import"./chunks/index-k3qz9gzb.js";
|
|
5
|
+
import"./chunks/index-s54ac1hk.js";
|
|
6
|
+
import"./chunks/index-5k7t7h61.js";
|
|
7
|
+
import"./chunks/index-t7drb6e9.js";
|
|
8
|
+
import"./chunks/index-f8tdk121.js";
|
|
9
9
|
export {
|
|
10
10
|
create3 as create
|
|
11
11
|
};
|
package/dist/promise.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create4,
|
|
3
3
|
exports_promise
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/index-k3qz9gzb.js";
|
|
5
|
+
import"./chunks/index-s54ac1hk.js";
|
|
6
|
+
import"./chunks/index-5k7t7h61.js";
|
|
7
|
+
import"./chunks/index-t7drb6e9.js";
|
|
8
|
+
import"./chunks/index-f8tdk121.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
|
11
11
|
create4 as create
|
package/dist/tool.js
CHANGED
package/dist/workerd.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
3
|
+
} from "./chunks/index-v4tj0tsx.js";
|
|
4
|
+
import"./chunks/index-t7drb6e9.js";
|
|
5
|
+
import"./chunks/index-f8tdk121.js";
|
|
6
|
+
import"./chunks/index-5k7t7h61.js";
|
|
7
|
+
import"./chunks/index-s54ac1hk.js";
|
|
8
8
|
import {
|
|
9
9
|
create4
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/index-k3qz9gzb.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./chunks/
|
|
13
|
+
} from "./chunks/index-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.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"name": "@opencode/sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,24 +35,25 @@
|
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "bun run script/build.ts",
|
|
38
|
+
"pack": "bun run script/pack.ts",
|
|
38
39
|
"test": "bun test --timeout 5000",
|
|
39
40
|
"typecheck": "bun check --no-script -b",
|
|
40
41
|
"typecheck:tsc": "tsc -b",
|
|
41
42
|
"verify:package": "bun run script/verify-package.ts"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@opencode/client": "2.1
|
|
45
|
-
"@opencode/core": "2.1
|
|
46
|
-
"@opencode/plugin": "2.1
|
|
47
|
-
"@opencode/schema": "2.1
|
|
48
|
-
"@opencode/server": "2.1
|
|
49
|
-
"@opencode/util": "2.1
|
|
45
|
+
"@opencode/client": "2.2.1",
|
|
46
|
+
"@opencode/core": "2.2.1",
|
|
47
|
+
"@opencode/plugin": "2.2.1",
|
|
48
|
+
"@opencode/schema": "2.2.1",
|
|
49
|
+
"@opencode/server": "2.2.1",
|
|
50
|
+
"@opencode/util": "2.2.1",
|
|
50
51
|
"effect": "4.0.1"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@opencode/ai": "2.1
|
|
54
|
-
"@opencode/httpapi-codegen": "2.1
|
|
55
|
-
"@opencode/protocol": "2.1
|
|
54
|
+
"@opencode/ai": "2.2.1",
|
|
55
|
+
"@opencode/httpapi-codegen": "2.2.1",
|
|
56
|
+
"@opencode/protocol": "2.2.1",
|
|
56
57
|
"@tsconfig/bun": "1.0.9",
|
|
57
58
|
"@types/bun": "1.4.3",
|
|
58
59
|
"@typescript/native": "npm:typescript@7.1.0-beta"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|