@browserbasehq/orca 3.0.2-zod349 → 3.0.2-zod351
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/index.d.ts +1 -1
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { ChatCompletion } from 'openai/resources';
|
|
|
18
18
|
import { ToolSet as ToolSet$1 } from 'ai/dist';
|
|
19
19
|
import { Schema } from '@google/genai';
|
|
20
20
|
|
|
21
|
-
type StagehandZodSchema = ZodTypeAny | z3.ZodTypeAny;
|
|
21
|
+
type StagehandZodSchema = ZodTypeAny | z3.ZodTypeAny | any;
|
|
22
22
|
type StagehandZodObject = ZodObject<ZodRawShape> | z3.ZodObject<z3.ZodRawShape>;
|
|
23
23
|
type InferStagehandSchema<T extends StagehandZodSchema> = T extends z3.ZodTypeAny ? z3.infer<T> : T extends ZodTypeAny ? z.infer<T> : never;
|
|
24
24
|
declare const isZod4Schema: (schema: StagehandZodSchema) => schema is ZodTypeAny & {
|
package/dist/index.js
CHANGED
|
@@ -85,7 +85,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
85
85
|
var STAGEHAND_VERSION;
|
|
86
86
|
var init_version = __esm({
|
|
87
87
|
"lib/version.ts"() {
|
|
88
|
-
STAGEHAND_VERSION = "3.0.2-
|
|
88
|
+
STAGEHAND_VERSION = "3.0.2-zod351";
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
|
|
@@ -7965,7 +7965,16 @@ var import_v3 = __toESM(require("zod/v3"));
|
|
|
7965
7965
|
|
|
7966
7966
|
// lib/v3/zodCompat.ts
|
|
7967
7967
|
var import_zod = require("zod");
|
|
7968
|
-
var isZod4Schema = (schema) =>
|
|
7968
|
+
var isZod4Schema = (schema) => {
|
|
7969
|
+
if (typeof schema._zod !== "undefined") {
|
|
7970
|
+
return true;
|
|
7971
|
+
}
|
|
7972
|
+
const maybeAny = schema;
|
|
7973
|
+
if (typeof maybeAny.isOptional === "function") {
|
|
7974
|
+
return false;
|
|
7975
|
+
}
|
|
7976
|
+
return true;
|
|
7977
|
+
};
|
|
7969
7978
|
var isZod3Schema = (schema) => !isZod4Schema(schema);
|
|
7970
7979
|
function ZodToJsonSchema(schema) {
|
|
7971
7980
|
const _def = schema._def;
|
package/package.json
CHANGED