@browserstack/mcp-server 2.2.3-beta.1 → 2.2.4-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.
|
@@ -406,7 +406,7 @@ export function addAskBrowserStackAITool(server, deps, config) {
|
|
|
406
406
|
tools.askBrowserStackAI = server.tool("askBrowserStackAI", DESCRIPTION, {
|
|
407
407
|
product: z
|
|
408
408
|
.enum(PRODUCTS)
|
|
409
|
-
.describe("Which product to work in: tm (Test Management), " +
|
|
409
|
+
.describe("Which product to work in: tm (Test Management), a11y (Accessibility), " +
|
|
410
410
|
"tra (Test Reporting & Analytics)."),
|
|
411
411
|
// OPTIONAL, because a resume does not carry one. `next_step` tells the model to
|
|
412
412
|
// call again "with exactly these params" — `product`, `run_id`, `perm_id`,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* different repo, at the same time. A field renamed here to read better is a field the
|
|
7
7
|
* other half will never send. Nothing here changes without changing that document first.
|
|
8
8
|
*/
|
|
9
|
-
export declare const PRODUCTS: readonly ["tm", "tra"];
|
|
9
|
+
export declare const PRODUCTS: readonly ["tm", "a11y", "tra"];
|
|
10
10
|
export type Product = (typeof PRODUCTS)[number];
|
|
11
11
|
/** CONTRACT §2 — what Atlas emits on the run's stream when its gate needs a human. */
|
|
12
12
|
export interface PermissionAsk {
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
* different repo, at the same time. A field renamed here to read better is a field the
|
|
7
7
|
* other half will never send. Nothing here changes without changing that document first.
|
|
8
8
|
*/
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
export const PRODUCTS = ["tm", "tra"];
|
|
9
|
+
// Dropping a product means this list, the `product` describe text in register.ts, and any
|
|
10
|
+
// handoff in tool-handoff.ts that sends the model here with that product — the two a11y ones
|
|
11
|
+
// do — or those handoffs become instructions to make a call the schema rejects.
|
|
12
|
+
export const PRODUCTS = ["tm", "a11y", "tra"];
|
|
14
13
|
export const ASK_STATUSES = [
|
|
15
14
|
"ok",
|
|
16
15
|
"blocked",
|
|
@@ -72,10 +72,11 @@ export const NEEDS_SESSION_ID = " Requires a session id. listSessions lists them
|
|
|
72
72
|
"build either, getBuildId or listBuildId resolves one from a project and build name.";
|
|
73
73
|
/** A completed scan's ids come from startAccessibilityScan, or from the agent. */
|
|
74
74
|
export const NEEDS_A11Y_SCAN_ID = " Requires the ids of a completed scan, which are returned by startAccessibilityScan. " +
|
|
75
|
-
"No tool here lists past scans
|
|
76
|
-
"than guessing.
|
|
75
|
+
"No tool here lists past scans; for one run earlier, call askBrowserStackAI with product " +
|
|
76
|
+
'"a11y" to locate it, or start a new scan rather than guessing.';
|
|
77
77
|
/** Auth-config ids are not listable by any tool here. */
|
|
78
78
|
export const NEEDS_A11Y_CONFIG_ID = " Requires the numeric id returned by createAccessibilityAuthConfig. No tool here lists " +
|
|
79
|
-
"existing configurations, so if you do not have the id,
|
|
79
|
+
"existing configurations, so if you do not have the id, call askBrowserStackAI with " +
|
|
80
|
+
'product "a11y" to find it, or create one rather than guessing.';
|
|
80
81
|
/** Test ids come from listTestIds, which itself needs a build id. */
|
|
81
82
|
export const NEEDS_TEST_IDS = needsIdFrom("test ids", "listTestIds");
|