@nervur-org/dock 0.4.0 → 0.4.1
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/GETTING_STARTED.md +3 -3
- package/package.json +1 -1
- package/quo-dock.md +5 -5
package/GETTING_STARTED.md
CHANGED
|
@@ -88,11 +88,11 @@ ward, never held.
|
|
|
88
88
|
|
|
89
89
|
```bash
|
|
90
90
|
npm install @nervur-org/dock
|
|
91
|
-
npx nervur init --dir ~/.nervur --ward acme --user
|
|
91
|
+
npx nervur init --dir ~/.nervur --ward acme --user ana --domain acme.com --default --show
|
|
92
92
|
npx nervur serve --dir ~/.nervur --http 8787
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
`init` mints the ward `acme`, boots
|
|
95
|
+
`init` mints the ward `acme`, boots ana's user being, her doorbell and
|
|
96
96
|
the desk in it, marks it the default ward and shows it at the web route,
|
|
97
97
|
and writes `routes.json`, the four routes of a box, `mcp.`, `web.`, `quo.`
|
|
98
98
|
and `api.` under the domain, for a proxy to map onto the one loopback
|
|
@@ -107,7 +107,7 @@ at one loopback address:
|
|
|
107
107
|
command is its client. From a second terminal, a phone:
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
|
-
npx nervur invite --dir ~/.nervur '{"being":"
|
|
110
|
+
npx nervur invite --dir ~/.nervur '{"being":"ana","id":"phone"}'
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
The answer carries `link`, the ward's page with the invitation in its
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nervur-org/dock",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "The dock: what every estate on Quo needs and nobody writes twice. A daemon and the nervur command, the front desk, the user being and the avatar, harbors on disk, in a tab and on the edge, the model sides and the screen.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"quo",
|
package/quo-dock.md
CHANGED
|
@@ -76,11 +76,11 @@ reads `NERVUR_DIR`, or takes `~/.nervur`.
|
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
78
|
npm install @nervur-org/dock
|
|
79
|
-
npx nervur init --dir ~/.nervur --ward acme --user
|
|
79
|
+
npx nervur init --dir ~/.nervur --ward acme --user ana --domain acme.com --default --show
|
|
80
80
|
npx nervur serve --dir ~/.nervur --http 8787
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
`init` mints the ward `acme` at `~/.nervur/wards/acme/`, boots
|
|
83
|
+
`init` mints the ward `acme` at `~/.nervur/wards/acme/`, boots ana's user
|
|
84
84
|
being, her doorbell and the desk in it, marks it the default ward, the one
|
|
85
85
|
a caller means when naming none, shows it at the web route, and writes
|
|
86
86
|
`routes.json`: the four routes `mcp.`, `web.`, `quo.` and `api.` under the
|
|
@@ -105,7 +105,7 @@ it hosts, and one of them is `dock`, the box's own, which it boots and no
|
|
|
105
105
|
init made. From a second terminal:
|
|
106
106
|
|
|
107
107
|
```bash
|
|
108
|
-
npx nervur invite --dir ~/.nervur '{"being":"
|
|
108
|
+
npx nervur invite --dir ~/.nervur '{"being":"ana","id":"phone"}'
|
|
109
109
|
npx nervur census --dir ~/.nervur
|
|
110
110
|
```
|
|
111
111
|
|
|
@@ -158,7 +158,7 @@ fields without the `link`:
|
|
|
158
158
|
```bash
|
|
159
159
|
npx nervur reach --dir B <pk of A> http://127.0.0.1:8787/quo
|
|
160
160
|
npx nervur invite --dir A '{"being":"<pk of A>","id":"b"}'
|
|
161
|
-
npx nervur knock --dir B '{"being":"
|
|
161
|
+
npx nervur knock --dir B '{"being":"ana","id":"a","invitation":{"ward":"…","heir":"…","secret":"…"}}'
|
|
162
162
|
npx nervur census --dir B --via a
|
|
163
163
|
```
|
|
164
164
|
|
|
@@ -216,7 +216,7 @@ what runs on a schedule runs on a box that has one.
|
|
|
216
216
|
|
|
217
217
|
```bash
|
|
218
218
|
R='http://127.0.0.1:8931/h/main/root'; H='authorization: Bearer <secret>'
|
|
219
|
-
curl -s -X POST $R -H "$H" -H 'content-type: application/json' -d '{"init":{"ward":"main","user":"
|
|
219
|
+
curl -s -X POST $R -H "$H" -H 'content-type: application/json' -d '{"init":{"ward":"main","user":"ana"}}'
|
|
220
220
|
curl -s -X POST $R -H "$H" -H 'content-type: application/json' -d '{}'
|
|
221
221
|
curl -s -X POST $R -H "$H" -H 'content-type: application/json' -d '{"method":"invite","args":{"being":"<pk>","id":"mac"}}'
|
|
222
222
|
```
|