@roxybrowser/openapi 1.0.14-beta.0 → 1.0.14

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/lib/index.cjs CHANGED
@@ -1195,24 +1195,139 @@ var osversion_windows = [
1195
1195
  ];
1196
1196
  var osversion_macos = [
1197
1197
  {
1198
- label: "26",
1198
+ label: "15.3.2",
1199
1199
  type: "osVersion-macOS",
1200
- value: "26"
1200
+ value: "15.3.2"
1201
1201
  },
1202
1202
  {
1203
- label: "15",
1203
+ label: "15.3.1",
1204
1204
  type: "osVersion-macOS",
1205
- value: "15"
1205
+ value: "15.3.1"
1206
1206
  },
1207
1207
  {
1208
- label: "14",
1208
+ label: "15.3",
1209
1209
  type: "osVersion-macOS",
1210
- value: "14"
1210
+ value: "15.3"
1211
1211
  },
1212
1212
  {
1213
- label: "13",
1213
+ label: "15.2",
1214
1214
  type: "osVersion-macOS",
1215
- value: "13"
1215
+ value: "15.2"
1216
+ },
1217
+ {
1218
+ label: "15.1",
1219
+ type: "osVersion-macOS",
1220
+ value: "15.1"
1221
+ },
1222
+ {
1223
+ label: "15.0.1",
1224
+ type: "osVersion-macOS",
1225
+ value: "15.0.1"
1226
+ },
1227
+ {
1228
+ label: "15.0",
1229
+ type: "osVersion-macOS",
1230
+ value: "15.0"
1231
+ },
1232
+ {
1233
+ label: "14.7.4",
1234
+ type: "osVersion-macOS",
1235
+ value: "14.7.4"
1236
+ },
1237
+ {
1238
+ label: "14.7.3",
1239
+ type: "osVersion-macOS",
1240
+ value: "14.7.3"
1241
+ },
1242
+ {
1243
+ label: "14.7.2",
1244
+ type: "osVersion-macOS",
1245
+ value: "14.7.2"
1246
+ },
1247
+ {
1248
+ label: "14.7.1",
1249
+ type: "osVersion-macOS",
1250
+ value: "14.7.1"
1251
+ },
1252
+ {
1253
+ label: "14.7",
1254
+ type: "osVersion-macOS",
1255
+ value: "14.7"
1256
+ },
1257
+ {
1258
+ label: "14.6.1",
1259
+ type: "osVersion-macOS",
1260
+ value: "14.6.1"
1261
+ },
1262
+ {
1263
+ label: "14.6",
1264
+ type: "osVersion-macOS",
1265
+ value: "14.6"
1266
+ },
1267
+ {
1268
+ label: "14.5",
1269
+ type: "osVersion-macOS",
1270
+ value: "14.5"
1271
+ },
1272
+ {
1273
+ label: "14.4.1",
1274
+ type: "osVersion-macOS",
1275
+ value: "14.4.1"
1276
+ },
1277
+ {
1278
+ label: "14.4",
1279
+ type: "osVersion-macOS",
1280
+ value: "14.4"
1281
+ },
1282
+ {
1283
+ label: "14.3.1",
1284
+ type: "osVersion-macOS",
1285
+ value: "14.3.1"
1286
+ },
1287
+ {
1288
+ label: "14.3",
1289
+ type: "osVersion-macOS",
1290
+ value: "14.3"
1291
+ },
1292
+ {
1293
+ label: "14.2.1",
1294
+ type: "osVersion-macOS",
1295
+ value: "14.2.1"
1296
+ },
1297
+ {
1298
+ label: "14.2",
1299
+ type: "osVersion-macOS",
1300
+ value: "14.2"
1301
+ },
1302
+ {
1303
+ label: "14.1",
1304
+ type: "osVersion-macOS",
1305
+ value: "14.1"
1306
+ },
1307
+ {
1308
+ label: "13.7.4",
1309
+ type: "osVersion-macOS",
1310
+ value: "13.7.4"
1311
+ },
1312
+ {
1313
+ label: "13.7.3",
1314
+ type: "osVersion-macOS",
1315
+ value: "13.7.3"
1316
+ },
1317
+ {
1318
+ label: "13.7.2",
1319
+ type: "osVersion-macOS",
1320
+ value: "13.7.2"
1321
+ },
1322
+ {
1323
+ label: "13.7.1",
1324
+ type: "osVersion-macOS",
1325
+ value: "13.7.1"
1326
+ },
1327
+ {
1328
+ label: "13.7",
1329
+ type: "osVersion-macOS",
1330
+ value: "13.7"
1216
1331
  },
1217
1332
  {
1218
1333
  label: "ALL",
@@ -1228,11 +1343,6 @@ var osversion_linux = [
1228
1343
  }
1229
1344
  ];
1230
1345
  var osversion_android = [
1231
- {
1232
- label: "16",
1233
- type: "osVersion-Android",
1234
- value: "16"
1235
- },
1236
1346
  {
1237
1347
  label: "15",
1238
1348
  type: "osVersion-Android",
@@ -1271,64 +1381,221 @@ var osversion_android = [
1271
1381
  ];
1272
1382
  var osversion_ios = [
1273
1383
  {
1274
- label: "26",
1384
+ label: "18.2",
1275
1385
  type: "osVersion-IOS",
1276
- value: "26"
1386
+ value: "18.2"
1277
1387
  },
1278
1388
  {
1279
- label: "18",
1389
+ label: "18.1",
1280
1390
  type: "osVersion-IOS",
1281
- value: "18"
1391
+ value: "18.1"
1282
1392
  },
1283
1393
  {
1284
- label: "17",
1394
+ label: "18.0",
1285
1395
  type: "osVersion-IOS",
1286
- value: "17"
1396
+ value: "18.0"
1287
1397
  },
1288
1398
  {
1289
- label: "16",
1399
+ label: "17.0",
1290
1400
  type: "osVersion-IOS",
1291
- value: "16"
1401
+ value: "17.0"
1292
1402
  },
1293
1403
  {
1294
- label: "15",
1404
+ label: "16.6",
1295
1405
  type: "osVersion-IOS",
1296
- value: "15"
1406
+ value: "16.6"
1297
1407
  },
1298
1408
  {
1299
- label: "14",
1409
+ label: "16.5",
1300
1410
  type: "osVersion-IOS",
1301
- value: "14"
1411
+ value: "16.5"
1412
+ },
1413
+ {
1414
+ label: "16.4",
1415
+ type: "osVersion-IOS",
1416
+ value: "16.4"
1417
+ },
1418
+ {
1419
+ label: "16.3",
1420
+ type: "osVersion-IOS",
1421
+ value: "16.3"
1422
+ },
1423
+ {
1424
+ label: "16.2",
1425
+ type: "osVersion-IOS",
1426
+ value: "16.2"
1427
+ },
1428
+ {
1429
+ label: "16.1",
1430
+ type: "osVersion-IOS",
1431
+ value: "16.1"
1432
+ },
1433
+ {
1434
+ label: "16.0",
1435
+ type: "osVersion-IOS",
1436
+ value: "16.0"
1437
+ },
1438
+ {
1439
+ label: "15.7",
1440
+ type: "osVersion-IOS",
1441
+ value: "15.7"
1442
+ },
1443
+ {
1444
+ label: "15.6",
1445
+ type: "osVersion-IOS",
1446
+ value: "15.6"
1447
+ },
1448
+ {
1449
+ label: "15.5",
1450
+ type: "osVersion-IOS",
1451
+ value: "15.5"
1452
+ },
1453
+ {
1454
+ label: "15.4",
1455
+ type: "osVersion-IOS",
1456
+ value: "15.4"
1457
+ },
1458
+ {
1459
+ label: "15.3",
1460
+ type: "osVersion-IOS",
1461
+ value: "15.3"
1462
+ },
1463
+ {
1464
+ label: "15.2",
1465
+ type: "osVersion-IOS",
1466
+ value: "15.2"
1467
+ },
1468
+ {
1469
+ label: "15.1",
1470
+ type: "osVersion-IOS",
1471
+ value: "15.1"
1472
+ },
1473
+ {
1474
+ label: "15.0",
1475
+ type: "osVersion-IOS",
1476
+ value: "15.0"
1477
+ },
1478
+ {
1479
+ label: "14.7",
1480
+ type: "osVersion-IOS",
1481
+ value: "14.7"
1482
+ },
1483
+ {
1484
+ label: "14.6",
1485
+ type: "osVersion-IOS",
1486
+ value: "14.6"
1487
+ },
1488
+ {
1489
+ label: "14.5",
1490
+ type: "osVersion-IOS",
1491
+ value: "14.5"
1492
+ },
1493
+ {
1494
+ label: "14.4",
1495
+ type: "osVersion-IOS",
1496
+ value: "14.4"
1497
+ },
1498
+ {
1499
+ label: "14.3",
1500
+ type: "osVersion-IOS",
1501
+ value: "14.3"
1502
+ },
1503
+ {
1504
+ label: "14.2",
1505
+ type: "osVersion-IOS",
1506
+ value: "14.2"
1507
+ },
1508
+ {
1509
+ label: "14.1",
1510
+ type: "osVersion-IOS",
1511
+ value: "14.1"
1512
+ },
1513
+ {
1514
+ label: "14.0",
1515
+ type: "osVersion-IOS",
1516
+ value: "14.0"
1302
1517
  }
1303
1518
  ];
1304
- var browserCore = [
1305
- "Firefox 146",
1306
- "Chrome 149",
1307
- "Chrome 148",
1308
- "Chrome 147",
1309
- "Chrome 146",
1310
- "Chrome 145",
1311
- "Chrome 144",
1312
- "Chrome 143",
1313
- "Chrome 142",
1314
- "Chrome 141",
1315
- "Chrome 140"
1519
+ var coreVersion = [
1520
+ {
1521
+ label: "RoxyChrome 144",
1522
+ type: "coreVersion",
1523
+ value: "144"
1524
+ },
1525
+ {
1526
+ label: "RoxyChrome 143",
1527
+ type: "coreVersion",
1528
+ value: "143"
1529
+ },
1530
+ {
1531
+ label: "RoxyChrome 142",
1532
+ type: "coreVersion",
1533
+ value: "142"
1534
+ },
1535
+ {
1536
+ label: "RoxyChrome 141",
1537
+ type: "coreVersion",
1538
+ value: "141"
1539
+ },
1540
+ {
1541
+ label: "RoxyChrome 140",
1542
+ type: "coreVersion",
1543
+ value: "140"
1544
+ },
1545
+ {
1546
+ label: "RoxyChrome 139",
1547
+ type: "coreVersion",
1548
+ value: "139"
1549
+ },
1550
+ {
1551
+ label: "RoxyChrome 138",
1552
+ type: "coreVersion",
1553
+ value: "138"
1554
+ },
1555
+ {
1556
+ label: "RoxyChrome 137",
1557
+ type: "coreVersion",
1558
+ value: "137"
1559
+ },
1560
+ {
1561
+ label: "RoxyChrome 136",
1562
+ type: "coreVersion",
1563
+ value: "136"
1564
+ },
1565
+ {
1566
+ label: "RoxyChrome 135",
1567
+ type: "coreVersion",
1568
+ value: "135"
1569
+ },
1570
+ {
1571
+ label: "RoxyChrome 133",
1572
+ type: "coreVersion",
1573
+ value: "133"
1574
+ },
1575
+ {
1576
+ label: "RoxyChrome 130",
1577
+ type: "coreVersion",
1578
+ value: "130"
1579
+ },
1580
+ {
1581
+ label: "RoxyChrome 125",
1582
+ type: "coreVersion",
1583
+ value: "125"
1584
+ },
1585
+ {
1586
+ label: "RoxyChrome 117",
1587
+ type: "coreVersion",
1588
+ value: "117"
1589
+ },
1590
+ {
1591
+ label: "RoxyChrome 109",
1592
+ type: "coreVersion",
1593
+ value: "109"
1594
+ }
1316
1595
  ];
1317
1596
  function osVersionString() {
1318
1597
  return `Windows: ${osversion_windows.map((item) => item.value).join(",")}; macOS: ${osversion_macos.map((item) => item.value).join(",")}; Linux: ${osversion_linux.map((item) => item.value).join(",")}; Android: ${osversion_android.map((item) => item.value).join(",")}; IOS: ${osversion_ios.map((item) => item.value).join(",")}`;
1319
1598
  }
1320
- function validateBrowserConfig(params) {
1321
- const os = params.os || "Windows";
1322
- const browserCore2 = params.browserCore;
1323
- if (!browserCore2) return null;
1324
- const [coreType] = browserCore2.split(" ");
1325
- if (coreType === "Firefox" && os === "macOS") {
1326
- if (params.osVersion && params.osVersion !== "ALL") {
1327
- return `Firefox on macOS only supports osVersion "ALL", but got "${params.osVersion}".`;
1328
- }
1329
- }
1330
- return null;
1331
- }
1332
1599
  var CreateBrowser = class {
1333
1600
  name = "roxy_create_browser";
1334
1601
  description = "Create a browser with complete configuration control - for expert users needing full parameter access";
@@ -1343,15 +1610,10 @@ var CreateBrowser = class {
1343
1610
  type: "string",
1344
1611
  description: "Browser window name"
1345
1612
  },
1346
- browserCore: {
1613
+ coreVersion: {
1347
1614
  type: "string",
1348
- enum: browserCore,
1349
- description: "Browser core version. Defaults to the latest Chrome version if not provided."
1350
- },
1351
- useLatestCore: {
1352
- type: "number",
1353
- enum: [0, 1],
1354
- description: "Whether to always use the latest core version: 1=yes, 0=no (default: 0). When set to 1, coreVersion will be automatically kept up-to-date."
1615
+ enum: coreVersion.map((item) => item.value),
1616
+ description: "Browser core version. If not provided, the latest available core version will be used."
1355
1617
  },
1356
1618
  os: {
1357
1619
  type: "string",
@@ -1360,7 +1622,7 @@ var CreateBrowser = class {
1360
1622
  },
1361
1623
  osVersion: {
1362
1624
  type: "string",
1363
- description: osVersionString() + '. Note: Firefox on macOS only supports "ALL".'
1625
+ description: osVersionString()
1364
1626
  },
1365
1627
  userAgent: {
1366
1628
  type: "string",
@@ -1511,24 +1773,7 @@ var CreateBrowser = class {
1511
1773
  }
1512
1774
  }
1513
1775
  },
1514
- required: ["workspaceId", "browserCore"],
1515
- allOf: [
1516
- {
1517
- // Firefox on macOS only supports osVersion "ALL"
1518
- if: {
1519
- properties: {
1520
- browserCore: { pattern: "^Firefox" },
1521
- os: { const: "macOS" }
1522
- },
1523
- required: ["browserCore", "os"]
1524
- },
1525
- then: {
1526
- properties: {
1527
- osVersion: { enum: ["ALL"] }
1528
- }
1529
- }
1530
- }
1531
- ]
1776
+ required: ["workspaceId"]
1532
1777
  };
1533
1778
  get schema() {
1534
1779
  return {
@@ -1538,22 +1783,6 @@ var CreateBrowser = class {
1538
1783
  };
1539
1784
  }
1540
1785
  async handle(params) {
1541
- const validationError = validateBrowserConfig(params);
1542
- if (validationError) {
1543
- return {
1544
- content: [{ type: "text", text: `\u274C **Invalid configuration:**
1545
-
1546
- ${validationError}` }]
1547
- };
1548
- }
1549
- if (params.browserCore) {
1550
- const [coreType, coreVersion] = params.browserCore.split(" ");
1551
- params.coreType = coreType || "Chrome";
1552
- params.coreVersion = coreVersion;
1553
- delete params.browserCore;
1554
- } else {
1555
- params.coreType = "Chrome";
1556
- }
1557
1786
  const result = await request("/browser/create", {
1558
1787
  method: "POST",
1559
1788
  body: JSON.stringify(params)
@@ -1568,7 +1797,6 @@ ${validationError}` }]
1568
1797
  text = `\u2705 **Simple Browser Created**
1569
1798
 
1570
1799
  **Browser ID:** \`${data.dirId}\`
1571
- **Core Type:** ${data.coreType || "Chrome"}
1572
1800
  *Use this browser ID with \`roxy_open_browsers\` to start the browser and get CDP endpoints for automation.*`;
1573
1801
  }
1574
1802
  return {
@@ -1594,8 +1822,7 @@ var BatchCreateBrowsers = class {
1594
1822
  items: {
1595
1823
  type: "object",
1596
1824
  properties: createBrowser.inputSchema.properties,
1597
- required: ["workspaceId", "browserCore"],
1598
- allOf: createBrowser.inputSchema.allOf
1825
+ required: ["workspaceId"]
1599
1826
  }
1600
1827
  }
1601
1828
  },
@@ -1622,14 +1849,6 @@ var BatchCreateBrowsers = class {
1622
1849
  const results = [];
1623
1850
  const createPromises = params.browsers.map(async (browserParams, index) => {
1624
1851
  try {
1625
- const validationError = validateBrowserConfig(browserParams);
1626
- if (validationError) {
1627
- return {
1628
- index,
1629
- success: false,
1630
- error: validationError
1631
- };
1632
- }
1633
1852
  const result = await request("/browser/create", {
1634
1853
  method: "POST",
1635
1854
  body: JSON.stringify(browserParams)
@@ -1695,8 +1914,7 @@ var UpdateBrowser = class {
1695
1914
  properties: {
1696
1915
  ...createBrowser.inputSchema.properties
1697
1916
  },
1698
- required: ["workspaceId", "dirId"],
1699
- allOf: createBrowser.inputSchema.allOf
1917
+ required: ["workspaceId", "dirId"]
1700
1918
  };
1701
1919
  get schema() {
1702
1920
  return {
@@ -1706,22 +1924,6 @@ var UpdateBrowser = class {
1706
1924
  };
1707
1925
  }
1708
1926
  async handle(params) {
1709
- const validationError = validateBrowserConfig(params);
1710
- if (validationError) {
1711
- return {
1712
- content: [{ type: "text", text: `\u274C **Invalid configuration:**
1713
-
1714
- ${validationError}` }]
1715
- };
1716
- }
1717
- if (params.browserCore) {
1718
- const [coreType, coreVersion] = params.browserCore.split(" ");
1719
- params.coreType = coreType || "Chrome";
1720
- params.coreVersion = coreVersion;
1721
- delete params.browserCore;
1722
- } else {
1723
- params.coreType = "Chrome";
1724
- }
1725
1927
  const result = await request("/browser/mdf", {
1726
1928
  method: "POST",
1727
1929
  body: JSON.stringify(params)
@@ -1837,8 +2039,7 @@ var OpenBrowser = class {
1837
2039
  `**Browser ${data.dirId || r.dirId || "Unknown"}** (PID:${data.pid ?? "Unknown"})`,
1838
2040
  ` - CDP WebSocket: \`${data.ws ?? "N/A"}\``,
1839
2041
  ` - HTTP Endpoint: \`${data.http ?? "N/A"}\``,
1840
- ` - Core Version: ${data.coreVersion ?? "Unknown"}`,
1841
- ` - Core Type: ${data.coreType ?? "Chrome"}`
2042
+ ` - Core Version: ${data.coreVersion ?? "Unknown"}`
1842
2043
  ].join("\n");
1843
2044
  })
1844
2045
  ].join("\n") : "";
@@ -1951,7 +2152,6 @@ var ListBrowsers = class {
1951
2152
  const info = [
1952
2153
  `Profile Name: **${browser.windowName || "Unnamed"}** (SN: ${serialNo})`,
1953
2154
  ` - CoreVersion: ${browser.coreVersion}`,
1954
- ` - CoreType: ${browser.coreType || "Chrome"}`,
1955
2155
  ` - OS: ${browser.os} ${browser.osVersion}`
1956
2156
  ];
1957
2157
  if (browser.windowRemark) {
@@ -2192,8 +2392,6 @@ var GetBrowserDetail = class {
2192
2392
  **Project:** ${detail.projectName} (ID: ${detail.projectId})
2193
2393
  **OS:** ${detail.os} ${detail.osVersion}
2194
2394
  **Core Version:** ${detail.coreVersion}
2195
- **Core Type:** ${detail.coreType || "Chrome"}
2196
- **Auto Latest Core:** ${detail.useLatestCore == 1 ? "\u2705 Enabled" : "\u274C Disabled"}
2197
2395
  **Search Engine:** ${detail.searchEngine}
2198
2396
  **Open Status:** ${detail.openStatus ? "\u2705 Opened" : "\u274C Closed"}
2199
2397
  **Cookies:** ${cookieCount} stored (excluded from response to save tokens)
@@ -2513,7 +2711,6 @@ ${connections.map(
2513
2711
  - CDP WebSocket: \`${conn.ws}\`
2514
2712
  - HTTP Endpoint: \`${conn.http}\`
2515
2713
  - Core Version: ${conn.coreVersion}
2516
- - Core Type: ${conn.coreType || "Chrome"}
2517
2714
  - Driver: ${conn.driver}`
2518
2715
  ).join("\n\n")}`;
2519
2716
  }