@opencode/schema 0.0.0-dev-19390 → 0.0.0-dev-19391

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.
@@ -102,6 +102,7 @@ declare const Model_base: Schema.Class<Model, Schema.Struct<{
102
102
  readonly mode: Schema.Literal<"provider">;
103
103
  readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
104
104
  }>]>>, never, never>;
105
+ readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
105
106
  readonly modelID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.ID">>, never, never>;
106
107
  readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.Family">>, never, never>;
107
108
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
@@ -138,6 +139,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
138
139
  readonly mode: Schema.Literal<"provider">;
139
140
  readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
140
141
  }>]>>, never, never>;
142
+ readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
141
143
  readonly canonical: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Provider.ID"> & {
142
144
  opencode: string & import("effect/Brand").Brand<"Provider.ID">;
143
145
  anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -38,6 +38,9 @@ class Limit extends Schema.Class("Config.Model.Limit")({
38
38
  }
39
39
  class Model extends Schema.Class("Config.Model")({
40
40
  compaction: Provider.Compaction.pipe(optional),
41
+ websocket: Schema.Boolean.pipe(optional).annotate({
42
+ description: "Use the provider's WebSocket transport for this model. Defaults to the provider policy.",
43
+ }),
41
44
  modelID: ID.pipe(optional),
42
45
  family: Family.pipe(optional),
43
46
  name: Schema.String.pipe(optional),
@@ -56,6 +59,9 @@ class Model extends Schema.Class("Config.Model")({
56
59
  }
57
60
  export class Info extends Schema.Class("Config.Provider")({
58
61
  compaction: Provider.Compaction.pipe(optional),
62
+ websocket: Schema.Boolean.pipe(optional).annotate({
63
+ description: "Use the provider's WebSocket transport when the route supports it. Defaults to true.",
64
+ }),
59
65
  canonical: Provider.ID.pipe(optional),
60
66
  name: Schema.String.pipe(optional),
61
67
  env: Schema.String.pipe(Schema.Array, optional),
package/dist/model.d.ts CHANGED
@@ -219,6 +219,8 @@ export declare const Info: Schema.Struct<{
219
219
  readonly mode: Schema.Literal<"provider">;
220
220
  readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
221
221
  }>]>>, never, never>;
222
+ /** Session WebSocket policy; omitted inherits the provider policy, which defaults to enabled. */
223
+ readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
222
224
  }> & {
223
225
  default: (providerID: Provider.ID, id: ID) => {
224
226
  id: string & import("effect/Brand").Brand<"Model.ID">;
package/dist/model.js CHANGED
@@ -81,6 +81,8 @@ export const Info = Schema.Struct({
81
81
  compatibility: Compatibility.pipe(optional),
82
82
  package: Provider.Package.pipe(optional),
83
83
  compaction: Provider.Compaction.pipe(optional),
84
+ /** Session WebSocket policy; omitted inherits the provider policy, which defaults to enabled. */
85
+ websocket: Schema.Boolean.pipe(optional),
84
86
  ...Provider.Overlays,
85
87
  capabilities: Capabilities,
86
88
  variants: Schema.Array(Variant),
@@ -98,6 +98,8 @@ export declare const Info: Schema.Struct<{
98
98
  readonly mode: Schema.Literal<"provider">;
99
99
  readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
100
100
  }>]>>, never, never>;
101
+ /** Session WebSocket policy for routes that support it; omitted means enabled. */
102
+ readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
101
103
  }> & {
102
104
  empty: (id: ID) => Info;
103
105
  };
package/dist/provider.js CHANGED
@@ -40,6 +40,8 @@ export const Info = Schema.Struct({
40
40
  activation: Activation,
41
41
  package: Package,
42
42
  compaction: Compaction.pipe(optional),
43
+ /** Session WebSocket policy for routes that support it; omitted means enabled. */
44
+ websocket: Schema.Boolean.pipe(optional),
43
45
  ...Overlays,
44
46
  })
45
47
  .annotate({ identifier: "Provider.Info" })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-19390",
4
+ "version": "0.0.0-dev-19391",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {