@opencode/sdk 0.0.0-dev-1112 → 0.0.0-dev-1113
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/{tool-ecmk01hy.js → tool-9makpp9m.js} +3 -3
- package/dist/chunks/{tool-v20ebq3t.js → tool-ama421zy.js} +1 -1
- package/dist/chunks/{tool-sckrd92p.js → tool-bsewwzym.js} +1 -1
- package/dist/chunks/{tool-cd6jydww.js → tool-f8tdk121.js} +3 -3
- package/dist/chunks/{tool-xk8fc419.js → tool-heqzazck.js} +1 -1
- package/dist/chunks/{tool-h1wjwp7x.js → tool-v4tj0tsx.js} +3 -3
- package/dist/chunks/{tool-2n7ptt04.js → tool-w2gdjw28.js} +1 -1
- package/dist/chunks/{tool-w4pbadt2.js → tool-xjs69bha.js} +1 -1
- package/dist/effect/index.js +6 -6
- package/dist/effect/opencode.js +3 -3
- package/dist/effect/tool.js +5 -5
- package/dist/effect/workerd.js +6 -6
- package/dist/index.js +7 -7
- package/dist/internal/fetch.js +3 -3
- package/dist/internal/host.js +2 -2
- package/dist/internal/workerd.js +3 -3
- package/dist/opencode.js +4 -4
- package/dist/promise.js +3 -3
- package/dist/tool.js +5 -5
- package/dist/workerd.js +6 -6
- package/package.json +10 -10
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
context2
|
|
4
4
|
} from "./tool-t7drb6e9.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./tool-
|
|
6
|
+
make3
|
|
7
|
+
} from "./tool-f8tdk121.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
@@ -42,7 +42,7 @@ var create5 = Effect.fn("EmbeddedHost.create")(function* (options = {}, embed =
|
|
|
42
42
|
yield* sdkPlugins.register(plugin);
|
|
43
43
|
runtime.runFork(Context.get(services, SessionRestart.Service).resumeSuspendedSessions);
|
|
44
44
|
const handler = HttpEffect.toWebHandlerWith(context2(services))(Context.get(services, HttpRouter.HttpRouter).asHttpEffect());
|
|
45
|
-
const transport =
|
|
45
|
+
const transport = make3(handler, runtime.dispose);
|
|
46
46
|
return {
|
|
47
47
|
runtime,
|
|
48
48
|
fetch: transport.fetch,
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
var exports_fetch = {};
|
|
7
7
|
__export(exports_fetch, {
|
|
8
8
|
OwnedFetch: () => exports_fetch,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make3
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make3(handler, dispose) {
|
|
12
12
|
const requests = new Map;
|
|
13
13
|
const closed = new Error("OpenCode host is closed");
|
|
14
14
|
let closePromise;
|
|
@@ -125,4 +125,4 @@ function trackResponse(response, signal, finish) {
|
|
|
125
125
|
return new Response(body, response);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { make3, exports_fetch };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_workerd = {};
|
|
7
7
|
__export(exports_workerd, {
|
|
8
8
|
WorkerdProfile: () => exports_workerd,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { ServerWorkerd } from "@opencode/server/workerd";
|
|
12
|
-
function
|
|
12
|
+
function make2({ config, ...options }) {
|
|
13
13
|
const server = {
|
|
14
14
|
...options,
|
|
15
15
|
config: config === undefined ? undefined : { content: JSON.stringify(config) }
|
|
@@ -20,4 +20,4 @@ function make3({ config, ...options }) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make2, exports_workerd };
|
package/dist/effect/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import"../chunks/tool-t7drb6e9.js";
|
|
2
|
-
import"../chunks/tool-
|
|
2
|
+
import"../chunks/tool-f8tdk121.js";
|
|
3
3
|
import"../chunks/tool-5k7t7h61.js";
|
|
4
|
-
import"../chunks/tool-
|
|
4
|
+
import"../chunks/tool-9makpp9m.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_opencode
|
|
7
|
-
} from "../chunks/tool-
|
|
7
|
+
} from "../chunks/tool-xjs69bha.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../chunks/tool-
|
|
9
|
+
exports_tool2
|
|
10
|
+
} from "../chunks/tool-heqzazck.js";
|
|
11
11
|
import {
|
|
12
12
|
Agent2,
|
|
13
13
|
Command2,
|
|
@@ -72,7 +72,7 @@ export {
|
|
|
72
72
|
SessionInbox2 as SessionInbox,
|
|
73
73
|
SessionMessage2 as SessionMessage,
|
|
74
74
|
Skill2 as Skill,
|
|
75
|
-
|
|
75
|
+
exports_tool2 as Tool,
|
|
76
76
|
WebSearch2 as WebSearch,
|
|
77
77
|
Workspace2 as Workspace,
|
|
78
78
|
WorkspaceDriver,
|
package/dist/effect/opencode.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
5
|
exports_opencode
|
|
6
|
-
} from "../chunks/tool-
|
|
7
|
-
import"../chunks/tool-
|
|
8
|
-
import"../chunks/tool-
|
|
6
|
+
} from "../chunks/tool-xjs69bha.js";
|
|
7
|
+
import"../chunks/tool-9makpp9m.js";
|
|
8
|
+
import"../chunks/tool-f8tdk121.js";
|
|
9
9
|
import"../chunks/tool-5k7t7h61.js";
|
|
10
10
|
import"../chunks/tool-t7drb6e9.js";
|
|
11
11
|
export {
|
package/dist/effect/tool.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/tool-
|
|
2
|
+
RegistrationError3,
|
|
3
|
+
Error3
|
|
4
|
+
} from "../chunks/tool-heqzazck.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error3 as Error,
|
|
7
|
+
RegistrationError3 as RegistrationError
|
|
8
8
|
};
|
package/dist/effect/workerd.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/tool-
|
|
2
|
+
make2
|
|
3
|
+
} from "../chunks/tool-v4tj0tsx.js";
|
|
4
4
|
import"../chunks/tool-t7drb6e9.js";
|
|
5
|
-
import"../chunks/tool-
|
|
5
|
+
import"../chunks/tool-f8tdk121.js";
|
|
6
6
|
import"../chunks/tool-5k7t7h61.js";
|
|
7
|
-
import"../chunks/tool-
|
|
7
|
+
import"../chunks/tool-9makpp9m.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/tool-
|
|
11
|
+
} from "../chunks/tool-xjs69bha.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "../chunks/tool-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ __export(exports_workerd, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Layer } from "effect";
|
|
24
24
|
var create = ({ log, plugins, workspaceProviders, instances, ...options }) => {
|
|
25
|
-
const profile =
|
|
25
|
+
const profile = make2(options);
|
|
26
26
|
return create2({ ...profile.options, log, plugins, workspaceProviders, instances }, { overrides: profile.replacements });
|
|
27
27
|
};
|
|
28
28
|
var layer = (options) => Layer.effect(Service2, create(options));
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import"./chunks/tool-t7drb6e9.js";
|
|
2
|
-
import"./chunks/tool-
|
|
2
|
+
import"./chunks/tool-f8tdk121.js";
|
|
3
3
|
import"./chunks/tool-5k7t7h61.js";
|
|
4
|
-
import"./chunks/tool-
|
|
5
|
-
import"./chunks/tool-
|
|
4
|
+
import"./chunks/tool-9makpp9m.js";
|
|
5
|
+
import"./chunks/tool-bsewwzym.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_opencode2
|
|
8
|
-
} from "./chunks/tool-
|
|
8
|
+
} from "./chunks/tool-w2gdjw28.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunks/tool-
|
|
10
|
+
exports_tool
|
|
11
|
+
} from "./chunks/tool-ama421zy.js";
|
|
12
12
|
import {
|
|
13
13
|
Agent2,
|
|
14
14
|
Command2,
|
|
@@ -68,7 +68,7 @@ export {
|
|
|
68
68
|
SessionInbox2 as SessionInbox,
|
|
69
69
|
SessionMessage2 as SessionMessage,
|
|
70
70
|
Skill2 as Skill,
|
|
71
|
-
|
|
71
|
+
exports_tool as Tool,
|
|
72
72
|
WebSearch2 as WebSearch,
|
|
73
73
|
Workspace2 as Workspace,
|
|
74
74
|
Worktree2 as Worktree
|
package/dist/internal/fetch.js
CHANGED
package/dist/internal/host.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5,
|
|
3
3
|
exports_host
|
|
4
|
-
} from "../chunks/tool-
|
|
5
|
-
import"../chunks/tool-
|
|
4
|
+
} from "../chunks/tool-9makpp9m.js";
|
|
5
|
+
import"../chunks/tool-f8tdk121.js";
|
|
6
6
|
import"../chunks/tool-5k7t7h61.js";
|
|
7
7
|
import"../chunks/tool-t7drb6e9.js";
|
|
8
8
|
export {
|
package/dist/internal/workerd.js
CHANGED
package/dist/opencode.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./chunks/tool-
|
|
4
|
-
import"./chunks/tool-
|
|
5
|
-
import"./chunks/tool-
|
|
6
|
-
import"./chunks/tool-
|
|
3
|
+
} from "./chunks/tool-w2gdjw28.js";
|
|
4
|
+
import"./chunks/tool-bsewwzym.js";
|
|
5
|
+
import"./chunks/tool-9makpp9m.js";
|
|
6
|
+
import"./chunks/tool-f8tdk121.js";
|
|
7
7
|
import"./chunks/tool-5k7t7h61.js";
|
|
8
8
|
import"./chunks/tool-t7drb6e9.js";
|
|
9
9
|
export {
|
package/dist/promise.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create4,
|
|
3
3
|
exports_promise
|
|
4
|
-
} from "./chunks/tool-
|
|
5
|
-
import"./chunks/tool-
|
|
6
|
-
import"./chunks/tool-
|
|
4
|
+
} from "./chunks/tool-bsewwzym.js";
|
|
5
|
+
import"./chunks/tool-9makpp9m.js";
|
|
6
|
+
import"./chunks/tool-f8tdk121.js";
|
|
7
7
|
import"./chunks/tool-5k7t7h61.js";
|
|
8
8
|
import"./chunks/tool-t7drb6e9.js";
|
|
9
9
|
export {
|
package/dist/tool.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunks/tool-
|
|
2
|
+
RegistrationError2,
|
|
3
|
+
Error2
|
|
4
|
+
} from "./chunks/tool-ama421zy.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error2 as Error,
|
|
7
|
+
RegistrationError2 as RegistrationError
|
|
8
8
|
};
|
package/dist/workerd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunks/tool-
|
|
2
|
+
make2
|
|
3
|
+
} from "./chunks/tool-v4tj0tsx.js";
|
|
4
4
|
import"./chunks/tool-t7drb6e9.js";
|
|
5
|
-
import"./chunks/tool-
|
|
5
|
+
import"./chunks/tool-f8tdk121.js";
|
|
6
6
|
import"./chunks/tool-5k7t7h61.js";
|
|
7
|
-
import"./chunks/tool-
|
|
7
|
+
import"./chunks/tool-9makpp9m.js";
|
|
8
8
|
import {
|
|
9
9
|
create4
|
|
10
|
-
} from "./chunks/tool-
|
|
10
|
+
} from "./chunks/tool-bsewwzym.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunks/tool-9rqn6x4v.js";
|
|
@@ -19,7 +19,7 @@ __export(exports_workerd, {
|
|
|
19
19
|
create: () => create
|
|
20
20
|
});
|
|
21
21
|
var create = ({ log, plugins, instances, ...options }) => {
|
|
22
|
-
const profile =
|
|
22
|
+
const profile = make2(options);
|
|
23
23
|
return create4({ ...profile.options, log, plugins, instances }, { overrides: profile.replacements });
|
|
24
24
|
};
|
|
25
25
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-1113",
|
|
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": "0.0.0-dev-
|
|
46
|
-
"@opencode/core": "0.0.0-dev-
|
|
47
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
48
|
-
"@opencode/schema": "0.0.0-dev-
|
|
49
|
-
"@opencode/server": "0.0.0-dev-
|
|
50
|
-
"@opencode/util": "0.0.0-dev-
|
|
45
|
+
"@opencode/client": "0.0.0-dev-1113",
|
|
46
|
+
"@opencode/core": "0.0.0-dev-1113",
|
|
47
|
+
"@opencode/plugin": "0.0.0-dev-1113",
|
|
48
|
+
"@opencode/schema": "0.0.0-dev-1113",
|
|
49
|
+
"@opencode/server": "0.0.0-dev-1113",
|
|
50
|
+
"@opencode/util": "0.0.0-dev-1113",
|
|
51
51
|
"effect": "4.1.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@opencode/ai": "0.0.0-dev-
|
|
55
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
56
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
54
|
+
"@opencode/ai": "0.0.0-dev-1113",
|
|
55
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-1113",
|
|
56
|
+
"@opencode/protocol": "0.0.0-dev-1113",
|
|
57
57
|
"@tsconfig/bun": "1.0.9",
|
|
58
58
|
"@types/bun": "1.4.3",
|
|
59
59
|
"@typescript/native": "npm:typescript@7.1.0-beta"
|