@structured-world/gitlab-mcp 6.16.0 → 6.18.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/README.md +49 -0
- package/dist/src/cli/list-tools.js +25 -8
- package/dist/src/cli/list-tools.js.map +1 -1
- package/dist/src/cli-utils.d.ts +4 -0
- package/dist/src/cli-utils.js +26 -0
- package/dist/src/cli-utils.js.map +1 -1
- package/dist/src/discovery/auto.d.ts +22 -0
- package/dist/src/discovery/auto.js +170 -0
- package/dist/src/discovery/auto.js.map +1 -0
- package/dist/src/discovery/git-remote.d.ts +19 -0
- package/dist/src/discovery/git-remote.js +197 -0
- package/dist/src/discovery/git-remote.js.map +1 -0
- package/dist/src/discovery/index.d.ts +3 -0
- package/dist/src/discovery/index.js +16 -0
- package/dist/src/discovery/index.js.map +1 -0
- package/dist/src/discovery/profile-matcher.d.ts +8 -0
- package/dist/src/discovery/profile-matcher.js +40 -0
- package/dist/src/discovery/profile-matcher.js.map +1 -0
- package/dist/src/entities/core/schema-readonly.d.ts +6 -6
- package/dist/src/entities/mrs/registry.js +19 -1
- package/dist/src/entities/mrs/registry.js.map +1 -1
- package/dist/src/entities/mrs/schema.d.ts +13 -1
- package/dist/src/entities/mrs/schema.js +16 -0
- package/dist/src/entities/mrs/schema.js.map +1 -1
- package/dist/src/entities/workitems/schema-readonly.d.ts +2 -2
- package/dist/src/entities/workitems/schema.d.ts +1 -1
- package/dist/src/handlers.d.ts +4 -0
- package/dist/src/handlers.js +76 -1
- package/dist/src/handlers.js.map +1 -1
- package/dist/src/logger.js +8 -4
- package/dist/src/logger.js.map +1 -1
- package/dist/src/main.js +93 -11
- package/dist/src/main.js.map +1 -1
- package/dist/src/services/ToolAvailability.d.ts +12 -2
- package/dist/src/services/ToolAvailability.js +200 -3
- package/dist/src/services/ToolAvailability.js.map +1 -1
- package/dist/src/utils/error-handler.d.ts +69 -0
- package/dist/src/utils/error-handler.js +518 -0
- package/dist/src/utils/error-handler.js.map +1 -0
- package/dist/src/utils/fetch.js.map +1 -1
- package/dist/src/utils/namespace.d.ts +1 -0
- package/dist/src/utils/namespace.js +11 -0
- package/dist/src/utils/namespace.js.map +1 -1
- package/dist/structured-world-gitlab-mcp-6.18.0.tgz +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/structured-world-gitlab-mcp-6.16.0.tgz +0 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StructuredToolError = void 0;
|
|
4
|
+
exports.handleGitLabError = handleGitLabError;
|
|
5
|
+
exports.createMissingFieldsError = createMissingFieldsError;
|
|
6
|
+
exports.createInvalidActionError = createInvalidActionError;
|
|
7
|
+
exports.createTypeMismatchError = createTypeMismatchError;
|
|
8
|
+
exports.createValidationError = createValidationError;
|
|
9
|
+
exports.isStructuredToolError = isStructuredToolError;
|
|
10
|
+
const ConnectionManager_js_1 = require("../services/ConnectionManager.js");
|
|
11
|
+
const FEATURE_METADATA = {
|
|
12
|
+
workItems: {
|
|
13
|
+
name: "Work Items",
|
|
14
|
+
requiredTier: "Free",
|
|
15
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/work_items/",
|
|
16
|
+
alternatives: [],
|
|
17
|
+
},
|
|
18
|
+
epics: {
|
|
19
|
+
name: "Epics",
|
|
20
|
+
requiredTier: "Premium",
|
|
21
|
+
docsUrl: "https://docs.gitlab.com/ee/user/group/epics/",
|
|
22
|
+
alternatives: [
|
|
23
|
+
{
|
|
24
|
+
action: "Use issues for tracking",
|
|
25
|
+
description: "Create issues with labels to organize work instead of epics",
|
|
26
|
+
available_on: "Free",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
action: "Use milestones",
|
|
30
|
+
description: "Group related issues under milestones for release planning",
|
|
31
|
+
available_on: "Free",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
iterations: {
|
|
36
|
+
name: "Iterations",
|
|
37
|
+
requiredTier: "Premium",
|
|
38
|
+
docsUrl: "https://docs.gitlab.com/ee/user/group/iterations/",
|
|
39
|
+
alternatives: [
|
|
40
|
+
{
|
|
41
|
+
action: "Use milestones",
|
|
42
|
+
description: "Use milestones to track time-boxed work periods",
|
|
43
|
+
available_on: "Free",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
roadmaps: {
|
|
48
|
+
name: "Roadmaps",
|
|
49
|
+
requiredTier: "Premium",
|
|
50
|
+
docsUrl: "https://docs.gitlab.com/ee/user/group/roadmap/",
|
|
51
|
+
alternatives: [
|
|
52
|
+
{
|
|
53
|
+
action: "Use milestone views",
|
|
54
|
+
description: "View milestones timeline for basic roadmap functionality",
|
|
55
|
+
available_on: "Free",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
portfolioManagement: {
|
|
60
|
+
name: "Portfolio Management",
|
|
61
|
+
requiredTier: "Ultimate",
|
|
62
|
+
docsUrl: "https://docs.gitlab.com/ee/user/group/planning_hierarchy/",
|
|
63
|
+
alternatives: [
|
|
64
|
+
{
|
|
65
|
+
action: "Use group-level milestones",
|
|
66
|
+
description: "Track progress across projects using group milestones",
|
|
67
|
+
available_on: "Free",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
advancedSearch: {
|
|
72
|
+
name: "Advanced Search",
|
|
73
|
+
requiredTier: "Premium",
|
|
74
|
+
docsUrl: "https://docs.gitlab.com/ee/user/search/advanced_search.html",
|
|
75
|
+
alternatives: [
|
|
76
|
+
{
|
|
77
|
+
action: "Use basic search",
|
|
78
|
+
description: "Use standard GitLab search functionality",
|
|
79
|
+
available_on: "Free",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
codeReview: {
|
|
84
|
+
name: "Code Review Analytics",
|
|
85
|
+
requiredTier: "Premium",
|
|
86
|
+
docsUrl: "https://docs.gitlab.com/ee/user/analytics/code_review_analytics.html",
|
|
87
|
+
alternatives: [],
|
|
88
|
+
},
|
|
89
|
+
securityDashboard: {
|
|
90
|
+
name: "Security Dashboard",
|
|
91
|
+
requiredTier: "Ultimate",
|
|
92
|
+
docsUrl: "https://docs.gitlab.com/ee/user/application_security/security_dashboard/",
|
|
93
|
+
alternatives: [],
|
|
94
|
+
},
|
|
95
|
+
complianceFramework: {
|
|
96
|
+
name: "Compliance Framework",
|
|
97
|
+
requiredTier: "Ultimate",
|
|
98
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/settings/compliance_frameworks.html",
|
|
99
|
+
alternatives: [],
|
|
100
|
+
},
|
|
101
|
+
valueStreamAnalytics: {
|
|
102
|
+
name: "Value Stream Analytics",
|
|
103
|
+
requiredTier: "Premium",
|
|
104
|
+
docsUrl: "https://docs.gitlab.com/ee/user/group/value_stream_analytics/",
|
|
105
|
+
alternatives: [],
|
|
106
|
+
},
|
|
107
|
+
customFields: {
|
|
108
|
+
name: "Custom Fields",
|
|
109
|
+
requiredTier: "Ultimate",
|
|
110
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/working_with_projects.html",
|
|
111
|
+
alternatives: [
|
|
112
|
+
{
|
|
113
|
+
action: "Use labels",
|
|
114
|
+
description: "Use labels to categorize and tag work items",
|
|
115
|
+
available_on: "Free",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
okrs: {
|
|
120
|
+
name: "OKRs (Objectives and Key Results)",
|
|
121
|
+
requiredTier: "Ultimate",
|
|
122
|
+
docsUrl: "https://docs.gitlab.com/ee/user/okrs/",
|
|
123
|
+
alternatives: [
|
|
124
|
+
{
|
|
125
|
+
action: "Use issues with labels",
|
|
126
|
+
description: "Track objectives as issues with specific labels",
|
|
127
|
+
available_on: "Free",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
healthStatus: {
|
|
132
|
+
name: "Health Status",
|
|
133
|
+
requiredTier: "Ultimate",
|
|
134
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#health-status",
|
|
135
|
+
alternatives: [
|
|
136
|
+
{
|
|
137
|
+
action: "Use labels for status",
|
|
138
|
+
description: "Create labels like 'on-track', 'at-risk', 'needs-attention'",
|
|
139
|
+
available_on: "Free",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
weight: {
|
|
144
|
+
name: "Issue Weight",
|
|
145
|
+
requiredTier: "Premium",
|
|
146
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/issues/issue_weight.html",
|
|
147
|
+
alternatives: [
|
|
148
|
+
{
|
|
149
|
+
action: "Use labels for estimation",
|
|
150
|
+
description: "Create labels like 'size::S', 'size::M', 'size::L' for estimation",
|
|
151
|
+
available_on: "Free",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
multiLevelEpics: {
|
|
156
|
+
name: "Multi-level Epics",
|
|
157
|
+
requiredTier: "Ultimate",
|
|
158
|
+
docsUrl: "https://docs.gitlab.com/ee/user/group/epics/manage_epics.html#multi-level-child-epics",
|
|
159
|
+
alternatives: [
|
|
160
|
+
{
|
|
161
|
+
action: "Use flat epics",
|
|
162
|
+
description: "Organize work with single-level epics (Premium)",
|
|
163
|
+
available_on: "Premium",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
serviceDesk: {
|
|
168
|
+
name: "Service Desk",
|
|
169
|
+
requiredTier: "Premium",
|
|
170
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/service_desk/",
|
|
171
|
+
alternatives: [],
|
|
172
|
+
},
|
|
173
|
+
requirements: {
|
|
174
|
+
name: "Requirements Management",
|
|
175
|
+
requiredTier: "Ultimate",
|
|
176
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/requirements/",
|
|
177
|
+
alternatives: [
|
|
178
|
+
{
|
|
179
|
+
action: "Use issues",
|
|
180
|
+
description: "Track requirements as issues with a dedicated label",
|
|
181
|
+
available_on: "Free",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
},
|
|
185
|
+
qualityManagement: {
|
|
186
|
+
name: "Quality Management",
|
|
187
|
+
requiredTier: "Ultimate",
|
|
188
|
+
docsUrl: "https://docs.gitlab.com/ee/ci/testing/",
|
|
189
|
+
alternatives: [],
|
|
190
|
+
},
|
|
191
|
+
timeTracking: {
|
|
192
|
+
name: "Time Tracking",
|
|
193
|
+
requiredTier: "Premium",
|
|
194
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/time_tracking.html",
|
|
195
|
+
alternatives: [],
|
|
196
|
+
},
|
|
197
|
+
crmContacts: {
|
|
198
|
+
name: "CRM Contacts",
|
|
199
|
+
requiredTier: "Ultimate",
|
|
200
|
+
docsUrl: "https://docs.gitlab.com/ee/user/crm/",
|
|
201
|
+
alternatives: [],
|
|
202
|
+
},
|
|
203
|
+
vulnerabilities: {
|
|
204
|
+
name: "Vulnerability Management",
|
|
205
|
+
requiredTier: "Ultimate",
|
|
206
|
+
docsUrl: "https://docs.gitlab.com/ee/user/application_security/vulnerabilities/",
|
|
207
|
+
alternatives: [],
|
|
208
|
+
},
|
|
209
|
+
errorTracking: {
|
|
210
|
+
name: "Error Tracking",
|
|
211
|
+
requiredTier: "Ultimate",
|
|
212
|
+
docsUrl: "https://docs.gitlab.com/ee/operations/error_tracking.html",
|
|
213
|
+
alternatives: [],
|
|
214
|
+
},
|
|
215
|
+
designManagement: {
|
|
216
|
+
name: "Design Management",
|
|
217
|
+
requiredTier: "Premium",
|
|
218
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/issues/design_management.html",
|
|
219
|
+
alternatives: [],
|
|
220
|
+
},
|
|
221
|
+
linkedResources: {
|
|
222
|
+
name: "Linked Resources",
|
|
223
|
+
requiredTier: "Premium",
|
|
224
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/issues/related_issues.html",
|
|
225
|
+
alternatives: [],
|
|
226
|
+
},
|
|
227
|
+
emailParticipants: {
|
|
228
|
+
name: "Email Participants",
|
|
229
|
+
requiredTier: "Premium",
|
|
230
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#add-an-email-participant",
|
|
231
|
+
alternatives: [],
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
function detectTierRestriction(tool, action, toolArgs) {
|
|
235
|
+
let connectionManager;
|
|
236
|
+
try {
|
|
237
|
+
connectionManager = ConnectionManager_js_1.ConnectionManager.getInstance();
|
|
238
|
+
}
|
|
239
|
+
catch {
|
|
240
|
+
return null;
|
|
241
|
+
}
|
|
242
|
+
const currentTierRaw = connectionManager.getTier();
|
|
243
|
+
const currentTier = normalizeTier(currentTierRaw);
|
|
244
|
+
if (tool === "browse_work_items" || tool === "manage_work_item") {
|
|
245
|
+
const restriction = checkWorkItemTypeRestriction(connectionManager, toolArgs, currentTier);
|
|
246
|
+
if (restriction)
|
|
247
|
+
return restriction;
|
|
248
|
+
}
|
|
249
|
+
if (tool === "list_group_iterations") {
|
|
250
|
+
if (!connectionManager.isFeatureAvailable("iterations")) {
|
|
251
|
+
return createRestrictionInfo("iterations", currentTier);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if ((tool === "list_webhooks" || tool === "manage_webhook") && toolArgs?.scope === "group") {
|
|
255
|
+
if (!connectionManager.isFeatureAvailable("serviceDesk")) {
|
|
256
|
+
return {
|
|
257
|
+
feature: "serviceDesk",
|
|
258
|
+
name: "Group Webhooks",
|
|
259
|
+
requiredTier: "Premium",
|
|
260
|
+
currentTier,
|
|
261
|
+
alternatives: [
|
|
262
|
+
{
|
|
263
|
+
action: "Use project-level webhooks",
|
|
264
|
+
description: "Configure webhooks on individual projects instead",
|
|
265
|
+
available_on: "Free",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
docsUrl: "https://docs.gitlab.com/ee/user/project/integrations/webhooks.html",
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
function checkWorkItemTypeRestriction(connectionManager, toolArgs, currentTier) {
|
|
275
|
+
if (!toolArgs)
|
|
276
|
+
return null;
|
|
277
|
+
const types = extractWorkItemTypes(toolArgs);
|
|
278
|
+
if (types.includes("EPIC")) {
|
|
279
|
+
if (!connectionManager.isFeatureAvailable("epics")) {
|
|
280
|
+
return createRestrictionInfo("epics", currentTier);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if (types.includes("OBJECTIVE") || types.includes("KEY_RESULT")) {
|
|
284
|
+
if (!connectionManager.isFeatureAvailable("okrs")) {
|
|
285
|
+
return createRestrictionInfo("okrs", currentTier);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (types.includes("REQUIREMENT")) {
|
|
289
|
+
if (!connectionManager.isFeatureAvailable("requirements")) {
|
|
290
|
+
return createRestrictionInfo("requirements", currentTier);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return null;
|
|
294
|
+
}
|
|
295
|
+
function extractWorkItemTypes(toolArgs) {
|
|
296
|
+
const types = [];
|
|
297
|
+
if (Array.isArray(toolArgs.types)) {
|
|
298
|
+
types.push(...toolArgs.types.map(t => String(t).toUpperCase()));
|
|
299
|
+
}
|
|
300
|
+
if (typeof toolArgs.workItemType === "string") {
|
|
301
|
+
types.push(toolArgs.workItemType.toUpperCase());
|
|
302
|
+
}
|
|
303
|
+
if (typeof toolArgs.type === "string") {
|
|
304
|
+
types.push(toolArgs.type.toUpperCase());
|
|
305
|
+
}
|
|
306
|
+
return types;
|
|
307
|
+
}
|
|
308
|
+
function createRestrictionInfo(feature, currentTier) {
|
|
309
|
+
const metadata = FEATURE_METADATA[feature];
|
|
310
|
+
return {
|
|
311
|
+
feature,
|
|
312
|
+
name: metadata.name,
|
|
313
|
+
requiredTier: metadata.requiredTier,
|
|
314
|
+
currentTier,
|
|
315
|
+
alternatives: metadata.alternatives,
|
|
316
|
+
docsUrl: metadata.docsUrl,
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
function normalizeTier(tier) {
|
|
320
|
+
const lower = tier.toLowerCase();
|
|
321
|
+
if (lower === "ultimate" || lower === "gold")
|
|
322
|
+
return "Ultimate";
|
|
323
|
+
if (lower === "premium" || lower === "silver")
|
|
324
|
+
return "Premium";
|
|
325
|
+
return "Free";
|
|
326
|
+
}
|
|
327
|
+
function handleGitLabError(error, tool, action, toolArgs) {
|
|
328
|
+
const { status, message, error: errorMsg, error_description } = error;
|
|
329
|
+
const rawMessage = message ?? errorMsg ?? error_description ?? "Unknown error";
|
|
330
|
+
if (status === 403) {
|
|
331
|
+
const tierRestriction = detectTierRestriction(tool, action, toolArgs);
|
|
332
|
+
if (tierRestriction) {
|
|
333
|
+
return createTierRestrictedError(tool, action, status, tierRestriction);
|
|
334
|
+
}
|
|
335
|
+
return createPermissionDeniedError(tool, action, status, rawMessage);
|
|
336
|
+
}
|
|
337
|
+
if (status === 404) {
|
|
338
|
+
return createNotFoundError(tool, action, status, rawMessage);
|
|
339
|
+
}
|
|
340
|
+
if (status === 429) {
|
|
341
|
+
return {
|
|
342
|
+
error_code: "RATE_LIMITED",
|
|
343
|
+
tool,
|
|
344
|
+
action,
|
|
345
|
+
http_status: status,
|
|
346
|
+
message: "Rate limit exceeded. Please wait before retrying.",
|
|
347
|
+
suggested_fix: "Wait a few minutes and try again, or reduce request frequency",
|
|
348
|
+
gitlab_error: rawMessage,
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
if (status >= 500) {
|
|
352
|
+
return {
|
|
353
|
+
error_code: "SERVER_ERROR",
|
|
354
|
+
tool,
|
|
355
|
+
action,
|
|
356
|
+
http_status: status,
|
|
357
|
+
message: "GitLab server error. The service may be temporarily unavailable.",
|
|
358
|
+
suggested_fix: "Wait and retry. If the problem persists, check GitLab status page.",
|
|
359
|
+
gitlab_error: rawMessage,
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
return {
|
|
363
|
+
error_code: "API_ERROR",
|
|
364
|
+
tool,
|
|
365
|
+
action,
|
|
366
|
+
http_status: status,
|
|
367
|
+
message: rawMessage,
|
|
368
|
+
suggested_fix: "Check the GitLab API documentation for this endpoint",
|
|
369
|
+
gitlab_error: rawMessage,
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
function createTierRestrictedError(tool, action, status, restriction) {
|
|
373
|
+
return {
|
|
374
|
+
error_code: "TIER_RESTRICTED",
|
|
375
|
+
tool,
|
|
376
|
+
action,
|
|
377
|
+
http_status: status,
|
|
378
|
+
tier_required: restriction.requiredTier,
|
|
379
|
+
current_tier: restriction.currentTier,
|
|
380
|
+
feature_name: restriction.name,
|
|
381
|
+
message: `${restriction.name} requires GitLab ${restriction.requiredTier} or higher`,
|
|
382
|
+
suggested_fix: restriction.alternatives.length > 0
|
|
383
|
+
? `Upgrade to GitLab ${restriction.requiredTier}, or use one of the alternatives`
|
|
384
|
+
: `Upgrade to GitLab ${restriction.requiredTier} to access this feature`,
|
|
385
|
+
alternatives: restriction.alternatives.length > 0 ? restriction.alternatives : undefined,
|
|
386
|
+
docs_url: restriction.docsUrl,
|
|
387
|
+
upgrade_url: "https://about.gitlab.com/pricing/",
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function createPermissionDeniedError(tool, action, status, rawMessage) {
|
|
391
|
+
const baseSuggestedFix = "Check your access level for this project/group. Reporter access or higher may be required.";
|
|
392
|
+
const suggestedFix = rawMessage && rawMessage !== "Unknown error" && !rawMessage.includes("403")
|
|
393
|
+
? `${baseSuggestedFix} GitLab message: ${rawMessage}`
|
|
394
|
+
: baseSuggestedFix;
|
|
395
|
+
return {
|
|
396
|
+
error_code: "PERMISSION_DENIED",
|
|
397
|
+
tool,
|
|
398
|
+
action,
|
|
399
|
+
http_status: status,
|
|
400
|
+
message: "You don't have permission for this action",
|
|
401
|
+
suggested_fix: suggestedFix,
|
|
402
|
+
alternatives: [
|
|
403
|
+
{
|
|
404
|
+
action: "Verify your access level",
|
|
405
|
+
description: "Check your role in the project settings or contact a project maintainer",
|
|
406
|
+
available_on: "Free",
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
function createNotFoundError(tool, action, status, rawMessage) {
|
|
412
|
+
let resourceType;
|
|
413
|
+
let resourceId;
|
|
414
|
+
const lowerMessage = rawMessage.toLowerCase();
|
|
415
|
+
if (lowerMessage.includes("project")) {
|
|
416
|
+
resourceType = "project";
|
|
417
|
+
}
|
|
418
|
+
else if (lowerMessage.includes("merge request") || lowerMessage.includes("mr")) {
|
|
419
|
+
resourceType = "merge_request";
|
|
420
|
+
}
|
|
421
|
+
else if (lowerMessage.includes("issue")) {
|
|
422
|
+
resourceType = "issue";
|
|
423
|
+
}
|
|
424
|
+
else if (lowerMessage.includes("pipeline")) {
|
|
425
|
+
resourceType = "pipeline";
|
|
426
|
+
}
|
|
427
|
+
else if (lowerMessage.includes("branch")) {
|
|
428
|
+
resourceType = "branch";
|
|
429
|
+
}
|
|
430
|
+
else if (lowerMessage.includes("user")) {
|
|
431
|
+
resourceType = "user";
|
|
432
|
+
}
|
|
433
|
+
const pathMatch = rawMessage.match(/['"]([a-zA-Z0-9_-]+(?:\/[a-zA-Z0-9_-]+)+)['"]/);
|
|
434
|
+
if (pathMatch) {
|
|
435
|
+
resourceId = pathMatch[1];
|
|
436
|
+
}
|
|
437
|
+
if (!resourceId) {
|
|
438
|
+
const contextMatch = rawMessage.match(/(?:project|issue|merge.?request|mr|pipeline|branch|user|group)\s+#?(\d+)/i);
|
|
439
|
+
if (contextMatch) {
|
|
440
|
+
resourceId = contextMatch[1];
|
|
441
|
+
}
|
|
442
|
+
else {
|
|
443
|
+
const longIdMatch = rawMessage.match(/\b(\d{4,})\b/);
|
|
444
|
+
if (longIdMatch) {
|
|
445
|
+
resourceId = longIdMatch[1];
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return {
|
|
450
|
+
error_code: "NOT_FOUND",
|
|
451
|
+
tool,
|
|
452
|
+
action,
|
|
453
|
+
http_status: status,
|
|
454
|
+
message: "Resource not found or you don't have access to it",
|
|
455
|
+
suggested_fix: "Verify the ID/path is correct and you have at least Reporter access to the project",
|
|
456
|
+
resource_type: resourceType,
|
|
457
|
+
resource_id: resourceId,
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
function createMissingFieldsError(tool, action, missingFields, actionRequiredFields) {
|
|
461
|
+
return {
|
|
462
|
+
error_code: "MISSING_REQUIRED_FIELD",
|
|
463
|
+
tool,
|
|
464
|
+
action,
|
|
465
|
+
message: `Missing required field(s): ${missingFields.join(", ")}`,
|
|
466
|
+
missing_fields: missingFields,
|
|
467
|
+
suggested_fix: `Add required fields: ${missingFields.join(", ")}`,
|
|
468
|
+
action_required_fields: actionRequiredFields,
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
function createInvalidActionError(tool, action, validActions) {
|
|
472
|
+
return {
|
|
473
|
+
error_code: "INVALID_ACTION",
|
|
474
|
+
tool,
|
|
475
|
+
action,
|
|
476
|
+
message: `Invalid action '${action}'. Valid actions are: ${validActions.join(", ")}`,
|
|
477
|
+
suggested_fix: `Use one of the valid actions: ${validActions.join(", ")}`,
|
|
478
|
+
valid_actions: validActions,
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
function createTypeMismatchError(tool, action, field, expected, received) {
|
|
482
|
+
return {
|
|
483
|
+
error_code: "TYPE_MISMATCH",
|
|
484
|
+
tool,
|
|
485
|
+
action,
|
|
486
|
+
message: `Type mismatch for field '${field}': expected ${expected}, got ${received}`,
|
|
487
|
+
invalid_fields: [{ field, expected, received }],
|
|
488
|
+
suggested_fix: `Provide a ${expected} value for '${field}'`,
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
function createValidationError(tool, action, zodMessage) {
|
|
492
|
+
return {
|
|
493
|
+
error_code: "VALIDATION_ERROR",
|
|
494
|
+
tool,
|
|
495
|
+
action,
|
|
496
|
+
message: zodMessage,
|
|
497
|
+
suggested_fix: "Check the tool documentation for correct parameter format",
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
class StructuredToolError extends Error {
|
|
501
|
+
structuredError;
|
|
502
|
+
constructor(structuredError) {
|
|
503
|
+
super(structuredError.message);
|
|
504
|
+
this.name = "StructuredToolError";
|
|
505
|
+
this.structuredError = structuredError;
|
|
506
|
+
if (Error.captureStackTrace) {
|
|
507
|
+
Error.captureStackTrace(this, StructuredToolError);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
toJSON() {
|
|
511
|
+
return this.structuredError;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
exports.StructuredToolError = StructuredToolError;
|
|
515
|
+
function isStructuredToolError(error) {
|
|
516
|
+
return error instanceof StructuredToolError;
|
|
517
|
+
}
|
|
518
|
+
//# sourceMappingURL=error-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../src/utils/error-handler.ts"],"names":[],"mappings":";;;AAmkBA,8CA6DC;AA2ID,4DAeC;AAKD,4DAaC;AAKD,0DAeC;AAKD,sDAYC;AAoCD,sDAEC;AA72BD,2EAAqE;AAiKrE,MAAM,gBAAgB,GAQlB;IACF,SAAS,EAAE;QACT,IAAI,EAAE,YAAY;QAClB,YAAY,EAAE,MAAM;QACpB,OAAO,EAAE,qDAAqD;QAC9D,YAAY,EAAE,EAAE;KACjB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO;QACb,YAAY,EAAE,SAAS;QACvB,OAAO,EAAE,8CAA8C;QACvD,YAAY,EAAE;YACZ;gBACE,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EAAE,6DAA6D;gBAC1E,YAAY,EAAE,MAAM;aACrB;YACD;gBACE,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,4DAA4D;gBACzE,YAAY,EAAE,MAAM;aACrB;SAC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EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC/C,aAAa,EAAE,aAAa,QAAQ,eAAe,KAAK,GAAG;KAC5D,CAAC;AACJ,CAAC;AAKD,SAAgB,qBAAqB,CACnC,IAAY,EACZ,MAAc,EACd,UAAkB;IAElB,OAAO;QACL,UAAU,EAAE,kBAAkB;QAC9B,IAAI;QACJ,MAAM;QACN,OAAO,EAAE,UAAU;QACnB,aAAa,EAAE,2DAA2D;KAC3E,CAAC;AACJ,CAAC;AAWD,MAAa,mBAAoB,SAAQ,KAAK;IAC5B,eAAe,CAAwB;IAEvD,YAAY,eAAsC;QAChD,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QAGvC,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IAKD,MAAM;QACJ,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;CACF;AApBD,kDAoBC;AAKD,SAAgB,qBAAqB,CAAC,KAAc;IAClD,OAAO,KAAK,YAAY,mBAAmB,CAAC;AAC9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../src/utils/fetch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../src/utils/fetch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoLA,wDAGC;AAGD,gDAGC;AAKD,sCA2DC;AAED,oDAGC;AArPD,uCAAyB;AACzB,sCAAmC;AACnC,sCASmB;AACnB,0CAAiE;AAGjE,MAAM,MAAM,GAAG,OAAO,C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YAC1D,MAAM,IAAI,KAAK,CAAC,4BAA4B,uBAAc,IAAI,CAAC,CAAC;QAClE,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAgB,oBAAoB;IAClC,gBAAgB,GAAG,SAAS,CAAC;IAC7B,qBAAqB,GAAG,KAAK,CAAC;AAChC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function extractNamespaceFromPath(projectPath: string): string | undefined;
|
|
1
2
|
export declare function isLikelyProjectPath(namespacePath: string): boolean;
|
|
2
3
|
export declare function detectNamespaceType(namespacePath: string): Promise<"project" | "group">;
|
|
3
4
|
export declare function resolveNamespaceForAPI(namespacePath: string): Promise<{
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractNamespaceFromPath = extractNamespaceFromPath;
|
|
3
4
|
exports.isLikelyProjectPath = isLikelyProjectPath;
|
|
4
5
|
exports.detectNamespaceType = detectNamespaceType;
|
|
5
6
|
exports.resolveNamespaceForAPI = resolveNamespaceForAPI;
|
|
6
7
|
const fetch_1 = require("./fetch");
|
|
8
|
+
function extractNamespaceFromPath(projectPath) {
|
|
9
|
+
if (!projectPath) {
|
|
10
|
+
return undefined;
|
|
11
|
+
}
|
|
12
|
+
const pathParts = projectPath.split("/");
|
|
13
|
+
if (pathParts.length === 1) {
|
|
14
|
+
return projectPath;
|
|
15
|
+
}
|
|
16
|
+
return pathParts.slice(0, -1).join("/");
|
|
17
|
+
}
|
|
7
18
|
function isLikelyProjectPath(namespacePath) {
|
|
8
19
|
return namespacePath.includes("/");
|
|
9
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../../../src/utils/namespace.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../../../src/utils/namespace.ts"],"names":[],"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