@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,12 +0,0 @@
|
|
|
1
|
-
import * as React from '@theia/core/shared/react';
|
|
2
|
-
export interface ConfigurationSectionProps {
|
|
3
|
-
title: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A reusable section component with a title and content area.
|
|
9
|
-
* Follows the Theia settings section styling.
|
|
10
|
-
*/
|
|
11
|
-
export declare const ConfigurationSection: React.FC<ConfigurationSectionProps>;
|
|
12
|
-
//# sourceMappingURL=configuration-section.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration-section.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/components/configuration-section.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CASpE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configuration-section.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/components/configuration-section.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;AAChF,kDAAkD;AAQlD;;;GAGG;AACI,MAAM,oBAAoB,GAAwC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACzG,6BAAK,SAAS,EAAE,4BAA4B,SAAS,IAAI,EAAE,EAAE;IACzD,6BAAK,SAAS,EAAC,wDAAwD,IAClE,KAAK,CACJ;IACN,6BAAK,SAAS,EAAC,kCAAkC,IAC5C,QAAQ,CACP,CACJ,CACT,CAAC;AATW,QAAA,oBAAoB,wBAS/B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from '@theia/core/shared/react';
|
|
2
|
-
export interface EmptyStateProps {
|
|
3
|
-
message: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* A component to display an empty state message (e.g., "Please select an item").
|
|
8
|
-
*/
|
|
9
|
-
export declare const EmptyState: React.FC<EmptyStateProps>;
|
|
10
|
-
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/components/empty-state.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/components/empty-state.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;AAChF,kDAAkD;AAOlD;;GAEG;AACI,MAAM,UAAU,GAA8B,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC7E,6BAAK,SAAS,EAAE,gCAAgC,SAAS,IAAI,EAAE,EAAE;IAC7D,8BAAM,SAAS,EAAC,wBAAwB,IAAE,OAAO,CAAQ,CACvD,CACT,CAAC;AAJW,QAAA,UAAU,cAIrB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from '@theia/core/shared/react';
|
|
2
|
-
export interface ExpandableSectionProps {
|
|
3
|
-
title: React.ReactNode;
|
|
4
|
-
isExpanded: boolean;
|
|
5
|
-
onToggle: () => void;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A collapsible section with a chevron icon and expandable content.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ExpandableSection: React.FC<ExpandableSectionProps>;
|
|
13
|
-
//# sourceMappingURL=expandable-section.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/components/expandable-section.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAGlD,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAqB9D,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExpandableSection = void 0;
|
|
4
|
-
// *****************************************************************************
|
|
5
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
6
|
-
//
|
|
7
|
-
// This program and the accompanying materials are made available under the
|
|
8
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
-
//
|
|
11
|
-
// This Source Code may also be made available under the following Secondary
|
|
12
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
-
// with the GNU Classpath Exception which is available at
|
|
15
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
16
|
-
//
|
|
17
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
18
|
-
// *****************************************************************************
|
|
19
|
-
const React = require("@theia/core/shared/react");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
/**
|
|
22
|
-
* A collapsible section with a chevron icon and expandable content.
|
|
23
|
-
*/
|
|
24
|
-
const ExpandableSection = ({ title, isExpanded, onToggle, children, className }) => (React.createElement("div", { className: `ai-expandable-section ${className || ''}` },
|
|
25
|
-
React.createElement("div", { className: `ai-expandable-section-header ${isExpanded ? 'expanded' : ''}`, onClick: onToggle },
|
|
26
|
-
React.createElement("span", { className: 'ai-expandable-section-icon' },
|
|
27
|
-
React.createElement("i", { className: (0, browser_1.codicon)(isExpanded ? 'chevron-down' : 'chevron-right') })),
|
|
28
|
-
React.createElement("div", { className: 'ai-expandable-section-title' }, title)),
|
|
29
|
-
isExpanded && (React.createElement("div", { className: 'ai-expandable-section-content' }, children))));
|
|
30
|
-
exports.ExpandableSection = ExpandableSection;
|
|
31
|
-
//# sourceMappingURL=expandable-section.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/components/expandable-section.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;AAChF,kDAAkD;AAClD,qDAAkD;AAUlD;;GAEG;AACI,MAAM,iBAAiB,GAAqC,CAAC,EAChE,KAAK,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,EACZ,EAAE,EAAE,CAAC,CACF,6BAAK,SAAS,EAAE,yBAAyB,SAAS,IAAI,EAAE,EAAE;IACtD,6BACI,SAAS,EAAE,gCAAgC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EACzE,OAAO,EAAE,QAAQ;QAEjB,8BAAM,SAAS,EAAC,4BAA4B;YACxC,2BAAG,SAAS,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,GAAI,CACrE;QACP,6BAAK,SAAS,EAAC,6BAA6B,IAAE,KAAK,CAAO,CACxD;IACL,UAAU,IAAI,CACX,6BAAK,SAAS,EAAC,+BAA+B,IAAE,QAAQ,CAAO,CAClE,CACC,CACT,CAAC;AArBW,QAAA,iBAAiB,qBAqB5B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from '@theia/core/shared/react';
|
|
2
|
-
import { LanguageModelAliasRegistry, LanguageModelAlias } from '@theia/ai-core/lib/common/language-model-alias';
|
|
3
|
-
import { FrontendLanguageModelRegistry, LanguageModel } from '@theia/ai-core/lib/common/language-model';
|
|
4
|
-
import { AgentService, AISettingsService } from '@theia/ai-core';
|
|
5
|
-
import { AIListDetailConfigurationWidget } from './base/ai-list-detail-configuration-widget';
|
|
6
|
-
export declare class ModelAliasesConfigurationWidget extends AIListDetailConfigurationWidget<LanguageModelAlias> {
|
|
7
|
-
static readonly ID = "ai-model-aliases-configuration-widget";
|
|
8
|
-
static readonly LABEL: string;
|
|
9
|
-
protected readonly languageModelAliasRegistry: LanguageModelAliasRegistry;
|
|
10
|
-
protected readonly languageModelRegistry: FrontendLanguageModelRegistry;
|
|
11
|
-
protected readonly aiSettingsService: AISettingsService;
|
|
12
|
-
protected readonly agentService: AgentService;
|
|
13
|
-
protected languageModels: LanguageModel[];
|
|
14
|
-
protected matchingAgentIdsForAliasMap: Map<string, string[]>;
|
|
15
|
-
protected resolvedModelForAlias: Map<string, LanguageModel | undefined>;
|
|
16
|
-
protected init(): void;
|
|
17
|
-
protected loadItems(): Promise<void>;
|
|
18
|
-
protected loadLanguageModels(): Promise<void>;
|
|
19
|
-
protected loadMatchingAgentIdsForAllAliases(): Promise<void>;
|
|
20
|
-
protected getItemId(item: LanguageModelAlias): string;
|
|
21
|
-
protected getItemLabel(item: LanguageModelAlias): string;
|
|
22
|
-
protected getEmptySelectionMessage(): string;
|
|
23
|
-
protected handleAliasSelectedModelIdChange: (alias: LanguageModelAlias, event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
24
|
-
protected renderItemDetail(alias: LanguageModelAlias): React.ReactNode;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=model-aliases-configuration-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-aliases-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/model-aliases-configuration-widget.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAChH,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAmD,MAAM,0CAA0C,CAAC;AAEzJ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 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var ModelAliasesConfigurationWidget_1;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ModelAliasesConfigurationWidget = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
// *****************************************************************************
|
|
7
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
8
|
-
//
|
|
9
|
-
// This program and the accompanying materials are made available under the
|
|
10
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
11
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
12
|
-
//
|
|
13
|
-
// This Source Code may also be made available under the following Secondary
|
|
14
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
15
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
16
|
-
// with the GNU Classpath Exception which is available at
|
|
17
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
18
|
-
//
|
|
19
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
20
|
-
// *****************************************************************************
|
|
21
|
-
const React = require("@theia/core/shared/react");
|
|
22
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
-
const language_model_alias_1 = require("@theia/ai-core/lib/common/language-model-alias");
|
|
24
|
-
const language_model_1 = require("@theia/ai-core/lib/common/language-model");
|
|
25
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
26
|
-
const ai_core_1 = require("@theia/ai-core");
|
|
27
|
-
const ai_list_detail_configuration_widget_1 = require("./base/ai-list-detail-configuration-widget");
|
|
28
|
-
const configuration_section_1 = require("./components/configuration-section");
|
|
29
|
-
let ModelAliasesConfigurationWidget = class ModelAliasesConfigurationWidget extends ai_list_detail_configuration_widget_1.AIListDetailConfigurationWidget {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(...arguments);
|
|
32
|
-
this.languageModels = [];
|
|
33
|
-
this.matchingAgentIdsForAliasMap = new Map();
|
|
34
|
-
this.resolvedModelForAlias = new Map();
|
|
35
|
-
this.handleAliasSelectedModelIdChange = (alias, event) => {
|
|
36
|
-
const newModelId = event.target.value || undefined;
|
|
37
|
-
const updatedAlias = {
|
|
38
|
-
...alias,
|
|
39
|
-
selectedModelId: newModelId
|
|
40
|
-
};
|
|
41
|
-
this.languageModelAliasRegistry.ready.then(() => {
|
|
42
|
-
this.languageModelAliasRegistry.addAlias(updatedAlias);
|
|
43
|
-
});
|
|
44
|
-
this.handleItemSelect(updatedAlias);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
static { ModelAliasesConfigurationWidget_1 = this; }
|
|
48
|
-
static { this.ID = 'ai-model-aliases-configuration-widget'; }
|
|
49
|
-
static { this.LABEL = nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/label', 'Model Aliases'); }
|
|
50
|
-
init() {
|
|
51
|
-
this.id = ModelAliasesConfigurationWidget_1.ID;
|
|
52
|
-
this.title.label = ModelAliasesConfigurationWidget_1.LABEL;
|
|
53
|
-
this.title.closable = false;
|
|
54
|
-
Promise.all([
|
|
55
|
-
this.loadItems(),
|
|
56
|
-
this.loadLanguageModels()
|
|
57
|
-
]).then(() => this.update());
|
|
58
|
-
this.languageModelAliasRegistry.ready.then(() => this.toDispose.push(this.languageModelAliasRegistry.onDidChange(async () => {
|
|
59
|
-
await this.loadItems();
|
|
60
|
-
this.update();
|
|
61
|
-
})));
|
|
62
|
-
this.toDispose.pushAll([
|
|
63
|
-
this.languageModelRegistry.onChange(async () => {
|
|
64
|
-
await this.loadItems();
|
|
65
|
-
await this.loadLanguageModels();
|
|
66
|
-
this.update();
|
|
67
|
-
}),
|
|
68
|
-
this.aiSettingsService.onDidChange(async () => {
|
|
69
|
-
await this.loadMatchingAgentIdsForAllAliases();
|
|
70
|
-
this.update();
|
|
71
|
-
})
|
|
72
|
-
]);
|
|
73
|
-
}
|
|
74
|
-
async loadItems() {
|
|
75
|
-
await this.languageModelAliasRegistry.ready;
|
|
76
|
-
this.items = this.languageModelAliasRegistry.getAliases().sort((a, b) => a.id.localeCompare(b.id));
|
|
77
|
-
// Set initial selection
|
|
78
|
-
if (this.items.length > 0 && !this.selectedItem) {
|
|
79
|
-
this.selectedItem = this.items[0];
|
|
80
|
-
}
|
|
81
|
-
await this.loadMatchingAgentIdsForAllAliases();
|
|
82
|
-
// Resolve evaluated models for each alias
|
|
83
|
-
this.resolvedModelForAlias = new Map();
|
|
84
|
-
for (const alias of this.items) {
|
|
85
|
-
const model = await this.languageModelRegistry.getReadyLanguageModel(alias.id);
|
|
86
|
-
this.resolvedModelForAlias.set(alias.id, model);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
async loadLanguageModels() {
|
|
90
|
-
this.languageModels = await this.languageModelRegistry.getLanguageModels();
|
|
91
|
-
}
|
|
92
|
-
async loadMatchingAgentIdsForAllAliases() {
|
|
93
|
-
const agents = this.agentService.getAllAgents();
|
|
94
|
-
const aliasMap = new Map();
|
|
95
|
-
for (const alias of this.items) {
|
|
96
|
-
const matchingAgentIds = [];
|
|
97
|
-
for (const agent of agents) {
|
|
98
|
-
const requirementSetting = await this.aiSettingsService.getAgentSettings(agent.id);
|
|
99
|
-
if (requirementSetting?.languageModelRequirements) {
|
|
100
|
-
if (requirementSetting?.languageModelRequirements?.find(e => e.identifier === alias.id)) {
|
|
101
|
-
matchingAgentIds.push(agent.id);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
if (agent.languageModelRequirements.some((req) => req.identifier === alias.id)) {
|
|
106
|
-
matchingAgentIds.push(agent.id);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
aliasMap.set(alias.id, matchingAgentIds);
|
|
111
|
-
}
|
|
112
|
-
this.matchingAgentIdsForAliasMap = aliasMap;
|
|
113
|
-
}
|
|
114
|
-
getItemId(item) {
|
|
115
|
-
return item.id;
|
|
116
|
-
}
|
|
117
|
-
getItemLabel(item) {
|
|
118
|
-
return item.id;
|
|
119
|
-
}
|
|
120
|
-
getEmptySelectionMessage() {
|
|
121
|
-
return nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/selectAlias', 'Please select a Model Alias.');
|
|
122
|
-
}
|
|
123
|
-
renderItemDetail(alias) {
|
|
124
|
-
const availableModelIds = this.languageModels.map(m => m.id);
|
|
125
|
-
const selectedModelId = alias.selectedModelId ?? '';
|
|
126
|
-
const isInvalidModel = !!selectedModelId && !availableModelIds.includes(alias.selectedModelId ?? '');
|
|
127
|
-
const agentIds = this.matchingAgentIdsForAliasMap.get(alias.id) || [];
|
|
128
|
-
const agents = this.agentService.getAllAgents().filter(agent => agentIds.includes(agent.id));
|
|
129
|
-
const resolvedModel = this.resolvedModelForAlias.get(alias.id);
|
|
130
|
-
return (React.createElement("div", null,
|
|
131
|
-
React.createElement("div", { className: "settings-section-title settings-section-category-title" }, alias.id),
|
|
132
|
-
alias.description && (React.createElement("div", { className: "ai-alias-detail-description" }, alias.description)),
|
|
133
|
-
React.createElement(configuration_section_1.ConfigurationSection, { title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/selectedModelId', 'Selected Model'), className: "ai-alias-selected-model-section" },
|
|
134
|
-
React.createElement("select", { className: `theia-select template-variant-selector ${isInvalidModel ? 'error' : ''}`, value: isInvalidModel ? 'invalid' : selectedModelId, onChange: event => this.handleAliasSelectedModelIdChange(alias, event) },
|
|
135
|
-
isInvalidModel && (React.createElement("option", { value: "invalid", disabled: true }, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/unavailableModel', 'Selected model is no longer available'))),
|
|
136
|
-
React.createElement("option", { value: "", className: 'ai-language-model-item-ready' }, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/defaultList', '[Default list]')),
|
|
137
|
-
[...this.languageModels]
|
|
138
|
-
.sort((a, b) => (a.name ?? a.id).localeCompare(b.name ?? b.id))
|
|
139
|
-
.map(model => {
|
|
140
|
-
const isNotReady = model.status.status !== 'ready';
|
|
141
|
-
return (React.createElement("option", { key: model.id, value: model.id, className: isNotReady ? 'ai-language-model-item-not-ready' : 'ai-language-model-item-ready', title: isNotReady && model.status.message ? model.status.message : undefined },
|
|
142
|
-
model.name ?? model.id,
|
|
143
|
-
" ",
|
|
144
|
-
isNotReady ? '✗' : '✓'));
|
|
145
|
-
}))),
|
|
146
|
-
alias.selectedModelId === undefined && (React.createElement(React.Fragment, null,
|
|
147
|
-
React.createElement(configuration_section_1.ConfigurationSection, { title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/priorityList', 'Priority List'), className: "ai-alias-defaults-section" },
|
|
148
|
-
React.createElement("ol", null, alias.defaultModelIds.map(modelId => {
|
|
149
|
-
const model = this.languageModels.find(m => m.id === modelId);
|
|
150
|
-
const isReady = model?.status.status === 'ready';
|
|
151
|
-
return (React.createElement("li", { key: modelId }, isReady ? (React.createElement("span", { className: modelId === resolvedModel?.id ? 'ai-alias-priority-item-resolved' : 'ai-alias-priority-item-ready' },
|
|
152
|
-
modelId,
|
|
153
|
-
" ",
|
|
154
|
-
React.createElement("span", { className: "ai-model-status-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready') }, "\u2713"))) : (React.createElement("span", { className: "ai-model-default-not-ready" },
|
|
155
|
-
modelId,
|
|
156
|
-
" ",
|
|
157
|
-
React.createElement("span", { className: "ai-model-status-not-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready') }, "\u2717")))));
|
|
158
|
-
}))),
|
|
159
|
-
React.createElement(configuration_section_1.ConfigurationSection, { title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/evaluatesTo', 'Evaluates to'), className: "ai-alias-evaluates-to-section" }, resolvedModel ? (React.createElement("span", { className: "ai-alias-evaluates-to-value" },
|
|
160
|
-
resolvedModel.name ?? resolvedModel.id,
|
|
161
|
-
resolvedModel.status.status === 'ready' ? (React.createElement("span", { className: "ai-model-status-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready') }, "\u2713")) : (React.createElement("span", { className: "ai-model-status-not-ready", title: resolvedModel.status.message
|
|
162
|
-
|| nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready') }, "\u2717")))) : (React.createElement("span", { className: "ai-alias-evaluates-to-unresolved" }, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/noResolvedModel', 'No model ready for this alias.')))))),
|
|
163
|
-
React.createElement(configuration_section_1.ConfigurationSection, { title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/agents', 'Agents using this Alias'), className: "ai-alias-agents-section" },
|
|
164
|
-
React.createElement("ul", null, agents.length > 0 ? (agents.map(agent => (React.createElement("li", { key: agent.id },
|
|
165
|
-
React.createElement("span", null, agent.name),
|
|
166
|
-
agent.id !== agent.name && React.createElement("span", { className: "ai-alias-agent-id" },
|
|
167
|
-
" (",
|
|
168
|
-
agent.id,
|
|
169
|
-
")"))))) : (React.createElement("span", null, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/noAgents', 'No agents use this alias.')))))));
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
exports.ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget;
|
|
173
|
-
tslib_1.__decorate([
|
|
174
|
-
(0, inversify_1.inject)(language_model_alias_1.LanguageModelAliasRegistry),
|
|
175
|
-
tslib_1.__metadata("design:type", Object)
|
|
176
|
-
], ModelAliasesConfigurationWidget.prototype, "languageModelAliasRegistry", void 0);
|
|
177
|
-
tslib_1.__decorate([
|
|
178
|
-
(0, inversify_1.inject)(language_model_1.LanguageModelRegistry),
|
|
179
|
-
tslib_1.__metadata("design:type", Object)
|
|
180
|
-
], ModelAliasesConfigurationWidget.prototype, "languageModelRegistry", void 0);
|
|
181
|
-
tslib_1.__decorate([
|
|
182
|
-
(0, inversify_1.inject)(ai_core_1.AISettingsService),
|
|
183
|
-
tslib_1.__metadata("design:type", Object)
|
|
184
|
-
], ModelAliasesConfigurationWidget.prototype, "aiSettingsService", void 0);
|
|
185
|
-
tslib_1.__decorate([
|
|
186
|
-
(0, inversify_1.inject)(ai_core_1.AgentService),
|
|
187
|
-
tslib_1.__metadata("design:type", Object)
|
|
188
|
-
], ModelAliasesConfigurationWidget.prototype, "agentService", void 0);
|
|
189
|
-
tslib_1.__decorate([
|
|
190
|
-
(0, inversify_1.postConstruct)(),
|
|
191
|
-
tslib_1.__metadata("design:type", Function),
|
|
192
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
193
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
194
|
-
], ModelAliasesConfigurationWidget.prototype, "init", null);
|
|
195
|
-
exports.ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget_1 = tslib_1.__decorate([
|
|
196
|
-
(0, inversify_1.injectable)()
|
|
197
|
-
], ModelAliasesConfigurationWidget);
|
|
198
|
-
//# sourceMappingURL=model-aliases-configuration-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-aliases-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/model-aliases-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;AAChF,kDAAkD;AAClD,4DAAiF;AACjF,yFAAgH;AAChH,6EAAyJ;AACzJ,oDAAiD;AACjD,4CAAiE;AACjE,oGAA6F;AAC7F,8EAA0E;AAGnE,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,qEAAmD;IAAjG;;QAaO,mBAAc,GAAoB,EAAE,CAAC;QACrC,gCAA2B,GAA0B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AkD,EAAE,2BAA2B,CAAC,CAAQ,CAC/G,CACA,CACc,CACrB,CACT,CAAC;IACN,CAAC;;AAnPQ,0EAA+B;AAKrB;IADlB,IAAA,kBAAM,EAAC,iDAA0B,CAAC;;mFACuC;AAEvD;IADlB,IAAA,kBAAM,EAAC,sCAAqB,CAAC;;8EAC0C;AAErD;IADlB,IAAA,kBAAM,EAAC,2BAAiB,CAAC;;0EAC8B;AAErC;IADlB,IAAA,kBAAM,EAAC,sBAAY,CAAC;;qEACyB;AAOpC;IADT,IAAA,yBAAa,GAAE;;;;2DA6Bf;0CA9CQ,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAoP3C"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { ReactWidget } from '@theia/core/lib/browser';
|
|
2
|
-
import { CustomizedPromptFragment, PromptFragment, PromptService, BasePromptFragment } from '@theia/ai-core/lib/common/prompt-service';
|
|
3
|
-
import * as React from '@theia/core/shared/react';
|
|
4
|
-
import { AgentService } from '@theia/ai-core/lib/common/agent-service';
|
|
5
|
-
import { Agent } from '@theia/ai-core/lib/common/agent';
|
|
6
|
-
/**
|
|
7
|
-
* Widget for configuring AI prompt fragments and prompt variant sets.
|
|
8
|
-
* Allows users to view, create, edit, and manage various types of prompt
|
|
9
|
-
* fragments including their customizations and variants.
|
|
10
|
-
*/
|
|
11
|
-
export declare class AIPromptFragmentsConfigurationWidget extends ReactWidget {
|
|
12
|
-
static readonly ID = "ai-prompt-fragments-configuration";
|
|
13
|
-
static readonly LABEL: string;
|
|
14
|
-
/**
|
|
15
|
-
* Stores all available prompt fragments by ID
|
|
16
|
-
*/
|
|
17
|
-
protected promptFragmentMap: Map<string, PromptFragment[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Stores prompt variant sets and their variant IDs
|
|
20
|
-
*/
|
|
21
|
-
protected promptVariantsMap: Map<string, string[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Currently active prompt fragments
|
|
24
|
-
*/
|
|
25
|
-
protected activePromptFragments: PromptFragment[];
|
|
26
|
-
/**
|
|
27
|
-
* Tracks expanded state of prompt fragment sections in the UI
|
|
28
|
-
*/
|
|
29
|
-
protected expandedPromptFragmentIds: Set<string>;
|
|
30
|
-
/**
|
|
31
|
-
* Tracks expanded state of prompt content display
|
|
32
|
-
*/
|
|
33
|
-
protected expandedPromptFragmentTemplates: Set<string>;
|
|
34
|
-
/**
|
|
35
|
-
* Tracks expanded state of prompt variant set sections
|
|
36
|
-
*/
|
|
37
|
-
protected expandedPromptVariantSetIds: Set<string>;
|
|
38
|
-
/**
|
|
39
|
-
* All available agents that may use prompts
|
|
40
|
-
*/
|
|
41
|
-
protected availableAgents: Agent[];
|
|
42
|
-
/**
|
|
43
|
-
* Maps prompt variant set IDs to their resolved variant IDs
|
|
44
|
-
*/
|
|
45
|
-
protected effectiveVariantIds: Map<string, string | undefined>;
|
|
46
|
-
/**
|
|
47
|
-
* Maps prompt variant set IDs to their default variant IDs
|
|
48
|
-
*/
|
|
49
|
-
protected defaultVariantIds: Map<string, string | undefined>;
|
|
50
|
-
/**
|
|
51
|
-
* Maps prompt variant set IDs to their user selected variant IDs
|
|
52
|
-
*/
|
|
53
|
-
protected userSelectedVariantIds: Map<string, string | undefined>;
|
|
54
|
-
protected promptService: PromptService;
|
|
55
|
-
protected agentService: AgentService;
|
|
56
|
-
protected init(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Loads all prompt fragments and prompt variant sets from the prompt service.
|
|
59
|
-
* Preserves UI expansion states and updates variant information.
|
|
60
|
-
*/
|
|
61
|
-
protected loadPromptFragments(): void;
|
|
62
|
-
/**
|
|
63
|
-
* Loads all available agents from the agent service
|
|
64
|
-
*/
|
|
65
|
-
protected loadAgents(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Finds agents that use a specific prompt variant set
|
|
68
|
-
* @param promptVariantSetId ID of the prompt variant set to match
|
|
69
|
-
* @returns Array of agents that use the prompt variant set
|
|
70
|
-
*/
|
|
71
|
-
protected getAgentsUsingPromptVariantId(promptVariantSetId: string): Agent[];
|
|
72
|
-
protected togglePromptVariantSetExpansion: (promptVariantSetId: string) => void;
|
|
73
|
-
protected togglePromptFragmentExpansion: (promptFragmentId: string) => void;
|
|
74
|
-
protected toggleTemplateExpansion: (fragmentKey: string, event: React.MouseEvent) => void;
|
|
75
|
-
/**
|
|
76
|
-
* Call the edit action for the provided customized prompt fragment
|
|
77
|
-
* @param promptFragment Fragment to edit
|
|
78
|
-
* @param event Mouse event
|
|
79
|
-
*/
|
|
80
|
-
protected editPromptCustomization: (promptFragment: CustomizedPromptFragment, event: React.MouseEvent) => void;
|
|
81
|
-
/**
|
|
82
|
-
* Determines if a prompt fragment is currently the active one for its ID
|
|
83
|
-
* @param promptFragment The prompt fragment to check
|
|
84
|
-
* @returns True if this prompt fragment is the active customization
|
|
85
|
-
*/
|
|
86
|
-
protected isActiveCustomization(promptFragment: PromptFragment): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Resets a prompt fragment to use a specific customization (with confirmation dialog)
|
|
89
|
-
* @param customization customization to reset to
|
|
90
|
-
* @param event Mouse event
|
|
91
|
-
*/
|
|
92
|
-
protected resetToPromptFragment: (customization: PromptFragment, event: React.MouseEvent) => Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* Creates a new customization for a built-in prompt fragment
|
|
95
|
-
* @param promptFragment Built-in prompt fragment to customize
|
|
96
|
-
* @param event Mouse event
|
|
97
|
-
*/
|
|
98
|
-
protected createPromptFragmentCustomization: (promptFragment: BasePromptFragment, event: React.MouseEvent) => void;
|
|
99
|
-
/**
|
|
100
|
-
* Deletes a customization with confirmation dialog
|
|
101
|
-
* @param customization Customized prompt fragment to delete
|
|
102
|
-
* @param event Mouse event
|
|
103
|
-
*/
|
|
104
|
-
protected deletePromptFragmentCustomization: (customization: CustomizedPromptFragment, event: React.MouseEvent) => Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* Removes all prompt customizations (resets to built-in versions) with confirmation
|
|
107
|
-
*/
|
|
108
|
-
protected removeAllCustomizations: () => Promise<void>;
|
|
109
|
-
/**
|
|
110
|
-
* Main render method for the widget
|
|
111
|
-
* @returns Complete UI for the configuration widget
|
|
112
|
-
*/
|
|
113
|
-
protected render(): React.ReactNode;
|
|
114
|
-
/**
|
|
115
|
-
* Renders a prompt variant set with its variants
|
|
116
|
-
* @param promptVariantSetId ID of the prompt variant set
|
|
117
|
-
* @param variantIds Array of variant IDs
|
|
118
|
-
* @returns React node for the prompt variant set group
|
|
119
|
-
*/
|
|
120
|
-
protected renderPromptVariantSet(promptVariantSetId: string, variantIds: string[]): React.ReactNode;
|
|
121
|
-
/**
|
|
122
|
-
* Gets fragments that aren't part of any prompt variant set
|
|
123
|
-
* @returns Map of fragment IDs to their customizations
|
|
124
|
-
*/
|
|
125
|
-
protected getNonPromptVariantSetFragments(): Map<string, PromptFragment[]>;
|
|
126
|
-
/**
|
|
127
|
-
* Renders a prompt fragment with all of its customizations
|
|
128
|
-
* @param promptFragmentId ID of the prompt fragment
|
|
129
|
-
* @param customizations Array of the customizations
|
|
130
|
-
* @returns React node for the prompt fragment
|
|
131
|
-
*/
|
|
132
|
-
protected renderPromptFragment(promptFragmentId: string, customizations: PromptFragment[]): React.ReactNode;
|
|
133
|
-
/**
|
|
134
|
-
* Renders a single prompt fragment customization with its controls and content
|
|
135
|
-
* @param promptFragment The prompt fragment to render
|
|
136
|
-
* @returns React node for the prompt fragment
|
|
137
|
-
*/
|
|
138
|
-
protected renderPromptFragmentCustomization(promptFragment: PromptFragment): React.ReactNode;
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=prompt-fragments-configuration-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-fragments-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/prompt-fragments-configuration-widget.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAiB,WAAW,EAAW,MAAM,yBAAyB,CAAC;AAE9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