@opencode-ai/protocol 0.0.0-next-15079 → 0.0.0-next-15081
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/event.d.ts +230 -0
- package/dist/groups/session.d.ts +46 -0
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -737,6 +737,68 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
737
737
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
738
738
|
};
|
|
739
739
|
}>;
|
|
740
|
+
}) | (Schema.Struct<{
|
|
741
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
742
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
743
|
+
};
|
|
744
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
745
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
746
|
+
readonly type: Schema.Literal<"session.usage.updated">;
|
|
747
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
748
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
749
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
750
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
751
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
752
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
753
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
754
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
755
|
+
}>, never, never>;
|
|
756
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
757
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
758
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
759
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
760
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
761
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
762
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
763
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
764
|
+
}>, never, never>;
|
|
765
|
+
}>>, never, never>;
|
|
766
|
+
readonly data: Schema.Struct<{
|
|
767
|
+
readonly cost: Schema.Finite;
|
|
768
|
+
readonly tokens: Schema.Struct<{
|
|
769
|
+
readonly input: Schema.Finite;
|
|
770
|
+
readonly output: Schema.Finite;
|
|
771
|
+
readonly reasoning: Schema.Finite;
|
|
772
|
+
readonly cache: Schema.Struct<{
|
|
773
|
+
readonly read: Schema.Finite;
|
|
774
|
+
readonly write: Schema.Finite;
|
|
775
|
+
}>;
|
|
776
|
+
}>;
|
|
777
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
778
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
779
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
780
|
+
};
|
|
781
|
+
}>;
|
|
782
|
+
}> & {
|
|
783
|
+
type: "session.usage.updated";
|
|
784
|
+
durability: "ephemeral";
|
|
785
|
+
durable: undefined;
|
|
786
|
+
data: Schema.Struct<{
|
|
787
|
+
readonly cost: Schema.Finite;
|
|
788
|
+
readonly tokens: Schema.Struct<{
|
|
789
|
+
readonly input: Schema.Finite;
|
|
790
|
+
readonly output: Schema.Finite;
|
|
791
|
+
readonly reasoning: Schema.Finite;
|
|
792
|
+
readonly cache: Schema.Struct<{
|
|
793
|
+
readonly read: Schema.Finite;
|
|
794
|
+
readonly write: Schema.Finite;
|
|
795
|
+
}>;
|
|
796
|
+
}>;
|
|
797
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
798
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
799
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
800
|
+
};
|
|
801
|
+
}>;
|
|
740
802
|
}) | (Schema.Struct<{
|
|
741
803
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
742
804
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -2073,6 +2135,24 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2073
2135
|
readonly type: Schema.String;
|
|
2074
2136
|
readonly message: Schema.String;
|
|
2075
2137
|
}>;
|
|
2138
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2139
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2140
|
+
readonly input: Schema.Finite;
|
|
2141
|
+
readonly output: Schema.Finite;
|
|
2142
|
+
readonly reasoning: Schema.Finite;
|
|
2143
|
+
readonly cache: Schema.Struct<{
|
|
2144
|
+
readonly read: Schema.Finite;
|
|
2145
|
+
readonly write: Schema.Finite;
|
|
2146
|
+
}>;
|
|
2147
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2148
|
+
readonly input: Schema.Finite;
|
|
2149
|
+
readonly output: Schema.Finite;
|
|
2150
|
+
readonly reasoning: Schema.Finite;
|
|
2151
|
+
readonly cache: Schema.Struct<{
|
|
2152
|
+
readonly read: Schema.Finite;
|
|
2153
|
+
readonly write: Schema.Finite;
|
|
2154
|
+
}>;
|
|
2155
|
+
}>>, never, never>;
|
|
2076
2156
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2077
2157
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2078
2158
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2094,6 +2174,24 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2094
2174
|
readonly type: Schema.String;
|
|
2095
2175
|
readonly message: Schema.String;
|
|
2096
2176
|
}>;
|
|
2177
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
2178
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2179
|
+
readonly input: Schema.Finite;
|
|
2180
|
+
readonly output: Schema.Finite;
|
|
2181
|
+
readonly reasoning: Schema.Finite;
|
|
2182
|
+
readonly cache: Schema.Struct<{
|
|
2183
|
+
readonly read: Schema.Finite;
|
|
2184
|
+
readonly write: Schema.Finite;
|
|
2185
|
+
}>;
|
|
2186
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2187
|
+
readonly input: Schema.Finite;
|
|
2188
|
+
readonly output: Schema.Finite;
|
|
2189
|
+
readonly reasoning: Schema.Finite;
|
|
2190
|
+
readonly cache: Schema.Struct<{
|
|
2191
|
+
readonly read: Schema.Finite;
|
|
2192
|
+
readonly write: Schema.Finite;
|
|
2193
|
+
}>;
|
|
2194
|
+
}>>, never, never>;
|
|
2097
2195
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2098
2196
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2099
2197
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8020,6 +8118,30 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8020
8118
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
8021
8119
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
8022
8120
|
} | undefined;
|
|
8121
|
+
} | {
|
|
8122
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8123
|
+
readonly created: import("effect/DateTime").Utc;
|
|
8124
|
+
readonly type: "session.usage.updated";
|
|
8125
|
+
readonly data: {
|
|
8126
|
+
readonly cost: number;
|
|
8127
|
+
readonly tokens: {
|
|
8128
|
+
readonly input: number;
|
|
8129
|
+
readonly output: number;
|
|
8130
|
+
readonly reasoning: number;
|
|
8131
|
+
readonly cache: {
|
|
8132
|
+
readonly read: number;
|
|
8133
|
+
readonly write: number;
|
|
8134
|
+
};
|
|
8135
|
+
};
|
|
8136
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8137
|
+
};
|
|
8138
|
+
readonly metadata?: {
|
|
8139
|
+
readonly [x: string]: unknown;
|
|
8140
|
+
} | undefined;
|
|
8141
|
+
readonly location?: {
|
|
8142
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
8143
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
8144
|
+
} | undefined;
|
|
8023
8145
|
} | {
|
|
8024
8146
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8025
8147
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -8429,6 +8551,16 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8429
8551
|
readonly message: string;
|
|
8430
8552
|
};
|
|
8431
8553
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8554
|
+
readonly cost?: number | undefined;
|
|
8555
|
+
readonly tokens?: {
|
|
8556
|
+
readonly input: number;
|
|
8557
|
+
readonly output: number;
|
|
8558
|
+
readonly reasoning: number;
|
|
8559
|
+
readonly cache: {
|
|
8560
|
+
readonly read: number;
|
|
8561
|
+
readonly write: number;
|
|
8562
|
+
};
|
|
8563
|
+
} | undefined;
|
|
8432
8564
|
};
|
|
8433
8565
|
readonly metadata?: {
|
|
8434
8566
|
readonly [x: string]: unknown;
|
|
@@ -11145,6 +11277,68 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11145
11277
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11146
11278
|
};
|
|
11147
11279
|
}>;
|
|
11280
|
+
}) | (Schema.Struct<{
|
|
11281
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11282
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11283
|
+
};
|
|
11284
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11285
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11286
|
+
readonly type: Schema.Literal<"session.usage.updated">;
|
|
11287
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11288
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11289
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11290
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11291
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11292
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11293
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11294
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11295
|
+
}>, never, never>;
|
|
11296
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11297
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11298
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11299
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11300
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11301
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11302
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11303
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11304
|
+
}>, never, never>;
|
|
11305
|
+
}>>, never, never>;
|
|
11306
|
+
readonly data: Schema.Struct<{
|
|
11307
|
+
readonly cost: Schema.Finite;
|
|
11308
|
+
readonly tokens: Schema.Struct<{
|
|
11309
|
+
readonly input: Schema.Finite;
|
|
11310
|
+
readonly output: Schema.Finite;
|
|
11311
|
+
readonly reasoning: Schema.Finite;
|
|
11312
|
+
readonly cache: Schema.Struct<{
|
|
11313
|
+
readonly read: Schema.Finite;
|
|
11314
|
+
readonly write: Schema.Finite;
|
|
11315
|
+
}>;
|
|
11316
|
+
}>;
|
|
11317
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11318
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11319
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11320
|
+
};
|
|
11321
|
+
}>;
|
|
11322
|
+
}> & {
|
|
11323
|
+
type: "session.usage.updated";
|
|
11324
|
+
durability: "ephemeral";
|
|
11325
|
+
durable: undefined;
|
|
11326
|
+
data: Schema.Struct<{
|
|
11327
|
+
readonly cost: Schema.Finite;
|
|
11328
|
+
readonly tokens: Schema.Struct<{
|
|
11329
|
+
readonly input: Schema.Finite;
|
|
11330
|
+
readonly output: Schema.Finite;
|
|
11331
|
+
readonly reasoning: Schema.Finite;
|
|
11332
|
+
readonly cache: Schema.Struct<{
|
|
11333
|
+
readonly read: Schema.Finite;
|
|
11334
|
+
readonly write: Schema.Finite;
|
|
11335
|
+
}>;
|
|
11336
|
+
}>;
|
|
11337
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11338
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11339
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11340
|
+
};
|
|
11341
|
+
}>;
|
|
11148
11342
|
}) | (Schema.Struct<{
|
|
11149
11343
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11150
11344
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -12481,6 +12675,24 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12481
12675
|
readonly type: Schema.String;
|
|
12482
12676
|
readonly message: Schema.String;
|
|
12483
12677
|
}>;
|
|
12678
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
12679
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12680
|
+
readonly input: Schema.Finite;
|
|
12681
|
+
readonly output: Schema.Finite;
|
|
12682
|
+
readonly reasoning: Schema.Finite;
|
|
12683
|
+
readonly cache: Schema.Struct<{
|
|
12684
|
+
readonly read: Schema.Finite;
|
|
12685
|
+
readonly write: Schema.Finite;
|
|
12686
|
+
}>;
|
|
12687
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12688
|
+
readonly input: Schema.Finite;
|
|
12689
|
+
readonly output: Schema.Finite;
|
|
12690
|
+
readonly reasoning: Schema.Finite;
|
|
12691
|
+
readonly cache: Schema.Struct<{
|
|
12692
|
+
readonly read: Schema.Finite;
|
|
12693
|
+
readonly write: Schema.Finite;
|
|
12694
|
+
}>;
|
|
12695
|
+
}>>, never, never>;
|
|
12484
12696
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12485
12697
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12486
12698
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12502,6 +12714,24 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12502
12714
|
readonly type: Schema.String;
|
|
12503
12715
|
readonly message: Schema.String;
|
|
12504
12716
|
}>;
|
|
12717
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
12718
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12719
|
+
readonly input: Schema.Finite;
|
|
12720
|
+
readonly output: Schema.Finite;
|
|
12721
|
+
readonly reasoning: Schema.Finite;
|
|
12722
|
+
readonly cache: Schema.Struct<{
|
|
12723
|
+
readonly read: Schema.Finite;
|
|
12724
|
+
readonly write: Schema.Finite;
|
|
12725
|
+
}>;
|
|
12726
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12727
|
+
readonly input: Schema.Finite;
|
|
12728
|
+
readonly output: Schema.Finite;
|
|
12729
|
+
readonly reasoning: Schema.Finite;
|
|
12730
|
+
readonly cache: Schema.Struct<{
|
|
12731
|
+
readonly read: Schema.Finite;
|
|
12732
|
+
readonly write: Schema.Finite;
|
|
12733
|
+
}>;
|
|
12734
|
+
}>>, never, never>;
|
|
12505
12735
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12506
12736
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12507
12737
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -3700,6 +3700,24 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3700
3700
|
readonly type: Schema.String;
|
|
3701
3701
|
readonly message: Schema.String;
|
|
3702
3702
|
}>;
|
|
3703
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
3704
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3705
|
+
readonly input: Schema.Finite;
|
|
3706
|
+
readonly output: Schema.Finite;
|
|
3707
|
+
readonly reasoning: Schema.Finite;
|
|
3708
|
+
readonly cache: Schema.Struct<{
|
|
3709
|
+
readonly read: Schema.Finite;
|
|
3710
|
+
readonly write: Schema.Finite;
|
|
3711
|
+
}>;
|
|
3712
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3713
|
+
readonly input: Schema.Finite;
|
|
3714
|
+
readonly output: Schema.Finite;
|
|
3715
|
+
readonly reasoning: Schema.Finite;
|
|
3716
|
+
readonly cache: Schema.Struct<{
|
|
3717
|
+
readonly read: Schema.Finite;
|
|
3718
|
+
readonly write: Schema.Finite;
|
|
3719
|
+
}>;
|
|
3720
|
+
}>>, never, never>;
|
|
3703
3721
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3704
3722
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3705
3723
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3721,6 +3739,24 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3721
3739
|
readonly type: Schema.String;
|
|
3722
3740
|
readonly message: Schema.String;
|
|
3723
3741
|
}>;
|
|
3742
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
3743
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3744
|
+
readonly input: Schema.Finite;
|
|
3745
|
+
readonly output: Schema.Finite;
|
|
3746
|
+
readonly reasoning: Schema.Finite;
|
|
3747
|
+
readonly cache: Schema.Struct<{
|
|
3748
|
+
readonly read: Schema.Finite;
|
|
3749
|
+
readonly write: Schema.Finite;
|
|
3750
|
+
}>;
|
|
3751
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3752
|
+
readonly input: Schema.Finite;
|
|
3753
|
+
readonly output: Schema.Finite;
|
|
3754
|
+
readonly reasoning: Schema.Finite;
|
|
3755
|
+
readonly cache: Schema.Struct<{
|
|
3756
|
+
readonly read: Schema.Finite;
|
|
3757
|
+
readonly write: Schema.Finite;
|
|
3758
|
+
}>;
|
|
3759
|
+
}>>, never, never>;
|
|
3724
3760
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3725
3761
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3726
3762
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -5395,6 +5431,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5395
5431
|
readonly message: string;
|
|
5396
5432
|
};
|
|
5397
5433
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5434
|
+
readonly cost?: number | undefined;
|
|
5435
|
+
readonly tokens?: {
|
|
5436
|
+
readonly input: number;
|
|
5437
|
+
readonly output: number;
|
|
5438
|
+
readonly reasoning: number;
|
|
5439
|
+
readonly cache: {
|
|
5440
|
+
readonly read: number;
|
|
5441
|
+
readonly write: number;
|
|
5442
|
+
};
|
|
5443
|
+
} | undefined;
|
|
5398
5444
|
};
|
|
5399
5445
|
readonly metadata?: {
|
|
5400
5446
|
readonly [x: string]: unknown;
|
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-15081",
|
|
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-15081",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|