@nervur.org/floor 0.37.9 → 0.37.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 CHANGED
@@ -2,12 +2,14 @@
2
2
 
3
3
  Nervur's floor: the faculties a stranger needs on the first day, on every host. 0.x, unstable.
4
4
 
5
- It gives each faculty's source as it ships and what a port names of it in its configuration, as data that runs nothing:
5
+ It gives what a port names of each faculty in its configuration, as data that runs nothing, its source as it ships
6
+ as `faculty`:
6
7
 
7
- - `TERMINAL`, `TERMINAL_SOURCE`: `nervur.terminal`, the console's skin, its label and its wiring;
8
- - `WINDOW`, `WINDOW_SOURCE`: `nervur.window`, the screen's skin, its label and its wiring;
9
- - `REPOS`, `REPOS_SOURCE`, `REPOS_PROGRAMS`: `nervur.repos`, the jailer, and the programs it runs;
10
- - `REPO`, `REPO_SOURCE`: `nervur.repo`, every repo lobe's faculty.
8
+ - `TERMINAL`: `nervur.terminal`, the console's skin, its label and its wiring;
9
+ - `WINDOW`: `nervur.window`, the screen's skin, its label, its wiring and the floor's design, `given.design`, its look
10
+ as `faculty` and its data by path as `assets`;
11
+ - `REPOS`: `nervur.repos`, the jailer, and its label;
12
+ - `REPO`: `nervur.repo`, every repo lobe's faculty.
11
13
 
12
14
  `@nervur.org/floor/evidence` gives each one's evidence: `CONSOLE_EVIDENCE`, `SCREEN_EVIDENCE`, `REPOS_EVIDENCE` and
13
15
  `REPO_EVIDENCE`.
package/design.js CHANGED
@@ -246,21 +246,6 @@ var closed = (properties, required) => ({
246
246
  required: [...required],
247
247
  additionalProperties: false
248
248
  });
249
- var LEAVE = {
250
- ...closed({ press: PRESS, say: TEXT }, ["press", "say"]),
251
- description: 'Where the place is a far lobe the home holds: `press`, `{method: "leave", args: {relation}}`, gives the standing up once the person consents in the surround, and `say` is the home’s word for it, which a design says where it writes none of its own.'
252
- };
253
- var SCREEN_WAY = {
254
- ...closed(
255
- {
256
- at: { enum: ["top-start", "top-end", "bottom-start", "bottom-end"] },
257
- say: { ...TEXT, description: "The way out home, in the home’s word." },
258
- leave: LEAVE
259
- },
260
- ["at"]
261
- ),
262
- description: "The host lays it above the page, at `at`, outside every tree, the floor’s window handing `bottom-end`: `say` walks home (`open {route: []}`), and `leave` is the place’s leave, which forces no surround; the surround is drawn while its consent is asked."
263
- };
264
249
  var PATH = {
265
250
  type: "string",
266
251
  description: "The route as text, the address a link names (`/~/AB12`, `/org/CD34`)."
@@ -792,8 +777,8 @@ var PUBLISHER = /^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/u;
792
777
  var VERSION = /^(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/u;
793
778
  var MODULE = /^components\/(.+\.(?:ts|js))$/u;
794
779
  var TEST = /\.test\.(?:ts|js)$/u;
795
- var IN_LOOK = (path) => path === "DESIGN.md" || path === "versions.json" || path.startsWith("components/") || path.startsWith("words/");
796
- var designData = (files) => Object.entries(files).filter(([path]) => !IN_LOOK(path)).toSorted(([one], [other]) => one < other ? -1 : Number(one > other));
780
+ var IS_DATA = (path) => path !== "DESIGN.md" && path !== "versions.json" && !path.startsWith("components/") && !path.startsWith("words/") && !path.split("/").some((name) => name.startsWith("."));
781
+ var designData = (files) => Object.entries(files).filter(([path]) => IS_DATA(path)).toSorted(([one], [other]) => one < other ? -1 : Number(one > other));
797
782
  var shaOf = (bytes) => createHash("sha256").update(bytes).digest("hex");
798
783
  var designAssets = (files) => {
799
784
  const assets = designData(files).map(([path, file]) => [path, shaOf(canonical(file))]);
@@ -1004,7 +989,6 @@ var ATTRIBUTES = {
1004
989
  export {
1005
990
  ATTRIBUTES,
1006
991
  SCREEN_COMPONENTS,
1007
- SCREEN_WAY,
1008
992
  buildLook,
1009
993
  designAssets,
1010
994
  designData