vzcode 1.55.0 → 1.57.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.
@@ -5,6 +5,26 @@
5
5
  padding: 0;
6
6
  }
7
7
 
8
+ .ai-chat-content {
9
+ flex: 1;
10
+ overflow: hidden;
11
+ display: flex;
12
+ flex-direction: column;
13
+ }
14
+
15
+ .ai-chat-messages-container {
16
+ flex: 1;
17
+ overflow-y: auto;
18
+ padding: 10px;
19
+ padding-bottom: 0;
20
+ }
21
+
22
+ .ai-chat-input-fixed {
23
+ flex-shrink: 0;
24
+ padding: 10px;
25
+ padding-top: 0;
26
+ }
27
+
8
28
  .ai-chat-empty {
9
29
  flex: 1;
10
30
  display: flex;
@@ -146,12 +166,19 @@
146
166
  }
147
167
 
148
168
  .ai-chat-message-content {
169
+ .diff-view .diff-files .d2h-code-linenumber {
170
+ display: none !important;
171
+ }
172
+
173
+ .d2h-code-line {
174
+ padding: 0 1em;
175
+ }
176
+
149
177
  padding: 10px 12px;
150
178
  font-size: 14px;
151
179
  line-height: 1.4;
152
180
  word-wrap: break-word;
153
181
 
154
- // Undo button styles (moved from DiffView)
155
182
  .undo-button-container {
156
183
  display: flex;
157
184
  justify-content: flex-end;
@@ -358,6 +385,7 @@
358
385
  .ai-chat-input-container {
359
386
  border-top: 1px solid var(--vh-color-neutral-02);
360
387
  padding-top: 10px;
388
+ background: var(--vh-color-neutral-01);
361
389
  }
362
390
 
363
391
  .ai-chat-mode-toggle {
@@ -420,11 +448,12 @@
420
448
  border: 1px solid var(--vh-color-neutral-03) !important;
421
449
  color: var(--vh-color-neutral-04) !important;
422
450
  border-radius: 8px;
423
- padding: 8px 10px;
451
+ padding: 10px 12px;
424
452
  font-size: 14px;
425
453
  font-family: var(--vzcode-font-family);
426
454
  resize: none;
427
- min-height: 36px;
455
+ min-height: 48px;
456
+ line-height: 1.4;
428
457
 
429
458
  &:focus {
430
459
  outline: none !important;
@@ -443,37 +472,56 @@
443
472
  }
444
473
  }
445
474
 
446
- .ai-chat-input-info {
475
+ .ai-chat-input-footer {
447
476
  display: flex;
448
477
  justify-content: space-between;
478
+ align-items: center;
449
479
  font-size: 12px;
450
480
  color: var(--vh-color-neutral-03);
451
- margin-bottom: 6px;
481
+ min-height: 40px; // Prevent layout jumping
452
482
 
453
483
  .ai-chat-hint {
454
484
  font-style: italic;
485
+ flex: 1;
455
486
  }
456
487
  }
457
488
 
458
489
  .ai-chat-send-button {
459
- background: var(--vh-color-primary-01);
460
- border: none;
461
- color: white;
462
490
  border-radius: 8px;
463
491
  padding: 8px 16px;
464
492
  font-size: 14px;
465
493
  font-weight: 500;
466
494
  cursor: pointer;
467
- transition: background-color 0.2s ease;
468
- align-self: flex-end;
495
+ transition: all 0.2s ease;
469
496
  min-width: 80px;
497
+ flex-shrink: 0;
470
498
 
471
- &:hover:not(:disabled) {
472
- background: var(--vh-color-primary-02);
499
+ &.btn-primary {
500
+ background: var(--vh-color-primary-01);
501
+ border-color: var(--vh-color-primary-01);
502
+ color: white;
503
+
504
+ &:hover:not(:disabled) {
505
+ background: var(--vh-color-primary-02);
506
+ border-color: var(--vh-color-primary-02);
507
+ }
508
+ }
509
+
510
+ &.btn-outline-secondary {
511
+ background: transparent;
512
+ border-color: var(--vh-color-neutral-03);
513
+ color: var(--vh-color-neutral-03);
514
+
515
+ &:hover:not(:disabled) {
516
+ background: var(--vh-color-neutral-03);
517
+ color: var(--vh-color-neutral-01);
518
+ }
473
519
  }
474
520
 
475
521
  &:disabled {
476
522
  background: var(--vh-color-neutral-03);
523
+ border-color: var(--vh-color-neutral-03);
524
+ color: var(--vh-color-neutral-02);
477
525
  cursor: not-allowed;
478
526
  }
479
527
  }
@@ -203,11 +203,11 @@ export const createLLMFunction = ({
203
203
  model: modelName,
204
204
  messages: [{ role: 'user', content: fullPrompt }],
205
205
  reasoning: {
206
- effort: 'medium',
206
+ effort: 'low',
207
207
  exclude: false,
208
208
  },
209
209
  provider: {
210
- sort: 'throughput',
210
+ sort: 'price',
211
211
  },
212
212
  usage: { include: true },
213
213
  stream: true,
@@ -25,6 +25,9 @@ export function generateFileUnifiedDiff(
25
25
  fileName,
26
26
  beforeContent,
27
27
  afterContent,
28
+ '',
29
+ '',
30
+ { context: 3 },
28
31
  );
29
32
 
30
33
  return unifiedDiff;