@devicecloud.dev/dcd 5.10.0 → 5.11.0-beta.2
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/device.d.ts +30 -0
- package/dist/commands/device.js +1106 -0
- package/dist/commands/live.d.ts +2 -0
- package/dist/commands/live.js +9 -0
- package/dist/commands/login.js +1 -16
- package/dist/commands/mcp.d.ts +12 -0
- package/dist/commands/mcp.js +29 -0
- package/dist/gateways/device-gateway.d.ts +88 -0
- package/dist/gateways/device-gateway.js +140 -0
- package/dist/index.js +4 -0
- package/dist/mcp/bridge.d.ts +27 -0
- package/dist/mcp/bridge.js +209 -0
- package/dist/methods.js +3 -3
- package/dist/services/moropo.service.js +1 -1
- package/dist/services/results-polling.service.js +1 -1
- package/dist/types/domain/device-session.types.d.ts +197 -0
- package/dist/types/domain/device-session.types.js +5 -0
- package/dist/utils/app-upload.d.ts +19 -0
- package/dist/utils/app-upload.js +69 -0
- package/dist/utils/auth.d.ts +0 -8
- package/dist/utils/auth.js +8 -24
- package/dist/utils/browser.d.ts +10 -0
- package/dist/utils/browser.js +35 -0
- package/dist/utils/device-artifacts.d.ts +55 -0
- package/dist/utils/device-artifacts.js +211 -0
- package/dist/utils/device-bundle.d.ts +22 -0
- package/dist/utils/device-bundle.js +102 -0
- package/dist/utils/device-output.d.ts +81 -0
- package/dist/utils/device-output.js +204 -0
- package/dist/utils/device-run.d.ts +29 -0
- package/dist/utils/device-run.js +105 -0
- package/dist/utils/progress.d.ts +4 -0
- package/dist/utils/progress.js +45 -21
- package/package.json +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type DeviceCatalogue, type DeviceScreenElement } from '../types/domain/device-session.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* The platform a `--model` belongs to, from GET /device/models. Matches the
|
|
4
|
+
* model id (iphone-16) or its name (iPhone 16), ignoring case. Unknown, or on
|
|
5
|
+
* both platforms: a usage error that says to pass --platform.
|
|
6
|
+
*/
|
|
7
|
+
export declare function platformOfModel(catalogue: DeviceCatalogue, model: string): 'android' | 'ios';
|
|
8
|
+
/** One element on one line: what to target it by, then its bounds. */
|
|
9
|
+
export declare function formatElement(el: DeviceScreenElement): string;
|
|
10
|
+
/** `data:image/jpeg;base64,...` to bytes and a file extension. */
|
|
11
|
+
export declare function decodeDataUrl(dataUrl: string): {
|
|
12
|
+
bytes: Buffer;
|
|
13
|
+
ext: string;
|
|
14
|
+
};
|
|
15
|
+
/** `--env KEY=VALUE`, given once or several times. */
|
|
16
|
+
export declare function parseEnvFlags(value: unknown): Record<string, string> | undefined;
|
|
17
|
+
/** Every value of a repeatable flag; citty keeps only the last one. */
|
|
18
|
+
export declare function collectFlagValues(flag: string, rawArgs: string[]): string[];
|
|
19
|
+
/**
|
|
20
|
+
* citty drops a string flag's value when it starts with `-`, as a flow's
|
|
21
|
+
* first command does (`--yaml "- launchApp"`). Read it from argv instead.
|
|
22
|
+
*/
|
|
23
|
+
export declare function recoverFlagValue(flag: string, parsed: string | undefined, rawArgs: string[]): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The lines of `next` that `prev` has not shown. Each fetch is the log's
|
|
26
|
+
* last N lines, so the overlap is the longest end of `prev` that `next`
|
|
27
|
+
* starts with. No overlap: everything in `next` is new.
|
|
28
|
+
*/
|
|
29
|
+
export declare function newLogLines(prev: string[], next: string[]): string[];
|
|
30
|
+
export declare const deviceCommand: import("citty").CommandDef<import("citty").ArgsDef>;
|