@opencode/sdk 0.0.0-dev-20110 → 0.0.0-dev-20112
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/{opencode-vvjt45s9.js → opencode-0e5r93hw.js} +3 -3
- package/dist/chunks/{opencode-cq2pxn80.js → opencode-kkqmfsvg.js} +7 -7
- package/dist/chunks/opencode-ttb5t6ba.js +15 -0
- package/dist/effect/index.js +3 -3
- package/dist/effect/opencode.js +5 -5
- package/dist/effect/workerd.js +3 -3
- package/dist/index.js +4 -4
- package/dist/opencode.js +4 -4
- package/dist/promise.js +3 -3
- package/dist/workerd.js +3 -3
- package/package.json +10 -10
- package/dist/chunks/opencode-ehdj3v7a.js +0 -15
|
@@ -9,12 +9,12 @@ import {
|
|
|
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,
|
|
@@ -44,4 +44,4 @@ async function create3(options = {}, embed = {}) {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export {
|
|
47
|
+
export { create4, exports_promise };
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
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/unstable/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-0e5r93hw.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/effect/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import"../chunks/opencode-wyq33nd6.js";
|
|
|
3
3
|
import"../chunks/opencode-pqb0kjhx.js";
|
|
4
4
|
import"../chunks/opencode-89hnd1wk.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../chunks/opencode-
|
|
6
|
+
exports_opencode
|
|
7
|
+
} from "../chunks/opencode-kkqmfsvg.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_tool
|
|
10
10
|
} from "../chunks/opencode-n1hprnh9.js";
|
|
@@ -52,7 +52,7 @@ export {
|
|
|
52
52
|
Integration2 as Integration,
|
|
53
53
|
Location2 as Location,
|
|
54
54
|
Model2 as Model,
|
|
55
|
-
|
|
55
|
+
exports_opencode as OpenCode,
|
|
56
56
|
Permission2 as Permission,
|
|
57
57
|
PermissionSaved2 as PermissionSaved,
|
|
58
58
|
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/opencode-
|
|
5
|
+
exports_opencode
|
|
6
|
+
} from "../chunks/opencode-kkqmfsvg.js";
|
|
7
7
|
import"../chunks/opencode-89hnd1wk.js";
|
|
8
8
|
import"../chunks/opencode-wyq33nd6.js";
|
|
9
9
|
import"../chunks/opencode-pqb0kjhx.js";
|
|
10
10
|
import"../chunks/opencode-ya9awdj2.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/workerd.js
CHANGED
|
@@ -6,9 +6,9 @@ import"../chunks/opencode-wyq33nd6.js";
|
|
|
6
6
|
import"../chunks/opencode-pqb0kjhx.js";
|
|
7
7
|
import"../chunks/opencode-89hnd1wk.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
create2,
|
|
10
10
|
Service2
|
|
11
|
-
} from "../chunks/opencode-
|
|
11
|
+
} from "../chunks/opencode-kkqmfsvg.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "../chunks/opencode-9rqn6x4v.js";
|
|
@@ -23,7 +23,7 @@ __export(exports_workerd, {
|
|
|
23
23
|
import { Layer } from "effect";
|
|
24
24
|
var create = ({ log, workspaceProviders, instances, ...options }) => {
|
|
25
25
|
const profile = make2(options);
|
|
26
|
-
return
|
|
26
|
+
return create2({ ...profile.options, log, 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
|
@@ -2,10 +2,10 @@ import"./chunks/opencode-ya9awdj2.js";
|
|
|
2
2
|
import"./chunks/opencode-wyq33nd6.js";
|
|
3
3
|
import"./chunks/opencode-pqb0kjhx.js";
|
|
4
4
|
import"./chunks/opencode-89hnd1wk.js";
|
|
5
|
-
import"./chunks/opencode-
|
|
5
|
+
import"./chunks/opencode-0e5r93hw.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./chunks/opencode-
|
|
7
|
+
exports_opencode2
|
|
8
|
+
} from "./chunks/opencode-ttb5t6ba.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_tool2
|
|
11
11
|
} from "./chunks/opencode-hdqq71na.js";
|
|
@@ -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/opencode.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunks/opencode-
|
|
4
|
-
import"./chunks/opencode-
|
|
2
|
+
create3
|
|
3
|
+
} from "./chunks/opencode-ttb5t6ba.js";
|
|
4
|
+
import"./chunks/opencode-0e5r93hw.js";
|
|
5
5
|
import"./chunks/opencode-89hnd1wk.js";
|
|
6
6
|
import"./chunks/opencode-wyq33nd6.js";
|
|
7
7
|
import"./chunks/opencode-pqb0kjhx.js";
|
|
8
8
|
import"./chunks/opencode-ya9awdj2.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/opencode-
|
|
4
|
+
} from "./chunks/opencode-0e5r93hw.js";
|
|
5
5
|
import"./chunks/opencode-89hnd1wk.js";
|
|
6
6
|
import"./chunks/opencode-wyq33nd6.js";
|
|
7
7
|
import"./chunks/opencode-pqb0kjhx.js";
|
|
8
8
|
import"./chunks/opencode-ya9awdj2.js";
|
|
9
9
|
export {
|
|
10
10
|
exports_promise as PromiseSdk,
|
|
11
|
-
|
|
11
|
+
create4 as create
|
|
12
12
|
};
|
package/dist/workerd.js
CHANGED
|
@@ -6,8 +6,8 @@ import"./chunks/opencode-wyq33nd6.js";
|
|
|
6
6
|
import"./chunks/opencode-pqb0kjhx.js";
|
|
7
7
|
import"./chunks/opencode-89hnd1wk.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunks/opencode-
|
|
9
|
+
create4
|
|
10
|
+
} from "./chunks/opencode-0e5r93hw.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./chunks/opencode-9rqn6x4v.js";
|
|
@@ -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-20112",
|
|
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-20112",
|
|
44
|
+
"@opencode/core": "0.0.0-dev-20112",
|
|
45
|
+
"@opencode/plugin": "0.0.0-dev-20112",
|
|
46
|
+
"@opencode/schema": "0.0.0-dev-20112",
|
|
47
|
+
"@opencode/server": "0.0.0-dev-20112",
|
|
48
|
+
"@opencode/util": "0.0.0-dev-20112",
|
|
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-20112",
|
|
53
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-20112",
|
|
54
|
+
"@opencode/protocol": "0.0.0-dev-20112",
|
|
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"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
create3
|
|
3
|
-
} from "./opencode-vvjt45s9.js";
|
|
4
|
-
import {
|
|
5
|
-
__export
|
|
6
|
-
} from "./opencode-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 };
|