@dhruv2mars/offdex 0.0.6 → 0.0.7
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 -1
- package/bin/offdex.js +38 -24
- package/package.json +1 -1
package/README.md
CHANGED
package/bin/offdex.js
CHANGED
|
@@ -14,45 +14,59 @@ import {
|
|
|
14
14
|
|
|
15
15
|
const args = process.argv.slice(2);
|
|
16
16
|
const ONBOARDING_TEXT = `Offdex
|
|
17
|
-
Codex
|
|
17
|
+
Codex mobile app.
|
|
18
|
+
|
|
19
|
+
Use Codex from your phone while the real Codex session keeps running on this Mac.
|
|
18
20
|
|
|
19
21
|
Get started:
|
|
20
|
-
1. Run offdex start
|
|
21
|
-
2. Open Offdex on your phone
|
|
22
|
-
3. Scan the QR from this terminal
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
offdex
|
|
27
|
-
offdex
|
|
28
|
-
offdex
|
|
22
|
+
1. Run: offdex start
|
|
23
|
+
2. Open Offdex on your phone.
|
|
24
|
+
3. Scan the QR from this terminal.
|
|
25
|
+
4. Send a prompt and watch Codex reply live.
|
|
26
|
+
|
|
27
|
+
Core commands:
|
|
28
|
+
offdex help Commands, docs, GitHub, feedback.
|
|
29
|
+
offdex start Start the bridge and show the QR.
|
|
30
|
+
offdex status Show bridge, Codex, and client status.
|
|
31
|
+
offdex stop Stop the local bridge.
|
|
32
|
+
|
|
33
|
+
Docs: https://offdexapp.vercel.app
|
|
29
34
|
`;
|
|
30
|
-
const HELP_TEXT = `Offdex
|
|
35
|
+
const HELP_TEXT = `Offdex help
|
|
36
|
+
Codex mobile app.
|
|
31
37
|
|
|
32
|
-
|
|
38
|
+
Commands:
|
|
33
39
|
offdex
|
|
40
|
+
Open the Offdex home screen.
|
|
41
|
+
|
|
42
|
+
offdex help
|
|
43
|
+
Show commands, docs, and support links.
|
|
44
|
+
|
|
34
45
|
offdex start [options]
|
|
46
|
+
Start the bridge and show the pairing QR.
|
|
47
|
+
|
|
35
48
|
offdex status [options]
|
|
36
|
-
|
|
37
|
-
offdex --help
|
|
49
|
+
Show bridge, Codex, client, and remote status.
|
|
38
50
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
status Check the local bridge
|
|
42
|
-
stop Stop the local bridge started by Offdex
|
|
51
|
+
offdex stop [options]
|
|
52
|
+
Stop the local bridge started by Offdex.
|
|
43
53
|
|
|
44
|
-
|
|
45
|
-
--host <host>
|
|
46
|
-
--port <port>
|
|
47
|
-
--mode <codex|demo>
|
|
48
|
-
--control-plane-url <url>
|
|
49
|
-
-h, --help Show help
|
|
54
|
+
Start options:
|
|
55
|
+
--host <host> Default: 0.0.0.0
|
|
56
|
+
--port <port> Default: 42420
|
|
57
|
+
--mode <codex|demo> Default: codex
|
|
58
|
+
--control-plane-url <url> Enable managed remote pairing.
|
|
50
59
|
|
|
51
60
|
Environment fallbacks:
|
|
52
61
|
OFFDEX_BRIDGE_HOST
|
|
53
62
|
OFFDEX_BRIDGE_PORT
|
|
54
63
|
OFFDEX_BRIDGE_MODE
|
|
55
64
|
OFFDEX_CONTROL_PLANE_URL
|
|
65
|
+
|
|
66
|
+
Links:
|
|
67
|
+
Docs: https://offdexapp.vercel.app
|
|
68
|
+
GitHub: https://github.com/Dhruv2mars/offdex
|
|
69
|
+
Feedback: https://github.com/Dhruv2mars/offdex/issues
|
|
56
70
|
`;
|
|
57
71
|
const installedBin = resolveInstalledBin(process.env, process.platform);
|
|
58
72
|
const packageVersion = readPackageVersion();
|