chore: migrate fe 250722

This commit is contained in:
tecvan
2025-07-22 13:35:49 +08:00
parent b46a0c6c12
commit 60d42100f0
330 changed files with 9761 additions and 19074 deletions

View File

@@ -190,7 +190,7 @@ export const PublishResult = ({
type: IntelligenceType.Bot,
spaceId: String(spaceId),
intelligenceId: String(botId),
// 社区版暂不支持该功能
// 开源版暂不支持该功能
enable: FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE,
});
@@ -213,7 +213,7 @@ export const PublishResult = ({
? `⚠️ ${I18n.t('publish_result_all_failed')}`
: `🎉 ${I18n.t('publish_success')}`}
</div>
{/* 社区版暂不支持该功能 */}
{/* 开源版暂不支持该功能 */}
{IS_OVERSEA && !publishResult?.monetizeConfigSuccess ? (
<div className="mt-[12px] flex items-center gap-[8px] coz-fg-primary">
<IconCozInfoCircleFill className="coz-fg-hglt-yellow" />
@@ -222,7 +222,7 @@ export const PublishResult = ({
</span>
</div>
) : null}
{/* 社区版暂不支持该功能 */}
{/* 开源版暂不支持该功能 */}
{FLAGS['bot.studio.publish_management'] && !IS_OPEN_SOURCE ? (
<div className="coz-fg-dim text-[12px]">
{I18n.t('release_management_detail1', {

View File

@@ -119,7 +119,7 @@ const ToolHeader: FC<ToolHeaderProps> = ({
/>
<span className={s.title}>{I18n.t('plugin_edit_tool_title')}</span>
<OauthButtonAction />
{/* 社区版暂不支持该功能 */}
{/* 开源版暂不支持该功能 */}
{FLAGS['bot.devops.plugin_mockset'] ? (
<Tooltip
style={{ display: mocksetDisabled ? 'block' : 'none' }}

View File

@@ -18,7 +18,7 @@ import { createContext, useContext } from 'react';
export enum BotCreatorScene {
Bot = 'bot',
/** 社区版暂不支持该功能 */
/** 开源版暂不支持该功能 */
DouyinBot = 'douyin-bot',
}

View File

@@ -144,7 +144,7 @@ export const MoreMenuButton: FC = () => {
spaceId,
enable:
showPublishManageMenu &&
// 社区版暂不支持该功能
// 开源版暂不支持该功能
FLAGS['bot.studio.publish_management'] &&
!IS_OPEN_SOURCE,
});
@@ -172,7 +172,7 @@ export const MoreMenuButton: FC = () => {
<Dropdown
render={
<Dropdown.Menu mode="menu">
{/* 社区版暂不支持该功能 */}
{/* 开源版暂不支持该功能 */}
{showPublishManageMenu &&
FLAGS['bot.studio.publish_management'] &&
!IS_OPEN_SOURCE
@@ -196,7 +196,7 @@ export const MoreMenuButton: FC = () => {
: null}
{hideOpenIn ? null : (
<>
{/* 社区版暂不支持该功能 */}
{/* 开源版暂不支持该功能 */}
{showPublishManageMenu &&
FLAGS['bot.studio.publish_management'] &&
!IS_OPEN_SOURCE ? (

View File

@@ -93,7 +93,7 @@ export function ModelOption({
?.filter(t => t.tag_class === ModelTagClass.ModelFunction && t.tag_name)
.map(t => t.tag_name);
// 付费墙,社区版不支持该功能
// 付费墙,开源版不支持该功能
const isProModel =
model.model_status_details?.is_new_model ||
model.model_status_details?.is_advanced_model;
@@ -154,7 +154,7 @@ export function ModelOption({
{model.name}
</Typography.Title>
<div className="shrink-0 flex gap-[6px]">
{/* 抖音分身场景下不展示改 tag社区版暂不支持该功能 */}
{/* 抖音分身场景下不展示改 tag开源版暂不支持该功能 */}
{model.model_status_details?.is_free_model &&
scene !== BotCreatorScene.DouyinBot ? (
<Tag size="mini" color="primary" className="!coz-mg-plus">

View File

@@ -60,7 +60,7 @@ export const useGetModelList = () => {
const res = await SpaceApi.GetTypeList({
cur_model_ids: expectedIdList,
model: true,
// 社区版暂不支持该功能
// 开源版暂不支持该功能
...(scene === BotCreatorScene.DouyinBot && {
model_scene: ModelScene.Douyin,
}),

View File

@@ -70,7 +70,7 @@ const useAgentSkillPluginSettingModalController = (
},
{
refreshDeps: [commonParams],
// 社区版暂不支持该功能
// 开源版暂不支持该功能
ready: visible && FLAGS['bot.devops.plugin_mockset'],
},
);

View File

@@ -73,7 +73,7 @@ const usePartMainController = (pluginInfo: PluginInfoForPlayground) => {
value: PARA.toLowerCase(),
},
];
// 社区版暂不支持该功能
// 开源版暂不支持该功能
if (FLAGS['bot.devops.plugin_mockset']) {
keyOptions.unshift({
label: I18n.t('bot_ide_plugin_setting_modal_mockset_tab'),

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable max-lines */
/* eslint-disable @coze-arch/max-line-per-function */

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import qs from 'qs';
import { useSpaceStore } from '@coze-foundation/space-store';
import {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** for open coze */
export enum PluginAuthMode {
/** No authorization required */

View File

@@ -99,7 +99,7 @@ const AgentIdePrompt = (props: AgentIdePromptProps) => {
librarys={libraryList}
onAddLibrary={addLibrary}
spaceId={space_id}
// Agent IDE 在抖音分身场景下需要传入分身id进行判断当前资源是否存在 社区版暂不支持该功能
// Agent IDE 在抖音分身场景下需要传入分身id进行判断当前资源是否存在 开源版暂不支持该功能
avatarBotId={
businessType === BusinessType.DouyinAvatar ? botId : undefined
}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type ReactNode, useState } from 'react';
import { useBotInfoStore } from '@coze-studio/bot-detail-store/bot-info';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { type FC } from 'react';
import { I18n } from '@coze-arch/i18n';

View File

@@ -39,7 +39,7 @@ export function ChangeButton({
}: ChangeButtonProps) {
const [FLAGS] = useFlags();
// 社区版暂不支持该功能
// 开源版暂不支持该功能
const showText = modeInfo?.showText || FLAGS['bot.studio.prompt_diff'];
const ToolTipFragment = tooltip ? Tooltip : React.Fragment;

View File

@@ -133,7 +133,7 @@ export const OnboardingMessage = forwardRef<
initValues={onboardingContent}
isReadonly={isReadonly}
isGenerating={isLoading}
// 社区版暂不支持该功能
// 开源版暂不支持该功能
plainText={scene === BotCreatorScene.DouyinBot}
onChange={submitEditor}
onBlur={() => {

View File

@@ -98,6 +98,6 @@ export interface PublisherBotInfo {
hasPublished?: boolean;
// 收费插件列表
pluginPricingRules?: Array<PluginPricingRule>;
// 业务类型 DouyinAvatar=1 抖音分身 社区版暂不支持该功能
// 业务类型 DouyinAvatar=1 抖音分身 开源版暂不支持该功能
businessType?: BusinessType;
}