claw-control-center 0.1.12 → 0.1.13

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.cjs CHANGED
@@ -18309,10 +18309,7 @@ async function resolveInstallDestinations(args, options = {}) {
18309
18309
  const detected = detectInstallHosts(options.hostDefinitions ?? getDefaultHostDefinitions());
18310
18310
  const compatible = detected;
18311
18311
  const incompatible = [];
18312
- if (compatible.length === 1) {
18313
- return [toInstallDestination(compatible[0])];
18314
- }
18315
- if (compatible.length > 1) {
18312
+ if (compatible.length > 0) {
18316
18313
  const selected = options.selectHosts ? validateSingleSelectedHost(await options.selectHosts(compatible, incompatible), compatible) : options.selectHost ? validateSingleSelectedHost(await options.selectHost(compatible), compatible) : validateSingleSelectedHost(await (options.promptSelectHost ?? promptForInstallHost)(compatible, incompatible), compatible);
18317
18314
  return [toInstallDestination(selected)];
18318
18315
  }
@@ -9468,10 +9468,7 @@ async function resolveInstallDestinations(args, options = {}) {
9468
9468
  const detected = detectInstallHosts(options.hostDefinitions ?? getDefaultHostDefinitions());
9469
9469
  const compatible = detected;
9470
9470
  const incompatible = [];
9471
- if (compatible.length === 1) {
9472
- return [toInstallDestination(compatible[0])];
9473
- }
9474
- if (compatible.length > 1) {
9471
+ if (compatible.length > 0) {
9475
9472
  const selected = options.selectHosts ? validateSingleSelectedHost(await options.selectHosts(compatible, incompatible), compatible) : options.selectHost ? validateSingleSelectedHost(await options.selectHost(compatible), compatible) : validateSingleSelectedHost(await (options.promptSelectHost ?? promptForInstallHost)(compatible, incompatible), compatible);
9476
9473
  return [toInstallDestination(selected)];
9477
9474
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claw-control-center",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",