@opencode/sdk 2.0.26 → 2.0.28
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-d9bx5h6j.js → logging-3whcczxy.js} +9 -6
- package/dist/chunks/{logging-kmzq5kzb.js → logging-6050vrm2.js} +2 -2
- package/dist/chunks/{logging-709g07g4.js → logging-bp1en24r.js} +1 -1
- package/dist/chunks/{logging-xjkw3602.js → logging-hdqq71na.js} +1 -1
- package/dist/chunks/{logging-jw22y9b0.js → logging-n1hprnh9.js} +1 -1
- package/dist/chunks/{logging-39225h8g.js → logging-qtsmxzjm.js} +3 -3
- package/dist/chunks/{logging-y51agw8v.js → logging-rr9xq59c.js} +8 -3
- package/dist/chunks/{logging-yqn72msb.js → logging-v1qmz9qa.js} +3 -3
- package/dist/effect/index.d.ts +3 -0
- package/dist/effect/index.js +12 -6
- package/dist/effect/opencode.js +3 -3
- package/dist/effect/tool.js +5 -5
- package/dist/effect/workerd.d.ts +2 -1
- package/dist/effect/workerd.js +8 -8
- package/dist/index.js +7 -7
- package/dist/internal/fetch.js +3 -3
- package/dist/internal/host.d.ts +4 -2
- 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.d.ts +1 -1
- package/dist/promise.js +3 -3
- package/dist/tool.js +5 -5
- package/dist/workerd.js +6 -6
- package/package.json +11 -11
|
@@ -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
|
|
@@ -26,9 +26,9 @@ import { Workspace } from "@opencode/core/workspace";
|
|
|
26
26
|
import { WorkspaceDriver } from "@opencode/core/workspace/driver";
|
|
27
27
|
import { createEmbeddedRoutes } from "@opencode/server/routes";
|
|
28
28
|
import { Context, Effect, Layer, ManagedRuntime } from "effect";
|
|
29
|
-
import { HttpEffect, HttpRouter, HttpServer } from "effect/
|
|
29
|
+
import { HttpEffect, HttpRouter, HttpServer } from "effect/http";
|
|
30
30
|
var create5 = Effect.fn("EmbeddedHost.create")(function* (options = {}, embed = {}) {
|
|
31
|
-
const { log, workspaceProviders, instances, ...server } = options;
|
|
31
|
+
const { log, plugins, workspaceProviders, instances, ...server } = options;
|
|
32
32
|
const selector = instances ? provide2(instances, yield* Effect.context()) : undefined;
|
|
33
33
|
const runtime = ManagedRuntime.make(createEmbeddedRoutes({
|
|
34
34
|
...server,
|
|
@@ -37,13 +37,16 @@ var create5 = Effect.fn("EmbeddedHost.create")(function* (options = {}, embed =
|
|
|
37
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
|
+
const sdkPlugins = Context.get(services, SdkPlugins.Service);
|
|
41
|
+
for (const plugin of plugins ?? [])
|
|
42
|
+
yield* sdkPlugins.register(plugin);
|
|
40
43
|
runtime.runFork(Context.get(services, SessionRestart.Service).resumeSuspendedSessions);
|
|
41
44
|
const handler = HttpEffect.toWebHandlerWith(context2(services))(Context.get(services, HttpRouter.HttpRouter).asHttpEffect());
|
|
42
|
-
const transport =
|
|
45
|
+
const transport = make2(handler, runtime.dispose);
|
|
43
46
|
return {
|
|
44
47
|
runtime,
|
|
45
48
|
fetch: transport.fetch,
|
|
46
|
-
plugins:
|
|
49
|
+
plugins: sdkPlugins,
|
|
47
50
|
sessions: Context.get(services, Session.Service),
|
|
48
51
|
workspace: Context.get(services, Workspace.Service),
|
|
49
52
|
close: transport.close
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5
|
|
3
|
-
} from "./logging-
|
|
3
|
+
} from "./logging-3whcczxy.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./logging-9rqn6x4v.js";
|
|
@@ -15,7 +15,7 @@ __export(exports_opencode, {
|
|
|
15
15
|
});
|
|
16
16
|
import { OpenCode } from "@opencode/client/effect";
|
|
17
17
|
import { Context, Effect, Layer } from "effect";
|
|
18
|
-
import { FetchHttpClient, HttpClient } from "effect/
|
|
18
|
+
import { FetchHttpClient, HttpClient } from "effect/http";
|
|
19
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));
|
|
@@ -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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5
|
|
3
|
-
} from "./logging-
|
|
3
|
+
} from "./logging-3whcczxy.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./logging-9rqn6x4v.js";
|
|
@@ -18,6 +18,7 @@ async function create4(options = {}, embed = {}) {
|
|
|
18
18
|
const { plugins, instances, ...hostOptions } = options;
|
|
19
19
|
const host = await Effect.runPromise(create5({
|
|
20
20
|
...hostOptions,
|
|
21
|
+
plugins: await adaptPlugins(plugins),
|
|
21
22
|
instances: instances ? {
|
|
22
23
|
key: (session) => instances.key(Schema.encodeSync(Session.Info)(session)),
|
|
23
24
|
configure: (key) => Effect.gen(function* () {
|
|
@@ -32,8 +33,6 @@ async function create4(options = {}, embed = {}) {
|
|
|
32
33
|
const { PluginPromise } = await import("@opencode/core/plugin/promise");
|
|
33
34
|
return host.runtime.runPromise(host.plugins.register(PluginPromise.fromPromise(plugin)));
|
|
34
35
|
};
|
|
35
|
-
for (const plugin of plugins ?? [])
|
|
36
|
-
await register(plugin);
|
|
37
36
|
return {
|
|
38
37
|
...client,
|
|
39
38
|
sessions: client.session,
|
|
@@ -43,5 +42,11 @@ async function create4(options = {}, embed = {}) {
|
|
|
43
42
|
[Symbol.asyncDispose]: host.close
|
|
44
43
|
};
|
|
45
44
|
}
|
|
45
|
+
async function adaptPlugins(plugins) {
|
|
46
|
+
if (!plugins?.length)
|
|
47
|
+
return;
|
|
48
|
+
const { PluginPromise } = await import("@opencode/core/plugin/promise");
|
|
49
|
+
return plugins.map(PluginPromise.fromPromise);
|
|
50
|
+
}
|
|
46
51
|
|
|
47
52
|
export { create4, exports_promise };
|
|
@@ -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.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * as OpenCode from "./opencode";
|
|
2
2
|
export * as Tool from "./tool";
|
|
3
|
+
export { EnvironmentDriver } from "@opencode/core/environment/driver";
|
|
4
|
+
export { EnvironmentFiles } from "@opencode/core/environment/files";
|
|
5
|
+
export { WorkspaceDriver } from "@opencode/core/workspace/driver";
|
|
3
6
|
export { ClientError } from "@opencode/client/effect";
|
|
4
7
|
export type { OpenCodeEvent } from "@opencode/client/effect";
|
|
5
8
|
export * from "../contracts";
|
package/dist/effect/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
|
|
10
|
-
} from "../chunks/logging-
|
|
9
|
+
exports_tool
|
|
10
|
+
} from "../chunks/logging-n1hprnh9.js";
|
|
11
11
|
import {
|
|
12
12
|
Agent2,
|
|
13
13
|
Command2,
|
|
@@ -39,6 +39,9 @@ import {
|
|
|
39
39
|
} from "../chunks/logging-j1jhtwv7.js";
|
|
40
40
|
|
|
41
41
|
// src/effect/index.ts
|
|
42
|
+
import { EnvironmentDriver } from "@opencode/core/environment/driver";
|
|
43
|
+
import { EnvironmentFiles } from "@opencode/core/environment/files";
|
|
44
|
+
import { WorkspaceDriver } from "@opencode/core/workspace/driver";
|
|
42
45
|
import { ClientError } from "@opencode/client/effect";
|
|
43
46
|
export {
|
|
44
47
|
AbsolutePath2 as AbsolutePath,
|
|
@@ -47,6 +50,8 @@ export {
|
|
|
47
50
|
Command2 as Command,
|
|
48
51
|
Config2 as Config,
|
|
49
52
|
Credential2 as Credential,
|
|
53
|
+
EnvironmentDriver,
|
|
54
|
+
EnvironmentFiles,
|
|
50
55
|
Event2 as Event,
|
|
51
56
|
FileSystem2 as FileSystem,
|
|
52
57
|
Integration2 as Integration,
|
|
@@ -67,8 +72,9 @@ export {
|
|
|
67
72
|
SessionInbox2 as SessionInbox,
|
|
68
73
|
SessionMessage2 as SessionMessage,
|
|
69
74
|
Skill2 as Skill,
|
|
70
|
-
|
|
75
|
+
exports_tool as Tool,
|
|
71
76
|
WebSearch2 as WebSearch,
|
|
72
77
|
Workspace2 as Workspace,
|
|
78
|
+
WorkspaceDriver,
|
|
73
79
|
Worktree2 as Worktree
|
|
74
80
|
};
|
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-
|
|
8
|
-
import"../chunks/logging-yqn72msb.js";
|
|
6
|
+
} from "../chunks/logging-6050vrm2.js";
|
|
7
|
+
import"../chunks/logging-3whcczxy.js";
|
|
9
8
|
import"../chunks/logging-pqb0kjhx.js";
|
|
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/tool.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunks/logging-
|
|
2
|
+
RegistrationError2,
|
|
3
|
+
Error2
|
|
4
|
+
} from "../chunks/logging-n1hprnh9.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Error2 as Error,
|
|
7
|
+
RegistrationError2 as RegistrationError
|
|
8
8
|
};
|
package/dist/effect/workerd.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ import { OpenCode } from "./opencode";
|
|
|
6
6
|
export type Configuration = WorkerdProfile.Configuration;
|
|
7
7
|
export interface CreateOptions<R = never> extends WorkerdProfile.Options {
|
|
8
8
|
readonly log?: OpenCode.CreateOptions["log"];
|
|
9
|
+
readonly plugins?: OpenCode.CreateOptions["plugins"];
|
|
9
10
|
readonly workspaceProviders?: OpenCode.CreateOptions["workspaceProviders"];
|
|
10
11
|
readonly instances?: OpenCode.CreateOptions<R>["instances"];
|
|
11
12
|
}
|
|
12
|
-
export declare const create: <R = never>({ log, workspaceProviders, instances, ...options }: CreateOptions<R>) => import("effect/Effect").Effect<OpenCode.Interface, Error | Config.ConfigError, Scope.Scope | R>;
|
|
13
|
+
export declare const create: <R = never>({ log, plugins, workspaceProviders, instances, ...options }: CreateOptions<R>) => import("effect/Effect").Effect<OpenCode.Interface, Error | Config.ConfigError, Scope.Scope | R>;
|
|
13
14
|
export declare const layer: <R = never>(options: CreateOptions<R>) => Layer.Layer<OpenCode.Service, Config.ConfigError | Error, Exclude<R, Scope.Scope>>;
|
|
14
15
|
export type Interface = OpenCode.Interface;
|
|
15
16
|
export type Requirements = Scope.Scope;
|
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";
|
|
@@ -21,9 +21,9 @@ __export(exports_workerd, {
|
|
|
21
21
|
layer: () => layer
|
|
22
22
|
});
|
|
23
23
|
import { Layer } from "effect";
|
|
24
|
-
var create = ({ log, workspaceProviders, instances, ...options }) => {
|
|
25
|
-
const profile =
|
|
26
|
-
return create2({ ...profile.options, log, workspaceProviders, instances }, { overrides: profile.replacements });
|
|
24
|
+
var create = ({ log, plugins, workspaceProviders, instances, ...options }) => {
|
|
25
|
+
const profile = make3(options);
|
|
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
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
|
-
|
|
11
|
-
} from "./chunks/logging-
|
|
10
|
+
exports_tool2
|
|
11
|
+
} from "./chunks/logging-hdqq71na.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/fetch.js
CHANGED
package/dist/internal/host.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as EmbeddedHost from "./host";
|
|
2
2
|
import { SdkPlugins } from "@opencode/core/plugin/sdk";
|
|
3
|
+
import type { Plugin } from "@opencode/plugin/effect/plugin";
|
|
3
4
|
import { SessionRestart } from "@opencode/core/session/execution/restart";
|
|
4
5
|
import { Session } from "@opencode/core/session";
|
|
5
6
|
import { Workspace } from "@opencode/core/workspace";
|
|
@@ -7,11 +8,12 @@ import { WorkspaceDriver } from "@opencode/core/workspace/driver";
|
|
|
7
8
|
import type { ServerOptions } from "@opencode/server/options";
|
|
8
9
|
import type { LayerNode } from "@opencode/util/effect/layer-node";
|
|
9
10
|
import { Effect, ManagedRuntime } from "effect";
|
|
10
|
-
import { HttpRouter } from "effect/
|
|
11
|
+
import { HttpRouter } from "effect/http";
|
|
11
12
|
import { type LogOptions } from "../logging";
|
|
12
13
|
import { SdkInstances } from "./instances";
|
|
13
14
|
export interface CreateOptions<R = never> extends Omit<ServerOptions, "hostname" | "port" | "password"> {
|
|
14
15
|
readonly log?: LogOptions;
|
|
16
|
+
readonly plugins?: ReadonlyArray<Plugin>;
|
|
15
17
|
readonly workspaceProviders?: Readonly<Record<string, WorkspaceDriver.Interface>>;
|
|
16
18
|
readonly instances?: SdkInstances.Options<R>;
|
|
17
19
|
}
|
|
@@ -20,7 +22,7 @@ export interface EmbedOptions {
|
|
|
20
22
|
readonly overrides?: LayerNode.Replacements;
|
|
21
23
|
}
|
|
22
24
|
export declare const create: <R = never>(options?: CreateOptions<R> | undefined, embed?: EmbedOptions | undefined) => Effect.Effect<{
|
|
23
|
-
runtime: ManagedRuntime.ManagedRuntime<import("effect/
|
|
25
|
+
runtime: ManagedRuntime.ManagedRuntime<import("effect/http/HttpClient").HttpClient | 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 | SdkPlugins.Service | import("@opencode/core/plugin/update").Service | import("@opencode/core/job").Service | Session.Service | import("@opencode/core/worktree").Service | import("@opencode/core/instance").Service | import("@opencode/core/location-service-map").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 | import("@opencode/server/pty-environment").Service | HttpRouter.HttpRouter, Error | import("@opencode/core/persistent-pty/index").UnavailableError>;
|
|
24
26
|
fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) & {
|
|
25
27
|
preconnect: () => undefined;
|
|
26
28
|
};
|
package/dist/internal/host.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5,
|
|
3
3
|
exports_host
|
|
4
|
-
} from "../chunks/logging-
|
|
5
|
-
import"../chunks/logging-yqn72msb.js";
|
|
4
|
+
} from "../chunks/logging-3whcczxy.js";
|
|
6
5
|
import"../chunks/logging-pqb0kjhx.js";
|
|
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-
|
|
6
|
-
import"./chunks/logging-yqn72msb.js";
|
|
3
|
+
} from "./chunks/logging-bp1en24r.js";
|
|
4
|
+
import"./chunks/logging-rr9xq59c.js";
|
|
5
|
+
import"./chunks/logging-3whcczxy.js";
|
|
7
6
|
import"./chunks/logging-pqb0kjhx.js";
|
|
7
|
+
import"./chunks/logging-v1qmz9qa.js";
|
|
8
8
|
import"./chunks/logging-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
10
|
create3 as create
|
package/dist/promise.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface InstanceOptions {
|
|
|
12
12
|
/** Reconstruct configuration on a cache miss, including after a host restart. */
|
|
13
13
|
readonly configure: (key: string) => InstanceConfiguration | Promise<InstanceConfiguration>;
|
|
14
14
|
}
|
|
15
|
-
export interface CreateOptions extends Omit<EmbeddedHost.CreateOptions, "workspaceProviders" | "instances"> {
|
|
15
|
+
export interface CreateOptions extends Omit<EmbeddedHost.CreateOptions, "plugins" | "workspaceProviders" | "instances"> {
|
|
16
16
|
readonly plugins?: ReadonlyArray<Plugin.Plugin>;
|
|
17
17
|
readonly instances?: InstanceOptions;
|
|
18
18
|
}
|
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-
|
|
6
|
-
import"./chunks/logging-yqn72msb.js";
|
|
4
|
+
} from "./chunks/logging-rr9xq59c.js";
|
|
5
|
+
import"./chunks/logging-3whcczxy.js";
|
|
7
6
|
import"./chunks/logging-pqb0kjhx.js";
|
|
7
|
+
import"./chunks/logging-v1qmz9qa.js";
|
|
8
8
|
import"./chunks/logging-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
package/dist/tool.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunks/logging-
|
|
2
|
+
RegistrationError3,
|
|
3
|
+
Error3
|
|
4
|
+
} from "./chunks/logging-hdqq71na.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
|
-
|
|
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": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
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": "2.0.
|
|
44
|
-
"@opencode/core": "2.0.
|
|
45
|
-
"@opencode/plugin": "2.0.
|
|
46
|
-
"@opencode/schema": "2.0.
|
|
47
|
-
"@opencode/server": "2.0.
|
|
48
|
-
"@opencode/util": "2.0.
|
|
49
|
-
"effect": "4.0.
|
|
43
|
+
"@opencode/client": "2.0.28",
|
|
44
|
+
"@opencode/core": "2.0.28",
|
|
45
|
+
"@opencode/plugin": "2.0.28",
|
|
46
|
+
"@opencode/schema": "2.0.28",
|
|
47
|
+
"@opencode/server": "2.0.28",
|
|
48
|
+
"@opencode/util": "2.0.28",
|
|
49
|
+
"effect": "4.0.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@opencode/ai": "2.0.
|
|
53
|
-
"@opencode/httpapi-codegen": "2.0.
|
|
54
|
-
"@opencode/protocol": "2.0.
|
|
52
|
+
"@opencode/ai": "2.0.28",
|
|
53
|
+
"@opencode/httpapi-codegen": "2.0.28",
|
|
54
|
+
"@opencode/protocol": "2.0.28",
|
|
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"
|