sporades 0.9.4 โ†’ 0.9.7

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 (38) hide show
  1. package/CHANGES.md +60 -23
  2. package/bin/sporades-host-helper.js +9 -1
  3. package/bin/sporades.js +11992 -11088
  4. package/dist/auth-admission.d.ts.map +1 -1
  5. package/dist/auth-admission.js +9 -0
  6. package/dist/auth-admission.js.map +1 -1
  7. package/dist/auth-runtime.d.ts +8 -4
  8. package/dist/auth-runtime.d.ts.map +1 -1
  9. package/dist/auth-runtime.js +288 -8
  10. package/dist/auth-runtime.js.map +1 -1
  11. package/dist/cli/cli-version.d.ts +1 -1
  12. package/dist/cli/cli-version.js +1 -1
  13. package/dist/cli/sporades.js +18 -1
  14. package/dist/cli/sporades.js.map +1 -1
  15. package/dist/database-runtime.d.ts.map +1 -1
  16. package/dist/database-runtime.js +32 -3
  17. package/dist/database-runtime.js.map +1 -1
  18. package/dist/file-ingress-runtime.d.ts +95 -0
  19. package/dist/file-ingress-runtime.d.ts.map +1 -0
  20. package/dist/file-ingress-runtime.js +529 -0
  21. package/dist/file-ingress-runtime.js.map +1 -0
  22. package/dist/file-storage-runtime.d.ts +1 -0
  23. package/dist/file-storage-runtime.d.ts.map +1 -1
  24. package/dist/file-storage-runtime.js +39 -1
  25. package/dist/file-storage-runtime.js.map +1 -1
  26. package/dist/generated-source-manifest.json +7 -2
  27. package/dist/server-runtime-source.d.ts.map +1 -1
  28. package/dist/server-runtime-source.js +213 -38
  29. package/dist/server-runtime-source.js.map +1 -1
  30. package/dist/server.d.ts +17 -0
  31. package/dist/server.d.ts.map +1 -1
  32. package/dist/server.js.map +1 -1
  33. package/dist/team-billing-management.js +0 -4
  34. package/dist/team-billing-management.js.map +1 -1
  35. package/dist/templates/client-runtime-template.js +23 -23
  36. package/package.json +1 -1
  37. package/src/types/client.d.ts +5 -4
  38. package/src/types/server.d.ts +25 -2
package/CHANGES.md CHANGED
@@ -1,38 +1,76 @@
1
1
  # Changes
2
2
 
3
- - Expose the verified provider-free Team Billing projection to active Capsule
4
- query and mutation contexts and to exact-Team Join admission. Current members
5
- may be authorized for safe reads while all customer-directed commands remain
6
- current-Team-admin operations; retained context handles are revoked.
7
- - Add an offline `sporades/server/team-billing-import` seam for exact,
8
- provider-free import of verified legacy Subscription snapshots and replay
9
- guards. Incomplete or conflicting evidence fails closed, including drift in
10
- durable Event ordering, terminal-latch safety fields, and contradictory
11
- Subscription Event/state tuples. The public adapter type now declares the
12
- complete named-dialect, execution, prepared-statement, and transaction seam.
3
+ ## Unreleased - 2026-08-30
13
4
 
14
- ## Unreleased - 2026-08-25
5
+ Changes since v0.9.5.
15
6
 
16
- Changes since v0.9.3.
7
+ ### ๐Ÿš€ Features
8
+
9
+ - Persist encrypted OAuth registration admission (920f4a71).
10
+ - Persist ingress receipts in runtime storage (015b03d0).
11
+ - Stream bounded multipart ingress parts (3996fe29).
12
+ - Add email registration admission seam (70168d34).
13
+ - Add trusted multipart file ingress leases (b51afa4e).
17
14
 
18
15
  ### ๐Ÿ› Bug Fixes
19
16
 
20
- - Serialize managed route mutations (625538a3).
21
- - Refresh hosted routes after container restart (1cccdffd).
17
+ - Publish ingress leases with CAS (9627b286).
18
+ - Preserve absent registration and stream file caps (7d5b35b4).
19
+ - Preserve null registration admission (252cf282).
20
+ - Close ingress and admission lifetimes (fa026b59).
21
+ - Preserve optional stable ingress keys (0002dc04).
22
+ - Align admission and ingress validation (1856cef4).
23
+ - Enforce multipart boundary grammar (44c43a3e).
24
+ - Complete local admission and ingress lifecycle (80d1d1c6).
25
+ - Validate OAuth admission envelope grammar (904b572d).
26
+ - Enforce multipart and OAuth admission bounds (ed405e88).
27
+ - Replay legacy principal ingress receipts (42290032).
28
+ - Fence registration and harden multipart framing (0f0a7429).
29
+ - Compensate failed multipart staging (2bcd0f2b).
30
+ - Honor trusted multipart ingress policy (7a425e98).
31
+ - Complete registration admission release parity (baeee2eb).
32
+ - Fix integrated endpoint ingress compatibility (5149e47f).
33
+ - Fix registration finalizer rollback (ed6d2129).
34
+ - Recover legacy actor ingress receipts (7fcb4994).
35
+ - Harden OAuth registration admission keys (582f0d90).
36
+ - Bind ingress ownership to explicit authority (033f4c6e).
37
+ - Migrate OAuth registration key pointers (fa7df6e9).
38
+ - Retire expired ingress leases safely (1b6a6cc5).
39
+ - Serialize ingress claims across runtimes (dc6c00c0).
40
+ - Persist ingress claim completion transactionally (2d3f98e1).
41
+ - Serialize ingress receipt acquisition (47d74918).
42
+ - Retain multipart parser state across chunks (a3d0ca92).
43
+ - Preserve multipart endpoint policy at runtime (cc4353ec).
44
+
45
+ ### ๐Ÿ“ Documentation
46
+
47
+ - Prove fragmented MinIO ingress cleanup (e4d9c7c6).
48
+ - Complete trusted file ingress parity (dd50047f).
49
+ - Fix registration admission option examples (a18f91e6).
22
50
 
23
51
  ### ๐Ÿงช Tests
24
52
 
25
- - Preserve registry image authority on Host restart (1ee77740).
26
- - Settle absent Host runtime rollback (0c5e6b8a).
27
- - Separate Host install and restore authority (4b18b496).
28
- - Harden Host runtime key mutation settlement (5ebe90be).
29
- - Harden Host route locks and helper upgrades (b895981b).
30
- - Serialize Host route mutations with OS locks (2cc492e8).
53
+ - Prove ingress claim transaction rollback (60a4b98c).
54
+ - Register ingress storage in adapter conformance (0001d96d).
55
+ - Prove ingress response loss recovery (c41025df).
56
+ - Prove ingress descriptor conflict race (0a12ed19).
57
+ - Prove concurrent ingress receipt acquisition (996db64d).
58
+ - Prove multipart ingress denial and disconnect cleanup (f2a08da5).
59
+ - Prove bounded multipart streaming (d3824243).
31
60
 
32
61
  ### ๐Ÿ“ฆ Packaging
33
62
 
34
- - Align Host release lifecycle settlement (28c23bcf).
35
- - Harden Host release rollback authority (98479008).
63
+ - Refresh host helper auth runtime (9248fc86).
64
+ - Prepare Sporades 0.9.6 integration candidate (50bb32ae).
65
+
66
+ ## Unreleased - 2026-08-26
67
+
68
+ Changes since v0.9.4.
69
+
70
+ ### ๐Ÿ› Bug Fixes
71
+
72
+ - Dispatch Team billing after mutation commit (62482c15).
73
+ - Stage Team billing from mutation transactions (fd649a91).
36
74
 
37
75
  ## 0.8.5 - 2026-08-15
38
76
 
@@ -71,4 +109,3 @@ generated artifacts, and documentation.
71
109
  never sends Join-link email. See the [Built-in Teams reference](https://mgscox.github.io/sporades/reference/teams).
72
110
 
73
111
 
74
-
@@ -293,6 +293,10 @@ var EMAIL_SIGN_IN_THROTTLE_WINDOW_MS = 15 * 60 * 1e3;
293
293
  var PASSWORD_RESET_DEFAULT_TTL_MS = 60 * 60 * 1e3;
294
294
  var PASSWORD_RESET_MIN_TTL_MS = 5 * 60 * 1e3;
295
295
  var PASSWORD_RESET_MAX_TTL_MS = 24 * 60 * 60 * 1e3;
296
+ var registrationDeniedRollbackMarker = Symbol("sporades.registrationDeniedRollback");
297
+ var invalidRegistrationAdmission = Symbol("sporades.invalidRegistrationAdmission");
298
+ var OAUTH_REGISTRATION_KEY_GRACE_MS = 10 * 60 * 1e3;
299
+ var oauthRegistrationUnsealFailed = Symbol("sporades.oauthRegistrationUnsealFailed");
296
300
 
297
301
  // src/cli/access-key-operator-envelope.ts
298
302
  import { createInterface } from "node:readline/promises";
@@ -454,6 +458,10 @@ var nodeFsModule = process.getBuiltinModule("node:fs");
454
458
  var transactionOperations = Symbol.for("sporades.database.transactionOperations");
455
459
  var transactionBeforeCommitChecks2 = Symbol.for("sporades.database.transactionBeforeCommitChecks");
456
460
 
461
+ // src/file-ingress-runtime.ts
462
+ var crypto2 = process.getBuiltinModule("node:crypto");
463
+ var leaseTtlMs = 10 * 60 * 1e3;
464
+
457
465
  // src/server-runtime-source.ts
458
466
  var trustedReadTransactionAdapter = Symbol("sporades.trustedReadTransactionAdapter");
459
467
  var runtimeOwnedJobEnqueueHandler = Symbol("sporades.runtimeOwnedJobEnqueueHandler");
@@ -614,7 +622,7 @@ function writeEnvelope(result, failed = false) {
614
622
  }
615
623
 
616
624
  // src/cli/cli-version.ts
617
- var CLI_VERSION = "0.9.4";
625
+ var CLI_VERSION = "0.9.7";
618
626
 
619
627
  // src/cli/schedule-inspection-envelope.ts
620
628
  var SCHEDULE_DIAGNOSTIC_FIELDS = /* @__PURE__ */ new Set([