@browserstack/mcp-server 1.2.36 → 1.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/config.d.ts +4 -1
- package/dist/config.js +23 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lib/tm-base-url.js +7 -1
- package/dist/tools/accessibility.js +30 -0
- package/dist/tools/appautomate.js +20 -2
- package/dist/tools/applive.js +6 -0
- package/dist/tools/automate.js +6 -0
- package/dist/tools/bstack-sdk.js +7 -1
- package/dist/tools/build-insights.js +16 -3
- package/dist/tools/get-failure-logs.js +6 -0
- package/dist/tools/live.js +7 -1
- package/dist/tools/observability.js +6 -0
- package/dist/tools/percy-sdk.js +49 -7
- package/dist/tools/rca-agent-utils/constants.d.ts +2 -0
- package/dist/tools/rca-agent-utils/constants.js +8 -0
- package/dist/tools/rca-agent-utils/get-failed-test-id.d.ts +3 -2
- package/dist/tools/rca-agent-utils/get-failed-test-id.js +94 -25
- package/dist/tools/rca-agent-utils/types.d.ts +10 -0
- package/dist/tools/rca-agent.d.ts +1 -0
- package/dist/tools/rca-agent.js +30 -6
- package/dist/tools/selfheal.js +12 -0
- package/dist/tools/testmanagement.js +119 -17
- package/dist/tools/tfa-rca-collaboration.d.ts +15 -0
- package/dist/tools/tfa-rca-collaboration.js +162 -0
- package/dist/tools/tfa-rca-utils/build-failure-themes.d.ts +61 -0
- package/dist/tools/tfa-rca-utils/build-failure-themes.js +133 -0
- package/dist/tools/tfa-rca-utils/constants.d.ts +67 -0
- package/dist/tools/tfa-rca-utils/constants.js +103 -0
- package/dist/tools/tfa-rca-utils/submit-turn.d.ts +29 -0
- package/dist/tools/tfa-rca-utils/submit-turn.js +188 -0
- package/dist/tools/tfa-rca-utils/trigger-report.d.ts +22 -0
- package/dist/tools/tfa-rca-utils/trigger-report.js +61 -0
- package/dist/tools/tfa-rca-utils/turn-result.d.ts +14 -0
- package/dist/tools/tfa-rca-utils/turn-result.js +131 -0
- package/dist/tools/tfa-rca-utils/types.d.ts +61 -0
- package/dist/tools/tfa-rca-utils/types.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare enum TfaStatus {
|
|
2
|
+
NEEDS_INFO = "NEEDS_INFO",
|
|
3
|
+
RESOLVED = "RESOLVED",
|
|
4
|
+
BLOCKED = "BLOCKED"
|
|
5
|
+
}
|
|
6
|
+
export declare const PENDING_STATUS: "PENDING";
|
|
7
|
+
export type Confidence = "low" | "medium" | "high" | "unknown";
|
|
8
|
+
export type EvidenceType = "test_logs" | "product_code" | "k8s" | "kibana" | "metrics" | "deploy" | "ci" | "other";
|
|
9
|
+
/** A typed request for evidence; the skill routes it by `evidenceType`. */
|
|
10
|
+
export interface TfaAsk {
|
|
11
|
+
what: string;
|
|
12
|
+
why: string;
|
|
13
|
+
evidenceType: EvidenceType;
|
|
14
|
+
priority: "high" | "medium" | "low";
|
|
15
|
+
}
|
|
16
|
+
export interface TfaRca {
|
|
17
|
+
root_cause?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
possible_fix?: string;
|
|
20
|
+
failure_type?: string;
|
|
21
|
+
alternatives_considered?: string[];
|
|
22
|
+
related_prs?: unknown[];
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export interface TurnResponse {
|
|
26
|
+
status: TfaStatus;
|
|
27
|
+
confidence: Confidence;
|
|
28
|
+
questions: string[];
|
|
29
|
+
asks: TfaAsk[];
|
|
30
|
+
suggestions: string[];
|
|
31
|
+
hypotheses: string[];
|
|
32
|
+
rca?: TfaRca;
|
|
33
|
+
/** Present on BLOCKED turns: why TFA cannot proceed. */
|
|
34
|
+
reason?: string;
|
|
35
|
+
/** Present on BLOCKED turns: the asks that went unmet. */
|
|
36
|
+
unmetAsks?: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface TfaRcaGlimpse {
|
|
39
|
+
/** Truncated to `RCA_GLIMPSE_ROOT_CAUSE_MAX` chars. */
|
|
40
|
+
root_cause?: string;
|
|
41
|
+
failure_type?: string;
|
|
42
|
+
related_prs?: unknown[];
|
|
43
|
+
}
|
|
44
|
+
export interface TfaRcaTurnResult {
|
|
45
|
+
status: TfaStatus | typeof PENDING_STATUS;
|
|
46
|
+
confidence?: Confidence;
|
|
47
|
+
threadId?: string;
|
|
48
|
+
/** Present on PENDING turns: resume via the tool's `turnId` arg. */
|
|
49
|
+
turnId?: string;
|
|
50
|
+
questions?: string[];
|
|
51
|
+
asks?: TfaAsk[];
|
|
52
|
+
suggestions?: string[];
|
|
53
|
+
hypotheses?: string[];
|
|
54
|
+
/** Present on RESOLVED turns: trimmed root-cause glimpse. */
|
|
55
|
+
glimpse?: TfaRcaGlimpse;
|
|
56
|
+
rca?: unknown;
|
|
57
|
+
/** Present on RESOLVED turns: where the full RCA report lives. */
|
|
58
|
+
viewRca?: string;
|
|
59
|
+
reason?: string;
|
|
60
|
+
unmetAsks?: string[];
|
|
61
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Collaboration status emitted by the TFA agent for one RCA turn.
|
|
2
|
+
export var TfaStatus;
|
|
3
|
+
(function (TfaStatus) {
|
|
4
|
+
TfaStatus["NEEDS_INFO"] = "NEEDS_INFO";
|
|
5
|
+
TfaStatus["RESOLVED"] = "RESOLVED";
|
|
6
|
+
TfaStatus["BLOCKED"] = "BLOCKED";
|
|
7
|
+
})(TfaStatus || (TfaStatus = {}));
|
|
8
|
+
// Soft, tool-emitted status when an in-call poll exceeds its wall-clock cap.
|
|
9
|
+
export const PENDING_STATUS = "PENDING";
|