@opencode/sdk 0.0.0-dev-20858 → 0.0.0-dev-20862
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/{logging-3k1sy9fb.js → logging-3whcczxy.js} +3 -3
- package/dist/chunks/{logging-5t3kh5ja.js → logging-6050vrm2.js} +1 -1
- package/dist/chunks/{logging-e4jcahf3.js → logging-bp1en24r.js} +1 -1
- package/dist/chunks/{logging-39225h8g.js → logging-qtsmxzjm.js} +3 -3
- package/dist/chunks/{logging-0ty6n2hs.js → logging-rr9xq59c.js} +1 -1
- package/dist/chunks/{logging-yqn72msb.js → logging-v1qmz9qa.js} +3 -3
- package/dist/effect/index.js +3 -3
- package/dist/effect/opencode.js +3 -3
- package/dist/effect/workerd.js +6 -6
- package/dist/index.js +4 -4
- package/dist/internal/fetch.js +3 -3
- package/dist/internal/host.js +2 -2
- package/dist/internal/workerd.d.ts +4 -4
- package/dist/internal/workerd.js +3 -3
- package/dist/opencode.js +4 -4
- package/dist/promise.js +3 -3
- package/dist/workerd.js +6 -6
- package/package.json +10 -10
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
context2
|
|
4
4
|
} from "./logging-ya9awdj2.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./logging-
|
|
6
|
+
make2
|
|
7
|
+
} from "./logging-v1qmz9qa.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 = make2(handler, runtime.dispose);
|
|
46
46
|
return {
|
|
47
47
|
runtime,
|
|
48
48
|
fetch: transport.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: () => make3
|
|
10
10
|
});
|
|
11
11
|
import { ServerWorkerd } from "@opencode/server/workerd";
|
|
12
|
-
function
|
|
12
|
+
function make3({ config, ...options }) {
|
|
13
13
|
const server = {
|
|
14
14
|
...options,
|
|
15
15
|
config: config === undefined ? undefined : { content: JSON.stringify(config) }
|
|
@@ -20,4 +20,4 @@ function make2({ config, ...options }) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make3, exports_workerd };
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
var exports_fetch = {};
|
|
7
7
|
__export(exports_fetch, {
|
|
8
8
|
OwnedFetch: () => exports_fetch,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make2
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make2(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 { make2, exports_fetch };
|
package/dist/effect/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import"../chunks/logging-ya9awdj2.js";
|
|
2
|
-
import"../chunks/logging-
|
|
2
|
+
import"../chunks/logging-v1qmz9qa.js";
|
|
3
3
|
import"../chunks/logging-pqb0kjhx.js";
|
|
4
|
-
import"../chunks/logging-
|
|
4
|
+
import"../chunks/logging-3whcczxy.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_opencode
|
|
7
|
-
} from "../chunks/logging-
|
|
7
|
+
} from "../chunks/logging-6050vrm2.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_tool
|
|
10
10
|
} from "../chunks/logging-n1hprnh9.js";
|
package/dist/effect/opencode.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
5
|
exports_opencode
|
|
6
|
-
} from "../chunks/logging-
|
|
7
|
-
import"../chunks/logging-
|
|
6
|
+
} from "../chunks/logging-6050vrm2.js";
|
|
7
|
+
import"../chunks/logging-3whcczxy.js";
|
|
8
8
|
import"../chunks/logging-pqb0kjhx.js";
|
|
9
|
-
import"../chunks/logging-
|
|
9
|
+
import"../chunks/logging-v1qmz9qa.js";
|
|
10
10
|
import"../chunks/logging-ya9awdj2.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_opencode as OpenCode,
|
package/dist/effect/workerd.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/logging-
|
|
2
|
+
make3
|
|
3
|
+
} from "../chunks/logging-qtsmxzjm.js";
|
|
4
4
|
import"../chunks/logging-ya9awdj2.js";
|
|
5
|
-
import"../chunks/logging-
|
|
5
|
+
import"../chunks/logging-v1qmz9qa.js";
|
|
6
6
|
import"../chunks/logging-pqb0kjhx.js";
|
|
7
|
-
import"../chunks/logging-
|
|
7
|
+
import"../chunks/logging-3whcczxy.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/logging-
|
|
11
|
+
} from "../chunks/logging-6050vrm2.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "../chunks/logging-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 = make3(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,11 +1,11 @@
|
|
|
1
1
|
import"./chunks/logging-ya9awdj2.js";
|
|
2
|
-
import"./chunks/logging-
|
|
2
|
+
import"./chunks/logging-v1qmz9qa.js";
|
|
3
3
|
import"./chunks/logging-pqb0kjhx.js";
|
|
4
|
-
import"./chunks/logging-
|
|
5
|
-
import"./chunks/logging-
|
|
4
|
+
import"./chunks/logging-3whcczxy.js";
|
|
5
|
+
import"./chunks/logging-rr9xq59c.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_opencode2
|
|
8
|
-
} from "./chunks/logging-
|
|
8
|
+
} from "./chunks/logging-bp1en24r.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_tool2
|
|
11
11
|
} from "./chunks/logging-hdqq71na.js";
|
package/dist/internal/fetch.js
CHANGED
package/dist/internal/host.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5,
|
|
3
3
|
exports_host
|
|
4
|
-
} from "../chunks/logging-
|
|
4
|
+
} from "../chunks/logging-3whcczxy.js";
|
|
5
5
|
import"../chunks/logging-pqb0kjhx.js";
|
|
6
|
-
import"../chunks/logging-
|
|
6
|
+
import"../chunks/logging-v1qmz9qa.js";
|
|
7
7
|
import"../chunks/logging-ya9awdj2.js";
|
|
8
8
|
export {
|
|
9
9
|
exports_host as EmbeddedHost,
|
|
@@ -31,6 +31,10 @@ export declare function make({ config, ...options }: Options): {
|
|
|
31
31
|
readonly events?: {
|
|
32
32
|
readonly persist?: boolean | undefined;
|
|
33
33
|
} | undefined;
|
|
34
|
+
readonly fs?: {
|
|
35
|
+
readonly fff?: boolean | undefined;
|
|
36
|
+
readonly filewatcher?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
34
38
|
readonly port?: number | undefined;
|
|
35
39
|
readonly hostname?: string | undefined;
|
|
36
40
|
readonly cors?: readonly string[] | undefined;
|
|
@@ -43,10 +47,6 @@ export declare function make({ config, ...options }: Options): {
|
|
|
43
47
|
readonly name?: string | undefined;
|
|
44
48
|
readonly channel?: string | undefined;
|
|
45
49
|
} | undefined;
|
|
46
|
-
readonly fs?: {
|
|
47
|
-
readonly fff?: boolean | undefined;
|
|
48
|
-
readonly filewatcher?: boolean | undefined;
|
|
49
|
-
} | undefined;
|
|
50
50
|
readonly simulation?: boolean | undefined;
|
|
51
51
|
readonly database?: {
|
|
52
52
|
readonly path?: string | undefined;
|
package/dist/internal/workerd.js
CHANGED
package/dist/opencode.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./chunks/logging-
|
|
4
|
-
import"./chunks/logging-
|
|
5
|
-
import"./chunks/logging-
|
|
3
|
+
} from "./chunks/logging-bp1en24r.js";
|
|
4
|
+
import"./chunks/logging-rr9xq59c.js";
|
|
5
|
+
import"./chunks/logging-3whcczxy.js";
|
|
6
6
|
import"./chunks/logging-pqb0kjhx.js";
|
|
7
|
-
import"./chunks/logging-
|
|
7
|
+
import"./chunks/logging-v1qmz9qa.js";
|
|
8
8
|
import"./chunks/logging-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
10
|
create3 as create
|
package/dist/promise.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create4,
|
|
3
3
|
exports_promise
|
|
4
|
-
} from "./chunks/logging-
|
|
5
|
-
import"./chunks/logging-
|
|
4
|
+
} from "./chunks/logging-rr9xq59c.js";
|
|
5
|
+
import"./chunks/logging-3whcczxy.js";
|
|
6
6
|
import"./chunks/logging-pqb0kjhx.js";
|
|
7
|
-
import"./chunks/logging-
|
|
7
|
+
import"./chunks/logging-v1qmz9qa.js";
|
|
8
8
|
import"./chunks/logging-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
package/dist/workerd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunks/logging-
|
|
2
|
+
make3
|
|
3
|
+
} from "./chunks/logging-qtsmxzjm.js";
|
|
4
4
|
import"./chunks/logging-ya9awdj2.js";
|
|
5
|
-
import"./chunks/logging-
|
|
5
|
+
import"./chunks/logging-v1qmz9qa.js";
|
|
6
6
|
import"./chunks/logging-pqb0kjhx.js";
|
|
7
|
-
import"./chunks/logging-
|
|
7
|
+
import"./chunks/logging-3whcczxy.js";
|
|
8
8
|
import {
|
|
9
9
|
create4
|
|
10
|
-
} from "./chunks/logging-
|
|
10
|
+
} from "./chunks/logging-rr9xq59c.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunks/logging-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 = make3(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-20862",
|
|
4
4
|
"name": "@opencode/sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"verify:package": "bun run script/verify-package.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@opencode/client": "0.0.0-dev-
|
|
44
|
-
"@opencode/core": "0.0.0-dev-
|
|
45
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
46
|
-
"@opencode/schema": "0.0.0-dev-
|
|
47
|
-
"@opencode/server": "0.0.0-dev-
|
|
48
|
-
"@opencode/util": "0.0.0-dev-
|
|
43
|
+
"@opencode/client": "0.0.0-dev-20862",
|
|
44
|
+
"@opencode/core": "0.0.0-dev-20862",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-20862",
|
|
46
|
+
"@opencode/schema": "0.0.0-dev-20862",
|
|
47
|
+
"@opencode/server": "0.0.0-dev-20862",
|
|
48
|
+
"@opencode/util": "0.0.0-dev-20862",
|
|
49
49
|
"effect": "4.0.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@opencode/ai": "0.0.0-dev-
|
|
53
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
54
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
52
|
+
"@opencode/ai": "0.0.0-dev-20862",
|
|
53
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-20862",
|
|
54
|
+
"@opencode/protocol": "0.0.0-dev-20862",
|
|
55
55
|
"@tsconfig/bun": "1.0.9",
|
|
56
56
|
"@types/bun": "1.4.0",
|
|
57
57
|
"@typescript/native-preview": "7.0.0-dev.20251207.1"
|