nervur 0.23.0 → 0.24.0

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.
Files changed (157) hide show
  1. package/CONTRIBUTING.md +13 -0
  2. package/LICENSE +55 -202
  3. package/NOTICE +3 -8
  4. package/README.md +14 -156
  5. package/RELEASING.md +15 -0
  6. package/SECURITY.md +9 -0
  7. package/bin/nervur.js +6 -0
  8. package/package.json +26 -81
  9. package/AUTHORING.md +0 -935
  10. package/COMMAND.md +0 -179
  11. package/FACES.md +0 -280
  12. package/FACULTIES.md +0 -578
  13. package/GROUNDS.md +0 -315
  14. package/KIT-SPEC.md +0 -304
  15. package/WORLD.md +0 -195
  16. package/dist/app/app-ground.d.ts +0 -18
  17. package/dist/app/app-ground.js +0 -23
  18. package/dist/app/index.d.ts +0 -2
  19. package/dist/app/index.js +0 -5
  20. package/dist/app/native.d.ts +0 -11
  21. package/dist/app/native.js +0 -13
  22. package/dist/being/being.d.ts +0 -306
  23. package/dist/being/being.js +0 -20
  24. package/dist/being/covers.d.ts +0 -9
  25. package/dist/being/covers.js +0 -21
  26. package/dist/being/index.d.ts +0 -4
  27. package/dist/being/index.js +0 -6
  28. package/dist/being/need.d.ts +0 -49
  29. package/dist/being/need.js +0 -33
  30. package/dist/being/schema.d.ts +0 -100
  31. package/dist/being/schema.js +0 -132
  32. package/dist/being/table.d.ts +0 -48
  33. package/dist/being/table.js +0 -344
  34. package/dist/bench/bench-ground.d.ts +0 -73
  35. package/dist/bench/bench-ground.js +0 -153
  36. package/dist/bench/bench.d.ts +0 -101
  37. package/dist/bench/bench.js +0 -368
  38. package/dist/bench/fake-clock.d.ts +0 -17
  39. package/dist/bench/fake-clock.js +0 -34
  40. package/dist/bench/fake-memory.d.ts +0 -16
  41. package/dist/bench/fake-memory.js +0 -46
  42. package/dist/bench/fake-network.d.ts +0 -66
  43. package/dist/bench/fake-network.js +0 -222
  44. package/dist/bench/fake-unlock.d.ts +0 -6
  45. package/dist/bench/fake-unlock.js +0 -10
  46. package/dist/bench/index.d.ts +0 -3
  47. package/dist/bench/index.js +0 -5
  48. package/dist/bench/seeded.d.ts +0 -11
  49. package/dist/bench/seeded.js +0 -37
  50. package/dist/bench/settle.d.ts +0 -2
  51. package/dist/bench/settle.js +0 -49
  52. package/dist/bench/stewards.d.ts +0 -169
  53. package/dist/bench/stewards.js +0 -128
  54. package/dist/bodies/class-list.d.ts +0 -14
  55. package/dist/bodies/class-list.js +0 -33
  56. package/dist/bodies/joined-carry.d.ts +0 -29
  57. package/dist/bodies/joined-carry.js +0 -48
  58. package/dist/bodies/kept.d.ts +0 -44
  59. package/dist/bodies/kept.js +0 -91
  60. package/dist/bodies/noble-crypto.d.ts +0 -22
  61. package/dist/bodies/noble-crypto.js +0 -88
  62. package/dist/bodies/seed-keys.d.ts +0 -10
  63. package/dist/bodies/seed-keys.js +0 -42
  64. package/dist/bodies/strict-tools.d.ts +0 -10
  65. package/dist/bodies/strict-tools.js +0 -306
  66. package/dist/bodies/vouch.d.ts +0 -20
  67. package/dist/bodies/vouch.js +0 -71
  68. package/dist/bodies/web-carry.d.ts +0 -72
  69. package/dist/bodies/web-carry.js +0 -245
  70. package/dist/bodies/web-clock.d.ts +0 -12
  71. package/dist/bodies/web-clock.js +0 -33
  72. package/dist/browser/browser-ground.d.ts +0 -76
  73. package/dist/browser/browser-ground.js +0 -294
  74. package/dist/browser/index.d.ts +0 -4
  75. package/dist/browser/index.js +0 -7
  76. package/dist/browser/indexeddb-memory.d.ts +0 -17
  77. package/dist/browser/indexeddb-memory.js +0 -97
  78. package/dist/browser/locked-unlock.d.ts +0 -24
  79. package/dist/browser/locked-unlock.js +0 -85
  80. package/dist/browser/origin-classes.d.ts +0 -7
  81. package/dist/browser/origin-classes.js +0 -31
  82. package/dist/edge/durable-clock.d.ts +0 -19
  83. package/dist/edge/durable-clock.js +0 -61
  84. package/dist/edge/durable-memory.d.ts +0 -5
  85. package/dist/edge/durable-memory.js +0 -11
  86. package/dist/edge/durable.d.ts +0 -18
  87. package/dist/edge/durable.js +0 -24
  88. package/dist/edge/edge-ground.d.ts +0 -49
  89. package/dist/edge/edge-ground.js +0 -223
  90. package/dist/edge/index.d.ts +0 -7
  91. package/dist/edge/index.js +0 -9
  92. package/dist/edge/native-crypto.d.ts +0 -8
  93. package/dist/edge/native-crypto.js +0 -102
  94. package/dist/edge/secret-unlock.d.ts +0 -7
  95. package/dist/edge/secret-unlock.js +0 -13
  96. package/dist/edge/socket-carry.d.ts +0 -39
  97. package/dist/edge/socket-carry.js +0 -111
  98. package/dist/foundation.d.ts +0 -162
  99. package/dist/foundation.js +0 -4
  100. package/dist/ground/dock.d.ts +0 -1460
  101. package/dist/ground/dock.js +0 -1159
  102. package/dist/ground/ground.d.ts +0 -239
  103. package/dist/ground/ground.js +0 -787
  104. package/dist/ground/views.d.ts +0 -76
  105. package/dist/ground/views.js +0 -208
  106. package/dist/house/crossing.d.ts +0 -50
  107. package/dist/house/crossing.js +0 -153
  108. package/dist/house/house.d.ts +0 -88
  109. package/dist/house/house.js +0 -2069
  110. package/dist/house/rows-shape.d.ts +0 -110
  111. package/dist/house/rows-shape.js +0 -12
  112. package/dist/house/rows.d.ts +0 -27
  113. package/dist/house/rows.js +0 -185
  114. package/dist/index.d.ts +0 -33
  115. package/dist/index.js +0 -29
  116. package/dist/node/bridge.d.ts +0 -20
  117. package/dist/node/bridge.js +0 -284
  118. package/dist/node/cli.d.ts +0 -2
  119. package/dist/node/cli.js +0 -225
  120. package/dist/node/file-memory.d.ts +0 -13
  121. package/dist/node/file-memory.js +0 -86
  122. package/dist/node/folder-classes.d.ts +0 -5
  123. package/dist/node/folder-classes.js +0 -40
  124. package/dist/node/gone.d.ts +0 -2
  125. package/dist/node/gone.js +0 -7
  126. package/dist/node/hand.d.ts +0 -39
  127. package/dist/node/hand.js +0 -107
  128. package/dist/node/http.d.ts +0 -11
  129. package/dist/node/http.js +0 -90
  130. package/dist/node/index.d.ts +0 -11
  131. package/dist/node/index.js +0 -13
  132. package/dist/node/ledger-memory.d.ts +0 -17
  133. package/dist/node/ledger-memory.js +0 -152
  134. package/dist/node/lock.d.ts +0 -10
  135. package/dist/node/lock.js +0 -78
  136. package/dist/node/node-ground.d.ts +0 -26
  137. package/dist/node/node-ground.js +0 -228
  138. package/dist/node/notify.d.ts +0 -1
  139. package/dist/node/notify.js +0 -18
  140. package/dist/node/shell.d.ts +0 -11
  141. package/dist/node/shell.js +0 -35
  142. package/dist/node/sync-folder.d.ts +0 -6
  143. package/dist/node/sync-folder.js +0 -18
  144. package/dist/node/tcp-carry.d.ts +0 -42
  145. package/dist/node/tcp-carry.js +0 -193
  146. package/dist/node/unlock.d.ts +0 -17
  147. package/dist/node/unlock.js +0 -86
  148. package/dist/node/websocket.d.ts +0 -12
  149. package/dist/node/websocket.js +0 -134
  150. package/dist/quo/frame.d.ts +0 -33
  151. package/dist/quo/frame.js +0 -92
  152. package/dist/quo/index.d.ts +0 -1
  153. package/dist/quo/index.js +0 -5
  154. package/dist/quo/room.d.ts +0 -154
  155. package/dist/quo/room.js +0 -362
  156. package/dist/serve/index.d.ts +0 -45
  157. package/dist/serve/index.js +0 -71
@@ -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
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
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
- Nervur
1
+ nervur
2
2
  Copyright 2026 Bookarest Digital SRL
3
3
 
4
- This product includes software developed by Bookarest Digital SRL.
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,167 +1,25 @@
1
1
  # nervur
2
2
 
3
- `nervur` is a library for writing beings and opening the house that holds
4
- them. It is the first kit of [Quo](https://quo.systems), a protocol where
5
- a door is one function: bytes in, bytes or nothing out.
6
-
7
- This version is a prerelease, and the API moves until 1.0.0. Install it
8
- with `npm i nervur@next`. It runs on Node 22.18 or later.
9
- [Reading a world](WORLD.md) reads a real situation into the four pieces.
10
- [Writing for nervur](AUTHORING.md) teaches beings and grounds.
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. `Bench.check` runs every example twice and
61
- describes every state to every role.
62
-
63
- ```ts
64
- // greeter.test.ts
65
- import assert from 'node:assert/strict';
66
- import { test } from 'node:test';
67
- import { Bench } from 'nervur/bench';
68
- import { Greeter } from './greeter.ts';
69
-
70
- test('Greeter keeps her examples and her table', async () => {
71
- await Bench.check(Greeter);
72
- });
73
-
74
- test('Greeter counts whoever she greets', async () => {
75
- const bench = await Bench.open({ classes: [Greeter] });
76
- const greeter = await bench.place(Greeter);
77
- assert.deepEqual(await greeter.ask('hello', { name: 'Ada' }), { result: 'Hello, Ada. You are number 1.' });
78
- assert.deepEqual(await greeter.ask('hello', { name: 'Bo' }), { result: 'Hello, Bo. You are number 2.' });
79
- });
80
- ```
81
-
82
- ## A ground
83
-
84
- A ground is the process houses run in, and you write none. `nervur up`
85
- runs one on a folder. Each house's code is a folder of its own, whose
86
- index names its steward. Here the greeter is the steward.
87
-
88
- ```ts
89
- // house/index.ts
90
- export { Greeter as steward } from '../greeter.ts';
91
- ```
92
-
93
- 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.
94
6
 
95
7
  ```bash
96
- npx nervur up .
8
+ npm install -g nervur
97
9
  ```
98
10
 
99
- In a second shell, add the house once. The ground keeps its entry as a
100
- sealed cell of its dock, and opens it again at every start.
101
-
102
11
  ```bash
103
- npx nervur houses add name=main classes='{"faculty":"folder","at":"house"}'
12
+ npx nervur
104
13
  ```
105
14
 
106
- Then ask the steward through the ground's hand.
107
-
108
- ```bash
109
- npx nervur ask main hello name=Ada
110
- ```
111
-
112
- Each ask greets Ada once more, since the count lands in the ground's
113
- ledger before the answer, and it outlives a restart. The ground keeps
114
- its key and its ledger in `state/`, readable by you alone. Everything
115
- in the ledger is sealed under the key. Keep that folder as you keep an
116
- ssh key: without the key, the ledger opens nothing. `npx nervur help`
117
- lists everything the ground offers.
118
-
119
- ## A ground in a page
120
-
121
- The same house runs in a browser. Bundle the house's module and serve it
122
- on your origin, beside a page that opens the ground.
123
-
124
- ```ts
125
- // page.ts
126
- import { BrowserGround } from 'nervur/browser';
127
-
128
- // Every tab of this origin joins one ground, and the tab holding its lock runs it.
129
- const ground = await BrowserGround.open();
130
-
131
- // The house's code is a module on this origin, and its rows rest sealed in IndexedDB.
132
- await ground.hand({
133
- method: 'housesAdd',
134
- args: { name: 'main', classes: { faculty: 'origin', at: '/house/index.js' } },
135
- });
136
-
137
- console.log(await ground.hand({ house: 'main', method: 'hello', args: { name: 'Ada' } }));
138
- ```
139
-
140
- Every tab of the origin reaches the one ground, and when the tab running
141
- it closes, the next opens it from the same storage. Its key is sealed
142
- under one the browser never hands out. Any script on the origin can use
143
- that key, so give the ground an origin of its own, with a strict content
144
- security policy. The page and the house's module must share one copy of
145
- `nervur/being`, as a bundler's shared chunk gives.
146
-
147
- An app on a phone opens the same ground with `AppGround` from
148
- `nervur/app`, on the Keychain or the Keystore and a store the system
149
- keeps. [Writing for nervur](AUTHORING.md) shows both.
150
-
151
- ## Entries
152
-
153
- | Entry | For |
154
- | --- | --- |
155
- | `nervur/being` | writing a being: `Being`, `s`, `need`, `tableOf`, `Args`, `Result`, `Json`, `Table` |
156
- | `nervur` | any engine: `Ground`, `House`, `DockPilot`, `vouchesOf` and the bodies they take |
157
- | `nervur/node` | a ground on Node: `NodeGround`, the `nervur` command, and its bodies |
158
- | `nervur/browser` | a ground in a page or its service worker: `BrowserGround` and its bodies |
159
- | `nervur/edge` | a ground on the edge, a Worker and its Durable Object: `EdgeGround` and its bodies |
160
- | `nervur/app` | a ground in a phone's app: `AppGround`, and the three interfaces its shell fills: `NativeShell`, `NativeSecrets` and `NativeStore` |
161
- | `nervur/serve` | a faculty's program in JavaScript: `serve` |
162
- | `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.
163
17
 
164
- ## License
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.
165
23
 
166
- Apache-2.0, © Bookarest Digital SRL. Quo is a separate work, under its
167
- own license. See `NOTICE`.
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));
package/package.json CHANGED
@@ -1,100 +1,45 @@
1
1
  {
2
2
  "name": "nervur",
3
- "version": "0.23.0",
4
- "description": "Nervur's kit of Quo: write beings and faculties, and open the house that holds them on any ground.",
3
+ "version": "0.24.0",
4
+ "description": "Nervur's one name: the nervur command, on the installer of the host it is laid on. 0.x, unstable.",
5
5
  "keywords": [
6
- "quo",
7
- "protocol",
8
- "capability",
9
- "object-capability"
6
+ "cli",
7
+ "nervur",
8
+ "organism",
9
+ "quo"
10
10
  ],
11
- "author": "Bookarest Digital SRL",
12
- "license": "Apache-2.0",
13
11
  "homepage": "https://nervur.org",
14
- "repository": {
15
- "type": "git",
16
- "url": "git+https://github.com/nervur-org/nervur.git"
17
- },
18
12
  "bugs": {
19
- "url": "https://github.com/nervur-org/nervur/issues"
20
- },
21
- "type": "module",
22
- "exports": {
23
- ".": {
24
- "nervur-source": "./src/index.ts",
25
- "types": "./dist/index.d.ts",
26
- "default": "./dist/index.js"
27
- },
28
- "./node": {
29
- "nervur-source": "./src/node/index.ts",
30
- "types": "./dist/node/index.d.ts",
31
- "default": "./dist/node/index.js"
32
- },
33
- "./edge": {
34
- "nervur-source": "./src/edge/index.ts",
35
- "types": "./dist/edge/index.d.ts",
36
- "default": "./dist/edge/index.js"
37
- },
38
- "./app": {
39
- "nervur-source": "./src/app/index.ts",
40
- "types": "./dist/app/index.d.ts",
41
- "default": "./dist/app/index.js"
42
- },
43
- "./browser": {
44
- "nervur-source": "./src/browser/index.ts",
45
- "types": "./dist/browser/index.d.ts",
46
- "default": "./dist/browser/index.js"
47
- },
48
- "./being": {
49
- "nervur-source": "./src/being/index.ts",
50
- "types": "./dist/being/index.d.ts",
51
- "default": "./dist/being/index.js"
52
- },
53
- "./serve": {
54
- "nervur-source": "./src/serve/index.ts",
55
- "types": "./dist/serve/index.d.ts",
56
- "default": "./dist/serve/index.js"
57
- },
58
- "./bench": {
59
- "nervur-source": "./src/bench/index.ts",
60
- "types": "./dist/bench/index.d.ts",
61
- "default": "./dist/bench/index.js"
62
- }
13
+ "email": "hello@nervur.org"
63
14
  },
15
+ "license": "Apache-2.0",
16
+ "author": "Bookarest Digital SRL",
64
17
  "bin": {
65
- "nervur": "dist/node/cli.js"
18
+ "nervur": "./bin/nervur.js"
66
19
  },
67
20
  "files": [
68
- "dist",
69
- "AUTHORING.md",
70
- "COMMAND.md",
71
- "FACES.md",
72
- "FACULTIES.md",
73
- "GROUNDS.md",
74
- "KIT-SPEC.md",
21
+ "bin",
75
22
  "NOTICE",
76
- "WORLD.md"
23
+ "CONTRIBUTING.md",
24
+ "RELEASING.md",
25
+ "SECURITY.md"
77
26
  ],
78
- "scripts": {
79
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
80
- "prepack": "npm run build",
81
- "check": "tsc -p tsconfig.json && tsc -p tsconfig.pure.json && node test.mjs \"test/**/*.test.ts\"",
82
- "mutate": "node mutate.mjs",
83
- "deep": "tsc -p deep && NERVUR_TEST_CAP=900000 node test.mjs \"deep/**/*.test.ts\"",
84
- "prepublishOnly": "test \"$NERVUR_GATED\" = 1 || { echo 'a publish is /release, from the root, on the human'\"'\"'s word' >&2; exit 1; }"
27
+ "type": "module",
28
+ "publishConfig": {
29
+ "access": "public"
85
30
  },
86
- "engines": {
87
- "node": ">=22.18"
31
+ "scripts": {
32
+ "gate": "oxfmt --check bin test package.json .oxfmtrc.json && npm test && npm pack --dry-run",
33
+ "test": "node --test --test-timeout=30000 'test/**/*.test.ts'",
34
+ "format": "oxfmt bin test package.json .oxfmtrc.json"
88
35
  },
89
36
  "dependencies": {
90
- "@noble/curves": "2.4.0",
91
- "@noble/post-quantum": "0.7.1"
92
- },
93
- "publishConfig": {
94
- "access": "public"
37
+ "@nervur-org/installer-node": "0.1.0"
95
38
  },
96
39
  "devDependencies": {
97
- "@types/node": "^26.4.1",
98
- "typescript": "^7.0.2"
40
+ "oxfmt": "0.73.0"
41
+ },
42
+ "engines": {
43
+ "node": ">=24.0.0 <25"
99
44
  }
100
45
  }