@4xeoz/re-entry 0.2.8 → 0.2.11
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 +10 -8
- package/package.json +1 -1
- package/src/main.mjs +2 -2
package/README.md
CHANGED
|
@@ -26,8 +26,11 @@ npm install --global @4xeoz/re-entry
|
|
|
26
26
|
The package installs both `re-entry` and the older `reentry` spelling; `re-entry` is the documented
|
|
27
27
|
command.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
`https://
|
|
29
|
+
For the retained hosted preview, pass the deployment alias explicitly:
|
|
30
|
+
`https://re-entry-weld.vercel.app`.
|
|
31
|
+
|
|
32
|
+
The currently published CLI source still has its previous hosted default. Until a new package
|
|
33
|
+
release repoints that default, use `--receiver https://re-entry-weld.vercel.app` for hosted tests.
|
|
31
34
|
|
|
32
35
|
The interactive CLI first offers Desktop, the current folder, or a small folder browser. Choose
|
|
33
36
|
with ↑/↓ and Enter. If you want to skip the picker, pass the workspace directly:
|
|
@@ -53,8 +56,8 @@ npm install --global @4xeoz/re-entry
|
|
|
53
56
|
re-entry install --codex-cd /absolute/path/to/your/project
|
|
54
57
|
```
|
|
55
58
|
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
Use `--receiver` to select the retained hosted preview or a different Receiver, such as the local
|
|
60
|
+
preview:
|
|
58
61
|
|
|
59
62
|
```sh
|
|
60
63
|
npx --yes --package=@4xeoz/re-entry re-entry install \
|
|
@@ -67,8 +70,7 @@ npx --yes --package=@4xeoz/re-entry re-entry install \
|
|
|
67
70
|
```text
|
|
68
71
|
choose Desktop, the current folder, or another Codex workspace
|
|
69
72
|
-> check Node + find Codex + validate the selected directory
|
|
70
|
-
->
|
|
71
|
-
-> open Re-entry in the default browser
|
|
73
|
+
-> open the dedicated Re-entry user account page in the default browser
|
|
72
74
|
-> sign in or create a user account
|
|
73
75
|
-> click Pair this Mac in the dashboard
|
|
74
76
|
-> enter the short pairing code in the CLI
|
|
@@ -251,8 +253,8 @@ npm start -- \
|
|
|
251
253
|
--codex-cd "$HOME/Code/my-host-project"
|
|
252
254
|
```
|
|
253
255
|
|
|
254
|
-
On the first run, the Connector checks the Mac, opens the Re-entry account page,
|
|
255
|
-
create or sign in to an account and click Pair this Mac, then asks for the
|
|
256
|
+
On the first run, the Connector checks the Mac, opens the dedicated Re-entry user account page,
|
|
257
|
+
waits for you to create or sign in to an account and click Pair this Mac, then asks for the
|
|
256
258
|
dashboard code and stores the credential. On later runs it reuses the saved credential and skips
|
|
257
259
|
pairing:
|
|
258
260
|
|
package/package.json
CHANGED
package/src/main.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
} from "./macos-service.mjs";
|
|
35
35
|
import { createTerminalUi } from "./terminal-ui.mjs";
|
|
36
36
|
|
|
37
|
-
const DEFAULT_RECEIVER_ORIGIN = process.env.REENTRY_RECEIVER_ORIGIN ?? "https://
|
|
37
|
+
const DEFAULT_RECEIVER_ORIGIN = process.env.REENTRY_RECEIVER_ORIGIN ?? "https://re-entry-weld.vercel.app";
|
|
38
38
|
const DEFAULT_POLL_INTERVAL_MS = 5_000;
|
|
39
39
|
const DEFAULT_MAX_CONSECUTIVE_ERRORS = 5;
|
|
40
40
|
const DEFAULT_PAIRING_REQUEST_TIMEOUT_MS = 20_000;
|
|
@@ -307,7 +307,7 @@ async function connect(flags, ui, options = {}) {
|
|
|
307
307
|
baseUrl: receiver,
|
|
308
308
|
requestTimeoutMs: DEFAULT_PAIRING_REQUEST_TIMEOUT_MS,
|
|
309
309
|
});
|
|
310
|
-
const portalUrl = `${receiver}/register?
|
|
310
|
+
const portalUrl = `${receiver}/user-register?next=${encodeURIComponent("/dashboard")}`;
|
|
311
311
|
if (ui.interactive) {
|
|
312
312
|
ui.stopWait("Secure link", "ready");
|
|
313
313
|
ui.info("Re-entry", portalUrl);
|