runcloud 0.2.141 → 0.2.142

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.
@@ -312,6 +312,12 @@ function assertInteraction(interaction, timeoutMs) {
312
312
  throw new Error('Gesture delays cannot exceed --timeout');
313
313
  return;
314
314
  }
315
+ case 'getClipboard':
316
+ return;
317
+ case 'setClipboard':
318
+ if (interaction.text.length > 100_000)
319
+ throw new Error('clipboard text must contain at most 100000 UTF-16 code units');
320
+ return;
315
321
  case 'typeText':
316
322
  if (interaction.text.length < 1 || interaction.text.length > 10_000) {
317
323
  throw new Error('text must contain from 1 to 10000 characters');
@@ -1106,6 +1112,13 @@ function registerSimulatorCommands(program, platform) {
1106
1112
  action: 'gesture',
1107
1113
  steps: parseSimulatorGestureSteps(opts.steps, interactionTimeout(opts)),
1108
1114
  }, opts), opts));
1115
+ addInteractionOptions(simulator.command('get-clipboard')
1116
+ .description('Read text from the selected simulator clipboard')
1117
+ .argument('<id>', 'session id')).action((id, opts) => action(() => runSimulatorInteraction(platform, id, { action: 'getClipboard' }, opts), opts));
1118
+ addInteractionOptions(simulator.command('set-clipboard')
1119
+ .description('Write Unicode text to the selected simulator clipboard')
1120
+ .argument('<id>', 'session id')
1121
+ .argument('<text>', 'clipboard text, including empty or multiline text')).action((id, text, opts) => action(() => runSimulatorInteraction(platform, id, { action: 'setClipboard', text }, opts), opts));
1109
1122
  addInteractionOptions(simulator
1110
1123
  .command('type-text')
1111
1124
  .description(`Type US ASCII text into ${article} ${label} session`)
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.2.141';
1
+ export const CLI_VERSION = '0.2.142';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.2.141",
3
+ "version": "0.2.142",
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