wopee-mcp 1.29.1 → 1.30.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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function formatDispatchSuccess(testCases, input) {
|
|
2
|
+
const lines = [
|
|
3
|
+
"DISPATCH SUCCESSFUL — tests are now RUNNING (not yet completed).",
|
|
4
|
+
"",
|
|
5
|
+
"Tracking:",
|
|
6
|
+
`- Suite UUID: ${testCases[0]?.suiteUuid ?? input.suiteUuid}`,
|
|
7
|
+
`- Analysis Suite UUID: ${testCases[0]?.analysisSuiteUuid ?? "N/A"}`,
|
|
8
|
+
`- Analysis Identifier: ${testCases[0]?.analysisIdentifier ?? input.analysisIdentifier}`,
|
|
9
|
+
"",
|
|
10
|
+
"Test cases dispatched:",
|
|
11
|
+
];
|
|
12
|
+
// Each row's uuid and run name are the handles for tracking THIS dispatch (backlog#4382).
|
|
13
|
+
// The run name is the GitHub Actions title verbatim and is unique per dispatch, so a caller
|
|
14
|
+
// no longer has to guess which of several identically-named runs is its own.
|
|
15
|
+
for (const tc of testCases) {
|
|
16
|
+
lines.push(`- ${tc.userStoryId}:${tc.testCaseId} → executionStatus: ${tc.executionStatus}`, ` executedTestCaseUuid: ${tc.uuid}`, ...(tc.runName ? [` runName: ${tc.runName}`] : []));
|
|
17
|
+
}
|
|
18
|
+
lines.push("", "IMPORTANT: These tests are RUNNING asynchronously. Do NOT report them as passed or failed.", "Tell the user their tests are running and results will be available shortly (typically 1-3 minutes).", "You will receive a follow-up notification in chat when tests complete with full results.");
|
|
19
|
+
return lines.join("\n");
|
|
20
|
+
}
|
|
@@ -3,25 +3,9 @@ import { ToolName } from "../shared/types.js";
|
|
|
3
3
|
import { _parseError } from "../shared/helpers.js";
|
|
4
4
|
import { createDispatchAgentInput } from "./factory.js";
|
|
5
5
|
import { DispatchAgent } from "../shared/gql-queries.js";
|
|
6
|
+
import { formatDispatchSuccess } from "./format.js";
|
|
6
7
|
import { requestClient } from "../../utils/requestClient.js";
|
|
7
8
|
import { withRetry } from "../../utils/withRetry.js";
|
|
8
|
-
function formatDispatchSuccess(testCases, input) {
|
|
9
|
-
const lines = [
|
|
10
|
-
"DISPATCH SUCCESSFUL — tests are now RUNNING (not yet completed).",
|
|
11
|
-
"",
|
|
12
|
-
"Tracking:",
|
|
13
|
-
`- Suite UUID: ${testCases[0]?.suiteUuid ?? input.suiteUuid}`,
|
|
14
|
-
`- Analysis Suite UUID: ${testCases[0]?.analysisSuiteUuid ?? "N/A"}`,
|
|
15
|
-
`- Analysis Identifier: ${testCases[0]?.analysisIdentifier ?? input.analysisIdentifier}`,
|
|
16
|
-
"",
|
|
17
|
-
"Test cases dispatched:",
|
|
18
|
-
];
|
|
19
|
-
for (const tc of testCases) {
|
|
20
|
-
lines.push(`- ${tc.userStoryId}:${tc.testCaseId} → executionStatus: ${tc.executionStatus}`);
|
|
21
|
-
}
|
|
22
|
-
lines.push("", "IMPORTANT: These tests are RUNNING asynchronously. Do NOT report them as passed or failed.", "Tell the user their tests are running and results will be available shortly (typically 1-3 minutes).", "You will receive a follow-up notification in chat when tests complete with full results.");
|
|
23
|
-
return lines.join("\n");
|
|
24
|
-
}
|
|
25
9
|
export const wopeeDispatchAgent = {
|
|
26
10
|
name: ToolName.WOPEE_DISPATCH_AGENT,
|
|
27
11
|
config: {
|
package/package.json
CHANGED