@checkview/mcp-server 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/api-client.d.ts +44 -0
- package/dist/api-client.d.ts.map +1 -0
- package/dist/api-client.js +164 -0
- package/dist/api-client.js.map +1 -0
- package/dist/format.d.ts +35 -0
- package/dist/format.d.ts.map +1 -0
- package/dist/format.js +57 -0
- package/dist/format.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +142 -0
- package/dist/index.js.map +1 -0
- package/dist/polling.d.ts +13 -0
- package/dist/polling.d.ts.map +1 -0
- package/dist/polling.js +55 -0
- package/dist/polling.js.map +1 -0
- package/dist/tools/abort-test.d.ts +4 -0
- package/dist/tools/abort-test.d.ts.map +1 -0
- package/dist/tools/abort-test.js +136 -0
- package/dist/tools/abort-test.js.map +1 -0
- package/dist/tools/add-test-comment.d.ts +4 -0
- package/dist/tools/add-test-comment.d.ts.map +1 -0
- package/dist/tools/add-test-comment.js +77 -0
- package/dist/tools/add-test-comment.js.map +1 -0
- package/dist/tools/add-website.d.ts +4 -0
- package/dist/tools/add-website.d.ts.map +1 -0
- package/dist/tools/add-website.js +106 -0
- package/dist/tools/add-website.js.map +1 -0
- package/dist/tools/check-website-availability.d.ts +4 -0
- package/dist/tools/check-website-availability.d.ts.map +1 -0
- package/dist/tools/check-website-availability.js +45 -0
- package/dist/tools/check-website-availability.js.map +1 -0
- package/dist/tools/check-website-health.d.ts +4 -0
- package/dist/tools/check-website-health.d.ts.map +1 -0
- package/dist/tools/check-website-health.js +61 -0
- package/dist/tools/check-website-health.js.map +1 -0
- package/dist/tools/compare-test-runs.d.ts +4 -0
- package/dist/tools/compare-test-runs.d.ts.map +1 -0
- package/dist/tools/compare-test-runs.js +75 -0
- package/dist/tools/compare-test-runs.js.map +1 -0
- package/dist/tools/create-form-test-flow.d.ts +4 -0
- package/dist/tools/create-form-test-flow.d.ts.map +1 -0
- package/dist/tools/create-form-test-flow.js +228 -0
- package/dist/tools/create-form-test-flow.js.map +1 -0
- package/dist/tools/create-test-flow.d.ts +4 -0
- package/dist/tools/create-test-flow.d.ts.map +1 -0
- package/dist/tools/create-test-flow.js +536 -0
- package/dist/tools/create-test-flow.js.map +1 -0
- package/dist/tools/delete-invitation.d.ts +4 -0
- package/dist/tools/delete-invitation.d.ts.map +1 -0
- package/dist/tools/delete-invitation.js +67 -0
- package/dist/tools/delete-invitation.js.map +1 -0
- package/dist/tools/delete-test-comment.d.ts +4 -0
- package/dist/tools/delete-test-comment.d.ts.map +1 -0
- package/dist/tools/delete-test-comment.js +67 -0
- package/dist/tools/delete-test-comment.js.map +1 -0
- package/dist/tools/get-ai-summary.d.ts +4 -0
- package/dist/tools/get-ai-summary.d.ts.map +1 -0
- package/dist/tools/get-ai-summary.js +61 -0
- package/dist/tools/get-ai-summary.js.map +1 -0
- package/dist/tools/get-current-organization.d.ts +4 -0
- package/dist/tools/get-current-organization.d.ts.map +1 -0
- package/dist/tools/get-current-organization.js +41 -0
- package/dist/tools/get-current-organization.js.map +1 -0
- package/dist/tools/get-generation-status.d.ts +4 -0
- package/dist/tools/get-generation-status.d.ts.map +1 -0
- package/dist/tools/get-generation-status.js +45 -0
- package/dist/tools/get-generation-status.js.map +1 -0
- package/dist/tools/get-metrics.d.ts +4 -0
- package/dist/tools/get-metrics.d.ts.map +1 -0
- package/dist/tools/get-metrics.js +90 -0
- package/dist/tools/get-metrics.js.map +1 -0
- package/dist/tools/get-organization-stats.d.ts +4 -0
- package/dist/tools/get-organization-stats.d.ts.map +1 -0
- package/dist/tools/get-organization-stats.js +53 -0
- package/dist/tools/get-organization-stats.js.map +1 -0
- package/dist/tools/get-organization.d.ts +4 -0
- package/dist/tools/get-organization.d.ts.map +1 -0
- package/dist/tools/get-organization.js +71 -0
- package/dist/tools/get-organization.js.map +1 -0
- package/dist/tools/get-results.d.ts +4 -0
- package/dist/tools/get-results.d.ts.map +1 -0
- package/dist/tools/get-results.js +154 -0
- package/dist/tools/get-results.js.map +1 -0
- package/dist/tools/get-settings.d.ts +4 -0
- package/dist/tools/get-settings.d.ts.map +1 -0
- package/dist/tools/get-settings.js +100 -0
- package/dist/tools/get-settings.js.map +1 -0
- package/dist/tools/get-step-screenshot.d.ts +4 -0
- package/dist/tools/get-step-screenshot.d.ts.map +1 -0
- package/dist/tools/get-step-screenshot.js +47 -0
- package/dist/tools/get-step-screenshot.js.map +1 -0
- package/dist/tools/get-test-flow.d.ts +4 -0
- package/dist/tools/get-test-flow.d.ts.map +1 -0
- package/dist/tools/get-test-flow.js +90 -0
- package/dist/tools/get-test-flow.js.map +1 -0
- package/dist/tools/get-test-history.d.ts +4 -0
- package/dist/tools/get-test-history.d.ts.map +1 -0
- package/dist/tools/get-test-history.js +100 -0
- package/dist/tools/get-test-history.js.map +1 -0
- package/dist/tools/get-test-run-video.d.ts +4 -0
- package/dist/tools/get-test-run-video.d.ts.map +1 -0
- package/dist/tools/get-test-run-video.js +66 -0
- package/dist/tools/get-test-run-video.js.map +1 -0
- package/dist/tools/get-test-step-details.d.ts +4 -0
- package/dist/tools/get-test-step-details.d.ts.map +1 -0
- package/dist/tools/get-test-step-details.js +166 -0
- package/dist/tools/get-test-step-details.js.map +1 -0
- package/dist/tools/get-usage-reports.d.ts +4 -0
- package/dist/tools/get-usage-reports.d.ts.map +1 -0
- package/dist/tools/get-usage-reports.js +73 -0
- package/dist/tools/get-usage-reports.js.map +1 -0
- package/dist/tools/get-usage.d.ts +4 -0
- package/dist/tools/get-usage.d.ts.map +1 -0
- package/dist/tools/get-usage.js +32 -0
- package/dist/tools/get-usage.js.map +1 -0
- package/dist/tools/get-ux-audit-report.d.ts +4 -0
- package/dist/tools/get-ux-audit-report.d.ts.map +1 -0
- package/dist/tools/get-ux-audit-report.js +52 -0
- package/dist/tools/get-ux-audit-report.js.map +1 -0
- package/dist/tools/get-website-analytics.d.ts +4 -0
- package/dist/tools/get-website-analytics.d.ts.map +1 -0
- package/dist/tools/get-website-analytics.js +54 -0
- package/dist/tools/get-website-analytics.js.map +1 -0
- package/dist/tools/get-website-logs.d.ts +4 -0
- package/dist/tools/get-website-logs.d.ts.map +1 -0
- package/dist/tools/get-website-logs.js +53 -0
- package/dist/tools/get-website-logs.js.map +1 -0
- package/dist/tools/get-website-screenshot.d.ts +4 -0
- package/dist/tools/get-website-screenshot.d.ts.map +1 -0
- package/dist/tools/get-website-screenshot.js +59 -0
- package/dist/tools/get-website-screenshot.js.map +1 -0
- package/dist/tools/get-website-settings.d.ts +4 -0
- package/dist/tools/get-website-settings.d.ts.map +1 -0
- package/dist/tools/get-website-settings.js +97 -0
- package/dist/tools/get-website-settings.js.map +1 -0
- package/dist/tools/get-website.d.ts +4 -0
- package/dist/tools/get-website.d.ts.map +1 -0
- package/dist/tools/get-website.js +45 -0
- package/dist/tools/get-website.js.map +1 -0
- package/dist/tools/invite-team-member.d.ts +4 -0
- package/dist/tools/invite-team-member.d.ts.map +1 -0
- package/dist/tools/invite-team-member.js +100 -0
- package/dist/tools/invite-team-member.js.map +1 -0
- package/dist/tools/list-forms.d.ts +4 -0
- package/dist/tools/list-forms.d.ts.map +1 -0
- package/dist/tools/list-forms.js +65 -0
- package/dist/tools/list-forms.js.map +1 -0
- package/dist/tools/list-organizations.d.ts +4 -0
- package/dist/tools/list-organizations.d.ts.map +1 -0
- package/dist/tools/list-organizations.js +78 -0
- package/dist/tools/list-organizations.js.map +1 -0
- package/dist/tools/list-team-members.d.ts +4 -0
- package/dist/tools/list-team-members.d.ts.map +1 -0
- package/dist/tools/list-team-members.js +58 -0
- package/dist/tools/list-team-members.js.map +1 -0
- package/dist/tools/list-test-comments.d.ts +4 -0
- package/dist/tools/list-test-comments.d.ts.map +1 -0
- package/dist/tools/list-test-comments.js +55 -0
- package/dist/tools/list-test-comments.js.map +1 -0
- package/dist/tools/list-test-flow-steps.d.ts +4 -0
- package/dist/tools/list-test-flow-steps.d.ts.map +1 -0
- package/dist/tools/list-test-flow-steps.js +59 -0
- package/dist/tools/list-test-flow-steps.js.map +1 -0
- package/dist/tools/list-test-flows.d.ts +4 -0
- package/dist/tools/list-test-flows.d.ts.map +1 -0
- package/dist/tools/list-test-flows.js +90 -0
- package/dist/tools/list-test-flows.js.map +1 -0
- package/dist/tools/list-test-runs.d.ts +4 -0
- package/dist/tools/list-test-runs.d.ts.map +1 -0
- package/dist/tools/list-test-runs.js +94 -0
- package/dist/tools/list-test-runs.js.map +1 -0
- package/dist/tools/list-ux-audits.d.ts +4 -0
- package/dist/tools/list-ux-audits.d.ts.map +1 -0
- package/dist/tools/list-ux-audits.js +59 -0
- package/dist/tools/list-ux-audits.js.map +1 -0
- package/dist/tools/list-websites.d.ts +4 -0
- package/dist/tools/list-websites.d.ts.map +1 -0
- package/dist/tools/list-websites.js +80 -0
- package/dist/tools/list-websites.js.map +1 -0
- package/dist/tools/manage-notification-settings.d.ts +4 -0
- package/dist/tools/manage-notification-settings.d.ts.map +1 -0
- package/dist/tools/manage-notification-settings.js +311 -0
- package/dist/tools/manage-notification-settings.js.map +1 -0
- package/dist/tools/pause-website.d.ts +4 -0
- package/dist/tools/pause-website.d.ts.map +1 -0
- package/dist/tools/pause-website.js +58 -0
- package/dist/tools/pause-website.js.map +1 -0
- package/dist/tools/regenerate-test-steps.d.ts +4 -0
- package/dist/tools/regenerate-test-steps.d.ts.map +1 -0
- package/dist/tools/regenerate-test-steps.js +173 -0
- package/dist/tools/regenerate-test-steps.js.map +1 -0
- package/dist/tools/reinitialize-test-flow.d.ts +4 -0
- package/dist/tools/reinitialize-test-flow.d.ts.map +1 -0
- package/dist/tools/reinitialize-test-flow.js +79 -0
- package/dist/tools/reinitialize-test-flow.js.map +1 -0
- package/dist/tools/remove-team-member.d.ts +4 -0
- package/dist/tools/remove-team-member.d.ts.map +1 -0
- package/dist/tools/remove-team-member.js +68 -0
- package/dist/tools/remove-team-member.js.map +1 -0
- package/dist/tools/remove-test-flow.d.ts +4 -0
- package/dist/tools/remove-test-flow.d.ts.map +1 -0
- package/dist/tools/remove-test-flow.js +74 -0
- package/dist/tools/remove-test-flow.js.map +1 -0
- package/dist/tools/remove-website.d.ts +4 -0
- package/dist/tools/remove-website.d.ts.map +1 -0
- package/dist/tools/remove-website.js +74 -0
- package/dist/tools/remove-website.js.map +1 -0
- package/dist/tools/resume-website.d.ts +4 -0
- package/dist/tools/resume-website.d.ts.map +1 -0
- package/dist/tools/resume-website.js +58 -0
- package/dist/tools/resume-website.js.map +1 -0
- package/dist/tools/run-all-tests.d.ts +4 -0
- package/dist/tools/run-all-tests.d.ts.map +1 -0
- package/dist/tools/run-all-tests.js +165 -0
- package/dist/tools/run-all-tests.js.map +1 -0
- package/dist/tools/run-test.d.ts +4 -0
- package/dist/tools/run-test.d.ts.map +1 -0
- package/dist/tools/run-test.js +186 -0
- package/dist/tools/run-test.js.map +1 -0
- package/dist/tools/run-ux-audit.d.ts +4 -0
- package/dist/tools/run-ux-audit.d.ts.map +1 -0
- package/dist/tools/run-ux-audit.js +192 -0
- package/dist/tools/run-ux-audit.js.map +1 -0
- package/dist/tools/set-organization.d.ts +4 -0
- package/dist/tools/set-organization.d.ts.map +1 -0
- package/dist/tools/set-organization.js +129 -0
- package/dist/tools/set-organization.js.map +1 -0
- package/dist/tools/test-url.d.ts +4 -0
- package/dist/tools/test-url.d.ts.map +1 -0
- package/dist/tools/test-url.js +334 -0
- package/dist/tools/test-url.js.map +1 -0
- package/dist/tools/update-organization.d.ts +4 -0
- package/dist/tools/update-organization.d.ts.map +1 -0
- package/dist/tools/update-organization.js +90 -0
- package/dist/tools/update-organization.js.map +1 -0
- package/dist/tools/update-schedule.d.ts +4 -0
- package/dist/tools/update-schedule.d.ts.map +1 -0
- package/dist/tools/update-schedule.js +157 -0
- package/dist/tools/update-schedule.js.map +1 -0
- package/dist/tools/update-settings.d.ts +4 -0
- package/dist/tools/update-settings.d.ts.map +1 -0
- package/dist/tools/update-settings.js +97 -0
- package/dist/tools/update-settings.js.map +1 -0
- package/dist/tools/update-team-member.d.ts +4 -0
- package/dist/tools/update-team-member.d.ts.map +1 -0
- package/dist/tools/update-team-member.js +102 -0
- package/dist/tools/update-team-member.js.map +1 -0
- package/dist/tools/update-test-flow-steps.d.ts +4 -0
- package/dist/tools/update-test-flow-steps.d.ts.map +1 -0
- package/dist/tools/update-test-flow-steps.js +440 -0
- package/dist/tools/update-test-flow-steps.js.map +1 -0
- package/dist/tools/update-test-flow.d.ts +4 -0
- package/dist/tools/update-test-flow.d.ts.map +1 -0
- package/dist/tools/update-test-flow.js +172 -0
- package/dist/tools/update-test-flow.js.map +1 -0
- package/dist/tools/update-website.d.ts +4 -0
- package/dist/tools/update-website.d.ts.map +1 -0
- package/dist/tools/update-website.js +86 -0
- package/dist/tools/update-website.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiError, idempotencyKey } from "../api-client.js";
|
|
3
|
+
export function registerReinitializeTestFlowTool(server, client) {
|
|
4
|
+
server.registerTool("checkview_reinitialize_test_flow", {
|
|
5
|
+
description: "Trigger re-initialization of a test flow. For form-type flows, re-runs the progressive scanner to detect field changes. For WooCommerce flows, re-runs checkout field detection. Useful when the target page structure has changed. Only works on non-custom test flows.",
|
|
6
|
+
inputSchema: {
|
|
7
|
+
test_flow_id: z
|
|
8
|
+
.string()
|
|
9
|
+
.uuid()
|
|
10
|
+
.describe("The test flow ID to reinitialize"),
|
|
11
|
+
},
|
|
12
|
+
annotations: {
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
destructiveHint: false,
|
|
15
|
+
idempotentHint: true,
|
|
16
|
+
},
|
|
17
|
+
}, async (args, extra) => {
|
|
18
|
+
try {
|
|
19
|
+
const idemKey = idempotencyKey(`reinitialize:${args.test_flow_id}`);
|
|
20
|
+
let result;
|
|
21
|
+
try {
|
|
22
|
+
const response = await client.post(`/test-flows/${args.test_flow_id}/initializations`, undefined, idemKey, extra.signal);
|
|
23
|
+
result = response.body;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
if (error instanceof ApiError) {
|
|
27
|
+
if (error.status === 404) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: "Test flow not found." }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (error.status === 409) {
|
|
34
|
+
return {
|
|
35
|
+
content: [
|
|
36
|
+
{
|
|
37
|
+
type: "text",
|
|
38
|
+
text: "Initialization is already in progress for this test flow.",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
isError: true,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if (error.isReplay && error.status >= 400) {
|
|
45
|
+
const freshKey = idempotencyKey(`reinitialize:${args.test_flow_id}:${Date.now()}`);
|
|
46
|
+
const retryResult = await client.post(`/test-flows/${args.test_flow_id}/initializations`, undefined, freshKey, extra.signal);
|
|
47
|
+
result = retryResult.body;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
content: [
|
|
59
|
+
{
|
|
60
|
+
type: "text",
|
|
61
|
+
text: `Re-initialization triggered for test flow ${args.test_flow_id}.\n\nInitialization ID: ${result.id}\nStatus: ${result.status}`,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
return {
|
|
68
|
+
content: [
|
|
69
|
+
{
|
|
70
|
+
type: "text",
|
|
71
|
+
text: `Failed to reinitialize test flow: ${error instanceof Error ? error.message : String(error)}`,
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
isError: true,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=reinitialize-test-flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reinitialize-test-flow.js","sourceRoot":"","sources":["../../src/tools/reinitialize-test-flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAQ5E,MAAM,UAAU,gCAAgC,CAC9C,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,kCAAkC,EAClC;QACE,WAAW,EACT,0QAA0Q;QAC5Q,WAAW,EAAE;YACX,YAAY,EAAE,CAAC;iBACZ,MAAM,EAAE;iBACR,IAAI,EAAE;iBACN,QAAQ,CAAC,kCAAkC,CAAC;SAChD;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;SACrB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,cAAc,CAAC,gBAAgB,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;YAEpE,IAAI,MAA8B,CAAC;YACnC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,eAAe,IAAI,CAAC,YAAY,kBAAkB,EAClD,SAAS,EACT,OAAO,EACP,KAAK,CAAC,MAAM,CACb,CAAC;gBACF,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;YACzB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;oBAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;wBACzB,OAAO;4BACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,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;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { type ApiClient } from "../api-client.js";
|
|
3
|
+
export declare function registerRemoveTeamMemberTool(server: McpServer, client: ApiClient): void;
|
|
4
|
+
//# sourceMappingURL=remove-team-member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-team-member.d.ts","sourceRoot":"","sources":["../../src/tools/remove-team-member.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5E,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAyEN"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiError, idempotencyKey } from "../api-client.js";
|
|
3
|
+
export function registerRemoveTeamMemberTool(server, client) {
|
|
4
|
+
server.registerTool("checkview_remove_team_member", {
|
|
5
|
+
description: "Remove a team member from the organization. This permanently revokes their access.",
|
|
6
|
+
inputSchema: {
|
|
7
|
+
user_id: z
|
|
8
|
+
.string()
|
|
9
|
+
.uuid()
|
|
10
|
+
.describe("The user ID of the team member to remove"),
|
|
11
|
+
},
|
|
12
|
+
annotations: {
|
|
13
|
+
readOnlyHint: false,
|
|
14
|
+
destructiveHint: true,
|
|
15
|
+
idempotentHint: true,
|
|
16
|
+
},
|
|
17
|
+
}, async (args, extra) => {
|
|
18
|
+
try {
|
|
19
|
+
const idemKey = idempotencyKey(`delete:team-member:${args.user_id}`);
|
|
20
|
+
try {
|
|
21
|
+
await client.delete(`/team/${args.user_id}`, idemKey, extra.signal);
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
if (error instanceof ApiError) {
|
|
25
|
+
// 404 = already removed — treat as success
|
|
26
|
+
if (error.status === 404) {
|
|
27
|
+
return {
|
|
28
|
+
content: [
|
|
29
|
+
{ type: "text", text: "Team member already removed." },
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
// Do NOT retry replay for 404 (handled above)
|
|
34
|
+
if (error.isReplay && error.status >= 400) {
|
|
35
|
+
const freshKey = idempotencyKey(`delete:team-member:${args.user_id}:${Date.now()}`);
|
|
36
|
+
await client.delete(`/team/${args.user_id}`, freshKey, extra.signal);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
content: [
|
|
48
|
+
{
|
|
49
|
+
type: "text",
|
|
50
|
+
text: `Team member ${args.user_id} removed successfully.`,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
return {
|
|
57
|
+
content: [
|
|
58
|
+
{
|
|
59
|
+
type: "text",
|
|
60
|
+
text: `Failed to remove team member: ${error instanceof Error ? error.message : String(error)}`,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
isError: true,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=remove-team-member.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-team-member.js","sourceRoot":"","sources":["../../src/tools/remove-team-member.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAE5E,MAAM,UAAU,4BAA4B,CAC1C,MAAiB,EACjB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oBACd,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,MAAM,KAAK,CAAC;gBACd,CAAC;YACH,CAAC;YAED,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,eAAe,IAAI,CAAC,OAAO,wBAAwB;qBAC1D;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,iCAAiC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBAChG;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-test-flow.d.ts","sourceRoot":"","sources":["../../src/tools/remove-test-flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5E,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAmFN"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiError, idempotencyKey } from "../api-client.js";
|
|
3
|
+
export function registerRemoveTestFlowTool(server, client) {
|
|
4
|
+
server.registerTool("checkview_remove_test_flow", {
|
|
5
|
+
description: "Delete a test flow. This permanently removes the test flow and its step definitions.",
|
|
6
|
+
inputSchema: {
|
|
7
|
+
test_flow_id: z.string().uuid().describe("The test flow ID to delete"),
|
|
8
|
+
},
|
|
9
|
+
annotations: {
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
destructiveHint: true,
|
|
12
|
+
idempotentHint: true,
|
|
13
|
+
},
|
|
14
|
+
}, async (args, extra) => {
|
|
15
|
+
try {
|
|
16
|
+
const idemKey = idempotencyKey(`delete:test-flow:${args.test_flow_id}`);
|
|
17
|
+
try {
|
|
18
|
+
await client.delete(`/test-flows/${args.test_flow_id}`, idemKey, extra.signal);
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
if (error instanceof ApiError) {
|
|
22
|
+
// 404 = already deleted — treat as success
|
|
23
|
+
if (error.status === 404) {
|
|
24
|
+
return {
|
|
25
|
+
content: [{ type: "text", text: "Test flow already deleted." }],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if (error.status === 409) {
|
|
29
|
+
return {
|
|
30
|
+
content: [
|
|
31
|
+
{
|
|
32
|
+
type: "text",
|
|
33
|
+
text: "Cannot delete: test is currently running. Abort it first.",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
isError: true,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// Do NOT retry replay for 404 (handled above)
|
|
40
|
+
if (error.isReplay && error.status >= 400) {
|
|
41
|
+
const freshKey = idempotencyKey(`delete:test-flow:${args.test_flow_id}:${Date.now()}`);
|
|
42
|
+
await client.delete(`/test-flows/${args.test_flow_id}`, freshKey, extra.signal);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
content: [
|
|
54
|
+
{
|
|
55
|
+
type: "text",
|
|
56
|
+
text: `Test flow ${args.test_flow_id} deleted successfully.`,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
return {
|
|
63
|
+
content: [
|
|
64
|
+
{
|
|
65
|
+
type: "text",
|
|
66
|
+
text: `Failed to delete test flow: ${error instanceof Error ? error.message : String(error)}`,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
isError: true,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=remove-test-flow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-test-flow.js","sourceRoot":"","sources":["../../src/tools/remove-test-flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAE5E,MAAM,UAAU,0BAA0B,CACxC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,4BAA4B,EAC5B;QACE,WAAW,EACT,sFAAsF;QACxF,WAAW,EAAE;YACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;SACvE;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,IAAI;YACrB,cAAc,EAAE,IAAI;SACrB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,cAAc,CAAC,oBAAoB,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;YAExE,IAAI,CAAC;gBACH,MAAM,MAAM,CAAC,MAAM,CACjB,eAAe,IAAI,CAAC,YAAY,EAAE,EAClC,OAAO,EACP,KAAK,CAAC,MAAM,CACb,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,KAAK,YAAY,QAAQ,EAAE,CAAC;oBAC9B,2CAA2C;oBAC3C,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;wBACzB,OAAO;4BACL,OAAO,EAAE,CAAC,EAAE,I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
|
|
|
1
|
+
{"version":3,"file":"remove-website.d.ts","sourceRoot":"","sources":["../../src/tools/remove-website.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5E,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAmFN"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiError, idempotencyKey } from "../api-client.js";
|
|
3
|
+
export function registerRemoveWebsiteTool(server, client) {
|
|
4
|
+
server.registerTool("checkview_remove_website", {
|
|
5
|
+
description: "Remove a website from CheckView. This deletes the website and all associated test flows and data.",
|
|
6
|
+
inputSchema: {
|
|
7
|
+
website_id: z.string().uuid().describe("The website ID to remove"),
|
|
8
|
+
},
|
|
9
|
+
annotations: {
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
destructiveHint: true,
|
|
12
|
+
idempotentHint: true,
|
|
13
|
+
},
|
|
14
|
+
}, async (args, extra) => {
|
|
15
|
+
try {
|
|
16
|
+
const idemKey = idempotencyKey(`delete:website:${args.website_id}`);
|
|
17
|
+
try {
|
|
18
|
+
await client.delete(`/websites/${args.website_id}`, idemKey, extra.signal);
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
if (error instanceof ApiError) {
|
|
22
|
+
// 404 = already deleted — treat as success
|
|
23
|
+
if (error.status === 404) {
|
|
24
|
+
return {
|
|
25
|
+
content: [{ type: "text", text: "Website already deleted." }],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if (error.status === 409) {
|
|
29
|
+
return {
|
|
30
|
+
content: [
|
|
31
|
+
{
|
|
32
|
+
type: "text",
|
|
33
|
+
text: "Cannot delete: website has running tests. Abort them first.",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
isError: true,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// Do NOT retry replay for 404 (handled above)
|
|
40
|
+
if (error.isReplay && error.status >= 400) {
|
|
41
|
+
const freshKey = idempotencyKey(`delete:website:${args.website_id}:${Date.now()}`);
|
|
42
|
+
await client.delete(`/websites/${args.website_id}`, freshKey, extra.signal);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
content: [
|
|
54
|
+
{
|
|
55
|
+
type: "text",
|
|
56
|
+
text: `Website ${args.website_id} removed successfully.`,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
return {
|
|
63
|
+
content: [
|
|
64
|
+
{
|
|
65
|
+
type: "text",
|
|
66
|
+
text: `Failed to remove website: ${error instanceof Error ? error.message : String(error)}`,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
isError: true,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=remove-website.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-website.js","sourceRoot":"","sources":["../../src/tools/remove-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAE5E,MAAM,UAAU,yBAAyB,CACvC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,0BAA0B,EAC1B;QACE,WAAW,EACT,mGAAmG;QACrG,WAAW,EAAE;YACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CA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BAAM,CAAC;wBACN,MAAM,KAAK,CAAC;oBACd,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,MAAM,KAAK,CAAC;gBACd,CAAC;YACH,CAAC;YAED,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,WAAW,IAAI,CAAC,UAAU,wBAAwB;qBACzD;iBACF;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,6BAA6B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBAC5F;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume-website.d.ts","sourceRoot":"","sources":["../../src/tools/resume-website.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5E,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CAuEN"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiError, idempotencyKey } from "../api-client.js";
|
|
3
|
+
export function registerResumeWebsiteTool(server, client) {
|
|
4
|
+
server.registerTool("checkview_resume_website", {
|
|
5
|
+
description: "Resume all scheduled tests on a previously paused website.",
|
|
6
|
+
inputSchema: {
|
|
7
|
+
website_id: z.string().uuid().describe("The website ID to resume"),
|
|
8
|
+
},
|
|
9
|
+
annotations: {
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
destructiveHint: false,
|
|
12
|
+
idempotentHint: true,
|
|
13
|
+
},
|
|
14
|
+
}, async (args, extra) => {
|
|
15
|
+
try {
|
|
16
|
+
const idemKey = idempotencyKey(`resume:website:${args.website_id}`);
|
|
17
|
+
let response;
|
|
18
|
+
try {
|
|
19
|
+
response = await client.post(`/websites/${args.website_id}/resume`, undefined, idemKey, extra.signal);
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
if (error instanceof ApiError) {
|
|
23
|
+
if (error.status === 404) {
|
|
24
|
+
return {
|
|
25
|
+
content: [{ type: "text", text: "Website not found." }],
|
|
26
|
+
isError: true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (error.isReplay && error.status >= 400) {
|
|
30
|
+
const freshKey = idempotencyKey(`resume:website:${args.website_id}:${Date.now()}`);
|
|
31
|
+
response = await client.post(`/websites/${args.website_id}/resume`, undefined, freshKey, extra.signal);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
content: [{ type: "text", text: response.body.message }],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
return {
|
|
47
|
+
content: [
|
|
48
|
+
{
|
|
49
|
+
type: "text",
|
|
50
|
+
text: `Failed to resume website: ${error instanceof Error ? error.message : String(error)}`,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
isError: true,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=resume-website.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume-website.js","sourceRoot":"","sources":["../../src/tools/resume-website.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,C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QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAI1B,aAAa,IAAI,CAAC,UAAU,SAAS,EACrC,SAAS,EACT,QAAQ,EACR,KAAK,CAAC,MAAM,CACb,CAAC;oBACJ,CAAC;yBAAM,CAAC;wBACN,MAAM,KAAK,CAAC;oBACd,CAAC;gBACH,CAAC;qBAAM,CAAC;oBACN,MAAM,KAAK,CAAC;gBACd,CAAC;YACH,CAAC;YAED,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;aACzD,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,6BAA6B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBAC5F;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-all-tests.d.ts","sourceRoot":"","sources":["../../src/tools/run-all-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAkB5E,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,IAAI,CA6LN"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiError, idempotencyKey } from "../api-client.js";
|
|
3
|
+
import { pollUntil } from "../polling.js";
|
|
4
|
+
export function registerRunAllTestsTool(server, client) {
|
|
5
|
+
server.registerTool("checkview_run_all_tests", {
|
|
6
|
+
description: "Admin-only. Triggers all test flows for a website. Optionally waits for all tests to complete.",
|
|
7
|
+
inputSchema: {
|
|
8
|
+
website_id: z.string().uuid().describe("The website ID"),
|
|
9
|
+
wait_for_result: z
|
|
10
|
+
.boolean()
|
|
11
|
+
.optional()
|
|
12
|
+
.default(false)
|
|
13
|
+
.describe("Wait for all tests to complete (default false)"),
|
|
14
|
+
},
|
|
15
|
+
annotations: {
|
|
16
|
+
readOnlyHint: false,
|
|
17
|
+
destructiveHint: false,
|
|
18
|
+
idempotentHint: true,
|
|
19
|
+
},
|
|
20
|
+
}, async (args, extra) => {
|
|
21
|
+
try {
|
|
22
|
+
const idemKey = idempotencyKey(`run-all:${args.website_id}:${Date.now()}`);
|
|
23
|
+
let triggerResult;
|
|
24
|
+
try {
|
|
25
|
+
const response = await client.post(`/websites/${args.website_id}/run-all`, undefined, idemKey, extra.signal);
|
|
26
|
+
triggerResult = response.body;
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
if (error instanceof ApiError) {
|
|
30
|
+
if (error.status === 403) {
|
|
31
|
+
return {
|
|
32
|
+
content: [
|
|
33
|
+
{
|
|
34
|
+
type: "text",
|
|
35
|
+
text: "Admin role required. Your API token does not have admin permissions.",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
isError: true,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (error.status === 400) {
|
|
42
|
+
return {
|
|
43
|
+
content: [{ type: "text", text: error.detail }],
|
|
44
|
+
isError: true,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (error.status === 404) {
|
|
48
|
+
return {
|
|
49
|
+
content: [{ type: "text", text: "Website not found." }],
|
|
50
|
+
isError: true,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
if (error.status === 409) {
|
|
54
|
+
return {
|
|
55
|
+
content: [
|
|
56
|
+
{
|
|
57
|
+
type: "text",
|
|
58
|
+
text: "A run-all operation is already in progress for this website.",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
isError: true,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
if (error.isReplay && error.status >= 400) {
|
|
65
|
+
const freshKey = idempotencyKey(`run-all:${args.website_id}:retry:${Date.now()}`);
|
|
66
|
+
const retryResponse = await client.post(`/websites/${args.website_id}/run-all`, undefined, freshKey, extra.signal);
|
|
67
|
+
triggerResult = retryResponse.body;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
throw error;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if (!args.wait_for_result) {
|
|
78
|
+
return {
|
|
79
|
+
content: [
|
|
80
|
+
{
|
|
81
|
+
type: "text",
|
|
82
|
+
text: `Triggered ${triggerResult.triggered_count} test flows at ${triggerResult.triggered_at}.\n\nUse checkview_list_test_runs to monitor progress.`,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
// Poll for completion with transient error resilience
|
|
88
|
+
await server.sendLoggingMessage({
|
|
89
|
+
level: "info",
|
|
90
|
+
data: `Run-all triggered for website ${args.website_id}. Polling for completion...`,
|
|
91
|
+
});
|
|
92
|
+
let lastStatus = {
|
|
93
|
+
locked: true,
|
|
94
|
+
pending: triggerResult.triggered_count,
|
|
95
|
+
running: 0,
|
|
96
|
+
passed: 0,
|
|
97
|
+
failed: 0,
|
|
98
|
+
};
|
|
99
|
+
let finalStatus;
|
|
100
|
+
try {
|
|
101
|
+
finalStatus = await pollUntil(async () => {
|
|
102
|
+
try {
|
|
103
|
+
const r = await client.get(`/websites/${args.website_id}/run-all/status`, undefined, extra.signal);
|
|
104
|
+
lastStatus = r.body;
|
|
105
|
+
return r.body;
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
// Swallow transient server errors, retry next interval
|
|
109
|
+
if (error instanceof ApiError && error.status >= 500) {
|
|
110
|
+
return lastStatus;
|
|
111
|
+
}
|
|
112
|
+
throw error;
|
|
113
|
+
}
|
|
114
|
+
}, (status) => !status.locked && status.pending === 0 && status.running === 0, {
|
|
115
|
+
intervalMs: 15_000,
|
|
116
|
+
timeoutMs: 900_000, // 15 min
|
|
117
|
+
signal: extra.signal,
|
|
118
|
+
onProgress: (status) => {
|
|
119
|
+
server
|
|
120
|
+
.sendLoggingMessage({
|
|
121
|
+
level: "info",
|
|
122
|
+
data: `Run-all: pending=${status.pending} running=${status.running} passed=${status.passed} failed=${status.failed}`,
|
|
123
|
+
})
|
|
124
|
+
.catch(() => { });
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
const isTimeout = error instanceof Error &&
|
|
130
|
+
error.message.startsWith("Operation timed out");
|
|
131
|
+
if (isTimeout) {
|
|
132
|
+
return {
|
|
133
|
+
content: [
|
|
134
|
+
{
|
|
135
|
+
type: "text",
|
|
136
|
+
text: `Run-all still in progress after 15 min.\n\nPassed: ${lastStatus.passed} | Failed: ${lastStatus.failed} | Pending: ${lastStatus.pending} | Running: ${lastStatus.running}\n\nUse checkview_list_test_runs to check progress.`,
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
throw error;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
content: [
|
|
145
|
+
{
|
|
146
|
+
type: "text",
|
|
147
|
+
text: `Run-all complete.\n\nPassed: ${finalStatus.passed}\nFailed: ${finalStatus.failed}\nTotal: ${finalStatus.passed + finalStatus.failed}`,
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
return {
|
|
154
|
+
content: [
|
|
155
|
+
{
|
|
156
|
+
type: "text",
|
|
157
|
+
text: `Failed to run all tests: ${error instanceof Error ? error.message : String(error)}`,
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
isError: true,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=run-all-tests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-all-tests.js","sourceRoot":"","sources":["../../src/tools/run-all-tests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAiB1C,MAAM,UAAU,uBAAuB,CACrC,MAAiB,EACjB,MAAiB;IAEjB,MAAM,CAAC,YAAY,CACjB,yBAAyB,EACzB;QACE,WAAW,EACT,gGAAgG;QAClG,WAAW,EAAE;YACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YACxD,eAAe,EAAE,CAAC;iBACf,OAAO,EAAE;iBACT,QAAQ,EAAE;iBACV,OAAO,CAAC,KAAK,CAAC;iBACd,QAAQ,CAAC,gDAAgD,CAAC;SAC9D;QACD,WAAW,EAAE;YACX,YAAY,EAAE,KAAK;YACnB,eAAe,EAAE,KAAK;YACtB,cAAc,EAAE,IAAI;SACrB;KACF,EACD,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QACpB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,cAAc,CAC5B,WAAW,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,EAAE,EAAE,CAC3C,CAAC;YAEF,IAAI,aAA6B,CAAC;YAClC,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAChC,aAAa,IAAI,CAAC,UAAU,UAAU,EACtC,SAAS,EACT,OAAO,EACP,KAAK,CAAC,MAAM,CACb,C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