@google/gemini-cli 0.15.0-nightly.20251111.51f952e7 → 0.15.0-preview.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/dist/package.json +2 -2
- package/dist/src/config/config.d.ts +3 -0
- package/dist/src/config/config.js +31 -0
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/config.test.js +20 -0
- package/dist/src/config/config.test.js.map +1 -1
- package/dist/src/config/extension-manager.js +13 -1
- package/dist/src/config/extension-manager.js.map +1 -1
- package/dist/src/config/extension.test.js +65 -0
- package/dist/src/config/extension.test.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +10 -1
- package/dist/src/config/settingsSchema.js +10 -1
- package/dist/src/config/settingsSchema.js.map +1 -1
- package/dist/src/gemini.d.ts +2 -2
- package/dist/src/gemini.js +35 -4
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/gemini.test.js +14 -7
- package/dist/src/gemini.test.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/generated/git-commit.js.map +1 -1
- package/dist/src/nonInteractiveCli.d.ts +3 -2
- package/dist/src/nonInteractiveCli.js +6 -1
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/nonInteractiveCli.test.js +1 -0
- package/dist/src/nonInteractiveCli.test.js.map +1 -1
- package/dist/src/test-utils/render.d.ts +2 -1
- package/dist/src/test-utils/render.js +13 -3
- package/dist/src/test-utils/render.js.map +1 -1
- package/dist/src/ui/App.js +9 -1
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/App.test.js +25 -1
- package/dist/src/ui/App.test.js.map +1 -1
- package/dist/src/ui/AppContainer.d.ts +2 -3
- package/dist/src/ui/AppContainer.js +22 -7
- package/dist/src/ui/AppContainer.js.map +1 -1
- package/dist/src/ui/AppContainer.test.js +349 -46
- package/dist/src/ui/AppContainer.test.js.map +1 -1
- package/dist/src/ui/commands/toolsCommand.js +4 -1
- package/dist/src/ui/commands/toolsCommand.js.map +1 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.d.ts +6 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +24 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +1 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +6 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +101 -0
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +1 -0
- package/dist/src/ui/components/Composer.js +11 -4
- package/dist/src/ui/components/Composer.js.map +1 -1
- package/dist/src/ui/components/CopyModeWarning.d.ts +7 -0
- package/dist/src/ui/components/CopyModeWarning.js +12 -0
- package/dist/src/ui/components/CopyModeWarning.js.map +1 -0
- package/dist/src/ui/components/DetailedMessagesDisplay.js +1 -1
- package/dist/src/ui/components/Header.js +11 -1
- package/dist/src/ui/components/Header.js.map +1 -1
- package/dist/src/ui/components/Header.test.js +69 -14
- package/dist/src/ui/components/Header.test.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.js +43 -41
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +2 -0
- package/dist/src/ui/components/InputPrompt.js +14 -8
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/MainContent.js +52 -15
- package/dist/src/ui/components/MainContent.js.map +1 -1
- package/dist/src/ui/components/ModelDialog.test.js +1 -0
- package/dist/src/ui/components/ModelDialog.test.js.map +1 -1
- package/dist/src/ui/components/StickyHeader.d.ts +11 -0
- package/dist/src/ui/components/StickyHeader.js +5 -0
- package/dist/src/ui/components/StickyHeader.js.map +1 -0
- package/dist/src/ui/components/StickyHeader.test.d.ts +6 -0
- package/dist/src/ui/components/StickyHeader.test.js +17 -0
- package/dist/src/ui/components/StickyHeader.test.js.map +1 -0
- package/dist/src/ui/components/ThemeDialog.js +11 -3
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.js +129 -89
- package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.js +107 -115
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessage.js +3 -1
- package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.js +3 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +152 -121
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.js +5 -7
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +1 -5
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessage.js +39 -16
- package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +33 -4
- package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +1 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +1 -0
- package/dist/src/ui/components/messages/UserMessage.js +2 -2
- package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
- package/dist/src/ui/components/shared/ScrollableList.test.js +61 -24
- package/dist/src/ui/components/shared/ScrollableList.test.js.map +1 -1
- package/dist/src/ui/components/shared/VirtualizedList.js +1 -1
- package/dist/src/ui/components/shared/VirtualizedList.js.map +1 -1
- package/dist/src/ui/constants.d.ts +1 -0
- package/dist/src/ui/constants.js +5 -0
- package/dist/src/ui/constants.js.map +1 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +1 -0
- package/dist/src/ui/contexts/UIStateContext.js.map +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
- package/dist/src/ui/hooks/useAlternateBuffer.d.ts +6 -0
- package/dist/src/ui/hooks/useAlternateBuffer.js +11 -0
- package/dist/src/ui/hooks/useAlternateBuffer.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js +4 -0
- package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -1
- package/dist/src/ui/hooks/usePromptCompletion.js +2 -9
- package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +18 -0
- package/dist/src/ui/hooks/useSessionBrowser.js +152 -0
- package/dist/src/ui/hooks/useSessionBrowser.js.map +1 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.js +544 -0
- package/dist/src/ui/hooks/useSessionBrowser.test.js.map +1 -0
- package/dist/src/ui/hooks/useSessionResume.d.ts +30 -0
- package/dist/src/ui/hooks/useSessionResume.js +56 -0
- package/dist/src/ui/hooks/useSessionResume.js.map +1 -0
- package/dist/src/ui/hooks/useSessionResume.test.d.ts +6 -0
- package/dist/src/ui/hooks/useSessionResume.test.js +325 -0
- package/dist/src/ui/hooks/useSessionResume.test.js.map +1 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js +1 -0
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
- package/dist/src/ui/layouts/DefaultAppLayout.js +9 -3
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +11 -3
- package/dist/src/ui/utils/CodeColorizer.js +18 -9
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +32 -6
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/ui-sizing.js +9 -3
- package/dist/src/ui/utils/ui-sizing.js.map +1 -1
- package/dist/src/utils/cleanup.test.js +1 -1
- package/dist/src/utils/cleanup.test.js.map +1 -1
- package/dist/src/utils/sessionCleanup.test.js +76 -0
- package/dist/src/utils/sessionCleanup.test.js.map +1 -1
- package/dist/src/utils/sessionUtils.d.ts +54 -0
- package/dist/src/utils/sessionUtils.js +141 -1
- package/dist/src/utils/sessionUtils.js.map +1 -1
- package/dist/src/utils/sessionUtils.test.d.ts +6 -0
- package/dist/src/utils/sessionUtils.test.js +260 -0
- package/dist/src/utils/sessionUtils.test.js.map +1 -0
- package/dist/src/utils/sessions.d.ts +8 -0
- package/dist/src/utils/sessions.js +64 -0
- package/dist/src/utils/sessions.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/google-gemini-cli-0.15.0-nightly.20251107.b8eeb553.tgz +0 -0
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import { OverflowProvider } from '../../contexts/OverflowContext.js';
|
|
8
|
-
import {
|
|
8
|
+
import { renderWithProviders } from '../../../test-utils/render.js';
|
|
9
9
|
import { DiffRenderer } from './DiffRenderer.js';
|
|
10
10
|
import * as CodeColorizer from '../../utils/CodeColorizer.js';
|
|
11
11
|
import { vi } from 'vitest';
|
|
@@ -15,8 +15,9 @@ describe('<OverflowProvider><DiffRenderer /></OverflowProvider>', () => {
|
|
|
15
15
|
mockColorizeCode.mockClear();
|
|
16
16
|
});
|
|
17
17
|
const sanitizeOutput = (output, terminalWidth) => output?.replace(/GAP_INDICATOR/g, '═'.repeat(terminalWidth));
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
describe.each([true, false])('with useAlternateBuffer = %s', (useAlternateBuffer) => {
|
|
19
|
+
it('should call colorizeCode with correct language for new file with known extension', () => {
|
|
20
|
+
const newFileDiffContent = `
|
|
20
21
|
diff --git a/test.py b/test.py
|
|
21
22
|
new file mode 100644
|
|
22
23
|
index 0000000..e69de29
|
|
@@ -25,11 +26,18 @@ index 0000000..e69de29
|
|
|
25
26
|
@@ -0,0 +1 @@
|
|
26
27
|
+print("hello world")
|
|
27
28
|
`;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: newFileDiffContent, filename: "test.py", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
30
|
+
expect(mockColorizeCode).toHaveBeenCalledWith({
|
|
31
|
+
code: 'print("hello world")',
|
|
32
|
+
language: 'python',
|
|
33
|
+
availableHeight: undefined,
|
|
34
|
+
maxWidth: 80,
|
|
35
|
+
theme: undefined,
|
|
36
|
+
settings: expect.anything(),
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
it('should call colorizeCode with null language for new file with unknown extension', () => {
|
|
40
|
+
const newFileDiffContent = `
|
|
33
41
|
diff --git a/test.unknown b/test.unknown
|
|
34
42
|
new file mode 100644
|
|
35
43
|
index 0000000..e69de29
|
|
@@ -38,11 +46,18 @@ index 0000000..e69de29
|
|
|
38
46
|
@@ -0,0 +1 @@
|
|
39
47
|
+some content
|
|
40
48
|
`;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: newFileDiffContent, filename: "test.unknown", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
50
|
+
expect(mockColorizeCode).toHaveBeenCalledWith({
|
|
51
|
+
code: 'some content',
|
|
52
|
+
language: null,
|
|
53
|
+
availableHeight: undefined,
|
|
54
|
+
maxWidth: 80,
|
|
55
|
+
theme: undefined,
|
|
56
|
+
settings: expect.anything(),
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
it('should call colorizeCode with null language for new file if no filename is provided', () => {
|
|
60
|
+
const newFileDiffContent = `
|
|
46
61
|
diff --git a/test.txt b/test.txt
|
|
47
62
|
new file mode 100644
|
|
48
63
|
index 0000000..e69de29
|
|
@@ -51,11 +66,19 @@ index 0000000..e69de29
|
|
|
51
66
|
@@ -0,0 +1 @@
|
|
52
67
|
+some text content
|
|
53
68
|
`;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: newFileDiffContent, terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
70
|
+
expect(mockColorizeCode).toHaveBeenCalledWith({
|
|
71
|
+
code: 'some text content',
|
|
72
|
+
language: null,
|
|
73
|
+
availableHeight: undefined,
|
|
74
|
+
maxWidth: 80,
|
|
75
|
+
theme: undefined,
|
|
76
|
+
settings: expect.anything(),
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
it('should render diff content for existing file (not calling colorizeCode directly for the whole block)', () => {
|
|
80
|
+
const existingFileDiffContent = `
|
|
81
|
+
|
|
59
82
|
diff --git a/test.txt b/test.txt
|
|
60
83
|
index 0000001..0000002 100644
|
|
61
84
|
--- a/test.txt
|
|
@@ -64,32 +87,34 @@ index 0000001..0000002 100644
|
|
|
64
87
|
-old line
|
|
65
88
|
+new line
|
|
66
89
|
`;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
90
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: existingFileDiffContent, filename: "test.txt", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
91
|
+
// colorizeCode is used internally by the line-by-line rendering, not for the whole block
|
|
92
|
+
expect(mockColorizeCode).not.toHaveBeenCalledWith(expect.objectContaining({
|
|
93
|
+
code: expect.stringContaining('old line'),
|
|
94
|
+
}));
|
|
95
|
+
expect(mockColorizeCode).not.toHaveBeenCalledWith(expect.objectContaining({
|
|
96
|
+
code: expect.stringContaining('new line'),
|
|
97
|
+
}));
|
|
98
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
99
|
+
});
|
|
100
|
+
it('should handle diff with only header and no changes', () => {
|
|
101
|
+
const noChangeDiff = `diff --git a/file.txt b/file.txt
|
|
78
102
|
index 1234567..1234567 100644
|
|
79
103
|
--- a/file.txt
|
|
80
104
|
+++ b/file.txt
|
|
81
105
|
`;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
106
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: noChangeDiff, filename: "file.txt", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
107
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
108
|
+
expect(mockColorizeCode).not.toHaveBeenCalled();
|
|
109
|
+
});
|
|
110
|
+
it('should handle empty diff content', () => {
|
|
111
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: "", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
112
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
113
|
+
expect(mockColorizeCode).not.toHaveBeenCalled();
|
|
114
|
+
});
|
|
115
|
+
it('should render a gap indicator for skipped lines', () => {
|
|
116
|
+
const diffWithGap = `
|
|
117
|
+
|
|
93
118
|
diff --git a/file.txt b/file.txt
|
|
94
119
|
index 123..456 100644
|
|
95
120
|
--- a/file.txt
|
|
@@ -102,16 +127,12 @@ index 123..456 100644
|
|
|
102
127
|
context line 10
|
|
103
128
|
context line 11
|
|
104
129
|
`;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
expect(output).toContain('context line 10');
|
|
112
|
-
});
|
|
113
|
-
it('should not render a gap indicator for small gaps (<= MAX_CONTEXT_LINES_WITHOUT_GAP)', () => {
|
|
114
|
-
const diffWithSmallGap = `
|
|
130
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: diffWithGap, filename: "file.txt", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
131
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
132
|
+
});
|
|
133
|
+
it('should not render a gap indicator for small gaps (<= MAX_CONTEXT_LINES_WITHOUT_GAP)', () => {
|
|
134
|
+
const diffWithSmallGap = `
|
|
135
|
+
|
|
115
136
|
diff --git a/file.txt b/file.txt
|
|
116
137
|
index abc..def 100644
|
|
117
138
|
--- a/file.txt
|
|
@@ -129,15 +150,12 @@ index abc..def 100644
|
|
|
129
150
|
context line 14
|
|
130
151
|
context line 15
|
|
131
152
|
`;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
});
|
|
139
|
-
describe('should correctly render a diff with multiple hunks and a gap indicator', () => {
|
|
140
|
-
const diffWithMultipleHunks = `
|
|
153
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: diffWithSmallGap, filename: "file.txt", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
154
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
155
|
+
});
|
|
156
|
+
describe('should correctly render a diff with multiple hunks and a gap indicator', () => {
|
|
157
|
+
const diffWithMultipleHunks = `
|
|
158
|
+
|
|
141
159
|
diff --git a/multi.js b/multi.js
|
|
142
160
|
index 123..789 100644
|
|
143
161
|
--- a/multi.js
|
|
@@ -153,48 +171,28 @@ index 123..789 100644
|
|
|
153
171
|
+const anotherNew = 'test';
|
|
154
172
|
console.log('end of second hunk');
|
|
155
173
|
`;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
════════════════════════════════════════════════════════════════════════════════
|
|
175
|
-
20 console.log('second hunk');
|
|
176
|
-
21 - const anotherOld = 'test';
|
|
177
|
-
21 + const anotherNew = 'test';
|
|
178
|
-
22 console.log('end of second hunk');`,
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
terminalWidth: 30,
|
|
182
|
-
height: 6,
|
|
183
|
-
expected: `... first 10 lines hidden ...
|
|
184
|
-
;
|
|
185
|
-
21 + const anotherNew = 'test'
|
|
186
|
-
;
|
|
187
|
-
22 console.log('end of
|
|
188
|
-
second hunk');`,
|
|
189
|
-
},
|
|
190
|
-
])('with terminalWidth $terminalWidth and height $height', ({ terminalWidth, height, expected }) => {
|
|
191
|
-
const { lastFrame } = render(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: diffWithMultipleHunks, filename: "multi.js", terminalWidth: terminalWidth, availableTerminalHeight: height }) }));
|
|
192
|
-
const output = lastFrame();
|
|
193
|
-
expect(sanitizeOutput(output, terminalWidth)).toEqual(expected);
|
|
174
|
+
it.each([
|
|
175
|
+
{
|
|
176
|
+
terminalWidth: 80,
|
|
177
|
+
height: undefined,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
terminalWidth: 80,
|
|
181
|
+
height: 6,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
terminalWidth: 30,
|
|
185
|
+
height: 6,
|
|
186
|
+
},
|
|
187
|
+
])('with terminalWidth $terminalWidth and height $height', ({ terminalWidth, height }) => {
|
|
188
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: diffWithMultipleHunks, filename: "multi.js", terminalWidth: terminalWidth, availableTerminalHeight: height }) }), { useAlternateBuffer });
|
|
189
|
+
const output = lastFrame();
|
|
190
|
+
expect(sanitizeOutput(output, terminalWidth)).toMatchSnapshot();
|
|
191
|
+
});
|
|
194
192
|
});
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
it('should correctly render a diff with a SVN diff format', () => {
|
|
194
|
+
const newFileDiff = `
|
|
195
|
+
|
|
198
196
|
fileDiff Index: file.txt
|
|
199
197
|
===================================================================
|
|
200
198
|
--- a/file.txt Current
|
|
@@ -209,16 +207,12 @@ fileDiff Index: file.txt
|
|
|
209
207
|
+const anotherNew = 'test';
|
|
210
208
|
\
|
|
211
209
|
`;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
20 + const anotherNew = 'test';`);
|
|
219
|
-
});
|
|
220
|
-
it('should correctly render a new file with no file extension correctly', () => {
|
|
221
|
-
const newFileDiff = `
|
|
210
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: newFileDiff, filename: "TEST", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
211
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
212
|
+
});
|
|
213
|
+
it('should correctly render a new file with no file extension correctly', () => {
|
|
214
|
+
const newFileDiff = `
|
|
215
|
+
|
|
222
216
|
fileDiff Index: Dockerfile
|
|
223
217
|
===================================================================
|
|
224
218
|
--- Dockerfile Current
|
|
@@ -229,11 +223,9 @@ fileDiff Index: Dockerfile
|
|
|
229
223
|
+RUN npm run build
|
|
230
224
|
\
|
|
231
225
|
`;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
2 RUN npm install
|
|
236
|
-
3 RUN npm run build`);
|
|
226
|
+
const { lastFrame } = renderWithProviders(_jsx(OverflowProvider, { children: _jsx(DiffRenderer, { diffContent: newFileDiff, filename: "Dockerfile", terminalWidth: 80 }) }), { useAlternateBuffer });
|
|
227
|
+
expect(lastFrame()).toMatchSnapshot();
|
|
228
|
+
});
|
|
237
229
|
});
|
|
238
230
|
});
|
|
239
231
|
//# sourceMappingURL=DiffRenderer.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiffRenderer.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/DiffRenderer.test.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DiffRenderer.test.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/DiffRenderer.test.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,aAAa,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,QAAQ,CAAC,uDAAuD,EAAE,GAAG,EAAE;IACrE,MAAM,gBAAgB,GAAG,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAEjE,UAAU,CAAC,GAAG,EAAE;QACd,gBAAgB,CAAC,SAAS,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,CAAC,MAA0B,EAAE,aAAqB,EAAE,EAAE,CAC3E,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IAE/D,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI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YACM,MAAM,EAAE,SAAS,EAAE,GAAG,mBAAmB,CACvC,KAAC,gBAAgB,cACf,KAAC,YAAY,IACX,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAC,MAAM,EACf,aAAa,EAAE,EAAE,GACjB,GACe,EACnB,EAAE,kBAAkB,EAAE,CACvB,CAAC;YACF,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qEAAqE,EAAE,GAAG,EAAE;YAC7E,MAAM,WAAW,GAAG;;;;;;;;;;;CAW3B,CAAC;YACM,MAAM,EAAE,SAAS,EAAE,GAAG,mBAAmB,CACvC,KAAC,gBAAgB,cACf,KAAC,YAAY,IACX,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAC,YAAY,EACrB,aAAa,EAAE,EAAE,GACjB,GACe,EACnB,EAAE,kBAAkB,EAAE,CACvB,CAAC;YACF,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -4,10 +4,12 @@ import { MarkdownDisplay } from '../../utils/MarkdownDisplay.js';
|
|
|
4
4
|
import { theme } from '../../semantic-colors.js';
|
|
5
5
|
import { SCREEN_READER_MODEL_PREFIX } from '../../textConstants.js';
|
|
6
6
|
import { useUIState } from '../../contexts/UIStateContext.js';
|
|
7
|
+
import { useAlternateBuffer } from '../../hooks/useAlternateBuffer.js';
|
|
7
8
|
export const GeminiMessage = ({ text, isPending, availableTerminalHeight, terminalWidth, }) => {
|
|
8
9
|
const { renderMarkdown } = useUIState();
|
|
9
10
|
const prefix = '✦ ';
|
|
10
11
|
const prefixWidth = prefix.length;
|
|
11
|
-
|
|
12
|
+
const isAlternateBuffer = useAlternateBuffer();
|
|
13
|
+
return (_jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: prefixWidth, children: _jsx(Text, { color: theme.text.accent, "aria-label": SCREEN_READER_MODEL_PREFIX, children: prefix }) }), _jsx(Box, { flexGrow: 1, flexDirection: "column", children: _jsx(MarkdownDisplay, { text: text, isPending: isPending, availableTerminalHeight: isAlternateBuffer ? undefined : availableTerminalHeight, terminalWidth: terminalWidth, renderMarkdown: renderMarkdown }) })] }));
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=GeminiMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeminiMessage.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/GeminiMessage.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"GeminiMessage.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/GeminiMessage.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AASvE,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,IAAI,EACJ,SAAS,EACT,uBAAuB,EACvB,aAAa,GACd,EAAE,EAAE;IACH,MAAM,EAAE,cAAc,EAAE,GAAG,UAAU,EAAE,CAAC;IACxC,MAAM,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;IAElC,MAAM,iBAAiB,GAAG,kBAAkB,EAAE,CAAC;IAC/C,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,GAAG,IAAC,KAAK,EAAE,WAAW,YACrB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,gBAAc,0BAA0B,YACnE,MAAM,GACF,GACH,EACN,KAAC,GAAG,IAAC,QAAQ,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ,YACtC,KAAC,eAAe,IACd,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,uBAAuB,EACrB,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,EAEzD,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box } from 'ink';
|
|
3
3
|
import { MarkdownDisplay } from '../../utils/MarkdownDisplay.js';
|
|
4
4
|
import { useUIState } from '../../contexts/UIStateContext.js';
|
|
5
|
+
import { useAlternateBuffer } from '../../hooks/useAlternateBuffer.js';
|
|
5
6
|
/*
|
|
6
7
|
* Gemini message content is a semi-hacked component. The intention is to represent a partial
|
|
7
8
|
* of GeminiMessage and is only used when a response gets too long. In that instance messages
|
|
@@ -10,8 +11,9 @@ import { useUIState } from '../../contexts/UIStateContext.js';
|
|
|
10
11
|
*/
|
|
11
12
|
export const GeminiMessageContent = ({ text, isPending, availableTerminalHeight, terminalWidth, }) => {
|
|
12
13
|
const { renderMarkdown } = useUIState();
|
|
14
|
+
const isAlternateBuffer = useAlternateBuffer();
|
|
13
15
|
const originalPrefix = '✦ ';
|
|
14
16
|
const prefixWidth = originalPrefix.length;
|
|
15
|
-
return (_jsx(Box, { flexDirection: "column", paddingLeft: prefixWidth, children: _jsx(MarkdownDisplay, { text: text, isPending: isPending, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth, renderMarkdown: renderMarkdown }) }));
|
|
17
|
+
return (_jsx(Box, { flexDirection: "column", paddingLeft: prefixWidth, children: _jsx(MarkdownDisplay, { text: text, isPending: isPending, availableTerminalHeight: isAlternateBuffer ? undefined : availableTerminalHeight, terminalWidth: terminalWidth, renderMarkdown: renderMarkdown }) }));
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=GeminiMessageContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeminiMessageContent.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/GeminiMessageContent.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"GeminiMessageContent.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/GeminiMessageContent.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AASvE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAwC,CAAC,EACxE,IAAI,EACJ,SAAS,EACT,uBAAuB,EACvB,aAAa,GACd,EAAE,EAAE;IACH,MAAM,EAAE,cAAc,EAAE,GAAG,UAAU,EAAE,CAAC;IACxC,MAAM,iBAAiB,GAAG,kBAAkB,EAAE,CAAC;IAC/C,MAAM,cAAc,GAAG,IAAI,CAAC;IAC5B,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC;IAE1C,OAAO,CACL,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,WAAW,EAAE,WAAW,YAClD,KAAC,eAAe,IACd,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,uBAAuB,EACrB,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAuB,EAEzD,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|