@opencode/schema 0.0.0-beta-19507 → 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/config/provider.d.ts +0 -2
- package/dist/config/provider.js +0 -6
- package/dist/config/worktree.js +1 -1
- package/dist/event-manifest.d.ts +416 -332
- package/dist/instruction-entry.js +1 -1
- package/dist/model.d.ts +0 -2
- package/dist/model.js +0 -2
- package/dist/provider.d.ts +0 -2
- package/dist/provider.js +0 -2
- package/dist/session-event.d.ts +754 -1378
- package/dist/session-event.js +3 -20
- package/dist/session-message.d.ts +0 -132
- package/dist/session-message.js +0 -7
- package/dist/session-transfer.d.ts +0 -53
- package/dist/session.d.ts +0 -10
- package/dist/session.js +0 -3
- package/package.json +1 -1
|
@@ -102,7 +102,6 @@ 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>;
|
|
106
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>;
|
|
107
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>;
|
|
108
107
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -139,7 +138,6 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
139
138
|
readonly mode: Schema.Literal<"provider">;
|
|
140
139
|
readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
141
140
|
}>]>>, never, never>;
|
|
142
|
-
readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
143
141
|
readonly canonical: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Provider.ID"> & {
|
|
144
142
|
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
145
143
|
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
package/dist/config/provider.js
CHANGED
|
@@ -38,9 +38,6 @@ 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
|
-
}),
|
|
44
41
|
modelID: ID.pipe(optional),
|
|
45
42
|
family: Family.pipe(optional),
|
|
46
43
|
name: Schema.String.pipe(optional),
|
|
@@ -59,9 +56,6 @@ class Model extends Schema.Class("Config.Model")({
|
|
|
59
56
|
}
|
|
60
57
|
export class Info extends Schema.Class("Config.Provider")({
|
|
61
58
|
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 the built-in policy.",
|
|
64
|
-
}),
|
|
65
59
|
canonical: Provider.ID.pipe(optional),
|
|
66
60
|
name: Schema.String.pipe(optional),
|
|
67
61
|
env: Schema.String.pipe(Schema.Array, optional),
|
package/dist/config/worktree.js
CHANGED
|
@@ -2,6 +2,6 @@ export * as ConfigWorktree from "./worktree.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export const Info = Schema.Struct({
|
|
4
4
|
directory: Schema.Trim.pipe(Schema.check(Schema.isNonEmpty())).annotate({
|
|
5
|
-
description: "Parent directory for new worktrees, relative to the
|
|
5
|
+
description: "Parent directory for new worktrees, relative to the declaring config file when not absolute",
|
|
6
6
|
}),
|
|
7
7
|
}).annotate({ identifier: "Config.Worktree" });
|