@theia/ai-ide 1.75.0-next.8 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/ai-allow-all-mode-chat-banner.js +2 -20
- package/lib/browser/ai-allow-all-mode-chat-banner.js.map +1 -1
- package/lib/browser/ai-configuration/agent-icon.d.ts +16 -0
- package/lib/browser/ai-configuration/agent-icon.d.ts.map +1 -0
- package/lib/browser/ai-configuration/agent-icon.js +38 -0
- package/lib/browser/ai-configuration/agent-icon.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.d.ts +36 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js +163 -0
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.d.ts +50 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js +208 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js +139 -0
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.d.ts +13 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +48 -0
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.d.ts +22 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js +72 -0
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js +126 -0
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-resource.d.ts +10 -0
- package/lib/browser/ai-configuration/ai-configuration-resource.d.ts.map +1 -0
- package/lib/browser/ai-configuration/{components/configuration-section.js → ai-configuration-resource.js} +11 -11
- package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.d.ts +29 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js +106 -0
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.d.ts +18 -0
- package/lib/browser/ai-configuration/ai-configuration-search.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.js +45 -0
- package/lib/browser/ai-configuration/ai-configuration-search.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js +79 -0
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-model.d.ts +8 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-model.d.ts.map +1 -0
- package/lib/browser/ai-configuration/{base/ai-configuration-base-widget.js → ai-configuration-tree-model.js} +11 -14
- package/lib/browser/ai-configuration/ai-configuration-tree-model.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.d.ts +57 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js +134 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js +134 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts +96 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js +407 -0
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +38 -4
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +151 -19
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +21 -23
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.js +102 -70
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +56 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +195 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +140 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-chips.d.ts +15 -0
- package/lib/browser/ai-configuration/categories/agent-chips.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-chips.js +19 -0
- package/lib/browser/ai-configuration/categories/agent-chips.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts +37 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.js +99 -0
- package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts +28 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.js +135 -0
- package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +78 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js +352 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js +99 -0
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.d.ts +93 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.js +313 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js +213 -0
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.d.ts +53 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js +241 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js +75 -0
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.d.ts +72 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.js +227 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js +145 -0
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.d.ts +114 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js +341 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js +199 -0
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.d.ts +84 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js +341 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js +184 -0
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.d.ts +38 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +130 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js +51 -0
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.d.ts +60 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js +302 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js +111 -0
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.d.ts +72 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js +245 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js +131 -0
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js.map +1 -0
- package/lib/browser/ai-configuration/components/agent-notification-settings.d.ts +6 -2
- package/lib/browser/ai-configuration/components/agent-notification-settings.d.ts.map +1 -1
- package/lib/browser/ai-configuration/components/agent-notification-settings.js +15 -21
- package/lib/browser/ai-configuration/components/agent-notification-settings.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts +25 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +159 -63
- package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.spec.d.ts +2 -0
- package/lib/browser/ai-configuration/language-model-renderer.spec.d.ts.map +1 -0
- package/lib/browser/ai-configuration/language-model-renderer.spec.js +93 -0
- package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -0
- package/lib/browser/ai-sessions-widget.js +12 -16
- package/lib/browser/ai-sessions-widget.js.map +1 -1
- package/lib/browser/app-tester-chat-agent.d.ts +2 -0
- package/lib/browser/app-tester-chat-agent.d.ts.map +1 -1
- package/lib/browser/app-tester-chat-agent.js +5 -0
- package/lib/browser/app-tester-chat-agent.js.map +1 -1
- package/lib/browser/architect-agent.d.ts +2 -0
- package/lib/browser/architect-agent.d.ts.map +1 -1
- package/lib/browser/architect-agent.js +5 -0
- package/lib/browser/architect-agent.js.map +1 -1
- package/lib/browser/architect-prompt-template.d.ts.map +1 -1
- package/lib/browser/architect-prompt-template.js +7 -0
- package/lib/browser/architect-prompt-template.js.map +1 -1
- package/lib/browser/chat-session-item.d.ts.map +1 -1
- package/lib/browser/chat-session-item.js +17 -30
- package/lib/browser/chat-session-item.js.map +1 -1
- package/lib/browser/chat-session-list-components.js +7 -30
- package/lib/browser/chat-session-list-components.js.map +1 -1
- package/lib/browser/chat-session-list-service.d.ts +2 -1
- package/lib/browser/chat-session-list-service.d.ts.map +1 -1
- package/lib/browser/chat-session-list-service.js +6 -1
- package/lib/browser/chat-session-list-service.js.map +1 -1
- package/lib/browser/chat-sessions-welcome-message-provider.js +3 -21
- package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
- package/lib/browser/code-reviewer-agent.d.ts +2 -0
- package/lib/browser/code-reviewer-agent.d.ts.map +1 -1
- package/lib/browser/code-reviewer-agent.js +5 -0
- package/lib/browser/code-reviewer-agent.js.map +1 -1
- package/lib/browser/coder-agent.d.ts +2 -0
- package/lib/browser/coder-agent.d.ts.map +1 -1
- package/lib/browser/coder-agent.js +6 -1
- package/lib/browser/coder-agent.js.map +1 -1
- package/lib/browser/context-file-validation-service-impl.spec.js +2 -0
- package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
- package/lib/browser/create-skill-agent.d.ts +2 -0
- package/lib/browser/create-skill-agent.d.ts.map +1 -1
- package/lib/browser/create-skill-agent.js +5 -0
- package/lib/browser/create-skill-agent.js.map +1 -1
- package/lib/browser/explore-agent.d.ts +2 -0
- package/lib/browser/explore-agent.d.ts.map +1 -1
- package/lib/browser/explore-agent.js +5 -0
- package/lib/browser/explore-agent.js.map +1 -1
- package/lib/browser/file-changeset-functions.d.ts +7 -1
- package/lib/browser/file-changeset-functions.d.ts.map +1 -1
- package/lib/browser/file-changeset-functions.js +62 -20
- package/lib/browser/file-changeset-functions.js.map +1 -1
- package/lib/browser/file-changeset-functions.spec.js +130 -1
- package/lib/browser/file-changeset-functions.spec.js.map +1 -1
- package/lib/browser/frontend-module.d.ts.map +1 -1
- package/lib/browser/frontend-module.js +65 -59
- package/lib/browser/frontend-module.js.map +1 -1
- package/lib/browser/github-chat-agent.d.ts +2 -1
- package/lib/browser/github-chat-agent.d.ts.map +1 -1
- package/lib/browser/github-chat-agent.js +5 -0
- package/lib/browser/github-chat-agent.js.map +1 -1
- package/lib/browser/github-repo-variable-contribution.d.ts +2 -1
- package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -1
- package/lib/browser/github-repo-variable-contribution.js +6 -1
- package/lib/browser/github-repo-variable-contribution.js.map +1 -1
- package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +1 -1
- package/lib/browser/ide-chat-welcome-message-provider.js +31 -118
- package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -1
- package/lib/browser/memory-capability-contribution.d.ts +8 -0
- package/lib/browser/memory-capability-contribution.d.ts.map +1 -0
- package/lib/browser/memory-capability-contribution.js +88 -0
- package/lib/browser/memory-capability-contribution.js.map +1 -0
- package/lib/browser/memory-capability-contribution.spec.d.ts +2 -0
- package/lib/browser/memory-capability-contribution.spec.d.ts.map +1 -0
- package/lib/browser/memory-capability-contribution.spec.js +74 -0
- package/lib/browser/memory-capability-contribution.spec.js.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.d.ts +41 -0
- package/lib/browser/memory-directory-variable-contribution.d.ts.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.js +107 -0
- package/lib/browser/memory-directory-variable-contribution.js.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.spec.d.ts +2 -0
- package/lib/browser/memory-directory-variable-contribution.spec.d.ts.map +1 -0
- package/lib/browser/memory-directory-variable-contribution.spec.js +98 -0
- package/lib/browser/memory-directory-variable-contribution.spec.js.map +1 -0
- package/lib/browser/open-editors-hint-contribution.d.ts +7 -0
- package/lib/browser/open-editors-hint-contribution.d.ts.map +1 -0
- package/lib/browser/open-editors-hint-contribution.js +43 -0
- package/lib/browser/open-editors-hint-contribution.js.map +1 -0
- package/lib/browser/project-info-agent.d.ts +2 -0
- package/lib/browser/project-info-agent.d.ts.map +1 -1
- package/lib/browser/project-info-agent.js +5 -0
- package/lib/browser/project-info-agent.js.map +1 -1
- package/lib/browser/review/pr-review-agent.d.ts +2 -0
- package/lib/browser/review/pr-review-agent.d.ts.map +1 -1
- package/lib/browser/review/pr-review-agent.js +5 -0
- package/lib/browser/review/pr-review-agent.js.map +1 -1
- package/lib/browser/summarize-session-command-contribution.d.ts +2 -1
- package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -1
- package/lib/browser/summarize-session-command-contribution.js +6 -1
- package/lib/browser/summarize-session-command-contribution.js.map +1 -1
- package/lib/browser/task-context-file-storage-service.d.ts.map +1 -1
- package/lib/browser/task-context-file-storage-service.js +1 -0
- package/lib/browser/task-context-file-storage-service.js.map +1 -1
- package/lib/browser/todo-tool-renderer.js +11 -19
- package/lib/browser/todo-tool-renderer.js.map +1 -1
- package/lib/browser/user-interaction-tool-renderer.js +39 -83
- package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
- package/lib/browser/user-interaction-tool.d.ts +2 -0
- package/lib/browser/user-interaction-tool.d.ts.map +1 -1
- package/lib/browser/user-interaction-tool.js +7 -1
- package/lib/browser/user-interaction-tool.js.map +1 -1
- package/lib/browser/user-interaction-tool.spec.js +4 -2
- package/lib/browser/user-interaction-tool.spec.js.map +1 -1
- package/lib/browser/workspace-functions.d.ts +45 -7
- package/lib/browser/workspace-functions.d.ts.map +1 -1
- package/lib/browser/workspace-functions.js +108 -70
- package/lib/browser/workspace-functions.js.map +1 -1
- package/lib/browser/workspace-functions.spec.js +139 -9
- package/lib/browser/workspace-functions.spec.js.map +1 -1
- package/lib/browser/workspace-launch-provider.spec.js +3 -0
- package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
- package/lib/browser/workspace-search-provider.d.ts.map +1 -1
- package/lib/browser/workspace-search-provider.js +4 -7
- package/lib/browser/workspace-search-provider.js.map +1 -1
- package/lib/browser/workspace-search-provider.spec.js +1 -2
- package/lib/browser/workspace-search-provider.spec.js.map +1 -1
- package/lib/browser/workspace-task-provider.spec.js +4 -0
- package/lib/browser/workspace-task-provider.spec.js.map +1 -1
- package/lib/common/coder-replace-prompt-template.d.ts +0 -2
- package/lib/common/coder-replace-prompt-template.d.ts.map +1 -1
- package/lib/common/coder-replace-prompt-template.js +10 -11
- package/lib/common/coder-replace-prompt-template.js.map +1 -1
- package/lib/common/command-chat-agents.d.ts +2 -1
- package/lib/common/command-chat-agents.d.ts.map +1 -1
- package/lib/common/command-chat-agents.js +6 -1
- package/lib/common/command-chat-agents.js.map +1 -1
- package/lib/common/open-editors-hint-fragment-id.d.ts +2 -0
- package/lib/common/open-editors-hint-fragment-id.d.ts.map +1 -0
- package/lib/{browser/ai-configuration/components/empty-state.js → common/open-editors-hint-fragment-id.js} +5 -11
- package/lib/common/open-editors-hint-fragment-id.js.map +1 -0
- package/lib/common/orchestrator-chat-agent.d.ts +2 -1
- package/lib/common/orchestrator-chat-agent.d.ts.map +1 -1
- package/lib/common/orchestrator-chat-agent.js +5 -0
- package/lib/common/orchestrator-chat-agent.js.map +1 -1
- package/lib/common/universal-chat-agent.d.ts +2 -0
- package/lib/common/universal-chat-agent.d.ts.map +1 -1
- package/lib/common/universal-chat-agent.js +5 -0
- package/lib/common/universal-chat-agent.js.map +1 -1
- package/lib/common/universal-prompt-template.d.ts.map +1 -1
- package/lib/common/universal-prompt-template.js +3 -0
- package/lib/common/universal-prompt-template.js.map +1 -1
- package/lib/common/workspace-preferences.js +2 -2
- package/lib/common/workspace-preferences.js.map +1 -1
- package/lib/common/workspace-search-provider-util.d.ts +2 -1
- package/lib/common/workspace-search-provider-util.d.ts.map +1 -1
- package/lib/common/workspace-search-provider-util.js +3 -2
- package/lib/common/workspace-search-provider-util.js.map +1 -1
- package/lib/common/workspace-search-provider-util.spec.d.ts +2 -0
- package/lib/common/workspace-search-provider-util.spec.d.ts.map +1 -0
- package/lib/common/workspace-search-provider-util.spec.js +55 -0
- package/lib/common/workspace-search-provider-util.spec.js.map +1 -0
- package/lib/node/github-repo-service-impl.d.ts +2 -0
- package/lib/node/github-repo-service-impl.d.ts.map +1 -1
- package/lib/node/github-repo-service-impl.js +7 -1
- package/lib/node/github-repo-service-impl.js.map +1 -1
- package/package.json +26 -25
- package/src/browser/ai-configuration/agent-icon.ts +37 -0
- package/src/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.ts +164 -0
- package/src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts +165 -0
- package/src/browser/ai-configuration/ai-configuration-detail-widget.tsx +237 -0
- package/src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts +47 -0
- package/src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts +64 -0
- package/src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts +135 -0
- package/src/browser/ai-configuration/{components/configuration-section.tsx → ai-configuration-resource.ts} +9 -19
- package/src/browser/ai-configuration/ai-configuration-search-widget.tsx +135 -0
- package/src/browser/ai-configuration/ai-configuration-search.spec.ts +91 -0
- package/src/browser/ai-configuration/ai-configuration-search.ts +43 -0
- package/src/browser/ai-configuration/{components/empty-state.tsx → ai-configuration-tree-model.ts} +7 -11
- package/src/browser/ai-configuration/ai-configuration-tree-nodes.spec.ts +150 -0
- package/src/browser/ai-configuration/ai-configuration-tree-nodes.ts +167 -0
- package/src/browser/ai-configuration/ai-configuration-tree-widget.tsx +457 -0
- package/src/browser/ai-configuration/ai-configuration-view-contribution.ts +156 -18
- package/src/browser/ai-configuration/ai-configuration-widget.tsx +107 -75
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +161 -0
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +340 -0
- package/src/browser/ai-configuration/categories/agent-chips.tsx +51 -0
- package/src/browser/ai-configuration/categories/agent-detail-model.ts +152 -0
- package/src/browser/ai-configuration/categories/agent-detail-view.tsx +329 -0
- package/src/browser/ai-configuration/categories/agents-configuration-category.spec.ts +119 -0
- package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +431 -0
- package/src/browser/ai-configuration/categories/general-configuration-category.spec.ts +225 -0
- package/src/browser/ai-configuration/categories/general-configuration-category.tsx +465 -0
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.spec.ts +87 -0
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.tsx +286 -0
- package/src/browser/ai-configuration/categories/models-configuration-category.spec.ts +167 -0
- package/src/browser/ai-configuration/categories/models-configuration-category.tsx +264 -0
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts +250 -0
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx +438 -0
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts +226 -0
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx +419 -0
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.spec.ts +57 -0
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +185 -0
- package/src/browser/ai-configuration/categories/tools-configuration-category.spec.ts +130 -0
- package/src/browser/ai-configuration/categories/tools-configuration-category.tsx +421 -0
- package/src/browser/ai-configuration/categories/variables-configuration-category.spec.ts +154 -0
- package/src/browser/ai-configuration/categories/variables-configuration-category.tsx +322 -0
- package/src/browser/ai-configuration/components/agent-notification-settings.tsx +38 -33
- package/src/browser/ai-configuration/language-model-renderer.spec.ts +100 -0
- package/src/browser/ai-configuration/language-model-renderer.tsx +244 -100
- package/src/browser/app-tester-chat-agent.ts +5 -2
- package/src/browser/architect-agent.ts +5 -2
- package/src/browser/architect-prompt-template.ts +7 -0
- package/src/browser/chat-session-item.tsx +2 -4
- package/src/browser/chat-session-list-service.ts +6 -3
- package/src/browser/code-reviewer-agent.ts +5 -2
- package/src/browser/coder-agent.ts +7 -5
- package/src/browser/context-file-validation-service-impl.spec.ts +3 -2
- package/src/browser/create-skill-agent.ts +5 -2
- package/src/browser/explore-agent.ts +5 -2
- package/src/browser/file-changeset-functions.spec.ts +158 -5
- package/src/browser/file-changeset-functions.ts +61 -23
- package/src/browser/frontend-module.ts +76 -63
- package/src/browser/github-chat-agent.ts +5 -2
- package/src/browser/github-repo-variable-contribution.ts +6 -3
- package/src/browser/ide-chat-welcome-message-provider.tsx +11 -11
- package/src/browser/memory-capability-contribution.spec.ts +85 -0
- package/src/browser/memory-capability-contribution.ts +86 -0
- package/src/browser/memory-directory-variable-contribution.spec.ts +113 -0
- package/src/browser/memory-directory-variable-contribution.ts +113 -0
- package/src/browser/open-editors-hint-contribution.ts +38 -0
- package/src/browser/project-info-agent.ts +5 -2
- package/src/browser/review/pr-review-agent.ts +5 -2
- package/src/browser/style/ai-configuration-base.css +0 -6
- package/src/browser/style/ai-configuration-shell.css +416 -0
- package/src/browser/style/ai-configuration-table.css +2 -15
- package/src/browser/style/index.css +220 -276
- package/src/browser/summarize-session-command-contribution.ts +6 -3
- package/src/browser/task-context-file-storage-service.ts +5 -2
- package/src/browser/user-interaction-tool.spec.ts +5 -2
- package/src/browser/user-interaction-tool.ts +6 -2
- package/src/browser/workspace-functions.spec.ts +163 -10
- package/src/browser/workspace-functions.ts +121 -72
- package/src/browser/workspace-launch-provider.spec.ts +4 -1
- package/src/browser/workspace-search-provider.spec.ts +1 -2
- package/src/browser/workspace-search-provider.ts +4 -7
- package/src/browser/workspace-task-provider.spec.ts +5 -1
- package/src/common/coder-replace-prompt-template.ts +9 -9
- package/src/common/command-chat-agents.ts +6 -2
- package/src/{browser/ai-configuration/base/ai-configuration-base-widget.tsx → common/open-editors-hint-fragment-id.ts} +2 -22
- package/src/common/orchestrator-chat-agent.ts +5 -2
- package/src/common/universal-chat-agent.ts +5 -2
- package/src/common/universal-prompt-template.ts +3 -0
- package/src/common/workspace-preferences.ts +2 -2
- package/src/common/workspace-search-provider-util.spec.ts +61 -0
- package/src/common/workspace-search-provider-util.ts +3 -2
- package/src/node/github-repo-service-impl.ts +6 -2
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +0 -72
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.js +0 -620
- package/lib/browser/ai-configuration/agent-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.d.ts +0 -2
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.d.ts.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.js +0 -56
- package/lib/browser/ai-configuration/agent-configuration-widget.spec.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.d.ts +0 -31
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.js +0 -55
- package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-configuration-base-widget.d.ts +0 -13
- package/lib/browser/ai-configuration/base/ai-configuration-base-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-configuration-base-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.d.ts +0 -23
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.js +0 -60
- package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.d.ts +0 -55
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.js +0 -96
- package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.d.ts +0 -44
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.js +0 -66
- package/lib/browser/ai-configuration/base/ai-table-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/components/configuration-section.d.ts +0 -12
- package/lib/browser/ai-configuration/components/configuration-section.d.ts.map +0 -1
- package/lib/browser/ai-configuration/components/configuration-section.js.map +0 -1
- package/lib/browser/ai-configuration/components/empty-state.d.ts +0 -10
- package/lib/browser/ai-configuration/components/empty-state.d.ts.map +0 -1
- package/lib/browser/ai-configuration/components/empty-state.js.map +0 -1
- package/lib/browser/ai-configuration/components/expandable-section.d.ts +0 -13
- package/lib/browser/ai-configuration/components/expandable-section.d.ts.map +0 -1
- package/lib/browser/ai-configuration/components/expandable-section.js +0 -31
- package/lib/browser/ai-configuration/components/expandable-section.js.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +0 -26
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +0 -198
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +0 -140
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +0 -508
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.d.ts +0 -29
- package/lib/browser/ai-configuration/skills-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.js +0 -166
- package/lib/browser/ai-configuration/skills-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.d.ts +0 -2
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.d.ts.map +0 -1
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.js +0 -191
- package/lib/browser/ai-configuration/skills-configuration-widget.spec.js.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts +0 -9
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.js +0 -78
- package/lib/browser/ai-configuration/template-settings-renderer.js.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +0 -20
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js +0 -170
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +0 -52
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.js +0 -357
- package/lib/browser/ai-configuration/tools-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +0 -22
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.js +0 -133
- package/lib/browser/ai-configuration/variable-configuration-widget.js.map +0 -1
- package/src/browser/ai-configuration/agent-configuration-widget.spec.ts +0 -71
- package/src/browser/ai-configuration/agent-configuration-widget.tsx +0 -928
- package/src/browser/ai-configuration/base/ai-card-grid-configuration-widget.tsx +0 -72
- package/src/browser/ai-configuration/base/ai-hierarchical-configuration-widget.tsx +0 -51
- package/src/browser/ai-configuration/base/ai-list-detail-configuration-widget.tsx +0 -140
- package/src/browser/ai-configuration/base/ai-table-configuration-widget.tsx +0 -107
- package/src/browser/ai-configuration/components/expandable-section.tsx +0 -51
- package/src/browser/ai-configuration/model-aliases-configuration-widget.tsx +0 -270
- package/src/browser/ai-configuration/prompt-fragments-configuration-widget.tsx +0 -736
- package/src/browser/ai-configuration/skills-configuration-widget.spec.ts +0 -248
- package/src/browser/ai-configuration/skills-configuration-widget.tsx +0 -229
- package/src/browser/ai-configuration/template-settings-renderer.tsx +0 -125
- package/src/browser/ai-configuration/token-usage-configuration-widget.tsx +0 -214
- package/src/browser/ai-configuration/tools-configuration-widget.tsx +0 -544
- package/src/browser/ai-configuration/variable-configuration-widget.tsx +0 -159
- package/src/browser/style/ai-configuration-cards.css +0 -60
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PromptSnippetsConfigurationCategory = exports.PromptSnippetsConfiguration = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
6
|
+
// *****************************************************************************
|
|
7
|
+
// Copyright (C) 2026 EclipseSource and others.
|
|
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 ai_core_1 = require("@theia/ai-core");
|
|
22
|
+
const common_1 = require("@theia/ai-core/lib/common");
|
|
23
|
+
const prompt_service_1 = require("@theia/ai-core/lib/common/prompt-service");
|
|
24
|
+
const core_1 = require("@theia/core");
|
|
25
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
26
|
+
const common_2 = require("@theia/core/lib/common");
|
|
27
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
28
|
+
const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
|
|
29
|
+
const single_page_category_renderer_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/renderers/single-page-category-renderer");
|
|
30
|
+
const collapsible_list_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/collapsible-list");
|
|
31
|
+
const prompt_customization_dialogs_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/prompt-customization-dialogs");
|
|
32
|
+
const ai_configuration_primitives_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-primitives");
|
|
33
|
+
const agent_chips_1 = require("./agent-chips");
|
|
34
|
+
/**
|
|
35
|
+
* Fragments generated per running MCP server, named after `McpFrontendService.getPromptTemplateId`.
|
|
36
|
+
* Excluded from this page: they are rebuilt from the live tool list whenever a server starts, so a
|
|
37
|
+
* customization would silently diverge from the tools the server actually offers. The generated tool
|
|
38
|
+
* list is visible on the MCP Servers page instead.
|
|
39
|
+
*/
|
|
40
|
+
const MCP_TOOL_LIST_FRAGMENT_PATTERN = /^mcp_.+_tools$/;
|
|
41
|
+
var PromptSnippetsConfiguration;
|
|
42
|
+
(function (PromptSnippetsConfiguration) {
|
|
43
|
+
/**
|
|
44
|
+
* Prefix of the `data-ai-config-row-id` of every row on this page, regardless of its group, so that
|
|
45
|
+
* a deep link only needs the fragment id (an agent's capability list, for instance, does not know
|
|
46
|
+
* whether a fragment ends up under Capabilities or Generic Capabilities).
|
|
47
|
+
*/
|
|
48
|
+
PromptSnippetsConfiguration.ROW_ID_PREFIX = 'fragment:';
|
|
49
|
+
/** Navigation target that scrolls to and flashes `fragmentId`'s row on this page. */
|
|
50
|
+
function selectionFor(fragmentId) {
|
|
51
|
+
return {
|
|
52
|
+
categoryId: ai_configuration_category_1.AiConfigurationCategoryId.PROMPT_SNIPPETS,
|
|
53
|
+
highlight: { rowId: PromptSnippetsConfiguration.ROW_ID_PREFIX + fragmentId }
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
PromptSnippetsConfiguration.selectionFor = selectionFor;
|
|
57
|
+
})(PromptSnippetsConfiguration || (exports.PromptSnippetsConfiguration = PromptSnippetsConfiguration = {}));
|
|
58
|
+
/**
|
|
59
|
+
* The "Prompt Snippets" category: every prompt fragment that has no other home in this view, as a
|
|
60
|
+
* filterable list of expandable rows in three groups — user-authored snippets, agent capabilities and
|
|
61
|
+
* generic capabilities. Prompt variant sets live in the agent detail, skills and slash commands on the
|
|
62
|
+
* Skills page, so those are filtered out here; what remains would otherwise be uneditable, which is
|
|
63
|
+
* what this page fixes.
|
|
64
|
+
*
|
|
65
|
+
* Capability fragments are global: editing one affects every agent that references it, which is why
|
|
66
|
+
* each row lists the agents using it rather than pretending the text belongs to one of them.
|
|
67
|
+
*/
|
|
68
|
+
let PromptSnippetsConfigurationCategory = class PromptSnippetsConfigurationCategory extends single_page_category_renderer_1.SinglePageCategoryRenderer {
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments);
|
|
71
|
+
this.id = ai_configuration_category_1.AiConfigurationCategoryId.PROMPT_SNIPPETS;
|
|
72
|
+
this.label = core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/label', 'Prompt Snippets');
|
|
73
|
+
this.description = core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/description', 'Reusable prompt text: your own snippets plus the capability snippets agents pull in. Editing a snippet affects every agent that uses it.');
|
|
74
|
+
this.iconClass = (0, browser_1.codicon)('file-code');
|
|
75
|
+
this.order = ai_configuration_category_1.AiConfigurationCategoryOrder.PROMPT_SNIPPETS;
|
|
76
|
+
this.kind = 'single-page';
|
|
77
|
+
this.onDidChangeEmitter = new core_1.Emitter();
|
|
78
|
+
this.onDidChange = this.onDidChangeEmitter.event;
|
|
79
|
+
this.toDispose = new common_2.DisposableCollection(this.onDidChangeEmitter);
|
|
80
|
+
this.entries = [];
|
|
81
|
+
this.availableAgents = [];
|
|
82
|
+
}
|
|
83
|
+
get renderer() {
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
get search() {
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
init() {
|
|
90
|
+
this.reload();
|
|
91
|
+
this.toDispose.pushAll([
|
|
92
|
+
this.promptService.onPromptsChange(() => {
|
|
93
|
+
this.reload();
|
|
94
|
+
this.onDidChangeEmitter.fire();
|
|
95
|
+
}),
|
|
96
|
+
this.agentService.onDidChangeAgents(() => {
|
|
97
|
+
this.reload();
|
|
98
|
+
this.onDidChangeEmitter.fire();
|
|
99
|
+
})
|
|
100
|
+
]);
|
|
101
|
+
}
|
|
102
|
+
dispose() {
|
|
103
|
+
this.toDispose.dispose();
|
|
104
|
+
}
|
|
105
|
+
reload() {
|
|
106
|
+
this.availableAgents = this.agentService.getAllAgents();
|
|
107
|
+
this.entries = this.loadEntries();
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Classifies every registered fragment, dropping those another part of the view already owns.
|
|
111
|
+
* Grouped by {@link PromptSnippetKind} and sorted by display name within each group.
|
|
112
|
+
*/
|
|
113
|
+
loadEntries() {
|
|
114
|
+
const capabilityAgents = this.collectCapabilityReferences();
|
|
115
|
+
const genericCapabilityIds = new Set(common_1.CAPABILITY_TYPE_PROMPT_MAP.map(({ promptId }) => promptId));
|
|
116
|
+
const ownedElsewhere = this.collectFragmentIdsOwnedElsewhere();
|
|
117
|
+
const entries = [];
|
|
118
|
+
for (const [id, fragments] of this.promptService.getAllPromptFragments()) {
|
|
119
|
+
if (ownedElsewhere.has(id) || MCP_TOOL_LIST_FRAGMENT_PATTERN.test(id)) {
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
const effective = this.promptService.getRawPromptFragment(id) ?? fragments[0];
|
|
123
|
+
// Slash commands (including the synthetic ones backing a skill) belong to the Skills page. Checking
|
|
124
|
+
// every fragment, not just the effective one, keeps a command hidden here even if a customization
|
|
125
|
+
// drops the `isCommand` frontmatter.
|
|
126
|
+
if (!effective || fragments.some(fragment => fragment.isCommand)) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const agentIds = capabilityAgents.get(id) ?? [];
|
|
130
|
+
entries.push({
|
|
131
|
+
id,
|
|
132
|
+
kind: this.classify(id, effective, genericCapabilityIds, agentIds.length > 0),
|
|
133
|
+
name: effective.name,
|
|
134
|
+
description: effective.description,
|
|
135
|
+
customized: fragments.some(fragment => (0, prompt_service_1.isCustomizedPromptFragment)(fragment)),
|
|
136
|
+
hasBuiltIn: fragments.some(fragment => !(0, prompt_service_1.isCustomizedPromptFragment)(fragment)),
|
|
137
|
+
agentIds
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return entries.sort((left, right) => this.displayName(left).localeCompare(this.displayName(right)));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* A fragment is a *generic* capability when it is one of the fixed set the chat dropdowns inject
|
|
144
|
+
* (`CAPABILITY_TYPE_PROMPT_MAP` is that single source of truth), and a *capability* when an agent
|
|
145
|
+
* references it as `{{capability:id}}`. Declared frontmatter is accepted as a fallback so that a
|
|
146
|
+
* capability shipped by an extension still groups correctly before any agent template pulls it in.
|
|
147
|
+
*/
|
|
148
|
+
classify(id, fragment, genericCapabilityIds, referencedByAgent) {
|
|
149
|
+
if (genericCapabilityIds.has(id)) {
|
|
150
|
+
return 'generic-capability';
|
|
151
|
+
}
|
|
152
|
+
if (referencedByAgent || fragment.name !== undefined || fragment.description !== undefined) {
|
|
153
|
+
return 'capability';
|
|
154
|
+
}
|
|
155
|
+
return 'snippet';
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Maps capability fragment id -> ids of the agents referencing it. Mirrors the agent detail page,
|
|
159
|
+
* which parses `{{capability:...}}` out of each agent's selected prompt, so both agree on what
|
|
160
|
+
* counts as a capability. Uses the globally effective variant to stay synchronous; the agent detail
|
|
161
|
+
* additionally honours that agent's own variant selection.
|
|
162
|
+
*/
|
|
163
|
+
collectCapabilityReferences() {
|
|
164
|
+
const references = new Map();
|
|
165
|
+
for (const agent of this.availableAgents) {
|
|
166
|
+
for (const prompt of agent.prompts) {
|
|
167
|
+
const variantId = this.promptService.getEffectiveVariantId(prompt.id) ?? prompt.id;
|
|
168
|
+
const template = this.promptService.getRawPromptFragment(variantId)?.template;
|
|
169
|
+
if (!template) {
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
for (const capability of (0, common_1.parseCapabilitiesFromTemplate)(template)) {
|
|
173
|
+
const agents = references.get(capability.fragmentId) ?? [];
|
|
174
|
+
if (!agents.includes(agent.id)) {
|
|
175
|
+
agents.push(agent.id);
|
|
176
|
+
}
|
|
177
|
+
references.set(capability.fragmentId, agents);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return references;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Fragment ids another part of the view is responsible for: the prompt variant sets and their
|
|
185
|
+
* variants, which the agent detail owns as the single source of truth.
|
|
186
|
+
*/
|
|
187
|
+
collectFragmentIdsOwnedElsewhere() {
|
|
188
|
+
const owned = new Set();
|
|
189
|
+
for (const [variantSetId, variantIds] of this.promptService.getPromptVariantSets()) {
|
|
190
|
+
owned.add(variantSetId);
|
|
191
|
+
variantIds.forEach(variantId => owned.add(variantId));
|
|
192
|
+
}
|
|
193
|
+
return owned;
|
|
194
|
+
}
|
|
195
|
+
displayName(entry) {
|
|
196
|
+
return entry.name ?? entry.id;
|
|
197
|
+
}
|
|
198
|
+
renderSections(ctx) {
|
|
199
|
+
const onOpenAgent = (agentId) => ctx.navigate({ categoryId: ai_configuration_category_1.AiConfigurationCategoryId.AGENTS, itemId: agentId });
|
|
200
|
+
const groups = [
|
|
201
|
+
{
|
|
202
|
+
id: 'snippets',
|
|
203
|
+
title: core_1.nls.localizeByDefault('Snippets'),
|
|
204
|
+
description: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/snippetsGroupDescription', 'Prompt text you maintain yourself, referenced from other prompts with {{prompt:id}}.'),
|
|
205
|
+
rows: this.buildRows('snippet', ctx, onOpenAgent)
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: 'capabilities',
|
|
209
|
+
title: core_1.nls.localizeByDefault('Capabilities'),
|
|
210
|
+
description: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/capabilitiesGroupDescription', 'Instructions an agent adds to its prompt when enabled. They are shared, so an edit affects every agent using them.'),
|
|
211
|
+
rows: this.buildRows('capability', ctx, onOpenAgent)
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: 'generic-capabilities',
|
|
215
|
+
title: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/genericCapabilitiesGroup', 'Generic Capabilities'),
|
|
216
|
+
description: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/genericCapabilitiesGroupDescription', 'Basic instructions to integrate the selected capabilities into the agent\'s prompt. They are shared, so an edit affects every agent using them.'),
|
|
217
|
+
rows: this.buildRows('generic-capability', ctx, onOpenAgent)
|
|
218
|
+
}
|
|
219
|
+
];
|
|
220
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [this.renderResetAllCallout(ctx), (0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleList, { groups: groups, filterPlaceholder: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/filterPlaceholder', 'Filter prompt snippets by name, id or description'), emptyMessage: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/empty', 'No prompt snippets are available.'), filterEmptyMessage: query => core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/noMatches', 'No prompt snippets match "{0}".', query) })] });
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Page-level reset, as the prompt fragments page it replaces had. Shown only while something is
|
|
224
|
+
* customized, and explicit that it reverts *every* customization — including the agents' prompt
|
|
225
|
+
* variants, which live on their own pages.
|
|
226
|
+
*/
|
|
227
|
+
renderResetAllCallout(ctx) {
|
|
228
|
+
if (!this.hasResettableCustomizations()) {
|
|
229
|
+
return undefined;
|
|
230
|
+
}
|
|
231
|
+
return (0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationCallout, { message: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetAllMessage', 'Some prompt fragments are customized. Resetting reverts every one of them to its built-in version, '
|
|
232
|
+
+ 'including the agents\' prompt templates. Snippets that have no built-in version are kept.'), action: (0, jsx_runtime_1.jsx)("button", { className: 'theia-button secondary', onClick: () => this.resetAllCustomizations(ctx), children: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetAll', 'Reset All Customizations') }) });
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Whether anything would actually be reset. Deliberately not limited to this page's entries: the action
|
|
236
|
+
* reverts every customized fragment that has a built-in, which includes the agents' prompt templates
|
|
237
|
+
* (listed on their own pages), so gating on the rows here would hide it exactly when it is needed.
|
|
238
|
+
*/
|
|
239
|
+
hasResettableCustomizations() {
|
|
240
|
+
for (const fragments of this.promptService.getAllPromptFragments().values()) {
|
|
241
|
+
if (fragments.some(fragment => (0, prompt_service_1.isCustomizedPromptFragment)(fragment)) && fragments.some(fragment => !(0, prompt_service_1.isCustomizedPromptFragment)(fragment))) {
|
|
242
|
+
return true;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
async resetAllCustomizations(ctx) {
|
|
248
|
+
const dialog = new browser_1.ConfirmDialog({
|
|
249
|
+
title: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetAllDialogTitle', 'Reset All Customizations'),
|
|
250
|
+
msg: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetAllDialogMsg', 'Are you sure you want to reset every customized prompt fragment to its built-in version? '
|
|
251
|
+
+ 'This includes the agents\' prompt templates, not only the snippets listed here. '
|
|
252
|
+
+ 'Snippets that have no built-in version are kept.'),
|
|
253
|
+
ok: core_1.nls.localizeByDefault('Reset'),
|
|
254
|
+
cancel: core_1.nls.localizeByDefault('Cancel')
|
|
255
|
+
});
|
|
256
|
+
if (await dialog.open()) {
|
|
257
|
+
await this.promptService.resetAllToBuiltIn();
|
|
258
|
+
ctx.update();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
buildRows(kind, ctx, onOpenAgent) {
|
|
262
|
+
return this.entries.filter(entry => entry.kind === kind).map(entry => this.buildRow(entry, ctx, onOpenAgent));
|
|
263
|
+
}
|
|
264
|
+
buildRow(entry, ctx, onOpenAgent) {
|
|
265
|
+
const agents = this.availableAgents.filter(agent => entry.agentIds.includes(agent.id));
|
|
266
|
+
const pills = [];
|
|
267
|
+
if (entry.customized) {
|
|
268
|
+
pills.push(core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/customized', 'Customized'));
|
|
269
|
+
}
|
|
270
|
+
if (agents.length > 0) {
|
|
271
|
+
pills.push(agents.length === 1 ? core_1.nls.localizeByDefault('1 agent') : core_1.nls.localizeByDefault('{0} agents', agents.length));
|
|
272
|
+
}
|
|
273
|
+
return {
|
|
274
|
+
id: PromptSnippetsConfiguration.ROW_ID_PREFIX + entry.id,
|
|
275
|
+
title: this.displayName(entry),
|
|
276
|
+
description: entry.description,
|
|
277
|
+
pills,
|
|
278
|
+
filterText: `${entry.id} ${entry.name ?? ''} ${entry.description ?? ''}`.toLocaleLowerCase(),
|
|
279
|
+
actions: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleRowAction, { iconClass: (0, browser_1.codicon)('edit'), label: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/editSnippet', 'Edit snippet'), onActivate: () => this.editEntry(entry) }), entry.customized && entry.hasBuiltIn && (0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleRowAction, { iconClass: (0, browser_1.codicon)('discard'), label: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetSnippet', 'Reset snippet to built-in'), onActivate: () => this.resetEntry(entry, ctx) }), entry.customized && !entry.hasBuiltIn && (0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleRowAction, { iconClass: (0, browser_1.codicon)('trash'), label: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/removeSnippet', 'Remove snippet'), onActivate: () => this.removeEntry(entry, ctx) })] }),
|
|
280
|
+
body: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'ai-variable-id-row', children: [(0, jsx_runtime_1.jsx)("span", { className: 'ai-variable-id-label', children: core_1.nls.localizeByDefault('ID') }), (0, jsx_runtime_1.jsx)("code", { className: 'ai-variable-id-value', children: entry.id })] }), agents.length > 0 && (0, jsx_runtime_1.jsxs)("div", { className: 'ai-variable-section', children: [(0, jsx_runtime_1.jsx)("div", { className: 'ai-variable-section-label', children: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/usedByAgents', 'Used by Agents') }), (0, jsx_runtime_1.jsx)(agent_chips_1.AgentChips, { agents: agents, onOpenAgent: onOpenAgent })] })] })
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
/** Opens the effective text: the customization if there is one, otherwise a fresh copy of the built-in. */
|
|
284
|
+
editEntry(entry) {
|
|
285
|
+
const fragment = this.promptService.getRawPromptFragment(entry.id);
|
|
286
|
+
if (fragment && (0, prompt_service_1.isCustomizedPromptFragment)(fragment)) {
|
|
287
|
+
this.promptService.editCustomization(fragment.id, fragment.customizationId);
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
this.promptService.editBuiltInCustomization(entry.id);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/** Drops all customizations so the built-in text applies again. */
|
|
294
|
+
async resetEntry(entry, ctx) {
|
|
295
|
+
await prompt_customization_dialogs_1.PromptCustomizationDialogs.confirmAndReset(this.promptService, entry.id, core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetDialogTitle', 'Reset Snippet to Built-in'), core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/resetDialogMsg', 'Are you sure you want to reset the snippet "{0}" to its built-in version? This will remove all customizations.', entry.id));
|
|
296
|
+
ctx.update();
|
|
297
|
+
}
|
|
298
|
+
/** Deletes a snippet that has no built-in behind it, naming the file, since it is gone afterwards. */
|
|
299
|
+
async removeEntry(entry, ctx) {
|
|
300
|
+
await prompt_customization_dialogs_1.PromptCustomizationDialogs.confirmAndRemove(this.promptService, entry.id, {
|
|
301
|
+
title: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/removeDialogTitle', 'Remove Snippet'),
|
|
302
|
+
message: ({ type, description }) => description
|
|
303
|
+
? core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/removeWithDescDialogMsg', 'Are you sure you want to remove the {0} customization for snippet "{1}" ({2})? It has no built-in version, so it will be gone entirely.', type ?? '', entry.id, description)
|
|
304
|
+
: core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/removeDialogMsg', 'Are you sure you want to remove the {0} customization for snippet "{1}"? It has no built-in version, so it will be gone entirely.', type ?? '', entry.id)
|
|
305
|
+
});
|
|
306
|
+
ctx.update();
|
|
307
|
+
}
|
|
308
|
+
getSearchItems() {
|
|
309
|
+
const typeLabels = {
|
|
310
|
+
'snippet': core_1.nls.localizeByDefault('Snippet'),
|
|
311
|
+
'capability': core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/capabilityTypeLabel', 'Capability'),
|
|
312
|
+
'generic-capability': core_1.nls.localize('theia/ai/ide/promptSnippetsConfiguration/genericCapabilityTypeLabel', 'Generic capability')
|
|
313
|
+
};
|
|
314
|
+
return this.entries.map(entry => ({
|
|
315
|
+
label: this.displayName(entry),
|
|
316
|
+
typeLabel: typeLabels[entry.kind],
|
|
317
|
+
categoryId: this.id,
|
|
318
|
+
target: PromptSnippetsConfiguration.selectionFor(entry.id),
|
|
319
|
+
keywords: `${entry.id} ${entry.description ?? ''}`
|
|
320
|
+
}));
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
exports.PromptSnippetsConfigurationCategory = PromptSnippetsConfigurationCategory;
|
|
324
|
+
tslib_1.__decorate([
|
|
325
|
+
(0, inversify_1.inject)(prompt_service_1.PromptService),
|
|
326
|
+
tslib_1.__metadata("design:type", Object)
|
|
327
|
+
], PromptSnippetsConfigurationCategory.prototype, "promptService", void 0);
|
|
328
|
+
tslib_1.__decorate([
|
|
329
|
+
(0, inversify_1.inject)(ai_core_1.AgentService),
|
|
330
|
+
tslib_1.__metadata("design:type", Object)
|
|
331
|
+
], PromptSnippetsConfigurationCategory.prototype, "agentService", void 0);
|
|
332
|
+
tslib_1.__decorate([
|
|
333
|
+
(0, inversify_1.postConstruct)(),
|
|
334
|
+
tslib_1.__metadata("design:type", Function),
|
|
335
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
336
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
337
|
+
], PromptSnippetsConfigurationCategory.prototype, "init", null);
|
|
338
|
+
exports.PromptSnippetsConfigurationCategory = PromptSnippetsConfigurationCategory = tslib_1.__decorate([
|
|
339
|
+
(0, inversify_1.injectable)()
|
|
340
|
+
], PromptSnippetsConfigurationCategory);
|
|
341
|
+
//# sourceMappingURL=prompt-snippets-configuration-category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-snippets-configuration-category.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx"],"names":[],"mappings":";;;;;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,4CAAqD;AACrD,sDAAsG;AACtG,6EAAqH;AACrH,sCAAkD;AAClD,qDAAiE;AACjE,mDAA8D;AAC9D,4DAAiF;AAEjF,wHAQkF;AAClF,0IAAoI;AACpI,iHAK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E,UAAG,CAAC,QAAQ,CAAC,qEAAqE,EAAE,oBAAoB,CAAC;SAClI,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC9B,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YAC9B,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;YACjC,UAAU,EAAE,IAAI,CAAC,EAAE;YACnB,MAAM,EAAE,2BAA2B,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1D,QAAQ,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE;SACrD,CAAC,CAAC,CAAC;IACR,CAAC;CACJ,CAAA;AAlVY,kFAAmC;AAWzB;IADlB,IAAA,kBAAM,EAAC,8BAAa,CAAC;;0EAC0B;AAG7B;IADlB,IAAA,kBAAM,EAAC,sBAAY,CAAC;;yEACyB;AAkBpC;IADT,IAAA,yBAAa,GAAE;;;;+DAaf;8CA5CQ,mCAAmC;IAD/C,IAAA,sBAAU,GAAE;GACA,mCAAmC,CAkV/C"}
|
package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-snippets-configuration-category.spec.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts"],"names":[],"mappings":""}
|
package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2026 EclipseSource and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const jsdom_1 = require("@theia/core/lib/browser/test/jsdom");
|
|
19
|
+
let disableJSDOM = (0, jsdom_1.enableJSDOM)();
|
|
20
|
+
const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
|
|
21
|
+
frontend_application_config_provider_1.FrontendApplicationConfigProvider.set({});
|
|
22
|
+
const chai_1 = require("chai");
|
|
23
|
+
const client_1 = require("@theia/core/shared/react-dom/client");
|
|
24
|
+
const react_dom_1 = require("@theia/core/shared/react-dom");
|
|
25
|
+
const common_1 = require("@theia/ai-core/lib/common");
|
|
26
|
+
const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
|
|
27
|
+
const prompt_snippets_configuration_category_1 = require("./prompt-snippets-configuration-category");
|
|
28
|
+
disableJSDOM();
|
|
29
|
+
describe('PromptSnippetsConfigurationCategory', () => {
|
|
30
|
+
before(() => disableJSDOM = (0, jsdom_1.enableJSDOM)());
|
|
31
|
+
after(() => disableJSDOM());
|
|
32
|
+
function loadEntries({ fragments = {}, variantSets = {}, agentTemplates = {} }) {
|
|
33
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
34
|
+
const withIds = new Map(Object.entries(fragments).map(([id, list]) => [id, list.map(fragment => ({ id, template: '', ...fragment }))]));
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
+
category.promptService = {
|
|
37
|
+
getAllPromptFragments: () => withIds,
|
|
38
|
+
getPromptVariantSets: () => new Map(Object.entries(variantSets)),
|
|
39
|
+
// The effective fragment is the first entry, mirroring the service's priority order.
|
|
40
|
+
getRawPromptFragment: (id) => withIds.get(id)?.[0],
|
|
41
|
+
getEffectiveVariantId: (id) => id
|
|
42
|
+
};
|
|
43
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
|
+
category.availableAgents = Object.keys(agentTemplates).map(agentId => ({
|
|
45
|
+
id: agentId,
|
|
46
|
+
prompts: [{ id: `${agentId}-prompt` }]
|
|
47
|
+
}));
|
|
48
|
+
for (const [agentId, template] of Object.entries(agentTemplates)) {
|
|
49
|
+
withIds.set(`${agentId}-prompt`, [{ id: `${agentId}-prompt`, template }]);
|
|
50
|
+
}
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
52
|
+
return category.loadEntries();
|
|
53
|
+
}
|
|
54
|
+
it('declares the prompt snippets single-page metadata', () => {
|
|
55
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
56
|
+
(0, chai_1.expect)(category.id).to.equal(ai_configuration_category_1.AiConfigurationCategoryId.PROMPT_SNIPPETS);
|
|
57
|
+
(0, chai_1.expect)(category.kind).to.equal('single-page');
|
|
58
|
+
});
|
|
59
|
+
it('groups a fragment referenced as a capability under capabilities, and records the agents using it', () => {
|
|
60
|
+
const entries = loadEntries({
|
|
61
|
+
fragments: { github: [{ name: 'GitHub', description: 'talks to GitHub' }] },
|
|
62
|
+
agentTemplates: { coder: 'do work {{capability:github default on}}', architect: 'plan {{capability:github}}' }
|
|
63
|
+
});
|
|
64
|
+
const github = entries.find(entry => entry.id === 'github');
|
|
65
|
+
(0, chai_1.expect)(github?.kind).to.equal('capability');
|
|
66
|
+
(0, chai_1.expect)(github?.agentIds).to.deep.equal(['coder', 'architect']);
|
|
67
|
+
});
|
|
68
|
+
it('groups the fixed generic capability ids as generic, even when an agent references one as a capability', () => {
|
|
69
|
+
const entries = loadEntries({
|
|
70
|
+
fragments: { [common_1.GENERIC_CAPABILITIES_AGENT_DELEGATION_PROMPT_ID]: [{}] },
|
|
71
|
+
agentTemplates: { coder: `x {{capability:${common_1.GENERIC_CAPABILITIES_AGENT_DELEGATION_PROMPT_ID}}}` }
|
|
72
|
+
});
|
|
73
|
+
(0, chai_1.expect)(entries.find(entry => entry.id === common_1.GENERIC_CAPABILITIES_AGENT_DELEGATION_PROMPT_ID)?.kind).to.equal('generic-capability');
|
|
74
|
+
});
|
|
75
|
+
it('treats declared frontmatter as a capability even when no agent references it yet', () => {
|
|
76
|
+
const entries = loadEntries({ fragments: { 'shell-execution': [{ name: 'Shell Execution' }] } });
|
|
77
|
+
(0, chai_1.expect)(entries.find(entry => entry.id === 'shell-execution')?.kind).to.equal('capability');
|
|
78
|
+
});
|
|
79
|
+
it('groups a plain fragment without frontmatter as a snippet', () => {
|
|
80
|
+
const entries = loadEntries({ fragments: { 'project-info': [{ customizationId: 'workspace', priority: 1 }] } });
|
|
81
|
+
const snippet = entries.find(entry => entry.id === 'project-info');
|
|
82
|
+
(0, chai_1.expect)(snippet?.kind).to.equal('snippet');
|
|
83
|
+
// Only a workspace file backs it, so resetting has nothing to fall back to: the row offers Remove.
|
|
84
|
+
(0, chai_1.expect)(snippet?.customized).to.equal(true);
|
|
85
|
+
(0, chai_1.expect)(snippet?.hasBuiltIn).to.equal(false);
|
|
86
|
+
});
|
|
87
|
+
it('reports a customized built-in as customized while keeping its built-in fallback', () => {
|
|
88
|
+
const entries = loadEntries({ fragments: { github: [{ customizationId: 'user', priority: 1, name: 'GitHub' }, { name: 'GitHub' }] } });
|
|
89
|
+
const github = entries.find(entry => entry.id === 'github');
|
|
90
|
+
(0, chai_1.expect)(github?.customized).to.equal(true);
|
|
91
|
+
(0, chai_1.expect)(github?.hasBuiltIn).to.equal(true);
|
|
92
|
+
});
|
|
93
|
+
it('excludes what other pages own: variant sets and their variants, slash commands, and generated MCP tool lists', () => {
|
|
94
|
+
const entries = loadEntries({
|
|
95
|
+
fragments: {
|
|
96
|
+
'coder-system': [{}],
|
|
97
|
+
'coder-system-edit': [{}],
|
|
98
|
+
'remember-conversation-context': [{ isCommand: true, commandName: 'remember' }],
|
|
99
|
+
// A customization that lost the `isCommand` frontmatter must still not resurface here.
|
|
100
|
+
'skill-command-refactor': [{ customizationId: 'user', priority: 1 }, { isCommand: true, commandName: 'refactor' }],
|
|
101
|
+
'mcp_github_tools': [{}],
|
|
102
|
+
'project-info': [{}]
|
|
103
|
+
},
|
|
104
|
+
variantSets: { 'coder-system': ['coder-system-edit'] }
|
|
105
|
+
});
|
|
106
|
+
(0, chai_1.expect)(entries.map(entry => entry.id)).to.deep.equal(['project-info']);
|
|
107
|
+
});
|
|
108
|
+
it('counts the agents using a fragment in its pills, after the customization state', () => {
|
|
109
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111
|
+
category.availableAgents = [{ id: 'coder', name: 'Coder' }, { id: 'architect', name: 'Architect' }];
|
|
112
|
+
const build = (agentIds, customized) =>
|
|
113
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114
|
+
category.buildRow({ id: 'github', kind: 'capability', agentIds, customized, hasBuiltIn: true }, { scope: 'user', navigate: () => { }, update: () => { } }, () => { });
|
|
115
|
+
(0, chai_1.expect)(build(['coder'], false).pills).to.deep.equal(['1 agent']);
|
|
116
|
+
(0, chai_1.expect)(build(['coder', 'architect'], false).pills).to.deep.equal(['2 agents']);
|
|
117
|
+
// The customization state leads, so it reads before the agent count and the actions.
|
|
118
|
+
(0, chai_1.expect)(build(['coder'], true).pills).to.deep.equal(['Customized', '1 agent']);
|
|
119
|
+
});
|
|
120
|
+
it('offers its actions in the row header, whether or not the row is expanded', () => {
|
|
121
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
122
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
123
|
+
category.availableAgents = [];
|
|
124
|
+
const build = (customized, hasBuiltIn) =>
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
126
|
+
category.buildRow({ id: 'github', kind: 'capability', agentIds: [], customized, hasBuiltIn }, { scope: 'user', navigate: () => { }, update: () => { } }, () => { });
|
|
127
|
+
(0, chai_1.expect)(build(false, true).actions).to.not.equal(undefined);
|
|
128
|
+
(0, chai_1.expect)(build(true, false).actions).to.not.equal(undefined);
|
|
129
|
+
});
|
|
130
|
+
it('indexes every entry for search under one row-id scheme, so a deep link only needs the fragment id', () => {
|
|
131
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
132
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
133
|
+
category.entries = [
|
|
134
|
+
{ id: 'project-info', kind: 'snippet', agentIds: [], customized: false, hasBuiltIn: true },
|
|
135
|
+
{ id: 'github', kind: 'capability', name: 'GitHub', agentIds: ['coder'], customized: false, hasBuiltIn: true },
|
|
136
|
+
{ id: common_1.GENERIC_CAPABILITIES_AGENT_DELEGATION_PROMPT_ID, kind: 'generic-capability', agentIds: [], customized: false, hasBuiltIn: true }
|
|
137
|
+
];
|
|
138
|
+
const items = category.getSearchItems();
|
|
139
|
+
(0, chai_1.expect)(items.map(item => item.target.highlight?.rowId)).to.deep.equal([
|
|
140
|
+
'fragment:project-info',
|
|
141
|
+
'fragment:github',
|
|
142
|
+
`fragment:${common_1.GENERIC_CAPABILITIES_AGENT_DELEGATION_PROMPT_ID}`
|
|
143
|
+
]);
|
|
144
|
+
(0, chai_1.expect)(items.map(item => item.label)).to.deep.equal(['project-info', 'GitHub', common_1.GENERIC_CAPABILITIES_AGENT_DELEGATION_PROMPT_ID]);
|
|
145
|
+
(0, chai_1.expect)(new Set(items.map(item => item.typeLabel)).size).to.equal(3);
|
|
146
|
+
(0, chai_1.expect)(items.every(item => item.target.categoryId === ai_configuration_category_1.AiConfigurationCategoryId.PROMPT_SNIPPETS)).to.equal(true);
|
|
147
|
+
});
|
|
148
|
+
it('anchors each rendered row with the id the search item and the agent capability link navigate to', () => {
|
|
149
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
150
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
151
|
+
category.availableAgents = [];
|
|
152
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
153
|
+
category.entries = [
|
|
154
|
+
{ id: 'project-info', kind: 'snippet', agentIds: [], customized: true, hasBuiltIn: false },
|
|
155
|
+
{ id: 'github', kind: 'capability', name: 'GitHub', agentIds: [], customized: false, hasBuiltIn: true }
|
|
156
|
+
];
|
|
157
|
+
// The page asks the service whether a page-level reset would do anything while rendering.
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
159
|
+
category.promptService = { getAllPromptFragments: () => new Map() };
|
|
160
|
+
const container = document.createElement('div');
|
|
161
|
+
document.body.appendChild(container);
|
|
162
|
+
const root = (0, client_1.createRoot)(container);
|
|
163
|
+
try {
|
|
164
|
+
(0, react_dom_1.flushSync)(() => root.render(category.renderPage({ scope: 'user', navigate: () => { }, update: () => { } })));
|
|
165
|
+
const anchored = Array.from(container.querySelectorAll('[data-ai-config-row-id]'))
|
|
166
|
+
.map(element => element.getAttribute('data-ai-config-row-id'));
|
|
167
|
+
// Without the anchor the scroll-and-flash silently does nothing when navigated to from an agent.
|
|
168
|
+
(0, chai_1.expect)(anchored).to.include(prompt_snippets_configuration_category_1.PromptSnippetsConfiguration.selectionFor('github').highlight.rowId);
|
|
169
|
+
(0, chai_1.expect)(anchored).to.include(prompt_snippets_configuration_category_1.PromptSnippetsConfiguration.selectionFor('project-info').highlight.rowId);
|
|
170
|
+
}
|
|
171
|
+
finally {
|
|
172
|
+
(0, react_dom_1.flushSync)(() => root.unmount());
|
|
173
|
+
container.remove();
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
it('offers the page-level reset whenever a customized fragment has a built-in to fall back to', () => {
|
|
177
|
+
const category = new prompt_snippets_configuration_category_1.PromptSnippetsConfigurationCategory();
|
|
178
|
+
const withFragments = (fragments) => {
|
|
179
|
+
const map = new Map(Object.entries(fragments).map(([id, list]) => [id, list.map(f => ({ id, template: '', ...f }))]));
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
181
|
+
category.promptService = { getAllPromptFragments: () => map };
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
183
|
+
return category.hasResettableCustomizations();
|
|
184
|
+
};
|
|
185
|
+
// A customized built-in: resetting reverts it.
|
|
186
|
+
(0, chai_1.expect)(withFragments({ github: [{ customizationId: 'user', priority: 1 }, {}] })).to.equal(true);
|
|
187
|
+
// Also true for a prompt variant the page itself does not list, since the reset covers those too.
|
|
188
|
+
(0, chai_1.expect)(withFragments({ 'coder-system-agent-mode': [{ customizationId: 'user', priority: 1 }, {}] })).to.equal(true);
|
|
189
|
+
// A user-authored snippet has no built-in, so a reset would do nothing to it.
|
|
190
|
+
(0, chai_1.expect)(withFragments({ 'project-info': [{ customizationId: 'workspace', priority: 1 }] })).to.equal(false);
|
|
191
|
+
(0, chai_1.expect)(withFragments({ github: [{}] })).to.equal(false);
|
|
192
|
+
});
|
|
193
|
+
it('builds the same row id the agent capability deep link navigates to', () => {
|
|
194
|
+
const selection = prompt_snippets_configuration_category_1.PromptSnippetsConfiguration.selectionFor('github');
|
|
195
|
+
(0, chai_1.expect)(selection.categoryId).to.equal(ai_configuration_category_1.AiConfigurationCategoryId.PROMPT_SNIPPETS);
|
|
196
|
+
(0, chai_1.expect)(selection.highlight?.rowId).to.equal('fragment:github');
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
//# sourceMappingURL=prompt-snippets-configuration-category.spec.js.map
|
package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-snippets-configuration-category.spec.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,8DAAiE;AACjE,IAAI,YAAY,GAAG,IAAA,mBAAW,GAAE,CAAC;AAEjC,uHAAiH;AACjH,wEAAiC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAE1C,+BAA8B;AAC9B,gEAAiE;AACjE,4DAAyD;AAEzD,sDAA4F;AAE5F,wHAAqH;AACrH,qGAAgJ;AAEhJ,YAAY,EAAE,CAAC;AAEf,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IAEjD,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,GAAG,IAAA,mBAAW,GAAE,CAAC,CAAC;IAC3C,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC;IAW5B,SAAS,WAAW,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,GAAG,EAAE,EAAE,cAAc,GAAG,EAAE,EAAS;QACjF,MAAM,QAAQ,GAAG,IAAI,4EAAmC,EAAE,CAAC;QAC3D,MAAM,OAAO,GAAG,IAAI,GAAG,CACnB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,GAA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