@codingfrees/uap-device-control 0.0.0-stage → 0.1.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/README.md CHANGED
@@ -1,3 +1,67 @@
1
- # Temporary Holding Version
1
+ # UAP Device Control
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Cross-platform outbound Device Control client for Universal Agent Platform.
4
+
5
+ ## Requirements
6
+
7
+ - Node.js 26.x (`>=26.8.1 <27`)
8
+ - a public UAP Device Control origin for first login
9
+ - Windows, Linux or macOS
10
+
11
+ Runner, WSL, `cloudflared`, a separately installed Device Agent and an inbound device port are not required for temporary `npx` mode.
12
+
13
+ ## First login
14
+
15
+ The public npm package does not embed a development, staging or production hostname. Select the intended UAP environment explicitly on first login:
16
+
17
+ ```bash
18
+ npx @codingfrees/uap-device-control@latest login --origin https://<uap-device-control-origin>
19
+ ```
20
+
21
+ The browser OAuth flow stores a device-scoped credential for that exact origin. Later commands reuse the stored origin. To change environments, logout first and then login against the other origin.
22
+
23
+ You can also provide the origin through `UAP_DEVICE_CONTROL_ORIGIN`.
24
+
25
+ ## Remote session
26
+
27
+ ```bash
28
+ npx @codingfrees/uap-device-control@latest remote
29
+ ```
30
+
31
+ By default only the current directory is exposed as a Device Control filesystem root. Additional authority must be explicit:
32
+
33
+ ```bash
34
+ npx @codingfrees/uap-device-control@latest remote \
35
+ --root files=/absolute/path \
36
+ --read-only-root archive=/absolute/archive \
37
+ --allow-executable /absolute/path/to/executable \
38
+ --allow-service example.service
39
+ ```
40
+
41
+ ## Status
42
+
43
+ ```bash
44
+ npx @codingfrees/uap-device-control@latest status
45
+ ```
46
+
47
+ `status` reports the local device identity, authentication state and remote presence when authenticated.
48
+
49
+ ## Persistent service
50
+
51
+ After login:
52
+
53
+ ```bash
54
+ npx @codingfrees/uap-device-control@latest install-service
55
+ ```
56
+
57
+ The same runtime is persisted using the platform adapter (Windows scheduled startup, Linux systemd user service, macOS launchd).
58
+
59
+ ## npm client versus ChatGPT MCP
60
+
61
+ The npm client does **not** use MCP as its device transport. It needs the public UAP origin for OAuth and the outbound Device Control routes under `/device-control/remote/*`.
62
+
63
+ The `/mcp` endpoint is required by ChatGPT/Codex and the public OpenAI plugin listing. A production deployment may expose both surfaces from the same canonical HTTPS origin, but they are independent protocol paths and use separate OAuth scopes. The npm client uses the isolated `device-control:device` scope; ordinary MCP read/write tokens are rejected by the remote-device broker.
64
+
65
+ ## Security boundary
66
+
67
+ The client opens only outbound HTTPS connections. Filesystem roots, executable allowlists and service allowlists remain local explicit authority. Device credentials are origin-bound and cannot be silently reused against another environment.