@kevisual/cnb 0.0.50 → 0.0.52

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/agent/cli.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { app } from './index.ts';
2
2
  import { parse } from '@kevisual/router/src/commander.ts';
3
3
 
4
- parse({ app: app, description: 'CNB控制台命令行工具', parse: true })
4
+ await parse({ app: app, description: 'CNB控制台命令行工具', parse: true })
5
+
6
+ console.log('命令行工具已启动,输入 help 查看可用命令', 'end');
@@ -1,6 +1,6 @@
1
1
  import { createSkill } from '@kevisual/router';
2
2
  import { app, cnbManager } from '../../app.ts';
3
- import { tool } from '@opencode-ai/plugin/tool';
3
+ import { z } from 'zod';
4
4
 
5
5
 
6
6
  app.route({
@@ -15,8 +15,8 @@ app.route({
15
15
  title: 'CNB 登录验证信息',
16
16
  summary: '验证 CNB 登录信息是否有效',
17
17
  args: {
18
- checkToken: tool.schema.boolean().describe('是否检查 Token 的有效性').default(true),
19
- checkCookie: tool.schema.boolean().describe('是否检查 Cookie 的有效性').default(false),
18
+ checkToken: z.boolean().describe('是否检查 Token 的有效性').default(true),
19
+ checkCookie: z.boolean().describe('是否检查 Cookie 的有效性').default(false),
20
20
  },
21
21
  })
22
22
  }