diff --git a/web/core/lib/editor/prompts/prompts-manager.ts b/web/core/lib/editor/prompts/prompts-manager.ts index 8696fcd..bc6f384 100644 --- a/web/core/lib/editor/prompts/prompts-manager.ts +++ b/web/core/lib/editor/prompts/prompts-manager.ts @@ -6,8 +6,6 @@ import { TypeOptions } from "@/editor/defs/type-options.type"; import RequirementsPrompts from "@/editor/prompts/requirements-prompts"; export class PromptsManager { - private backgroundContext: string = ""; - private constructor() { } diff --git a/web/core/lib/editor/prompts/requirements-prompts.ts b/web/core/lib/editor/prompts/requirements-prompts.ts index a8fc8bb..e14e705 100644 --- a/web/core/lib/editor/prompts/requirements-prompts.ts +++ b/web/core/lib/editor/prompts/requirements-prompts.ts @@ -1,6 +1,6 @@ import { ChangeForm, DefinedVariable, FacetType, OutputForm, PromptAction } from "@/editor/defs/custom-action.type"; -const ToolbarMenu: PromptAction[] = [ +const ToolbarMenuPrompts: PromptAction[] = [ { name: 'Generate Requirements', i18Name: true, @@ -10,7 +10,7 @@ const ToolbarMenu: PromptAction[] = [ } ]; -const BubbleMenu: PromptAction[] = [ +const BubbleMenuPrompts: PromptAction[] = [ { name: '细化需求', i18Name: true, @@ -28,7 +28,7 @@ const BubbleMenu: PromptAction[] = [ } ]; -const SlashCommands: PromptAction[] = [ +const SlashCommandsPrompts: PromptAction[] = [ { name: '需求细化', i18Name: true, @@ -70,9 +70,9 @@ const SlashCommands: PromptAction[] = [ ] const RequirementsPrompts: PromptAction[] = [ - ToolbarMenu, - BubbleMenu, - SlashCommands + ToolbarMenuPrompts, + BubbleMenuPrompts, + SlashCommandsPrompts ].flat(); export default RequirementsPrompts;