@arenahito/droid-webscr 0.0.0 → 0.2.0

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # droid-webscr
2
2
 
3
- droid-webscr is a local Android screen streaming and control tool. It runs a small
4
- Node.js agent on your machine, pushes a temporary Android-side server through ADB,
5
- and opens a browser UI for viewing and controlling an authorized Android device.
3
+ droid-webscr is a local Android screen streaming and control tool. It runs a local
4
+ Node.js server on your machine, pushes a temporary Android-side server through ADB,
5
+ and serves a browser UI for viewing and controlling an authorized Android device.
6
6
 
7
7
  The project is under active development. Expect CLI and protocol details to keep
8
8
  moving until the first stable release.
@@ -44,21 +44,21 @@ droid-webscr
44
44
 
45
45
  ## Usage
46
46
 
47
- Start the local agent:
47
+ Start the local server and web UI:
48
48
 
49
49
  ```sh
50
50
  droid-webscr
51
51
  ```
52
52
 
53
- By default the agent listens on:
53
+ By default the integrated server listens on:
54
54
 
55
55
  ```text
56
56
  http://127.0.0.1:7391
57
57
  ```
58
58
 
59
- Open the web UI, select an authorized device, and start a session. The session
59
+ Open the printed URL, select an authorized device, and start a session. The session
60
60
  streams the Android display into the browser and sends control frames back to the
61
- device through the local agent.
61
+ device through the local server.
62
62
 
63
63
  The UI supports:
64
64
 
package/dist/bin.d.ts CHANGED
@@ -1,19 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { AgentRuntime } from './main.js';
3
- import '@droid-webscr/adb';
4
- import '@droid-webscr/config';
2
+ declare function startPackagedRuntime(): Promise<{
3
+ close: () => Promise<void>;
4
+ readonly url: string;
5
+ }>;
5
6
 
6
- interface CliIo {
7
- stderr(value: string): void;
8
- stdout(value: string): void;
9
- }
10
- interface CliRuntime {
11
- readonly packageVersion?: string | undefined;
12
- readonly startAgent?: (() => Promise<AgentRuntime>) | undefined;
13
- readonly stderr?: ((value: string) => void) | undefined;
14
- readonly stdout?: ((value: string) => void) | undefined;
15
- }
16
- declare function runCli(argv: readonly string[], runtime?: CliRuntime): Promise<number>;
17
- declare function createCliHelp(): string;
18
-
19
- export { type CliIo, type CliRuntime, createCliHelp, runCli };
7
+ export { startPackagedRuntime };