@theia/ai-chat-ui 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/ai-chat-ui-contribution.d.ts +1 -1
- package/lib/browser/ai-chat-ui-contribution.d.ts.map +1 -1
- package/lib/browser/ai-chat-ui-contribution.js +133 -151
- package/lib/browser/ai-chat-ui-contribution.js.map +1 -1
- package/lib/browser/ai-chat-ui-frontend-module.js +146 -148
- package/lib/browser/ai-chat-ui-frontend-module.js.map +1 -1
- package/lib/browser/change-set-actions/change-set-accept-action.d.ts +1 -1
- package/lib/browser/change-set-actions/change-set-accept-action.d.ts.map +1 -1
- package/lib/browser/change-set-actions/change-set-accept-action.js +8 -11
- package/lib/browser/change-set-actions/change-set-accept-action.js.map +1 -1
- package/lib/browser/change-set-actions/change-set-action-service.js +13 -20
- package/lib/browser/change-set-actions/change-set-action-service.js.map +1 -1
- package/lib/browser/chat-banner-provider.js +1 -4
- package/lib/browser/chat-banner-provider.js.map +1 -1
- package/lib/browser/chat-banner-widget.d.ts +1 -1
- package/lib/browser/chat-banner-widget.d.ts.map +1 -1
- package/lib/browser/chat-banner-widget.js +18 -25
- package/lib/browser/chat-banner-widget.js.map +1 -1
- package/lib/browser/chat-capabilities-panel.js +8 -13
- package/lib/browser/chat-capabilities-panel.js.map +1 -1
- package/lib/browser/chat-capabilities-service.js +20 -28
- package/lib/browser/chat-capabilities-service.js.map +1 -1
- package/lib/browser/chat-capabilities-service.spec.js +28 -30
- package/lib/browser/chat-capabilities-service.spec.js.map +1 -1
- package/lib/browser/chat-date-utils.js +3 -6
- package/lib/browser/chat-date-utils.js.map +1 -1
- package/lib/browser/chat-date-utils.spec.js +6 -8
- package/lib/browser/chat-date-utils.spec.js.map +1 -1
- package/lib/browser/chat-find/chat-find-contribution.d.ts +2 -2
- package/lib/browser/chat-find/chat-find-contribution.d.ts.map +1 -1
- package/lib/browser/chat-find/chat-find-contribution.js +26 -31
- package/lib/browser/chat-find/chat-find-contribution.js.map +1 -1
- package/lib/browser/chat-find/chat-find-contribution.spec.js +25 -27
- package/lib/browser/chat-find/chat-find-contribution.spec.js.map +1 -1
- package/lib/browser/chat-find/chat-find-highlighter.d.ts +5 -5
- package/lib/browser/chat-find/chat-find-highlighter.d.ts.map +1 -1
- package/lib/browser/chat-find/chat-find-highlighter.js +22 -29
- package/lib/browser/chat-find/chat-find-highlighter.js.map +1 -1
- package/lib/browser/chat-find/chat-find-highlighter.spec.js +61 -63
- package/lib/browser/chat-find/chat-find-highlighter.spec.js.map +1 -1
- package/lib/browser/chat-find/chat-find-matcher.js +25 -28
- package/lib/browser/chat-find/chat-find-matcher.js.map +1 -1
- package/lib/browser/chat-find/chat-find-matcher.spec.js +45 -47
- package/lib/browser/chat-find/chat-find-matcher.spec.js.map +1 -1
- package/lib/browser/chat-find/chat-find-text.js +4 -7
- package/lib/browser/chat-find/chat-find-text.js.map +1 -1
- package/lib/browser/chat-find/chat-find-widget.d.ts +1 -1
- package/lib/browser/chat-find/chat-find-widget.d.ts.map +1 -1
- package/lib/browser/chat-find/chat-find-widget.js +29 -37
- package/lib/browser/chat-find/chat-find-widget.js.map +1 -1
- package/lib/browser/chat-find/chat-find-widget.spec.js +55 -57
- package/lib/browser/chat-find/chat-find-widget.spec.js.map +1 -1
- package/lib/browser/chat-focus-contribution.d.ts +1 -1
- package/lib/browser/chat-focus-contribution.d.ts.map +1 -1
- package/lib/browser/chat-focus-contribution.js +22 -26
- package/lib/browser/chat-focus-contribution.js.map +1 -1
- package/lib/browser/chat-input-agent-suggestions.js +6 -10
- package/lib/browser/chat-input-agent-suggestions.js.map +1 -1
- package/lib/browser/chat-input-capabilities-contribution.d.ts +1 -1
- package/lib/browser/chat-input-capabilities-contribution.d.ts.map +1 -1
- package/lib/browser/chat-input-capabilities-contribution.js +14 -18
- package/lib/browser/chat-input-capabilities-contribution.js.map +1 -1
- package/lib/browser/chat-input-focus-service.d.ts +1 -1
- package/lib/browser/chat-input-focus-service.d.ts.map +1 -1
- package/lib/browser/chat-input-focus-service.js +5 -8
- package/lib/browser/chat-input-focus-service.js.map +1 -1
- package/lib/browser/chat-input-history-contribution.d.ts +2 -2
- package/lib/browser/chat-input-history-contribution.d.ts.map +1 -1
- package/lib/browser/chat-input-history-contribution.js +20 -25
- package/lib/browser/chat-input-history-contribution.js.map +1 -1
- package/lib/browser/chat-input-history.js +13 -19
- package/lib/browser/chat-input-history.js.map +1 -1
- package/lib/browser/chat-input-mode-contribution.d.ts +2 -2
- package/lib/browser/chat-input-mode-contribution.d.ts.map +1 -1
- package/lib/browser/chat-input-mode-contribution.js +10 -14
- package/lib/browser/chat-input-mode-contribution.js.map +1 -1
- package/lib/browser/chat-input-paste-contribution.d.ts +1 -1
- package/lib/browser/chat-input-paste-contribution.d.ts.map +1 -1
- package/lib/browser/chat-input-paste-contribution.js +16 -21
- package/lib/browser/chat-input-paste-contribution.js.map +1 -1
- package/lib/browser/chat-input-scroll-util.js +1 -4
- package/lib/browser/chat-input-scroll-util.js.map +1 -1
- package/lib/browser/chat-input-scroll-util.spec.js +7 -9
- package/lib/browser/chat-input-scroll-util.spec.js.map +1 -1
- package/lib/browser/chat-input-widget.d.ts +7 -7
- package/lib/browser/chat-input-widget.d.ts.map +1 -1
- package/lib/browser/chat-input-widget.js +225 -264
- package/lib/browser/chat-input-widget.js.map +1 -1
- package/lib/browser/chat-input-widget.spec.js +55 -57
- package/lib/browser/chat-input-widget.spec.js.map +1 -1
- package/lib/browser/chat-node-toolbar-action-contribution.d.ts +1 -1
- package/lib/browser/chat-node-toolbar-action-contribution.d.ts.map +1 -1
- package/lib/browser/chat-node-toolbar-action-contribution.js +20 -24
- package/lib/browser/chat-node-toolbar-action-contribution.js.map +1 -1
- package/lib/browser/chat-progress-message.js +6 -11
- package/lib/browser/chat-progress-message.js.map +1 -1
- package/lib/browser/chat-response-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-part-renderer.js +1 -4
- package/lib/browser/chat-response-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/ai-selection-resolver.d.ts +1 -1
- package/lib/browser/chat-response-renderer/ai-selection-resolver.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/ai-selection-resolver.js +23 -27
- package/lib/browser/chat-response-renderer/ai-selection-resolver.js.map +1 -1
- package/lib/browser/chat-response-renderer/block-external-resources.js +13 -19
- package/lib/browser/chat-response-renderer/block-external-resources.js.map +1 -1
- package/lib/browser/chat-response-renderer/block-external-resources.spec.js +168 -170
- package/lib/browser/chat-response-renderer/block-external-resources.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/blocked-resource-placeholder.js +7 -12
- package/lib/browser/chat-response-renderer/blocked-resource-placeholder.js.map +1 -1
- package/lib/browser/chat-response-renderer/code-part-renderer.d.ts +2 -2
- package/lib/browser/chat-response-renderer/code-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/code-part-renderer.js +61 -69
- package/lib/browser/chat-response-renderer/code-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/code-wrapper-editors.js +2 -5
- package/lib/browser/chat-response-renderer/code-wrapper-editors.js.map +1 -1
- package/lib/browser/chat-response-renderer/command-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/command-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/command-part-renderer.js +19 -25
- package/lib/browser/chat-response-renderer/command-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/compaction-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/compaction-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/compaction-part-renderer.js +12 -15
- package/lib/browser/chat-response-renderer/compaction-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/delegation-tool-renderer.d.ts +4 -4
- package/lib/browser/chat-response-renderer/delegation-tool-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/delegation-tool-renderer.js +67 -81
- package/lib/browser/chat-response-renderer/delegation-tool-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/delegation-tool-renderer.spec.js +33 -36
- package/lib/browser/chat-response-renderer/delegation-tool-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/error-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/error-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/error-part-renderer.js +13 -16
- package/lib/browser/chat-response-renderer/error-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/external-resource-allowlist-contribution.d.ts +1 -1
- package/lib/browser/chat-response-renderer/external-resource-allowlist-contribution.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/external-resource-allowlist-contribution.js +12 -16
- package/lib/browser/chat-response-renderer/external-resource-allowlist-contribution.js.map +1 -1
- package/lib/browser/chat-response-renderer/horizontal-layout-part-renderer.d.ts +2 -2
- package/lib/browser/chat-response-renderer/horizontal-layout-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/horizontal-layout-part-renderer.js +14 -18
- package/lib/browser/chat-response-renderer/horizontal-layout-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/index.d.ts +20 -20
- package/lib/browser/chat-response-renderer/index.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/index.js +20 -23
- package/lib/browser/chat-response-renderer/index.js.map +1 -1
- package/lib/browser/chat-response-renderer/markdown-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/markdown-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/markdown-part-renderer.js +36 -42
- package/lib/browser/chat-response-renderer/markdown-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/markdown-part-renderer.spec.js +60 -62
- package/lib/browser/chat-response-renderer/markdown-part-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/mcp-app-frame.js +5 -11
- package/lib/browser/chat-response-renderer/mcp-app-frame.js.map +1 -1
- package/lib/browser/chat-response-renderer/mcp-app-frame.spec.js +31 -33
- package/lib/browser/chat-response-renderer/mcp-app-frame.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/mermaid-part-renderer.d.ts +2 -2
- package/lib/browser/chat-response-renderer/mermaid-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/mermaid-part-renderer.js +22 -29
- package/lib/browser/chat-response-renderer/mermaid-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/mermaid-part-renderer.spec.js +12 -14
- package/lib/browser/chat-response-renderer/mermaid-part-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/mermaid-rendering.js +36 -46
- package/lib/browser/chat-response-renderer/mermaid-rendering.js.map +1 -1
- package/lib/browser/chat-response-renderer/mermaid-rendering.spec.js +38 -40
- package/lib/browser/chat-response-renderer/mermaid-rendering.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/not-available-toolcall-renderer.d.ts +2 -2
- package/lib/browser/chat-response-renderer/not-available-toolcall-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/not-available-toolcall-renderer.js +12 -15
- package/lib/browser/chat-response-renderer/not-available-toolcall-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/progress-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/progress-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/progress-part-renderer.js +10 -13
- package/lib/browser/chat-response-renderer/progress-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/question-part-renderer.d.ts +2 -2
- package/lib/browser/chat-response-renderer/question-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/question-part-renderer.js +24 -28
- package/lib/browser/chat-response-renderer/question-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/server-toolcall-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/server-toolcall-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/server-toolcall-part-renderer.js +23 -28
- package/lib/browser/chat-response-renderer/server-toolcall-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/server-toolcall-part-renderer.spec.js +19 -21
- package/lib/browser/chat-response-renderer/server-toolcall-part-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/spinner.js +3 -7
- package/lib/browser/chat-response-renderer/spinner.js.map +1 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.js +11 -14
- package/lib/browser/chat-response-renderer/text-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/text-part-renderer.spec.js +16 -18
- package/lib/browser/chat-response-renderer/text-part-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/thinking-part-renderer.d.ts +2 -2
- package/lib/browser/chat-response-renderer/thinking-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/thinking-part-renderer.js +15 -18
- package/lib/browser/chat-response-renderer/thinking-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/thinking-part-renderer.spec.js +22 -24
- package/lib/browser/chat-response-renderer/thinking-part-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/tool-call-rendering.js +9 -17
- package/lib/browser/chat-response-renderer/tool-call-rendering.js.map +1 -1
- package/lib/browser/chat-response-renderer/tool-confirmation.js +59 -70
- package/lib/browser/chat-response-renderer/tool-confirmation.js.map +1 -1
- package/lib/browser/chat-response-renderer/tool-confirmation.spec.js +26 -29
- package/lib/browser/chat-response-renderer/tool-confirmation.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.d.ts +3 -3
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.js +48 -59
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.js.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.spec.js +150 -152
- package/lib/browser/chat-response-renderer/toolcall-part-renderer.spec.js.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-result.js +15 -19
- package/lib/browser/chat-response-renderer/toolcall-result.js.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-utils.d.ts +1 -1
- package/lib/browser/chat-response-renderer/toolcall-utils.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/toolcall-utils.js +7 -13
- package/lib/browser/chat-response-renderer/toolcall-utils.js.map +1 -1
- package/lib/browser/chat-response-renderer/unknown-part-renderer.d.ts +1 -1
- package/lib/browser/chat-response-renderer/unknown-part-renderer.d.ts.map +1 -1
- package/lib/browser/chat-response-renderer/unknown-part-renderer.js +9 -12
- package/lib/browser/chat-response-renderer/unknown-part-renderer.js.map +1 -1
- package/lib/browser/chat-session-focus.js +1 -4
- package/lib/browser/chat-session-focus.js.map +1 -1
- package/lib/browser/chat-session-focus.spec.js +14 -16
- package/lib/browser/chat-session-focus.spec.js.map +1 -1
- package/lib/browser/chat-session-notification-contribution.js +26 -32
- package/lib/browser/chat-session-notification-contribution.js.map +1 -1
- package/lib/browser/chat-session-notification-contribution.spec.js +44 -46
- package/lib/browser/chat-session-notification-contribution.spec.js.map +1 -1
- package/lib/browser/chat-token-usage-indicator-util.js +20 -32
- package/lib/browser/chat-token-usage-indicator-util.js.map +1 -1
- package/lib/browser/chat-token-usage-indicator-util.spec.js +64 -66
- package/lib/browser/chat-token-usage-indicator-util.spec.js.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-container.d.ts +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-container.d.ts.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-container.js +10 -13
- package/lib/browser/chat-tree-view/chat-view-tree-container.js.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-input-widget.d.ts +2 -2
- package/lib/browser/chat-tree-view/chat-view-tree-input-widget.d.ts.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-input-widget.js +22 -30
- package/lib/browser/chat-tree-view/chat-view-tree-input-widget.js.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-widget.d.ts +6 -6
- package/lib/browser/chat-tree-view/chat-view-tree-widget.d.ts.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-widget.js +156 -183
- package/lib/browser/chat-tree-view/chat-view-tree-widget.js.map +1 -1
- package/lib/browser/chat-tree-view/chat-view-tree-widget.spec.js +22 -24
- package/lib/browser/chat-tree-view/chat-view-tree-widget.spec.js.map +1 -1
- package/lib/browser/chat-tree-view/index.d.ts +2 -2
- package/lib/browser/chat-tree-view/index.d.ts.map +1 -1
- package/lib/browser/chat-tree-view/index.js +2 -5
- package/lib/browser/chat-tree-view/index.js.map +1 -1
- package/lib/browser/chat-tree-view/model-badge.js +6 -11
- package/lib/browser/chat-tree-view/model-badge.js.map +1 -1
- package/lib/browser/chat-tree-view/prompt-variant-badge.js +8 -13
- package/lib/browser/chat-tree-view/prompt-variant-badge.js.map +1 -1
- package/lib/browser/chat-tree-view/sub-chat-widget.d.ts +3 -3
- package/lib/browser/chat-tree-view/sub-chat-widget.d.ts.map +1 -1
- package/lib/browser/chat-tree-view/sub-chat-widget.js +32 -39
- package/lib/browser/chat-tree-view/sub-chat-widget.js.map +1 -1
- package/lib/browser/chat-view-commands.js +25 -28
- package/lib/browser/chat-view-commands.js.map +1 -1
- package/lib/browser/chat-view-contribution.d.ts +1 -1
- package/lib/browser/chat-view-contribution.d.ts.map +1 -1
- package/lib/browser/chat-view-contribution.js +48 -54
- package/lib/browser/chat-view-contribution.js.map +1 -1
- package/lib/browser/chat-view-language-contribution.d.ts +1 -1
- package/lib/browser/chat-view-language-contribution.d.ts.map +1 -1
- package/lib/browser/chat-view-language-contribution.js +58 -68
- package/lib/browser/chat-view-language-contribution.js.map +1 -1
- package/lib/browser/chat-view-preferences.js +27 -32
- package/lib/browser/chat-view-preferences.js.map +1 -1
- package/lib/browser/chat-view-widget-toolbar-contribution.d.ts +1 -1
- package/lib/browser/chat-view-widget-toolbar-contribution.d.ts.map +1 -1
- package/lib/browser/chat-view-widget-toolbar-contribution.js +43 -54
- package/lib/browser/chat-view-widget-toolbar-contribution.js.map +1 -1
- package/lib/browser/chat-view-widget.d.ts +3 -3
- package/lib/browser/chat-view-widget.d.ts.map +1 -1
- package/lib/browser/chat-view-widget.js +55 -73
- package/lib/browser/chat-view-widget.js.map +1 -1
- package/lib/browser/context-variable-picker.js +13 -18
- package/lib/browser/context-variable-picker.js.map +1 -1
- package/lib/browser/generic-capabilities-section.d.ts +2 -2
- package/lib/browser/generic-capabilities-section.d.ts.map +1 -1
- package/lib/browser/generic-capabilities-section.js +5 -9
- package/lib/browser/generic-capabilities-section.js.map +1 -1
- package/lib/browser/generic-capabilities-service.js +38 -49
- package/lib/browser/generic-capabilities-service.js.map +1 -1
- package/lib/browser/generic-capabilities-service.spec.js +54 -56
- package/lib/browser/generic-capabilities-service.spec.js.map +1 -1
- package/lib/browser/generic-capabilities-tree.d.ts +1 -1
- package/lib/browser/generic-capabilities-tree.d.ts.map +1 -1
- package/lib/browser/generic-capabilities-tree.js +33 -38
- package/lib/browser/generic-capabilities-tree.js.map +1 -1
- package/lib/browser/session-settings-dialog.js +20 -24
- package/lib/browser/session-settings-dialog.js.map +1 -1
- package/lib/browser/tool-confirmation-keybinding-contribution.js +29 -38
- package/lib/browser/tool-confirmation-keybinding-contribution.js.map +1 -1
- package/lib/common/toolcall-utils.js +2 -6
- package/lib/common/toolcall-utils.js.map +1 -1
- package/lib/common/toolcall-utils.spec.js +78 -80
- package/lib/common/toolcall-utils.spec.js.map +1 -1
- package/package.json +22 -12
- package/src/browser/ai-chat-ui-contribution.ts +5 -5
- package/src/browser/ai-chat-ui-frontend-module.ts +36 -36
- package/src/browser/change-set-actions/change-set-accept-action.tsx +1 -1
- package/src/browser/chat-banner-widget.tsx +1 -1
- package/src/browser/chat-capabilities-service.spec.ts +1 -1
- package/src/browser/chat-date-utils.spec.ts +1 -1
- package/src/browser/chat-find/chat-find-contribution.spec.ts +4 -4
- package/src/browser/chat-find/chat-find-contribution.ts +3 -3
- package/src/browser/chat-find/chat-find-highlighter.spec.ts +3 -3
- package/src/browser/chat-find/chat-find-highlighter.ts +6 -6
- package/src/browser/chat-find/chat-find-matcher.spec.ts +1 -1
- package/src/browser/chat-find/chat-find-matcher.ts +2 -2
- package/src/browser/chat-find/chat-find-text.ts +1 -1
- package/src/browser/chat-find/chat-find-widget.spec.tsx +2 -2
- package/src/browser/chat-find/chat-find-widget.tsx +1 -1
- package/src/browser/chat-focus-contribution.ts +2 -2
- package/src/browser/chat-input-agent-suggestions.tsx +1 -1
- package/src/browser/chat-input-capabilities-contribution.ts +1 -1
- package/src/browser/chat-input-focus-service.ts +1 -1
- package/src/browser/chat-input-history-contribution.ts +3 -3
- package/src/browser/chat-input-mode-contribution.ts +2 -2
- package/src/browser/chat-input-paste-contribution.ts +1 -1
- package/src/browser/chat-input-scroll-util.spec.ts +1 -1
- package/src/browser/chat-input-widget.spec.ts +1 -1
- package/src/browser/chat-input-widget.tsx +18 -18
- package/src/browser/chat-node-toolbar-action-contribution.ts +1 -1
- package/src/browser/chat-response-part-renderer.ts +1 -1
- package/src/browser/chat-response-renderer/ai-selection-resolver.ts +4 -4
- package/src/browser/chat-response-renderer/block-external-resources.spec.ts +1 -1
- package/src/browser/chat-response-renderer/block-external-resources.ts +1 -1
- package/src/browser/chat-response-renderer/code-part-renderer.tsx +9 -5
- package/src/browser/chat-response-renderer/command-part-renderer.tsx +1 -1
- package/src/browser/chat-response-renderer/compaction-part-renderer.tsx +1 -1
- package/src/browser/chat-response-renderer/delegation-tool-renderer.spec.tsx +2 -2
- package/src/browser/chat-response-renderer/delegation-tool-renderer.tsx +6 -6
- package/src/browser/chat-response-renderer/error-part-renderer.tsx +1 -1
- package/src/browser/chat-response-renderer/external-resource-allowlist-contribution.ts +2 -2
- package/src/browser/chat-response-renderer/horizontal-layout-part-renderer.tsx +2 -2
- package/src/browser/chat-response-renderer/index.ts +20 -20
- package/src/browser/chat-response-renderer/markdown-part-renderer.spec.tsx +2 -2
- package/src/browser/chat-response-renderer/markdown-part-renderer.tsx +2 -2
- package/src/browser/chat-response-renderer/mcp-app-frame.spec.ts +1 -1
- package/src/browser/chat-response-renderer/mermaid-part-renderer.spec.ts +1 -1
- package/src/browser/chat-response-renderer/mermaid-part-renderer.tsx +3 -3
- package/src/browser/chat-response-renderer/mermaid-rendering.spec.ts +1 -1
- package/src/browser/chat-response-renderer/mermaid-rendering.tsx +2 -2
- package/src/browser/chat-response-renderer/not-available-toolcall-renderer.tsx +2 -2
- package/src/browser/chat-response-renderer/progress-part-renderer.tsx +2 -2
- package/src/browser/chat-response-renderer/question-part-renderer.tsx +3 -3
- package/src/browser/chat-response-renderer/server-toolcall-part-renderer.spec.tsx +1 -1
- package/src/browser/chat-response-renderer/server-toolcall-part-renderer.tsx +4 -4
- package/src/browser/chat-response-renderer/text-part-renderer.spec.ts +1 -1
- package/src/browser/chat-response-renderer/text-part-renderer.tsx +1 -1
- package/src/browser/chat-response-renderer/thinking-part-renderer.spec.tsx +2 -2
- package/src/browser/chat-response-renderer/thinking-part-renderer.tsx +3 -3
- package/src/browser/chat-response-renderer/tool-confirmation.spec.ts +1 -1
- package/src/browser/chat-response-renderer/tool-confirmation.tsx +2 -2
- package/src/browser/chat-response-renderer/toolcall-part-renderer.spec.ts +3 -3
- package/src/browser/chat-response-renderer/toolcall-part-renderer.tsx +7 -7
- package/src/browser/chat-response-renderer/toolcall-result.tsx +2 -2
- package/src/browser/chat-response-renderer/toolcall-utils.ts +2 -2
- package/src/browser/chat-response-renderer/unknown-part-renderer.tsx +1 -1
- package/src/browser/chat-session-focus.spec.ts +1 -1
- package/src/browser/chat-session-notification-contribution.spec.ts +1 -1
- package/src/browser/chat-session-notification-contribution.ts +1 -1
- package/src/browser/chat-token-usage-indicator-util.spec.ts +1 -1
- package/src/browser/chat-tree-view/chat-view-tree-container.ts +3 -3
- package/src/browser/chat-tree-view/chat-view-tree-input-widget.tsx +3 -3
- package/src/browser/chat-tree-view/chat-view-tree-widget.spec.tsx +3 -3
- package/src/browser/chat-tree-view/chat-view-tree-widget.tsx +12 -12
- package/src/browser/chat-tree-view/index.ts +2 -2
- package/src/browser/chat-tree-view/sub-chat-widget.tsx +4 -4
- package/src/browser/chat-view-contribution.ts +2 -2
- package/src/browser/chat-view-language-contribution.ts +1 -1
- package/src/browser/chat-view-widget-toolbar-contribution.tsx +4 -4
- package/src/browser/chat-view-widget.tsx +3 -3
- package/src/browser/generic-capabilities-section.tsx +2 -2
- package/src/browser/generic-capabilities-service.spec.ts +1 -1
- package/src/browser/generic-capabilities-service.ts +1 -1
- package/src/browser/generic-capabilities-tree.tsx +1 -1
- package/src/browser/tool-confirmation-keybinding-contribution.ts +1 -1
- package/src/common/toolcall-utils.spec.ts +1 -1
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
17
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ChatResponseContent, ServerToolCallChatResponseContent } from '@theia/ai-chat/lib/common';
|
|
20
20
|
import * as React from '@theia/core/shared/react';
|
|
21
21
|
import { ReactNode } from '@theia/core/shared/react';
|
|
22
22
|
import { nls } from '@theia/core/lib/common/nls';
|
|
23
23
|
import { HoverService, OpenerService } from '@theia/core/lib/browser';
|
|
24
|
-
import { renderToolCallResult } from './toolcall-result';
|
|
25
|
-
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils';
|
|
26
|
-
import { Spinner } from './spinner';
|
|
24
|
+
import { renderToolCallResult } from './toolcall-result.js';
|
|
25
|
+
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils.js';
|
|
26
|
+
import { Spinner } from './spinner.js';
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Renders a {@link ServerToolCallChatResponseContent}: a tool the provider executed on its own
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { TextPartRenderer } from './text-part-renderer';
|
|
17
|
+
import { TextPartRenderer } from './text-part-renderer.js';
|
|
18
18
|
import { expect } from 'chai';
|
|
19
19
|
import { ChatResponseContent } from '@theia/ai-chat';
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
17
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ChatResponseContent } from '@theia/ai-chat/lib/common';
|
|
20
20
|
import { ReactNode } from '@theia/core/shared/react';
|
|
@@ -24,8 +24,8 @@ FrontendApplicationConfigProvider.set({});
|
|
|
24
24
|
import { ChatResponseContent, ThinkingChatResponseContent } from '@theia/ai-chat';
|
|
25
25
|
import { expect } from 'chai';
|
|
26
26
|
import * as React from '@theia/core/shared/react';
|
|
27
|
-
import { ResponseNode } from '../chat-tree-view';
|
|
28
|
-
import { ThinkingPartRenderer } from './thinking-part-renderer';
|
|
27
|
+
import { ResponseNode } from '../chat-tree-view/index.js';
|
|
28
|
+
import { ThinkingPartRenderer } from './thinking-part-renderer.js';
|
|
29
29
|
|
|
30
30
|
const thinking = (content: string): ThinkingChatResponseContent => ({
|
|
31
31
|
kind: 'thinking',
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
17
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ChatResponseContent, ThinkingChatResponseContent } from '@theia/ai-chat/lib/common';
|
|
20
20
|
import { ReactNode } from '@theia/core/shared/react';
|
|
21
21
|
import { nls } from '@theia/core/lib/common/nls';
|
|
22
22
|
import * as React from '@theia/core/shared/react';
|
|
23
|
-
import { ResponseNode } from '../chat-tree-view';
|
|
24
|
-
import { Spinner } from './spinner';
|
|
23
|
+
import { ResponseNode } from '../chat-tree-view/index.js';
|
|
24
|
+
import { Spinner } from './spinner.js';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Number of trailing characters of the reasoning the live preview keeps at least. Far more than its
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
ToolConfirmationActionsProps,
|
|
34
34
|
ToolConfirmationProps,
|
|
35
35
|
withToolCallConfirmation
|
|
36
|
-
} from './tool-confirmation';
|
|
36
|
+
} from './tool-confirmation.js';
|
|
37
37
|
|
|
38
38
|
const mockContextMenuRenderer = {} as ContextMenuRenderer;
|
|
39
39
|
const mockOpenerService = {} as OpenerService;
|
|
@@ -24,8 +24,8 @@ import { GroupImpl } from '@theia/core/lib/browser/menu/composite-menu-node';
|
|
|
24
24
|
import { ToolConfirmationMode as ToolConfirmationPreferenceMode } from '@theia/ai-chat/lib/common/chat-tool-preferences';
|
|
25
25
|
import { ToolConfirmationManager } from '@theia/ai-chat/lib/browser/chat-tool-preference-bindings';
|
|
26
26
|
import { PendingToolConfirmationTracker } from '@theia/ai-chat/lib/browser/pending-tool-confirmation-tracker';
|
|
27
|
-
import { MarkdownRender } from './markdown-part-renderer';
|
|
28
|
-
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils';
|
|
27
|
+
import { MarkdownRender } from './markdown-part-renderer.js';
|
|
28
|
+
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils.js';
|
|
29
29
|
|
|
30
30
|
export interface CountdownTimerProps {
|
|
31
31
|
response: ToolCallChatResponseContent;
|
|
@@ -30,9 +30,9 @@ import { HoverRequest, HoverService, KeybindingRegistry, OpenerService } from '@
|
|
|
30
30
|
import { ReactNode } from '@theia/core/shared/react';
|
|
31
31
|
import { flushSync } from '@theia/core/shared/react-dom';
|
|
32
32
|
import { createRoot, Root } from '@theia/core/shared/react-dom/client';
|
|
33
|
-
import { ResponseNode } from '../chat-tree-view';
|
|
34
|
-
import { ToolCallPartRenderer } from './toolcall-part-renderer';
|
|
35
|
-
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils';
|
|
33
|
+
import { ResponseNode } from '../chat-tree-view/index.js';
|
|
34
|
+
import { ToolCallPartRenderer } from './toolcall-part-renderer.js';
|
|
35
|
+
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils.js';
|
|
36
36
|
|
|
37
37
|
disableJSDOM();
|
|
38
38
|
|
|
@@ -14,26 +14,26 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
17
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
18
18
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ChatResponseContent, ToolCallChatResponseContent } from '@theia/ai-chat/lib/common';
|
|
20
20
|
import { ReactNode } from '@theia/core/shared/react';
|
|
21
21
|
import { nls } from '@theia/core/lib/common/nls';
|
|
22
22
|
import { codicon, ContextMenuRenderer, HoverService, KeybindingRegistry, MarkdownRenderer, OpenerService } from '@theia/core/lib/browser';
|
|
23
23
|
import * as React from '@theia/core/shared/react';
|
|
24
|
-
import { createConfirmationHandlers, ToolConfirmation, ToolConfirmationKeybindingHints, useToolConfirmationState } from './tool-confirmation';
|
|
24
|
+
import { createConfirmationHandlers, ToolConfirmation, ToolConfirmationKeybindingHints, useToolConfirmationState } from './tool-confirmation.js';
|
|
25
25
|
import { ToolConfirmationMode } from '@theia/ai-chat/lib/common/chat-tool-preferences';
|
|
26
|
-
import { ResponseNode } from '../chat-tree-view';
|
|
26
|
+
import { ResponseNode } from '../chat-tree-view/index.js';
|
|
27
27
|
import { ToolInvocationRegistry, ToolRequest } from '@theia/ai-core';
|
|
28
|
-
import { renderToolCallResult } from './toolcall-result';
|
|
28
|
+
import { renderToolCallResult } from './toolcall-result.js';
|
|
29
29
|
import { ToolConfirmationManager } from '@theia/ai-chat/lib/browser/chat-tool-preference-bindings';
|
|
30
30
|
import { PendingToolConfirmationTracker } from '@theia/ai-chat/lib/browser/pending-tool-confirmation-tracker';
|
|
31
31
|
import {
|
|
32
32
|
APPROVE_LATEST_TOOL_CONFIRMATION_COMMAND,
|
|
33
33
|
DENY_LATEST_TOOL_CONFIRMATION_COMMAND
|
|
34
|
-
} from '../tool-confirmation-keybinding-contribution';
|
|
35
|
-
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils';
|
|
36
|
-
import { Spinner } from './spinner';
|
|
34
|
+
} from '../tool-confirmation-keybinding-contribution.js';
|
|
35
|
+
import { condenseArguments, formatArgsForTooltip } from './toolcall-utils.js';
|
|
36
|
+
import { Spinner } from './spinner.js';
|
|
37
37
|
|
|
38
38
|
@injectable()
|
|
39
39
|
export class ToolCallPartRenderer implements ChatResponsePartRenderer<ToolCallChatResponseContent> {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
import { ReactNode } from '@theia/core/shared/react';
|
|
18
18
|
import { OpenerService } from '@theia/core/lib/browser';
|
|
19
19
|
import { isToolCallContent, ToolCallResult } from '@theia/ai-core';
|
|
20
|
-
import { MarkdownRender } from './markdown-part-renderer';
|
|
21
|
-
import { McpAppFrame } from './mcp-app-frame';
|
|
20
|
+
import { MarkdownRender } from './markdown-part-renderer.js';
|
|
21
|
+
import { McpAppFrame } from './mcp-app-frame.js';
|
|
22
22
|
|
|
23
23
|
/** Parses a tool call result that may be a JSON string, returning the original value on failure. */
|
|
24
24
|
export function tryParseToolCallResult(result: ToolCallResult): ToolCallResult {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { MarkdownStringImpl } from '@theia/core/lib/common/markdown-rendering/markdown-string';
|
|
18
|
-
import { mayBeCompleteJson } from '../../common/toolcall-utils';
|
|
18
|
+
import { mayBeCompleteJson } from '../../common/toolcall-utils.js';
|
|
19
19
|
|
|
20
|
-
export { extractJsonStringField } from '../../common/toolcall-utils';
|
|
20
|
+
export { extractJsonStringField } from '../../common/toolcall-utils.js';
|
|
21
21
|
|
|
22
22
|
const SHORT_STRING_THRESHOLD = 50;
|
|
23
23
|
const MAX_CONDENSED_LENGTH = 80;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
18
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
19
19
|
import { ChatResponseContent, UnknownChatResponseContent } from '@theia/ai-chat/lib/common';
|
|
20
20
|
import { ReactNode } from '@theia/core/shared/react';
|
|
21
21
|
import { nls } from '@theia/core/lib/common/nls';
|
|
@@ -26,7 +26,7 @@ import 'reflect-metadata';
|
|
|
26
26
|
import { expect } from 'chai';
|
|
27
27
|
import { ApplicationShell } from '@theia/core/lib/browser';
|
|
28
28
|
import { ChatService, ChatSession } from '@theia/ai-chat';
|
|
29
|
-
import { isChatSessionFocused } from './chat-session-focus';
|
|
29
|
+
import { isChatSessionFocused } from './chat-session-focus.js';
|
|
30
30
|
|
|
31
31
|
disableJSDOM();
|
|
32
32
|
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
AGENT_NOTIFICATION_KIND_INPUT_NEEDED
|
|
41
41
|
} from '@theia/ai-core';
|
|
42
42
|
import { AgentNotificationService, AgentNotificationOptions } from '@theia/ai-core/lib/browser';
|
|
43
|
-
import { ChatSessionNotificationContribution } from './chat-session-notification-contribution';
|
|
43
|
+
import { ChatSessionNotificationContribution } from './chat-session-notification-contribution.js';
|
|
44
44
|
|
|
45
45
|
disableJSDOM();
|
|
46
46
|
|
|
@@ -20,7 +20,7 @@ import { ApplicationShell, FrontendApplicationContribution } from '@theia/core/l
|
|
|
20
20
|
import { AgentNotificationKind, AGENT_NOTIFICATION_KIND_COMPLETED, AGENT_NOTIFICATION_KIND_INPUT_NEEDED } from '@theia/ai-core';
|
|
21
21
|
import { AgentNotificationService } from '@theia/ai-core/lib/browser';
|
|
22
22
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
23
|
-
import { isChatSessionFocused } from './chat-session-focus';
|
|
23
|
+
import { isChatSessionFocused } from './chat-session-focus.js';
|
|
24
24
|
|
|
25
25
|
interface SessionNotificationState {
|
|
26
26
|
/** Whether the session status required user action at the last observed status change. */
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { createTreeContainer, TreeProps } from '@theia/core/lib/browser';
|
|
18
18
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
19
|
-
import { ChatFindHighlighter } from '../chat-find/chat-find-highlighter';
|
|
20
|
-
import { ChatFindWidget } from '../chat-find/chat-find-widget';
|
|
21
|
-
import { ChatViewTreeWidget } from './chat-view-tree-widget';
|
|
19
|
+
import { ChatFindHighlighter } from '../chat-find/chat-find-highlighter.js';
|
|
20
|
+
import { ChatFindWidget } from '../chat-find/chat-find-widget.js';
|
|
21
|
+
import { ChatViewTreeWidget } from './chat-view-tree-widget.js';
|
|
22
22
|
|
|
23
23
|
const CHAT_VIEW_TREE_PROPS = {
|
|
24
24
|
multiSelect: false,
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, optional, postConstruct } from '@theia/core/shared/inversify';
|
|
18
|
-
import { AIChatInputWidget, type AIChatInputConfiguration } from '../chat-input-widget';
|
|
19
|
-
import type { EditableRequestNode } from './chat-view-tree-widget';
|
|
18
|
+
import { AIChatInputWidget, type AIChatInputConfiguration } from '../chat-input-widget.js';
|
|
19
|
+
import type { EditableRequestNode } from './chat-view-tree-widget.js';
|
|
20
20
|
import { URI } from '@theia/core';
|
|
21
|
-
import { CHAT_VIEW_LANGUAGE_EXTENSION } from '../chat-view-language-contribution';
|
|
21
|
+
import { CHAT_VIEW_LANGUAGE_EXTENSION } from '../chat-view-language-contribution.js';
|
|
22
22
|
import type { ChatModel, ChatRequestModel, EditableChatRequestModel, ChatHierarchyBranch } from '@theia/ai-chat';
|
|
23
23
|
import type { AIVariableResolutionRequest, GenericCapabilitySelections } from '@theia/ai-core';
|
|
24
24
|
import { Key } from '@theia/core/lib/browser';
|
|
@@ -26,9 +26,9 @@ import 'reflect-metadata';
|
|
|
26
26
|
import { expect } from 'chai';
|
|
27
27
|
import { createRoot, Root } from '@theia/core/shared/react-dom/client';
|
|
28
28
|
import { OpenerService } from '@theia/core/lib/browser';
|
|
29
|
-
import { MarkdownRender } from '../chat-response-renderer/markdown-part-renderer';
|
|
30
|
-
import { BLOCKED_RESOURCE_CLASS } from '../chat-response-renderer/block-external-resources';
|
|
31
|
-
import { ChatRequestRender, RequestNode } from './chat-view-tree-widget';
|
|
29
|
+
import { MarkdownRender } from '../chat-response-renderer/markdown-part-renderer.js';
|
|
30
|
+
import { BLOCKED_RESOURCE_CLASS } from '../chat-response-renderer/block-external-resources.js';
|
|
31
|
+
import { ChatRequestRender, RequestNode } from './chat-view-tree-widget.js';
|
|
32
32
|
|
|
33
33
|
disableJSDOM();
|
|
34
34
|
|
|
@@ -52,9 +52,9 @@ import {
|
|
|
52
52
|
type ReactWidget
|
|
53
53
|
} from '@theia/core/lib/browser';
|
|
54
54
|
import { ContextKey, ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
55
|
-
import { ChatFindHighlighter } from '../chat-find/chat-find-highlighter';
|
|
56
|
-
import { ChatFindMatch } from '../chat-find/chat-find-matcher';
|
|
57
|
-
import { ChatFindState, ChatFindWidget } from '../chat-find/chat-find-widget';
|
|
55
|
+
import { ChatFindHighlighter } from '../chat-find/chat-find-highlighter.js';
|
|
56
|
+
import { ChatFindMatch } from '../chat-find/chat-find-matcher.js';
|
|
57
|
+
import { ChatFindState, ChatFindWidget } from '../chat-find/chat-find-widget.js';
|
|
58
58
|
import { nls } from '@theia/core/lib/common/nls';
|
|
59
59
|
import {
|
|
60
60
|
inject,
|
|
@@ -65,14 +65,14 @@ import {
|
|
|
65
65
|
import * as React from '@theia/core/shared/react';
|
|
66
66
|
import { ImageContextVariable } from '@theia/ai-chat/lib/common/image-context-variable';
|
|
67
67
|
import { MarkdownStringImpl } from '@theia/core/lib/common/markdown-rendering';
|
|
68
|
-
import { ChatNodeToolbarActionContribution } from '../chat-node-toolbar-action-contribution';
|
|
69
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
70
|
-
import { formatTokenCount } from '../chat-token-usage-indicator-util';
|
|
71
|
-
import { MarkdownRendering, useMarkdownRendering } from '../chat-response-renderer/markdown-part-renderer';
|
|
72
|
-
import { ProgressMessage } from '../chat-progress-message';
|
|
73
|
-
import { AIChatTreeInputFactory, type AIChatTreeInputWidget } from './chat-view-tree-input-widget';
|
|
74
|
-
import { PromptVariantBadge } from './prompt-variant-badge';
|
|
75
|
-
import { ModelBadge } from './model-badge';
|
|
68
|
+
import { ChatNodeToolbarActionContribution } from '../chat-node-toolbar-action-contribution.js';
|
|
69
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
70
|
+
import { formatTokenCount } from '../chat-token-usage-indicator-util.js';
|
|
71
|
+
import { MarkdownRendering, useMarkdownRendering } from '../chat-response-renderer/markdown-part-renderer.js';
|
|
72
|
+
import { ProgressMessage } from '../chat-progress-message.js';
|
|
73
|
+
import { AIChatTreeInputFactory, type AIChatTreeInputWidget } from './chat-view-tree-input-widget.js';
|
|
74
|
+
import { PromptVariantBadge } from './prompt-variant-badge.js';
|
|
75
|
+
import { ModelBadge } from './model-badge.js';
|
|
76
76
|
|
|
77
77
|
// TODO Instead of directly operating on the ChatRequestModel we could use an intermediate view model
|
|
78
78
|
export interface RequestNode extends TreeNode {
|
|
@@ -714,7 +714,7 @@ export class ChatViewTreeWidget extends TreeWidget {
|
|
|
714
714
|
{inProgress && waitingForInput &&
|
|
715
715
|
<span className='theia-ChatContentInProgress' role='status' aria-live='polite'>
|
|
716
716
|
<span className={`${codicon('loading')} codicon-modifier-spin`} aria-hidden={true}></span>
|
|
717
|
-
{nls.
|
|
717
|
+
{nls.localizeByDefault('Waiting for input')}
|
|
718
718
|
</span>}
|
|
719
719
|
{!inProgress &&
|
|
720
720
|
<div className='theia-ChatNodeToolbar'>
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './chat-view-tree-container';
|
|
18
|
-
export * from './chat-view-tree-widget';
|
|
17
|
+
export * from './chat-view-tree-container.js';
|
|
18
|
+
export * from './chat-view-tree-widget.js';
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
18
|
-
import { ProgressMessage } from '../chat-progress-message';
|
|
19
|
-
import { ChatViewTreeWidget, ResponseNode } from './chat-view-tree-widget';
|
|
18
|
+
import { ProgressMessage } from '../chat-progress-message.js';
|
|
19
|
+
import { ChatViewTreeWidget, ResponseNode } from './chat-view-tree-widget.js';
|
|
20
20
|
import * as React from '@theia/core/shared/react';
|
|
21
21
|
import { ContributionProvider, ILogger } from '@theia/core';
|
|
22
|
-
import { ChatResponsePartRenderer } from '../chat-response-part-renderer';
|
|
23
|
-
import { ChatNodeToolbarActionContribution } from '../chat-node-toolbar-action-contribution';
|
|
22
|
+
import { ChatResponsePartRenderer } from '../chat-response-part-renderer.js';
|
|
23
|
+
import { ChatNodeToolbarActionContribution } from '../chat-node-toolbar-action-contribution.js';
|
|
24
24
|
import { ChatResponseContent } from '@theia/ai-chat';
|
|
25
25
|
import { ContextMenuRenderer, TreeNode } from '@theia/core/lib/browser';
|
|
26
26
|
import { nls } from '@theia/core/lib/common/nls';
|
|
@@ -20,8 +20,8 @@ import { inject, injectable } from '@theia/core/shared/inversify';
|
|
|
20
20
|
import {
|
|
21
21
|
ChatViewTreeWidget, isEditableRequestNode, isRequestNode,
|
|
22
22
|
isResponseNode, RequestNode, ResponseNode, type EditableRequestNode
|
|
23
|
-
} from './chat-tree-view/chat-view-tree-widget';
|
|
24
|
-
import { AIChatInputWidget } from './chat-input-widget';
|
|
23
|
+
} from './chat-tree-view/chat-view-tree-widget.js';
|
|
24
|
+
import { AIChatInputWidget } from './chat-input-widget.js';
|
|
25
25
|
import { AICommandHandlerFactory, ENABLE_AI_CONTEXT_KEY } from '@theia/ai-core/lib/browser';
|
|
26
26
|
|
|
27
27
|
export namespace ChatViewCommands {
|
|
@@ -24,7 +24,7 @@ import { FrontendApplication, FrontendApplicationContribution } from '@theia/cor
|
|
|
24
24
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
25
25
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
26
26
|
import * as monaco from '@theia/monaco-editor-core';
|
|
27
|
-
import { ProviderResult } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
27
|
+
import { ProviderResult } from '@theia/monaco-editor-core/esm/vs/editor/common/languages.js';
|
|
28
28
|
import { AIChatFrontendContribution, OPEN_FILE_BY_PATH_COMMAND, VARIABLE_ADD_CONTEXT_COMMAND } from '@theia/ai-chat/lib/browser/ai-chat-frontend-contribution';
|
|
29
29
|
import { PendingImageRegistry } from '@theia/ai-chat/lib/browser/pending-image-registry';
|
|
30
30
|
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
18
18
|
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
19
|
-
import { AIChatContribution } from './ai-chat-ui-contribution';
|
|
19
|
+
import { AIChatContribution } from './ai-chat-ui-contribution.js';
|
|
20
20
|
import { Emitter, InMemoryResources, URI, nls } from '@theia/core';
|
|
21
|
-
import { ChatCommands } from './chat-view-commands';
|
|
21
|
+
import { ChatCommands } from './chat-view-commands.js';
|
|
22
22
|
import { CommandRegistry } from '@theia/core/lib/common/command';
|
|
23
|
-
import { SessionSettingsDialog } from './session-settings-dialog';
|
|
23
|
+
import { SessionSettingsDialog } from './session-settings-dialog.js';
|
|
24
24
|
import { MonacoEditorProvider } from '@theia/monaco/lib/browser/monaco-editor-provider';
|
|
25
|
-
import { ChatViewWidget } from './chat-view-widget';
|
|
25
|
+
import { ChatViewWidget } from './chat-view-widget.js';
|
|
26
26
|
import { AIActivationService, ENABLE_AI_CONTEXT_KEY } from '@theia/ai-core/lib/browser';
|
|
27
27
|
|
|
28
28
|
@injectable()
|
|
@@ -22,9 +22,9 @@ import { GenericCapabilitySelections, AIVariableResolutionRequest } from '@theia
|
|
|
22
22
|
import { ApplicationShell, BaseWidget, codicon, ExtractableWidget, Message, PanelLayout, StatefulWidget } from '@theia/core/lib/browser';
|
|
23
23
|
import { nls } from '@theia/core/lib/common/nls';
|
|
24
24
|
import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
|
25
|
-
import { AIChatInputWidget } from './chat-input-widget';
|
|
26
|
-
import { ChatBannerWidget } from './chat-banner-widget';
|
|
27
|
-
import { ChatViewTreeWidget, ChatWelcomeMessageProvider } from './chat-tree-view/chat-view-tree-widget';
|
|
25
|
+
import { AIChatInputWidget } from './chat-input-widget.js';
|
|
26
|
+
import { ChatBannerWidget } from './chat-banner-widget.js';
|
|
27
|
+
import { ChatViewTreeWidget, ChatWelcomeMessageProvider } from './chat-tree-view/chat-view-tree-widget.js';
|
|
28
28
|
import { AIActivationService } from '@theia/ai-core/lib/browser/ai-activation-service';
|
|
29
29
|
import { ProgressBarFactory } from '@theia/core/lib/browser/progress-bar-factory';
|
|
30
30
|
import { FrontendVariableService } from '@theia/ai-core/lib/browser';
|
|
@@ -18,8 +18,8 @@ import * as React from '@theia/core/shared/react';
|
|
|
18
18
|
import { nls } from '@theia/core';
|
|
19
19
|
import { HoverService } from '@theia/core/lib/browser';
|
|
20
20
|
import { GenericCapabilitySelections } from '@theia/ai-core';
|
|
21
|
-
import { AvailableGenericCapabilities } from './generic-capabilities-service';
|
|
22
|
-
import { GenericCapabilitiesTree, ServerToolsSection } from './generic-capabilities-tree';
|
|
21
|
+
import { AvailableGenericCapabilities } from './generic-capabilities-service.js';
|
|
22
|
+
import { GenericCapabilitiesTree, ServerToolsSection } from './generic-capabilities-tree.js';
|
|
23
23
|
|
|
24
24
|
export interface GenericCapabilitiesSectionProps {
|
|
25
25
|
/** Current generic capability selections */
|
|
@@ -23,7 +23,7 @@ import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/front
|
|
|
23
23
|
FrontendApplicationConfigProvider.set({});
|
|
24
24
|
|
|
25
25
|
import { expect } from 'chai';
|
|
26
|
-
import { GenericCapabilitiesServiceImpl } from './generic-capabilities-service';
|
|
26
|
+
import { GenericCapabilitiesServiceImpl } from './generic-capabilities-service.js';
|
|
27
27
|
import { ToolRequest, PromptFragment, Skill, GenericCapabilitiesContribution, GenericCapabilityGroup } from '@theia/ai-core';
|
|
28
28
|
import { ContributionProvider, Emitter } from '@theia/core';
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
AIVariableService
|
|
32
32
|
} from '@theia/ai-core';
|
|
33
33
|
import { ChatAgentService } from '@theia/ai-chat';
|
|
34
|
-
import debounce
|
|
34
|
+
import debounce from '@theia/core/shared/lodash.debounce';
|
|
35
35
|
|
|
36
36
|
// Re-export types from ai-core for backward compatibility
|
|
37
37
|
export { GenericCapabilityItem, GenericCapabilityGroup, GenericCapabilitiesContribution };
|
|
@@ -19,7 +19,7 @@ import { nls } from '@theia/core';
|
|
|
19
19
|
import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';
|
|
20
20
|
import { HoverService } from '@theia/core/lib/browser';
|
|
21
21
|
import { GenericCapabilitySelections, ServerToolDescriptor } from '@theia/ai-core';
|
|
22
|
-
import { AvailableGenericCapabilities, GenericCapabilityItem, GenericCapabilityGroup } from './generic-capabilities-service';
|
|
22
|
+
import { AvailableGenericCapabilities, GenericCapabilityItem, GenericCapabilityGroup } from './generic-capabilities-service.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Optional "Server Tools" section for the current model's provider. When present, the tree shows a
|
|
@@ -19,7 +19,7 @@ import { ApplicationShell, KeybindingContribution, KeybindingRegistry } from '@t
|
|
|
19
19
|
import { ContextKey, ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
20
20
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
21
21
|
import { PendingToolConfirmation, PendingToolConfirmationTracker } from '@theia/ai-chat/lib/browser/pending-tool-confirmation-tracker';
|
|
22
|
-
import { ChatViewWidget } from './chat-view-widget';
|
|
22
|
+
import { ChatViewWidget } from './chat-view-widget.js';
|
|
23
23
|
|
|
24
24
|
export const HAS_PENDING_TOOL_CONFIRMATION_CONTEXT_KEY = 'theiaAi.hasPendingToolConfirmation';
|
|
25
25
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { extractJsonStringField } from './toolcall-utils';
|
|
18
|
+
import { extractJsonStringField } from './toolcall-utils.js';
|
|
19
19
|
|
|
20
20
|
describe('extractJsonStringField', () => {
|
|
21
21
|
describe('complete JSON', () => {
|