sporades 0.9.40 โ†’ 0.9.42

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 (99) hide show
  1. package/CHANGES.md +81 -0
  2. package/README.md +6 -0
  3. package/bin/sporades-host-helper.js +333 -81
  4. package/bin/sporades.js +14618 -3136
  5. package/dist/access-keys-runtime.d.ts +1 -1
  6. package/dist/access-keys-runtime.d.ts.map +1 -1
  7. package/dist/access-keys-runtime.js +16 -5
  8. package/dist/access-keys-runtime.js.map +1 -1
  9. package/dist/auth-admission.d.ts.map +1 -1
  10. package/dist/auth-admission.js +3 -0
  11. package/dist/auth-admission.js.map +1 -1
  12. package/dist/auth-runtime.d.ts +10 -7
  13. package/dist/auth-runtime.d.ts.map +1 -1
  14. package/dist/auth-runtime.js +150 -28
  15. package/dist/auth-runtime.js.map +1 -1
  16. package/dist/capsule-services.d.ts +22 -6
  17. package/dist/capsule-services.d.ts.map +1 -1
  18. package/dist/capsule-services.js +80 -40
  19. package/dist/capsule-services.js.map +1 -1
  20. package/dist/cli/access-key-operator-envelope.js +1 -1
  21. package/dist/cli/access-key-operator-envelope.js.map +1 -1
  22. package/dist/cli/cli-version.d.ts +1 -1
  23. package/dist/cli/cli-version.js +1 -1
  24. package/dist/cli/doctor.d.ts.map +1 -1
  25. package/dist/cli/doctor.js +42 -9
  26. package/dist/cli/doctor.js.map +1 -1
  27. package/dist/cli/host-autostart.d.ts +7 -0
  28. package/dist/cli/host-autostart.d.ts.map +1 -1
  29. package/dist/cli/host-autostart.js +21 -4
  30. package/dist/cli/host-autostart.js.map +1 -1
  31. package/dist/cli/host-backups.d.ts +6 -0
  32. package/dist/cli/host-backups.d.ts.map +1 -1
  33. package/dist/cli/host-backups.js.map +1 -1
  34. package/dist/cli/host-helper-requests.d.ts +2 -2
  35. package/dist/cli/host-helper-requests.d.ts.map +1 -1
  36. package/dist/cli/project-config.js +1 -1
  37. package/dist/cli/project-config.js.map +1 -1
  38. package/dist/cli/sporades-host-helper.js +320 -71
  39. package/dist/cli/sporades-host-helper.js.map +1 -1
  40. package/dist/cli/sporades.js +194 -35
  41. package/dist/cli/sporades.js.map +1 -1
  42. package/dist/compose-spec-schema.d.ts +2318 -0
  43. package/dist/compose-spec-schema.d.ts.map +1 -0
  44. package/dist/compose-spec-schema.js +2692 -0
  45. package/dist/compose-spec-schema.js.map +1 -0
  46. package/dist/container-service-reset.d.ts +4 -0
  47. package/dist/container-service-reset.d.ts.map +1 -0
  48. package/dist/container-service-reset.js +107 -0
  49. package/dist/container-service-reset.js.map +1 -0
  50. package/dist/container-services.d.ts +62 -0
  51. package/dist/container-services.d.ts.map +1 -0
  52. package/dist/container-services.js +701 -0
  53. package/dist/container-services.js.map +1 -0
  54. package/dist/endpoint-file-response.d.ts +2 -0
  55. package/dist/endpoint-file-response.d.ts.map +1 -1
  56. package/dist/endpoint-file-response.js +5 -0
  57. package/dist/endpoint-file-response.js.map +1 -1
  58. package/dist/endpoint-session.d.ts +3 -0
  59. package/dist/endpoint-session.d.ts.map +1 -0
  60. package/dist/endpoint-session.js +15 -0
  61. package/dist/endpoint-session.js.map +1 -0
  62. package/dist/generated-source-manifest.json +27 -6
  63. package/dist/observability-runtime.d.ts +1 -2
  64. package/dist/observability-runtime.d.ts.map +1 -1
  65. package/dist/observability-runtime.js +65 -43
  66. package/dist/observability-runtime.js.map +1 -1
  67. package/dist/server-env-requirements.d.ts.map +1 -1
  68. package/dist/server-env-requirements.js +8 -0
  69. package/dist/server-env-requirements.js.map +1 -1
  70. package/dist/server-runtime-source.d.ts +5 -1
  71. package/dist/server-runtime-source.d.ts.map +1 -1
  72. package/dist/server-runtime-source.js +293 -92
  73. package/dist/server-runtime-source.js.map +1 -1
  74. package/dist/server.d.ts +12 -4
  75. package/dist/server.d.ts.map +1 -1
  76. package/dist/server.js +13 -0
  77. package/dist/server.js.map +1 -1
  78. package/dist/services-context.d.ts +11 -0
  79. package/dist/services-context.d.ts.map +1 -0
  80. package/dist/services-context.js +65 -0
  81. package/dist/services-context.js.map +1 -0
  82. package/dist/teams-runtime.d.ts.map +1 -1
  83. package/dist/teams-runtime.js +30 -0
  84. package/dist/teams-runtime.js.map +1 -1
  85. package/dist/templates/client-runtime-template.d.ts.map +1 -1
  86. package/dist/templates/client-runtime-template.js +17 -1
  87. package/dist/templates/client-runtime-template.js.map +1 -1
  88. package/dist/templates/server-bundle-entry.js +1 -0
  89. package/dist/templates/server-bundle-entry.js.map +1 -1
  90. package/package.json +11 -4
  91. package/src/types/client.d.ts +19 -4
  92. package/src/types/host-backups.d.ts +4 -1
  93. package/src/types/observability.d.ts +12 -2
  94. package/src/types/server.d.ts +72 -6
  95. package/vendor/compose-spec-LICENSE +191 -0
  96. package/dist/stored-row-decoding.d.ts +0 -7
  97. package/dist/stored-row-decoding.d.ts.map +0 -1
  98. package/dist/stored-row-decoding.js +0 -69
  99. package/dist/stored-row-decoding.js.map +0 -1
package/CHANGES.md CHANGED
@@ -1,5 +1,64 @@
1
1
  # Changes
2
2
 
3
+ ## v0.9.42 - 2026-10-30
4
+
5
+ Changes since v0.9.41.
6
+
7
+ ### ๐Ÿš€ Features
8
+
9
+ - Add atomic Capsule password-change reservations (#320) (94b959e7).
10
+ - Add declared local Capsule container services (#315) (56a08078).
11
+
12
+ ### ๐Ÿ› Bug Fixes
13
+
14
+ - Fix Hosted route worker readiness timeout and record hosted acceptance (#321) (09f7e539).
15
+
16
+ ### ๐Ÿ”ง Improvements
17
+
18
+ - Regenerate dist and bin [skip ci] (b936a834).
19
+ - Regenerate dist and bin [skip ci] (5ecc7466).
20
+ - Regenerate dist and bin [skip ci] (898582f5).
21
+ - Regenerate dist and bin [skip ci] (02920387).
22
+
23
+ ### ๐Ÿ“ Documentation
24
+
25
+ - Automate npm releases with GitHub OIDC trusted publishing (#322) (31e6606c).
26
+ - Reconcile Hosted routes after dynamic Docker port changes (#317) (08ff36b8).
27
+
28
+ ## v0.9.41 - 2026-10-24
29
+
30
+ Changes since v0.9.40.
31
+
32
+ ### ๐Ÿš€ Features
33
+
34
+ - Allow any script version (4a43c515).
35
+ - Add Capsule implicitMutations opt-out for the implicit table mutation surface (#304) (9692d63e).
36
+ - Add explicitly sessionless public endpoints (#308) (1b367744).
37
+ - Add atomic Capsule admission for additional Team creation (#305) (d74d7999).
38
+
39
+ ### ๐Ÿ› Bug Fixes
40
+
41
+ - Prevent account-wide sign-in lockout with bounded verification (#299) (b73dc192).
42
+
43
+ ### ๐Ÿ”ง Improvements
44
+
45
+ - Regenerate dist and bin [skip ci] (271b05d2).
46
+ - Regenerate dist and bin [skip ci] (9c3e3204).
47
+
48
+ ### ๐Ÿ“ Documentation
49
+
50
+ - Build dist and bin on main with local CI (#314) (3f555768).
51
+ - Remove the runtime-owned ctx.env browser query (#289) (#301) (cde2b5cf).
52
+ - Reject email signup from linked identities (#300) (e6348a83).
53
+ - Make the full test suite pass in office worktrees (#309) (23d1663d).
54
+ - Expose shared rate limits during Capsule File ingress admission (#307) (2f57e950).
55
+ - Revoke all account authority atomically on a browser password change (#302) (32962832).
56
+ - Isolate public collection budgets from server error delivery (#303) (c1956ad0).
57
+
58
+ ### ๐Ÿงช Tests
59
+
60
+ - Wait for exported durable Job metrics (#311) (48951c93).
61
+
3
62
  ## v0.9.40 - 2026-10-23
4
63
 
5
64
  Changes since v0.9.39.
@@ -22,6 +81,15 @@ Changes since v0.9.38.
22
81
 
23
82
  ## Unreleased
24
83
 
84
+ ### ๐Ÿ”’ Security
85
+
86
+ - Remove the runtime-owned `ctx.env` browser query (#289). Query clients,
87
+ including Anonymous Sessions, could subscribe to the undeclared `ctx.env`
88
+ name and receive the entire server environment. That name now follows the
89
+ ordinary unknown-query response and returns no environment data, while
90
+ `ctx.env` stays available to trusted server handlers. A Capsule that declares
91
+ its own query with that name keeps the normal declared-query contract.
92
+
25
93
  ### ๐Ÿ“ฆ Packaging
26
94
 
27
95
  - Upgrade the default Capsule Base image to `0.3.0-node24-alpine`, using Node
@@ -34,6 +102,19 @@ Changes since v0.9.38.
34
102
 
35
103
  ### ๐Ÿš€ Features
36
104
 
105
+ - Let Capsules opt out of implicit table mutations (#292). Declaring
106
+ `implicitMutations: false` bounds the mutation surface to explicitly declared
107
+ names: every undeclared name answers the ordinary unknown-mutation refusal
108
+ before context middleware, any fallback write, mutation hooks, or success
109
+ effects such as the deferred query rebroadcast. Omitting the flag or passing
110
+ `true` keeps 0.9.x behavior, where undeclared names that describe a table
111
+ (`addNote`, `updateNoteText`) insert or update rows under their fallback
112
+ semantics. Declared mutations, server `ctx.db`, implicit table queries and
113
+ table ACLs keep their behavior, and a bundled declared mutation matching the
114
+ generated scaffold `addโ€ฆ` body stops riding the implicit path while the
115
+ surface is retired. Present non-boolean values are rejected at authoring and
116
+ at Capsule startup (`INVALID_IMPLICIT_MUTATIONS`). The flag is not business
117
+ quota enforcement; declare checks in mutations, ACL rules, or hooks.
37
118
  - Add read-only `sporades host db list|dump|query` for running Hosted Capsules (#285).
38
119
  It runs the Host helper over the operator's existing SSH access and the
39
120
  generated Bundle's one-shot action seam, opens the Capsule SQLite file
package/README.md CHANGED
@@ -360,6 +360,12 @@ Capsules through authorized public keys in `sporades.json`. Normal management
360
360
  remains the CLI and Host helper surfaces; SSH is a compatibility and emergency
361
361
  access path.
362
362
 
363
+ ## Contributing
364
+
365
+ Run a local build and tests, but never commit `dist/` or `bin/` in a PR. CI
366
+ regenerates their tracked copies on main after merge. See the
367
+ [generated artifacts workflow](https://github.com/mgscox/sporades/blob/main/docs/agents/generated-artifacts.md).
368
+
363
369
  ## License
364
370
 
365
371
  MIT