@theia/ai-ide 1.75.0-next.8 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/ai-allow-all-mode-chat-banner.js +2 -20
- package/lib/browser/ai-allow-all-mode-chat-banner.js.map +1 -1
- package/lib/browser/ai-configuration/agent-icon.d.ts +16 -0
- package/lib/browser/ai-configuration/agent-icon.d.ts.map +1 -0
- package/lib/browser/ai-configuration/agent-icon.js +38 -0
- package/lib/browser/ai-configuration/agent-icon.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.d.ts +36 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js +163 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.d.ts +50 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js +208 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js +139 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.d.ts +13 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +48 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.d.ts +22 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js +72 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js +126 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-resource.d.ts +10 -0
- package/lib/browser/ai-configuration/ai-configuration-resource.d.ts.map +1 -0
- package/lib/browser/ai-configuration/{components/configuration-section.js → ai-configuration-resource.js} +11 -11
- package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.d.ts +29 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js +106 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.d.ts +18 -0
- package/lib/browser/ai-configuration/ai-configuration-search.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.js +45 -0
- package/lib/browser/ai-configuration/ai-configuration-search.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js +79 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-model.d.ts +8 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-model.d.ts.map +1 -0
- package/lib/browser/ai-configuration/{base/ai-configuration-base-widget.js → ai-configuration-tree-model.js} +11 -14
- package/lib/browser/ai-configuration/ai-configuration-tree-model.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.d.ts +57 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js +134 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js +134 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts +96 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js +407 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +38 -4
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +151 -19
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +21 -23
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.js +102 -70
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +56 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +195 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +140 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-chips.d.ts +15 -0
- package/lib/browser/ai-configuration/categories/agent-chips.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-chips.js +19 -0
- package/lib/browser/ai-configuration/categories/agent-chips.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts +37 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.js +99 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts +28 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.js +135 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +78 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js +352 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js +99 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.d.ts +93 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.js +313 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js +213 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.d.ts +53 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js +241 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js +75 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.d.ts +72 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.js +227 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js +145 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.d.ts +114 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js +341 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js +199 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.d.ts +84 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js +341 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js +184 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.d.ts +38 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +130 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js +51 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.d.ts +60 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js +302 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js +111 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.d.ts +72 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js +245 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js +131 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/components/agent-notification-settings.d.ts +6 -2
- package/lib/browser/ai-configuration/components/agent-notification-settings.d.ts.map +1 -1
- package/lib/browser/ai-configuration/components/agent-notification-settings.js +15 -21
- package/lib/browser/ai-configuration/components/agent-notification-settings.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts +25 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +159 -63
- package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/language-model-renderer.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/language-model-renderer.spec.js +93 -0
- package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -0
- package/lib/browser/ai-sessions-widget.js +12 -16
- package/lib/browser/ai-sessions-widget.js.map +1 -1
- package/lib/browser/app-tester-chat-agent.d.ts +2 -0
- package/lib/browser/app-tester-chat-agent.d.ts.map +1 -1
- package/lib/browser/app-tester-chat-agent.js +5 -0
- package/lib/browser/app-tester-chat-agent.js.map +1 -1
- package/lib/browser/architect-agent.d.ts +2 -0
- package/lib/browser/architect-agent.d.ts.map +1 -1
- package/lib/browser/architect-agent.js +5 -0
- package/lib/browser/architect-agent.js.map +1 -1
- package/lib/browser/architect-prompt-template.d.ts.map +1 -1
- package/lib/browser/architect-prompt-template.js +7 -0
- package/lib/browser/architect-prompt-template.js.map +1 -1
- package/lib/browser/chat-session-item.d.ts.map +1 -1
- package/lib/browser/chat-session-item.js +17 -30
- package/lib/browser/chat-session-item.js.map +1 -1
- package/lib/browser/chat-session-list-components.js +7 -30
- package/lib/browser/chat-session-list-components.js.map +1 -1
- package/lib/browser/chat-session-list-service.d.ts +2 -1
- package/lib/browser/chat-session-list-service.d.ts.map +1 -1
- package/lib/browser/chat-session-list-service.js +6 -1
- package/lib/browser/chat-session-list-service.js.map +1 -1
- package/lib/browser/chat-sessions-welcome-message-provider.js +3 -21
- package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
- package/lib/browser/code-reviewer-agent.d.ts +2 -0
- package/lib/browser/code-reviewer-agent.d.ts.map +1 -1
- package/lib/browser/code-reviewer-agent.js +5 -0
- package/lib/browser/code-reviewer-agent.js.map +1 -1
- package/lib/browser/coder-agent.d.ts +2 -0
- package/lib/browser/coder-agent.d.ts.map +1 -1
- package/lib/browser/coder-agent.js +6 -1
- package/lib/browser/coder-agent.js.map +1 -1
- package/lib/browser/context-file-validation-service-impl.spec.js +2 -0
- package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
- package/lib/browser/create-skill-agent.d.ts +2 -0
- package/lib/browser/create-skill-agent.d.ts.map +1 -1
- package/lib/browser/create-skill-agent.js +5 -0
- package/lib/browser/create-skill-agent.js.map +1 -1
- package/lib/browser/explore-agent.d.ts +2 -0
- package/lib/browser/explore-agent.d.ts.map +1 -1
- package/lib/browser/explore-agent.js +5 -0
- package/lib/browser/explore-agent.js.map +1 -1
- package/lib/browser/file-changeset-functions.d.ts +7 -1
- package/lib/browser/file-changeset-functions.d.ts.map +1 -1
- package/lib/browser/file-changeset-functions.js +62 -20
- package/lib/browser/file-changeset-functions.js.map +1 -1
- package/lib/browser/file-changeset-functions.spec.js +130 -1
- package/lib/browser/file-changeset-functions.spec.js.map +1 -1
- package/lib/browser/frontend-module.d.ts.map +1 -1
- package/lib/browser/frontend-module.js +65 -59
- package/lib/browser/frontend-module.js.map +1 -1
- package/lib/browser/github-chat-agent.d.ts +2 -1
- package/lib/browser/github-chat-agent.d.ts.map +1 -1
- package/lib/browser/github-chat-agent.js +5 -0
- package/lib/browser/github-chat-agent.js.map +1 -1
- package/lib/browser/github-repo-variable-contribution.d.ts +2 -1
- package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -1
- package/lib/browser/github-repo-variable-contribution.js +6 -1
- package/lib/browser/github-repo-variable-contribution.js.map +1 -1
- package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +1 -1
- package/lib/browser/ide-chat-welcome-message-provider.js +31 -118
- package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -1
- package/lib/browser/memory-capability-contribution.d.ts +8 -0
- package/lib/browser/memory-capability-contribution.d.ts.map +1 -0
- package/lib/browser/memory-capability-contribution.js +88 -0
- package/lib/browser/memory-capability-contribution.js.map +1 -0
- package/lib/browser/memory-capability-contribution.spec.d.ts +2 -0
- package/lib/browser/memory-capability-contribution.spec.d.ts.map +1 -0
- package/lib/browser/memory-capability-contribution.spec.js +74 -0
- package/lib/browser/memory-capability-contribution.spec.js.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.d.ts +41 -0
- package/lib/browser/memory-directory-variable-contribution.d.ts.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.js +107 -0
- package/lib/browser/memory-directory-variable-contribution.js.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.spec.d.ts +2 -0
- package/lib/browser/memory-directory-variable-contribution.spec.d.ts.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.spec.js +98 -0
- package/lib/browser/memory-directory-variable-contribution.spec.js.map +1 -0
- package/lib/browser/open-editors-hint-contribution.d.ts +7 -0
- package/lib/browser/open-editors-hint-contribution.d.ts.map +1 -0
- package/lib/browser/open-editors-hint-contribution.js +43 -0
- package/lib/browser/open-editors-hint-contribution.js.map +1 -0
- package/lib/browser/project-info-agent.d.ts +2 -0
- package/lib/browser/project-info-agent.d.ts.map +1 -1
- package/lib/browser/project-info-agent.js +5 -0
- package/lib/browser/project-info-agent.js.map +1 -1
- package/lib/browser/review/pr-review-agent.d.ts +2 -0
- package/lib/browser/review/pr-review-agent.d.ts.map +1 -1
- package/lib/browser/review/pr-review-agent.js +5 -0
- package/lib/browser/review/pr-review-agent.js.map +1 -1
- package/lib/browser/summarize-session-command-contribution.d.ts +2 -1
- package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -1
- package/lib/browser/summarize-session-command-contribution.js +6 -1
- package/lib/browser/summarize-session-command-contribution.js.map +1 -1
- package/lib/browser/task-context-file-storage-service.d.ts.map +1 -1
- package/lib/browser/task-context-file-storage-service.js +1 -0
- package/lib/browser/task-context-file-storage-service.js.map +1 -1
- package/lib/browser/todo-tool-renderer.js +11 -19
- package/lib/browser/todo-tool-renderer.js.map +1 -1
- package/lib/browser/user-interaction-tool-renderer.js +39 -83
- package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
- package/lib/browser/user-interaction-tool.d.ts +2 -0
- package/lib/browser/user-interaction-tool.d.ts.map +1 -1
- package/lib/browser/user-interaction-tool.js +7 -1
- package/lib/browser/user-interaction-tool.js.map +1 -1
- package/lib/browser/user-interaction-tool.spec.js +4 -2
- package/lib/browser/user-interaction-tool.spec.js.map +1 -1
- package/lib/browser/workspace-functions.d.ts +45 -7
- package/lib/browser/workspace-functions.d.ts.map +1 -1
- package/lib/browser/workspace-functions.js +108 -70
- package/lib/browser/workspace-functions.js.map +1 -1
- package/lib/browser/workspace-functions.spec.js +139 -9
- package/lib/browser/workspace-functions.spec.js.map +1 -1
- package/lib/browser/workspace-launch-provider.spec.js +3 -0
- package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
- package/lib/browser/workspace-search-provider.d.ts.map +1 -1
- package/lib/browser/workspace-search-provider.js +4 -7
- package/lib/browser/workspace-search-provider.js.map +1 -1
- package/lib/browser/workspace-search-provider.spec.js +1 -2
- package/lib/browser/workspace-search-provider.spec.js.map +1 -1
- package/lib/browser/workspace-task-provider.spec.js +4 -0
- package/lib/browser/workspace-task-provider.spec.js.map +1 -1
- package/lib/common/coder-replace-prompt-template.d.ts +0 -2
- package/lib/common/coder-replace-prompt-template.d.ts.map +1 -1
- package/lib/common/coder-replace-prompt-template.js +10 -11
- package/lib/common/coder-replace-prompt-template.js.map +1 -1
- package/lib/common/command-chat-agents.d.ts +2 -1
- package/lib/common/command-chat-agents.d.ts.map +1 -1
- package/lib/common/command-chat-agents.js +6 -1
- package/lib/common/command-chat-agents.js.map +1 -1
- package/lib/common/open-editors-hint-fragment-id.d.ts +2 -0
- package/lib/common/open-editors-hint-fragment-id.d.ts.map +1 -0
- package/lib/{browser/ai-configuration/components/empty-state.js → common/open-editors-hint-fragment-id.js} +5 -11
- package/lib/common/open-editors-hint-fragment-id.js.map +1 -0
- package/lib/common/orchestrator-chat-agent.d.ts +2 -1
- package/lib/common/orchestrator-chat-agent.d.ts.map +1 -1
- package/lib/common/orchestrator-chat-agent.js +5 -0
- package/lib/common/orchestrator-chat-agent.js.map +1 -1
- package/lib/common/universal-chat-agent.d.ts +2 -0
- package/lib/common/universal-chat-agent.d.ts.map +1 -1
- package/lib/common/universal-chat-agent.js +5 -0
- package/lib/common/universal-chat-agent.js.map +1 -1
- package/lib/common/universal-prompt-template.d.ts.map +1 -1
- package/lib/common/universal-prompt-template.js +3 -0
- package/lib/common/universal-prompt-template.js.map +1 -1
- package/lib/common/workspace-preferences.js +2 -2
- package/lib/common/workspace-preferences.js.map +1 -1
- package/lib/common/workspace-search-provider-util.d.ts +2 -1
- package/lib/common/workspace-search-provider-util.d.ts.map +1 -1
- package/lib/common/workspace-search-provider-util.js +3 -2
- package/lib/common/workspace-search-provider-util.js.map +1 -1
- package/lib/common/workspace-search-provider-util.spec.d.ts +2 -0
- package/lib/common/workspace-search-provider-util.spec.d.ts.map +1 -0
- package/lib/common/workspace-search-provider-util.spec.js +55 -0
- package/lib/common/workspace-search-provider-util.spec.js.map +1 -0
- package/lib/node/github-repo-service-impl.d.ts +2 -0
- package/lib/node/github-repo-service-impl.d.ts.map +1 -1
- package/lib/node/github-repo-service-impl.js +7 -1
- package/lib/node/github-repo-service-impl.js.map +1 -1
- package/package.json +26 -25
- package/src/browser/ai-configuration/agent-icon.ts +37 -0
- package/src/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.ts +164 -0
- package/src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts +165 -0
- package/src/browser/ai-configuration/ai-configuration-detail-widget.tsx +237 -0
- package/src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts +47 -0
- package/src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts +64 -0
- package/src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts +135 -0
- package/src/browser/ai-configuration/{components/configuration-section.tsx → ai-configuration-resource.ts} +9 -19
- package/src/browser/ai-configuration/ai-configuration-search-widget.tsx +135 -0
- package/src/browser/ai-configuration/ai-configuration-search.spec.ts +91 -0
- package/src/browser/ai-configuration/ai-configuration-search.ts +43 -0
- package/src/browser/ai-configuration/{components/empty-state.tsx → ai-configuration-tree-model.ts} +7 -11
- package/src/browser/ai-configuration/ai-configuration-tree-nodes.spec.ts +150 -0
- package/src/browser/ai-configuration/ai-configuration-tree-nodes.ts +167 -0
- package/src/browser/ai-configuration/ai-configuration-tree-widget.tsx +457 -0
- package/src/browser/ai-configuration/ai-configuration-view-contribution.ts +156 -18
- package/src/browser/ai-configuration/ai-configuration-widget.tsx +107 -75
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +161 -0
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +340 -0
- package/src/browser/ai-configuration/categories/agent-chips.tsx +51 -0
- package/src/browser/ai-configuration/categories/agent-detail-model.ts +152 -0
- package/src/browser/ai-configuration/categories/agent-detail-view.tsx +329 -0
- package/src/browser/ai-configuration/categories/agents-configuration-category.spec.ts +119 -0
- package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +431 -0
- package/src/browser/ai-configuration/categories/general-configuration-category.spec.ts +225 -0
- package/src/browser/ai-configuration/categories/general-configuration-category.tsx +465 -0
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.spec.ts +87 -0
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.tsx +286 -0
- package/src/browser/ai-configuration/categories/models-configuration-category.spec.ts +167 -0
- package/src/browser/ai-configuration/categories/models-configuration-category.tsx +264 -0
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts +250 -0
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx +438 -0
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts +226 -0
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx +419 -0
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.spec.ts +57 -0
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +185 -0
- package/src/browser/ai-configuration/categories/tools-configuration-category.spec.ts +130 -0
- package/src/browser/ai-configuration/categories/tools-configuration-category.tsx +421 -0
- package/src/browser/ai-configuration/categories/variables-configuration-category.spec.ts +154 -0
- package/src/browser/ai-configuration/categories/variables-configuration-category.tsx +322 -0
- package/src/browser/ai-configuration/components/agent-notification-settings.tsx +38 -33
- package/src/browser/ai-configuration/language-model-renderer.spec.ts +100 -0
- package/src/browser/ai-configuration/language-model-renderer.tsx +244 -100
- package/src/browser/app-tester-chat-agent.ts +5 -2
- package/src/browser/architect-agent.ts +5 -2
- package/src/browser/architect-prompt-template.ts +7 -0
- package/src/browser/chat-session-item.tsx +2 -4
- package/src/browser/chat-session-list-service.ts +6 -3
- package/src/browser/code-reviewer-agent.ts +5 -2
- package/src/browser/coder-agent.ts +7 -5
- package/src/browser/context-file-validation-service-impl.spec.ts +3 -2
- package/src/browser/create-skill-agent.ts +5 -2
- package/src/browser/explore-agent.ts +5 -2
- package/src/browser/file-changeset-functions.spec.ts +158 -5
- package/src/browser/file-changeset-functions.ts +61 -23
- package/src/browser/frontend-module.ts +76 -63
- package/src/browser/github-chat-agent.ts +5 -2
- package/src/browser/github-repo-variable-contribution.ts +6 -3
- package/src/browser/ide-chat-welcome-message-provider.tsx +11 -11
- package/src/browser/memory-capability-contribution.spec.ts +85 -0
- package/src/browser/memory-capability-contribution.ts +86 -0
- package/src/browser/memory-directory-variable-contribution.spec.ts +113 -0
- package/src/browser/memory-directory-variable-contribution.ts +113 -0
- package/src/browser/open-editors-hint-contribution.ts +38 -0
- package/src/browser/project-info-agent.ts +5 -2
- package/src/browser/review/pr-review-agent.ts +5 -2
- package/src/browser/style/ai-configuration-base.css +0 -6
- package/src/browser/style/ai-configuration-shell.css +416 -0
- package/src/browser/style/ai-configuration-table.css +2 -15
- package/src/browser/style/index.css +220 -276
- package/src/browser/summarize-session-command-contribution.ts +6 -3
- package/src/browser/task-context-file-storage-service.ts +5 -2
- package/src/browser/user-interaction-tool.spec.ts +5 -2
- package/src/browser/user-interaction-tool.ts +6 -2
- package/src/browser/workspace-functions.spec.ts +163 -10
- package/src/browser/workspace-functions.ts +121 -72
- package/src/browser/workspace-launch-provider.spec.ts +4 -1
- package/src/browser/workspace-search-provider.spec.ts +1 -2
- package/src/browser/workspace-search-provider.ts +4 -7
- package/src/browser/workspace-task-provider.spec.ts +5 -1
- package/src/common/coder-replace-prompt-template.ts +9 -9
- package/src/common/command-chat-agents.ts +6 -2
- package/src/{browser/ai-configuration/base/ai-configuration-base-widget.tsx → common/open-editors-hint-fragment-id.ts} +2 -22
- package/src/common/orchestrator-chat-agent.ts +5 -2
- package/src/common/universal-chat-agent.ts +5 -2
- package/src/common/universal-prompt-template.ts +3 -0
- package/src/common/workspace-preferences.ts +2 -2
- package/src/common/workspace-search-provider-util.spec.ts +61 -0
- package/src/common/workspace-search-provider-util.ts +3 -2
- package/src/node/github-repo-service-impl.ts +6 -2
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +0 -72
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.js +0 -620
- package/lib/browser/ai-configuration/agent-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.d.ts +0 -2
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.d.ts.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.js +0 -56
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.d.ts +0 -31
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.js +0 -55
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-configuration-base-widget.d.ts +0 -13
- package/lib/browser/ai-configuration/base/ai-configuration-base-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-configuration-base-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.d.ts +0 -23
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.js +0 -60
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.d.ts +0 -55
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.js +0 -96
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.d.ts +0 -44
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.js +0 -66
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/components/configuration-section.d.ts +0 -12
- package/lib/browser/ai-configuration/components/configuration-section.d.ts.map +0 -1
- package/lib/browser/ai-configuration/components/configuration-section.js.map +0 -1
- package/lib/browser/ai-configuration/components/empty-state.d.ts +0 -10
- package/lib/browser/ai-configuration/components/empty-state.d.ts.map +0 -1
- package/lib/browser/ai-configuration/components/empty-state.js.map +0 -1
- package/lib/browser/ai-configuration/components/expandable-section.d.ts +0 -13
- package/lib/browser/ai-configuration/components/expandable-section.d.ts.map +0 -1
- package/lib/browser/ai-configuration/components/expandable-section.js +0 -31
- package/lib/browser/ai-configuration/components/expandable-section.js.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +0 -26
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +0 -198
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +0 -140
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +0 -508
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.d.ts +0 -29
- package/lib/browser/ai-configuration/skills-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.js +0 -166
- package/lib/browser/ai-configuration/skills-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.d.ts +0 -2
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.d.ts.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.js +0 -191
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.js.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts +0 -9
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.js +0 -78
- package/lib/browser/ai-configuration/template-settings-renderer.js.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +0 -20
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js +0 -170
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +0 -52
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.js +0 -357
- package/lib/browser/ai-configuration/tools-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +0 -22
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.js +0 -133
- package/lib/browser/ai-configuration/variable-configuration-widget.js.map +0 -1
- package/src/browser/ai-configuration/agent-configuration-widget.spec.ts +0 -71
- package/src/browser/ai-configuration/agent-configuration-widget.tsx +0 -928
- package/src/browser/ai-configuration/base/ai-card-grid-configuration-widget.tsx +0 -72
- package/src/browser/ai-configuration/base/ai-hierarchical-configuration-widget.tsx +0 -51
- package/src/browser/ai-configuration/base/ai-list-detail-configuration-widget.tsx +0 -140
- package/src/browser/ai-configuration/base/ai-table-configuration-widget.tsx +0 -107
- package/src/browser/ai-configuration/components/expandable-section.tsx +0 -51
- package/src/browser/ai-configuration/model-aliases-configuration-widget.tsx +0 -270
- package/src/browser/ai-configuration/prompt-fragments-configuration-widget.tsx +0 -736
- package/src/browser/ai-configuration/skills-configuration-widget.spec.ts +0 -248
- package/src/browser/ai-configuration/skills-configuration-widget.tsx +0 -229
- package/src/browser/ai-configuration/template-settings-renderer.tsx +0 -125
- package/src/browser/ai-configuration/token-usage-configuration-widget.tsx +0 -214
- package/src/browser/ai-configuration/tools-configuration-widget.tsx +0 -544
- package/src/browser/ai-configuration/variable-configuration-widget.tsx +0 -159
- package/src/browser/style/ai-configuration-cards.css +0 -60
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var AiConfigurationTreeWidget_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AiConfigurationTreeWidget = void 0;
|
|
5
|
+
exports.createAiConfigurationTreeContainer = createAiConfigurationTreeContainer;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
8
|
+
const core_1 = require("@theia/core");
|
|
9
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
10
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
11
|
+
const ai_activation_service_1 = require("@theia/ai-core/lib/browser/ai-activation-service");
|
|
12
|
+
const ai_configuration_category_registry_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category-registry");
|
|
13
|
+
const ai_configuration_selection_model_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-selection-model");
|
|
14
|
+
const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
|
|
15
|
+
const ai_configuration_tree_model_1 = require("./ai-configuration-tree-model");
|
|
16
|
+
const ai_configuration_tree_nodes_1 = require("./ai-configuration-tree-nodes");
|
|
17
|
+
const ai_configuration_search_1 = require("./ai-configuration-search");
|
|
18
|
+
let AiConfigurationTreeWidget = class AiConfigurationTreeWidget extends browser_1.TreeWidget {
|
|
19
|
+
static { AiConfigurationTreeWidget_1 = this; }
|
|
20
|
+
static { this.ID = 'ai-configuration-tree'; }
|
|
21
|
+
constructor(props, model, contextMenuRenderer) {
|
|
22
|
+
super(props, model, contextMenuRenderer);
|
|
23
|
+
/** Guards the tree ↔ selection-model round trip against re-entrant updates. */
|
|
24
|
+
this.updatingSelection = false;
|
|
25
|
+
/** Set while a rebuild is in flight, so selection is restored once the tree is refreshed. */
|
|
26
|
+
this.pendingSelectionRestore = false;
|
|
27
|
+
this.expansionState = new Map();
|
|
28
|
+
/** Active live-filter terms (empty => no filtering). */
|
|
29
|
+
this.filterTerms = [];
|
|
30
|
+
this.onDidChangeExpansionEmitter = new core_1.Emitter();
|
|
31
|
+
/** Fires when a category's expansion changes or the tree rebuilds, so the toolbar toggle can update. */
|
|
32
|
+
this.onDidChangeExpansion = this.onDidChangeExpansionEmitter.event;
|
|
33
|
+
}
|
|
34
|
+
init() {
|
|
35
|
+
super.init();
|
|
36
|
+
this.id = AiConfigurationTreeWidget_1.ID;
|
|
37
|
+
this.addClass('ai-configuration-tree');
|
|
38
|
+
this.toDispose.push(this.onDidChangeExpansionEmitter);
|
|
39
|
+
this.toDispose.push(this.registry.onDidChange(() => this.buildTree()));
|
|
40
|
+
this.toDispose.push(this.model.onChanged(() => this.onModelChanged()));
|
|
41
|
+
// The toolbar toggle mirrors the tree: rebuilds (onChanged) and expand/collapse both re-sync it.
|
|
42
|
+
this.toDispose.push(this.model.onChanged(() => this.onDidChangeExpansionEmitter.fire()));
|
|
43
|
+
this.toDispose.push(this.model.onExpansionChanged(() => this.onDidChangeExpansionEmitter.fire()));
|
|
44
|
+
this.toDispose.push(this.model.onSelectionChanged(() => this.handleTreeSelectionChanged()));
|
|
45
|
+
this.toDispose.push(this.selectionModel.onDidChangeSelection(selection => this.reflectSelection(selection)));
|
|
46
|
+
// When AI features are toggled off, hide the other categories and fall back to the General page
|
|
47
|
+
// (the only place to re-enable them); rebuild to bring them back once AI is on again.
|
|
48
|
+
this.toDispose.push(this.activationService.onDidChangeActiveStatus(() => {
|
|
49
|
+
this.buildTree();
|
|
50
|
+
if (!this.activationService.isActive) {
|
|
51
|
+
this.selectionModel.select({ categoryId: ai_configuration_category_1.AiConfigurationCategoryId.GENERAL });
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
this.buildTree();
|
|
55
|
+
}
|
|
56
|
+
buildTree() {
|
|
57
|
+
this.expansionState = this.captureExpansion();
|
|
58
|
+
this.pendingSelectionRestore = true;
|
|
59
|
+
this.model.root = ai_configuration_tree_nodes_1.AiConfigurationTree.buildRoot(this.visibleCategories(), {
|
|
60
|
+
isExpanded: categoryId => this.expansionState.get(categoryId)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The categories shown in the tree. While AI features are disabled only General is shown, so the
|
|
65
|
+
* view focuses on re-enabling them (mirroring how the General page disables its dependent settings).
|
|
66
|
+
*/
|
|
67
|
+
visibleCategories() {
|
|
68
|
+
const categories = this.registry.getCategories();
|
|
69
|
+
if (this.activationService.isActive) {
|
|
70
|
+
return categories;
|
|
71
|
+
}
|
|
72
|
+
return categories.filter(category => category.id === ai_configuration_category_1.AiConfigurationCategoryId.GENERAL);
|
|
73
|
+
}
|
|
74
|
+
captureExpansion() {
|
|
75
|
+
const state = new Map();
|
|
76
|
+
const root = this.model.root;
|
|
77
|
+
if (browser_1.CompositeTreeNode.is(root)) {
|
|
78
|
+
for (const child of root.children) {
|
|
79
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(child) && browser_1.ExpandableTreeNode.is(child)) {
|
|
80
|
+
state.set(child.categoryId, child.expanded);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return state;
|
|
85
|
+
}
|
|
86
|
+
/** Restores the selection after a rebuild once the target node has been indexed. */
|
|
87
|
+
onModelChanged() {
|
|
88
|
+
if (!this.pendingSelectionRestore) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const selection = this.selectionModel.getSelection();
|
|
92
|
+
if (!selection) {
|
|
93
|
+
this.pendingSelectionRestore = false;
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
// Expand the owning category so an item child gets indexed on the next refresh.
|
|
97
|
+
if (selection.itemId) {
|
|
98
|
+
const categoryNode = this.model.getNode(ai_configuration_tree_nodes_1.AiConfigurationTree.categoryNodeId(selection.categoryId));
|
|
99
|
+
if (browser_1.ExpandableTreeNode.is(categoryNode) && !categoryNode.expanded) {
|
|
100
|
+
this.model.expandNode(categoryNode);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const node = this.model.getNode(this.selectionNodeId(selection));
|
|
104
|
+
if (browser_1.SelectableTreeNode.is(node)) {
|
|
105
|
+
this.pendingSelectionRestore = false;
|
|
106
|
+
this.applyTreeSelection(node);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/** Selection model → tree. */
|
|
110
|
+
reflectSelection(selection) {
|
|
111
|
+
if (!selection) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const node = this.model.getNode(this.selectionNodeId(selection));
|
|
115
|
+
if (browser_1.SelectableTreeNode.is(node)) {
|
|
116
|
+
if (!node.selected) {
|
|
117
|
+
this.applyTreeSelection(node);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
// The node is not indexed yet (e.g. during a rebuild); restore on the next refresh.
|
|
122
|
+
this.pendingSelectionRestore = true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/** Tree → selection model. */
|
|
126
|
+
handleTreeSelectionChanged() {
|
|
127
|
+
if (this.updatingSelection) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const node = this.model.selectedNodes[0];
|
|
131
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationItemNode.is(node)) {
|
|
132
|
+
// While filtering, jump to and flash the child's own matching setting (e.g. a provider setting);
|
|
133
|
+
// otherwise just open the child page.
|
|
134
|
+
this.selectionModel.select(this.matchingSettingTarget(node.categoryId, node.itemId) ?? { categoryId: node.categoryId, itemId: node.itemId });
|
|
135
|
+
}
|
|
136
|
+
else if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(node)) {
|
|
137
|
+
// While filtering, if the category was matched by one of its own (page-level) settings, jump to and
|
|
138
|
+
// flash that setting's row rather than just opening the category — useful on the General page, which
|
|
139
|
+
// gathers many settings across sub-sections. Settings that live in a child are reached via that child.
|
|
140
|
+
this.selectionModel.select(this.matchingSettingTarget(node.categoryId) ?? { categoryId: node.categoryId });
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* When a live filter is active and a category's own label does not match, returns the navigation target of
|
|
145
|
+
* the first setting that matches and lives at the requested location (with a `highlight` so the detail pane
|
|
146
|
+
* scrolls to and flashes the row): page-level settings when `itemId` is omitted, the given child's settings
|
|
147
|
+
* otherwise. Returns `undefined` otherwise, so selecting the node opens its overview as usual.
|
|
148
|
+
*/
|
|
149
|
+
matchingSettingTarget(categoryId, itemId) {
|
|
150
|
+
if (this.filterTerms.length === 0) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
const category = this.registry.getCategory(categoryId);
|
|
154
|
+
if (!category || this.labelMatches(category.label)) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
const match = (category.search?.getSearchItems() ?? []).find(item => item.target.highlight
|
|
158
|
+
&& item.target.itemId === itemId
|
|
159
|
+
&& ai_configuration_search_1.AiConfigurationSearch.matchesTerms(ai_configuration_search_1.AiConfigurationSearch.matchKey(item), this.filterTerms));
|
|
160
|
+
return match?.target;
|
|
161
|
+
}
|
|
162
|
+
applyTreeSelection(node) {
|
|
163
|
+
this.updatingSelection = true;
|
|
164
|
+
try {
|
|
165
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationItemNode.is(node) && browser_1.ExpandableTreeNode.is(node.parent) && !node.parent.expanded) {
|
|
166
|
+
this.model.expandNode(node.parent);
|
|
167
|
+
}
|
|
168
|
+
this.model.selectNode(node);
|
|
169
|
+
}
|
|
170
|
+
finally {
|
|
171
|
+
this.updatingSelection = false;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
selectionNodeId(selection) {
|
|
175
|
+
return selection.itemId
|
|
176
|
+
? ai_configuration_tree_nodes_1.AiConfigurationTree.itemNodeId(selection.categoryId, selection.itemId)
|
|
177
|
+
: ai_configuration_tree_nodes_1.AiConfigurationTree.categoryNodeId(selection.categoryId);
|
|
178
|
+
}
|
|
179
|
+
/** Expands every collapsible category (used by the Expand All toolbar action). */
|
|
180
|
+
expandAll() {
|
|
181
|
+
this.forEachCategory(node => {
|
|
182
|
+
if (!node.expanded) {
|
|
183
|
+
this.model.expandNode(node);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/** Collapses every collapsible category (used by the Collapse All toolbar action). */
|
|
188
|
+
collapseAll() {
|
|
189
|
+
this.forEachCategory(node => {
|
|
190
|
+
if (node.expanded) {
|
|
191
|
+
this.model.collapseNode(node);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Summarises the tree's expansion for the toolbar toggle: `'none'` when no category can be expanded,
|
|
197
|
+
* `'all-expanded'` when every expandable category is expanded, otherwise `'partially-collapsed'`.
|
|
198
|
+
*/
|
|
199
|
+
getExpansionSummary() {
|
|
200
|
+
let expandable = 0;
|
|
201
|
+
let expanded = 0;
|
|
202
|
+
this.forEachCategory(node => {
|
|
203
|
+
expandable++;
|
|
204
|
+
if (node.expanded) {
|
|
205
|
+
expanded++;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
if (expandable === 0) {
|
|
209
|
+
return 'none';
|
|
210
|
+
}
|
|
211
|
+
return expanded === expandable ? 'all-expanded' : 'partially-collapsed';
|
|
212
|
+
}
|
|
213
|
+
forEachCategory(callback) {
|
|
214
|
+
const root = this.model.root;
|
|
215
|
+
if (!browser_1.CompositeTreeNode.is(root)) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
for (const child of root.children) {
|
|
219
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(child) && browser_1.ExpandableTreeNode.is(child)) {
|
|
220
|
+
callback(child);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Live tree filter driven by the search box: hides non-matching category/item
|
|
226
|
+
* nodes and the separator, and (un)expands categories so matches stay visible.
|
|
227
|
+
*/
|
|
228
|
+
setFilter(text) {
|
|
229
|
+
const terms = ai_configuration_search_1.AiConfigurationSearch.terms(text);
|
|
230
|
+
const wasFiltering = this.filterTerms.length > 0;
|
|
231
|
+
const nowFiltering = terms.length > 0;
|
|
232
|
+
this.filterTerms = terms;
|
|
233
|
+
if (nowFiltering) {
|
|
234
|
+
if (!wasFiltering) {
|
|
235
|
+
this.preFilterExpansion = this.captureExpansion();
|
|
236
|
+
}
|
|
237
|
+
this.expandMatchingCategories();
|
|
238
|
+
}
|
|
239
|
+
else if (wasFiltering) {
|
|
240
|
+
this.restoreExpansion();
|
|
241
|
+
}
|
|
242
|
+
this.updateRows();
|
|
243
|
+
}
|
|
244
|
+
expandMatchingCategories() {
|
|
245
|
+
const root = this.model.root;
|
|
246
|
+
if (!browser_1.CompositeTreeNode.is(root)) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
for (const child of root.children) {
|
|
250
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(child) && browser_1.ExpandableTreeNode.is(child) && !child.expanded && this.matchesFilter(child)) {
|
|
251
|
+
this.model.expandNode(child);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
restoreExpansion() {
|
|
256
|
+
const state = this.preFilterExpansion;
|
|
257
|
+
this.preFilterExpansion = undefined;
|
|
258
|
+
const root = this.model.root;
|
|
259
|
+
if (!state || !browser_1.CompositeTreeNode.is(root)) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
for (const child of root.children) {
|
|
263
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(child) && browser_1.ExpandableTreeNode.is(child)) {
|
|
264
|
+
const wasExpanded = state.get(child.categoryId) ?? false;
|
|
265
|
+
if (wasExpanded && !child.expanded) {
|
|
266
|
+
this.model.expandNode(child);
|
|
267
|
+
}
|
|
268
|
+
else if (!wasExpanded && child.expanded) {
|
|
269
|
+
this.model.collapseNode(child);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
shouldDisplayNode(node) {
|
|
275
|
+
if (!super.shouldDisplayNode(node)) {
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
if (this.filterTerms.length === 0) {
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationSeparatorNode.is(node)) {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
return this.matchesFilter(node);
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* A category matches if its own label, any child, or any of its settings match; an item matches if its
|
|
288
|
+
* label or its category's label matches. Matching a category's settings means their names AND ids are
|
|
289
|
+
* searchable (via the deep-search index), so typing a setting id/name reveals its owning category.
|
|
290
|
+
*/
|
|
291
|
+
matchesFilter(node) {
|
|
292
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(node)) {
|
|
293
|
+
return this.labelMatches(node.name)
|
|
294
|
+
|| node.children.some(child => this.labelMatches(child.name))
|
|
295
|
+
|| this.settingsMatch(node.categoryId);
|
|
296
|
+
}
|
|
297
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationItemNode.is(node)) {
|
|
298
|
+
// Reveal the specific child (e.g. an `anthropic` provider) whose own settings match, so searching a
|
|
299
|
+
// setting id like `ai-features.anthropic.serverSideCompaction` surfaces exactly where it lives —
|
|
300
|
+
// not just the parent category. The same setting may live under several children; each is revealed.
|
|
301
|
+
return this.labelMatches(node.name)
|
|
302
|
+
|| (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(node.parent) && this.labelMatches(node.parent.name))
|
|
303
|
+
|| this.settingsMatch(node.categoryId, node.itemId);
|
|
304
|
+
}
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Whether a category's deep-search items (setting names, ids/keywords) match the active terms. With `itemId`
|
|
309
|
+
* only settings that live in that child node are considered; without it, every setting of the category.
|
|
310
|
+
*/
|
|
311
|
+
settingsMatch(categoryId, itemId) {
|
|
312
|
+
const items = this.registry.getCategory(categoryId)?.search?.getSearchItems() ?? [];
|
|
313
|
+
return items.some(item => (itemId === undefined || item.target.itemId === itemId)
|
|
314
|
+
&& ai_configuration_search_1.AiConfigurationSearch.matchesTerms(ai_configuration_search_1.AiConfigurationSearch.matchKey(item), this.filterTerms));
|
|
315
|
+
}
|
|
316
|
+
labelMatches(label) {
|
|
317
|
+
if (!label) {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
return ai_configuration_search_1.AiConfigurationSearch.matchesTerms(label.toLowerCase(), this.filterTerms);
|
|
321
|
+
}
|
|
322
|
+
renderIcon(node, props) {
|
|
323
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(node) || ai_configuration_tree_nodes_1.AiConfigurationItemNode.is(node)) {
|
|
324
|
+
return (0, jsx_runtime_1.jsx)("div", { className: `ai-configuration-tree-node-icon ${node.iconClass}` });
|
|
325
|
+
}
|
|
326
|
+
return super.renderIcon(node, props);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Trailing decorations: an item's state as a colored dot (e.g. whether an MCP server is running), and a
|
|
330
|
+
* category's "create item" action, so adding an agent or a server does not require opening the page
|
|
331
|
+
* first. The action button is revealed on hover/focus of the row, like the Settings UI's gear.
|
|
332
|
+
*/
|
|
333
|
+
renderTailDecorations(node, props) {
|
|
334
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationItemNode.is(node) && node.status) {
|
|
335
|
+
// Boxed in the same trailing slot as a category's action button so the dot and the `+` line up.
|
|
336
|
+
return (0, jsx_runtime_1.jsx)("span", { className: 'ai-configuration-tree-node-decoration', title: node.status.tooltip ?? node.status.label, children: (0, jsx_runtime_1.jsx)("span", { className: `ai-configuration-status ai-configuration-status-${node.status.kind}`, "aria-hidden": true }) });
|
|
337
|
+
}
|
|
338
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationCategoryNode.is(node)) {
|
|
339
|
+
const add = this.getAddAction(node.categoryId);
|
|
340
|
+
if (add) {
|
|
341
|
+
return (0, jsx_runtime_1.jsx)("button", { type: 'button', className: 'ai-configuration-tree-node-decoration ai-configuration-tree-node-action', title: add.label, "aria-label": add.label, onClick: event => {
|
|
342
|
+
// Without this the click also selects (or expands) the row behind the button.
|
|
343
|
+
event.stopPropagation();
|
|
344
|
+
add.run();
|
|
345
|
+
}, children: (0, jsx_runtime_1.jsx)("span", { "aria-hidden": 'true', className: add.iconClass ?? (0, browser_1.codicon)('add') }) });
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return super.renderTailDecorations(node, props);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* The category's add action, if it offers one. Navigation goes through the selection model, so running the
|
|
352
|
+
* action from the tree behaves like running it from the category's own page.
|
|
353
|
+
*/
|
|
354
|
+
getAddAction(categoryId) {
|
|
355
|
+
const renderer = this.registry.getCategory(categoryId)?.renderer;
|
|
356
|
+
return renderer?.getAddAction?.({
|
|
357
|
+
scope: 'user',
|
|
358
|
+
navigate: selection => this.selectionModel.select(selection),
|
|
359
|
+
update: () => { }
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
createNodeClassNames(node, props) {
|
|
363
|
+
const classNames = super.createNodeClassNames(node, props);
|
|
364
|
+
if (ai_configuration_tree_nodes_1.AiConfigurationSeparatorNode.is(node)) {
|
|
365
|
+
classNames.push('ai-configuration-tree-separator');
|
|
366
|
+
}
|
|
367
|
+
return classNames;
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
exports.AiConfigurationTreeWidget = AiConfigurationTreeWidget;
|
|
371
|
+
tslib_1.__decorate([
|
|
372
|
+
(0, inversify_1.inject)(ai_configuration_category_registry_1.AiConfigurationCategoryRegistry),
|
|
373
|
+
tslib_1.__metadata("design:type", ai_configuration_category_registry_1.AiConfigurationCategoryRegistry)
|
|
374
|
+
], AiConfigurationTreeWidget.prototype, "registry", void 0);
|
|
375
|
+
tslib_1.__decorate([
|
|
376
|
+
(0, inversify_1.inject)(ai_configuration_selection_model_1.AiConfigurationSelectionModel),
|
|
377
|
+
tslib_1.__metadata("design:type", ai_configuration_selection_model_1.AiConfigurationSelectionModel)
|
|
378
|
+
], AiConfigurationTreeWidget.prototype, "selectionModel", void 0);
|
|
379
|
+
tslib_1.__decorate([
|
|
380
|
+
(0, inversify_1.inject)(ai_activation_service_1.AIActivationService),
|
|
381
|
+
tslib_1.__metadata("design:type", Object)
|
|
382
|
+
], AiConfigurationTreeWidget.prototype, "activationService", void 0);
|
|
383
|
+
tslib_1.__decorate([
|
|
384
|
+
(0, inversify_1.postConstruct)(),
|
|
385
|
+
tslib_1.__metadata("design:type", Function),
|
|
386
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
387
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
388
|
+
], AiConfigurationTreeWidget.prototype, "init", null);
|
|
389
|
+
exports.AiConfigurationTreeWidget = AiConfigurationTreeWidget = AiConfigurationTreeWidget_1 = tslib_1.__decorate([
|
|
390
|
+
(0, inversify_1.injectable)(),
|
|
391
|
+
tslib_1.__param(0, (0, inversify_1.inject)(browser_1.TreeProps)),
|
|
392
|
+
tslib_1.__param(1, (0, inversify_1.inject)(browser_1.TreeModel)),
|
|
393
|
+
tslib_1.__param(2, (0, inversify_1.inject)(browser_1.ContextMenuRenderer)),
|
|
394
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object, browser_1.ContextMenuRenderer])
|
|
395
|
+
], AiConfigurationTreeWidget);
|
|
396
|
+
function createAiConfigurationTreeContainer(parent) {
|
|
397
|
+
return (0, browser_1.createTreeContainer)(parent, {
|
|
398
|
+
model: ai_configuration_tree_model_1.AiConfigurationTreeModel,
|
|
399
|
+
widget: AiConfigurationTreeWidget,
|
|
400
|
+
props: {
|
|
401
|
+
virtualized: false,
|
|
402
|
+
search: false,
|
|
403
|
+
leftPadding: 8
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
//# sourceMappingURL=ai-configuration-tree-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-configuration-tree-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-tree-widget.tsx"],"names":[],"mappings":";;;;AA8bA,gFAUC;;;AAvbD,sCAA6C;AAC7C,4DAAwG;AACxG,qDAGiC;AACjC,4FAAuF;AACvF,0IAAoI;AACpI,sIAAgI;AAChI,wHAKkF;AAClF,+EAAyE;AACzE,+EAAwJ;AACxJ,uEAAkE;AAG3D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,oBAAU;;aAErC,OAAE,GAAG,uBAAuB,AAA1B,CAA2B;IA0B7C,YACuB,KAAgB,EAChB,KAAgB,EACN,mBAAwC;QAErE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC;QApB7C,+EAA+E;QACrE,sBAAiB,GAAG,KAAK,CAAC;QACpC,6FAA6F;QACnF,4BAAuB,GAAG,KAAK,CAAC;QAChC,mBAAc,GAAG,IAAI,GAAG,EAAmB,CAAC;QAEtD,wDAAwD;QAC9C,gBAAW,GAAa,EAAE,CAAC;QAIlB,gCAA2B,GAAG,IAAI,cAAO,EAAQ,CAAC;QACrE,wGAAwG;QAC/F,yBAAoB,GAAgB,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAQpF,CAAC;IAGkB,IAAI;QACnB,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,IAAI,CAAC,EAAE,GAAG,2BAAyB,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;QAC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yBAAyB;IADrC,IAAA,sBAAU,GAAE;IA8BJ,mBAAA,IAAA,kBAAM,EAAC,mBAAS,CAAC,CAAA;IACjB,mBAAA,IAAA,kBAAM,EAAC,mBAAS,CAAC,CAAA;IACjB,mBAAA,IAAA,kBAAM,EAAC,6BAAmB,CAAC,CAAA;6DAAsB,6BAAmB;GA/BhE,yBAAyB,CAuZrC;AAED,SAAgB,kCAAkC,CAAC,MAA4B;IAC3E,OAAO,IAAA,6BAAmB,EAAC,MAAM,EAAE;QAC/B,KAAK,EAAE,sDAAwB;QAC/B,MAAM,EAAE,yBAAyB;QACjC,KAAK,EAAE;YACH,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,CAAC;SACjB;KACJ,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,17 +1,51 @@
|
|
|
1
|
-
import { Command, CommandRegistry } from '@theia/core';
|
|
1
|
+
import { Command, CommandRegistry, MenuModelRegistry } from '@theia/core';
|
|
2
2
|
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
3
3
|
import { AIViewContribution } from '@theia/ai-core/lib/browser';
|
|
4
|
-
import {
|
|
4
|
+
import { KeybindingRegistry } from '@theia/core/lib/browser';
|
|
5
5
|
import { AIConfigurationContainerWidget } from './ai-configuration-widget';
|
|
6
6
|
import { AIConfigurationSelectionService } from './ai-configuration-service';
|
|
7
|
+
import { AiConfigurationSelection } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category';
|
|
8
|
+
import { AiConfigurationCategoryRegistry } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category-registry';
|
|
9
|
+
import { AiConfigurationSelectionModel } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-selection-model';
|
|
7
10
|
export declare const AI_CONFIGURATION_TOGGLE_COMMAND_ID = "aiConfiguration:toggle";
|
|
8
11
|
export declare const OPEN_AI_CONFIG_VIEW: Command;
|
|
9
12
|
export declare const OPEN_AI_CONFIG_VIEW_TOOLS: Command;
|
|
10
|
-
export declare class
|
|
13
|
+
export declare class AIConfigurationViewContribution extends AIViewContribution<AIConfigurationContainerWidget> implements TabBarToolbarContribution {
|
|
11
14
|
protected readonly aiConfigurationSelectionService: AIConfigurationSelectionService;
|
|
15
|
+
protected readonly categoryRegistry: AiConfigurationCategoryRegistry;
|
|
16
|
+
protected readonly selectionModel: AiConfigurationSelectionModel;
|
|
12
17
|
constructor();
|
|
13
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Overrides {@link AIViewContribution.init}, which closes the view when AI features are disabled.
|
|
20
|
+
* The AI Configuration view must instead stay open, so that turning AI off does not close the very
|
|
21
|
+
* view holding the toggle that turns it back on. It stays reachable either way via the Manage (gear)
|
|
22
|
+
* menu and `alt+a`, both of which are ungated. See eclipsesource/theia#316.
|
|
23
|
+
*/
|
|
24
|
+
protected init(): void;
|
|
14
25
|
registerCommands(commands: CommandRegistry): void;
|
|
26
|
+
/** Whether a `preferences:open` argument targets the AI features preference section or a preference in it. */
|
|
27
|
+
protected isAiConfigurationPreference(query: unknown): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Navigates the (already-open) view to `target`. An `ai-features.*` preference id (or the `ai-features`
|
|
30
|
+
* section) opens the owning category focused on that row; any other value is treated as a category/tab
|
|
31
|
+
* id; no target lands on General. This lets every AI-settings entry point go through
|
|
32
|
+
* {@link OPEN_AI_CONFIG_VIEW} instead of `preferences:open`.
|
|
33
|
+
*/
|
|
34
|
+
protected navigateTo(target?: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Finds the navigation target for a preference by scanning the categories' deep-search index for the
|
|
37
|
+
* setting row that anchors it (rows use the preference id as their `highlight.rowId`). Returns
|
|
38
|
+
* `undefined` when no category surfaces the preference.
|
|
39
|
+
*/
|
|
40
|
+
protected resolvePreferenceTarget(preferenceId: string): AiConfigurationSelection | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Overrides {@link AIViewContribution.registerMenus} so the AI Configuration view is offered only from
|
|
43
|
+
* the bottom-left Manage (gear) menu, mirroring the Settings UI. It is intentionally not added to the
|
|
44
|
+
* View menu's "Views" submenu. The Manage entry (and the alt+a keybinding) keep it reachable even while
|
|
45
|
+
* AI is disabled, which is where AI gets re-enabled. See eclipsesource/theia#316.
|
|
46
|
+
*/
|
|
47
|
+
registerMenus(menus: MenuModelRegistry): void;
|
|
48
|
+
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
15
49
|
registerToolbarItems(registry: TabBarToolbarRegistry): void;
|
|
16
50
|
}
|
|
17
51
|
//# sourceMappingURL=ai-configuration-view-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-configuration-view-contribution.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-view-contribution.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAO,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-configuration-view-contribution.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-view-contribution.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAO,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACjH,OAAO,EAA4B,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAE1F,OAAO,EAAwC,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAEnG,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EACuD,wBAAwB,EACrF,MAAM,0EAA0E,CAAC;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mFAAmF,CAAC;AACpI,OAAO,EAAE,6BAA6B,EAAE,MAAM,iFAA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