feat(media,server): media in the Shade container, owner-only uploads and channels
- createMediaService: sealed store + live relay + /watch in one mount, used by both `shade media serve` and standalone.ts - SHADE_MEDIA_DIR enables it (no in-memory fallback, like the vault); SHADE_MEDIA_OWNERS lists who may upload and open live channels - live publishers co-sign their hello with an owner key; a relay with an owner list refuses everyone else, and the client stops on that refusal instead of reconnecting forever - relay caps live channels held at once; `shade media whoami` Verified against the real standalone process: film round trip identical, stranger gets 403 / refused channel, live logs and browser playback. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,3 +6,5 @@ export { createLiveRelay, FileLivePinStore, MemoryLivePinStore } from './server/
|
||||
export type { LiveRelay, LiveRelayOptions, LivePin, LivePinStore } from './server/live-relay.js';
|
||||
export { createWatchRoutes } from './server/watch-routes.js';
|
||||
export type { WatchRoutesOptions } from './server/watch-routes.js';
|
||||
export { createMediaService, parseOwners } from './server/service.js';
|
||||
export type { MediaService, MediaServiceOptions } from './server/service.js';
|
||||
|
||||
Reference in New Issue
Block a user