@north-light/cli 0.3.434 → 0.3.436
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/dist/builtin-memory/crouter-sdk/guides/apps-on-northlight.md +3 -4
- package/dist/clients/attach/viewer.js +545 -545
- package/dist/commands/doc/edit.js +1 -1
- package/dist/commands/sys/daemon.js +1 -1
- package/dist/commands/sys/join.js +1 -1
- package/dist/core/directory/join-lock.d.ts +13 -0
- package/dist/core/directory/join-lock.js +1 -0
- package/dist/core/directory/join.d.ts +23 -1
- package/dist/core/directory/join.js +1 -1
- package/dist/core/grants/sync.js +1 -1
- package/dist/core/io.js +5 -5
- package/dist/daemon/api/handlers/docs.js +1 -1
- package/dist/daemon/crtrd.js +1 -1
- package/dist/daemon/manage.d.ts +14 -1
- package/dist/daemon/manage.js +2 -2
- package/docs/cli/documents-and-preferences.md +1 -1
- package/docs/sdk/guides/apps-on-northlight.md +3 -4
- package/package.json +2 -2
- package/packages/crouter-identity/package.json +1 -1
- package/runtime.lock.json +12 -12
|
@@ -25,19 +25,18 @@ The example app texts you, so it asks for the `sms` provider's `sms:send` scope.
|
|
|
25
25
|
|
|
26
26
|
Open `https://account.northlight.ai/signup` and create your account. Signup texts a confirmation code to your phone, and that text is sent over iMessage, so use a phone number that has iMessage. A number that cannot receive iMessage gets "We couldn't send the text", and retrying does not help. One phone number belongs to one account.
|
|
27
27
|
|
|
28
|
-
Install the CLI (`npm i -g @north-light/cli`). Joining needs `crtr` 0.3.
|
|
28
|
+
Install the CLI (`npm i -g @north-light/cli`). Joining needs `crtr` 0.3.434 or later (older versions need `crtr sys daemon stop` first and fail if a viewer is open); `crtr --version` shows yours.
|
|
29
29
|
|
|
30
30
|
Then join your laptop to the account:
|
|
31
31
|
|
|
32
32
|
1. Open `https://account.northlight.ai/account/machines` and choose **Create join token**. A token needs a sign-in within the last 10 minutes, so the page asks you to sign in again if yours is older.
|
|
33
|
-
2. The page shows
|
|
33
|
+
2. The page shows the join command with the token filled in. On your laptop, run it from a plain terminal: `crtr sys join --directory https://account.northlight.ai --token <token>`. Leave your crtr windows open: join stops the daemon itself, holds it down while it writes your identity (so an open viewer cannot restart it early), and starts it again on the joined settings. Run it outside any crtr node, because a node's engine stops with the daemon; from inside one, join refuses with `join_inside_node`. Add `--name <label>` to name the machine on the page. The token works once and expires at the time the page shows; the page shows it only once.
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
crtr sys daemon stop
|
|
37
36
|
crtr sys join --directory https://account.northlight.ai --token <token> --name my-laptop
|
|
38
37
|
```
|
|
39
38
|
|
|
40
|
-
It answers with `registered: true`, the machine id (`runtime:<id>`)
|
|
39
|
+
It answers with `registered: true`, the machine id (`runtime:<id>`), your user id and `daemon: restarted` (`daemon: not_running` when crtr was not running; the next crtr command starts it). Your open viewers and nodes reconnect on their own.
|
|
41
40
|
3. Check it: `crtr cloud apps mine` lists the apps you manage. Before you have joined, it answers `not_joined` and prints these same steps.
|
|
42
41
|
|
|
43
42
|
Things to know before you join:
|