nexusforge-cli 1.1.1 → 1.2.1
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/components/App.d.ts.map +1 -1
- package/dist/components/App.js +183 -17
- package/dist/components/App.js.map +1 -1
- package/dist/index.js +462 -10
- package/dist/index.js.map +1 -1
- package/dist/modules/commandEngine.d.ts +70 -0
- package/dist/modules/commandEngine.d.ts.map +1 -0
- package/dist/modules/commandEngine.js +672 -0
- package/dist/modules/commandEngine.js.map +1 -0
- package/dist/modules/contextBuilder.d.ts +51 -0
- package/dist/modules/contextBuilder.d.ts.map +1 -0
- package/dist/modules/contextBuilder.js +725 -0
- package/dist/modules/contextBuilder.js.map +1 -0
- package/dist/modules/domainDetector.d.ts +64 -0
- package/dist/modules/domainDetector.d.ts.map +1 -0
- package/dist/modules/domainDetector.js +722 -0
- package/dist/modules/domainDetector.js.map +1 -0
- package/dist/modules/fileOperations.d.ts +99 -0
- package/dist/modules/fileOperations.d.ts.map +1 -0
- package/dist/modules/fileOperations.js +543 -0
- package/dist/modules/fileOperations.js.map +1 -0
- package/dist/modules/forgeEngine.d.ts +153 -0
- package/dist/modules/forgeEngine.d.ts.map +1 -0
- package/dist/modules/forgeEngine.js +652 -0
- package/dist/modules/forgeEngine.js.map +1 -0
- package/dist/modules/gitManager.d.ts +151 -0
- package/dist/modules/gitManager.d.ts.map +1 -0
- package/dist/modules/gitManager.js +539 -0
- package/dist/modules/gitManager.js.map +1 -0
- package/dist/modules/index.d.ts +25 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +25 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/prdProcessor.d.ts +125 -0
- package/dist/modules/prdProcessor.d.ts.map +1 -0
- package/dist/modules/prdProcessor.js +466 -0
- package/dist/modules/prdProcessor.js.map +1 -0
- package/dist/modules/projectScanner.d.ts +105 -0
- package/dist/modules/projectScanner.d.ts.map +1 -0
- package/dist/modules/projectScanner.js +859 -0
- package/dist/modules/projectScanner.js.map +1 -0
- package/dist/modules/safetyGuard.d.ts +83 -0
- package/dist/modules/safetyGuard.d.ts.map +1 -0
- package/dist/modules/safetyGuard.js +492 -0
- package/dist/modules/safetyGuard.js.map +1 -0
- package/dist/modules/templateManager.d.ts +78 -0
- package/dist/modules/templateManager.d.ts.map +1 -0
- package/dist/modules/templateManager.js +556 -0
- package/dist/modules/templateManager.js.map +1 -0
- package/dist/native/index.d.ts +125 -0
- package/dist/native/index.d.ts.map +1 -0
- package/dist/native/index.js +164 -0
- package/dist/native/index.js.map +1 -0
- package/dist/services/executor.d.ts +24 -0
- package/dist/services/executor.d.ts.map +1 -1
- package/dist/services/executor.js +149 -6
- package/dist/services/executor.js.map +1 -1
- package/dist/services/fileManager.d.ts +134 -0
- package/dist/services/fileManager.d.ts.map +1 -0
- package/dist/services/fileManager.js +489 -0
- package/dist/services/fileManager.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NexusForge Git Manager
|
|
3
|
+
* Enterprise-grade Git integration for NexusForge CLI
|
|
4
|
+
* Ported from Python: nexusforge/modules/git/git_manager.py
|
|
5
|
+
*/
|
|
6
|
+
import { execSync, spawnSync } from 'child_process';
|
|
7
|
+
import { resolve } from 'path';
|
|
8
|
+
// ============================================================================
|
|
9
|
+
// ENUMS AND TYPES
|
|
10
|
+
// ============================================================================
|
|
11
|
+
export var GitStatus;
|
|
12
|
+
(function (GitStatus) {
|
|
13
|
+
GitStatus["UNTRACKED"] = "untracked";
|
|
14
|
+
GitStatus["MODIFIED"] = "modified";
|
|
15
|
+
GitStatus["ADDED"] = "added";
|
|
16
|
+
GitStatus["DELETED"] = "deleted";
|
|
17
|
+
GitStatus["RENAMED"] = "renamed";
|
|
18
|
+
GitStatus["COPIED"] = "copied";
|
|
19
|
+
GitStatus["UNMERGED"] = "unmerged";
|
|
20
|
+
})(GitStatus || (GitStatus = {}));
|
|
21
|
+
// ============================================================================
|
|
22
|
+
// GIT MANAGER CLASS
|
|
23
|
+
// ============================================================================
|
|
24
|
+
export class GitManager {
|
|
25
|
+
projectPath;
|
|
26
|
+
gitAvailable;
|
|
27
|
+
isRepo;
|
|
28
|
+
constructor(projectPath) {
|
|
29
|
+
this.projectPath = projectPath ? resolve(projectPath) : process.cwd();
|
|
30
|
+
this.gitAvailable = this.checkGitAvailable();
|
|
31
|
+
this.isRepo = this.checkIsGitRepo();
|
|
32
|
+
}
|
|
33
|
+
// ========================================================================
|
|
34
|
+
// REPOSITORY STATUS
|
|
35
|
+
// ========================================================================
|
|
36
|
+
/**
|
|
37
|
+
* Get comprehensive repository status
|
|
38
|
+
*/
|
|
39
|
+
getStatus(includeUntracked = true) {
|
|
40
|
+
if (!this.isRepo) {
|
|
41
|
+
return {
|
|
42
|
+
isRepo: false,
|
|
43
|
+
status: [],
|
|
44
|
+
remotes: [],
|
|
45
|
+
stashCount: 0,
|
|
46
|
+
isClean: true,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const state = {
|
|
50
|
+
isRepo: true,
|
|
51
|
+
status: [],
|
|
52
|
+
remotes: [],
|
|
53
|
+
stashCount: 0,
|
|
54
|
+
isClean: true,
|
|
55
|
+
};
|
|
56
|
+
try {
|
|
57
|
+
state.branch = this.getBranchInfo();
|
|
58
|
+
state.status = this.getFileStatus(includeUntracked);
|
|
59
|
+
state.isClean = state.status.length === 0;
|
|
60
|
+
state.remotes = this.getRemotes();
|
|
61
|
+
const commits = this.getCommits(1);
|
|
62
|
+
state.lastCommit = commits[0];
|
|
63
|
+
state.stashCount = this.getStashCount();
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
// Silently handle errors, return partial state
|
|
67
|
+
}
|
|
68
|
+
return state;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get branch information
|
|
72
|
+
*/
|
|
73
|
+
getBranchInfo() {
|
|
74
|
+
if (!this.isRepo) {
|
|
75
|
+
throw new Error('Not a git repository');
|
|
76
|
+
}
|
|
77
|
+
const info = {
|
|
78
|
+
current: 'unknown',
|
|
79
|
+
allBranches: [],
|
|
80
|
+
remoteBranches: [],
|
|
81
|
+
ahead: 0,
|
|
82
|
+
behind: 0,
|
|
83
|
+
};
|
|
84
|
+
try {
|
|
85
|
+
// Get current branch
|
|
86
|
+
const currentResult = this.runGitCommand(['branch', '--show-current']);
|
|
87
|
+
info.current = currentResult.trim() || 'HEAD';
|
|
88
|
+
// Get all branches
|
|
89
|
+
const branchResult = this.runGitCommand(['branch', '-a']);
|
|
90
|
+
if (branchResult) {
|
|
91
|
+
const branches = branchResult
|
|
92
|
+
.split('\n')
|
|
93
|
+
.filter(b => b.trim())
|
|
94
|
+
.map(b => b.replace(/^\*?\s*/, '').trim());
|
|
95
|
+
info.allBranches = branches.filter(b => !b.startsWith('remotes/'));
|
|
96
|
+
info.remoteBranches = branches.filter(b => b.startsWith('remotes/'));
|
|
97
|
+
}
|
|
98
|
+
// Get tracking info
|
|
99
|
+
const statusResult = this.runGitCommand(['status', '-sb']);
|
|
100
|
+
if (statusResult) {
|
|
101
|
+
const match = statusResult.split('\n')[0].match(/## (.+?)\.\.\.(.+?)(?: \[(.+?)\])?$/);
|
|
102
|
+
if (match) {
|
|
103
|
+
info.tracking = match[2];
|
|
104
|
+
if (match[3]) {
|
|
105
|
+
const aheadMatch = match[3].match(/ahead (\d+)/);
|
|
106
|
+
const behindMatch = match[3].match(/behind (\d+)/);
|
|
107
|
+
if (aheadMatch)
|
|
108
|
+
info.ahead = parseInt(aheadMatch[1], 10);
|
|
109
|
+
if (behindMatch)
|
|
110
|
+
info.behind = parseInt(behindMatch[1], 10);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
// Return partial info on error
|
|
117
|
+
}
|
|
118
|
+
return info;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get status of all files
|
|
122
|
+
*/
|
|
123
|
+
getFileStatus(includeUntracked = true) {
|
|
124
|
+
const files = [];
|
|
125
|
+
try {
|
|
126
|
+
const result = this.runGitCommand(['status', '--porcelain']);
|
|
127
|
+
if (!result)
|
|
128
|
+
return files;
|
|
129
|
+
for (const line of result.split('\n')) {
|
|
130
|
+
if (!line.trim())
|
|
131
|
+
continue;
|
|
132
|
+
const statusCode = line.substring(0, 2);
|
|
133
|
+
const path = line.substring(3).trim();
|
|
134
|
+
// Skip untracked if requested
|
|
135
|
+
if (statusCode === '??' && !includeUntracked)
|
|
136
|
+
continue;
|
|
137
|
+
const staged = statusCode[0] !== ' ' && statusCode[0] !== '?';
|
|
138
|
+
const gitStatus = this.parseStatusCode(statusCode);
|
|
139
|
+
files.push({
|
|
140
|
+
path,
|
|
141
|
+
status: gitStatus,
|
|
142
|
+
staged,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
// Return empty on error
|
|
148
|
+
}
|
|
149
|
+
return files;
|
|
150
|
+
}
|
|
151
|
+
parseStatusCode(code) {
|
|
152
|
+
const char = code[0] === ' ' ? code[1] : code[0];
|
|
153
|
+
const mapping = {
|
|
154
|
+
'?': GitStatus.UNTRACKED,
|
|
155
|
+
'M': GitStatus.MODIFIED,
|
|
156
|
+
'A': GitStatus.ADDED,
|
|
157
|
+
'D': GitStatus.DELETED,
|
|
158
|
+
'R': GitStatus.RENAMED,
|
|
159
|
+
'C': GitStatus.COPIED,
|
|
160
|
+
'U': GitStatus.UNMERGED,
|
|
161
|
+
};
|
|
162
|
+
return mapping[char] || GitStatus.MODIFIED;
|
|
163
|
+
}
|
|
164
|
+
// ========================================================================
|
|
165
|
+
// COMMIT OPERATIONS
|
|
166
|
+
// ========================================================================
|
|
167
|
+
/**
|
|
168
|
+
* Create a commit
|
|
169
|
+
*/
|
|
170
|
+
commit(message, addAll = false, files) {
|
|
171
|
+
if (!this.isRepo) {
|
|
172
|
+
throw new Error('Not a git repository');
|
|
173
|
+
}
|
|
174
|
+
try {
|
|
175
|
+
if (addAll) {
|
|
176
|
+
this.runGitCommand(['add', '-A']);
|
|
177
|
+
}
|
|
178
|
+
else if (files && files.length > 0) {
|
|
179
|
+
this.runGitCommand(['add', ...files]);
|
|
180
|
+
}
|
|
181
|
+
this.runGitCommand(['commit', '-m', message]);
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
throw new Error(`Failed to create commit: ${error}`);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Get commit history
|
|
190
|
+
*/
|
|
191
|
+
getCommits(count = 10, branch) {
|
|
192
|
+
if (!this.isRepo)
|
|
193
|
+
return [];
|
|
194
|
+
const commits = [];
|
|
195
|
+
try {
|
|
196
|
+
const cmd = ['log', `-${count}`, '--pretty=format:%H|%an|%at|%s'];
|
|
197
|
+
if (branch)
|
|
198
|
+
cmd.push(branch);
|
|
199
|
+
const result = this.runGitCommand(cmd);
|
|
200
|
+
if (!result)
|
|
201
|
+
return commits;
|
|
202
|
+
for (const line of result.split('\n')) {
|
|
203
|
+
if (!line.trim())
|
|
204
|
+
continue;
|
|
205
|
+
const parts = line.split('|');
|
|
206
|
+
if (parts.length !== 4)
|
|
207
|
+
continue;
|
|
208
|
+
const [hash, author, timestamp, message] = parts;
|
|
209
|
+
commits.push({
|
|
210
|
+
hash,
|
|
211
|
+
author,
|
|
212
|
+
date: new Date(parseInt(timestamp, 10) * 1000),
|
|
213
|
+
message,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
// Return empty on error
|
|
219
|
+
}
|
|
220
|
+
return commits;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Get the last commit
|
|
224
|
+
*/
|
|
225
|
+
getLastCommit() {
|
|
226
|
+
const commits = this.getCommits(1);
|
|
227
|
+
return commits[0];
|
|
228
|
+
}
|
|
229
|
+
// ========================================================================
|
|
230
|
+
// REMOTE OPERATIONS
|
|
231
|
+
// ========================================================================
|
|
232
|
+
/**
|
|
233
|
+
* Get all configured remotes
|
|
234
|
+
*/
|
|
235
|
+
getRemotes() {
|
|
236
|
+
if (!this.isRepo)
|
|
237
|
+
return [];
|
|
238
|
+
const remotes = [];
|
|
239
|
+
try {
|
|
240
|
+
const result = this.runGitCommand(['remote', '-v']);
|
|
241
|
+
if (!result)
|
|
242
|
+
return remotes;
|
|
243
|
+
const seen = new Set();
|
|
244
|
+
for (const line of result.split('\n')) {
|
|
245
|
+
if (!line.trim())
|
|
246
|
+
continue;
|
|
247
|
+
const parts = line.split(/\s+/);
|
|
248
|
+
if (parts.length < 2)
|
|
249
|
+
continue;
|
|
250
|
+
const name = parts[0];
|
|
251
|
+
const url = parts[1];
|
|
252
|
+
if (seen.has(name))
|
|
253
|
+
continue;
|
|
254
|
+
seen.add(name);
|
|
255
|
+
remotes.push({ name, url });
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
// Return empty on error
|
|
260
|
+
}
|
|
261
|
+
return remotes;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Push changes to remote
|
|
265
|
+
*/
|
|
266
|
+
push(remote = 'origin', branch, force = false, setUpstream = false) {
|
|
267
|
+
if (!this.isRepo) {
|
|
268
|
+
throw new Error('Not a git repository');
|
|
269
|
+
}
|
|
270
|
+
try {
|
|
271
|
+
const cmd = ['push'];
|
|
272
|
+
if (force)
|
|
273
|
+
cmd.push('--force');
|
|
274
|
+
if (setUpstream)
|
|
275
|
+
cmd.push('--set-upstream');
|
|
276
|
+
cmd.push(remote);
|
|
277
|
+
if (branch)
|
|
278
|
+
cmd.push(branch);
|
|
279
|
+
this.runGitCommand(cmd);
|
|
280
|
+
return true;
|
|
281
|
+
}
|
|
282
|
+
catch (error) {
|
|
283
|
+
throw new Error(`Failed to push: ${error}`);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Pull changes from remote
|
|
288
|
+
*/
|
|
289
|
+
pull(remote = 'origin', branch) {
|
|
290
|
+
if (!this.isRepo) {
|
|
291
|
+
throw new Error('Not a git repository');
|
|
292
|
+
}
|
|
293
|
+
try {
|
|
294
|
+
const cmd = ['pull', remote];
|
|
295
|
+
if (branch)
|
|
296
|
+
cmd.push(branch);
|
|
297
|
+
this.runGitCommand(cmd);
|
|
298
|
+
return true;
|
|
299
|
+
}
|
|
300
|
+
catch (error) {
|
|
301
|
+
throw new Error(`Failed to pull: ${error}`);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
// ========================================================================
|
|
305
|
+
// DIFF OPERATIONS
|
|
306
|
+
// ========================================================================
|
|
307
|
+
/**
|
|
308
|
+
* Get diff output
|
|
309
|
+
*/
|
|
310
|
+
getDiff(staged = false, file, commit) {
|
|
311
|
+
if (!this.isRepo)
|
|
312
|
+
return '';
|
|
313
|
+
try {
|
|
314
|
+
const cmd = ['diff'];
|
|
315
|
+
if (staged)
|
|
316
|
+
cmd.push('--staged');
|
|
317
|
+
if (commit)
|
|
318
|
+
cmd.push(commit);
|
|
319
|
+
if (file) {
|
|
320
|
+
cmd.push('--');
|
|
321
|
+
cmd.push(file);
|
|
322
|
+
}
|
|
323
|
+
return this.runGitCommand(cmd) || '';
|
|
324
|
+
}
|
|
325
|
+
catch (error) {
|
|
326
|
+
return '';
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Get diff for a specific file
|
|
331
|
+
*/
|
|
332
|
+
getFileDiff(filePath, staged = false) {
|
|
333
|
+
return this.getDiff(staged, filePath);
|
|
334
|
+
}
|
|
335
|
+
// ========================================================================
|
|
336
|
+
// UTILITY OPERATIONS
|
|
337
|
+
// ========================================================================
|
|
338
|
+
/**
|
|
339
|
+
* Initialize a new git repository
|
|
340
|
+
*/
|
|
341
|
+
initRepo(initialBranch = 'main') {
|
|
342
|
+
try {
|
|
343
|
+
this.runGitCommand(['init', '-b', initialBranch]);
|
|
344
|
+
this.isRepo = true;
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
347
|
+
catch (error) {
|
|
348
|
+
throw new Error(`Failed to initialize repository: ${error}`);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Stage files for commit
|
|
353
|
+
*/
|
|
354
|
+
addFiles(files) {
|
|
355
|
+
if (!this.isRepo) {
|
|
356
|
+
throw new Error('Not a git repository');
|
|
357
|
+
}
|
|
358
|
+
try {
|
|
359
|
+
this.runGitCommand(['add', ...files]);
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
362
|
+
catch (error) {
|
|
363
|
+
throw new Error(`Failed to stage files: ${error}`);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Stage all changes
|
|
368
|
+
*/
|
|
369
|
+
addAll() {
|
|
370
|
+
return this.addFiles(['-A']);
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Get number of stashed changes
|
|
374
|
+
*/
|
|
375
|
+
getStashCount() {
|
|
376
|
+
try {
|
|
377
|
+
const result = this.runGitCommand(['stash', 'list']);
|
|
378
|
+
return result ? result.split('\n').filter(l => l.trim()).length : 0;
|
|
379
|
+
}
|
|
380
|
+
catch {
|
|
381
|
+
return 0;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Stash current changes
|
|
386
|
+
*/
|
|
387
|
+
stash(message) {
|
|
388
|
+
if (!this.isRepo) {
|
|
389
|
+
throw new Error('Not a git repository');
|
|
390
|
+
}
|
|
391
|
+
try {
|
|
392
|
+
const cmd = ['stash', 'push'];
|
|
393
|
+
if (message)
|
|
394
|
+
cmd.push('-m', message);
|
|
395
|
+
this.runGitCommand(cmd);
|
|
396
|
+
return true;
|
|
397
|
+
}
|
|
398
|
+
catch (error) {
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Apply and remove the last stash
|
|
404
|
+
*/
|
|
405
|
+
stashPop() {
|
|
406
|
+
if (!this.isRepo) {
|
|
407
|
+
throw new Error('Not a git repository');
|
|
408
|
+
}
|
|
409
|
+
try {
|
|
410
|
+
this.runGitCommand(['stash', 'pop']);
|
|
411
|
+
return true;
|
|
412
|
+
}
|
|
413
|
+
catch (error) {
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Checkout a branch
|
|
419
|
+
*/
|
|
420
|
+
checkout(branch, create = false) {
|
|
421
|
+
if (!this.isRepo) {
|
|
422
|
+
throw new Error('Not a git repository');
|
|
423
|
+
}
|
|
424
|
+
try {
|
|
425
|
+
const cmd = ['checkout'];
|
|
426
|
+
if (create)
|
|
427
|
+
cmd.push('-b');
|
|
428
|
+
cmd.push(branch);
|
|
429
|
+
this.runGitCommand(cmd);
|
|
430
|
+
return true;
|
|
431
|
+
}
|
|
432
|
+
catch (error) {
|
|
433
|
+
throw new Error(`Failed to checkout: ${error}`);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Create a new branch
|
|
438
|
+
*/
|
|
439
|
+
createBranch(name) {
|
|
440
|
+
return this.checkout(name, true);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Get short status string for display
|
|
444
|
+
*/
|
|
445
|
+
getStatusSummary() {
|
|
446
|
+
const state = this.getStatus();
|
|
447
|
+
if (!state.isRepo)
|
|
448
|
+
return 'Not a git repository';
|
|
449
|
+
const parts = [];
|
|
450
|
+
if (state.branch) {
|
|
451
|
+
let branchStr = state.branch.current;
|
|
452
|
+
if (state.branch.ahead > 0)
|
|
453
|
+
branchStr += ` ↑${state.branch.ahead}`;
|
|
454
|
+
if (state.branch.behind > 0)
|
|
455
|
+
branchStr += ` ↓${state.branch.behind}`;
|
|
456
|
+
parts.push(branchStr);
|
|
457
|
+
}
|
|
458
|
+
if (!state.isClean) {
|
|
459
|
+
const staged = state.status.filter(s => s.staged).length;
|
|
460
|
+
const unstaged = state.status.filter(s => !s.staged).length;
|
|
461
|
+
if (staged > 0)
|
|
462
|
+
parts.push(`${staged} staged`);
|
|
463
|
+
if (unstaged > 0)
|
|
464
|
+
parts.push(`${unstaged} unstaged`);
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
parts.push('clean');
|
|
468
|
+
}
|
|
469
|
+
if (state.stashCount > 0) {
|
|
470
|
+
parts.push(`${state.stashCount} stashed`);
|
|
471
|
+
}
|
|
472
|
+
return parts.join(' | ');
|
|
473
|
+
}
|
|
474
|
+
// ========================================================================
|
|
475
|
+
// INTERNAL HELPERS
|
|
476
|
+
// ========================================================================
|
|
477
|
+
checkGitAvailable() {
|
|
478
|
+
try {
|
|
479
|
+
const result = spawnSync('git', ['--version'], { timeout: 5000 });
|
|
480
|
+
return result.status === 0;
|
|
481
|
+
}
|
|
482
|
+
catch {
|
|
483
|
+
return false;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
checkIsGitRepo() {
|
|
487
|
+
if (!this.gitAvailable)
|
|
488
|
+
return false;
|
|
489
|
+
try {
|
|
490
|
+
const result = spawnSync('git', ['rev-parse', '--is-inside-work-tree'], {
|
|
491
|
+
cwd: this.projectPath,
|
|
492
|
+
timeout: 5000,
|
|
493
|
+
});
|
|
494
|
+
return result.status === 0;
|
|
495
|
+
}
|
|
496
|
+
catch {
|
|
497
|
+
return false;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
runGitCommand(args, timeout = 30000) {
|
|
501
|
+
try {
|
|
502
|
+
const result = execSync(`git ${args.join(' ')}`, {
|
|
503
|
+
cwd: this.projectPath,
|
|
504
|
+
timeout,
|
|
505
|
+
encoding: 'utf-8',
|
|
506
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
507
|
+
});
|
|
508
|
+
return result.trim();
|
|
509
|
+
}
|
|
510
|
+
catch (error) {
|
|
511
|
+
const errorMsg = error.stderr?.toString().trim() || error.message;
|
|
512
|
+
throw new Error(`Git command failed: ${errorMsg}`);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
// ============================================================================
|
|
517
|
+
// GLOBAL INSTANCE
|
|
518
|
+
// ============================================================================
|
|
519
|
+
let gitManagerInstance = null;
|
|
520
|
+
/**
|
|
521
|
+
* Get global git manager instance (singleton)
|
|
522
|
+
*/
|
|
523
|
+
export function getGitManager(projectPath) {
|
|
524
|
+
if (!gitManagerInstance || (projectPath && gitManagerInstance['projectPath'] !== projectPath)) {
|
|
525
|
+
gitManagerInstance = new GitManager(projectPath);
|
|
526
|
+
}
|
|
527
|
+
return gitManagerInstance;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Reset the global git manager instance
|
|
531
|
+
*/
|
|
532
|
+
export function resetGitManager() {
|
|
533
|
+
gitManagerInstance = null;
|
|
534
|
+
}
|
|
535
|
+
// ============================================================================
|
|
536
|
+
// EXPORT
|
|
537
|
+
// ============================================================================
|
|
538
|
+
export default GitManager;
|
|
539
|
+
//# sourceMappingURL=gitManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitManager.js","sourceRoot":"","sources":["../../src/modules/gitManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;AACvB,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB;AA4C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C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NexusForge CLI Modules
|
|
3
|
+
* Ported from Python nexusforge/modules/
|
|
4
|
+
*/
|
|
5
|
+
export { CommandProcessingEngine, CommandIntent, getCommandEngine, resetCommandEngine, } from './commandEngine.js';
|
|
6
|
+
export type { ParsedCommand, CommandPattern } from './commandEngine.js';
|
|
7
|
+
export { ForgeEngine, ForgeOrchestrator, ForgeMode, BuildPhase, TaskStatus, getForgeEngine, getForgeOrchestrator, resetForgeEngine, } from './forgeEngine.js';
|
|
8
|
+
export type { ForgeTask, BuildBlueprint, ForgeResult, ForgeState, } from './forgeEngine.js';
|
|
9
|
+
export { FileOperations, getFileOperations, read, write, append, copy, move, remove, exists, isFile, isDir, getInfo, search, replace, } from './fileOperations.js';
|
|
10
|
+
export type { OperationLog, FileInfo, SearchResult, BatchOperation, } from './fileOperations.js';
|
|
11
|
+
export { SafetyGuard, RiskLevel, OperationType, getSafetyGuard, resetSafetyGuard, isPathSafe, isCommandSafe, checkContentSafety, validatePath, validateCommand, } from './safetyGuard.js';
|
|
12
|
+
export type { SafetyCheckResult, ContentCheckResult, AuditLogEntry, SafetyStats, } from './safetyGuard.js';
|
|
13
|
+
export { GitManager, GitStatus, getGitManager, resetGitManager, } from './gitManager.js';
|
|
14
|
+
export type { FileStatus, CommitInfo, BranchInfo, RemoteInfo, GitState, } from './gitManager.js';
|
|
15
|
+
export { PRDProcessor, RequirementPriority, RequirementCategory, RequirementStatus, getPRDProcessor, resetPRDProcessor, } from './prdProcessor.js';
|
|
16
|
+
export type { Requirement, TechStackItem, ProjectMetadata, ImplementationPhase, PRDStats, ImplementationPlan, StructuredPRD, } from './prdProcessor.js';
|
|
17
|
+
export { DomainDetector, Domain, getDomainDetector, resetDomainDetector, detectProjectDomains, getPrimaryDomain, } from './domainDetector.js';
|
|
18
|
+
export type { DomainResult } from './domainDetector.js';
|
|
19
|
+
export { ProjectScanner, getProjectScanner, resetProjectScanner, } from './projectScanner.js';
|
|
20
|
+
export type { FileInfo as ScannerFileInfo, ScanResult, ProjectStatus, ScanStats, } from './projectScanner.js';
|
|
21
|
+
export { ContextBuilder, getContextBuilder, resetContextBuilder, } from './contextBuilder.js';
|
|
22
|
+
export type { FileContext, ProjectPatterns, } from './contextBuilder.js';
|
|
23
|
+
export { TemplateManager, getTemplateManager, resetTemplateManager, } from './templateManager.js';
|
|
24
|
+
export type { TemplateMetadata, TemplateInfo, SnippetData, TemplateContext, } from './templateManager.js';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGxE,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,SAAS,EACT,cAAc,EACd,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,IAAI,EACJ,KAAK,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,OAAO,EACP,MAAM,EACN,OAAO,GACR,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,GACf,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,WAAW,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,kBAAkB,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@@
|
|
|
1
|
+
/**
|
|
2
|
+
* NexusForge CLI Modules
|
|
3
|
+
* Ported from Python nexusforge/modules/
|
|
4
|
+
*/
|
|
5
|
+
// Command Processing Engine
|
|
6
|
+
export { CommandProcessingEngine, CommandIntent, getCommandEngine, resetCommandEngine, } from './commandEngine.js';
|
|
7
|
+
// Forge Engine (Autonomous Building)
|
|
8
|
+
export { ForgeEngine, ForgeOrchestrator, ForgeMode, BuildPhase, TaskStatus, getForgeEngine, getForgeOrchestrator, resetForgeEngine, } from './forgeEngine.js';
|
|
9
|
+
// File Operations
|
|
10
|
+
export { FileOperations, getFileOperations, read, write, append, copy, move, remove, exists, isFile, isDir, getInfo, search, replace, } from './fileOperations.js';
|
|
11
|
+
// Safety Guard
|
|
12
|
+
export { SafetyGuard, RiskLevel, OperationType, getSafetyGuard, resetSafetyGuard, isPathSafe, isCommandSafe, checkContentSafety, validatePath, validateCommand, } from './safetyGuard.js';
|
|
13
|
+
// Git Manager
|
|
14
|
+
export { GitManager, GitStatus, getGitManager, resetGitManager, } from './gitManager.js';
|
|
15
|
+
// PRD Processor
|
|
16
|
+
export { PRDProcessor, RequirementPriority, RequirementCategory, RequirementStatus, getPRDProcessor, resetPRDProcessor, } from './prdProcessor.js';
|
|
17
|
+
// Domain Detector
|
|
18
|
+
export { DomainDetector, Domain, getDomainDetector, resetDomainDetector, detectProjectDomains, getPrimaryDomain, } from './domainDetector.js';
|
|
19
|
+
// Project Scanner
|
|
20
|
+
export { ProjectScanner, getProjectScanner, resetProjectScanner, } from './projectScanner.js';
|
|
21
|
+
// Context Builder
|
|
22
|
+
export { ContextBuilder, getContextBuilder, resetContextBuilder, } from './contextBuilder.js';
|
|
23
|
+
// Template Manager
|
|
24
|
+
export { TemplateManager, getTemplateManager, resetTemplateManager, } from './templateManager.js';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts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