@opencode/schema 0.0.0-dev-19382 → 0.0.0-dev-19384
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/event-manifest.d.ts +176 -0
- package/dist/session-event.d.ts +440 -0
- package/dist/session-event.js +6 -0
- package/dist/session-message.d.ts +132 -0
- package/dist/session-message.js +7 -0
- package/dist/session-transfer.d.ts +44 -0
- package/package.json +1 -1
package/dist/event-manifest.d.ts
CHANGED
|
@@ -3709,6 +3709,28 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3709
3709
|
}>>, never, never>;
|
|
3710
3710
|
readonly text: Schema.String;
|
|
3711
3711
|
readonly recent: Schema.String;
|
|
3712
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3713
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3714
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3715
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3716
|
+
}>, never, never>;
|
|
3717
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3718
|
+
readonly input: Schema.Finite;
|
|
3719
|
+
readonly output: Schema.Finite;
|
|
3720
|
+
readonly reasoning: Schema.Finite;
|
|
3721
|
+
readonly cache: Schema.Struct<{
|
|
3722
|
+
readonly read: Schema.Finite;
|
|
3723
|
+
readonly write: Schema.Finite;
|
|
3724
|
+
}>;
|
|
3725
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3726
|
+
readonly input: Schema.Finite;
|
|
3727
|
+
readonly output: Schema.Finite;
|
|
3728
|
+
readonly reasoning: Schema.Finite;
|
|
3729
|
+
readonly cache: Schema.Struct<{
|
|
3730
|
+
readonly read: Schema.Finite;
|
|
3731
|
+
readonly write: Schema.Finite;
|
|
3732
|
+
}>;
|
|
3733
|
+
}>>, never, never>;
|
|
3712
3734
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3713
3735
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3714
3736
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3818,6 +3840,28 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3818
3840
|
}>>, never, never>;
|
|
3819
3841
|
readonly text: Schema.String;
|
|
3820
3842
|
readonly recent: Schema.String;
|
|
3843
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3844
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3845
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3846
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3847
|
+
}>, never, never>;
|
|
3848
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3849
|
+
readonly input: Schema.Finite;
|
|
3850
|
+
readonly output: Schema.Finite;
|
|
3851
|
+
readonly reasoning: Schema.Finite;
|
|
3852
|
+
readonly cache: Schema.Struct<{
|
|
3853
|
+
readonly read: Schema.Finite;
|
|
3854
|
+
readonly write: Schema.Finite;
|
|
3855
|
+
}>;
|
|
3856
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3857
|
+
readonly input: Schema.Finite;
|
|
3858
|
+
readonly output: Schema.Finite;
|
|
3859
|
+
readonly reasoning: Schema.Finite;
|
|
3860
|
+
readonly cache: Schema.Struct<{
|
|
3861
|
+
readonly read: Schema.Finite;
|
|
3862
|
+
readonly write: Schema.Finite;
|
|
3863
|
+
}>;
|
|
3864
|
+
}>>, never, never>;
|
|
3821
3865
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3822
3866
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3823
3867
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3868,6 +3912,28 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3868
3912
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3869
3913
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3870
3914
|
}>, never, never>;
|
|
3915
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3916
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3917
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3918
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3919
|
+
}>, never, never>;
|
|
3920
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3921
|
+
readonly input: Schema.Finite;
|
|
3922
|
+
readonly output: Schema.Finite;
|
|
3923
|
+
readonly reasoning: Schema.Finite;
|
|
3924
|
+
readonly cache: Schema.Struct<{
|
|
3925
|
+
readonly read: Schema.Finite;
|
|
3926
|
+
readonly write: Schema.Finite;
|
|
3927
|
+
}>;
|
|
3928
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3929
|
+
readonly input: Schema.Finite;
|
|
3930
|
+
readonly output: Schema.Finite;
|
|
3931
|
+
readonly reasoning: Schema.Finite;
|
|
3932
|
+
readonly cache: Schema.Struct<{
|
|
3933
|
+
readonly read: Schema.Finite;
|
|
3934
|
+
readonly write: Schema.Finite;
|
|
3935
|
+
}>;
|
|
3936
|
+
}>>, never, never>;
|
|
3871
3937
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3872
3938
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3873
3939
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3894,6 +3960,28 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3894
3960
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3895
3961
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3896
3962
|
}>, never, never>;
|
|
3963
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3964
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3965
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3966
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3967
|
+
}>, never, never>;
|
|
3968
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3969
|
+
readonly input: Schema.Finite;
|
|
3970
|
+
readonly output: Schema.Finite;
|
|
3971
|
+
readonly reasoning: Schema.Finite;
|
|
3972
|
+
readonly cache: Schema.Struct<{
|
|
3973
|
+
readonly read: Schema.Finite;
|
|
3974
|
+
readonly write: Schema.Finite;
|
|
3975
|
+
}>;
|
|
3976
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3977
|
+
readonly input: Schema.Finite;
|
|
3978
|
+
readonly output: Schema.Finite;
|
|
3979
|
+
readonly reasoning: Schema.Finite;
|
|
3980
|
+
readonly cache: Schema.Struct<{
|
|
3981
|
+
readonly read: Schema.Finite;
|
|
3982
|
+
readonly write: Schema.Finite;
|
|
3983
|
+
}>;
|
|
3984
|
+
}>>, never, never>;
|
|
3897
3985
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3898
3986
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3899
3987
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9695,6 +9783,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9695
9783
|
}>>, never, never>;
|
|
9696
9784
|
readonly text: Schema.String;
|
|
9697
9785
|
readonly recent: Schema.String;
|
|
9786
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9787
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9788
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9789
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9790
|
+
}>, never, never>;
|
|
9791
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9792
|
+
readonly input: Schema.Finite;
|
|
9793
|
+
readonly output: Schema.Finite;
|
|
9794
|
+
readonly reasoning: Schema.Finite;
|
|
9795
|
+
readonly cache: Schema.Struct<{
|
|
9796
|
+
readonly read: Schema.Finite;
|
|
9797
|
+
readonly write: Schema.Finite;
|
|
9798
|
+
}>;
|
|
9799
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9800
|
+
readonly input: Schema.Finite;
|
|
9801
|
+
readonly output: Schema.Finite;
|
|
9802
|
+
readonly reasoning: Schema.Finite;
|
|
9803
|
+
readonly cache: Schema.Struct<{
|
|
9804
|
+
readonly read: Schema.Finite;
|
|
9805
|
+
readonly write: Schema.Finite;
|
|
9806
|
+
}>;
|
|
9807
|
+
}>>, never, never>;
|
|
9698
9808
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9699
9809
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9700
9810
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9804,6 +9914,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9804
9914
|
}>>, never, never>;
|
|
9805
9915
|
readonly text: Schema.String;
|
|
9806
9916
|
readonly recent: Schema.String;
|
|
9917
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9918
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9919
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9920
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9921
|
+
}>, never, never>;
|
|
9922
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9923
|
+
readonly input: Schema.Finite;
|
|
9924
|
+
readonly output: Schema.Finite;
|
|
9925
|
+
readonly reasoning: Schema.Finite;
|
|
9926
|
+
readonly cache: Schema.Struct<{
|
|
9927
|
+
readonly read: Schema.Finite;
|
|
9928
|
+
readonly write: Schema.Finite;
|
|
9929
|
+
}>;
|
|
9930
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9931
|
+
readonly input: Schema.Finite;
|
|
9932
|
+
readonly output: Schema.Finite;
|
|
9933
|
+
readonly reasoning: Schema.Finite;
|
|
9934
|
+
readonly cache: Schema.Struct<{
|
|
9935
|
+
readonly read: Schema.Finite;
|
|
9936
|
+
readonly write: Schema.Finite;
|
|
9937
|
+
}>;
|
|
9938
|
+
}>>, never, never>;
|
|
9807
9939
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9808
9940
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9809
9941
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9854,6 +9986,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9854
9986
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9855
9987
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9856
9988
|
}>, never, never>;
|
|
9989
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9990
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9991
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
9992
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
9993
|
+
}>, never, never>;
|
|
9994
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9995
|
+
readonly input: Schema.Finite;
|
|
9996
|
+
readonly output: Schema.Finite;
|
|
9997
|
+
readonly reasoning: Schema.Finite;
|
|
9998
|
+
readonly cache: Schema.Struct<{
|
|
9999
|
+
readonly read: Schema.Finite;
|
|
10000
|
+
readonly write: Schema.Finite;
|
|
10001
|
+
}>;
|
|
10002
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10003
|
+
readonly input: Schema.Finite;
|
|
10004
|
+
readonly output: Schema.Finite;
|
|
10005
|
+
readonly reasoning: Schema.Finite;
|
|
10006
|
+
readonly cache: Schema.Struct<{
|
|
10007
|
+
readonly read: Schema.Finite;
|
|
10008
|
+
readonly write: Schema.Finite;
|
|
10009
|
+
}>;
|
|
10010
|
+
}>>, never, never>;
|
|
9857
10011
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9858
10012
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9859
10013
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -9880,6 +10034,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9880
10034
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9881
10035
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9882
10036
|
}>, never, never>;
|
|
10037
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
10038
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
10039
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
10040
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
10041
|
+
}>, never, never>;
|
|
10042
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10043
|
+
readonly input: Schema.Finite;
|
|
10044
|
+
readonly output: Schema.Finite;
|
|
10045
|
+
readonly reasoning: Schema.Finite;
|
|
10046
|
+
readonly cache: Schema.Struct<{
|
|
10047
|
+
readonly read: Schema.Finite;
|
|
10048
|
+
readonly write: Schema.Finite;
|
|
10049
|
+
}>;
|
|
10050
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10051
|
+
readonly input: Schema.Finite;
|
|
10052
|
+
readonly output: Schema.Finite;
|
|
10053
|
+
readonly reasoning: Schema.Finite;
|
|
10054
|
+
readonly cache: Schema.Struct<{
|
|
10055
|
+
readonly read: Schema.Finite;
|
|
10056
|
+
readonly write: Schema.Finite;
|
|
10057
|
+
}>;
|
|
10058
|
+
}>>, never, never>;
|
|
9883
10059
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9884
10060
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
9885
10061
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/session-event.d.ts
CHANGED
|
@@ -3923,6 +3923,28 @@ export declare namespace Compaction {
|
|
|
3923
3923
|
}>>, never, never>;
|
|
3924
3924
|
readonly text: Schema.String;
|
|
3925
3925
|
readonly recent: Schema.String;
|
|
3926
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3927
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3928
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
3929
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
3930
|
+
}>, never, never>;
|
|
3931
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3932
|
+
readonly input: Schema.Finite;
|
|
3933
|
+
readonly output: Schema.Finite;
|
|
3934
|
+
readonly reasoning: Schema.Finite;
|
|
3935
|
+
readonly cache: Schema.Struct<{
|
|
3936
|
+
readonly read: Schema.Finite;
|
|
3937
|
+
readonly write: Schema.Finite;
|
|
3938
|
+
}>;
|
|
3939
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3940
|
+
readonly input: Schema.Finite;
|
|
3941
|
+
readonly output: Schema.Finite;
|
|
3942
|
+
readonly reasoning: Schema.Finite;
|
|
3943
|
+
readonly cache: Schema.Struct<{
|
|
3944
|
+
readonly read: Schema.Finite;
|
|
3945
|
+
readonly write: Schema.Finite;
|
|
3946
|
+
}>;
|
|
3947
|
+
}>>, never, never>;
|
|
3926
3948
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3927
3949
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3928
3950
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4032,6 +4054,28 @@ export declare namespace Compaction {
|
|
|
4032
4054
|
}>>, never, never>;
|
|
4033
4055
|
readonly text: Schema.String;
|
|
4034
4056
|
readonly recent: Schema.String;
|
|
4057
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4058
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4059
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4060
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4061
|
+
}>, never, never>;
|
|
4062
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4063
|
+
readonly input: Schema.Finite;
|
|
4064
|
+
readonly output: Schema.Finite;
|
|
4065
|
+
readonly reasoning: Schema.Finite;
|
|
4066
|
+
readonly cache: Schema.Struct<{
|
|
4067
|
+
readonly read: Schema.Finite;
|
|
4068
|
+
readonly write: Schema.Finite;
|
|
4069
|
+
}>;
|
|
4070
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4071
|
+
readonly input: Schema.Finite;
|
|
4072
|
+
readonly output: Schema.Finite;
|
|
4073
|
+
readonly reasoning: Schema.Finite;
|
|
4074
|
+
readonly cache: Schema.Struct<{
|
|
4075
|
+
readonly read: Schema.Finite;
|
|
4076
|
+
readonly write: Schema.Finite;
|
|
4077
|
+
}>;
|
|
4078
|
+
}>>, never, never>;
|
|
4035
4079
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4036
4080
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4037
4081
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4084,6 +4128,28 @@ export declare namespace Compaction {
|
|
|
4084
4128
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4085
4129
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4086
4130
|
}>, never, never>;
|
|
4131
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4132
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4133
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4134
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4135
|
+
}>, never, never>;
|
|
4136
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4137
|
+
readonly input: Schema.Finite;
|
|
4138
|
+
readonly output: Schema.Finite;
|
|
4139
|
+
readonly reasoning: Schema.Finite;
|
|
4140
|
+
readonly cache: Schema.Struct<{
|
|
4141
|
+
readonly read: Schema.Finite;
|
|
4142
|
+
readonly write: Schema.Finite;
|
|
4143
|
+
}>;
|
|
4144
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4145
|
+
readonly input: Schema.Finite;
|
|
4146
|
+
readonly output: Schema.Finite;
|
|
4147
|
+
readonly reasoning: Schema.Finite;
|
|
4148
|
+
readonly cache: Schema.Struct<{
|
|
4149
|
+
readonly read: Schema.Finite;
|
|
4150
|
+
readonly write: Schema.Finite;
|
|
4151
|
+
}>;
|
|
4152
|
+
}>>, never, never>;
|
|
4087
4153
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4088
4154
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4089
4155
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4110,6 +4176,28 @@ export declare namespace Compaction {
|
|
|
4110
4176
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4111
4177
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4112
4178
|
}>, never, never>;
|
|
4179
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4180
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4181
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
4182
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
4183
|
+
}>, never, never>;
|
|
4184
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4185
|
+
readonly input: Schema.Finite;
|
|
4186
|
+
readonly output: Schema.Finite;
|
|
4187
|
+
readonly reasoning: Schema.Finite;
|
|
4188
|
+
readonly cache: Schema.Struct<{
|
|
4189
|
+
readonly read: Schema.Finite;
|
|
4190
|
+
readonly write: Schema.Finite;
|
|
4191
|
+
}>;
|
|
4192
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4193
|
+
readonly input: Schema.Finite;
|
|
4194
|
+
readonly output: Schema.Finite;
|
|
4195
|
+
readonly reasoning: Schema.Finite;
|
|
4196
|
+
readonly cache: Schema.Struct<{
|
|
4197
|
+
readonly read: Schema.Finite;
|
|
4198
|
+
readonly write: Schema.Finite;
|
|
4199
|
+
}>;
|
|
4200
|
+
}>>, never, never>;
|
|
4113
4201
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4114
4202
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4115
4203
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7839,6 +7927,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7839
7927
|
}>>, never, never>;
|
|
7840
7928
|
readonly text: Schema.String;
|
|
7841
7929
|
readonly recent: Schema.String;
|
|
7930
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7931
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7932
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
7933
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
7934
|
+
}>, never, never>;
|
|
7935
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7936
|
+
readonly input: Schema.Finite;
|
|
7937
|
+
readonly output: Schema.Finite;
|
|
7938
|
+
readonly reasoning: Schema.Finite;
|
|
7939
|
+
readonly cache: Schema.Struct<{
|
|
7940
|
+
readonly read: Schema.Finite;
|
|
7941
|
+
readonly write: Schema.Finite;
|
|
7942
|
+
}>;
|
|
7943
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7944
|
+
readonly input: Schema.Finite;
|
|
7945
|
+
readonly output: Schema.Finite;
|
|
7946
|
+
readonly reasoning: Schema.Finite;
|
|
7947
|
+
readonly cache: Schema.Struct<{
|
|
7948
|
+
readonly read: Schema.Finite;
|
|
7949
|
+
readonly write: Schema.Finite;
|
|
7950
|
+
}>;
|
|
7951
|
+
}>>, never, never>;
|
|
7842
7952
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7843
7953
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7844
7954
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7948,6 +8058,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7948
8058
|
}>>, never, never>;
|
|
7949
8059
|
readonly text: Schema.String;
|
|
7950
8060
|
readonly recent: Schema.String;
|
|
8061
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8062
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8063
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8064
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8065
|
+
}>, never, never>;
|
|
8066
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8067
|
+
readonly input: Schema.Finite;
|
|
8068
|
+
readonly output: Schema.Finite;
|
|
8069
|
+
readonly reasoning: Schema.Finite;
|
|
8070
|
+
readonly cache: Schema.Struct<{
|
|
8071
|
+
readonly read: Schema.Finite;
|
|
8072
|
+
readonly write: Schema.Finite;
|
|
8073
|
+
}>;
|
|
8074
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8075
|
+
readonly input: Schema.Finite;
|
|
8076
|
+
readonly output: Schema.Finite;
|
|
8077
|
+
readonly reasoning: Schema.Finite;
|
|
8078
|
+
readonly cache: Schema.Struct<{
|
|
8079
|
+
readonly read: Schema.Finite;
|
|
8080
|
+
readonly write: Schema.Finite;
|
|
8081
|
+
}>;
|
|
8082
|
+
}>>, never, never>;
|
|
7951
8083
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
7952
8084
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
7953
8085
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -7998,6 +8130,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7998
8130
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7999
8131
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8000
8132
|
}>, never, never>;
|
|
8133
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8134
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8135
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8136
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8137
|
+
}>, never, never>;
|
|
8138
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8139
|
+
readonly input: Schema.Finite;
|
|
8140
|
+
readonly output: Schema.Finite;
|
|
8141
|
+
readonly reasoning: Schema.Finite;
|
|
8142
|
+
readonly cache: Schema.Struct<{
|
|
8143
|
+
readonly read: Schema.Finite;
|
|
8144
|
+
readonly write: Schema.Finite;
|
|
8145
|
+
}>;
|
|
8146
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8147
|
+
readonly input: Schema.Finite;
|
|
8148
|
+
readonly output: Schema.Finite;
|
|
8149
|
+
readonly reasoning: Schema.Finite;
|
|
8150
|
+
readonly cache: Schema.Struct<{
|
|
8151
|
+
readonly read: Schema.Finite;
|
|
8152
|
+
readonly write: Schema.Finite;
|
|
8153
|
+
}>;
|
|
8154
|
+
}>>, never, never>;
|
|
8001
8155
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8002
8156
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8003
8157
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8024,6 +8178,28 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
8024
8178
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8025
8179
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8026
8180
|
}>, never, never>;
|
|
8181
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8182
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8183
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
8184
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
8185
|
+
}>, never, never>;
|
|
8186
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8187
|
+
readonly input: Schema.Finite;
|
|
8188
|
+
readonly output: Schema.Finite;
|
|
8189
|
+
readonly reasoning: Schema.Finite;
|
|
8190
|
+
readonly cache: Schema.Struct<{
|
|
8191
|
+
readonly read: Schema.Finite;
|
|
8192
|
+
readonly write: Schema.Finite;
|
|
8193
|
+
}>;
|
|
8194
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8195
|
+
readonly input: Schema.Finite;
|
|
8196
|
+
readonly output: Schema.Finite;
|
|
8197
|
+
readonly reasoning: Schema.Finite;
|
|
8198
|
+
readonly cache: Schema.Struct<{
|
|
8199
|
+
readonly read: Schema.Finite;
|
|
8200
|
+
readonly write: Schema.Finite;
|
|
8201
|
+
}>;
|
|
8202
|
+
}>>, never, never>;
|
|
8027
8203
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8028
8204
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8029
8205
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11420,6 +11596,28 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
11420
11596
|
}>>, never, never>;
|
|
11421
11597
|
readonly text: Schema.String;
|
|
11422
11598
|
readonly recent: Schema.String;
|
|
11599
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11600
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11601
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11602
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11603
|
+
}>, never, never>;
|
|
11604
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11605
|
+
readonly input: Schema.Finite;
|
|
11606
|
+
readonly output: Schema.Finite;
|
|
11607
|
+
readonly reasoning: Schema.Finite;
|
|
11608
|
+
readonly cache: Schema.Struct<{
|
|
11609
|
+
readonly read: Schema.Finite;
|
|
11610
|
+
readonly write: Schema.Finite;
|
|
11611
|
+
}>;
|
|
11612
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11613
|
+
readonly input: Schema.Finite;
|
|
11614
|
+
readonly output: Schema.Finite;
|
|
11615
|
+
readonly reasoning: Schema.Finite;
|
|
11616
|
+
readonly cache: Schema.Struct<{
|
|
11617
|
+
readonly read: Schema.Finite;
|
|
11618
|
+
readonly write: Schema.Finite;
|
|
11619
|
+
}>;
|
|
11620
|
+
}>>, never, never>;
|
|
11423
11621
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11424
11622
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11425
11623
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11529,6 +11727,28 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
11529
11727
|
}>>, never, never>;
|
|
11530
11728
|
readonly text: Schema.String;
|
|
11531
11729
|
readonly recent: Schema.String;
|
|
11730
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11731
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11732
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11733
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11734
|
+
}>, never, never>;
|
|
11735
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11736
|
+
readonly input: Schema.Finite;
|
|
11737
|
+
readonly output: Schema.Finite;
|
|
11738
|
+
readonly reasoning: Schema.Finite;
|
|
11739
|
+
readonly cache: Schema.Struct<{
|
|
11740
|
+
readonly read: Schema.Finite;
|
|
11741
|
+
readonly write: Schema.Finite;
|
|
11742
|
+
}>;
|
|
11743
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11744
|
+
readonly input: Schema.Finite;
|
|
11745
|
+
readonly output: Schema.Finite;
|
|
11746
|
+
readonly reasoning: Schema.Finite;
|
|
11747
|
+
readonly cache: Schema.Struct<{
|
|
11748
|
+
readonly read: Schema.Finite;
|
|
11749
|
+
readonly write: Schema.Finite;
|
|
11750
|
+
}>;
|
|
11751
|
+
}>>, never, never>;
|
|
11532
11752
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11533
11753
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11534
11754
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11579,6 +11799,28 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
11579
11799
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11580
11800
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11581
11801
|
}>, never, never>;
|
|
11802
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11803
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11804
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11805
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11806
|
+
}>, never, never>;
|
|
11807
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11808
|
+
readonly input: Schema.Finite;
|
|
11809
|
+
readonly output: Schema.Finite;
|
|
11810
|
+
readonly reasoning: Schema.Finite;
|
|
11811
|
+
readonly cache: Schema.Struct<{
|
|
11812
|
+
readonly read: Schema.Finite;
|
|
11813
|
+
readonly write: Schema.Finite;
|
|
11814
|
+
}>;
|
|
11815
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11816
|
+
readonly input: Schema.Finite;
|
|
11817
|
+
readonly output: Schema.Finite;
|
|
11818
|
+
readonly reasoning: Schema.Finite;
|
|
11819
|
+
readonly cache: Schema.Struct<{
|
|
11820
|
+
readonly read: Schema.Finite;
|
|
11821
|
+
readonly write: Schema.Finite;
|
|
11822
|
+
}>;
|
|
11823
|
+
}>>, never, never>;
|
|
11582
11824
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11583
11825
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11584
11826
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11605,6 +11847,28 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
11605
11847
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11606
11848
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11607
11849
|
}>, never, never>;
|
|
11850
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11851
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11852
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
11853
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
11854
|
+
}>, never, never>;
|
|
11855
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11856
|
+
readonly input: Schema.Finite;
|
|
11857
|
+
readonly output: Schema.Finite;
|
|
11858
|
+
readonly reasoning: Schema.Finite;
|
|
11859
|
+
readonly cache: Schema.Struct<{
|
|
11860
|
+
readonly read: Schema.Finite;
|
|
11861
|
+
readonly write: Schema.Finite;
|
|
11862
|
+
}>;
|
|
11863
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11864
|
+
readonly input: Schema.Finite;
|
|
11865
|
+
readonly output: Schema.Finite;
|
|
11866
|
+
readonly reasoning: Schema.Finite;
|
|
11867
|
+
readonly cache: Schema.Struct<{
|
|
11868
|
+
readonly read: Schema.Finite;
|
|
11869
|
+
readonly write: Schema.Finite;
|
|
11870
|
+
}>;
|
|
11871
|
+
}>>, never, never>;
|
|
11608
11872
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11609
11873
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11610
11874
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -15612,6 +15876,28 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
15612
15876
|
}>>, never, never>;
|
|
15613
15877
|
readonly text: Schema.String;
|
|
15614
15878
|
readonly recent: Schema.String;
|
|
15879
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
15880
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
15881
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
15882
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
15883
|
+
}>, never, never>;
|
|
15884
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15885
|
+
readonly input: Schema.Finite;
|
|
15886
|
+
readonly output: Schema.Finite;
|
|
15887
|
+
readonly reasoning: Schema.Finite;
|
|
15888
|
+
readonly cache: Schema.Struct<{
|
|
15889
|
+
readonly read: Schema.Finite;
|
|
15890
|
+
readonly write: Schema.Finite;
|
|
15891
|
+
}>;
|
|
15892
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15893
|
+
readonly input: Schema.Finite;
|
|
15894
|
+
readonly output: Schema.Finite;
|
|
15895
|
+
readonly reasoning: Schema.Finite;
|
|
15896
|
+
readonly cache: Schema.Struct<{
|
|
15897
|
+
readonly read: Schema.Finite;
|
|
15898
|
+
readonly write: Schema.Finite;
|
|
15899
|
+
}>;
|
|
15900
|
+
}>>, never, never>;
|
|
15615
15901
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
15616
15902
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
15617
15903
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -15721,6 +16007,28 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
15721
16007
|
}>>, never, never>;
|
|
15722
16008
|
readonly text: Schema.String;
|
|
15723
16009
|
readonly recent: Schema.String;
|
|
16010
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16011
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16012
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16013
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16014
|
+
}>, never, never>;
|
|
16015
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16016
|
+
readonly input: Schema.Finite;
|
|
16017
|
+
readonly output: Schema.Finite;
|
|
16018
|
+
readonly reasoning: Schema.Finite;
|
|
16019
|
+
readonly cache: Schema.Struct<{
|
|
16020
|
+
readonly read: Schema.Finite;
|
|
16021
|
+
readonly write: Schema.Finite;
|
|
16022
|
+
}>;
|
|
16023
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16024
|
+
readonly input: Schema.Finite;
|
|
16025
|
+
readonly output: Schema.Finite;
|
|
16026
|
+
readonly reasoning: Schema.Finite;
|
|
16027
|
+
readonly cache: Schema.Struct<{
|
|
16028
|
+
readonly read: Schema.Finite;
|
|
16029
|
+
readonly write: Schema.Finite;
|
|
16030
|
+
}>;
|
|
16031
|
+
}>>, never, never>;
|
|
15724
16032
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
15725
16033
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
15726
16034
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -15771,6 +16079,28 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
15771
16079
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
15772
16080
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
15773
16081
|
}>, never, never>;
|
|
16082
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16083
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16084
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16085
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16086
|
+
}>, never, never>;
|
|
16087
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16088
|
+
readonly input: Schema.Finite;
|
|
16089
|
+
readonly output: Schema.Finite;
|
|
16090
|
+
readonly reasoning: Schema.Finite;
|
|
16091
|
+
readonly cache: Schema.Struct<{
|
|
16092
|
+
readonly read: Schema.Finite;
|
|
16093
|
+
readonly write: Schema.Finite;
|
|
16094
|
+
}>;
|
|
16095
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16096
|
+
readonly input: Schema.Finite;
|
|
16097
|
+
readonly output: Schema.Finite;
|
|
16098
|
+
readonly reasoning: Schema.Finite;
|
|
16099
|
+
readonly cache: Schema.Struct<{
|
|
16100
|
+
readonly read: Schema.Finite;
|
|
16101
|
+
readonly write: Schema.Finite;
|
|
16102
|
+
}>;
|
|
16103
|
+
}>>, never, never>;
|
|
15774
16104
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
15775
16105
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
15776
16106
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -15797,6 +16127,28 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
15797
16127
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
15798
16128
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
15799
16129
|
}>, never, never>;
|
|
16130
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16131
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16132
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
16133
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
16134
|
+
}>, never, never>;
|
|
16135
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16136
|
+
readonly input: Schema.Finite;
|
|
16137
|
+
readonly output: Schema.Finite;
|
|
16138
|
+
readonly reasoning: Schema.Finite;
|
|
16139
|
+
readonly cache: Schema.Struct<{
|
|
16140
|
+
readonly read: Schema.Finite;
|
|
16141
|
+
readonly write: Schema.Finite;
|
|
16142
|
+
}>;
|
|
16143
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16144
|
+
readonly input: Schema.Finite;
|
|
16145
|
+
readonly output: Schema.Finite;
|
|
16146
|
+
readonly reasoning: Schema.Finite;
|
|
16147
|
+
readonly cache: Schema.Struct<{
|
|
16148
|
+
readonly read: Schema.Finite;
|
|
16149
|
+
readonly write: Schema.Finite;
|
|
16150
|
+
}>;
|
|
16151
|
+
}>>, never, never>;
|
|
15800
16152
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
15801
16153
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
15802
16154
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -19478,6 +19830,28 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
19478
19830
|
}>>, never, never>;
|
|
19479
19831
|
readonly text: Schema.String;
|
|
19480
19832
|
readonly recent: Schema.String;
|
|
19833
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
19834
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
19835
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
19836
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
19837
|
+
}>, never, never>;
|
|
19838
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
19839
|
+
readonly input: Schema.Finite;
|
|
19840
|
+
readonly output: Schema.Finite;
|
|
19841
|
+
readonly reasoning: Schema.Finite;
|
|
19842
|
+
readonly cache: Schema.Struct<{
|
|
19843
|
+
readonly read: Schema.Finite;
|
|
19844
|
+
readonly write: Schema.Finite;
|
|
19845
|
+
}>;
|
|
19846
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
19847
|
+
readonly input: Schema.Finite;
|
|
19848
|
+
readonly output: Schema.Finite;
|
|
19849
|
+
readonly reasoning: Schema.Finite;
|
|
19850
|
+
readonly cache: Schema.Struct<{
|
|
19851
|
+
readonly read: Schema.Finite;
|
|
19852
|
+
readonly write: Schema.Finite;
|
|
19853
|
+
}>;
|
|
19854
|
+
}>>, never, never>;
|
|
19481
19855
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
19482
19856
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
19483
19857
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -19587,6 +19961,28 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
19587
19961
|
}>>, never, never>;
|
|
19588
19962
|
readonly text: Schema.String;
|
|
19589
19963
|
readonly recent: Schema.String;
|
|
19964
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
19965
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
19966
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
19967
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
19968
|
+
}>, never, never>;
|
|
19969
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
19970
|
+
readonly input: Schema.Finite;
|
|
19971
|
+
readonly output: Schema.Finite;
|
|
19972
|
+
readonly reasoning: Schema.Finite;
|
|
19973
|
+
readonly cache: Schema.Struct<{
|
|
19974
|
+
readonly read: Schema.Finite;
|
|
19975
|
+
readonly write: Schema.Finite;
|
|
19976
|
+
}>;
|
|
19977
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
19978
|
+
readonly input: Schema.Finite;
|
|
19979
|
+
readonly output: Schema.Finite;
|
|
19980
|
+
readonly reasoning: Schema.Finite;
|
|
19981
|
+
readonly cache: Schema.Struct<{
|
|
19982
|
+
readonly read: Schema.Finite;
|
|
19983
|
+
readonly write: Schema.Finite;
|
|
19984
|
+
}>;
|
|
19985
|
+
}>>, never, never>;
|
|
19590
19986
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
19591
19987
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
19592
19988
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -19637,6 +20033,28 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
19637
20033
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
19638
20034
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
19639
20035
|
}>, never, never>;
|
|
20036
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
20037
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
20038
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
20039
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
20040
|
+
}>, never, never>;
|
|
20041
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
20042
|
+
readonly input: Schema.Finite;
|
|
20043
|
+
readonly output: Schema.Finite;
|
|
20044
|
+
readonly reasoning: Schema.Finite;
|
|
20045
|
+
readonly cache: Schema.Struct<{
|
|
20046
|
+
readonly read: Schema.Finite;
|
|
20047
|
+
readonly write: Schema.Finite;
|
|
20048
|
+
}>;
|
|
20049
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20050
|
+
readonly input: Schema.Finite;
|
|
20051
|
+
readonly output: Schema.Finite;
|
|
20052
|
+
readonly reasoning: Schema.Finite;
|
|
20053
|
+
readonly cache: Schema.Struct<{
|
|
20054
|
+
readonly read: Schema.Finite;
|
|
20055
|
+
readonly write: Schema.Finite;
|
|
20056
|
+
}>;
|
|
20057
|
+
}>>, never, never>;
|
|
19640
20058
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
19641
20059
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
19642
20060
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -19663,6 +20081,28 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
19663
20081
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
19664
20082
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
19665
20083
|
}>, never, never>;
|
|
20084
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
20085
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
20086
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
20087
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
20088
|
+
}>, never, never>;
|
|
20089
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
20090
|
+
readonly input: Schema.Finite;
|
|
20091
|
+
readonly output: Schema.Finite;
|
|
20092
|
+
readonly reasoning: Schema.Finite;
|
|
20093
|
+
readonly cache: Schema.Struct<{
|
|
20094
|
+
readonly read: Schema.Finite;
|
|
20095
|
+
readonly write: Schema.Finite;
|
|
20096
|
+
}>;
|
|
20097
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20098
|
+
readonly input: Schema.Finite;
|
|
20099
|
+
readonly output: Schema.Finite;
|
|
20100
|
+
readonly reasoning: Schema.Finite;
|
|
20101
|
+
readonly cache: Schema.Struct<{
|
|
20102
|
+
readonly read: Schema.Finite;
|
|
20103
|
+
readonly write: Schema.Finite;
|
|
20104
|
+
}>;
|
|
20105
|
+
}>>, never, never>;
|
|
19666
20106
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
19667
20107
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
19668
20108
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/session-event.js
CHANGED
|
@@ -504,6 +504,10 @@ export var Compaction;
|
|
|
504
504
|
providerContext: SessionMessage.CompactionCompleted.fields.providerContext,
|
|
505
505
|
text: Schema.String,
|
|
506
506
|
recent: Schema.String,
|
|
507
|
+
// Repeats the internal `session.usage.recorded` figures: that event never reaches clients, and it
|
|
508
|
+
// stays the accounting source for session totals and stats.
|
|
509
|
+
cost: SessionMessage.CompactionCompleted.fields.cost,
|
|
510
|
+
tokens: SessionMessage.CompactionCompleted.fields.tokens,
|
|
507
511
|
},
|
|
508
512
|
});
|
|
509
513
|
Compaction.Failed = Event.durable({
|
|
@@ -514,6 +518,8 @@ export var Compaction;
|
|
|
514
518
|
reason: Compaction.Started.data.fields.reason,
|
|
515
519
|
error: SessionError.Error,
|
|
516
520
|
inputID: SessionMessage.ID.pipe(optional),
|
|
521
|
+
cost: SessionMessage.CompactionFailed.fields.cost,
|
|
522
|
+
tokens: SessionMessage.CompactionFailed.fields.tokens,
|
|
517
523
|
},
|
|
518
524
|
});
|
|
519
525
|
})(Compaction || (Compaction = {}));
|
|
@@ -936,6 +936,28 @@ export declare const CompactionRunning: Schema.Struct<{
|
|
|
936
936
|
export interface CompactionCompleted extends Schema.Schema.Type<typeof CompactionCompleted> {
|
|
937
937
|
}
|
|
938
938
|
export declare const CompactionCompleted: Schema.Struct<{
|
|
939
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
940
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
941
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
942
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
943
|
+
}>, never, never>;
|
|
944
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
945
|
+
readonly input: Schema.Finite;
|
|
946
|
+
readonly output: Schema.Finite;
|
|
947
|
+
readonly reasoning: Schema.Finite;
|
|
948
|
+
readonly cache: Schema.Struct<{
|
|
949
|
+
readonly read: Schema.Finite;
|
|
950
|
+
readonly write: Schema.Finite;
|
|
951
|
+
}>;
|
|
952
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
953
|
+
readonly input: Schema.Finite;
|
|
954
|
+
readonly output: Schema.Finite;
|
|
955
|
+
readonly reasoning: Schema.Finite;
|
|
956
|
+
readonly cache: Schema.Struct<{
|
|
957
|
+
readonly read: Schema.Finite;
|
|
958
|
+
readonly write: Schema.Finite;
|
|
959
|
+
}>;
|
|
960
|
+
}>>, never, never>;
|
|
939
961
|
readonly status: Schema.tag<"completed">;
|
|
940
962
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
941
963
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1046,6 +1068,28 @@ export declare const CompactionCompleted: Schema.Struct<{
|
|
|
1046
1068
|
export interface CompactionFailed extends Schema.Schema.Type<typeof CompactionFailed> {
|
|
1047
1069
|
}
|
|
1048
1070
|
export declare const CompactionFailed: Schema.Struct<{
|
|
1071
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1072
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1073
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1074
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1075
|
+
}>, never, never>;
|
|
1076
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1077
|
+
readonly input: Schema.Finite;
|
|
1078
|
+
readonly output: Schema.Finite;
|
|
1079
|
+
readonly reasoning: Schema.Finite;
|
|
1080
|
+
readonly cache: Schema.Struct<{
|
|
1081
|
+
readonly read: Schema.Finite;
|
|
1082
|
+
readonly write: Schema.Finite;
|
|
1083
|
+
}>;
|
|
1084
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1085
|
+
readonly input: Schema.Finite;
|
|
1086
|
+
readonly output: Schema.Finite;
|
|
1087
|
+
readonly reasoning: Schema.Finite;
|
|
1088
|
+
readonly cache: Schema.Struct<{
|
|
1089
|
+
readonly read: Schema.Finite;
|
|
1090
|
+
readonly write: Schema.Finite;
|
|
1091
|
+
}>;
|
|
1092
|
+
}>>, never, never>;
|
|
1049
1093
|
readonly status: Schema.tag<"failed">;
|
|
1050
1094
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1051
1095
|
readonly error: Schema.Struct<{
|
|
@@ -1078,6 +1122,28 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
|
1078
1122
|
}>;
|
|
1079
1123
|
readonly type: Schema.tag<"compaction">;
|
|
1080
1124
|
}>, Schema.Struct<{
|
|
1125
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1126
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1127
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1128
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1129
|
+
}>, never, never>;
|
|
1130
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1131
|
+
readonly input: Schema.Finite;
|
|
1132
|
+
readonly output: Schema.Finite;
|
|
1133
|
+
readonly reasoning: Schema.Finite;
|
|
1134
|
+
readonly cache: Schema.Struct<{
|
|
1135
|
+
readonly read: Schema.Finite;
|
|
1136
|
+
readonly write: Schema.Finite;
|
|
1137
|
+
}>;
|
|
1138
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1139
|
+
readonly input: Schema.Finite;
|
|
1140
|
+
readonly output: Schema.Finite;
|
|
1141
|
+
readonly reasoning: Schema.Finite;
|
|
1142
|
+
readonly cache: Schema.Struct<{
|
|
1143
|
+
readonly read: Schema.Finite;
|
|
1144
|
+
readonly write: Schema.Finite;
|
|
1145
|
+
}>;
|
|
1146
|
+
}>>, never, never>;
|
|
1081
1147
|
readonly status: Schema.tag<"completed">;
|
|
1082
1148
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1083
1149
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1185,6 +1251,28 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
|
1185
1251
|
}>;
|
|
1186
1252
|
readonly type: Schema.tag<"compaction">;
|
|
1187
1253
|
}>, Schema.Struct<{
|
|
1254
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1255
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1256
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1257
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1258
|
+
}>, never, never>;
|
|
1259
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1260
|
+
readonly input: Schema.Finite;
|
|
1261
|
+
readonly output: Schema.Finite;
|
|
1262
|
+
readonly reasoning: Schema.Finite;
|
|
1263
|
+
readonly cache: Schema.Struct<{
|
|
1264
|
+
readonly read: Schema.Finite;
|
|
1265
|
+
readonly write: Schema.Finite;
|
|
1266
|
+
}>;
|
|
1267
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1268
|
+
readonly input: Schema.Finite;
|
|
1269
|
+
readonly output: Schema.Finite;
|
|
1270
|
+
readonly reasoning: Schema.Finite;
|
|
1271
|
+
readonly cache: Schema.Struct<{
|
|
1272
|
+
readonly read: Schema.Finite;
|
|
1273
|
+
readonly write: Schema.Finite;
|
|
1274
|
+
}>;
|
|
1275
|
+
}>>, never, never>;
|
|
1188
1276
|
readonly status: Schema.tag<"failed">;
|
|
1189
1277
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1190
1278
|
readonly error: Schema.Struct<{
|
|
@@ -1747,6 +1835,28 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1747
1835
|
}>;
|
|
1748
1836
|
readonly type: Schema.tag<"compaction">;
|
|
1749
1837
|
}>, Schema.Struct<{
|
|
1838
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1839
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1840
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1841
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1842
|
+
}>, never, never>;
|
|
1843
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1844
|
+
readonly input: Schema.Finite;
|
|
1845
|
+
readonly output: Schema.Finite;
|
|
1846
|
+
readonly reasoning: Schema.Finite;
|
|
1847
|
+
readonly cache: Schema.Struct<{
|
|
1848
|
+
readonly read: Schema.Finite;
|
|
1849
|
+
readonly write: Schema.Finite;
|
|
1850
|
+
}>;
|
|
1851
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1852
|
+
readonly input: Schema.Finite;
|
|
1853
|
+
readonly output: Schema.Finite;
|
|
1854
|
+
readonly reasoning: Schema.Finite;
|
|
1855
|
+
readonly cache: Schema.Struct<{
|
|
1856
|
+
readonly read: Schema.Finite;
|
|
1857
|
+
readonly write: Schema.Finite;
|
|
1858
|
+
}>;
|
|
1859
|
+
}>>, never, never>;
|
|
1750
1860
|
readonly status: Schema.tag<"completed">;
|
|
1751
1861
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1752
1862
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1854,6 +1964,28 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1854
1964
|
}>;
|
|
1855
1965
|
readonly type: Schema.tag<"compaction">;
|
|
1856
1966
|
}>, Schema.Struct<{
|
|
1967
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1968
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1969
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1970
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1971
|
+
}>, never, never>;
|
|
1972
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1973
|
+
readonly input: Schema.Finite;
|
|
1974
|
+
readonly output: Schema.Finite;
|
|
1975
|
+
readonly reasoning: Schema.Finite;
|
|
1976
|
+
readonly cache: Schema.Struct<{
|
|
1977
|
+
readonly read: Schema.Finite;
|
|
1978
|
+
readonly write: Schema.Finite;
|
|
1979
|
+
}>;
|
|
1980
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1981
|
+
readonly input: Schema.Finite;
|
|
1982
|
+
readonly output: Schema.Finite;
|
|
1983
|
+
readonly reasoning: Schema.Finite;
|
|
1984
|
+
readonly cache: Schema.Struct<{
|
|
1985
|
+
readonly read: Schema.Finite;
|
|
1986
|
+
readonly write: Schema.Finite;
|
|
1987
|
+
}>;
|
|
1988
|
+
}>>, never, never>;
|
|
1857
1989
|
readonly status: Schema.tag<"failed">;
|
|
1858
1990
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1859
1991
|
readonly error: Schema.Struct<{
|
package/dist/session-message.js
CHANGED
|
@@ -182,6 +182,11 @@ export const Assistant = Schema.Struct({
|
|
|
182
182
|
}),
|
|
183
183
|
}).annotate({ identifier: "Session.Message.Assistant" });
|
|
184
184
|
const CompactionBase = { type: Schema.tag("compaction"), ...Base };
|
|
185
|
+
/** Usage of the compaction request itself, not the size of the resulting context. */
|
|
186
|
+
const CompactionUsage = {
|
|
187
|
+
cost: Money.USD.pipe(optional),
|
|
188
|
+
tokens: TokenUsage.Info.pipe(optional),
|
|
189
|
+
};
|
|
185
190
|
export const CompactionRunning = Schema.Struct({
|
|
186
191
|
...CompactionBase,
|
|
187
192
|
status: Schema.tag("running"),
|
|
@@ -198,12 +203,14 @@ export const CompactionCompleted = Schema.Struct({
|
|
|
198
203
|
summary: Schema.String,
|
|
199
204
|
recent: Schema.String,
|
|
200
205
|
providerContext: SessionProviderContext.Info.pipe(optional),
|
|
206
|
+
...CompactionUsage,
|
|
201
207
|
}).annotate({ identifier: "Session.Message.Compaction.Completed" });
|
|
202
208
|
export const CompactionFailed = Schema.Struct({
|
|
203
209
|
...CompactionBase,
|
|
204
210
|
status: Schema.tag("failed"),
|
|
205
211
|
reason: Schema.Literals(["auto", "manual"]),
|
|
206
212
|
error: SessionError.Error,
|
|
213
|
+
...CompactionUsage,
|
|
207
214
|
}).annotate({ identifier: "Session.Message.Compaction.Failed" });
|
|
208
215
|
export const Compaction = Schema.Union([CompactionRunning, CompactionCompleted, CompactionFailed]).pipe(Schema.toTaggedUnion("status"), Schema.annotate({ identifier: "Session.Message.Compaction" }));
|
|
209
216
|
export const Info = Schema.Union([
|
|
@@ -717,6 +717,28 @@ export declare const Data: Schema.Struct<{
|
|
|
717
717
|
}>;
|
|
718
718
|
readonly type: Schema.tag<"compaction">;
|
|
719
719
|
}>, Schema.Struct<{
|
|
720
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
721
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
722
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
723
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
724
|
+
}>, never, never>;
|
|
725
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
726
|
+
readonly input: Schema.Finite;
|
|
727
|
+
readonly output: Schema.Finite;
|
|
728
|
+
readonly reasoning: Schema.Finite;
|
|
729
|
+
readonly cache: Schema.Struct<{
|
|
730
|
+
readonly read: Schema.Finite;
|
|
731
|
+
readonly write: Schema.Finite;
|
|
732
|
+
}>;
|
|
733
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
734
|
+
readonly input: Schema.Finite;
|
|
735
|
+
readonly output: Schema.Finite;
|
|
736
|
+
readonly reasoning: Schema.Finite;
|
|
737
|
+
readonly cache: Schema.Struct<{
|
|
738
|
+
readonly read: Schema.Finite;
|
|
739
|
+
readonly write: Schema.Finite;
|
|
740
|
+
}>;
|
|
741
|
+
}>>, never, never>;
|
|
720
742
|
readonly status: Schema.tag<"completed">;
|
|
721
743
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
722
744
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -824,6 +846,28 @@ export declare const Data: Schema.Struct<{
|
|
|
824
846
|
}>;
|
|
825
847
|
readonly type: Schema.tag<"compaction">;
|
|
826
848
|
}>, Schema.Struct<{
|
|
849
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
850
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
851
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
852
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
853
|
+
}>, never, never>;
|
|
854
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
855
|
+
readonly input: Schema.Finite;
|
|
856
|
+
readonly output: Schema.Finite;
|
|
857
|
+
readonly reasoning: Schema.Finite;
|
|
858
|
+
readonly cache: Schema.Struct<{
|
|
859
|
+
readonly read: Schema.Finite;
|
|
860
|
+
readonly write: Schema.Finite;
|
|
861
|
+
}>;
|
|
862
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
863
|
+
readonly input: Schema.Finite;
|
|
864
|
+
readonly output: Schema.Finite;
|
|
865
|
+
readonly reasoning: Schema.Finite;
|
|
866
|
+
readonly cache: Schema.Struct<{
|
|
867
|
+
readonly read: Schema.Finite;
|
|
868
|
+
readonly write: Schema.Finite;
|
|
869
|
+
}>;
|
|
870
|
+
}>>, never, never>;
|
|
827
871
|
readonly status: Schema.tag<"failed">;
|
|
828
872
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
829
873
|
readonly error: Schema.Struct<{
|