@opencode/sdk 0.0.0-dev-20279 → 0.0.0-dev-20282
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-39225h8g.js → promise-39225h8g.js} +1 -1
- package/dist/chunks/{tool-0e5r93hw.js → promise-4kd74nq0.js} +2 -2
- package/dist/chunks/{tool-ttb5t6ba.js → promise-b7zxpz0f.js} +2 -2
- package/dist/chunks/{tool-xjkw3602.js → promise-hdqq71na.js} +2 -2
- package/dist/chunks/{tool-kkqmfsvg.js → promise-jgjq1avx.js} +2 -2
- package/dist/chunks/{tool-pqb0kjhx.js → promise-m53bc19j.js} +5 -5
- package/dist/chunks/{tool-jw22y9b0.js → promise-n1hprnh9.js} +2 -2
- package/dist/chunks/{tool-89hnd1wk.js → promise-nmke4nxb.js} +6 -6
- package/dist/chunks/{tool-ya9awdj2.js → promise-vvs370xz.js} +2 -2
- package/dist/chunks/{tool-wyq33nd6.js → promise-wyq33nd6.js} +1 -1
- package/dist/contracts.js +1 -1
- package/dist/effect/index.js +9 -9
- package/dist/effect/opencode.js +5 -5
- package/dist/effect/tool.js +5 -5
- package/dist/effect/workerd.js +7 -7
- package/dist/index.js +10 -10
- package/dist/internal/fetch.js +1 -1
- package/dist/internal/host.js +4 -4
- package/dist/internal/instances.js +3 -3
- package/dist/internal/workerd.js +1 -1
- package/dist/logging.js +3 -3
- package/dist/opencode.js +6 -6
- package/dist/promise.js +5 -5
- package/dist/tool.js +5 -5
- package/dist/workerd.js +7 -7
- package/package.json +10 -10
- /package/dist/chunks/{tool-9rqn6x4v.js → promise-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{tool-j1jhtwv7.js → promise-j1jhtwv7.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./promise-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/instances.ts
|
|
6
6
|
var exports_instances = {};
|
|
7
7
|
__export(exports_instances, {
|
|
8
8
|
SdkInstances: () => exports_instances,
|
|
9
|
-
layer: () =>
|
|
9
|
+
layer: () => layer4,
|
|
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: layer4(options, replacements),
|
|
29
29
|
deps: [LocationServiceMap.node]
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function layer4(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 layer3(options, replacements) {
|
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export { provide2, node2,
|
|
62
|
+
export { provide2, node2, layer4, exports_instances };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
layer3,
|
|
3
3
|
context2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./promise-vvs370xz.js";
|
|
5
5
|
import {
|
|
6
6
|
make3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./promise-wyq33nd6.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./promise-m53bc19j.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./promise-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/internal/host.ts
|
|
17
17
|
var exports_host = {};
|
|
@@ -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(layer3(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);
|
|
@@ -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 layer3(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 { layer3, context2 };
|
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/promise-vvs370xz.js";
|
|
2
|
+
import"../chunks/promise-wyq33nd6.js";
|
|
3
|
+
import"../chunks/promise-m53bc19j.js";
|
|
4
|
+
import"../chunks/promise-nmke4nxb.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_opencode
|
|
7
|
-
} from "../chunks/
|
|
7
|
+
} from "../chunks/promise-jgjq1avx.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../chunks/
|
|
9
|
+
exports_tool
|
|
10
|
+
} from "../chunks/promise-n1hprnh9.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/promise-j1jhtwv7.js";
|
|
40
40
|
|
|
41
41
|
// src/effect/index.ts
|
|
42
42
|
import { ClientError } from "@opencode/client/effect";
|
|
@@ -67,7 +67,7 @@ export {
|
|
|
67
67
|
SessionInbox2 as SessionInbox,
|
|
68
68
|
SessionMessage2 as SessionMessage,
|
|
69
69
|
Skill2 as Skill,
|
|
70
|
-
|
|
70
|
+
exports_tool as Tool,
|
|
71
71
|
WebSearch2 as WebSearch,
|
|
72
72
|
Workspace2 as Workspace,
|
|
73
73
|
Worktree2 as Worktree
|
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/promise-jgjq1avx.js";
|
|
7
|
+
import"../chunks/promise-nmke4nxb.js";
|
|
8
|
+
import"../chunks/promise-wyq33nd6.js";
|
|
9
|
+
import"../chunks/promise-vvs370xz.js";
|
|
10
|
+
import"../chunks/promise-m53bc19j.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_opencode as OpenCode,
|
|
13
13
|
Service2 as Service,
|
package/dist/effect/tool.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/
|
|
2
|
+
RegistrationError2,
|
|
3
|
+
Error2
|
|
4
|
+
} from "../chunks/promise-n1hprnh9.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error2 as Error,
|
|
7
|
+
RegistrationError2 as RegistrationError
|
|
8
8
|
};
|
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/promise-39225h8g.js";
|
|
4
|
+
import"../chunks/promise-vvs370xz.js";
|
|
5
|
+
import"../chunks/promise-wyq33nd6.js";
|
|
6
|
+
import"../chunks/promise-m53bc19j.js";
|
|
7
|
+
import"../chunks/promise-nmke4nxb.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/promise-jgjq1avx.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "../chunks/
|
|
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/
|
|
2
|
-
import"./chunks/
|
|
3
|
-
import"./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/promise-vvs370xz.js";
|
|
2
|
+
import"./chunks/promise-wyq33nd6.js";
|
|
3
|
+
import"./chunks/promise-m53bc19j.js";
|
|
4
|
+
import"./chunks/promise-nmke4nxb.js";
|
|
5
|
+
import"./chunks/promise-4kd74nq0.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_opencode2
|
|
8
|
-
} from "./chunks/
|
|
8
|
+
} from "./chunks/promise-b7zxpz0f.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunks/
|
|
10
|
+
exports_tool2
|
|
11
|
+
} from "./chunks/promise-hdqq71na.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/promise-j1jhtwv7.js";
|
|
41
41
|
|
|
42
42
|
// src/index.ts
|
|
43
43
|
import { ClientError } from "@opencode/client";
|
|
@@ -68,7 +68,7 @@ export {
|
|
|
68
68
|
SessionInbox2 as SessionInbox,
|
|
69
69
|
SessionMessage2 as SessionMessage,
|
|
70
70
|
Skill2 as Skill,
|
|
71
|
-
|
|
71
|
+
exports_tool2 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,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/promise-nmke4nxb.js";
|
|
5
|
+
import"../chunks/promise-wyq33nd6.js";
|
|
6
|
+
import"../chunks/promise-vvs370xz.js";
|
|
7
|
+
import"../chunks/promise-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
|
+
layer4,
|
|
5
5
|
exports_instances
|
|
6
|
-
} from "../chunks/
|
|
6
|
+
} from "../chunks/promise-m53bc19j.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_instances as SdkInstances,
|
|
9
|
-
|
|
9
|
+
layer4 as layer,
|
|
10
10
|
node2 as node,
|
|
11
11
|
provide2 as provide
|
|
12
12
|
};
|
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/promise-b7zxpz0f.js";
|
|
4
|
+
import"./chunks/promise-4kd74nq0.js";
|
|
5
|
+
import"./chunks/promise-nmke4nxb.js";
|
|
6
|
+
import"./chunks/promise-wyq33nd6.js";
|
|
7
|
+
import"./chunks/promise-vvs370xz.js";
|
|
8
|
+
import"./chunks/promise-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/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/promise-4kd74nq0.js";
|
|
5
|
+
import"./chunks/promise-nmke4nxb.js";
|
|
6
|
+
import"./chunks/promise-wyq33nd6.js";
|
|
7
|
+
import"./chunks/promise-vvs370xz.js";
|
|
8
|
+
import"./chunks/promise-m53bc19j.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
|
11
11
|
create4 as create
|
package/dist/tool.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunks/
|
|
2
|
+
RegistrationError3,
|
|
3
|
+
Error3
|
|
4
|
+
} from "./chunks/promise-hdqq71na.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error3 as Error,
|
|
7
|
+
RegistrationError3 as RegistrationError
|
|
8
8
|
};
|
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/promise-39225h8g.js";
|
|
4
|
+
import"./chunks/promise-vvs370xz.js";
|
|
5
|
+
import"./chunks/promise-wyq33nd6.js";
|
|
6
|
+
import"./chunks/promise-m53bc19j.js";
|
|
7
|
+
import"./chunks/promise-nmke4nxb.js";
|
|
8
8
|
import {
|
|
9
9
|
create4
|
|
10
|
-
} from "./chunks/
|
|
10
|
+
} from "./chunks/promise-4kd74nq0.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./chunks/
|
|
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": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20282",
|
|
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-20282",
|
|
44
|
+
"@opencode/core": "0.0.0-dev-20282",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-20282",
|
|
46
|
+
"@opencode/schema": "0.0.0-dev-20282",
|
|
47
|
+
"@opencode/server": "0.0.0-dev-20282",
|
|
48
|
+
"@opencode/util": "0.0.0-dev-20282",
|
|
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-20282",
|
|
53
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-20282",
|
|
54
|
+
"@opencode/protocol": "0.0.0-dev-20282",
|
|
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"
|
|
File without changes
|
|
File without changes
|