@@ -34,8 +34,8 @@ const KB_CREATE_FLAGS = {
3434 valueHint : "<text>" ,
3535 description : {
3636 "en-US" :
37- "What this knowledge base holds and what it is for — tells bases apart in the workspace list (1-200 chars)" ,
38- "zh-CN" : "知识库装了什么内容、给谁用,用于在 Workspace 列表中区分同类知识库(1–200 个字符)" ,
37+ "What this knowledge base holds and what it is for — tells bases apart in the workspace list (1-500 chars)" ,
38+ "zh-CN" : "知识库装了什么内容、给谁用,用于在 Workspace 列表中区分同类知识库(1–500 个字符)" ,
3939 } ,
4040 required : true ,
4141 } ,
@@ -147,8 +147,8 @@ export default defineCommand({
147147 ] ,
148148 validate ( flags ) {
149149 if ( flags . name . length < 1 || flags . name . length > 20 ) return "--name must be 1-20 characters" ;
150- if ( flags . description . length < 1 || flags . description . length > 200 ) {
151- return "--description must be 1-200 characters" ;
150+ if ( flags . description . length < 1 || flags . description . length > 500 ) {
151+ return "--description must be 1-500 characters" ;
152152 }
153153 const hasDocIds = ! ! flags . docId ?. length ;
154154 const hasCategoryIds = ! ! flags . categoryId ?. length ;
@@ -166,8 +166,8 @@ export default defineCommand({
166166 // Note: the public docs' example uses sinkType DEFAULT, but BUILT_IN is what works against the live API.
167167 const body = {
168168 name : flags . name ,
169- // The server enforces description as a required 1-200 char field (the public
170- // API docs still list it as absent from CreateIndexV2Request.required).
169+ // description is a required field; length limit is 1-500 (the public API docs
170+ // still list it as absent from CreateIndexV2Request.required).
171171 description : flags . description ,
172172 structureType : "unstructured" ,
173173 sinkType : "BUILT_IN" ,
0 commit comments