vg-coder-cli 2.0.43 → 2.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vg-coder-cli",
3
- "version": "2.0.43",
3
+ "version": "2.0.44",
4
4
  "description": "🚀 CLI tool to analyze projects, concatenate source files, count tokens, and export HTML with syntax highlighting and copy functionality",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -15,8 +15,9 @@
15
15
  "test:watch": "jest --watch",
16
16
  "dev": "nodemon src/index.js",
17
17
  "build:extension": "cd vetgo-auto && npm run build",
18
+ "deploy-scripts": "cd vetgo-auto && npm run deploy-scripts",
18
19
  "build:copy": "node scripts/build.js",
19
- "build": "npm run build:extension && npm run build:copy && npm run build:inject && npm run install:local",
20
+ "build": "npm run deploy-scripts && npm run build:extension && npm run build:copy && npm run build:inject && npm run install:local",
20
21
  "push": "npm run build && npm pack && npm publish",
21
22
  "build:inject": "gulp"
22
23
  },
@@ -94,7 +94,7 @@
94
94
 
95
95
  /* Message Bubble */
96
96
  .agent-message-content {
97
- max-width: 85%;
97
+ max-width: 100%;
98
98
  padding: 8px 14px;
99
99
  font-size: 14px;
100
100
  line-height: 1.6;
@@ -2,6 +2,7 @@ import { SYSTEM_PROMPT, API_BASE } from './config.js';
2
2
  import { analyzeProject, executeScript, copyToClipboard, readFromClipboard } from './api.js';
3
3
  import { showToast, showLoading, resetButton, showResponse, showCopiedState, getById } from './utils.js';
4
4
  import { globalDispatcher, EVENT_TYPES } from './event-protocol.js';
5
+ import { loadGitData } from './features/git-panel.js';
5
6
 
6
7
  let lastAnalyzeResult = null;
7
8
 
@@ -159,7 +160,11 @@ export async function testExecute(event) {
159
160
  const data = await executeScript(bash);
160
161
  showResponse('execute-response', data, !data.success);
161
162
  data.success ? showToast('Thực thi thành công', 'success') : showToast('Thực thi thất bại', 'error');
162
- if (data.success) bashInput.value = '';
163
+ if (data.success) {
164
+ bashInput.value = '';
165
+ // Refresh git panel sau khi execute thành công
166
+ await loadGitData();
167
+ }
163
168
  } catch (err) {
164
169
  showResponse('execute-response', { error: err.message }, true);
165
170
  showToast('Lỗi: ' + err.message, 'error');
@@ -200,6 +205,8 @@ export async function executeFromClipboard(event) {
200
205
  if (bashInput) {
201
206
  bashInput.value = '';
202
207
  }
208
+ // Refresh git panel sau khi execute thành công
209
+ await loadGitData();
203
210
  } else {
204
211
  data.syntaxError ? showToast('Lỗi syntax script', 'error') : showToast('Thực thi thất bại', 'error');
205
212
  }