@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,41 @@
|
|
|
1
|
+
import { AIVariable, AIVariableContext, AIVariableContribution, AIVariableResolutionRequest, AIVariableResolver, AIVariableService, ResolvedAIVariable } from '@theia/ai-core/lib/common';
|
|
2
|
+
import { MaybePromise, URI } from '@theia/core';
|
|
3
|
+
import { WorkspaceMetadataStorageService, WorkspaceMetadataStore } from '@theia/workspace/lib/browser/metadata-storage';
|
|
4
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
|
|
5
|
+
import { AccessibleRootContribution } from './workspace-functions';
|
|
6
|
+
/** Key under which the memory directory is requested from the workspace metadata storage. */
|
|
7
|
+
export declare const MEMORY_METADATA_STORE_KEY = "memory";
|
|
8
|
+
export declare const MEMORY_DIRECTORY_VARIABLE: AIVariable;
|
|
9
|
+
/**
|
|
10
|
+
* Resolves the memory directory of the current workspace and makes it reachable for the AI workspace
|
|
11
|
+
* tools. The directory is the workspace's metadata store, so every workspace has its own memory and none
|
|
12
|
+
* of it ends up in the user's repository.
|
|
13
|
+
*
|
|
14
|
+
* Its path is generated and changes with the workspace, which is why it is contributed as an accessible
|
|
15
|
+
* root instead of being configured in `ai-features.workspaceFunctions.allowedExternalPaths`: the user
|
|
16
|
+
* cannot name a path they do not know, and prompts learn it from {@link MEMORY_DIRECTORY_VARIABLE}.
|
|
17
|
+
*
|
|
18
|
+
* A window without a workspace has no metadata store and therefore no memory. The variable then resolves
|
|
19
|
+
* to nothing and no directory is made accessible.
|
|
20
|
+
*/
|
|
21
|
+
export declare class MemoryDirectoryVariableContribution implements AIVariableContribution, AIVariableResolver, AccessibleRootContribution {
|
|
22
|
+
protected readonly metadataStorageService: WorkspaceMetadataStorageService;
|
|
23
|
+
protected readonly workspaceService: WorkspaceService;
|
|
24
|
+
protected store: WorkspaceMetadataStore | undefined;
|
|
25
|
+
protected ensuredLocation: string | undefined;
|
|
26
|
+
registerVariables(service: AIVariableService): void;
|
|
27
|
+
canResolve(request: AIVariableResolutionRequest, context: AIVariableContext): MaybePromise<number>;
|
|
28
|
+
resolve(request: AIVariableResolutionRequest, context: AIVariableContext): Promise<ResolvedAIVariable | undefined>;
|
|
29
|
+
getRoots(): Promise<URI[]>;
|
|
30
|
+
/**
|
|
31
|
+
* The memory store of the current workspace, or undefined when there is no workspace to store
|
|
32
|
+
* memory for. The store instance is kept because it tracks the workspace itself: its `location`
|
|
33
|
+
* follows a workspace change, so nothing has to be invalidated when the workspace is replaced.
|
|
34
|
+
*
|
|
35
|
+
* Closing a workspace is the exception: the store cannot compute a location without one, so it
|
|
36
|
+
* keeps the location of the closed workspace. Whether a workspace is open is therefore checked on
|
|
37
|
+
* every call rather than only when the store is created.
|
|
38
|
+
*/
|
|
39
|
+
protected getStore(): Promise<WorkspaceMetadataStore | undefined>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=memory-directory-variable-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-directory-variable-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/memory-directory-variable-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,UAAU,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAChJ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAO,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,+BAA+B,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACxH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAElD,eAAO,MAAM,yBAAyB,EAAE,UAKvC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,qBACa,mCAAoC,YAAW,sBAAsB,EAAE,kBAAkB,EAAE,0BAA0B;IAG9H,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,+BAA+B,CAAC;IAG3E,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,SAAS,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACpD,SAAS,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9C,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAInD,UAAU,CAAC,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IAI5F,OAAO,CAAC,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAiBlH,QAAQ,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAKhC;;;;;;;;OAQG;cACa,QAAQ,IAAI,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC;CAc1E"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2026 EclipseSource GmbH.
|
|
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
|
+
exports.MemoryDirectoryVariableContribution = exports.MEMORY_DIRECTORY_VARIABLE = exports.MEMORY_METADATA_STORE_KEY = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const core_1 = require("@theia/core");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const metadata_storage_1 = require("@theia/workspace/lib/browser/metadata-storage");
|
|
23
|
+
const workspace_service_1 = require("@theia/workspace/lib/browser/workspace-service");
|
|
24
|
+
/** Key under which the memory directory is requested from the workspace metadata storage. */
|
|
25
|
+
exports.MEMORY_METADATA_STORE_KEY = 'memory';
|
|
26
|
+
exports.MEMORY_DIRECTORY_VARIABLE = {
|
|
27
|
+
id: 'memory-directory',
|
|
28
|
+
name: 'memoryDirectory',
|
|
29
|
+
description: core_1.nls.localize('theia/ai/ide/memoryDirectoryVariable/description', 'The absolute path of the directory in which the agent keeps its memory for the current workspace.')
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Resolves the memory directory of the current workspace and makes it reachable for the AI workspace
|
|
33
|
+
* tools. The directory is the workspace's metadata store, so every workspace has its own memory and none
|
|
34
|
+
* of it ends up in the user's repository.
|
|
35
|
+
*
|
|
36
|
+
* Its path is generated and changes with the workspace, which is why it is contributed as an accessible
|
|
37
|
+
* root instead of being configured in `ai-features.workspaceFunctions.allowedExternalPaths`: the user
|
|
38
|
+
* cannot name a path they do not know, and prompts learn it from {@link MEMORY_DIRECTORY_VARIABLE}.
|
|
39
|
+
*
|
|
40
|
+
* A window without a workspace has no metadata store and therefore no memory. The variable then resolves
|
|
41
|
+
* to nothing and no directory is made accessible.
|
|
42
|
+
*/
|
|
43
|
+
let MemoryDirectoryVariableContribution = class MemoryDirectoryVariableContribution {
|
|
44
|
+
registerVariables(service) {
|
|
45
|
+
service.registerResolver(exports.MEMORY_DIRECTORY_VARIABLE, this);
|
|
46
|
+
}
|
|
47
|
+
canResolve(request, context) {
|
|
48
|
+
return request.variable.name === exports.MEMORY_DIRECTORY_VARIABLE.name ? 1 : 0;
|
|
49
|
+
}
|
|
50
|
+
async resolve(request, context) {
|
|
51
|
+
if (request.variable.name !== exports.MEMORY_DIRECTORY_VARIABLE.name) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
const store = await this.getStore();
|
|
55
|
+
if (!store) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
// Resolving the variable means a prompt is about to send the agent to this directory, so create
|
|
59
|
+
// it now: listing an empty memory is a clearer answer than a missing path.
|
|
60
|
+
if (this.ensuredLocation !== store.location.toString()) {
|
|
61
|
+
await store.ensureExists();
|
|
62
|
+
this.ensuredLocation = store.location.toString();
|
|
63
|
+
}
|
|
64
|
+
return { variable: request.variable, value: store.location.path.fsPath() };
|
|
65
|
+
}
|
|
66
|
+
async getRoots() {
|
|
67
|
+
const store = await this.getStore();
|
|
68
|
+
return store ? [store.location] : [];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The memory store of the current workspace, or undefined when there is no workspace to store
|
|
72
|
+
* memory for. The store instance is kept because it tracks the workspace itself: its `location`
|
|
73
|
+
* follows a workspace change, so nothing has to be invalidated when the workspace is replaced.
|
|
74
|
+
*
|
|
75
|
+
* Closing a workspace is the exception: the store cannot compute a location without one, so it
|
|
76
|
+
* keeps the location of the closed workspace. Whether a workspace is open is therefore checked on
|
|
77
|
+
* every call rather than only when the store is created.
|
|
78
|
+
*/
|
|
79
|
+
async getStore() {
|
|
80
|
+
if (this.workspaceService.tryGetRoots().length === 0) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
if (!this.store) {
|
|
85
|
+
this.store = await this.metadataStorageService.getOrCreateStore(exports.MEMORY_METADATA_STORE_KEY);
|
|
86
|
+
}
|
|
87
|
+
return this.store;
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
// No workspace is open: memory is unavailable rather than shared between unrelated windows.
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
exports.MemoryDirectoryVariableContribution = MemoryDirectoryVariableContribution;
|
|
96
|
+
tslib_1.__decorate([
|
|
97
|
+
(0, inversify_1.inject)(metadata_storage_1.WorkspaceMetadataStorageService),
|
|
98
|
+
tslib_1.__metadata("design:type", Object)
|
|
99
|
+
], MemoryDirectoryVariableContribution.prototype, "metadataStorageService", void 0);
|
|
100
|
+
tslib_1.__decorate([
|
|
101
|
+
(0, inversify_1.inject)(workspace_service_1.WorkspaceService),
|
|
102
|
+
tslib_1.__metadata("design:type", workspace_service_1.WorkspaceService)
|
|
103
|
+
], MemoryDirectoryVariableContribution.prototype, "workspaceService", void 0);
|
|
104
|
+
exports.MemoryDirectoryVariableContribution = MemoryDirectoryVariableContribution = tslib_1.__decorate([
|
|
105
|
+
(0, inversify_1.injectable)()
|
|
106
|
+
], MemoryDirectoryVariableContribution);
|
|
107
|
+
//# sourceMappingURL=memory-directory-variable-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-directory-variable-contribution.js","sourceRoot":"","sources":["../../src/browser/memory-directory-variable-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAKhF,sCAAqD;AACrD,4DAAkE;AAClE,oFAAwH;AACxH,sFAAkF;AAGlF,6FAA6F;AAChF,QAAA,yBAAyB,GAAG,QAAQ,CAAC;AAErC,QAA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GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzC,CAAC;IAED;;;;;;;;OAQG;IACO,KAAK,CAAC,QAAQ;QACpB,IAAI,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnD,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,IAAI,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACd,IAAI,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,iCAAyB,CAAC,CAAC;YAC/F,CAAC;YACD,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,4FAA4F;YAC5F,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;CACJ,CAAA;AAhEY,kFAAmC;AAGzB;IADlB,IAAA,kBAAM,EAAC,kDAA+B,CAAC;;mFACmC;AAGxD;IADlB,IAAA,kBAAM,EAAC,oCAAgB,CAAC;sCACY,oCAAgB;6EAAC;8CAN7C,mCAAmC;IAD/C,IAAA,sBAAU,GAAE;GACA,mCAAmC,CAgE/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-directory-variable-contribution.spec.d.ts","sourceRoot":"","sources":["../../src/browser/memory-directory-variable-contribution.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2026 EclipseSource GmbH.
|
|
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 chai_1 = require("chai");
|
|
19
|
+
const core_1 = require("@theia/core");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const metadata_storage_1 = require("@theia/workspace/lib/browser/metadata-storage");
|
|
22
|
+
const workspace_service_1 = require("@theia/workspace/lib/browser/workspace-service");
|
|
23
|
+
const memory_directory_variable_contribution_1 = require("./memory-directory-variable-contribution");
|
|
24
|
+
describe('MemoryDirectoryVariableContribution', () => {
|
|
25
|
+
let contribution;
|
|
26
|
+
let location;
|
|
27
|
+
let requestedKeys;
|
|
28
|
+
let ensureExistsCalls;
|
|
29
|
+
let workspaceOpen;
|
|
30
|
+
beforeEach(() => {
|
|
31
|
+
location = new core_1.URI('file:///config/workspace-metadata/uuid/memory');
|
|
32
|
+
requestedKeys = [];
|
|
33
|
+
ensureExistsCalls = 0;
|
|
34
|
+
workspaceOpen = true;
|
|
35
|
+
const store = {
|
|
36
|
+
get location() {
|
|
37
|
+
return location;
|
|
38
|
+
},
|
|
39
|
+
ensureExists: async () => {
|
|
40
|
+
ensureExistsCalls++;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const container = new inversify_1.Container();
|
|
44
|
+
container.bind(metadata_storage_1.WorkspaceMetadataStorageService).toConstantValue({
|
|
45
|
+
getOrCreateStore: async (key) => {
|
|
46
|
+
requestedKeys.push(key);
|
|
47
|
+
if (!workspaceOpen) {
|
|
48
|
+
throw new Error('Cannot create metadata store: no workspace is currently open');
|
|
49
|
+
}
|
|
50
|
+
return store;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
container.bind(workspace_service_1.WorkspaceService).toConstantValue({
|
|
54
|
+
tryGetRoots: () => workspaceOpen ? [{ resource: new core_1.URI('file:///workspace') }] : []
|
|
55
|
+
});
|
|
56
|
+
container.bind(memory_directory_variable_contribution_1.MemoryDirectoryVariableContribution).toSelf();
|
|
57
|
+
contribution = container.get(memory_directory_variable_contribution_1.MemoryDirectoryVariableContribution);
|
|
58
|
+
});
|
|
59
|
+
const resolve = (name = memory_directory_variable_contribution_1.MEMORY_DIRECTORY_VARIABLE.name) => contribution.resolve({ variable: { ...memory_directory_variable_contribution_1.MEMORY_DIRECTORY_VARIABLE, name } }, {});
|
|
60
|
+
it('resolves the variable to the memory store of the current workspace', async () => {
|
|
61
|
+
const resolved = await resolve();
|
|
62
|
+
(0, chai_1.expect)(resolved?.value).to.equal(location.path.fsPath());
|
|
63
|
+
(0, chai_1.expect)(requestedKeys).to.deep.equal([memory_directory_variable_contribution_1.MEMORY_METADATA_STORE_KEY]);
|
|
64
|
+
});
|
|
65
|
+
it('creates the directory when the variable is resolved, but only once per location', async () => {
|
|
66
|
+
await resolve();
|
|
67
|
+
await resolve();
|
|
68
|
+
(0, chai_1.expect)(ensureExistsCalls).to.equal(1);
|
|
69
|
+
location = new core_1.URI('file:///config/workspace-metadata/other/memory');
|
|
70
|
+
await resolve();
|
|
71
|
+
(0, chai_1.expect)(ensureExistsCalls).to.equal(2);
|
|
72
|
+
});
|
|
73
|
+
it('contributes the memory directory as an accessible root', async () => {
|
|
74
|
+
(0, chai_1.expect)((await contribution.getRoots()).map(root => root.toString())).to.deep.equal([location.toString()]);
|
|
75
|
+
});
|
|
76
|
+
it('follows the store location without needing invalidation', async () => {
|
|
77
|
+
await contribution.getRoots();
|
|
78
|
+
location = new core_1.URI('file:///config/workspace-metadata/other/memory');
|
|
79
|
+
(0, chai_1.expect)((await contribution.getRoots())[0].toString()).to.equal(location.toString());
|
|
80
|
+
});
|
|
81
|
+
it('does not resolve other variables', async () => {
|
|
82
|
+
(0, chai_1.expect)(await resolve('somethingElse')).to.be.undefined;
|
|
83
|
+
});
|
|
84
|
+
it('has neither a value nor a root without a workspace', async () => {
|
|
85
|
+
workspaceOpen = false;
|
|
86
|
+
(0, chai_1.expect)(await resolve()).to.be.undefined;
|
|
87
|
+
(0, chai_1.expect)(await contribution.getRoots()).to.be.empty;
|
|
88
|
+
});
|
|
89
|
+
it('drops the memory of a closed workspace instead of keeping the cached location', async () => {
|
|
90
|
+
// The store cannot compute a location without a workspace, so on close it keeps the one of the
|
|
91
|
+
// closed workspace. Nothing may be reachable through it any more.
|
|
92
|
+
(0, chai_1.expect)((await resolve())?.value).to.equal(location.path.fsPath());
|
|
93
|
+
workspaceOpen = false;
|
|
94
|
+
(0, chai_1.expect)(await resolve()).to.be.undefined;
|
|
95
|
+
(0, chai_1.expect)(await contribution.getRoots()).to.be.empty;
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=memory-directory-variable-contribution.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-directory-variable-contribution.spec.js","sourceRoot":"","sources":["../../src/browser/memory-directory-variable-contribution.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,+BAA8B;AAC9B,sCAAkC;AAClC,4DAAyD;AACzD,oFAAwH;AACxH,sFAAkF;AAClF,qGAAqJ;AAErJ,QAAQ,CAAC,qCAAqC,EAAE,GAAG,EAAE;IAEjD,IAAI,YAAiD,CAAC;IACtD,IA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,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
2
|
+
import { PromptService } from '@theia/ai-core/lib/common';
|
|
3
|
+
export declare class OpenEditorsHintContribution implements FrontendApplicationContribution {
|
|
4
|
+
protected readonly promptService: PromptService;
|
|
5
|
+
onStart(): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=open-editors-hint-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-editors-hint-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/open-editors-hint-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,qBACa,2BAA4B,YAAW,+BAA+B;IAG/E,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,OAAO,IAAI,IAAI;CAUlB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2026 EclipseSource GmbH.
|
|
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
|
+
exports.OpenEditorsHintContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const common_1 = require("@theia/ai-core/lib/common");
|
|
22
|
+
const open_editors_hint_fragment_id_1 = require("../common/open-editors-hint-fragment-id");
|
|
23
|
+
let OpenEditorsHintContribution = class OpenEditorsHintContribution {
|
|
24
|
+
onStart() {
|
|
25
|
+
this.promptService.addBuiltInPromptFragment({
|
|
26
|
+
id: open_editors_hint_fragment_id_1.OPEN_EDITORS_HINT_FRAGMENT_ID,
|
|
27
|
+
template: `## Open Editors
|
|
28
|
+
The following files are currently open in the user's editor. This is provided as contextual information only \
|
|
29
|
+
— these files may or may not be relevant to the current request. Do not assume they are related unless the user explicitly refers to them.
|
|
30
|
+
|
|
31
|
+
{{openEditors}}`
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.OpenEditorsHintContribution = OpenEditorsHintContribution;
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, inversify_1.inject)(common_1.PromptService),
|
|
38
|
+
tslib_1.__metadata("design:type", Object)
|
|
39
|
+
], OpenEditorsHintContribution.prototype, "promptService", void 0);
|
|
40
|
+
exports.OpenEditorsHintContribution = OpenEditorsHintContribution = tslib_1.__decorate([
|
|
41
|
+
(0, inversify_1.injectable)()
|
|
42
|
+
], OpenEditorsHintContribution);
|
|
43
|
+
//# sourceMappingURL=open-editors-hint-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-editors-hint-contribution.js","sourceRoot":"","sources":["../../src/browser/open-editors-hint-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAGhF,4DAAkE;AAClE,sDAA0D;AAC1D,2FAAwF;AAGjF,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAKpC,OAAO;QACH,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC;YACxC,EAAE,EAAE,6DAA6B;YACjC,QAAQ,EAAE;;;;gBAIN;SACP,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAfY,kEAA2B;AAGjB;IADlB,IAAA,kBAAM,EAAC,sBAAa,CAAC;;kEAC0B;sCAHvC,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CAevC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AbstractStreamParsingChatAgent } from '@theia/ai-chat';
|
|
2
2
|
import { LanguageModelRequirement } from '@theia/ai-core';
|
|
3
|
+
import { ILogger } from '@theia/core';
|
|
3
4
|
export declare class ProjectInfoAgent extends AbstractStreamParsingChatAgent {
|
|
5
|
+
protected readonly logger: ILogger;
|
|
4
6
|
name: string;
|
|
5
7
|
id: string;
|
|
6
8
|
languageModelRequirements: LanguageModelRequirement[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-info-agent.d.ts","sourceRoot":"","sources":["../../src/browser/project-info-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"project-info-agent.d.ts","sourceRoot":"","sources":["../../src/browser/project-info-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAO,MAAM,aAAa,CAAC;AAE3C,qBACa,gBAAiB,SAAQ,8BAA8B;IAEhE,mBAC4B,MAAM,EAAE,OAAO,CAAC;IAE5C,IAAI,SAAiB;IACrB,EAAE,SAAiB;IACnB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAE9C,WAAW,SAEwJ;IAEnK,OAAO,8CAA4D;IAC5E,UAAmB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAgC;IAC5E,SAAS,EAAE,MAAM,CAA0B;CACvD"}
|
|
@@ -39,6 +39,11 @@ let ProjectInfoAgent = class ProjectInfoAgent extends ai_chat_1.AbstractStreamPa
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
exports.ProjectInfoAgent = ProjectInfoAgent;
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
44
|
+
(0, inversify_1.named)('ai-ide:ProjectInfoAgent'),
|
|
45
|
+
tslib_1.__metadata("design:type", Object)
|
|
46
|
+
], ProjectInfoAgent.prototype, "logger", void 0);
|
|
42
47
|
exports.ProjectInfoAgent = ProjectInfoAgent = tslib_1.__decorate([
|
|
43
48
|
(0, inversify_1.injectable)()
|
|
44
49
|
], ProjectInfoAgent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-info-agent.js","sourceRoot":"","sources":["../../src/browser/project-info-agent.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,4CAAgE;AAEhE,
|
|
1
|
+
{"version":3,"file":"project-info-agent.js","sourceRoot":"","sources":["../../src/browser/project-info-agent.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,4CAAgE;AAEhE,4DAAyE;AACzE,yFAAgH;AAChH,sCAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wCAA8B;IAA7D;;QAKH,SAAI,GAAG,aAAa,CAAC;QACrB,OAAE,GAAG,aAAa,CAAC;QACnB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACO,gCAA2B,GAAW,MAAM,CAAC;QAE9C,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,iDAAiD,EACjF,uKAAuK;YACvK,sKAAsK,CAAC,CAAC;QAEnK,YAAO,GAAG,CAAC,wDAAyB,EAAE,0DAA2B,CAAC,CAAC;QACzD,mBAAc,GAAuB,wDAAyB,CAAC,EAAE,CAAC;QAC5E,cAAS,GAAW,sBAAsB,CAAC;IACxD,CAAC;CAAA,CAAA;AApBY,4CAAgB;AAGG;IAD3B,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,yBAAyB,CAAC;;gDACN;2BAHnC,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAoB5B"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AbstractStreamParsingChatAgent } from '@theia/ai-chat';
|
|
2
2
|
import { LanguageModelRequirement } from '@theia/ai-core/lib/common';
|
|
3
|
+
import { ILogger } from '@theia/core';
|
|
3
4
|
export declare const PRReviewAgentId = "pr-reviewer";
|
|
4
5
|
export declare class PRReviewAgent extends AbstractStreamParsingChatAgent {
|
|
6
|
+
protected readonly logger: ILogger;
|
|
5
7
|
id: string;
|
|
6
8
|
name: string;
|
|
7
9
|
languageModelRequirements: LanguageModelRequirement[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-review-agent.d.ts","sourceRoot":"","sources":["../../../src/browser/review/pr-review-agent.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"pr-review-agent.d.ts","sourceRoot":"","sources":["../../../src/browser/review/pr-review-agent.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAO,MAAM,aAAa,CAAC;AAI3C,eAAO,MAAM,eAAe,gBAAgB,CAAC;AAE7C,qBACa,aAAc,SAAQ,8BAA8B;IAC7D,mBAC4B,MAAM,EAAE,OAAO,CAAC;IAE5C,EAAE,SAAmB;IACrB,IAAI,SAAiB;IACrB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAC9C,WAAW,SAEqI;IAEhJ,SAAS,EAAE,MAAM,CAAoD;IACrE,OAAO;;;;QAA4F;IAC5G,UAAmB,cAAc,EAAE,MAAM,CAA8B;IAC9D,IAAI,EAAE,MAAM,EAAE,CAA2B;CACrD"}
|
|
@@ -41,6 +41,11 @@ let PRReviewAgent = class PRReviewAgent extends ai_chat_1.AbstractStreamParsingC
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
exports.PRReviewAgent = PRReviewAgent;
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
46
|
+
(0, inversify_1.named)('ai-ide:PRReviewAgent'),
|
|
47
|
+
tslib_1.__metadata("design:type", Object)
|
|
48
|
+
], PRReviewAgent.prototype, "logger", void 0);
|
|
44
49
|
exports.PRReviewAgent = PRReviewAgent = tslib_1.__decorate([
|
|
45
50
|
(0, inversify_1.injectable)()
|
|
46
51
|
], PRReviewAgent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-review-agent.js","sourceRoot":"","sources":["../../../src/browser/review/pr-review-agent.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4CAAgE;AAEhE,
|
|
1
|
+
{"version":3,"file":"pr-review-agent.js","sourceRoot":"","sources":["../../../src/browser/review/pr-review-agent.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4CAAgE;AAEhE,sCAA2C;AAC3C,4DAAyE;AACzE,2EAA+F;AAElF,QAAA,eAAe,GAAG,aAAa,CAAC;AAGtC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wCAA8B;IAA1D;;QAIH,OAAE,GAAG,uBAAe,CAAC;QACrB,SAAI,GAAG,aAAa,CAAC;QACrB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACO,gCAA2B,GAAW,MAAM,CAAC;QAC9C,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,wCAAwC,EACxE,uHAAuH;YACvH,mJAAmJ,CAAC,CAAC;QAEhJ,cAAS,GAAW,gDAAgD,CAAC;QACrE,YAAO,GAAG,CAAC,EAAE,EAAE,EAAE,sDAA0B,EAAE,cAAc,EAAE,gDAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;QACzF,mBAAc,GAAW,sDAA0B,CAAC;QAC9D,SAAI,GAAa,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA,CAAA;AAnBY,sCAAa;AAEM;IAD3B,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,sBAAsB,CAAC;;6CACH;wBAFnC,aAAa;IADzB,IAAA,sBAAU,GAAE;GACA,aAAa,CAmBzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatService } from '@theia/ai-chat/lib/common';
|
|
2
|
-
import { CommandContribution, CommandRegistry, CommandService } from '@theia/core';
|
|
2
|
+
import { CommandContribution, CommandRegistry, CommandService, ILogger } from '@theia/core';
|
|
3
3
|
import { TaskContextStorageService, TaskContextService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
4
4
|
import { CoderAgent } from './coder-agent';
|
|
5
5
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
@@ -14,6 +14,7 @@ export declare class SummarizeSessionCommandContribution implements CommandContr
|
|
|
14
14
|
protected readonly fileService: FileService;
|
|
15
15
|
protected readonly wsService: WorkspaceService;
|
|
16
16
|
protected readonly commandHandlerFactory: AICommandHandlerFactory;
|
|
17
|
+
protected readonly logger: ILogger;
|
|
17
18
|
registerCommands(registry: CommandRegistry): void;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=summarize-session-command-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarize-session-command-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqB,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"summarize-session-command-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqB,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAGhH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,qBACa,mCAAoC,YAAW,mBAAmB;IAE3E,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAG5C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAG1D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAG1C,SAAS,CAAC,QAAQ,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;IAGxE,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAG5C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAG/C,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,uBAAuB,CAAC;IAGlE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;CAwCpD"}
|
|
@@ -46,7 +46,7 @@ let SummarizeSessionCommandContribution = class SummarizeSessionCommandContribut
|
|
|
46
46
|
existingTaskContext = sessionContexts[sessionContexts.length - 1];
|
|
47
47
|
}
|
|
48
48
|
if (!existingTaskContext) {
|
|
49
|
-
|
|
49
|
+
this.logger.warn('No task context found. Use createTaskContext to create a plan first.');
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
if (existingTaskContext.uri) {
|
|
@@ -99,6 +99,11 @@ tslib_1.__decorate([
|
|
|
99
99
|
(0, inversify_1.inject)(browser_2.AICommandHandlerFactory),
|
|
100
100
|
tslib_1.__metadata("design:type", Function)
|
|
101
101
|
], SummarizeSessionCommandContribution.prototype, "commandHandlerFactory", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, inversify_1.inject)(core_1.ILogger),
|
|
104
|
+
(0, inversify_1.named)('ai-ide:SummarizeSessionCommandContribution'),
|
|
105
|
+
tslib_1.__metadata("design:type", Object)
|
|
106
|
+
], SummarizeSessionCommandContribution.prototype, "logger", void 0);
|
|
102
107
|
exports.SummarizeSessionCommandContribution = SummarizeSessionCommandContribution = tslib_1.__decorate([
|
|
103
108
|
(0, inversify_1.injectable)()
|
|
104
109
|
], SummarizeSessionCommandContribution);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarize-session-command-contribution.js","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sDAA2E;AAC3E,
|
|
1
|
+
{"version":3,"file":"summarize-session-command-contribution.js","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sDAA2E;AAC3E,sCAA4F;AAC5F,0FAAgH;AAChH,4DAAyE;AACzE,qFAAkF;AAClF,+CAA2C;AAC3C,4FAAyF;AAEzF,sGAAsF;AAEtF,6EAAyE;AACzE,0DAAgE;AAChE,wDAAqE;AAG9D,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IA4B5C,gBAAgB,CAAC,QAAyB;QACtC,QAAQ,CAAC,eAAe,CAAC,uDAA0B,EAAE,IAAI,CAAC,qBAAqB,CAAC;YAC5E,OAAO,EAAE,KAAK,EAAE,aAAsB,EAAE,EAAE;gBACtC,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;gBAE1D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACjB,OAAO;gBACX,CAAC;gBAED,2EAA2E;gBAC3E,IAAI,mBAAmB,CAAC;gBACxB,IAAI,aAAa,EAAE,CAAC;oBAChB,mBAAmB,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,aAAa,CAAC,CAAC;gBAC7F,CAAC;qBAAM,CAAC;oBACJ,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,aAAa,CAAC,EAAE,CAAC,CAAC;oBACvG,mBAAmB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,kBAAM,EAAC,wBAAU,CAAC;sCACY,wBAAU;uEAAC;AAGvB;IADlB,IAAA,kBAAM,EAAC,gDAAyB,CAAC;;sFACsC;AAGrD;IADlB,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACY,0BAAW;wEAAC;AAGzB;IADlB,IAAA,kBAAM,EAAC,0BAAgB,CAAC;sCACK,0BAAgB;sEAAC;AAG5B;IADlB,IAAA,kBAAM,EAAC,iCAAuB,CAAC;;kFACkC;AAG/C;IADlB,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,4CAA4C,CAAC;;mEAClC;8CA1B1B,mCAAmC;IAD/C,IAAA,sBAAU,GAAE;GACA,mCAAmC,CAoE/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-context-file-storage-service.d.ts","sourceRoot":"","sources":["../../src/browser/task-context-file-storage-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AAGrG,OAAO,EAAE,oBAAoB,EAAO,OAAO,EAAE,OAAO,EAAQ,iBAAiB,EAAE,GAAG,EAAe,MAAM,aAAa,CAAC;AACrH,OAAO,EAAE,aAAa,EAAQ,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAkB,MAAM,oCAAoC,CAAC;AAIhF,qBACa,6BAA8B,YAAW,yBAAyB;IACvC,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,0BAA0B,CAAC;IACxE,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACzD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC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core_1.ILogger),
|
|
221
|
+
(0, inversify_1.named)('ai-ide:TaskContextFileStorageService'),
|
|
221
222
|
tslib_1.__metadata("design:type", Object)
|
|
222
223
|
], TaskContextFileStorageService.prototype, "logger", void 0);
|
|
223
224
|
tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-context-file-storage-service.js","sourceRoot":"","sources":["../../src/browser/task-context-file-storage-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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;;;;AAGhF,0GAAqG;AACrG,uEAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"task-context-file-storage-service.js","sourceRoot":"","sources":["../../src/browser/task-context-file-storage-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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;;;;AAGhF,0GAAqG;AACrG,uEAAyE;AACzE,4DAAwF;AACxF,sCAAqH;AACrH,qDAA8D;AAC9D,6EAAyE;AACzE,0DAAgE;AAChE,gCAAgC;AAEhC,2EAAsF;AACtF,0DAA6D;AAGtD,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAAnC;QAUgB,uBAAkB,GAAG,IAAI,cAAO,EAAQ,CAAC;QACnD,gBAAW,GAAG,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;QAwK3C,aAAQ,GAAG,CAAC,SAAkB,EAAgC,EAAE,CACtE,CAAC,CAAC,SAAS,IAAI,OAAO,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B,CAAC;sCAAqC,yDAA0B;sEAAC;AACrD;IAA7C,IAAA,kBAAM,EAAC,wBAAiB,CAAC;;wEAAyD;AACtC;IAA5C,IAAA,kBAAM,EAAC,0BAAgB,CAAC;sCAAsC,0BAAgB;uEAAC;AACxC;IAAvC,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCAAiC,0BAAW;kEAAC;AACvB;IAAzC,IAAA,kBAAM,EAAC,uBAAa,CAAC;;oEAAiD;AAGpD;IADlB,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,sCAAsC,CAAC;;6DAC5B;AAmBzB;IADT,IAAA,yBAAa,GAAE;;;;yDAGf;wCA7BQ,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CA6LzC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TodoToolRenderer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
2
6
|
// *****************************************************************************
|
|
3
7
|
// Copyright (C) 2026 EclipseSource GmbH.
|
|
4
8
|
//
|
|
@@ -14,12 +18,8 @@
|
|
|
14
18
|
//
|
|
15
19
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
20
|
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.TodoToolRenderer = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
21
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
22
|
const common_1 = require("@theia/ai-chat/lib/common");
|
|
22
|
-
const React = require("@theia/core/shared/react");
|
|
23
23
|
const browser_1 = require("@theia/core/lib/browser");
|
|
24
24
|
const core_1 = require("@theia/core");
|
|
25
25
|
const todo_tool_1 = require("../common/todo-tool");
|
|
@@ -29,28 +29,20 @@ const chat_tool_preference_bindings_1 = require("@theia/ai-chat/lib/browser/chat
|
|
|
29
29
|
const pending_tool_confirmation_tracker_1 = require("@theia/ai-chat/lib/browser/pending-tool-confirmation-tracker");
|
|
30
30
|
const ai_core_1 = require("@theia/ai-core");
|
|
31
31
|
const TodoListComponent = ({ todos }) => {
|
|
32
|
-
const header = (
|
|
33
|
-
React.createElement("i", { className: (0, browser_1.codicon)('checklist') }),
|
|
34
|
-
React.createElement("span", { className: 'todo-tool-title' }, core_1.nls.localizeByDefault('Todos'))));
|
|
32
|
+
const header = ((0, jsx_runtime_1.jsxs)("div", { className: 'todo-tool-header', children: [(0, jsx_runtime_1.jsx)("i", { className: (0, browser_1.codicon)('checklist') }), (0, jsx_runtime_1.jsx)("span", { className: 'todo-tool-title', children: core_1.nls.localizeByDefault('Todos') })] }));
|
|
35
33
|
if (!todos || todos.length === 0) {
|
|
36
|
-
return (
|
|
37
|
-
header,
|
|
38
|
-
React.createElement("div", { className: 'todo-tool-empty' }, core_1.nls.localize('theia/ai-ide/todoTool/noTasks', 'No tasks'))));
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: 'todo-tool-container', children: [header, (0, jsx_runtime_1.jsx)("div", { className: 'todo-tool-empty', children: core_1.nls.localize('theia/ai-ide/todoTool/noTasks', 'No tasks') })] }));
|
|
39
35
|
}
|
|
40
|
-
return (
|
|
41
|
-
header,
|
|
42
|
-
React.createElement("div", { className: 'todo-tool-list' }, todos.map((todo, index) => (React.createElement("div", { key: index, className: `todo-tool-item todo-status-${todo.status}` },
|
|
43
|
-
React.createElement("span", { className: 'todo-tool-icon' }, getStatusIcon(todo.status)),
|
|
44
|
-
React.createElement("span", { className: 'todo-tool-text' }, todo.status === 'in_progress' ? todo.activeForm : todo.content)))))));
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: 'todo-tool-container', children: [header, (0, jsx_runtime_1.jsx)("div", { className: 'todo-tool-list', children: todos.map((todo, index) => ((0, jsx_runtime_1.jsxs)("div", { className: `todo-tool-item todo-status-${todo.status}`, children: [(0, jsx_runtime_1.jsx)("span", { className: 'todo-tool-icon', children: getStatusIcon(todo.status) }), (0, jsx_runtime_1.jsx)("span", { className: 'todo-tool-text', children: todo.status === 'in_progress' ? todo.activeForm : todo.content })] }, index))) })] }));
|
|
45
37
|
};
|
|
46
38
|
function getStatusIcon(status) {
|
|
47
39
|
switch (status) {
|
|
48
40
|
case 'pending':
|
|
49
|
-
return
|
|
41
|
+
return (0, jsx_runtime_1.jsx)("i", { className: (0, browser_1.codicon)('circle-large-outline') });
|
|
50
42
|
case 'in_progress':
|
|
51
|
-
return
|
|
43
|
+
return (0, jsx_runtime_1.jsx)("i", { className: `${(0, browser_1.codicon)('sync')} theia-animation-spin` });
|
|
52
44
|
case 'completed':
|
|
53
|
-
return
|
|
45
|
+
return (0, jsx_runtime_1.jsx)("i", { className: (0, browser_1.codicon)('pass-filled') });
|
|
54
46
|
default:
|
|
55
47
|
return undefined;
|
|
56
48
|
}
|
|
@@ -75,7 +67,7 @@ let TodoToolRenderer = class TodoToolRenderer {
|
|
|
75
67
|
const toolRequest = this.toolInvocationRegistry.getFunction(todo_tool_1.TODO_WRITE_FUNCTION_ID);
|
|
76
68
|
const confirmationMode = this.toolConfirmationManager.getConfirmationMode(todo_tool_1.TODO_WRITE_FUNCTION_ID, chatId, toolRequest);
|
|
77
69
|
const todos = this.parseTodos(response.arguments);
|
|
78
|
-
return (
|
|
70
|
+
return ((0, jsx_runtime_1.jsx)(TodoListWithConfirmation, { todos: todos, toolConfirmation: {
|
|
79
71
|
response,
|
|
80
72
|
confirmationMode,
|
|
81
73
|
toolConfirmationManager: this.toolConfirmationManager,
|