chore: format all frontend files (#430)
This commit is contained in:
@@ -13,5 +13,5 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/// <reference types='@coze-arch/bot-typings' />
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useShallow } from 'zustand/react/shallow';
|
||||
|
||||
import { getBotDetailIsReadonlyByState } from '../utils/get-read-only';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useBotSkillStore } from '../store/bot-skill';
|
||||
|
||||
export const useChatBackgroundState = () => {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export { avatarBackgroundWebSocket } from './utils/avatar-background-socket';
|
||||
|
||||
export { useBotDetailIsReadonly } from './hooks/use-bot-detail-readonly';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
REPORT_EVENTS as ReportEventNames,
|
||||
createReportEvent,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { logger } from '@coze-arch/logger';
|
||||
import { getFlags } from '@coze-arch/bot-flags';
|
||||
import { PlaygroundApi } from '@coze-arch/bot-api';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type BackgroundImageInfo } from '@coze-arch/bot-api/developer_api';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
import { type BotSkillStore } from '@/store/bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
import type { KnowledgeConfig } from '@/types/skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type LayoutInfo } from '@coze-arch/idl/developer_api';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type OnboardingInfo } from '@coze-arch/bot-api/playground_api';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
import type { BotSuggestionConfig } from '@/types/skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
import { type BotSkillStore, useBotSkillStore } from '@/store/bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { REPORT_EVENTS as ReportEventNames } from '@coze-arch/report-events';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
import { CustomError } from '@coze-arch/bot-error';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { merge } from 'lodash-es';
|
||||
import { type BotInfoForUpdate } from '@coze-arch/idl/playground_api';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { cloneDeep, uniqBy } from 'lodash-es';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { AutosaveManager } from '@coze-studio/autosave';
|
||||
|
||||
import { useBotSkillStore, type BotSkillStore } from '@/store/bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { personaSaveManager } from './persona';
|
||||
import { modelSaveManager } from './model';
|
||||
import { botSkillSaveManager } from './bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type ModelInfo } from '@coze-arch/bot-api/developer_api';
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type ModelInfo } from '@coze-arch/bot-api/developer_api';
|
||||
import { AutosaveManager } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
import { ItemTypeExtra } from '../../types';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useSpaceStore } from '@coze-arch/bot-studio-store';
|
||||
import { PlaygroundApi } from '@coze-arch/bot-api';
|
||||
import { AutosaveManager, type SaveRequest } from '@coze-studio/autosave';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { DebounceTime, type HostedObserverConfig } from '@coze-studio/autosave';
|
||||
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { AutosaveManager } from '@coze-studio/autosave';
|
||||
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { PlaygroundApi } from '@coze-arch/bot-api';
|
||||
import { type SaveRequest } from '@coze-studio/autosave';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export { autosaveManager } from './auto-save/index';
|
||||
export { personaSaveManager } from './auto-save/persona';
|
||||
export { botSkillSaveManager } from './auto-save/bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type HookInfo } from '@coze-arch/idl/playground_api';
|
||||
import { ItemType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
type FileboxInfoMode,
|
||||
ItemType,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { ItemType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
import { useBotSkillStore } from '@/store/bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useSpaceStore } from '@coze-arch/bot-studio-store';
|
||||
import { type MultiAgentConnectorType } from '@coze-arch/bot-api/playground_api';
|
||||
import { PlaygroundApi } from '@coze-arch/bot-api';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type UpdateDraftBotInfoAgwResponse } from '@coze-arch/idl/playground_api';
|
||||
import { type UserQueryCollectConf } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { saveFetcher, updateBotRequest } from '../utils/save-fetcher';
|
||||
import { ItemTypeExtra } from '../types';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useBotSkillStore } from '@/store/bot-skill';
|
||||
|
||||
import { saveFetcher, updateBotRequest } from '../utils/save-fetcher';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { cloneDeep, merge } from 'lodash-es';
|
||||
|
||||
import { useBotSkillStore } from '@/store/bot-skill';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { ItemType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
import { REPORT_EVENTS as ReportEventNames } from '@coze-arch/report-events';
|
||||
import { reporter } from '@coze-arch/logger';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
type GetBotVersionInfoData,
|
||||
GetBotVersionScene,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { BotTableRWMode } from '@coze-arch/bot-api/memory';
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export {
|
||||
useBotSkillStore,
|
||||
getDefaultBotSkillStore,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { isFunction } from 'lodash-es';
|
||||
|
||||
@@ -331,7 +331,7 @@ export const transformVo2Dto = {
|
||||
flow_mode: w.flow_mode,
|
||||
workflow_name: w.name,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
}) as any,
|
||||
} as any),
|
||||
),
|
||||
|
||||
knowledge: (knowledge: KnowledgeConfig): BotInfoForUpdate['knowledge'] => ({
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { logger } from '@coze-arch/logger';
|
||||
import { useSpaceStore } from '@coze-arch/bot-studio-store';
|
||||
import { SpaceType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useAuditInfoStore } from '@/store/audit-info';
|
||||
|
||||
import { useQueryCollectStore } from './query-collect';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* To fulfill a miraculous function
|
||||
* In multi agent mode, replying.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { isNil } from 'lodash-es';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
|
||||
import type { AgentBizInfo } from '../../types/agent';
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export { useMultiAgentStore, type MultiAgentStore } from './store';
|
||||
export { DEFAULT_AGENT_BIZ_INFO } from './defaults';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { nanoid } from 'nanoid';
|
||||
import { omit } from 'lodash-es';
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type TabDisplayItems, TabStatus } from '@coze-arch/idl/developer_api';
|
||||
|
||||
export const DEFAULT_BOT_SKILL_BLOCK_COLLAPSIBLE_STATE =
|
||||
|
||||
@@ -13,6 +13,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export { usePageRuntimeStore, type PageRuntime } from './store';
|
||||
export { DEFAULT_BOT_SKILL_BLOCK_COLLAPSIBLE_STATE } from './defaults';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { size } from 'lodash-es';
|
||||
@@ -110,7 +110,7 @@ export const usePageRuntimeStore = create<PageRuntime & PageRuntimeAction>()(
|
||||
/**
|
||||
* Get the status of the user's active expand/collapse bot capability module
|
||||
* ⚠️ Called only when opening my bot edit page for the first time
|
||||
* @see
|
||||
* @see
|
||||
*/
|
||||
getBotSkillBlockCollapsibleState: async () => {
|
||||
try {
|
||||
@@ -138,7 +138,7 @@ export const usePageRuntimeStore = create<PageRuntime & PageRuntimeAction>()(
|
||||
/**
|
||||
* Stores the status of the user's active expand/retract bot capability module
|
||||
* ⚠️ Only record when active
|
||||
* @see
|
||||
* @see
|
||||
*/
|
||||
setBotSkillBlockCollapsibleState: (
|
||||
$params: TabDisplayItems,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import { produce } from 'immer';
|
||||
@@ -79,11 +79,11 @@ export const usePersonaStore = create<PersonaStore & PersonaAction>()(
|
||||
prompt_type: PromptType.SYSTEM,
|
||||
isOptimize: false,
|
||||
record_id: '',
|
||||
}) as unknown as RequiredBotPrompt,
|
||||
} as unknown as RequiredBotPrompt),
|
||||
transformVo2Dto: persona =>
|
||||
({
|
||||
prompt: persona?.data || '',
|
||||
}) as unknown as BotInfoForUpdate['prompt_info'],
|
||||
} as unknown as BotInfoForUpdate['prompt_info']),
|
||||
initStore: botData => {
|
||||
const { setPersonaByImmer, transformDto2Vo } = get();
|
||||
botData &&
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { devtools, subscribeWithSelector } from 'zustand/middleware';
|
||||
import { create } from 'zustand';
|
||||
import {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type PartialRequired } from '@coze-arch/bot-typings/common';
|
||||
import type { DraftBotApi } from '@coze-arch/bot-api/playground_api';
|
||||
import type {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
type TaskNotice,
|
||||
type PicTask,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import type { Model, ModelInfo } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
/** Model Settings */
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import type { BotPrompt, PromptType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
export interface RequiredBotPrompt extends BotPrompt {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type ShortCutStruct } from '@coze-agent-ide/tool-config/src/shortcut-config/type';
|
||||
import {
|
||||
type PluginStatus,
|
||||
@@ -29,10 +29,7 @@ import {
|
||||
type RecallStrategy,
|
||||
type DefaultUserInputType,
|
||||
} from '@coze-arch/bot-api/playground_api';
|
||||
import {
|
||||
type BotTableRWMode,
|
||||
type FieldItem,
|
||||
} from '@coze-arch/bot-api/memory';
|
||||
import { type BotTableRWMode, type FieldItem } from '@coze-arch/bot-api/memory';
|
||||
import { type Dataset } from '@coze-arch/bot-api/knowledge';
|
||||
import type {
|
||||
FileboxInfo,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export type RemoveOptional<T> = {
|
||||
[K in keyof T]-?: T[K];
|
||||
};
|
||||
|
||||
@@ -13,15 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { withSlardarIdButton } from '@coze-studio/bot-utils';
|
||||
import { logger } from '@coze-arch/logger';
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { arrayBufferToObject } from '@coze-arch/bot-utils';
|
||||
import {
|
||||
type GenPicMessage,
|
||||
PicType,
|
||||
} from '@coze-arch/bot-api/playground_api';
|
||||
import { type GenPicMessage, PicType } from '@coze-arch/bot-api/playground_api';
|
||||
import { PlaygroundApi } from '@coze-arch/bot-api';
|
||||
import webSocketManager, {
|
||||
type Connection,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { globalVars } from '@coze-arch/web-context';
|
||||
|
||||
export const getExecuteDraftBotRequestId = (): string =>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { withSlardarIdButton } from '@coze-studio/bot-utils';
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { Toast } from '@coze-arch/bot-semi';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
GenPicStatus,
|
||||
PicType,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import {
|
||||
type PicType,
|
||||
type GetPicTaskData,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { usePageRuntimeStore } from '../store/page-runtime';
|
||||
import { useCollaborationStore, EditLockStatus } from '../store/collaboration';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { Toast } from '@coze-arch/bot-semi';
|
||||
import { MultiAgentSessionType } from '@coze-arch/bot-api/playground_api';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type Branch, type Committer } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
import { useCollaborationStore } from '../store/collaboration';
|
||||
|
||||
@@ -13,4 +13,3 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { omit } from 'lodash-es';
|
||||
import type { PluginApi } from '@coze-arch/bot-api/playground_api';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { PromptType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
export function replacedBotPrompt(data) {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type BotPrompt, PromptType } from '@coze-arch/bot-api/developer_api';
|
||||
|
||||
import { usePersonaStore } from '../store/persona';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type create } from 'zustand';
|
||||
|
||||
export interface SetterAction<T> {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { useCollaborationStore } from '../store/collaboration';
|
||||
|
||||
export function createStorage<T extends object>(
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { UIToast } from '@coze-arch/bot-semi';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { type VariableItem, VariableKeyErrType } from '../types/skill';
|
||||
|
||||
export function uniqMemoryList(
|
||||
|
||||
Reference in New Issue
Block a user