remote-codex 0.1.4 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remote-codex",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Local web supervisor for Codex workspaces and threads.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -116,6 +116,7 @@ async function startService() {
116
116
  console.log(`Web: http://${serviceHost}:${servicePort} (pid ${webPid})`);
117
117
  console.log(`API: http://${apiHost}:${apiPort} (pid ${apiPid})`);
118
118
  console.log(`Logs: ${serviceDir}`);
119
+ printTailscaleServeHint();
119
120
  }
120
121
 
121
122
  async function stopService() {
@@ -204,6 +205,21 @@ function prepareLogFile(logPath) {
204
205
  }
205
206
  }
206
207
 
208
+ function printTailscaleServeHint() {
209
+ const localWebUrl = `http://${serviceHost}:${servicePort}`;
210
+
211
+ console.log('');
212
+ console.log('To access it from another device, expose the web service with Tailscale:');
213
+ console.log('');
214
+ console.log(` tailscale serve --bg ${localWebUrl}`);
215
+ console.log('');
216
+ console.log('If Tailscale is not installed yet:');
217
+ console.log('');
218
+ console.log(' curl -fsSL https://tailscale.com/install.sh | sh');
219
+ console.log(' tailscale up');
220
+ console.log(` tailscale serve --bg ${localWebUrl}`);
221
+ }
222
+
207
223
  async function waitForHttp(url, pid, timeoutMs) {
208
224
  const startedAt = Date.now();
209
225
  while (Date.now() - startedAt < timeoutMs) {