mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:20:44 +00:00
build: migrate schema deps to typebox
This commit is contained in:
@@ -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:*"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user