@kevisual/cnb 0.0.49 → 0.0.51
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/routes/cnb-env/check.ts +3 -3
- package/dist/cli.js +131 -12451
- package/dist/npc.js +147 -12459
- package/dist/opencode.js +2791 -15111
- package/dist/routes.js +89 -12409
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSkill } from '@kevisual/router';
|
|
2
2
|
import { app, cnbManager } from '../../app.ts';
|
|
3
|
-
import {
|
|
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:
|
|
19
|
-
checkCookie:
|
|
18
|
+
checkToken: z.boolean().describe('是否检查 Token 的有效性').default(true),
|
|
19
|
+
checkCookie: z.boolean().describe('是否检查 Cookie 的有效性').default(false),
|
|
20
20
|
},
|
|
21
21
|
})
|
|
22
22
|
}
|