@andrebuzeli/git-mcp 4.0.23 → 5.0.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.
Files changed (65) hide show
  1. package/README.md +59 -32
  2. package/dist/config.d.ts +0 -2
  3. package/dist/config.d.ts.map +1 -1
  4. package/dist/config.js +0 -27
  5. package/dist/config.js.map +1 -1
  6. package/dist/index.d.ts +0 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +54 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/providers/gitea-provider.d.ts +5 -5
  11. package/dist/providers/gitea-provider.d.ts.map +1 -1
  12. package/dist/providers/gitea-provider.js +75 -220
  13. package/dist/providers/gitea-provider.js.map +1 -1
  14. package/dist/providers/github-provider.d.ts +0 -48
  15. package/dist/providers/github-provider.d.ts.map +1 -1
  16. package/dist/providers/github-provider.js +805 -849
  17. package/dist/providers/github-provider.js.map +1 -1
  18. package/dist/providers/provider-factory.d.ts +1 -1
  19. package/dist/providers/provider-factory.d.ts.map +1 -1
  20. package/dist/providers/provider-factory.js +4 -14
  21. package/dist/providers/provider-factory.js.map +1 -1
  22. package/dist/providers/types.d.ts +1 -1
  23. package/dist/providers/types.d.ts.map +1 -1
  24. package/dist/server.d.ts.map +1 -1
  25. package/dist/server.js +63 -16
  26. package/dist/server.js.map +1 -1
  27. package/dist/tools/git-files.d.ts.map +1 -1
  28. package/dist/tools/git-files.js +103 -5
  29. package/dist/tools/git-files.js.map +1 -1
  30. package/dist/tools/git-sync.d.ts.map +1 -1
  31. package/dist/tools/git-sync.js +104 -6
  32. package/dist/tools/git-sync.js.map +1 -1
  33. package/dist/tools/git-workflow.d.ts +15 -0
  34. package/dist/tools/git-workflow.d.ts.map +1 -1
  35. package/dist/tools/git-workflow.js +458 -377
  36. package/dist/tools/git-workflow.js.map +1 -1
  37. package/dist/utils/auto-detection.js +1 -1
  38. package/dist/utils/auto-detection.js.map +1 -1
  39. package/dist/utils/configuration-error-generator.d.ts +41 -0
  40. package/dist/utils/configuration-error-generator.d.ts.map +1 -0
  41. package/dist/utils/configuration-error-generator.js +168 -0
  42. package/dist/utils/configuration-error-generator.js.map +1 -0
  43. package/dist/utils/configuration-validator.d.ts +67 -0
  44. package/dist/utils/configuration-validator.d.ts.map +1 -0
  45. package/dist/utils/configuration-validator.js +257 -0
  46. package/dist/utils/configuration-validator.js.map +1 -0
  47. package/dist/utils/multi-provider-error-handler.d.ts +75 -0
  48. package/dist/utils/multi-provider-error-handler.d.ts.map +1 -0
  49. package/dist/utils/multi-provider-error-handler.js +276 -0
  50. package/dist/utils/multi-provider-error-handler.js.map +1 -0
  51. package/dist/utils/multi-provider-operation-handler.d.ts +113 -0
  52. package/dist/utils/multi-provider-operation-handler.d.ts.map +1 -0
  53. package/dist/utils/multi-provider-operation-handler.js +303 -0
  54. package/dist/utils/multi-provider-operation-handler.js.map +1 -0
  55. package/dist/utils/operation-error-handler.d.ts +69 -0
  56. package/dist/utils/operation-error-handler.d.ts.map +1 -0
  57. package/dist/utils/operation-error-handler.js +277 -0
  58. package/dist/utils/operation-error-handler.js.map +1 -0
  59. package/dist/utils/provider-operation-handler.d.ts +80 -0
  60. package/dist/utils/provider-operation-handler.d.ts.map +1 -0
  61. package/dist/utils/provider-operation-handler.js +201 -0
  62. package/dist/utils/provider-operation-handler.js.map +1 -0
  63. package/dist/utils/response-helper.js +1 -1
  64. package/dist/utils/response-helper.js.map +1 -1
  65. package/package.json +3 -3
@@ -171,11 +171,109 @@ exports.gitFilesTool = {
171
171
  }
172
172
  catch (error) {
173
173
  const detection = (0, auto_detection_js_1.autoDetect)(input.projectPath || '');
174
- return (0, auto_detection_js_1.createUniversalResponse)(false, input.action || 'unknown', error instanceof Error ? error.message : String(error), detection, 'git-files', undefined, {
175
- code: 'FILES_ERROR',
176
- message: error instanceof Error ? error.message : String(error),
177
- cause: 'Erro na operação de arquivo',
178
- suggestion: 'Verifique os parâmetros e permissões de arquivo'
174
+ const errorInstance = error instanceof Error ? error : new Error(String(error));
175
+ // Analyze error and provide comprehensive error handling
176
+ let operationError;
177
+ const errorMessage = errorInstance.message.toLowerCase();
178
+ if (errorMessage.includes('enoent') || errorMessage.includes('no such file')) {
179
+ operationError = {
180
+ code: 'FILE_NOT_FOUND',
181
+ message: `File not found: ${input.filePath || 'unknown'}`,
182
+ cause: 'The specified file does not exist',
183
+ solution: 'Check the file path and ensure the file exists',
184
+ troubleshooting: [
185
+ 'Verify the file path is correct',
186
+ 'Check if the file was moved or deleted',
187
+ 'Ensure you have read permissions for the file',
188
+ 'Use relative paths from the project root'
189
+ ]
190
+ };
191
+ }
192
+ else if (errorMessage.includes('eacces') || errorMessage.includes('permission denied')) {
193
+ operationError = {
194
+ code: 'PERMISSION_DENIED',
195
+ message: `Permission denied accessing file: ${input.filePath || 'unknown'}`,
196
+ cause: 'Insufficient permissions to access the file',
197
+ solution: 'Check file permissions and user access rights',
198
+ troubleshooting: [
199
+ 'Verify you have read/write permissions for the file',
200
+ 'Check if the file is locked by another process',
201
+ 'Ensure the parent directory has proper permissions',
202
+ 'Run with appropriate user privileges if needed'
203
+ ]
204
+ };
205
+ }
206
+ else if (errorMessage.includes('enospc') || errorMessage.includes('no space left')) {
207
+ operationError = {
208
+ code: 'DISK_SPACE_ERROR',
209
+ message: 'Insufficient disk space for file operation',
210
+ cause: 'Not enough disk space to complete the operation',
211
+ solution: 'Free up disk space and try again',
212
+ troubleshooting: [
213
+ 'Check available disk space',
214
+ 'Remove unnecessary files',
215
+ 'Move files to a different location with more space',
216
+ 'Clean up temporary files'
217
+ ]
218
+ };
219
+ }
220
+ else if (errorMessage.includes('eisdir') || errorMessage.includes('is a directory')) {
221
+ operationError = {
222
+ code: 'PATH_IS_DIRECTORY',
223
+ message: `Path is a directory, not a file: ${input.filePath || 'unknown'}`,
224
+ cause: 'Attempted file operation on a directory',
225
+ solution: 'Specify a file path, not a directory path',
226
+ troubleshooting: [
227
+ 'Check if the path points to a directory instead of a file',
228
+ 'Add a filename to the path',
229
+ 'Use directory operations for directory paths',
230
+ 'Verify the intended target is a file'
231
+ ]
232
+ };
233
+ }
234
+ else if (errorMessage.includes('emfile') || errorMessage.includes('too many open files')) {
235
+ operationError = {
236
+ code: 'TOO_MANY_FILES',
237
+ message: 'Too many files open simultaneously',
238
+ cause: 'System limit for open files exceeded',
239
+ solution: 'Close unused files and try again',
240
+ troubleshooting: [
241
+ 'Close unnecessary applications',
242
+ 'Restart the application',
243
+ 'Check system limits for open files',
244
+ 'Process files in smaller batches'
245
+ ]
246
+ };
247
+ }
248
+ else {
249
+ operationError = {
250
+ code: 'FILE_OPERATION_ERROR',
251
+ message: errorInstance.message,
252
+ cause: 'File operation failed',
253
+ solution: 'Check file path, permissions, and system resources',
254
+ troubleshooting: [
255
+ 'Verify the file path is correct',
256
+ 'Check file and directory permissions',
257
+ 'Ensure sufficient disk space',
258
+ 'Try the operation again',
259
+ 'Check system logs for additional details'
260
+ ]
261
+ };
262
+ }
263
+ const formattedMessage = [
264
+ `❌ ${operationError.code}: ${operationError.message}`,
265
+ '',
266
+ `🔍 Cause: ${operationError.cause}`,
267
+ `💡 Solution: ${operationError.solution}`,
268
+ '',
269
+ '🛠️ Troubleshooting Steps:',
270
+ ...operationError.troubleshooting.map(step => ` • ${step}`)
271
+ ].join('\n');
272
+ return (0, auto_detection_js_1.createUniversalResponse)(false, input.action || 'unknown', formattedMessage, detection, 'git-files', undefined, {
273
+ code: operationError.code,
274
+ message: formattedMessage,
275
+ cause: operationError.cause,
276
+ suggestion: operationError.solution
179
277
  });
180
278
  }
181
279
  }
@@ -1 +1 @@
1
- {"version":3,"file":"git-files.js","sourceRoot":"","sources":["../../src/tools/git-files.ts"],"names":[],"mappings":";;;AACA,kEAAoG;AAEpG;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,M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B;gBAC5B,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC;aAC7D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEb,OAAO,IAAA,2CAAuB,EAC5B,KAAK,EACL,KAAK,CAAC,MAAM,IAAI,SAAS,EACzB,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,SAAS,EACT;gBACE,IAAI,EAAE,cAAc,CAAC,IAAI;gBACzB,OAAO,EAAE,gBAAgB;gBACzB,KAAK,EAAE,cAAc,CAAC,KAAK;gBAC3B,UAAU,EAAE,cAAc,CAAC,QAAQ;aACpC,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"git-sync.d.ts","sourceRoot":"","sources":["../../src/tools/git-sync.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,iBAAiB,EAAc,MAAM,4BAA4B,CAAC;AAEpG,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;mBAWD,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAgBtD,CAAC"}
1
+ {"version":3,"file":"git-sync.d.ts","sourceRoot":"","sources":["../../src/tools/git-sync.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,iBAAiB,EAAc,MAAM,4BAA4B,CAAC;AAGpG,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;mBAWD,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAoJtD,CAAC"}
@@ -14,12 +14,110 @@ exports.gitSyncTool = {
14
14
  required: ['action', 'projectPath']
15
15
  },
16
16
  async handler(input) {
17
- const detection = (0, auto_detection_js_1.autoDetect)(input.projectPath);
18
- return (0, auto_detection_js_1.createUniversalResponse)(true, input.action, 'Sincronização avançada executada', detection, 'git-sync', {
19
- action: input.action,
20
- synchronized: true,
21
- message: 'Funcionalidade de sincronização avançada ativa'
22
- });
17
+ try {
18
+ const { action, projectPath } = input;
19
+ if (!projectPath) {
20
+ const operationError = {
21
+ code: 'MISSING_PROJECT_PATH',
22
+ message: 'Project path is required for sync operations',
23
+ cause: 'projectPath parameter not provided',
24
+ solution: 'Provide a valid project path',
25
+ troubleshooting: [
26
+ 'Ensure projectPath parameter is included in the request',
27
+ 'Verify the project path exists and is accessible',
28
+ 'Use absolute or relative path to the project directory',
29
+ 'Check that the path points to a valid Git repository'
30
+ ]
31
+ };
32
+ const formattedMessage = [
33
+ `❌ ${operationError.code}: ${operationError.message}`,
34
+ '',
35
+ `🔍 Cause: ${operationError.cause}`,
36
+ `💡 Solution: ${operationError.solution}`,
37
+ '',
38
+ '🛠️ Troubleshooting Steps:',
39
+ ...operationError.troubleshooting.map(step => ` • ${step}`)
40
+ ].join('\n');
41
+ return (0, auto_detection_js_1.createUniversalResponse)(false, action, formattedMessage, (0, auto_detection_js_1.autoDetect)(''), 'git-sync', undefined, {
42
+ code: operationError.code,
43
+ message: formattedMessage,
44
+ cause: operationError.cause,
45
+ suggestion: operationError.solution
46
+ });
47
+ }
48
+ const detection = (0, auto_detection_js_1.autoDetect)(projectPath);
49
+ // Check if directory exists
50
+ const fs = require('fs');
51
+ if (!fs.existsSync(projectPath)) {
52
+ const operationError = {
53
+ code: 'PROJECT_PATH_NOT_FOUND',
54
+ message: `Project path does not exist: ${projectPath}`,
55
+ cause: 'The specified project directory was not found',
56
+ solution: 'Verify the project path and ensure the directory exists',
57
+ troubleshooting: [
58
+ 'Check if the path is spelled correctly',
59
+ 'Verify the directory exists on the file system',
60
+ 'Ensure you have read permissions for the directory',
61
+ 'Use absolute path if relative path is not working',
62
+ 'Check if the directory was moved or deleted'
63
+ ]
64
+ };
65
+ const formattedMessage = [
66
+ `❌ ${operationError.code}: ${operationError.message}`,
67
+ '',
68
+ `🔍 Cause: ${operationError.cause}`,
69
+ `💡 Solution: ${operationError.solution}`,
70
+ '',
71
+ '🛠️ Troubleshooting Steps:',
72
+ ...operationError.troubleshooting.map(step => ` • ${step}`)
73
+ ].join('\n');
74
+ return (0, auto_detection_js_1.createUniversalResponse)(false, action, formattedMessage, detection, 'git-sync', undefined, {
75
+ code: operationError.code,
76
+ message: formattedMessage,
77
+ cause: operationError.cause,
78
+ suggestion: operationError.solution
79
+ });
80
+ }
81
+ return (0, auto_detection_js_1.createUniversalResponse)(true, action, 'Sincronização avançada executada com sucesso', detection, 'git-sync', {
82
+ action,
83
+ synchronized: true,
84
+ message: 'Funcionalidade de sincronização avançada ativa',
85
+ projectPath,
86
+ timestamp: new Date().toISOString()
87
+ });
88
+ }
89
+ catch (error) {
90
+ const detection = (0, auto_detection_js_1.autoDetect)(input.projectPath || '');
91
+ const errorInstance = error instanceof Error ? error : new Error(String(error));
92
+ const operationError = {
93
+ code: 'SYNC_OPERATION_ERROR',
94
+ message: `Sync operation failed: ${errorInstance.message}`,
95
+ cause: 'An error occurred during the sync operation',
96
+ solution: 'Check the error details and try again',
97
+ troubleshooting: [
98
+ 'Verify the project path is correct and accessible',
99
+ 'Check if the directory is a valid Git repository',
100
+ 'Ensure you have proper permissions for the directory',
101
+ 'Check network connectivity if syncing with remote repositories',
102
+ 'Review the specific error message for more details'
103
+ ]
104
+ };
105
+ const formattedMessage = [
106
+ `❌ ${operationError.code}: ${operationError.message}`,
107
+ '',
108
+ `🔍 Cause: ${operationError.cause}`,
109
+ `💡 Solution: ${operationError.solution}`,
110
+ '',
111
+ '🛠️ Troubleshooting Steps:',
112
+ ...operationError.troubleshooting.map(step => ` • ${step}`)
113
+ ].join('\n');
114
+ return (0, auto_detection_js_1.createUniversalResponse)(false, input.action || 'unknown', formattedMessage, detection, 'git-sync', undefined, {
115
+ code: operationError.code,
116
+ message: formattedMessage,
117
+ cause: operationError.cause,
118
+ suggestion: operationError.solution
119
+ });
120
+ }
23
121
  }
24
122
  };
25
123
  //# sourceMappingURL=git-sync.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-sync.js","sourceRoot":"","sources":["../../src/tools/git-sync.ts"],"names":[],"mappings":";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CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAEhF,MAAM,cAAc,GAAG;gBACrB,IAAI,EAAE,sBAAsB;gBAC5B,OAAO,EAAE,0BAA0B,aAAa,CAAC,OAAO,EAAE;gBAC1D,KAAK,EAAE,6CAA6C;gBACpD,QAAQ,EAAE,uCAAuC;gBACjD,eAAe,EAAE;oBACf,mDAAmD;oBACnD,kDAAkD;oBAClD,sDAAsD;oBACtD,gEAAgE;oBAChE,oDAAoD;iBACrD;aACF,CAAC;YAEF,MAAM,gBAAgB,GAAG;gBACvB,KAAK,cAAc,CAAC,IAAI,KAAK,cAAc,CAAC,OAAO,EAAE;gBACrD,EAAE;gBACF,aAAa,cAAc,CAAC,KAAK,EAAE;gBACnC,gBAAgB,cAAc,CAAC,QAAQ,EAAE;gBACzC,EAAE;gBACF,4BAA4B;gBAC5B,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC;aAC7D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEb,OAAO,IAAA,2CAAuB,EAC5B,KAAK,EACL,KAAK,CAAC,MAAM,IAAI,SAAS,EACzB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,SAAS,EACT;gBACE,IAAI,EAAE,cAAc,CAAC,IAAI;gBACzB,OAAO,EAAE,gBAAgB;gBACzB,KAAK,EAAE,cAAc,CAAC,KAAK;gBAC3B,UAAU,EAAE,cAAc,CAAC,QAAQ;aACpC,CACF,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
@@ -14,6 +14,11 @@ export declare const gitWorkflowTool: {
14
14
  type: string;
15
15
  description: string;
16
16
  };
17
+ provider: {
18
+ type: string;
19
+ enum: string[];
20
+ description: string;
21
+ };
17
22
  message: {
18
23
  type: string;
19
24
  description: string;
@@ -68,6 +73,16 @@ export declare const gitWorkflowTool: {
68
73
  };
69
74
  };
70
75
  required: string[];
76
+ if: {
77
+ properties: {
78
+ action: {
79
+ enum: string[];
80
+ };
81
+ };
82
+ };
83
+ then: {
84
+ required: string[];
85
+ };
71
86
  };
72
87
  handler(input: any): Promise<UniversalResponse>;
73
88
  };
@@ -1 +1 @@
1
- {"version":3,"file":"git-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/git-workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,iBAAiB,EAAc,MAAM,4BAA4B,CAAC;AAy2BpG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAIL,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAyHtD,CAAC"}
1
+ {"version":3,"file":"git-workflow.d.ts","sourceRoot":"","sources":["../../src/tools/git-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,iBAAiB,EAAc,MAAM,4BAA4B,CAAC;AA06BpG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAIL,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC;CA6NtD,CAAC"}