更新 check.ts 中的参数验证库为 zod,升级 package.json 版本并添加 zod 依赖

This commit is contained in:
xiongxiao
2026-03-16 22:23:54 +08:00
committed by cnb
parent 95bcad7587
commit f05bf93650
2 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { createSkill } from '@kevisual/router';
import { app, cnbManager } from '../../app.ts';
import { tool } from '@opencode-ai/plugin/tool';
import { z } from 'zod';
app.route({
@@ -15,8 +15,8 @@ app.route({
title: 'CNB 登录验证信息',
summary: '验证 CNB 登录信息是否有效',
args: {
checkToken: tool.schema.boolean().describe('是否检查 Token 的有效性').default(true),
checkCookie: tool.schema.boolean().describe('是否检查 Cookie 的有效性').default(false),
checkToken: z.boolean().describe('是否检查 Token 的有效性').default(true),
checkCookie: z.boolean().describe('是否检查 Cookie 的有效性').default(false),
},
})
}