nervur 0.23.1-2 → 0.24.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/CONTRIBUTING.md +13 -0
- package/LICENSE +55 -202
- package/NOTICE +3 -8
- package/README.md +14 -161
- package/RELEASING.md +15 -0
- package/SECURITY.md +9 -0
- package/bin/nervur.js +6 -0
- package/package.json +26 -90
- package/AUTHORING.md +0 -913
- package/COMMAND.md +0 -179
- package/FACES.md +0 -280
- package/FACULTIES.md +0 -761
- package/GROUNDS.md +0 -345
- package/KIT-SPEC.md +0 -316
- package/WORLD.md +0 -195
- package/dist/app/app-ground.d.ts +0 -20
- package/dist/app/app-ground.js +0 -24
- package/dist/app/index.d.ts +0 -2
- package/dist/app/index.js +0 -5
- package/dist/app/native.d.ts +0 -11
- package/dist/app/native.js +0 -13
- package/dist/being/being.d.ts +0 -317
- package/dist/being/being.js +0 -20
- package/dist/being/covers.d.ts +0 -9
- package/dist/being/covers.js +0 -21
- package/dist/being/dock-pilot.d.ts +0 -305
- package/dist/being/dock-pilot.js +0 -69
- package/dist/being/index.d.ts +0 -5
- package/dist/being/index.js +0 -7
- package/dist/being/need.d.ts +0 -54
- package/dist/being/need.js +0 -29
- package/dist/being/schema.d.ts +0 -100
- package/dist/being/schema.js +0 -132
- package/dist/being/table.d.ts +0 -54
- package/dist/being/table.js +0 -360
- package/dist/bench/bench-ground.d.ts +0 -79
- package/dist/bench/bench-ground.js +0 -206
- package/dist/bench/bench.d.ts +0 -174
- package/dist/bench/bench.js +0 -964
- package/dist/bench/fake-clock.d.ts +0 -17
- package/dist/bench/fake-clock.js +0 -34
- package/dist/bench/fake-memory.d.ts +0 -16
- package/dist/bench/fake-memory.js +0 -46
- package/dist/bench/fake-network.d.ts +0 -66
- package/dist/bench/fake-network.js +0 -222
- package/dist/bench/fake-unlock.d.ts +0 -6
- package/dist/bench/fake-unlock.js +0 -10
- package/dist/bench/index.d.ts +0 -3
- package/dist/bench/index.js +0 -5
- package/dist/bench/seeded.d.ts +0 -11
- package/dist/bench/seeded.js +0 -37
- package/dist/bench/settle.d.ts +0 -10
- package/dist/bench/settle.js +0 -128
- package/dist/bench/stand-in.d.ts +0 -17
- package/dist/bench/stand-in.js +0 -56
- package/dist/bench/stewards.d.ts +0 -167
- package/dist/bench/stewards.js +0 -157
- package/dist/bodies/class-list.d.ts +0 -26
- package/dist/bodies/class-list.js +0 -87
- package/dist/bodies/joined-carry.d.ts +0 -29
- package/dist/bodies/joined-carry.js +0 -48
- package/dist/bodies/kept.d.ts +0 -44
- package/dist/bodies/kept.js +0 -91
- package/dist/bodies/noble-crypto.d.ts +0 -27
- package/dist/bodies/noble-crypto.js +0 -93
- package/dist/bodies/seed-keys.d.ts +0 -10
- package/dist/bodies/seed-keys.js +0 -42
- package/dist/bodies/strict-tools.d.ts +0 -15
- package/dist/bodies/strict-tools.js +0 -314
- package/dist/bodies/vouch.d.ts +0 -20
- package/dist/bodies/vouch.js +0 -71
- package/dist/bodies/web-carry.d.ts +0 -72
- package/dist/bodies/web-carry.js +0 -245
- package/dist/bodies/web-clock.d.ts +0 -17
- package/dist/bodies/web-clock.js +0 -40
- package/dist/browser/browser-ground.d.ts +0 -84
- package/dist/browser/browser-ground.js +0 -282
- package/dist/browser/index.d.ts +0 -4
- package/dist/browser/index.js +0 -7
- package/dist/browser/indexeddb-memory.d.ts +0 -17
- package/dist/browser/indexeddb-memory.js +0 -97
- package/dist/browser/locked-unlock.d.ts +0 -24
- package/dist/browser/locked-unlock.js +0 -85
- package/dist/browser/origin-classes.d.ts +0 -9
- package/dist/browser/origin-classes.js +0 -31
- package/dist/edge/durable-clock.d.ts +0 -19
- package/dist/edge/durable-clock.js +0 -61
- package/dist/edge/durable-memory.d.ts +0 -5
- package/dist/edge/durable-memory.js +0 -11
- package/dist/edge/durable.d.ts +0 -18
- package/dist/edge/durable.js +0 -24
- package/dist/edge/edge-ground.d.ts +0 -51
- package/dist/edge/edge-ground.js +0 -219
- package/dist/edge/index.d.ts +0 -7
- package/dist/edge/index.js +0 -9
- package/dist/edge/native-crypto.d.ts +0 -8
- package/dist/edge/native-crypto.js +0 -102
- package/dist/edge/secret-unlock.d.ts +0 -7
- package/dist/edge/secret-unlock.js +0 -13
- package/dist/edge/socket-carry.d.ts +0 -39
- package/dist/edge/socket-carry.js +0 -111
- package/dist/faculty.d.ts +0 -146
- package/dist/faculty.js +0 -71
- package/dist/foundation.d.ts +0 -194
- package/dist/foundation.js +0 -16
- package/dist/ground/dock.d.ts +0 -1418
- package/dist/ground/dock.js +0 -1533
- package/dist/ground/entry.d.ts +0 -1
- package/dist/ground/entry.js +0 -31
- package/dist/ground/forwarding.d.ts +0 -28
- package/dist/ground/forwarding.js +0 -60
- package/dist/ground/ground.d.ts +0 -222
- package/dist/ground/ground.js +0 -1215
- package/dist/ground/inside.d.ts +0 -25
- package/dist/ground/inside.js +0 -265
- package/dist/ground/runner.d.ts +0 -32
- package/dist/ground/runner.js +0 -418
- package/dist/ground/views.d.ts +0 -76
- package/dist/ground/views.js +0 -208
- package/dist/house/crossing.d.ts +0 -50
- package/dist/house/crossing.js +0 -153
- package/dist/house/house.d.ts +0 -105
- package/dist/house/house.js +0 -2333
- package/dist/house/rows-shape.d.ts +0 -125
- package/dist/house/rows-shape.js +0 -12
- package/dist/house/rows.d.ts +0 -27
- package/dist/house/rows.js +0 -185
- package/dist/index.d.ts +0 -35
- package/dist/index.js +0 -32
- package/dist/node/bridge.d.ts +0 -20
- package/dist/node/bridge.js +0 -284
- package/dist/node/cli.d.ts +0 -2
- package/dist/node/cli.js +0 -225
- package/dist/node/file-memory.d.ts +0 -13
- package/dist/node/file-memory.js +0 -86
- package/dist/node/folder-classes.d.ts +0 -7
- package/dist/node/folder-classes.js +0 -26
- package/dist/node/gone.d.ts +0 -2
- package/dist/node/gone.js +0 -7
- package/dist/node/hand.d.ts +0 -39
- package/dist/node/hand.js +0 -107
- package/dist/node/http.d.ts +0 -11
- package/dist/node/http.js +0 -90
- package/dist/node/index.d.ts +0 -11
- package/dist/node/index.js +0 -13
- package/dist/node/ledger-memory.d.ts +0 -17
- package/dist/node/ledger-memory.js +0 -152
- package/dist/node/lock.d.ts +0 -10
- package/dist/node/lock.js +0 -78
- package/dist/node/node-ground.d.ts +0 -26
- package/dist/node/node-ground.js +0 -205
- package/dist/node/notify.d.ts +0 -1
- package/dist/node/notify.js +0 -18
- package/dist/node/shell.d.ts +0 -11
- package/dist/node/shell.js +0 -35
- package/dist/node/sync-folder.d.ts +0 -6
- package/dist/node/sync-folder.js +0 -18
- package/dist/node/tcp-carry.d.ts +0 -42
- package/dist/node/tcp-carry.js +0 -193
- package/dist/node/unlock.d.ts +0 -17
- package/dist/node/unlock.js +0 -86
- package/dist/node/websocket.d.ts +0 -12
- package/dist/node/websocket.js +0 -134
- package/dist/quo/frame.d.ts +0 -33
- package/dist/quo/frame.js +0 -92
- package/dist/quo/index.d.ts +0 -1
- package/dist/quo/index.js +0 -5
- package/dist/quo/room.d.ts +0 -154
- package/dist/quo/room.js +0 -362
- package/dist/serve/index.d.ts +0 -45
- package/dist/serve/index.js +0 -71
- package/source.mjs +0 -56
- package/test.mjs +0 -151
- package/tsconfig.base.json +0 -29
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Contributing to nervur
|
|
2
|
+
|
|
3
|
+
Nervur keeps its libraries on Nervur. A change to nervur is an ask to its
|
|
4
|
+
development lobe, in nervur.org's organism: whoever holds a relation to that
|
|
5
|
+
lobe asks it a change with an order, and its keeper works on the library
|
|
6
|
+
alone, its own tests the fixed point, the gate holding before every commit.
|
|
7
|
+
Until that lobe stands, the library is kept by Nervur's own keepers, and a
|
|
8
|
+
change is proposed to them at hello@nervur.org. A flaw of security goes to
|
|
9
|
+
security@nervur.org, as SECURITY.md says.
|
|
10
|
+
|
|
11
|
+
What a change holds: a test that proves it first, then the code, and the
|
|
12
|
+
gate green, `npm run gate` from this folder. A change that breaks what the
|
|
13
|
+
package exports raises the minor, as RELEASING.md says.
|
package/LICENSE
CHANGED
|
@@ -1,202 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
-
|
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
-
subsequently incorporated within the Work.
|
|
66
|
-
|
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
|
73
|
-
|
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright 2026 Bookarest Digital SRL
|
|
191
|
-
|
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
you may not use this file except in compliance with the License.
|
|
194
|
-
You may obtain a copy of the License at
|
|
195
|
-
|
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
|
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
See the License for the specific language governing permissions and
|
|
202
|
-
limitations under the License.
|
|
1
|
+
Apache License
|
|
2
|
+
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
16
|
+
|
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
18
|
+
|
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
20
|
+
|
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
22
|
+
|
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
24
|
+
|
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
26
|
+
|
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
28
|
+
|
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
30
|
+
|
|
31
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
32
|
+
|
|
33
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
34
|
+
|
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
36
|
+
|
|
37
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
38
|
+
|
|
39
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
40
|
+
|
|
41
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
42
|
+
|
|
43
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
46
|
+
|
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
48
|
+
|
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
50
|
+
|
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
52
|
+
|
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
54
|
+
|
|
55
|
+
END OF TERMS AND CONDITIONS
|
package/NOTICE
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
nervur
|
|
2
2
|
Copyright 2026 Bookarest Digital SRL
|
|
3
3
|
|
|
4
|
-
This product
|
|
5
|
-
|
|
6
|
-
Nervur is a kit of Quo, the protocol at https://quo.systems, which is
|
|
7
|
-
Razvan Gherghina's and licensed separately under the Apache License,
|
|
8
|
-
Version 2.0. Quo is not this product.
|
|
9
|
-
|
|
10
|
-
Licensed under the Apache License, Version 2.0. See LICENSE for the terms.
|
|
4
|
+
This product is part of Nervur, https://nervur.org, licensed under the
|
|
5
|
+
Apache License, Version 2.0, which LICENSE holds.
|
package/README.md
CHANGED
|
@@ -1,172 +1,25 @@
|
|
|
1
1
|
# nervur
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Install it with `npm i nervur`. It runs on Node 22.18 or later. The API
|
|
8
|
-
moves until 1.0.0.
|
|
9
|
-
[Reading a world](WORLD.md) reads a real situation into the four pieces.
|
|
10
|
-
[Writing a species](AUTHORING.md) teaches beings and how to prove them.
|
|
11
|
-
[Writing a faculty](FACULTIES.md) teaches faculties, in any language.
|
|
12
|
-
[Faces](FACES.md) teaches the sites, APIs and tools people reach a being
|
|
13
|
-
through. [Grounds](GROUNDS.md) says what each terrain's ground does, and
|
|
14
|
-
[the command](COMMAND.md) drives one on your machine.
|
|
15
|
-
[nervur's answers to KIT-SPEC](KIT-SPEC.md) answers every choice Quo
|
|
16
|
-
leaves to a kit.
|
|
17
|
-
|
|
18
|
-
## Words
|
|
19
|
-
|
|
20
|
-
A **being** is an instance of a class you write. She keeps **cells**,
|
|
21
|
-
which are JSON values, and answers **asks**, which are the methods others
|
|
22
|
-
may call. The **house** holds beings, keeps their cells, and seals every
|
|
23
|
-
ask that crosses its door. A **ground** is the process houses run in. It
|
|
24
|
-
hands each house its keys, somewhere to keep rows, its classes, a way to
|
|
25
|
-
carry bytes, and the **faculties** its beings may call. The ground holds
|
|
26
|
-
one key outside itself, and seals everything else under it: each house's
|
|
27
|
-
seed, its rows and your secrets. No seed ever enters a house.
|
|
28
|
-
|
|
29
|
-
## A being
|
|
30
|
-
|
|
31
|
-
Every ask declares its arguments and its result, and may carry examples.
|
|
32
|
-
The house refuses arguments that do not match.
|
|
33
|
-
|
|
34
|
-
```ts
|
|
35
|
-
// greeter.ts
|
|
36
|
-
import { Being, s, type Args } from 'nervur/being';
|
|
37
|
-
|
|
38
|
-
export class Greeter extends Being.of({
|
|
39
|
-
kind: 'org.example.greeter',
|
|
40
|
-
description: 'Greets whoever asks, and counts them.',
|
|
41
|
-
cells: { greeted: 0 },
|
|
42
|
-
asks: {
|
|
43
|
-
hello: {
|
|
44
|
-
args: s.object({ name: s.string() }),
|
|
45
|
-
result: s.string(),
|
|
46
|
-
examples: [{ given: [{ ask: 'hello', args: { name: 'Bo' } }, { ask: 'hello', args: { name: 'Cy' } }], args: { name: 'Ada' }, gives: { result: 'Hello, Ada. You are number 3.' } }],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
}) {
|
|
50
|
-
hello({ name }: Args<Greeter, 'hello'>) {
|
|
51
|
-
this.cells.greeted += 1;
|
|
52
|
-
return `Hello, ${name}. You are number ${this.cells.greeted}.`;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## A test
|
|
58
|
-
|
|
59
|
-
The bench opens two houses in one process, so every ask crosses a door
|
|
60
|
-
as it would in production. Each house runs in a thread of its own, and
|
|
61
|
-
loads her classes there from the module file the test names.
|
|
62
|
-
`Bench.check` runs every example twice and describes every state to
|
|
63
|
-
every role.
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
// greeter.test.ts
|
|
67
|
-
import assert from 'node:assert/strict';
|
|
68
|
-
import { test } from 'node:test';
|
|
69
|
-
import { Bench } from 'nervur/bench';
|
|
70
|
-
import { Greeter } from './greeter.ts';
|
|
71
|
-
|
|
72
|
-
// Her module, which the bench loads in the house's own runner.
|
|
73
|
-
const module = new URL('./greeter.ts', import.meta.url);
|
|
74
|
-
|
|
75
|
-
test('Greeter keeps her examples and her table', async () => {
|
|
76
|
-
await Bench.check(Greeter, { module });
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
test('Greeter counts whoever she greets', async () => {
|
|
80
|
-
const bench = await Bench.open({ module });
|
|
81
|
-
const greeter = await bench.place(Greeter);
|
|
82
|
-
assert.deepEqual(await greeter.ask('hello', { name: 'Ada' }), { result: 'Hello, Ada. You are number 1.' });
|
|
83
|
-
assert.deepEqual(await greeter.ask('hello', { name: 'Bo' }), { result: 'Hello, Bo. You are number 2.' });
|
|
84
|
-
});
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
## A ground
|
|
88
|
-
|
|
89
|
-
A ground is the process houses run in, and you write none. `nervur up`
|
|
90
|
-
runs one on a folder. Each house's code is a folder of its own, whose
|
|
91
|
-
index names its steward. Here the greeter is the steward.
|
|
92
|
-
|
|
93
|
-
```ts
|
|
94
|
-
// house/index.ts
|
|
95
|
-
export { Greeter as steward } from '../greeter.ts';
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
Run the ground in the folder, and leave it running.
|
|
3
|
+
Nervur's one name. Software becomes organisms: one for every person, group
|
|
4
|
+
and agent, each on a device of its own, all speaking Quo. This package gives
|
|
5
|
+
the `nervur` command, by which a person lays and asks their organism.
|
|
99
6
|
|
|
100
7
|
```bash
|
|
101
|
-
|
|
8
|
+
npm install -g nervur
|
|
102
9
|
```
|
|
103
10
|
|
|
104
|
-
In a second shell, add the house once. The ground keeps its entry as a
|
|
105
|
-
sealed cell of its dock, and opens it again at every start.
|
|
106
|
-
|
|
107
11
|
```bash
|
|
108
|
-
npx nervur
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Then ask the steward through the ground's hand.
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
npx nervur ask main hello name=Ada
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Each ask greets Ada once more, since the count lands in the ground's
|
|
118
|
-
ledger before the answer, and it outlives a restart. The ground keeps
|
|
119
|
-
its key and its ledger in `state/`, readable by you alone. Everything
|
|
120
|
-
in the ledger is sealed under the key. Keep that folder as you keep an
|
|
121
|
-
ssh key: without the key, the ledger opens nothing. `npx nervur help`
|
|
122
|
-
lists everything the ground offers.
|
|
123
|
-
|
|
124
|
-
## A ground in a page
|
|
125
|
-
|
|
126
|
-
The same house runs in a browser. Bundle the house's module and serve it
|
|
127
|
-
on your origin, beside a page that opens the ground.
|
|
128
|
-
|
|
129
|
-
```ts
|
|
130
|
-
// page.ts
|
|
131
|
-
import { BrowserGround } from 'nervur/browser';
|
|
132
|
-
|
|
133
|
-
// Every tab of this origin joins one ground, and the tab holding its lock runs it.
|
|
134
|
-
const ground = await BrowserGround.open();
|
|
135
|
-
|
|
136
|
-
// The house's code is a module on this origin, and its rows rest sealed in IndexedDB.
|
|
137
|
-
await ground.hand({
|
|
138
|
-
method: 'housesAdd',
|
|
139
|
-
args: { name: 'main', classes: { faculty: 'origin', at: '/house/index.js' } },
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
console.log(await ground.hand({ house: 'main', method: 'hello', args: { name: 'Ada' } }));
|
|
12
|
+
npx nervur
|
|
143
13
|
```
|
|
144
14
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
under one the browser never hands out. Any script on the origin can use
|
|
148
|
-
that key, so give the ground an origin of its own, with a strict content
|
|
149
|
-
security policy. The page and the house's module must share one copy of
|
|
150
|
-
`nervur/being`, as a bundler's shared chunk gives.
|
|
151
|
-
|
|
152
|
-
An app on a phone opens the same ground with `AppGround` from
|
|
153
|
-
`nervur/app`, on the Keychain or the Keystore and a store the system
|
|
154
|
-
keeps. [Grounds](GROUNDS.md) shows both.
|
|
155
|
-
|
|
156
|
-
## Entries
|
|
157
|
-
|
|
158
|
-
| Entry | For |
|
|
159
|
-
| --- | --- |
|
|
160
|
-
| `nervur/being` | writing a being: `Being`, `s`, `need`, `tableOf`, `DockPilot`, `GroundHouses`, `Args`, `Result`, `Json`, `Table` |
|
|
161
|
-
| `nervur` | any engine: `Ground`, `House`, `vouchesOf` and the bodies they take |
|
|
162
|
-
| `nervur/node` | a ground on Node: `NodeGround`, the `nervur` command, and its bodies |
|
|
163
|
-
| `nervur/browser` | a ground in a page or its service worker: `BrowserGround` and its bodies |
|
|
164
|
-
| `nervur/edge` | a ground on the edge, a Worker and its Durable Object: `EdgeGround` and its bodies |
|
|
165
|
-
| `nervur/app` | a ground in a phone's app: `AppGround`, and the three interfaces its shell fills: `NativeShell`, `NativeSecrets` and `NativeStore` |
|
|
166
|
-
| `nervur/serve` | a faculty's program in JavaScript: `serve` |
|
|
167
|
-
| `nervur/bench` | tests: `Bench`, `BenchGround` and `FakeNetwork` |
|
|
15
|
+
**0.x is unstable.** Every version before 1.0.0 may change its commands; a
|
|
16
|
+
change that breaks them raises the minor, any other the patch.
|
|
168
17
|
|
|
169
|
-
|
|
18
|
+
It holds no code of Nervur's parts: its command runs the installer of the
|
|
19
|
+
host it is laid on, `@nervur-org/installer-node` on Node, which takes
|
|
20
|
+
`@nervur-org/genome` and `@nervur-org/organs`. `nervur install` lays an
|
|
21
|
+
organism in the account's home, `nervur start` boots it, and `nervur state`
|
|
22
|
+
asks it through its console; `nervur` alone prints every command.
|
|
170
23
|
|
|
171
|
-
|
|
172
|
-
|
|
24
|
+
Versions before 0.24.0 were Nervur's older implementation, and are
|
|
25
|
+
deprecated.
|
package/RELEASING.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Releasing nervur
|
|
2
|
+
|
|
3
|
+
- **Its version** is 0.x until 1.0.0: a change that breaks the surface
|
|
4
|
+
raises the minor, any other the patch. Its notes are drawn from git,
|
|
5
|
+
never written by hand.
|
|
6
|
+
- **It is released with its kin,** in the order they take from each other:
|
|
7
|
+
`@nervur-org/genome`, `@nervur-org/organs`, each installer, then
|
|
8
|
+
`nervur`, each pinning the one before at its exact version.
|
|
9
|
+
- **It needs no build:** its command is JavaScript as it stands, and
|
|
10
|
+
`npm pack --dry-run` from this folder prints what the package holds.
|
|
11
|
+
- **It is staged,** `npm stage publish` from this folder, by a token that may
|
|
12
|
+
stage alone, so no token publishes.
|
|
13
|
+
- **It is published** once an owner approves the staged version, with their
|
|
14
|
+
second factor, on npmjs.com or by `npm stage approve`. A release goes out
|
|
15
|
+
on an owner's word alone.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Security of nervur
|
|
2
|
+
|
|
3
|
+
**Reporting a flaw:** write to security@nervur.org, privately, never in a
|
|
4
|
+
public place, with what you found, how it is reached, and the version. You
|
|
5
|
+
hear back within a week. A fix is released as a patch, and its notes name
|
|
6
|
+
the flaw once the fix is out.
|
|
7
|
+
|
|
8
|
+
**What is supported:** the latest 0.x version alone, until 1.0.0. Nervur is
|
|
9
|
+
unstable before then, and an organism that holds what matters waits for it.
|
package/bin/nervur.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Nervur's one name: the `nervur` command, run by the installer of this host. Node's is the one.
|
|
4
|
+
import { nervur } from '@nervur-org/installer-node/command';
|
|
5
|
+
|
|
6
|
+
process.exitCode = await nervur(process.argv.slice(2));
|