@theia/ai-ide 1.77.0-next.95 → 1.77.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/address-pr-review-command-contribution.js +15 -19
- package/lib/browser/address-pr-review-command-contribution.js.map +1 -1
- package/lib/browser/agent-mode-confirmation-service.js +20 -24
- package/lib/browser/agent-mode-confirmation-service.js.map +1 -1
- package/lib/browser/agents-md-agent.js +15 -19
- package/lib/browser/agents-md-agent.js.map +1 -1
- package/lib/browser/ai-allow-all-mode-chat-banner.js +32 -39
- package/lib/browser/ai-allow-all-mode-chat-banner.js.map +1 -1
- package/lib/browser/ai-allow-all-mode-chat-banner.spec.js +49 -51
- package/lib/browser/ai-allow-all-mode-chat-banner.spec.js.map +1 -1
- package/lib/browser/ai-aware-scm-commit-widget.d.ts +1 -1
- package/lib/browser/ai-aware-scm-commit-widget.d.ts.map +1 -1
- package/lib/browser/ai-aware-scm-commit-widget.js +36 -47
- package/lib/browser/ai-aware-scm-commit-widget.js.map +1 -1
- package/lib/browser/ai-configuration/agent-icon.js +5 -9
- package/lib/browser/ai-configuration/agent-icon.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js +28 -37
- package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js +29 -39
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js +22 -24
- package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +12 -15
- package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js +20 -24
- package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js +37 -39
- package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-resource.js +3 -7
- package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js +20 -26
- package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-search.js +2 -5
- package/lib/browser/ai-configuration/ai-configuration-search.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js +15 -17
- package/lib/browser/ai-configuration/ai-configuration-search.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-service.js +9 -12
- package/lib/browser/ai-configuration/ai-configuration-service.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-model.js +7 -10
- package/lib/browser/ai-configuration/ai-configuration-tree-model.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js +14 -17
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js +47 -49
- package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js +68 -79
- package/lib/browser/ai-configuration/ai-configuration-tree-widget.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +2 -2
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +47 -54
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +4 -4
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.js +45 -57
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +3 -0
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +34 -40
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +135 -140
- package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-chips.js +8 -13
- package/lib/browser/ai-configuration/categories/agent-chips.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-model.js +7 -10
- package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js +13 -15
- package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -1
- package/lib/browser/ai-configuration/categories/agent-detail-view.js +29 -34
- package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js +106 -128
- package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js +32 -34
- package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/general-configuration-category.js +91 -101
- package/lib/browser/ai-configuration/categories/general-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js +38 -40
- package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js +53 -63
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js +25 -27
- package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/models-configuration-category.js +45 -56
- package/lib/browser/ai-configuration/categories/models-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js +31 -33
- package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js +68 -76
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js +55 -57
- package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js +85 -100
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js +39 -41
- package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js +44 -49
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js.map +1 -1
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js +71 -74
- package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +34 -42
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js +16 -18
- package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js +101 -112
- package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js +46 -48
- package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js +54 -63
- package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -1
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js +27 -29
- package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js.map +1 -1
- package/lib/browser/ai-configuration/components/agent-notification-settings.js +12 -16
- package/lib/browser/ai-configuration/components/agent-notification-settings.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +25 -31
- package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.spec.js +29 -32
- package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -1
- package/lib/browser/ai-first-perspective-contribution.js +18 -21
- package/lib/browser/ai-first-perspective-contribution.js.map +1 -1
- package/lib/browser/ai-getting-started-commands.js +3 -6
- package/lib/browser/ai-getting-started-commands.js.map +1 -1
- package/lib/browser/ai-getting-started-contribution.js +24 -30
- package/lib/browser/ai-getting-started-contribution.js.map +1 -1
- package/lib/browser/ai-getting-started-walkthrough.js +54 -58
- package/lib/browser/ai-getting-started-walkthrough.js.map +1 -1
- package/lib/browser/ai-getting-started-walkthrough.spec.js +32 -34
- package/lib/browser/ai-getting-started-walkthrough.spec.js.map +1 -1
- package/lib/browser/ai-ide-activation-service.js +25 -34
- package/lib/browser/ai-ide-activation-service.js.map +1 -1
- package/lib/browser/ai-sessions-view-contribution.d.ts +1 -1
- package/lib/browser/ai-sessions-view-contribution.d.ts.map +1 -1
- package/lib/browser/ai-sessions-view-contribution.js +28 -33
- package/lib/browser/ai-sessions-view-contribution.js.map +1 -1
- package/lib/browser/ai-sessions-widget.d.ts +3 -3
- package/lib/browser/ai-sessions-widget.d.ts.map +1 -1
- package/lib/browser/ai-sessions-widget.js +42 -55
- package/lib/browser/ai-sessions-widget.js.map +1 -1
- package/lib/browser/ai-terminal-functions.js +18 -24
- package/lib/browser/ai-terminal-functions.js.map +1 -1
- package/lib/browser/ai-walkthrough-context-keys.js +35 -45
- package/lib/browser/ai-walkthrough-context-keys.js.map +1 -1
- package/lib/browser/ai-walkthrough-context-keys.spec.js +34 -36
- package/lib/browser/ai-walkthrough-context-keys.spec.js.map +1 -1
- package/lib/browser/ai-workspace-restriction-contribution.js +11 -15
- package/lib/browser/ai-workspace-restriction-contribution.js.map +1 -1
- package/lib/browser/analyze-gh-ticket-command-contribution.js +19 -23
- package/lib/browser/analyze-gh-ticket-command-contribution.js.map +1 -1
- package/lib/browser/app-tester-chat-agent.js +45 -51
- package/lib/browser/app-tester-chat-agent.js.map +1 -1
- package/lib/browser/app-tester-chat-functions.d.ts +1 -1
- package/lib/browser/app-tester-chat-functions.d.ts.map +1 -1
- package/lib/browser/app-tester-chat-functions.js +29 -34
- package/lib/browser/app-tester-chat-functions.js.map +1 -1
- package/lib/browser/app-tester-prompt-template.js +42 -45
- package/lib/browser/app-tester-prompt-template.js.map +1 -1
- package/lib/browser/apptester-capability-contribution.js +13 -17
- package/lib/browser/apptester-capability-contribution.js.map +1 -1
- package/lib/browser/architect-agent.d.ts +2 -2
- package/lib/browser/architect-agent.d.ts.map +1 -1
- package/lib/browser/architect-agent.js +38 -44
- package/lib/browser/architect-agent.js.map +1 -1
- package/lib/browser/architect-prompt-template.js +84 -87
- package/lib/browser/architect-prompt-template.js.map +1 -1
- package/lib/browser/chat-session-item-action-contribution.js +15 -18
- package/lib/browser/chat-session-item-action-contribution.js.map +1 -1
- package/lib/browser/chat-session-item.d.ts +1 -1
- package/lib/browser/chat-session-item.d.ts.map +1 -1
- package/lib/browser/chat-session-item.js +25 -29
- package/lib/browser/chat-session-item.js.map +1 -1
- package/lib/browser/chat-session-list-components.js +9 -14
- package/lib/browser/chat-session-list-components.js.map +1 -1
- package/lib/browser/chat-session-list-service.d.ts +2 -2
- package/lib/browser/chat-session-list-service.d.ts.map +1 -1
- package/lib/browser/chat-session-list-service.js +33 -43
- package/lib/browser/chat-session-list-service.js.map +1 -1
- package/lib/browser/chat-session-list-service.spec.js +56 -58
- package/lib/browser/chat-session-list-service.spec.js.map +1 -1
- package/lib/browser/chat-session-tooltip.js +31 -35
- package/lib/browser/chat-session-tooltip.js.map +1 -1
- package/lib/browser/chat-sessions-welcome-message-provider.d.ts +3 -3
- package/lib/browser/chat-sessions-welcome-message-provider.d.ts.map +1 -1
- package/lib/browser/chat-sessions-welcome-message-provider.js +54 -70
- package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
- package/lib/browser/code-review-capability-contribution.js +13 -17
- package/lib/browser/code-review-capability-contribution.js.map +1 -1
- package/lib/browser/code-reviewer-agent.js +17 -21
- package/lib/browser/code-reviewer-agent.js.map +1 -1
- package/lib/browser/code-reviewer-prompt-template.js +5 -8
- package/lib/browser/code-reviewer-prompt-template.js.map +1 -1
- package/lib/browser/coder-agent.d.ts +2 -2
- package/lib/browser/coder-agent.d.ts.map +1 -1
- package/lib/browser/coder-agent.js +44 -50
- package/lib/browser/coder-agent.js.map +1 -1
- package/lib/browser/commit-message-agent.js +26 -32
- package/lib/browser/commit-message-agent.js.map +1 -1
- package/lib/browser/commit-message-agent.spec.js +25 -28
- package/lib/browser/commit-message-agent.spec.js.map +1 -1
- package/lib/browser/commit-message-command-contribution.d.ts +1 -1
- package/lib/browser/commit-message-command-contribution.d.ts.map +1 -1
- package/lib/browser/commit-message-command-contribution.js +21 -28
- package/lib/browser/commit-message-command-contribution.js.map +1 -1
- package/lib/browser/commit-message-commands.js +4 -7
- package/lib/browser/commit-message-commands.js.map +1 -1
- package/lib/browser/commit-message-prompt-template.js +9 -12
- package/lib/browser/commit-message-prompt-template.js.map +1 -1
- package/lib/browser/commit-message-runner.d.ts +2 -2
- package/lib/browser/commit-message-runner.d.ts.map +1 -1
- package/lib/browser/commit-message-runner.js +33 -41
- package/lib/browser/commit-message-runner.js.map +1 -1
- package/lib/browser/commit-message-runner.spec.js +65 -68
- package/lib/browser/commit-message-runner.spec.js.map +1 -1
- package/lib/browser/context-file-validation-service-impl.d.ts +1 -1
- package/lib/browser/context-file-validation-service-impl.d.ts.map +1 -1
- package/lib/browser/context-file-validation-service-impl.js +20 -26
- package/lib/browser/context-file-validation-service-impl.js.map +1 -1
- package/lib/browser/context-file-validation-service-impl.spec.js +77 -79
- package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
- package/lib/browser/context-functions.js +27 -31
- package/lib/browser/context-functions.js.map +1 -1
- package/lib/browser/context-functions.spec.js +64 -66
- package/lib/browser/context-functions.spec.js.map +1 -1
- package/lib/browser/create-skill-agent.d.ts +1 -1
- package/lib/browser/create-skill-agent.d.ts.map +1 -1
- package/lib/browser/create-skill-agent.js +19 -23
- package/lib/browser/create-skill-agent.js.map +1 -1
- package/lib/browser/default-chat-agent-recommendation-service.js +16 -19
- package/lib/browser/default-chat-agent-recommendation-service.js.map +1 -1
- package/lib/browser/explore-agent.d.ts +1 -1
- package/lib/browser/explore-agent.d.ts.map +1 -1
- package/lib/browser/explore-agent.js +18 -22
- package/lib/browser/explore-agent.js.map +1 -1
- package/lib/browser/explore-prompt-template.js +5 -8
- package/lib/browser/explore-prompt-template.js.map +1 -1
- package/lib/browser/file-changeset-function.spec.js +12 -14
- package/lib/browser/file-changeset-function.spec.js.map +1 -1
- package/lib/browser/file-changeset-functions.d.ts +1 -1
- package/lib/browser/file-changeset-functions.d.ts.map +1 -1
- package/lib/browser/file-changeset-functions.js +134 -164
- package/lib/browser/file-changeset-functions.js.map +1 -1
- package/lib/browser/file-changeset-functions.spec.js +136 -138
- package/lib/browser/file-changeset-functions.spec.js.map +1 -1
- package/lib/browser/frontend-module.js +293 -295
- package/lib/browser/frontend-module.js.map +1 -1
- package/lib/browser/git-changes-tool.js +22 -26
- package/lib/browser/git-changes-tool.js.map +1 -1
- package/lib/browser/git-changes-tool.spec.js +52 -55
- package/lib/browser/git-changes-tool.spec.js.map +1 -1
- package/lib/browser/github-capability-contribution.js +14 -18
- package/lib/browser/github-capability-contribution.js.map +1 -1
- package/lib/browser/github-chat-agent.js +58 -67
- package/lib/browser/github-chat-agent.js.map +1 -1
- package/lib/browser/github-prompt-template.js +6 -9
- package/lib/browser/github-prompt-template.js.map +1 -1
- package/lib/browser/github-repo-variable-contribution.d.ts +1 -1
- package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -1
- package/lib/browser/github-repo-variable-contribution.js +23 -30
- package/lib/browser/github-repo-variable-contribution.js.map +1 -1
- package/lib/browser/ide-chat-welcome-message-provider.js +59 -71
- package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -1
- package/lib/browser/implement-gh-ticket-command-contribution.js +15 -19
- package/lib/browser/implement-gh-ticket-command-contribution.js.map +1 -1
- package/lib/browser/memory-capability-contribution.d.ts.map +1 -1
- package/lib/browser/memory-capability-contribution.js +21 -25
- package/lib/browser/memory-capability-contribution.js.map +1 -1
- package/lib/browser/memory-capability-contribution.spec.js +30 -32
- package/lib/browser/memory-capability-contribution.spec.js.map +1 -1
- package/lib/browser/memory-directory-variable-contribution.d.ts +1 -1
- package/lib/browser/memory-directory-variable-contribution.d.ts.map +1 -1
- package/lib/browser/memory-directory-variable-contribution.js +19 -24
- package/lib/browser/memory-directory-variable-contribution.js.map +1 -1
- package/lib/browser/memory-directory-variable-contribution.spec.js +28 -30
- package/lib/browser/memory-directory-variable-contribution.spec.js.map +1 -1
- package/lib/browser/mode-aware-chat-agent.js +9 -12
- package/lib/browser/mode-aware-chat-agent.js.map +1 -1
- package/lib/browser/multi-root-paths.spec.js +86 -88
- package/lib/browser/multi-root-paths.spec.js.map +1 -1
- package/lib/browser/open-editors-hint-contribution.d.ts.map +1 -1
- package/lib/browser/open-editors-hint-contribution.js +11 -14
- package/lib/browser/open-editors-hint-contribution.js.map +1 -1
- package/lib/browser/remember-command-contribution.js +17 -21
- package/lib/browser/remember-command-contribution.js.map +1 -1
- package/lib/browser/review/pr-review-agent.js +17 -21
- package/lib/browser/review/pr-review-agent.js.map +1 -1
- package/lib/browser/review/pr-review-capability-contribution.js +41 -45
- package/lib/browser/review/pr-review-capability-contribution.js.map +1 -1
- package/lib/browser/review/pr-review-prompt-template.js +48 -51
- package/lib/browser/review/pr-review-prompt-template.js.map +1 -1
- package/lib/browser/shell-execution-capability-contribution.js +17 -21
- package/lib/browser/shell-execution-capability-contribution.js.map +1 -1
- package/lib/browser/skill-file-functions.js +27 -33
- package/lib/browser/skill-file-functions.js.map +1 -1
- package/lib/browser/skill-file-functions.spec.js +19 -21
- package/lib/browser/skill-file-functions.spec.js.map +1 -1
- package/lib/browser/summarize-session-command-contribution.d.ts +1 -1
- package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -1
- package/lib/browser/summarize-session-command-contribution.js +38 -50
- package/lib/browser/summarize-session-command-contribution.js.map +1 -1
- package/lib/browser/task-background-summary-variable.js +17 -20
- package/lib/browser/task-background-summary-variable.js.map +1 -1
- package/lib/browser/task-context-file-storage-service.js +39 -51
- package/lib/browser/task-context-file-storage-service.js.map +1 -1
- package/lib/browser/task-context-file-storage-service.spec.js +41 -43
- package/lib/browser/task-context-file-storage-service.spec.js.map +1 -1
- package/lib/browser/task-context-functions.js +44 -52
- package/lib/browser/task-context-functions.js.map +1 -1
- package/lib/browser/template-preference-contribution.js +30 -37
- package/lib/browser/template-preference-contribution.js.map +1 -1
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +8 -10
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +1 -1
- package/lib/browser/todo-tool-renderer.d.ts +1 -1
- package/lib/browser/todo-tool-renderer.d.ts.map +1 -1
- package/lib/browser/todo-tool-renderer.js +42 -51
- package/lib/browser/todo-tool-renderer.js.map +1 -1
- package/lib/browser/todo-tool.js +8 -11
- package/lib/browser/todo-tool.js.map +1 -1
- package/lib/browser/todo-tool.spec.js +14 -16
- package/lib/browser/todo-tool.spec.js.map +1 -1
- package/lib/browser/user-interaction-tool-renderer.d.ts +1 -1
- package/lib/browser/user-interaction-tool-renderer.d.ts.map +1 -1
- package/lib/browser/user-interaction-tool-renderer.js +81 -95
- package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
- package/lib/browser/user-interaction-tool.d.ts +2 -2
- package/lib/browser/user-interaction-tool.d.ts.map +1 -1
- package/lib/browser/user-interaction-tool.js +56 -65
- package/lib/browser/user-interaction-tool.js.map +1 -1
- package/lib/browser/user-interaction-tool.spec.js +118 -121
- package/lib/browser/user-interaction-tool.spec.js.map +1 -1
- package/lib/browser/workspace-functions.d.ts +1 -1
- package/lib/browser/workspace-functions.d.ts.map +1 -1
- package/lib/browser/workspace-functions.js +126 -155
- package/lib/browser/workspace-functions.js.map +1 -1
- package/lib/browser/workspace-functions.spec.js +607 -600
- package/lib/browser/workspace-functions.spec.js.map +1 -1
- package/lib/browser/workspace-launch-provider.d.ts +1 -1
- package/lib/browser/workspace-launch-provider.d.ts.map +1 -1
- package/lib/browser/workspace-launch-provider.js +46 -57
- package/lib/browser/workspace-launch-provider.js.map +1 -1
- package/lib/browser/workspace-launch-provider.spec.js +119 -122
- package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
- package/lib/browser/workspace-search-provider.d.ts +1 -1
- package/lib/browser/workspace-search-provider.d.ts.map +1 -1
- package/lib/browser/workspace-search-provider.js +25 -32
- package/lib/browser/workspace-search-provider.js.map +1 -1
- package/lib/browser/workspace-search-provider.spec.js +35 -38
- package/lib/browser/workspace-search-provider.spec.js.map +1 -1
- package/lib/browser/workspace-task-provider.d.ts +1 -1
- package/lib/browser/workspace-task-provider.d.ts.map +1 -1
- package/lib/browser/workspace-task-provider.js +42 -51
- package/lib/browser/workspace-task-provider.js.map +1 -1
- package/lib/browser/workspace-task-provider.spec.js +102 -105
- package/lib/browser/workspace-task-provider.spec.js.map +1 -1
- package/lib/common/agent-ids.js +2 -5
- package/lib/common/agent-ids.js.map +1 -1
- package/lib/common/agents-md-prompt-template.js +38 -41
- package/lib/common/agents-md-prompt-template.js.map +1 -1
- package/lib/common/ai-configuration-preferences.js +5 -8
- package/lib/common/ai-configuration-preferences.js.map +1 -1
- package/lib/common/ai-ide-preferences.js +16 -19
- package/lib/common/ai-ide-preferences.js.map +1 -1
- package/lib/common/ai-terminal-functions.js +1 -4
- package/lib/common/ai-terminal-functions.js.map +1 -1
- package/lib/common/app-tester-chat-functions.js +4 -7
- package/lib/common/app-tester-chat-functions.js.map +1 -1
- package/lib/common/browser-automation-protocol.js +3 -6
- package/lib/common/browser-automation-protocol.js.map +1 -1
- package/lib/common/coder-replace-prompt-template.js +102 -108
- package/lib/common/coder-replace-prompt-template.js.map +1 -1
- package/lib/common/command-chat-agents.js +34 -40
- package/lib/common/command-chat-agents.js.map +1 -1
- package/lib/common/command-prompt-template.js +1 -4
- package/lib/common/command-prompt-template.js.map +1 -1
- package/lib/common/context-files-variable.js +17 -20
- package/lib/common/context-files-variable.js.map +1 -1
- package/lib/common/context-functions.js +3 -6
- package/lib/common/context-functions.js.map +1 -1
- package/lib/common/context-variables.js +2 -5
- package/lib/common/context-variables.js.map +1 -1
- package/lib/common/create-skill-prompt-template.js +22 -25
- package/lib/common/create-skill-prompt-template.js.map +1 -1
- package/lib/common/file-changeset-function-ids.js +8 -11
- package/lib/common/file-changeset-function-ids.js.map +1 -1
- package/lib/common/github-repo-protocol.js +2 -5
- package/lib/common/github-repo-protocol.js.map +1 -1
- package/lib/common/open-editors-hint-fragment-id.js +1 -4
- package/lib/common/open-editors-hint-fragment-id.js.map +1 -1
- package/lib/common/orchestrator-chat-agent.js +36 -42
- package/lib/common/orchestrator-chat-agent.js.map +1 -1
- package/lib/common/orchestrator-prompt-template.js +1 -4
- package/lib/common/orchestrator-prompt-template.js.map +1 -1
- package/lib/common/summarize-session-commands.js +2 -5
- package/lib/common/summarize-session-commands.js.map +1 -1
- package/lib/common/task-context-function-ids.js +5 -8
- package/lib/common/task-context-function-ids.js.map +1 -1
- package/lib/common/todo-tool.js +2 -6
- package/lib/common/todo-tool.js.map +1 -1
- package/lib/common/universal-chat-agent.js +17 -21
- package/lib/common/universal-chat-agent.js.map +1 -1
- package/lib/common/universal-prompt-template.js +6 -9
- package/lib/common/universal-prompt-template.js.map +1 -1
- package/lib/common/user-interaction-tool.js +11 -21
- package/lib/common/user-interaction-tool.js.map +1 -1
- package/lib/common/user-interaction-tool.spec.js +52 -54
- package/lib/common/user-interaction-tool.spec.js.map +1 -1
- package/lib/common/workspace-functions.js +13 -16
- package/lib/common/workspace-functions.js.map +1 -1
- package/lib/common/workspace-preferences.js +41 -44
- package/lib/common/workspace-preferences.js.map +1 -1
- package/lib/common/workspace-search-provider-util.js +3 -6
- package/lib/common/workspace-search-provider-util.js.map +1 -1
- package/lib/common/workspace-search-provider-util.spec.js +13 -15
- package/lib/common/workspace-search-provider-util.spec.js.map +1 -1
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts +1 -1
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +1 -1
- package/lib/node/app-tester-agent/browser-automation-impl.js +7 -10
- package/lib/node/app-tester-agent/browser-automation-impl.js.map +1 -1
- package/lib/node/backend-module.js +21 -23
- package/lib/node/backend-module.js.map +1 -1
- package/lib/node/github-repo-service-impl.d.ts +1 -1
- package/lib/node/github-repo-service-impl.d.ts.map +1 -1
- package/lib/node/github-repo-service-impl.js +11 -15
- package/lib/node/github-repo-service-impl.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +33 -25
- package/src/browser/address-pr-review-command-contribution.ts +1 -1
- package/src/browser/agent-mode-confirmation-service.ts +1 -1
- package/src/browser/agents-md-agent.ts +1 -1
- package/src/browser/ai-allow-all-mode-chat-banner.spec.ts +1 -1
- package/src/browser/ai-aware-scm-commit-widget.tsx +3 -3
- package/src/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.ts +2 -2
- package/src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts +6 -6
- package/src/browser/ai-configuration/ai-configuration-search.spec.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-tree-nodes.spec.ts +1 -1
- package/src/browser/ai-configuration/ai-configuration-tree-widget.tsx +3 -3
- package/src/browser/ai-configuration/ai-configuration-view-contribution.ts +2 -2
- package/src/browser/ai-configuration/ai-configuration-widget.tsx +5 -5
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +9 -9
- package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +5 -2
- package/src/browser/ai-configuration/categories/agent-chips.tsx +1 -1
- package/src/browser/ai-configuration/categories/agent-detail-model.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/agent-detail-view.tsx +6 -6
- package/src/browser/ai-configuration/categories/agents-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +5 -5
- package/src/browser/ai-configuration/categories/general-configuration-category.spec.ts +2 -2
- package/src/browser/ai-configuration/categories/general-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/model-aliases-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/models-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/models-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/provider-model-discovery-section.spec.tsx +1 -1
- package/src/browser/ai-configuration/categories/provider-model-discovery-section.tsx +1 -1
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/categories/tools-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/variables-configuration-category.spec.ts +1 -1
- package/src/browser/ai-configuration/categories/variables-configuration-category.tsx +1 -1
- package/src/browser/ai-configuration/language-model-renderer.spec.ts +1 -1
- package/src/browser/ai-first-perspective-contribution.ts +1 -1
- package/src/browser/ai-getting-started-contribution.ts +2 -2
- package/src/browser/ai-getting-started-walkthrough.spec.ts +2 -2
- package/src/browser/ai-getting-started-walkthrough.ts +3 -3
- package/src/browser/ai-ide-activation-service.ts +1 -1
- package/src/browser/ai-sessions-view-contribution.ts +1 -1
- package/src/browser/ai-sessions-widget.tsx +4 -4
- package/src/browser/ai-terminal-functions.ts +1 -1
- package/src/browser/ai-walkthrough-context-keys.spec.ts +1 -1
- package/src/browser/analyze-gh-ticket-command-contribution.ts +3 -3
- package/src/browser/app-tester-chat-agent.ts +2 -2
- package/src/browser/app-tester-chat-functions.ts +2 -2
- package/src/browser/app-tester-prompt-template.ts +2 -2
- package/src/browser/apptester-capability-contribution.ts +1 -1
- package/src/browser/architect-agent.ts +4 -4
- package/src/browser/architect-prompt-template.ts +6 -6
- package/src/browser/chat-session-item.tsx +2 -2
- package/src/browser/chat-session-list-service.spec.ts +2 -2
- package/src/browser/chat-session-list-service.ts +2 -2
- package/src/browser/chat-sessions-welcome-message-provider.tsx +5 -5
- package/src/browser/code-review-capability-contribution.ts +1 -1
- package/src/browser/code-reviewer-agent.ts +1 -1
- package/src/browser/coder-agent.ts +3 -3
- package/src/browser/commit-message-agent.spec.ts +2 -2
- package/src/browser/commit-message-agent.ts +1 -1
- package/src/browser/commit-message-command-contribution.ts +3 -3
- package/src/browser/commit-message-runner.spec.ts +3 -3
- package/src/browser/commit-message-runner.ts +2 -2
- package/src/browser/context-file-validation-service-impl.spec.ts +2 -2
- package/src/browser/context-file-validation-service-impl.ts +1 -1
- package/src/browser/context-functions.spec.ts +1 -1
- package/src/browser/context-functions.ts +1 -1
- package/src/browser/create-skill-agent.ts +2 -2
- package/src/browser/default-chat-agent-recommendation-service.ts +2 -2
- package/src/browser/explore-agent.ts +2 -2
- package/src/browser/file-changeset-function.spec.ts +1 -1
- package/src/browser/file-changeset-functions.spec.ts +3 -3
- package/src/browser/file-changeset-functions.ts +3 -3
- package/src/browser/frontend-module.ts +89 -89
- package/src/browser/git-changes-tool.spec.ts +1 -1
- package/src/browser/github-capability-contribution.ts +1 -1
- package/src/browser/github-chat-agent.ts +3 -3
- package/src/browser/github-repo-variable-contribution.ts +1 -1
- package/src/browser/ide-chat-welcome-message-provider.tsx +3 -3
- package/src/browser/implement-gh-ticket-command-contribution.ts +1 -1
- package/src/browser/memory-capability-contribution.spec.ts +4 -4
- package/src/browser/memory-capability-contribution.ts +5 -3
- package/src/browser/memory-directory-variable-contribution.spec.ts +1 -1
- package/src/browser/memory-directory-variable-contribution.ts +1 -1
- package/src/browser/multi-root-paths.spec.ts +2 -2
- package/src/browser/open-editors-hint-contribution.ts +2 -1
- package/src/browser/remember-command-contribution.ts +2 -2
- package/src/browser/review/pr-review-agent.ts +1 -1
- package/src/browser/review/pr-review-capability-contribution.ts +6 -6
- package/src/browser/review/pr-review-prompt-template.ts +4 -4
- package/src/browser/shell-execution-capability-contribution.ts +1 -1
- package/src/browser/skill-file-functions.spec.ts +1 -1
- package/src/browser/skill-file-functions.ts +1 -1
- package/src/browser/summarize-session-command-contribution.ts +2 -2
- package/src/browser/task-background-summary-variable.ts +1 -1
- package/src/browser/task-context-file-storage-service.spec.ts +1 -1
- package/src/browser/task-context-file-storage-service.ts +1 -1
- package/src/browser/task-context-functions.ts +1 -1
- package/src/browser/template-preference-contribution.ts +1 -1
- package/src/browser/todo-tool-renderer.tsx +1 -1
- package/src/browser/todo-tool.spec.ts +1 -1
- package/src/browser/todo-tool.ts +1 -1
- package/src/browser/user-interaction-tool-renderer.tsx +3 -3
- package/src/browser/user-interaction-tool.spec.ts +3 -3
- package/src/browser/user-interaction-tool.ts +2 -2
- package/src/browser/workspace-functions.spec.ts +16 -7
- package/src/browser/workspace-functions.ts +7 -6
- package/src/browser/workspace-launch-provider.spec.ts +2 -2
- package/src/browser/workspace-launch-provider.ts +2 -2
- package/src/browser/workspace-search-provider.spec.ts +2 -2
- package/src/browser/workspace-search-provider.ts +4 -4
- package/src/browser/workspace-task-provider.spec.ts +2 -2
- package/src/browser/workspace-task-provider.ts +2 -2
- package/src/common/agents-md-prompt-template.ts +4 -4
- package/src/common/coder-replace-prompt-template.ts +8 -8
- package/src/common/command-chat-agents.ts +1 -1
- package/src/common/context-files-variable.ts +1 -1
- package/src/common/create-skill-prompt-template.ts +4 -4
- package/src/common/orchestrator-chat-agent.ts +2 -2
- package/src/common/universal-chat-agent.ts +1 -1
- package/src/common/universal-prompt-template.ts +1 -1
- package/src/common/user-interaction-tool.spec.ts +1 -1
- package/src/common/workspace-search-provider-util.spec.ts +1 -1
- package/src/node/app-tester-agent/browser-automation-impl.ts +1 -1
- package/src/node/backend-module.ts +7 -7
- package/src/node/github-repo-service-impl.ts +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
3
|
//
|
|
@@ -14,13 +13,11 @@
|
|
|
14
13
|
//
|
|
15
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
15
|
// *****************************************************************************
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const core_1 = require("@theia/core");
|
|
23
|
-
const app_tester_chat_agent_1 = require("./app-tester-chat-agent");
|
|
16
|
+
import { __decorate } from "tslib";
|
|
17
|
+
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { PromptService } from '@theia/ai-core';
|
|
19
|
+
import { nls } from '@theia/core';
|
|
20
|
+
import { AppTesterChatAgentId } from './app-tester-chat-agent.js';
|
|
24
21
|
let AppTesterCapabilityContribution = class AppTesterCapabilityContribution {
|
|
25
22
|
onStart() {
|
|
26
23
|
this.promptService.addBuiltInPromptFragment({
|
|
@@ -29,8 +26,8 @@ let AppTesterCapabilityContribution = class AppTesterCapabilityContribution {
|
|
|
29
26
|
});
|
|
30
27
|
}
|
|
31
28
|
buildTemplate() {
|
|
32
|
-
const name =
|
|
33
|
-
const description =
|
|
29
|
+
const name = nls.localize('theia/ai-ide/appTester/name', 'E2E Test');
|
|
30
|
+
const description = nls.localize('theia/ai-ide/appTester/description', 'Delegates to AppTester agent for browser-based UI verification after implementation.');
|
|
34
31
|
return `---
|
|
35
32
|
name: ${name}
|
|
36
33
|
description: ${description}
|
|
@@ -81,7 +78,7 @@ then retry E2E testing.
|
|
|
81
78
|
|
|
82
79
|
Use ~{delegateToAgent} to delegate to the following agent:
|
|
83
80
|
|
|
84
|
-
**Agent:** '${
|
|
81
|
+
**Agent:** '${AppTesterChatAgentId}'
|
|
85
82
|
**When:** After Coding Agent completes implementation AND build/lint/test pass
|
|
86
83
|
|
|
87
84
|
**Provide:**
|
|
@@ -158,12 +155,11 @@ to update status.
|
|
|
158
155
|
- **INCONCLUSIVE:** Environment issues, ask user for decision`;
|
|
159
156
|
}
|
|
160
157
|
};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
(0, inversify_1.inject)(ai_core_1.PromptService),
|
|
164
|
-
tslib_1.__metadata("design:type", Object)
|
|
158
|
+
__decorate([
|
|
159
|
+
inject(PromptService)
|
|
165
160
|
], AppTesterCapabilityContribution.prototype, "promptService", void 0);
|
|
166
|
-
|
|
167
|
-
|
|
161
|
+
AppTesterCapabilityContribution = __decorate([
|
|
162
|
+
injectable()
|
|
168
163
|
], AppTesterCapabilityContribution);
|
|
164
|
+
export { AppTesterCapabilityContribution };
|
|
169
165
|
//# sourceMappingURL=apptester-capability-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apptester-capability-contribution.js","sourceRoot":"","sources":["../../src/browser/apptester-capability-contribution.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apptester-capability-contribution.js","sourceRoot":"","sources":["../../src/browser/apptester-capability-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,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAG3D,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAKxC,OAAO;QACH,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC;YACxC,EAAE,EAAE,WAAW;YACf,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE;SACjC,CAAC,CAAC;IACP,CAAC;IAES,aAAa;QACnB,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC,6BAA6B,EAAE,UAAU,CAAC,CAAC;QACrE,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ,CAAC,oCAAoC,EACjE,sFAAsF,CAAC,CAAC;QAE5F,OAAO;QACP,IAAI;eACG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgDZ,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DA0E4B,CAAC;IAC3D,CAAC;CACJ,CAAA;AA5IsB;IADlB,MAAM,CAAC,aAAa,CAAC;sEAC0B;AAHvC,+BAA+B;IAD3C,UAAU,EAAE;GACA,+BAA+B,CA+I3C"}
|
|
@@ -2,8 +2,8 @@ import { ChatMode, ChatRequestModel, ChatService, ChatSession, MutableChatReques
|
|
|
2
2
|
import { TaskContextStorageService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
3
3
|
import { LanguageModelRequirement } from '@theia/ai-core';
|
|
4
4
|
import { ILogger } from '@theia/core';
|
|
5
|
-
import { AbstractModeAwareChatAgent } from './mode-aware-chat-agent';
|
|
6
|
-
import { ArchitectAgentId } from '../common/agent-ids';
|
|
5
|
+
import { AbstractModeAwareChatAgent } from './mode-aware-chat-agent.js';
|
|
6
|
+
import { ArchitectAgentId } from '../common/agent-ids.js';
|
|
7
7
|
export { ArchitectAgentId };
|
|
8
8
|
export declare class ArchitectAgent extends AbstractModeAwareChatAgent {
|
|
9
9
|
protected readonly logger: ILogger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect-agent.d.ts","sourceRoot":"","sources":["../../src/browser/architect-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAClC,uBAAuB,EAC5C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAO,MAAM,aAAa,CAAC;AAI3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"architect-agent.d.ts","sourceRoot":"","sources":["../../src/browser/architect-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAClC,uBAAuB,EAC5C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAO,MAAM,aAAa,CAAC;AAI3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B,qBACa,cAAe,SAAQ,0BAA0B;IAC1D,mBAC4B,MAAM,EAAE,OAAO,CAAC;IAEvB,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAC9B,SAAS,CAAC,QAAQ,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;IAE3G,IAAI,SAAoB;IACxB,EAAE,SAAoB;IACtB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAC9C,SAAS,EAAE,MAAM,CAAyB;IAE1C,WAAW,SAMyC;IAE7D,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,EAAE,CAa/D;IAEO,OAAO,8CAA6B;IAC7C,UAAmB,cAAc,EAAE,MAAM,GAAG,SAAS,CAA8B;IAEpE,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhE,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;CAexE"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ArchitectAgent = exports.ArchitectAgentId = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
1
|
+
import { __decorate } from "tslib";
|
|
5
2
|
// *****************************************************************************
|
|
6
3
|
// Copyright (C) 2024 EclipseSource GmbH.
|
|
7
4
|
//
|
|
@@ -17,84 +14,81 @@ const tslib_1 = require("tslib");
|
|
|
17
14
|
//
|
|
18
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
19
16
|
// *****************************************************************************
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
let ArchitectAgent = class ArchitectAgent extends
|
|
17
|
+
import { ChatRequestModel, ChatService, MutableChatModel } from '@theia/ai-chat/lib/common';
|
|
18
|
+
import { TaskContextStorageService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
19
|
+
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
20
|
+
import { architectSystemVariants, ARCHITECT_PLANNING_PROMPT_ID, ARCHITECT_SIMPLE_PROMPT_ID, ARCHITECT_PLANNING_NEXT_PROMPT_ID } from './architect-prompt-template.js';
|
|
21
|
+
import { ILogger, nls } from '@theia/core';
|
|
22
|
+
import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';
|
|
23
|
+
import { MarkdownStringImpl } from '@theia/core/lib/common/markdown-rendering';
|
|
24
|
+
import { AI_EXECUTE_PLAN_WITH_CODER } from '../common/summarize-session-commands.js';
|
|
25
|
+
import { AbstractModeAwareChatAgent } from './mode-aware-chat-agent.js';
|
|
26
|
+
import { ArchitectAgentId } from '../common/agent-ids.js';
|
|
27
|
+
export { ArchitectAgentId };
|
|
28
|
+
let ArchitectAgent = class ArchitectAgent extends AbstractModeAwareChatAgent {
|
|
32
29
|
constructor() {
|
|
33
30
|
super(...arguments);
|
|
34
|
-
this.name =
|
|
35
|
-
this.id =
|
|
31
|
+
this.name = ArchitectAgentId;
|
|
32
|
+
this.id = ArchitectAgentId;
|
|
36
33
|
this.languageModelRequirements = [{
|
|
37
34
|
purpose: 'chat',
|
|
38
35
|
identifier: 'default/code',
|
|
39
36
|
}];
|
|
40
37
|
this.defaultLanguageModelPurpose = 'chat';
|
|
41
38
|
this.iconClass = 'codicon codicon-map';
|
|
42
|
-
this.description =
|
|
39
|
+
this.description = nls.localize('theia/ai/workspace/workspaceAgent/description', 'An AI assistant integrated into {0}, designed to assist software developers. This agent can access the users workspace, it can get a list of all available files' +
|
|
43
40
|
' and folders and retrieve their content. It cannot modify files. It can therefore answer questions about the current project, project files and source code in the' +
|
|
44
41
|
' workspace, such as how to build the project, where to put source code, where to find specific code or configurations, etc.' +
|
|
45
42
|
' It explores and produces an implementation plan (task context). Delegate to it when "what should change?" is itself open:' +
|
|
46
|
-
' design decisions, changes across 3+ files or 2+ packages, or crossing architectural layers.',
|
|
43
|
+
' design decisions, changes across 3+ files or 2+ packages, or crossing architectural layers.', FrontendApplicationConfigProvider.get().applicationName);
|
|
47
44
|
this.modeDefinitions = [
|
|
48
45
|
{
|
|
49
|
-
id:
|
|
50
|
-
name:
|
|
46
|
+
id: ARCHITECT_PLANNING_PROMPT_ID,
|
|
47
|
+
name: nls.localizeByDefault('Plan Mode')
|
|
51
48
|
},
|
|
52
49
|
{
|
|
53
|
-
id:
|
|
54
|
-
name:
|
|
50
|
+
id: ARCHITECT_SIMPLE_PROMPT_ID,
|
|
51
|
+
name: nls.localize('theia/ai/ide/architectAgent/mode/simple', 'Simple Mode')
|
|
55
52
|
},
|
|
56
53
|
{
|
|
57
|
-
id:
|
|
58
|
-
name:
|
|
54
|
+
id: ARCHITECT_PLANNING_NEXT_PROMPT_ID,
|
|
55
|
+
name: nls.localize('theia/ai/ide/architectAgent/mode/planNext', 'Plan Mode (Next)')
|
|
59
56
|
},
|
|
60
57
|
];
|
|
61
|
-
this.prompts = [
|
|
62
|
-
this.systemPromptId =
|
|
58
|
+
this.prompts = [architectSystemVariants];
|
|
59
|
+
this.systemPromptId = architectSystemVariants.id;
|
|
63
60
|
}
|
|
64
61
|
async invoke(request) {
|
|
65
62
|
await super.invoke(request);
|
|
66
63
|
this.suggest(request);
|
|
67
64
|
}
|
|
68
65
|
async suggest(context) {
|
|
69
|
-
const model =
|
|
66
|
+
const model = ChatRequestModel.is(context) ? context.session : context.model;
|
|
70
67
|
const session = this.chatService.getSessions().find(candidate => candidate.model.id === model.id);
|
|
71
|
-
if (!(model instanceof
|
|
68
|
+
if (!(model instanceof MutableChatModel) || !session) {
|
|
72
69
|
return;
|
|
73
70
|
}
|
|
74
71
|
if (!model.isEmpty()) {
|
|
75
72
|
const taskContexts = this.taskContextStorageService.getAll().filter(s => s.sessionId === session.id);
|
|
76
73
|
if (taskContexts.length > 0) {
|
|
77
|
-
const suggestions = taskContexts.map(tc => new
|
|
74
|
+
const suggestions = taskContexts.map(tc => new MarkdownStringImpl(`[${nls.localize('theia/ai/ide/architectAgent/suggestion/executePlanWithCoder', 'Execute "{0}" with Coder', tc.label)}](command:${AI_EXECUTE_PLAN_WITH_CODER.id}?${encodeURIComponent(JSON.stringify(tc.id))}).`));
|
|
78
75
|
model.setSuggestions(suggestions);
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
(0, inversify_1.named)('ai-ide:ArchitectAgent'),
|
|
87
|
-
tslib_1.__metadata("design:type", Object)
|
|
80
|
+
__decorate([
|
|
81
|
+
inject(ILogger),
|
|
82
|
+
named('ai-ide:ArchitectAgent')
|
|
88
83
|
], ArchitectAgent.prototype, "logger", void 0);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
tslib_1.__metadata("design:type", Object)
|
|
84
|
+
__decorate([
|
|
85
|
+
inject(ChatService)
|
|
92
86
|
], ArchitectAgent.prototype, "chatService", void 0);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
tslib_1.__metadata("design:type", Object)
|
|
87
|
+
__decorate([
|
|
88
|
+
inject(TaskContextStorageService)
|
|
96
89
|
], ArchitectAgent.prototype, "taskContextStorageService", void 0);
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
ArchitectAgent = __decorate([
|
|
91
|
+
injectable()
|
|
99
92
|
], ArchitectAgent);
|
|
93
|
+
export { ArchitectAgent };
|
|
100
94
|
//# sourceMappingURL=architect-agent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect-agent.js","sourceRoot":"","sources":["../../src/browser/architect-agent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"architect-agent.js","sourceRoot":"","sources":["../../src/browser/architect-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,OAAO,EACO,gBAAgB,EAAE,WAAW,EACvC,gBAAgB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAE5F,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AACtK,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAAE,MAAM,8DAA8D,CAAC;AACjH,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAGrB,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,0BAA0B;IAAvD;;QAOH,SAAI,GAAG,gBAAgB,CAAC;QACxB,OAAE,GAAG,gBAAgB,CAAC;QACtB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACO,gCAA2B,GAAW,MAAM,CAAC;QAC9C,cAAS,GAAW,qBAAqB,CAAC;QAE1C,gBAAW,GAAG,GAAG,CAAC,QAAQ,CAAC,+CAA+C,EAC/E,kKAAkK;YAClK,oKAAoK;YACpK,6HAA6H;YAC7H,4HAA4H;YAC5H,8FAA8F,EAC9F,iCAAiC,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;QAE1C,oBAAe,GAAkC;YAChE;gBACI,EAAE,EAAE,4BAA4B;gBAChC,IAAI,EAAE,GAAG,CAAC,iBAAiB,CAAC,WAAW,CAAC;aAC3C;YACD;gBACI,EAAE,EAAE,0BAA0B;gBAC9B,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,yCAAyC,EAAE,aAAa,CAAC;aAC/E;YACD;gBACI,EAAE,EAAE,iCAAiC;gBACrC,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,2CAA2C,EAAE,kBAAkB,CAAC;aACtF;SACJ,CAAC;QAEO,YAAO,GAAG,CAAC,uBAAuB,CAAC,CAAC;QAC1B,mBAAc,GAAuB,uBAAuB,CAAC,EAAE,CAAC;IAsBvF,CAAC;IApBY,KAAK,CAAC,MAAM,CAAC,OAAgC;QAClD,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAuC;QACjD,MAAM,KAAK,GAAG,gBAAgB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAAC;QAClG,IAAI,CAAC,CAAC,KAAK,YAAY,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAAC,OAAO;QAAC,CAAC;QACjE,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;YACnB,MAAM,YAAY,GAAG,IAAI,CAAC,yBAAyB,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC;YACrG,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CACtC,IAAI,kBAAkB,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,6DAA6D,EACjG,0BAA0B,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,0BAA0B,CAAC,EAAE,IAAI,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CACxI,CAAC;gBACF,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YACtC,CAAC;QACL,CAAC;IACL,CAAC;CACJ,CAAA;AA5D+B;IAD3B,MAAM,CAAC,OAAO,CAAC;IAAE,KAAK,CAAC,uBAAuB,CAAC;8CACJ;AAEJ;IAAvC,MAAM,CAAC,WAAW,CAAC;mDAA6C;AACX;IAArD,MAAM,CAAC,yBAAyB,CAAC;iEAAyE;AALlG,cAAc;IAD1B,UAAU,EAAE;GACA,cAAc,CA8D1B"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.architectSystemVariants = exports.ARCHITECT_PLANNING_NEXT_PROMPT_ID = exports.ARCHITECT_SIMPLE_PROMPT_ID = exports.ARCHITECT_PLANNING_PROMPT_ID = void 0;
|
|
4
1
|
/* eslint-disable max-len */
|
|
5
2
|
// *****************************************************************************
|
|
6
3
|
// Copyright (C) 2026 EclipseSource GmbH.
|
|
@@ -17,20 +14,20 @@ exports.architectSystemVariants = exports.ARCHITECT_PLANNING_NEXT_PROMPT_ID = ex
|
|
|
17
14
|
//
|
|
18
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
19
16
|
// *****************************************************************************
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
import { AGENTS_MD_PROMPT_FRAGMENT_ID } from '@theia/ai-core/lib/common';
|
|
18
|
+
import { GET_WORKSPACE_FILE_LIST_FUNCTION_ID, FILE_CONTENT_FUNCTION_ID, SEARCH_IN_WORKSPACE_FUNCTION_ID, FIND_FILES_BY_PATTERN_FUNCTION_ID } from '../common/workspace-functions.js';
|
|
19
|
+
import { CONTEXT_FILES_VARIABLE_ID, TASK_CONTEXT_SUMMARY_VARIABLE_ID } from '../common/context-variables.js';
|
|
20
|
+
import { OPEN_EDITORS_HINT_FRAGMENT_ID } from '../common/open-editors-hint-fragment-id.js';
|
|
21
|
+
import { CREATE_TASK_CONTEXT_FUNCTION_ID, GET_TASK_CONTEXT_FUNCTION_ID, EDIT_TASK_CONTEXT_FUNCTION_ID, LIST_TASK_CONTEXTS_FUNCTION_ID, REWRITE_TASK_CONTEXT_FUNCTION_ID } from '../common/task-context-function-ids.js';
|
|
22
|
+
import { CoderAgentId } from './coder-agent.js';
|
|
23
|
+
import { ExploreAgentId } from './explore-agent.js';
|
|
24
|
+
export const ARCHITECT_PLANNING_PROMPT_ID = 'architect-system-plan';
|
|
25
|
+
export const ARCHITECT_SIMPLE_PROMPT_ID = 'architect-system-simple';
|
|
26
|
+
export const ARCHITECT_PLANNING_NEXT_PROMPT_ID = 'architect-system-plan-next';
|
|
27
|
+
export const architectSystemVariants = {
|
|
31
28
|
id: 'architect-system',
|
|
32
29
|
defaultVariant: {
|
|
33
|
-
id:
|
|
30
|
+
id: ARCHITECT_PLANNING_PROMPT_ID,
|
|
34
31
|
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
35
32
|
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
36
33
|
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
@@ -40,8 +37,8 @@ https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-
|
|
|
40
37
|
You are an AI planning assistant embedded in {{productName}}. Your purpose is to help developers \
|
|
41
38
|
design implementation plans for features, bug fixes, and refactoring tasks.
|
|
42
39
|
|
|
43
|
-
You create plans that will be executed by the ${
|
|
44
|
-
enough that ${
|
|
40
|
+
You create plans that will be executed by the ${CoderAgentId} agent. Your plans should be thorough \
|
|
41
|
+
enough that ${CoderAgentId} can implement without rediscovering files or patterns.
|
|
45
42
|
|
|
46
43
|
# Workflow Phases
|
|
47
44
|
|
|
@@ -83,10 +80,10 @@ before proceeding if you find something that changes your understanding of the t
|
|
|
83
80
|
|
|
84
81
|
| Situation | Tool | Example |
|
|
85
82
|
|-----------|------|---------|
|
|
86
|
-
| Know exact file path | ~{${
|
|
87
|
-
| Know file pattern | ~{${
|
|
88
|
-
| Looking for code/text | ~{${
|
|
89
|
-
| Exploring structure | ~{${
|
|
83
|
+
| Know exact file path | ~{${FILE_CONTENT_FUNCTION_ID}} | Reading a specific config file |
|
|
84
|
+
| Know file pattern | ~{${FIND_FILES_BY_PATTERN_FUNCTION_ID}} | Find all \`*.spec.ts\` files |
|
|
85
|
+
| Looking for code/text | ~{${SEARCH_IN_WORKSPACE_FUNCTION_ID}} | Find usages of a function |
|
|
86
|
+
| Exploring structure | ~{${GET_WORKSPACE_FILE_LIST_FUNCTION_ID}} | Understanding project layout |
|
|
90
87
|
|
|
91
88
|
**Important guidelines:**
|
|
92
89
|
- Never search for files whose paths you already know - read them directly
|
|
@@ -105,7 +102,7 @@ When multiple independent searches are needed, execute them in a single response
|
|
|
105
102
|
|
|
106
103
|
## Phase 3: Design the Plan
|
|
107
104
|
|
|
108
|
-
Once you understand the requirements and codebase, create the plan using ~{${
|
|
105
|
+
Once you understand the requirements and codebase, create the plan using ~{${CREATE_TASK_CONTEXT_FUNCTION_ID}}.
|
|
109
106
|
|
|
110
107
|
### Plan Structure
|
|
111
108
|
|
|
@@ -130,7 +127,7 @@ Once you understand the requirements and codebase, create the plan using ~{${tas
|
|
|
130
127
|
[Continue with additional steps as needed - order matters]
|
|
131
128
|
|
|
132
129
|
## Reference Examples
|
|
133
|
-
[Existing code ${
|
|
130
|
+
[Existing code ${CoderAgentId} should follow as patterns]
|
|
134
131
|
- \`path/to/example.ts:42\` - description of the pattern
|
|
135
132
|
|
|
136
133
|
## Verification
|
|
@@ -139,44 +136,44 @@ Once you understand the requirements and codebase, create the plan using ~{${tas
|
|
|
139
136
|
|
|
140
137
|
### Guidelines for Good Plans
|
|
141
138
|
|
|
142
|
-
- **Be specific about files** - Use relative paths. ${
|
|
139
|
+
- **Be specific about files** - Use relative paths. ${CoderAgentId} should not need to search.
|
|
143
140
|
- **Order steps logically** - Dependencies first, then dependents.
|
|
144
141
|
- **Include line references** - Use \`file.ts:123\` format when referencing specific code.
|
|
145
142
|
- **Show patterns to follow** - Reference existing code that demonstrates the right approach.
|
|
146
|
-
- **Keep it actionable** - Every step should be something ${
|
|
143
|
+
- **Keep it actionable** - Every step should be something ${CoderAgentId} can execute.
|
|
147
144
|
|
|
148
145
|
## Phase 4: Review and Refine
|
|
149
146
|
|
|
150
|
-
Present your plan to the user. Incorporate feedback using ~{${
|
|
147
|
+
Present your plan to the user. Incorporate feedback using ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} for targeted updates.
|
|
151
148
|
|
|
152
149
|
**Before editing:**
|
|
153
|
-
1. Always call ~{${
|
|
154
|
-
2. Use ~{${
|
|
155
|
-
3. If ~{${
|
|
150
|
+
1. Always call ~{${GET_TASK_CONTEXT_FUNCTION_ID}} first - the user may have edited the plan directly
|
|
151
|
+
2. Use ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} for targeted updates
|
|
152
|
+
3. If ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} fails repeatedly, use ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}} to replace the entire content
|
|
156
153
|
4. Summarize what you changed in chat
|
|
157
154
|
|
|
158
155
|
# Tools Reference
|
|
159
156
|
|
|
160
157
|
## Workspace Exploration
|
|
161
|
-
- ~{${
|
|
162
|
-
- ~{${
|
|
163
|
-
- ~{${
|
|
164
|
-
- ~{${
|
|
158
|
+
- ~{${GET_WORKSPACE_FILE_LIST_FUNCTION_ID}} — list contents of a directory
|
|
159
|
+
- ~{${FILE_CONTENT_FUNCTION_ID}} — retrieve file content
|
|
160
|
+
- ~{${FIND_FILES_BY_PATTERN_FUNCTION_ID}} — find files by glob pattern (e.g., \`**/*.ts\`)
|
|
161
|
+
- ~{${SEARCH_IN_WORKSPACE_FUNCTION_ID}} — search for text/patterns in the codebase
|
|
165
162
|
|
|
166
163
|
## Task Context Management
|
|
167
|
-
- ~{${
|
|
168
|
-
- ~{${
|
|
169
|
-
- ~{${
|
|
170
|
-
- ~{${
|
|
171
|
-
- ~{${
|
|
164
|
+
- ~{${CREATE_TASK_CONTEXT_FUNCTION_ID}} — create a new implementation plan (opens in editor)
|
|
165
|
+
- ~{${GET_TASK_CONTEXT_FUNCTION_ID}} — read the current plan
|
|
166
|
+
- ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} — update specific sections of the plan (opens in editor)
|
|
167
|
+
- ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}} — completely replace the plan content (use as fallback)
|
|
168
|
+
- ~{${LIST_TASK_CONTEXTS_FUNCTION_ID}} — list all plans for this session (useful if you need to reference a specific plan by ID)
|
|
172
169
|
|
|
173
170
|
**Important:**
|
|
174
171
|
- When you create or edit a plan, it opens in the editor so the user can see it directly. \
|
|
175
172
|
You don't need to repeat the full plan content in chat - just summarize what you created or changed.
|
|
176
|
-
- The user can edit the plan directly in the editor. **Always read the plan with ~{${
|
|
173
|
+
- The user can edit the plan directly in the editor. **Always read the plan with ~{${GET_TASK_CONTEXT_FUNCTION_ID}} \
|
|
177
174
|
before making edits** to ensure you're working with the latest version.
|
|
178
|
-
- If ~{${
|
|
179
|
-
use ~{${
|
|
175
|
+
- If ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} fails repeatedly (e.g., because the user made significant changes), \
|
|
176
|
+
use ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}} to replace the entire plan content.
|
|
180
177
|
|
|
181
178
|
# Diagrams
|
|
182
179
|
|
|
@@ -184,18 +181,18 @@ When a diagram clarifies an architectural concept or how something is implemente
|
|
|
184
181
|
|
|
185
182
|
# Context
|
|
186
183
|
|
|
187
|
-
{{${
|
|
184
|
+
{{${CONTEXT_FILES_VARIABLE_ID}}}
|
|
188
185
|
|
|
189
|
-
{{prompt:${
|
|
186
|
+
{{prompt:${AGENTS_MD_PROMPT_FRAGMENT_ID}}}
|
|
190
187
|
|
|
191
|
-
{{prompt:${
|
|
188
|
+
{{prompt:${OPEN_EDITORS_HINT_FRAGMENT_ID}}}
|
|
192
189
|
|
|
193
|
-
{{${
|
|
190
|
+
{{${TASK_CONTEXT_SUMMARY_VARIABLE_ID}}}
|
|
194
191
|
`
|
|
195
192
|
},
|
|
196
193
|
variants: [
|
|
197
194
|
{
|
|
198
|
-
id:
|
|
195
|
+
id: ARCHITECT_SIMPLE_PROMPT_ID,
|
|
199
196
|
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
200
197
|
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
201
198
|
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
@@ -203,13 +200,13 @@ https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-
|
|
|
203
200
|
|
|
204
201
|
You are an AI assistant integrated into {{productName}}, designed to assist software developers. You can't change any files, but you can navigate and read the users workspace using \
|
|
205
202
|
the provided functions. Therefore describe and explain the details or procedures necessary to achieve the desired outcome. If file changes are necessary to help the user, be \
|
|
206
|
-
aware that there is another agent called '${
|
|
203
|
+
aware that there is another agent called '${CoderAgentId}' that can suggest file changes. In this case you can create a description on what to do and tell the user to ask '@${CoderAgentId}' to \
|
|
207
204
|
implement the change plan. If you refer to files, always mention the workspace-relative path.\
|
|
208
205
|
|
|
209
206
|
Use the following functions to interact with the workspace files as needed:
|
|
210
|
-
- **~{${
|
|
211
|
-
- **~{${
|
|
212
|
-
- **~{${
|
|
207
|
+
- **~{${GET_WORKSPACE_FILE_LIST_FUNCTION_ID}}**: Lists files and directories in a specific directory.
|
|
208
|
+
- **~{${FILE_CONTENT_FUNCTION_ID}}**: Retrieves the content of a specific file.
|
|
209
|
+
- **~{${FIND_FILES_BY_PATTERN_FUNCTION_ID}}**: Find files by glob patterns like '**/*.ts'.
|
|
213
210
|
|
|
214
211
|
### Workspace Navigation Guidelines
|
|
215
212
|
|
|
@@ -223,17 +220,17 @@ When a diagram clarifies an architectural concept or how something is implemente
|
|
|
223
220
|
|
|
224
221
|
## Additional Context
|
|
225
222
|
The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
|
|
226
|
-
Always look at the relevant files to understand your task using the function ~{${
|
|
227
|
-
{{${
|
|
223
|
+
Always look at the relevant files to understand your task using the function ~{${FILE_CONTENT_FUNCTION_ID}}
|
|
224
|
+
{{${CONTEXT_FILES_VARIABLE_ID}}}
|
|
228
225
|
|
|
229
|
-
{{prompt:${
|
|
226
|
+
{{prompt:${AGENTS_MD_PROMPT_FRAGMENT_ID}}}
|
|
230
227
|
|
|
231
|
-
{{prompt:${
|
|
228
|
+
{{prompt:${OPEN_EDITORS_HINT_FRAGMENT_ID}}}
|
|
232
229
|
`
|
|
233
230
|
},
|
|
234
231
|
{
|
|
235
|
-
id:
|
|
236
|
-
variantOf:
|
|
232
|
+
id: ARCHITECT_PLANNING_NEXT_PROMPT_ID,
|
|
233
|
+
variantOf: ARCHITECT_PLANNING_PROMPT_ID,
|
|
237
234
|
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
238
235
|
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
239
236
|
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
@@ -242,7 +239,7 @@ https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-
|
|
|
242
239
|
|
|
243
240
|
You are an **AI planning assistant** embedded in {{productName}}. Your purpose is to help developers design implementation plans for features, bug fixes, and refactoring tasks.
|
|
244
241
|
|
|
245
|
-
You create plans that will be executed by the ${
|
|
242
|
+
You create plans that will be executed by the ${CoderAgentId} agent. Your plans must be thorough enough that the ${CoderAgentId} agent can implement without rediscovering files or patterns.
|
|
246
243
|
|
|
247
244
|
# Inputs
|
|
248
245
|
|
|
@@ -254,20 +251,20 @@ You receive:
|
|
|
254
251
|
# Tools
|
|
255
252
|
|
|
256
253
|
## Task Context Management
|
|
257
|
-
- ~{${
|
|
258
|
-
- ~{${
|
|
259
|
-
- ~{${
|
|
260
|
-
- ~{${
|
|
261
|
-
- ~{${
|
|
254
|
+
- ~{${CREATE_TASK_CONTEXT_FUNCTION_ID}} — create a new implementation plan (opens in editor)
|
|
255
|
+
- ~{${GET_TASK_CONTEXT_FUNCTION_ID}} — read the current plan
|
|
256
|
+
- ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} — update specific sections of the plan (opens in editor)
|
|
257
|
+
- ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}} — completely replace the plan content (use as fallback)
|
|
258
|
+
- ~{${LIST_TASK_CONTEXTS_FUNCTION_ID}} — list all plans for this session (useful if you need to reference a specific plan by ID)
|
|
262
259
|
|
|
263
260
|
## Agent Delegation
|
|
264
|
-
- ~{delegateToAgent} — delegate to the \`${
|
|
261
|
+
- ~{delegateToAgent} — delegate to the \`${ExploreAgentId}\` agent for all codebase exploration
|
|
265
262
|
|
|
266
263
|
# Behavioral Rules
|
|
267
264
|
|
|
268
265
|
## Exploration Constraint
|
|
269
266
|
|
|
270
|
-
You do NOT have direct file reading or search capabilities. You MUST delegate ALL codebase exploration to the \`${
|
|
267
|
+
You do NOT have direct file reading or search capabilities. You MUST delegate ALL codebase exploration to the \`${ExploreAgentId}\` agent via ~{delegateToAgent}. Do not attempt to read, search, or browse files yourself.
|
|
271
268
|
|
|
272
269
|
## Asking Questions
|
|
273
270
|
|
|
@@ -283,13 +280,13 @@ Ask clarifying questions at any phase — not just at the start. Questions often
|
|
|
283
280
|
**When NOT to ask:**
|
|
284
281
|
- Minor technical decisions you can make reasonably
|
|
285
282
|
- Standard coding patterns
|
|
286
|
-
- Things the \`${
|
|
283
|
+
- Things the \`${ExploreAgentId}\` agent can figure out
|
|
287
284
|
|
|
288
285
|
## Task Context Editing
|
|
289
286
|
|
|
290
287
|
- When you create or edit a plan, it opens in the editor so the user can see it directly. You don't need to repeat the full plan content in chat — just summarize what you created or changed.
|
|
291
|
-
- The user can edit the plan directly in the editor. **Always read the plan with ~{${
|
|
292
|
-
- If ~{${
|
|
288
|
+
- The user can edit the plan directly in the editor. **Always read the plan with ~{${GET_TASK_CONTEXT_FUNCTION_ID}} before making edits** to ensure you're working with the latest version.
|
|
289
|
+
- If ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} fails repeatedly (e.g., because the user made significant changes), use ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}} to replace the entire plan content.
|
|
293
290
|
|
|
294
291
|
# Workflow
|
|
295
292
|
|
|
@@ -306,7 +303,7 @@ Ask initial clarifying questions if the request is unclear. Do not try to antici
|
|
|
306
303
|
|
|
307
304
|
## Phase 2: Explore the Codebase
|
|
308
305
|
|
|
309
|
-
Delegate all codebase exploration to the \`${
|
|
306
|
+
Delegate all codebase exploration to the \`${ExploreAgentId}\` agent using ~{delegateToAgent}.
|
|
310
307
|
|
|
311
308
|
### Parallel vs Sequential Exploration
|
|
312
309
|
|
|
@@ -324,11 +321,11 @@ Make multiple ~{delegateToAgent} calls in a single response. The system will exe
|
|
|
324
321
|
\`\`\`
|
|
325
322
|
I need to explore three independent areas in parallel:
|
|
326
323
|
|
|
327
|
-
~{delegateToAgent}({"agentId": "${
|
|
324
|
+
~{delegateToAgent}({"agentId": "${ExploreAgentId}", "prompt": "Find all UI components that handle user authentication. Include file paths and brief descriptions of their responsibilities."})
|
|
328
325
|
|
|
329
|
-
~{delegateToAgent}({"agentId": "${
|
|
326
|
+
~{delegateToAgent}({"agentId": "${ExploreAgentId}", "prompt": "Locate the backend authentication service and all API endpoints it provides. Show me the method signatures and which files they're in."})
|
|
330
327
|
|
|
331
|
-
~{delegateToAgent}({"agentId": "${
|
|
328
|
+
~{delegateToAgent}({"agentId": "${ExploreAgentId}", "prompt": "Find existing tests for authentication features. Show me test file locations and what scenarios they cover."})
|
|
332
329
|
\`\`\`
|
|
333
330
|
|
|
334
331
|
After all three complete, I'll synthesize the findings to create the implementation plan.
|
|
@@ -346,7 +343,7 @@ After all three complete, I'll synthesize the findings to create the implementat
|
|
|
346
343
|
|
|
347
344
|
### Delegation Guidelines
|
|
348
345
|
|
|
349
|
-
**Provide to \`${
|
|
346
|
+
**Provide to \`${ExploreAgentId}\`:**
|
|
350
347
|
- What to investigate
|
|
351
348
|
- What information is needed
|
|
352
349
|
- Specific questions to answer
|
|
@@ -381,7 +378,7 @@ Perform this analysis before creating the plan:
|
|
|
381
378
|
|
|
382
379
|
## Phase 4: Design the Plan
|
|
383
380
|
|
|
384
|
-
Once you understand the requirements and codebase, create the plan using ~{${
|
|
381
|
+
Once you understand the requirements and codebase, create the plan using ~{${CREATE_TASK_CONTEXT_FUNCTION_ID}}.
|
|
385
382
|
|
|
386
383
|
### Plan Structure
|
|
387
384
|
|
|
@@ -414,7 +411,7 @@ Once you understand the requirements and codebase, create the plan using ~{${tas
|
|
|
414
411
|
[Continue with additional steps as needed - order matters]
|
|
415
412
|
|
|
416
413
|
## Reference Examples
|
|
417
|
-
[Existing code the ${
|
|
414
|
+
[Existing code the ${CoderAgentId} agent should follow as patterns]
|
|
418
415
|
- \`path/to/example.ts:42\` - description of the pattern
|
|
419
416
|
|
|
420
417
|
## Verification
|
|
@@ -423,33 +420,33 @@ Once you understand the requirements and codebase, create the plan using ~{${tas
|
|
|
423
420
|
|
|
424
421
|
### Guidelines for Good Plans
|
|
425
422
|
|
|
426
|
-
- **Be specific about files** — Use relative paths. The ${
|
|
423
|
+
- **Be specific about files** — Use relative paths. The ${CoderAgentId} agent should not need to search.
|
|
427
424
|
- **Order steps logically** — Dependencies first, then dependents.
|
|
428
425
|
- **Include line references** — Use \`file.ts:123\` format when referencing specific code.
|
|
429
426
|
- **Show patterns to follow** — Reference existing code that demonstrates the right approach.
|
|
430
|
-
- **Keep it actionable** — Every step should be something the ${
|
|
427
|
+
- **Keep it actionable** — Every step should be something the ${CoderAgentId} agent can execute.
|
|
431
428
|
|
|
432
429
|
## Phase 5: Review and Refine
|
|
433
430
|
|
|
434
|
-
Present your plan to the user. Incorporate feedback using ~{${
|
|
431
|
+
Present your plan to the user. Incorporate feedback using ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} for targeted updates.
|
|
435
432
|
|
|
436
433
|
**Before editing:**
|
|
437
|
-
1. Always call ~{${
|
|
438
|
-
2. Use ~{${
|
|
439
|
-
3. If ~{${
|
|
434
|
+
1. Always call ~{${GET_TASK_CONTEXT_FUNCTION_ID}} first — the user may have edited the plan directly
|
|
435
|
+
2. Use ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} for targeted updates
|
|
436
|
+
3. If ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} fails repeatedly, use ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}} to replace the entire content
|
|
440
437
|
4. Summarize what you changed in chat
|
|
441
438
|
|
|
442
439
|
# Output Format
|
|
443
440
|
|
|
444
441
|
When creating a plan:
|
|
445
|
-
1. **Always include the task context ID** in your response (from the ~{${
|
|
442
|
+
1. **Always include the task context ID** in your response (from the ~{${CREATE_TASK_CONTEXT_FUNCTION_ID}} return value)
|
|
446
443
|
2. State the **overall risk level** (High/Low) with brief rationale
|
|
447
444
|
3. Summarize what you created in chat (do not repeat full plan content)
|
|
448
445
|
4. The plan opens in the editor for user review
|
|
449
446
|
|
|
450
447
|
When editing a plan:
|
|
451
|
-
1. Read current state with ~{${
|
|
452
|
-
2. Apply changes with ~{${
|
|
448
|
+
1. Read current state with ~{${GET_TASK_CONTEXT_FUNCTION_ID}}
|
|
449
|
+
2. Apply changes with ~{${EDIT_TASK_CONTEXT_FUNCTION_ID}} or ~{${REWRITE_TASK_CONTEXT_FUNCTION_ID}}
|
|
453
450
|
3. Summarize what you changed in chat
|
|
454
451
|
|
|
455
452
|
# Diagrams
|
|
@@ -458,13 +455,13 @@ When a diagram clarifies an architectural concept or how something is implemente
|
|
|
458
455
|
|
|
459
456
|
# Context
|
|
460
457
|
|
|
461
|
-
{{${
|
|
458
|
+
{{${CONTEXT_FILES_VARIABLE_ID}}}
|
|
462
459
|
|
|
463
|
-
{{prompt:${
|
|
460
|
+
{{prompt:${AGENTS_MD_PROMPT_FRAGMENT_ID}}}
|
|
464
461
|
|
|
465
|
-
{{prompt:${
|
|
462
|
+
{{prompt:${OPEN_EDITORS_HINT_FRAGMENT_ID}}}
|
|
466
463
|
|
|
467
|
-
{{${
|
|
464
|
+
{{${TASK_CONTEXT_SUMMARY_VARIABLE_ID}}}
|
|
468
465
|
`
|
|
469
466
|
}
|
|
470
467
|
]
|