@opencode/server 0.0.0-beta-19500 → 0.0.0-dev-19274

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/api.d.ts CHANGED
@@ -305,15 +305,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
305
305
  };
306
306
  }>, never, never>;
307
307
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
308
- readonly permissions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
309
- readonly action: import("effect/Schema").String;
310
- readonly resource: import("effect/Schema").String;
311
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
312
- }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
313
- readonly action: import("effect/Schema").String;
314
- readonly resource: import("effect/Schema").String;
315
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
316
- }>>>, never, never>;
317
308
  readonly version: import("effect/Schema").String;
318
309
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
319
310
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -398,15 +389,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
398
389
  };
399
390
  }>, never, never>;
400
391
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
401
- readonly permissions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
402
- readonly action: import("effect/Schema").String;
403
- readonly resource: import("effect/Schema").String;
404
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
405
- }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
406
- readonly action: import("effect/Schema").String;
407
- readonly resource: import("effect/Schema").String;
408
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
409
- }>>>, never, never>;
410
392
  readonly version: import("effect/Schema").String;
411
393
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
412
394
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -783,66 +765,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
783
765
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
784
766
  };
785
767
  }>;
786
- }, import("effect/Schema").Struct<{
787
- readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
788
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
789
- };
790
- readonly created: import("effect/Schema").Finite;
791
- readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
792
- readonly type: import("effect/Schema").Literal<"session.permissions.updated">;
793
- readonly durable: import("effect/Schema").Struct<{
794
- readonly aggregateID: import("effect/Schema").String;
795
- readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
796
- readonly version: import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">>, import("effect/Schema").Literal<number>, never, never>;
797
- }>;
798
- readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
799
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
800
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
801
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
802
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
803
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
804
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
805
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
806
- }>, never, never>;
807
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
808
- readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
809
- readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
810
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
811
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
812
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
813
- ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
814
- create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
815
- }>, never, never>;
816
- }>>, never, never>;
817
- readonly data: import("effect/Schema").Struct<{
818
- readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
819
- readonly action: import("effect/Schema").String;
820
- readonly resource: import("effect/Schema").String;
821
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
822
- }>>;
823
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
824
- create: () => string & import("effect/Brand").Brand<"SessionID">;
825
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
826
- };
827
- }>;
828
- }> & {
829
- type: "session.permissions.updated";
830
- durability: "durable";
831
- durable: {
832
- readonly version: number;
833
- readonly aggregate: string;
834
- };
835
- data: import("effect/Schema").Struct<{
836
- readonly permissions: import("effect/Schema").$Array<import("effect/Schema").Struct<{
837
- readonly action: import("effect/Schema").String;
838
- readonly resource: import("effect/Schema").String;
839
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
840
- }>>;
841
- readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
842
- create: () => string & import("effect/Brand").Brand<"SessionID">;
843
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
844
- };
845
- }>;
846
768
  }, import("effect/Schema").Struct<{
847
769
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
848
770
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -3785,28 +3707,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3785
3707
  }>>, never, never>;
3786
3708
  readonly text: import("effect/Schema").String;
3787
3709
  readonly recent: import("effect/Schema").String;
3788
- readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
3789
- zero: number & import("effect/Brand").Brand<"Money.USD">;
3790
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
3791
- zero: number & import("effect/Brand").Brand<"Money.USD">;
3792
- }>, never, never>;
3793
- readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3794
- readonly input: import("effect/Schema").Finite;
3795
- readonly output: import("effect/Schema").Finite;
3796
- readonly reasoning: import("effect/Schema").Finite;
3797
- readonly cache: import("effect/Schema").Struct<{
3798
- readonly read: import("effect/Schema").Finite;
3799
- readonly write: import("effect/Schema").Finite;
3800
- }>;
3801
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
3802
- readonly input: import("effect/Schema").Finite;
3803
- readonly output: import("effect/Schema").Finite;
3804
- readonly reasoning: import("effect/Schema").Finite;
3805
- readonly cache: import("effect/Schema").Struct<{
3806
- readonly read: import("effect/Schema").Finite;
3807
- readonly write: import("effect/Schema").Finite;
3808
- }>;
3809
- }>>, never, never>;
3810
3710
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3811
3711
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3812
3712
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3916,28 +3816,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3916
3816
  }>>, never, never>;
3917
3817
  readonly text: import("effect/Schema").String;
3918
3818
  readonly recent: import("effect/Schema").String;
3919
- readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
3920
- zero: number & import("effect/Brand").Brand<"Money.USD">;
3921
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
3922
- zero: number & import("effect/Brand").Brand<"Money.USD">;
3923
- }>, never, never>;
3924
- readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3925
- readonly input: import("effect/Schema").Finite;
3926
- readonly output: import("effect/Schema").Finite;
3927
- readonly reasoning: import("effect/Schema").Finite;
3928
- readonly cache: import("effect/Schema").Struct<{
3929
- readonly read: import("effect/Schema").Finite;
3930
- readonly write: import("effect/Schema").Finite;
3931
- }>;
3932
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
3933
- readonly input: import("effect/Schema").Finite;
3934
- readonly output: import("effect/Schema").Finite;
3935
- readonly reasoning: import("effect/Schema").Finite;
3936
- readonly cache: import("effect/Schema").Struct<{
3937
- readonly read: import("effect/Schema").Finite;
3938
- readonly write: import("effect/Schema").Finite;
3939
- }>;
3940
- }>>, never, never>;
3941
3819
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
3942
3820
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3943
3821
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3988,28 +3866,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
3988
3866
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
3989
3867
  fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
3990
3868
  }>, never, never>;
3991
- readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
3992
- zero: number & import("effect/Brand").Brand<"Money.USD">;
3993
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
3994
- zero: number & import("effect/Brand").Brand<"Money.USD">;
3995
- }>, never, never>;
3996
- readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
3997
- readonly input: import("effect/Schema").Finite;
3998
- readonly output: import("effect/Schema").Finite;
3999
- readonly reasoning: import("effect/Schema").Finite;
4000
- readonly cache: import("effect/Schema").Struct<{
4001
- readonly read: import("effect/Schema").Finite;
4002
- readonly write: import("effect/Schema").Finite;
4003
- }>;
4004
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4005
- readonly input: import("effect/Schema").Finite;
4006
- readonly output: import("effect/Schema").Finite;
4007
- readonly reasoning: import("effect/Schema").Finite;
4008
- readonly cache: import("effect/Schema").Struct<{
4009
- readonly read: import("effect/Schema").Finite;
4010
- readonly write: import("effect/Schema").Finite;
4011
- }>;
4012
- }>>, never, never>;
4013
3869
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4014
3870
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4015
3871
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4036,28 +3892,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4036
3892
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4037
3893
  fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4038
3894
  }>, never, never>;
4039
- readonly cost: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4040
- zero: number & import("effect/Brand").Brand<"Money.USD">;
4041
- }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").Finite, "Money.USD"> & {
4042
- zero: number & import("effect/Brand").Brand<"Money.USD">;
4043
- }>, never, never>;
4044
- readonly tokens: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
4045
- readonly input: import("effect/Schema").Finite;
4046
- readonly output: import("effect/Schema").Finite;
4047
- readonly reasoning: import("effect/Schema").Finite;
4048
- readonly cache: import("effect/Schema").Struct<{
4049
- readonly read: import("effect/Schema").Finite;
4050
- readonly write: import("effect/Schema").Finite;
4051
- }>;
4052
- }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4053
- readonly input: import("effect/Schema").Finite;
4054
- readonly output: import("effect/Schema").Finite;
4055
- readonly reasoning: import("effect/Schema").Finite;
4056
- readonly cache: import("effect/Schema").Struct<{
4057
- readonly read: import("effect/Schema").Finite;
4058
- readonly write: import("effect/Schema").Finite;
4059
- }>;
4060
- }>>, never, never>;
4061
3895
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4062
3896
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4063
3897
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4263,6 +4097,214 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
4263
4097
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4264
4098
  };
4265
4099
  }>;
4100
+ }, import("effect/Schema").Struct<{
4101
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
4102
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
4103
+ };
4104
+ readonly created: import("effect/Schema").Finite;
4105
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4106
+ readonly type: import("effect/Schema").Literal<"session.message.content.updated">;
4107
+ readonly durable: import("effect/Schema").Struct<{
4108
+ readonly aggregateID: import("effect/Schema").String;
4109
+ readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
4110
+ readonly version: import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">>, import("effect/Schema").Literal<number>, never, never>;
4111
+ }>;
4112
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
4113
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
4114
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
4115
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
4116
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
4117
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
4118
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
4119
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
4120
+ }>, never, never>;
4121
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4122
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
4123
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
4124
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
4125
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
4126
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
4127
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
4128
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
4129
+ }>, never, never>;
4130
+ }>>, never, never>;
4131
+ readonly data: import("effect/Schema").Struct<{
4132
+ readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4133
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4134
+ fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4135
+ };
4136
+ readonly content: import("effect/Schema").$Array<import("effect/Schema").toEncoded<import("effect/Schema").toTaggedUnion<"type", readonly [import("effect/Schema").Struct<{
4137
+ readonly type: import("effect/Schema").tag<"text">;
4138
+ readonly text: import("effect/Schema").String;
4139
+ readonly state: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4140
+ }>, import("effect/Schema").Struct<{
4141
+ readonly type: import("effect/Schema").tag<"reasoning">;
4142
+ readonly text: import("effect/Schema").String;
4143
+ readonly state: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4144
+ readonly time: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
4145
+ readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
4146
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4147
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4148
+ readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
4149
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4150
+ }>>, never, never>;
4151
+ }>, import("effect/Schema").Struct<{
4152
+ readonly type: import("effect/Schema").tag<"tool">;
4153
+ readonly id: import("effect/Schema").String;
4154
+ readonly name: import("effect/Schema").String;
4155
+ readonly executed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
4156
+ readonly providerState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4157
+ readonly providerResultState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4158
+ readonly state: import("effect/Schema").toTaggedUnion<"status", readonly [import("effect/Schema").Struct<{
4159
+ readonly status: import("effect/Schema").tag<"streaming">;
4160
+ readonly input: import("effect/Schema").String;
4161
+ }>, import("effect/Schema").Struct<{
4162
+ readonly status: import("effect/Schema").tag<"running">;
4163
+ readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
4164
+ readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
4165
+ }>, import("effect/Schema").Struct<{
4166
+ readonly status: import("effect/Schema").tag<"completed">;
4167
+ readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
4168
+ readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4169
+ readonly type: import("effect/Schema").Literal<"text">;
4170
+ readonly text: import("effect/Schema").String;
4171
+ }>, import("effect/Schema").Struct<{
4172
+ readonly type: import("effect/Schema").Literal<"file">;
4173
+ readonly uri: import("effect/Schema").String;
4174
+ readonly mime: import("effect/Schema").String;
4175
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
4176
+ }>]>>;
4177
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
4178
+ }>, import("effect/Schema").Struct<{
4179
+ readonly status: import("effect/Schema").tag<"error">;
4180
+ readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
4181
+ readonly error: import("effect/Schema").Struct<{
4182
+ readonly type: import("effect/Schema").String;
4183
+ readonly message: import("effect/Schema").String;
4184
+ readonly status: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
4185
+ }>;
4186
+ readonly content: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4187
+ readonly type: import("effect/Schema").Literal<"text">;
4188
+ readonly text: import("effect/Schema").String;
4189
+ }>, import("effect/Schema").Struct<{
4190
+ readonly type: import("effect/Schema").Literal<"file">;
4191
+ readonly uri: import("effect/Schema").String;
4192
+ readonly mime: import("effect/Schema").String;
4193
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
4194
+ }>]>>>>, import("effect/Schema").optionalKey<import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4195
+ readonly type: import("effect/Schema").Literal<"text">;
4196
+ readonly text: import("effect/Schema").String;
4197
+ }>, import("effect/Schema").Struct<{
4198
+ readonly type: import("effect/Schema").Literal<"file">;
4199
+ readonly uri: import("effect/Schema").String;
4200
+ readonly mime: import("effect/Schema").String;
4201
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
4202
+ }>]>>>, never, never>;
4203
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
4204
+ }>]>;
4205
+ readonly time: import("effect/Schema").Struct<{
4206
+ readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
4207
+ readonly ran: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4208
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4209
+ }>;
4210
+ }>]>>>;
4211
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4212
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
4213
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4214
+ };
4215
+ }>;
4216
+ }> & {
4217
+ type: "session.message.content.updated";
4218
+ durability: "durable";
4219
+ durable: {
4220
+ readonly version: number;
4221
+ readonly aggregate: string;
4222
+ };
4223
+ data: import("effect/Schema").Struct<{
4224
+ readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
4225
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
4226
+ fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
4227
+ };
4228
+ readonly content: import("effect/Schema").$Array<import("effect/Schema").toEncoded<import("effect/Schema").toTaggedUnion<"type", readonly [import("effect/Schema").Struct<{
4229
+ readonly type: import("effect/Schema").tag<"text">;
4230
+ readonly text: import("effect/Schema").String;
4231
+ readonly state: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4232
+ }>, import("effect/Schema").Struct<{
4233
+ readonly type: import("effect/Schema").tag<"reasoning">;
4234
+ readonly text: import("effect/Schema").String;
4235
+ readonly state: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4236
+ readonly time: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
4237
+ readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
4238
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4239
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
4240
+ readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
4241
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4242
+ }>>, never, never>;
4243
+ }>, import("effect/Schema").Struct<{
4244
+ readonly type: import("effect/Schema").tag<"tool">;
4245
+ readonly id: import("effect/Schema").String;
4246
+ readonly name: import("effect/Schema").String;
4247
+ readonly executed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
4248
+ readonly providerState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4249
+ readonly providerResultState: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
4250
+ readonly state: import("effect/Schema").toTaggedUnion<"status", readonly [import("effect/Schema").Struct<{
4251
+ readonly status: import("effect/Schema").tag<"streaming">;
4252
+ readonly input: import("effect/Schema").String;
4253
+ }>, import("effect/Schema").Struct<{
4254
+ readonly status: import("effect/Schema").tag<"running">;
4255
+ readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
4256
+ readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
4257
+ }>, import("effect/Schema").Struct<{
4258
+ readonly status: import("effect/Schema").tag<"completed">;
4259
+ readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
4260
+ readonly content: import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4261
+ readonly type: import("effect/Schema").Literal<"text">;
4262
+ readonly text: import("effect/Schema").String;
4263
+ }>, import("effect/Schema").Struct<{
4264
+ readonly type: import("effect/Schema").Literal<"file">;
4265
+ readonly uri: import("effect/Schema").String;
4266
+ readonly mime: import("effect/Schema").String;
4267
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
4268
+ }>]>>;
4269
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
4270
+ }>, import("effect/Schema").Struct<{
4271
+ readonly status: import("effect/Schema").tag<"error">;
4272
+ readonly input: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
4273
+ readonly error: import("effect/Schema").Struct<{
4274
+ readonly type: import("effect/Schema").String;
4275
+ readonly message: import("effect/Schema").String;
4276
+ readonly status: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
4277
+ }>;
4278
+ readonly content: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4279
+ readonly type: import("effect/Schema").Literal<"text">;
4280
+ readonly text: import("effect/Schema").String;
4281
+ }>, import("effect/Schema").Struct<{
4282
+ readonly type: import("effect/Schema").Literal<"file">;
4283
+ readonly uri: import("effect/Schema").String;
4284
+ readonly mime: import("effect/Schema").String;
4285
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
4286
+ }>]>>>>, import("effect/Schema").optionalKey<import("effect/Schema").NonEmptyArray<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
4287
+ readonly type: import("effect/Schema").Literal<"text">;
4288
+ readonly text: import("effect/Schema").String;
4289
+ }>, import("effect/Schema").Struct<{
4290
+ readonly type: import("effect/Schema").Literal<"file">;
4291
+ readonly uri: import("effect/Schema").String;
4292
+ readonly mime: import("effect/Schema").String;
4293
+ readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
4294
+ }>]>>>, never, never>;
4295
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
4296
+ }>]>;
4297
+ readonly time: import("effect/Schema").Struct<{
4298
+ readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
4299
+ readonly ran: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4300
+ readonly completed: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>>, import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>>, never, never>;
4301
+ }>;
4302
+ }>]>>>;
4303
+ readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4304
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
4305
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
4306
+ };
4307
+ }>;
4266
4308
  }, import("effect/Schema").Struct<{
4267
4309
  readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
4268
4310
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -6632,11 +6674,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6632
6674
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
6633
6675
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
6634
6676
  } | undefined;
6635
- readonly permissions?: readonly {
6636
- readonly action: string;
6637
- readonly resource: string;
6638
- readonly effect: "allow" | "deny" | "ask";
6639
- }[] | undefined;
6640
6677
  readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
6641
6678
  readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
6642
6679
  readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
@@ -6753,11 +6790,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6753
6790
  } | {
6754
6791
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6755
6792
  readonly data: {
6756
- readonly permissions: readonly {
6757
- readonly action: string;
6758
- readonly resource: string;
6759
- readonly effect: "allow" | "deny" | "ask";
6760
- }[];
6793
+ readonly idle: number;
6761
6794
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6762
6795
  };
6763
6796
  readonly durable: {
@@ -6765,7 +6798,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6765
6798
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6766
6799
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6767
6800
  };
6768
- readonly type: "session.permissions.updated";
6801
+ readonly type: "session.viewed";
6769
6802
  readonly created: number;
6770
6803
  readonly location?: {
6771
6804
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
@@ -6777,7 +6810,107 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6777
6810
  } | {
6778
6811
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
6779
6812
  readonly data: {
6780
- readonly idle: number;
6813
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
6814
+ readonly content: readonly ({
6815
+ readonly id: string;
6816
+ readonly type: "tool";
6817
+ readonly name: string;
6818
+ readonly time: {
6819
+ readonly created: number;
6820
+ readonly completed?: number | undefined;
6821
+ readonly ran?: number | undefined;
6822
+ };
6823
+ readonly state: {
6824
+ readonly status: "streaming";
6825
+ readonly input: string;
6826
+ } | {
6827
+ readonly status: "running";
6828
+ readonly input: {
6829
+ readonly [x: string]: unknown;
6830
+ };
6831
+ readonly metadata: {
6832
+ readonly [x: string]: import("effect/Schema").Json;
6833
+ };
6834
+ } | {
6835
+ readonly content: readonly [{
6836
+ readonly type: "text";
6837
+ readonly text: string;
6838
+ } | {
6839
+ readonly type: "file";
6840
+ readonly uri: string;
6841
+ readonly mime: string;
6842
+ readonly name?: string | undefined;
6843
+ }, ...({
6844
+ readonly type: "text";
6845
+ readonly text: string;
6846
+ } | {
6847
+ readonly type: "file";
6848
+ readonly uri: string;
6849
+ readonly mime: string;
6850
+ readonly name?: string | undefined;
6851
+ })[]];
6852
+ readonly status: "completed";
6853
+ readonly input: {
6854
+ readonly [x: string]: unknown;
6855
+ };
6856
+ readonly metadata?: {
6857
+ readonly [x: string]: import("effect/Schema").Json;
6858
+ } | undefined;
6859
+ } | {
6860
+ readonly error: {
6861
+ readonly type: string;
6862
+ readonly message: string;
6863
+ readonly status?: number | undefined;
6864
+ };
6865
+ readonly status: "error";
6866
+ readonly input: {
6867
+ readonly [x: string]: unknown;
6868
+ };
6869
+ readonly metadata?: {
6870
+ readonly [x: string]: import("effect/Schema").Json;
6871
+ } | undefined;
6872
+ readonly content?: readonly [{
6873
+ readonly type: "text";
6874
+ readonly text: string;
6875
+ } | {
6876
+ readonly type: "file";
6877
+ readonly uri: string;
6878
+ readonly mime: string;
6879
+ readonly name?: string | undefined;
6880
+ }, ...({
6881
+ readonly type: "text";
6882
+ readonly text: string;
6883
+ } | {
6884
+ readonly type: "file";
6885
+ readonly uri: string;
6886
+ readonly mime: string;
6887
+ readonly name?: string | undefined;
6888
+ })[]] | undefined;
6889
+ };
6890
+ readonly executed?: boolean | undefined;
6891
+ readonly providerState?: {
6892
+ readonly [x: string]: unknown;
6893
+ } | undefined;
6894
+ readonly providerResultState?: {
6895
+ readonly [x: string]: unknown;
6896
+ } | undefined;
6897
+ } | {
6898
+ readonly type: "text";
6899
+ readonly text: string;
6900
+ readonly state?: {
6901
+ readonly [x: string]: unknown;
6902
+ } | undefined;
6903
+ } | {
6904
+ readonly type: "reasoning";
6905
+ readonly text: string;
6906
+ readonly time?: {
6907
+ readonly created: number;
6908
+ readonly completed?: number | undefined;
6909
+ } | undefined;
6910
+ readonly state?: {
6911
+ readonly [x: string]: unknown;
6912
+ } | undefined;
6913
+ })[];
6781
6914
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
6782
6915
  };
6783
6916
  readonly durable: {
@@ -6785,7 +6918,7 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
6785
6918
  readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
6786
6919
  readonly version: number & import("effect/Brand").Brand<"Event.Version">;
6787
6920
  };
6788
- readonly type: "session.viewed";
6921
+ readonly type: "session.message.content.updated";
6789
6922
  readonly created: number;
6790
6923
  readonly location?: {
6791
6924
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
@@ -7781,7 +7914,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7781
7914
  readonly text: string;
7782
7915
  readonly reason: "auto" | "manual";
7783
7916
  readonly recent: string;
7784
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7785
7917
  readonly model?: {
7786
7918
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
7787
7919
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -7790,15 +7922,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7790
7922
  readonly providerState?: {
7791
7923
  readonly [x: string]: unknown;
7792
7924
  } | undefined;
7793
- readonly tokens?: {
7794
- readonly input: number;
7795
- readonly output: number;
7796
- readonly reasoning: number;
7797
- readonly cache: {
7798
- readonly read: number;
7799
- readonly write: number;
7800
- };
7801
- } | undefined;
7802
7925
  readonly providerContext?: {
7803
7926
  readonly version: 1;
7804
7927
  readonly provenance: {
@@ -7836,16 +7959,6 @@ export declare const Api: import("@opencode/protocol/api").Api<LocationMiddlewar
7836
7959
  readonly status?: number | undefined;
7837
7960
  };
7838
7961
  readonly reason: "auto" | "manual";
7839
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
7840
- readonly tokens?: {
7841
- readonly input: number;
7842
- readonly output: number;
7843
- readonly reasoning: number;
7844
- readonly cache: {
7845
- readonly read: number;
7846
- readonly write: number;
7847
- };
7848
- } | undefined;
7849
7962
  readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
7850
7963
  };
7851
7964
  readonly durable: {
@@ -29,7 +29,6 @@ export const MessageHandler = HttpApiBuilder.group(Api, "server.message", (handl
29
29
  sessionID: ctx.params.sessionID,
30
30
  limit: ctx.query.limit ?? DefaultMessagesLimit,
31
31
  order,
32
- type: ctx.query.type,
33
32
  cursor: decoded ? { id: decoded.id, direction: decoded.direction } : void 0
34
33
  }).pipe(Effect.catchTag("Session.NotFoundError", missingSession), Effect.catchTag("Session.MessageDecodeError", failedMessageDecode)), first = messages[0], last = messages.at(-1);
35
34
  return {
@@ -1,4 +1,4 @@
1
1
  import { Instance } from "@opencode/core/instance/service";
2
2
  import { PermissionSaved } from "@opencode/core/permission/saved";
3
3
  import { Session } from "@opencode/core/session";
4
- export declare const PermissionHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.permission">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | Session.Service | Instance.Service | import("../location").LocationMiddleware | import("../middleware/session-location").SessionLocationMiddleware | import("effect/unstable/http/HttpRouter").Request<"Requires", PermissionSaved.Service>>;
4
+ export declare const PermissionHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.permission">, never, Session.Service | Instance.Service | import("../middleware/session-location").SessionLocationMiddleware | (import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | import("../location").LocationMiddleware | import("effect/unstable/http/HttpRouter").Request<"Requires", PermissionSaved.Service>)>;
@@ -43,9 +43,6 @@ export const PermissionHandler = HttpApiBuilder.group(Api, "server.permission",
43
43
  })).handle("session.permission.reply", Effect.fn(function* (ctx) {
44
44
  yield* (yield* requireOwnedRequest(ctx.params.sessionID, ctx.params.requestID)).permission.reply({ requestID: ctx.params.requestID, reply: ctx.payload.reply, message: ctx.payload.message }).pipe(Effect.catchTag("Permission.NotFoundError", () => missingRequest(ctx.params.requestID)));
45
45
  return HttpApiSchema.NoContent.make();
46
- })).handle("session.permission.rules", Effect.fn(function* (ctx) {
47
- yield* sessions.setPermissions({ sessionID: ctx.params.sessionID, permissions: ctx.payload.permissions }).pipe(Effect.catchTag("Session.NotFoundError", missingSession));
48
- return HttpApiSchema.NoContent.make();
49
46
  })).handle("permission.saved.list", Effect.fn(function* (ctx) {
50
47
  const location = yield* Location.Service;
51
48
  return {
@@ -1,3 +1,3 @@
1
1
  import { Session } from "@opencode/core/session";
2
2
  import { SessionTransfer } from "@opencode/core/session/transfer";
3
- export declare const SessionHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.session">, never, import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization | Session.Service | import("../middleware/session-location").SessionLocationMiddleware | SessionTransfer.Service | import("effect/unstable/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service>>;
3
+ export declare const SessionHandler: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"server", "server.session">, never, Session.Service | import("../middleware/session-location").SessionLocationMiddleware | SessionTransfer.Service | import("effect/unstable/http/HttpRouter").Request<"Requires", import("@opencode/core/database/database").Service> | (import("@opencode/protocol/middleware/schema-error").SchemaErrorMiddleware | import("@opencode/protocol/middleware/authorization").Authorization)>;
@@ -77,7 +77,6 @@ export const SessionHandler = HttpApiBuilder.group(Api, "server.session", (handl
77
77
  agent: ctx.payload.agent,
78
78
  model: ctx.payload.model,
79
79
  metadata: ctx.payload.metadata,
80
- permissions: ctx.payload.permissions,
81
80
  location: ctx.payload.location ?? { directory: AbsolutePath.make(process.cwd()) }
82
81
  }).pipe(Effect.orDie)
83
82
  };
@@ -285,5 +284,11 @@ export const SessionHandler = HttpApiBuilder.group(Api, "server.session", (handl
285
284
  messageID: ctx.params.messageID,
286
285
  message: `Message not found: ${ctx.params.messageID}`
287
286
  });
287
+ })).handle("session.messageUpdate", Effect.fn(function* (ctx) {
288
+ return { data: yield* session.updateMessage({ ...ctx.params, content: ctx.payload.content }).pipe(Effect.catchTag("Session.NotFoundError", missingSession), Effect.catchTag("Session.MessageNotFoundError", (error) => new MessageNotFoundError({
289
+ sessionID: error.sessionID,
290
+ messageID: error.messageID,
291
+ message: `Message not found: ${error.messageID}`
292
+ })), Effect.catchTag("Session.BusyError", busySession), Effect.catchTag("Session.MessageNotAssistantError", () => new InvalidRequestError({ message: "Only assistant messages can be updated", field: "messageID" })), Effect.catchTag("Session.MessageIncompleteError", (error) => new ConflictError({ message: "Assistant message is incomplete", resource: error.messageID })), Effect.catchTag("Session.MessageToolIncompleteError", () => new InvalidRequestError({ message: "Tool content must be completed", field: "content" }))) };
288
293
  }));
289
294
  }));
package/dist/process.js CHANGED
@@ -97,7 +97,7 @@ function dispatch(password, status, application, version) {
97
97
  return yield* healthResponse(status, version);
98
98
  }
99
99
  const state = yield* status.current, app = yield* Ref.get(application), ready = state.type === "ready" && Option.isSome(app);
100
- if ((!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url)) && !(yield* authorizedRequest(request, auth)))
100
+ if ((url.pathname === "/api" || url.pathname.startsWith("/api/") || url.pathname === "/openapi.json") && (!ready || !hasPtyConnectTicketURL(url) && !hasPersistentPtyConnectTicketURL(url)) && !(yield* authorizedRequest(request, auth)))
101
101
  return unauthorized();
102
102
  if (ready)
103
103
  return yield* app.value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/server",
4
- "version": "0.0.0-beta-19500",
4
+ "version": "0.0.0-dev-19274",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,17 +30,17 @@
30
30
  "dependencies": {
31
31
  "@effect/platform-node": "4.0.0-rc.112",
32
32
  "@effect/platform-node-shared": "4.0.0-rc.112",
33
- "@opencode/core": "0.0.0-beta-19500",
34
- "@opencode/protocol": "0.0.0-beta-19500",
35
- "@opencode/schema": "0.0.0-beta-19500",
36
- "@opencode/simulation": "0.0.0-beta-19500",
37
- "@opencode/util": "0.0.0-beta-19500",
33
+ "@opencode/core": "0.0.0-dev-19274",
34
+ "@opencode/protocol": "0.0.0-dev-19274",
35
+ "@opencode/schema": "0.0.0-dev-19274",
36
+ "@opencode/simulation": "0.0.0-dev-19274",
37
+ "@opencode/util": "0.0.0-dev-19274",
38
38
  "drizzle-orm": "1.0.0-rc.5-169397b",
39
39
  "effect": "4.0.0-rc.112"
40
40
  },
41
41
  "devDependencies": {
42
- "@opencode/client": "0.0.0-beta-19500",
43
- "@opencode/plugin": "0.0.0-beta-19500",
42
+ "@opencode/client": "0.0.0-dev-19274",
43
+ "@opencode/plugin": "0.0.0-dev-19274",
44
44
  "@tsconfig/bun": "1.0.9",
45
45
  "@types/bun": "1.4.0",
46
46
  "@typescript/native-preview": "7.0.0-dev.20251207.1"