@abitat_reece/cli 0.1.6 → 0.1.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 +5 -9
- package/dist/index.js +4 -1
- package/dist/iphone.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Abitat CLI
|
|
2
2
|
|
|
3
|
-
`abitat` starts a Mac-local control server so a paired iPhone can control Codex through that Mac. The CLI installs `@abitat_reece/host-daemon` as a dependency and launches it directly; core iPhone control
|
|
3
|
+
`abitat` starts a Mac-local control server so a paired iPhone can control Codex through that Mac. The CLI installs `@abitat_reece/host-daemon` as a dependency and launches it directly; core iPhone control uses `workspace.abitat.io` only as an encrypted relay and does not require a hosted database.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
brew tap
|
|
8
|
+
brew tap AbitatDoorothy/abitat
|
|
9
9
|
brew install abitat
|
|
10
10
|
```
|
|
11
11
|
|
|
@@ -21,24 +21,20 @@ The npm package is also available:
|
|
|
21
21
|
npm install -g @abitat_reece/cli
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Install the Mac-side tunnel helper:
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
brew install cloudflared
|
|
28
|
-
```
|
|
29
|
-
|
|
30
24
|
## Use
|
|
31
25
|
|
|
32
26
|
```sh
|
|
33
27
|
abitat iphone
|
|
34
28
|
```
|
|
35
29
|
|
|
36
|
-
The command starts the packaged host daemon in local-control mode,
|
|
30
|
+
The command starts the packaged host daemon in local-control mode, connects the Mac outbound to the `workspace.abitat.io` relay, prints a QR/manual pairing payload with a relay id, and bridges encrypted iPhone requests to the Mac's Codex app-server. The iPhone only needs the Abitat app.
|
|
37
31
|
|
|
38
32
|
Other endpoint modes are available when you want them:
|
|
39
33
|
|
|
40
34
|
```sh
|
|
41
35
|
abitat iphone --transport local
|
|
42
36
|
abitat iphone --transport tailscale
|
|
37
|
+
abitat iphone --transport temporary-tunnel
|
|
38
|
+
abitat iphone --transport quick-tunnel
|
|
43
39
|
abitat iphone --transport manual --endpoint https://your-endpoint.example
|
|
44
40
|
```
|
package/dist/index.js
CHANGED
|
@@ -55,7 +55,8 @@ export async function runCli(args, input = {}) {
|
|
|
55
55
|
codexServerUrl: env.CODEX_APP_SERVER_URL ?? DEFAULT_CODEX_APP_SERVER_URL,
|
|
56
56
|
endpoint: readOption(args, "--endpoint") ?? env.ABITAT_LOCAL_CONTROL_ENDPOINT,
|
|
57
57
|
port: numberOption(args, "--port", Number(env.ABITAT_LOCAL_CONTROL_PORT ?? 3901)),
|
|
58
|
-
|
|
58
|
+
relayEndpoint: readOption(args, "--relay-endpoint") ?? env.ABITAT_RELAY_ENDPOINT,
|
|
59
|
+
transport: transportOption(readOption(args, "--transport") ?? "relay")
|
|
59
60
|
});
|
|
60
61
|
output("Starting local-first iPhone control on this Mac.");
|
|
61
62
|
output("The Mac will print a QR/manual pairing payload. No hosted domain or database is used.");
|
|
@@ -112,6 +113,8 @@ function transportOption(value) {
|
|
|
112
113
|
if (value === "auto" ||
|
|
113
114
|
value === "local" ||
|
|
114
115
|
value === "tailscale" ||
|
|
116
|
+
value === "relay" ||
|
|
117
|
+
value === "temporary-tunnel" ||
|
|
115
118
|
value === "quick-tunnel" ||
|
|
116
119
|
value === "manual") {
|
|
117
120
|
return value;
|
package/dist/iphone.js
CHANGED
|
@@ -11,6 +11,7 @@ export function createIphoneStartupPlan(input) {
|
|
|
11
11
|
input.transport,
|
|
12
12
|
"--codex-server-url",
|
|
13
13
|
input.codexServerUrl,
|
|
14
|
+
...(input.relayEndpoint ? ["--relay-endpoint", input.relayEndpoint] : []),
|
|
14
15
|
...(input.endpoint ? ["--endpoint", input.endpoint] : [])
|
|
15
16
|
]
|
|
16
17
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abitat_reece/cli",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"description": "Remote Codex control from Mac and iPhone",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@abitat_reece/host-daemon": "0.1.
|
|
18
|
+
"@abitat_reece/host-daemon": "0.1.7"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "25.6.0",
|