@opencode-ai/protocol 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.
- package/dist/groups/session.d.ts +108 -2
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -2204,7 +2204,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2204
2204
|
}>>, HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
2205
2205
|
after: Schema.optional<Schema.compose<Schema.brand<Schema.Int, "Event.Seq">, Schema.NumberFromString>>;
|
|
2206
2206
|
follow: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
2207
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Union<readonly ((Schema.Struct<{
|
|
2207
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [Schema.Union<readonly [...((Schema.Struct<{
|
|
2208
2208
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2209
2209
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2210
2210
|
};
|
|
@@ -5026,7 +5026,83 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5026
5026
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5027
5027
|
};
|
|
5028
5028
|
}>;
|
|
5029
|
-
}))[]
|
|
5029
|
+
}))[], Schema.Struct<{
|
|
5030
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
5031
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
5032
|
+
};
|
|
5033
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5034
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5035
|
+
readonly type: Schema.Literal<"session.usage.recorded">;
|
|
5036
|
+
readonly durable: Schema.Struct<{
|
|
5037
|
+
readonly aggregateID: Schema.String;
|
|
5038
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
5039
|
+
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
5040
|
+
}>;
|
|
5041
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5042
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5043
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5044
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5045
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5046
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5047
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5048
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5049
|
+
}>, never, never>;
|
|
5050
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5051
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5052
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5053
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5054
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5055
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
5056
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5057
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
5058
|
+
}>, never, never>;
|
|
5059
|
+
}>>, never, never>;
|
|
5060
|
+
readonly data: Schema.Struct<{
|
|
5061
|
+
readonly source: Schema.Literals<readonly ["title", "compaction"]>;
|
|
5062
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5063
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5064
|
+
};
|
|
5065
|
+
readonly tokens: Schema.Struct<{
|
|
5066
|
+
readonly input: Schema.Finite;
|
|
5067
|
+
readonly output: Schema.Finite;
|
|
5068
|
+
readonly reasoning: Schema.Finite;
|
|
5069
|
+
readonly cache: Schema.Struct<{
|
|
5070
|
+
readonly read: Schema.Finite;
|
|
5071
|
+
readonly write: Schema.Finite;
|
|
5072
|
+
}>;
|
|
5073
|
+
}>;
|
|
5074
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5075
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5076
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5077
|
+
};
|
|
5078
|
+
}>;
|
|
5079
|
+
}> & {
|
|
5080
|
+
type: "session.usage.recorded";
|
|
5081
|
+
durability: "durable";
|
|
5082
|
+
durable: {
|
|
5083
|
+
readonly version: number;
|
|
5084
|
+
readonly aggregate: string;
|
|
5085
|
+
};
|
|
5086
|
+
data: Schema.Struct<{
|
|
5087
|
+
readonly source: Schema.Literals<readonly ["title", "compaction"]>;
|
|
5088
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
5089
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5090
|
+
};
|
|
5091
|
+
readonly tokens: Schema.Struct<{
|
|
5092
|
+
readonly input: Schema.Finite;
|
|
5093
|
+
readonly output: Schema.Finite;
|
|
5094
|
+
readonly reasoning: Schema.Finite;
|
|
5095
|
+
readonly cache: Schema.Struct<{
|
|
5096
|
+
readonly read: Schema.Finite;
|
|
5097
|
+
readonly write: Schema.Finite;
|
|
5098
|
+
}>;
|
|
5099
|
+
}>;
|
|
5100
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5101
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
5102
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5103
|
+
};
|
|
5104
|
+
}>;
|
|
5105
|
+
}]>, Schema.Struct<{
|
|
5030
5106
|
readonly type: Schema.Literal<"log.synced">;
|
|
5031
5107
|
readonly aggregateID: Schema.String;
|
|
5032
5108
|
readonly seq: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Int, "Event.Seq">>>, Schema.optionalKey<Schema.brand<Schema.Int, "Event.Seq">>, never, never>;
|
|
@@ -5119,6 +5195,36 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5119
5195
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
5120
5196
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
5121
5197
|
} | undefined;
|
|
5198
|
+
} | {
|
|
5199
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5200
|
+
readonly created: import("effect/DateTime").Utc;
|
|
5201
|
+
readonly type: "session.usage.recorded";
|
|
5202
|
+
readonly durable: {
|
|
5203
|
+
readonly aggregateID: string;
|
|
5204
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
5205
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5206
|
+
};
|
|
5207
|
+
readonly data: {
|
|
5208
|
+
readonly source: "compaction" | "title";
|
|
5209
|
+
readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
|
|
5210
|
+
readonly tokens: {
|
|
5211
|
+
readonly input: number;
|
|
5212
|
+
readonly output: number;
|
|
5213
|
+
readonly reasoning: number;
|
|
5214
|
+
readonly cache: {
|
|
5215
|
+
readonly read: number;
|
|
5216
|
+
readonly write: number;
|
|
5217
|
+
};
|
|
5218
|
+
};
|
|
5219
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5220
|
+
};
|
|
5221
|
+
readonly metadata?: {
|
|
5222
|
+
readonly [x: string]: unknown;
|
|
5223
|
+
} | undefined;
|
|
5224
|
+
readonly location?: {
|
|
5225
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
5226
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
5227
|
+
} | undefined;
|
|
5122
5228
|
} | {
|
|
5123
5229
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5124
5230
|
readonly created: import("effect/DateTime").Utc;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/protocol",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-15717",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsgo --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
29
|
+
"@opencode-ai/schema": "0.0.0-next-15717",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|