@opencode-ai/schema 0.0.0-next-16916 → 0.0.0-next-16927
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/agent.d.ts +42 -0
- package/dist/config/agent.js +20 -0
- package/dist/config/command.d.ts +27 -0
- package/dist/config/command.js +12 -0
- package/dist/config/compaction.d.ts +14 -0
- package/dist/config/compaction.js +13 -0
- package/dist/config/experimental.d.ts +16 -0
- package/dist/config/experimental.js +13 -0
- package/dist/config/formatter.d.ts +11 -0
- package/dist/config/formatter.js +11 -0
- package/dist/config/lsp.d.ts +20 -0
- package/dist/config/lsp.js +16 -0
- package/dist/config/mcp.d.ts +18 -0
- package/dist/config/mcp.js +14 -0
- package/dist/config/media.d.ts +15 -0
- package/dist/config/media.js +14 -0
- package/dist/config/model.d.ts +18 -0
- package/dist/config/model.js +28 -0
- package/dist/config/plugin.d.ts +11 -0
- package/dist/config/plugin.js +10 -0
- package/dist/config/policy.d.ts +10 -0
- package/dist/config/policy.js +8 -0
- package/dist/config/provider.d.ts +106 -0
- package/dist/config/provider.js +62 -0
- package/dist/config/reference.d.ts +21 -0
- package/dist/config/reference.js +18 -0
- package/dist/config/tool-output.d.ts +8 -0
- package/dist/config/tool-output.js +8 -0
- package/dist/config/warming.d.ts +10 -0
- package/dist/config/warming.js +16 -0
- package/dist/config/watcher.d.ts +7 -0
- package/dist/config/watcher.js +7 -0
- package/dist/config/websearch.d.ts +7 -0
- package/dist/config/websearch.js +7 -0
- package/dist/config.d.ts +142 -30
- package/dist/config.js +134 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mcp.d.ts +18 -24
- package/dist/mcp.js +19 -23
- package/dist/model.d.ts +8 -0
- package/dist/model.js +5 -0
- package/dist/prompt.d.ts +11 -11
- package/dist/session-transfer.d.ts +654 -0
- package/dist/session-transfer.js +8 -0
- package/package.json +1 -1
package/dist/model.d.ts
CHANGED
|
@@ -34,10 +34,14 @@ export declare const Family: Schema.brand<Schema.String, "Model.Family">;
|
|
|
34
34
|
export type Family = typeof Family.Type;
|
|
35
35
|
export type ReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
|
|
36
36
|
export declare const ReasoningField: Schema.Codec<ReasoningField>;
|
|
37
|
+
export declare const MaxTokensField: Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>;
|
|
38
|
+
export type MaxTokensField = typeof MaxTokensField.Type;
|
|
37
39
|
export interface Compatibility extends Schema.Schema.Type<typeof Compatibility> {
|
|
38
40
|
}
|
|
39
41
|
export declare const Compatibility: Schema.Struct<{
|
|
40
42
|
readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>;
|
|
43
|
+
readonly maxTokensField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>>>, Schema.optionalKey<Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>>, never, never>;
|
|
44
|
+
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
41
45
|
}>;
|
|
42
46
|
export interface Capabilities extends Schema.Schema.Type<typeof Capabilities> {
|
|
43
47
|
}
|
|
@@ -148,8 +152,12 @@ export declare const Info: Schema.Struct<{
|
|
|
148
152
|
readonly name: Schema.String;
|
|
149
153
|
readonly compatibility: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
150
154
|
readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>;
|
|
155
|
+
readonly maxTokensField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>>>, Schema.optionalKey<Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>>, never, never>;
|
|
156
|
+
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
151
157
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
152
158
|
readonly reasoningField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Codec<ReasoningField, ReasoningField, never, never>>>, Schema.optionalKey<Schema.Codec<ReasoningField, ReasoningField, never, never>>, never, never>;
|
|
159
|
+
readonly maxTokensField: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>>>, Schema.optionalKey<Schema.Literals<readonly ["max_completion_tokens", "max_tokens"]>>, never, never>;
|
|
160
|
+
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
153
161
|
}>>, never, never>;
|
|
154
162
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
155
163
|
}> & {
|
package/dist/model.js
CHANGED
|
@@ -34,8 +34,13 @@ export const ReasoningField = Schema.Union([
|
|
|
34
34
|
Schema.Literals(["reasoning", "reasoning_content", "reasoning_text"]),
|
|
35
35
|
Schema.String,
|
|
36
36
|
]).annotate({ identifier: "Model.ReasoningField" });
|
|
37
|
+
export const MaxTokensField = Schema.Literals(["max_completion_tokens", "max_tokens"]).annotate({
|
|
38
|
+
identifier: "Model.MaxTokensField",
|
|
39
|
+
});
|
|
37
40
|
export const Compatibility = Schema.Struct({
|
|
38
41
|
reasoningField: ReasoningField.pipe(optional),
|
|
42
|
+
maxTokensField: MaxTokensField.pipe(optional),
|
|
43
|
+
requireFinishReason: Schema.Boolean.pipe(optional),
|
|
39
44
|
}).annotate({ identifier: "Model.Compatibility" });
|
|
40
45
|
export const Capabilities = Schema.Struct({
|
|
41
46
|
tools: Schema.Boolean,
|
package/dist/prompt.d.ts
CHANGED
|
@@ -177,6 +177,14 @@ export declare const Prompt: Schema.Struct<{
|
|
|
177
177
|
}> & {
|
|
178
178
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
179
179
|
readonly text: string;
|
|
180
|
+
readonly agents?: readonly {
|
|
181
|
+
readonly name: string;
|
|
182
|
+
readonly mention?: {
|
|
183
|
+
readonly start: number;
|
|
184
|
+
readonly end: number;
|
|
185
|
+
readonly text: string;
|
|
186
|
+
} | undefined;
|
|
187
|
+
}[] | undefined;
|
|
180
188
|
readonly files?: readonly {
|
|
181
189
|
readonly data: string;
|
|
182
190
|
readonly source: {
|
|
@@ -194,6 +202,9 @@ export declare const Prompt: Schema.Struct<{
|
|
|
194
202
|
readonly text: string;
|
|
195
203
|
} | undefined;
|
|
196
204
|
}[] | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
fromUserMessage: (input: Pick<Prompt, "text" | "files" | "agents">) => {
|
|
207
|
+
readonly text: string;
|
|
197
208
|
readonly agents?: readonly {
|
|
198
209
|
readonly name: string;
|
|
199
210
|
readonly mention?: {
|
|
@@ -202,9 +213,6 @@ export declare const Prompt: Schema.Struct<{
|
|
|
202
213
|
readonly text: string;
|
|
203
214
|
} | undefined;
|
|
204
215
|
}[] | undefined;
|
|
205
|
-
}>;
|
|
206
|
-
fromUserMessage: (input: Pick<Prompt, "text" | "files" | "agents">) => {
|
|
207
|
-
readonly text: string;
|
|
208
216
|
readonly files?: readonly {
|
|
209
217
|
readonly data: string;
|
|
210
218
|
readonly source: {
|
|
@@ -222,13 +230,5 @@ export declare const Prompt: Schema.Struct<{
|
|
|
222
230
|
readonly text: string;
|
|
223
231
|
} | undefined;
|
|
224
232
|
}[] | undefined;
|
|
225
|
-
readonly agents?: readonly {
|
|
226
|
-
readonly name: string;
|
|
227
|
-
readonly mention?: {
|
|
228
|
-
readonly start: number;
|
|
229
|
-
readonly end: number;
|
|
230
|
-
readonly text: string;
|
|
231
|
-
} | undefined;
|
|
232
|
-
}[] | undefined;
|
|
233
233
|
};
|
|
234
234
|
};
|