@opencode/sdk 0.0.0-dev-21920 → 0.0.0-dev-44
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-5k7t7h61.js → tool-40qeyy08.js} +4 -4
- package/dist/chunks/{tool-t7drb6e9.js → tool-687gv1e4.js} +2 -2
- package/dist/chunks/{tool-w2gdjw28.js → tool-6j908x8e.js} +1 -1
- package/dist/chunks/{tool-bsewwzym.js → tool-cw3py35h.js} +1 -1
- package/dist/chunks/{tool-xjs69bha.js → tool-fsqexb9p.js} +1 -1
- package/dist/chunks/{tool-9makpp9m.js → tool-q75n1wja.js} +4 -4
- package/dist/chunks/{tool-ama421zy.js → tool-v20ebq3t.js} +1 -1
- package/dist/chunks/{tool-heqzazck.js → tool-xk8fc419.js} +1 -1
- package/dist/effect/index.js +7 -7
- package/dist/effect/opencode.js +4 -4
- package/dist/effect/tool.js +5 -5
- package/dist/effect/workerd.js +4 -4
- package/dist/index.js +8 -8
- package/dist/internal/host.js +3 -3
- package/dist/internal/instances.js +3 -3
- package/dist/internal/workerd.d.ts +1 -0
- package/dist/logging.js +3 -3
- package/dist/opencode.js +5 -5
- package/dist/promise.js +4 -4
- package/dist/tool.js +5 -5
- package/dist/workerd.js +4 -4
- package/package.json +11 -10
|
@@ -6,7 +6,7 @@ import {
|
|
|
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
|
});
|
|
@@ -24,11 +24,11 @@ function provide2(options, context) {
|
|
|
24
24
|
function node2(options, replacements) {
|
|
25
25
|
return makeGlobalNode({
|
|
26
26
|
service: Instance.Service,
|
|
27
|
-
layer:
|
|
27
|
+
layer: layer4(options, replacements),
|
|
28
28
|
deps: [LocationServiceMap.node]
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function layer4(options, replacements) {
|
|
32
32
|
return Layer.effect(Instance.Service, Effect.gen(function* () {
|
|
33
33
|
const scope = yield* Effect.scope;
|
|
34
34
|
const locations = yield* LocationServiceMap.Service;
|
|
@@ -58,4 +58,4 @@ function layer3(options, replacements) {
|
|
|
58
58
|
}));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export { provide2, node2,
|
|
61
|
+
export { provide2, node2, layer4, exports_instances };
|
|
@@ -16,7 +16,7 @@ var levelNames = new Map([
|
|
|
16
16
|
[levels.error, "error"],
|
|
17
17
|
[levels.fatal, "fatal"]
|
|
18
18
|
]);
|
|
19
|
-
function
|
|
19
|
+
function layer3(log) {
|
|
20
20
|
const logger = Logger.make((options) => {
|
|
21
21
|
if (!log)
|
|
22
22
|
return;
|
|
@@ -49,4 +49,4 @@ function context2(source) {
|
|
|
49
49
|
return Context.make(Logger.CurrentLoggers, Context.get(source, Logger.CurrentLoggers)).pipe(Context.add(References.MinimumLogLevel, Context.get(source, References.MinimumLogLevel)));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export {
|
|
52
|
+
export { layer3, context2 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
layer3,
|
|
3
3
|
context2
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-687gv1e4.js";
|
|
5
5
|
import {
|
|
6
6
|
make3
|
|
7
7
|
} from "./tool-f8tdk121.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
11
|
-
} from "./tool-
|
|
11
|
+
} from "./tool-40qeyy08.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./tool-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(layer3(log))));
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
const services = yield* runtime.contextEffect;
|
|
40
40
|
const sdkPlugins = Context.get(services, SdkPlugins.Service);
|
package/dist/effect/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import"../chunks/tool-
|
|
1
|
+
import"../chunks/tool-687gv1e4.js";
|
|
2
2
|
import"../chunks/tool-f8tdk121.js";
|
|
3
|
-
import"../chunks/tool-
|
|
4
|
-
import"../chunks/tool-
|
|
3
|
+
import"../chunks/tool-40qeyy08.js";
|
|
4
|
+
import"../chunks/tool-q75n1wja.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_opencode
|
|
7
|
-
} from "../chunks/tool-
|
|
7
|
+
} from "../chunks/tool-fsqexb9p.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "../chunks/tool-
|
|
9
|
+
exports_tool
|
|
10
|
+
} from "../chunks/tool-v20ebq3t.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_tool as Tool,
|
|
76
76
|
WebSearch2 as WebSearch,
|
|
77
77
|
Workspace2 as Workspace,
|
|
78
78
|
WorkspaceDriver,
|
package/dist/effect/opencode.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
5
|
exports_opencode
|
|
6
|
-
} from "../chunks/tool-
|
|
7
|
-
import"../chunks/tool-
|
|
6
|
+
} from "../chunks/tool-fsqexb9p.js";
|
|
7
|
+
import"../chunks/tool-q75n1wja.js";
|
|
8
8
|
import"../chunks/tool-f8tdk121.js";
|
|
9
|
-
import"../chunks/tool-
|
|
10
|
-
import"../chunks/tool-
|
|
9
|
+
import"../chunks/tool-687gv1e4.js";
|
|
10
|
+
import"../chunks/tool-40qeyy08.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/tool-
|
|
2
|
+
RegistrationError2,
|
|
3
|
+
Error2
|
|
4
|
+
} from "../chunks/tool-v20ebq3t.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error2 as Error,
|
|
7
|
+
RegistrationError2 as RegistrationError
|
|
8
8
|
};
|
package/dist/effect/workerd.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2
|
|
3
3
|
} from "../chunks/tool-v4tj0tsx.js";
|
|
4
|
-
import"../chunks/tool-
|
|
4
|
+
import"../chunks/tool-687gv1e4.js";
|
|
5
5
|
import"../chunks/tool-f8tdk121.js";
|
|
6
|
-
import"../chunks/tool-
|
|
7
|
-
import"../chunks/tool-
|
|
6
|
+
import"../chunks/tool-40qeyy08.js";
|
|
7
|
+
import"../chunks/tool-q75n1wja.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/tool-
|
|
11
|
+
} from "../chunks/tool-fsqexb9p.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "../chunks/tool-9rqn6x4v.js";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import"./chunks/tool-
|
|
1
|
+
import"./chunks/tool-687gv1e4.js";
|
|
2
2
|
import"./chunks/tool-f8tdk121.js";
|
|
3
|
-
import"./chunks/tool-
|
|
4
|
-
import"./chunks/tool-
|
|
5
|
-
import"./chunks/tool-
|
|
3
|
+
import"./chunks/tool-40qeyy08.js";
|
|
4
|
+
import"./chunks/tool-q75n1wja.js";
|
|
5
|
+
import"./chunks/tool-cw3py35h.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_opencode2
|
|
8
|
-
} from "./chunks/tool-
|
|
8
|
+
} from "./chunks/tool-6j908x8e.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunks/tool-
|
|
10
|
+
exports_tool2
|
|
11
|
+
} from "./chunks/tool-xk8fc419.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_tool2 as Tool,
|
|
72
72
|
WebSearch2 as WebSearch,
|
|
73
73
|
Workspace2 as Workspace,
|
|
74
74
|
Worktree2 as Worktree
|
package/dist/internal/host.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5,
|
|
3
3
|
exports_host
|
|
4
|
-
} from "../chunks/tool-
|
|
4
|
+
} from "../chunks/tool-q75n1wja.js";
|
|
5
5
|
import"../chunks/tool-f8tdk121.js";
|
|
6
|
-
import"../chunks/tool-
|
|
7
|
-
import"../chunks/tool-
|
|
6
|
+
import"../chunks/tool-687gv1e4.js";
|
|
7
|
+
import"../chunks/tool-40qeyy08.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/tool-
|
|
6
|
+
} from "../chunks/tool-40qeyy08.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
|
};
|
|
@@ -15,6 +15,7 @@ export declare function make({ config, ...options }: Options): {
|
|
|
15
15
|
readonly hostname?: string | undefined;
|
|
16
16
|
readonly port?: number | undefined;
|
|
17
17
|
readonly password?: string | undefined;
|
|
18
|
+
readonly username?: string | undefined;
|
|
18
19
|
readonly cors?: readonly string[] | undefined;
|
|
19
20
|
readonly simulation?: boolean | undefined;
|
|
20
21
|
readonly database?: {
|
package/dist/logging.js
CHANGED
package/dist/opencode.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./chunks/tool-
|
|
4
|
-
import"./chunks/tool-
|
|
5
|
-
import"./chunks/tool-
|
|
3
|
+
} from "./chunks/tool-6j908x8e.js";
|
|
4
|
+
import"./chunks/tool-cw3py35h.js";
|
|
5
|
+
import"./chunks/tool-q75n1wja.js";
|
|
6
6
|
import"./chunks/tool-f8tdk121.js";
|
|
7
|
-
import"./chunks/tool-
|
|
8
|
-
import"./chunks/tool-
|
|
7
|
+
import"./chunks/tool-687gv1e4.js";
|
|
8
|
+
import"./chunks/tool-40qeyy08.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/tool-
|
|
5
|
-
import"./chunks/tool-
|
|
4
|
+
} from "./chunks/tool-cw3py35h.js";
|
|
5
|
+
import"./chunks/tool-q75n1wja.js";
|
|
6
6
|
import"./chunks/tool-f8tdk121.js";
|
|
7
|
-
import"./chunks/tool-
|
|
8
|
-
import"./chunks/tool-
|
|
7
|
+
import"./chunks/tool-687gv1e4.js";
|
|
8
|
+
import"./chunks/tool-40qeyy08.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/tool-
|
|
2
|
+
RegistrationError3,
|
|
3
|
+
Error3
|
|
4
|
+
} from "./chunks/tool-xk8fc419.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error3 as Error,
|
|
7
|
+
RegistrationError3 as RegistrationError
|
|
8
8
|
};
|
package/dist/workerd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2
|
|
3
3
|
} from "./chunks/tool-v4tj0tsx.js";
|
|
4
|
-
import"./chunks/tool-
|
|
4
|
+
import"./chunks/tool-687gv1e4.js";
|
|
5
5
|
import"./chunks/tool-f8tdk121.js";
|
|
6
|
-
import"./chunks/tool-
|
|
7
|
-
import"./chunks/tool-
|
|
6
|
+
import"./chunks/tool-40qeyy08.js";
|
|
7
|
+
import"./chunks/tool-q75n1wja.js";
|
|
8
8
|
import {
|
|
9
9
|
create4
|
|
10
|
-
} from "./chunks/tool-
|
|
10
|
+
} from "./chunks/tool-cw3py35h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunks/tool-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-44",
|
|
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": "0.0.0-dev-
|
|
45
|
-
"@opencode/core": "0.0.0-dev-
|
|
46
|
-
"@opencode/plugin": "0.0.0-dev-
|
|
47
|
-
"@opencode/schema": "0.0.0-dev-
|
|
48
|
-
"@opencode/server": "0.0.0-dev-
|
|
49
|
-
"@opencode/util": "0.0.0-dev-
|
|
45
|
+
"@opencode/client": "0.0.0-dev-44",
|
|
46
|
+
"@opencode/core": "0.0.0-dev-44",
|
|
47
|
+
"@opencode/plugin": "0.0.0-dev-44",
|
|
48
|
+
"@opencode/schema": "0.0.0-dev-44",
|
|
49
|
+
"@opencode/server": "0.0.0-dev-44",
|
|
50
|
+
"@opencode/util": "0.0.0-dev-44",
|
|
50
51
|
"effect": "4.0.1"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@opencode/ai": "0.0.0-dev-
|
|
54
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
55
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
54
|
+
"@opencode/ai": "0.0.0-dev-44",
|
|
55
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-44",
|
|
56
|
+
"@opencode/protocol": "0.0.0-dev-44",
|
|
56
57
|
"@tsconfig/bun": "1.0.9",
|
|
57
58
|
"@types/bun": "1.4.3",
|
|
58
59
|
"@typescript/native": "npm:typescript@7.1.0-beta"
|