@cnbcool/cnb-api-generate 2.7.3 → 2.7.4
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.
|
@@ -84,9 +84,12 @@ function flattenToolOptions(toolInfo) {
|
|
|
84
84
|
? (0, clean_array_desc_1.cleanArrayDesc)((0, trim_summary_1.trimSummary)(prop.description || ''))
|
|
85
85
|
: (0, trim_summary_1.trimSummary)(prop.description || '');
|
|
86
86
|
const arrayHint = isArray ? ' (可多次传入)' : '';
|
|
87
|
+
const fileRefHint = !isArray && prop.type === 'string' && key === 'body'
|
|
88
|
+
? ' (支持 @file 引用)'
|
|
89
|
+
: '';
|
|
87
90
|
const desc = isRequired
|
|
88
|
-
? `[必填] ${rawDesc}${arrayHint}`
|
|
89
|
-
: `${rawDesc}${arrayHint}`;
|
|
91
|
+
? `[必填] ${rawDesc}${arrayHint}${fileRefHint}`
|
|
92
|
+
: `${rawDesc}${arrayHint}${fileRefHint}`;
|
|
90
93
|
const opt = {
|
|
91
94
|
optKey,
|
|
92
95
|
valuePlaceholder,
|