runcloud 0.2.245 → 0.2.247
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/commands/run-cloud.js +22 -2
- package/dist/commands/sandbox.js +7 -3
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/runcloud-0.2.247.tgz +0 -0
- package/runcloud-0.2.245.tgz +0 -0
|
@@ -10,8 +10,8 @@ import { requireCredentials } from '../config.js';
|
|
|
10
10
|
import { recordSimulatorAudio } from './run-cloud-audio.js';
|
|
11
11
|
import { formatRunCloudCredits, readRunCloudCredits, RunCloudCreditsError } from './run-cloud-credits.js';
|
|
12
12
|
export const IOS_SIMULATOR_CAPABILITIES = ['HealthKit', 'HomeKit', 'WidgetKit', 'SpeechSynthesis', 'Contacts', 'Calendars', 'AppleAccount'];
|
|
13
|
-
export const IOS_PLATFORM_VERSIONS = ['26.5'];
|
|
14
|
-
export const IOS_DEVICE_NAMES = ['iPhone 17e', 'iPad (A16)'];
|
|
13
|
+
export const IOS_PLATFORM_VERSIONS = ['26.5', '27.2'];
|
|
14
|
+
export const IOS_DEVICE_NAMES = ['iPhone 17e', 'iPad (A16)', 'iPhone Duo'];
|
|
15
15
|
export const RUN_CLOUD_CODEC_HELP = 'viewer stream codec: auto (default, recommended) uses run.cloud\'s H.264 streaming protocol; '
|
|
16
16
|
+ 'mjpeg is a fallback only for clients that cannot decode H.264 (on Android it is PNG screenshots at about 1.5 fps); '
|
|
17
17
|
+ 'webrtc is experimental';
|
|
@@ -114,6 +114,8 @@ function normalizedAccessibilityErrorCode(value) {
|
|
|
114
114
|
? value
|
|
115
115
|
: 'accessibility_unavailable';
|
|
116
116
|
}
|
|
117
|
+
const FOLD_POSES = ['closed', 'book', 'open', 'keyboard', 'tent'];
|
|
118
|
+
const HINGE_DEGREES = { min: 0, max: 180 };
|
|
117
119
|
const DEFAULT_ACCESSIBILITY_TIMEOUT_MS = 20_000;
|
|
118
120
|
const INTERACTION_RESPONSE_MARGIN_MS = 250;
|
|
119
121
|
const REQUEST_ID_PATTERN = /^[A-Za-z0-9._:-]{1,128}$/;
|
|
@@ -263,6 +265,11 @@ function renderDebugOption(raw) {
|
|
|
263
265
|
}
|
|
264
266
|
throw new Error(`Unknown render debug option: ${raw}. Choose one of: ${SIMULATOR_RENDER_DEBUG_OPTIONS.join(', ')}.`);
|
|
265
267
|
}
|
|
268
|
+
function foldPose(raw) {
|
|
269
|
+
if (FOLD_POSES.includes(raw))
|
|
270
|
+
return raw;
|
|
271
|
+
throw new Error(`Unknown fold pose: ${raw}. Choose one of: ${FOLD_POSES.join(', ')}.`);
|
|
272
|
+
}
|
|
266
273
|
function booleanArgument(raw, name) {
|
|
267
274
|
if (raw === 'true')
|
|
268
275
|
return true;
|
|
@@ -1673,6 +1680,19 @@ function registerSimulatorCommands(program, platform) {
|
|
|
1673
1680
|
option: renderDebugOption(rawOption),
|
|
1674
1681
|
enabled: booleanArgument(rawEnabled, 'enabled'),
|
|
1675
1682
|
}, opts), opts));
|
|
1683
|
+
addInteractionOptions(simulator
|
|
1684
|
+
.command('hinge')
|
|
1685
|
+
.description(`Set the hinge angle of a foldable device such as iPhone Duo in ${article} ${label} session (other devices return unsupported_action)`)
|
|
1686
|
+
.argument('<id>', 'session id')
|
|
1687
|
+
.argument('<degrees>', `hinge angle from ${HINGE_DEGREES.min} (closed) to ${HINGE_DEGREES.max} (flat open)`)).action((id, degrees, opts) => action(() => runSimulatorInteraction(platform, id, {
|
|
1688
|
+
action: 'setHinge',
|
|
1689
|
+
degrees: finiteInRange(degrees, 'degrees', HINGE_DEGREES.min, HINGE_DEGREES.max),
|
|
1690
|
+
}, opts), opts));
|
|
1691
|
+
addInteractionOptions(simulator
|
|
1692
|
+
.command('pose')
|
|
1693
|
+
.description(`Put a foldable device such as iPhone Duo into a named pose in ${article} ${label} session (other devices return unsupported_action)`)
|
|
1694
|
+
.argument('<id>', 'session id')
|
|
1695
|
+
.argument('<pose>', 'closed (0°), book (130°), open (180°, flat), keyboard (laptop pose, about 110°), or tent (about 75°, cover screen out)')).action((id, rawPose, opts) => action(() => runSimulatorInteraction(platform, id, { action: 'setPose', pose: foldPose(rawPose) }, opts), opts));
|
|
1676
1696
|
simulator
|
|
1677
1697
|
.command('accessibility-tree')
|
|
1678
1698
|
.alias('accessibility')
|
package/dist/commands/sandbox.js
CHANGED
|
@@ -403,6 +403,7 @@ export function registerSandbox(program) {
|
|
|
403
403
|
.option('--cpu-limit <cores>', 'CPU the sandbox may burst to above --cpu when its host has room; CPU above --cpu is billed as burst', parseCpuLimitCores)
|
|
404
404
|
.option('--memory <mb>', 'memory allocation in MiB', parseMemoryMb)
|
|
405
405
|
.option('--memory-limit <mb>', 'memory the sandbox may use above --memory when its host has room, in MiB; memory above --memory is billed as used', parseMemoryLimitMb)
|
|
406
|
+
.option('--hardware-acceleration', 'run on a host with a GPU, with the hardware-accelerated image (OpenGL and Vulkan); must be enabled for the account; not with --image')
|
|
406
407
|
.option('--disk <gb>', 'root disk capacity in GiB', parseDiskGb)
|
|
407
408
|
.option('--idle-pause <seconds>', 'pause after inactivity; 0 keeps it running', parseIdlePauseSeconds)
|
|
408
409
|
.option('--timeout <seconds>', 'maximum sandbox lifetime; defaults to 300, or 0 for persistent sandboxes', parseTimeoutSeconds)
|
|
@@ -425,9 +426,12 @@ export function registerSandbox(program) {
|
|
|
425
426
|
if ((exposed || opts.persistent) && opts.idlePause !== undefined && opts.idlePause !== 0) {
|
|
426
427
|
throw new Error('--persistent and --expose keep the sandbox running; drop the non-zero --idle-pause');
|
|
427
428
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
429
|
+
if (opts.hardwareAcceleration && opts.image !== undefined) {
|
|
430
|
+
throw new Error('--hardware-acceleration boots the hardware-accelerated image; drop --image');
|
|
431
|
+
}
|
|
432
|
+
const body = opts.hardwareAcceleration
|
|
433
|
+
? { hardwareAcceleration: true }
|
|
434
|
+
: { image: opts.image ?? 'runcloud/agent-base' };
|
|
431
435
|
if (opts.name)
|
|
432
436
|
body.name = opts.name;
|
|
433
437
|
if (opts.region)
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '0.2.
|
|
1
|
+
export const CLI_VERSION = '0.2.247';
|
package/package.json
CHANGED
|
Binary file
|
package/runcloud-0.2.245.tgz
DELETED
|
Binary file
|