@withone/cli 1.13.6 → 1.13.8
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/dist/index.js +5 -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 ?
|
|
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);
|
|
@@ -3802,7 +3805,7 @@ async function updateCommand() {
|
|
|
3802
3805
|
s.stop(`Update available: v${currentVersion} \u2192 v${latestVersion}`);
|
|
3803
3806
|
console.log(`Updating @withone/cli: v${currentVersion} \u2192 v${latestVersion}...`);
|
|
3804
3807
|
const code = await new Promise((resolve) => {
|
|
3805
|
-
const child = spawn2("npm", ["install", "-g", "@withone/cli@latest"], {
|
|
3808
|
+
const child = spawn2("npm", ["install", "-g", "@withone/cli@latest", "--force"], {
|
|
3806
3809
|
stdio: isAgentMode() ? "pipe" : "inherit",
|
|
3807
3810
|
shell: true
|
|
3808
3811
|
});
|