@withone/cli 1.13.6 → 1.13.7

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1301,8 +1301,11 @@ async function connectionListCommand(options) {
1301
1301
  spinner5.start("Loading connections...");
1302
1302
  try {
1303
1303
  const allConnections = await api.listConnections();
1304
+ const ac = getAccessControlFromAllSources();
1305
+ const allowedKeys = ac.connectionKeys || ["*"];
1306
+ const accessFiltered = allowedKeys.includes("*") ? allConnections : allConnections.filter((conn) => allowedKeys.includes(conn.key));
1304
1307
  const searchQuery = options?.search?.toLowerCase();
1305
- const filtered = searchQuery ? allConnections.filter((conn) => conn.platform.toLowerCase().includes(searchQuery)) : allConnections;
1308
+ const filtered = searchQuery ? accessFiltered.filter((conn) => conn.platform.toLowerCase().includes(searchQuery)) : accessFiltered;
1306
1309
  if (isAgentMode()) {
1307
1310
  const limit = options?.limit ? parseInt(options.limit, 10) : 20;
1308
1311
  const limited = filtered.slice(0, limit);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withone/cli",
3
- "version": "1.13.6",
3
+ "version": "1.13.7",
4
4
  "description": "CLI for managing One",
5
5
  "type": "module",
6
6
  "files": [