@opencode/protocol 0.0.0-beta-19381 → 0.0.0-beta-19398
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 +196 -0
- package/dist/groups/message.d.ts +44 -0
- package/dist/groups/model.d.ts +2 -0
- package/dist/groups/provider.d.ts +2 -0
- package/dist/groups/session.d.ts +284 -0
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -3769,6 +3769,28 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3769
3769
|
}>>, never, never>;
|
|
3770
3770
|
readonly text: Schema.String;
|
|
3771
3771
|
readonly recent: Schema.String;
|
|
3772
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3773
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3774
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3775
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3776
|
+
}>, never, never>;
|
|
3777
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3778
|
+
readonly input: Schema.Finite;
|
|
3779
|
+
readonly output: Schema.Finite;
|
|
3780
|
+
readonly reasoning: Schema.Finite;
|
|
3781
|
+
readonly cache: Schema.Struct<{
|
|
3782
|
+
readonly read: Schema.Finite;
|
|
3783
|
+
readonly write: Schema.Finite;
|
|
3784
|
+
}>;
|
|
3785
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3786
|
+
readonly input: Schema.Finite;
|
|
3787
|
+
readonly output: Schema.Finite;
|
|
3788
|
+
readonly reasoning: Schema.Finite;
|
|
3789
|
+
readonly cache: Schema.Struct<{
|
|
3790
|
+
readonly read: Schema.Finite;
|
|
3791
|
+
readonly write: Schema.Finite;
|
|
3792
|
+
}>;
|
|
3793
|
+
}>>, never, never>;
|
|
3772
3794
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3773
3795
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3774
3796
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3878,6 +3900,28 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3878
3900
|
}>>, never, never>;
|
|
3879
3901
|
readonly text: Schema.String;
|
|
3880
3902
|
readonly recent: Schema.String;
|
|
3903
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3904
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3905
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3906
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3907
|
+
}>, never, never>;
|
|
3908
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3909
|
+
readonly input: Schema.Finite;
|
|
3910
|
+
readonly output: Schema.Finite;
|
|
3911
|
+
readonly reasoning: Schema.Finite;
|
|
3912
|
+
readonly cache: Schema.Struct<{
|
|
3913
|
+
readonly read: Schema.Finite;
|
|
3914
|
+
readonly write: Schema.Finite;
|
|
3915
|
+
}>;
|
|
3916
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3917
|
+
readonly input: Schema.Finite;
|
|
3918
|
+
readonly output: Schema.Finite;
|
|
3919
|
+
readonly reasoning: Schema.Finite;
|
|
3920
|
+
readonly cache: Schema.Struct<{
|
|
3921
|
+
readonly read: Schema.Finite;
|
|
3922
|
+
readonly write: Schema.Finite;
|
|
3923
|
+
}>;
|
|
3924
|
+
}>>, never, never>;
|
|
3881
3925
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3882
3926
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3883
3927
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3928,6 +3972,28 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3928
3972
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3929
3973
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3930
3974
|
}>, never, never>;
|
|
3975
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3976
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3977
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3978
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3979
|
+
}>, never, never>;
|
|
3980
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3981
|
+
readonly input: Schema.Finite;
|
|
3982
|
+
readonly output: Schema.Finite;
|
|
3983
|
+
readonly reasoning: Schema.Finite;
|
|
3984
|
+
readonly cache: Schema.Struct<{
|
|
3985
|
+
readonly read: Schema.Finite;
|
|
3986
|
+
readonly write: Schema.Finite;
|
|
3987
|
+
}>;
|
|
3988
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3989
|
+
readonly input: Schema.Finite;
|
|
3990
|
+
readonly output: Schema.Finite;
|
|
3991
|
+
readonly reasoning: Schema.Finite;
|
|
3992
|
+
readonly cache: Schema.Struct<{
|
|
3993
|
+
readonly read: Schema.Finite;
|
|
3994
|
+
readonly write: Schema.Finite;
|
|
3995
|
+
}>;
|
|
3996
|
+
}>>, never, never>;
|
|
3931
3997
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3932
3998
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3933
3999
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3954,6 +4020,28 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3954
4020
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3955
4021
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3956
4022
|
}>, never, never>;
|
|
4023
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4024
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4025
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4026
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4027
|
+
}>, never, never>;
|
|
4028
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4029
|
+
readonly input: Schema.Finite;
|
|
4030
|
+
readonly output: Schema.Finite;
|
|
4031
|
+
readonly reasoning: Schema.Finite;
|
|
4032
|
+
readonly cache: Schema.Struct<{
|
|
4033
|
+
readonly read: Schema.Finite;
|
|
4034
|
+
readonly write: Schema.Finite;
|
|
4035
|
+
}>;
|
|
4036
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4037
|
+
readonly input: Schema.Finite;
|
|
4038
|
+
readonly output: Schema.Finite;
|
|
4039
|
+
readonly reasoning: Schema.Finite;
|
|
4040
|
+
readonly cache: Schema.Struct<{
|
|
4041
|
+
readonly read: Schema.Finite;
|
|
4042
|
+
readonly write: Schema.Finite;
|
|
4043
|
+
}>;
|
|
4044
|
+
}>>, never, never>;
|
|
3957
4045
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3958
4046
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3959
4047
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7648,6 +7736,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7648
7736
|
readonly text: string;
|
|
7649
7737
|
readonly reason: "auto" | "manual";
|
|
7650
7738
|
readonly recent: string;
|
|
7739
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
7651
7740
|
readonly model?: {
|
|
7652
7741
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
7653
7742
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -7656,6 +7745,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7656
7745
|
readonly providerState?: {
|
|
7657
7746
|
readonly [x: string]: unknown;
|
|
7658
7747
|
} | undefined;
|
|
7748
|
+
readonly tokens?: {
|
|
7749
|
+
readonly input: number;
|
|
7750
|
+
readonly output: number;
|
|
7751
|
+
readonly reasoning: number;
|
|
7752
|
+
readonly cache: {
|
|
7753
|
+
readonly read: number;
|
|
7754
|
+
readonly write: number;
|
|
7755
|
+
};
|
|
7756
|
+
} | undefined;
|
|
7659
7757
|
readonly providerContext?: {
|
|
7660
7758
|
readonly version: 1;
|
|
7661
7759
|
readonly provenance: {
|
|
@@ -7693,6 +7791,16 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7693
7791
|
readonly status?: number | undefined;
|
|
7694
7792
|
};
|
|
7695
7793
|
readonly reason: "auto" | "manual";
|
|
7794
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
7795
|
+
readonly tokens?: {
|
|
7796
|
+
readonly input: number;
|
|
7797
|
+
readonly output: number;
|
|
7798
|
+
readonly reasoning: number;
|
|
7799
|
+
readonly cache: {
|
|
7800
|
+
readonly read: number;
|
|
7801
|
+
readonly write: number;
|
|
7802
|
+
};
|
|
7803
|
+
} | undefined;
|
|
7696
7804
|
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
7697
7805
|
};
|
|
7698
7806
|
readonly durable: {
|
|
@@ -11945,6 +12053,28 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11945
12053
|
}>>, never, never>;
|
|
11946
12054
|
readonly text: Schema.String;
|
|
11947
12055
|
readonly recent: Schema.String;
|
|
12056
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12057
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12058
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12059
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12060
|
+
}>, never, never>;
|
|
12061
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12062
|
+
readonly input: Schema.Finite;
|
|
12063
|
+
readonly output: Schema.Finite;
|
|
12064
|
+
readonly reasoning: Schema.Finite;
|
|
12065
|
+
readonly cache: Schema.Struct<{
|
|
12066
|
+
readonly read: Schema.Finite;
|
|
12067
|
+
readonly write: Schema.Finite;
|
|
12068
|
+
}>;
|
|
12069
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12070
|
+
readonly input: Schema.Finite;
|
|
12071
|
+
readonly output: Schema.Finite;
|
|
12072
|
+
readonly reasoning: Schema.Finite;
|
|
12073
|
+
readonly cache: Schema.Struct<{
|
|
12074
|
+
readonly read: Schema.Finite;
|
|
12075
|
+
readonly write: Schema.Finite;
|
|
12076
|
+
}>;
|
|
12077
|
+
}>>, never, never>;
|
|
11948
12078
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11949
12079
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11950
12080
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12054,6 +12184,28 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12054
12184
|
}>>, never, never>;
|
|
12055
12185
|
readonly text: Schema.String;
|
|
12056
12186
|
readonly recent: Schema.String;
|
|
12187
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12188
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12189
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12190
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12191
|
+
}>, never, never>;
|
|
12192
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12193
|
+
readonly input: Schema.Finite;
|
|
12194
|
+
readonly output: Schema.Finite;
|
|
12195
|
+
readonly reasoning: Schema.Finite;
|
|
12196
|
+
readonly cache: Schema.Struct<{
|
|
12197
|
+
readonly read: Schema.Finite;
|
|
12198
|
+
readonly write: Schema.Finite;
|
|
12199
|
+
}>;
|
|
12200
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12201
|
+
readonly input: Schema.Finite;
|
|
12202
|
+
readonly output: Schema.Finite;
|
|
12203
|
+
readonly reasoning: Schema.Finite;
|
|
12204
|
+
readonly cache: Schema.Struct<{
|
|
12205
|
+
readonly read: Schema.Finite;
|
|
12206
|
+
readonly write: Schema.Finite;
|
|
12207
|
+
}>;
|
|
12208
|
+
}>>, never, never>;
|
|
12057
12209
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12058
12210
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12059
12211
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12104,6 +12256,28 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12104
12256
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12105
12257
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12106
12258
|
}>, never, never>;
|
|
12259
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12260
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12261
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12262
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12263
|
+
}>, never, never>;
|
|
12264
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12265
|
+
readonly input: Schema.Finite;
|
|
12266
|
+
readonly output: Schema.Finite;
|
|
12267
|
+
readonly reasoning: Schema.Finite;
|
|
12268
|
+
readonly cache: Schema.Struct<{
|
|
12269
|
+
readonly read: Schema.Finite;
|
|
12270
|
+
readonly write: Schema.Finite;
|
|
12271
|
+
}>;
|
|
12272
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12273
|
+
readonly input: Schema.Finite;
|
|
12274
|
+
readonly output: Schema.Finite;
|
|
12275
|
+
readonly reasoning: Schema.Finite;
|
|
12276
|
+
readonly cache: Schema.Struct<{
|
|
12277
|
+
readonly read: Schema.Finite;
|
|
12278
|
+
readonly write: Schema.Finite;
|
|
12279
|
+
}>;
|
|
12280
|
+
}>>, never, never>;
|
|
12107
12281
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12108
12282
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12109
12283
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12130,6 +12304,28 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12130
12304
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12131
12305
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
12132
12306
|
}>, never, never>;
|
|
12307
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12308
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12309
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
12310
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
12311
|
+
}>, never, never>;
|
|
12312
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
12313
|
+
readonly input: Schema.Finite;
|
|
12314
|
+
readonly output: Schema.Finite;
|
|
12315
|
+
readonly reasoning: Schema.Finite;
|
|
12316
|
+
readonly cache: Schema.Struct<{
|
|
12317
|
+
readonly read: Schema.Finite;
|
|
12318
|
+
readonly write: Schema.Finite;
|
|
12319
|
+
}>;
|
|
12320
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
12321
|
+
readonly input: Schema.Finite;
|
|
12322
|
+
readonly output: Schema.Finite;
|
|
12323
|
+
readonly reasoning: Schema.Finite;
|
|
12324
|
+
readonly cache: Schema.Struct<{
|
|
12325
|
+
readonly read: Schema.Finite;
|
|
12326
|
+
readonly write: Schema.Finite;
|
|
12327
|
+
}>;
|
|
12328
|
+
}>>, never, never>;
|
|
12133
12329
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12134
12330
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12135
12331
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -557,6 +557,28 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
557
557
|
}>;
|
|
558
558
|
readonly type: Schema.tag<"compaction">;
|
|
559
559
|
}>, Schema.Struct<{
|
|
560
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
561
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
562
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
563
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
564
|
+
}>, never, never>;
|
|
565
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
566
|
+
readonly input: Schema.Finite;
|
|
567
|
+
readonly output: Schema.Finite;
|
|
568
|
+
readonly reasoning: Schema.Finite;
|
|
569
|
+
readonly cache: Schema.Struct<{
|
|
570
|
+
readonly read: Schema.Finite;
|
|
571
|
+
readonly write: Schema.Finite;
|
|
572
|
+
}>;
|
|
573
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
574
|
+
readonly input: Schema.Finite;
|
|
575
|
+
readonly output: Schema.Finite;
|
|
576
|
+
readonly reasoning: Schema.Finite;
|
|
577
|
+
readonly cache: Schema.Struct<{
|
|
578
|
+
readonly read: Schema.Finite;
|
|
579
|
+
readonly write: Schema.Finite;
|
|
580
|
+
}>;
|
|
581
|
+
}>>, never, never>;
|
|
560
582
|
readonly status: Schema.tag<"completed">;
|
|
561
583
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
562
584
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -664,6 +686,28 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
664
686
|
}>;
|
|
665
687
|
readonly type: Schema.tag<"compaction">;
|
|
666
688
|
}>, Schema.Struct<{
|
|
689
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
690
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
691
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
692
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
693
|
+
}>, never, never>;
|
|
694
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
695
|
+
readonly input: Schema.Finite;
|
|
696
|
+
readonly output: Schema.Finite;
|
|
697
|
+
readonly reasoning: Schema.Finite;
|
|
698
|
+
readonly cache: Schema.Struct<{
|
|
699
|
+
readonly read: Schema.Finite;
|
|
700
|
+
readonly write: Schema.Finite;
|
|
701
|
+
}>;
|
|
702
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
703
|
+
readonly input: Schema.Finite;
|
|
704
|
+
readonly output: Schema.Finite;
|
|
705
|
+
readonly reasoning: Schema.Finite;
|
|
706
|
+
readonly cache: Schema.Struct<{
|
|
707
|
+
readonly read: Schema.Finite;
|
|
708
|
+
readonly write: Schema.Finite;
|
|
709
|
+
}>;
|
|
710
|
+
}>>, never, never>;
|
|
667
711
|
readonly status: Schema.tag<"failed">;
|
|
668
712
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
669
713
|
readonly error: Schema.Struct<{
|
package/dist/groups/model.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
132
132
|
readonly mode: Schema.Literal<"provider">;
|
|
133
133
|
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
134
134
|
}>]>>, never, never>;
|
|
135
|
+
readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
135
136
|
}> & {
|
|
136
137
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
137
138
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
@@ -285,6 +286,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
285
286
|
readonly mode: Schema.Literal<"provider">;
|
|
286
287
|
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
287
288
|
}>]>>, never, never>;
|
|
289
|
+
readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
288
290
|
}> & {
|
|
289
291
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
290
292
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
@@ -67,6 +67,7 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
|
|
|
67
67
|
readonly mode: Schema.Literal<"provider">;
|
|
68
68
|
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
69
69
|
}>]>>, never, never>;
|
|
70
|
+
readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
70
71
|
}> & {
|
|
71
72
|
empty: (id: Provider.ID) => Provider.Info;
|
|
72
73
|
}>;
|
|
@@ -148,6 +149,7 @@ export declare const ProviderGroup: HttpApiGroup.HttpApiGroup<"server.provider",
|
|
|
148
149
|
readonly mode: Schema.Literal<"provider">;
|
|
149
150
|
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
150
151
|
}>]>>, never, never>;
|
|
152
|
+
readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
151
153
|
}> & {
|
|
152
154
|
empty: (id: Provider.ID) => Provider.Info;
|
|
153
155
|
};
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1435,6 +1435,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1435
1435
|
}>;
|
|
1436
1436
|
readonly type: Schema.tag<"compaction">;
|
|
1437
1437
|
}>, Schema.Struct<{
|
|
1438
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1439
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1440
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1441
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1442
|
+
}>, never, never>;
|
|
1443
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1444
|
+
readonly input: Schema.Finite;
|
|
1445
|
+
readonly output: Schema.Finite;
|
|
1446
|
+
readonly reasoning: Schema.Finite;
|
|
1447
|
+
readonly cache: Schema.Struct<{
|
|
1448
|
+
readonly read: Schema.Finite;
|
|
1449
|
+
readonly write: Schema.Finite;
|
|
1450
|
+
}>;
|
|
1451
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1452
|
+
readonly input: Schema.Finite;
|
|
1453
|
+
readonly output: Schema.Finite;
|
|
1454
|
+
readonly reasoning: Schema.Finite;
|
|
1455
|
+
readonly cache: Schema.Struct<{
|
|
1456
|
+
readonly read: Schema.Finite;
|
|
1457
|
+
readonly write: Schema.Finite;
|
|
1458
|
+
}>;
|
|
1459
|
+
}>>, never, never>;
|
|
1438
1460
|
readonly status: Schema.tag<"completed">;
|
|
1439
1461
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1440
1462
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1542,6 +1564,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1542
1564
|
}>;
|
|
1543
1565
|
readonly type: Schema.tag<"compaction">;
|
|
1544
1566
|
}>, Schema.Struct<{
|
|
1567
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1568
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1569
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1570
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1571
|
+
}>, never, never>;
|
|
1572
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1573
|
+
readonly input: Schema.Finite;
|
|
1574
|
+
readonly output: Schema.Finite;
|
|
1575
|
+
readonly reasoning: Schema.Finite;
|
|
1576
|
+
readonly cache: Schema.Struct<{
|
|
1577
|
+
readonly read: Schema.Finite;
|
|
1578
|
+
readonly write: Schema.Finite;
|
|
1579
|
+
}>;
|
|
1580
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1581
|
+
readonly input: Schema.Finite;
|
|
1582
|
+
readonly output: Schema.Finite;
|
|
1583
|
+
readonly reasoning: Schema.Finite;
|
|
1584
|
+
readonly cache: Schema.Struct<{
|
|
1585
|
+
readonly read: Schema.Finite;
|
|
1586
|
+
readonly write: Schema.Finite;
|
|
1587
|
+
}>;
|
|
1588
|
+
}>>, never, never>;
|
|
1545
1589
|
readonly status: Schema.tag<"failed">;
|
|
1546
1590
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1547
1591
|
readonly error: Schema.Struct<{
|
|
@@ -2456,6 +2500,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2456
2500
|
}>;
|
|
2457
2501
|
readonly type: Schema.tag<"compaction">;
|
|
2458
2502
|
}>, Schema.Struct<{
|
|
2503
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2504
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2505
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2506
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2507
|
+
}>, never, never>;
|
|
2508
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2509
|
+
readonly input: Schema.Finite;
|
|
2510
|
+
readonly output: Schema.Finite;
|
|
2511
|
+
readonly reasoning: Schema.Finite;
|
|
2512
|
+
readonly cache: Schema.Struct<{
|
|
2513
|
+
readonly read: Schema.Finite;
|
|
2514
|
+
readonly write: Schema.Finite;
|
|
2515
|
+
}>;
|
|
2516
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2517
|
+
readonly input: Schema.Finite;
|
|
2518
|
+
readonly output: Schema.Finite;
|
|
2519
|
+
readonly reasoning: Schema.Finite;
|
|
2520
|
+
readonly cache: Schema.Struct<{
|
|
2521
|
+
readonly read: Schema.Finite;
|
|
2522
|
+
readonly write: Schema.Finite;
|
|
2523
|
+
}>;
|
|
2524
|
+
}>>, never, never>;
|
|
2459
2525
|
readonly status: Schema.tag<"completed">;
|
|
2460
2526
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2461
2527
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -2563,6 +2629,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2563
2629
|
}>;
|
|
2564
2630
|
readonly type: Schema.tag<"compaction">;
|
|
2565
2631
|
}>, Schema.Struct<{
|
|
2632
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2633
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2634
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2635
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2636
|
+
}>, never, never>;
|
|
2637
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2638
|
+
readonly input: Schema.Finite;
|
|
2639
|
+
readonly output: Schema.Finite;
|
|
2640
|
+
readonly reasoning: Schema.Finite;
|
|
2641
|
+
readonly cache: Schema.Struct<{
|
|
2642
|
+
readonly read: Schema.Finite;
|
|
2643
|
+
readonly write: Schema.Finite;
|
|
2644
|
+
}>;
|
|
2645
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2646
|
+
readonly input: Schema.Finite;
|
|
2647
|
+
readonly output: Schema.Finite;
|
|
2648
|
+
readonly reasoning: Schema.Finite;
|
|
2649
|
+
readonly cache: Schema.Struct<{
|
|
2650
|
+
readonly read: Schema.Finite;
|
|
2651
|
+
readonly write: Schema.Finite;
|
|
2652
|
+
}>;
|
|
2653
|
+
}>>, never, never>;
|
|
2566
2654
|
readonly status: Schema.tag<"failed">;
|
|
2567
2655
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
2568
2656
|
readonly error: Schema.Struct<{
|
|
@@ -4054,6 +4142,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4054
4142
|
}>;
|
|
4055
4143
|
readonly type: Schema.tag<"compaction">;
|
|
4056
4144
|
}>, Schema.Struct<{
|
|
4145
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4146
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4147
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4148
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4149
|
+
}>, never, never>;
|
|
4150
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4151
|
+
readonly input: Schema.Finite;
|
|
4152
|
+
readonly output: Schema.Finite;
|
|
4153
|
+
readonly reasoning: Schema.Finite;
|
|
4154
|
+
readonly cache: Schema.Struct<{
|
|
4155
|
+
readonly read: Schema.Finite;
|
|
4156
|
+
readonly write: Schema.Finite;
|
|
4157
|
+
}>;
|
|
4158
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4159
|
+
readonly input: Schema.Finite;
|
|
4160
|
+
readonly output: Schema.Finite;
|
|
4161
|
+
readonly reasoning: Schema.Finite;
|
|
4162
|
+
readonly cache: Schema.Struct<{
|
|
4163
|
+
readonly read: Schema.Finite;
|
|
4164
|
+
readonly write: Schema.Finite;
|
|
4165
|
+
}>;
|
|
4166
|
+
}>>, never, never>;
|
|
4057
4167
|
readonly status: Schema.tag<"completed">;
|
|
4058
4168
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4059
4169
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -4161,6 +4271,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4161
4271
|
}>;
|
|
4162
4272
|
readonly type: Schema.tag<"compaction">;
|
|
4163
4273
|
}>, Schema.Struct<{
|
|
4274
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4275
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4276
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4277
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4278
|
+
}>, never, never>;
|
|
4279
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4280
|
+
readonly input: Schema.Finite;
|
|
4281
|
+
readonly output: Schema.Finite;
|
|
4282
|
+
readonly reasoning: Schema.Finite;
|
|
4283
|
+
readonly cache: Schema.Struct<{
|
|
4284
|
+
readonly read: Schema.Finite;
|
|
4285
|
+
readonly write: Schema.Finite;
|
|
4286
|
+
}>;
|
|
4287
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4288
|
+
readonly input: Schema.Finite;
|
|
4289
|
+
readonly output: Schema.Finite;
|
|
4290
|
+
readonly reasoning: Schema.Finite;
|
|
4291
|
+
readonly cache: Schema.Struct<{
|
|
4292
|
+
readonly read: Schema.Finite;
|
|
4293
|
+
readonly write: Schema.Finite;
|
|
4294
|
+
}>;
|
|
4295
|
+
}>>, never, never>;
|
|
4164
4296
|
readonly status: Schema.tag<"failed">;
|
|
4165
4297
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
4166
4298
|
readonly error: Schema.Struct<{
|
|
@@ -7634,6 +7766,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7634
7766
|
}>>, never, never>;
|
|
7635
7767
|
readonly text: Schema.String;
|
|
7636
7768
|
readonly recent: Schema.String;
|
|
7769
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7770
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7771
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7772
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7773
|
+
}>, never, never>;
|
|
7774
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7775
|
+
readonly input: Schema.Finite;
|
|
7776
|
+
readonly output: Schema.Finite;
|
|
7777
|
+
readonly reasoning: Schema.Finite;
|
|
7778
|
+
readonly cache: Schema.Struct<{
|
|
7779
|
+
readonly read: Schema.Finite;
|
|
7780
|
+
readonly write: Schema.Finite;
|
|
7781
|
+
}>;
|
|
7782
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7783
|
+
readonly input: Schema.Finite;
|
|
7784
|
+
readonly output: Schema.Finite;
|
|
7785
|
+
readonly reasoning: Schema.Finite;
|
|
7786
|
+
readonly cache: Schema.Struct<{
|
|
7787
|
+
readonly read: Schema.Finite;
|
|
7788
|
+
readonly write: Schema.Finite;
|
|
7789
|
+
}>;
|
|
7790
|
+
}>>, never, never>;
|
|
7637
7791
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7638
7792
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7639
7793
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7743,6 +7897,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7743
7897
|
}>>, never, never>;
|
|
7744
7898
|
readonly text: Schema.String;
|
|
7745
7899
|
readonly recent: Schema.String;
|
|
7900
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7901
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7902
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7903
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7904
|
+
}>, never, never>;
|
|
7905
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7906
|
+
readonly input: Schema.Finite;
|
|
7907
|
+
readonly output: Schema.Finite;
|
|
7908
|
+
readonly reasoning: Schema.Finite;
|
|
7909
|
+
readonly cache: Schema.Struct<{
|
|
7910
|
+
readonly read: Schema.Finite;
|
|
7911
|
+
readonly write: Schema.Finite;
|
|
7912
|
+
}>;
|
|
7913
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7914
|
+
readonly input: Schema.Finite;
|
|
7915
|
+
readonly output: Schema.Finite;
|
|
7916
|
+
readonly reasoning: Schema.Finite;
|
|
7917
|
+
readonly cache: Schema.Struct<{
|
|
7918
|
+
readonly read: Schema.Finite;
|
|
7919
|
+
readonly write: Schema.Finite;
|
|
7920
|
+
}>;
|
|
7921
|
+
}>>, never, never>;
|
|
7746
7922
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7747
7923
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7748
7924
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7793,6 +7969,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7793
7969
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7794
7970
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7795
7971
|
}>, never, never>;
|
|
7972
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7973
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7974
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7975
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7976
|
+
}>, never, never>;
|
|
7977
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7978
|
+
readonly input: Schema.Finite;
|
|
7979
|
+
readonly output: Schema.Finite;
|
|
7980
|
+
readonly reasoning: Schema.Finite;
|
|
7981
|
+
readonly cache: Schema.Struct<{
|
|
7982
|
+
readonly read: Schema.Finite;
|
|
7983
|
+
readonly write: Schema.Finite;
|
|
7984
|
+
}>;
|
|
7985
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7986
|
+
readonly input: Schema.Finite;
|
|
7987
|
+
readonly output: Schema.Finite;
|
|
7988
|
+
readonly reasoning: Schema.Finite;
|
|
7989
|
+
readonly cache: Schema.Struct<{
|
|
7990
|
+
readonly read: Schema.Finite;
|
|
7991
|
+
readonly write: Schema.Finite;
|
|
7992
|
+
}>;
|
|
7993
|
+
}>>, never, never>;
|
|
7796
7994
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7797
7995
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7798
7996
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7819,6 +8017,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
7819
8017
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7820
8018
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7821
8019
|
}>, never, never>;
|
|
8020
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8021
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8022
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8023
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8024
|
+
}>, never, never>;
|
|
8025
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8026
|
+
readonly input: Schema.Finite;
|
|
8027
|
+
readonly output: Schema.Finite;
|
|
8028
|
+
readonly reasoning: Schema.Finite;
|
|
8029
|
+
readonly cache: Schema.Struct<{
|
|
8030
|
+
readonly read: Schema.Finite;
|
|
8031
|
+
readonly write: Schema.Finite;
|
|
8032
|
+
}>;
|
|
8033
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8034
|
+
readonly input: Schema.Finite;
|
|
8035
|
+
readonly output: Schema.Finite;
|
|
8036
|
+
readonly reasoning: Schema.Finite;
|
|
8037
|
+
readonly cache: Schema.Struct<{
|
|
8038
|
+
readonly read: Schema.Finite;
|
|
8039
|
+
readonly write: Schema.Finite;
|
|
8040
|
+
}>;
|
|
8041
|
+
}>>, never, never>;
|
|
7822
8042
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7823
8043
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7824
8044
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9493,6 +9713,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
9493
9713
|
readonly text: string;
|
|
9494
9714
|
readonly reason: "auto" | "manual";
|
|
9495
9715
|
readonly recent: string;
|
|
9716
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
9496
9717
|
readonly model?: {
|
|
9497
9718
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
9498
9719
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
@@ -9501,6 +9722,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
9501
9722
|
readonly providerState?: {
|
|
9502
9723
|
readonly [x: string]: unknown;
|
|
9503
9724
|
} | undefined;
|
|
9725
|
+
readonly tokens?: {
|
|
9726
|
+
readonly input: number;
|
|
9727
|
+
readonly output: number;
|
|
9728
|
+
readonly reasoning: number;
|
|
9729
|
+
readonly cache: {
|
|
9730
|
+
readonly read: number;
|
|
9731
|
+
readonly write: number;
|
|
9732
|
+
};
|
|
9733
|
+
} | undefined;
|
|
9504
9734
|
readonly providerContext?: {
|
|
9505
9735
|
readonly version: 1;
|
|
9506
9736
|
readonly provenance: {
|
|
@@ -9538,6 +9768,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
9538
9768
|
readonly status?: number | undefined;
|
|
9539
9769
|
};
|
|
9540
9770
|
readonly reason: "auto" | "manual";
|
|
9771
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
9772
|
+
readonly tokens?: {
|
|
9773
|
+
readonly input: number;
|
|
9774
|
+
readonly output: number;
|
|
9775
|
+
readonly reasoning: number;
|
|
9776
|
+
readonly cache: {
|
|
9777
|
+
readonly read: number;
|
|
9778
|
+
readonly write: number;
|
|
9779
|
+
};
|
|
9780
|
+
} | undefined;
|
|
9541
9781
|
readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
9542
9782
|
};
|
|
9543
9783
|
readonly durable: {
|
|
@@ -10193,6 +10433,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10193
10433
|
}>;
|
|
10194
10434
|
readonly type: Schema.tag<"compaction">;
|
|
10195
10435
|
}>, Schema.Struct<{
|
|
10436
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
10437
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
10438
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
10439
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
10440
|
+
}>, never, never>;
|
|
10441
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10442
|
+
readonly input: Schema.Finite;
|
|
10443
|
+
readonly output: Schema.Finite;
|
|
10444
|
+
readonly reasoning: Schema.Finite;
|
|
10445
|
+
readonly cache: Schema.Struct<{
|
|
10446
|
+
readonly read: Schema.Finite;
|
|
10447
|
+
readonly write: Schema.Finite;
|
|
10448
|
+
}>;
|
|
10449
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10450
|
+
readonly input: Schema.Finite;
|
|
10451
|
+
readonly output: Schema.Finite;
|
|
10452
|
+
readonly reasoning: Schema.Finite;
|
|
10453
|
+
readonly cache: Schema.Struct<{
|
|
10454
|
+
readonly read: Schema.Finite;
|
|
10455
|
+
readonly write: Schema.Finite;
|
|
10456
|
+
}>;
|
|
10457
|
+
}>>, never, never>;
|
|
10196
10458
|
readonly status: Schema.tag<"completed">;
|
|
10197
10459
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
10198
10460
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -10300,6 +10562,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10300
10562
|
}>;
|
|
10301
10563
|
readonly type: Schema.tag<"compaction">;
|
|
10302
10564
|
}>, Schema.Struct<{
|
|
10565
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
10566
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
10567
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
10568
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
10569
|
+
}>, never, never>;
|
|
10570
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10571
|
+
readonly input: Schema.Finite;
|
|
10572
|
+
readonly output: Schema.Finite;
|
|
10573
|
+
readonly reasoning: Schema.Finite;
|
|
10574
|
+
readonly cache: Schema.Struct<{
|
|
10575
|
+
readonly read: Schema.Finite;
|
|
10576
|
+
readonly write: Schema.Finite;
|
|
10577
|
+
}>;
|
|
10578
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10579
|
+
readonly input: Schema.Finite;
|
|
10580
|
+
readonly output: Schema.Finite;
|
|
10581
|
+
readonly reasoning: Schema.Finite;
|
|
10582
|
+
readonly cache: Schema.Struct<{
|
|
10583
|
+
readonly read: Schema.Finite;
|
|
10584
|
+
readonly write: Schema.Finite;
|
|
10585
|
+
}>;
|
|
10586
|
+
}>>, never, never>;
|
|
10303
10587
|
readonly status: Schema.tag<"failed">;
|
|
10304
10588
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
10305
10589
|
readonly error: Schema.Struct<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "0.0.0-beta-
|
|
4
|
+
"version": "0.0.0-beta-19398",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode/schema": "0.0.0-beta-
|
|
35
|
+
"@opencode/schema": "0.0.0-beta-19398",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|