@testver/testver 1.3.1 → 1.3.2

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/dist/index.js CHANGED
@@ -36810,6 +36810,38 @@ ${modified.map((f) => ` - ${f}`).join("\n")}`;
36810
36810
  }
36811
36811
  });
36812
36812
 
36813
+ // src/browser/secret-field.ts
36814
+ function secretKindFromHints(h) {
36815
+ const type = (h.type || "").toLowerCase();
36816
+ const ac = (h.autocomplete || "").toLowerCase();
36817
+ if (type === "password" || /\b(current|new)-password\b/.test(ac)) return "password";
36818
+ if (ac === "one-time-code") return "one-time code";
36819
+ const text3 = h.text || "";
36820
+ if (OTP_HINT.test(text3)) return "one-time code";
36821
+ if (PASSWORD_HINT.test(text3)) return "password";
36822
+ return null;
36823
+ }
36824
+ function secretKindFromSelector(selector) {
36825
+ if (!selector) return null;
36826
+ if (/type\s*=\s*["']?password/i.test(selector)) return "password";
36827
+ return secretKindFromHints({ text: selector.replace(/[[\]"'=#.:()-]/g, " ") });
36828
+ }
36829
+ function typedTextForDisplay(args2) {
36830
+ if (typeof args2.text !== "string") return void 0;
36831
+ if (args2.secret === true) return HIDDEN_VALUE;
36832
+ if (secretKindFromSelector(typeof args2.selector === "string" ? args2.selector : void 0)) return HIDDEN_VALUE;
36833
+ return args2.text;
36834
+ }
36835
+ var OTP_HINT, PASSWORD_HINT, HIDDEN_VALUE;
36836
+ var init_secret_field = __esm({
36837
+ "src/browser/secret-field.ts"() {
36838
+ "use strict";
36839
+ OTP_HINT = /\b(otp|totp|2fa|mfa|one[\s_-]?time|verification[\s_-]?code|auth(entication)?[\s_-]?code|security[\s_-]?code)\b/i;
36840
+ PASSWORD_HINT = /password|passwd|passcode|\bpwd\b|\bpass\b/i;
36841
+ HIDDEN_VALUE = "\u2022\u2022\u2022\u2022\u2022\u2022 (hidden)";
36842
+ }
36843
+ });
36844
+
36813
36845
  // src/core/tools/browser.ts
36814
36846
  function resolveTarget(manager, args2) {
36815
36847
  const ref = typeof args2.ref === "string" && args2.ref.trim() ? args2.ref.trim() : void 0;
@@ -36955,6 +36987,7 @@ var browserLaunchTool, browserNavigateTool, browserClickTool, browserTypeTool, b
36955
36987
  var init_browser = __esm({
36956
36988
  "src/core/tools/browser.ts"() {
36957
36989
  "use strict";
36990
+ init_secret_field();
36958
36991
  browserLaunchTool = {
36959
36992
  category: "browser",
36960
36993
  definition: {
@@ -37125,14 +37158,15 @@ Page title: ${title}`;
37125
37158
  category: "browser",
37126
37159
  definition: {
37127
37160
  name: "browser_type",
37128
- description: "Type text into an input field. Prefer passing `ref` from the latest browser_snapshot \u2014 fall back to `selector` only when needed.",
37161
+ description: 'Type text into an input field. Prefer passing `ref` from the latest browser_snapshot \u2014 fall back to `selector` only when needed. **Passwords and one-time codes:** to sign someone in while exploring, hand the browser over with browser_auth_state action "await_login" and let them type it. Type a password or code yourself only when the user gave it to you for this sign-in \u2014 never one you found in project files, test helpers, comments or fixtures. Set `secret: true` when you do, and never repeat a password, code or token in your reply, in a file, or in test code (tests read secrets from environment variables).',
37129
37162
  parameters: {
37130
37163
  type: "object",
37131
37164
  properties: {
37132
37165
  ref: { type: "string", description: 'Element ref ID from the latest browser_snapshot (e.g. "e3"). Preferred.' },
37133
37166
  selector: { type: "string", description: "CSS selector for the input element. Use only when no ref is available." },
37134
37167
  text: { type: "string", description: "Text to type" },
37135
- clear: { type: "boolean", description: "Clear the field before typing (default: true)" }
37168
+ clear: { type: "boolean", description: "Clear the field before typing (default: true)" },
37169
+ secret: { type: "boolean", description: "true when the text is a password, one-time code or other secret. The value is then never shown in the chat, the result or the logs. Password and code fields are detected too." }
37136
37170
  },
37137
37171
  required: ["text"]
37138
37172
  }
@@ -37141,6 +37175,7 @@ Page title: ${title}`;
37141
37175
  const manager = ctx._browserManager;
37142
37176
  if (!manager) throw new Error("No browser manager available");
37143
37177
  const { selector, displayTarget } = resolveTarget(manager, args2);
37178
+ const secretKind = (typeof manager.secretFieldKind === "function" ? await manager.secretFieldKind(selector).catch(() => null) : null) ?? secretKindFromSelector(selector) ?? (args2.secret === true ? "password" : null);
37144
37179
  try {
37145
37180
  const result = await manager.type(
37146
37181
  selector,
@@ -37150,12 +37185,15 @@ Page title: ${title}`;
37150
37185
  if (!result.success) throw new Error(result.error || "Type failed");
37151
37186
  const url = await manager.getUrl().catch(() => "unknown");
37152
37187
  const title = await manager.getTitle().catch(() => "unknown");
37153
- let msg = `Typed "${args2.text}" into ${displayTarget}
37188
+ let msg = secretKind ? `Typed the ${secretKind} into ${displayTarget} (value hidden)
37189
+ Current URL: ${url}
37190
+ Page title: ${title}
37191
+ \u26A0 This is a ${secretKind} field. Never repeat the value in your reply, in a file, or in test code \u2014 tests read it from an environment variable.` : `Typed "${args2.text}" into ${displayTarget}
37154
37192
  Current URL: ${url}
37155
37193
  Page title: ${title}`;
37156
37194
  if (result.note) msg += `
37157
37195
  \u26A0 ${result.note}`;
37158
- const typedPreview = String(args2.text || "").slice(0, 40);
37196
+ const typedPreview = secretKind ? HIDDEN_VALUE : String(args2.text || "").slice(0, 40);
37159
37197
  recordStep(ctx, { tool: "browser_type", target: displayTarget, outcome: "ok", details: `value="${typedPreview}"` }, url);
37160
37198
  return await appendFreshSnapshot(manager, msg);
37161
37199
  } catch (err5) {
@@ -37744,7 +37782,7 @@ ${lines.join("\n")}`;
37744
37782
  category: "browser",
37745
37783
  definition: {
37746
37784
  name: "browser_auth_state",
37747
- description: 'Save, list, or remove a logged-in browser session so later runs do not need a human to log in again. **To get a human to log in, navigate to the login page and then call action "await_login"** \u2014 that call PAUSES you and shows the user a "sign in, then click Continue" prompt; it returns only once they have. Do NOT ask them in prose and end your turn, and never ask for a password in chat. Use "check" FIRST, so you never ask for a login you already hold. To REUSE a saved session, pass `authRole` to browser_launch \u2014 a session can only be restored when the browser starts, never injected into a running one. "save" captures the current session directly, for when the page is already authenticated. The saved state holds live session cookies and is encrypted at rest; it is never shown to you or the user.',
37785
+ description: 'Save, list, or remove a logged-in browser session so later runs do not need a human to log in again. **To get a human to log in, navigate to the login page and then call action "await_login"** \u2014 that call PAUSES you and shows the user a "sign in, then click Continue" prompt; it returns only once they have. Do NOT ask them in prose and end your turn, and never ask for a password in chat. This holds for every later sign-in in the run too, such as re-checking a login flow before writing tests: never type a role\'s password or one-time code yourself because you found it in the project (test helpers, comments, fixtures), and never repeat one in your reply or in a file. Use "check" FIRST, so you never ask for a login you already hold. To REUSE a saved session, pass `authRole` to browser_launch \u2014 a session can only be restored when the browser starts, never injected into a running one. "save" captures the current session directly, for when the page is already authenticated. The saved state holds live session cookies and is encrypted at rest; it is never shown to you or the user.',
37748
37786
  parameters: {
37749
37787
  type: "object",
37750
37788
  properties: {
@@ -72463,6 +72501,18 @@ var init_knowledge_retrieval = __esm({
72463
72501
  // src/core/tools/testver.ts
72464
72502
  import { existsSync as existsSync59, readFileSync as readFileSync52 } from "fs";
72465
72503
  import { isAbsolute as isAbsolute18, join as join60 } from "path";
72504
+ function findMappedTestCase(scriptPath, testName) {
72505
+ if (!tmStore || !scriptPath) return null;
72506
+ const norm8 = (p2) => p2.replace(/\\/g, "/").replace(/^\.\//, "").trim().toLowerCase();
72507
+ const want = norm8(scriptPath);
72508
+ const name2 = testName.trim().toLowerCase();
72509
+ try {
72510
+ const hits = tmStore.listScriptMappings().filter((m) => (norm8(m.scriptPath) === want || norm8(m.scriptPath).endsWith("/" + want) || want.endsWith("/" + norm8(m.scriptPath))) && (!name2 || (m.testName || "").trim().toLowerCase() === name2));
72511
+ return hits[0]?.testCaseId ?? null;
72512
+ } catch {
72513
+ return null;
72514
+ }
72515
+ }
72466
72516
  function initTestverTool(store4) {
72467
72517
  tmStore = store4;
72468
72518
  }
@@ -72989,7 +73039,7 @@ var init_testver2 = __esm({
72989
73039
  testverTool = {
72990
73040
  definition: {
72991
73041
  name: "testver",
72992
- description: 'Access Testver platform data and operations. Query test cases, defects, test plans, execution results, coverage stats, analytics, sources, and more. Actions: query_test_cases, get_test_case, create_test_case, update_test_case, query_defects, create_defect, update_defect, query_plans, get_plan_details, get_cycle_results, get_execution_history, get_coverage_stats, get_health_score, get_analytics, get_automation_stats, dashboard, query_sources, get_source_content, add_source, search_knowledge, list_folders, list_tags, query_requirements, list_connectors, list_quality_gates. **After you write an automation test and it PASSES, record it here**: create_test_case with the steps, `automationStatus: "automated"`, `scriptPath` (+ `testName`, `framework`) and `requirementId` when one applies. A passing test with no test case is invisible to Test Management, coverage, and reporting. Create it after the test is green, never before.',
73042
+ description: 'Access Testver platform data and operations. Query test cases, defects, test plans, execution results, coverage stats, analytics, sources, and more. Actions: query_test_cases, get_test_case, create_test_case, update_test_case, query_defects, create_defect, update_defect, query_plans, get_plan_details, get_cycle_results, get_execution_history, get_coverage_stats, get_health_score, get_analytics, get_automation_stats, dashboard, query_sources, get_source_content, add_source, search_knowledge, list_folders, list_tags, query_requirements, list_connectors, list_quality_gates. **After you write an automation test and it PASSES, record it here**: create_test_case with the steps, `automationStatus: "automated"`, `scriptPath` (+ `testName`, `framework`) and `requirementId` when one applies. A passing test with no test case is invisible to Test Management, coverage, and reporting. Create it after the test is green, never before. **create_defect only when the user asked you to file that defect.** Findings you noticed yourself \u2014 an exploration run, a failing test, a document mismatch \u2014 are proposals: report them and let the user promote the ones they accept.',
72993
73043
  parameters: {
72994
73044
  type: "object",
72995
73045
  properties: {
@@ -77248,7 +77298,7 @@ function findPrivilegeInversions(access) {
77248
77298
  }
77249
77299
  return out;
77250
77300
  }
77251
- function renderExploreReport(runDir, runId, projectPath2 = runDir) {
77301
+ function renderExploreReport(runDir, runId, projectPath2 = runDir, lookupCase = () => null) {
77252
77302
  const plan = readJson(join65(runDir, "plan.json")) ?? {};
77253
77303
  const tests = asArray(readJson(join65(runDir, "tests.json")), "tests");
77254
77304
  const queue2 = asArray(readJson(join65(runDir, "automation-queue.json")), "queue");
@@ -77291,9 +77341,14 @@ Target: ${target2}${environment ? ` (${environment})` : ""} \xB7 Run: \`${runId}
77291
77341
  const header2 = withRequirements ? "| # | Scenario | Test case | Spec \xB7 test | Verified | Status | Requirement |" : "| # | Scenario | Test case | Spec \xB7 test | Verified | Status |";
77292
77342
  const rule = withRequirements ? "|---|----------|-----------|-------------|----------|--------|-------------|" : "|---|----------|-----------|-------------|----------|--------|";
77293
77343
  out.push(header2, rule);
77344
+ const notes = [];
77294
77345
  tests.forEach((t, i) => {
77295
77346
  const spec = t.specPath ? `\`${cell(t.specPath)}\`${t.testName ? ` \xB7 "${cell(t.testName)}"` : ""}` : "\u2014";
77296
- const tc = t.testCaseId ? cell(t.testCaseId) : `\u2014 ${t.note ? `(${cell(t.note)})` : "(no test case created)"}`;
77347
+ const recordedId = String(t.testCaseId ?? "").trim();
77348
+ const id = TC_ID.test(recordedId) ? recordedId : t.specPath ? lookupCase(t.specPath, t.testName ?? "") : null;
77349
+ const note2 = [t.note, recordedId && !TC_ID.test(recordedId) ? recordedId : ""].map((x) => String(x ?? "").trim()).filter(Boolean).join(" ");
77350
+ if (note2) notes.push(`${i + 1}. ${cell(note2)}`);
77351
+ const tc = id ? cell(id) : "\u2014 (no test case)";
77297
77352
  const row = [
77298
77353
  String(i + 1),
77299
77354
  cell(t.scenario),
@@ -77305,6 +77360,10 @@ Target: ${target2}${environment ? ` (${environment})` : ""} \xB7 Run: \`${runId}
77305
77360
  if (withRequirements) row.push(cell(t.requirementId));
77306
77361
  out.push(`| ${row.join(" | ")} |`);
77307
77362
  });
77363
+ if (notes.length > 0) {
77364
+ out.push("");
77365
+ out.push(`**Notes** \u2014 ${notes.join(" \xB7 ")}`);
77366
+ }
77308
77367
  }
77309
77368
  out.push("");
77310
77369
  const done2 = new Set(
@@ -77407,10 +77466,11 @@ Target: ${target2}${environment ? ` (${environment})` : ""} \xB7 Run: \`${runId}
77407
77466
  out.push("");
77408
77467
  return { markdown: out.join("\n"), testCount: tests.length, findingCount: findings.length };
77409
77468
  }
77410
- var REACH_CELL, SEVERITY_ORDER, NAV_CALL, exploreReportTool, exploreReportTools;
77469
+ var REACH_CELL, SEVERITY_ORDER, NAV_CALL, TC_ID, exploreReportTool, exploreReportTools;
77411
77470
  var init_explore_report = __esm({
77412
77471
  "src/core/tools/explore-report.ts"() {
77413
77472
  "use strict";
77473
+ init_testver2();
77414
77474
  REACH_CELL = {
77415
77475
  ok: "\u2705",
77416
77476
  blocked: "\u{1F6AB}",
@@ -77419,11 +77479,12 @@ var init_explore_report = __esm({
77419
77479
  };
77420
77480
  SEVERITY_ORDER = ["blocker", "critical", "major", "access", "minor", "trivial", "drift"];
77421
77481
  NAV_CALL = /\b(?:page\.goto|cy\.visit|driver\.get|browser\.url|page\.navigate)\s*\(/g;
77482
+ TC_ID = /^TC-\d+$/i;
77422
77483
  exploreReportTool = {
77423
77484
  category: "testver",
77424
77485
  definition: {
77425
77486
  name: "explore_report",
77426
- description: 'Render the final report for an Explore & Automate run, as tables, from the run artifacts you recorded. **Call this at the END of every exploration run instead of writing the summary yourself** \u2014 it builds the automated-tests table (scenario, test case id, spec \xB7 test, verified count, status), the findings table (deduplicated, worst first) and the coverage table from `tests.json` / `findings.json` / `coverage.json`, and writes `report.md` into the run folder. For a MULTI-ROLE run it also renders the access matrix from `access.json` (`{ roles: [least\u2026most privileged], entries: [{ template, title, byRole: { role: "ok"|"blocked"|"error" } }] }`) and derives privilege inversions \u2014 pages a lower-privileged role can reach and a higher one cannot \u2014 into the findings table. Record the matrix as you walk each role; the comparison is arithmetic and is done here, not by you. It also reads `automation-queue.json` (`[{ id, scenario, pageId, priority, status }]`) and lists any journey still `pending` \u2014 every explored journey belongs in that queue, and priority sets the order you work in, never which journeys get a test. If the pending section appears, the run is unfinished: keep working the queue rather than asking the user whether the remaining modules are wanted. Present what it returns to the user as-is, then add only what it cannot know: what you did not do and why. It reads recorded facts, so anything you did not write to those files will not appear \u2014 record each test as you finish it rather than reconstructing the run from memory at the end.',
77487
+ description: 'Render the final report for an Explore & Automate run, as tables, from the run artifacts you recorded. **Call this at the END of every exploration run instead of writing the summary yourself** \u2014 it builds the automated-tests table (scenario, test case id, spec \xB7 test, verified count, status), the findings table (deduplicated, worst first) and the coverage table from `tests.json` / `findings.json` / `coverage.json`, and writes `report.md` into the run folder. For a MULTI-ROLE run it also renders the access matrix from `access.json` (`{ roles: [least\u2026most privileged], entries: [{ template, title, byRole: { role: "ok"|"blocked"|"error" } }] }`) and derives privilege inversions \u2014 pages a lower-privileged role can reach and a higher one cannot \u2014 into the findings table. Record the matrix as you walk each role; the comparison is arithmetic and is done here, not by you. A role that is turned away \u2014 an "Access denied" / 403 page, or a redirect to sign-in \u2014 is `blocked`; `error` is only for a page that broke (5xx, crash, blank). `findings.json` is `{ findings: [{ title, severity, page, count, evidence?, drift? }] }`: a mismatch between a document the user gave you and the app is `drift: true` \u2014 possible spec drift, not a confirmed defect. Findings are proposals: never file them as defects yourself (no `create_defect`) \u2014 the report tells the user to promote the ones they accept. It also reads `automation-queue.json` (`[{ id, scenario, pageId, priority, status }]`) and lists any journey still `pending` \u2014 every explored journey belongs in that queue, and priority sets the order you work in, never which journeys get a test. If the pending section appears, the run is unfinished: keep working the queue rather than asking the user whether the remaining modules are wanted. Present what it returns to the user as-is, then add only what it cannot know: what you did not do and why. It reads recorded facts, so anything you did not write to those files will not appear \u2014 record each test as you finish it rather than reconstructing the run from memory at the end.',
77427
77488
  parameters: {
77428
77489
  type: "object",
77429
77490
  properties: {
@@ -77451,7 +77512,7 @@ var init_explore_report = __esm({
77451
77512
  if (!existsSync64(join65(runDir, "tests.json"))) {
77452
77513
  return `Run "${runId}" has no tests.json, so there is nothing to tabulate. Write one entry per test as you finish it \u2014 { scenario, testCaseId, specPath, testName, runs: { passed, total }, status, requirementId? } \u2014 then call this again. Do NOT hand-write the report instead.`;
77453
77514
  }
77454
- const { markdown, testCount, findingCount } = renderExploreReport(runDir, runId, projectPath2);
77515
+ const { markdown, testCount, findingCount } = renderExploreReport(runDir, runId, projectPath2, findMappedTestCase);
77455
77516
  let wrote = "";
77456
77517
  if (args2.write !== false) {
77457
77518
  try {
@@ -83059,6 +83120,7 @@ Then echo back the plan as one block and wait for a single yes. **Do not open a
83059
83120
  - Read what it returns. It refuses to save a login that did not take (still on a login URL, or no cookies). If it refuses, look at the page and tell the user what you see \u2014 never continue as if the role were authenticated.
83060
83121
  - **Guest run:** proceed, and treat what is reachable without logging in as a finding in its own right.
83061
83122
  - Credentials for GENERATED TESTS come from environment variable names the user supplies \u2014 never inline a secret in code.
83123
+ - **The user types every password and one-time code.** Never type one yourself because you found it in the project (test helpers, comments, fixtures, seed data) \u2014 not at the start, not later to re-check a login flow. Never repeat a credential in chat, plan.json, findings, the report or a code comment.
83062
83124
 
83063
83125
  ## 4. Explore loop
83064
83126
  Per page: arrive \u2192 read the snapshot the action already returned \u2192 \`browser_page_issues\` \u2192 append \`pages/<id>.json\` \u2192 enqueue in-scope links \u2192 checkpoint \`frontier.json\`.
@@ -96385,6 +96447,9 @@ function formatToolArgs(toolName, args2) {
96385
96447
  if (toolName === "create_directory") {
96386
96448
  return String(args2.path || "");
96387
96449
  }
96450
+ if (toolName === "browser_type") {
96451
+ return String(typedTextForDisplay(args2) || args2.selector || "");
96452
+ }
96388
96453
  if (toolName.startsWith("browser_")) {
96389
96454
  return String(args2.url || args2.selector || args2.text || "");
96390
96455
  }
@@ -97063,6 +97128,7 @@ var init_shared_streaming = __esm({
97063
97128
  init_tool_action_kinds();
97064
97129
  init_whole_suite_guard();
97065
97130
  init_registry();
97131
+ init_secret_field();
97066
97132
  init_turn_changes();
97067
97133
  activeStreams = /* @__PURE__ */ new Map();
97068
97134
  pendingPermissions = /* @__PURE__ */ new Map();
@@ -98060,6 +98126,7 @@ var init_playwright_adapter = __esm({
98060
98126
  init_config2();
98061
98127
  init_utils();
98062
98128
  init_snapshot_script();
98129
+ init_secret_field();
98063
98130
  playwrightCore = null;
98064
98131
  loadPlaywright = () => playwrightCore ??= import("playwright-core");
98065
98132
  logger24 = createLogger("playwright");
@@ -98490,6 +98557,23 @@ URL: ${url}
98490
98557
  async type(selector, text3, clear = true) {
98491
98558
  return this.fill(selector, text3, clear);
98492
98559
  }
98560
+ /** A password or one-time-code field, read from the element itself (never throws). */
98561
+ async secretFieldKind(selector) {
98562
+ try {
98563
+ const hints = await this.getLocator(selector).first().evaluate((el) => {
98564
+ const e = el;
98565
+ const label4 = e.id ? document.querySelector(`label[for="${CSS.escape(e.id)}"]`)?.textContent || "" : "";
98566
+ return {
98567
+ type: e.getAttribute("type"),
98568
+ autocomplete: e.getAttribute("autocomplete"),
98569
+ text: [e.getAttribute("name"), e.id, e.getAttribute("aria-label"), e.getAttribute("placeholder"), label4, e.closest("label")?.textContent || ""].filter(Boolean).join(" ")
98570
+ };
98571
+ }, void 0, { timeout: 2e3 });
98572
+ return secretKindFromHints(hints);
98573
+ } catch {
98574
+ return null;
98575
+ }
98576
+ }
98493
98577
  async press(key2) {
98494
98578
  const start = Date.now();
98495
98579
  try {
@@ -99267,6 +99351,11 @@ var init_launcher = __esm({
99267
99351
  await this.ensureSession();
99268
99352
  return this.adapter.type(selector, text3, clear);
99269
99353
  }
99354
+ /** A password or one-time-code field? Adapters that cannot tell return null. */
99355
+ async secretFieldKind(selector) {
99356
+ if (!this.adapter?.secretFieldKind) return null;
99357
+ return this.adapter.secretFieldKind(selector).catch(() => null);
99358
+ }
99270
99359
  async press(key2) {
99271
99360
  await this.ensureSession();
99272
99361
  return this.adapter.press(key2);
@@ -126605,7 +126694,7 @@ async function streamBrowserWithToolEvents(orchestrator, browserManager, wss, pr
126605
126694
  x,
126606
126695
  y,
126607
126696
  selector: typeof args2.selector === "string" ? args2.selector : void 0,
126608
- text: typeof args2.text === "string" ? args2.text : void 0,
126697
+ text: typedTextForDisplay(args2),
126609
126698
  url: typeof args2.url === "string" ? args2.url : void 0
126610
126699
  });
126611
126700
  }
@@ -126754,6 +126843,9 @@ function formatToolArgs2(toolName, args2) {
126754
126843
  if (toolName === "create_directory") {
126755
126844
  return String(args2.path || "");
126756
126845
  }
126846
+ if (toolName === "browser_type") {
126847
+ return String(typedTextForDisplay(args2) || args2.selector || "");
126848
+ }
126757
126849
  if (toolName.startsWith("browser_")) {
126758
126850
  return String(args2.url || args2.selector || args2.text || args2.key || "");
126759
126851
  }
@@ -126829,6 +126921,7 @@ var init_api_browser = __esm({
126829
126921
  "use strict";
126830
126922
  init_whole_suite_guard();
126831
126923
  init_screencast_service();
126924
+ init_secret_field();
126832
126925
  pendingPermissions2 = /* @__PURE__ */ new Map();
126833
126926
  screencastServices = /* @__PURE__ */ new Map();
126834
126927
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testver/testver",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "AI-powered interactive CLI for test automation",
5
5
  "type": "module",
6
6
  "publishConfig": {