@structured-world/gitlab-mcp 4.0.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -4
- package/dist/entities/core/registry.js +162 -70
- 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 +152 -61
- package/dist/entities/core/schema.js +111 -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 +23 -34
- package/dist/entities/labels/registry.js.map +1 -1
- package/dist/entities/labels/schema-readonly.d.ts +26 -10
- package/dist/entities/labels/schema-readonly.js +5 -15
- package/dist/entities/labels/schema-readonly.js.map +1 -1
- package/dist/entities/labels/schema.d.ts +40 -11
- package/dist/entities/labels/schema.js +8 -23
- package/dist/entities/labels/schema.js.map +1 -1
- package/dist/entities/milestones/registry.js +44 -61
- package/dist/entities/milestones/registry.js.map +1 -1
- package/dist/entities/milestones/schema-readonly.d.ts +105 -30
- package/dist/entities/milestones/schema-readonly.js +7 -15
- package/dist/entities/milestones/schema-readonly.js.map +1 -1
- package/dist/entities/milestones/schema.d.ts +52 -19
- package/dist/entities/milestones/schema.js +8 -28
- package/dist/entities/milestones/schema.js.map +1 -1
- 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 +23 -33
- package/dist/entities/variables/registry.js.map +1 -1
- package/dist/entities/variables/schema-readonly.d.ts +30 -7
- package/dist/entities/variables/schema-readonly.js +4 -13
- package/dist/entities/variables/schema-readonly.js.map +1 -1
- package/dist/entities/variables/schema.d.ts +83 -26
- package/dist/entities/variables/schema.js +6 -21
- package/dist/entities/variables/schema.js.map +1 -1
- package/dist/entities/wiki/registry.js +25 -42
- package/dist/entities/wiki/registry.js.map +1 -1
- package/dist/entities/wiki/schema-readonly.d.ts +37 -8
- package/dist/entities/wiki/schema-readonly.js +4 -13
- package/dist/entities/wiki/schema-readonly.js.map +1 -1
- package/dist/entities/wiki/schema.d.ts +34 -9
- package/dist/entities/wiki/schema.js +6 -21
- package/dist/entities/wiki/schema.js.map +1 -1
- package/dist/entities/workitems/registry.js +94 -13
- package/dist/entities/workitems/registry.js.map +1 -1
- package/dist/entities/workitems/schema-readonly.d.ts +29 -32
- package/dist/entities/workitems/schema-readonly.js +7 -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 +34 -1
- package/dist/graphql/workItems.js +349 -2
- 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.1.tgz +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/namespace.d.ts +6 -0
- package/dist/utils/namespace.js +52 -0
- package/dist/utils/namespace.js.map +1 -0
- package/package.json +5 -3
- package/dist/structured-world-gitlab-mcp-4.0.0.tgz +0 -0
|
@@ -1,87 +1,178 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CreateRepositorySchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
|
-
|
|
5
|
-
namespace_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
4
|
+
namespacePath: z.ZodOptional<z.ZodString>;
|
|
6
5
|
description: z.ZodOptional<z.ZodString>;
|
|
7
|
-
issues_enabled: z.ZodOptional<z.
|
|
8
|
-
merge_requests_enabled: z.ZodOptional<z.
|
|
9
|
-
jobs_enabled: z.ZodOptional<z.
|
|
10
|
-
wiki_enabled: z.ZodOptional<z.
|
|
11
|
-
snippets_enabled: z.ZodOptional<z.
|
|
12
|
-
resolve_outdated_diff_discussions: z.ZodOptional<z.
|
|
13
|
-
container_registry_enabled: z.ZodOptional<z.
|
|
14
|
-
container_registry_access_level: z.ZodOptional<z.ZodEnum<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
disabled: "disabled";
|
|
18
|
-
}>>;
|
|
19
|
-
shared_runners_enabled: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
20
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
private: "private";
|
|
22
|
-
internal: "internal";
|
|
23
|
-
public: "public";
|
|
24
|
-
}>>;
|
|
6
|
+
issues_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
7
|
+
merge_requests_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
8
|
+
jobs_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
9
|
+
wiki_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
10
|
+
snippets_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
11
|
+
resolve_outdated_diff_discussions: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
12
|
+
container_registry_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
13
|
+
container_registry_access_level: z.ZodOptional<z.ZodEnum<["disabled", "private", "enabled"]>>;
|
|
14
|
+
shared_runners_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
15
|
+
visibility: z.ZodOptional<z.ZodEnum<["private", "internal", "public"]>>;
|
|
25
16
|
import_url: z.ZodOptional<z.ZodString>;
|
|
26
|
-
public_jobs: z.ZodOptional<z.
|
|
27
|
-
only_allow_merge_if_pipeline_succeeds: z.ZodOptional<z.
|
|
28
|
-
allow_merge_on_skipped_pipeline: z.ZodOptional<z.
|
|
29
|
-
only_allow_merge_if_all_discussions_are_resolved: z.ZodOptional<z.
|
|
30
|
-
merge_method: z.ZodOptional<z.ZodEnum<
|
|
31
|
-
|
|
32
|
-
rebase_merge: "rebase_merge";
|
|
33
|
-
ff: "ff";
|
|
34
|
-
}>>;
|
|
35
|
-
autoclose_referenced_issues: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
17
|
+
public_jobs: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
18
|
+
only_allow_merge_if_pipeline_succeeds: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
19
|
+
allow_merge_on_skipped_pipeline: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
20
|
+
only_allow_merge_if_all_discussions_are_resolved: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
21
|
+
merge_method: z.ZodOptional<z.ZodEnum<["merge", "rebase_merge", "ff"]>>;
|
|
22
|
+
autoclose_referenced_issues: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
36
23
|
suggestion_commit_message: z.ZodOptional<z.ZodString>;
|
|
37
|
-
remove_source_branch_after_merge: z.ZodOptional<z.
|
|
38
|
-
lfs_enabled: z.ZodOptional<z.
|
|
39
|
-
request_access_enabled: z.ZodOptional<z.
|
|
40
|
-
tag_list: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
-
printing_merge_request_link_enabled: z.ZodOptional<z.
|
|
42
|
-
build_git_strategy: z.ZodOptional<z.ZodEnum<
|
|
43
|
-
fetch: "fetch";
|
|
44
|
-
clone: "clone";
|
|
45
|
-
}>>;
|
|
24
|
+
remove_source_branch_after_merge: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
25
|
+
lfs_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
26
|
+
request_access_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
27
|
+
tag_list: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
printing_merge_request_link_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
29
|
+
build_git_strategy: z.ZodOptional<z.ZodEnum<["fetch", "clone"]>>;
|
|
46
30
|
build_timeout: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
auto_cancel_pending_pipelines: z.ZodOptional<z.ZodEnum<
|
|
48
|
-
enabled: "enabled";
|
|
49
|
-
disabled: "disabled";
|
|
50
|
-
}>>;
|
|
31
|
+
auto_cancel_pending_pipelines: z.ZodOptional<z.ZodEnum<["disabled", "enabled"]>>;
|
|
51
32
|
build_coverage_regex: z.ZodOptional<z.ZodString>;
|
|
52
33
|
ci_config_path: z.ZodOptional<z.ZodString>;
|
|
53
|
-
auto_devops_enabled: z.ZodOptional<z.
|
|
54
|
-
auto_devops_deploy_strategy: z.ZodOptional<z.ZodEnum<
|
|
55
|
-
manual: "manual";
|
|
56
|
-
continuous: "continuous";
|
|
57
|
-
timed_incremental: "timed_incremental";
|
|
58
|
-
}>>;
|
|
34
|
+
auto_devops_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
35
|
+
auto_devops_deploy_strategy: z.ZodOptional<z.ZodEnum<["continuous", "manual", "timed_incremental"]>>;
|
|
59
36
|
repository_storage: z.ZodOptional<z.ZodString>;
|
|
60
37
|
approvals_before_merge: z.ZodOptional<z.ZodNumber>;
|
|
61
38
|
external_authorization_classification_label: z.ZodOptional<z.ZodString>;
|
|
62
|
-
mirror: z.ZodOptional<z.
|
|
63
|
-
mirror_trigger_builds: z.ZodOptional<z.
|
|
64
|
-
initialize_with_readme: z.ZodOptional<z.
|
|
39
|
+
mirror: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
40
|
+
mirror_trigger_builds: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
41
|
+
initialize_with_readme: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
65
42
|
template_name: z.ZodOptional<z.ZodString>;
|
|
66
43
|
template_project_id: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
use_custom_template: z.ZodOptional<z.
|
|
44
|
+
use_custom_template: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
68
45
|
group_with_project_templates_id: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
packages_enabled: z.ZodOptional<z.
|
|
70
|
-
service_desk_enabled: z.ZodOptional<z.
|
|
71
|
-
compliance_frameworks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
-
}, z.
|
|
46
|
+
packages_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
47
|
+
service_desk_enabled: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
|
|
48
|
+
compliance_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
name: string;
|
|
51
|
+
description?: string | undefined;
|
|
52
|
+
tag_list?: string[] | undefined;
|
|
53
|
+
visibility?: "private" | "internal" | "public" | undefined;
|
|
54
|
+
repository_storage?: string | undefined;
|
|
55
|
+
packages_enabled?: boolean | undefined;
|
|
56
|
+
resolve_outdated_diff_discussions?: boolean | undefined;
|
|
57
|
+
issues_enabled?: boolean | undefined;
|
|
58
|
+
merge_requests_enabled?: boolean | undefined;
|
|
59
|
+
wiki_enabled?: boolean | undefined;
|
|
60
|
+
jobs_enabled?: boolean | undefined;
|
|
61
|
+
snippets_enabled?: boolean | undefined;
|
|
62
|
+
container_registry_enabled?: boolean | undefined;
|
|
63
|
+
service_desk_enabled?: boolean | undefined;
|
|
64
|
+
container_registry_access_level?: "enabled" | "private" | "disabled" | undefined;
|
|
65
|
+
shared_runners_enabled?: boolean | undefined;
|
|
66
|
+
lfs_enabled?: boolean | undefined;
|
|
67
|
+
import_url?: string | undefined;
|
|
68
|
+
build_git_strategy?: "fetch" | "clone" | undefined;
|
|
69
|
+
auto_cancel_pending_pipelines?: "enabled" | "disabled" | undefined;
|
|
70
|
+
build_timeout?: number | undefined;
|
|
71
|
+
auto_devops_enabled?: boolean | undefined;
|
|
72
|
+
auto_devops_deploy_strategy?: "manual" | "continuous" | "timed_incremental" | undefined;
|
|
73
|
+
ci_config_path?: string | undefined;
|
|
74
|
+
public_jobs?: boolean | undefined;
|
|
75
|
+
only_allow_merge_if_pipeline_succeeds?: boolean | undefined;
|
|
76
|
+
allow_merge_on_skipped_pipeline?: boolean | undefined;
|
|
77
|
+
request_access_enabled?: boolean | undefined;
|
|
78
|
+
only_allow_merge_if_all_discussions_are_resolved?: boolean | undefined;
|
|
79
|
+
remove_source_branch_after_merge?: boolean | undefined;
|
|
80
|
+
printing_merge_request_link_enabled?: boolean | undefined;
|
|
81
|
+
merge_method?: "merge" | "rebase_merge" | "ff" | undefined;
|
|
82
|
+
suggestion_commit_message?: string | undefined;
|
|
83
|
+
autoclose_referenced_issues?: boolean | undefined;
|
|
84
|
+
approvals_before_merge?: number | undefined;
|
|
85
|
+
mirror?: boolean | undefined;
|
|
86
|
+
external_authorization_classification_label?: string | undefined;
|
|
87
|
+
compliance_frameworks?: string[] | undefined;
|
|
88
|
+
namespacePath?: string | undefined;
|
|
89
|
+
build_coverage_regex?: string | undefined;
|
|
90
|
+
mirror_trigger_builds?: boolean | undefined;
|
|
91
|
+
initialize_with_readme?: boolean | undefined;
|
|
92
|
+
template_name?: string | undefined;
|
|
93
|
+
template_project_id?: number | undefined;
|
|
94
|
+
use_custom_template?: boolean | undefined;
|
|
95
|
+
group_with_project_templates_id?: number | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
name: string;
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
tag_list?: string[] | undefined;
|
|
100
|
+
visibility?: "private" | "internal" | "public" | undefined;
|
|
101
|
+
repository_storage?: string | undefined;
|
|
102
|
+
packages_enabled?: unknown;
|
|
103
|
+
resolve_outdated_diff_discussions?: unknown;
|
|
104
|
+
issues_enabled?: unknown;
|
|
105
|
+
merge_requests_enabled?: unknown;
|
|
106
|
+
wiki_enabled?: unknown;
|
|
107
|
+
jobs_enabled?: unknown;
|
|
108
|
+
snippets_enabled?: unknown;
|
|
109
|
+
container_registry_enabled?: unknown;
|
|
110
|
+
service_desk_enabled?: unknown;
|
|
111
|
+
container_registry_access_level?: "enabled" | "private" | "disabled" | undefined;
|
|
112
|
+
shared_runners_enabled?: unknown;
|
|
113
|
+
lfs_enabled?: unknown;
|
|
114
|
+
import_url?: string | undefined;
|
|
115
|
+
build_git_strategy?: "fetch" | "clone" | undefined;
|
|
116
|
+
auto_cancel_pending_pipelines?: "enabled" | "disabled" | undefined;
|
|
117
|
+
build_timeout?: number | undefined;
|
|
118
|
+
auto_devops_enabled?: unknown;
|
|
119
|
+
auto_devops_deploy_strategy?: "manual" | "continuous" | "timed_incremental" | undefined;
|
|
120
|
+
ci_config_path?: string | undefined;
|
|
121
|
+
public_jobs?: unknown;
|
|
122
|
+
only_allow_merge_if_pipeline_succeeds?: unknown;
|
|
123
|
+
allow_merge_on_skipped_pipeline?: unknown;
|
|
124
|
+
request_access_enabled?: unknown;
|
|
125
|
+
only_allow_merge_if_all_discussions_are_resolved?: unknown;
|
|
126
|
+
remove_source_branch_after_merge?: unknown;
|
|
127
|
+
printing_merge_request_link_enabled?: unknown;
|
|
128
|
+
merge_method?: "merge" | "rebase_merge" | "ff" | undefined;
|
|
129
|
+
suggestion_commit_message?: string | undefined;
|
|
130
|
+
autoclose_referenced_issues?: unknown;
|
|
131
|
+
approvals_before_merge?: number | undefined;
|
|
132
|
+
mirror?: unknown;
|
|
133
|
+
external_authorization_classification_label?: string | undefined;
|
|
134
|
+
compliance_frameworks?: string[] | undefined;
|
|
135
|
+
namespacePath?: string | undefined;
|
|
136
|
+
build_coverage_regex?: string | undefined;
|
|
137
|
+
mirror_trigger_builds?: unknown;
|
|
138
|
+
initialize_with_readme?: unknown;
|
|
139
|
+
template_name?: string | undefined;
|
|
140
|
+
template_project_id?: number | undefined;
|
|
141
|
+
use_custom_template?: unknown;
|
|
142
|
+
group_with_project_templates_id?: number | undefined;
|
|
143
|
+
}>;
|
|
73
144
|
export declare const ForkRepositorySchema: z.ZodObject<{
|
|
74
|
-
project_id: z.
|
|
145
|
+
project_id: z.ZodString;
|
|
75
146
|
namespace: z.ZodOptional<z.ZodString>;
|
|
76
147
|
namespace_path: z.ZodOptional<z.ZodString>;
|
|
77
148
|
name: z.ZodOptional<z.ZodString>;
|
|
78
149
|
path: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, z.
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
project_id: string;
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
path?: string | undefined;
|
|
154
|
+
namespace?: string | undefined;
|
|
155
|
+
namespace_path?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
project_id: string;
|
|
158
|
+
name?: string | undefined;
|
|
159
|
+
path?: string | undefined;
|
|
160
|
+
namespace?: string | undefined;
|
|
161
|
+
namespace_path?: string | undefined;
|
|
162
|
+
}>;
|
|
80
163
|
export declare const CreateBranchSchema: z.ZodObject<{
|
|
81
|
-
project_id: z.
|
|
164
|
+
project_id: z.ZodString;
|
|
82
165
|
branch: z.ZodString;
|
|
83
166
|
ref: z.ZodString;
|
|
84
|
-
}, z.
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
project_id: string;
|
|
169
|
+
branch: string;
|
|
170
|
+
ref: string;
|
|
171
|
+
}, {
|
|
172
|
+
project_id: string;
|
|
173
|
+
branch: string;
|
|
174
|
+
ref: string;
|
|
175
|
+
}>;
|
|
85
176
|
export type CreateRepositoryOptions = z.infer<typeof CreateRepositorySchema>;
|
|
86
177
|
export type ForkRepositoryOptions = z.infer<typeof ForkRepositorySchema>;
|
|
87
178
|
export type CreateBranchOptions = z.infer<typeof CreateBranchSchema>;
|
|
@@ -4,140 +4,196 @@ exports.CreateBranchSchema = exports.ForkRepositorySchema = exports.CreateReposi
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
exports.CreateRepositorySchema = zod_1.z.object({
|
|
7
|
-
name: zod_1.z
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
name: zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.describe('Project display name. Can contain spaces and special characters. Example: "My Awesome Project".'),
|
|
10
|
+
namespacePath: zod_1.z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('Target namespace for project creation. Use group path ("test"), user path ("username"), or subgroup ("group/subgroup"). Omit for current user namespace. Tool automatically resolves paths to IDs and validates existence.'),
|
|
14
|
+
description: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Project description shown on overview page. Supports Markdown formatting. Max 2000 chars.'),
|
|
18
|
+
issues_enabled: utils_1.flexibleBoolean
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('Enable issue tracking for bug reports and feature requests. Default: true.'),
|
|
12
21
|
merge_requests_enabled: utils_1.flexibleBoolean
|
|
13
22
|
.optional()
|
|
14
|
-
.describe('Enable merge requests for
|
|
15
|
-
jobs_enabled: utils_1.flexibleBoolean
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
.describe('Enable merge requests for code review and collaboration. Default: true.'),
|
|
24
|
+
jobs_enabled: utils_1.flexibleBoolean
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('Enable CI/CD jobs and pipelines. Required for automated testing and deployment.'),
|
|
27
|
+
wiki_enabled: utils_1.flexibleBoolean
|
|
28
|
+
.optional()
|
|
29
|
+
.describe('Enable project wiki for documentation. Creates separate Git repository for wiki content.'),
|
|
30
|
+
snippets_enabled: utils_1.flexibleBoolean
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Enable code snippets for sharing small code examples and scripts.'),
|
|
18
33
|
resolve_outdated_diff_discussions: utils_1.flexibleBoolean
|
|
19
34
|
.optional()
|
|
20
|
-
.describe('
|
|
35
|
+
.describe('Auto-resolve MR discussions on modified lines when new commits are pushed. Keeps discussions relevant.'),
|
|
21
36
|
container_registry_enabled: utils_1.flexibleBoolean
|
|
22
37
|
.optional()
|
|
23
|
-
.describe('Enable container registry for
|
|
38
|
+
.describe('Enable Docker container registry for storing and managing Docker images.'),
|
|
24
39
|
container_registry_access_level: zod_1.z
|
|
25
40
|
.enum(['disabled', 'private', 'enabled'])
|
|
26
41
|
.optional()
|
|
27
|
-
.describe('
|
|
42
|
+
.describe('Container registry visibility: disabled=off, private=project members only, enabled=follows project visibility.'),
|
|
28
43
|
shared_runners_enabled: utils_1.flexibleBoolean
|
|
29
44
|
.optional()
|
|
30
|
-
.describe('
|
|
45
|
+
.describe('Use GitLab shared runners for CI/CD. Disable to use only project-specific runners.'),
|
|
31
46
|
visibility: zod_1.z
|
|
32
47
|
.enum(['private', 'internal', 'public'])
|
|
33
48
|
.optional()
|
|
34
|
-
.describe('
|
|
35
|
-
import_url: zod_1.z
|
|
36
|
-
|
|
49
|
+
.describe('Project visibility: private=members only, internal=logged-in users, public=everyone. Affects clone/browse access.'),
|
|
50
|
+
import_url: zod_1.z
|
|
51
|
+
.string()
|
|
52
|
+
.optional()
|
|
53
|
+
.describe('Git URL to import existing repository. Supports HTTP(S) and SSH URLs. Example: https://github.com/user/repo.git'),
|
|
54
|
+
public_jobs: utils_1.flexibleBoolean
|
|
55
|
+
.optional()
|
|
56
|
+
.describe('Allow non-members to view CI/CD job logs and artifacts. Useful for open source projects.'),
|
|
37
57
|
only_allow_merge_if_pipeline_succeeds: utils_1.flexibleBoolean
|
|
38
58
|
.optional()
|
|
39
|
-
.describe('
|
|
59
|
+
.describe('Require all CI/CD pipelines to pass before allowing merge. Ensures code quality.'),
|
|
40
60
|
allow_merge_on_skipped_pipeline: utils_1.flexibleBoolean
|
|
41
61
|
.optional()
|
|
42
|
-
.describe('
|
|
62
|
+
.describe('Treat skipped pipelines as successful. Use when some pipelines are optional.'),
|
|
43
63
|
only_allow_merge_if_all_discussions_are_resolved: utils_1.flexibleBoolean
|
|
44
64
|
.optional()
|
|
45
|
-
.describe('
|
|
65
|
+
.describe('Require all discussion threads to be resolved before merge. Ensures all feedback is addressed.'),
|
|
46
66
|
merge_method: zod_1.z
|
|
47
67
|
.enum(['merge', 'rebase_merge', 'ff'])
|
|
48
68
|
.optional()
|
|
49
|
-
.describe('
|
|
69
|
+
.describe('Merge strategy: merge=create merge commit, rebase_merge=rebase then merge, ff=fast-forward only.'),
|
|
50
70
|
autoclose_referenced_issues: utils_1.flexibleBoolean
|
|
51
71
|
.optional()
|
|
52
|
-
.describe('
|
|
72
|
+
.describe('Automatically close issues referenced by "Closes #123" in commit messages when merged to default branch.'),
|
|
53
73
|
suggestion_commit_message: zod_1.z
|
|
54
74
|
.string()
|
|
55
75
|
.optional()
|
|
56
|
-
.describe('
|
|
76
|
+
.describe('Template for commit messages when applying code suggestions. Supports variables like %{suggestion_author}.'),
|
|
57
77
|
remove_source_branch_after_merge: utils_1.flexibleBoolean
|
|
58
78
|
.optional()
|
|
59
|
-
.describe('
|
|
60
|
-
lfs_enabled: utils_1.flexibleBoolean
|
|
79
|
+
.describe('Auto-enable "Delete source branch" checkbox on new MRs. Keeps repository clean after merging.'),
|
|
80
|
+
lfs_enabled: utils_1.flexibleBoolean
|
|
81
|
+
.optional()
|
|
82
|
+
.describe('Enable Git LFS (Large File Storage) for managing large binary files efficiently.'),
|
|
61
83
|
request_access_enabled: utils_1.flexibleBoolean
|
|
62
84
|
.optional()
|
|
63
|
-
.describe('Allow
|
|
64
|
-
tag_list: zod_1.z
|
|
85
|
+
.describe('Allow non-members to request project access. Maintainers can approve/deny requests.'),
|
|
86
|
+
tag_list: zod_1.z
|
|
87
|
+
.array(zod_1.z.string())
|
|
88
|
+
.optional()
|
|
89
|
+
.describe('Project tags/topics for categorization and discovery. Example: ["javascript", "frontend", "react"].'),
|
|
65
90
|
printing_merge_request_link_enabled: utils_1.flexibleBoolean
|
|
66
91
|
.optional()
|
|
67
|
-
.describe('
|
|
92
|
+
.describe('Display MR creation URL in git push output. Convenient for quickly creating MRs after pushing.'),
|
|
68
93
|
build_git_strategy: zod_1.z
|
|
69
94
|
.enum(['fetch', 'clone'])
|
|
70
95
|
.optional()
|
|
71
|
-
.describe('
|
|
96
|
+
.describe('CI/CD git strategy: fetch=incremental fetch (faster), clone=fresh clone each time (cleaner).'),
|
|
72
97
|
build_timeout: zod_1.z
|
|
73
98
|
.number()
|
|
74
99
|
.optional()
|
|
75
|
-
.describe('
|
|
100
|
+
.describe('Maximum job runtime in seconds before automatic termination. Default: 3600 (1 hour).'),
|
|
76
101
|
auto_cancel_pending_pipelines: zod_1.z
|
|
77
102
|
.enum(['disabled', 'enabled'])
|
|
78
103
|
.optional()
|
|
79
|
-
.describe('
|
|
80
|
-
build_coverage_regex: zod_1.z
|
|
81
|
-
|
|
82
|
-
|
|
104
|
+
.describe('Cancel redundant pipelines when new commits are pushed. Saves CI resources.'),
|
|
105
|
+
build_coverage_regex: zod_1.z
|
|
106
|
+
.string()
|
|
107
|
+
.optional()
|
|
108
|
+
.describe('Regex pattern to extract test coverage from job output. Example: "Total:\\s*(\\d+\\.?\\d*)%".'),
|
|
109
|
+
ci_config_path: zod_1.z
|
|
110
|
+
.string()
|
|
111
|
+
.optional()
|
|
112
|
+
.describe('Path to CI/CD configuration file. Default: .gitlab-ci.yml. Can be in other repos with @group/project.'),
|
|
113
|
+
auto_devops_enabled: utils_1.flexibleBoolean
|
|
114
|
+
.optional()
|
|
115
|
+
.describe('Enable Auto DevOps for automatic CI/CD pipeline configuration. Requires Kubernetes for deployment.'),
|
|
83
116
|
auto_devops_deploy_strategy: zod_1.z
|
|
84
117
|
.enum(['continuous', 'manual', 'timed_incremental'])
|
|
85
118
|
.optional()
|
|
86
|
-
.describe('Auto
|
|
87
|
-
repository_storage: zod_1.z
|
|
119
|
+
.describe('Auto DevOps deployment strategy: continuous=every push, manual=manual trigger, timed_incremental=gradual rollout.'),
|
|
120
|
+
repository_storage: zod_1.z
|
|
121
|
+
.string()
|
|
122
|
+
.optional()
|
|
123
|
+
.describe('Storage shard for repository data (admin setting). Used in multi-shard GitLab installations.'),
|
|
88
124
|
approvals_before_merge: zod_1.z
|
|
89
125
|
.number()
|
|
90
126
|
.optional()
|
|
91
|
-
.describe('
|
|
127
|
+
.describe('Minimum number of approvals required for merge requests. Requires GitLab Premium. 0=disabled.'),
|
|
92
128
|
external_authorization_classification_label: zod_1.z
|
|
93
129
|
.string()
|
|
94
130
|
.optional()
|
|
95
|
-
.describe('
|
|
96
|
-
mirror: utils_1.flexibleBoolean
|
|
97
|
-
|
|
98
|
-
|
|
131
|
+
.describe('External authorization system classification label. For compliance with external auth systems.'),
|
|
132
|
+
mirror: utils_1.flexibleBoolean
|
|
133
|
+
.optional()
|
|
134
|
+
.describe('Enable repository mirroring from external source. Keeps fork synchronized with upstream.'),
|
|
135
|
+
mirror_trigger_builds: utils_1.flexibleBoolean
|
|
136
|
+
.optional()
|
|
137
|
+
.describe('Trigger CI/CD pipelines when mirror updates. Useful for testing upstream changes.'),
|
|
138
|
+
initialize_with_readme: utils_1.flexibleBoolean
|
|
139
|
+
.optional()
|
|
140
|
+
.describe('Create initial README.md file. Prevents empty repository and enables immediate cloning.'),
|
|
99
141
|
template_name: zod_1.z
|
|
100
142
|
.string()
|
|
101
143
|
.optional()
|
|
102
|
-
.describe('
|
|
144
|
+
.describe('Template name for project initialization. Use with use_custom_template=true. Example: "rails", "spring".'),
|
|
103
145
|
template_project_id: zod_1.z
|
|
104
146
|
.number()
|
|
105
147
|
.optional()
|
|
106
|
-
.describe('
|
|
148
|
+
.describe('Source project ID to use as template. Creates project with same structure and settings.'),
|
|
107
149
|
use_custom_template: utils_1.flexibleBoolean
|
|
108
150
|
.optional()
|
|
109
|
-
.describe('
|
|
151
|
+
.describe('Enable custom project templates. Requires template_name or template_project_id. For advanced project initialization.'),
|
|
110
152
|
group_with_project_templates_id: zod_1.z
|
|
111
153
|
.number()
|
|
112
154
|
.optional()
|
|
113
|
-
.describe('
|
|
155
|
+
.describe('Group ID containing custom project templates. For organizations with standard project structures.'),
|
|
114
156
|
packages_enabled: utils_1.flexibleBoolean
|
|
115
157
|
.optional()
|
|
116
|
-
.describe('Enable
|
|
158
|
+
.describe('Enable package registry for NPM, Maven, PyPI, etc. packages. Store and share dependencies.'),
|
|
117
159
|
service_desk_enabled: utils_1.flexibleBoolean
|
|
118
160
|
.optional()
|
|
119
|
-
.describe('Enable
|
|
161
|
+
.describe('Enable Service Desk for customer support via email. Creates issues from emails. Premium feature.'),
|
|
120
162
|
compliance_frameworks: zod_1.z
|
|
121
163
|
.array(zod_1.z.string())
|
|
122
164
|
.optional()
|
|
123
|
-
.describe('Compliance
|
|
165
|
+
.describe('Compliance framework names for regulatory requirements. Example: ["SOC2", "GDPR"]. Ultimate feature.'),
|
|
124
166
|
});
|
|
125
167
|
exports.ForkRepositorySchema = zod_1.z.object({
|
|
126
|
-
project_id: zod_1.z.coerce
|
|
168
|
+
project_id: zod_1.z.coerce
|
|
169
|
+
.string()
|
|
170
|
+
.describe('Source project to fork. Use numeric ID or URL-encoded path like "gitlab-org%2Fgitlab".'),
|
|
127
171
|
namespace: zod_1.z
|
|
128
172
|
.string()
|
|
129
173
|
.optional()
|
|
130
|
-
.describe('
|
|
174
|
+
.describe('Target namespace (group or user) for the fork. Use ID or path. Defaults to current user namespace.'),
|
|
131
175
|
namespace_path: zod_1.z
|
|
132
176
|
.string()
|
|
133
177
|
.optional()
|
|
134
|
-
.describe('
|
|
135
|
-
name: zod_1.z
|
|
136
|
-
|
|
178
|
+
.describe('Alternative to namespace parameter. Specify target namespace by path only.'),
|
|
179
|
+
name: zod_1.z
|
|
180
|
+
.string()
|
|
181
|
+
.optional()
|
|
182
|
+
.describe('Display name for the fork. Defaults to original project name.'),
|
|
183
|
+
path: zod_1.z
|
|
184
|
+
.string()
|
|
185
|
+
.optional()
|
|
186
|
+
.describe('URL path for the fork. Must be unique in namespace. Defaults to original path.'),
|
|
137
187
|
});
|
|
138
188
|
exports.CreateBranchSchema = zod_1.z.object({
|
|
139
|
-
project_id: zod_1.z.coerce
|
|
140
|
-
|
|
141
|
-
|
|
189
|
+
project_id: zod_1.z.coerce
|
|
190
|
+
.string()
|
|
191
|
+
.describe('Target project for new branch. Use numeric ID or URL-encoded path.'),
|
|
192
|
+
branch: zod_1.z
|
|
193
|
+
.string()
|
|
194
|
+
.describe('New branch name. Must be unique. Cannot contain spaces or special chars except - and _.'),
|
|
195
|
+
ref: zod_1.z
|
|
196
|
+
.string()
|
|
197
|
+
.describe('Source reference: existing branch name or commit SHA. Example: "main" or "abc123def".'),
|
|
142
198
|
});
|
|
143
199
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/entities/core/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAA2C;AAK9B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/entities/core/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAA2C;AAK9B,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,iGAAiG,CAClG;IACH,aAAa,EAAE,OAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,4NAA4N,CAC7N;IACH,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,2FAA2F,CAC5F;IACH,cAAc,EAAE,uBAAe;SAC5B,QAAQ,EAAE;SACV,QAAQ,CAAC,4EAA4E,CAAC;IACzF,sBAAsB,EAAE,uBAAe;SACpC,QAAQ,EAAE;SACV,QAAQ,CAAC,yEAAyE,CAAC;IACtF,YAAY,EAAE,uBAAe;SAC1B,QAAQ,EAAE;SACV,QAAQ,CAAC,iFAAiF,CAAC;IAC9F,YAAY,EAAE,uBAAe;SAC1B,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;IACH,gBAAgB,EAAE,uBAAe;SAC9B,QAAQ,EAAE;SACV,QAAQ,CAAC,mEAAmE,CAAC;IAChF,iCAAiC,EAAE,uBAAe;SAC/C,QAAQ,EAAE;SACV,QAAQ,CACP,wGAAwG,CACzG;IACH,0BAA0B,EAAE,uBAAe;SACxC,QAAQ,EAAE;SACV,QAAQ,CAAC,0EAA0E,CAAC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MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4EAA4E,CAAC;IACzF,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gFAAgF,CAAC;CAC9F,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,MAAM;SACjB,MAAM,EAAE;SACR,QAAQ,CAAC,oEAAoE,CAAC;IACjF,MAAM,EAAE,OAAC;SACN,MAAM,EAAE;SACR,QAAQ,CACP,yFAAyF,CAC1F;IACH,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,QAAQ,CACP,uFAAuF,CACxF;CACJ,CAAC,CAAC"}
|
|
@@ -13,7 +13,7 @@ exports.filesToolRegistry = new Map([
|
|
|
13
13
|
'get_repository_tree',
|
|
14
14
|
{
|
|
15
15
|
name: 'get_repository_tree',
|
|
16
|
-
description: '
|
|
16
|
+
description: 'BROWSE: List files/folders WITHOUT reading content. Use when: Exploring project structure, Finding file locations, Checking what exists. Returns: names, types (blob=file, tree=folder), sizes. Set recursive=true for full tree. Does NOT return file contents! See also: get_file_contents to READ actual content.',
|
|
17
17
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetRepositoryTreeSchema),
|
|
18
18
|
handler: async (args) => {
|
|
19
19
|
const options = schema_readonly_1.GetRepositoryTreeSchema.parse(args);
|
|
@@ -42,7 +42,7 @@ exports.filesToolRegistry = new Map([
|
|
|
42
42
|
'get_file_contents',
|
|
43
43
|
{
|
|
44
44
|
name: 'get_file_contents',
|
|
45
|
-
description: 'Get
|
|
45
|
+
description: 'READ: Get actual file content from repository. Use when: Reading source code, Viewing configs/docs, Getting file data. Returns base64-encoded content (decode required!) plus metadata. For browsing structure use get_repository_tree instead. Supports any branch/tag/commit via ref param.',
|
|
46
46
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_readonly_1.GetFileContentsSchema),
|
|
47
47
|
handler: async (args) => {
|
|
48
48
|
const options = schema_readonly_1.GetFileContentsSchema.parse(args);
|
|
@@ -69,7 +69,7 @@ exports.filesToolRegistry = new Map([
|
|
|
69
69
|
'create_or_update_file',
|
|
70
70
|
{
|
|
71
71
|
name: 'create_or_update_file',
|
|
72
|
-
description: 'Create
|
|
72
|
+
description: 'SINGLE FILE: Create new OR update existing file in one commit. Use when: Changing ONE file only, Quick edits, Adding single document. Auto-detects create vs update. Content must be base64-encoded! For multiple files use push_files instead. Creates commit with your message.',
|
|
73
73
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.CreateOrUpdateFileSchema),
|
|
74
74
|
handler: async (args) => {
|
|
75
75
|
const options = schema_1.CreateOrUpdateFileSchema.parse(args);
|
|
@@ -101,7 +101,7 @@ exports.filesToolRegistry = new Map([
|
|
|
101
101
|
'push_files',
|
|
102
102
|
{
|
|
103
103
|
name: 'push_files',
|
|
104
|
-
description: '
|
|
104
|
+
description: 'BATCH: Commit MULTIPLE file changes atomically. Use when: Changing 2+ files together, Refactoring across files, Coordinated updates. More efficient than multiple single commits. Supports: create/update/delete/move operations. All changes in ONE commit. For single file use create_or_update_file.',
|
|
105
105
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.PushFilesSchema),
|
|
106
106
|
handler: async (args) => {
|
|
107
107
|
const options = schema_1.PushFilesSchema.parse(args);
|
|
@@ -147,7 +147,7 @@ exports.filesToolRegistry = new Map([
|
|
|
147
147
|
'upload_markdown',
|
|
148
148
|
{
|
|
149
149
|
name: 'upload_markdown',
|
|
150
|
-
description: '
|
|
150
|
+
description: 'UPLOAD ASSET: Add images/docs for markdown embedding. Use when: Adding screenshots to issues/MRs, Uploading diagrams for wikis, Attaching files to documentation. Returns markdown-ready URL like . Stored in uploads, NOT repository. Supports: images, PDFs, any binary files.',
|
|
151
151
|
inputSchema: (0, zod_to_json_schema_1.zodToJsonSchema)(schema_1.MarkdownUploadSchema),
|
|
152
152
|
handler: async (args) => {
|
|
153
153
|
const options = schema_1.MarkdownUploadSchema.parse(args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/entities/files/registry.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/entities/files/registry.ts"],"names":[],"mappings":";;;AAgOA,8DAEC;AAKD,0DAEC;AAKD,sDAQC;AArPD,2DAAqD;AACrD,uDAAmF;AACnF,qCAA2F;AAC3F,6CAAkD;AAMrC,QAAA,iBAAiB,GAAiB,IAAI,GAAG,CAAiC;IAErF;QACE,qBAAqB;QACrB;YACE,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EACT,sTAAsT;YACxT,WAAW,EAAE,IAAA,oCAAe,EAAC,yCAAuB,CAAC;YACrD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAoB,EAAE;gBACjD,MAAM,OAAO,GAAG,yCAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpD,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;gBAE/B,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,EAAE,CAAC;wBAChD,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;oBACtC,CAAC;gBACH,CAAC,CAAC,CAAC;gBAEH,MAAM,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,oBAAoB,kBAAkB,CAA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