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

@@ -5,8 +5,8 @@
"description": "OpenClaw JSON-only LLM task plugin",
"type": "module",
"dependencies": {
"@sinclair/typebox": "0.34.49",
"ajv": "^8.18.0"
"ajv": "^8.18.0",
"typebox": "1.1.28"
},
"devDependencies": {
"@openclaw/plugin-sdk": "workspace:*"

View File

@@ -1,6 +1,6 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
vi.mock("@sinclair/typebox", () => ({
vi.mock("typebox", () => ({
Type: {
Object: (schema: unknown) => schema,
String: (schema?: unknown) => schema,

View File

@@ -1,8 +1,8 @@
import fs from "node:fs/promises";
import path from "node:path";
import { Type } from "@sinclair/typebox";
import Ajv from "ajv";
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
import { Type } from "typebox";
import {
formatThinkingLevels,
isThinkingLevelSupported,