nuspace 0.6.4__tar.gz → 0.7.0__tar.gz

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 (242) hide show
  1. {nuspace-0.6.4 → nuspace-0.7.0}/CHANGELOG.md +29 -2
  2. {nuspace-0.6.4 → nuspace-0.7.0}/PKG-INFO +7 -7
  3. {nuspace-0.6.4 → nuspace-0.7.0}/examples/space.py +2 -2
  4. {nuspace-0.6.4 → nuspace-0.7.0}/pyproject.toml +7 -7
  5. nuspace-0.7.0/src/nuspace/__init__.py +46 -0
  6. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/_installed.py +3 -3
  7. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/_meta.py +10 -14
  8. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/commands/init.py +10 -8
  9. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/commands/run.py +26 -22
  10. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_telemetry/__init__.py +4 -4
  11. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_telemetry/send.py +1 -1
  12. {nuspace-0.6.4/src/nuspace/ops → nuspace-0.7.0/src/nuspace/_telemetry}/usage.py +5 -6
  13. nuspace-0.7.0/src/nuspace/devices/__init__.py +10 -0
  14. nuspace-0.7.0/src/nuspace/devices/web/__init__.py +76 -0
  15. nuspace-0.7.0/src/nuspace/devices/web/device.py +263 -0
  16. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/env.py +17 -19
  17. nuspace-0.7.0/src/nuspace/devices/web/home.py +282 -0
  18. nuspace-0.7.0/src/nuspace/devices/web/interactions.py +250 -0
  19. nuspace-0.7.0/src/nuspace/devices/web/nav.py +115 -0
  20. nuspace-0.7.0/src/nuspace/devices/web/ops.py +535 -0
  21. nuspace-0.7.0/src/nuspace/devices/web/planes.py +106 -0
  22. nuspace-0.7.0/src/nuspace/devices/web/ref.py +22 -0
  23. {nuspace-0.6.4/src/nuspace/system/ui → nuspace-0.7.0/src/nuspace/devices/web}/search.py +207 -173
  24. nuspace-0.7.0/src/nuspace/devices/web/settings.py +30 -0
  25. nuspace-0.7.0/src/nuspace/devices/web/shapes.py +90 -0
  26. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/shell.py +12 -10
  27. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/sidebar/__init__.py +9 -6
  28. nuspace-0.7.0/src/nuspace/devices/web/sidebar/feed.py +272 -0
  29. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/sidebar/interactions.py +24 -14
  30. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/sidebar/ref.py +20 -11
  31. nuspace-0.7.0/src/nuspace/devices/web/stores.py +43 -0
  32. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/utils.py +89 -36
  33. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/viewer/__init__.py +13 -11
  34. nuspace-0.7.0/src/nuspace/devices/web/viewer/feed.py +418 -0
  35. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/viewer/interactions.py +17 -15
  36. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/viewer/ref.py +14 -13
  37. nuspace-0.7.0/src/nuspace/errors.py +59 -0
  38. nuspace-0.7.0/src/nuspace/host/__init__.py +41 -0
  39. nuspace-0.7.0/src/nuspace/host/devices.py +89 -0
  40. nuspace-0.7.0/src/nuspace/host/interactions.py +103 -0
  41. nuspace-0.7.0/src/nuspace/host/layout.py +69 -0
  42. nuspace-0.7.0/src/nuspace/host/lock.py +120 -0
  43. nuspace-0.7.0/src/nuspace/host/presets.py +114 -0
  44. nuspace-0.7.0/src/nuspace/host/resources.py +136 -0
  45. nuspace-0.7.0/src/nuspace/host/space.py +293 -0
  46. nuspace-0.7.0/src/nuspace/host/stores.py +209 -0
  47. nuspace-0.7.0/src/nuspace/kernel/__init__.py +64 -0
  48. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace/kernel}/backends/__init__.py +29 -32
  49. nuspace-0.7.0/src/nuspace/kernel/backends/async_.py +25 -0
  50. nuspace-0.7.0/src/nuspace/kernel/backends/base.py +133 -0
  51. nuspace-0.7.0/src/nuspace/kernel/backends/interactions.py +229 -0
  52. nuspace-0.7.0/src/nuspace/kernel/backends/mp.py +24 -0
  53. nuspace-0.7.0/src/nuspace/kernel/backends/pool.py +153 -0
  54. nuspace-0.7.0/src/nuspace/kernel/body.py +162 -0
  55. nuspace-0.7.0/src/nuspace/kernel/close.py +50 -0
  56. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/kernel/envs.py +11 -17
  57. nuspace-0.7.0/src/nuspace/kernel/interactions.py +222 -0
  58. nuspace-0.7.0/src/nuspace/kernel/kernel.py +498 -0
  59. nuspace-0.7.0/src/nuspace/kernel/out.py +116 -0
  60. nuspace-0.7.0/src/nuspace/kernel/reap.py +99 -0
  61. nuspace-0.7.0/src/nuspace/kernel/records.py +100 -0
  62. nuspace-0.7.0/src/nuspace/ops/__init__.py +32 -0
  63. nuspace-0.7.0/src/nuspace/ops/brackets.py +55 -0
  64. nuspace-0.7.0/src/nuspace/ops/cell.py +353 -0
  65. nuspace-0.7.0/src/nuspace/ops/cell_run.py +165 -0
  66. nuspace-0.7.0/src/nuspace/ops/interactions.py +76 -0
  67. nuspace-0.7.0/src/nuspace/ops/plane.py +422 -0
  68. nuspace-0.7.0/src/nuspace/ops/plane_run.py +268 -0
  69. nuspace-0.7.0/src/nuspace/ops/state.py +73 -0
  70. nuspace-0.7.0/src/nuspace/ops/worker.py +108 -0
  71. nuspace-0.7.0/src/nuspace/places.py +186 -0
  72. nuspace-0.7.0/src/nuspace/shapes/__init__.py +105 -0
  73. nuspace-0.7.0/src/nuspace/shapes/cell.py +45 -0
  74. nuspace-0.7.0/src/nuspace/shapes/cell_run.py +44 -0
  75. nuspace-0.7.0/src/nuspace/shapes/content.py +371 -0
  76. nuspace-0.7.0/src/nuspace/shapes/exec.py +151 -0
  77. nuspace-0.7.0/src/nuspace/shapes/plane.py +72 -0
  78. nuspace-0.7.0/src/nuspace/shapes/plane_run.py +42 -0
  79. nuspace-0.7.0/src/nuspace/shapes/space.py +81 -0
  80. nuspace-0.7.0/src/nuspace/shapes/state.py +93 -0
  81. nuspace-0.7.0/src/nuspace/shapes/store.py +43 -0
  82. nuspace-0.7.0/src/nuspace/shapes/worker.py +34 -0
  83. nuspace-0.7.0/src/nuspace/specs/__init__.py +62 -0
  84. nuspace-0.7.0/src/nuspace/specs/ops.py +254 -0
  85. {nuspace-0.6.4/src/nuspace/ext → nuspace-0.7.0/src/nuspace/specs}/registry.py +36 -4
  86. {nuspace-0.6.4/src/nuspace/ext → nuspace-0.7.0/src/nuspace/specs}/specs.py +65 -19
  87. nuspace-0.7.0/src/nuspace/system/__init__.py +20 -0
  88. nuspace-0.7.0/src/nuspace/system/init/__init__.py +12 -0
  89. nuspace-0.7.0/src/nuspace/system/init/ops.py +60 -0
  90. nuspace-0.7.0/src/nuspace/system/init/plane.py +115 -0
  91. nuspace-0.7.0/src/nuspace/system/init/shapes.py +30 -0
  92. nuspace-0.7.0/src/nuspace/system/planes.py +103 -0
  93. nuspace-0.7.0/src/nuspace/system/reactions/__init__.py +26 -0
  94. nuspace-0.7.0/src/nuspace/system/reactions/ops.py +186 -0
  95. nuspace-0.7.0/src/nuspace/system/reactions/plane.py +102 -0
  96. nuspace-0.7.0/src/nuspace/system/reactions/shapes.py +48 -0
  97. nuspace-0.7.0/src/nuspace/system/reload/__init__.py +10 -0
  98. nuspace-0.7.0/src/nuspace/system/reload/plane.py +124 -0
  99. nuspace-0.7.0/src/nuspace/system/supervisor/__init__.py +27 -0
  100. nuspace-0.7.0/src/nuspace/system/supervisor/ops.py +99 -0
  101. nuspace-0.7.0/src/nuspace/system/supervisor/plane.py +191 -0
  102. nuspace-0.7.0/src/nuspace/system/supervisor/shapes.py +50 -0
  103. nuspace-0.7.0/src/nuspace/utils/__init__.py +45 -0
  104. nuspace-0.7.0/src/nuspace/utils/checks.py +211 -0
  105. nuspace-0.7.0/src/nuspace/utils/interactions.py +165 -0
  106. nuspace-0.7.0/src/nuspace/utils/placement.py +53 -0
  107. nuspace-0.6.4/src/nuspace/system/utils.py → nuspace-0.7.0/src/nuspace/utils/policies.py +2 -7
  108. nuspace-0.7.0/src/nuspace/utils/reads.py +21 -0
  109. nuspace-0.7.0/src/nuspace/utils/tree.py +78 -0
  110. nuspace-0.7.0/src/nuspace/utils/typed.py +93 -0
  111. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_ext/nuspace_testing/__init__.py +1 -1
  112. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/actions.py +1 -1
  113. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/contents.py +7 -10
  114. nuspace-0.7.0/tests/_lib/_support/crash_host.py +34 -0
  115. nuspace-0.7.0/tests/_lib/_support/kernel.py +271 -0
  116. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/kernel_envs.py +11 -7
  117. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/specs.py +5 -3
  118. {nuspace-0.6.4 → nuspace-0.7.0}/tests/conftest.py +23 -20
  119. nuspace-0.7.0/tests/nuspace/test_brackets.py +50 -0
  120. {nuspace-0.6.4 → nuspace-0.7.0}/tests/nuspace/test_cli.py +44 -127
  121. nuspace-0.7.0/tests/nuspace/test_content.py +180 -0
  122. nuspace-0.7.0/tests/nuspace/test_errors.py +29 -0
  123. nuspace-0.7.0/tests/nuspace/test_exports.py +53 -0
  124. nuspace-0.7.0/tests/nuspace/test_host.py +730 -0
  125. nuspace-0.7.0/tests/nuspace/test_kernel.py +974 -0
  126. nuspace-0.7.0/tests/nuspace/test_nav.py +244 -0
  127. nuspace-0.7.0/tests/nuspace/test_ops_cell.py +271 -0
  128. nuspace-0.7.0/tests/nuspace/test_ops_cell_run.py +131 -0
  129. nuspace-0.7.0/tests/nuspace/test_ops_plane.py +303 -0
  130. nuspace-0.7.0/tests/nuspace/test_ops_plane_run.py +181 -0
  131. nuspace-0.7.0/tests/nuspace/test_ops_state.py +90 -0
  132. nuspace-0.7.0/tests/nuspace/test_ops_worker.py +76 -0
  133. {nuspace-0.6.4 → nuspace-0.7.0}/tests/nuspace/test_packaging.py +1 -1
  134. nuspace-0.7.0/tests/nuspace/test_places.py +168 -0
  135. {nuspace-0.6.4 → nuspace-0.7.0}/tests/nuspace/test_session_pipe.py +1 -1
  136. nuspace-0.7.0/tests/nuspace/test_shapes.py +400 -0
  137. nuspace-0.7.0/tests/nuspace/test_specs.py +207 -0
  138. nuspace-0.7.0/tests/nuspace/test_system_ops.py +264 -0
  139. nuspace-0.7.0/tests/nuspace/test_system_planes.py +450 -0
  140. {nuspace-0.6.4 → nuspace-0.7.0}/tests/nuspace/test_system_utils.py +23 -23
  141. {nuspace-0.6.4 → nuspace-0.7.0}/tests/nuspace/test_telemetry.py +2 -2
  142. nuspace-0.7.0/tests/nuspace/test_web.py +540 -0
  143. nuspace-0.7.0/tests/nuspace/test_web_ops.py +447 -0
  144. nuspace-0.7.0/tests/nuspace/test_web_planes.py +502 -0
  145. nuspace-0.6.4/src/nuspace/__init__.py +0 -61
  146. nuspace-0.6.4/src/nuspace/content/__init__.py +0 -93
  147. nuspace-0.6.4/src/nuspace/content/kind.py +0 -454
  148. nuspace-0.6.4/src/nuspace/content/search.py +0 -115
  149. nuspace-0.6.4/src/nuspace/ext/__init__.py +0 -50
  150. nuspace-0.6.4/src/nuspace/host/__init__.py +0 -16
  151. nuspace-0.6.4/src/nuspace/host/presets.py +0 -173
  152. nuspace-0.6.4/src/nuspace/host/space.py +0 -175
  153. nuspace-0.6.4/src/nuspace/ops/__init__.py +0 -152
  154. nuspace-0.6.4/src/nuspace/ops/cell.py +0 -307
  155. nuspace-0.6.4/src/nuspace/ops/extend.py +0 -164
  156. nuspace-0.6.4/src/nuspace/ops/kernel.py +0 -417
  157. nuspace-0.6.4/src/nuspace/ops/pin.py +0 -70
  158. nuspace-0.6.4/src/nuspace/ops/plane.py +0 -297
  159. nuspace-0.6.4/src/nuspace/ops/read.py +0 -144
  160. nuspace-0.6.4/src/nuspace/ops/state.py +0 -208
  161. nuspace-0.6.4/src/nuspace/ops/stores.py +0 -51
  162. nuspace-0.6.4/src/nuspace/ops/tree.py +0 -118
  163. nuspace-0.6.4/src/nuspace/ops/utils.py +0 -198
  164. nuspace-0.6.4/src/nuspace/shapes/__init__.py +0 -109
  165. nuspace-0.6.4/src/nuspace/shapes/cell.py +0 -52
  166. nuspace-0.6.4/src/nuspace/shapes/connection.py +0 -25
  167. nuspace-0.6.4/src/nuspace/shapes/contents.py +0 -53
  168. nuspace-0.6.4/src/nuspace/shapes/kernel.py +0 -149
  169. nuspace-0.6.4/src/nuspace/shapes/plane.py +0 -61
  170. nuspace-0.6.4/src/nuspace/shapes/reroot.py +0 -155
  171. nuspace-0.6.4/src/nuspace/shapes/space.py +0 -80
  172. nuspace-0.6.4/src/nuspace/shapes/state.py +0 -40
  173. nuspace-0.6.4/src/nuspace/shapes/states.py +0 -59
  174. nuspace-0.6.4/src/nuspace/system/__init__.py +0 -14
  175. nuspace-0.6.4/src/nuspace/system/backends/async_.py +0 -48
  176. nuspace-0.6.4/src/nuspace/system/backends/base.py +0 -354
  177. nuspace-0.6.4/src/nuspace/system/backends/mp.py +0 -41
  178. nuspace-0.6.4/src/nuspace/system/backends/pool.py +0 -183
  179. nuspace-0.6.4/src/nuspace/system/devices/__init__.py +0 -10
  180. nuspace-0.6.4/src/nuspace/system/devices/web/__init__.py +0 -68
  181. nuspace-0.6.4/src/nuspace/system/devices/web/device.py +0 -287
  182. nuspace-0.6.4/src/nuspace/system/devices/web/sidebar/feed.py +0 -265
  183. nuspace-0.6.4/src/nuspace/system/devices/web/viewer/feed.py +0 -354
  184. nuspace-0.6.4/src/nuspace/system/info.py +0 -46
  185. nuspace-0.6.4/src/nuspace/system/kernel/__init__.py +0 -79
  186. nuspace-0.6.4/src/nuspace/system/kernel/body.py +0 -189
  187. nuspace-0.6.4/src/nuspace/system/kernel/dispatch.py +0 -93
  188. nuspace-0.6.4/src/nuspace/system/kernel/kernel.py +0 -57
  189. nuspace-0.6.4/src/nuspace/system/kernel/out.py +0 -269
  190. nuspace-0.6.4/src/nuspace/system/kernel/reconcile.py +0 -40
  191. nuspace-0.6.4/src/nuspace/system/kernel/runs.py +0 -285
  192. nuspace-0.6.4/src/nuspace/system/kernel/space.py +0 -387
  193. nuspace-0.6.4/src/nuspace/system/kernel/utils.py +0 -8
  194. nuspace-0.6.4/src/nuspace/system/services/__init__.py +0 -46
  195. nuspace-0.6.4/src/nuspace/system/services/bootstrap.py +0 -68
  196. nuspace-0.6.4/src/nuspace/system/services/init.py +0 -119
  197. nuspace-0.6.4/src/nuspace/system/services/nav.py +0 -337
  198. nuspace-0.6.4/src/nuspace/system/services/reactions.py +0 -343
  199. nuspace-0.6.4/src/nuspace/system/services/reload.py +0 -107
  200. nuspace-0.6.4/src/nuspace/system/services/supervisor.py +0 -350
  201. nuspace-0.6.4/src/nuspace/system/ui/__init__.py +0 -14
  202. nuspace-0.6.4/src/nuspace/system/ui/home.py +0 -297
  203. nuspace-0.6.4/src/nuspace/system/ui/seed.py +0 -81
  204. nuspace-0.6.4/src/nuspace/system/ui/settings.py +0 -43
  205. nuspace-0.6.4/src/nuspace/ui.py +0 -151
  206. nuspace-0.6.4/tests/_lib/_support/kernel.py +0 -207
  207. nuspace-0.6.4/tests/nuspace/test_content.py +0 -358
  208. nuspace-0.6.4/tests/nuspace/test_home.py +0 -405
  209. nuspace-0.6.4/tests/nuspace/test_host.py +0 -413
  210. nuspace-0.6.4/tests/nuspace/test_kernel.py +0 -664
  211. nuspace-0.6.4/tests/nuspace/test_ops_kernel.py +0 -224
  212. nuspace-0.6.4/tests/nuspace/test_ops_state.py +0 -384
  213. nuspace-0.6.4/tests/nuspace/test_ops_structure.py +0 -539
  214. nuspace-0.6.4/tests/nuspace/test_reactions.py +0 -380
  215. nuspace-0.6.4/tests/nuspace/test_search.py +0 -528
  216. nuspace-0.6.4/tests/nuspace/test_services.py +0 -638
  217. nuspace-0.6.4/tests/nuspace/test_settings.py +0 -56
  218. nuspace-0.6.4/tests/nuspace/test_shapes.py +0 -250
  219. nuspace-0.6.4/tests/nuspace/test_ui.py +0 -146
  220. nuspace-0.6.4/tests/nuspace/test_web.py +0 -922
  221. {nuspace-0.6.4 → nuspace-0.7.0}/.gitignore +0 -0
  222. {nuspace-0.6.4 → nuspace-0.7.0}/.pre-commit-config.yaml +0 -0
  223. {nuspace-0.6.4 → nuspace-0.7.0}/LICENSE.md +0 -0
  224. {nuspace-0.6.4 → nuspace-0.7.0}/Makefile +0 -0
  225. {nuspace-0.6.4 → nuspace-0.7.0}/README.md +0 -0
  226. {nuspace-0.6.4 → nuspace-0.7.0}/pkgs/ts/nuspace-ui/python/nuspace_ui/build +0 -0
  227. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_branding/__init__.py +0 -0
  228. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_branding/header.py +0 -0
  229. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_branding/logo.py +0 -0
  230. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_branding/palette.py +0 -0
  231. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/__init__.py +0 -0
  232. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/__main__.py +0 -0
  233. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/commands/__init__.py +0 -0
  234. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/commands/telemetry.py +0 -0
  235. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/commands/verse.py +0 -0
  236. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_cli/main.py +0 -0
  237. {nuspace-0.6.4 → nuspace-0.7.0}/src/nuspace/_telemetry/config.py +0 -0
  238. {nuspace-0.6.4/src/nuspace/system → nuspace-0.7.0/src/nuspace}/devices/web/session.py +0 -0
  239. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_ext/pyproject.toml +0 -0
  240. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/__init__.py +0 -0
  241. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/made.py +0 -0
  242. {nuspace-0.6.4 → nuspace-0.7.0}/tests/_lib/_support/probe.py +0 -0
@@ -2,13 +2,40 @@
2
2
 
3
3
  ## Packages shipped from this repo
4
4
 
5
- - **nuspace** (the runtime, the `nuspace` command) — 0.6.4
6
- - **nuspace-ui** (the compiled web bundle) — 0.6.4
5
+ - **nuspace** (the runtime, the `nuspace` command) — 0.7.0
6
+ - **nuspace-ui** (the compiled web bundle) — 0.7.0
7
7
 
8
8
  Below is the changelog for **nuspace** - the full commit stream. Newest first.
9
9
  The `nuspace-ui` wheel is the same source tree's vite output and is not tracked
10
10
  separately here.
11
11
 
12
+ ## 0.7.0 - 2026-11-10
13
+
14
+ - Release nuspace and nuspace-ui 0.7.0 on nu 0.7.2, virtuals 0.2.2 and ui-kit 0.4.1
15
+ - Web device type hints import cleanly, and the reload test waits for state
16
+ - Minting an id refuses a NULL prefix instead of passing NULL along
17
+ - A place reached by a key that finds nothing now raises on reads too
18
+ - Empty indexes read explicit defaults, so worker picks, home links and cell statuses work
19
+ - The web lint config matches the installed linter, so checks run clean again
20
+ - Simpler worker and search reads, and docs that name the right brackets
21
+ - Remove dead helpers, share common reads, and name browser fields after the data model
22
+ - Reaction and stop tests wait for what they check, so loaded runs stay green
23
+ - Closing a space ends live runs as interrupted; headless opens still write device rows
24
+ - Open a space behind a host lock and format check, with fresh tabs each open
25
+ - Restart one cell in place, and rerun finished panes when a cell is added or edited
26
+ - Rebuild the web device on its own stores: lazy sidebar, panes, nav, failure toasts
27
+ - Reactions skip changes landing while their last run is live, never waiting it out
28
+ - Rebuild init, supervisor, reload and reactions as system planes on the new stores
29
+ - Rebuild the kernel on the run records, with worker placement and reaping at open
30
+ - Keys take uppercase letters, and spec planes build cell programs before any commit opens
31
+ - Rewrite core ops on the new stores: strict raises, state places, planes from specs
32
+ - Rebuild the store layout: space, state and web stores, plus the op errors
33
+ - Move nuspace onto the new source tree: shapes, ops, kernel, system planes, devices
34
+
35
+ ## 0.6.5 - 2026-11-07
36
+
37
+ - Release nuspace 0.6.5 requiring nuverse 0.3.7, so installs get working planes and cells
38
+
12
39
  ## 0.6.4 - 2026-11-07
13
40
 
14
41
  - Release nuspace and nuspace-ui 0.6.4 on nu 0.7.1, virtuals 0.2.1 and ui-kit 0.4.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nuspace
3
- Version: 0.6.4
3
+ Version: 0.7.0
4
4
  Summary: Computational space for your data and tools.
5
5
  Project-URL: Repository, https://github.com/nustackdev/nuspace
6
6
  Author-email: Gor Arakelyan <gorarkln@gmail.com>
@@ -17,16 +17,16 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Requires-Python: >=3.10
18
18
  Requires-Dist: certifi>=2023.7.22
19
19
  Requires-Dist: click>=8.0
20
- Requires-Dist: nucore>=0.7.1
21
- Requires-Dist: nuspace-ui>=0.6.4
22
- Requires-Dist: nustd[kv,mp-pool,proxy,ui,valkey]>=0.7.1
23
- Requires-Dist: nuverse>=0.3.5
20
+ Requires-Dist: nucore>=0.7.2
21
+ Requires-Dist: nuspace-ui>=0.7.0
22
+ Requires-Dist: nustd[kv,mp-pool,proxy,ui,valkey]>=0.7.2
23
+ Requires-Dist: nuverse>=0.3.7
24
24
  Requires-Dist: rich-click>=1.6
25
25
  Requires-Dist: rich>=10.7
26
26
  Requires-Dist: typing-extensions>=4.7.0
27
- Requires-Dist: virtuals-py[redis]>=0.2.1
27
+ Requires-Dist: virtuals-py[redis]>=0.2.2
28
28
  Provides-Extra: all
29
- Requires-Dist: nustd[all]>=0.7.1; extra == 'all'
29
+ Requires-Dist: nustd[all]>=0.7.2; extra == 'all'
30
30
  Description-Content-Type: text/markdown
31
31
 
32
32
  <div align="center">
@@ -18,7 +18,7 @@ import logging
18
18
  from pathlib import Path
19
19
 
20
20
  import nu
21
- import nuspace
21
+ import nuspace.host
22
22
 
23
23
 
24
24
  # Closing the space drops sockets under workers still holding them. Expected.
@@ -32,6 +32,6 @@ STORE = str(Path(__file__).parent / "example.nuspace")
32
32
  if __name__ == "__main__":
33
33
  # Load bearing: workers are spawned and re-import __main__.
34
34
  try:
35
- nu.run_in_loop(nuspace.open_space(STORE))
35
+ nu.run_in_loop(nuspace.host.serve(STORE))
36
36
  except KeyboardInterrupt:
37
37
  print("stopped")
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nuspace"
7
- version = "0.6.4"
7
+ version = "0.7.0"
8
8
  description = "Computational space for your data and tools."
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-or-later"
@@ -14,17 +14,17 @@ dependencies = [
14
14
  # The fabrics a space runs on, nothing more: kv for the store, valkey for
15
15
  # its change notifications, ui for the browser, mp_pool for the workers,
16
16
  # proxy (invisibles) for the worker's session.
17
- "nucore>=0.7.1",
18
- "nustd[kv,ui,valkey,mp_pool,proxy]>=0.7.1",
17
+ "nucore>=0.7.2",
18
+ "nustd[kv,ui,valkey,mp_pool,proxy]>=0.7.2",
19
19
  # The store's change notifications run over virtuals' redis backend.
20
- "virtuals-py[redis]>=0.2.1",
20
+ "virtuals-py[redis]>=0.2.2",
21
21
  # The compiled web bundle. A separate distribution only because PyPI caps
22
22
  # project size and a SPA rebuilt on every UI tweak would eat the quota --
23
23
  # not optional. `pip install nuspace` gives you the browser.
24
- "nuspace-ui>=0.6.4",
24
+ "nuspace-ui>=0.7.0",
25
25
  # The everyday Planes and Cells. A plugin like any other, found through
26
26
  # its entry point, but every space ships with it.
27
- "nuverse>=0.3.5",
27
+ "nuverse>=0.3.7",
28
28
  "typing-extensions>=4.7.0",
29
29
  "click>=8.0",
30
30
  "rich>=10.7",
@@ -55,7 +55,7 @@ classifiers = [
55
55
  [project.optional-dependencies]
56
56
  # Every nustd fabric and kv backend, for cells that reach past the defaults.
57
57
  all = [
58
- "nustd[all]>=0.7.1",
58
+ "nustd[all]>=0.7.2",
59
59
  ]
60
60
 
61
61
  [project.urls]
@@ -0,0 +1,46 @@
1
+ """nuspace: a space that runs nu programs as planes and cells.
2
+
3
+ The top level holds the everyday names only:
4
+
5
+ - the roots: :class:`Space` (what the space is) and :class:`State` (what
6
+ programs keep); the record shapes are under :mod:`nuspace.shapes`.
7
+ - the core op modules: ``nuspace.plane``, ``.cell``, ``.plane_run``,
8
+ ``.cell_run``, ``.worker``, ``.state``. Write the module in front,
9
+ ``nuspace.plane.add(...)``. They are attributes, not submodules:
10
+ ``import nuspace.plane`` does not work. ``nuspace.state`` (the ops) and
11
+ ``nuspace.State`` (the root) differ by case only, as python modules and
12
+ classes do.
13
+ - places: ``nuspace.at``, ``nuspace.here``.
14
+ - brackets: ``nuspace.atomic``, ``nuspace.bracketed``.
15
+ - ``nuspace.specs`` (PlaneSpec, CellSpec, the registry, add_plane,
16
+ add_cell) and ``nuspace.errors`` (what an op raises).
17
+
18
+ ``nuspace.kernel``, ``nuspace.system.*``, ``nuspace.devices.web``,
19
+ ``nuspace.host`` and ``nuspace.utils`` stay namespaced.
20
+
21
+ Workers import this package: nothing here may pull in a server.
22
+ """
23
+
24
+ from nuspace import errors, specs
25
+ from nuspace.ops import cell, cell_run, plane, plane_run, state, worker
26
+ from nuspace.ops.brackets import atomic, bracketed
27
+ from nuspace.places import at, here
28
+ from nuspace.shapes import Space, State
29
+
30
+
31
+ __all__ = [
32
+ "Space",
33
+ "State",
34
+ "at",
35
+ "atomic",
36
+ "bracketed",
37
+ "cell",
38
+ "cell_run",
39
+ "errors",
40
+ "here",
41
+ "plane",
42
+ "plane_run",
43
+ "specs",
44
+ "state",
45
+ "worker",
46
+ ]
@@ -3,7 +3,7 @@
3
3
  ``nuspace verse`` lists it and ``nuspace run --with`` picks a Plane out of
4
4
  it. A package is its entry point's name, and its Planes are
5
5
  ``<package>.<name>``, as a space registers them
6
- (:func:`~nuspace.ext.qualified`). A bare name is a Plane of
6
+ (:func:`~nuspace.specs.qualified`). A bare name is a Plane of
7
7
  :data:`DEFAULT_PACKAGE`, the one nuspace ships with.
8
8
  """
9
9
 
@@ -16,13 +16,13 @@ from typing import TYPE_CHECKING
16
16
 
17
17
  import rich_click as click
18
18
 
19
- from nuspace.ext.registry import GROUP, _load, qualified
19
+ from nuspace.specs.registry import GROUP, _load, qualified
20
20
 
21
21
  from ._meta import version_of
22
22
 
23
23
 
24
24
  if TYPE_CHECKING:
25
- from nuspace.ext import Extension, PlaneSpec
25
+ from nuspace.specs import Extension, PlaneSpec
26
26
 
27
27
 
28
28
  __all__ = ["DEFAULT_PACKAGE", "Installed", "installed", "resolve"]
@@ -19,14 +19,14 @@ from rich.text import Text
19
19
  import nu
20
20
  from nuspace import _telemetry
21
21
  from nuspace._branding import BLUE, header
22
- from nuspace.system.kernel import DATA_DIR, NotASpace, find_space
22
+ from nuspace.errors import Refused
23
+ from nuspace.host.layout import DATA_DIR, find_space
23
24
 
24
25
 
25
26
  __all__ = [
26
27
  "announce",
27
28
  "console",
28
29
  "hold",
29
- "opened",
30
30
  "path_argument",
31
31
  "space_root",
32
32
  "tilde",
@@ -109,20 +109,14 @@ def announce(path: str | None, *, headless: bool = False, plane: str | None = No
109
109
  console.print("[dim]headless, Ctrl+C to stop[/dim]")
110
110
 
111
111
 
112
- def opened(preset: Callable[..., nu.Nu], *args: object, **kwargs: object) -> nu.Nu:
113
- """What ``preset`` opens, or a short error when the path is not a space."""
114
- try:
115
- return preset(*args, **kwargs)
116
- except NotASpace as e:
117
- raise click.ClickException(str(e)) from None
118
-
119
-
120
112
  def hold(term: nu.Nu) -> None:
121
- """Run a space until interrupted, then let the brackets reap the fleet.
113
+ """Run a space until interrupted (Ctrl+C), then let the brackets close it.
122
114
 
123
- What is still queued for telemetry (see :mod:`nuspace._telemetry`) gets
124
- a short grace to go at the end. The space tells it what happens itself,
125
- from its open on, the same as when opened from code.
115
+ Closing ends what is live, interrupted, then stops the workers, the
116
+ stores, the notification server and the lock, in that order. An open
117
+ the host refuses (another host holds the space, an older store format)
118
+ is a short error. What is still queued for telemetry (see
119
+ :mod:`nuspace._telemetry`) gets a short grace to go at the end.
126
120
 
127
121
  Compiled and evaluated without law validation: the space program is ours
128
122
  and tested, and validating its whole tree costs seconds per start.
@@ -131,5 +125,7 @@ def hold(term: nu.Nu) -> None:
131
125
  nu.eval_in_loop(nu.compile(term), nu.Context())
132
126
  except KeyboardInterrupt:
133
127
  console.print("[dim]Stopped[/dim]")
128
+ except Refused as e:
129
+ raise click.ClickException(str(e)) from None
134
130
  finally:
135
131
  _telemetry.flush()
@@ -1,8 +1,8 @@
1
1
  """``nuspace init``: make a directory a space, without opening it to run.
2
2
 
3
- The store only, through :func:`~nuspace.host.init_space`: ``.nuspace/``
4
- with its two SQLite files and the system planes, seeded as the first open
5
- would. Without PATH it is the current directory, said so when that sits
3
+ The stores only, through :func:`~nuspace.host.make_space`: ``.nuspace/``
4
+ with its stores, the system planes and the web planes, seeded as the first
5
+ open would. Without PATH it is the current directory, said so when that sits
6
6
  inside another space. No venv, no packaging: the directory is not set up
7
7
  for code of its own yet.
8
8
  """
@@ -16,10 +16,10 @@ from rich.text import Text
16
16
 
17
17
  import nu
18
18
  from nuspace._branding import BLUE, PURPLE
19
- from nuspace.host import init_space
20
- from nuspace.system.kernel import find_space, is_space
19
+ from nuspace.errors import Refused
20
+ from nuspace.host import find_space, is_space, make_space
21
21
 
22
- from .._meta import console, opened, path_argument, tilde
22
+ from .._meta import console, path_argument, tilde
23
23
 
24
24
 
25
25
  __all__ = ["init"]
@@ -39,8 +39,10 @@ def init(path: str | None) -> None:
39
39
  if path is None:
40
40
  _warn_if_nested(root)
41
41
  there = is_space(root)
42
- term = opened(init_space, str(root))
43
- nu.eval_in_loop(nu.compile(term), nu.Context())
42
+ try:
43
+ nu.eval_in_loop(nu.compile(make_space(root)), nu.Context())
44
+ except Refused as e:
45
+ raise click.ClickException(str(e)) from None
44
46
  what = "Already a space" if there else "Initialized a space"
45
47
  console.print(Text.assemble((what, f"bold {PURPLE}"), (" ", ""), (tilde(root), BLUE)))
46
48
  again = "nuspace run" if path is None else f"nuspace run {path}"
@@ -2,28 +2,30 @@
2
2
 
3
3
  One flag, one :mod:`nuspace.host` preset: :func:`~nuspace.host.serve` by
4
4
  default, :func:`~nuspace.host.headless` with ``--headless``. Runs until
5
- interrupted, then the brackets reap the workers on the way out. Which space
6
- is :func:`~nuspace._cli._meta.space_root`: PATH, made a space if it is not
7
- one, else the nearest space up from here, else home. ``--tmp`` is a
8
- throwaway one, gone at close. The header names the space's root either way.
5
+ interrupted, then the host ends what is live and the brackets stop the
6
+ workers. Which space is :func:`~nuspace._cli._meta.space_root`: PATH, made
7
+ a space if it is not one, else the nearest space up from here, else home.
8
+ ``--tmp`` is a throwaway one, gone at close. The header names the space's root either way.
9
9
 
10
10
  ``--with`` names a Plane an installed package adds, ``pkg.plane`` as
11
11
  ``nuspace verse`` lists them, or a bare name for a nuverse Plane: it is made
12
12
  in the space once, through :func:`~nuspace.host.with_plane`, and the tab
13
- opens on it. The space remembers the plane it made, so the next run with
14
- the same name reopens it. The header names the Plane: its id is only known
15
- once the space is open.
13
+ opens on it. The next run with the same name reopens the newest plane made
14
+ from it, unless removed. The header names the Plane: its id is only known
15
+ once the space is open. A space open in another host, or of an older store
16
+ format, is refused with a short error.
16
17
  """
17
18
 
18
19
  from __future__ import annotations
19
20
 
20
21
  import rich_click as click
21
22
 
22
- from nuspace.ext.registry import registered_name
23
+ from nuspace.errors import Refused
23
24
  from nuspace.host import presets
25
+ from nuspace.specs import registered_name
24
26
 
25
27
  from .._installed import resolve
26
- from .._meta import announce, hold, opened, path_argument, space_root, tmp_option
28
+ from .._meta import announce, hold, path_argument, space_root, tmp_option
27
29
 
28
30
 
29
31
  __all__ = ["run"]
@@ -49,7 +51,7 @@ __all__ = ["run"]
49
51
  ),
50
52
  )
51
53
  @click.option(
52
- "--headless", is_flag=True, help="No web device. --host, --port and --no-browser go unused."
54
+ "--headless", is_flag=True, help="Serve no browser. --host, --port and --no-browser go unused."
53
55
  )
54
56
  @click.option("--host", default="127.0.0.1", show_default=True, help="Interface to bind.")
55
57
  @click.option("-p", "--port", default=8080, show_default=True, help="Port to bind.")
@@ -66,18 +68,20 @@ def run(
66
68
  """Run until Ctrl+C."""
67
69
  path = space_root(path, tmp=tmp)
68
70
  web = {"host": host, "port": port, "open_browser": not no_browser}
69
- if plane is not None:
70
- spec = resolve(plane)
71
- made = registered_name(spec)
72
- if headless:
73
- term = opened(presets.with_plane, spec, path, web=False)
71
+ made = None
72
+ try:
73
+ if plane is not None:
74
+ spec = resolve(plane)
75
+ made = registered_name(spec)
76
+ if headless:
77
+ term = presets.with_plane(path, spec, web=False)
78
+ else:
79
+ term = presets.with_plane(path, spec, **web)
80
+ elif headless:
81
+ term = presets.headless(path)
74
82
  else:
75
- term = opened(presets.with_plane, spec, path, **web)
76
- elif headless:
77
- term = opened(presets.headless, path)
78
- made = None
79
- else:
80
- term = opened(presets.serve, path, **web)
81
- made = None
83
+ term = presets.serve(path, **web)
84
+ except Refused as e:
85
+ raise click.ClickException(str(e)) from None
82
86
  announce(path, headless=headless, plane=made)
83
87
  hold(term)
@@ -8,10 +8,10 @@
8
8
  What is sent: ``first_run`` once per user and ``space_opened`` per open, by
9
9
  the host however the space is opened (:func:`.opened`), ``space_loaded`` per
10
10
  page load in the browser (through the web device, never from the browser
11
- itself), ``plane_created``, ``plane_removed``, ``cell_created``,
12
- ``cell_removed`` by the ops that do it, in whatever process runs them
13
- (:mod:`nuspace.ops.usage`), and the ``quickstart_*`` steps nuverse tracks
14
- through those ops. Each carries the versions and the machine's kind,
11
+ itself), and the ``quickstart_*`` steps nuverse tracks. ``plane_created``,
12
+ ``plane_removed``, ``cell_created`` and ``cell_removed`` are still listed but
13
+ nothing tells them: ops touch only the stores, and no driver tells them yet
14
+ (:func:`nuspace._telemetry.usage.track` is there for whoever does). Each carries the versions and the machine's kind,
15
15
  nothing about the space. Those names, :data:`.send.EVENTS`, are all that is
16
16
  ever sent: any other is dropped before it is queued.
17
17
 
@@ -80,7 +80,7 @@ EVENTS = frozenset(
80
80
  "plane_removed",
81
81
  "cell_created",
82
82
  "cell_removed",
83
- # nuverse's quickstart, through ``nuspace.ops.track``.
83
+ # nuverse's quickstart, through ``nuspace._telemetry.usage.track``.
84
84
  "quickstart_demo_opened",
85
85
  "quickstart_page_made",
86
86
  "quickstart_edited",
@@ -1,4 +1,4 @@
1
- """Usage: the ops that make and remove planes and cells say so, once their commit lands.
1
+ """Usage: telemetry as nu terms, told once the term runs.
2
2
 
3
3
  - :func:`track`: one event by name, eg ``track("plane_created")``, handed
4
4
  to :func:`nuspace._telemetry.track`. O(1): it queues and returns, never
@@ -7,11 +7,10 @@
7
7
  script.
8
8
  - :func:`opened`: a space opened, told once per open by the host.
9
9
 
10
- Each op tracks after its own commit, never inside it, so a retried commit
11
- is told once, and only when it made or removed something. Only what is the
12
- user's is told: a system plane and the cells on one never are. A write
13
- that goes round the ops is not told at all: this is the trend, not a count.
14
- An event is its name alone, never a name, an id, a count or a source.
10
+ Ops touch only the stores, so no op tracks: ``plane_created`` and the
11
+ like have no teller yet. Whoever tells one does it after the commit, never
12
+ inside it, so a retried commit is told once. An event is its name alone,
13
+ never a name, an id, a count or a source.
15
14
  """
16
15
 
17
16
  from __future__ import annotations
@@ -0,0 +1,10 @@
1
+ """Devices: ways into the space, each with its own stores. A device calls ops like anyone.
2
+
3
+ - :mod:`.web`: the browser: the server, its tabs and panes in its own
4
+ stores, the shell's feeds, nav, and the session env.
5
+ """
6
+
7
+ from . import web
8
+
9
+
10
+ __all__ = ["web"]
@@ -0,0 +1,76 @@
1
+ """``nuspace.devices.web``: the web device, the browser's way into the space, with its own stores.
2
+
3
+ The sdk, what a program calls, is the ops (:mod:`.ops`), flat here::
4
+
5
+ import nuspace.devices.web as web
6
+
7
+ nuspace.atomic(web.add(plane, editable=True)) # put a plane on the web
8
+ nuspace.atomic(web.pin(plane)) # pin it in the sidebar
9
+ web.params(), web.on_params() # a cell's own pane params
10
+ web.restart_cell(sid, cell) # run one cell again, brackets itself
11
+ nuspace.atomic(web.link(row.link, plane)) # draw a link to a plane
12
+
13
+ - :mod:`.shapes`: :class:`Web` (web planes, pins, recents) and :class:`Conn`
14
+ (browser tabs, their panes and sidebar folds); :mod:`.stores`: their
15
+ files, channels and init terms.
16
+ - :mod:`.ops`: the ops over them.
17
+ - :mod:`.nav`: the driver running what the panes show.
18
+ - :mod:`.device`: the server and one arm per tab, the sidebar and viewer
19
+ feeds under it, and :mod:`.planes` (home, settings, search) it ships with.
20
+ Imported by the host only: it pulls in the web server.
21
+
22
+ Safe for a worker to import: nothing imported here pulls in a server.
23
+ """
24
+
25
+ from .ops import (
26
+ add,
27
+ close_tab,
28
+ collapse,
29
+ expand,
30
+ href,
31
+ link,
32
+ move_pin,
33
+ on_params,
34
+ open_tab,
35
+ params,
36
+ pin,
37
+ restart_cell,
38
+ restart_pane,
39
+ set,
40
+ set_pane_params,
41
+ set_panes,
42
+ unpin,
43
+ visit,
44
+ )
45
+ from .shapes import RECENTS_CAP, Conn, Pane, Tab, Web, WebPlane
46
+ from .stores import CONN_STORE, WEB_STORE
47
+
48
+
49
+ __all__ = [
50
+ "CONN_STORE",
51
+ "RECENTS_CAP",
52
+ "WEB_STORE",
53
+ "Conn",
54
+ "Pane",
55
+ "Tab",
56
+ "Web",
57
+ "WebPlane",
58
+ "add",
59
+ "close_tab",
60
+ "collapse",
61
+ "expand",
62
+ "href",
63
+ "link",
64
+ "move_pin",
65
+ "on_params",
66
+ "open_tab",
67
+ "params",
68
+ "pin",
69
+ "restart_cell",
70
+ "restart_pane",
71
+ "set",
72
+ "set_pane_params",
73
+ "set_panes",
74
+ "unpin",
75
+ "visit",
76
+ ]