@roxybrowser/openapi 1.0.13-beta.3 → 1.0.13-beta.6

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
@@ -2083,6 +2083,10 @@ var ListBrowsers = class {
2083
2083
  type: "string",
2084
2084
  description: "Comma-separated project IDs"
2085
2085
  },
2086
+ windowSortNum: {
2087
+ type: "string",
2088
+ description: "Filter by window `Serial No` (e.g. 1, 102)"
2089
+ },
2086
2090
  windowName: {
2087
2091
  type: "string",
2088
2092
  description: "Filter by browser window name"
@@ -2132,16 +2136,16 @@ var ListBrowsers = class {
2132
2136
  const pageSize = params.pageSize ?? 15;
2133
2137
  const totalPages = Math.max(1, Math.ceil((data.total || 0) / pageSize));
2134
2138
  const hasNextPage = currentPage < totalPages;
2135
- const serialNo = `${data.workspaceName?.slice(0, 3).toLocaleUpperCase()}-${data.windowSortNum}`;
2136
2139
  text = `Found ${data.total} browsers in workspace ${params.workspaceId}:
2137
2140
 
2138
- ${data.rows.map(
2139
- (browser) => `**${browser.windowName || "Unnamed"}** (Serial No: ${serialNo})
2141
+ ${data.rows.map((browser) => {
2142
+ const serialNo = `${browser.workspaceName?.slice(0, 3).toLocaleUpperCase()}-${browser.windowSortNum}`;
2143
+ return `**${browser.windowName || "Unnamed"}** (Serial No: ${serialNo})
2140
2144
  - CoreVersion: ${browser.coreVersion} - DirId: ${browser.dirId}
2141
2145
  - OSVersion: ${browser.osVersion}
2142
2146
  - OS: ${browser.os}
2143
- - Remark: ${browser.windowRemark}`
2144
- ).join("\n\n")}
2147
+ - Remark: ${browser.windowRemark}`;
2148
+ }).join("\n\n")}
2145
2149
 
2146
2150
  Pagination:
2147
2151
  - currentPage: ${currentPage}