@opencode/sdk 0.0.0-dev-21631 → 0.0.0-dev-21647
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-52ftzhtt.js → opencode-0sxr5yjg.js} +6 -7
- package/dist/chunks/{logging-ya9awdj2.js → opencode-687gv1e4.js} +4 -7
- package/dist/chunks/{logging-8h2xheyg.js → opencode-a933adv4.js} +5 -5
- package/dist/chunks/{logging-f8tdk121.js → opencode-f8tdk121.js} +1 -1
- package/dist/chunks/{logging-v5zdzyqy.js → opencode-h1scw2s3.js} +6 -6
- package/dist/chunks/{logging-36440cmr.js → opencode-hn1x6ctc.js} +9 -9
- package/dist/chunks/opencode-r45txp59.js +15 -0
- package/dist/chunks/{logging-v20ebq3t.js → opencode-v20ebq3t.js} +1 -1
- package/dist/chunks/{logging-v4tj0tsx.js → opencode-v4tj0tsx.js} +1 -1
- package/dist/chunks/{logging-xk8fc419.js → opencode-xk8fc419.js} +1 -1
- package/dist/contracts.js +1 -1
- package/dist/effect/index.js +9 -9
- package/dist/effect/opencode.js +9 -9
- package/dist/effect/tool.js +1 -1
- package/dist/effect/workerd.js +9 -9
- package/dist/index.js +10 -10
- package/dist/internal/fetch.js +1 -1
- package/dist/internal/host.d.ts +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 +8 -8
- package/dist/promise.js +7 -7
- package/dist/tool.js +1 -1
- package/dist/workerd.js +9 -9
- package/package.json +10 -10
- package/dist/chunks/logging-yyca385k.js +0 -15
- /package/dist/chunks/{logging-9rqn6x4v.js → opencode-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{logging-j1jhtwv7.js → opencode-j1jhtwv7.js} +0 -0
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./opencode-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
|
});
|
|
13
13
|
import { Instance } from "@opencode/core/instance";
|
|
14
14
|
import { LocationServiceMap } from "@opencode/core/location-service-map";
|
|
15
15
|
import { Plugin } from "@opencode/core/plugin";
|
|
16
|
-
import { Location } from "@opencode/schema/location";
|
|
17
16
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
17
|
import { Context, Duration, Effect, Layer, LayerMap } from "effect";
|
|
19
18
|
function provide2(options, context) {
|
|
@@ -25,11 +24,11 @@ function provide2(options, context) {
|
|
|
25
24
|
function node2(options, replacements) {
|
|
26
25
|
return makeGlobalNode({
|
|
27
26
|
service: Instance.Service,
|
|
28
|
-
layer:
|
|
27
|
+
layer: layer4(options, replacements),
|
|
29
28
|
deps: [LocationServiceMap.node]
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
|
-
function
|
|
31
|
+
function layer4(options, replacements) {
|
|
33
32
|
return Layer.effect(Instance.Service, Effect.gen(function* () {
|
|
34
33
|
const scope = yield* Effect.scope;
|
|
35
34
|
const locations = yield* LocationServiceMap.Service;
|
|
@@ -40,7 +39,7 @@ function layer3(options, replacements) {
|
|
|
40
39
|
const provide = (session) => Effect.provide(instances.get(key(session)));
|
|
41
40
|
const instances = yield* LayerMap.make((input) => Layer.unwrap(Effect.gen(function* () {
|
|
42
41
|
const configuration = yield* options.configure(input.key).pipe(Effect.orDie);
|
|
43
|
-
return Instance.layer(
|
|
42
|
+
return Instance.layer(input, {
|
|
44
43
|
plugins: configuration.plugins,
|
|
45
44
|
replacements: [
|
|
46
45
|
...replacements(),
|
|
@@ -59,4 +58,4 @@ function layer3(options, replacements) {
|
|
|
59
58
|
}));
|
|
60
59
|
}
|
|
61
60
|
|
|
62
|
-
export { provide2, node2,
|
|
61
|
+
export { provide2, node2, layer4, exports_instances };
|
|
@@ -16,20 +16,17 @@ var levelNames = new Map([
|
|
|
16
16
|
[levels.error, "error"],
|
|
17
17
|
[levels.fatal, "fatal"]
|
|
18
18
|
]);
|
|
19
|
-
function
|
|
20
|
-
return levelNames.get(level);
|
|
21
|
-
}
|
|
22
|
-
function layer4(log) {
|
|
19
|
+
function layer3(log) {
|
|
23
20
|
const logger = Logger.make((options) => {
|
|
24
21
|
if (!log)
|
|
25
22
|
return;
|
|
26
|
-
const level =
|
|
23
|
+
const level = levelNames.get(options.logLevel);
|
|
27
24
|
if (!level)
|
|
28
25
|
return;
|
|
29
26
|
const entry = Logger.formatStructured.log(options);
|
|
30
27
|
const values = Array.isArray(entry.message) ? entry.message : [entry.message];
|
|
31
28
|
const [message, ...data] = values;
|
|
32
|
-
const details = data.length === 1 && !Array.isArray(data[0]) ? data[0] : undefined;
|
|
29
|
+
const details = data.length === 1 && typeof data[0] === "object" && data[0] !== null && !Array.isArray(data[0]) ? data[0] : undefined;
|
|
33
30
|
const { cause: detailCause, ...detailAttributes } = details ?? {};
|
|
34
31
|
const attributes = {
|
|
35
32
|
...entry.annotations,
|
|
@@ -52,4 +49,4 @@ function context2(source) {
|
|
|
52
49
|
return Context.make(Logger.CurrentLoggers, Context.get(source, Logger.CurrentLoggers)).pipe(Context.add(References.MinimumLogLevel, Context.get(source, References.MinimumLogLevel)));
|
|
53
50
|
}
|
|
54
51
|
|
|
55
|
-
export {
|
|
52
|
+
export { layer3, context2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./opencode-h1scw2s3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./opencode-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise.ts
|
|
9
9
|
var exports_promise = {};
|
|
10
10
|
__export(exports_promise, {
|
|
11
11
|
PromiseSdk: () => exports_promise,
|
|
12
|
-
create: () =>
|
|
12
|
+
create: () => create4
|
|
13
13
|
});
|
|
14
14
|
import { OpenCode } from "@opencode/client";
|
|
15
15
|
import { Session } from "@opencode/schema/session";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
|
-
async function
|
|
17
|
+
async function create4(options = {}, embed = {}) {
|
|
18
18
|
const { plugins, instances, ...hostOptions } = options;
|
|
19
19
|
const host = await Effect.runPromise(create5({
|
|
20
20
|
...hostOptions,
|
|
@@ -49,4 +49,4 @@ async function adaptPlugins(plugins) {
|
|
|
49
49
|
return plugins.map(PluginPromise.fromPromise);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export {
|
|
52
|
+
export { create4, exports_promise };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
layer3,
|
|
3
3
|
context2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./opencode-687gv1e4.js";
|
|
5
5
|
import {
|
|
6
6
|
make3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./opencode-f8tdk121.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./opencode-0sxr5yjg.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./opencode-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
|
const sdkPlugins = Context.get(services, SdkPlugins.Service);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./opencode-h1scw2s3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./opencode-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/opencode.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
OpenCode: () =>
|
|
9
|
+
var exports_opencode = {};
|
|
10
|
+
__export(exports_opencode, {
|
|
11
|
+
OpenCode: () => exports_opencode,
|
|
12
12
|
Service: () => Service2,
|
|
13
|
-
create: () =>
|
|
13
|
+
create: () => create2,
|
|
14
14
|
layer: () => layer2
|
|
15
15
|
});
|
|
16
16
|
import { OpenCode } from "@opencode/client/effect";
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
18
|
import { FetchHttpClient, HttpClient } from "effect/http";
|
|
19
|
-
var
|
|
19
|
+
var create2 = Effect.fn("OpenCode.create")(function* (options = {}, embed = {}) {
|
|
20
20
|
const host = yield* Effect.acquireRelease(create5(options, embed), (host) => Effect.promise(host.close));
|
|
21
21
|
const httpClient = yield* HttpClient.HttpClient.pipe(Effect.provide(FetchHttpClient.layer));
|
|
22
22
|
const client = yield* OpenCode.make({ baseUrl: "http://opencode.local" }).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.transformResponse(httpClient, Effect.provideService(FetchHttpClient.Fetch, host.fetch))));
|
|
@@ -40,6 +40,6 @@ var create4 = Effect.fn("OpenCode.create")(function* (options = {}, embed = {})
|
|
|
40
40
|
|
|
41
41
|
class Service2 extends Context.Service()("@opencode/sdk/OpenCode") {
|
|
42
42
|
}
|
|
43
|
-
var layer2 = (options = {}) => Layer.effect(Service2,
|
|
43
|
+
var layer2 = (options = {}) => Layer.effect(Service2, create2(options));
|
|
44
44
|
|
|
45
|
-
export {
|
|
45
|
+
export { create2, Service2, layer2, exports_opencode };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
create4
|
|
3
|
+
} from "./opencode-a933adv4.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./opencode-9rqn6x4v.js";
|
|
7
|
+
|
|
8
|
+
// src/opencode.ts
|
|
9
|
+
var exports_opencode2 = {};
|
|
10
|
+
__export(exports_opencode2, {
|
|
11
|
+
create: () => create3
|
|
12
|
+
});
|
|
13
|
+
var create3 = (options = {}) => create4(options);
|
|
14
|
+
|
|
15
|
+
export { create3, exports_opencode2 };
|
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/opencode-687gv1e4.js";
|
|
2
|
+
import"../chunks/opencode-f8tdk121.js";
|
|
3
|
+
import"../chunks/opencode-0sxr5yjg.js";
|
|
4
|
+
import"../chunks/opencode-h1scw2s3.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../chunks/
|
|
6
|
+
exports_opencode
|
|
7
|
+
} from "../chunks/opencode-hn1x6ctc.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_tool
|
|
10
|
-
} from "../chunks/
|
|
10
|
+
} from "../chunks/opencode-v20ebq3t.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/opencode-j1jhtwv7.js";
|
|
40
40
|
|
|
41
41
|
// src/effect/index.ts
|
|
42
42
|
import { EnvironmentDriver } from "@opencode/core/environment/driver";
|
|
@@ -57,7 +57,7 @@ export {
|
|
|
57
57
|
Integration2 as Integration,
|
|
58
58
|
Location2 as Location,
|
|
59
59
|
Model2 as Model,
|
|
60
|
-
|
|
60
|
+
exports_opencode as OpenCode,
|
|
61
61
|
Permission2 as Permission,
|
|
62
62
|
PermissionSaved2 as PermissionSaved,
|
|
63
63
|
Project2 as Project,
|
package/dist/effect/opencode.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
create2,
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
|
-
|
|
6
|
-
} from "../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
5
|
+
exports_opencode
|
|
6
|
+
} from "../chunks/opencode-hn1x6ctc.js";
|
|
7
|
+
import"../chunks/opencode-h1scw2s3.js";
|
|
8
|
+
import"../chunks/opencode-f8tdk121.js";
|
|
9
|
+
import"../chunks/opencode-687gv1e4.js";
|
|
10
|
+
import"../chunks/opencode-0sxr5yjg.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
exports_opencode as OpenCode,
|
|
13
13
|
Service2 as Service,
|
|
14
|
-
|
|
14
|
+
create2 as create,
|
|
15
15
|
layer2 as layer
|
|
16
16
|
};
|
package/dist/effect/tool.js
CHANGED
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/opencode-v4tj0tsx.js";
|
|
4
|
+
import"../chunks/opencode-687gv1e4.js";
|
|
5
|
+
import"../chunks/opencode-f8tdk121.js";
|
|
6
|
+
import"../chunks/opencode-0sxr5yjg.js";
|
|
7
|
+
import"../chunks/opencode-h1scw2s3.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/opencode-hn1x6ctc.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/opencode-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/effect/workerd.ts
|
|
17
17
|
var exports_workerd = {};
|
|
@@ -23,7 +23,7 @@ __export(exports_workerd, {
|
|
|
23
23
|
import { Layer } from "effect";
|
|
24
24
|
var create = ({ log, plugins, workspaceProviders, instances, ...options }) => {
|
|
25
25
|
const profile = make2(options);
|
|
26
|
-
return
|
|
26
|
+
return create2({ ...profile.options, log, plugins, workspaceProviders, instances }, { overrides: profile.replacements });
|
|
27
27
|
};
|
|
28
28
|
var layer = (options) => Layer.effect(Service2, create(options));
|
|
29
29
|
export {
|
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/opencode-687gv1e4.js";
|
|
2
|
+
import"./chunks/opencode-f8tdk121.js";
|
|
3
|
+
import"./chunks/opencode-0sxr5yjg.js";
|
|
4
|
+
import"./chunks/opencode-h1scw2s3.js";
|
|
5
|
+
import"./chunks/opencode-a933adv4.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunks/
|
|
7
|
+
exports_opencode2
|
|
8
|
+
} from "./chunks/opencode-r45txp59.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_tool2
|
|
11
|
-
} from "./chunks/
|
|
11
|
+
} from "./chunks/opencode-xk8fc419.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/opencode-j1jhtwv7.js";
|
|
41
41
|
|
|
42
42
|
// src/index.ts
|
|
43
43
|
import { ClientError } from "@opencode/client";
|
|
@@ -53,7 +53,7 @@ export {
|
|
|
53
53
|
Integration2 as Integration,
|
|
54
54
|
Location2 as Location,
|
|
55
55
|
Model2 as Model,
|
|
56
|
-
|
|
56
|
+
exports_opencode2 as OpenCode,
|
|
57
57
|
Permission2 as Permission,
|
|
58
58
|
PermissionSaved2 as PermissionSaved,
|
|
59
59
|
Project2 as Project,
|
package/dist/internal/fetch.js
CHANGED
package/dist/internal/host.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface EmbedOptions {
|
|
|
22
22
|
readonly overrides?: LayerNode.Replacements;
|
|
23
23
|
}
|
|
24
24
|
export declare const create: <R = never>(options?: CreateOptions<R> | undefined, embed?: EmbedOptions | undefined) => Effect.Effect<{
|
|
25
|
-
runtime: ManagedRuntime.ManagedRuntime<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/core/project").Service | import("@opencode/core/bus").Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/credential").Service | import("@opencode/core/wellknown").Service | Workspace.Service | import("@opencode/core/permission/saved").Service | import("@opencode/core/instance").Service | import("@opencode/core/job").Service | Session.Service | import("@opencode/core/worktree").Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/location-service-map").Service | SdkPlugins.Service | SessionRestart.Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/location-activity").Service | import("@opencode/server/pairing").Service, Error | import("@opencode/core/persistent-pty/index").UnavailableError>;
|
|
25
|
+
runtime: ManagedRuntime.ManagedRuntime<import("effect/http/HttpClient").HttpClient | HttpRouter.HttpRouter | import("@opencode/util/global").Service | import("@opencode/core/database/database").Service | import("@opencode/util/fs-util").FSUtil.Service | import("@opencode/core/project").Service | import("@opencode/core/bus").Service | import("@opencode/core/persistent-pty/index").Service | import("@opencode/core/credential").Service | import("@opencode/core/wellknown").Service | Workspace.Service | import("@opencode/core/permission/saved").Service | import("@opencode/core/instance").Service | import("@opencode/core/job").Service | Session.Service | import("@opencode/core/worktree").Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/location-service-map").Service | SdkPlugins.Service | SessionRestart.Service | import("@opencode/core/pty/ticket").Service | import("@opencode/core/session/transfer").Service | import("@opencode/core/location-activity").Service | import("@opencode/server/pairing").Service, Error | import("@opencode/core/persistent-pty/index").UnavailableError>;
|
|
26
26
|
fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) & {
|
|
27
27
|
preconnect: () => undefined;
|
|
28
28
|
};
|
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/opencode-h1scw2s3.js";
|
|
5
|
+
import"../chunks/opencode-f8tdk121.js";
|
|
6
|
+
import"../chunks/opencode-687gv1e4.js";
|
|
7
|
+
import"../chunks/opencode-0sxr5yjg.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/opencode-0sxr5yjg.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
|
-
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
2
|
+
create3
|
|
3
|
+
} from "./chunks/opencode-r45txp59.js";
|
|
4
|
+
import"./chunks/opencode-a933adv4.js";
|
|
5
|
+
import"./chunks/opencode-h1scw2s3.js";
|
|
6
|
+
import"./chunks/opencode-f8tdk121.js";
|
|
7
|
+
import"./chunks/opencode-687gv1e4.js";
|
|
8
|
+
import"./chunks/opencode-0sxr5yjg.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
create3 as create
|
|
11
11
|
};
|
package/dist/promise.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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/opencode-a933adv4.js";
|
|
5
|
+
import"./chunks/opencode-h1scw2s3.js";
|
|
6
|
+
import"./chunks/opencode-f8tdk121.js";
|
|
7
|
+
import"./chunks/opencode-687gv1e4.js";
|
|
8
|
+
import"./chunks/opencode-0sxr5yjg.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
|
11
|
-
|
|
11
|
+
create4 as create
|
|
12
12
|
};
|
package/dist/tool.js
CHANGED
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/opencode-v4tj0tsx.js";
|
|
4
|
+
import"./chunks/opencode-687gv1e4.js";
|
|
5
|
+
import"./chunks/opencode-f8tdk121.js";
|
|
6
|
+
import"./chunks/opencode-0sxr5yjg.js";
|
|
7
|
+
import"./chunks/opencode-h1scw2s3.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunks/
|
|
9
|
+
create4
|
|
10
|
+
} from "./chunks/opencode-a933adv4.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./chunks/
|
|
13
|
+
} from "./chunks/opencode-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/workerd.ts
|
|
16
16
|
var exports_workerd = {};
|
|
@@ -20,7 +20,7 @@ __export(exports_workerd, {
|
|
|
20
20
|
});
|
|
21
21
|
var create = ({ log, plugins, instances, ...options }) => {
|
|
22
22
|
const profile = make2(options);
|
|
23
|
-
return
|
|
23
|
+
return create4({ ...profile.options, log, plugins, instances }, { overrides: profile.replacements });
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
26
|
exports_workerd as OpenCodeWorkerd,
|
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-21647",
|
|
4
4
|
"name": "@opencode/sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"verify:package": "bun run script/verify-package.ts"
|
|
42
42
|
},
|
|
43
43
|
"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-
|
|
44
|
+
"@opencode/client": "0.0.0-dev-21647",
|
|
45
|
+
"@opencode/core": "0.0.0-dev-21647",
|
|
46
|
+
"@opencode/plugin": "0.0.0-dev-21647",
|
|
47
|
+
"@opencode/schema": "0.0.0-dev-21647",
|
|
48
|
+
"@opencode/server": "0.0.0-dev-21647",
|
|
49
|
+
"@opencode/util": "0.0.0-dev-21647",
|
|
50
50
|
"effect": "4.0.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@opencode/ai": "0.0.0-dev-
|
|
54
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
55
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
53
|
+
"@opencode/ai": "0.0.0-dev-21647",
|
|
54
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-21647",
|
|
55
|
+
"@opencode/protocol": "0.0.0-dev-21647",
|
|
56
56
|
"@tsconfig/bun": "1.0.9",
|
|
57
57
|
"@types/bun": "1.4.3",
|
|
58
58
|
"@typescript/native": "npm:typescript@7.1.0-beta"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
create3
|
|
3
|
-
} from "./logging-8h2xheyg.js";
|
|
4
|
-
import {
|
|
5
|
-
__export
|
|
6
|
-
} from "./logging-9rqn6x4v.js";
|
|
7
|
-
|
|
8
|
-
// src/opencode.ts
|
|
9
|
-
var exports_opencode = {};
|
|
10
|
-
__export(exports_opencode, {
|
|
11
|
-
create: () => create2
|
|
12
|
-
});
|
|
13
|
-
var create2 = (options = {}) => create3(options);
|
|
14
|
-
|
|
15
|
-
export { create2, exports_opencode };
|
|
File without changes
|
|
File without changes
|