@opencode-ai/client 0.0.0-next-15079 → 0.0.0-next-15080
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.
|
@@ -1664,6 +1664,16 @@ export declare const make: (options?: {
|
|
|
1664
1664
|
readonly message: string;
|
|
1665
1665
|
};
|
|
1666
1666
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1667
|
+
readonly cost?: number | undefined;
|
|
1668
|
+
readonly tokens?: {
|
|
1669
|
+
readonly input: number;
|
|
1670
|
+
readonly output: number;
|
|
1671
|
+
readonly reasoning: number;
|
|
1672
|
+
readonly cache: {
|
|
1673
|
+
readonly read: number;
|
|
1674
|
+
readonly write: number;
|
|
1675
|
+
};
|
|
1676
|
+
} | undefined;
|
|
1667
1677
|
};
|
|
1668
1678
|
readonly metadata?: {
|
|
1669
1679
|
readonly [x: string]: unknown;
|
|
@@ -3778,6 +3788,30 @@ export declare const make: (options?: {
|
|
|
3778
3788
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
3779
3789
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
3780
3790
|
} | undefined;
|
|
3791
|
+
} | {
|
|
3792
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3793
|
+
readonly created: import("effect/DateTime").Utc;
|
|
3794
|
+
readonly type: "session.usage.updated";
|
|
3795
|
+
readonly data: {
|
|
3796
|
+
readonly cost: number;
|
|
3797
|
+
readonly tokens: {
|
|
3798
|
+
readonly input: number;
|
|
3799
|
+
readonly output: number;
|
|
3800
|
+
readonly reasoning: number;
|
|
3801
|
+
readonly cache: {
|
|
3802
|
+
readonly read: number;
|
|
3803
|
+
readonly write: number;
|
|
3804
|
+
};
|
|
3805
|
+
};
|
|
3806
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
3807
|
+
};
|
|
3808
|
+
readonly metadata?: {
|
|
3809
|
+
readonly [x: string]: unknown;
|
|
3810
|
+
} | undefined;
|
|
3811
|
+
readonly location?: {
|
|
3812
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
3813
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
3814
|
+
} | undefined;
|
|
3781
3815
|
} | {
|
|
3782
3816
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
3783
3817
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -4187,6 +4221,16 @@ export declare const make: (options?: {
|
|
|
4187
4221
|
readonly message: string;
|
|
4188
4222
|
};
|
|
4189
4223
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4224
|
+
readonly cost?: number | undefined;
|
|
4225
|
+
readonly tokens?: {
|
|
4226
|
+
readonly input: number;
|
|
4227
|
+
readonly output: number;
|
|
4228
|
+
readonly reasoning: number;
|
|
4229
|
+
readonly cache: {
|
|
4230
|
+
readonly read: number;
|
|
4231
|
+
readonly write: number;
|
|
4232
|
+
};
|
|
4233
|
+
} | undefined;
|
|
4190
4234
|
};
|
|
4191
4235
|
readonly metadata?: {
|
|
4192
4236
|
readonly [x: string]: unknown;
|
|
@@ -2121,6 +2121,16 @@ export type SessionLogOutput = ({
|
|
|
2121
2121
|
readonly type: string;
|
|
2122
2122
|
readonly message: string;
|
|
2123
2123
|
};
|
|
2124
|
+
readonly cost?: number;
|
|
2125
|
+
readonly tokens?: {
|
|
2126
|
+
readonly input: number;
|
|
2127
|
+
readonly output: number;
|
|
2128
|
+
readonly reasoning: number;
|
|
2129
|
+
readonly cache: {
|
|
2130
|
+
readonly read: number;
|
|
2131
|
+
readonly write: number;
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2124
2134
|
};
|
|
2125
2135
|
} | {
|
|
2126
2136
|
readonly id: string;
|
|
@@ -6201,6 +6211,30 @@ export type EventSubscribeOutput = {
|
|
|
6201
6211
|
readonly sessionID: string;
|
|
6202
6212
|
readonly title: string;
|
|
6203
6213
|
};
|
|
6214
|
+
} | {
|
|
6215
|
+
readonly id: string;
|
|
6216
|
+
readonly created: number;
|
|
6217
|
+
readonly metadata?: {
|
|
6218
|
+
readonly [x: string]: unknown;
|
|
6219
|
+
};
|
|
6220
|
+
readonly type: "session.usage.updated";
|
|
6221
|
+
readonly location?: {
|
|
6222
|
+
readonly directory: string;
|
|
6223
|
+
readonly workspaceID?: string;
|
|
6224
|
+
};
|
|
6225
|
+
readonly data: {
|
|
6226
|
+
readonly sessionID: string;
|
|
6227
|
+
readonly cost: number;
|
|
6228
|
+
readonly tokens: {
|
|
6229
|
+
readonly input: number;
|
|
6230
|
+
readonly output: number;
|
|
6231
|
+
readonly reasoning: number;
|
|
6232
|
+
readonly cache: {
|
|
6233
|
+
readonly read: number;
|
|
6234
|
+
readonly write: number;
|
|
6235
|
+
};
|
|
6236
|
+
};
|
|
6237
|
+
};
|
|
6204
6238
|
} | {
|
|
6205
6239
|
readonly id: string;
|
|
6206
6240
|
readonly created: number;
|
|
@@ -6617,6 +6651,16 @@ export type EventSubscribeOutput = {
|
|
|
6617
6651
|
readonly type: string;
|
|
6618
6652
|
readonly message: string;
|
|
6619
6653
|
};
|
|
6654
|
+
readonly cost?: number;
|
|
6655
|
+
readonly tokens?: {
|
|
6656
|
+
readonly input: number;
|
|
6657
|
+
readonly output: number;
|
|
6658
|
+
readonly reasoning: number;
|
|
6659
|
+
readonly cache: {
|
|
6660
|
+
readonly read: number;
|
|
6661
|
+
readonly write: number;
|
|
6662
|
+
};
|
|
6663
|
+
};
|
|
6620
6664
|
};
|
|
6621
6665
|
} | {
|
|
6622
6666
|
readonly id: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15080",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"typecheck": "tsgo --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
45
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
44
|
+
"@opencode-ai/schema": "0.0.0-next-15080",
|
|
45
|
+
"@opencode-ai/protocol": "0.0.0-next-15080"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"effect": "4.0.0-beta.83"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
57
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
57
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15080",
|
|
58
58
|
"@tsconfig/bun": "1.0.9",
|
|
59
59
|
"@types/bun": "1.3.13",
|
|
60
60
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|