@opencode/client 0.0.0-dev-21765 → 0.0.0-dev-21766
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/{rpc-runtime-15p82y03.js → service-contender-15p82y03.js} +2 -2
- package/dist/chunks/{rpc-runtime-vcfz7hgy.js → service-contender-1y5v2sf1.js} +5 -5
- package/dist/chunks/{rpc-runtime-q9njyn2p.js → service-contender-41qrv0nj.js} +2 -2
- package/dist/chunks/{rpc-runtime-8bbb028w.js → service-contender-8bbb028w.js} +1 -1
- package/dist/chunks/{rpc-runtime-8ye1ye6f.js → service-contender-8ye1ye6f.js} +2 -2
- package/dist/chunks/{rpc-runtime-bf2btzd2.js → service-contender-bm83m8es.js} +12 -1
- package/dist/chunks/{rpc-runtime-m7bh361g.js → service-contender-m7bh361g.js} +2 -2
- package/dist/chunks/{rpc-runtime-r883az1h.js → service-contender-rdbmqddf.js} +4 -4
- package/dist/chunks/{rpc-runtime-ryy6kscr.js → service-contender-ryy6kscr.js} +1 -1
- package/dist/chunks/{rpc-runtime-skhp7hxc.js → service-contender-skhp7hxc.js} +1 -1
- package/dist/chunks/{rpc-runtime-zyytsm9r.js → service-contender-zyytsm9r.js} +3 -3
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +3 -0
- package/dist/effect/client.d.ts +3 -0
- package/dist/effect/client.js +8 -8
- package/dist/effect/generated/client-error.js +1 -1
- package/dist/effect/generated/client.d.ts +3 -0
- package/dist/effect/generated/client.js +3 -3
- package/dist/effect/generated/index.js +4 -4
- package/dist/effect/index.js +8 -8
- package/dist/effect/rpc.js +2 -2
- 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 +9 -0
- 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 +2 -0
- 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/{rpc-runtime-6mptkzbc.js → service-contender-6mptkzbc.js} +0 -0
- /package/dist/chunks/{rpc-runtime-6mq2wh8y.js → service-contender-6mq2wh8y.js} +0 -0
- /package/dist/chunks/{rpc-runtime-8s2anffy.js → service-contender-8s2anffy.js} +0 -0
- /package/dist/chunks/{rpc-runtime-9rqn6x4v.js → service-contender-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{rpc-runtime-c46qzyff.js → service-contender-c46qzyff.js} +0 -0
- /package/dist/chunks/{rpc-runtime-gne7h7mq.js → service-contender-gne7h7mq.js} +0 -0
- /package/dist/chunks/{rpc-runtime-m2eywc8w.js → service-contender-m2eywc8w.js} +0 -0
- /package/dist/chunks/{rpc-runtime-nwcpakzx.js → service-contender-nwcpakzx.js} +0 -0
- /package/dist/chunks/{rpc-runtime-qav6mfdz.js → service-contender-qav6mfdz.js} +0 -0
- /package/dist/chunks/{rpc-runtime-sxt88q69.js → service-contender-sxt88q69.js} +0 -0
- /package/dist/chunks/{rpc-runtime-ve4aws36.js → service-contender-ve4aws36.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vmytr4q8.js → service-contender-vmytr4q8.js} +0 -0
- /package/dist/chunks/{rpc-runtime-vyas3vgt.js → service-contender-vyas3vgt.js} +0 -0
- /package/dist/chunks/{rpc-runtime-xgnj2w4v.js → service-contender-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{rpc-runtime-y2etg5bs.js → service-contender-y2etg5bs.js} +0 -0
- /package/dist/chunks/{rpc-runtime-ydhz1zrh.js → service-contender-ydhz1zrh.js} +0 -0
|
@@ -3,10 +3,10 @@ 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 = {};
|
|
@@ -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
8
|
make4
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./service-contender-zyytsm9r.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 = {};
|
|
@@ -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,6 +485,7 @@ 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,
|
|
488
489
|
tokens: event.data.tokens
|
|
489
490
|
});
|
|
490
491
|
return;
|
|
@@ -729,6 +730,7 @@ function createData2(config) {
|
|
|
729
730
|
assistant.rawFinish = event.data.rawFinish;
|
|
730
731
|
assistant.native = event.data.native;
|
|
731
732
|
assistant.cost = event.data.cost;
|
|
733
|
+
assistant.allowance = event.data.allowance;
|
|
732
734
|
assistant.tokens = event.data.tokens;
|
|
733
735
|
if (event.data.snapshot)
|
|
734
736
|
assistant.snapshot = { ...assistant.snapshot, end: event.data.snapshot };
|
|
@@ -745,6 +747,7 @@ function createData2(config) {
|
|
|
745
747
|
assistant.retry = undefined;
|
|
746
748
|
if (event.data.cost !== undefined && event.data.tokens !== undefined) {
|
|
747
749
|
assistant.cost = event.data.cost;
|
|
750
|
+
assistant.allowance = event.data.allowance;
|
|
748
751
|
assistant.tokens = event.data.tokens;
|
|
749
752
|
}
|
|
750
753
|
});
|
|
@@ -1202,6 +1205,14 @@ function createData2(config) {
|
|
|
1202
1205
|
return session.cost;
|
|
1203
1206
|
return (store.session.family[sessionID] ?? [sessionID]).reduce((total, id) => total + (store.session.info[id]?.cost ?? 0), 0);
|
|
1204
1207
|
},
|
|
1208
|
+
allowance(sessionID) {
|
|
1209
|
+
const session = store.session.info[sessionID];
|
|
1210
|
+
if (!session)
|
|
1211
|
+
return 0;
|
|
1212
|
+
if (session.parentID)
|
|
1213
|
+
return session.allowance ?? 0;
|
|
1214
|
+
return (store.session.family[sessionID] ?? [sessionID]).reduce((total, id) => total + (store.session.info[id]?.allowance ?? 0), 0);
|
|
1215
|
+
},
|
|
1205
1216
|
status(sessionID) {
|
|
1206
1217
|
return store.session.active[sessionID] ?? "idle";
|
|
1207
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,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-m7bh361g.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,12 +1,12 @@
|
|
|
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 = {};
|
package/dist/contract.js
CHANGED
package/dist/effect/api/api.d.ts
CHANGED
|
@@ -1069,6 +1069,7 @@ export type SessionLogOutput = ({
|
|
|
1069
1069
|
readonly rawFinish?: string | undefined;
|
|
1070
1070
|
readonly native?: SessionMessage.Native | undefined;
|
|
1071
1071
|
readonly cost: Money.USD;
|
|
1072
|
+
readonly allowance?: Money.USD | undefined;
|
|
1072
1073
|
readonly tokens: {
|
|
1073
1074
|
readonly input: number;
|
|
1074
1075
|
readonly output: number;
|
|
@@ -1113,6 +1114,7 @@ export type SessionLogOutput = ({
|
|
|
1113
1114
|
readonly rawFinish?: string | undefined;
|
|
1114
1115
|
readonly native?: SessionMessage.Native | undefined;
|
|
1115
1116
|
readonly cost?: Money.USD | undefined;
|
|
1117
|
+
readonly allowance?: Money.USD | undefined;
|
|
1116
1118
|
readonly tokens?: {
|
|
1117
1119
|
readonly input: number;
|
|
1118
1120
|
readonly output: number;
|
|
@@ -1589,6 +1591,7 @@ export type SessionLogOutput = ({
|
|
|
1589
1591
|
readonly sessionID: Session.ID;
|
|
1590
1592
|
readonly source: "title" | "compaction";
|
|
1591
1593
|
readonly cost: Money.USD;
|
|
1594
|
+
readonly allowance?: Money.USD | undefined;
|
|
1592
1595
|
readonly tokens: {
|
|
1593
1596
|
readonly input: number;
|
|
1594
1597
|
readonly output: number;
|
package/dist/effect/client.d.ts
CHANGED
|
@@ -1142,6 +1142,7 @@ export declare const make: (options?: {
|
|
|
1142
1142
|
readonly [x: string]: unknown;
|
|
1143
1143
|
} | undefined;
|
|
1144
1144
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1145
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1145
1146
|
readonly tokens: {
|
|
1146
1147
|
readonly input: number;
|
|
1147
1148
|
readonly output: number;
|
|
@@ -1188,6 +1189,7 @@ export declare const make: (options?: {
|
|
|
1188
1189
|
readonly [x: string]: unknown;
|
|
1189
1190
|
} | undefined;
|
|
1190
1191
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1192
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1191
1193
|
readonly tokens?: {
|
|
1192
1194
|
readonly input: number;
|
|
1193
1195
|
readonly output: number;
|
|
@@ -2355,6 +2357,7 @@ export declare const make: (options?: {
|
|
|
2355
2357
|
readonly data: {
|
|
2356
2358
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2357
2359
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2360
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2358
2361
|
readonly tokens: {
|
|
2359
2362
|
readonly input: number;
|
|
2360
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-1y5v2sf1.js";
|
|
5
|
+
import"../chunks/service-contender-15p82y03.js";
|
|
6
|
+
import"../chunks/service-contender-6mptkzbc.js";
|
|
7
|
+
import"../chunks/service-contender-zyytsm9r.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,6 +1070,7 @@ 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;
|
|
1073
1074
|
readonly tokens: {
|
|
1074
1075
|
readonly input: number;
|
|
1075
1076
|
readonly output: number;
|
|
@@ -1116,6 +1117,7 @@ export declare const make: (options?: {
|
|
|
1116
1117
|
readonly [x: string]: unknown;
|
|
1117
1118
|
} | undefined;
|
|
1118
1119
|
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1120
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1119
1121
|
readonly tokens?: {
|
|
1120
1122
|
readonly input: number;
|
|
1121
1123
|
readonly output: number;
|
|
@@ -2283,6 +2285,7 @@ export declare const make: (options?: {
|
|
|
2283
2285
|
readonly data: {
|
|
2284
2286
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2285
2287
|
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2288
|
+
readonly allowance?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2286
2289
|
readonly tokens: {
|
|
2287
2290
|
readonly input: number;
|
|
2288
2291
|
readonly output: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make4
|
|
3
|
-
} from "../../chunks/
|
|
4
|
-
import"../../chunks/
|
|
5
|
-
import"../../chunks/
|
|
3
|
+
} from "../../chunks/service-contender-zyytsm9r.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-zyytsm9r.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-zyytsm9r.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-1y5v2sf1.js";
|
|
13
13
|
|
|
14
14
|
// src/effect/index.ts
|
|
15
15
|
import { Agent } from "@opencode/schema/agent";
|
package/dist/effect/rpc.js
CHANGED
|
@@ -2,8 +2,8 @@ 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,
|
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-41qrv0nj.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-rdbmqddf.js";
|
|
5
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-contender-m7bh361g.js";
|
|
7
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
8
|
+
import"../chunks/service-contender-c46qzyff.js";
|
|
9
|
+
import"../chunks/service-contender-nwcpakzx.js";
|
|
10
|
+
import"../chunks/service-contender-8bbb028w.js";
|
|
11
11
|
export {
|
|
12
12
|
exports_client3 as OpenCode,
|
|
13
13
|
make5 as make
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import"../../chunks/
|
|
1
|
+
import"../../chunks/service-contender-vyas3vgt.js";
|
|
2
2
|
import {
|
|
3
3
|
exports_client4
|
|
4
|
-
} from "../../chunks/
|
|
5
|
-
import {
|
|
6
|
-
ClientError3
|
|
7
|
-
} from "../../chunks/rpc-runtime-nwcpakzx.js";
|
|
4
|
+
} from "../../chunks/service-contender-m7bh361g.js";
|
|
8
5
|
import {
|
|
9
6
|
isInvalidRequestError2,
|
|
10
7
|
isUnauthorizedError2,
|
|
@@ -40,7 +37,10 @@ import {
|
|
|
40
37
|
isShellNotFoundError2,
|
|
41
38
|
isWorktreeError2,
|
|
42
39
|
isVcsInitNotSupportedError2
|
|
43
|
-
} from "../../chunks/
|
|
40
|
+
} from "../../chunks/service-contender-c46qzyff.js";
|
|
41
|
+
import {
|
|
42
|
+
ClientError3
|
|
43
|
+
} from "../../chunks/service-contender-nwcpakzx.js";
|
|
44
44
|
export {
|
|
45
45
|
ClientError3 as ClientError,
|
|
46
46
|
exports_client4 as OpenCode,
|
|
@@ -1782,6 +1782,7 @@ export type SessionStepEnded = {
|
|
|
1782
1782
|
rawFinish?: string;
|
|
1783
1783
|
native?: SessionMessageNative1;
|
|
1784
1784
|
cost: MoneyUSD;
|
|
1785
|
+
allowance?: MoneyUSD;
|
|
1785
1786
|
tokens: TokenUsageInfo;
|
|
1786
1787
|
snapshot?: SnapshotID;
|
|
1787
1788
|
files?: Array<RelativePath>;
|
|
@@ -1808,6 +1809,7 @@ export type SessionStepFailed = {
|
|
|
1808
1809
|
rawFinish?: string;
|
|
1809
1810
|
native?: SessionMessageNative1;
|
|
1810
1811
|
cost?: MoneyUSD;
|
|
1812
|
+
allowance?: MoneyUSD;
|
|
1811
1813
|
tokens?: TokenUsageInfo;
|
|
1812
1814
|
snapshot?: SnapshotID;
|
|
1813
1815
|
files?: Array<RelativePath>;
|
|
@@ -2113,6 +2115,7 @@ export type SessionUsageRecorded = {
|
|
|
2113
2115
|
sessionID: SessionID;
|
|
2114
2116
|
source: "title" | "compaction";
|
|
2115
2117
|
cost: MoneyUSD;
|
|
2118
|
+
allowance?: MoneyUSD;
|
|
2116
2119
|
tokens: TokenUsageInfo;
|
|
2117
2120
|
};
|
|
2118
2121
|
};
|
|
@@ -2210,6 +2213,7 @@ export type SessionUsageUpdated = {
|
|
|
2210
2213
|
data: {
|
|
2211
2214
|
sessionID: SessionID;
|
|
2212
2215
|
cost: MoneyUSD;
|
|
2216
|
+
allowance?: MoneyUSD;
|
|
2213
2217
|
tokens: TokenUsageInfo;
|
|
2214
2218
|
};
|
|
2215
2219
|
};
|
|
@@ -2933,6 +2937,7 @@ export type SessionInfo = {
|
|
|
2933
2937
|
agent?: AgentID;
|
|
2934
2938
|
model?: ModelRef;
|
|
2935
2939
|
cost: MoneyUSD;
|
|
2940
|
+
allowance?: MoneyUSD;
|
|
2936
2941
|
tokens: TokenUsageInfo;
|
|
2937
2942
|
outcome?: "succeeded" | "failed" | "interrupted";
|
|
2938
2943
|
time: {
|
|
@@ -3365,6 +3370,7 @@ export type SessionMessageAssistant = {
|
|
|
3365
3370
|
rawFinish?: string;
|
|
3366
3371
|
native?: SessionMessageNative;
|
|
3367
3372
|
cost?: MoneyUSD;
|
|
3373
|
+
allowance?: MoneyUSD;
|
|
3368
3374
|
tokens?: TokenUsageInfo;
|
|
3369
3375
|
error?: SessionStructuredError;
|
|
3370
3376
|
retry?: SessionMessageAssistantRetry;
|
|
@@ -4121,6 +4127,7 @@ export type SessionImportInput = {
|
|
|
4121
4127
|
readonly variant?: string;
|
|
4122
4128
|
};
|
|
4123
4129
|
readonly cost: number;
|
|
4130
|
+
readonly allowance?: number;
|
|
4124
4131
|
readonly tokens: {
|
|
4125
4132
|
readonly input: number;
|
|
4126
4133
|
readonly output: number;
|
|
@@ -4191,6 +4198,7 @@ export type SessionImportInput = {
|
|
|
4191
4198
|
readonly variant?: string;
|
|
4192
4199
|
};
|
|
4193
4200
|
readonly cost: number;
|
|
4201
|
+
readonly allowance?: number;
|
|
4194
4202
|
readonly tokens: {
|
|
4195
4203
|
readonly input: number;
|
|
4196
4204
|
readonly output: number;
|
|
@@ -4261,6 +4269,7 @@ export type SessionImportInput = {
|
|
|
4261
4269
|
readonly variant?: string;
|
|
4262
4270
|
};
|
|
4263
4271
|
readonly cost: number;
|
|
4272
|
+
readonly allowance?: number;
|
|
4264
4273
|
readonly tokens: {
|
|
4265
4274
|
readonly input: number;
|
|
4266
4275
|
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,13 +1,10 @@
|
|
|
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"../chunks/
|
|
8
|
-
import {
|
|
9
|
-
ClientError3
|
|
10
|
-
} from "../chunks/rpc-runtime-nwcpakzx.js";
|
|
4
|
+
} from "../chunks/service-contender-rdbmqddf.js";
|
|
5
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
6
|
+
import"../chunks/service-contender-m7bh361g.js";
|
|
7
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
11
8
|
import {
|
|
12
9
|
isInvalidRequestError2,
|
|
13
10
|
isUnauthorizedError2,
|
|
@@ -43,8 +40,11 @@ import {
|
|
|
43
40
|
isShellNotFoundError2,
|
|
44
41
|
isWorktreeError2,
|
|
45
42
|
isVcsInitNotSupportedError2
|
|
46
|
-
} from "../chunks/
|
|
47
|
-
import
|
|
43
|
+
} from "../chunks/service-contender-c46qzyff.js";
|
|
44
|
+
import {
|
|
45
|
+
ClientError3
|
|
46
|
+
} from "../chunks/service-contender-nwcpakzx.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-41qrv0nj.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-41qrv0nj.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,6 +55,8 @@ 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;
|
|
58
60
|
status(sessionID: string): DataSessionStatus;
|
|
59
61
|
active(): string[];
|
|
60
62
|
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-bm83m8es.js";
|
|
6
|
+
import"../chunks/service-contender-m2eywc8w.js";
|
|
7
|
+
import"../chunks/service-contender-rdbmqddf.js";
|
|
8
|
+
import"../chunks/service-contender-vyas3vgt.js";
|
|
9
|
+
import"../chunks/service-contender-m7bh361g.js";
|
|
10
|
+
import"../chunks/service-contender-skhp7hxc.js";
|
|
11
|
+
import"../chunks/service-contender-c46qzyff.js";
|
|
12
|
+
import"../chunks/service-contender-nwcpakzx.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-m7bh361g.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-rdbmqddf.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-bm83m8es.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-21766",
|
|
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-21766",
|
|
66
|
+
"@opencode/protocol": "0.0.0-dev-21766"
|
|
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-21766",
|
|
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
|