runcloud 0.2.217 → 0.2.219

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
@@ -282,6 +282,7 @@ export async function requestFor(flags) {
282
282
  return {
283
283
  ...(flags.orgId ? { orgId: flags.orgId } : {}),
284
284
  ...(flags.applicationId ? { applicationId: flags.applicationId } : {}),
285
+ ...(flags.zone ? { zone: flags.zone } : {}),
285
286
  ...(flags.workspace ? { workspace: flags.workspace } : {}),
286
287
  ...(flags.project ? { project: flags.project } : {}),
287
288
  ...(flags.scheme ? { scheme: flags.scheme } : {}),
@@ -402,6 +403,7 @@ Examples:
402
403
  .option('--additional-file <local=remote>', 'include an extra file; repeatable', repeated, [])
403
404
  .option('--org-id <id>', 'organization to own the build')
404
405
  .option('--application-id <id>', 'stable application identity for native artifact cache retirement')
406
+ .option('--zone <zone>', 'availability zone from `runcloud zones`; strict, builds only on that zone\'s builders (default: any)')
405
407
  .option('--idempotency-key <key>', 'stable key for retry-safe submission')
406
408
  .option('--timeout-seconds <seconds>', 'remote xcodebuild timeout, max 21600', '3600')
407
409
  .option('--wait-timeout <seconds>', 'client wait timeout, max 23400', '22500')
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.217';
1
+ export const CLI_VERSION = '0.2.219';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.217",
3
+ "version": "0.2.219",
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