build: migrate schema deps to typebox

This commit is contained in:
Peter Steinberger
2026-04-23 04:59:26 +01:00
parent dd1ba0296c
commit b2472d6560
143 changed files with 344 additions and 347 deletions

View File

@@ -1,3 +1,3 @@
{
"specs": ["@sinclair/typebox@0.34.49"]
"specs": ["typebox@1.1.28"]
}

View File

@@ -5,7 +5,7 @@
"description": "OpenClaw Firecrawl plugin",
"type": "module",
"dependencies": {
"@sinclair/typebox": "0.34.49"
"typebox": "1.1.28"
},
"devDependencies": {
"@openclaw/plugin-sdk": "workspace:*"

View File

@@ -1,10 +1,10 @@
import { Type } from "@sinclair/typebox";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-runtime";
import {
jsonResult,
readNumberParam,
readStringParam,
} from "openclaw/plugin-sdk/provider-web-search";
import { Type } from "typebox";
import { runFirecrawlScrape } from "./firecrawl-client.js";
function optionalStringEnum<const T extends readonly string[]>(

View File

@@ -1,4 +1,3 @@
import { Type } from "@sinclair/typebox";
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-runtime";
import {
jsonResult,
@@ -6,6 +5,7 @@ import {
readStringArrayParam,
readStringParam,
} from "openclaw/plugin-sdk/provider-web-search";
import { Type } from "typebox";
import { runFirecrawlSearch } from "./firecrawl-client.js";
const FirecrawlSearchToolSchema = Type.Object(