@opencode/sdk 2.0.32 → 2.1.0
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/{workerd-qtsmxzjm.js → logging-39225h8g.js} +4 -4
- package/dist/chunks/{workerd-2bmb5apw.js → logging-4vhwrh1n.js} +9 -9
- package/dist/chunks/{workerd-jk9163zc.js → logging-ba53q5rh.js} +6 -6
- package/dist/chunks/{workerd-hdqq71na.js → logging-hdqq71na.js} +1 -1
- package/dist/chunks/{workerd-n1hprnh9.js → logging-n1hprnh9.js} +1 -1
- package/dist/chunks/{workerd-pqb0kjhx.js → logging-pqb0kjhx.js} +1 -1
- package/dist/chunks/logging-t3hrt7zp.js +15 -0
- package/dist/chunks/{workerd-ygmyrjcd.js → logging-y1bqhqf3.js} +5 -5
- package/dist/chunks/{workerd-v1qmz9qa.js → logging-yqn72msb.js} +4 -4
- 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.d.ts +1 -1
- package/dist/effect/workerd.js +11 -11
- package/dist/index.js +10 -10
- package/dist/internal/fetch.js +3 -3
- package/dist/internal/host.d.ts +1 -1
- package/dist/internal/host.js +4 -4
- package/dist/internal/instances.js +1 -1
- package/dist/internal/workerd.d.ts +27 -27
- package/dist/internal/workerd.js +3 -3
- package/dist/logging.js +1 -1
- package/dist/opencode.js +8 -8
- package/dist/promise.js +7 -7
- package/dist/tool.js +1 -1
- package/dist/workerd.js +11 -11
- package/package.json +12 -12
- package/dist/chunks/workerd-d6rd6qjy.js +0 -15
- /package/dist/chunks/{workerd-9rqn6x4v.js → logging-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{workerd-j1jhtwv7.js → logging-j1jhtwv7.js} +0 -0
- /package/dist/chunks/{workerd-ya9awdj2.js → logging-ya9awdj2.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./logging-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/workerd.ts
|
|
6
6
|
var exports_workerd = {};
|
|
7
7
|
__export(exports_workerd, {
|
|
8
8
|
WorkerdProfile: () => exports_workerd,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make2
|
|
10
10
|
});
|
|
11
11
|
import { ServerWorkerd } from "@opencode/server/workerd";
|
|
12
|
-
function
|
|
12
|
+
function make2({ config, ...options }) {
|
|
13
13
|
const server = {
|
|
14
14
|
...options,
|
|
15
15
|
config: config === undefined ? undefined : { content: JSON.stringify(config) }
|
|
@@ -20,4 +20,4 @@ function make3({ config, ...options }) {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export {
|
|
23
|
+
export { make2, exports_workerd };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./logging-ba53q5rh.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./logging-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/opencode.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
OpenCode: () =>
|
|
9
|
+
var exports_opencode2 = {};
|
|
10
|
+
__export(exports_opencode2, {
|
|
11
|
+
OpenCode: () => exports_opencode2,
|
|
12
12
|
Service: () => Service2,
|
|
13
|
-
create: () =>
|
|
13
|
+
create: () => create4,
|
|
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 create4 = 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 create2 = 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, create4(options));
|
|
44
44
|
|
|
45
|
-
export {
|
|
45
|
+
export { create4, Service2, layer2, exports_opencode2 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
layer4,
|
|
3
3
|
context2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./logging-ya9awdj2.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
make3
|
|
7
|
+
} from "./logging-yqn72msb.js";
|
|
8
8
|
import {
|
|
9
9
|
provide2,
|
|
10
10
|
node2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./logging-pqb0kjhx.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./logging-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/internal/host.ts
|
|
17
17
|
var exports_host = {};
|
|
@@ -42,7 +42,7 @@ var create5 = Effect.fn("EmbeddedHost.create")(function* (options = {}, embed =
|
|
|
42
42
|
yield* sdkPlugins.register(plugin);
|
|
43
43
|
runtime.runFork(Context.get(services, SessionRestart.Service).resumeSuspendedSessions);
|
|
44
44
|
const handler = HttpEffect.toWebHandlerWith(context2(services))(Context.get(services, HttpRouter.HttpRouter).asHttpEffect());
|
|
45
|
-
const transport =
|
|
45
|
+
const transport = make3(handler, runtime.dispose);
|
|
46
46
|
return {
|
|
47
47
|
runtime,
|
|
48
48
|
fetch: transport.fetch,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
create3
|
|
3
|
+
} from "./logging-y1bqhqf3.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 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create5
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./logging-ba53q5rh.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./logging-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: () => create3
|
|
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 create3(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 { create3, exports_promise };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./logging-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/fetch.ts
|
|
6
6
|
var exports_fetch = {};
|
|
7
7
|
__export(exports_fetch, {
|
|
8
8
|
OwnedFetch: () => exports_fetch,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make3
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make3(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 { make3, exports_fetch };
|
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/logging-ya9awdj2.js";
|
|
2
|
+
import"../chunks/logging-yqn72msb.js";
|
|
3
|
+
import"../chunks/logging-pqb0kjhx.js";
|
|
4
|
+
import"../chunks/logging-ba53q5rh.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../chunks/
|
|
6
|
+
exports_opencode2
|
|
7
|
+
} from "../chunks/logging-4vhwrh1n.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_tool
|
|
10
|
-
} from "../chunks/
|
|
10
|
+
} from "../chunks/logging-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/logging-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_opencode2 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
|
+
create4,
|
|
3
3
|
Service2,
|
|
4
4
|
layer2,
|
|
5
|
-
|
|
6
|
-
} from "../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
5
|
+
exports_opencode2
|
|
6
|
+
} from "../chunks/logging-4vhwrh1n.js";
|
|
7
|
+
import"../chunks/logging-ba53q5rh.js";
|
|
8
|
+
import"../chunks/logging-yqn72msb.js";
|
|
9
|
+
import"../chunks/logging-pqb0kjhx.js";
|
|
10
|
+
import"../chunks/logging-ya9awdj2.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
exports_opencode2 as OpenCode,
|
|
13
13
|
Service2 as Service,
|
|
14
|
-
|
|
14
|
+
create4 as create,
|
|
15
15
|
layer2 as layer
|
|
16
16
|
};
|
package/dist/effect/tool.js
CHANGED
package/dist/effect/workerd.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface CreateOptions<R = never> extends WorkerdProfile.Options {
|
|
|
10
10
|
readonly workspaceProviders?: OpenCode.CreateOptions["workspaceProviders"];
|
|
11
11
|
readonly instances?: OpenCode.CreateOptions<R>["instances"];
|
|
12
12
|
}
|
|
13
|
-
export declare const create: <R = never>({ log, plugins, workspaceProviders, instances, ...options }: CreateOptions<R>) => import("effect/Effect").Effect<OpenCode.Interface,
|
|
13
|
+
export declare const create: <R = never>({ log, plugins, workspaceProviders, instances, ...options }: CreateOptions<R>) => import("effect/Effect").Effect<OpenCode.Interface, Config.ConfigError | Error, R | Scope.Scope>;
|
|
14
14
|
export declare const layer: <R = never>(options: CreateOptions<R>) => Layer.Layer<OpenCode.Service, Config.ConfigError | Error, Exclude<R, Scope.Scope>>;
|
|
15
15
|
export type Interface = OpenCode.Interface;
|
|
16
16
|
export type Requirements = Scope.Scope;
|
package/dist/effect/workerd.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
2
|
+
make2
|
|
3
|
+
} from "../chunks/logging-39225h8g.js";
|
|
4
|
+
import"../chunks/logging-ya9awdj2.js";
|
|
5
|
+
import"../chunks/logging-yqn72msb.js";
|
|
6
|
+
import"../chunks/logging-pqb0kjhx.js";
|
|
7
|
+
import"../chunks/logging-ba53q5rh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
create4,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/logging-4vhwrh1n.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "../chunks/
|
|
14
|
+
} from "../chunks/logging-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/effect/workerd.ts
|
|
17
17
|
var exports_workerd = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_workerd, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Layer } from "effect";
|
|
24
24
|
var create = ({ log, plugins, workspaceProviders, instances, ...options }) => {
|
|
25
|
-
const profile =
|
|
26
|
-
return
|
|
25
|
+
const profile = make2(options);
|
|
26
|
+
return create4({ ...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/logging-ya9awdj2.js";
|
|
2
|
+
import"./chunks/logging-yqn72msb.js";
|
|
3
|
+
import"./chunks/logging-pqb0kjhx.js";
|
|
4
|
+
import"./chunks/logging-ba53q5rh.js";
|
|
5
|
+
import"./chunks/logging-y1bqhqf3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunks/
|
|
7
|
+
exports_opencode
|
|
8
|
+
} from "./chunks/logging-t3hrt7zp.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_tool2
|
|
11
|
-
} from "./chunks/
|
|
11
|
+
} from "./chunks/logging-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/logging-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_opencode 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 | 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 |
|
|
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 | import("@opencode/server/pty-environment").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/logging-ba53q5rh.js";
|
|
5
|
+
import"../chunks/logging-yqn72msb.js";
|
|
6
|
+
import"../chunks/logging-pqb0kjhx.js";
|
|
7
|
+
import"../chunks/logging-ya9awdj2.js";
|
|
8
8
|
export {
|
|
9
9
|
exports_host as EmbeddedHost,
|
|
10
10
|
create5 as create
|
|
@@ -7,50 +7,50 @@ export interface Options extends Omit<ServerWorkerd.Options, "password" | "confi
|
|
|
7
7
|
}
|
|
8
8
|
export declare function make({ config, ...options }: Options): {
|
|
9
9
|
options: {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
|
|
10
|
+
readonly app?: {
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
readonly version?: string | undefined;
|
|
13
|
+
readonly channel?: string | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
readonly hostname?: string | undefined;
|
|
16
|
+
readonly port?: number | undefined;
|
|
17
|
+
readonly password?: string | undefined;
|
|
18
|
+
readonly cors?: readonly string[] | undefined;
|
|
19
|
+
readonly simulation?: boolean | undefined;
|
|
20
|
+
readonly database?: {
|
|
21
|
+
readonly path?: string | undefined;
|
|
15
22
|
} | undefined;
|
|
16
23
|
readonly pty?: {
|
|
17
|
-
readonly root?: string | undefined;
|
|
18
24
|
readonly handoff?: {
|
|
19
25
|
readonly directory: string;
|
|
20
26
|
readonly instanceID: string;
|
|
21
27
|
readonly ticket: string;
|
|
22
28
|
readonly expiresAt: number;
|
|
23
29
|
} | undefined;
|
|
30
|
+
readonly root?: string | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
readonly events?: {
|
|
33
|
+
readonly persist?: boolean | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
readonly models?: {
|
|
36
|
+
readonly url?: string | undefined;
|
|
37
|
+
readonly file?: string | undefined;
|
|
38
|
+
readonly fetch?: boolean | undefined;
|
|
39
|
+
readonly snapshot?: boolean | undefined;
|
|
24
40
|
} | undefined;
|
|
25
41
|
readonly config?: {
|
|
26
42
|
readonly directory?: string | undefined;
|
|
27
43
|
readonly project?: boolean | undefined;
|
|
28
|
-
readonly content?: string | undefined;
|
|
29
|
-
readonly file?: string | undefined;
|
|
30
44
|
readonly claude?: boolean | undefined;
|
|
45
|
+
readonly file?: string | undefined;
|
|
46
|
+
readonly content?: string | undefined;
|
|
31
47
|
} | undefined;
|
|
32
|
-
readonly events?: {
|
|
33
|
-
readonly persist?: boolean | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
readonly fs?: {
|
|
36
|
-
readonly fff?: boolean | undefined;
|
|
37
|
-
readonly filewatcher?: boolean | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
readonly port?: number | undefined;
|
|
40
|
-
readonly hostname?: string | undefined;
|
|
41
|
-
readonly cors?: readonly string[] | undefined;
|
|
42
48
|
readonly windows?: {
|
|
43
49
|
readonly gitbash?: string | undefined;
|
|
44
50
|
} | undefined;
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
readonly
|
|
48
|
-
readonly name?: string | undefined;
|
|
49
|
-
readonly channel?: string | undefined;
|
|
50
|
-
} | undefined;
|
|
51
|
-
readonly simulation?: boolean | undefined;
|
|
52
|
-
readonly database?: {
|
|
53
|
-
readonly path?: string | undefined;
|
|
51
|
+
readonly fs?: {
|
|
52
|
+
readonly filewatcher?: boolean | undefined;
|
|
53
|
+
readonly fff?: boolean | undefined;
|
|
54
54
|
} | undefined;
|
|
55
55
|
};
|
|
56
56
|
replacements: import("@opencode/util/effect/layer-node").Replacements;
|
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
|
+
create2
|
|
3
|
+
} from "./chunks/logging-t3hrt7zp.js";
|
|
4
|
+
import"./chunks/logging-y1bqhqf3.js";
|
|
5
|
+
import"./chunks/logging-ba53q5rh.js";
|
|
6
|
+
import"./chunks/logging-yqn72msb.js";
|
|
7
|
+
import"./chunks/logging-pqb0kjhx.js";
|
|
8
|
+
import"./chunks/logging-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
create2 as create
|
|
11
11
|
};
|
package/dist/promise.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
create3,
|
|
3
3
|
exports_promise
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
8
|
-
import"./chunks/
|
|
4
|
+
} from "./chunks/logging-y1bqhqf3.js";
|
|
5
|
+
import"./chunks/logging-ba53q5rh.js";
|
|
6
|
+
import"./chunks/logging-yqn72msb.js";
|
|
7
|
+
import"./chunks/logging-pqb0kjhx.js";
|
|
8
|
+
import"./chunks/logging-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
|
11
|
-
|
|
11
|
+
create3 as create
|
|
12
12
|
};
|
package/dist/tool.js
CHANGED
package/dist/workerd.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunks/
|
|
4
|
-
import"./chunks/
|
|
5
|
-
import"./chunks/
|
|
6
|
-
import"./chunks/
|
|
7
|
-
import"./chunks/
|
|
2
|
+
make2
|
|
3
|
+
} from "./chunks/logging-39225h8g.js";
|
|
4
|
+
import"./chunks/logging-ya9awdj2.js";
|
|
5
|
+
import"./chunks/logging-yqn72msb.js";
|
|
6
|
+
import"./chunks/logging-pqb0kjhx.js";
|
|
7
|
+
import"./chunks/logging-ba53q5rh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunks/
|
|
9
|
+
create3
|
|
10
|
+
} from "./chunks/logging-y1bqhqf3.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./chunks/
|
|
13
|
+
} from "./chunks/logging-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/workerd.ts
|
|
16
16
|
var exports_workerd = {};
|
|
@@ -19,8 +19,8 @@ __export(exports_workerd, {
|
|
|
19
19
|
create: () => create
|
|
20
20
|
});
|
|
21
21
|
var create = ({ log, plugins, instances, ...options }) => {
|
|
22
|
-
const profile =
|
|
23
|
-
return
|
|
22
|
+
const profile = make2(options);
|
|
23
|
+
return create3({ ...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": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"name": "@opencode/sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "bun run script/build.ts",
|
|
38
38
|
"test": "bun test --timeout 5000",
|
|
39
|
-
"typecheck": "
|
|
39
|
+
"typecheck": "tsc -b",
|
|
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
|
|
43
|
+
"@opencode/client": "2.1.0",
|
|
44
|
+
"@opencode/core": "2.1.0",
|
|
45
|
+
"@opencode/plugin": "2.1.0",
|
|
46
|
+
"@opencode/schema": "2.1.0",
|
|
47
|
+
"@opencode/server": "2.1.0",
|
|
48
|
+
"@opencode/util": "2.1.0",
|
|
49
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.1.0",
|
|
53
|
+
"@opencode/httpapi-codegen": "2.1.0",
|
|
54
|
+
"@opencode/protocol": "2.1.0",
|
|
55
55
|
"@tsconfig/bun": "1.0.9",
|
|
56
56
|
"@types/bun": "1.4.0",
|
|
57
|
-
"@typescript/native
|
|
57
|
+
"@typescript/native": "npm:typescript@7.0.2"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
create4
|
|
3
|
-
} from "./workerd-ygmyrjcd.js";
|
|
4
|
-
import {
|
|
5
|
-
__export
|
|
6
|
-
} from "./workerd-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 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|