@theia/ai-chat-ui 1.77.0-next.99 → 1.78.0-next.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 +58 -70
- 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 +3 -3
- 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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// *****************************************************************************
|
|
3
2
|
// Copyright (C) 2026 EclipseSource GmbH.
|
|
4
3
|
//
|
|
@@ -14,176 +13,175 @@
|
|
|
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
|
-
const toolcall_utils_1 = require("./toolcall-utils");
|
|
16
|
+
import { expect } from 'chai';
|
|
17
|
+
import { extractJsonStringField } from './toolcall-utils.js';
|
|
20
18
|
describe('extractJsonStringField', () => {
|
|
21
19
|
describe('complete JSON', () => {
|
|
22
20
|
it('should extract a string field from valid JSON', () => {
|
|
23
|
-
const result =
|
|
24
|
-
|
|
21
|
+
const result = extractJsonStringField('{"path": "src/index.ts", "content": "hello"}', 'path');
|
|
22
|
+
expect(result).to.equal('src/index.ts');
|
|
25
23
|
});
|
|
26
24
|
it('should extract a different field from valid JSON', () => {
|
|
27
|
-
const result =
|
|
28
|
-
|
|
25
|
+
const result = extractJsonStringField('{"agentId": "coder", "prompt": "fix the bug"}', 'prompt');
|
|
26
|
+
expect(result).to.equal('fix the bug');
|
|
29
27
|
});
|
|
30
28
|
it('should return undefined when field is not present in valid JSON', () => {
|
|
31
|
-
const result =
|
|
32
|
-
|
|
29
|
+
const result = extractJsonStringField('{"name": "test"}', 'path');
|
|
30
|
+
expect(result).to.be.undefined;
|
|
33
31
|
});
|
|
34
32
|
it('should return undefined when field value is not a string', () => {
|
|
35
|
-
const result =
|
|
36
|
-
|
|
33
|
+
const result = extractJsonStringField('{"count": 42}', 'count');
|
|
34
|
+
expect(result).to.be.undefined;
|
|
37
35
|
});
|
|
38
36
|
});
|
|
39
37
|
describe('incomplete JSON (streaming)', () => {
|
|
40
38
|
it('should extract field from JSON missing closing brace', () => {
|
|
41
|
-
const result =
|
|
42
|
-
|
|
39
|
+
const result = extractJsonStringField('{"path": "src/index.ts"', 'path');
|
|
40
|
+
expect(result).to.equal('src/index.ts');
|
|
43
41
|
});
|
|
44
42
|
it('should extract field from JSON with missing closing quote on value', () => {
|
|
45
|
-
const result =
|
|
46
|
-
|
|
43
|
+
const result = extractJsonStringField('{"path": "src/index.ts', 'path');
|
|
44
|
+
expect(result).to.equal('src/index.ts');
|
|
47
45
|
});
|
|
48
46
|
it('should extract partial value mid-stream', () => {
|
|
49
|
-
const result =
|
|
50
|
-
|
|
47
|
+
const result = extractJsonStringField('{"command": "git st', 'command');
|
|
48
|
+
expect(result).to.equal('git st');
|
|
51
49
|
});
|
|
52
50
|
it('should return empty string when only the key and opening quote are present', () => {
|
|
53
|
-
const result =
|
|
54
|
-
|
|
51
|
+
const result = extractJsonStringField('{"path": "', 'path');
|
|
52
|
+
expect(result).to.equal('');
|
|
55
53
|
});
|
|
56
54
|
it('should handle JSON without spaces around colon', () => {
|
|
57
|
-
const result =
|
|
58
|
-
|
|
55
|
+
const result = extractJsonStringField('{"path":"src/utils.ts', 'path');
|
|
56
|
+
expect(result).to.equal('src/utils.ts');
|
|
59
57
|
});
|
|
60
58
|
it('should extract first field when additional fields follow incomplete', () => {
|
|
61
|
-
const result =
|
|
62
|
-
|
|
59
|
+
const result = extractJsonStringField('{"path": "src/index.ts", "content": "hel', 'path');
|
|
60
|
+
expect(result).to.equal('src/index.ts');
|
|
63
61
|
});
|
|
64
62
|
it('should extract the second field from partial JSON', () => {
|
|
65
|
-
const result =
|
|
66
|
-
|
|
63
|
+
const result = extractJsonStringField('{"agentId": "coder", "prompt": "fix the b', 'prompt');
|
|
64
|
+
expect(result).to.equal('fix the b');
|
|
67
65
|
});
|
|
68
66
|
});
|
|
69
67
|
describe('edge cases', () => {
|
|
70
68
|
it('should return undefined for undefined input', () => {
|
|
71
|
-
const result =
|
|
72
|
-
|
|
69
|
+
const result = extractJsonStringField(undefined, 'path');
|
|
70
|
+
expect(result).to.be.undefined;
|
|
73
71
|
});
|
|
74
72
|
it('should return undefined for empty string input', () => {
|
|
75
|
-
const result =
|
|
76
|
-
|
|
73
|
+
const result = extractJsonStringField('', 'path');
|
|
74
|
+
expect(result).to.be.undefined;
|
|
77
75
|
});
|
|
78
76
|
it('should return undefined when field is not present in partial JSON', () => {
|
|
79
|
-
const result =
|
|
80
|
-
|
|
77
|
+
const result = extractJsonStringField('{"other": "value', 'path');
|
|
78
|
+
expect(result).to.be.undefined;
|
|
81
79
|
});
|
|
82
80
|
it('should return undefined for completely malformed input', () => {
|
|
83
|
-
const result =
|
|
84
|
-
|
|
81
|
+
const result = extractJsonStringField('{path: value}', 'path');
|
|
82
|
+
expect(result).to.be.undefined;
|
|
85
83
|
});
|
|
86
84
|
it('should return undefined for partial key only', () => {
|
|
87
|
-
const result =
|
|
88
|
-
|
|
85
|
+
const result = extractJsonStringField('{"pat', 'path');
|
|
86
|
+
expect(result).to.be.undefined;
|
|
89
87
|
});
|
|
90
88
|
it('should handle escaped quotes in complete JSON', () => {
|
|
91
89
|
// With complete JSON, JSON.parse handles escapes correctly
|
|
92
|
-
const result =
|
|
93
|
-
|
|
90
|
+
const result = extractJsonStringField('{"cmd": "echo \\"hello\\""}', 'cmd');
|
|
91
|
+
expect(result).to.equal('echo "hello"');
|
|
94
92
|
});
|
|
95
93
|
it('should unescape escaped quotes in partial JSON', () => {
|
|
96
|
-
const result =
|
|
97
|
-
|
|
94
|
+
const result = extractJsonStringField('{"cmd": "echo \\"hello', 'cmd');
|
|
95
|
+
expect(result).to.equal('echo "hello');
|
|
98
96
|
});
|
|
99
97
|
});
|
|
100
98
|
describe('parse/scan boundary', () => {
|
|
101
99
|
it('should unescape via JSON.parse when complete JSON has trailing whitespace', () => {
|
|
102
|
-
const result =
|
|
103
|
-
|
|
100
|
+
const result = extractJsonStringField('{"cmd": "echo \\"hello\\""}\n', 'cmd');
|
|
101
|
+
expect(result).to.equal('echo "hello"');
|
|
104
102
|
});
|
|
105
103
|
it('should extract by scanning when JSON ends with a brace but is still incomplete', () => {
|
|
106
|
-
const result =
|
|
107
|
-
|
|
104
|
+
const result = extractJsonStringField('{"path": "src/index.ts", "meta": {"x": "y"}', 'path');
|
|
105
|
+
expect(result).to.equal('src/index.ts');
|
|
108
106
|
});
|
|
109
107
|
it('should return undefined for a complete array without the field', () => {
|
|
110
|
-
const result =
|
|
111
|
-
|
|
108
|
+
const result = extractJsonStringField('[{"path": "src/index.ts"}]', 'other');
|
|
109
|
+
expect(result).to.be.undefined;
|
|
112
110
|
});
|
|
113
111
|
it('should return undefined for an incomplete array, which has no top-level field', () => {
|
|
114
|
-
const result =
|
|
115
|
-
|
|
112
|
+
const result = extractJsonStringField('[{"path": "src/index.ts"', 'path');
|
|
113
|
+
expect(result).to.be.undefined;
|
|
116
114
|
});
|
|
117
115
|
});
|
|
118
116
|
describe('top-level fields only (streaming)', () => {
|
|
119
117
|
it('should ignore a matching key inside a nested object', () => {
|
|
120
|
-
const result =
|
|
121
|
-
|
|
118
|
+
const result = extractJsonStringField('{"meta": {"path": "inner.ts"}, "path": "outer.ts', 'path');
|
|
119
|
+
expect(result).to.equal('outer.ts');
|
|
122
120
|
});
|
|
123
121
|
it('should ignore a matching key inside a nested array of objects', () => {
|
|
124
|
-
const result =
|
|
125
|
-
|
|
122
|
+
const result = extractJsonStringField('{"edits": [{"path": "inner.ts"}], "path": "outer.ts', 'path');
|
|
123
|
+
expect(result).to.equal('outer.ts');
|
|
126
124
|
});
|
|
127
125
|
it('should ignore a matching key inside a string value', () => {
|
|
128
|
-
const result =
|
|
129
|
-
|
|
126
|
+
const result = extractJsonStringField('{"content": "{\\"path\\": \\"inner.ts\\"}", "path": "outer.ts', 'path');
|
|
127
|
+
expect(result).to.equal('outer.ts');
|
|
130
128
|
});
|
|
131
129
|
it('should return undefined when the field only occurs nested', () => {
|
|
132
|
-
const result =
|
|
133
|
-
|
|
130
|
+
const result = extractJsonStringField('{"meta": {"path": "inner.ts"}, "content": "abc', 'path');
|
|
131
|
+
expect(result).to.be.undefined;
|
|
134
132
|
});
|
|
135
133
|
it('should return undefined while a nested object is still streaming', () => {
|
|
136
|
-
const result =
|
|
137
|
-
|
|
134
|
+
const result = extractJsonStringField('{"meta": {"path": "inner.ts', 'path');
|
|
135
|
+
expect(result).to.be.undefined;
|
|
138
136
|
});
|
|
139
137
|
it('should return undefined when the top-level field is not a string', () => {
|
|
140
|
-
const result =
|
|
141
|
-
|
|
138
|
+
const result = extractJsonStringField('{"path": 42, "content": "abc', 'path');
|
|
139
|
+
expect(result).to.be.undefined;
|
|
142
140
|
});
|
|
143
141
|
it('should extract a field that follows a non-string top-level value', () => {
|
|
144
|
-
const result =
|
|
145
|
-
|
|
142
|
+
const result = extractJsonStringField('{"line": 42, "path": "src/index.ts', 'path');
|
|
143
|
+
expect(result).to.equal('src/index.ts');
|
|
146
144
|
});
|
|
147
145
|
it('should extract a field that follows a nested object', () => {
|
|
148
|
-
const result =
|
|
149
|
-
|
|
146
|
+
const result = extractJsonStringField('{"meta": {"a": {"b": "c"}}, "path": "src/index.ts', 'path');
|
|
147
|
+
expect(result).to.equal('src/index.ts');
|
|
150
148
|
});
|
|
151
149
|
it('should not match a key whose name merely ends with the field name', () => {
|
|
152
|
-
const result =
|
|
153
|
-
|
|
150
|
+
const result = extractJsonStringField('{"filepath": "wrong.ts", "path": "right.ts', 'path');
|
|
151
|
+
expect(result).to.equal('right.ts');
|
|
154
152
|
});
|
|
155
153
|
});
|
|
156
154
|
describe('escapes in streaming values', () => {
|
|
157
155
|
it('should not end the value at an escaped quote', () => {
|
|
158
|
-
const result =
|
|
159
|
-
|
|
156
|
+
const result = extractJsonStringField('{"path": "a\\"b", "other": "x', 'path');
|
|
157
|
+
expect(result).to.equal('a"b');
|
|
160
158
|
});
|
|
161
159
|
it('should unescape backslashes in a streaming Windows path', () => {
|
|
162
|
-
const result =
|
|
163
|
-
|
|
160
|
+
const result = extractJsonStringField('{"path": "C:\\\\Users\\\\me', 'path');
|
|
161
|
+
expect(result).to.equal('C:\\Users\\me');
|
|
164
162
|
});
|
|
165
163
|
it('should drop a trailing incomplete escape', () => {
|
|
166
|
-
const result =
|
|
167
|
-
|
|
164
|
+
const result = extractJsonStringField('{"path": "a\\', 'path');
|
|
165
|
+
expect(result).to.equal('a');
|
|
168
166
|
});
|
|
169
167
|
it('should drop a trailing incomplete unicode escape', () => {
|
|
170
|
-
const result =
|
|
171
|
-
|
|
168
|
+
const result = extractJsonStringField('{"path": "a\\u00', 'path');
|
|
169
|
+
expect(result).to.equal('a');
|
|
172
170
|
});
|
|
173
171
|
it('should keep a completed escaped backslash at the end of a streaming value', () => {
|
|
174
|
-
const result =
|
|
175
|
-
|
|
172
|
+
const result = extractJsonStringField('{"path": "a\\\\', 'path');
|
|
173
|
+
expect(result).to.equal('a\\');
|
|
176
174
|
});
|
|
177
175
|
it('should keep literal text that looks like an escape', () => {
|
|
178
|
-
const result =
|
|
179
|
-
|
|
176
|
+
const result = extractJsonStringField('{"path": "a\\\\u0041', 'path');
|
|
177
|
+
expect(result).to.equal('a\\u0041');
|
|
180
178
|
});
|
|
181
179
|
});
|
|
182
180
|
describe('large streaming payloads', () => {
|
|
183
181
|
it('should extract a field that follows a very large content value', () => {
|
|
184
182
|
const content = 'x'.repeat(1_000_000);
|
|
185
|
-
const result =
|
|
186
|
-
|
|
183
|
+
const result = extractJsonStringField(`{"content": "${content}", "path": "src/index.ts`, 'path');
|
|
184
|
+
expect(result).to.equal('src/index.ts');
|
|
187
185
|
});
|
|
188
186
|
});
|
|
189
187
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolcall-utils.spec.js","sourceRoot":"","sources":["../../src/common/toolcall-utils.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toolcall-utils.spec.js","sourceRoot":"","sources":["../../src/common/toolcall-utils.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACpC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;QAC3B,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;YACrD,MAAM,MAAM,GAAG,sBAAsB,CAAC,8CAA8C,EAAE,MAAM,CAAC,CAAC;YAC9F,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;YACxD,MAAM,MAAM,GAAG,sBAAsB,CAAC,+CAA+C,EAAE,QAAQ,CAAC,CAAC;YACjG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,K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,MAAM,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;YAClE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2EAA2E,EAAE,GAAG,EAAE;YACjF,MAAM,MAAM,GAAG,sBAAsB,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;YACjE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,oDAAoD,EAAE,GAAG,EAAE;YAC1D,MAAM,MAAM,GAAG,sBAAsB,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;YACtE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;QACtC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;YACtE,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACtC,MAAM,MAAM,GAAG,sBAAsB,CAAC,gBAAgB,OAAO,0BAA0B,EAAE,MAAM,CAAC,CAAC;YACjG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/ai-chat-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0-next.0+b0e3080cb",
|
|
4
4
|
"description": "Theia - AI Chat UI Extension",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/ai-chat": "1.
|
|
7
|
-
"@theia/ai-core": "1.
|
|
8
|
-
"@theia/core": "1.
|
|
9
|
-
"@theia/editor": "1.
|
|
10
|
-
"@theia/editor-preview": "1.
|
|
11
|
-
"@theia/filesystem": "1.
|
|
12
|
-
"@theia/monaco": "1.
|
|
7
|
+
"@theia/ai-chat": "1.78.0-next.0+b0e3080cb",
|
|
8
|
+
"@theia/ai-core": "1.78.0-next.0+b0e3080cb",
|
|
9
|
+
"@theia/core": "1.78.0-next.0+b0e3080cb",
|
|
10
|
+
"@theia/editor": "1.78.0-next.0+b0e3080cb",
|
|
11
|
+
"@theia/editor-preview": "1.78.0-next.0+b0e3080cb",
|
|
12
|
+
"@theia/filesystem": "1.78.0-next.0+b0e3080cb",
|
|
13
|
+
"@theia/monaco": "1.78.0-next.0+b0e3080cb",
|
|
13
14
|
"@theia/monaco-editor-core": "1.108.201",
|
|
14
|
-
"@theia/preferences": "1.
|
|
15
|
-
"@theia/workspace": "1.
|
|
15
|
+
"@theia/preferences": "1.78.0-next.0+b0e3080cb",
|
|
16
|
+
"@theia/workspace": "1.78.0-next.0+b0e3080cb",
|
|
16
17
|
"mermaid": "^11.17.2",
|
|
17
18
|
"tslib": "^2.8.1"
|
|
18
19
|
},
|
|
@@ -50,10 +51,19 @@
|
|
|
50
51
|
"watch": "theiaext watch"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@theia/ext-scripts": "1.
|
|
54
|
+
"@theia/ext-scripts": "1.77.0"
|
|
54
55
|
},
|
|
55
56
|
"nyc": {
|
|
56
57
|
"extends": "../../configs/nyc.json"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "b0e3080cb1b1fff5616555f1bf679834129da171",
|
|
60
|
+
"exports": {
|
|
61
|
+
"./package.json": "./package.json",
|
|
62
|
+
"./lib/browser/chat-response-renderer": "./lib/browser/chat-response-renderer/index.js",
|
|
63
|
+
"./lib/browser/chat-tree-view": "./lib/browser/chat-tree-view/index.js",
|
|
64
|
+
"./lib/*.json": "./lib/*.json",
|
|
65
|
+
"./lib/*.js": "./lib/*.js",
|
|
66
|
+
"./lib/*": "./lib/*.js",
|
|
67
|
+
"./*": "./*"
|
|
68
|
+
}
|
|
59
69
|
}
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
AI_CHAT_OPEN_SESSION,
|
|
29
29
|
AI_CHAT_SHOW_CHATS_COMMAND,
|
|
30
30
|
ChatCommands
|
|
31
|
-
} from './chat-view-commands';
|
|
31
|
+
} from './chat-view-commands.js';
|
|
32
32
|
import { ChatAgent, ChatAgentLocation, ChatService, ChatSessionMetadata, isActiveSessionChangedEvent } from '@theia/ai-chat';
|
|
33
33
|
import { ChatAgentService } from '@theia/ai-chat/lib/common/chat-agent-service';
|
|
34
34
|
import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
|
|
35
35
|
import { AbstractViewContribution } from '@theia/core/lib/browser/shell/view-contribution';
|
|
36
36
|
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
37
|
-
import { ChatViewWidget } from './chat-view-widget';
|
|
37
|
+
import { ChatViewWidget } from './chat-view-widget.js';
|
|
38
38
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
39
39
|
import { SecondaryWindowHandler } from '@theia/core/lib/browser/secondary-window-handler';
|
|
40
|
-
import { formatTimeAgo } from './chat-date-utils';
|
|
40
|
+
import { formatTimeAgo } from './chat-date-utils.js';
|
|
41
41
|
import { AI_SHOW_SETTINGS_COMMAND, AIActivationService, ENABLE_AI_CONTEXT_KEY } from '@theia/ai-core/lib/browser';
|
|
42
|
-
import { ChatNodeToolbarCommands } from './chat-node-toolbar-action-contribution';
|
|
43
|
-
import { isEditableRequestNode, isResponseNode, type EditableRequestNode, type ResponseNode } from './chat-tree-view';
|
|
42
|
+
import { ChatNodeToolbarCommands } from './chat-node-toolbar-action-contribution.js';
|
|
43
|
+
import { isEditableRequestNode, isResponseNode, type EditableRequestNode, type ResponseNode } from './chat-tree-view/index.js';
|
|
44
44
|
import { TASK_CONTEXT_VARIABLE } from '@theia/ai-chat/lib/browser/task-context-variable';
|
|
45
45
|
import { TaskContextService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
46
46
|
import { SESSION_STORAGE_PREF } from '@theia/ai-chat/lib/common/ai-chat-preferences';
|
|
@@ -23,10 +23,10 @@ import { bindViewContribution, FrontendApplicationContribution, WidgetFactory, K
|
|
|
23
23
|
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
24
24
|
import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
|
|
25
25
|
import { EditorSelectionResolver } from '@theia/editor/lib/browser/editor-manager';
|
|
26
|
-
import { AIChatContribution } from './ai-chat-ui-contribution';
|
|
27
|
-
import { AIChatInputConfiguration, AIChatInputWidget } from './chat-input-widget';
|
|
28
|
-
import { ChatNodeToolbarActionContribution, DefaultChatNodeToolbarActionContribution } from './chat-node-toolbar-action-contribution';
|
|
29
|
-
import { ChatResponsePartRenderer } from './chat-response-part-renderer';
|
|
26
|
+
import { AIChatContribution } from './ai-chat-ui-contribution.js';
|
|
27
|
+
import { AIChatInputConfiguration, AIChatInputWidget } from './chat-input-widget.js';
|
|
28
|
+
import { ChatNodeToolbarActionContribution, DefaultChatNodeToolbarActionContribution } from './chat-node-toolbar-action-contribution.js';
|
|
29
|
+
import { ChatResponsePartRenderer } from './chat-response-part-renderer.js';
|
|
30
30
|
import {
|
|
31
31
|
CodePartRenderer,
|
|
32
32
|
CodePartRendererAction,
|
|
@@ -45,42 +45,42 @@ import {
|
|
|
45
45
|
ProgressPartRenderer,
|
|
46
46
|
DelegationToolRenderer,
|
|
47
47
|
TextPartRenderer,
|
|
48
|
-
} from './chat-response-renderer';
|
|
49
|
-
import { UnknownPartRenderer } from './chat-response-renderer/unknown-part-renderer';
|
|
48
|
+
} from './chat-response-renderer/index.js';
|
|
49
|
+
import { UnknownPartRenderer } from './chat-response-renderer/unknown-part-renderer.js';
|
|
50
50
|
import {
|
|
51
51
|
GitHubSelectionResolver,
|
|
52
52
|
TextFragmentSelectionResolver,
|
|
53
53
|
TypeDocSymbolSelectionResolver,
|
|
54
|
-
} from './chat-response-renderer/ai-selection-resolver';
|
|
55
|
-
import { QuestionPartRenderer } from './chat-response-renderer/question-part-renderer';
|
|
56
|
-
import { ExternalResourceAllowlistContribution } from './chat-response-renderer/external-resource-allowlist-contribution';
|
|
57
|
-
import { ChatFindContribution } from './chat-find/chat-find-contribution';
|
|
58
|
-
import { ChatFindMatcher } from './chat-find/chat-find-matcher';
|
|
59
|
-
import { createChatViewTreeWidget, ChatWelcomeMessageProvider } from './chat-tree-view';
|
|
60
|
-
import { ChatViewTreeWidget } from './chat-tree-view/chat-view-tree-widget';
|
|
61
|
-
import { ChatViewMenuContribution } from './chat-view-contribution';
|
|
62
|
-
import { ChatViewLanguageContribution } from './chat-view-language-contribution';
|
|
63
|
-
import { bindChatViewPreferences } from './chat-view-preferences';
|
|
64
|
-
import { ChatViewWidget } from './chat-view-widget';
|
|
65
|
-
import { ChatBannerProvider } from './chat-banner-provider';
|
|
66
|
-
import { ChatBannerWidget } from './chat-banner-widget';
|
|
67
|
-
import { ChatViewWidgetToolbarContribution } from './chat-view-widget-toolbar-contribution';
|
|
68
|
-
import { ContextVariablePicker } from './context-variable-picker';
|
|
69
|
-
import { ChangeSetActionRenderer, ChangeSetActionService } from './change-set-actions/change-set-action-service';
|
|
70
|
-
import { ChangeSetAcceptAction } from './change-set-actions/change-set-accept-action';
|
|
71
|
-
import { AIChatTreeInputArgs, AIChatTreeInputConfiguration, AIChatTreeInputFactory, AIChatTreeInputWidget } from './chat-tree-view/chat-view-tree-input-widget';
|
|
72
|
-
import { SubChatWidget, SubChatWidgetFactory } from './chat-tree-view/sub-chat-widget';
|
|
73
|
-
import { ChatInputHistoryService } from './chat-input-history';
|
|
74
|
-
import { ChatInputHistoryContribution } from './chat-input-history-contribution';
|
|
75
|
-
import { ChatInputModeContribution } from './chat-input-mode-contribution';
|
|
76
|
-
import { ChatInputPasteContribution } from './chat-input-paste-contribution';
|
|
77
|
-
import { ChatInputFocusService } from './chat-input-focus-service';
|
|
78
|
-
import { ChatFocusContribution } from './chat-focus-contribution';
|
|
79
|
-
import { ChatCapabilitiesService, ChatCapabilitiesServiceImpl } from './chat-capabilities-service';
|
|
80
|
-
import { ChatInputCapabilitiesContribution } from './chat-input-capabilities-contribution';
|
|
81
|
-
import { GenericCapabilitiesContribution, GenericCapabilitiesService, GenericCapabilitiesServiceImpl } from './generic-capabilities-service';
|
|
82
|
-
import { ToolConfirmationKeybindingContribution } from './tool-confirmation-keybinding-contribution';
|
|
83
|
-
import { ChatSessionNotificationContribution } from './chat-session-notification-contribution';
|
|
54
|
+
} from './chat-response-renderer/ai-selection-resolver.js';
|
|
55
|
+
import { QuestionPartRenderer } from './chat-response-renderer/question-part-renderer.js';
|
|
56
|
+
import { ExternalResourceAllowlistContribution } from './chat-response-renderer/external-resource-allowlist-contribution.js';
|
|
57
|
+
import { ChatFindContribution } from './chat-find/chat-find-contribution.js';
|
|
58
|
+
import { ChatFindMatcher } from './chat-find/chat-find-matcher.js';
|
|
59
|
+
import { createChatViewTreeWidget, ChatWelcomeMessageProvider } from './chat-tree-view/index.js';
|
|
60
|
+
import { ChatViewTreeWidget } from './chat-tree-view/chat-view-tree-widget.js';
|
|
61
|
+
import { ChatViewMenuContribution } from './chat-view-contribution.js';
|
|
62
|
+
import { ChatViewLanguageContribution } from './chat-view-language-contribution.js';
|
|
63
|
+
import { bindChatViewPreferences } from './chat-view-preferences.js';
|
|
64
|
+
import { ChatViewWidget } from './chat-view-widget.js';
|
|
65
|
+
import { ChatBannerProvider } from './chat-banner-provider.js';
|
|
66
|
+
import { ChatBannerWidget } from './chat-banner-widget.js';
|
|
67
|
+
import { ChatViewWidgetToolbarContribution } from './chat-view-widget-toolbar-contribution.js';
|
|
68
|
+
import { ContextVariablePicker } from './context-variable-picker.js';
|
|
69
|
+
import { ChangeSetActionRenderer, ChangeSetActionService } from './change-set-actions/change-set-action-service.js';
|
|
70
|
+
import { ChangeSetAcceptAction } from './change-set-actions/change-set-accept-action.js';
|
|
71
|
+
import { AIChatTreeInputArgs, AIChatTreeInputConfiguration, AIChatTreeInputFactory, AIChatTreeInputWidget } from './chat-tree-view/chat-view-tree-input-widget.js';
|
|
72
|
+
import { SubChatWidget, SubChatWidgetFactory } from './chat-tree-view/sub-chat-widget.js';
|
|
73
|
+
import { ChatInputHistoryService } from './chat-input-history.js';
|
|
74
|
+
import { ChatInputHistoryContribution } from './chat-input-history-contribution.js';
|
|
75
|
+
import { ChatInputModeContribution } from './chat-input-mode-contribution.js';
|
|
76
|
+
import { ChatInputPasteContribution } from './chat-input-paste-contribution.js';
|
|
77
|
+
import { ChatInputFocusService } from './chat-input-focus-service.js';
|
|
78
|
+
import { ChatFocusContribution } from './chat-focus-contribution.js';
|
|
79
|
+
import { ChatCapabilitiesService, ChatCapabilitiesServiceImpl } from './chat-capabilities-service.js';
|
|
80
|
+
import { ChatInputCapabilitiesContribution } from './chat-input-capabilities-contribution.js';
|
|
81
|
+
import { GenericCapabilitiesContribution, GenericCapabilitiesService, GenericCapabilitiesServiceImpl } from './generic-capabilities-service.js';
|
|
82
|
+
import { ToolConfirmationKeybindingContribution } from './tool-confirmation-keybinding-contribution.js';
|
|
83
|
+
import { ChatSessionNotificationContribution } from './chat-session-notification-contribution.js';
|
|
84
84
|
|
|
85
85
|
export default new ContainerModule((bind, _unbind, _isBound, rebind) => {
|
|
86
86
|
bindChatViewPreferences(bind);
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import * as React from '@theia/core/shared/react';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { ChangeSetActionRenderer } from './change-set-action-service';
|
|
19
|
+
import { ChangeSetActionRenderer } from './change-set-action-service.js';
|
|
20
20
|
import { ChangeSet, ChangeSetElement } from '@theia/ai-chat';
|
|
21
21
|
import { nls } from '@theia/core';
|
|
22
22
|
|
|
@@ -18,7 +18,7 @@ import * as React from '@theia/core/shared/react';
|
|
|
18
18
|
import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
|
19
19
|
import { ContributionProvider } from '@theia/core';
|
|
20
20
|
import { ReactWidget } from '@theia/core/lib/browser';
|
|
21
|
-
import { ChatBannerProvider } from './chat-banner-provider';
|
|
21
|
+
import { ChatBannerProvider } from './chat-banner-provider.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Host widget rendered above the chat content. Collects all {@link ChatBannerProvider}
|
|
@@ -21,7 +21,7 @@ let disableJSDOM = enableJSDOM();
|
|
|
21
21
|
import 'reflect-metadata';
|
|
22
22
|
|
|
23
23
|
import { expect } from 'chai';
|
|
24
|
-
import { ChatCapabilitiesServiceImpl } from './chat-capabilities-service';
|
|
24
|
+
import { ChatCapabilitiesServiceImpl } from './chat-capabilities-service.js';
|
|
25
25
|
|
|
26
26
|
disableJSDOM();
|
|
27
27
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { formatTimeAgo } from './chat-date-utils';
|
|
18
|
+
import { formatTimeAgo } from './chat-date-utils.js';
|
|
19
19
|
|
|
20
20
|
describe('formatTimeAgo', () => {
|
|
21
21
|
|
|
@@ -22,10 +22,10 @@ FrontendApplicationConfigProvider.set({});
|
|
|
22
22
|
import { expect } from 'chai';
|
|
23
23
|
import { CommandContribution, CommandRegistry, ContributionProvider } from '@theia/core';
|
|
24
24
|
import { CommonCommands } from '@theia/core/lib/browser';
|
|
25
|
-
import { ChatInputFocusService } from '../chat-input-focus-service';
|
|
26
|
-
import type { AIChatInputWidget } from '../chat-input-widget';
|
|
27
|
-
import type { ChatViewWidget } from '../chat-view-widget';
|
|
28
|
-
import { ChatFindContribution } from './chat-find-contribution';
|
|
25
|
+
import { ChatInputFocusService } from '../chat-input-focus-service.js';
|
|
26
|
+
import type { AIChatInputWidget } from '../chat-input-widget.js';
|
|
27
|
+
import type { ChatViewWidget } from '../chat-view-widget.js';
|
|
28
|
+
import { ChatFindContribution } from './chat-find-contribution.js';
|
|
29
29
|
|
|
30
30
|
disableJSDOM();
|
|
31
31
|
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
import { Command, CommandContribution, CommandRegistry } from '@theia/core';
|
|
18
18
|
import { ApplicationShell, CommonCommands, KeybindingContribution, KeybindingRegistry } from '@theia/core/lib/browser';
|
|
19
19
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
20
|
-
import { ChatInputFocusService } from '../chat-input-focus-service';
|
|
21
|
-
import { ChatCommands } from '../chat-view-commands';
|
|
22
|
-
import { ChatViewWidget } from '../chat-view-widget';
|
|
20
|
+
import { ChatInputFocusService } from '../chat-input-focus-service.js';
|
|
21
|
+
import { ChatCommands } from '../chat-view-commands.js';
|
|
22
|
+
import { ChatViewWidget } from '../chat-view-widget.js';
|
|
23
23
|
|
|
24
24
|
export const CHAT_FIND_COMMAND = Command.toLocalizedCommand({
|
|
25
25
|
id: 'ai-chat.find',
|
|
@@ -19,9 +19,9 @@ let disableJSDOM = enableJSDOM();
|
|
|
19
19
|
import { expect } from 'chai';
|
|
20
20
|
import { Container, injectable } from '@theia/core/shared/inversify';
|
|
21
21
|
import { SimpleMonacoEditor } from '@theia/monaco/lib/browser/simple-monaco-editor';
|
|
22
|
-
import { CodeWrapperEditors } from '../chat-response-renderer/code-wrapper-editors';
|
|
23
|
-
import { ChatFindHighlighter, ChatFindHighlightRegistry } from './chat-find-highlighter';
|
|
24
|
-
import { ChatFindMatch, ChatFindMatcher } from './chat-find-matcher';
|
|
22
|
+
import { CodeWrapperEditors } from '../chat-response-renderer/code-wrapper-editors.js';
|
|
23
|
+
import { ChatFindHighlighter, ChatFindHighlightRegistry } from './chat-find-highlighter.js';
|
|
24
|
+
import { ChatFindMatch, ChatFindMatcher } from './chat-find-matcher.js';
|
|
25
25
|
disableJSDOM();
|
|
26
26
|
|
|
27
27
|
class FakeRegistry implements ChatFindHighlightRegistry {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { Disposable } from '@theia/core';
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
19
|
-
import { Range as EditorRange } from '@theia/monaco-editor-core/esm/vs/editor/common/core/range';
|
|
20
|
-
import { IEditorDecorationsCollection } from '@theia/monaco-editor-core/esm/vs/editor/common/editorCommon';
|
|
21
|
-
import { IModelDecorationOptions, TrackedRangeStickiness } from '@theia/monaco-editor-core/esm/vs/editor/common/model';
|
|
19
|
+
import { Range as EditorRange } from '@theia/monaco-editor-core/esm/vs/editor/common/core/range.js';
|
|
20
|
+
import { IEditorDecorationsCollection } from '@theia/monaco-editor-core/esm/vs/editor/common/editorCommon.js';
|
|
21
|
+
import { IModelDecorationOptions, TrackedRangeStickiness } from '@theia/monaco-editor-core/esm/vs/editor/common/model.js';
|
|
22
22
|
import { SimpleMonacoEditor } from '@theia/monaco/lib/browser/simple-monaco-editor';
|
|
23
|
-
import { CodeWrapperEditors } from '../chat-response-renderer/code-wrapper-editors';
|
|
24
|
-
import { ChatFindMatch, ChatFindMatcher } from './chat-find-matcher';
|
|
25
|
-
import { ChatFindText, ChatFindTextSegment } from './chat-find-text';
|
|
23
|
+
import { CodeWrapperEditors } from '../chat-response-renderer/code-wrapper-editors.js';
|
|
24
|
+
import { ChatFindMatch, ChatFindMatcher } from './chat-find-matcher.js';
|
|
25
|
+
import { ChatFindText, ChatFindTextSegment } from './chat-find-text.js';
|
|
26
26
|
|
|
27
27
|
/** Minimal abstraction over `CSS.highlights` so the highlighter can be tested and degrades when unsupported. */
|
|
28
28
|
export interface ChatFindHighlightRegistry {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ThinkingChatResponseContentImpl, ToolCallChatResponseContentImpl
|
|
23
23
|
} from '@theia/ai-chat/lib/common';
|
|
24
24
|
import { expect } from 'chai';
|
|
25
|
-
import { ChatFindMatcher, ChatFindOptions } from './chat-find-matcher';
|
|
25
|
+
import { ChatFindMatcher, ChatFindOptions } from './chat-find-matcher.js';
|
|
26
26
|
disableJSDOM();
|
|
27
27
|
|
|
28
28
|
const plain: ChatFindOptions = { matchCase: false, wholeWord: false, useRegex: false };
|