@opencode/sdk 0.0.0-dev-19984 → 0.0.0-dev-19986
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/{index-nmke4nxb.js → index-b54z5jwe.js} +4 -4
- package/dist/chunks/{index-b7zxpz0f.js → index-j34yx374.js} +1 -1
- package/dist/chunks/{index-4kd74nq0.js → index-kp70gr0x.js} +1 -1
- package/dist/chunks/{index-m53bc19j.js → index-pqb0kjhx.js} +4 -4
- package/dist/chunks/{index-jgjq1avx.js → index-xcejgzf0.js} +1 -1
- package/dist/chunks/{index-vvs370xz.js → index-ya9awdj2.js} +2 -2
- package/dist/effect/index.js +4 -4
- package/dist/effect/opencode.js +4 -4
- package/dist/effect/workerd.js +4 -4
- package/dist/index.js +5 -5
- package/dist/internal/host.js +3 -3
- package/dist/internal/instances.js +3 -3
- package/dist/logging.js +3 -3
- package/dist/opencode.js +5 -5
- package/dist/promise.js +4 -4
- package/dist/workerd.js +4 -4
- package/package.json +10 -10
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
layer4,
|
|
3
3
|
context2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ya9awdj2.js";
|
|
5
5
|
import {
|
|
6
6
|
make3
|
|
7
7
|
} from "./index-wyq33nd6.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-pqb0kjhx.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./index-9rqn6x4v.js";
|
|
@@ -34,7 +34,7 @@ var create5 = Effect.fn("EmbeddedHost.create")(function* (options = {}, embed =
|
|
|
34
34
|
...server,
|
|
35
35
|
app: { ...server.app, name: server.app?.name ?? "sdk" },
|
|
36
36
|
database: { path: ":memory:", ...server.database }
|
|
37
|
-
}, workspaceProviders ? [...embed.overrides ?? [], WorkspaceDriver.node.replace(WorkspaceDriver.registryNode(workspaceProviders))] : embed.overrides, selector ? (replacements) => node2(selector, replacements) : undefined).pipe(Layer.provide(HttpServer.layerServices), Layer.provideMerge(
|
|
37
|
+
}, workspaceProviders ? [...embed.overrides ?? [], WorkspaceDriver.node.replace(WorkspaceDriver.registryNode(workspaceProviders))] : embed.overrides, selector ? (replacements) => node2(selector, replacements) : undefined).pipe(Layer.provide(HttpServer.layerServices), Layer.provideMerge(layer4(log))));
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
const services = yield* runtime.contextEffect;
|
|
40
40
|
runtime.runFork(Context.get(services, SessionRestart.Service).resumeSuspendedSessions);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_instances = {};
|
|
7
7
|
__export(exports_instances, {
|
|
8
8
|
SdkInstances: () => exports_instances,
|
|
9
|
-
layer: () =>
|
|
9
|
+
layer: () => layer3,
|
|
10
10
|
node: () => node2,
|
|
11
11
|
provide: () => provide2
|
|
12
12
|
});
|
|
@@ -25,11 +25,11 @@ function provide2(options, context) {
|
|
|
25
25
|
function node2(options, replacements) {
|
|
26
26
|
return makeGlobalNode({
|
|
27
27
|
service: Instance.Service,
|
|
28
|
-
layer:
|
|
28
|
+
layer: layer3(options, replacements),
|
|
29
29
|
deps: [LocationServiceMap.node]
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function layer3(options, replacements) {
|
|
33
33
|
return Layer.effect(Instance.Service, Effect.gen(function* () {
|
|
34
34
|
const scope = yield* Effect.scope;
|
|
35
35
|
const locations = yield* LocationServiceMap.Service;
|
|
@@ -59,4 +59,4 @@ function layer4(options, replacements) {
|
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export { provide2, node2,
|
|
62
|
+
export { provide2, node2, layer3, exports_instances };
|
|
@@ -19,7 +19,7 @@ var levelNames = new Map([
|
|
|
19
19
|
function normalizeLevel(level) {
|
|
20
20
|
return levelNames.get(level);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function layer4(log) {
|
|
23
23
|
const logger = Logger.make((options) => {
|
|
24
24
|
if (!log)
|
|
25
25
|
return;
|
|
@@ -52,4 +52,4 @@ function context2(source) {
|
|
|
52
52
|
return Context.make(Logger.CurrentLoggers, Context.get(source, Logger.CurrentLoggers)).pipe(Context.add(References.MinimumLogLevel, Context.get(source, References.MinimumLogLevel)));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { layer4, context2 };
|
package/dist/effect/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"../chunks/index-
|
|
1
|
+
import"../chunks/index-ya9awdj2.js";
|
|
2
2
|
import"../chunks/index-wyq33nd6.js";
|
|
3
|
-
import"../chunks/index-
|
|
4
|
-
import"../chunks/index-
|
|
3
|
+
import"../chunks/index-pqb0kjhx.js";
|
|
4
|
+
import"../chunks/index-b54z5jwe.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_opencode
|
|
7
|
-
} from "../chunks/index-
|
|
7
|
+
} from "../chunks/index-xcejgzf0.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_tool
|
|
10
10
|
} from "../chunks/index-n1hprnh9.js";
|
package/dist/effect/opencode.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
5
|
exports_opencode
|
|
6
|
-
} from "../chunks/index-
|
|
7
|
-
import"../chunks/index-
|
|
6
|
+
} from "../chunks/index-xcejgzf0.js";
|
|
7
|
+
import"../chunks/index-b54z5jwe.js";
|
|
8
|
+
import"../chunks/index-pqb0kjhx.js";
|
|
9
|
+
import"../chunks/index-ya9awdj2.js";
|
|
8
10
|
import"../chunks/index-wyq33nd6.js";
|
|
9
|
-
import"../chunks/index-vvs370xz.js";
|
|
10
|
-
import"../chunks/index-m53bc19j.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_opencode as OpenCode,
|
|
13
13
|
Service2 as Service,
|
package/dist/effect/workerd.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2
|
|
3
3
|
} from "../chunks/index-39225h8g.js";
|
|
4
|
-
import"../chunks/index-
|
|
4
|
+
import"../chunks/index-ya9awdj2.js";
|
|
5
5
|
import"../chunks/index-wyq33nd6.js";
|
|
6
|
-
import"../chunks/index-
|
|
7
|
-
import"../chunks/index-
|
|
6
|
+
import"../chunks/index-pqb0kjhx.js";
|
|
7
|
+
import"../chunks/index-b54z5jwe.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/index-
|
|
11
|
+
} from "../chunks/index-xcejgzf0.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "../chunks/index-9rqn6x4v.js";
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"./chunks/index-
|
|
1
|
+
import"./chunks/index-ya9awdj2.js";
|
|
2
2
|
import"./chunks/index-wyq33nd6.js";
|
|
3
|
-
import"./chunks/index-
|
|
4
|
-
import"./chunks/index-
|
|
5
|
-
import"./chunks/index-
|
|
3
|
+
import"./chunks/index-pqb0kjhx.js";
|
|
4
|
+
import"./chunks/index-b54z5jwe.js";
|
|
5
|
+
import"./chunks/index-kp70gr0x.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_opencode2
|
|
8
|
-
} from "./chunks/index-
|
|
8
|
+
} from "./chunks/index-j34yx374.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_tool2
|
|
11
11
|
} from "./chunks/index-hdqq71na.js";
|
package/dist/internal/host.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5,
|
|
3
3
|
exports_host
|
|
4
|
-
} from "../chunks/index-
|
|
4
|
+
} from "../chunks/index-b54z5jwe.js";
|
|
5
|
+
import"../chunks/index-pqb0kjhx.js";
|
|
6
|
+
import"../chunks/index-ya9awdj2.js";
|
|
5
7
|
import"../chunks/index-wyq33nd6.js";
|
|
6
|
-
import"../chunks/index-vvs370xz.js";
|
|
7
|
-
import"../chunks/index-m53bc19j.js";
|
|
8
8
|
export {
|
|
9
9
|
exports_host as EmbeddedHost,
|
|
10
10
|
create5 as create
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provide2,
|
|
3
3
|
node2,
|
|
4
|
-
|
|
4
|
+
layer3,
|
|
5
5
|
exports_instances
|
|
6
|
-
} from "../chunks/index-
|
|
6
|
+
} from "../chunks/index-pqb0kjhx.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_instances as SdkInstances,
|
|
9
|
-
|
|
9
|
+
layer3 as layer,
|
|
10
10
|
node2 as node,
|
|
11
11
|
provide2 as provide
|
|
12
12
|
};
|
package/dist/logging.js
CHANGED
package/dist/opencode.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./chunks/index-
|
|
4
|
-
import"./chunks/index-
|
|
5
|
-
import"./chunks/index-
|
|
3
|
+
} from "./chunks/index-j34yx374.js";
|
|
4
|
+
import"./chunks/index-kp70gr0x.js";
|
|
5
|
+
import"./chunks/index-b54z5jwe.js";
|
|
6
|
+
import"./chunks/index-pqb0kjhx.js";
|
|
7
|
+
import"./chunks/index-ya9awdj2.js";
|
|
6
8
|
import"./chunks/index-wyq33nd6.js";
|
|
7
|
-
import"./chunks/index-vvs370xz.js";
|
|
8
|
-
import"./chunks/index-m53bc19j.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/index-
|
|
5
|
-
import"./chunks/index-
|
|
4
|
+
} from "./chunks/index-kp70gr0x.js";
|
|
5
|
+
import"./chunks/index-b54z5jwe.js";
|
|
6
|
+
import"./chunks/index-pqb0kjhx.js";
|
|
7
|
+
import"./chunks/index-ya9awdj2.js";
|
|
6
8
|
import"./chunks/index-wyq33nd6.js";
|
|
7
|
-
import"./chunks/index-vvs370xz.js";
|
|
8
|
-
import"./chunks/index-m53bc19j.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
|
11
11
|
create4 as create
|
package/dist/workerd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2
|
|
3
3
|
} from "./chunks/index-39225h8g.js";
|
|
4
|
-
import"./chunks/index-
|
|
4
|
+
import"./chunks/index-ya9awdj2.js";
|
|
5
5
|
import"./chunks/index-wyq33nd6.js";
|
|
6
|
-
import"./chunks/index-
|
|
7
|
-
import"./chunks/index-
|
|
6
|
+
import"./chunks/index-pqb0kjhx.js";
|
|
7
|
+
import"./chunks/index-b54z5jwe.js";
|
|
8
8
|
import {
|
|
9
9
|
create4
|
|
10
|
-
} from "./chunks/index-
|
|
10
|
+
} from "./chunks/index-kp70gr0x.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunks/index-9rqn6x4v.js";
|
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-19986",
|
|
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-19986",
|
|
44
|
+
"@opencode/core": "0.0.0-dev-19986",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-19986",
|
|
46
|
+
"@opencode/schema": "0.0.0-dev-19986",
|
|
47
|
+
"@opencode/server": "0.0.0-dev-19986",
|
|
48
|
+
"@opencode/util": "0.0.0-dev-19986",
|
|
49
49
|
"effect": "4.0.0-rc.112"
|
|
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-19986",
|
|
53
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-19986",
|
|
54
|
+
"@opencode/protocol": "0.0.0-dev-19986",
|
|
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"
|