@structured-world/gitlab-mcp 6.7.0 → 6.9.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 (115) hide show
  1. package/LICENSE +202 -21
  2. package/LICENSE.MIT +21 -0
  3. package/README.md +182 -3
  4. package/dist/src/config.d.ts +6 -0
  5. package/dist/src/config.js +89 -1
  6. package/dist/src/config.js.map +1 -1
  7. package/dist/src/entities/core/registry.js +68 -63
  8. package/dist/src/entities/core/registry.js.map +1 -1
  9. package/dist/src/entities/core/schema-readonly.d.ts +93 -36
  10. package/dist/src/entities/core/schema-readonly.js +146 -121
  11. package/dist/src/entities/core/schema-readonly.js.map +1 -1
  12. package/dist/src/entities/core/schema.d.ts +33 -23
  13. package/dist/src/entities/core/schema.js +65 -60
  14. package/dist/src/entities/core/schema.js.map +1 -1
  15. package/dist/src/entities/files/registry.js +14 -21
  16. package/dist/src/entities/files/registry.js.map +1 -1
  17. package/dist/src/entities/files/schema-readonly.d.ts +8 -7
  18. package/dist/src/entities/files/schema-readonly.js +20 -25
  19. package/dist/src/entities/files/schema-readonly.js.map +1 -1
  20. package/dist/src/entities/files/schema.d.ts +22 -15
  21. package/dist/src/entities/files/schema.js +32 -73
  22. package/dist/src/entities/files/schema.js.map +1 -1
  23. package/dist/src/entities/integrations/index.d.ts +7 -0
  24. package/dist/src/entities/integrations/index.js +31 -0
  25. package/dist/src/entities/integrations/index.js.map +1 -0
  26. package/dist/src/entities/integrations/registry.d.ts +5 -0
  27. package/dist/src/entities/integrations/registry.js +120 -0
  28. package/dist/src/entities/integrations/registry.js.map +1 -0
  29. package/dist/src/entities/integrations/schema-readonly.d.ts +7 -0
  30. package/dist/src/entities/integrations/schema-readonly.js +10 -0
  31. package/dist/src/entities/integrations/schema-readonly.js.map +1 -0
  32. package/dist/src/entities/integrations/schema.d.ts +235 -0
  33. package/dist/src/entities/integrations/schema.js +112 -0
  34. package/dist/src/entities/integrations/schema.js.map +1 -0
  35. package/dist/src/entities/labels/registry.js +8 -7
  36. package/dist/src/entities/labels/registry.js.map +1 -1
  37. package/dist/src/entities/labels/schema-readonly.d.ts +8 -7
  38. package/dist/src/entities/labels/schema-readonly.js +20 -18
  39. package/dist/src/entities/labels/schema-readonly.js.map +1 -1
  40. package/dist/src/entities/labels/schema.d.ts +15 -8
  41. package/dist/src/entities/labels/schema.js +36 -27
  42. package/dist/src/entities/labels/schema.js.map +1 -1
  43. package/dist/src/entities/milestones/registry.js +7 -8
  44. package/dist/src/entities/milestones/registry.js.map +1 -1
  45. package/dist/src/entities/milestones/schema-readonly.d.ts +25 -10
  46. package/dist/src/entities/milestones/schema-readonly.js +47 -26
  47. package/dist/src/entities/milestones/schema-readonly.js.map +1 -1
  48. package/dist/src/entities/milestones/schema.d.ts +19 -9
  49. package/dist/src/entities/milestones/schema.js +31 -20
  50. package/dist/src/entities/milestones/schema.js.map +1 -1
  51. package/dist/src/entities/mrs/registry.js +75 -79
  52. package/dist/src/entities/mrs/registry.js.map +1 -1
  53. package/dist/src/entities/mrs/schema-readonly.d.ts +36 -23
  54. package/dist/src/entities/mrs/schema-readonly.js +197 -338
  55. package/dist/src/entities/mrs/schema-readonly.js.map +1 -1
  56. package/dist/src/entities/mrs/schema.d.ts +113 -37
  57. package/dist/src/entities/mrs/schema.js +140 -258
  58. package/dist/src/entities/mrs/schema.js.map +1 -1
  59. package/dist/src/entities/pipelines/registry.js +10 -4
  60. package/dist/src/entities/pipelines/registry.js.map +1 -1
  61. package/dist/src/entities/pipelines/schema-readonly.d.ts +30 -14
  62. package/dist/src/entities/pipelines/schema-readonly.js +62 -52
  63. package/dist/src/entities/pipelines/schema-readonly.js.map +1 -1
  64. package/dist/src/entities/pipelines/schema.d.ts +23 -16
  65. package/dist/src/entities/pipelines/schema.js +44 -26
  66. package/dist/src/entities/pipelines/schema.js.map +1 -1
  67. package/dist/src/entities/snippets/registry.js +79 -67
  68. package/dist/src/entities/snippets/registry.js.map +1 -1
  69. package/dist/src/entities/snippets/schema-readonly.d.ts +8 -9
  70. package/dist/src/entities/snippets/schema-readonly.js +30 -35
  71. package/dist/src/entities/snippets/schema-readonly.js.map +1 -1
  72. package/dist/src/entities/snippets/schema.d.ts +7 -11
  73. package/dist/src/entities/snippets/schema.js +31 -65
  74. package/dist/src/entities/snippets/schema.js.map +1 -1
  75. package/dist/src/entities/variables/registry.js +9 -5
  76. package/dist/src/entities/variables/registry.js.map +1 -1
  77. package/dist/src/entities/variables/schema-readonly.d.ts +9 -9
  78. package/dist/src/entities/variables/schema-readonly.js +22 -18
  79. package/dist/src/entities/variables/schema-readonly.js.map +1 -1
  80. package/dist/src/entities/variables/schema.d.ts +24 -7
  81. package/dist/src/entities/variables/schema.js +67 -38
  82. package/dist/src/entities/variables/schema.js.map +1 -1
  83. package/dist/src/entities/webhooks/registry.js +48 -46
  84. package/dist/src/entities/webhooks/registry.js.map +1 -1
  85. package/dist/src/entities/webhooks/schema-readonly.d.ts +9 -8
  86. package/dist/src/entities/webhooks/schema-readonly.js +14 -9
  87. package/dist/src/entities/webhooks/schema-readonly.js.map +1 -1
  88. package/dist/src/entities/webhooks/schema.d.ts +79 -26
  89. package/dist/src/entities/webhooks/schema.js +70 -61
  90. package/dist/src/entities/webhooks/schema.js.map +1 -1
  91. package/dist/src/entities/wiki/registry.js +7 -4
  92. package/dist/src/entities/wiki/registry.js.map +1 -1
  93. package/dist/src/entities/wiki/schema-readonly.d.ts +7 -7
  94. package/dist/src/entities/wiki/schema-readonly.js +11 -15
  95. package/dist/src/entities/wiki/schema-readonly.js.map +1 -1
  96. package/dist/src/entities/wiki/schema.d.ts +19 -8
  97. package/dist/src/entities/wiki/schema.js +32 -29
  98. package/dist/src/entities/wiki/schema.js.map +1 -1
  99. package/dist/src/entities/workitems/registry.js +7 -8
  100. package/dist/src/entities/workitems/registry.js.map +1 -1
  101. package/dist/src/entities/workitems/schema-readonly.d.ts +7 -8
  102. package/dist/src/entities/workitems/schema-readonly.js +12 -14
  103. package/dist/src/entities/workitems/schema-readonly.js.map +1 -1
  104. package/dist/src/entities/workitems/schema.d.ts +17 -11
  105. package/dist/src/entities/workitems/schema.js +25 -25
  106. package/dist/src/entities/workitems/schema.js.map +1 -1
  107. package/dist/src/registry-manager.js +32 -11
  108. package/dist/src/registry-manager.js.map +1 -1
  109. package/dist/src/utils/schema-utils.d.ts +28 -0
  110. package/dist/src/utils/schema-utils.js +244 -0
  111. package/dist/src/utils/schema-utils.js.map +1 -0
  112. package/dist/structured-world-gitlab-mcp-6.9.0.tgz +0 -0
  113. package/dist/tsconfig.build.tsbuildinfo +1 -1
  114. package/package.json +2 -2
  115. package/dist/structured-world-gitlab-mcp-6.7.0.tgz +0 -0
@@ -124,15 +124,8 @@ export declare const GitLabPipelineTriggerJobSchema: z.ZodObject<{
124
124
  web_url: z.ZodString;
125
125
  }, z.core.$strip>>;
126
126
  }, z.core.$strip>;
127
- export declare const BrowsePipelinesSchema: z.ZodObject<{
128
- action: z.ZodEnum<{
129
- list: "list";
130
- get: "get";
131
- jobs: "jobs";
132
- triggers: "triggers";
133
- job: "job";
134
- logs: "logs";
135
- }>;
127
+ export declare const BrowsePipelinesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
128
+ action: z.ZodLiteral<"list">;
136
129
  project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
137
130
  scope: z.ZodOptional<z.ZodEnum<{
138
131
  pending: "pending";
@@ -187,7 +180,16 @@ export declare const BrowsePipelinesSchema: z.ZodObject<{
187
180
  asc: "asc";
188
181
  desc: "desc";
189
182
  }>>;
190
- pipeline_id: z.ZodOptional<z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>>;
183
+ per_page: z.ZodOptional<z.ZodNumber>;
184
+ page: z.ZodOptional<z.ZodNumber>;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ action: z.ZodLiteral<"get">;
187
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
188
+ pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ action: z.ZodLiteral<"jobs">;
191
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
192
+ pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
191
193
  job_scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
192
194
  pending: "pending";
193
195
  failed: "failed";
@@ -198,6 +200,13 @@ export declare const BrowsePipelinesSchema: z.ZodObject<{
198
200
  canceled: "canceled";
199
201
  skipped: "skipped";
200
202
  }>>>;
203
+ include_retried: z.ZodOptional<z.ZodBoolean>;
204
+ per_page: z.ZodOptional<z.ZodNumber>;
205
+ page: z.ZodOptional<z.ZodNumber>;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ action: z.ZodLiteral<"triggers">;
208
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
209
+ pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
201
210
  trigger_scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
202
211
  pending: "pending";
203
212
  failed: "failed";
@@ -211,13 +220,20 @@ export declare const BrowsePipelinesSchema: z.ZodObject<{
211
220
  skipped: "skipped";
212
221
  }>>>;
213
222
  include_retried: z.ZodOptional<z.ZodBoolean>;
214
- job_id: z.ZodOptional<z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>>;
223
+ per_page: z.ZodOptional<z.ZodNumber>;
224
+ page: z.ZodOptional<z.ZodNumber>;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ action: z.ZodLiteral<"job">;
227
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
228
+ job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ action: z.ZodLiteral<"logs">;
231
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
232
+ job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
215
233
  limit: z.ZodOptional<z.ZodNumber>;
216
234
  max_lines: z.ZodOptional<z.ZodNumber>;
217
235
  start: z.ZodOptional<z.ZodNumber>;
218
- per_page: z.ZodOptional<z.ZodNumber>;
219
- page: z.ZodOptional<z.ZodNumber>;
220
- }, z.core.$strip>;
236
+ }, z.core.$strip>], "action">;
221
237
  export type BrowsePipelinesInput = z.infer<typeof BrowsePipelinesSchema>;
222
238
  export type GitLabPipeline = z.infer<typeof GitLabPipelineSchema>;
223
239
  export type GitLabPipelineJob = z.infer<typeof GitLabPipelineJobSchema>;
@@ -201,72 +201,82 @@ const TriggerJobScopeSchema = zod_1.z
201
201
  "preparing",
202
202
  ])
203
203
  .describe("Scope of trigger jobs to show");
204
- exports.BrowsePipelinesSchema = zod_1.z
205
- .object({
206
- action: zod_1.z
207
- .enum(["list", "get", "jobs", "triggers", "job", "logs"])
208
- .describe("Action to perform"),
209
- project_id: utils_1.requiredId.describe("Project ID or URL-encoded path"),
210
- scope: PipelineScopeSchema.optional().describe("For 'list': pipeline scope filter"),
211
- status: PipelineStatusSchema.optional().describe("For 'list': pipeline status filter"),
212
- source: PipelineSourceSchema.optional().describe("For 'list': pipeline source filter"),
213
- ref: zod_1.z.string().optional().describe("For 'list': the ref to filter by"),
214
- sha: zod_1.z.string().optional().describe("For 'list': the SHA to filter by"),
215
- yaml_errors: zod_1.z.boolean().optional().describe("For 'list': filter by YAML errors"),
216
- name: zod_1.z
217
- .string()
218
- .optional()
219
- .describe("For 'list': the name of the user who triggered the pipeline"),
220
- username: zod_1.z.string().optional().describe("For 'list': the username who triggered the pipeline"),
221
- updated_after: zod_1.z
222
- .string()
223
- .optional()
224
- .describe("For 'list': ISO 8601 datetime to filter by updated_after"),
225
- updated_before: zod_1.z
226
- .string()
227
- .optional()
228
- .describe("For 'list': ISO 8601 datetime to filter by updated_before"),
204
+ const projectIdField = utils_1.requiredId.describe("Project ID or URL-encoded path");
205
+ const ListPipelinesSchema = zod_1.z.object({
206
+ action: zod_1.z.literal("list").describe("List pipelines with filtering"),
207
+ project_id: projectIdField,
208
+ scope: PipelineScopeSchema.optional().describe("Pipeline scope filter"),
209
+ status: PipelineStatusSchema.optional().describe("Pipeline status filter"),
210
+ source: PipelineSourceSchema.optional().describe("Pipeline source filter"),
211
+ ref: zod_1.z.string().optional().describe("Filter by branch or tag ref"),
212
+ sha: zod_1.z.string().optional().describe("Filter by SHA"),
213
+ yaml_errors: zod_1.z.boolean().optional().describe("Filter by YAML errors"),
214
+ name: zod_1.z.string().optional().describe("Filter by name of user who triggered pipeline"),
215
+ username: zod_1.z.string().optional().describe("Filter by username who triggered pipeline"),
216
+ updated_after: zod_1.z.string().optional().describe("ISO 8601 datetime to filter by updated_after"),
217
+ updated_before: zod_1.z.string().optional().describe("ISO 8601 datetime to filter by updated_before"),
229
218
  order_by: zod_1.z
230
219
  .enum(["id", "status", "ref", "updated_at", "user_id"])
231
220
  .optional()
232
- .describe("For 'list': order pipelines by"),
233
- sort: zod_1.z.enum(["asc", "desc"]).optional().describe("For 'list': sort order"),
234
- pipeline_id: utils_1.requiredId
235
- .optional()
236
- .describe("The ID of the pipeline. Required for 'get', 'jobs', 'triggers' actions."),
237
- job_scope: zod_1.z.array(JobScopeSchema).optional().describe("For 'jobs': scope of jobs to show"),
221
+ .describe("Order pipelines by"),
222
+ sort: zod_1.z.enum(["asc", "desc"]).optional().describe("Sort order"),
223
+ per_page: zod_1.z.number().optional().describe("Number of items per page"),
224
+ page: zod_1.z.number().optional().describe("Page number"),
225
+ });
226
+ const GetPipelineSchema = zod_1.z.object({
227
+ action: zod_1.z.literal("get").describe("Get single pipeline details"),
228
+ project_id: projectIdField,
229
+ pipeline_id: utils_1.requiredId.describe("The ID of the pipeline"),
230
+ });
231
+ const ListPipelineJobsSchema = zod_1.z.object({
232
+ action: zod_1.z.literal("jobs").describe("List jobs in a pipeline"),
233
+ project_id: projectIdField,
234
+ pipeline_id: utils_1.requiredId.describe("The ID of the pipeline"),
235
+ job_scope: zod_1.z.array(JobScopeSchema).optional().describe("Scope of jobs to show"),
236
+ include_retried: zod_1.z.boolean().optional().describe("Include retried jobs in the response"),
237
+ per_page: zod_1.z.number().optional().describe("Number of items per page"),
238
+ page: zod_1.z.number().optional().describe("Page number"),
239
+ });
240
+ const ListPipelineTriggersSchema = zod_1.z.object({
241
+ action: zod_1.z.literal("triggers").describe("List bridge/trigger jobs in a pipeline"),
242
+ project_id: projectIdField,
243
+ pipeline_id: utils_1.requiredId.describe("The ID of the pipeline"),
238
244
  trigger_scope: zod_1.z
239
245
  .array(TriggerJobScopeSchema)
240
246
  .optional()
241
- .describe("For 'triggers': scope of trigger jobs to show"),
242
- include_retried: zod_1.z
243
- .boolean()
244
- .optional()
245
- .describe("For 'jobs'/'triggers': include retried jobs in the response"),
246
- job_id: utils_1.requiredId
247
- .optional()
248
- .describe("The ID of the job. Required for 'job' and 'logs' actions."),
247
+ .describe("Scope of trigger jobs to show"),
248
+ include_retried: zod_1.z.boolean().optional().describe("Include retried jobs in the response"),
249
+ per_page: zod_1.z.number().optional().describe("Number of items per page"),
250
+ page: zod_1.z.number().optional().describe("Page number"),
251
+ });
252
+ const GetJobSchema = zod_1.z.object({
253
+ action: zod_1.z.literal("job").describe("Get single job details"),
254
+ project_id: projectIdField,
255
+ job_id: utils_1.requiredId.describe("The ID of the job"),
256
+ });
257
+ const GetJobLogsSchema = zod_1.z.object({
258
+ action: zod_1.z.literal("logs").describe("Get job console output/logs"),
259
+ project_id: projectIdField,
260
+ job_id: utils_1.requiredId.describe("The ID of the job"),
249
261
  limit: zod_1.z
250
262
  .number()
251
263
  .optional()
252
- .describe("For 'logs': maximum number of lines to return. When combined with start, acts as line count from that position"),
264
+ .describe("Maximum number of lines to return. Combined with start, acts as line count"),
253
265
  max_lines: zod_1.z
254
266
  .number()
255
267
  .optional()
256
- .describe("For 'logs': maximum number of lines to return (alternative to limit)"),
268
+ .describe("Maximum number of lines to return (alternative to limit)"),
257
269
  start: zod_1.z
258
270
  .number()
259
271
  .optional()
260
- .describe("For 'logs': start from specific line number (0-based). Positive values start from beginning, negative values start from end (e.g., -100 = last 100 lines)"),
261
- per_page: zod_1.z.number().optional().describe("Number of items per page"),
262
- page: zod_1.z.number().optional().describe("Page number"),
263
- })
264
- .refine(data => !["get", "jobs", "triggers"].includes(data.action) || data.pipeline_id !== undefined, {
265
- message: "pipeline_id is required for 'get', 'jobs', and 'triggers' actions",
266
- path: ["pipeline_id"],
267
- })
268
- .refine(data => !["job", "logs"].includes(data.action) || data.job_id !== undefined, {
269
- message: "job_id is required for 'job' and 'logs' actions",
270
- path: ["job_id"],
272
+ .describe("Start from specific line number (0-based). Positive from beginning, negative from end (e.g., -100 = last 100 lines)"),
271
273
  });
274
+ exports.BrowsePipelinesSchema = zod_1.z.discriminatedUnion("action", [
275
+ ListPipelinesSchema,
276
+ GetPipelineSchema,
277
+ ListPipelineJobsSchema,
278
+ ListPipelineTriggersSchema,
279
+ GetJobSchema,
280
+ GetJobLogsSchema,
281
+ ]);
272
282
  //# sourceMappingURL=schema-readonly.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-readonly.js","sourceRoot":"","sources":["../../../../src/entities/pipelines/schema-readonly.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAAuD;AAG1C,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAA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Z,gBAAgB;CACjB,CAAC,CAAC"}
@@ -1,12 +1,8 @@
1
1
  import { z } from "zod";
2
- export declare const ManagePipelineSchema: z.ZodObject<{
3
- action: z.ZodEnum<{
4
- create: "create";
5
- retry: "retry";
6
- cancel: "cancel";
7
- }>;
2
+ export declare const ManagePipelineSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ action: z.ZodLiteral<"create">;
8
4
  project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
9
- ref: z.ZodOptional<z.ZodString>;
5
+ ref: z.ZodString;
10
6
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
7
  key: z.ZodString;
12
8
  value: z.ZodString;
@@ -15,14 +11,17 @@ export declare const ManagePipelineSchema: z.ZodObject<{
15
11
  env_var: "env_var";
16
12
  }>>;
17
13
  }, z.core.$strip>>>;
18
- pipeline_id: z.ZodOptional<z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>>;
19
- }, z.core.$strip>;
20
- export declare const ManagePipelineJobSchema: z.ZodObject<{
21
- action: z.ZodEnum<{
22
- retry: "retry";
23
- cancel: "cancel";
24
- play: "play";
25
- }>;
14
+ }, z.core.$strip>, z.ZodObject<{
15
+ action: z.ZodLiteral<"retry">;
16
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
17
+ pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ action: z.ZodLiteral<"cancel">;
20
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
21
+ pipeline_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
22
+ }, z.core.$strip>], "action">;
23
+ export declare const ManagePipelineJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
24
+ action: z.ZodLiteral<"play">;
26
25
  project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
27
26
  job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
28
27
  job_variables_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -33,7 +32,15 @@ export declare const ManagePipelineJobSchema: z.ZodObject<{
33
32
  env_var: "env_var";
34
33
  }>>;
35
34
  }, z.core.$strip>>>;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ action: z.ZodLiteral<"retry">;
37
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
38
+ job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ action: z.ZodLiteral<"cancel">;
41
+ project_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
42
+ job_id: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodCoercedString<unknown>>;
36
43
  force: z.ZodOptional<z.ZodBoolean>;
37
- }, z.core.$strip>;
44
+ }, z.core.$strip>], "action">;
38
45
  export type ManagePipelineInput = z.infer<typeof ManagePipelineSchema>;
39
46
  export type ManagePipelineJobInput = z.infer<typeof ManagePipelineJobSchema>;
@@ -8,38 +8,56 @@ const PipelineVariableSchema = zod_1.z.object({
8
8
  value: zod_1.z.string(),
9
9
  variable_type: zod_1.z.enum(["env_var", "file"]).optional(),
10
10
  });
11
- exports.ManagePipelineSchema = zod_1.z
12
- .object({
13
- action: zod_1.z.enum(["create", "retry", "cancel"]).describe("Action to perform"),
14
- project_id: utils_1.requiredId.describe("Project ID or URL-encoded path"),
15
- ref: zod_1.z
16
- .string()
17
- .optional()
18
- .describe("The branch or tag to run the pipeline on. Required for 'create' action."),
11
+ const projectIdField = utils_1.requiredId.describe("Project ID or URL-encoded path");
12
+ const pipelineIdField = utils_1.requiredId.describe("The ID of the pipeline");
13
+ const CreatePipelineSchema = zod_1.z.object({
14
+ action: zod_1.z.literal("create").describe("Trigger a new pipeline on branch/tag"),
15
+ project_id: projectIdField,
16
+ ref: zod_1.z.string().describe("The branch or tag to run the pipeline on"),
19
17
  variables: zod_1.z
20
18
  .array(PipelineVariableSchema)
21
19
  .optional()
22
- .describe("Variables to pass to the pipeline. For 'create' action."),
23
- pipeline_id: utils_1.requiredId
24
- .optional()
25
- .describe("The ID of the pipeline. Required for 'retry' and 'cancel' actions."),
26
- })
27
- .refine(data => data.action !== "create" || data.ref !== undefined, {
28
- message: "ref is required for 'create' action",
29
- path: ["ref"],
30
- })
31
- .refine(data => data.action === "create" || data.pipeline_id !== undefined, {
32
- message: "pipeline_id is required for 'retry' and 'cancel' actions",
33
- path: ["pipeline_id"],
20
+ .describe("Variables to pass to the pipeline"),
21
+ });
22
+ const RetryPipelineSchema = zod_1.z.object({
23
+ action: zod_1.z.literal("retry").describe("Re-run a failed/canceled pipeline"),
24
+ project_id: projectIdField,
25
+ pipeline_id: pipelineIdField,
34
26
  });
35
- exports.ManagePipelineJobSchema = zod_1.z.object({
36
- action: zod_1.z.enum(["play", "retry", "cancel"]).describe("Action to perform"),
37
- project_id: utils_1.requiredId.describe("Project ID or URL-encoded path"),
38
- job_id: utils_1.requiredId.describe("The ID of the job"),
27
+ const CancelPipelineSchema = zod_1.z.object({
28
+ action: zod_1.z.literal("cancel").describe("Stop a running pipeline"),
29
+ project_id: projectIdField,
30
+ pipeline_id: pipelineIdField,
31
+ });
32
+ exports.ManagePipelineSchema = zod_1.z.discriminatedUnion("action", [
33
+ CreatePipelineSchema,
34
+ RetryPipelineSchema,
35
+ CancelPipelineSchema,
36
+ ]);
37
+ const jobIdField = utils_1.requiredId.describe("The ID of the job");
38
+ const PlayJobSchema = zod_1.z.object({
39
+ action: zod_1.z.literal("play").describe("Trigger a manual job"),
40
+ project_id: projectIdField,
41
+ job_id: jobIdField,
39
42
  job_variables_attributes: zod_1.z
40
43
  .array(PipelineVariableSchema)
41
44
  .optional()
42
- .describe("Variables to pass to the job. For 'play' action."),
43
- force: zod_1.z.boolean().optional().describe("Force cancellation of the job. For 'cancel' action."),
45
+ .describe("Variables to pass to the job"),
46
+ });
47
+ const RetryJobSchema = zod_1.z.object({
48
+ action: zod_1.z.literal("retry").describe("Re-run a failed/canceled job"),
49
+ project_id: projectIdField,
50
+ job_id: jobIdField,
51
+ });
52
+ const CancelJobSchema = zod_1.z.object({
53
+ action: zod_1.z.literal("cancel").describe("Stop a running job"),
54
+ project_id: projectIdField,
55
+ job_id: jobIdField,
56
+ force: zod_1.z.boolean().optional().describe("Force cancellation of the job"),
44
57
  });
58
+ exports.ManagePipelineJobSchema = zod_1.z.discriminatedUnion("action", [
59
+ PlayJobSchema,
60
+ RetryJobSchema,
61
+ CancelJobSchema,
62
+ ]);
45
63
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/entities/pipelines/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAAsC;AAMtC,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,aAAa,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC;AASU,QAAA,oBAAoB,GAAG,OAAC;KAClC,MAAM,CAAC;IACN,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC3E,UAAU,EAAE,kBAAU,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAEjE,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yEAAyE,CAAC;IACtF,SA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AoB;IACpB,mBAAmB;IACnB,oBAAoB;CACrB,CAAC,CAAC;AAUH,MAAM,UAAU,GAAG,kBAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAG5D,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC1D,UAAU,EAAE,cAAc;IAC1B,MAAM,EAAE,UAAU;IAClB,wBAAwB,EAAE,OAAC;SACxB,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,EAAE;SACV,QAAQ,CAAC,8BAA8B,CAAC;CAC5C,CAAC,CAAC;AAGH,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACnE,UAAU,EAAE,cAAc;IAC1B,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC;AAGH,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC1D,UAAU,EAAE,cAAc;IAC1B,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CACxE,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACpE,aAAa;IACb,cAAc;IACd,eAAe;CAChB,CAAC,CAAC"}
@@ -41,77 +41,87 @@ const z = __importStar(require("zod"));
41
41
  const schema_readonly_1 = require("./schema-readonly");
42
42
  const schema_1 = require("./schema");
43
43
  const gitlab_api_1 = require("../../utils/gitlab-api");
44
- const ManageSnippetSchema = z.discriminatedUnion("action", [
45
- schema_readonly_1.GetSnippetSchema,
46
- schema_1.CreateSnippetSchema,
47
- schema_1.UpdateSnippetSchema,
48
- schema_1.DeleteSnippetSchema,
49
- ]);
44
+ const config_1 = require("../../config");
50
45
  exports.snippetsToolRegistry = new Map([
51
46
  [
52
- "list_snippets",
47
+ "browse_snippets",
53
48
  {
54
- name: "list_snippets",
55
- description: "List GitLab code snippets with flexible scoping. Use scope='personal' for current user's snippets, scope='project' for project-specific snippets (requires projectId), or scope='public' to discover all public snippets. Filter by visibility level (private/internal/public) and creation date. Snippets are reusable code blocks, configs, or text that support versioning and can be shared.",
56
- inputSchema: z.toJSONSchema(schema_readonly_1.ListSnippetsSchema),
49
+ name: "browse_snippets",
50
+ description: 'BROWSE GitLab code snippets. Actions: "list" shows snippets by scope (personal/project/public) with filtering, "get" retrieves single snippet metadata or raw content. Snippets are reusable code blocks, configs, or text with versioning support.',
51
+ inputSchema: z.toJSONSchema(schema_readonly_1.BrowseSnippetsSchema),
57
52
  handler: async (args) => {
58
- const options = schema_readonly_1.ListSnippetsSchema.parse(args);
59
- let path;
60
- if (options.scope === "personal") {
61
- path = "snippets";
62
- }
63
- else if (options.scope === "public") {
64
- path = "snippets/public";
53
+ const input = schema_readonly_1.BrowseSnippetsSchema.parse(args);
54
+ if ((0, config_1.isActionDenied)("browse_snippets", input.action)) {
55
+ throw new Error(`Action '${input.action}' is not allowed for browse_snippets tool`);
65
56
  }
66
- else {
67
- if (!options.projectId) {
68
- throw new Error("projectId is required for project scope");
57
+ switch (input.action) {
58
+ case "list": {
59
+ const { action: _action, scope, projectId, ...queryOptions } = input;
60
+ let path;
61
+ if (scope === "personal") {
62
+ path = "snippets";
63
+ }
64
+ else if (scope === "public") {
65
+ path = "snippets/public";
66
+ }
67
+ else {
68
+ if (!projectId) {
69
+ throw new Error("projectId is required when scope is 'project'");
70
+ }
71
+ const encodedProjectId = encodeURIComponent(projectId);
72
+ path = `projects/${encodedProjectId}/snippets`;
73
+ }
74
+ return gitlab_api_1.gitlab.get(path, {
75
+ query: (0, gitlab_api_1.toQuery)(queryOptions, []),
76
+ });
69
77
  }
70
- const encodedProjectId = encodeURIComponent(options.projectId);
71
- path = `projects/${encodedProjectId}/snippets`;
72
- }
73
- return gitlab_api_1.gitlab.get(path, {
74
- query: (0, gitlab_api_1.toQuery)(options, ["scope", "projectId"]),
75
- });
76
- },
77
- },
78
- ],
79
- [
80
- "manage_snippet",
81
- {
82
- name: "manage_snippet",
83
- description: "Manage GitLab snippets with full CRUD operations via action parameter. action='read': retrieve snippet metadata or raw content. action='create': create new snippet with multiple files, visibility control. action='update': modify title, description, visibility, or files (supports create/update/delete/move file actions). action='delete': permanently remove snippet. Supports both personal and project snippets. Multi-file snippets enable organizing related code in one place.",
84
- inputSchema: z.toJSONSchema(ManageSnippetSchema),
85
- handler: async (args) => {
86
- const options = ManageSnippetSchema.parse(args);
87
- switch (options.action) {
88
- case "read": {
89
- const encodedId = options.id.toString();
78
+ case "get": {
79
+ const { id, projectId, raw } = input;
80
+ const encodedId = id.toString();
90
81
  let path;
91
- if (options.projectId) {
92
- const encodedProjectId = encodeURIComponent(options.projectId);
82
+ if (projectId) {
83
+ const encodedProjectId = encodeURIComponent(projectId);
93
84
  path = `projects/${encodedProjectId}/snippets/${encodedId}`;
94
85
  }
95
86
  else {
96
87
  path = `snippets/${encodedId}`;
97
88
  }
98
- if (options.raw) {
89
+ if (raw) {
99
90
  path = `${path}/raw`;
100
91
  }
101
92
  return gitlab_api_1.gitlab.get(path);
102
93
  }
94
+ default:
95
+ throw new Error(`Unknown action: ${input.action}`);
96
+ }
97
+ },
98
+ },
99
+ ],
100
+ [
101
+ "manage_snippet",
102
+ {
103
+ name: "manage_snippet",
104
+ description: 'MANAGE GitLab snippets. Actions: "create" creates new snippet with multiple files and visibility control, "update" modifies title/description/visibility/files (supports file create/update/delete/move), "delete" permanently removes snippet. Supports personal and project snippets.',
105
+ inputSchema: z.toJSONSchema(schema_1.ManageSnippetSchema),
106
+ handler: async (args) => {
107
+ const input = schema_1.ManageSnippetSchema.parse(args);
108
+ if ((0, config_1.isActionDenied)("manage_snippet", input.action)) {
109
+ throw new Error(`Action '${input.action}' is not allowed for manage_snippet tool`);
110
+ }
111
+ switch (input.action) {
103
112
  case "create": {
113
+ const { projectId, title, description, visibility, files } = input;
104
114
  const body = {
105
- title: options.title,
106
- visibility: options.visibility,
107
- files: options.files,
115
+ title,
116
+ visibility,
117
+ files,
108
118
  };
109
- if (options.description) {
110
- body.description = options.description;
119
+ if (description) {
120
+ body.description = description;
111
121
  }
112
122
  let path;
113
- if (options.projectId) {
114
- const encodedProjectId = encodeURIComponent(options.projectId);
123
+ if (projectId) {
124
+ const encodedProjectId = encodeURIComponent(projectId);
115
125
  path = `projects/${encodedProjectId}/snippets`;
116
126
  }
117
127
  else {
@@ -123,23 +133,24 @@ exports.snippetsToolRegistry = new Map([
123
133
  });
124
134
  }
125
135
  case "update": {
126
- const encodedId = options.id.toString();
136
+ const { id, projectId, title, description, visibility, files } = input;
137
+ const encodedId = id.toString();
127
138
  const body = {};
128
- if (options.title !== undefined) {
129
- body.title = options.title;
139
+ if (title !== undefined) {
140
+ body.title = title;
130
141
  }
131
- if (options.description !== undefined) {
132
- body.description = options.description;
142
+ if (description !== undefined) {
143
+ body.description = description;
133
144
  }
134
- if (options.visibility !== undefined) {
135
- body.visibility = options.visibility;
145
+ if (visibility !== undefined) {
146
+ body.visibility = visibility;
136
147
  }
137
- if (options.files !== undefined) {
138
- body.files = options.files;
148
+ if (files !== undefined) {
149
+ body.files = files;
139
150
  }
140
151
  let path;
141
- if (options.projectId) {
142
- const encodedProjectId = encodeURIComponent(options.projectId);
152
+ if (projectId) {
153
+ const encodedProjectId = encodeURIComponent(projectId);
143
154
  path = `projects/${encodedProjectId}/snippets/${encodedId}`;
144
155
  }
145
156
  else {
@@ -151,27 +162,28 @@ exports.snippetsToolRegistry = new Map([
151
162
  });
152
163
  }
153
164
  case "delete": {
154
- const encodedId = options.id.toString();
165
+ const { id, projectId } = input;
166
+ const encodedId = id.toString();
155
167
  let path;
156
- if (options.projectId) {
157
- const encodedProjectId = encodeURIComponent(options.projectId);
168
+ if (projectId) {
169
+ const encodedProjectId = encodeURIComponent(projectId);
158
170
  path = `projects/${encodedProjectId}/snippets/${encodedId}`;
159
171
  }
160
172
  else {
161
173
  path = `snippets/${encodedId}`;
162
174
  }
163
175
  await gitlab_api_1.gitlab.delete(path);
164
- return { deleted: true, id: options.id };
176
+ return { deleted: true, id };
165
177
  }
166
178
  default:
167
- throw new Error(`Unknown action: ${options.action}`);
179
+ throw new Error(`Unknown action: ${input.action}`);
168
180
  }
169
181
  },
170
182
  },
171
183
  ],
172
184
  ]);
173
185
  function getSnippetsReadOnlyToolNames() {
174
- return ["list_snippets"];
186
+ return ["browse_snippets"];
175
187
  }
176
188
  function getSnippetsToolDefinitions() {
177
189
  return Array.from(exports.snippetsToolRegistry.values());