@opencode/client 0.0.0-dev-21784 → 0.0.0-dev-21787
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/{pty-handoff-9j12j8xw.js → service-contender-15p82y03.js} +5 -5
- package/dist/chunks/{pty-handoff-aaf0ejqe.js → service-contender-6d27dksz.js} +4 -4
- package/dist/chunks/{pty-handoff-vzqnst0z.js → service-contender-7q2gjnxn.js} +2 -2
- package/dist/chunks/{pty-handoff-8bbb028w.js → service-contender-8bbb028w.js} +1 -1
- package/dist/chunks/{pty-handoff-8ye1ye6f.js → service-contender-8ye1ye6f.js} +2 -2
- package/dist/chunks/{pty-handoff-yv0d8k9r.js → service-contender-e62n64we.js} +1 -12
- package/dist/chunks/{pty-handoff-ks3wweqr.js → service-contender-ks3wweqr.js} +2 -2
- package/dist/chunks/{pty-handoff-9w01f9qg.js → service-contender-p3pz1fa7.js} +6 -6
- package/dist/chunks/{pty-handoff-vcgnbtjt.js → service-contender-rdwzxfap.js} +9 -9
- package/dist/chunks/{pty-handoff-ryy6kscr.js → service-contender-ryy6kscr.js} +1 -1
- package/dist/chunks/{pty-handoff-skhp7hxc.js → service-contender-skhp7hxc.js} +1 -1
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +0 -3
- package/dist/effect/client.d.ts +0 -3
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +0 -3
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/client.js +7 -7
- package/dist/promise/generated/client-error.js +1 -1
- package/dist/promise/generated/client.js +2 -2
- package/dist/promise/generated/index.js +6 -6
- package/dist/promise/generated/types.d.ts +0 -9
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +10 -10
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +4 -4
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.d.ts +0 -2
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +13 -13
- package/dist/solid/pty.js +1 -1
- package/dist/solid/retention.js +1 -1
- package/dist/solid/usage.js +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{pty-handoff-6mptkzbc.js → service-contender-6mptkzbc.js} +0 -0
- /package/dist/chunks/{pty-handoff-6mq2wh8y.js → service-contender-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{pty-handoff-8s2anffy.js → service-contender-8s2anffy.js} +0 -0
- /package/dist/chunks/{pty-handoff-9rqn6x4v.js → service-contender-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-c46qzyff.js → service-contender-c46qzyff.js} +0 -0
- /package/dist/chunks/{pty-handoff-gne7h7mq.js → service-contender-gne7h7mq.js} +0 -0
- /package/dist/chunks/{pty-handoff-m2eywc8w.js → service-contender-m2eywc8w.js} +0 -0
- /package/dist/chunks/{pty-handoff-nwcpakzx.js → service-contender-nwcpakzx.js} +0 -0
- /package/dist/chunks/{pty-handoff-qav6mfdz.js → service-contender-qav6mfdz.js} +0 -0
- /package/dist/chunks/{pty-handoff-sxt88q69.js → service-contender-sxt88q69.js} +0 -0
- /package/dist/chunks/{pty-handoff-ve4aws36.js → service-contender-ve4aws36.js} +0 -0
- /package/dist/chunks/{pty-handoff-vmytr4q8.js → service-contender-vmytr4q8.js} +0 -0
- /package/dist/chunks/{pty-handoff-vyas3vgt.js → service-contender-vyas3vgt.js} +0 -0
- /package/dist/chunks/{pty-handoff-xgnj2w4v.js → service-contender-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{pty-handoff-y2etg5bs.js → service-contender-y2etg5bs.js} +0 -0
- /package/dist/chunks/{pty-handoff-ydhz1zrh.js → service-contender-ydhz1zrh.js} +0 -0
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
readError2,
|
|
4
4
|
event2,
|
|
5
5
|
eventType2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-ryy6kscr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/rpc.ts
|
|
12
12
|
var exports_rpc = {};
|
|
13
13
|
__export(exports_rpc, {
|
|
14
14
|
RpcClientRuntime: () => exports_rpc,
|
|
15
15
|
aborted: () => aborted2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make3
|
|
17
17
|
});
|
|
18
18
|
import { Effect, Stream } from "effect";
|
|
19
|
-
function
|
|
19
|
+
function make3(call, subscribe) {
|
|
20
20
|
return (definition) => {
|
|
21
21
|
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
22
22
|
name,
|
|
@@ -59,4 +59,4 @@ function aborted2(signal) {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { make3, aborted2, exports_rpc };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-8bbb028w.js";
|
|
4
4
|
import {
|
|
5
5
|
make6
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-ks3wweqr.js";
|
|
7
7
|
import {
|
|
8
8
|
makeRpc2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-skhp7hxc.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/promise/client.ts
|
|
15
15
|
var exports_client3 = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
headers2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-8ye1ye6f.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/pty-handoff.ts
|
|
9
9
|
var exports_pty_handoff = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultEnsureTiming2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-xgnj2w4v.js";
|
|
4
4
|
import {
|
|
5
5
|
matchesVersion2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-sxt88q69.js";
|
|
7
7
|
|
|
8
8
|
// src/service-probe.ts
|
|
9
9
|
import { homedir } from "node:os";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
isFormNotFoundError2,
|
|
3
3
|
isFormAlreadySettledError2,
|
|
4
4
|
isPermissionNotFoundError2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./service-contender-c46qzyff.js";
|
|
6
6
|
|
|
7
7
|
// src/solid/data.ts
|
|
8
8
|
import { Worktree } from "@opencode/schema/worktree";
|
|
@@ -485,7 +485,6 @@ function createData2(config) {
|
|
|
485
485
|
if (store.session.info[event.data.sessionID])
|
|
486
486
|
setStore("session", "info", event.data.sessionID, {
|
|
487
487
|
cost: event.data.cost,
|
|
488
|
-
allowance: event.data.allowance,
|
|
489
488
|
tokens: event.data.tokens
|
|
490
489
|
});
|
|
491
490
|
return;
|
|
@@ -730,7 +729,6 @@ function createData2(config) {
|
|
|
730
729
|
assistant.rawFinish = event.data.rawFinish;
|
|
731
730
|
assistant.native = event.data.native;
|
|
732
731
|
assistant.cost = event.data.cost;
|
|
733
|
-
assistant.allowance = event.data.allowance;
|
|
734
732
|
assistant.tokens = event.data.tokens;
|
|
735
733
|
if (event.data.snapshot)
|
|
736
734
|
assistant.snapshot = { ...assistant.snapshot, end: event.data.snapshot };
|
|
@@ -749,7 +747,6 @@ function createData2(config) {
|
|
|
749
747
|
assistant.retry = undefined;
|
|
750
748
|
if (event.data.cost !== undefined && event.data.tokens !== undefined) {
|
|
751
749
|
assistant.cost = event.data.cost;
|
|
752
|
-
assistant.allowance = event.data.allowance;
|
|
753
750
|
assistant.tokens = event.data.tokens;
|
|
754
751
|
}
|
|
755
752
|
});
|
|
@@ -1216,14 +1213,6 @@ function createData2(config) {
|
|
|
1216
1213
|
return session.cost;
|
|
1217
1214
|
return (store.session.family[sessionID] ?? [sessionID]).reduce((total, id) => total + (store.session.info[id]?.cost ?? 0), 0);
|
|
1218
1215
|
},
|
|
1219
|
-
allowance(sessionID) {
|
|
1220
|
-
const session = store.session.info[sessionID];
|
|
1221
|
-
if (!session)
|
|
1222
|
-
return 0;
|
|
1223
|
-
if (session.parentID)
|
|
1224
|
-
return session.allowance ?? 0;
|
|
1225
|
-
return (store.session.family[sessionID] ?? [sessionID]).reduce((total, id) => total + (store.session.info[id]?.allowance ?? 0), 0);
|
|
1226
|
-
},
|
|
1227
1216
|
status(sessionID) {
|
|
1228
1217
|
return store.session.active[sessionID] ?? "idle";
|
|
1229
1218
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-nwcpakzx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/promise/generated/client.ts
|
|
9
9
|
var exports_client4 = {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientApi2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-vmytr4q8.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/effect/generated/client.ts
|
|
12
12
|
var exports_client2 = {};
|
|
13
13
|
__export(exports_client2, {
|
|
14
|
-
make: () =>
|
|
14
|
+
make: () => make4
|
|
15
15
|
});
|
|
16
16
|
import { Effect, Stream, Schema } from "effect";
|
|
17
17
|
import { Sse } from "effect/encoding";
|
|
@@ -651,6 +651,6 @@ var adaptClient = (raw) => ({
|
|
|
651
651
|
usage: adaptGroupUsage(raw["server.usage"]),
|
|
652
652
|
config: adaptGroupConfig(raw["server.config"])
|
|
653
653
|
});
|
|
654
|
-
var
|
|
654
|
+
var make4 = (options) => HttpApiClient.make(ClientApi2, options).pipe(Effect.map(adaptClient));
|
|
655
655
|
|
|
656
|
-
export {
|
|
656
|
+
export { make4, exports_client2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make7
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./service-contender-8bbb028w.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./service-contender-y2etg5bs.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
make4
|
|
9
|
+
} from "./service-contender-p3pz1fa7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
make3,
|
|
12
12
|
aborted2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./service-contender-15p82y03.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./service-contender-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/effect/client.ts
|
|
19
19
|
var exports_client = {};
|
|
@@ -30,7 +30,7 @@ var CurrentHeaders = Context.Reference("@opencode/client/effect/rpc/headers", {
|
|
|
30
30
|
});
|
|
31
31
|
var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
32
32
|
const httpClient = yield* HttpClient.HttpClient;
|
|
33
|
-
const raw = yield*
|
|
33
|
+
const raw = yield* make4(options).pipe(Effect.provideService(HttpClient.HttpClient, HttpClient.mapRequestEffect(httpClient, (request) => Effect.map(CurrentHeaders, (headers) => headers ? HttpClientRequest.setHeaders(request, new Headers(headers)) : request))));
|
|
34
34
|
const context = yield* Effect.context();
|
|
35
35
|
const native = raw.event.subscribe();
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ var make2 = Effect.fn("OpenCode.make")(function* (options) {
|
|
|
45
45
|
return {
|
|
46
46
|
...raw,
|
|
47
47
|
event: { ...raw.event, subscribe },
|
|
48
|
-
rpc: Object.assign(
|
|
48
|
+
rpc: Object.assign(make3((input, options) => raw.rpc.call(input).pipe(Effect.provideService(CurrentHeaders, options?.headers)), subscribe), raw.rpc)
|
|
49
49
|
};
|
|
50
50
|
});
|
|
51
51
|
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -1070,7 +1070,6 @@ export type SessionLogOutput = ({
|
|
|
1070
1070
|
readonly rawFinish?: string | undefined;
|
|
1071
1071
|
readonly native?: SessionMessage.Native | undefined;
|
|
1072
1072
|
readonly cost: Money.USD;
|
|
1073
|
-
readonly allowance?: Money.USD | undefined;
|
|
1074
1073
|
readonly tokens: {
|
|
1075
1074
|
readonly input: number;
|
|
1076
1075
|
readonly output: number;
|
|
@@ -1115,7 +1114,6 @@ export type SessionLogOutput = ({
|
|
|
1115
1114
|
readonly rawFinish?: string | undefined;
|
|
1116
1115
|
readonly native?: SessionMessage.Native | undefined;
|
|
1117
1116
|
readonly cost?: Money.USD | undefined;
|
|
1118
|
-
readonly allowance?: Money.USD | undefined;
|
|
1119
1117
|
readonly tokens?: {
|
|
1120
1118
|
readonly input: number;
|
|
1121
1119
|
readonly output: number;
|
|
@@ -1592,7 +1590,6 @@ export type SessionLogOutput = ({
|
|
|
1592
1590
|
readonly sessionID: Session.ID;
|
|
1593
1591
|
readonly source: "title" | "compaction";
|
|
1594
1592
|
readonly cost: Money.USD;
|
|
1595
|
-
readonly allowance?: Money.USD | undefined;
|
|
1596
1593
|
readonly tokens: {
|
|
1597
1594
|
readonly input: number;
|
|
1598
1595
|
readonly output: number;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -1145,7 +1145,6 @@ export declare const make: (options?: {
|
|
|
1145
1145
|
readonly [x: string]: unknown;
|
|
1146
1146
|
} | undefined;
|
|
1147
1147
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1148
|
-
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1149
1148
|
readonly tokens: {
|
|
1150
1149
|
readonly input: number;
|
|
1151
1150
|
readonly output: number;
|
|
@@ -1192,7 +1191,6 @@ export declare const make: (options?: {
|
|
|
1192
1191
|
readonly [x: string]: unknown;
|
|
1193
1192
|
} | undefined;
|
|
1194
1193
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1195
|
-
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1196
1194
|
readonly tokens?: {
|
|
1197
1195
|
readonly input: number;
|
|
1198
1196
|
readonly output: number;
|
|
@@ -2360,7 +2358,6 @@ export declare const make: (options?: {
|
|
|
2360
2358
|
readonly data: {
|
|
2361
2359
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2362
2360
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2363
|
-
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2364
2361
|
readonly tokens: {
|
|
2365
2362
|
readonly input: number;
|
|
2366
2363
|
readonly output: number;
|
package/dist/effect/client.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make2,
|
|
3
3
|
exports_client
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/service-contender-rdwzxfap.js";
|
|
5
|
+
import"../chunks/service-contender-6mptkzbc.js";
|
|
6
|
+
import"../chunks/service-contender-15p82y03.js";
|
|
7
|
+
import"../chunks/service-contender-p3pz1fa7.js";
|
|
8
|
+
import"../chunks/service-contender-y2etg5bs.js";
|
|
9
|
+
import"../chunks/service-contender-ryy6kscr.js";
|
|
10
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
11
|
+
import"../chunks/service-contender-vmytr4q8.js";
|
|
12
12
|
export {
|
|
13
13
|
exports_client as OpenCode,
|
|
14
14
|
make2 as make
|
|
@@ -1070,7 +1070,6 @@ export declare const make: (options?: {
|
|
|
1070
1070
|
readonly [x: string]: unknown;
|
|
1071
1071
|
} | undefined;
|
|
1072
1072
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1073
|
-
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1074
1073
|
readonly tokens: {
|
|
1075
1074
|
readonly input: number;
|
|
1076
1075
|
readonly output: number;
|
|
@@ -1117,7 +1116,6 @@ export declare const make: (options?: {
|
|
|
1117
1116
|
readonly [x: string]: unknown;
|
|
1118
1117
|
} | undefined;
|
|
1119
1118
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1120
|
-
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1121
1119
|
readonly tokens?: {
|
|
1122
1120
|
readonly input: number;
|
|
1123
1121
|
readonly output: number;
|
|
@@ -2285,7 +2283,6 @@ export declare const make: (options?: {
|
|
|
2285
2283
|
readonly data: {
|
|
2286
2284
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2287
2285
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2288
|
-
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2289
2286
|
readonly tokens: {
|
|
2290
2287
|
readonly input: number;
|
|
2291
2288
|
readonly output: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
2
|
+
make4
|
|
3
|
+
} from "../../chunks/service-contender-p3pz1fa7.js";
|
|
4
|
+
import"../../chunks/service-contender-y2etg5bs.js";
|
|
5
|
+
import"../../chunks/service-contender-vmytr4q8.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
make4 as make
|
|
8
8
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/service-contender-6mptkzbc.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client2
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/service-contender-p3pz1fa7.js";
|
|
5
5
|
import {
|
|
6
6
|
ClientError2
|
|
7
|
-
} from "../../chunks/
|
|
8
|
-
import"../../chunks/
|
|
7
|
+
} from "../../chunks/service-contender-y2etg5bs.js";
|
|
8
|
+
import"../../chunks/service-contender-vmytr4q8.js";
|
|
9
9
|
export {
|
|
10
10
|
ClientError2 as ClientError,
|
|
11
11
|
exports_client2 as OpenCode
|
package/dist/effect/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientError2
|
|
3
|
-
} from "../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
3
|
+
} from "../chunks/service-contender-y2etg5bs.js";
|
|
4
|
+
import"../chunks/service-contender-vmytr4q8.js";
|
|
5
|
+
import"../chunks/service-contender-p3pz1fa7.js";
|
|
6
|
+
import"../chunks/service-contender-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
8
|
+
import"../chunks/service-contender-ryy6kscr.js";
|
|
9
|
+
import"../chunks/service-contender-15p82y03.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_client
|
|
12
|
-
} from "../chunks/
|
|
12
|
+
} from "../chunks/service-contender-rdwzxfap.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
make3,
|
|
3
3
|
aborted2,
|
|
4
4
|
exports_rpc
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/service-contender-15p82y03.js";
|
|
6
|
+
import"../chunks/service-contender-ryy6kscr.js";
|
|
7
7
|
export {
|
|
8
8
|
exports_rpc as RpcClientRuntime,
|
|
9
9
|
aborted2 as aborted,
|
|
10
|
-
|
|
10
|
+
make3 as make
|
|
11
11
|
};
|
package/dist/effect/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/service-contender-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/service-contender-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/service-contender-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/service-contender-8ye1ye6f.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/service-contender-7q2gjnxn.js";
|
|
25
|
+
import"../chunks/service-contender-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/effect/service.ts
|
|
28
28
|
import { Effect, FileSystem, Option, Schedule, Schema } from "effect";
|
package/dist/promise/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make5,
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/service-contender-6d27dksz.js";
|
|
5
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-contender-ks3wweqr.js";
|
|
7
|
+
import"../chunks/service-contender-nwcpakzx.js";
|
|
8
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
9
|
+
import"../chunks/service-contender-c46qzyff.js";
|
|
10
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client3 as OpenCode,
|
|
13
13
|
make5 as make
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/service-contender-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/
|
|
4
|
+
} from "../../chunks/service-contender-ks3wweqr.js";
|
|
5
|
+
import {
|
|
6
|
+
ClientError3
|
|
7
|
+
} from "../../chunks/service-contender-nwcpakzx.js";
|
|
5
8
|
import {
|
|
6
9
|
isInvalidRequestError2,
|
|
7
10
|
isUnauthorizedError2,
|
|
@@ -37,10 +40,7 @@ import {
|
|
|
37
40
|
isShellNotFoundError2,
|
|
38
41
|
isWorktreeError2,
|
|
39
42
|
isVcsInitNotSupportedError2
|
|
40
|
-
} from "../../chunks/
|
|
41
|
-
import {
|
|
42
|
-
ClientError3
|
|
43
|
-
} from "../../chunks/pty-handoff-nwcpakzx.js";
|
|
43
|
+
} from "../../chunks/service-contender-c46qzyff.js";
|
|
44
44
|
export {
|
|
45
45
|
ClientError3 as ClientError,
|
|
46
46
|
exports_client4 as OpenCode,
|
|
@@ -1812,7 +1812,6 @@ export type SessionStepEnded = {
|
|
|
1812
1812
|
rawFinish?: string;
|
|
1813
1813
|
native?: SessionMessageNative1;
|
|
1814
1814
|
cost: MoneyUSD;
|
|
1815
|
-
allowance?: MoneyUSD;
|
|
1816
1815
|
tokens: TokenUsageInfo;
|
|
1817
1816
|
snapshot?: SnapshotID;
|
|
1818
1817
|
files?: Array<RelativePath>;
|
|
@@ -1839,7 +1838,6 @@ export type SessionStepFailed = {
|
|
|
1839
1838
|
rawFinish?: string;
|
|
1840
1839
|
native?: SessionMessageNative1;
|
|
1841
1840
|
cost?: MoneyUSD;
|
|
1842
|
-
allowance?: MoneyUSD;
|
|
1843
1841
|
tokens?: TokenUsageInfo;
|
|
1844
1842
|
snapshot?: SnapshotID;
|
|
1845
1843
|
files?: Array<RelativePath>;
|
|
@@ -2145,7 +2143,6 @@ export type SessionUsageRecorded = {
|
|
|
2145
2143
|
sessionID: SessionID;
|
|
2146
2144
|
source: "title" | "compaction";
|
|
2147
2145
|
cost: MoneyUSD;
|
|
2148
|
-
allowance?: MoneyUSD;
|
|
2149
2146
|
tokens: TokenUsageInfo;
|
|
2150
2147
|
};
|
|
2151
2148
|
};
|
|
@@ -2243,7 +2240,6 @@ export type SessionUsageUpdated = {
|
|
|
2243
2240
|
data: {
|
|
2244
2241
|
sessionID: SessionID;
|
|
2245
2242
|
cost: MoneyUSD;
|
|
2246
|
-
allowance?: MoneyUSD;
|
|
2247
2243
|
tokens: TokenUsageInfo;
|
|
2248
2244
|
};
|
|
2249
2245
|
};
|
|
@@ -2967,7 +2963,6 @@ export type SessionInfo = {
|
|
|
2967
2963
|
agent?: AgentID;
|
|
2968
2964
|
model?: ModelRef;
|
|
2969
2965
|
cost: MoneyUSD;
|
|
2970
|
-
allowance?: MoneyUSD;
|
|
2971
2966
|
tokens: TokenUsageInfo;
|
|
2972
2967
|
outcome?: "succeeded" | "failed" | "interrupted";
|
|
2973
2968
|
time: {
|
|
@@ -3409,7 +3404,6 @@ export type SessionMessageAssistant = {
|
|
|
3409
3404
|
rawFinish?: string;
|
|
3410
3405
|
native?: SessionMessageNative;
|
|
3411
3406
|
cost?: MoneyUSD;
|
|
3412
|
-
allowance?: MoneyUSD;
|
|
3413
3407
|
tokens?: TokenUsageInfo;
|
|
3414
3408
|
error?: SessionStructuredError;
|
|
3415
3409
|
retry?: SessionMessageAssistantRetry;
|
|
@@ -4166,7 +4160,6 @@ export type SessionImportInput = {
|
|
|
4166
4160
|
readonly variant?: string;
|
|
4167
4161
|
};
|
|
4168
4162
|
readonly cost: number;
|
|
4169
|
-
readonly allowance?: number;
|
|
4170
4163
|
readonly tokens: {
|
|
4171
4164
|
readonly input: number;
|
|
4172
4165
|
readonly output: number;
|
|
@@ -4237,7 +4230,6 @@ export type SessionImportInput = {
|
|
|
4237
4230
|
readonly variant?: string;
|
|
4238
4231
|
};
|
|
4239
4232
|
readonly cost: number;
|
|
4240
|
-
readonly allowance?: number;
|
|
4241
4233
|
readonly tokens: {
|
|
4242
4234
|
readonly input: number;
|
|
4243
4235
|
readonly output: number;
|
|
@@ -4308,7 +4300,6 @@ export type SessionImportInput = {
|
|
|
4308
4300
|
readonly variant?: string;
|
|
4309
4301
|
};
|
|
4310
4302
|
readonly cost: number;
|
|
4311
|
-
readonly allowance?: number;
|
|
4312
4303
|
readonly tokens: {
|
|
4313
4304
|
readonly input: number;
|
|
4314
4305
|
readonly output: number;
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isShellNotFoundError2,
|
|
34
34
|
isWorktreeError2,
|
|
35
35
|
isVcsInitNotSupportedError2
|
|
36
|
-
} from "../../chunks/
|
|
36
|
+
} from "../../chunks/service-contender-c46qzyff.js";
|
|
37
37
|
export {
|
|
38
38
|
isAgentNotFoundError2 as isAgentNotFoundError,
|
|
39
39
|
isCommandExecutionError2 as isCommandExecutionError,
|
package/dist/promise/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/service-contender-m2eywc8w.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client3
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import
|
|
4
|
+
} from "../chunks/service-contender-6d27dksz.js";
|
|
5
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-contender-ks3wweqr.js";
|
|
7
|
+
import {
|
|
8
|
+
ClientError3
|
|
9
|
+
} from "../chunks/service-contender-nwcpakzx.js";
|
|
10
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
8
11
|
import {
|
|
9
12
|
isInvalidRequestError2,
|
|
10
13
|
isUnauthorizedError2,
|
|
@@ -40,11 +43,8 @@ import {
|
|
|
40
43
|
isShellNotFoundError2,
|
|
41
44
|
isWorktreeError2,
|
|
42
45
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../chunks/
|
|
44
|
-
import
|
|
45
|
-
ClientError3
|
|
46
|
-
} from "../chunks/pty-handoff-nwcpakzx.js";
|
|
47
|
-
import"../chunks/pty-handoff-8bbb028w.js";
|
|
46
|
+
} from "../chunks/service-contender-c46qzyff.js";
|
|
47
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
48
48
|
export {
|
|
49
49
|
ClientError3 as ClientError,
|
|
50
50
|
exports_client3 as OpenCode,
|
package/dist/promise/rpc.js
CHANGED
package/dist/promise/service.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
spawnServiceContender2,
|
|
3
3
|
contenderPool2
|
|
4
|
-
} from "../chunks/
|
|
4
|
+
} from "../chunks/service-contender-ve4aws36.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultEnsureTiming2,
|
|
7
7
|
ensureTiming2
|
|
8
|
-
} from "../chunks/
|
|
8
|
+
} from "../chunks/service-contender-xgnj2w4v.js";
|
|
9
9
|
import {
|
|
10
10
|
matchesVersion2
|
|
11
|
-
} from "../chunks/
|
|
11
|
+
} from "../chunks/service-contender-sxt88q69.js";
|
|
12
12
|
import {
|
|
13
13
|
decide2,
|
|
14
14
|
fallback2,
|
|
15
15
|
same2,
|
|
16
16
|
probeResult2,
|
|
17
17
|
headers2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/service-contender-8ye1ye6f.js";
|
|
19
19
|
import {
|
|
20
20
|
prepare2,
|
|
21
21
|
environment2,
|
|
22
22
|
complete2,
|
|
23
23
|
clear2
|
|
24
|
-
} from "../chunks/
|
|
25
|
-
import"../chunks/
|
|
24
|
+
} from "../chunks/service-contender-7q2gjnxn.js";
|
|
25
|
+
import"../chunks/service-contender-qav6mfdz.js";
|
|
26
26
|
|
|
27
27
|
// src/promise/service.ts
|
|
28
28
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/pty-handoff.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
complete2,
|
|
5
5
|
clear2,
|
|
6
6
|
exports_pty_handoff
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
10
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/service-contender-7q2gjnxn.js";
|
|
8
|
+
import"./chunks/service-contender-8ye1ye6f.js";
|
|
9
|
+
import"./chunks/service-contender-xgnj2w4v.js";
|
|
10
|
+
import"./chunks/service-contender-sxt88q69.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_pty_handoff as PtyHandoff,
|
|
13
13
|
clear2 as clear,
|
package/dist/rpc-runtime.js
CHANGED
package/dist/service-probe.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
same2,
|
|
5
5
|
probeResult2,
|
|
6
6
|
headers2
|
|
7
|
-
} from "./chunks/
|
|
8
|
-
import"./chunks/
|
|
9
|
-
import"./chunks/
|
|
7
|
+
} from "./chunks/service-contender-8ye1ye6f.js";
|
|
8
|
+
import"./chunks/service-contender-xgnj2w4v.js";
|
|
9
|
+
import"./chunks/service-contender-sxt88q69.js";
|
|
10
10
|
export {
|
|
11
11
|
decide2 as decide,
|
|
12
12
|
fallback2 as fallback,
|
package/dist/service-timing.js
CHANGED
package/dist/service-version.js
CHANGED
package/dist/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunks/
|
|
1
|
+
import"./chunks/service-contender-qav6mfdz.js";
|
package/dist/shared-events.js
CHANGED
package/dist/solid/connection.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
defaultIdleTimeout2,
|
|
3
3
|
foregroundIdleThreshold2,
|
|
4
4
|
createClientConnection2
|
|
5
|
-
} from "../chunks/
|
|
5
|
+
} from "../chunks/service-contender-ydhz1zrh.js";
|
|
6
6
|
export {
|
|
7
7
|
createClientConnection2 as createClientConnection,
|
|
8
8
|
defaultIdleTimeout2 as defaultIdleTimeout,
|
package/dist/solid/data.d.ts
CHANGED
|
@@ -55,8 +55,6 @@ export declare function createData(config: CreateDataInput): {
|
|
|
55
55
|
/** Clear heavy cached data for the root and all known descendants. */
|
|
56
56
|
evict(sessionID: string): void;
|
|
57
57
|
cost(sessionID: string): number;
|
|
58
|
-
/** Subscription allowance used instead of money, such as OpenCode Go's; a root session's includes its family. */
|
|
59
|
-
allowance(sessionID: string): number;
|
|
60
58
|
status(sessionID: string): DataSessionStatus;
|
|
61
59
|
active(): string[];
|
|
62
60
|
input: {
|
package/dist/solid/data.js
CHANGED
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
settleMs2,
|
|
3
3
|
locationKey2,
|
|
4
4
|
createData2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/service-contender-e62n64we.js";
|
|
6
|
+
import"../chunks/service-contender-m2eywc8w.js";
|
|
7
|
+
import"../chunks/service-contender-6d27dksz.js";
|
|
8
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
9
|
+
import"../chunks/service-contender-ks3wweqr.js";
|
|
10
|
+
import"../chunks/service-contender-nwcpakzx.js";
|
|
11
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
12
|
+
import"../chunks/service-contender-c46qzyff.js";
|
|
13
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
14
14
|
export {
|
|
15
15
|
createData2 as createData,
|
|
16
16
|
locationKey2 as locationKey,
|
package/dist/solid/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import"../chunks/
|
|
2
|
-
import"../chunks/
|
|
3
|
-
import"../chunks/
|
|
4
|
-
import"../chunks/
|
|
5
|
-
import"../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
1
|
+
import"../chunks/service-contender-nwcpakzx.js";
|
|
2
|
+
import"../chunks/service-contender-ks3wweqr.js";
|
|
3
|
+
import"../chunks/service-contender-c46qzyff.js";
|
|
4
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
5
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
6
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
7
|
+
import"../chunks/service-contender-6d27dksz.js";
|
|
8
|
+
import"../chunks/service-contender-m2eywc8w.js";
|
|
9
9
|
import {
|
|
10
10
|
settleMs2,
|
|
11
11
|
locationKey2,
|
|
12
12
|
createData2
|
|
13
|
-
} from "../chunks/
|
|
13
|
+
} from "../chunks/service-contender-e62n64we.js";
|
|
14
14
|
import {
|
|
15
15
|
defaultIdleTimeout2,
|
|
16
16
|
foregroundIdleThreshold2,
|
|
17
17
|
createClientConnection2
|
|
18
|
-
} from "../chunks/
|
|
18
|
+
} from "../chunks/service-contender-ydhz1zrh.js";
|
|
19
19
|
import {
|
|
20
20
|
createPtyClient2,
|
|
21
21
|
createPersistentPtyClient2
|
|
22
|
-
} from "../chunks/
|
|
22
|
+
} from "../chunks/service-contender-gne7h7mq.js";
|
|
23
23
|
import {
|
|
24
24
|
createSessionRetention2
|
|
25
|
-
} from "../chunks/
|
|
25
|
+
} from "../chunks/service-contender-6mq2wh8y.js";
|
|
26
26
|
import {
|
|
27
27
|
lastAssistantWithUsage2
|
|
28
|
-
} from "../chunks/
|
|
28
|
+
} from "../chunks/service-contender-8s2anffy.js";
|
|
29
29
|
export {
|
|
30
30
|
createClientConnection2 as createClientConnection,
|
|
31
31
|
createData2 as createData,
|
package/dist/solid/pty.js
CHANGED
package/dist/solid/retention.js
CHANGED
package/dist/solid/usage.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-21787",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"typecheck:tsc": "tsc --noEmit"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@opencode/schema": "0.0.0-dev-
|
|
66
|
-
"@opencode/protocol": "0.0.0-dev-
|
|
65
|
+
"@opencode/schema": "0.0.0-dev-21787",
|
|
66
|
+
"@opencode/protocol": "0.0.0-dev-21787"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"effect": "4.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@effect/platform-node": "4.0.1",
|
|
82
82
|
"@modelcontextprotocol/client": "2.3.1",
|
|
83
|
-
"@opencode/httpapi-codegen": "0.0.0-dev-
|
|
83
|
+
"@opencode/httpapi-codegen": "0.0.0-dev-21787",
|
|
84
84
|
"@tsconfig/bun": "1.0.9",
|
|
85
85
|
"@types/bun": "1.4.3",
|
|
86
86
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|