runcloud 0.2.217 → 0.2.218

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.
@@ -953,6 +953,7 @@ async function createSimulatorSession(platform, opts) {
953
953
  codec: requestedCodec(opts.codec),
954
954
  ...(opts.devHost ? { devHost: opts.devHost } : {}),
955
955
  ...(opts.restoreState ? { restoreState: opts.restoreState } : {}),
956
+ ...(opts.zone !== undefined ? { zone: opts.zone } : {}),
956
957
  ...(platform === 'ios' ? runCloudIosOptions(opts) : {}),
957
958
  });
958
959
  }
@@ -1198,6 +1199,7 @@ function registerSimulatorCommands(program, platform) {
1198
1199
  .description(`Create a remote ${label} session`)
1199
1200
  .option('--model <model>', platform === 'ios' ? 'simulator model' : 'emulator model', platform === 'ios' ? 'iphone' : 'pixel')
1200
1201
  .option('--region <region>', 'fleet region')
1202
+ .option('--zone <zone>', 'availability zone from `runcloud zones`; strict, never falls back to another zone (default: any)')
1201
1203
  .option('--display-name <name>', 'human-readable name')
1202
1204
  .option('--org-id <id>', 'organization to own the session')
1203
1205
  .option('--label <key=value>', 'label to attach to the session', (v, p) => [...p, v], [])
@@ -1770,6 +1772,17 @@ export function registerRunCloud(program) {
1770
1772
  .action((opts) => action(async () => {
1771
1773
  print(await client().get('/run-cloud/account'), opts);
1772
1774
  }));
1775
+ program
1776
+ .command('zones')
1777
+ .alias('zone')
1778
+ .description('List availability zones: local networks of simulators and Xcode builders')
1779
+ .option('--org-id <id>', 'organization whose usable hosts are counted')
1780
+ .option('--json', 'output JSON', false)
1781
+ .action((opts) => action(async () => {
1782
+ const query = opts.orgId ? `?orgId=${encodeURIComponent(opts.orgId)}` : '';
1783
+ const { items } = await client().get(`/run-cloud/zones${query}`);
1784
+ print(items, opts);
1785
+ }, opts));
1773
1786
  const ios = registerSimulatorCommands(program, 'ios');
1774
1787
  registerSimulatorCommands(program, 'android');
1775
1788
  ios
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.217';
1
+ export const CLI_VERSION = '0.2.218';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.217",
3
+ "version": "0.2.218",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
Binary file
Binary file