@qase/mcp-server 2.7.4 → 3.0.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/CHANGELOG.md +58 -0
- package/README.md +4 -4
- package/build/auth/mcp-guard.d.ts.map +1 -1
- package/build/auth/mcp-guard.js +1 -1
- package/build/auth/mcp-guard.js.map +1 -1
- package/build/cache/metrics.d.ts.map +1 -1
- package/build/cache/metrics.js +16 -1
- package/build/cache/metrics.js.map +1 -1
- package/build/index.js +27 -5
- package/build/index.js.map +1 -1
- package/build/operations-v2/composites/ci-report.js +3 -5
- package/build/operations-v2/composites/ci-report.js.map +1 -1
- package/build/operations-v2/composites/regression-run.js +2 -1
- package/build/operations-v2/composites/regression-run.js.map +1 -1
- package/build/operations-v2/composites/triage-defect.js +5 -7
- package/build/operations-v2/composites/triage-defect.js.map +1 -1
- package/build/operations-v2/escape/api.js +11 -4
- package/build/operations-v2/escape/api.js.map +1 -1
- package/build/operations-v2/index.d.ts +1 -0
- package/build/operations-v2/index.d.ts.map +1 -1
- package/build/operations-v2/index.js +1 -0
- package/build/operations-v2/index.js.map +1 -1
- package/build/operations-v2/meta/discover.d.ts +5 -4
- package/build/operations-v2/meta/discover.d.ts.map +1 -1
- package/build/operations-v2/meta/discover.js +13 -32
- package/build/operations-v2/meta/discover.js.map +1 -1
- package/build/operations-v2/meta/tool-help.d.ts +10 -0
- package/build/operations-v2/meta/tool-help.d.ts.map +1 -0
- package/build/operations-v2/meta/tool-help.js +42 -0
- package/build/operations-v2/meta/tool-help.js.map +1 -0
- package/build/operations-v2/qql/index.js +15 -9
- package/build/operations-v2/qql/index.js.map +1 -1
- package/build/operations-v2/read/get.js +2 -1
- package/build/operations-v2/read/get.js.map +1 -1
- package/build/operations-v2/read/project-context.js +9 -7
- package/build/operations-v2/read/project-context.js.map +1 -1
- package/build/operations-v2/write/attachments.js +25 -19
- package/build/operations-v2/write/attachments.js.map +1 -1
- package/build/operations-v2/write/case-fields.d.ts +26 -215
- package/build/operations-v2/write/case-fields.d.ts.map +1 -1
- package/build/operations-v2/write/case-fields.js +28 -24
- package/build/operations-v2/write/case-fields.js.map +1 -1
- package/build/operations-v2/write/cases-bulk.js +2 -1
- package/build/operations-v2/write/cases-bulk.js.map +1 -1
- package/build/operations-v2/write/cases.js +4 -3
- package/build/operations-v2/write/cases.js.map +1 -1
- package/build/operations-v2/write/custom-fields.js +13 -10
- package/build/operations-v2/write/custom-fields.js.map +1 -1
- package/build/operations-v2/write/defects.js +7 -9
- package/build/operations-v2/write/defects.js.map +1 -1
- package/build/operations-v2/write/environments.js +5 -5
- package/build/operations-v2/write/environments.js.map +1 -1
- package/build/operations-v2/write/external-issues.js +2 -2
- package/build/operations-v2/write/external-issues.js.map +1 -1
- package/build/operations-v2/write/milestones.js +6 -6
- package/build/operations-v2/write/milestones.js.map +1 -1
- package/build/operations-v2/write/plans.js +5 -5
- package/build/operations-v2/write/plans.js.map +1 -1
- package/build/operations-v2/write/projects.js +6 -6
- package/build/operations-v2/write/projects.js.map +1 -1
- package/build/operations-v2/write/results.js +7 -12
- package/build/operations-v2/write/results.js.map +1 -1
- package/build/operations-v2/write/reviews.js +18 -18
- package/build/operations-v2/write/reviews.js.map +1 -1
- package/build/operations-v2/write/runs.js +8 -6
- package/build/operations-v2/write/runs.js.map +1 -1
- package/build/operations-v2/write/shared-steps.js +5 -8
- package/build/operations-v2/write/shared-steps.js.map +1 -1
- package/build/operations-v2/write/suites.js +4 -3
- package/build/operations-v2/write/suites.js.map +1 -1
- package/build/server-instructions.d.ts +1 -1
- package/build/server-instructions.d.ts.map +1 -1
- package/build/server-instructions.js +4 -4
- package/build/server.d.ts.map +1 -1
- package/build/server.js +154 -104
- package/build/server.js.map +1 -1
- package/build/transports/body-limit.d.ts +13 -0
- package/build/transports/body-limit.d.ts.map +1 -0
- package/build/transports/body-limit.js +43 -0
- package/build/transports/body-limit.js.map +1 -0
- package/build/transports/json-parse-error.d.ts +10 -6
- package/build/transports/json-parse-error.d.ts.map +1 -1
- package/build/transports/json-parse-error.js +38 -14
- package/build/transports/json-parse-error.js.map +1 -1
- package/build/transports/rate-limit.d.ts +1 -1
- package/build/transports/rate-limit.js +1 -1
- package/build/transports/sse.d.ts.map +1 -1
- package/build/transports/sse.js +3 -2
- package/build/transports/sse.js.map +1 -1
- package/build/transports/streamableHttp.d.ts.map +1 -1
- package/build/transports/streamableHttp.js +84 -171
- package/build/transports/streamableHttp.js.map +1 -1
- package/build/utils/auth-context.d.ts +30 -0
- package/build/utils/auth-context.d.ts.map +1 -1
- package/build/utils/auth-context.js +33 -0
- package/build/utils/auth-context.js.map +1 -1
- package/build/utils/protocol-telemetry.d.ts +62 -0
- package/build/utils/protocol-telemetry.d.ts.map +1 -0
- package/build/utils/protocol-telemetry.js +123 -0
- package/build/utils/protocol-telemetry.js.map +1 -0
- package/build/utils/registry.d.ts +28 -34
- package/build/utils/registry.d.ts.map +1 -1
- package/build/utils/registry.js +107 -102
- package/build/utils/registry.js.map +1 -1
- package/build/utils/request-state.d.ts +71 -0
- package/build/utils/request-state.d.ts.map +1 -0
- package/build/utils/request-state.js +108 -0
- package/build/utils/request-state.js.map +1 -0
- package/build/utils/server-context.d.ts +53 -16
- package/build/utils/server-context.d.ts.map +1 -1
- package/build/utils/server-context.js +147 -39
- package/build/utils/server-context.js.map +1 -1
- package/build/utils/validation.d.ts +12 -25
- package/build/utils/validation.d.ts.map +1 -1
- package/build/utils/validation.js +2 -2
- package/build/utils/validation.js.map +1 -1
- package/build/version.d.ts +1 -1
- package/build/version.js +1 -1
- package/docs/self-run.md +40 -3
- package/docs/tools.md +54 -60
- package/docs/troubleshooting.md +29 -8
- package/package.json +8 -9
- package/server.json +2 -2
|
@@ -6,74 +6,23 @@
|
|
|
6
6
|
* — a new case field only has to be added once.
|
|
7
7
|
*/
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
27
|
-
action: z.ZodOptional<z.ZodString>;
|
|
28
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
29
|
-
data: z.ZodOptional<z.ZodString>;
|
|
30
|
-
value: z.ZodOptional<z.ZodString>;
|
|
31
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
33
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
35
|
-
action: z.ZodOptional<z.ZodString>;
|
|
36
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
37
|
-
data: z.ZodOptional<z.ZodString>;
|
|
38
|
-
value: z.ZodOptional<z.ZodString>;
|
|
39
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
41
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
value?: string | undefined;
|
|
44
|
-
action?: string | undefined;
|
|
45
|
-
data?: string | undefined;
|
|
46
|
-
expected_result?: string | undefined;
|
|
47
|
-
attachments?: string[] | undefined;
|
|
48
|
-
shared?: string | undefined;
|
|
49
|
-
shared_step_hash?: string | undefined;
|
|
50
|
-
steps?: z.objectOutputType<{
|
|
51
|
-
action: z.ZodOptional<z.ZodString>;
|
|
52
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
53
|
-
data: z.ZodOptional<z.ZodString>;
|
|
54
|
-
value: z.ZodOptional<z.ZodString>;
|
|
55
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
57
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
value?: string | undefined;
|
|
61
|
-
action?: string | undefined;
|
|
62
|
-
data?: string | undefined;
|
|
63
|
-
expected_result?: string | undefined;
|
|
64
|
-
attachments?: string[] | undefined;
|
|
65
|
-
shared?: string | undefined;
|
|
66
|
-
shared_step_hash?: string | undefined;
|
|
67
|
-
steps?: z.objectInputType<{
|
|
68
|
-
action: z.ZodOptional<z.ZodString>;
|
|
69
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
70
|
-
data: z.ZodOptional<z.ZodString>;
|
|
71
|
-
value: z.ZodOptional<z.ZodString>;
|
|
72
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
74
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
75
|
-
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
76
|
-
}>;
|
|
9
|
+
/**
|
|
10
|
+
* A step as the caller writes it.
|
|
11
|
+
*
|
|
12
|
+
* TypeScript cannot infer the type of a schema that refers to itself, so the
|
|
13
|
+
* shape is stated once here and the schema is annotated with it.
|
|
14
|
+
*/
|
|
15
|
+
export interface TestStep {
|
|
16
|
+
action?: string;
|
|
17
|
+
expected_result?: string;
|
|
18
|
+
data?: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
attachments?: string[];
|
|
21
|
+
shared?: string;
|
|
22
|
+
shared_step_hash?: string;
|
|
23
|
+
steps?: TestStep[];
|
|
24
|
+
}
|
|
25
|
+
export declare const TestStepSchema: z.ZodType<TestStep>;
|
|
77
26
|
export declare const CaseFieldsSchema: z.ZodObject<{
|
|
78
27
|
title: z.ZodString;
|
|
79
28
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -86,156 +35,18 @@ export declare const CaseFieldsSchema: z.ZodObject<{
|
|
|
86
35
|
behavior: z.ZodOptional<z.ZodString>;
|
|
87
36
|
automation: z.ZodOptional<z.ZodString>;
|
|
88
37
|
status: z.ZodOptional<z.ZodString>;
|
|
89
|
-
is_flaky: z.
|
|
38
|
+
is_flaky: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
90
39
|
suite_id: z.ZodOptional<z.ZodNumber>;
|
|
91
40
|
milestone_id: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
steps: z.ZodOptional<z.ZodArray<z.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
100
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
101
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
102
|
-
action: z.ZodOptional<z.ZodString>;
|
|
103
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
104
|
-
data: z.ZodOptional<z.ZodString>;
|
|
105
|
-
value: z.ZodOptional<z.ZodString>;
|
|
106
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
108
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
110
|
-
action: z.ZodOptional<z.ZodString>;
|
|
111
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
112
|
-
data: z.ZodOptional<z.ZodString>;
|
|
113
|
-
value: z.ZodOptional<z.ZodString>;
|
|
114
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
115
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
116
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
117
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
118
|
-
action: z.ZodOptional<z.ZodString>;
|
|
119
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
120
|
-
data: z.ZodOptional<z.ZodString>;
|
|
121
|
-
value: z.ZodOptional<z.ZodString>;
|
|
122
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
123
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
124
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
125
|
-
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
value?: string | undefined;
|
|
127
|
-
action?: string | undefined;
|
|
128
|
-
data?: string | undefined;
|
|
129
|
-
expected_result?: string | undefined;
|
|
130
|
-
attachments?: string[] | undefined;
|
|
131
|
-
shared?: string | undefined;
|
|
132
|
-
shared_step_hash?: string | undefined;
|
|
133
|
-
steps?: z.objectOutputType<{
|
|
134
|
-
action: z.ZodOptional<z.ZodString>;
|
|
135
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
136
|
-
data: z.ZodOptional<z.ZodString>;
|
|
137
|
-
value: z.ZodOptional<z.ZodString>;
|
|
138
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
139
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
140
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
142
|
-
}, {
|
|
143
|
-
value?: string | undefined;
|
|
144
|
-
action?: string | undefined;
|
|
145
|
-
data?: string | undefined;
|
|
146
|
-
expected_result?: string | undefined;
|
|
147
|
-
attachments?: string[] | undefined;
|
|
148
|
-
shared?: string | undefined;
|
|
149
|
-
shared_step_hash?: string | undefined;
|
|
150
|
-
steps?: z.objectInputType<{
|
|
151
|
-
action: z.ZodOptional<z.ZodString>;
|
|
152
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
153
|
-
data: z.ZodOptional<z.ZodString>;
|
|
154
|
-
value: z.ZodOptional<z.ZodString>;
|
|
155
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
157
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
158
|
-
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
159
|
-
}>, "many">>;
|
|
160
|
-
steps_type: z.ZodOptional<z.ZodEnum<["classic", "gherkin"]>>;
|
|
161
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodType<TestStep, unknown, z.core.$ZodTypeInternals<TestStep, unknown>>>>;
|
|
42
|
+
steps_type: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
classic: "classic";
|
|
44
|
+
gherkin: "gherkin";
|
|
45
|
+
}>>;
|
|
46
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
48
|
custom_field: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
164
|
-
},
|
|
165
|
-
title: string;
|
|
166
|
-
type?: string | undefined;
|
|
167
|
-
status?: string | undefined;
|
|
168
|
-
description?: string | undefined;
|
|
169
|
-
priority?: string | undefined;
|
|
170
|
-
custom_field?: Record<string, any> | undefined;
|
|
171
|
-
behavior?: string | undefined;
|
|
172
|
-
severity?: string | undefined;
|
|
173
|
-
layer?: string | undefined;
|
|
174
|
-
automation?: string | undefined;
|
|
175
|
-
is_flaky?: string | undefined;
|
|
176
|
-
attachments?: string[] | undefined;
|
|
177
|
-
steps?: {
|
|
178
|
-
value?: string | undefined;
|
|
179
|
-
action?: string | undefined;
|
|
180
|
-
data?: string | undefined;
|
|
181
|
-
expected_result?: string | undefined;
|
|
182
|
-
attachments?: string[] | undefined;
|
|
183
|
-
shared?: string | undefined;
|
|
184
|
-
shared_step_hash?: string | undefined;
|
|
185
|
-
steps?: z.objectOutputType<{
|
|
186
|
-
action: z.ZodOptional<z.ZodString>;
|
|
187
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
188
|
-
data: z.ZodOptional<z.ZodString>;
|
|
189
|
-
value: z.ZodOptional<z.ZodString>;
|
|
190
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
191
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
192
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
193
|
-
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
194
|
-
}[] | undefined;
|
|
195
|
-
preconditions?: string | undefined;
|
|
196
|
-
postconditions?: string | undefined;
|
|
197
|
-
suite_id?: number | undefined;
|
|
198
|
-
milestone_id?: number | undefined;
|
|
199
|
-
steps_type?: "classic" | "gherkin" | undefined;
|
|
200
|
-
tags?: string[] | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
title: string;
|
|
203
|
-
type?: string | undefined;
|
|
204
|
-
status?: string | undefined;
|
|
205
|
-
description?: string | undefined;
|
|
206
|
-
priority?: string | undefined;
|
|
207
|
-
custom_field?: Record<string, any> | undefined;
|
|
208
|
-
behavior?: string | undefined;
|
|
209
|
-
severity?: string | undefined;
|
|
210
|
-
layer?: string | undefined;
|
|
211
|
-
automation?: string | undefined;
|
|
212
|
-
is_flaky?: unknown;
|
|
213
|
-
attachments?: string[] | undefined;
|
|
214
|
-
steps?: {
|
|
215
|
-
value?: string | undefined;
|
|
216
|
-
action?: string | undefined;
|
|
217
|
-
data?: string | undefined;
|
|
218
|
-
expected_result?: string | undefined;
|
|
219
|
-
attachments?: string[] | undefined;
|
|
220
|
-
shared?: string | undefined;
|
|
221
|
-
shared_step_hash?: string | undefined;
|
|
222
|
-
steps?: z.objectInputType<{
|
|
223
|
-
action: z.ZodOptional<z.ZodString>;
|
|
224
|
-
expected_result: z.ZodOptional<z.ZodString>;
|
|
225
|
-
data: z.ZodOptional<z.ZodString>;
|
|
226
|
-
value: z.ZodOptional<z.ZodString>;
|
|
227
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
228
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
229
|
-
shared_step_hash: z.ZodOptional<z.ZodString>;
|
|
230
|
-
}, z.ZodTypeAny, "passthrough">[] | undefined;
|
|
231
|
-
}[] | undefined;
|
|
232
|
-
preconditions?: string | undefined;
|
|
233
|
-
postconditions?: string | undefined;
|
|
234
|
-
suite_id?: number | undefined;
|
|
235
|
-
milestone_id?: number | undefined;
|
|
236
|
-
steps_type?: "classic" | "gherkin" | undefined;
|
|
237
|
-
tags?: string[] | undefined;
|
|
238
|
-
}>;
|
|
49
|
+
}, z.core.$strip>;
|
|
239
50
|
/**
|
|
240
51
|
* Rewrite `shared_step_hash` to `shared` throughout a step tree.
|
|
241
52
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-fields.d.ts","sourceRoot":"","sources":["../../../src/operations-v2/write/case-fields.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"case-fields.d.ts","sourceRoot":"","sources":["../../../src/operations-v2/write/case-fields.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAkB7C,CAAC;AAMH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;iBA6C3B,CAAC;AAEH;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAmB7D;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BjG"}
|
|
@@ -15,28 +15,38 @@ const stepFields = {
|
|
|
15
15
|
expected_result: z.string().optional().describe('Expected result'),
|
|
16
16
|
data: z.string().optional().describe('Test data'),
|
|
17
17
|
value: z.string().optional().describe('Gherkin scenario text (when steps_type is "gherkin")'),
|
|
18
|
-
attachments: z
|
|
19
|
-
.array(z.string())
|
|
20
|
-
.optional()
|
|
21
|
-
.describe('Attachment hashes from qase_attachment_upload'),
|
|
18
|
+
attachments: z.array(z.string()).optional().describe('Hashes from qase_attachment_upload'),
|
|
22
19
|
shared: z
|
|
23
20
|
.string()
|
|
24
21
|
.optional()
|
|
25
|
-
.describe('Hash
|
|
26
|
-
'The step then reuses that shared step instead of defining its own content, so `action` ' +
|
|
27
|
-
'can be omitted. Reading the case back reports the link as `shared_step_hash`.'),
|
|
22
|
+
.describe('Hash from `qase_shared_step_upsert` to reuse here; then `action` is not needed.'),
|
|
28
23
|
shared_step_hash: z
|
|
29
24
|
.string()
|
|
30
25
|
.optional()
|
|
31
|
-
.describe('Alias for `shared
|
|
26
|
+
.describe('Alias for `shared`, the spelling a case reads back.'),
|
|
32
27
|
};
|
|
33
28
|
export const TestStepSchema = z.object({
|
|
34
29
|
...stepFields,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
/**
|
|
31
|
+
* The step tree is recursive, and a getter is how zod expresses that: the
|
|
32
|
+
* property resolves when the schema is first walked, by which point
|
|
33
|
+
* `TestStepSchema` exists.
|
|
34
|
+
*
|
|
35
|
+
* This is also what lets the emitted JSON Schema carry the step definition
|
|
36
|
+
* ONCE, in `$defs`, with both levels pointing at it. The shape this replaces
|
|
37
|
+
* could not recurse at all — it spelled a second, deliberately terse copy of
|
|
38
|
+
* the fields by hand and stopped there, so a sub-sub-step had no schema.
|
|
39
|
+
*/
|
|
40
|
+
get steps() {
|
|
41
|
+
return z
|
|
42
|
+
.array(TestStepSchema)
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('Nested substeps, nesting further if needed.');
|
|
45
|
+
},
|
|
39
46
|
});
|
|
47
|
+
// Name the definition the step tree is hoisted into. Without this zod calls it
|
|
48
|
+
// `__schema0`, which is what the model would read in `$defs`.
|
|
49
|
+
z.globalRegistry.add(TestStepSchema, { id: 'step' });
|
|
40
50
|
export const CaseFieldsSchema = z.object({
|
|
41
51
|
title: z.string().min(1).max(255).describe('Test case title'),
|
|
42
52
|
description: z.string().optional().describe('Free-form description of what the case covers'),
|
|
@@ -53,14 +63,11 @@ export const CaseFieldsSchema = z.object({
|
|
|
53
63
|
automation: z
|
|
54
64
|
.string()
|
|
55
65
|
.optional()
|
|
56
|
-
.describe('Automation
|
|
66
|
+
.describe('Automation: 0=Manual, 1=To be automated, 2=Automated (label or ID)'),
|
|
57
67
|
status: z.string().optional().describe('Status label or numeric ID'),
|
|
58
68
|
// Declared as a string like the other dictionary fields, with a boolean
|
|
59
69
|
// folded in first: the name invites `true`, which the API rejects outright.
|
|
60
|
-
is_flaky: z.preprocess(coerceFlakyBoolean, z
|
|
61
|
-
.string()
|
|
62
|
-
.optional()
|
|
63
|
-
.describe('Is flaky label or numeric ID (0=No, 1=Yes). A boolean is accepted too.')),
|
|
70
|
+
is_flaky: z.preprocess(coerceFlakyBoolean, z.string().optional().describe('Is flaky: 0=No, 1=Yes; a boolean works too.')),
|
|
64
71
|
suite_id: z.number().int().positive().optional().describe('ID of the suite that holds the case'),
|
|
65
72
|
milestone_id: z
|
|
66
73
|
.number()
|
|
@@ -75,16 +82,13 @@ export const CaseFieldsSchema = z.object({
|
|
|
75
82
|
steps_type: z
|
|
76
83
|
.enum(['classic', 'gherkin'])
|
|
77
84
|
.optional()
|
|
78
|
-
.describe('
|
|
85
|
+
.describe('Step style: "classic" action/expected, or "gherkin" scenario text'),
|
|
79
86
|
tags: z.array(z.string()).optional().describe('Tag names, e.g. ["smoke", "billing"]'),
|
|
80
|
-
attachments: z
|
|
81
|
-
.array(z.string())
|
|
82
|
-
.optional()
|
|
83
|
-
.describe('Attachment hashes from qase_attachment_upload'),
|
|
87
|
+
attachments: z.array(z.string()).optional().describe('Hashes from qase_attachment_upload'),
|
|
84
88
|
custom_field: z
|
|
85
|
-
.record(z.any())
|
|
89
|
+
.record(z.string(), z.any())
|
|
86
90
|
.optional()
|
|
87
|
-
.describe('Custom
|
|
91
|
+
.describe('Custom fields by ID, e.g. { "12": "value" }'),
|
|
88
92
|
});
|
|
89
93
|
/**
|
|
90
94
|
* Rewrite `shared_step_hash` to `shared` throughout a step tree.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-fields.js","sourceRoot":"","sources":["../../../src/operations-v2/write/case-fields.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAClE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;IACjD,KAAK,EAAE,C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AAC,CAAC;YAC3B,MAAM;QACR,KAAK,CAAC,CAAC,CAAC,SAAS;QACjB;YACE,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;YACpB,MAAM,CAAC,eAAe,GAAG,CAAC,CAAC;YAC3B,MAAM;IACV,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -48,7 +48,8 @@ async function handler(rawArgs) {
|
|
|
48
48
|
toolRegistry.register({
|
|
49
49
|
name: 'qase_case_bulk_create',
|
|
50
50
|
title: 'Bulk create test cases',
|
|
51
|
-
description:
|
|
51
|
+
description: 'Create up to 100 test cases in one request — the batch form of qase_case_upsert, and the right tool whenever more than one case is being written. Same fields and enum handling as qase_case_upsert; creates only, update through qase_case_upsert with `id`. Cost: one API call regardless of batch size — ten cases measured 1.2s against 5.6s as ten separate calls.',
|
|
52
|
+
help: `Create up to ${MAX_CASES} test cases in one request — the batch form of qase_case_upsert, ` +
|
|
52
53
|
'and the right tool whenever more than one case is being written. Takes a list of cases ' +
|
|
53
54
|
'with the same fields and the same enum handling as qase_case_upsert: labels ("high", ' +
|
|
54
55
|
'"blocker") or numeric IDs both work, steps classic or Gherkin. The batch is validated as ' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cases-bulk.js","sourceRoot":"","sources":["../../../src/operations-v2/write/cases-bulk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE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FAAuF;QACvF,wFAAwF;QACxF,2FAA2F;QAC3F,2FAA2F;QAC3F,0FAA0F;IAC5F,MAAM,EAAE,MAAM;IACd,OAAO;IACP,WAAW,EAAE,gBAAgB;IAC7B,6EAA6E;IAC7E,2EAA2E;IAC3E,kEAAkE;CACnE,CAAC,CAAC"}
|
|
@@ -38,7 +38,8 @@ async function del(args) {
|
|
|
38
38
|
toolRegistry.register({
|
|
39
39
|
name: 'qase_case_upsert',
|
|
40
40
|
title: 'Create or update test case',
|
|
41
|
-
description: 'Create or update a single test case
|
|
41
|
+
description: 'Create or update a single test case: with `id` it updates, without it creates. Enum fields accept a label such as "high" or the project\'s numeric ID. Writing more than one case? Use qase_case_bulk_create — one request instead of one per case. If the project has "Test case review" enabled, writes may need a review — run qase_discover_tools with "review". Cost: one API call, about 0.6s to create, 0.4s to update.',
|
|
42
|
+
help: 'Create or update a single test case. With `id` it updates that case, without `id` it creates ' +
|
|
42
43
|
'a new one. Enum fields (priority, severity, type, layer, behavior, automation, is_flaky) ' +
|
|
43
44
|
'accept either a label such as "high" or "blocker" or the project\'s numeric ID — the server ' +
|
|
44
45
|
'normalizes both. Steps can be classic action/expected pairs or Gherkin, and may reference ' +
|
|
@@ -55,7 +56,8 @@ toolRegistry.register({
|
|
|
55
56
|
toolRegistry.register({
|
|
56
57
|
name: 'qase_case_delete',
|
|
57
58
|
title: 'Delete test case',
|
|
58
|
-
description: 'Delete a test case by project code and
|
|
59
|
+
description: 'Delete a test case by project code and ID. Its execution history goes with it and this cannot be undone; consider marking it deprecated through qase_case_upsert instead. No bulk delete — one call each, each asking the user for confirmation. Cost: one API call, about 0.4s.',
|
|
60
|
+
help: 'Delete a test case by project code and case ID. The case goes, and so does its execution ' +
|
|
59
61
|
'history — every result recorded against it stops being reachable. This cannot be undone. ' +
|
|
60
62
|
'Before deleting a case that has simply become obsolete, consider marking it deprecated ' +
|
|
61
63
|
'through qase_case_upsert instead, which keeps the history intact. There is no bulk delete: ' +
|
|
@@ -64,6 +66,5 @@ toolRegistry.register({
|
|
|
64
66
|
schema: DeleteSchema,
|
|
65
67
|
handler: del,
|
|
66
68
|
annotations: DeleteAnnotation,
|
|
67
|
-
visibility: 'discoverable',
|
|
68
69
|
});
|
|
69
70
|
//# sourceMappingURL=cases.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cases.js","sourceRoot":"","sources":["../../../src/operations-v2/write/cases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEnG,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9B,wEAAwE,CACzE;IACD,GAAG,gBAAgB,CAAC,KAAK;CAC1B,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,iBAAiB;IACvB,EAAE,EAAE,QAAQ;CACb,CAAC,CAAC;AAEH,KAAK,UAAU,MAAM,CAAC,IAAkC;IACtD,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;IACnC,MAAM,UAAU,GAAG,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AAO,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,EACtC,CAAC,CAAC,EAAE,EAAE;QACJ,MAAM,eAAe,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;IAC7C,CAAC,CACF,CAAC;AACJ,CAAC;AAED,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,4BAA4B;IACnC,WAAW,EACT,gaAAga;IACla,IAAI,EACF,+FAA+F;QAC/F,2FAA2F;QAC3F,8FAA8F;QAC9F,4FAA4F;QAC5F,gGAAgG;QAChG,6FAA6F;QAC7F,2FAA2F;QAC3F,6FAA6F;QAC7F,6FAA6F;QAC7F,oBAAoB;IACtB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAEH,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,kRAAkR;IACpR,IAAI,EACF,2FAA2F;QAC3F,2FAA2F;QAC3F,yFAAyF;QACzF,6FAA6F;QAC7F,6FAA6F;QAC7F,4FAA4F;IAC9F,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC"}
|
|
@@ -35,12 +35,15 @@ const UpsertSchema = z.object({
|
|
|
35
35
|
.array(z.string())
|
|
36
36
|
.optional()
|
|
37
37
|
.describe('Option titles — required for selectbox, radio and multiselect'),
|
|
38
|
-
placeholder: z.string().optional(),
|
|
39
|
-
default_value: z.string().optional(),
|
|
40
|
-
is_filterable: z.boolean().optional(),
|
|
41
|
-
is_visible: z.boolean().optional(),
|
|
42
|
-
is_required: z.boolean().optional(),
|
|
43
|
-
is_enabled_for_all_projects: z
|
|
38
|
+
placeholder: z.string().optional().describe('Hint shown in the empty field'),
|
|
39
|
+
default_value: z.string().optional().describe('Value a new entity gets when none is entered'),
|
|
40
|
+
is_filterable: z.boolean().optional().describe('Whether the field can be used as a filter'),
|
|
41
|
+
is_visible: z.boolean().optional().describe('Whether the field is shown on the entity'),
|
|
42
|
+
is_required: z.boolean().optional().describe('Whether a value must be given on create'),
|
|
43
|
+
is_enabled_for_all_projects: z
|
|
44
|
+
.boolean()
|
|
45
|
+
.optional()
|
|
46
|
+
.describe('Apply to every project in the workspace, instead of only those in projects_codes'),
|
|
44
47
|
projects_codes: z
|
|
45
48
|
.array(ProjectCodeSchema)
|
|
46
49
|
.optional()
|
|
@@ -196,7 +199,8 @@ async function del(args) {
|
|
|
196
199
|
toolRegistry.register({
|
|
197
200
|
name: 'qase_custom_field_upsert',
|
|
198
201
|
title: 'Create or update custom field',
|
|
199
|
-
description: 'Create or update a custom field.
|
|
202
|
+
description: 'Create or update a custom field. On create, `entity` (case, run, defect) and `type` are required and fixed forever — the update endpoint cannot change them. Fields are workspace-wide; scope with `projects_codes` or is_enabled_for_all_projects. Read existing fields with qase_project_context or qase_get. Cost: one call to create, two to update, 0.5-0.9s.',
|
|
203
|
+
help: 'Create or update a custom field. With `id` it updates that field, without `id` it creates ' +
|
|
200
204
|
'one, and `entity` ("case", "run" or "defect") and `type` ("number", "string", "text", ' +
|
|
201
205
|
'"selectbox", "checkbox", "radio", "multiselect", "url", "user", "datetime") are then ' +
|
|
202
206
|
'required. Both are fixed at creation: the update endpoint cannot change them, and passing a ' +
|
|
@@ -210,12 +214,12 @@ toolRegistry.register({
|
|
|
210
214
|
schema: UpsertSchema,
|
|
211
215
|
handler: upsert,
|
|
212
216
|
annotations: CreateAnnotation,
|
|
213
|
-
visibility: 'discoverable',
|
|
214
217
|
});
|
|
215
218
|
toolRegistry.register({
|
|
216
219
|
name: 'qase_custom_field_delete',
|
|
217
220
|
title: 'Delete custom field',
|
|
218
|
-
description: 'Delete a custom field by ID.
|
|
221
|
+
description: 'Delete a custom field by ID. Reach is workspace-wide: it disappears from every project, with the values entered for it, and this cannot be undone. To remove it from one project only, edit `projects_codes` with qase_custom_field_upsert. Asks the user for confirmation first. Cost: one API call, about 0.4s.',
|
|
222
|
+
help: 'Delete a custom field by ID. The field disappears from every project it applies to, and the ' +
|
|
219
223
|
'values entered for it on cases, runs or defects go with it — the reach is workspace-wide, ' +
|
|
220
224
|
'not project-wide. This cannot be undone. To take a field out of one project only, use ' +
|
|
221
225
|
'qase_custom_field_upsert and remove that code from `projects_codes` instead. Deletion asks ' +
|
|
@@ -223,6 +227,5 @@ toolRegistry.register({
|
|
|
223
227
|
schema: DeleteSchema,
|
|
224
228
|
handler: del,
|
|
225
229
|
annotations: DeleteAnnotation,
|
|
226
|
-
visibility: 'discoverable',
|
|
227
230
|
});
|
|
228
231
|
//# sourceMappingURL=custom-fields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-fields.js","sourceRoot":"","sources":["../../../src/operations-v2/write/custom-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAExE,MAAM,OAAO,GAAG,wBAAwB,CAAC;AAEzC,uEAAuE;AACvE,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAW,CAAC;AAE7D,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;IACX,KAAK,EA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C,MAAM,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACnF,OAAO,MAAM,CAAC,KAAK,CACjB,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,EACtC,CAAC,CAAC,EAAE,EAAE;QACJ,MAAM,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC,CACF,CAAC;AACJ,CAAC;AAED,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,+BAA+B;IACtC,WAAW,EACT,oWAAoW;IACtW,IAAI,EACF,4FAA4F;QAC5F,wFAAwF;QACxF,uFAAuF;QACvF,8FAA8F;QAC9F,8FAA8F;QAC9F,8FAA8F;QAC9F,2EAA2E;QAC3E,+FAA+F;QAC/F,6FAA6F;QAC7F,8FAA8F;QAC9F,iBAAiB;IACnB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC;AAEH,YAAY,CAAC,QAAQ,CAAC;IACpB,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,mTAAmT;IACrT,IAAI,EACF,8FAA8F;QAC9F,4FAA4F;QAC5F,wFAAwF;QACxF,6FAA6F;QAC7F,4FAA4F;IAC9F,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC"}
|
|
@@ -26,14 +26,11 @@ const DefectFieldsSchema = z.object({
|
|
|
26
26
|
.optional()
|
|
27
27
|
.describe('Set to "resolved" to resolve the defect'),
|
|
28
28
|
tags: z.array(z.string()).optional().describe('Tag names, e.g. ["regression", "payments"]'),
|
|
29
|
-
attachments: z
|
|
30
|
-
.array(z.string())
|
|
31
|
-
.optional()
|
|
32
|
-
.describe('Attachment hashes from qase_attachment_upload'),
|
|
29
|
+
attachments: z.array(z.string()).optional().describe('Hashes from qase_attachment_upload'),
|
|
33
30
|
custom_field: z
|
|
34
|
-
.record(z.any())
|
|
31
|
+
.record(z.string(), z.any())
|
|
35
32
|
.optional()
|
|
36
|
-
.describe('Custom
|
|
33
|
+
.describe('Custom fields by ID, e.g. { "12": "value" }'),
|
|
37
34
|
});
|
|
38
35
|
const UpsertSchema = z.object({
|
|
39
36
|
code: ProjectCodeSchema,
|
|
@@ -84,7 +81,8 @@ async function del(args) {
|
|
|
84
81
|
toolRegistry.register({
|
|
85
82
|
name: 'qase_defect_upsert',
|
|
86
83
|
title: 'Create or update defect',
|
|
87
|
-
description: 'Create or update a defect
|
|
84
|
+
description: 'Create or update a defect: with `id` it updates, without it creates, and then `title`, `actual_result` and `severity` are required. Severity and status are labels ("blocker", "open"…), mapped for you. For a defect born from a specific test failure use qase_triage_defect; search with qql_search before filing a duplicate. Cost: one API call, about 0.5s.',
|
|
85
|
+
help: 'Create or update a defect — a tracked problem found by testing. Without `id` it creates, ' +
|
|
88
86
|
'with `id` it updates. Creating one requires `title`, `actual_result` and `severity`; the ' +
|
|
89
87
|
'API rejects a defect missing any of the three. Severity is given as a label ("blocker", ' +
|
|
90
88
|
'"critical", "major", "normal", "minor", "trivial") and the server maps it to the ' +
|
|
@@ -102,7 +100,8 @@ toolRegistry.register({
|
|
|
102
100
|
toolRegistry.register({
|
|
103
101
|
name: 'qase_defect_delete',
|
|
104
102
|
title: 'Delete defect',
|
|
105
|
-
description: 'Delete a defect by project code and
|
|
103
|
+
description: 'Delete a defect by project code and ID; its links to results go with it and this cannot be undone. Usually resolving it through qase_defect_upsert with `id` is the right move, so the record survives. Asks the user for confirmation first. Cost: one API call, about 0.4s.',
|
|
104
|
+
help: 'Delete a defect by project code and defect ID. The defect and its links to results ' +
|
|
106
105
|
'disappear, and the failure history stops pointing anywhere. This cannot be undone. Usually ' +
|
|
107
106
|
'the right move is to resolve or reopen the defect through qase_defect_upsert with its `id` ' +
|
|
108
107
|
'rather than delete it, so the record of what was found survives. Deletion asks the user for ' +
|
|
@@ -110,6 +109,5 @@ toolRegistry.register({
|
|
|
110
109
|
schema: DeleteSchema,
|
|
111
110
|
handler: del,
|
|
112
111
|
annotations: DeleteAnnotation,
|
|
113
|
-
visibility: 'discoverable',
|
|
114
112
|
});
|
|
115
113
|
//# sourceMappingURL=defects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defects.js","sourceRoot":"","sources":["../../../src/operations-v2/write/defects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,CAAC,UAAU,CAAU,CAAC;AAEjD,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;IAC1D,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,QAAQ,EAAE,CAAC;SACR,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;SACjF,QAA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