chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ContentType, useSendTextMessage } from '@coze-common/chat-area';
import { sendTeaEvent, EVENT_NAMES } from '@coze-arch/bot-tea';
import { type ShortCutCommand } from '@coze-agent-ide/tool-config';
@@ -188,7 +188,7 @@ describe('useSendUseToolMessage', () => {
work_flow_id: '',
};
const componentsFormValues = { news: '查询北京news' };
// @ts-expect-error --单测忽略
// @ts-expect-error -- single test ignored
sendUseToolMessage({ shortcut, componentsFormValues });
expect(sendMultimodalMessage).toHaveBeenCalled();
expect(sendTeaEvent).toHaveBeenCalledWith(EVENT_NAMES.shortcut_use, {
@@ -237,7 +237,7 @@ describe('getTemplateQuery', () => {
work_flow_id: '',
};
const componentsFormValues = { news: '北京新闻' };
// @ts-expect-error --单测忽略
// @ts-expect-error -- single test ignored
const result = getTemplateQuery(shortcut, componentsFormValues);
expect(result).toBe('查询北京新闻');
});
@@ -278,7 +278,7 @@ describe('getTemplateQuery', () => {
work_flow_id: '',
};
const componentsFormValues = { news: '北京新闻' };
// @ts-expect-error --单测忽略
// @ts-expect-error -- single test ignored
expect(() => getTemplateQuery(shortcut, componentsFormValues)).toThrowError(
'template_query is not defined',
);

View File

@@ -70,7 +70,7 @@ describe('initToolInfoByToolApi', () => {
const result = initToolInfoByToolApi(plugin);
expect(result?.tool_params_list.length).toBe(MAX_TOOL_PARAMS_COUNT + 2);
// 前10个是required=true的参数
// The first 10 parameters are required = true
expect(
result?.tool_params_list
.slice(0, MAX_TOOL_PARAMS_COUNT)

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {
InputType,
// eslint-disable-next-line camelcase
@@ -136,7 +136,7 @@ describe('getSubmitFieldFromComponentTypeForm', () => {
});
it('returns TextInput type for unrecognized type', () => {
// @ts-expect-error -- 无视
// @ts-expect-error -- ignore
const values: ComponentTypeItem = { type: 'unknown' };
const result = getSubmitFieldFromComponentTypeForm(values);
expect(result).toEqual({ input_type: InputType.TextInput });