import { RawContextKey } from "../../../../../platform/contextkey/common/contextkey.js"; import { URI } from "../../../../../base/common/uri.js"; import { IChatViewTitleActionContext } from "../../common/actions/chatActions.js"; import { AICustomizationManagementSection } from "../../common/aiCustomizationWorkspaceService.js"; import { PromptsType } from "../../common/promptSyntax/promptTypes.js"; import { MenuId } from "../../../../../platform/actions/common/actions.js"; import { CustomizationMigrationCategoryId } from "./customizationMigrationCategories.js"; import { ICustomizationMigrationHint } from "../../common/promptSyntax/service/customizationMigrationService.js"; export { AICustomizationManagementCommands, AICustomizationManagementSection } from "../../common/aiCustomizationWorkspaceService.js"; export type { AICustomizationSource } from "../../common/aiCustomizationWorkspaceService.js"; export { BUILTIN_STORAGE } from "../../common/aiCustomizationWorkspaceService.js"; export declare const DELETE_AI_CUSTOMIZATION_ID = "aiCustomizationManagement.delete"; export type AICustomizationManagementOpenEditorTarget = AICustomizationManagementSection | { readonly section?: AICustomizationManagementSection; readonly sessionType?: string; readonly sessionResource?: URI; readonly revealUri?: URI; readonly showDiscover?: boolean; readonly searchQuery?: string; readonly migration?: boolean; readonly migrationCategory?: CustomizationMigrationCategoryId; readonly migrationHint?: ICustomizationMigrationHint; } | IChatViewTitleActionContext; export declare function resolveAICustomizationManagementOpenEditorTarget(target: AICustomizationManagementOpenEditorTarget | undefined, pendingSessionType: string | undefined, chatSessionResource: URI | undefined, getSessionResourceForHarness: (sessionType: string) => URI): { readonly section?: AICustomizationManagementSection; readonly revealUri?: URI; readonly sessionResource?: URI; readonly showDiscover?: boolean; readonly searchQuery?: string; readonly migration?: boolean; readonly migrationCategory?: CustomizationMigrationCategoryId; readonly migrationHint?: ICustomizationMigrationHint; }; export declare function sectionToPromptType(section: AICustomizationManagementSection): PromptsType; /** * Editor pane ID for the AI Customizations Management Editor. */ export declare const AI_CUSTOMIZATION_MANAGEMENT_EDITOR_ID = "workbench.editor.aiCustomizationManagement"; /** * Editor input type ID for serialization. */ export declare const AI_CUSTOMIZATION_MANAGEMENT_EDITOR_INPUT_ID = "workbench.input.aiCustomizationManagement"; /** * Context key indicating the AI Customization Management Editor is focused. */ export declare const CONTEXT_AI_CUSTOMIZATION_MANAGEMENT_EDITOR: RawContextKey; /** * Context key for the currently selected section. */ export declare const CONTEXT_AI_CUSTOMIZATION_MANAGEMENT_SECTION: RawContextKey; /** * Context key for the active harness (session type) in the customizations editor. * Extensions use this in when-clauses to scope create actions to their harness. */ export declare const CONTEXT_AI_CUSTOMIZATION_MANAGEMENT_HARNESS: RawContextKey; /** * Menu ID for the AI Customization Management Editor title bar actions. */ export declare const AICustomizationManagementTitleMenuId: MenuId; /** * Menu ID for the AI Customization Management Editor item context menu. */ export declare const AICustomizationManagementItemMenuId: MenuId; /** * Internal-only menu for synthetic items that do not have source content. * This is intentionally separate from the extension-contributable item menu. */ export declare const AICustomizationManagementSyntheticItemMenuId: MenuId; export declare function getAICustomizationManagementItemMenuId(uri: URI): MenuId; /** * Menu ID for the AI Customization Management Editor create/add button. * Extensions can contribute commands here to add create actions to the section's add button dropdown. * Use the `chatCustomizationSection` context key to target a specific section. */ export declare const AICustomizationManagementCreateMenuId: MenuId; /** * Context key for the item prompt type (e.g. 'prompt', 'agent') used in when-clause filtering. */ export declare const AI_CUSTOMIZATION_ITEM_TYPE_KEY = "aiCustomizationManagementItemType"; /** * Context key for the item storage type (e.g. 'local', 'user', 'extension') used in when-clause filtering. */ export declare const AI_CUSTOMIZATION_ITEM_STORAGE_KEY = "aiCustomizationManagementItemStorage"; /** * Context key for the item URI used in when-clause filtering. */ export declare const AI_CUSTOMIZATION_ITEM_URI_KEY = "aiCustomizationManagementItemUri"; /** * Context key for the parent plugin URI, set when the item is provided by a plugin. */ export declare const AI_CUSTOMIZATION_ITEM_PLUGIN_URI_KEY = "aiCustomizationManagementItemPluginUri"; /** * Context key indicating whether the item's parent plugin is required by the organization and cannot be uninstalled. */ export declare const AI_CUSTOMIZATION_ITEM_PLUGIN_REQUIRED_KEY = "aiCustomizationManagementItemPluginRequired"; /** * Context key indicating whether the item is disabled. */ export declare const AI_CUSTOMIZATION_ITEM_DISABLED_KEY = "aiCustomizationManagementItemDisabled"; /** * Storage key for persisting the selected section. */ export declare const AI_CUSTOMIZATION_MANAGEMENT_SELECTED_SECTION_KEY = "aiCustomizationManagement.selectedSection"; /** * Storage key for persisting the sidebar width. */ export declare const AI_CUSTOMIZATION_MANAGEMENT_SIDEBAR_WIDTH_KEY = "aiCustomizationManagement.sidebarWidth"; /** * Storage key for persisting the search query. */ export declare const AI_CUSTOMIZATION_MANAGEMENT_SEARCH_KEY = "aiCustomizationManagement.searchQuery"; /** * Layout constants for the editor. */ export declare const SIDEBAR_DEFAULT_WIDTH = 200; export declare const SIDEBAR_MIN_WIDTH = 150; export declare const SIDEBAR_MAX_WIDTH = 350; export declare const CONTENT_MIN_WIDTH = 400;