@structured-world/gitlab-mcp 4.0.0 → 4.1.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 +90 -4
- package/dist/entities/core/registry.js +101 -63
- package/dist/entities/core/registry.js.map +1 -1
- package/dist/entities/core/schema-readonly.d.ts +421 -199
- package/dist/entities/core/schema-readonly.js +222 -131
- package/dist/entities/core/schema-readonly.js.map +1 -1
- package/dist/entities/core/schema.d.ts +154 -60
- package/dist/entities/core/schema.js +115 -55
- package/dist/entities/core/schema.js.map +1 -1
- package/dist/entities/files/registry.js +5 -5
- package/dist/entities/files/registry.js.map +1 -1
- package/dist/entities/files/schema-readonly.d.ts +124 -24
- package/dist/entities/files/schema.d.ts +82 -17
- package/dist/entities/labels/registry.js +5 -5
- package/dist/entities/labels/registry.js.map +1 -1
- package/dist/entities/labels/schema-readonly.d.ts +56 -12
- package/dist/entities/labels/schema.d.ts +90 -14
- package/dist/entities/milestones/registry.js +9 -9
- package/dist/entities/milestones/registry.js.map +1 -1
- package/dist/entities/milestones/schema-readonly.d.ts +189 -35
- package/dist/entities/milestones/schema-readonly.js +9 -6
- package/dist/entities/milestones/schema-readonly.js.map +1 -1
- package/dist/entities/milestones/schema.d.ts +116 -23
- package/dist/entities/mrs/registry.js +20 -20
- package/dist/entities/mrs/registry.js.map +1 -1
- package/dist/entities/mrs/schema-readonly.d.ts +243 -68
- package/dist/entities/mrs/schema-readonly.js +83 -54
- package/dist/entities/mrs/schema-readonly.js.map +1 -1
- package/dist/entities/mrs/schema.d.ts +885 -142
- package/dist/entities/mrs/schema.js +113 -37
- package/dist/entities/mrs/schema.js.map +1 -1
- package/dist/entities/pipelines/registry.js +12 -12
- package/dist/entities/pipelines/registry.js.map +1 -1
- package/dist/entities/pipelines/schema-readonly.d.ts +525 -115
- package/dist/entities/pipelines/schema.d.ts +104 -30
- package/dist/entities/shared.d.ts +787 -110
- package/dist/entities/utils.d.ts +2 -2
- package/dist/entities/variables/registry.js +5 -5
- package/dist/entities/variables/registry.js.map +1 -1
- package/dist/entities/variables/schema-readonly.d.ts +62 -9
- package/dist/entities/variables/schema.d.ts +159 -29
- package/dist/entities/wiki/registry.js +5 -5
- package/dist/entities/wiki/registry.js.map +1 -1
- package/dist/entities/wiki/schema-readonly.d.ts +65 -10
- package/dist/entities/wiki/schema.d.ts +80 -12
- package/dist/entities/workitems/registry.js +27 -13
- package/dist/entities/workitems/registry.js.map +1 -1
- package/dist/entities/workitems/schema-readonly.d.ts +42 -33
- package/dist/entities/workitems/schema-readonly.js +11 -2
- package/dist/entities/workitems/schema-readonly.js.map +1 -1
- package/dist/entities/workitems/schema.d.ts +45 -21
- package/dist/graphql/workItems.d.ts +12 -0
- package/dist/graphql/workItems.js +348 -1
- package/dist/graphql/workItems.js.map +1 -1
- package/dist/handlers.js +44 -0
- package/dist/handlers.js.map +1 -1
- package/dist/registry-manager.d.ts +1 -0
- package/dist/registry-manager.js +54 -0
- package/dist/registry-manager.js.map +1 -1
- package/dist/services/ConnectionManager.js +3 -3
- package/dist/services/ConnectionManager.js.map +1 -1
- package/dist/services/SchemaIntrospector.js +3 -3
- package/dist/services/SchemaIntrospector.js.map +1 -1
- package/dist/services/ToolAvailability.js +30 -1
- package/dist/services/ToolAvailability.js.map +1 -1
- package/dist/structured-world-gitlab-mcp-4.1.0.tgz +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/dist/structured-world-gitlab-mcp-4.0.0.tgz +0 -0
|
@@ -10,18 +10,49 @@ export declare const GitLabFileContentSchema: z.ZodObject<{
|
|
|
10
10
|
commit_id: z.ZodString;
|
|
11
11
|
last_commit_id: z.ZodString;
|
|
12
12
|
content: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
commit_id: string;
|
|
15
|
+
file_name: string;
|
|
16
|
+
file_path: string;
|
|
17
|
+
size: number;
|
|
18
|
+
encoding: string;
|
|
19
|
+
blob_id: string;
|
|
20
|
+
last_commit_id: string;
|
|
21
|
+
ref?: string | undefined;
|
|
22
|
+
content_sha256?: string | undefined;
|
|
23
|
+
content?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
commit_id: string;
|
|
26
|
+
file_name: string;
|
|
27
|
+
file_path: string;
|
|
28
|
+
size: number;
|
|
29
|
+
encoding: string;
|
|
30
|
+
blob_id: string;
|
|
31
|
+
last_commit_id: string;
|
|
32
|
+
ref?: string | undefined;
|
|
33
|
+
content_sha256?: string | undefined;
|
|
34
|
+
content?: string | undefined;
|
|
35
|
+
}>;
|
|
14
36
|
export declare const GitLabDirectoryContentSchema: z.ZodObject<{
|
|
15
37
|
id: z.ZodString;
|
|
16
38
|
name: z.ZodString;
|
|
17
|
-
type: z.ZodEnum<
|
|
18
|
-
tree: "tree";
|
|
19
|
-
blob: "blob";
|
|
20
|
-
}>;
|
|
39
|
+
type: z.ZodEnum<["tree", "blob"]>;
|
|
21
40
|
path: z.ZodString;
|
|
22
41
|
mode: z.ZodString;
|
|
23
|
-
}, z.
|
|
24
|
-
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
name: string;
|
|
44
|
+
path: string;
|
|
45
|
+
mode: string;
|
|
46
|
+
type: "tree" | "blob";
|
|
47
|
+
id: string;
|
|
48
|
+
}, {
|
|
49
|
+
name: string;
|
|
50
|
+
path: string;
|
|
51
|
+
mode: string;
|
|
52
|
+
type: "tree" | "blob";
|
|
53
|
+
id: string;
|
|
54
|
+
}>;
|
|
55
|
+
export declare const GitLabContentSchema: z.ZodUnion<[z.ZodObject<{
|
|
25
56
|
file_name: z.ZodString;
|
|
26
57
|
file_path: z.ZodString;
|
|
27
58
|
size: z.ZodNumber;
|
|
@@ -32,43 +63,112 @@ export declare const GitLabContentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
32
63
|
commit_id: z.ZodString;
|
|
33
64
|
last_commit_id: z.ZodString;
|
|
34
65
|
content: z.ZodOptional<z.ZodString>;
|
|
35
|
-
},
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
commit_id: string;
|
|
68
|
+
file_name: string;
|
|
69
|
+
file_path: string;
|
|
70
|
+
size: number;
|
|
71
|
+
encoding: string;
|
|
72
|
+
blob_id: string;
|
|
73
|
+
last_commit_id: string;
|
|
74
|
+
ref?: string | undefined;
|
|
75
|
+
content_sha256?: string | undefined;
|
|
76
|
+
content?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
commit_id: string;
|
|
79
|
+
file_name: string;
|
|
80
|
+
file_path: string;
|
|
81
|
+
size: number;
|
|
82
|
+
encoding: string;
|
|
83
|
+
blob_id: string;
|
|
84
|
+
last_commit_id: string;
|
|
85
|
+
ref?: string | undefined;
|
|
86
|
+
content_sha256?: string | undefined;
|
|
87
|
+
content?: string | undefined;
|
|
88
|
+
}>, z.ZodObject<{
|
|
36
89
|
id: z.ZodString;
|
|
37
90
|
name: z.ZodString;
|
|
38
|
-
type: z.ZodEnum<
|
|
39
|
-
tree: "tree";
|
|
40
|
-
blob: "blob";
|
|
41
|
-
}>;
|
|
91
|
+
type: z.ZodEnum<["tree", "blob"]>;
|
|
42
92
|
path: z.ZodString;
|
|
43
93
|
mode: z.ZodString;
|
|
44
|
-
}, z.
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
name: string;
|
|
96
|
+
path: string;
|
|
97
|
+
mode: string;
|
|
98
|
+
type: "tree" | "blob";
|
|
99
|
+
id: string;
|
|
100
|
+
}, {
|
|
101
|
+
name: string;
|
|
102
|
+
path: string;
|
|
103
|
+
mode: string;
|
|
104
|
+
type: "tree" | "blob";
|
|
105
|
+
id: string;
|
|
106
|
+
}>]>;
|
|
45
107
|
export declare const GitLabCreateUpdateFileResponseSchema: z.ZodObject<{
|
|
46
108
|
file_path: z.ZodString;
|
|
47
109
|
branch: z.ZodString;
|
|
48
|
-
}, z.
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
branch: string;
|
|
112
|
+
file_path: string;
|
|
113
|
+
}, {
|
|
114
|
+
branch: string;
|
|
115
|
+
file_path: string;
|
|
116
|
+
}>;
|
|
49
117
|
export declare const GitLabTreeSchema: z.ZodObject<{
|
|
50
118
|
id: z.ZodString;
|
|
51
119
|
name: z.ZodString;
|
|
52
|
-
type: z.ZodEnum<
|
|
53
|
-
tree: "tree";
|
|
54
|
-
blob: "blob";
|
|
55
|
-
}>;
|
|
120
|
+
type: z.ZodEnum<["tree", "blob"]>;
|
|
56
121
|
path: z.ZodString;
|
|
57
122
|
mode: z.ZodString;
|
|
58
|
-
}, z.
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
name: string;
|
|
125
|
+
path: string;
|
|
126
|
+
mode: string;
|
|
127
|
+
type: "tree" | "blob";
|
|
128
|
+
id: string;
|
|
129
|
+
}, {
|
|
130
|
+
name: string;
|
|
131
|
+
path: string;
|
|
132
|
+
mode: string;
|
|
133
|
+
type: "tree" | "blob";
|
|
134
|
+
id: string;
|
|
135
|
+
}>;
|
|
59
136
|
export declare const GetRepositoryTreeSchema: z.ZodObject<{
|
|
60
|
-
project_id: z.
|
|
137
|
+
project_id: z.ZodString;
|
|
61
138
|
path: z.ZodOptional<z.ZodString>;
|
|
62
139
|
ref: z.ZodOptional<z.ZodString>;
|
|
63
|
-
recursive: z.ZodOptional<z.
|
|
140
|
+
recursive: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
64
141
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
65
142
|
page: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
}, z.
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
project_id: string;
|
|
145
|
+
path?: string | undefined;
|
|
146
|
+
page?: number | undefined;
|
|
147
|
+
per_page?: number | undefined;
|
|
148
|
+
ref?: string | undefined;
|
|
149
|
+
recursive?: boolean | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
project_id: string;
|
|
152
|
+
path?: string | undefined;
|
|
153
|
+
page?: number | undefined;
|
|
154
|
+
per_page?: number | undefined;
|
|
155
|
+
ref?: string | undefined;
|
|
156
|
+
recursive?: unknown;
|
|
157
|
+
}>;
|
|
67
158
|
export declare const GetFileContentsSchema: z.ZodObject<{
|
|
68
|
-
project_id: z.
|
|
159
|
+
project_id: z.ZodString;
|
|
160
|
+
} & {
|
|
69
161
|
file_path: z.ZodString;
|
|
70
162
|
ref: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, z.
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
project_id: string;
|
|
165
|
+
file_path: string;
|
|
166
|
+
ref?: string | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
project_id: string;
|
|
169
|
+
file_path: string;
|
|
170
|
+
ref?: string | undefined;
|
|
171
|
+
}>;
|
|
72
172
|
export type GitLabFileContent = z.infer<typeof GitLabFileContentSchema>;
|
|
73
173
|
export type GitLabDirectoryContent = z.infer<typeof GitLabDirectoryContentSchema>;
|
|
74
174
|
export type GitLabContent = z.infer<typeof GitLabContentSchema>;
|
|
@@ -1,42 +1,107 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CreateOrUpdateFileSchema: z.ZodObject<{
|
|
3
|
-
project_id: z.
|
|
3
|
+
project_id: z.ZodString;
|
|
4
|
+
} & {
|
|
4
5
|
file_path: z.ZodString;
|
|
5
6
|
branch: z.ZodString;
|
|
6
7
|
start_branch: z.ZodOptional<z.ZodString>;
|
|
7
|
-
encoding: z.ZodOptional<z.ZodEnum<
|
|
8
|
-
base64: "base64";
|
|
9
|
-
text: "text";
|
|
10
|
-
}>>;
|
|
8
|
+
encoding: z.ZodOptional<z.ZodEnum<["text", "base64"]>>;
|
|
11
9
|
author_email: z.ZodOptional<z.ZodString>;
|
|
12
10
|
author_name: z.ZodOptional<z.ZodString>;
|
|
13
11
|
content: z.ZodString;
|
|
14
12
|
commit_message: z.ZodString;
|
|
15
13
|
last_commit_id: z.ZodOptional<z.ZodString>;
|
|
16
|
-
execute_filemode: z.ZodOptional<z.
|
|
17
|
-
}, z.
|
|
14
|
+
execute_filemode: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
project_id: string;
|
|
17
|
+
branch: string;
|
|
18
|
+
file_path: string;
|
|
19
|
+
content: string;
|
|
20
|
+
commit_message: string;
|
|
21
|
+
author_name?: string | undefined;
|
|
22
|
+
author_email?: string | undefined;
|
|
23
|
+
encoding?: "base64" | "text" | undefined;
|
|
24
|
+
last_commit_id?: string | undefined;
|
|
25
|
+
start_branch?: string | undefined;
|
|
26
|
+
execute_filemode?: boolean | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
project_id: string;
|
|
29
|
+
branch: string;
|
|
30
|
+
file_path: string;
|
|
31
|
+
content: string;
|
|
32
|
+
commit_message: string;
|
|
33
|
+
author_name?: string | undefined;
|
|
34
|
+
author_email?: string | undefined;
|
|
35
|
+
encoding?: "base64" | "text" | undefined;
|
|
36
|
+
last_commit_id?: string | undefined;
|
|
37
|
+
start_branch?: string | undefined;
|
|
38
|
+
execute_filemode?: unknown;
|
|
39
|
+
}>;
|
|
18
40
|
export declare const PushFilesSchema: z.ZodObject<{
|
|
19
|
-
project_id: z.
|
|
41
|
+
project_id: z.ZodString;
|
|
42
|
+
} & {
|
|
20
43
|
branch: z.ZodString;
|
|
21
44
|
commit_message: z.ZodString;
|
|
22
45
|
files: z.ZodArray<z.ZodObject<{
|
|
23
46
|
file_path: z.ZodString;
|
|
24
47
|
content: z.ZodString;
|
|
25
|
-
encoding: z.ZodOptional<z.ZodEnum<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
48
|
+
encoding: z.ZodOptional<z.ZodEnum<["text", "base64"]>>;
|
|
49
|
+
execute_filemode: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
file_path: string;
|
|
52
|
+
content: string;
|
|
53
|
+
encoding?: "base64" | "text" | undefined;
|
|
54
|
+
execute_filemode?: boolean | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
file_path: string;
|
|
57
|
+
content: string;
|
|
58
|
+
encoding?: "base64" | "text" | undefined;
|
|
59
|
+
execute_filemode?: unknown;
|
|
60
|
+
}>, "many">;
|
|
31
61
|
start_branch: z.ZodOptional<z.ZodString>;
|
|
32
62
|
author_email: z.ZodOptional<z.ZodString>;
|
|
33
63
|
author_name: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
project_id: string;
|
|
66
|
+
branch: string;
|
|
67
|
+
commit_message: string;
|
|
68
|
+
files: {
|
|
69
|
+
file_path: string;
|
|
70
|
+
content: string;
|
|
71
|
+
encoding?: "base64" | "text" | undefined;
|
|
72
|
+
execute_filemode?: boolean | undefined;
|
|
73
|
+
}[];
|
|
74
|
+
author_name?: string | undefined;
|
|
75
|
+
author_email?: string | undefined;
|
|
76
|
+
start_branch?: string | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
project_id: string;
|
|
79
|
+
branch: string;
|
|
80
|
+
commit_message: string;
|
|
81
|
+
files: {
|
|
82
|
+
file_path: string;
|
|
83
|
+
content: string;
|
|
84
|
+
encoding?: "base64" | "text" | undefined;
|
|
85
|
+
execute_filemode?: unknown;
|
|
86
|
+
}[];
|
|
87
|
+
author_name?: string | undefined;
|
|
88
|
+
author_email?: string | undefined;
|
|
89
|
+
start_branch?: string | undefined;
|
|
90
|
+
}>;
|
|
35
91
|
export declare const MarkdownUploadSchema: z.ZodObject<{
|
|
36
|
-
project_id: z.
|
|
92
|
+
project_id: z.ZodString;
|
|
93
|
+
} & {
|
|
37
94
|
file: z.ZodString;
|
|
38
95
|
filename: z.ZodString;
|
|
39
|
-
}, z.
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
project_id: string;
|
|
98
|
+
filename: string;
|
|
99
|
+
file: string;
|
|
100
|
+
}, {
|
|
101
|
+
project_id: string;
|
|
102
|
+
filename: string;
|
|
103
|
+
file: string;
|
|
104
|
+
}>;
|
|
40
105
|
export type CreateOrUpdateFileOptions = z.infer<typeof CreateOrUpdateFileSchema>;
|
|
41
106
|
export type PushFilesOptions = z.infer<typeof PushFilesSchema>;
|
|
42
107
|
export type MarkdownUploadOptions = z.infer<typeof MarkdownUploadSchema>;
|
|
@@ -13,7 +13,7 @@ exports.labelsToolRegistry = new Map([
|
|
|
13
13
|
'list_labels',
|
|
14
14
|
{
|
|
15
15
|
name: 'list_labels',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'DISCOVER FIRST: Browse all existing labels in a project or group - RUN THIS BEFORE creating new labels! Use when: Choosing labels for issues/MRs, Understanding established taxonomy, Avoiding duplicate label creation. Returns label names, colors, descriptions, and priorities. Group labels are inherited by all projects. See also: create_label (only after checking existing labels).',
|
|
17
17
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.ListLabelsSchema),
|
|
18
18
|
handler: async (args) => {
|
|
19
19
|
const options = schema_readonly_1.ListLabelsSchema.parse(args);
|
|
@@ -45,7 +45,7 @@ exports.labelsToolRegistry = new Map([
|
|
|
45
45
|
'get_label',
|
|
46
46
|
{
|
|
47
47
|
name: 'get_label',
|
|
48
|
-
description: '
|
|
48
|
+
description: 'READ: Retrieve details of a specific label by ID or name. Use when: Getting full label information including color and description, Checking label usage statistics, Validating label properties. Works for both project-specific and group-inherited labels. See also: list_labels to browse all available labels first.',
|
|
49
49
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetLabelSchema),
|
|
50
50
|
handler: async (args) => {
|
|
51
51
|
const options = schema_readonly_1.GetLabelSchema.parse(args);
|
|
@@ -71,7 +71,7 @@ exports.labelsToolRegistry = new Map([
|
|
|
71
71
|
'create_label',
|
|
72
72
|
{
|
|
73
73
|
name: 'create_label',
|
|
74
|
-
description: '
|
|
74
|
+
description: 'CREATE CAREFULLY: Add a new label ONLY after running list_labels to check existing taxonomy! Use when: Existing labels do not fit your needs, Establishing new project taxonomy. AVOID: Creating duplicates of existing labels with slight variations. Requires name and color (hex format like #FF0000). Group labels automatically become available to all child projects. See also: list_labels (run first to discover existing labels).',
|
|
75
75
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.CreateLabelSchema),
|
|
76
76
|
handler: async (args) => {
|
|
77
77
|
const options = schema_1.CreateLabelSchema.parse(args);
|
|
@@ -109,7 +109,7 @@ exports.labelsToolRegistry = new Map([
|
|
|
109
109
|
'update_label',
|
|
110
110
|
{
|
|
111
111
|
name: 'update_label',
|
|
112
|
-
description: '
|
|
112
|
+
description: 'UPDATE: Modify label properties including name, color, description, or priority. Use when: Refining categorization system, Updating label appearance, Standardizing label naming. Changes apply immediately to all tagged items. Renaming updates all existing references automatically. See also: list_labels to understand current taxonomy before changes.',
|
|
113
113
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.UpdateLabelSchema),
|
|
114
114
|
handler: async (args) => {
|
|
115
115
|
const options = schema_1.UpdateLabelSchema.parse(args);
|
|
@@ -147,7 +147,7 @@ exports.labelsToolRegistry = new Map([
|
|
|
147
147
|
'delete_label',
|
|
148
148
|
{
|
|
149
149
|
name: 'delete_label',
|
|
150
|
-
description: '
|
|
150
|
+
description: 'DELETE: Remove a label permanently from project or group. Use when: Cleaning up unused labels, Reorganizing taxonomy. WARNING: Removes label from all issues and MRs without replacement. Consider updating items before deletion. Cannot be undone. See also: list_labels to check label usage before deletion.',
|
|
151
151
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.DeleteLabelSchema),
|
|
152
152
|
handler: async (args) => {
|
|
153
153
|
const options = schema_1.DeleteLabelSchema.parse(args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/entities/labels/registry.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/entities/labels/registry.ts"],"names":[],"mappings":";;;AAqNA,gEAEC;AAKD,4DAEC;AAKD,wDAQC;AA1OD,2DAAqD;AACrD,uDAAqE;AACrE,qCAAmF;AACnF,6CAAkD;AAMrC,QAAA,kBAAkB,GAAiB,IAAI,GAAG,CAAiC;IAEtF;QACE,aAAa;QACb;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EACT,+XAA+X;YACjY,WAAW,EAAE,IAAA,oCAAe,EAAC,kCAAgB,CAAC;YAC9C,OAAO,EAAE,KAAK,EAAE,IAAa,EAAoB,EAAE;gBACjD,MAAM,OAAO,GAAG,kCAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAC7C,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;gBAGzC,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU,CAAC;gBAC/B,MAAM,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC;gBACrD,MAAM,QAAQ,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAW,CAAC;gBAE/D,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;gBAC1C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;oBAC/C,IAAI,KAAK,KAAK,SAAS,IAAI,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,UAAU,EAAE,CAAC;wBACtE,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;oBACtC,CAAC;gBACH,CAAC,CAAC,CAAC;gBAE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AAE,IAAI,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;YAClE,CAAC;SACF;KACF;CACF,CAAC,CAAC;AAKH,SAAgB,0BAA0B;IACxC,OAAO,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;AACtC,CAAC;AAKD,SAAgB,wBAAwB;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,0BAAkB,CAAC,MAAM,EAAE,CAAC,CAAC;AACjD,CAAC;AAKD,SAAgB,sBAAsB,CAAC,eAAwB,KAAK;IAClE,IAAI,YAAY,EAAE,CAAC;QACjB,MAAM,aAAa,GAAG,0BAA0B,EAAE,CAAC;QACnD,OAAO,KAAK,CAAC,IAAI,CAAC,0BAAkB,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAC7D,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAClC,CAAC;IACJ,CAAC;IACD,OAAO,wBAAwB,EAAE,CAAC;AACpC,CAAC"}
|
|
@@ -1,16 +1,60 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const ListLabelsSchema: z.ZodObject<{
|
|
3
|
-
project_id: z.ZodOptional<z.
|
|
4
|
-
group_id: z.ZodOptional<z.
|
|
5
|
-
with_counts: z.ZodOptional<z.
|
|
6
|
-
include_ancestor_groups: z.ZodOptional<z.
|
|
2
|
+
export declare const ListLabelsSchema: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
with_counts: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
6
|
+
include_ancestor_groups: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
7
7
|
search: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.
|
|
9
|
-
|
|
10
|
-
project_id
|
|
11
|
-
group_id
|
|
12
|
-
|
|
13
|
-
include_ancestor_groups
|
|
14
|
-
},
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
search?: string | undefined;
|
|
10
|
+
project_id?: string | undefined;
|
|
11
|
+
group_id?: string | undefined;
|
|
12
|
+
with_counts?: boolean | undefined;
|
|
13
|
+
include_ancestor_groups?: boolean | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
search?: string | undefined;
|
|
16
|
+
project_id?: string | undefined;
|
|
17
|
+
group_id?: string | undefined;
|
|
18
|
+
with_counts?: unknown;
|
|
19
|
+
include_ancestor_groups?: unknown;
|
|
20
|
+
}>, {
|
|
21
|
+
search?: string | undefined;
|
|
22
|
+
project_id?: string | undefined;
|
|
23
|
+
group_id?: string | undefined;
|
|
24
|
+
with_counts?: boolean | undefined;
|
|
25
|
+
include_ancestor_groups?: boolean | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
search?: string | undefined;
|
|
28
|
+
project_id?: string | undefined;
|
|
29
|
+
group_id?: string | undefined;
|
|
30
|
+
with_counts?: unknown;
|
|
31
|
+
include_ancestor_groups?: unknown;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const GetLabelSchema: z.ZodEffects<z.ZodObject<{
|
|
34
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
36
|
+
label_id: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
37
|
+
include_ancestor_groups: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
label_id: string;
|
|
40
|
+
project_id?: string | undefined;
|
|
41
|
+
group_id?: string | undefined;
|
|
42
|
+
include_ancestor_groups?: boolean | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
label_id: string;
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
group_id?: string | undefined;
|
|
47
|
+
include_ancestor_groups?: unknown;
|
|
48
|
+
}>, {
|
|
49
|
+
label_id: string;
|
|
50
|
+
project_id?: string | undefined;
|
|
51
|
+
group_id?: string | undefined;
|
|
52
|
+
include_ancestor_groups?: boolean | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
label_id: string;
|
|
55
|
+
project_id?: string | undefined;
|
|
56
|
+
group_id?: string | undefined;
|
|
57
|
+
include_ancestor_groups?: unknown;
|
|
58
|
+
}>;
|
|
15
59
|
export type ListLabelsOptions = z.infer<typeof ListLabelsSchema>;
|
|
16
60
|
export type GetLabelOptions = z.infer<typeof GetLabelSchema>;
|
|
@@ -1,26 +1,102 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const CreateLabelSchema: z.ZodObject<{
|
|
3
|
-
project_id: z.ZodOptional<z.
|
|
4
|
-
group_id: z.ZodOptional<z.
|
|
2
|
+
export declare const CreateLabelSchema: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
color: z.ZodString;
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
}, z.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
name: string;
|
|
11
|
+
color: string;
|
|
12
|
+
priority?: number | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
project_id?: string | undefined;
|
|
15
|
+
group_id?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
name: string;
|
|
18
|
+
color: string;
|
|
19
|
+
priority?: number | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
project_id?: string | undefined;
|
|
22
|
+
group_id?: string | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
name: string;
|
|
25
|
+
color: string;
|
|
26
|
+
priority?: number | undefined;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
project_id?: string | undefined;
|
|
29
|
+
group_id?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
name: string;
|
|
32
|
+
color: string;
|
|
33
|
+
priority?: number | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
project_id?: string | undefined;
|
|
36
|
+
group_id?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const UpdateLabelSchema: z.ZodEffects<z.ZodObject<{
|
|
39
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
label_id: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
14
42
|
new_name: z.ZodOptional<z.ZodString>;
|
|
15
43
|
color: z.ZodOptional<z.ZodString>;
|
|
16
44
|
description: z.ZodOptional<z.ZodString>;
|
|
17
45
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
}, z.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
label_id: string;
|
|
48
|
+
priority?: number | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
project_id?: string | undefined;
|
|
51
|
+
color?: string | undefined;
|
|
52
|
+
group_id?: string | undefined;
|
|
53
|
+
new_name?: string | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
label_id: string;
|
|
56
|
+
priority?: number | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
project_id?: string | undefined;
|
|
59
|
+
color?: string | undefined;
|
|
60
|
+
group_id?: string | undefined;
|
|
61
|
+
new_name?: string | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
label_id: string;
|
|
64
|
+
priority?: number | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
project_id?: string | undefined;
|
|
67
|
+
color?: string | undefined;
|
|
68
|
+
group_id?: string | undefined;
|
|
69
|
+
new_name?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
label_id: string;
|
|
72
|
+
priority?: number | undefined;
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
project_id?: string | undefined;
|
|
75
|
+
color?: string | undefined;
|
|
76
|
+
group_id?: string | undefined;
|
|
77
|
+
new_name?: string | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const DeleteLabelSchema: z.ZodEffects<z.ZodObject<{
|
|
80
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
81
|
+
group_id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
label_id: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
label_id: string;
|
|
85
|
+
project_id?: string | undefined;
|
|
86
|
+
group_id?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
label_id: string;
|
|
89
|
+
project_id?: string | undefined;
|
|
90
|
+
group_id?: string | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
label_id: string;
|
|
93
|
+
project_id?: string | undefined;
|
|
94
|
+
group_id?: string | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
label_id: string;
|
|
97
|
+
project_id?: string | undefined;
|
|
98
|
+
group_id?: string | undefined;
|
|
99
|
+
}>;
|
|
24
100
|
export type CreateLabelOptions = z.infer<typeof CreateLabelSchema>;
|
|
25
101
|
export type UpdateLabelOptions = z.infer<typeof UpdateLabelSchema>;
|
|
26
102
|
export type DeleteLabelOptions = z.infer<typeof DeleteLabelSchema>;
|
|
@@ -13,7 +13,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
13
13
|
'list_milestones',
|
|
14
14
|
{
|
|
15
15
|
name: 'list_milestones',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'Browse release milestones for planning and tracking. Use to see upcoming releases, sprint cycles, or project phases. Supports filtering by state (active/closed) and timeframe. Returns milestone titles, dates, progress statistics. Group milestones apply across all projects.',
|
|
17
17
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.ListProjectMilestonesSchema),
|
|
18
18
|
handler: async (args) => {
|
|
19
19
|
const options = schema_readonly_1.ListProjectMilestonesSchema.parse(args);
|
|
@@ -45,7 +45,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
45
45
|
'get_milestone',
|
|
46
46
|
{
|
|
47
47
|
name: 'get_milestone',
|
|
48
|
-
description: '
|
|
48
|
+
description: 'Retrieve comprehensive milestone information including dates, description, and progress metrics. Use to track release status, see associated work, or analyze milestone completion. Shows open/closed issue counts and completion percentage.',
|
|
49
49
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetProjectMilestoneSchema),
|
|
50
50
|
handler: async (args) => {
|
|
51
51
|
const options = schema_readonly_1.GetProjectMilestoneSchema.parse(args);
|
|
@@ -71,7 +71,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
71
71
|
'get_milestone_issue',
|
|
72
72
|
{
|
|
73
73
|
name: 'get_milestone_issue',
|
|
74
|
-
description: '
|
|
74
|
+
description: 'List all issues targeted for a milestone release. Use to track milestone progress, identify blockers, or plan work. Returns issue details with status, assignees, and labels. Essential for release management and sprint planning.',
|
|
75
75
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetMilestoneIssuesSchema),
|
|
76
76
|
handler: async (args) => {
|
|
77
77
|
const options = schema_readonly_1.GetMilestoneIssuesSchema.parse(args);
|
|
@@ -107,7 +107,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
107
107
|
'get_milestone_merge_requests',
|
|
108
108
|
{
|
|
109
109
|
name: 'get_milestone_merge_requests',
|
|
110
|
-
description: '
|
|
110
|
+
description: 'List merge requests scheduled for a milestone. Use to track feature completion, review code changes for release, or identify pending work. Shows MR status, approvals, and pipeline status. Critical for release readiness assessment.',
|
|
111
111
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetMilestoneMergeRequestsSchema),
|
|
112
112
|
handler: async (args) => {
|
|
113
113
|
const options = schema_readonly_1.GetMilestoneMergeRequestsSchema.parse(args);
|
|
@@ -143,7 +143,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
143
143
|
'get_milestone_burndown_events',
|
|
144
144
|
{
|
|
145
145
|
name: 'get_milestone_burndown_events',
|
|
146
|
-
description: '
|
|
146
|
+
description: 'Track milestone progress with burndown chart data. Use for agile metrics, velocity tracking, and sprint analysis. Returns time-series events showing work completion rate. Premium/Ultimate feature for advanced project analytics.',
|
|
147
147
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetMilestoneBurndownEventsSchema),
|
|
148
148
|
handler: async (args) => {
|
|
149
149
|
const options = schema_readonly_1.GetMilestoneBurndownEventsSchema.parse(args);
|
|
@@ -169,7 +169,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
169
169
|
'create_milestone',
|
|
170
170
|
{
|
|
171
171
|
name: 'create_milestone',
|
|
172
|
-
description: '
|
|
172
|
+
description: 'Define a new release milestone or sprint cycle. Use to establish delivery targets, organize work phases, or plan releases. Set title, description, start/due dates. Group milestones coordinate releases across multiple projects.',
|
|
173
173
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.CreateProjectMilestoneSchema),
|
|
174
174
|
handler: async (args) => {
|
|
175
175
|
const options = schema_1.CreateProjectMilestoneSchema.parse(args);
|
|
@@ -204,7 +204,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
204
204
|
'edit_milestone',
|
|
205
205
|
{
|
|
206
206
|
name: 'edit_milestone',
|
|
207
|
-
description: '
|
|
207
|
+
description: 'Update milestone properties like dates, description, or state. Use to adjust release schedules, extend sprints, or close completed milestones. Changes apply immediately to all associated issues and MRs.',
|
|
208
208
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.EditProjectMilestoneSchema),
|
|
209
209
|
handler: async (args) => {
|
|
210
210
|
const options = schema_1.EditProjectMilestoneSchema.parse(args);
|
|
@@ -243,7 +243,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
243
243
|
'delete_milestone',
|
|
244
244
|
{
|
|
245
245
|
name: 'delete_milestone',
|
|
246
|
-
description: '
|
|
246
|
+
description: 'Remove a milestone permanently. Use to clean up cancelled releases or obsolete milestones. Warning: removes milestone association from all issues and MRs. Consider closing instead of deleting for historical tracking.',
|
|
247
247
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.DeleteProjectMilestoneSchema),
|
|
248
248
|
handler: async (args) => {
|
|
249
249
|
const options = schema_1.DeleteProjectMilestoneSchema.parse(args);
|
|
@@ -270,7 +270,7 @@ exports.milestonesToolRegistry = new Map([
|
|
|
270
270
|
'promote_milestone',
|
|
271
271
|
{
|
|
272
272
|
name: 'promote_milestone',
|
|
273
|
-
description: '
|
|
273
|
+
description: 'Elevate project milestone to group level for cross-project coordination. Use when a milestone needs to span multiple projects. Consolidates related project milestones into single group milestone. Useful for organizational release planning.',
|
|
274
274
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.PromoteProjectMilestoneSchema),
|
|
275
275
|
handler: async (args) => {
|
|
276
276
|
const options = schema_1.PromoteProjectMilestoneSchema.parse(args);
|