@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
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
17
|
/* Import base configuration styles */
|
|
18
|
+
@import "./ai-configuration-shell.css";
|
|
18
19
|
@import "./ai-configuration-base.css";
|
|
19
20
|
@import "./ai-configuration-list-detail.css";
|
|
20
|
-
@import "./ai-configuration-cards.css";
|
|
21
21
|
@import "./ai-configuration-table.css";
|
|
22
22
|
@import "./ai-configuration-hierarchical.css";
|
|
23
23
|
|
|
@@ -81,62 +81,6 @@
|
|
|
81
81
|
margin-bottom: calc(var(--theia-ui-padding) * 2);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.ai-templates-table {
|
|
85
|
-
width: 100%;
|
|
86
|
-
border-collapse: collapse;
|
|
87
|
-
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
88
|
-
border-radius: 3px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.ai-templates-table thead th {
|
|
92
|
-
text-align: left;
|
|
93
|
-
padding: var(--theia-ui-padding);
|
|
94
|
-
background-color: var(--theia-editorWidget-background);
|
|
95
|
-
color: var(--theia-descriptionForeground);
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
border-bottom: var(--theia-border-width) solid var(--theia-widget-border);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ai-templates-table tbody td {
|
|
101
|
-
padding: var(--theia-ui-padding);
|
|
102
|
-
border-bottom: var(--theia-border-width) solid var(--theia-widget-border);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ai-templates-table tbody tr:last-child td {
|
|
106
|
-
border-bottom: none;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.template-name-cell {
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.template-variant-cell {
|
|
114
|
-
width: 200px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.template-actions-cell,
|
|
118
|
-
.ai-templates-table thead th.template-actions-header {
|
|
119
|
-
width: 100px;
|
|
120
|
-
text-align: right;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.template-action-icon-button {
|
|
124
|
-
background: transparent;
|
|
125
|
-
border: none;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
padding: calc(var(--theia-ui-padding) / 2);
|
|
128
|
-
color: var(--theia-icon-foreground);
|
|
129
|
-
display: inline-flex;
|
|
130
|
-
align-items: center;
|
|
131
|
-
justify-content: center;
|
|
132
|
-
border-radius: 3px;
|
|
133
|
-
transition: background-color 0.2s;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.template-action-icon-button:hover {
|
|
137
|
-
background-color: var(--theia-list-hoverBackground);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
84
|
.template-renderer {
|
|
141
85
|
display: flex;
|
|
142
86
|
flex-direction: column;
|
|
@@ -235,58 +179,6 @@
|
|
|
235
179
|
font-weight: normal;
|
|
236
180
|
}
|
|
237
181
|
|
|
238
|
-
/* Toggle switch */
|
|
239
|
-
.toggle-switch {
|
|
240
|
-
position: relative;
|
|
241
|
-
display: inline-block;
|
|
242
|
-
width: 36px;
|
|
243
|
-
height: 20px;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.toggle-switch input[type="checkbox"] {
|
|
247
|
-
opacity: 0;
|
|
248
|
-
width: 0;
|
|
249
|
-
height: 0;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.toggle-slider {
|
|
253
|
-
position: absolute;
|
|
254
|
-
cursor: pointer;
|
|
255
|
-
top: 0;
|
|
256
|
-
left: 0;
|
|
257
|
-
right: 0;
|
|
258
|
-
bottom: 0;
|
|
259
|
-
background-color: var(--theia-radio-inactiveHoverBackground);
|
|
260
|
-
transition: 0.2s;
|
|
261
|
-
border-radius: 20px;
|
|
262
|
-
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.toggle-slider:before {
|
|
266
|
-
position: absolute;
|
|
267
|
-
content: "";
|
|
268
|
-
height: 14px;
|
|
269
|
-
width: 14px;
|
|
270
|
-
left: calc(var(--theia-ui-padding) / 3);
|
|
271
|
-
bottom: calc(var(--theia-ui-padding) / 3);
|
|
272
|
-
background-color: var(--theia-icon-foreground);
|
|
273
|
-
transition: 0.2s;
|
|
274
|
-
border-radius: 50%;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.toggle-switch input:checked+.toggle-slider {
|
|
278
|
-
background-color: var(--theia-button-background);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.toggle-switch input:checked+.toggle-slider:before {
|
|
282
|
-
transform: translateX(16px);
|
|
283
|
-
background-color: var(--theia-button-foreground);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.toggle-switch:hover .toggle-slider {
|
|
287
|
-
opacity: 0.9;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
182
|
/* Agent status indicator in tree */
|
|
291
183
|
.agent-status-indicator {
|
|
292
184
|
font-size: var(--theia-ui-font-size3);
|
|
@@ -340,10 +232,6 @@
|
|
|
340
232
|
word-break: break-word;
|
|
341
233
|
}
|
|
342
234
|
|
|
343
|
-
.ai-configuration-select {
|
|
344
|
-
max-width: 400px;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
235
|
.ai-configuration-value-row-value.ai-alias-evaluates-to-unresolved {
|
|
348
236
|
color: var(--theia-descriptionForeground);
|
|
349
237
|
}
|
|
@@ -372,6 +260,41 @@
|
|
|
372
260
|
color: var(--theia-foreground);
|
|
373
261
|
}
|
|
374
262
|
|
|
263
|
+
/* Collapsible read-only subsection (e.g. the "Used …" reference lists): a clickable subcategory header
|
|
264
|
+
with a leading chevron and a trailing item count. */
|
|
265
|
+
.ai-collapsible-subsection-header {
|
|
266
|
+
position: relative;
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
gap: var(--theia-ui-padding);
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
user-select: none;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ai-collapsible-subsection-header:focus-visible {
|
|
275
|
+
outline: 1px solid var(--theia-focusBorder);
|
|
276
|
+
outline-offset: 2px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* The chevron hangs in the left margin so the title text lines up with the non-collapsible sibling
|
|
280
|
+
subcategory titles instead of looking indented under the section above. */
|
|
281
|
+
.ai-collapsible-subsection-chevron {
|
|
282
|
+
position: absolute;
|
|
283
|
+
left: -1.25em;
|
|
284
|
+
top: 50%;
|
|
285
|
+
transform: translateY(-50%);
|
|
286
|
+
color: var(--theia-descriptionForeground);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ai-collapsible-subsection-count {
|
|
290
|
+
font-size: var(--theia-ui-font-size0);
|
|
291
|
+
font-weight: normal;
|
|
292
|
+
color: var(--theia-badge-foreground);
|
|
293
|
+
background: var(--theia-badge-background);
|
|
294
|
+
border-radius: 10px;
|
|
295
|
+
padding: 0 calc(var(--theia-ui-padding) / 1.5);
|
|
296
|
+
}
|
|
297
|
+
|
|
375
298
|
/* Detail pane content sections */
|
|
376
299
|
.ai-configuration-detail>div {
|
|
377
300
|
margin-bottom: calc(var(--theia-ui-padding) * 2);
|
|
@@ -404,6 +327,22 @@
|
|
|
404
327
|
border-bottom: var(--theia-border-width) solid var(--theia-widget-border);
|
|
405
328
|
}
|
|
406
329
|
|
|
330
|
+
/* Warning under an agent-detail subsection title (e.g. server tools being auto-approved), matching the
|
|
331
|
+
wording and icon of the chat input's capabilities popup. */
|
|
332
|
+
.ai-agent-section-warning {
|
|
333
|
+
display: flex;
|
|
334
|
+
align-items: center;
|
|
335
|
+
gap: calc(var(--theia-ui-padding) / 1.5);
|
|
336
|
+
margin: 0 0 var(--theia-ui-padding);
|
|
337
|
+
color: var(--theia-descriptionForeground);
|
|
338
|
+
font-size: var(--theia-ui-font-size0);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.ai-agent-section-warning .codicon-warning {
|
|
342
|
+
flex: none;
|
|
343
|
+
color: var(--theia-editorWarning-foreground);
|
|
344
|
+
}
|
|
345
|
+
|
|
407
346
|
/* Agent-specific variables already have per-item borders, remove the list-level ones */
|
|
408
347
|
.variable-references:has(.ai-agent-specific-variable-item) {
|
|
409
348
|
border-top: none;
|
|
@@ -419,37 +358,124 @@
|
|
|
419
358
|
padding: calc(var(--theia-ui-padding) / 2);
|
|
420
359
|
}
|
|
421
360
|
|
|
422
|
-
/*
|
|
423
|
-
.
|
|
424
|
-
|
|
361
|
+
/* Agent chips are interactive buttons: reset the native button chrome and add a visible focus ring. */
|
|
362
|
+
button.agent-chip {
|
|
363
|
+
border: none;
|
|
364
|
+
font-family: inherit;
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
button.agent-chip:focus-visible {
|
|
369
|
+
outline: 1px solid var(--theia-focusBorder);
|
|
370
|
+
outline-offset: 1px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* Visually hidden but available to assistive tech (used for the copy confirmation live region). */
|
|
374
|
+
.ai-variable-visually-hidden {
|
|
375
|
+
position: absolute;
|
|
376
|
+
width: 1px;
|
|
377
|
+
height: 1px;
|
|
425
378
|
padding: 0;
|
|
426
|
-
margin:
|
|
379
|
+
margin: -1px;
|
|
380
|
+
overflow: hidden;
|
|
381
|
+
clip: rect(0, 0, 0, 0);
|
|
382
|
+
white-space: nowrap;
|
|
383
|
+
border: 0;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* A muted label followed by the read-only id in a bordered code chip (never the old error-red style). */
|
|
387
|
+
.ai-variable-id-row {
|
|
388
|
+
display: flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: var(--theia-ui-padding);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.ai-variable-id-label {
|
|
394
|
+
color: var(--theia-descriptionForeground);
|
|
395
|
+
font-size: var(--theia-ui-font-size0);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.ai-variable-id-value {
|
|
399
|
+
font-family: var(--theia-editor-font-family, monospace);
|
|
400
|
+
color: var(--theia-foreground);
|
|
401
|
+
background-color: var(--theia-editor-background);
|
|
402
|
+
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
403
|
+
border-radius: 4px;
|
|
404
|
+
padding: 0 6px;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/* Shared layout for the "Arguments" and "Used by agents" sections of an expanded row. */
|
|
408
|
+
.ai-variable-section {
|
|
427
409
|
display: flex;
|
|
428
410
|
flex-direction: column;
|
|
429
|
-
gap:
|
|
430
|
-
|
|
411
|
+
gap: calc(var(--theia-ui-padding) / 2);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.ai-variable-section-label {
|
|
415
|
+
color: var(--theia-descriptionForeground);
|
|
416
|
+
font-size: var(--theia-ui-font-size0);
|
|
417
|
+
font-weight: 600;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.ai-variable-section-note {
|
|
421
|
+
color: var(--theia-descriptionForeground);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* A bordered, rounded list of arguments with 1px dividers between rows (no table/zebra look). */
|
|
425
|
+
.ai-variable-args-container {
|
|
431
426
|
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
432
|
-
border-radius:
|
|
427
|
+
border-radius: 6px;
|
|
433
428
|
overflow: hidden;
|
|
434
429
|
}
|
|
435
430
|
|
|
436
|
-
.variable-
|
|
431
|
+
.ai-variable-arg-row {
|
|
437
432
|
display: flex;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
cursor: pointer;
|
|
443
|
-
transition: background-color 0.1s;
|
|
433
|
+
flex-wrap: wrap;
|
|
434
|
+
align-items: baseline;
|
|
435
|
+
gap: var(--theia-ui-padding);
|
|
436
|
+
padding: calc(var(--theia-ui-padding) * 0.75) var(--theia-ui-padding);
|
|
444
437
|
}
|
|
445
438
|
|
|
446
|
-
.variable-
|
|
447
|
-
|
|
439
|
+
.ai-variable-arg-row+.ai-variable-arg-row {
|
|
440
|
+
border-top: var(--theia-border-width) solid var(--theia-widget-border);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* Fixed-width name column so descriptions line up across rows. */
|
|
444
|
+
.ai-variable-arg-name {
|
|
445
|
+
flex: none;
|
|
446
|
+
min-width: 130px;
|
|
447
|
+
font-family: var(--theia-editor-font-family, monospace);
|
|
448
|
+
color: var(--theia-textPreformat-foreground);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* Small outlined pill; "optional" vs "required" shown explicitly instead of relying on an absent marker. */
|
|
452
|
+
.ai-variable-arg-badge {
|
|
453
|
+
flex: none;
|
|
454
|
+
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
455
|
+
border-radius: 999px;
|
|
456
|
+
padding: 0 6px;
|
|
457
|
+
font-size: 0.85em;
|
|
458
|
+
color: var(--theia-descriptionForeground);
|
|
448
459
|
}
|
|
449
460
|
|
|
450
|
-
.
|
|
461
|
+
/* Grows to fill the row and wraps under the name on narrow widths instead of overflowing. */
|
|
462
|
+
.ai-variable-arg-description {
|
|
463
|
+
flex: 1 1 200px;
|
|
464
|
+
min-width: 0;
|
|
451
465
|
color: var(--theia-descriptionForeground);
|
|
452
|
-
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.ai-variable-arg-enum {
|
|
469
|
+
display: block;
|
|
470
|
+
margin-top: calc(var(--theia-ui-padding) / 2);
|
|
471
|
+
color: var(--theia-descriptionForeground);
|
|
472
|
+
font-size: var(--theia-ui-font-size0);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ai-variable-agent-chips {
|
|
476
|
+
display: flex;
|
|
477
|
+
flex-wrap: wrap;
|
|
478
|
+
gap: 6px;
|
|
453
479
|
}
|
|
454
480
|
|
|
455
481
|
.agent-tag {
|
|
@@ -664,32 +690,6 @@
|
|
|
664
690
|
font-style: italic;
|
|
665
691
|
}
|
|
666
692
|
|
|
667
|
-
.prompt-variant-warning {
|
|
668
|
-
color: var(--theia-warningForeground);
|
|
669
|
-
background: var(--theia-warningBackground);
|
|
670
|
-
border-left: 4px solid var(--theia-warningBorder);
|
|
671
|
-
padding: 6px 12px;
|
|
672
|
-
margin-bottom: 8px;
|
|
673
|
-
display: flex;
|
|
674
|
-
align-items: center;
|
|
675
|
-
gap: 8px;
|
|
676
|
-
border-radius: 3px;
|
|
677
|
-
font-size: 0.95em;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
.prompt-variant-error {
|
|
681
|
-
color: var(--theia-errorForeground);
|
|
682
|
-
background: var(--theia-errorBackground);
|
|
683
|
-
border-left: 4px solid var(--theia-errorBorder);
|
|
684
|
-
padding: 6px 12px;
|
|
685
|
-
margin-bottom: 8px;
|
|
686
|
-
display: flex;
|
|
687
|
-
align-items: center;
|
|
688
|
-
gap: 8px;
|
|
689
|
-
border-radius: 3px;
|
|
690
|
-
font-size: 0.95em;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
693
|
/* Template content collapsable styles */
|
|
694
694
|
.template-content-container {
|
|
695
695
|
padding: 10px;
|
|
@@ -736,18 +736,20 @@
|
|
|
736
736
|
gap: 6px;
|
|
737
737
|
}
|
|
738
738
|
|
|
739
|
+
/* Canonical navigable agent chip: a blue badge (button colours) with a leading agent icon. Every "used by
|
|
740
|
+
agents / agents using this …" surface (Skills, Slash Commands, Variables, Model Aliases) uses this single
|
|
741
|
+
style so agent links look identical everywhere. */
|
|
739
742
|
.agent-chip {
|
|
740
743
|
display: inline-flex;
|
|
741
744
|
align-items: center;
|
|
742
745
|
justify-content: center;
|
|
746
|
+
gap: calc(var(--theia-ui-padding) / 2);
|
|
743
747
|
background-color: var(--theia-button-background);
|
|
744
|
-
color: var(--theia-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
font-size: 12px;
|
|
748
|
+
color: var(--theia-button-foreground);
|
|
749
|
+
padding: calc(var(--theia-ui-padding) / 3) calc(var(--theia-ui-padding) / 1.5);
|
|
750
|
+
border-radius: 1em;
|
|
751
|
+
font-size: var(--theia-ui-font-size0);
|
|
749
752
|
font-weight: 500;
|
|
750
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
751
753
|
white-space: nowrap;
|
|
752
754
|
}
|
|
753
755
|
|
|
@@ -1470,47 +1472,6 @@
|
|
|
1470
1472
|
* AI Tools Configuration Widget Styles
|
|
1471
1473
|
* Only touch styles in this section for the tools configuration widget
|
|
1472
1474
|
*/
|
|
1473
|
-
.ai-tools-configuration-header {
|
|
1474
|
-
display: flex;
|
|
1475
|
-
align-items: center;
|
|
1476
|
-
gap: var(--theia-ui-padding);
|
|
1477
|
-
margin-bottom: calc(var(--theia-ui-padding) * 2);
|
|
1478
|
-
padding: var(--theia-ui-padding);
|
|
1479
|
-
background-color: var(--theia-editor-background);
|
|
1480
|
-
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
1481
|
-
border-radius: 3px;
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
.ai-tools-recommended-defaults-banner {
|
|
1485
|
-
display: flex;
|
|
1486
|
-
align-items: center;
|
|
1487
|
-
gap: calc(var(--theia-ui-padding) * 2);
|
|
1488
|
-
margin-bottom: calc(var(--theia-ui-padding) * 2);
|
|
1489
|
-
padding: calc(var(--theia-ui-padding) * 1.5);
|
|
1490
|
-
background-color: var(--theia-editorInfo-background, var(--theia-editor-background));
|
|
1491
|
-
border: var(--theia-border-width) solid var(--theia-editorInfo-border, var(--theia-widget-border));
|
|
1492
|
-
border-radius: 3px;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
.ai-tools-recommended-defaults-text {
|
|
1496
|
-
flex: 1;
|
|
1497
|
-
line-height: var(--theia-content-line-height);
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
.ai-tools-configuration-default-section {
|
|
1501
|
-
margin-bottom: calc(var(--theia-ui-padding) * 2);
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
.ai-tools-configuration-default-label {
|
|
1505
|
-
font-weight: bold;
|
|
1506
|
-
margin-bottom: var(--theia-ui-padding);
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
.ai-tools-configuration-default-select {
|
|
1510
|
-
font-size: 14px;
|
|
1511
|
-
padding: var(--theia-ui-padding);
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
1475
|
.ai-tools-configuration-tools-label {
|
|
1515
1476
|
font-weight: bold;
|
|
1516
1477
|
margin-bottom: var(--theia-ui-padding);
|
|
@@ -1631,6 +1592,15 @@
|
|
|
1631
1592
|
color: var(--theia-descriptionForeground);
|
|
1632
1593
|
}
|
|
1633
1594
|
|
|
1595
|
+
/* "Evaluates to <model>" note shown under an alias-backed language-model setting row. */
|
|
1596
|
+
.ai-lm-evaluates-to {
|
|
1597
|
+
margin-top: calc(var(--theia-ui-padding) / 2);
|
|
1598
|
+
color: var(--theia-descriptionForeground);
|
|
1599
|
+
font-size: var(--theia-ui-font-size0);
|
|
1600
|
+
display: flex;
|
|
1601
|
+
gap: calc(var(--theia-ui-padding) / 2);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1634
1604
|
.ai-alias-detail-agents {
|
|
1635
1605
|
margin-bottom: var(--theia-ui-padding);
|
|
1636
1606
|
}
|
|
@@ -1772,29 +1742,21 @@
|
|
|
1772
1742
|
margin-right: calc(var(--theia-ui-padding) / 2);
|
|
1773
1743
|
}
|
|
1774
1744
|
|
|
1775
|
-
.ai-variable-name-cell {
|
|
1776
|
-
font-weight: 500;
|
|
1777
|
-
white-space: nowrap;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
.ai-variable-description-cell {
|
|
1781
|
-
color: var(--theia-descriptionForeground);
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
1745
|
.ai-configuration-warning-text {
|
|
1785
1746
|
color: var(--theia-editorWarning-foreground);
|
|
1786
1747
|
}
|
|
1787
1748
|
|
|
1788
|
-
/*
|
|
1789
|
-
|
|
1790
|
-
|
|
1749
|
+
/* Agent-detail subsection header: the title, with any section-wide action (its reset) pushed to the
|
|
1750
|
+
trailing edge of the same line rather than sitting in a prominent row of its own above the list. */
|
|
1751
|
+
.ai-agent-section-header {
|
|
1752
|
+
display: flex;
|
|
1753
|
+
align-items: center;
|
|
1754
|
+
gap: var(--theia-ui-padding);
|
|
1791
1755
|
}
|
|
1792
1756
|
|
|
1793
|
-
/*
|
|
1794
|
-
.
|
|
1795
|
-
|
|
1796
|
-
justify-content: flex-end;
|
|
1797
|
-
margin-bottom: calc(var(--theia-ui-padding) * 1.5);
|
|
1757
|
+
/* Pushed to the trailing edge of the title line; the button itself is the shared icon-action style. */
|
|
1758
|
+
.ai-agent-section-header .ai-agent-section-header-action {
|
|
1759
|
+
margin-left: auto;
|
|
1798
1760
|
}
|
|
1799
1761
|
|
|
1800
1762
|
.ai-agent-description {
|
|
@@ -1864,61 +1826,6 @@
|
|
|
1864
1826
|
font-style: italic;
|
|
1865
1827
|
}
|
|
1866
1828
|
|
|
1867
|
-
/* Shell Command Permission List Section */
|
|
1868
|
-
.ai-shell-permission-list-section {
|
|
1869
|
-
margin-top: calc(var(--theia-ui-padding) * 3);
|
|
1870
|
-
padding-top: calc(var(--theia-ui-padding) * 2);
|
|
1871
|
-
border-top: var(--theia-border-width) solid var(--theia-widget-border);
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
.ai-shell-permission-list-description {
|
|
1875
|
-
color: var(--theia-descriptionForeground);
|
|
1876
|
-
margin-bottom: var(--theia-ui-padding);
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
.ai-shell-permission-list-input-row {
|
|
1880
|
-
display: flex;
|
|
1881
|
-
gap: var(--theia-ui-padding);
|
|
1882
|
-
margin-bottom: var(--theia-ui-padding);
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
.ai-shell-permission-list-input-row .theia-input {
|
|
1886
|
-
flex: 1;
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
.ai-shell-permission-list-patterns {
|
|
1890
|
-
list-style: none;
|
|
1891
|
-
padding: 0;
|
|
1892
|
-
margin: 0;
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
.ai-shell-permission-list-pattern-item {
|
|
1896
|
-
display: flex;
|
|
1897
|
-
align-items: center;
|
|
1898
|
-
justify-content: space-between;
|
|
1899
|
-
padding: calc(var(--theia-ui-padding) / 2) var(--theia-ui-padding);
|
|
1900
|
-
background-color: var(--theia-editor-background);
|
|
1901
|
-
border: var(--theia-border-width) solid var(--theia-widget-border);
|
|
1902
|
-
border-radius: 3px;
|
|
1903
|
-
margin-bottom: calc(var(--theia-ui-padding) / 2);
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
.ai-shell-permission-list-pattern-item code {
|
|
1907
|
-
font-family: var(--theia-code-font-family);
|
|
1908
|
-
font-size: var(--theia-code-font-size);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
.ai-shell-permission-list-empty {
|
|
1912
|
-
color: var(--theia-descriptionForeground);
|
|
1913
|
-
font-style: italic;
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
.ai-shell-permission-list-error {
|
|
1917
|
-
color: var(--theia-errorForeground);
|
|
1918
|
-
margin-top: calc(var(--theia-ui-padding) / 2);
|
|
1919
|
-
margin-bottom: var(--theia-ui-padding);
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
1829
|
/* User Interaction Tool Renderer Styles */
|
|
1923
1830
|
.user-interaction-tool.title {
|
|
1924
1831
|
font-weight: 600;
|
|
@@ -2317,3 +2224,40 @@
|
|
|
2317
2224
|
outline: 1px solid var(--theia-focusBorder);
|
|
2318
2225
|
outline-offset: -1px;
|
|
2319
2226
|
}
|
|
2227
|
+
|
|
2228
|
+
/* ===== AI Configuration breadcrumb popup ===== */
|
|
2229
|
+
.theia-ai-configuration-breadcrumb-popup {
|
|
2230
|
+
list-style: none;
|
|
2231
|
+
margin: 0;
|
|
2232
|
+
padding: 4px 0;
|
|
2233
|
+
min-width: 180px;
|
|
2234
|
+
max-height: 320px;
|
|
2235
|
+
overflow-y: auto;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.theia-ai-configuration-breadcrumb-popup-item {
|
|
2239
|
+
display: flex;
|
|
2240
|
+
align-items: center;
|
|
2241
|
+
gap: calc(var(--theia-ui-padding) * 0.75);
|
|
2242
|
+
padding: 4px 12px;
|
|
2243
|
+
cursor: pointer;
|
|
2244
|
+
white-space: nowrap;
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
.theia-ai-configuration-breadcrumb-popup-item:hover {
|
|
2248
|
+
background-color: var(--theia-list-hoverBackground);
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
.theia-ai-configuration-breadcrumb-popup-item.selected {
|
|
2252
|
+
background-color: var(--theia-list-activeSelectionBackground);
|
|
2253
|
+
color: var(--theia-list-activeSelectionForeground);
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/* High contrast: neither `list.hoverBackground` nor `list.activeSelectionBackground` is defined there, so
|
|
2257
|
+
both states above would be indistinguishable from an unselected entry. `contrastActiveBorder` exists only
|
|
2258
|
+
in the high-contrast themes, hence the ring appears there alone. */
|
|
2259
|
+
.theia-ai-configuration-breadcrumb-popup-item:hover,
|
|
2260
|
+
.theia-ai-configuration-breadcrumb-popup-item.selected {
|
|
2261
|
+
outline: 1px dotted var(--theia-contrastActiveBorder, transparent);
|
|
2262
|
+
outline-offset: -1px;
|
|
2263
|
+
}
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ChatAgentLocation, ChatService } from '@theia/ai-chat/lib/common';
|
|
18
|
-
import { CommandContribution, CommandRegistry, CommandService } from '@theia/core';
|
|
18
|
+
import { CommandContribution, CommandRegistry, CommandService, ILogger } from '@theia/core';
|
|
19
19
|
import { TaskContextStorageService, TaskContextService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
20
|
-
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
20
|
+
import { injectable, inject, named } from '@theia/core/shared/inversify';
|
|
21
21
|
import { AI_EXECUTE_PLAN_WITH_CODER } from '../common/summarize-session-commands';
|
|
22
22
|
import { CoderAgent } from './coder-agent';
|
|
23
23
|
import { TASK_CONTEXT_VARIABLE } from '@theia/ai-chat/lib/browser/task-context-variable';
|
|
@@ -54,6 +54,9 @@ export class SummarizeSessionCommandContribution implements CommandContribution
|
|
|
54
54
|
@inject(AICommandHandlerFactory)
|
|
55
55
|
protected readonly commandHandlerFactory: AICommandHandlerFactory;
|
|
56
56
|
|
|
57
|
+
@inject(ILogger) @named('ai-ide:SummarizeSessionCommandContribution')
|
|
58
|
+
protected readonly logger: ILogger;
|
|
59
|
+
|
|
57
60
|
registerCommands(registry: CommandRegistry): void {
|
|
58
61
|
registry.registerCommand(AI_EXECUTE_PLAN_WITH_CODER, this.commandHandlerFactory({
|
|
59
62
|
execute: async (taskContextId?: string) => {
|
|
@@ -73,7 +76,7 @@ export class SummarizeSessionCommandContribution implements CommandContribution
|
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
if (!existingTaskContext) {
|
|
76
|
-
|
|
79
|
+
this.logger.warn('No task context found. Use createTaskContext to create a plan first.');
|
|
77
80
|
return;
|
|
78
81
|
}
|
|
79
82
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { Summary, SummaryMetadata, TaskContextStorageService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
18
18
|
import { InMemoryTaskContextStorage } from '@theia/ai-chat/lib/browser/task-context-storage-service';
|
|
19
19
|
import { parseFrontmatter } from '@theia/ai-core/lib/common/frontmatter';
|
|
20
|
-
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
20
|
+
import { inject, injectable, postConstruct, named } from '@theia/core/shared/inversify';
|
|
21
21
|
import { DisposableCollection, EOL, Emitter, ILogger, Path, PreferenceService, URI, unreachable } from '@theia/core';
|
|
22
22
|
import { OpenerService, open } from '@theia/core/lib/browser';
|
|
23
23
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
@@ -34,7 +34,10 @@ export class TaskContextFileStorageService implements TaskContextStorageService
|
|
|
34
34
|
@inject(WorkspaceService) protected readonly workspaceService: WorkspaceService;
|
|
35
35
|
@inject(FileService) protected readonly fileService: FileService;
|
|
36
36
|
@inject(OpenerService) protected readonly openerService: OpenerService;
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
@inject(ILogger) @named('ai-ide:TaskContextFileStorageService')
|
|
39
|
+
protected readonly logger: ILogger;
|
|
40
|
+
|
|
38
41
|
protected readonly onDidChangeEmitter = new Emitter<void>();
|
|
39
42
|
readonly onDidChange = this.onDidChangeEmitter.event;
|
|
40
43
|
|
|
@@ -31,6 +31,8 @@ import { URI } from '@theia/core/lib/common/uri';
|
|
|
31
31
|
import { CancellationTokenSource } from '@theia/core/lib/common/cancellation';
|
|
32
32
|
import { MEMORY_TEXT, MEMORY_TEXT_READONLY, ResourceProvider } from '@theia/core/lib/common/resource';
|
|
33
33
|
import { DiffUris } from '@theia/core/lib/browser/diff-uris';
|
|
34
|
+
import { ILogger } from '@theia/core';
|
|
35
|
+
import { MockLogger } from '@theia/core/lib/common/test/mock-logger';
|
|
34
36
|
|
|
35
37
|
disableJSDOM();
|
|
36
38
|
|
|
@@ -72,10 +74,11 @@ describe('UserInteractionTool', () => {
|
|
|
72
74
|
beforeEach(() => {
|
|
73
75
|
container = new Container();
|
|
74
76
|
|
|
77
|
+
container.bind(ILogger).to(MockLogger).inSingletonScope();
|
|
78
|
+
|
|
75
79
|
mockWorkspaceScope = {
|
|
76
80
|
resolveRelativePath: sinon.stub().callsFake((path: string) => workspaceRoot.resolve(path)),
|
|
77
|
-
getContainingRoot: sinon.stub().returns(workspaceRoot)
|
|
78
|
-
ensureWithinWorkspace: sinon.stub()
|
|
81
|
+
getContainingRoot: sinon.stub().returns(workspaceRoot)
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
mockOpenerService = {
|