@nervur.org/genome 0.37.1 → 0.37.3
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/docs/authoring.md +13 -15
- package/docs/changelog.md +13 -7
- package/docs/guide.md +15 -22
- package/genome/boot/boot.js +1 -2
- package/genome/brain/genome.d.ts +1 -1
- package/genome/brain/genome.js +1 -1
- package/genome/brain/guide.js +2 -2
- package/genome/brain/index.d.ts +0 -1
- package/genome/brain/index.js +0 -1
- package/genome/brain/references.d.ts +0 -1
- package/genome/brain/references.js +1 -9
- package/genome/entry/halves.js +13 -4
- package/genome/faculties/ear/blueprint.js +1 -1
- package/genome/faculties/ear/text.js +1 -1
- package/genome/faculties/library/blueprint.js +1 -1
- package/genome/faculties/library/text.js +1 -1
- package/genome/faculties/mouth/blueprint.js +1 -1
- package/genome/faculties/mouth/text.js +1 -1
- package/genome/faculties/scheduler/blueprint.js +1 -1
- package/genome/faculties/scheduler/text.js +1 -1
- package/genome/organism/made.d.ts +1 -1
- package/genome/organism/made.js +2 -0
- package/genome/organism/organism.js +2 -2
- package/genome/pure/halves.js +2 -1
- package/genome/store/held.d.ts +2 -0
- package/genome/store/held.js +41 -0
- package/genome/store/open.d.ts +2 -1
- package/genome/store/open.js +14 -7
- package/genome/store/outside.d.ts +1 -1
- package/genome/store/outside.js +2 -1
- package/genome/store/schema.d.ts +1 -1
- package/genome/store/schema.js +1 -1
- package/genome/store/store.d.ts +2 -1
- package/genome/store/store.js +6 -3
- package/genome/store/witness.d.ts +1 -0
- package/genome/store/witness.js +1 -1
- package/package.json +1 -1
- package/standard/version.js +1 -1
package/docs/authoring.md
CHANGED
|
@@ -156,9 +156,9 @@ nervur install
|
|
|
156
156
|
nervur state
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
`nervur install` takes the package from the registry your npm names, npm's own by default
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
`nervur install` takes the package from the registry your npm names, npm's own by default. `--channel <registry>`
|
|
160
|
+
names another registry for one install or update, a mirror of your own. The organism never updates itself: a new
|
|
161
|
+
version lands when you run `nervur update`, or ask `upgrade` from afar.
|
|
162
162
|
|
|
163
163
|
Where Node belongs to root, make npm's global folder your account's first: `npm config set prefix ~/.nervur/installer`,
|
|
164
164
|
with `~/.nervur/installer/bin` on your `PATH`.
|
|
@@ -499,7 +499,8 @@ always take a far anchor back by dropping it.
|
|
|
499
499
|
so a secret stays out of the shell's history:
|
|
500
500
|
`nervur lobe <repo> setToken '{"name":"NPM_TOKEN"}' --text value=token.txt`. `--json` prints each answer as data, for
|
|
501
501
|
programs. `--follow`, on `ask` and `lobe`, waits for the end of a job the answer names, printing the job whole and
|
|
502
|
-
exiting on its code. `--home <folder>` names
|
|
502
|
+
exiting on its code. `--home <folder>` names a test's organism, under the host's temporary folder alone: an account
|
|
503
|
+
holds one organism, in its home, and the command refuses a second anywhere else.
|
|
503
504
|
|
|
504
505
|
### The brain's asks
|
|
505
506
|
|
|
@@ -586,17 +587,14 @@ own guide.
|
|
|
586
587
|
it, even where the host lets the organism go meanwhile, as an edge does when idle. Every relation to the brain ends,
|
|
587
588
|
and the anchor is taken anew.
|
|
588
589
|
- **An update** is tried before it is kept: `nervur update [version] [digest]` stops the organism, a run going lost
|
|
589
|
-
to it as to a crash, keeps the old package and store aside, boots the new version in place on
|
|
590
|
-
as a trial with the world held,
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
machine no one is present at, laid with `--claim`. A version older than
|
|
594
|
-
afar: `upgrade {version, digest}`.
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
(`--package`) has no channel and checks nothing. A start, a trial and a stop wait on the process's silence, so an
|
|
598
|
-
organism whose store takes long to open is waited for. A browser and a phone try each version at its first boot
|
|
599
|
-
against a copy of the store, an edge when laid again.
|
|
590
|
+
to it as to a crash, keeps the old package and the store's log aside, boots the new version in place on the store
|
|
591
|
+
itself as a trial with the world held, which writes nothing of the store but its log and the values it lays, and
|
|
592
|
+
keeps it or brings the old back by itself, so an update copies nothing of the store, whatever its size; that boot
|
|
593
|
+
moves the installer's organs and the lobes on its faculties, and the update says what moved and what stayed, run
|
|
594
|
+
again where one stayed. It is the same on a machine no one is present at, laid with `--claim`. A version older than
|
|
595
|
+
the one running is a move onto it. From afar: `upgrade {version, digest}`. Nothing else moves it: an organism never
|
|
596
|
+
updates itself. A start, a trial and a stop wait on the process's silence, so an organism whose store takes long to
|
|
597
|
+
open is waited for. A browser and a phone try each version at its first boot the same way, an edge when laid again.
|
|
600
598
|
- **The way back** always stands: `nervur stop`, then `nervur start --floor`, lays the console and window the installer
|
|
601
599
|
ships, whatever skin was chosen, and the window wears the installer's design again, whatever design was worn: the
|
|
602
600
|
design lobe that was worn stands, and is worn again from the home.
|
package/docs/changelog.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.37.
|
|
3
|
+
## 0.37.3
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
An organism no longer updates itself. Before, its process asked its registry as it started and every hour, and moved
|
|
6
|
+
onto any newer version by itself; now a version lands only where its owner names it, by `nervur update` on the
|
|
7
|
+
machine or `upgrade` from afar, and nothing in the organism asks for a newer one. The file `organism.channel` it kept
|
|
8
|
+
for that is gone.
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
The floor rises to 0.37.2, and no installer carries an older release any more. Before, an update of an organism below
|
|
11
|
+
the floor walked it through each older floor's release, laying its store aside and copying it for them; now a store,
|
|
12
|
+
a backup or a move from below 0.37.2 is refused as it stands, nothing opened: update it to 0.37.2 first, then to this
|
|
13
|
+
version. Every organism on 0.37.2 updates as before.
|
|
14
|
+
|
|
15
|
+
An account holds one organism. Before, `--home` laid an organism in any folder, so one account could run several,
|
|
16
|
+
each able to read every other's keys and store; now `--home` names a test's organism and is refused outside the
|
|
17
|
+
host's temporary folder. A second organism takes an account of its own.
|
package/docs/guide.md
CHANGED
|
@@ -353,32 +353,25 @@ a **body** of its own, a second account where its organs run, so none sees anoth
|
|
|
353
353
|
each person's two accounts once, and the person installs alone. Authoring's _A server_ says what each of the
|
|
354
354
|
administrator and the person does, for a machine you own, one you hold an account on, and one laid for you.
|
|
355
355
|
|
|
356
|
-
A new version is tried before it is kept:
|
|
357
|
-
and the
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
owned at its console. Until 1.0.0 it is
|
|
361
|
-
the body has going is lost to it as to a crash, and its lobe told so. What the installer ships, its
|
|
362
|
-
its faculties, moves at the new version's first boot, a lobe an owner moved to a later version
|
|
363
|
-
`upgrade` names a version and its digest, and nothing else lands.
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
longest wait, or ends unasked, fails the step with why.
|
|
356
|
+
A new version is tried before it is kept: it boots in place on the store itself, held, writing nothing of it but its
|
|
357
|
+
log and the values it lays, so the store's log as it stood is the whole way back, kept aside with the old package on a
|
|
358
|
+
machine. Nothing of the store is copied, and an update costs what its own moves change, never the size of the store;
|
|
359
|
+
the version boots with the world held, and it is kept or the old comes back by itself. The update asks nothing of the
|
|
360
|
+
organism but its stop, so it moves one no one is present at as it moves one owned at its console. Until 1.0.0 it is
|
|
361
|
+
abrupt: a run the body has going is lost to it as to a crash, and its lobe told so. What the installer ships, its
|
|
362
|
+
organs' halves and its faculties, moves at the new version's first boot, a lobe an owner moved to a later version
|
|
363
|
+
staying. From afar `upgrade` names a version and its digest, and nothing else lands. An organism never moves itself:
|
|
364
|
+
a version lands only where an owner names it, and nothing asks for a newer one on a clock. A start, a trial and a
|
|
365
|
+
stop wait on the organism's silence, never on a span: while it opens or ends it tells it lives, so a store that takes
|
|
366
|
+
long to open is waited for, and a process that tells nothing for the longest wait, or ends unasked, fails the step
|
|
367
|
+
with why.
|
|
369
368
|
|
|
370
369
|
Two moves stand apart. A faculty's new version is its author's: its `migrate` converts its own cells by its own logic,
|
|
371
370
|
and Nervur only runs it. Nervur's own new version knows no faculty, and from 1.0.0 breaks no contract one stands on.
|
|
372
371
|
Until 1.0.0 Nervur goes forward only: a genome names its floor, `FLOOR`, the oldest release whose store it carries
|
|
373
|
-
forward, and refuses a store a genome below it last booted, saying to move to the floor first
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
the update says why. On a machine, `nervur update` walks the floors in turn, and a backup from below the floor is
|
|
377
|
-
restored by the floor's own release, then updated. Each floor carries its own, so no machine's organism is stranded,
|
|
378
|
-
however long it slept. A browser and a phone carry no earlier release beside their files: their floor is the release a
|
|
379
|
-
site or an app serves, so a store a release below the genome's floor kept, and a backup or a move laid there that a
|
|
380
|
-
release below it wrote, is refused as it stands, saying the installer carries no floor, nothing opened and the store
|
|
381
|
-
untouched.
|
|
372
|
+
forward, and refuses a store a genome below it last booted, saying to move to the floor first: update it to the
|
|
373
|
+
floor's release, then to the newest. No installer carries an older release to do that for you, so a store, a backup
|
|
374
|
+
or a move from below the floor is refused as it stands, nothing opened and the store untouched.
|
|
382
375
|
|
|
383
376
|
## The floor and the licence
|
|
384
377
|
|
package/genome/boot/boot.js
CHANGED
|
@@ -4,7 +4,7 @@ import { } from '#faculty';
|
|
|
4
4
|
import { EAR_SOURCE, LIBRARY_SOURCE, MOUTH_SOURCE, SCHEDULER_SOURCE } from '../defaults/index.js';
|
|
5
5
|
import { keysOf, makeWard, wardSeed, } from '#quo';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { keepGenome, layGenome, owned, sharePresent, unreadRows } from '../brain/index.js';
|
|
8
8
|
|
|
9
9
|
import { forgiveLetters, writeDurable, } from '../carry/index.js';
|
|
10
10
|
import { PAGE } from '../cells/index.js';
|
|
@@ -196,7 +196,6 @@ export const boot = async (
|
|
|
196
196
|
if (gear.stays === true) written(cells.delete(['moved']));
|
|
197
197
|
const backwards = keepGenome(cells);
|
|
198
198
|
if (backwards !== null) return backwards;
|
|
199
|
-
carryReferences(cells);
|
|
200
199
|
const map = mapOf(cells);
|
|
201
200
|
const library = cellsOf(cache, LIBRARY, true);
|
|
202
201
|
const shelves = { brain: cells, library };
|
package/genome/brain/genome.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ import { type Cells } from '#cage';
|
|
|
3
3
|
export declare const isLater: (one: string, other: string) => boolean;
|
|
4
4
|
export declare const genomeIn: (cells: Cells) => string;
|
|
5
5
|
export declare const layGenome: (cells: Cells) => void;
|
|
6
|
-
export declare const FLOOR = "0.
|
|
6
|
+
export declare const FLOOR = "0.37.2";
|
|
7
7
|
export declare const BELOW_FLOOR = "below the floor";
|
|
8
8
|
export declare const keepGenome: (cells: Cells) => null | Why;
|
package/genome/brain/genome.js
CHANGED