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