@opencode/schema 2.0.1 → 2.0.2
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/shell.d.ts +9 -0
- package/dist/config/shell.js +7 -0
- package/dist/config.d.ts +12 -0
- package/dist/config.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * as ConfigShell from "./shell.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const Option: Schema.Struct<{
|
|
4
|
+
readonly path: Schema.String;
|
|
5
|
+
readonly name: Schema.String;
|
|
6
|
+
readonly acceptable: Schema.Boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export interface Option extends Schema.Schema.Type<typeof Option> {
|
|
9
|
+
}
|
package/dist/config.d.ts
CHANGED
|
@@ -83,6 +83,18 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
83
83
|
}>, {}>;
|
|
84
84
|
export declare class Info extends Info_base {
|
|
85
85
|
}
|
|
86
|
+
export declare const Preferences: Schema.Struct<{
|
|
87
|
+
readonly shell: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
88
|
+
readonly websearch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<false>, typeof ConfigWebSearch.Info]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<false>, typeof ConfigWebSearch.Info]>>, never, never>;
|
|
89
|
+
}>;
|
|
90
|
+
export interface Preferences extends Schema.Schema.Type<typeof Preferences> {
|
|
91
|
+
}
|
|
92
|
+
export declare const PreferencesPatch: Schema.Struct<{
|
|
93
|
+
readonly shell: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NullOr<Schema.String>>>, Schema.optionalKey<Schema.NullOr<Schema.String>>, never, never>;
|
|
94
|
+
readonly websearch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NullOr<Schema.Union<readonly [Schema.Literal<false>, typeof ConfigWebSearch.Info]>>>>, Schema.optionalKey<Schema.NullOr<Schema.Union<readonly [Schema.Literal<false>, typeof ConfigWebSearch.Info]>>>, never, never>;
|
|
95
|
+
}>;
|
|
96
|
+
export interface PreferencesPatch extends Schema.Schema.Type<typeof PreferencesPatch> {
|
|
97
|
+
}
|
|
86
98
|
declare const Document_base: Schema.Class<Document, Schema.Struct<{
|
|
87
99
|
readonly type: Schema.Literal<"document">;
|
|
88
100
|
readonly path: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "AbsolutePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "AbsolutePath">>, never, never>;
|
package/dist/config.js
CHANGED
|
@@ -107,6 +107,14 @@ export class Info extends Schema.Class("Config.Info")({
|
|
|
107
107
|
experimental: ConfigExperimental.Info.pipe(optional),
|
|
108
108
|
}) {
|
|
109
109
|
}
|
|
110
|
+
export const Preferences = Schema.Struct({
|
|
111
|
+
shell: Schema.String.pipe(optional),
|
|
112
|
+
websearch: ConfigWebSearch.Selection.pipe(optional),
|
|
113
|
+
}).annotate({ identifier: "Config.Preferences" });
|
|
114
|
+
export const PreferencesPatch = Schema.Struct({
|
|
115
|
+
shell: Schema.NullOr(Schema.String).pipe(optional),
|
|
116
|
+
websearch: Schema.NullOr(ConfigWebSearch.Selection).pipe(optional),
|
|
117
|
+
}).annotate({ identifier: "Config.PreferencesPatch" });
|
|
110
118
|
export class Document extends Schema.Class("Config.Document")({
|
|
111
119
|
type: Schema.Literal("document"),
|
|
112
120
|
path: AbsolutePath.pipe(optional),
|