@opencode-ai/client 0.0.0-next-15716 → 0.0.0-next-15717
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.
|
@@ -1376,6 +1376,36 @@ export declare const make: (options?: {
|
|
|
1376
1376
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1377
1377
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1378
1378
|
} | undefined;
|
|
1379
|
+
} | {
|
|
1380
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1381
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1382
|
+
readonly type: "session.usage.recorded";
|
|
1383
|
+
readonly durable: {
|
|
1384
|
+
readonly aggregateID: string;
|
|
1385
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
1386
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
1387
|
+
};
|
|
1388
|
+
readonly data: {
|
|
1389
|
+
readonly source: "compaction" | "title";
|
|
1390
|
+
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1391
|
+
readonly tokens: {
|
|
1392
|
+
readonly input: number;
|
|
1393
|
+
readonly output: number;
|
|
1394
|
+
readonly reasoning: number;
|
|
1395
|
+
readonly cache: {
|
|
1396
|
+
readonly read: number;
|
|
1397
|
+
readonly write: number;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
1401
|
+
};
|
|
1402
|
+
readonly metadata?: {
|
|
1403
|
+
readonly [x: string]: unknown;
|
|
1404
|
+
} | undefined;
|
|
1405
|
+
readonly location?: {
|
|
1406
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1407
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
1408
|
+
} | undefined;
|
|
1379
1409
|
} | {
|
|
1380
1410
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
1381
1411
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -1278,6 +1278,26 @@ export type SessionRevertCommitted = {
|
|
|
1278
1278
|
to: string;
|
|
1279
1279
|
};
|
|
1280
1280
|
};
|
|
1281
|
+
export type SessionUsageRecorded = {
|
|
1282
|
+
id: string;
|
|
1283
|
+
created: number;
|
|
1284
|
+
metadata?: {
|
|
1285
|
+
[x: string]: any;
|
|
1286
|
+
};
|
|
1287
|
+
type: "session.usage.recorded";
|
|
1288
|
+
durable: {
|
|
1289
|
+
aggregateID: string;
|
|
1290
|
+
seq: number;
|
|
1291
|
+
version: 1;
|
|
1292
|
+
};
|
|
1293
|
+
location?: LocationRef;
|
|
1294
|
+
data: {
|
|
1295
|
+
sessionID: string;
|
|
1296
|
+
source: "title" | "compaction";
|
|
1297
|
+
cost: MoneyUSD;
|
|
1298
|
+
tokens: TokenUsageInfo;
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1281
1301
|
export type ModelsDevRefreshed = {
|
|
1282
1302
|
id: string;
|
|
1283
1303
|
created: number;
|
|
@@ -3023,7 +3043,7 @@ export type FormCreated = {
|
|
|
3023
3043
|
form: FormInfo1;
|
|
3024
3044
|
};
|
|
3025
3045
|
};
|
|
3026
|
-
export type SessionEventDurable = SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted;
|
|
3046
|
+
export type SessionEventDurable = SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionDeleted | SessionForked | SessionInputPromoted | SessionInputAdmitted | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionAdmitted | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded;
|
|
3027
3047
|
export type SessionMessagesResponse = {
|
|
3028
3048
|
data: Array<SessionMessageInfo>;
|
|
3029
3049
|
cursor: {
|
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-15717",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typecheck": "tsgo --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
57
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
56
|
+
"@opencode-ai/schema": "0.0.0-next-15717",
|
|
57
|
+
"@opencode-ai/protocol": "0.0.0-next-15717"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"effect": "4.0.0-beta.83"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@effect/platform-node": "4.0.0-beta.83",
|
|
69
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
69
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-15717",
|
|
70
70
|
"@tsconfig/bun": "1.0.9",
|
|
71
71
|
"@types/bun": "1.3.13",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|