@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AIConfigurationViewContribution = exports.OPEN_AI_CONFIG_VIEW_TOOLS = exports.OPEN_AI_CONFIG_VIEW = exports.AI_CONFIGURATION_TOGGLE_COMMAND_ID = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
// *****************************************************************************
|
|
6
6
|
// Copyright (C) 2024 EclipseSource GmbH.
|
|
@@ -20,10 +20,15 @@ const tslib_1 = require("tslib");
|
|
|
20
20
|
const core_1 = require("@theia/core");
|
|
21
21
|
const browser_1 = require("@theia/ai-core/lib/browser");
|
|
22
22
|
const chat_view_widget_1 = require("@theia/ai-chat-ui/lib/browser/chat-view-widget");
|
|
23
|
+
const browser_2 = require("@theia/core/lib/browser");
|
|
23
24
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
25
|
const ai_configuration_widget_1 = require("./ai-configuration-widget");
|
|
25
26
|
const ai_configuration_service_1 = require("./ai-configuration-service");
|
|
26
|
-
const
|
|
27
|
+
const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
|
|
28
|
+
const ai_configuration_category_registry_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category-registry");
|
|
29
|
+
const ai_configuration_selection_model_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-selection-model");
|
|
30
|
+
/** Preference key prefix under which all AI features register their preferences. */
|
|
31
|
+
const AI_PREFERENCE_PREFIX = 'ai-features.';
|
|
27
32
|
exports.AI_CONFIGURATION_TOGGLE_COMMAND_ID = 'aiConfiguration:toggle';
|
|
28
33
|
exports.OPEN_AI_CONFIG_VIEW = core_1.Command.toLocalizedCommand({
|
|
29
34
|
id: 'aiConfiguration:open',
|
|
@@ -33,7 +38,7 @@ exports.OPEN_AI_CONFIG_VIEW_TOOLS = core_1.Command.toLocalizedCommand({
|
|
|
33
38
|
id: 'aiConfiguration:openTools',
|
|
34
39
|
label: 'Open AI Tools Configuration',
|
|
35
40
|
});
|
|
36
|
-
let
|
|
41
|
+
let AIConfigurationViewContribution = class AIConfigurationViewContribution extends browser_1.AIViewContribution {
|
|
37
42
|
constructor() {
|
|
38
43
|
super({
|
|
39
44
|
widgetId: ai_configuration_widget_1.AIConfigurationContainerWidget.ID,
|
|
@@ -45,29 +50,132 @@ let AIAgentConfigurationViewContribution = class AIAgentConfigurationViewContrib
|
|
|
45
50
|
toggleCommandId: exports.AI_CONFIGURATION_TOGGLE_COMMAND_ID
|
|
46
51
|
});
|
|
47
52
|
}
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Overrides {@link AIViewContribution.init}, which closes the view when AI features are disabled.
|
|
55
|
+
* The AI Configuration view must instead stay open, so that turning AI off does not close the very
|
|
56
|
+
* view holding the toggle that turns it back on. It stays reachable either way via the Manage (gear)
|
|
57
|
+
* menu and `alt+a`, both of which are ungated. See eclipsesource/theia#316.
|
|
58
|
+
*/
|
|
59
|
+
init() {
|
|
60
|
+
// Intentionally left blank: do not register the deactivate-closes-view listener.
|
|
50
61
|
}
|
|
51
62
|
registerCommands(commands) {
|
|
52
|
-
|
|
63
|
+
// Register the view toggle command as {@link AIViewContribution} would, but intentionally omit the
|
|
64
|
+
// "Open View..." quick-pick item it registers. The AI Configuration view is reachable only from the
|
|
65
|
+
// bottom-left Manage (gear) menu and the alt+a keybinding, mirroring the Settings UI.
|
|
66
|
+
if (this.toggleCommand) {
|
|
67
|
+
commands.registerCommand(this.toggleCommand, this.commandHandlerFactory({
|
|
68
|
+
execute: () => this.toggleView()
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
53
71
|
commands.registerCommand(exports.OPEN_AI_CONFIG_VIEW, {
|
|
54
|
-
execute: async (
|
|
55
|
-
//
|
|
56
|
-
//
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
72
|
+
execute: async (target) => {
|
|
73
|
+
// The Manage-menu entry and the alt+a keybinding invoke this with no argument; the chat
|
|
74
|
+
// toolbar passes the active widget. Only an explicit string target (a category or preference
|
|
75
|
+
// id) navigates - anything else just opens the view, so every entry point behaves the same
|
|
76
|
+
// as the Manage-menu entry.
|
|
77
|
+
const explicitTarget = typeof target === 'string' ? target.trim() || undefined : undefined;
|
|
78
|
+
// Whether the view already existed (open in some tab) before this call.
|
|
79
|
+
const alreadyOpen = !!this.tryGetWidget();
|
|
80
|
+
await this.openView({ activate: true });
|
|
81
|
+
if (explicitTarget) {
|
|
82
|
+
// An explicit category/preference target always navigates.
|
|
83
|
+
this.navigateTo(explicitTarget);
|
|
60
84
|
}
|
|
61
|
-
if (
|
|
62
|
-
|
|
85
|
+
else if (!alreadyOpen) {
|
|
86
|
+
// A fresh open with no target lands on General; an already-open view is only
|
|
87
|
+
// (re-)activated and keeps its current selection.
|
|
88
|
+
this.navigateTo(undefined);
|
|
63
89
|
}
|
|
64
90
|
},
|
|
65
91
|
});
|
|
66
92
|
commands.registerCommand(exports.OPEN_AI_CONFIG_VIEW_TOOLS, {
|
|
67
|
-
execute: () => commands.executeCommand(exports.OPEN_AI_CONFIG_VIEW.id,
|
|
93
|
+
execute: () => commands.executeCommand(exports.OPEN_AI_CONFIG_VIEW.id, ai_configuration_category_1.AiConfigurationCategoryId.TOOLS),
|
|
94
|
+
});
|
|
95
|
+
// "Show AI Settings" (contributed by @theia/ai-core, e.g. the chat toolbar gear) opens the AI
|
|
96
|
+
// features settings. Those now live in this view rather than the Settings UI, so route the command
|
|
97
|
+
// straight here. Registered from @theia/ai-ide, this handler takes precedence over the core one
|
|
98
|
+
// (which falls back to `preferences:open` for apps without this view). No `isEnabled` gate, so the
|
|
99
|
+
// view stays reachable while AI is disabled — that is where AI features are re-enabled.
|
|
100
|
+
commands.registerHandler(browser_1.AI_SHOW_SETTINGS_COMMAND.id, {
|
|
101
|
+
// Forwarded so callers can deep-link to a preference row; OPEN_AI_CONFIG_VIEW ignores any
|
|
102
|
+
// argument that is not a string, so the widget the chat toolbar passes just opens the view.
|
|
103
|
+
execute: (target) => commands.executeCommand(exports.OPEN_AI_CONFIG_VIEW.id, target)
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/** Whether a `preferences:open` argument targets the AI features preference section or a preference in it. */
|
|
107
|
+
isAiConfigurationPreference(query) {
|
|
108
|
+
return typeof query === 'string' && (query === 'ai-features' || query.startsWith(AI_PREFERENCE_PREFIX));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Navigates the (already-open) view to `target`. An `ai-features.*` preference id (or the `ai-features`
|
|
112
|
+
* section) opens the owning category focused on that row; any other value is treated as a category/tab
|
|
113
|
+
* id; no target lands on General. This lets every AI-settings entry point go through
|
|
114
|
+
* {@link OPEN_AI_CONFIG_VIEW} instead of `preferences:open`.
|
|
115
|
+
*/
|
|
116
|
+
navigateTo(target) {
|
|
117
|
+
const value = target?.trim();
|
|
118
|
+
// An AI preference id (or the `ai-features` section) → focus the owning category and row.
|
|
119
|
+
if (value && this.isAiConfigurationPreference(value)) {
|
|
120
|
+
this.selectionModel.select(this.resolvePreferenceTarget(value) ?? { categoryId: ai_configuration_category_1.AiConfigurationCategoryId.GENERAL, highlight: { rowId: value } });
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
// A known category id → select it directly (deterministic, no dependency on the legacy bridge).
|
|
124
|
+
if (value && this.categoryRegistry.getCategory(value)) {
|
|
125
|
+
this.selectionModel.select({ categoryId: value });
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
// A legacy per-tab widget id → let the container bridge map it onto a category.
|
|
129
|
+
if (value) {
|
|
130
|
+
this.aiConfigurationSelectionService.selectConfigurationTab(value);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
// No/empty target → General, so the detail never stays on the empty "select a category" placeholder.
|
|
134
|
+
this.selectionModel.select({ categoryId: ai_configuration_category_1.AiConfigurationCategoryId.GENERAL });
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Finds the navigation target for a preference by scanning the categories' deep-search index for the
|
|
138
|
+
* setting row that anchors it (rows use the preference id as their `highlight.rowId`). Returns
|
|
139
|
+
* `undefined` when no category surfaces the preference.
|
|
140
|
+
*/
|
|
141
|
+
resolvePreferenceTarget(preferenceId) {
|
|
142
|
+
for (const category of this.categoryRegistry.getCategories()) {
|
|
143
|
+
const searchProvider = category;
|
|
144
|
+
for (const item of searchProvider.getSearchItems?.() ?? []) {
|
|
145
|
+
if (item.target.highlight?.rowId === preferenceId) {
|
|
146
|
+
return item.target;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Overrides {@link AIViewContribution.registerMenus} so the AI Configuration view is offered only from
|
|
154
|
+
* the bottom-left Manage (gear) menu, mirroring the Settings UI. It is intentionally not added to the
|
|
155
|
+
* View menu's "Views" submenu. The Manage entry (and the alt+a keybinding) keep it reachable even while
|
|
156
|
+
* AI is disabled, which is where AI gets re-enabled. See eclipsesource/theia#316.
|
|
157
|
+
*/
|
|
158
|
+
registerMenus(menus) {
|
|
159
|
+
// Bottom-left Manage menu, directly below "Settings" (order 'a10').
|
|
160
|
+
menus.registerMenuAction(browser_2.CommonMenus.MANAGE_SETTINGS, {
|
|
161
|
+
commandId: exports.OPEN_AI_CONFIG_VIEW.id,
|
|
162
|
+
label: core_1.nls.localize('theia/ai/ide/aiConfiguration/manageMenu', 'AI Configuration'),
|
|
163
|
+
order: 'a11'
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
registerKeybindings(keybindings) {
|
|
167
|
+
super.registerKeybindings(keybindings);
|
|
168
|
+
keybindings.registerKeybinding({
|
|
169
|
+
command: exports.OPEN_AI_CONFIG_VIEW.id,
|
|
170
|
+
keybinding: 'alt+a'
|
|
68
171
|
});
|
|
69
172
|
}
|
|
70
173
|
registerToolbarItems(registry) {
|
|
174
|
+
// The IDE offers "Open AI Configuration" (below) as the single chat-toolbar entry into AI settings,
|
|
175
|
+
// so drop the generic "Open AI Settings" button that @theia/ai-chat-ui contributes for base apps
|
|
176
|
+
// (AI_SHOW_SETTINGS_COMMAND). @theia/ai-ide depends on @theia/ai-chat-ui, so that item is already
|
|
177
|
+
// registered by the time this runs.
|
|
178
|
+
registry.unregisterItem('chat-view.' + browser_1.AI_SHOW_SETTINGS_COMMAND.id);
|
|
71
179
|
registry.registerItem({
|
|
72
180
|
id: 'chat-view.' + exports.OPEN_AI_CONFIG_VIEW.id,
|
|
73
181
|
command: exports.OPEN_AI_CONFIG_VIEW.id,
|
|
@@ -76,15 +184,39 @@ let AIAgentConfigurationViewContribution = class AIAgentConfigurationViewContrib
|
|
|
76
184
|
priority: 2,
|
|
77
185
|
isVisible: widget => this.activationService.isActive && widget instanceof chat_view_widget_1.ChatViewWidget
|
|
78
186
|
});
|
|
187
|
+
// Escape hatch from the AI Configuration view to the regular Settings UI. OPEN_PREFERENCES ignores
|
|
188
|
+
// the widget argument the toolbar passes (it only acts on a string search term), and this view's
|
|
189
|
+
// `ai-features.*` interceptor does not claim it (the argument is not an AI preference id).
|
|
190
|
+
registry.registerItem({
|
|
191
|
+
id: 'ai-configuration.open-settings-ui',
|
|
192
|
+
command: browser_2.CommonCommands.OPEN_PREFERENCES.id,
|
|
193
|
+
icon: (0, browser_2.codicon)('settings'),
|
|
194
|
+
tooltip: core_1.nls.localizeByDefault('Open Settings (UI)'),
|
|
195
|
+
isVisible: widget => widget instanceof ai_configuration_widget_1.AIConfigurationContainerWidget
|
|
196
|
+
});
|
|
197
|
+
// Expand/Collapse All are a single contextual toggle below the search box, owned by the search
|
|
198
|
+
// widget and wired straight to the tree (see `AIConfigurationContainerWidget.initListeners`).
|
|
199
|
+
// Deliberately not commands: they act on this view's own category tree, so "Expand All" would not
|
|
200
|
+
// say in the command palette what it expands. The Outline and Problems views keep theirs out of the
|
|
201
|
+
// palette the same way, by declaring the command without a `label` (`QuickCommandService.normalize`
|
|
202
|
+
// filters those out) on top of gating it on the widget.
|
|
79
203
|
}
|
|
80
204
|
};
|
|
81
|
-
exports.
|
|
205
|
+
exports.AIConfigurationViewContribution = AIConfigurationViewContribution;
|
|
82
206
|
tslib_1.__decorate([
|
|
83
207
|
(0, inversify_1.inject)(ai_configuration_service_1.AIConfigurationSelectionService),
|
|
84
208
|
tslib_1.__metadata("design:type", ai_configuration_service_1.AIConfigurationSelectionService)
|
|
85
|
-
],
|
|
86
|
-
|
|
209
|
+
], AIConfigurationViewContribution.prototype, "aiConfigurationSelectionService", void 0);
|
|
210
|
+
tslib_1.__decorate([
|
|
211
|
+
(0, inversify_1.inject)(ai_configuration_category_registry_1.AiConfigurationCategoryRegistry),
|
|
212
|
+
tslib_1.__metadata("design:type", ai_configuration_category_registry_1.AiConfigurationCategoryRegistry)
|
|
213
|
+
], AIConfigurationViewContribution.prototype, "categoryRegistry", void 0);
|
|
214
|
+
tslib_1.__decorate([
|
|
215
|
+
(0, inversify_1.inject)(ai_configuration_selection_model_1.AiConfigurationSelectionModel),
|
|
216
|
+
tslib_1.__metadata("design:type", ai_configuration_selection_model_1.AiConfigurationSelectionModel)
|
|
217
|
+
], AIConfigurationViewContribution.prototype, "selectionModel", void 0);
|
|
218
|
+
exports.AIConfigurationViewContribution = AIConfigurationViewContribution = tslib_1.__decorate([
|
|
87
219
|
(0, inversify_1.injectable)(),
|
|
88
220
|
tslib_1.__metadata("design:paramtypes", [])
|
|
89
|
-
],
|
|
221
|
+
], AIConfigurationViewContribution);
|
|
90
222
|
//# sourceMappingURL=ai-configuration-view-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-configuration-view-contribution.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-view-contribution.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"ai-configuration-view-contribution.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-view-contribution.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,sCAA+E;AAE/E,wDAA0F;AAC1F,qFAAgF;AAChF,qDAAmG;AACnG,4DAAkE;AAClE,uEAA2E;AAC3E,yEAA6E;AAC7E,wHAEkF;AAClF,0IAAoI;AACpI,sIAAgI;AAEhI,oFAAoF;AACpF,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAE/B,QAAA,kCAAkC,GAAG,wBAAwB,CAAC;AAC9D,QAAA,mBAAmB,GAAG,cAAO,CAAC,kBAAkB,CAAC;IAC1D,EAAE,EAAE,sBAAsB;IAC1B,KAAK,EAAE,4BAA4B;CACtC,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,cAAO,CAAC,kBAAkB,CAAC;IAChE,EAAE,EAAE,2BAA2B;IAC/B,KAAK,EAAE,6BAA6B;CACvC,CAAC,CAAC;AAGI,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,4BAAkD;IAWnG;QACI,KAAK,CAAC;YACF,QAAQ,EAAE,wDAA8B,CAAC,EAAE;YAC3C,UAA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B,CAsL3C"}
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { AIToolsConfigurationWidget } from './tools-configuration-widget';
|
|
6
|
-
import { AISkillsConfigurationWidget } from './skills-configuration-widget';
|
|
1
|
+
import URI from '@theia/core/lib/common/uri';
|
|
2
|
+
import { BaseWidget, Message, NavigatableWidget, SplitPanel } from '@theia/core/lib/browser';
|
|
3
|
+
import { AiConfigurationCategoryRegistry } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category-registry';
|
|
4
|
+
import { AiConfigurationSelectionModel } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-selection-model';
|
|
7
5
|
import { AIConfigurationSelectionService } from './ai-configuration-service';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
export declare class AIConfigurationContainerWidget extends BaseWidget {
|
|
6
|
+
import { AiConfigurationTreeWidget } from './ai-configuration-tree-widget';
|
|
7
|
+
import { AiConfigurationDetailWidget } from './ai-configuration-detail-widget';
|
|
8
|
+
import { AiConfigurationSearchWidget } from './ai-configuration-search-widget';
|
|
9
|
+
export declare class AIConfigurationContainerWidget extends BaseWidget implements NavigatableWidget {
|
|
13
10
|
static readonly ID = "ai-configuration";
|
|
14
11
|
static readonly LABEL: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
/** Constant resource URI so the shell renders Theia breadcrumbs for this view. */
|
|
13
|
+
getResourceUri(): URI | undefined;
|
|
14
|
+
createMoveToUri(): URI | undefined;
|
|
15
|
+
protected readonly searchWidget: AiConfigurationSearchWidget;
|
|
16
|
+
protected readonly treeWidget: AiConfigurationTreeWidget;
|
|
17
|
+
protected readonly detailWidget: AiConfigurationDetailWidget;
|
|
18
|
+
protected readonly registry: AiConfigurationCategoryRegistry;
|
|
19
|
+
protected readonly selectionModel: AiConfigurationSelectionModel;
|
|
18
20
|
protected readonly aiConfigurationSelectionService: AIConfigurationSelectionService;
|
|
19
|
-
protected
|
|
20
|
-
protected variablesWidget: AIVariableConfigurationWidget;
|
|
21
|
-
protected mcpWidget: AIMCPConfigurationWidget;
|
|
22
|
-
protected tokenUsageWidget: AITokenUsageConfigurationWidget;
|
|
23
|
-
protected promptFragmentsWidget: AIPromptFragmentsConfigurationWidget;
|
|
24
|
-
protected toolsWidget: AIToolsConfigurationWidget;
|
|
25
|
-
protected skillsWidget: AISkillsConfigurationWidget;
|
|
26
|
-
protected modelAliasesWidget: ModelAliasesConfigurationWidget;
|
|
21
|
+
protected bodyPanel: SplitPanel;
|
|
27
22
|
protected init(): void;
|
|
28
|
-
protected
|
|
23
|
+
protected initLayout(): void;
|
|
29
24
|
protected initListeners(): void;
|
|
25
|
+
protected onAfterAttach(msg: Message): void;
|
|
26
|
+
protected selectInitialCategory(): void;
|
|
27
|
+
protected onActivateRequest(msg: Message): void;
|
|
30
28
|
}
|
|
31
29
|
//# sourceMappingURL=ai-configuration-widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-widget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-widget.tsx"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAsB,OAAO,EAAE,iBAAiB,EAAS,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIxH,OAAO,EAAE,+BAA+B,EAAE,MAAM,mFAAmF,CAAC;AACpI,OAAO,EAAE,6BAA6B,EAAE,MAAM,iFAAiF,CAAC;AAChI,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAoB/E,qBACa,8BAA+B,SAAQ,UAAW,YAAW,iBAAiB;IAEvF,MAAM,CAAC,QAAQ,CAAC,EAAE,sBAAsB;IACxC,MAAM,CAAC,QAAQ,CAAC,KAAK,SAA2E;IAEhG,kFAAkF;IAClF,cAAc,IAAI,GAAG,GAAG,SAAS;IAIjC,eAAe,IAAI,GAAG,GAAG,SAAS;IAKlC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,2BAA2B,CAAC;IAE7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,yBAAyB,CAAC;IAEzD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,2BAA2B,CAAC;IAE7D,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,CAAC;IAE7D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,6BAA6B,CAAC;IAEjE,SAAS,CAAC,QAAQ,CAAC,+BAA+B,EAAE,+BAA+B,CAAC;IAEpF,SAAS,CAAC,SAAS,EAAE,UAAU,CAAC;IAGhC,SAAS,CAAC,IAAI,IAAI,IAAI;IAWtB,SAAS,CAAC,UAAU,IAAI,IAAI;IAoB5B,SAAS,CAAC,aAAa,IAAI,IAAI;cAoBZ,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAMpD,SAAS,CAAC,qBAAqB,IAAI,IAAI;cASpB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;CAK3D"}
|
|
@@ -18,98 +18,130 @@ var AIConfigurationContainerWidget_1;
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.AIConfigurationContainerWidget = void 0;
|
|
20
20
|
const tslib_1 = require("tslib");
|
|
21
|
+
const core_1 = require("@theia/core");
|
|
21
22
|
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
const theia_dock_panel_1 = require("@theia/core/lib/browser/shell/theia-dock-panel");
|
|
23
23
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
24
|
+
const ai_configuration_resource_1 = require("./ai-configuration-resource");
|
|
25
|
+
const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
|
|
26
|
+
const ai_configuration_category_registry_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category-registry");
|
|
27
|
+
const ai_configuration_selection_model_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-selection-model");
|
|
28
28
|
const ai_configuration_service_1 = require("./ai-configuration-service");
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
const ai_configuration_tree_widget_1 = require("./ai-configuration-tree-widget");
|
|
30
|
+
const ai_configuration_detail_widget_1 = require("./ai-configuration-detail-widget");
|
|
31
|
+
const ai_configuration_search_widget_1 = require("./ai-configuration-search-widget");
|
|
32
|
+
/**
|
|
33
|
+
* Maps the legacy per-tab widget ids (still accepted by the `OPEN_AI_CONFIG_VIEW`
|
|
34
|
+
* command and the chat toolbar button) onto the new category ids, so those entry
|
|
35
|
+
* points keep working with the master–detail shell.
|
|
36
|
+
*/
|
|
37
|
+
const LEGACY_WIDGET_TO_CATEGORY_ID = {
|
|
38
|
+
'ai-agent-configuration-container-widget': ai_configuration_category_1.AiConfigurationCategoryId.AGENTS,
|
|
39
|
+
'ai-variable-configuration-container-widget': ai_configuration_category_1.AiConfigurationCategoryId.VARIABLES,
|
|
40
|
+
'ai-mcp-configuration-container-widget': ai_configuration_category_1.AiConfigurationCategoryId.MCP_SERVERS,
|
|
41
|
+
'ai-token-usage-configuration-container-widget': ai_configuration_category_1.AiConfigurationCategoryId.TOKEN_USAGE,
|
|
42
|
+
// The former prompt fragments tab listed every fragment; its variant sets are now part of the agent
|
|
43
|
+
// detail, so Prompt Snippets is the closest equivalent for a link that predates the rework.
|
|
44
|
+
'ai-prompt-fragments-configuration': ai_configuration_category_1.AiConfigurationCategoryId.PROMPT_SNIPPETS,
|
|
45
|
+
'ai-tools-configuration-widget': ai_configuration_category_1.AiConfigurationCategoryId.TOOLS,
|
|
46
|
+
'ai-skills-configuration-widget': ai_configuration_category_1.AiConfigurationCategoryId.PROMPTS_AND_SKILLS,
|
|
47
|
+
'ai-model-aliases-configuration-widget': ai_configuration_category_1.AiConfigurationCategoryId.MODEL_ALIASES
|
|
48
|
+
};
|
|
34
49
|
let AIConfigurationContainerWidget = class AIConfigurationContainerWidget extends browser_1.BaseWidget {
|
|
35
50
|
static { AIConfigurationContainerWidget_1 = this; }
|
|
36
51
|
static { this.ID = 'ai-configuration'; }
|
|
37
52
|
static { this.LABEL = core_1.nls.localize('theia/ai/core/aiConfiguration/label', 'AI Configuration'); }
|
|
53
|
+
/** Constant resource URI so the shell renders Theia breadcrumbs for this view. */
|
|
54
|
+
getResourceUri() {
|
|
55
|
+
return ai_configuration_resource_1.AI_CONFIGURATION_RESOURCE_URI;
|
|
56
|
+
}
|
|
57
|
+
createMoveToUri() {
|
|
58
|
+
return undefined;
|
|
59
|
+
}
|
|
38
60
|
init() {
|
|
39
61
|
this.id = AIConfigurationContainerWidget_1.ID;
|
|
40
62
|
this.title.label = AIConfigurationContainerWidget_1.LABEL;
|
|
41
63
|
this.title.caption = AIConfigurationContainerWidget_1.LABEL;
|
|
42
64
|
this.title.closable = true;
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
65
|
+
this.title.iconClass = (0, browser_1.codicon)('settings-gear');
|
|
66
|
+
this.addClass('ai-configuration-shell');
|
|
67
|
+
this.initLayout();
|
|
46
68
|
this.initListeners();
|
|
47
69
|
}
|
|
48
|
-
|
|
49
|
-
const layout =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
browser_1.
|
|
55
|
-
|
|
56
|
-
this.
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
this.modelAliasesWidget = await this.widgetManager.getOrCreateWidget(model_aliases_configuration_widget_1.ModelAliasesConfigurationWidget.ID);
|
|
65
|
-
this.dockpanel.addWidget(this.agentsWidget);
|
|
66
|
-
this.dockpanel.addWidget(this.variablesWidget, { mode: 'tab-after', ref: this.agentsWidget });
|
|
67
|
-
this.dockpanel.addWidget(this.mcpWidget, { mode: 'tab-after', ref: this.variablesWidget });
|
|
68
|
-
this.dockpanel.addWidget(this.tokenUsageWidget, { mode: 'tab-after', ref: this.mcpWidget });
|
|
69
|
-
this.dockpanel.addWidget(this.promptFragmentsWidget, { mode: 'tab-after', ref: this.tokenUsageWidget });
|
|
70
|
-
this.dockpanel.addWidget(this.toolsWidget, { mode: 'tab-after', ref: this.promptFragmentsWidget });
|
|
71
|
-
this.dockpanel.addWidget(this.skillsWidget, { mode: 'tab-after', ref: this.toolsWidget });
|
|
72
|
-
this.dockpanel.addWidget(this.modelAliasesWidget, { mode: 'tab-after', ref: this.skillsWidget });
|
|
73
|
-
this.update();
|
|
70
|
+
initLayout() {
|
|
71
|
+
const layout = this.layout = new browser_1.BoxLayout({ direction: 'top-to-bottom', spacing: 0 });
|
|
72
|
+
// Tree column: search box above the category tree. A plain Panel (flow layout)
|
|
73
|
+
// lets CSS flexbox stack the fixed-height search box over the scrollable tree.
|
|
74
|
+
// A BoxLayout would size the search box from its `fit-content` height, which
|
|
75
|
+
// Lumino measures as zero, collapsing the search box on top of the tree.
|
|
76
|
+
const treeColumn = new browser_1.Panel();
|
|
77
|
+
treeColumn.addClass('ai-configuration-tree-column');
|
|
78
|
+
treeColumn.addWidget(this.searchWidget);
|
|
79
|
+
treeColumn.addWidget(this.treeWidget);
|
|
80
|
+
this.bodyPanel = new browser_1.SplitPanel({ orientation: 'horizontal', spacing: 1 });
|
|
81
|
+
this.bodyPanel.addClass('ai-configuration-body');
|
|
82
|
+
this.bodyPanel.addWidget(treeColumn);
|
|
83
|
+
this.bodyPanel.addWidget(this.detailWidget);
|
|
84
|
+
browser_1.BoxLayout.setStretch(this.bodyPanel, 1);
|
|
85
|
+
layout.addWidget(this.bodyPanel);
|
|
74
86
|
}
|
|
75
87
|
initListeners() {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
// Bridge the legacy selection service (driven by OPEN_AI_CONFIG_VIEW) onto the new selection model.
|
|
89
|
+
this.toDispose.push(this.aiConfigurationSelectionService.onDidSelectConfiguration(widgetId => {
|
|
90
|
+
const categoryId = LEGACY_WIDGET_TO_CATEGORY_ID[widgetId] ?? widgetId;
|
|
91
|
+
this.selectionModel.select({ categoryId });
|
|
92
|
+
}));
|
|
93
|
+
// The search box drives the live tree filter.
|
|
94
|
+
this.toDispose.push(this.searchWidget.onDidChangeFilter(text => this.treeWidget.setFilter(text)));
|
|
95
|
+
// The expand/collapse-all buttons below the search box drive the tree.
|
|
96
|
+
this.toDispose.push(this.searchWidget.onDidRequestExpandAll(() => this.treeWidget.expandAll()));
|
|
97
|
+
this.toDispose.push(this.searchWidget.onDidRequestCollapseAll(() => this.treeWidget.collapseAll()));
|
|
98
|
+
// Keep the single expand/collapse-all toggle in sync with the tree's actual expansion state.
|
|
99
|
+
const syncToolbarToggle = () => {
|
|
100
|
+
const state = this.treeWidget.getExpansionSummary();
|
|
101
|
+
this.searchWidget.setTreeExpansion(state !== 'none', state === 'all-expanded');
|
|
102
|
+
};
|
|
103
|
+
this.toDispose.push(this.treeWidget.onDidChangeExpansion(syncToolbarToggle));
|
|
104
|
+
syncToolbarToggle();
|
|
105
|
+
}
|
|
106
|
+
onAfterAttach(msg) {
|
|
107
|
+
super.onAfterAttach(msg);
|
|
108
|
+
this.bodyPanel.setRelativeSizes([1, 3]);
|
|
109
|
+
this.selectInitialCategory();
|
|
110
|
+
}
|
|
111
|
+
selectInitialCategory() {
|
|
112
|
+
if (!this.selectionModel.getSelection()) {
|
|
113
|
+
const first = this.registry.getCategories()[0];
|
|
114
|
+
if (first) {
|
|
115
|
+
this.selectionModel.select({ categoryId: first.id });
|
|
100
116
|
}
|
|
101
|
-
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
onActivateRequest(msg) {
|
|
120
|
+
super.onActivateRequest(msg);
|
|
121
|
+
this.treeWidget.activate();
|
|
102
122
|
}
|
|
103
123
|
};
|
|
104
124
|
exports.AIConfigurationContainerWidget = AIConfigurationContainerWidget;
|
|
105
125
|
tslib_1.__decorate([
|
|
106
|
-
(0, inversify_1.inject)(
|
|
107
|
-
tslib_1.__metadata("design:type",
|
|
108
|
-
], AIConfigurationContainerWidget.prototype, "
|
|
126
|
+
(0, inversify_1.inject)(ai_configuration_search_widget_1.AiConfigurationSearchWidget),
|
|
127
|
+
tslib_1.__metadata("design:type", ai_configuration_search_widget_1.AiConfigurationSearchWidget)
|
|
128
|
+
], AIConfigurationContainerWidget.prototype, "searchWidget", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, inversify_1.inject)(ai_configuration_tree_widget_1.AiConfigurationTreeWidget),
|
|
131
|
+
tslib_1.__metadata("design:type", ai_configuration_tree_widget_1.AiConfigurationTreeWidget)
|
|
132
|
+
], AIConfigurationContainerWidget.prototype, "treeWidget", void 0);
|
|
133
|
+
tslib_1.__decorate([
|
|
134
|
+
(0, inversify_1.inject)(ai_configuration_detail_widget_1.AiConfigurationDetailWidget),
|
|
135
|
+
tslib_1.__metadata("design:type", ai_configuration_detail_widget_1.AiConfigurationDetailWidget)
|
|
136
|
+
], AIConfigurationContainerWidget.prototype, "detailWidget", void 0);
|
|
137
|
+
tslib_1.__decorate([
|
|
138
|
+
(0, inversify_1.inject)(ai_configuration_category_registry_1.AiConfigurationCategoryRegistry),
|
|
139
|
+
tslib_1.__metadata("design:type", ai_configuration_category_registry_1.AiConfigurationCategoryRegistry)
|
|
140
|
+
], AIConfigurationContainerWidget.prototype, "registry", void 0);
|
|
109
141
|
tslib_1.__decorate([
|
|
110
|
-
(0, inversify_1.inject)(
|
|
111
|
-
tslib_1.__metadata("design:type",
|
|
112
|
-
], AIConfigurationContainerWidget.prototype, "
|
|
142
|
+
(0, inversify_1.inject)(ai_configuration_selection_model_1.AiConfigurationSelectionModel),
|
|
143
|
+
tslib_1.__metadata("design:type", ai_configuration_selection_model_1.AiConfigurationSelectionModel)
|
|
144
|
+
], AIConfigurationContainerWidget.prototype, "selectionModel", void 0);
|
|
113
145
|
tslib_1.__decorate([
|
|
114
146
|
(0, inversify_1.inject)(ai_configuration_service_1.AIConfigurationSelectionService),
|
|
115
147
|
tslib_1.__metadata("design:type", ai_configuration_service_1.AIConfigurationSelectionService)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,
|
|
1
|
+
{"version":3,"file":"ai-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-widget.tsx"],"names":[],"mappings":";AAAA,gFA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GenericCapabilitySelections, ServerToolDescriptor } from '@theia/ai-core/lib/common';
|
|
2
|
+
import * as React from '@theia/core/shared/react';
|
|
3
|
+
import { AiSettingsRowService } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service';
|
|
4
|
+
export interface AgentCapabilitiesSettingsProps {
|
|
5
|
+
capabilities: ParsedCapability[];
|
|
6
|
+
agentId: string;
|
|
7
|
+
savedOverrides: Record<string, boolean> | undefined;
|
|
8
|
+
aiSettingsService: AISettingsService;
|
|
9
|
+
settingsRowService: AiSettingsRowService;
|
|
10
|
+
/**
|
|
11
|
+
* Reveals the capability's prompt fragment on the Prompt Snippets page. The text is global, shared by
|
|
12
|
+
* every agent that references it, which is why the row links there instead of editing it in place.
|
|
13
|
+
*/
|
|
14
|
+
onOpenPromptSnippet: (fragmentId: string) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The "Available Capabilities" section of the agent detail page: one toggle per capability the prompt
|
|
18
|
+
* declares. Each toggle writes an override only when it differs from the agent's default; a per-row
|
|
19
|
+
* reset (gear menu) and a "Reset All to Defaults" button clear overrides back to the declared defaults.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AgentCapabilitiesSettings: ({ capabilities, agentId, savedOverrides, aiSettingsService, settingsRowService, onOpenPromptSnippet }: AgentCapabilitiesSettingsProps) => React.JSX.Element;
|
|
22
|
+
export interface AgentGenericCapabilitiesSettingsProps {
|
|
23
|
+
agentId: string;
|
|
24
|
+
savedSelections: GenericCapabilitySelections | undefined;
|
|
25
|
+
aiSettingsService: AISettingsService;
|
|
26
|
+
settingsRowService: AiSettingsRowService;
|
|
27
|
+
/** Reveals the snippet that wraps this capability type's selections, as in {@link AgentCapabilitiesSettings}. */
|
|
28
|
+
onOpenPromptSnippet: (fragmentId: string) => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The "Generic Capabilities" section of the agent detail page: one row per capability type the user has
|
|
32
|
+
* selected (skills, MCP functions, functions, prompt fragments, agent delegation, variables). Only
|
|
33
|
+
* selected types are shown; each row is an override with a per-type reset and a shared "Reset All".
|
|
34
|
+
*/
|
|
35
|
+
export declare const AgentGenericCapabilitiesSettings: ({ agentId, savedSelections, aiSettingsService, settingsRowService, onOpenPromptSnippet }: AgentGenericCapabilitiesSettingsProps) => React.JSX.Element;
|
|
36
|
+
export interface AgentServerToolsSettingsProps {
|
|
37
|
+
agentId: string;
|
|
38
|
+
/** Server tools the agent's model offers. */
|
|
39
|
+
tools: ServerToolDescriptor[];
|
|
40
|
+
/** Vendor the selections are keyed by: the vendor of the model offering the tools. */
|
|
41
|
+
vendor: string;
|
|
42
|
+
savedSelections: Record<string, string[]> | undefined;
|
|
43
|
+
aiSettingsService: AISettingsService;
|
|
44
|
+
/** Backs each enabled row's gear menu, whose "Reset Setting" switches that tool back off. */
|
|
45
|
+
settingsRowService: AiSettingsRowService;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The "Server Tools" section of the agent detail page: one toggle per tool the agent's model offers, executed
|
|
49
|
+
* by the provider rather than by Theia. The same per-agent setting the chat input's capabilities popup writes,
|
|
50
|
+
* keyed by model vendor because the tools are vendor-specific.
|
|
51
|
+
*
|
|
52
|
+
* Nothing is enabled unless it is listed, so an enabled tool is the deviation from the default and carries the
|
|
53
|
+
* modified indicator; "Reset All to Defaults" drops this vendor's selections, leaving other vendors' alone.
|
|
54
|
+
*/
|
|
55
|
+
export declare const AgentServerToolsSettings: ({ agentId, tools, vendor, savedSelections, aiSettingsService, settingsRowService }: AgentServerToolsSettingsProps) => React.JSX.Element;
|
|
56
|
+
//# sourceMappingURL=agent-capabilities-settings.d.ts.map
|