@opencode-ai/schema 0.0.0-dev-18158 → 0.0.0-dev-18164
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/tool.d.ts +2 -2
- package/package.json +1 -1
package/dist/tool.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as Tool from "./tool.js";
|
|
2
2
|
import { Effect, JsonSchema, Schema } from "effect";
|
|
3
|
-
import type {
|
|
3
|
+
import type { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
import type { Agent } from "./agent.js";
|
|
5
5
|
import type { Session } from "./session.js";
|
|
6
6
|
import type { SessionMessage } from "./session-message.js";
|
|
@@ -25,7 +25,7 @@ export type Options = BaseOptions & ({
|
|
|
25
25
|
readonly codemode: boolean;
|
|
26
26
|
readonly pinned?: never;
|
|
27
27
|
});
|
|
28
|
-
export type ValueSchema<A = unknown> = Schema.Codec<A, any> |
|
|
28
|
+
export type ValueSchema<A = unknown> = Schema.Codec<A, any> | StandardSchemaV1<any, A> | JsonSchema.JsonSchema;
|
|
29
29
|
type InputValue<S> = 0 extends 1 & S ? any : S extends Schema.Codec<infer A, any> ? A : S extends StandardSchemaV1<any, infer A> ? A : unknown;
|
|
30
30
|
type OutputValue<S> = S extends undefined ? never : S extends Schema.Codec<infer A, any> ? A : S extends StandardSchemaV1<infer A, any> ? A : any;
|
|
31
31
|
declare const Error_base: Schema.Class<Error, Schema.TaggedStruct<"Tool.Error", {
|