mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
P0 — Agent App can be created and routed: - Add AppModeEnum.AGENT to types/app.ts - Add Agent card to create-app-modal (primary row, with RiRobot2Fill icon) - Route Agent apps to /workflow editor (same as workflow/advanced-chat) - Update layout-main.tsx mode guards P1 — Agent V2 workflow node: - Add BlockEnum.AgentV2 = 'agent-v2' to workflow types - Create agent-v2/node.tsx: displays model, strategy, tool count - Create agent-v2/panel.tsx: model selector, strategy picker, tool list, max iterations, memory config, vision toggle - Register in NodeComponentMap and PanelComponentMap P2 — Sandbox Provider settings: - Create sandbox-provider-page: list/configure/activate/delete providers (Docker, E2B, SSH, AWS CodeInterpreter) - Create service/sandbox.ts: API client for sandbox provider endpoints - Add "Sandbox Providers" to settings menu i18n: Add en-US and zh-Hans translations for agent V2 description. Made-with: Cursor
23 lines
705 B
TypeScript
23 lines
705 B
TypeScript
export const ACCOUNT_SETTING_MODAL_ACTION = 'showSettings'
|
|
|
|
export const ACCOUNT_SETTING_TAB = {
|
|
PROVIDER: 'provider',
|
|
MEMBERS: 'members',
|
|
BILLING: 'billing',
|
|
DATA_SOURCE: 'data-source',
|
|
API_BASED_EXTENSION: 'api-based-extension',
|
|
CUSTOM: 'custom',
|
|
LANGUAGE: 'language',
|
|
SANDBOX_PROVIDER: 'sandbox-provider',
|
|
} as const
|
|
|
|
export type AccountSettingTab = typeof ACCOUNT_SETTING_TAB[keyof typeof ACCOUNT_SETTING_TAB]
|
|
|
|
export const DEFAULT_ACCOUNT_SETTING_TAB = ACCOUNT_SETTING_TAB.MEMBERS
|
|
|
|
export const isValidAccountSettingTab = (tab: string | null): tab is AccountSettingTab => {
|
|
if (!tab)
|
|
return false
|
|
return Object.values(ACCOUNT_SETTING_TAB).includes(tab as AccountSettingTab)
|
|
}
|