@opencode-ai/schema 0.0.0-beta-19242 → 0.0.0-beta-19271
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/config/provider.d.ts +22 -0
- package/dist/config/provider.js +2 -0
- package/dist/event-manifest.d.ts +188 -0
- package/dist/model.d.ts +11 -0
- package/dist/model.js +1 -0
- package/dist/provider.d.ts +18 -0
- package/dist/provider.js +6 -1
- package/dist/session-event.d.ts +470 -0
- package/dist/session-event.js +1 -0
- package/dist/session-message.d.ts +141 -0
- package/dist/session-message.js +2 -0
- package/dist/session-provider-context.d.ts +54 -0
- package/dist/session-provider-context.js +17 -0
- package/dist/session-transfer.d.ts +47 -0
- package/package.json +1 -1
|
@@ -91,6 +91,17 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
|
|
|
91
91
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
92
92
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
93
93
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
94
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
95
|
+
readonly mode: Schema.Literal<"local">;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly mode: Schema.Literal<"provider">;
|
|
98
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
99
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
100
|
+
readonly mode: Schema.Literal<"local">;
|
|
101
|
+
}>, Schema.Struct<{
|
|
102
|
+
readonly mode: Schema.Literal<"provider">;
|
|
103
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
104
|
+
}>]>>, never, never>;
|
|
94
105
|
readonly modelID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.ID">>, never, never>;
|
|
95
106
|
readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.Family">>, never, never>;
|
|
96
107
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -116,6 +127,17 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
116
127
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
117
128
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
118
129
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
130
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
131
|
+
readonly mode: Schema.Literal<"local">;
|
|
132
|
+
}>, Schema.Struct<{
|
|
133
|
+
readonly mode: Schema.Literal<"provider">;
|
|
134
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
135
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
136
|
+
readonly mode: Schema.Literal<"local">;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
readonly mode: Schema.Literal<"provider">;
|
|
139
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
140
|
+
}>]>>, never, never>;
|
|
119
141
|
readonly canonical: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
120
142
|
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
121
143
|
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
package/dist/config/provider.js
CHANGED
|
@@ -37,6 +37,7 @@ class Limit extends Schema.Class("Config.Model.Limit")({
|
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
39
39
|
class Model extends Schema.Class("Config.Model")({
|
|
40
|
+
compaction: Provider.Compaction.pipe(optional),
|
|
40
41
|
modelID: ID.pipe(optional),
|
|
41
42
|
family: Family.pipe(optional),
|
|
42
43
|
name: Schema.String.pipe(optional),
|
|
@@ -54,6 +55,7 @@ class Model extends Schema.Class("Config.Model")({
|
|
|
54
55
|
}) {
|
|
55
56
|
}
|
|
56
57
|
export class Info extends Schema.Class("Config.Provider")({
|
|
58
|
+
compaction: Provider.Compaction.pipe(optional),
|
|
57
59
|
canonical: Provider.ID.pipe(optional),
|
|
58
60
|
name: Schema.String.pipe(optional),
|
|
59
61
|
env: Schema.String.pipe(Schema.Array, optional),
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -3660,6 +3660,53 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3660
3660
|
};
|
|
3661
3661
|
}>, never, never>;
|
|
3662
3662
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3663
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3664
|
+
readonly version: Schema.Literal<1>;
|
|
3665
|
+
readonly provenance: Schema.Struct<{
|
|
3666
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3667
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3668
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3669
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3670
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3671
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3672
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3673
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3674
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3675
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3676
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3677
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3678
|
+
};
|
|
3679
|
+
readonly provider: Schema.String;
|
|
3680
|
+
readonly modelID: Schema.String;
|
|
3681
|
+
readonly route: Schema.String;
|
|
3682
|
+
readonly protocol: Schema.String;
|
|
3683
|
+
readonly endpoint: Schema.String;
|
|
3684
|
+
}>;
|
|
3685
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3686
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3687
|
+
readonly version: Schema.Literal<1>;
|
|
3688
|
+
readonly provenance: Schema.Struct<{
|
|
3689
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3690
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3691
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3692
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3693
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3694
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3695
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3696
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3697
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3698
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3699
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3700
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3701
|
+
};
|
|
3702
|
+
readonly provider: Schema.String;
|
|
3703
|
+
readonly modelID: Schema.String;
|
|
3704
|
+
readonly route: Schema.String;
|
|
3705
|
+
readonly protocol: Schema.String;
|
|
3706
|
+
readonly endpoint: Schema.String;
|
|
3707
|
+
}>;
|
|
3708
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3709
|
+
}>>, never, never>;
|
|
3663
3710
|
readonly text: Schema.String;
|
|
3664
3711
|
readonly recent: Schema.String;
|
|
3665
3712
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3722,6 +3769,53 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
3722
3769
|
};
|
|
3723
3770
|
}>, never, never>;
|
|
3724
3771
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3772
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3773
|
+
readonly version: Schema.Literal<1>;
|
|
3774
|
+
readonly provenance: Schema.Struct<{
|
|
3775
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3776
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3777
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3778
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3779
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3780
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3781
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3782
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3783
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3784
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3785
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3786
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3787
|
+
};
|
|
3788
|
+
readonly provider: Schema.String;
|
|
3789
|
+
readonly modelID: Schema.String;
|
|
3790
|
+
readonly route: Schema.String;
|
|
3791
|
+
readonly protocol: Schema.String;
|
|
3792
|
+
readonly endpoint: Schema.String;
|
|
3793
|
+
}>;
|
|
3794
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3795
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3796
|
+
readonly version: Schema.Literal<1>;
|
|
3797
|
+
readonly provenance: Schema.Struct<{
|
|
3798
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3799
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3800
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3801
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3802
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3803
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3804
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3805
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3806
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3807
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3808
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3809
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3810
|
+
};
|
|
3811
|
+
readonly provider: Schema.String;
|
|
3812
|
+
readonly modelID: Schema.String;
|
|
3813
|
+
readonly route: Schema.String;
|
|
3814
|
+
readonly protocol: Schema.String;
|
|
3815
|
+
readonly endpoint: Schema.String;
|
|
3816
|
+
}>;
|
|
3817
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3818
|
+
}>>, never, never>;
|
|
3725
3819
|
readonly text: Schema.String;
|
|
3726
3820
|
readonly recent: Schema.String;
|
|
3727
3821
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -9760,6 +9854,53 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9760
9854
|
};
|
|
9761
9855
|
}>, never, never>;
|
|
9762
9856
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9857
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9858
|
+
readonly version: Schema.Literal<1>;
|
|
9859
|
+
readonly provenance: Schema.Struct<{
|
|
9860
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
9861
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9862
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9863
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9864
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9865
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9866
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9867
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9868
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9869
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9870
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9871
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9872
|
+
};
|
|
9873
|
+
readonly provider: Schema.String;
|
|
9874
|
+
readonly modelID: Schema.String;
|
|
9875
|
+
readonly route: Schema.String;
|
|
9876
|
+
readonly protocol: Schema.String;
|
|
9877
|
+
readonly endpoint: Schema.String;
|
|
9878
|
+
}>;
|
|
9879
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
9880
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9881
|
+
readonly version: Schema.Literal<1>;
|
|
9882
|
+
readonly provenance: Schema.Struct<{
|
|
9883
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
9884
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9885
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9886
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9887
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9888
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9889
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9890
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9891
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9892
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9893
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9894
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9895
|
+
};
|
|
9896
|
+
readonly provider: Schema.String;
|
|
9897
|
+
readonly modelID: Schema.String;
|
|
9898
|
+
readonly route: Schema.String;
|
|
9899
|
+
readonly protocol: Schema.String;
|
|
9900
|
+
readonly endpoint: Schema.String;
|
|
9901
|
+
}>;
|
|
9902
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
9903
|
+
}>>, never, never>;
|
|
9763
9904
|
readonly text: Schema.String;
|
|
9764
9905
|
readonly recent: Schema.String;
|
|
9765
9906
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -9822,6 +9963,53 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
9822
9963
|
};
|
|
9823
9964
|
}>, never, never>;
|
|
9824
9965
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
9966
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9967
|
+
readonly version: Schema.Literal<1>;
|
|
9968
|
+
readonly provenance: Schema.Struct<{
|
|
9969
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
9970
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9971
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9972
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9973
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9974
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9975
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9976
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9977
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9978
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9979
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9980
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9981
|
+
};
|
|
9982
|
+
readonly provider: Schema.String;
|
|
9983
|
+
readonly modelID: Schema.String;
|
|
9984
|
+
readonly route: Schema.String;
|
|
9985
|
+
readonly protocol: Schema.String;
|
|
9986
|
+
readonly endpoint: Schema.String;
|
|
9987
|
+
}>;
|
|
9988
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
9989
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9990
|
+
readonly version: Schema.Literal<1>;
|
|
9991
|
+
readonly provenance: Schema.Struct<{
|
|
9992
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
9993
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9994
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9995
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9996
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9997
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9998
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9999
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
10000
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
10001
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
10002
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
10003
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
10004
|
+
};
|
|
10005
|
+
readonly provider: Schema.String;
|
|
10006
|
+
readonly modelID: Schema.String;
|
|
10007
|
+
readonly route: Schema.String;
|
|
10008
|
+
readonly protocol: Schema.String;
|
|
10009
|
+
readonly endpoint: Schema.String;
|
|
10010
|
+
}>;
|
|
10011
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
10012
|
+
}>>, never, never>;
|
|
9825
10013
|
readonly text: Schema.String;
|
|
9826
10014
|
readonly recent: Schema.String;
|
|
9827
10015
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
package/dist/model.d.ts
CHANGED
|
@@ -208,6 +208,17 @@ export declare const Info: Schema.Struct<{
|
|
|
208
208
|
readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
209
209
|
}>>, never, never>;
|
|
210
210
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
211
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
212
|
+
readonly mode: Schema.Literal<"local">;
|
|
213
|
+
}>, Schema.Struct<{
|
|
214
|
+
readonly mode: Schema.Literal<"provider">;
|
|
215
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
216
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
217
|
+
readonly mode: Schema.Literal<"local">;
|
|
218
|
+
}>, Schema.Struct<{
|
|
219
|
+
readonly mode: Schema.Literal<"provider">;
|
|
220
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
221
|
+
}>]>>, never, never>;
|
|
211
222
|
}> & {
|
|
212
223
|
default: (providerID: Provider.ID, id: ID) => {
|
|
213
224
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
package/dist/model.js
CHANGED
|
@@ -80,6 +80,7 @@ export const Info = Schema.Struct({
|
|
|
80
80
|
name: Schema.String,
|
|
81
81
|
compatibility: Compatibility.pipe(optional),
|
|
82
82
|
package: Provider.Package.pipe(optional),
|
|
83
|
+
compaction: Provider.Compaction.pipe(optional),
|
|
83
84
|
...Provider.Overlays,
|
|
84
85
|
capabilities: Capabilities,
|
|
85
86
|
variants: Schema.Array(Variant),
|
package/dist/provider.d.ts
CHANGED
|
@@ -18,6 +18,13 @@ export declare const Package: Schema.String;
|
|
|
18
18
|
export type Package = typeof Package.Type;
|
|
19
19
|
export declare const Activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
|
|
20
20
|
export type Activation = typeof Activation.Type;
|
|
21
|
+
export type Compaction = typeof Compaction.Type;
|
|
22
|
+
export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
23
|
+
readonly mode: Schema.Literal<"local">;
|
|
24
|
+
}>, Schema.Struct<{
|
|
25
|
+
readonly mode: Schema.Literal<"provider">;
|
|
26
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
27
|
+
}>]>;
|
|
21
28
|
export declare const Overlays: {
|
|
22
29
|
settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
23
30
|
headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
@@ -80,6 +87,17 @@ export declare const Info: Schema.Struct<{
|
|
|
80
87
|
readonly name: Schema.String;
|
|
81
88
|
readonly activation: Schema.Literals<readonly ["auto", "enabled", "disabled"]>;
|
|
82
89
|
readonly package: Schema.String;
|
|
90
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
91
|
+
readonly mode: Schema.Literal<"local">;
|
|
92
|
+
}>, Schema.Struct<{
|
|
93
|
+
readonly mode: Schema.Literal<"provider">;
|
|
94
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
95
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
96
|
+
readonly mode: Schema.Literal<"local">;
|
|
97
|
+
}>, Schema.Struct<{
|
|
98
|
+
readonly mode: Schema.Literal<"provider">;
|
|
99
|
+
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
100
|
+
}>]>>, never, never>;
|
|
83
101
|
}> & {
|
|
84
102
|
empty: (id: ID) => Info;
|
|
85
103
|
};
|
package/dist/provider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as Provider from "./provider.js";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
3
|
import { Integration } from "./integration.js";
|
|
4
|
-
import { optional, statics } from "./schema.js";
|
|
4
|
+
import { optional, PositiveInt, statics } from "./schema.js";
|
|
5
5
|
export const ID = Schema.String.pipe(Schema.brand("Provider.ID"), statics((schema) => ({
|
|
6
6
|
opencode: schema.make("opencode"),
|
|
7
7
|
anthropic: schema.make("anthropic"),
|
|
@@ -17,6 +17,10 @@ export const ID = Schema.String.pipe(Schema.brand("Provider.ID"), statics((schem
|
|
|
17
17
|
})));
|
|
18
18
|
export const Package = Schema.String;
|
|
19
19
|
export const Activation = Schema.Literals(["auto", "enabled", "disabled"]);
|
|
20
|
+
export const Compaction = Schema.Union([
|
|
21
|
+
Schema.Struct({ mode: Schema.Literal("local") }),
|
|
22
|
+
Schema.Struct({ mode: Schema.Literal("provider"), threshold: PositiveInt.pipe(optional) }),
|
|
23
|
+
]).annotate({ identifier: "Provider.Compaction" });
|
|
20
24
|
export const Overlays = {
|
|
21
25
|
settings: Schema.Record(Schema.String, Schema.Any).pipe(optional),
|
|
22
26
|
headers: Schema.Record(Schema.String, Schema.String).pipe(optional),
|
|
@@ -35,6 +39,7 @@ export const Info = Schema.Struct({
|
|
|
35
39
|
name: Schema.String,
|
|
36
40
|
activation: Activation,
|
|
37
41
|
package: Package,
|
|
42
|
+
compaction: Compaction.pipe(optional),
|
|
38
43
|
...Overlays,
|
|
39
44
|
})
|
|
40
45
|
.annotate({ identifier: "Provider.Info" })
|
package/dist/session-event.d.ts
CHANGED
|
@@ -3874,6 +3874,53 @@ export declare namespace Compaction {
|
|
|
3874
3874
|
};
|
|
3875
3875
|
}>, never, never>;
|
|
3876
3876
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3877
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3878
|
+
readonly version: Schema.Literal<1>;
|
|
3879
|
+
readonly provenance: Schema.Struct<{
|
|
3880
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3881
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3882
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3883
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3884
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3885
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3886
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3887
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3888
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3889
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3890
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3891
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3892
|
+
};
|
|
3893
|
+
readonly provider: Schema.String;
|
|
3894
|
+
readonly modelID: Schema.String;
|
|
3895
|
+
readonly route: Schema.String;
|
|
3896
|
+
readonly protocol: Schema.String;
|
|
3897
|
+
readonly endpoint: Schema.String;
|
|
3898
|
+
}>;
|
|
3899
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3900
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3901
|
+
readonly version: Schema.Literal<1>;
|
|
3902
|
+
readonly provenance: Schema.Struct<{
|
|
3903
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3904
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3905
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3906
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3907
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3908
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3909
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3910
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3911
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3912
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3913
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3914
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3915
|
+
};
|
|
3916
|
+
readonly provider: Schema.String;
|
|
3917
|
+
readonly modelID: Schema.String;
|
|
3918
|
+
readonly route: Schema.String;
|
|
3919
|
+
readonly protocol: Schema.String;
|
|
3920
|
+
readonly endpoint: Schema.String;
|
|
3921
|
+
}>;
|
|
3922
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3923
|
+
}>>, never, never>;
|
|
3877
3924
|
readonly text: Schema.String;
|
|
3878
3925
|
readonly recent: Schema.String;
|
|
3879
3926
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3936,6 +3983,53 @@ export declare namespace Compaction {
|
|
|
3936
3983
|
};
|
|
3937
3984
|
}>, never, never>;
|
|
3938
3985
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3986
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3987
|
+
readonly version: Schema.Literal<1>;
|
|
3988
|
+
readonly provenance: Schema.Struct<{
|
|
3989
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
3990
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3991
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3992
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3993
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3994
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3995
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3996
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3997
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3998
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
3999
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4000
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4001
|
+
};
|
|
4002
|
+
readonly provider: Schema.String;
|
|
4003
|
+
readonly modelID: Schema.String;
|
|
4004
|
+
readonly route: Schema.String;
|
|
4005
|
+
readonly protocol: Schema.String;
|
|
4006
|
+
readonly endpoint: Schema.String;
|
|
4007
|
+
}>;
|
|
4008
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
4009
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4010
|
+
readonly version: Schema.Literal<1>;
|
|
4011
|
+
readonly provenance: Schema.Struct<{
|
|
4012
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
4013
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4014
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4015
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4016
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4017
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4018
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4019
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4020
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4021
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4022
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4023
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
4024
|
+
};
|
|
4025
|
+
readonly provider: Schema.String;
|
|
4026
|
+
readonly modelID: Schema.String;
|
|
4027
|
+
readonly route: Schema.String;
|
|
4028
|
+
readonly protocol: Schema.String;
|
|
4029
|
+
readonly endpoint: Schema.String;
|
|
4030
|
+
}>;
|
|
4031
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
4032
|
+
}>>, never, never>;
|
|
3939
4033
|
readonly text: Schema.String;
|
|
3940
4034
|
readonly recent: Schema.String;
|
|
3941
4035
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -7696,6 +7790,53 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7696
7790
|
};
|
|
7697
7791
|
}>, never, never>;
|
|
7698
7792
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7793
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7794
|
+
readonly version: Schema.Literal<1>;
|
|
7795
|
+
readonly provenance: Schema.Struct<{
|
|
7796
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
7797
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7798
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7799
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7800
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7801
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7802
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7803
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7804
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7805
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7806
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7807
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7808
|
+
};
|
|
7809
|
+
readonly provider: Schema.String;
|
|
7810
|
+
readonly modelID: Schema.String;
|
|
7811
|
+
readonly route: Schema.String;
|
|
7812
|
+
readonly protocol: Schema.String;
|
|
7813
|
+
readonly endpoint: Schema.String;
|
|
7814
|
+
}>;
|
|
7815
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
7816
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7817
|
+
readonly version: Schema.Literal<1>;
|
|
7818
|
+
readonly provenance: Schema.Struct<{
|
|
7819
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
7820
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7821
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7822
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7823
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7824
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7825
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7826
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7827
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7828
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7829
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7830
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7831
|
+
};
|
|
7832
|
+
readonly provider: Schema.String;
|
|
7833
|
+
readonly modelID: Schema.String;
|
|
7834
|
+
readonly route: Schema.String;
|
|
7835
|
+
readonly protocol: Schema.String;
|
|
7836
|
+
readonly endpoint: Schema.String;
|
|
7837
|
+
}>;
|
|
7838
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
7839
|
+
}>>, never, never>;
|
|
7699
7840
|
readonly text: Schema.String;
|
|
7700
7841
|
readonly recent: Schema.String;
|
|
7701
7842
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -7758,6 +7899,53 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7758
7899
|
};
|
|
7759
7900
|
}>, never, never>;
|
|
7760
7901
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
7902
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
7903
|
+
readonly version: Schema.Literal<1>;
|
|
7904
|
+
readonly provenance: Schema.Struct<{
|
|
7905
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
7906
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7907
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7908
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7909
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7910
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7911
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7912
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7913
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7914
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7915
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7916
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7917
|
+
};
|
|
7918
|
+
readonly provider: Schema.String;
|
|
7919
|
+
readonly modelID: Schema.String;
|
|
7920
|
+
readonly route: Schema.String;
|
|
7921
|
+
readonly protocol: Schema.String;
|
|
7922
|
+
readonly endpoint: Schema.String;
|
|
7923
|
+
}>;
|
|
7924
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
7925
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
7926
|
+
readonly version: Schema.Literal<1>;
|
|
7927
|
+
readonly provenance: Schema.Struct<{
|
|
7928
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
7929
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7930
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7931
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7932
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7933
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7934
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7935
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7936
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7937
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7938
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7939
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
7940
|
+
};
|
|
7941
|
+
readonly provider: Schema.String;
|
|
7942
|
+
readonly modelID: Schema.String;
|
|
7943
|
+
readonly route: Schema.String;
|
|
7944
|
+
readonly protocol: Schema.String;
|
|
7945
|
+
readonly endpoint: Schema.String;
|
|
7946
|
+
}>;
|
|
7947
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
7948
|
+
}>>, never, never>;
|
|
7761
7949
|
readonly text: Schema.String;
|
|
7762
7950
|
readonly recent: Schema.String;
|
|
7763
7951
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -11599,6 +11787,53 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
11599
11787
|
};
|
|
11600
11788
|
}>, never, never>;
|
|
11601
11789
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11790
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11791
|
+
readonly version: Schema.Literal<1>;
|
|
11792
|
+
readonly provenance: Schema.Struct<{
|
|
11793
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
11794
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11795
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11796
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11797
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11798
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11799
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11800
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11801
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11802
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11803
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11804
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11805
|
+
};
|
|
11806
|
+
readonly provider: Schema.String;
|
|
11807
|
+
readonly modelID: Schema.String;
|
|
11808
|
+
readonly route: Schema.String;
|
|
11809
|
+
readonly protocol: Schema.String;
|
|
11810
|
+
readonly endpoint: Schema.String;
|
|
11811
|
+
}>;
|
|
11812
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
11813
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11814
|
+
readonly version: Schema.Literal<1>;
|
|
11815
|
+
readonly provenance: Schema.Struct<{
|
|
11816
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
11817
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11818
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11819
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11820
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11821
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11822
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11823
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11824
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11825
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11826
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11827
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11828
|
+
};
|
|
11829
|
+
readonly provider: Schema.String;
|
|
11830
|
+
readonly modelID: Schema.String;
|
|
11831
|
+
readonly route: Schema.String;
|
|
11832
|
+
readonly protocol: Schema.String;
|
|
11833
|
+
readonly endpoint: Schema.String;
|
|
11834
|
+
}>;
|
|
11835
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
11836
|
+
}>>, never, never>;
|
|
11602
11837
|
readonly text: Schema.String;
|
|
11603
11838
|
readonly recent: Schema.String;
|
|
11604
11839
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -11661,6 +11896,53 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
|
|
|
11661
11896
|
};
|
|
11662
11897
|
}>, never, never>;
|
|
11663
11898
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11899
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11900
|
+
readonly version: Schema.Literal<1>;
|
|
11901
|
+
readonly provenance: Schema.Struct<{
|
|
11902
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
11903
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11904
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11905
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11906
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11907
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11908
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11909
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11910
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11911
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11912
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11913
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11914
|
+
};
|
|
11915
|
+
readonly provider: Schema.String;
|
|
11916
|
+
readonly modelID: Schema.String;
|
|
11917
|
+
readonly route: Schema.String;
|
|
11918
|
+
readonly protocol: Schema.String;
|
|
11919
|
+
readonly endpoint: Schema.String;
|
|
11920
|
+
}>;
|
|
11921
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
11922
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11923
|
+
readonly version: Schema.Literal<1>;
|
|
11924
|
+
readonly provenance: Schema.Struct<{
|
|
11925
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
11926
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11927
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11928
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11929
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11930
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11931
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11932
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11933
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11934
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11935
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11936
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11937
|
+
};
|
|
11938
|
+
readonly provider: Schema.String;
|
|
11939
|
+
readonly modelID: Schema.String;
|
|
11940
|
+
readonly route: Schema.String;
|
|
11941
|
+
readonly protocol: Schema.String;
|
|
11942
|
+
readonly endpoint: Schema.String;
|
|
11943
|
+
}>;
|
|
11944
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
11945
|
+
}>>, never, never>;
|
|
11664
11946
|
readonly text: Schema.String;
|
|
11665
11947
|
readonly recent: Schema.String;
|
|
11666
11948
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -15697,6 +15979,53 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
15697
15979
|
};
|
|
15698
15980
|
}>, never, never>;
|
|
15699
15981
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
15982
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15983
|
+
readonly version: Schema.Literal<1>;
|
|
15984
|
+
readonly provenance: Schema.Struct<{
|
|
15985
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
15986
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15987
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15988
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15989
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15990
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15991
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15992
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15993
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15994
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15995
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15996
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15997
|
+
};
|
|
15998
|
+
readonly provider: Schema.String;
|
|
15999
|
+
readonly modelID: Schema.String;
|
|
16000
|
+
readonly route: Schema.String;
|
|
16001
|
+
readonly protocol: Schema.String;
|
|
16002
|
+
readonly endpoint: Schema.String;
|
|
16003
|
+
}>;
|
|
16004
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
16005
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16006
|
+
readonly version: Schema.Literal<1>;
|
|
16007
|
+
readonly provenance: Schema.Struct<{
|
|
16008
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
16009
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16010
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16011
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16012
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16013
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16014
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16015
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16016
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16017
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16018
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16019
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16020
|
+
};
|
|
16021
|
+
readonly provider: Schema.String;
|
|
16022
|
+
readonly modelID: Schema.String;
|
|
16023
|
+
readonly route: Schema.String;
|
|
16024
|
+
readonly protocol: Schema.String;
|
|
16025
|
+
readonly endpoint: Schema.String;
|
|
16026
|
+
}>;
|
|
16027
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
16028
|
+
}>>, never, never>;
|
|
15700
16029
|
readonly text: Schema.String;
|
|
15701
16030
|
readonly recent: Schema.String;
|
|
15702
16031
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -15759,6 +16088,53 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
15759
16088
|
};
|
|
15760
16089
|
}>, never, never>;
|
|
15761
16090
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16091
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
16092
|
+
readonly version: Schema.Literal<1>;
|
|
16093
|
+
readonly provenance: Schema.Struct<{
|
|
16094
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
16095
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16096
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16097
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16098
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16099
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16100
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16101
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16102
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16103
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16104
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16105
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16106
|
+
};
|
|
16107
|
+
readonly provider: Schema.String;
|
|
16108
|
+
readonly modelID: Schema.String;
|
|
16109
|
+
readonly route: Schema.String;
|
|
16110
|
+
readonly protocol: Schema.String;
|
|
16111
|
+
readonly endpoint: Schema.String;
|
|
16112
|
+
}>;
|
|
16113
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
16114
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
16115
|
+
readonly version: Schema.Literal<1>;
|
|
16116
|
+
readonly provenance: Schema.Struct<{
|
|
16117
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
16118
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16119
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16120
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16121
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16122
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16123
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16124
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16125
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16126
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16127
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16128
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16129
|
+
};
|
|
16130
|
+
readonly provider: Schema.String;
|
|
16131
|
+
readonly modelID: Schema.String;
|
|
16132
|
+
readonly route: Schema.String;
|
|
16133
|
+
readonly protocol: Schema.String;
|
|
16134
|
+
readonly endpoint: Schema.String;
|
|
16135
|
+
}>;
|
|
16136
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
16137
|
+
}>>, never, never>;
|
|
15762
16138
|
readonly text: Schema.String;
|
|
15763
16139
|
readonly recent: Schema.String;
|
|
15764
16140
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -19469,6 +19845,53 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
19469
19845
|
};
|
|
19470
19846
|
}>, never, never>;
|
|
19471
19847
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
19848
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
19849
|
+
readonly version: Schema.Literal<1>;
|
|
19850
|
+
readonly provenance: Schema.Struct<{
|
|
19851
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
19852
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19853
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19854
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19855
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19856
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19857
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19858
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19859
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19860
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19861
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19862
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19863
|
+
};
|
|
19864
|
+
readonly provider: Schema.String;
|
|
19865
|
+
readonly modelID: Schema.String;
|
|
19866
|
+
readonly route: Schema.String;
|
|
19867
|
+
readonly protocol: Schema.String;
|
|
19868
|
+
readonly endpoint: Schema.String;
|
|
19869
|
+
}>;
|
|
19870
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
19871
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
19872
|
+
readonly version: Schema.Literal<1>;
|
|
19873
|
+
readonly provenance: Schema.Struct<{
|
|
19874
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
19875
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19876
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19877
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19878
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19879
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19880
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19881
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19882
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19883
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19884
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19885
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19886
|
+
};
|
|
19887
|
+
readonly provider: Schema.String;
|
|
19888
|
+
readonly modelID: Schema.String;
|
|
19889
|
+
readonly route: Schema.String;
|
|
19890
|
+
readonly protocol: Schema.String;
|
|
19891
|
+
readonly endpoint: Schema.String;
|
|
19892
|
+
}>;
|
|
19893
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
19894
|
+
}>>, never, never>;
|
|
19472
19895
|
readonly text: Schema.String;
|
|
19473
19896
|
readonly recent: Schema.String;
|
|
19474
19897
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -19531,6 +19954,53 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Union<re
|
|
|
19531
19954
|
};
|
|
19532
19955
|
}>, never, never>;
|
|
19533
19956
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
19957
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
19958
|
+
readonly version: Schema.Literal<1>;
|
|
19959
|
+
readonly provenance: Schema.Struct<{
|
|
19960
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
19961
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19962
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19963
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19964
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19965
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19966
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19967
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19968
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19969
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19970
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19971
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19972
|
+
};
|
|
19973
|
+
readonly provider: Schema.String;
|
|
19974
|
+
readonly modelID: Schema.String;
|
|
19975
|
+
readonly route: Schema.String;
|
|
19976
|
+
readonly protocol: Schema.String;
|
|
19977
|
+
readonly endpoint: Schema.String;
|
|
19978
|
+
}>;
|
|
19979
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
19980
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
19981
|
+
readonly version: Schema.Literal<1>;
|
|
19982
|
+
readonly provenance: Schema.Struct<{
|
|
19983
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
19984
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19985
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19986
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19987
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19988
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19989
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19990
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19991
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19992
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19993
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19994
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19995
|
+
};
|
|
19996
|
+
readonly provider: Schema.String;
|
|
19997
|
+
readonly modelID: Schema.String;
|
|
19998
|
+
readonly route: Schema.String;
|
|
19999
|
+
readonly protocol: Schema.String;
|
|
20000
|
+
readonly endpoint: Schema.String;
|
|
20001
|
+
}>;
|
|
20002
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
20003
|
+
}>>, never, never>;
|
|
19534
20004
|
readonly text: Schema.String;
|
|
19535
20005
|
readonly recent: Schema.String;
|
|
19536
20006
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
package/dist/session-event.js
CHANGED
|
@@ -500,6 +500,7 @@ export var Compaction;
|
|
|
500
500
|
reason: Compaction.Started.data.fields.reason,
|
|
501
501
|
model: SessionMessage.CompactionCompleted.fields.model,
|
|
502
502
|
providerState: SessionMessage.CompactionCompleted.fields.providerState,
|
|
503
|
+
providerContext: SessionMessage.CompactionCompleted.fields.providerContext,
|
|
503
504
|
text: Schema.String,
|
|
504
505
|
recent: Schema.String,
|
|
505
506
|
},
|
|
@@ -986,6 +986,53 @@ export declare const CompactionCompleted: Schema.Struct<{
|
|
|
986
986
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
987
987
|
readonly summary: Schema.String;
|
|
988
988
|
readonly recent: Schema.String;
|
|
989
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
990
|
+
readonly version: Schema.Literal<1>;
|
|
991
|
+
readonly provenance: Schema.Struct<{
|
|
992
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
993
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
994
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
995
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
996
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
997
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
998
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
999
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1000
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1001
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1002
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1003
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1004
|
+
};
|
|
1005
|
+
readonly provider: Schema.String;
|
|
1006
|
+
readonly modelID: Schema.String;
|
|
1007
|
+
readonly route: Schema.String;
|
|
1008
|
+
readonly protocol: Schema.String;
|
|
1009
|
+
readonly endpoint: Schema.String;
|
|
1010
|
+
}>;
|
|
1011
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1012
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1013
|
+
readonly version: Schema.Literal<1>;
|
|
1014
|
+
readonly provenance: Schema.Struct<{
|
|
1015
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1016
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1017
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1018
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1019
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1020
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1021
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1022
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1023
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1024
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1025
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1026
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1027
|
+
};
|
|
1028
|
+
readonly provider: Schema.String;
|
|
1029
|
+
readonly modelID: Schema.String;
|
|
1030
|
+
readonly route: Schema.String;
|
|
1031
|
+
readonly protocol: Schema.String;
|
|
1032
|
+
readonly endpoint: Schema.String;
|
|
1033
|
+
}>;
|
|
1034
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1035
|
+
}>>, never, never>;
|
|
989
1036
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
990
1037
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
991
1038
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1081,6 +1128,53 @@ export declare const Compaction: Schema.Union<readonly [Schema.Struct<{
|
|
|
1081
1128
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1082
1129
|
readonly summary: Schema.String;
|
|
1083
1130
|
readonly recent: Schema.String;
|
|
1131
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1132
|
+
readonly version: Schema.Literal<1>;
|
|
1133
|
+
readonly provenance: Schema.Struct<{
|
|
1134
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1135
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1136
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1137
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1138
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1139
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1140
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1141
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1142
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1143
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1144
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1145
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1146
|
+
};
|
|
1147
|
+
readonly provider: Schema.String;
|
|
1148
|
+
readonly modelID: Schema.String;
|
|
1149
|
+
readonly route: Schema.String;
|
|
1150
|
+
readonly protocol: Schema.String;
|
|
1151
|
+
readonly endpoint: Schema.String;
|
|
1152
|
+
}>;
|
|
1153
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1154
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1155
|
+
readonly version: Schema.Literal<1>;
|
|
1156
|
+
readonly provenance: Schema.Struct<{
|
|
1157
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1158
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1159
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1160
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1161
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1162
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1163
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1164
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1165
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1166
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1167
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1168
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1169
|
+
};
|
|
1170
|
+
readonly provider: Schema.String;
|
|
1171
|
+
readonly modelID: Schema.String;
|
|
1172
|
+
readonly route: Schema.String;
|
|
1173
|
+
readonly protocol: Schema.String;
|
|
1174
|
+
readonly endpoint: Schema.String;
|
|
1175
|
+
}>;
|
|
1176
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1177
|
+
}>>, never, never>;
|
|
1084
1178
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1085
1179
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1086
1180
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1703,6 +1797,53 @@ export declare const Info: Schema.Union<readonly [Schema.Struct<{
|
|
|
1703
1797
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1704
1798
|
readonly summary: Schema.String;
|
|
1705
1799
|
readonly recent: Schema.String;
|
|
1800
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1801
|
+
readonly version: Schema.Literal<1>;
|
|
1802
|
+
readonly provenance: Schema.Struct<{
|
|
1803
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1804
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1805
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1806
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1807
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1808
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1809
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1810
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1811
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1812
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1813
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1814
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1815
|
+
};
|
|
1816
|
+
readonly provider: Schema.String;
|
|
1817
|
+
readonly modelID: Schema.String;
|
|
1818
|
+
readonly route: Schema.String;
|
|
1819
|
+
readonly protocol: Schema.String;
|
|
1820
|
+
readonly endpoint: Schema.String;
|
|
1821
|
+
}>;
|
|
1822
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1823
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1824
|
+
readonly version: Schema.Literal<1>;
|
|
1825
|
+
readonly provenance: Schema.Struct<{
|
|
1826
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1827
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1828
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1829
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1830
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1831
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1832
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1833
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1834
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1835
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1836
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1837
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1838
|
+
};
|
|
1839
|
+
readonly provider: Schema.String;
|
|
1840
|
+
readonly modelID: Schema.String;
|
|
1841
|
+
readonly route: Schema.String;
|
|
1842
|
+
readonly protocol: Schema.String;
|
|
1843
|
+
readonly endpoint: Schema.String;
|
|
1844
|
+
}>;
|
|
1845
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1846
|
+
}>>, never, never>;
|
|
1706
1847
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1707
1848
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1708
1849
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/session-message.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as SessionMessage from "./session-message.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
+
import { SessionProviderContext } from "./session-provider-context.js";
|
|
3
4
|
import { optional } from "./schema.js";
|
|
4
5
|
import { Content } from "./tool.js";
|
|
5
6
|
import { Location } from "./location.js";
|
|
@@ -196,6 +197,7 @@ export const CompactionCompleted = Schema.Struct({
|
|
|
196
197
|
providerState: ProviderState.pipe(optional),
|
|
197
198
|
summary: Schema.String,
|
|
198
199
|
recent: Schema.String,
|
|
200
|
+
providerContext: SessionProviderContext.Info.pipe(optional),
|
|
199
201
|
}).annotate({ identifier: "Session.Message.Compaction.Completed" });
|
|
200
202
|
export const CompactionFailed = Schema.Struct({
|
|
201
203
|
...CompactionBase,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export * as SessionProviderContext from "./session-provider-context.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
/** Exact producing model/deployment and route identity, never credentials or a connection ID. */
|
|
4
|
+
export interface Provenance extends Schema.Schema.Type<typeof Provenance> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Provenance: Schema.Struct<{
|
|
7
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
8
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
9
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
10
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
11
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
12
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
13
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
14
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
15
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
16
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
17
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
18
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
19
|
+
};
|
|
20
|
+
readonly provider: Schema.String;
|
|
21
|
+
readonly modelID: Schema.String;
|
|
22
|
+
readonly route: Schema.String;
|
|
23
|
+
readonly protocol: Schema.String;
|
|
24
|
+
/** Digest of the configured endpoint; raw URLs and query values are not persisted. */
|
|
25
|
+
readonly endpoint: Schema.String;
|
|
26
|
+
}>;
|
|
27
|
+
/** Core validates the versioned canonical AI Message[] payload on installation and replay. */
|
|
28
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
29
|
+
}
|
|
30
|
+
export declare const Info: Schema.Struct<{
|
|
31
|
+
readonly version: Schema.Literal<1>;
|
|
32
|
+
readonly provenance: Schema.Struct<{
|
|
33
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
34
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
35
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
36
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
37
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
38
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
39
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
40
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
41
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
42
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
43
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
44
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
45
|
+
};
|
|
46
|
+
readonly provider: Schema.String;
|
|
47
|
+
readonly modelID: Schema.String;
|
|
48
|
+
readonly route: Schema.String;
|
|
49
|
+
readonly protocol: Schema.String;
|
|
50
|
+
/** Digest of the configured endpoint; raw URLs and query values are not persisted. */
|
|
51
|
+
readonly endpoint: Schema.String;
|
|
52
|
+
}>;
|
|
53
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
54
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * as SessionProviderContext from "./session-provider-context.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { Provider } from "./provider.js";
|
|
4
|
+
export const Provenance = Schema.Struct({
|
|
5
|
+
providerID: Provider.ID,
|
|
6
|
+
provider: Schema.String,
|
|
7
|
+
modelID: Schema.String,
|
|
8
|
+
route: Schema.String,
|
|
9
|
+
protocol: Schema.String,
|
|
10
|
+
/** Digest of the configured endpoint; raw URLs and query values are not persisted. */
|
|
11
|
+
endpoint: Schema.String,
|
|
12
|
+
}).annotate({ identifier: "Session.ProviderContext.Provenance" });
|
|
13
|
+
export const Info = Schema.Struct({
|
|
14
|
+
version: Schema.Literal(1),
|
|
15
|
+
provenance: Provenance,
|
|
16
|
+
messages: Schema.Json,
|
|
17
|
+
}).annotate({ identifier: "Session.ProviderContext" });
|
|
@@ -767,6 +767,53 @@ export declare const Data: Schema.Struct<{
|
|
|
767
767
|
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
768
768
|
readonly summary: Schema.String;
|
|
769
769
|
readonly recent: Schema.String;
|
|
770
|
+
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
771
|
+
readonly version: Schema.Literal<1>;
|
|
772
|
+
readonly provenance: Schema.Struct<{
|
|
773
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
774
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
775
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
776
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
777
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
778
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
779
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
780
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
781
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
782
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
783
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
784
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
785
|
+
};
|
|
786
|
+
readonly provider: Schema.String;
|
|
787
|
+
readonly modelID: Schema.String;
|
|
788
|
+
readonly route: Schema.String;
|
|
789
|
+
readonly protocol: Schema.String;
|
|
790
|
+
readonly endpoint: Schema.String;
|
|
791
|
+
}>;
|
|
792
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
793
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
794
|
+
readonly version: Schema.Literal<1>;
|
|
795
|
+
readonly provenance: Schema.Struct<{
|
|
796
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
797
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
798
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
799
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
800
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
801
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
802
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
803
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
804
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
805
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
806
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
807
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
808
|
+
};
|
|
809
|
+
readonly provider: Schema.String;
|
|
810
|
+
readonly modelID: Schema.String;
|
|
811
|
+
readonly route: Schema.String;
|
|
812
|
+
readonly protocol: Schema.String;
|
|
813
|
+
readonly endpoint: Schema.String;
|
|
814
|
+
}>;
|
|
815
|
+
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
816
|
+
}>>, never, never>;
|
|
770
817
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
771
818
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
772
819
|
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|