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