@super-one/cli 0.57.5-alpha → 0.58.0-alpha

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/MANIFEST.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.57.5-alpha",
3
+ "version": "0.58.0-alpha",
4
4
  "kind": "npm",
5
5
  "minNodeMajor": 20,
6
- "builtAt": "2026-08-26T08:31:28.203Z"
6
+ "builtAt": "2026-08-27T12:23:20.692Z"
7
7
  }
package/lib/cli.mjs CHANGED
@@ -1759,6 +1759,55 @@ If the tool returns an error containing "user_locked", the user has manually nam
1759
1759
  "additionalProperties": false
1760
1760
  }
1761
1761
  },
1762
+ {
1763
+ "name": "browser_tools_list",
1764
+ "description": "List WebMCP tools registered by the current secure page. Use this to discover page-provided actions and their input schemas, then call browser_tools_call with a returned name.",
1765
+ "inputSchema": {
1766
+ "type": "object",
1767
+ "properties": {
1768
+ "tab": {
1769
+ "description": "Browser view id. Omit to target the focused browser view (errors if multiple are open).",
1770
+ "type": "string"
1771
+ }
1772
+ },
1773
+ "additionalProperties": false
1774
+ }
1775
+ },
1776
+ {
1777
+ "name": "browser_tools_call",
1778
+ "description": "Call one WebMCP tool registered by the current secure page. Use browser_tools_list first to get the tool name and input schema. The page is untrusted and the user may need to approve the call.",
1779
+ "inputSchema": {
1780
+ "type": "object",
1781
+ "properties": {
1782
+ "tab": {
1783
+ "description": "Browser view id. Omit to target the focused browser view (errors if multiple are open).",
1784
+ "type": "string"
1785
+ },
1786
+ "description": {
1787
+ "description": "A short, human-friendly explanation of what this page tool call accomplishes, phrased for the end user watching (e.g. 'Add the shirt to the cart', 'Submit the quote request'). Shown in the UI next to the tool name. Write it in the conversation's language.",
1788
+ "type": "string"
1789
+ },
1790
+ "name": {
1791
+ "type": "string",
1792
+ "description": "Tool name from browser_tools_list."
1793
+ },
1794
+ "input": {
1795
+ "default": {},
1796
+ "description": "Arguments; validated against the page-declared inputSchema at dispatch time.",
1797
+ "type": "object",
1798
+ "propertyNames": {
1799
+ "type": "string"
1800
+ },
1801
+ "additionalProperties": {}
1802
+ }
1803
+ },
1804
+ "required": [
1805
+ "name",
1806
+ "input"
1807
+ ],
1808
+ "additionalProperties": false
1809
+ }
1810
+ },
1762
1811
  {
1763
1812
  "name": "browser_snapshot",
1764
1813
  "description": "Inspect the current browser page. Pick which data sections to return via `include`: 'meta' (url/title/loading), 'elements' (flat list of top interactive elements + CSS selectors + total count), 'tree' (hierarchical accessibility tree of landmarks/headings/interactive nodes \u2014 use when you need page STRUCTURE and nesting, not just a flat list), 'text' (truncated visible text), 'console' (recent console entries, filterable). Default include is ['meta','elements','console'] (lean, warning+error console only). Fetch just logs with include:['console'] \u2014 that skips the DOM scan entirely. Call this first to orient. The result is TOON, not JSON: arrays render as a header row `name[N]{col,col}:` followed by one indented CSV-style row per item.",
@@ -3911,7 +3960,8 @@ var init_host_action_browser_catalog = __esm({
3911
3960
  "browser_list_downloads",
3912
3961
  "browser_network_body",
3913
3962
  "browser_network_wait",
3914
- "browser_action_list"
3963
+ "browser_action_list",
3964
+ "browser_tools_list"
3915
3965
  ]);
3916
3966
  BROWSER_ACT_PREFIX = "browser_";
3917
3967
  COMPUTER_PREFIX = "computer_";
@@ -22427,7 +22477,10 @@ function isStaticHostOwnedSuperoneToolQualified(qualifiedName) {
22427
22477
  const bare = qualifiedName.slice(MCP_SUPERONE_TOOL_PREFIX.length);
22428
22478
  return isStaticHostOwnedSuperoneBareName(bare);
22429
22479
  }
22430
- var MCP_SUPERONE_TOOL_PREFIX, BROWSER_PRIMITIVE_TOOL_NAMES, BROWSER_ACTION_TOOL_NAMES, BROWSER_LEGACY_TOOL_NAMES, BROWSER_COMPACT_TOOL_NAMES, BROWSER_TOOL_NAMES, DEVICE_AGENT_TOOL_NAMES, BUILT_IN_SUPERONE_TOOL_NAMES, MOBILE_SHARE_FILE_TOOL_NAME, MINIAPP_LIST_BARE_NAME, MINIAPP_CALL_BARE_NAME, STATIC_HOST_OWNED_SUPERONE_QUALIFIED_TOOL_NAMES;
22480
+ function isNeverAutoAllowSuperoneBareName(bare) {
22481
+ return NEVER_AUTO_ALLOW_SUPERONE_BARE_NAMES.includes(bare);
22482
+ }
22483
+ var MCP_SUPERONE_TOOL_PREFIX, BROWSER_PRIMITIVE_TOOL_NAMES, BROWSER_ACTION_TOOL_NAMES, BROWSER_LEGACY_TOOL_NAMES, BROWSER_COMPACT_TOOL_NAMES, BROWSER_TOOL_NAMES, DEVICE_AGENT_TOOL_NAMES, BUILT_IN_SUPERONE_TOOL_NAMES, MOBILE_SHARE_FILE_TOOL_NAME, MINIAPP_LIST_BARE_NAME, MINIAPP_CALL_BARE_NAME, NEVER_AUTO_ALLOW_SUPERONE_BARE_NAMES, STATIC_HOST_OWNED_SUPERONE_QUALIFIED_TOOL_NAMES;
22431
22484
  var init_superone_host_owned_tools = __esm({
22432
22485
  "../../packages/shared/src/superone-host-owned-tools.ts"() {
22433
22486
  "use strict";
@@ -22460,7 +22513,9 @@ var init_superone_host_owned_tools = __esm({
22460
22513
  "browser_list_downloads",
22461
22514
  "browser_emulate",
22462
22515
  "browser_mock",
22463
- "browser_perf_measure"
22516
+ "browser_perf_measure",
22517
+ "browser_tools_list",
22518
+ "browser_tools_call"
22464
22519
  ];
22465
22520
  BROWSER_ACTION_TOOL_NAMES = [
22466
22521
  "browser_action_list",
@@ -22480,7 +22535,9 @@ var init_superone_host_owned_tools = __esm({
22480
22535
  "browser_evaluate",
22481
22536
  "browser_network",
22482
22537
  "browser_perf",
22483
- "browser_action"
22538
+ "browser_action",
22539
+ "browser_tools_list",
22540
+ "browser_tools_call"
22484
22541
  ];
22485
22542
  BROWSER_TOOL_NAMES = [
22486
22543
  ...BROWSER_LEGACY_TOOL_NAMES,
@@ -22532,12 +22589,13 @@ var init_superone_host_owned_tools = __esm({
22532
22589
  MOBILE_SHARE_FILE_TOOL_NAME = "mobile_share_file";
22533
22590
  MINIAPP_LIST_BARE_NAME = "miniapp_list";
22534
22591
  MINIAPP_CALL_BARE_NAME = "miniapp_call";
22592
+ NEVER_AUTO_ALLOW_SUPERONE_BARE_NAMES = ["browser_tools_call"];
22535
22593
  STATIC_HOST_OWNED_SUPERONE_QUALIFIED_TOOL_NAMES = [
22536
22594
  ...BUILT_IN_SUPERONE_TOOL_NAMES,
22537
22595
  MOBILE_SHARE_FILE_TOOL_NAME,
22538
22596
  MINIAPP_LIST_BARE_NAME,
22539
22597
  MINIAPP_CALL_BARE_NAME
22540
- ].map((bare) => `${MCP_SUPERONE_TOOL_PREFIX}${bare}`);
22598
+ ].filter((bare) => !isNeverAutoAllowSuperoneBareName(bare)).map((bare) => `${MCP_SUPERONE_TOOL_PREFIX}${bare}`);
22541
22599
  }
22542
22600
  });
22543
22601
 
@@ -24801,6 +24859,7 @@ function createNodeSessionEventMapper(ctx) {
24801
24859
  const toolName = asString2(payload.toolName) ?? "tool";
24802
24860
  const requestKind = asString2(payload.requestKind);
24803
24861
  const sessionAgentsConfirm = payload.sessionAgentsConfirm && typeof payload.sessionAgentsConfirm === "object" ? payload.sessionAgentsConfirm : void 0;
24862
+ const webmcpTrustConfirm = payload.webmcpTrustConfirm && typeof payload.webmcpTrustConfirm === "object" ? payload.webmcpTrustConfirm : void 0;
24804
24863
  const request = {
24805
24864
  requestId: interactionId,
24806
24865
  toolName,
@@ -24812,7 +24871,8 @@ function createNodeSessionEventMapper(ctx) {
24812
24871
  } : {},
24813
24872
  ...asString2(payload.serverName) ? { serverName: asString2(payload.serverName) } : {},
24814
24873
  ...asString2(payload.message) ? { message: asString2(payload.message) } : {},
24815
- ...sessionAgentsConfirm ? { sessionAgentsConfirm } : {}
24874
+ ...sessionAgentsConfirm ? { sessionAgentsConfirm } : {},
24875
+ ...webmcpTrustConfirm ? { webmcpTrustConfirm } : {}
24816
24876
  };
24817
24877
  push({ type: "permission_request", request });
24818
24878
  break;
@@ -70861,8 +70921,8 @@ import { fileURLToPath } from "node:url";
70861
70921
  function resolveCliReleaseVersion() {
70862
70922
  const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
70863
70923
  if (fromEnv) return fromEnv;
70864
- if ("0.57.5-alpha".trim()) {
70865
- return "0.57.5-alpha".trim();
70924
+ if ("0.58.0-alpha".trim()) {
70925
+ return "0.58.0-alpha".trim();
70866
70926
  }
70867
70927
  const fromDist = readDistManifestVersion();
70868
70928
  if (fromDist) return fromDist;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.57.5-alpha",
3
+ "version": "0.58.0-alpha",
4
4
  "description": "SuperOne headless node CLI — remote execution environment (RPC, workspaces, sessions).",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",