@structured-world/gitlab-mcp 7.2.0 → 7.4.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 +5 -4
- package/README.md.in +1 -0
- package/dist/generated/prisma/internal/class.d.ts +2 -0
- package/dist/generated/prisma/internal/class.js +2 -2
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +2 -2
- package/dist/src/cli/inject-tool-refs.js.map +1 -1
- package/dist/src/cli/list-tools.js +21 -25
- package/dist/src/cli/list-tools.js.map +1 -1
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.js +3 -2
- package/dist/src/config.js.map +1 -1
- package/dist/src/entities/context/context-manager.d.ts +1 -0
- package/dist/src/entities/context/context-manager.js +6 -0
- package/dist/src/entities/context/context-manager.js.map +1 -1
- package/dist/src/entities/core/registry.js +42 -28
- package/dist/src/entities/core/registry.js.map +1 -1
- package/dist/src/entities/core/schema-readonly.d.ts +39 -39
- package/dist/src/entities/core/schema.d.ts +62 -37
- package/dist/src/entities/core/schema.js +49 -0
- package/dist/src/entities/core/schema.js.map +1 -1
- package/dist/src/entities/deploy-keys/registry.d.ts +3 -0
- package/dist/src/entities/deploy-keys/registry.js +106 -0
- package/dist/src/entities/deploy-keys/registry.js.map +1 -0
- package/dist/src/entities/deploy-keys/schema-readonly.d.ts +15 -0
- package/dist/src/entities/deploy-keys/schema-readonly.js +31 -0
- package/dist/src/entities/deploy-keys/schema-readonly.js.map +1 -0
- package/dist/src/entities/deploy-keys/schema.d.ts +24 -0
- package/dist/src/entities/deploy-keys/schema.js +51 -0
- package/dist/src/entities/deploy-keys/schema.js.map +1 -0
- package/dist/src/entities/files/registry.js +5 -7
- package/dist/src/entities/files/registry.js.map +1 -1
- package/dist/src/entities/files/schema-readonly.d.ts +4 -4
- package/dist/src/entities/files/schema.d.ts +7 -7
- package/dist/src/entities/integrations/registry.js +5 -6
- package/dist/src/entities/integrations/registry.js.map +1 -1
- package/dist/src/entities/integrations/schema.d.ts +15 -15
- package/dist/src/entities/iterations/registry.js +5 -4
- package/dist/src/entities/iterations/registry.js.map +1 -1
- package/dist/src/entities/iterations/schema-readonly.d.ts +5 -5
- package/dist/src/entities/job-token-scope/registry.d.ts +5 -0
- package/dist/src/entities/job-token-scope/registry.js +128 -0
- package/dist/src/entities/job-token-scope/registry.js.map +1 -0
- package/dist/src/entities/job-token-scope/schema-readonly.d.ts +16 -0
- package/dist/src/entities/job-token-scope/schema-readonly.js +32 -0
- package/dist/src/entities/job-token-scope/schema-readonly.js.map +1 -0
- package/dist/src/entities/job-token-scope/schema.d.ts +23 -0
- package/dist/src/entities/job-token-scope/schema.js +53 -0
- package/dist/src/entities/job-token-scope/schema.js.map +1 -0
- package/dist/src/entities/labels/registry.js +5 -7
- package/dist/src/entities/labels/registry.js.map +1 -1
- package/dist/src/entities/labels/schema-readonly.d.ts +4 -4
- package/dist/src/entities/labels/schema.d.ts +2 -2
- package/dist/src/entities/members/registry.js +24 -7
- package/dist/src/entities/members/registry.js.map +1 -1
- package/dist/src/entities/members/schema-readonly.d.ts +8 -8
- package/dist/src/entities/members/schema.d.ts +12 -12
- package/dist/src/entities/milestones/registry.js +10 -7
- package/dist/src/entities/milestones/registry.js.map +1 -1
- package/dist/src/entities/milestones/schema-readonly.d.ts +6 -6
- package/dist/src/entities/milestones/schema.d.ts +3 -3
- package/dist/src/entities/mrs/registry.js +33 -16
- package/dist/src/entities/mrs/registry.js.map +1 -1
- package/dist/src/entities/mrs/schema-readonly.d.ts +27 -27
- package/dist/src/entities/mrs/schema.d.ts +55 -55
- package/dist/src/entities/pipelines/registry.js +7 -10
- package/dist/src/entities/pipelines/registry.js.map +1 -1
- package/dist/src/entities/pipelines/schema-readonly.d.ts +16 -16
- package/dist/src/entities/pipelines/schema.d.ts +11 -11
- package/dist/src/entities/refs/registry.js +25 -7
- package/dist/src/entities/refs/registry.js.map +1 -1
- package/dist/src/entities/refs/schema-readonly.d.ts +7 -7
- package/dist/src/entities/refs/schema.d.ts +9 -9
- package/dist/src/entities/releases/registry.js +5 -7
- package/dist/src/entities/releases/registry.js.map +1 -1
- package/dist/src/entities/releases/schema-readonly.d.ts +5 -5
- package/dist/src/entities/releases/schema.d.ts +6 -6
- package/dist/src/entities/search/registry.js +8 -4
- package/dist/src/entities/search/registry.js.map +1 -1
- package/dist/src/entities/search/schema-readonly.d.ts +4 -4
- package/dist/src/entities/shared.d.ts +55 -55
- package/dist/src/entities/shared.js.map +1 -1
- package/dist/src/entities/snippets/registry.js +5 -7
- package/dist/src/entities/snippets/registry.js.map +1 -1
- package/dist/src/entities/snippets/schema-readonly.d.ts +1 -1
- package/dist/src/entities/snippets/schema.d.ts +4 -4
- package/dist/src/entities/utils.d.ts +4 -3
- package/dist/src/entities/utils.js +7 -0
- package/dist/src/entities/utils.js.map +1 -1
- package/dist/src/entities/variables/registry.js +5 -7
- package/dist/src/entities/variables/registry.js.map +1 -1
- package/dist/src/entities/variables/schema.d.ts +8 -8
- package/dist/src/entities/webhooks/registry.js +12 -7
- package/dist/src/entities/webhooks/registry.js.map +1 -1
- package/dist/src/entities/webhooks/schema-readonly.d.ts +1 -1
- package/dist/src/entities/webhooks/schema.d.ts +41 -41
- package/dist/src/entities/wiki/registry.js +5 -7
- package/dist/src/entities/wiki/registry.js.map +1 -1
- package/dist/src/entities/wiki/schema-readonly.d.ts +1 -1
- package/dist/src/entities/workitems/registry.js +12 -7
- package/dist/src/entities/workitems/registry.js.map +1 -1
- package/dist/src/graphql/DynamicWorkItemsQuery.js.map +1 -1
- package/dist/src/handlers.js +29 -2
- package/dist/src/handlers.js.map +1 -1
- package/dist/src/oauth/endpoints/authorize.js +2 -6
- package/dist/src/oauth/endpoints/authorize.js.map +1 -1
- package/dist/src/profiles/applicator.js +1 -0
- package/dist/src/profiles/applicator.js.map +1 -1
- package/dist/src/profiles/builtin/ci.yaml +1 -0
- package/dist/src/profiles/builtin/devops.yaml +1 -0
- package/dist/src/profiles/types.d.ts +6 -0
- package/dist/src/profiles/types.js +1 -0
- package/dist/src/profiles/types.js.map +1 -1
- package/dist/src/registry-manager.js +20 -3
- package/dist/src/registry-manager.js.map +1 -1
- package/dist/src/server.js.map +1 -1
- package/dist/src/services/ConnectionManager.d.ts +2 -0
- package/dist/src/services/ConnectionManager.js +10 -0
- package/dist/src/services/ConnectionManager.js.map +1 -1
- package/dist/src/services/HealthMonitor.js.map +1 -1
- package/dist/src/services/InstanceCapabilities.d.ts +18 -0
- package/dist/src/services/InstanceCapabilities.js +84 -0
- package/dist/src/services/InstanceCapabilities.js.map +1 -0
- package/dist/src/services/InstanceConnectionPool.js.map +1 -1
- package/dist/src/services/TokenScopeDetector.js +4 -0
- package/dist/src/services/TokenScopeDetector.js.map +1 -1
- package/dist/src/services/WidgetAvailability.js +1 -2
- package/dist/src/services/WidgetAvailability.js.map +1 -1
- package/dist/src/types.d.ts +12 -0
- package/dist/src/utils/fetch.js.map +1 -1
- package/dist/src/utils/gitlab-api.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +32 -4
- package/dist/src/services/ToolAvailability.d.ts +0 -36
- package/dist/src/services/ToolAvailability.js +0 -430
- package/dist/src/services/ToolAvailability.js.map +0 -1
|
@@ -33,8 +33,8 @@ export declare const BrowseMergeRequestsSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
33
33
|
full: "full";
|
|
34
34
|
}>>;
|
|
35
35
|
labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
36
|
-
with_labels_details: z.ZodOptional<z.
|
|
37
|
-
with_merge_status_recheck: z.ZodOptional<z.
|
|
36
|
+
with_labels_details: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
37
|
+
with_merge_status_recheck: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
38
38
|
created_after: z.ZodOptional<z.ZodString>;
|
|
39
39
|
created_before: z.ZodOptional<z.ZodString>;
|
|
40
40
|
updated_after: z.ZodOptional<z.ZodString>;
|
|
@@ -77,59 +77,59 @@ export declare const BrowseMergeRequestsSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
77
77
|
approved_by_usernames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
78
|
reviewer_id: z.ZodOptional<z.ZodNumber>;
|
|
79
79
|
reviewer_username: z.ZodOptional<z.ZodString>;
|
|
80
|
-
with_api_entity_associations: z.ZodOptional<z.
|
|
80
|
+
with_api_entity_associations: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
81
81
|
min_access_level: z.ZodOptional<z.ZodNumber>;
|
|
82
82
|
}, z.core.$loose>, z.ZodObject<{
|
|
83
83
|
action: z.ZodLiteral<"get">;
|
|
84
|
-
project_id: z.
|
|
85
|
-
merge_request_iid: z.ZodOptional<z.
|
|
84
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
85
|
+
merge_request_iid: z.ZodOptional<z.ZodPreprocess<z.ZodCoercedString<unknown>>>;
|
|
86
86
|
branch_name: z.ZodOptional<z.ZodString>;
|
|
87
|
-
include_diverged_commits_count: z.ZodOptional<z.
|
|
88
|
-
include_rebase_in_progress: z.ZodOptional<z.
|
|
87
|
+
include_diverged_commits_count: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
88
|
+
include_rebase_in_progress: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
89
89
|
}, z.core.$loose>, z.ZodObject<{
|
|
90
90
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
91
91
|
page: z.ZodOptional<z.ZodNumber>;
|
|
92
92
|
action: z.ZodLiteral<"diffs">;
|
|
93
|
-
project_id: z.
|
|
94
|
-
merge_request_iid: z.
|
|
95
|
-
include_diverged_commits_count: z.ZodOptional<z.
|
|
96
|
-
include_rebase_in_progress: z.ZodOptional<z.
|
|
93
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
94
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
95
|
+
include_diverged_commits_count: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
96
|
+
include_rebase_in_progress: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
97
97
|
exclude_patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
|
-
exclude_lockfiles: z.ZodOptional<z.
|
|
99
|
-
exclude_generated: z.ZodOptional<z.
|
|
98
|
+
exclude_lockfiles: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
99
|
+
exclude_generated: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
100
100
|
}, z.core.$loose>, z.ZodObject<{
|
|
101
101
|
action: z.ZodLiteral<"compare">;
|
|
102
|
-
project_id: z.
|
|
102
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
103
103
|
from: z.ZodString;
|
|
104
104
|
to: z.ZodString;
|
|
105
|
-
straight: z.ZodOptional<z.
|
|
105
|
+
straight: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
106
106
|
}, z.core.$loose>, z.ZodObject<{
|
|
107
107
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
108
108
|
page: z.ZodOptional<z.ZodNumber>;
|
|
109
109
|
action: z.ZodLiteral<"versions">;
|
|
110
|
-
project_id: z.
|
|
111
|
-
merge_request_iid: z.
|
|
110
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
111
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
112
112
|
}, z.core.$loose>, z.ZodObject<{
|
|
113
113
|
action: z.ZodLiteral<"version">;
|
|
114
|
-
project_id: z.
|
|
115
|
-
merge_request_iid: z.
|
|
116
|
-
version_id: z.
|
|
114
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
115
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
116
|
+
version_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
117
117
|
}, z.core.$loose>], "action">;
|
|
118
118
|
export declare const BrowseMrDiscussionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
119
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
120
120
|
page: z.ZodOptional<z.ZodNumber>;
|
|
121
121
|
action: z.ZodLiteral<"list">;
|
|
122
|
-
project_id: z.
|
|
123
|
-
merge_request_iid: z.
|
|
122
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
123
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
124
124
|
}, z.core.$strip>, z.ZodObject<{
|
|
125
125
|
action: z.ZodLiteral<"drafts">;
|
|
126
|
-
project_id: z.
|
|
127
|
-
merge_request_iid: z.
|
|
126
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
127
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
128
128
|
}, z.core.$strip>, z.ZodObject<{
|
|
129
129
|
action: z.ZodLiteral<"draft">;
|
|
130
|
-
project_id: z.
|
|
131
|
-
merge_request_iid: z.
|
|
132
|
-
draft_note_id: z.
|
|
130
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
131
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
132
|
+
draft_note_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
133
133
|
}, z.core.$strip>], "action">;
|
|
134
134
|
export type BrowseMergeRequestsInput = z.infer<typeof BrowseMergeRequestsSchema>;
|
|
135
135
|
export type BrowseMrDiscussionsInput = z.infer<typeof BrowseMrDiscussionsSchema>;
|
|
@@ -38,7 +38,7 @@ export declare const MergeRequestThreadPositionSchema: z.ZodObject<{
|
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export declare const ManageMergeRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
40
|
action: z.ZodLiteral<"create">;
|
|
41
|
-
project_id: z.
|
|
41
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
42
42
|
source_branch: z.ZodString;
|
|
43
43
|
target_branch: z.ZodString;
|
|
44
44
|
title: z.ZodString;
|
|
@@ -49,14 +49,14 @@ export declare const ManageMergeRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
49
49
|
target_project_id: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
50
50
|
labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
51
51
|
milestone_id: z.ZodOptional<z.ZodString>;
|
|
52
|
-
remove_source_branch: z.ZodOptional<z.
|
|
53
|
-
allow_collaboration: z.ZodOptional<z.
|
|
54
|
-
allow_maintainer_to_push: z.ZodOptional<z.
|
|
55
|
-
squash: z.ZodOptional<z.
|
|
52
|
+
remove_source_branch: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
53
|
+
allow_collaboration: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
54
|
+
allow_maintainer_to_push: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
55
|
+
squash: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
56
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
57
57
|
action: z.ZodLiteral<"update">;
|
|
58
|
-
project_id: z.
|
|
59
|
-
merge_request_iid: z.
|
|
58
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
59
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
60
60
|
target_branch: z.ZodOptional<z.ZodString>;
|
|
61
61
|
title: z.ZodOptional<z.ZodString>;
|
|
62
62
|
assignee_id: z.ZodOptional<z.ZodString>;
|
|
@@ -67,54 +67,54 @@ export declare const ManageMergeRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
67
67
|
add_labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
68
68
|
remove_labels: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
69
69
|
milestone_id: z.ZodOptional<z.ZodString>;
|
|
70
|
-
remove_source_branch: z.ZodOptional<z.
|
|
71
|
-
allow_collaboration: z.ZodOptional<z.
|
|
72
|
-
allow_maintainer_to_push: z.ZodOptional<z.
|
|
73
|
-
squash: z.ZodOptional<z.
|
|
70
|
+
remove_source_branch: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
71
|
+
allow_collaboration: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
72
|
+
allow_maintainer_to_push: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
73
|
+
squash: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
74
74
|
state_event: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
75
75
|
close: "close";
|
|
76
76
|
reopen: "reopen";
|
|
77
77
|
}>>>;
|
|
78
|
-
discussion_locked: z.ZodOptional<z.
|
|
78
|
+
discussion_locked: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
79
79
|
}, z.core.$strip>, z.ZodObject<{
|
|
80
80
|
action: z.ZodLiteral<"merge">;
|
|
81
|
-
project_id: z.
|
|
82
|
-
merge_request_iid: z.
|
|
81
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
82
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
83
83
|
merge_commit_message: z.ZodOptional<z.ZodString>;
|
|
84
84
|
squash_commit_message: z.ZodOptional<z.ZodString>;
|
|
85
|
-
squash: z.ZodOptional<z.
|
|
86
|
-
should_remove_source_branch: z.ZodOptional<z.
|
|
87
|
-
merge_when_pipeline_succeeds: z.ZodOptional<z.
|
|
85
|
+
squash: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
86
|
+
should_remove_source_branch: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
87
|
+
merge_when_pipeline_succeeds: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
88
88
|
sha: z.ZodOptional<z.ZodString>;
|
|
89
89
|
}, z.core.$strip>, z.ZodObject<{
|
|
90
90
|
action: z.ZodLiteral<"approve">;
|
|
91
|
-
project_id: z.
|
|
92
|
-
merge_request_iid: z.
|
|
91
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
92
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
93
93
|
sha: z.ZodOptional<z.ZodString>;
|
|
94
94
|
}, z.core.$strip>, z.ZodObject<{
|
|
95
95
|
action: z.ZodLiteral<"unapprove">;
|
|
96
|
-
project_id: z.
|
|
97
|
-
merge_request_iid: z.
|
|
96
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
97
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
98
98
|
}, z.core.$strip>, z.ZodObject<{
|
|
99
99
|
action: z.ZodLiteral<"get_approval_state">;
|
|
100
|
-
project_id: z.
|
|
101
|
-
merge_request_iid: z.
|
|
100
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
101
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
102
102
|
}, z.core.$strip>], "action">;
|
|
103
103
|
export declare const ManageMrDiscussionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
104
104
|
action: z.ZodLiteral<"comment">;
|
|
105
|
-
project_id: z.
|
|
105
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
106
106
|
noteable_type: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodEnum<{
|
|
107
107
|
merge_request: "merge_request";
|
|
108
108
|
issue: "issue";
|
|
109
109
|
}>>;
|
|
110
|
-
noteable_id: z.
|
|
110
|
+
noteable_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
111
111
|
body: z.ZodString;
|
|
112
|
-
confidential: z.ZodOptional<z.
|
|
112
|
+
confidential: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
113
113
|
created_at: z.ZodOptional<z.ZodString>;
|
|
114
114
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
115
|
action: z.ZodLiteral<"thread">;
|
|
116
|
-
project_id: z.
|
|
117
|
-
merge_request_iid: z.
|
|
116
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
117
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
118
118
|
body: z.ZodString;
|
|
119
119
|
position: z.ZodOptional<z.ZodObject<{
|
|
120
120
|
base_sha: z.ZodOptional<z.ZodString>;
|
|
@@ -156,39 +156,39 @@ export declare const ManageMrDiscussionSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
156
156
|
commit_id: z.ZodOptional<z.ZodString>;
|
|
157
157
|
}, z.core.$strip>, z.ZodObject<{
|
|
158
158
|
action: z.ZodLiteral<"reply">;
|
|
159
|
-
project_id: z.
|
|
160
|
-
merge_request_iid: z.
|
|
159
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
160
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
161
161
|
discussion_id: z.ZodString;
|
|
162
162
|
body: z.ZodString;
|
|
163
163
|
created_at: z.ZodOptional<z.ZodString>;
|
|
164
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
165
|
action: z.ZodLiteral<"update">;
|
|
166
|
-
project_id: z.
|
|
167
|
-
merge_request_iid: z.
|
|
168
|
-
note_id: z.
|
|
166
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
167
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
168
|
+
note_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
169
169
|
body: z.ZodString;
|
|
170
170
|
}, z.core.$strip>, z.ZodObject<{
|
|
171
171
|
action: z.ZodLiteral<"apply_suggestion">;
|
|
172
|
-
project_id: z.
|
|
173
|
-
merge_request_iid: z.
|
|
172
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
173
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
174
174
|
suggestion_id: z.ZodNumber;
|
|
175
175
|
commit_message: z.ZodOptional<z.ZodString>;
|
|
176
176
|
}, z.core.$strip>, z.ZodObject<{
|
|
177
177
|
action: z.ZodLiteral<"apply_suggestions">;
|
|
178
|
-
project_id: z.
|
|
179
|
-
merge_request_iid: z.
|
|
178
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
179
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
180
180
|
suggestion_ids: z.ZodArray<z.ZodNumber>;
|
|
181
181
|
commit_message: z.ZodOptional<z.ZodString>;
|
|
182
182
|
}, z.core.$strip>, z.ZodObject<{
|
|
183
183
|
action: z.ZodLiteral<"resolve">;
|
|
184
|
-
project_id: z.
|
|
185
|
-
merge_request_iid: z.
|
|
184
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
185
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
186
186
|
discussion_id: z.ZodString;
|
|
187
|
-
resolved: z.
|
|
187
|
+
resolved: z.ZodPreprocess<z.ZodBoolean>;
|
|
188
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
189
189
|
action: z.ZodLiteral<"suggest">;
|
|
190
|
-
project_id: z.
|
|
191
|
-
merge_request_iid: z.
|
|
190
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
191
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
192
192
|
position: z.ZodObject<{
|
|
193
193
|
base_sha: z.ZodOptional<z.ZodString>;
|
|
194
194
|
start_sha: z.ZodOptional<z.ZodString>;
|
|
@@ -233,8 +233,8 @@ export declare const ManageMrDiscussionSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
233
233
|
}, z.core.$strip>], "action">;
|
|
234
234
|
export declare const ManageDraftNotesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
235
235
|
action: z.ZodLiteral<"create">;
|
|
236
|
-
project_id: z.
|
|
237
|
-
merge_request_iid: z.
|
|
236
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
237
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
238
238
|
note: z.ZodString;
|
|
239
239
|
position: z.ZodOptional<z.ZodObject<{
|
|
240
240
|
base_sha: z.ZodOptional<z.ZodString>;
|
|
@@ -277,9 +277,9 @@ export declare const ManageDraftNotesSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
277
277
|
commit_id: z.ZodOptional<z.ZodString>;
|
|
278
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
279
279
|
action: z.ZodLiteral<"update">;
|
|
280
|
-
project_id: z.
|
|
281
|
-
merge_request_iid: z.
|
|
282
|
-
draft_note_id: z.
|
|
280
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
281
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
282
|
+
draft_note_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
283
283
|
note: z.ZodString;
|
|
284
284
|
position: z.ZodOptional<z.ZodObject<{
|
|
285
285
|
base_sha: z.ZodOptional<z.ZodString>;
|
|
@@ -320,18 +320,18 @@ export declare const ManageDraftNotesSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
320
320
|
}, z.core.$strip>>;
|
|
321
321
|
}, z.core.$strip>, z.ZodObject<{
|
|
322
322
|
action: z.ZodLiteral<"publish">;
|
|
323
|
-
project_id: z.
|
|
324
|
-
merge_request_iid: z.
|
|
325
|
-
draft_note_id: z.
|
|
323
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
324
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
325
|
+
draft_note_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
326
326
|
}, z.core.$strip>, z.ZodObject<{
|
|
327
327
|
action: z.ZodLiteral<"publish_all">;
|
|
328
|
-
project_id: z.
|
|
329
|
-
merge_request_iid: z.
|
|
328
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
329
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
330
330
|
}, z.core.$strip>, z.ZodObject<{
|
|
331
331
|
action: z.ZodLiteral<"delete">;
|
|
332
|
-
project_id: z.
|
|
333
|
-
merge_request_iid: z.
|
|
334
|
-
draft_note_id: z.
|
|
332
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
333
|
+
merge_request_iid: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
334
|
+
draft_note_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
335
335
|
}, z.core.$strip>], "action">;
|
|
336
336
|
export type ManageMergeRequestInput = z.infer<typeof ManageMergeRequestSchema>;
|
|
337
337
|
export type ManageMrDiscussionInput = z.infer<typeof ManageMrDiscussionSchema>;
|
|
@@ -44,7 +44,7 @@ const gitlab_api_1 = require("../../utils/gitlab-api");
|
|
|
44
44
|
const projectIdentifier_1 = require("../../utils/projectIdentifier");
|
|
45
45
|
const fetch_1 = require("../../utils/fetch");
|
|
46
46
|
const logger_1 = require("../../logger");
|
|
47
|
-
const
|
|
47
|
+
const utils_1 = require("../utils");
|
|
48
48
|
exports.pipelinesToolRegistry = new Map([
|
|
49
49
|
[
|
|
50
50
|
'browse_pipelines',
|
|
@@ -52,12 +52,11 @@ exports.pipelinesToolRegistry = new Map([
|
|
|
52
52
|
name: 'browse_pipelines',
|
|
53
53
|
description: 'Monitor CI/CD pipelines and read job logs. Actions: list (filter by status/ref/source/username), get (pipeline details), jobs (list pipeline jobs), triggers (bridge/trigger jobs), job (single job details), logs (job console output). Related: manage_pipeline to trigger/retry/cancel, manage_pipeline_job for individual jobs.',
|
|
54
54
|
inputSchema: z.toJSONSchema(schema_readonly_1.BrowsePipelinesSchema),
|
|
55
|
+
requirements: { default: { tier: 'free', minVersion: '9.0' } },
|
|
55
56
|
gate: { envVar: 'USE_PIPELINE', defaultValue: true },
|
|
56
57
|
handler: async (args) => {
|
|
57
58
|
const input = schema_readonly_1.BrowsePipelinesSchema.parse(args);
|
|
58
|
-
|
|
59
|
-
throw new Error(`Action '${input.action}' is not allowed for browse_pipelines tool`);
|
|
60
|
-
}
|
|
59
|
+
(0, utils_1.assertActionAllowed)('browse_pipelines', input.action);
|
|
61
60
|
switch (input.action) {
|
|
62
61
|
case 'list': {
|
|
63
62
|
const { project_id, action: _action, ...queryOptions } = input;
|
|
@@ -179,12 +178,11 @@ exports.pipelinesToolRegistry = new Map([
|
|
|
179
178
|
name: 'manage_pipeline',
|
|
180
179
|
description: 'Trigger, retry, or cancel CI/CD pipelines. Actions: create (run pipeline on ref with variables or typed inputs), retry (re-run failed jobs), cancel (stop running pipeline). Related: browse_pipelines for monitoring.',
|
|
181
180
|
inputSchema: z.toJSONSchema(schema_1.ManagePipelineSchema),
|
|
181
|
+
requirements: { default: { tier: 'free', minVersion: '9.0' } },
|
|
182
182
|
gate: { envVar: 'USE_PIPELINE', defaultValue: true },
|
|
183
183
|
handler: async (args) => {
|
|
184
184
|
const input = schema_1.ManagePipelineSchema.parse(args);
|
|
185
|
-
|
|
186
|
-
throw new Error(`Action '${input.action}' is not allowed for manage_pipeline tool`);
|
|
187
|
-
}
|
|
185
|
+
(0, utils_1.assertActionAllowed)('manage_pipeline', input.action);
|
|
188
186
|
switch (input.action) {
|
|
189
187
|
case 'create': {
|
|
190
188
|
const { project_id, ref, variables, inputs } = input;
|
|
@@ -271,12 +269,11 @@ exports.pipelinesToolRegistry = new Map([
|
|
|
271
269
|
name: 'manage_pipeline_job',
|
|
272
270
|
description: "Control individual CI/CD jobs within a pipeline. Actions: play (trigger manual/delayed job with variables), retry (re-run single job), cancel (stop running job). Related: browse_pipelines actions 'job'/'logs' for job details.",
|
|
273
271
|
inputSchema: z.toJSONSchema(schema_1.ManagePipelineJobSchema),
|
|
272
|
+
requirements: { default: { tier: 'free', minVersion: '9.0' } },
|
|
274
273
|
gate: { envVar: 'USE_PIPELINE', defaultValue: true },
|
|
275
274
|
handler: async (args) => {
|
|
276
275
|
const input = schema_1.ManagePipelineJobSchema.parse(args);
|
|
277
|
-
|
|
278
|
-
throw new Error(`Action '${input.action}' is not allowed for manage_pipeline_job tool`);
|
|
279
|
-
}
|
|
276
|
+
(0, utils_1.assertActionAllowed)('manage_pipeline_job', input.action);
|
|
280
277
|
switch (input.action) {
|
|
281
278
|
case 'play': {
|
|
282
279
|
const { project_id, job_id, job_variables_attributes } = input;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/entities/pipelines/registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiXA,sEAEC;AAED,kEAEC;AAED,8DAQC;AAjYD,uCAAyB;AACzB,uDAA0D;AAC1D,qCAAyE;AACzE,uDAAyD;AACzD,qEAAmE;AACnE,6CAAkD;AAClD,yCAAwC;AAExC,yCAA8C;AASjC,QAAA,qB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ZodOptional<z.ZodString>;
|
|
26
26
|
group: z.ZodOptional<z.ZodString>;
|
|
27
27
|
tooltip: z.ZodOptional<z.ZodString>;
|
|
28
|
-
has_details: z.ZodOptional<z.
|
|
28
|
+
has_details: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
29
29
|
details_path: z.ZodOptional<z.ZodString>;
|
|
30
30
|
illustration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
31
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -41,9 +41,9 @@ export declare const GitLabPipelineJobSchema: z.ZodObject<{
|
|
|
41
41
|
stage: z.ZodString;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
ref: z.ZodString;
|
|
44
|
-
tag: z.
|
|
44
|
+
tag: z.ZodPreprocess<z.ZodBoolean>;
|
|
45
45
|
coverage: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
46
|
-
allow_failure: z.ZodOptional<z.
|
|
46
|
+
allow_failure: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
47
47
|
created_at: z.ZodString;
|
|
48
48
|
started_at: z.ZodOptional<z.ZodString>;
|
|
49
49
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
@@ -81,9 +81,9 @@ export declare const GitLabPipelineTriggerJobSchema: z.ZodObject<{
|
|
|
81
81
|
stage: z.ZodString;
|
|
82
82
|
name: z.ZodString;
|
|
83
83
|
ref: z.ZodString;
|
|
84
|
-
tag: z.
|
|
84
|
+
tag: z.ZodPreprocess<z.ZodBoolean>;
|
|
85
85
|
coverage: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
86
|
-
allow_failure: z.ZodOptional<z.
|
|
86
|
+
allow_failure: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
87
87
|
created_at: z.ZodString;
|
|
88
88
|
started_at: z.ZodOptional<z.ZodString>;
|
|
89
89
|
finished_at: z.ZodOptional<z.ZodString>;
|
|
@@ -128,7 +128,7 @@ export declare const BrowsePipelinesSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
128
128
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
129
129
|
page: z.ZodOptional<z.ZodNumber>;
|
|
130
130
|
action: z.ZodLiteral<"list">;
|
|
131
|
-
project_id: z.
|
|
131
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
132
132
|
scope: z.ZodOptional<z.ZodEnum<{
|
|
133
133
|
pending: "pending";
|
|
134
134
|
running: "running";
|
|
@@ -184,14 +184,14 @@ export declare const BrowsePipelinesSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
184
184
|
}>>;
|
|
185
185
|
}, z.core.$strip>, z.ZodObject<{
|
|
186
186
|
action: z.ZodLiteral<"get">;
|
|
187
|
-
project_id: z.
|
|
188
|
-
pipeline_id: z.
|
|
187
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
188
|
+
pipeline_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
189
189
|
}, z.core.$strip>, z.ZodObject<{
|
|
190
190
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
191
191
|
page: z.ZodOptional<z.ZodNumber>;
|
|
192
192
|
action: z.ZodLiteral<"jobs">;
|
|
193
|
-
project_id: z.
|
|
194
|
-
pipeline_id: z.
|
|
193
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
194
|
+
pipeline_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
195
195
|
job_scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
196
196
|
success: "success";
|
|
197
197
|
pending: "pending";
|
|
@@ -207,8 +207,8 @@ export declare const BrowsePipelinesSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
207
207
|
per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
208
208
|
page: z.ZodOptional<z.ZodNumber>;
|
|
209
209
|
action: z.ZodLiteral<"triggers">;
|
|
210
|
-
project_id: z.
|
|
211
|
-
pipeline_id: z.
|
|
210
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
211
|
+
pipeline_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
212
212
|
trigger_scope: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
213
213
|
success: "success";
|
|
214
214
|
pending: "pending";
|
|
@@ -224,12 +224,12 @@ export declare const BrowsePipelinesSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
224
224
|
include_retried: z.ZodOptional<z.ZodBoolean>;
|
|
225
225
|
}, z.core.$strip>, z.ZodObject<{
|
|
226
226
|
action: z.ZodLiteral<"job">;
|
|
227
|
-
project_id: z.
|
|
228
|
-
job_id: z.
|
|
227
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
228
|
+
job_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
229
229
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
230
|
action: z.ZodLiteral<"logs">;
|
|
231
|
-
project_id: z.
|
|
232
|
-
job_id: z.
|
|
231
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
232
|
+
job_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
233
233
|
per_page: z.ZodOptional<z.ZodNumber>;
|
|
234
234
|
start: z.ZodOptional<z.ZodNumber>;
|
|
235
235
|
}, z.core.$strip>], "action">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ManagePipelineSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
3
|
action: z.ZodLiteral<"create">;
|
|
4
|
-
project_id: z.
|
|
4
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
5
5
|
ref: z.ZodString;
|
|
6
6
|
variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
7
|
key: z.ZodString;
|
|
@@ -14,17 +14,17 @@ export declare const ManagePipelineSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
14
14
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>>>;
|
|
15
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
16
16
|
action: z.ZodLiteral<"retry">;
|
|
17
|
-
project_id: z.
|
|
18
|
-
pipeline_id: z.
|
|
17
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
18
|
+
pipeline_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
19
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
20
|
action: z.ZodLiteral<"cancel">;
|
|
21
|
-
project_id: z.
|
|
22
|
-
pipeline_id: z.
|
|
21
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
22
|
+
pipeline_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
23
23
|
}, z.core.$strip>], "action">;
|
|
24
24
|
export declare const ManagePipelineJobSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
25
|
action: z.ZodLiteral<"play">;
|
|
26
|
-
project_id: z.
|
|
27
|
-
job_id: z.
|
|
26
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
27
|
+
job_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
28
28
|
job_variables_attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
29
|
key: z.ZodString;
|
|
30
30
|
value: z.ZodString;
|
|
@@ -35,12 +35,12 @@ export declare const ManagePipelineJobSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
35
35
|
}, z.core.$strip>>>;
|
|
36
36
|
}, z.core.$strip>, z.ZodObject<{
|
|
37
37
|
action: z.ZodLiteral<"retry">;
|
|
38
|
-
project_id: z.
|
|
39
|
-
job_id: z.
|
|
38
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
39
|
+
job_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
40
40
|
}, z.core.$strip>, z.ZodObject<{
|
|
41
41
|
action: z.ZodLiteral<"cancel">;
|
|
42
|
-
project_id: z.
|
|
43
|
-
job_id: z.
|
|
42
|
+
project_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
43
|
+
job_id: z.ZodPreprocess<z.ZodCoercedString<unknown>>;
|
|
44
44
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
}, z.core.$strip>], "action">;
|
|
46
46
|
export type ManagePipelineInput = z.infer<typeof ManagePipelineSchema>;
|
|
@@ -41,7 +41,7 @@ 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
|
|
44
|
+
const utils_1 = require("../utils");
|
|
45
45
|
exports.refsToolRegistry = new Map([
|
|
46
46
|
[
|
|
47
47
|
'browse_refs',
|
|
@@ -49,11 +49,17 @@ exports.refsToolRegistry = new Map([
|
|
|
49
49
|
name: 'browse_refs',
|
|
50
50
|
description: 'Inspect branches, tags, and their protection rules. Actions: list_branches, get_branch, list_tags, get_tag, list_protected_branches, get_protected_branch, list_protected_tags (protection details and access levels). Related: manage_ref to create/delete/protect, browse_commits for commit history.',
|
|
51
51
|
inputSchema: z.toJSONSchema(schema_readonly_1.BrowseRefsSchema),
|
|
52
|
+
requirements: {
|
|
53
|
+
default: { tier: 'free', minVersion: '8.0' },
|
|
54
|
+
actions: {
|
|
55
|
+
list_protected_branches: { tier: 'free', minVersion: '8.11' },
|
|
56
|
+
get_protected_branch: { tier: 'free', minVersion: '8.11' },
|
|
57
|
+
list_protected_tags: { tier: 'premium', minVersion: '11.3', notes: 'Protected tags' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
52
60
|
handler: async (args) => {
|
|
53
61
|
const input = schema_readonly_1.BrowseRefsSchema.parse(args);
|
|
54
|
-
|
|
55
|
-
throw new Error(`Action '${input.action}' is not allowed for browse_refs tool`);
|
|
56
|
-
}
|
|
62
|
+
(0, utils_1.assertActionAllowed)('browse_refs', input.action);
|
|
57
63
|
const encodedProjectId = encodeURIComponent(input.project_id);
|
|
58
64
|
switch (input.action) {
|
|
59
65
|
case 'list_branches': {
|
|
@@ -107,11 +113,23 @@ exports.refsToolRegistry = new Map([
|
|
|
107
113
|
name: 'manage_ref',
|
|
108
114
|
description: 'Create, delete, and protect branches and tags. Actions: create_branch (from ref), delete_branch, protect_branch (set allowed roles), unprotect_branch, update_branch_protection, create_tag (annotated or lightweight), delete_tag, protect_tag, unprotect_tag. Related: browse_refs for inspection.',
|
|
109
115
|
inputSchema: z.toJSONSchema(schema_1.ManageRefSchema),
|
|
116
|
+
requirements: {
|
|
117
|
+
default: { tier: 'free', minVersion: '8.0' },
|
|
118
|
+
actions: {
|
|
119
|
+
protect_branch: { tier: 'free', minVersion: '8.11' },
|
|
120
|
+
unprotect_branch: { tier: 'free', minVersion: '8.11' },
|
|
121
|
+
update_branch_protection: {
|
|
122
|
+
tier: 'free',
|
|
123
|
+
minVersion: '11.9',
|
|
124
|
+
notes: 'PATCH endpoint; code owners require Premium',
|
|
125
|
+
},
|
|
126
|
+
protect_tag: { tier: 'premium', minVersion: '11.3', notes: 'Protected tags' },
|
|
127
|
+
unprotect_tag: { tier: 'premium', minVersion: '11.3', notes: 'Protected tags' },
|
|
128
|
+
},
|
|
129
|
+
},
|
|
110
130
|
handler: async (args) => {
|
|
111
131
|
const input = schema_1.ManageRefSchema.parse(args);
|
|
112
|
-
|
|
113
|
-
throw new Error(`Action '${input.action}' is not allowed for manage_ref tool`);
|
|
114
|
-
}
|
|
132
|
+
(0, utils_1.assertActionAllowed)('manage_ref', input.action);
|
|
115
133
|
const encodedProjectId = encodeURIComponent(input.project_id);
|
|
116
134
|
switch (input.action) {
|
|
117
135
|
case 'create_branch': {
|