coderemote 0.1.2 → 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 +26 -9
- package/dist/coderemote.js +848 -82
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/CodeRemoteApp/coderemote/main/docs/images/icon.png" width="96" height="96" alt="Code Remote icon">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">coderemote</h1>
|
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
|
|
13
13
|
<p align="center">
|
|
14
14
|
<a href="https://www.npmjs.com/package/coderemote"><img src="https://img.shields.io/npm/v/coderemote" alt="npm version"></a>
|
|
15
|
-
<a href="https://github.com/
|
|
15
|
+
<a href="https://github.com/CodeRemoteApp/coderemote/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/coderemote" alt="license: AGPL-3.0-or-later"></a>
|
|
16
16
|
<img src="https://img.shields.io/node/v/coderemote" alt="node version">
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
+
<p align="center">
|
|
20
|
+
<a href="https://coderemoteapp.github.io/web/"><b>Website</b></a> ·
|
|
21
|
+
<a href="https://coderemoteapp.github.io/web/docs/"><b>Docs</b></a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
19
24
|
---
|
|
20
25
|
|
|
21
26
|
`coderemote` is the computer side of **Code Remote**, an iOS app for remote development.
|
|
@@ -28,6 +33,8 @@ in your pocket:
|
|
|
28
33
|
- **Terminal:** a real shell (PTY) with a key bar for Ctrl, Tab, Esc and arrows; sessions
|
|
29
34
|
keep running when your phone sleeps and pick up where you left off, so `claude`, `vim`,
|
|
30
35
|
`htop` or a long build survive switching apps
|
|
36
|
+
- **VS Code in the browser (optional):** `coderemote up --web` also starts VS Code's own
|
|
37
|
+
tunnel and prints a vscode.dev link that opens the folder in the full editor
|
|
31
38
|
|
|
32
39
|
## Quick start
|
|
33
40
|
|
|
@@ -45,7 +52,7 @@ opens your browser to sign in with GitHub. Prefer a Microsoft account? Run
|
|
|
45
52
|
## How it works
|
|
46
53
|
|
|
47
54
|
<p align="center">
|
|
48
|
-
<img src="https://raw.githubusercontent.com/
|
|
55
|
+
<img src="https://raw.githubusercontent.com/CodeRemoteApp/coderemote/main/docs/images/how-it-works.png" width="760" alt="How it works: the Code Remote app on the iPhone connects over HTTPS/WSS to the Microsoft Dev Tunnels relay; coderemote on your computer (127.0.0.1:31580) connects outbound to the same relay and serves files, git and terminals from the shared folder. Security at each hop: token in the iPhone Keychain, only your account through the relay, token check and one folder on the computer.">
|
|
49
56
|
</p>
|
|
50
57
|
|
|
51
58
|
`coderemote` starts a small agent that listens on `127.0.0.1` only, and publishes it through
|
|
@@ -68,14 +75,21 @@ Remote shell access is serious, so access is locked down by default:
|
|
|
68
75
|
- **Encrypted.** All traffic is HTTPS / WSS (TLS 1.2+) to the relay.
|
|
69
76
|
|
|
70
77
|
`coderemote up --allow-anonymous` skips the account sign-in when you want the pairing token
|
|
71
|
-
alone.
|
|
72
|
-
|
|
78
|
+
alone.
|
|
79
|
+
|
|
80
|
+
`--web` runs `code tunnel`, which is VS Code's tunnel, not ours: it signs in with its own
|
|
81
|
+
GitHub account and gives the browser the whole machine, not just the shared folder. It stops
|
|
82
|
+
with `coderemote`, unless a `code tunnel` was already running.
|
|
83
|
+
|
|
84
|
+
Found a vulnerability? See the
|
|
85
|
+
[security policy](https://github.com/CodeRemoteApp/coderemote/blob/main/SECURITY.md).
|
|
73
86
|
|
|
74
87
|
## Commands
|
|
75
88
|
|
|
76
89
|
```sh
|
|
77
90
|
coderemote up # share this folder through a dev tunnel, print the pairing QR
|
|
78
91
|
coderemote up --allow-anonymous # same, without the account sign-in (alias --no-auth)
|
|
92
|
+
coderemote up --web # also run `code tunnel`: open this folder in VS Code on vscode.dev
|
|
79
93
|
coderemote status # running agents and their terminal sessions
|
|
80
94
|
coderemote kill <id>... # end terminal sessions (an id prefix from `status` is enough)
|
|
81
95
|
coderemote kill --all # end every session
|
|
@@ -96,10 +110,13 @@ Options: `--root DIR` shares another folder; `--port N` picks the local port (de
|
|
|
96
110
|
- The **Dev Tunnels CLI** is downloaded on first run into `~/.coderemote/bin` (the macOS build
|
|
97
111
|
must carry Microsoft's code signature). A `devtunnel` already on your `PATH` is used instead,
|
|
98
112
|
or point `CODEREMOTE_DEVTUNNEL` at one.
|
|
113
|
+
- For `--web` only: **VS Code** with its `code` command on your `PATH` (in VS Code, run
|
|
114
|
+
*Shell Command: Install 'code' command in PATH*), or point `CODEREMOTE_CODE` at one. The first
|
|
115
|
+
run signs `code tunnel` in with GitHub.
|
|
99
116
|
- On Linux, `node-pty` compiles on install (`python3`, `make`, a C++ compiler:
|
|
100
117
|
`build-essential` on Debian/Ubuntu), and signing in needs `libsecret` (`libsecret-1-0`)
|
|
101
|
-
- The **Code Remote** iOS app on your iPhone (App Store release coming;
|
|
102
|
-
|
|
118
|
+
- The **Code Remote** iOS app on your iPhone (App Store release coming; see the
|
|
119
|
+
[website](https://coderemoteapp.github.io/web/))
|
|
103
120
|
|
|
104
121
|
## FAQ
|
|
105
122
|
|
|
@@ -120,6 +137,6 @@ repository inside it.
|
|
|
120
137
|
|
|
121
138
|
## License
|
|
122
139
|
|
|
123
|
-
[AGPL-3.0-or-later](https://github.com/
|
|
140
|
+
[AGPL-3.0-or-later](https://github.com/CodeRemoteApp/coderemote/blob/main/LICENSE).
|
|
124
141
|
"Code Remote" and its icon are trademarks of the project; see
|
|
125
|
-
[TRADEMARKS.md](https://github.com/
|
|
142
|
+
[TRADEMARKS.md](https://github.com/CodeRemoteApp/coderemote/blob/main/TRADEMARKS.md).
|