@newly/cli 0.2.140 → 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.
- package/README.md +2 -2
- package/dist/commands/run-cloud.js +13 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -175,7 +175,7 @@ For CI, or a dev control plane where no browser is at hand, skip it entirely
|
|
|
175
175
|
|
|
176
176
|
```bash
|
|
177
177
|
newly-dev login \
|
|
178
|
-
--api-url https://
|
|
178
|
+
--api-url https://api-dev.newly.app \
|
|
179
179
|
--token <nl_live_…> \
|
|
180
180
|
--expires-in 86400
|
|
181
181
|
```
|
|
@@ -196,7 +196,7 @@ newly-dev login \
|
|
|
196
196
|
|
|
197
197
|
```bash
|
|
198
198
|
# 1. Log the dev CLI in against the dev control plane.
|
|
199
|
-
NEWLY_AUTH_API_URL=https://
|
|
199
|
+
NEWLY_AUTH_API_URL=https://api-dev.newly.app newly-dev login --email
|
|
200
200
|
|
|
201
201
|
# 2. Use newly-dev the same way as newly.
|
|
202
202
|
newly-dev create my-test
|
|
@@ -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.
|
|
1
|
+
export const CLI_VERSION = '0.2.142';
|