chore: 4.15.0 — @shade/media

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-18 21:19:37 +02:00
parent 8fd1b19902
commit 4703140683
28 changed files with 66 additions and 27 deletions

View File

@@ -5,6 +5,45 @@ All notable changes to Shade are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [4.15.0] — 2026-10-19 — Media: films, video, images, audio and live streams, end to end
New package **`@shade/media`** — see `docs/media.md`.
- **Sealed media (SMF1).** A film, video, song or image is sealed once
(streaming, constant memory, ~300 MiB/s) into a file any Range-capable
store can serve. Readers fetch only the segments under the playhead; every
segment is checked against a digest table pinned by the grant's root
digest, so neither the store nor another key holder can substitute bytes.
Seek over HTTP: ~4 ms to the first decrypted byte (localhost).
- **Live channels (SLF1).** Logs, text, live video/audio and images from one
publisher to many viewers through a relay. Sender-Keys hash chain (each
frame key used once), every frame Ed25519-signed, sticky init frames and
keyframe snapshots so a viewer can join late, epoch rotation to remove a
viewer, and link mode so a capability link survives publisher restarts.
200 viewers: 100 % delivered, p50 28 ms.
- **Grants** carry the keys over an existing Shade session —
`shade.shareMedia(peer, grant)` / `shade.onMediaGrant(handler)` in the SDK —
or in a `#shade=` link fragment that never reaches a server.
- **Browser.** A Service Worker plays sealed files in native
`<video>`/`<audio>`/`<img>` with seeking; `LivePlayer` plays live WebM via
MSE; the relay serves a `/watch/` page that opens any link.
- **Server.** `createMediaService`: disk-backed sealed store with signed
owner uploads and immutable objects, a WebSocket live relay with bounded
backlog and slow-viewer shedding, and the watch page. Mounted by the
container when `SHADE_MEDIA_DIR` is set (no in-memory fallback);
`SHADE_MEDIA_OWNERS` lists who may upload and open channels.
- **CLI.** `shade media serve|put|get|ls|rm|whoami`,
`shade live text|webm|watch` (`tail -f … | shade live text`,
`ffmpeg … -f webm - | shade live webm`).
- **Kotlin.** `no.zyon.shade.media`: SMF1 reader and sealer, grants, live
subscriber and publisher — byte-for-byte against `test-vectors/media.json`.
### Fixed
- The container refused every request body over 128 MiB (Bun's default),
which would have made every film a 413. The cap is raised only when media
is mounted, and every other route now has an explicit 128 MiB body limit.
## [4.14.1] — 2026-10-16 — Vault: `edit` for vaults two devices write ## [4.14.1] — 2026-10-16 — Vault: `edit` for vaults two devices write
- `VaultClient.edit(change, at)` changes a few files against the head that - `VaultClient.edit(change, at)` changes a few files against the head that

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/cli", "name": "@shade/cli",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/cli.ts", "main": "src/cli.ts",
"bin": { "bin": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/core", "name": "@shade/core",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/crypto-web", "name": "@shade/crypto-web",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/dashboard", "name": "@shade/dashboard",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/files", "name": "@shade/files",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/inbox-server", "name": "@shade/inbox-server",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/inbox", "name": "@shade/inbox",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/key-transparency", "name": "@shade/key-transparency",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/keychain", "name": "@shade/keychain",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,7 +1,7 @@
{ {
"name": "@shade/media", "name": "@shade/media",
"version": "4.15.0", "version": "4.15.0",
"description": "End-to-end encrypted media streaming for Shade \u2014 seekable sealed films, videos, images and audio, and live channels for logs, text and live video", "description": "End-to-end encrypted media streaming for Shade — seekable sealed films, videos, images and audio, and live channels for logs, text and live video",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/observability", "name": "@shade/observability",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/observer", "name": "@shade/observer",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/proto", "name": "@shade/proto",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/recovery", "name": "@shade/recovery",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/sdk", "name": "@shade/sdk",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/server", "name": "@shade/server",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/storage-encrypted", "name": "@shade/storage-encrypted",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/storage-indexeddb", "name": "@shade/storage-indexeddb",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/storage-postgres", "name": "@shade/storage-postgres",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/storage-sqlite", "name": "@shade/storage-sqlite",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/streams", "name": "@shade/streams",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/transfer", "name": "@shade/transfer",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/transport-bridge", "name": "@shade/transport-bridge",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/transport-webrtc", "name": "@shade/transport-webrtc",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/transport", "name": "@shade/transport",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/vault", "name": "@shade/vault",
"version": "4.14.1", "version": "4.15.0",
"description": "Server-side encrypted file store for Shade — content-addressed objects with an append-only manifest log", "description": "Server-side encrypted file store for Shade — content-addressed objects with an append-only manifest log",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@shade/widgets", "name": "@shade/widgets",
"version": "4.14.1", "version": "4.15.0",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"types": "src/index.ts", "types": "src/index.ts",