prismcast 1.9.0 → 1.10.0
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.
- package/dist/app.d.ts +1 -1
- package/dist/app.js +27 -9
- package/dist/app.js.map +1 -1
- package/dist/browser/cdp.js +7 -7
- package/dist/browser/cdp.js.map +1 -1
- package/dist/browser/channelSelection.d.ts +41 -11
- package/dist/browser/channelSelection.js +75 -24
- package/dist/browser/channelSelection.js.map +1 -1
- package/dist/browser/display.d.ts +1 -1
- package/dist/browser/index.d.ts +8 -8
- package/dist/browser/index.js +42 -43
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/login.d.ts +2 -2
- package/dist/browser/login.js +1 -1
- package/dist/browser/manifestInterceptor.d.ts +77 -0
- package/dist/browser/manifestInterceptor.js +323 -0
- package/dist/browser/manifestInterceptor.js.map +1 -0
- package/dist/browser/precaching.js +4 -4
- package/dist/browser/tuning/comcastPolymer.d.ts +1 -1
- package/dist/browser/tuning/cox.d.ts +1 -1
- package/dist/browser/tuning/directv.d.ts +1 -1
- package/dist/browser/tuning/directv.js +61 -62
- package/dist/browser/tuning/directv.js.map +1 -1
- package/dist/browser/tuning/fox.d.ts +1 -1
- package/dist/browser/tuning/fox.js +171 -14
- package/dist/browser/tuning/fox.js.map +1 -1
- package/dist/browser/tuning/hbo.d.ts +1 -1
- package/dist/browser/tuning/hbo.js +6 -6
- package/dist/browser/tuning/hbo.js.map +1 -1
- package/dist/browser/tuning/hulu.d.ts +1 -1
- package/dist/browser/tuning/hulu.js +117 -110
- package/dist/browser/tuning/hulu.js.map +1 -1
- package/dist/browser/tuning/shared.d.ts +3 -3
- package/dist/browser/tuning/shared.js +5 -5
- package/dist/browser/tuning/sling.d.ts +1 -1
- package/dist/browser/tuning/sling.js +28 -28
- package/dist/browser/tuning/sling.js.map +1 -1
- package/dist/browser/tuning/spectrum.d.ts +1 -1
- package/dist/browser/tuning/spectrum.js +21 -22
- package/dist/browser/tuning/spectrum.js.map +1 -1
- package/dist/browser/tuning/thumbnailRow.d.ts +1 -1
- package/dist/browser/tuning/thumbnailRow.js +1 -1
- package/dist/browser/tuning/tileClick.d.ts +1 -1
- package/dist/browser/tuning/tileClick.js +5 -5
- package/dist/browser/tuning/xfinity.d.ts +1 -1
- package/dist/browser/tuning/youtubeTv.d.ts +1 -1
- package/dist/browser/tuning/youtubeTv.js +17 -18
- package/dist/browser/tuning/youtubeTv.js.map +1 -1
- package/dist/browser/video.d.ts +20 -6
- package/dist/browser/video.js +30 -38
- package/dist/browser/video.js.map +1 -1
- package/dist/channels/index.d.ts +1 -2
- package/dist/channels/index.js +73 -40
- package/dist/channels/index.js.map +1 -1
- package/dist/config/channelForm.d.ts +58 -0
- package/dist/config/channelForm.js +129 -0
- package/dist/config/channelForm.js.map +1 -0
- package/dist/config/consistencyProbe.d.ts +7 -0
- package/dist/config/consistencyProbe.js +143 -0
- package/dist/config/consistencyProbe.js.map +1 -0
- package/dist/config/health.d.ts +4 -3
- package/dist/config/health.js +75 -62
- package/dist/config/health.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +19 -12
- package/dist/config/index.js.map +1 -1
- package/dist/config/paths.d.ts +9 -3
- package/dist/config/paths.js +12 -4
- package/dist/config/paths.js.map +1 -1
- package/dist/config/persistence.context.d.ts +8 -0
- package/dist/config/persistence.context.js +30 -0
- package/dist/config/persistence.context.js.map +1 -0
- package/dist/config/persistence.d.ts +110 -12
- package/dist/config/persistence.js +351 -32
- package/dist/config/persistence.js.map +1 -1
- package/dist/config/presets.d.ts +14 -4
- package/dist/config/presets.js +84 -75
- package/dist/config/presets.js.map +1 -1
- package/dist/config/profiles.d.ts +2 -2
- package/dist/config/profiles.js +7 -9
- package/dist/config/profiles.js.map +1 -1
- package/dist/config/servicePacks.d.ts +2 -2
- package/dist/config/servicePacks.js +28 -28
- package/dist/config/servicePacks.js.map +1 -1
- package/dist/config/services.d.ts +62 -36
- package/dist/config/services.js +150 -136
- package/dist/config/services.js.map +1 -1
- package/dist/config/sites.d.ts +3 -3
- package/dist/config/sites.js +16 -16
- package/dist/config/sites.js.map +1 -1
- package/dist/config/userChannels.d.ts +500 -41
- package/dist/config/userChannels.js +1201 -312
- package/dist/config/userChannels.js.map +1 -1
- package/dist/config/userConfig.d.ts +103 -10
- package/dist/config/userConfig.js +277 -117
- package/dist/config/userConfig.js.map +1 -1
- package/dist/config/userProfiles.d.ts +4 -2
- package/dist/config/userProfiles.js +72 -26
- package/dist/config/userProfiles.js.map +1 -1
- package/dist/hdhr/channelMap.js +8 -11
- package/dist/hdhr/channelMap.js.map +1 -1
- package/dist/hdhr/deviceId.js +10 -9
- package/dist/hdhr/deviceId.js.map +1 -1
- package/dist/hdhr/discover.js +4 -5
- package/dist/hdhr/discover.js.map +1 -1
- package/dist/hdhr/index.js +6 -10
- package/dist/hdhr/index.js.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/native/codecInference.d.ts +44 -0
- package/dist/native/codecInference.js +327 -0
- package/dist/native/codecInference.js.map +1 -0
- package/dist/native/decrypt.d.ts +1 -1
- package/dist/native/index.d.ts +5 -5
- package/dist/native/index.js +42 -64
- package/dist/native/index.js.map +1 -1
- package/dist/native/probe.d.ts +27 -9
- package/dist/native/probe.js +158 -67
- package/dist/native/probe.js.map +1 -1
- package/dist/native/proxy.d.ts +4 -2
- package/dist/native/proxy.js +52 -49
- package/dist/native/proxy.js.map +1 -1
- package/dist/native/tokenExpiry.d.ts +22 -0
- package/dist/native/tokenExpiry.js +153 -0
- package/dist/native/tokenExpiry.js.map +1 -0
- package/dist/routes/auth.js +6 -10
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/components.js +2 -2
- package/dist/routes/components.js.map +1 -1
- package/dist/routes/config/channels/endpoints/browse.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/browse.js +195 -0
- package/dist/routes/config/channels/endpoints/browse.js.map +1 -0
- package/dist/routes/config/channels/endpoints/bulk.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/bulk.js +128 -0
- package/dist/routes/config/channels/endpoints/bulk.js.map +1 -0
- package/dist/routes/config/channels/endpoints/crud.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/crud.js +504 -0
- package/dist/routes/config/channels/endpoints/crud.js.map +1 -0
- package/dist/routes/config/channels/endpoints/importExport.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/importExport.js +131 -0
- package/dist/routes/config/channels/endpoints/importExport.js.map +1 -0
- package/dist/routes/config/channels/endpoints/predefined.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/predefined.js +78 -0
- package/dist/routes/config/channels/endpoints/predefined.js.map +1 -0
- package/dist/routes/config/channels/endpoints/prefs.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/prefs.js +58 -0
- package/dist/routes/config/channels/endpoints/prefs.js.map +1 -0
- package/dist/routes/config/channels/endpoints/service.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/service.js +149 -0
- package/dist/routes/config/channels/endpoints/service.js.map +1 -0
- package/dist/routes/config/channels/endpoints/tags.d.ts +6 -0
- package/dist/routes/config/channels/endpoints/tags.js +185 -0
- package/dist/routes/config/channels/endpoints/tags.js.map +1 -0
- package/dist/routes/config/channels/http/handler.d.ts +10 -0
- package/dist/routes/config/channels/http/handler.js +20 -0
- package/dist/routes/config/channels/http/handler.js.map +1 -0
- package/dist/routes/config/channels/http/playlistHint.d.ts +25 -0
- package/dist/routes/config/channels/http/playlistHint.js +40 -0
- package/dist/routes/config/channels/http/playlistHint.js.map +1 -0
- package/dist/routes/config/channels/http/serviceWarning.d.ts +10 -0
- package/dist/routes/config/channels/http/serviceWarning.js +28 -0
- package/dist/routes/config/channels/http/serviceWarning.js.map +1 -0
- package/dist/routes/config/channels/index.d.ts +3 -3
- package/dist/routes/config/channels/index.js +1 -1
- package/dist/routes/config/channels/index.js.map +1 -1
- package/dist/routes/config/channels/{routes.d.ts → setup.d.ts} +1 -1
- package/dist/routes/config/channels/setup.js +23 -0
- package/dist/routes/config/channels/setup.js.map +1 -0
- package/dist/routes/config/channels/table.d.ts +9 -9
- package/dist/routes/config/channels/table.js +124 -76
- package/dist/routes/config/channels/table.js.map +1 -1
- package/dist/routes/config/http/envelope.d.ts +111 -0
- package/dist/routes/config/http/envelope.js +103 -0
- package/dist/routes/config/http/envelope.js.map +1 -0
- package/dist/routes/config/index.d.ts +9 -9
- package/dist/routes/config/index.js +2 -2
- package/dist/routes/config/index.js.map +1 -1
- package/dist/routes/config/services.js +69 -68
- package/dist/routes/config/services.js.map +1 -1
- package/dist/routes/config/settings.d.ts +1 -1
- package/dist/routes/config/settings.js +45 -38
- package/dist/routes/config/settings.js.map +1 -1
- package/dist/routes/debug.js +12 -11
- package/dist/routes/debug.js.map +1 -1
- package/dist/routes/icons.js +2 -2
- package/dist/routes/icons.js.map +1 -1
- package/dist/routes/logs.js +19 -30
- package/dist/routes/logs.js.map +1 -1
- package/dist/routes/mpegts.js +1 -1
- package/dist/routes/playlist.d.ts +1 -1
- package/dist/routes/playlist.js +37 -26
- package/dist/routes/playlist.js.map +1 -1
- package/dist/routes/root/content.js +27 -6
- package/dist/routes/root/content.js.map +1 -1
- package/dist/routes/root/index.js +2 -5
- package/dist/routes/root/index.js.map +1 -1
- package/dist/routes/root/scripts/channels.js +16 -16
- package/dist/routes/root/scripts/channels.js.map +1 -1
- package/dist/routes/root/scripts/config.js +59 -59
- package/dist/routes/root/scripts/config.js.map +1 -1
- package/dist/routes/root/scripts/index.d.ts +4 -4
- package/dist/routes/root/scripts/shared.js +24 -10
- package/dist/routes/root/scripts/shared.js.map +1 -1
- package/dist/routes/root/scripts/status.d.ts +4 -0
- package/dist/routes/root/scripts/status.handlers.d.ts +182 -0
- package/dist/routes/root/scripts/status.handlers.js +713 -0
- package/dist/routes/root/scripts/status.handlers.js.map +1 -0
- package/dist/routes/root/scripts/status.js +86 -488
- package/dist/routes/root/scripts/status.js.map +1 -1
- package/dist/routes/root/styles.js +5 -5
- package/dist/routes/services.js +18 -15
- package/dist/routes/services.js.map +1 -1
- package/dist/routes/sse.d.ts +16 -0
- package/dist/routes/sse.js +29 -0
- package/dist/routes/sse.js.map +1 -0
- package/dist/routes/streams.js +10 -23
- package/dist/routes/streams.js.map +1 -1
- package/dist/routes/ui.d.ts +2 -2
- package/dist/routes/upgrade.js +6 -7
- package/dist/routes/upgrade.js.map +1 -1
- package/dist/service/commands.context.d.ts +6 -0
- package/dist/service/commands.context.js +47 -0
- package/dist/service/commands.context.js.map +1 -0
- package/dist/service/commands.d.ts +53 -8
- package/dist/service/commands.js +171 -188
- package/dist/service/commands.js.map +1 -1
- package/dist/service/generators.context.d.ts +6 -0
- package/dist/service/generators.context.js +45 -0
- package/dist/service/generators.context.js.map +1 -0
- package/dist/service/generators.d.ts +56 -16
- package/dist/service/generators.js +499 -383
- package/dist/service/generators.js.map +1 -1
- package/dist/service/index.d.ts +2 -2
- package/dist/streaming/clients.d.ts +2 -2
- package/dist/streaming/clients.js +2 -2
- package/dist/streaming/codec.d.ts +2 -2
- package/dist/streaming/codec.js +0 -1
- package/dist/streaming/codec.js.map +1 -1
- package/dist/streaming/fmp4Segmenter.d.ts +2 -2
- package/dist/streaming/fmp4Segmenter.js +12 -12
- package/dist/streaming/hls.d.ts +3 -3
- package/dist/streaming/hls.js +81 -70
- package/dist/streaming/hls.js.map +1 -1
- package/dist/streaming/hlsResume.d.ts +3 -3
- package/dist/streaming/hlsResume.js +5 -5
- package/dist/streaming/hlsSegments.d.ts +5 -2
- package/dist/streaming/hlsSegments.js +14 -9
- package/dist/streaming/hlsSegments.js.map +1 -1
- package/dist/streaming/monitor.d.ts +12 -12
- package/dist/streaming/monitor.js +80 -54
- package/dist/streaming/monitor.js.map +1 -1
- package/dist/streaming/mp4Parser.d.ts +34 -4
- package/dist/streaming/mp4Parser.js +111 -29
- package/dist/streaming/mp4Parser.js.map +1 -1
- package/dist/streaming/mpegts.d.ts +1 -1
- package/dist/streaming/mpegts.js +13 -10
- package/dist/streaming/mpegts.js.map +1 -1
- package/dist/streaming/playlistBuilder.d.ts +1 -1
- package/dist/streaming/playlistBuilder.js +2 -2
- package/dist/streaming/preroll.d.ts +9 -9
- package/dist/streaming/preroll.js +39 -41
- package/dist/streaming/preroll.js.map +1 -1
- package/dist/streaming/pretune.js +4 -4
- package/dist/streaming/pretune.js.map +1 -1
- package/dist/streaming/recovery.d.ts +3 -3
- package/dist/streaming/recovery.js +4 -4
- package/dist/streaming/registry.d.ts +6 -6
- package/dist/streaming/setup.d.ts +9 -8
- package/dist/streaming/setup.js +97 -49
- package/dist/streaming/setup.js.map +1 -1
- package/dist/streaming/showInfo.d.ts +9 -3
- package/dist/streaming/showInfo.js +26 -18
- package/dist/streaming/showInfo.js.map +1 -1
- package/dist/streaming/statusEmitter.d.ts +4 -4
- package/dist/streaming/statusEmitter.js +2 -2
- package/dist/types/channels.d.ts +133 -34
- package/dist/types/channels.js +39 -1
- package/dist/types/channels.js.map +1 -1
- package/dist/types/config.d.ts +20 -1
- package/dist/types/index.d.ts +9 -8
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/profiles.d.ts +5 -4
- package/dist/types/selection.d.ts +48 -4
- package/dist/types/streaming.d.ts +1 -1
- package/dist/upgrade/commands.context.d.ts +6 -0
- package/dist/upgrade/commands.context.js +29 -0
- package/dist/upgrade/commands.context.js.map +1 -0
- package/dist/upgrade/commands.d.ts +29 -2
- package/dist/upgrade/commands.js +87 -134
- package/dist/upgrade/commands.js.map +1 -1
- package/dist/upgrade/detection.context.d.ts +6 -0
- package/dist/upgrade/detection.context.js +24 -0
- package/dist/upgrade/detection.context.js.map +1 -0
- package/dist/upgrade/detection.d.ts +140 -10
- package/dist/upgrade/detection.js +153 -66
- package/dist/upgrade/detection.js.map +1 -1
- package/dist/upgrade/index.d.ts +2 -2
- package/dist/utils/chromeFetch.d.ts +1 -1
- package/dist/utils/chromeFetch.js +1 -1
- package/dist/utils/clock.d.ts +14 -0
- package/dist/utils/clock.js +28 -0
- package/dist/utils/clock.js.map +1 -0
- package/dist/utils/debugFilter.d.ts +1 -1
- package/dist/utils/debugFilter.js +6 -4
- package/dist/utils/debugFilter.js.map +1 -1
- package/dist/utils/delay.d.ts +2 -3
- package/dist/utils/delay.js +10 -16
- package/dist/utils/delay.js.map +1 -1
- package/dist/utils/evaluate.js +12 -14
- package/dist/utils/evaluate.js.map +1 -1
- package/dist/utils/ffmpeg.context.d.ts +6 -0
- package/dist/utils/ffmpeg.context.js +31 -0
- package/dist/utils/ffmpeg.context.js.map +1 -0
- package/dist/utils/ffmpeg.d.ts +85 -29
- package/dist/utils/ffmpeg.js +126 -129
- package/dist/utils/ffmpeg.js.map +1 -1
- package/dist/utils/fileLogger.d.ts +18 -2
- package/dist/utils/fileLogger.js +58 -30
- package/dist/utils/fileLogger.js.map +1 -1
- package/dist/utils/format.d.ts +1 -1
- package/dist/utils/format.js +2 -2
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/html.js +1 -3
- package/dist/utils/html.js.map +1 -1
- package/dist/utils/index.d.ts +21 -20
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/logger.js +16 -20
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/m3u.d.ts +18 -3
- package/dist/utils/m3u.js +28 -14
- package/dist/utils/m3u.js.map +1 -1
- package/dist/utils/memo.d.ts +19 -0
- package/dist/utils/memo.js +53 -0
- package/dist/utils/memo.js.map +1 -0
- package/dist/utils/morganStream.js +2 -2
- package/dist/utils/morganStream.js.map +1 -1
- package/dist/utils/pid.d.ts +2 -2
- package/dist/utils/pid.js +2 -2
- package/dist/utils/platform.d.ts +1 -1
- package/dist/utils/platform.js +3 -3
- package/dist/utils/platform.js.map +1 -1
- package/dist/utils/retry.d.ts +2 -0
- package/dist/utils/retry.js +9 -7
- package/dist/utils/retry.js.map +1 -1
- package/dist/utils/sanitize.d.ts +2 -2
- package/dist/utils/sanitize.js +4 -4
- package/dist/utils/timing.d.ts +6 -3
- package/dist/utils/timing.js +10 -6
- package/dist/utils/timing.js.map +1 -1
- package/dist/utils/version.d.ts +3 -2
- package/dist/utils/version.js +14 -27
- package/dist/utils/version.js.map +1 -1
- package/package.json +13 -7
- package/dist/native/intercept.d.ts +0 -35
- package/dist/native/intercept.js +0 -181
- package/dist/native/intercept.js.map +0 -1
- package/dist/routes/config/channels/routes.js +0 -1505
- package/dist/routes/config/channels/routes.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showInfo.js","sourceRoot":"","sources":["../../src/streaming/showInfo.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAChH,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,aAAa;AAEb,6BAA6B;AAC7B,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B,gDAAgD;AAChD,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,4DAA4D;AAC5D,MAAM,4BAA4B,GAAG,MAAM,CAAC;AAE5C,wCAAwC;AACxC,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,oDAAoD;AACpD,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC,8GAA8G;AAC9G,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AAE1C,8IAA8I;AAC9I,MAAM,cAAc,GAAG,EAAE,CAAC;AA0G1B,SAAS;AAET,wCAAwC;AACxC,IAAI,YA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UAAU,iBAAiB,CAAC,WAAmB,EAAE,SAAiB;IAEtE,IAAG,CAAC,gBAAgB,EAAE,CAAC;QAErB,OAAO;IACT,CAAC;IAED,KAAK,oBAAoB,CAAC,gBAAgB,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AACtE,CAAC;AAED;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,GAAW;IAEnC,IAAI,CAAC;QAEH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QAE/C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QAEP,OAAO,GAAG,CAAC;IACb,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { HealthEvent, HealthSnapshot } from "../config/health.
|
|
2
|
-
import type { Nullable, StreamingMode } from "../types/index.
|
|
3
|
-
import type { ClientTypeCount } from "./clients.
|
|
1
|
+
import type { HealthEvent, HealthSnapshot } from "../config/health.ts";
|
|
2
|
+
import type { Nullable, StreamingMode } from "../types/index.ts";
|
|
3
|
+
import type { ClientTypeCount } from "./clients.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Health classification for a stream based on its current state.
|
|
6
6
|
*/
|
|
@@ -127,7 +127,7 @@ export declare function getStreamStatus(streamId: number): StreamStatus | undefi
|
|
|
127
127
|
*/
|
|
128
128
|
export declare function removeStreamStatus(streamId: number): void;
|
|
129
129
|
/**
|
|
130
|
-
* Emits a channel table update event. The payload is a partial patch
|
|
130
|
+
* Emits a channel table update event. The payload is a partial patch - any combination of rows, counts, scopeCounts, and logos. SSE clients that have the
|
|
131
131
|
* channels tab open apply the patch via channelTable.applyPatch. Used for server-initiated updates like logo population that have no associated client request.
|
|
132
132
|
* @param patch - The partial channel table patch to emit.
|
|
133
133
|
*/
|
|
@@ -83,7 +83,7 @@ export function emitStreamHealthChanged(status) {
|
|
|
83
83
|
* @param status - The updated system status.
|
|
84
84
|
*/
|
|
85
85
|
export function emitSystemStatusChanged(status) {
|
|
86
|
-
// Only emit if something meaningful changed. The optional chain on the second condition is defensive
|
|
86
|
+
// Only emit if something meaningful changed. The optional chain on the second condition is defensive - TypeScript narrows cachedSystemStatus as non-null after
|
|
87
87
|
// the first comparison, but at runtime the first condition can be truthy with cachedSystemStatus === null (undefined !== true).
|
|
88
88
|
if ((cachedSystemStatus?.browser.connected !== status.browser.connected) ||
|
|
89
89
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
@@ -131,7 +131,7 @@ export function removeStreamStatus(streamId) {
|
|
|
131
131
|
streamStatuses.delete(streamId);
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
|
-
* Emits a channel table update event. The payload is a partial patch
|
|
134
|
+
* Emits a channel table update event. The payload is a partial patch - any combination of rows, counts, scopeCounts, and logos. SSE clients that have the
|
|
135
135
|
* channels tab open apply the patch via channelTable.applyPatch. Used for server-initiated updates like logo population that have no associated client request.
|
|
136
136
|
* @param patch - The partial channel table patch to emit.
|
|
137
137
|
*/
|
package/dist/types/channels.d.ts
CHANGED
|
@@ -1,70 +1,174 @@
|
|
|
1
|
-
import type { Nullable } from "./shared.
|
|
1
|
+
import type { Nullable } from "./shared.ts";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Identity fields - properties of the channel itself, independent of any specific service. These inherit from canonical to variant during resolution. A user
|
|
4
|
+
* may override identity fields on a canonical entry (renaming, retagging, custom logo, etc.); the override applies to the canonical and propagates to all
|
|
5
|
+
* variants through resolution.
|
|
5
6
|
*/
|
|
6
|
-
export interface
|
|
7
|
+
export interface ChannelIdentity {
|
|
7
8
|
channelNumber?: number;
|
|
8
|
-
|
|
9
|
+
guideTitle?: string;
|
|
10
|
+
hdhrEnabled?: boolean;
|
|
11
|
+
logoUrl?: string;
|
|
12
|
+
name?: string;
|
|
9
13
|
pacificStationId?: string;
|
|
10
|
-
services: Record<string, ServiceVariant>;
|
|
11
14
|
stationId?: string;
|
|
12
15
|
tags?: string[];
|
|
13
16
|
tvgShift?: number;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
19
|
+
* Service binding fields - how to reach the channel on a particular service's platform. These do NOT inherit from canonical to variant, because each service
|
|
20
|
+
* has its own URL, its own selector vocabulary, its own player DOM hooks. A variant must declare its own binding fields (or have them populated by discovery);
|
|
21
|
+
* the canonical service's binding is meaningful only for the canonical service.
|
|
18
22
|
*/
|
|
19
|
-
export interface
|
|
20
|
-
channelNumber?: number;
|
|
23
|
+
export interface ChannelServiceBinding {
|
|
21
24
|
channelSelector?: string;
|
|
22
25
|
dismissSelector?: string;
|
|
23
26
|
profile?: string;
|
|
24
|
-
service?: string;
|
|
25
27
|
scrollSelector?: string;
|
|
26
28
|
scrollTarget?: string;
|
|
27
29
|
scrollToBottom?: boolean;
|
|
30
|
+
service?: string;
|
|
28
31
|
url: string;
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
|
-
*
|
|
34
|
+
* Canonical or standalone channel entry. Carries identity (the "what") plus the canonical service's binding (the "how to reach it on this service"). The
|
|
35
|
+
* canonicalKey field is structurally absent (typed as never) so that the discriminated union below distinguishes canonicals from variants by shape: a value
|
|
36
|
+
* with a string canonicalKey is a VariantChannel, anything else is a CanonicalChannel.
|
|
37
|
+
*
|
|
38
|
+
* Predefined canonicals are produced by the flattener; standalone user channels (no predefined parent) take this same shape.
|
|
39
|
+
*/
|
|
40
|
+
export interface CanonicalChannel extends ChannelIdentity, ChannelServiceBinding {
|
|
41
|
+
canonicalKey?: never;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Variant channel entry. Carries the binding (tuning) for one non-canonical service, plus a canonicalKey reference to its parent. Variants are pure tuning
|
|
45
|
+
* data: how to reach the channel via this service. Identity (the channel's name, station ID, channel number, hdhrEnabled, tags, etc.) lives on the canonical
|
|
46
|
+
* entry alone and inherits to variants at resolution time. Per-affiliate identity (e.g., a local Chicago Fox affiliate that needs its own station ID) is
|
|
47
|
+
* modeled as a separate canonical channel rather than as a variant carrying override identity.
|
|
48
|
+
*
|
|
49
|
+
* Enforcement layers:
|
|
50
|
+
*
|
|
51
|
+
* 1. Type system (this declaration): VariantChannel extends only ChannelServiceBinding. The type structurally refuses to admit identity fields on
|
|
52
|
+
* variants in code; identity always inherits from the canonical at resolution time.
|
|
53
|
+
* 2. Catalog source (ServiceVariant in this file): carries binding fields only. The catalog flattener cannot produce identity-bearing variants.
|
|
54
|
+
* 3. Resolver (overlayVariantBinding in userChannels.ts): variant overlays apply CHANNEL_BINDING_KEYS only. Identity fields encountered in a variant entry
|
|
55
|
+
* (legacy data, hand-edited files, future migrations) are silently dropped during resolution - canonical's identity always wins.
|
|
56
|
+
* 4. PUT handler routing (handlePredefinedEdit in routes/config/channels/endpoints/crud.ts): identity-field edits route to the canonical entry, binding-
|
|
57
|
+
* field edits route to the active variant entry. Users cannot create identity-on-variant state through the UI.
|
|
58
|
+
*
|
|
59
|
+
* The structural invariant the type DOES enforce is the discriminator: canonicalKey is required (and structurally absent on CanonicalChannel via never), so a
|
|
60
|
+
* value with a string canonicalKey is unambiguously a VariantChannel.
|
|
61
|
+
*/
|
|
62
|
+
export interface VariantChannel extends ChannelServiceBinding {
|
|
63
|
+
canonicalKey: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The shape of a raw stored or predefined-catalog channel entry. Used by the flattener output (PREDEFINED_CHANNELS), by the on-disk channels.json store, and
|
|
67
|
+
* by internal flatten/resolve/normalize logic. Consumers of resolved data use ResolvedChannel instead.
|
|
68
|
+
*/
|
|
69
|
+
export type Channel = CanonicalChannel | VariantChannel;
|
|
70
|
+
/**
|
|
71
|
+
* Map of channel keys to raw stored or predefined-catalog channel entries. Channel keys are URL-safe slugs (lowercase letters, numbers, hyphens) since they
|
|
72
|
+
* appear in stream request URLs.
|
|
73
|
+
*/
|
|
74
|
+
export type ChannelMap = Record<string, Channel>;
|
|
75
|
+
/**
|
|
76
|
+
* Post-resolution channel shape. Variants have had their identity merged in from the canonical, so this carries both identity and binding plus an optional
|
|
77
|
+
* canonicalKey indicating the variant relationship (kept for downstream consumers that need to distinguish a resolved variant from a resolved canonical).
|
|
78
|
+
*
|
|
79
|
+
* This is what most of the codebase consumes - getMergedChannelMap, getChannelListing, the playlist generator, the HDHR lineup, route handlers, and so on
|
|
80
|
+
* all return or handle ResolvedChannel data.
|
|
32
81
|
*/
|
|
33
|
-
export interface
|
|
82
|
+
export interface ResolvedChannel extends ChannelIdentity, ChannelServiceBinding {
|
|
34
83
|
canonicalKey?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Map of channel keys to resolved channels. The output type of getMergedChannelMap and the consumption type for the rest of the codebase.
|
|
87
|
+
*/
|
|
88
|
+
export type ResolvedChannelMap = Record<string, ResolvedChannel>;
|
|
89
|
+
/**
|
|
90
|
+
* Single source of truth for which Channel fields are identity. Used by resolveVariant and normalizeChannelDeltas to extract the inheritable subset of a
|
|
91
|
+
* canonical, by the M3U/HDHR output layers to know which fields to read for guide metadata, and by the user-edit form's allowlist for predefined-channel
|
|
92
|
+
* overrides. Adding a field to ChannelIdentity without listing it here is a compile error via the exhaustiveness check below.
|
|
93
|
+
*/
|
|
94
|
+
export declare const CHANNEL_IDENTITY_KEYS: readonly ["channelNumber", "guideTitle", "hdhrEnabled", "logoUrl", "name", "pacificStationId", "stationId", "tags", "tvgShift"];
|
|
95
|
+
/**
|
|
96
|
+
* Single source of truth for which Channel fields are service-bindings. Used by the variant builder, the resolver (which excludes these from canonical->variant
|
|
97
|
+
* inheritance), the user-edit form's binding-override allowlist, and any code that needs to distinguish "how to reach the channel" from "what the channel is."
|
|
98
|
+
* Adding a field to ChannelServiceBinding without listing it here is a compile error via the exhaustiveness check below.
|
|
99
|
+
*/
|
|
100
|
+
export declare const CHANNEL_BINDING_KEYS: readonly ["channelSelector", "dismissSelector", "profile", "scrollSelector", "scrollTarget", "scrollToBottom", "service", "url"];
|
|
101
|
+
/**
|
|
102
|
+
* Identity fields that participate in the user-facing delta surface (form input, JSON import, channels.json hand edit). Subset of CHANNEL_IDENTITY_KEYS that
|
|
103
|
+
* excludes catalog-driven structural fields like pacificStationId, which trigger Pacific auto-generation in the flattener and are not user-overridable through
|
|
104
|
+
* any path. Symmetric to DELTA_ELIGIBLE_BINDING_KEYS - both arrays describe "delta-eligible," the universe of fields that may legitimately appear in a
|
|
105
|
+
* ChannelDelta or a stored override.
|
|
106
|
+
*
|
|
107
|
+
* The `satisfies` constraint guarantees every entry is in CHANNEL_IDENTITY_KEYS - this array can never include a field that isn't structurally identity.
|
|
108
|
+
*/
|
|
109
|
+
export declare const DELTA_ELIGIBLE_IDENTITY_KEYS: readonly ["channelNumber", "guideTitle", "hdhrEnabled", "logoUrl", "name", "stationId", "tags", "tvgShift"];
|
|
110
|
+
/**
|
|
111
|
+
* Binding fields that participate in the user-facing delta surface. Subset of CHANNEL_BINDING_KEYS that excludes internal DOM-hook fields (dismissSelector,
|
|
112
|
+
* scrollSelector, scrollTarget, scrollToBottom, service) that are set by site profiles and ServiceVariant catalog entries, never by user input. Symmetric to
|
|
113
|
+
* DELTA_ELIGIBLE_IDENTITY_KEYS.
|
|
114
|
+
*
|
|
115
|
+
* The `satisfies` constraint guarantees every entry is in CHANNEL_BINDING_KEYS.
|
|
116
|
+
*/
|
|
117
|
+
export declare const DELTA_ELIGIBLE_BINDING_KEYS: readonly ["channelSelector", "profile", "url"];
|
|
118
|
+
/**
|
|
119
|
+
* The universe of fields that may legitimately appear in a stored override (ChannelDelta) or be customized by the user. Used to type the customization
|
|
120
|
+
* accessor's Map keys, drive the runtime DELTA_ALLOWED_FIELDS Set in userChannels.ts, and underpin every "is this field user-overridable?" question across the
|
|
121
|
+
* codebase. Equal to DELTA_ELIGIBLE_IDENTITY_KEYS ∪ DELTA_ELIGIBLE_BINDING_KEYS.
|
|
122
|
+
*/
|
|
123
|
+
export type CustomizableField = typeof DELTA_ELIGIBLE_IDENTITY_KEYS[number] | typeof DELTA_ELIGIBLE_BINDING_KEYS[number];
|
|
124
|
+
/**
|
|
125
|
+
* Nested channel definition - the AUTHORING shape for predefined channels in channels/index.ts. Already correctly partitioned: identity at the top level,
|
|
126
|
+
* services map below. The flattener compiles these into the runtime Channel discriminated union.
|
|
127
|
+
*/
|
|
128
|
+
export interface ChannelDefinition {
|
|
35
129
|
channelNumber?: number;
|
|
130
|
+
name: string;
|
|
131
|
+
pacificStationId?: string;
|
|
132
|
+
services: Record<string, ServiceVariant>;
|
|
133
|
+
stationId?: string;
|
|
134
|
+
tags?: string[];
|
|
135
|
+
tvgShift?: number;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* A single service's streaming configuration within a ChannelDefinition. Each service variant specifies how to reach the channel on that service's platform -
|
|
139
|
+
* exclusively binding (tuning) data. Identity fields (channelNumber, hdhrEnabled, tags, etc.) are user preferences for the channel as a whole and live on the
|
|
140
|
+
* ChannelDefinition (canonical) rather than on individual service variants. Adding a field here that conceptually represents user preference rather than
|
|
141
|
+
* tuning is a category error.
|
|
142
|
+
*/
|
|
143
|
+
export interface ServiceVariant {
|
|
36
144
|
channelSelector?: string;
|
|
37
145
|
dismissSelector?: string;
|
|
38
|
-
guideTitle?: string;
|
|
39
|
-
hdhrEnabled?: boolean;
|
|
40
|
-
logoUrl?: string;
|
|
41
|
-
name?: string;
|
|
42
|
-
pacificStationId?: string;
|
|
43
146
|
profile?: string;
|
|
44
147
|
service?: string;
|
|
45
148
|
scrollSelector?: string;
|
|
46
149
|
scrollTarget?: string;
|
|
47
150
|
scrollToBottom?: boolean;
|
|
48
|
-
stationId?: string;
|
|
49
|
-
tags?: string[];
|
|
50
|
-
tvgShift?: number;
|
|
51
151
|
url: string;
|
|
52
152
|
}
|
|
53
153
|
/**
|
|
54
|
-
* Enriched channel entry returned by getChannelListing(). Wraps a Channel
|
|
154
|
+
* Enriched channel entry returned by getChannelListing(). Wraps a resolved Channel with source classification and enabled status metadata, providing the
|
|
55
155
|
* single source of truth for merged channel data across the codebase.
|
|
56
156
|
*/
|
|
57
157
|
export interface ChannelListingEntry {
|
|
58
158
|
availableByService: boolean;
|
|
59
|
-
channel:
|
|
159
|
+
channel: ResolvedChannel;
|
|
60
160
|
enabled: boolean;
|
|
61
161
|
key: string;
|
|
62
162
|
source: "override" | "predefined" | "user";
|
|
63
163
|
}
|
|
64
164
|
/**
|
|
65
|
-
* A delta override for a predefined channel. All fields are optional because only fields that differ from the predefined definition are stored. String and
|
|
66
|
-
* fields use Nullable<T> to distinguish "user cleared this field" (null) from "inherit from predefined" (absent). When a field is null, the predefined
|
|
67
|
-
* removed in the resolved channel. When a field is absent, the predefined value is inherited.
|
|
165
|
+
* A delta override for a predefined channel. All fields are optional because only fields that differ from the predefined definition are stored. String and
|
|
166
|
+
* number fields use Nullable<T> to distinguish "user cleared this field" (null) from "inherit from predefined" (absent). When a field is null, the predefined
|
|
167
|
+
* value is removed in the resolved channel. When a field is absent, the predefined value is inherited.
|
|
168
|
+
*
|
|
169
|
+
* The set of fields here is the union of DELTA_ELIGIBLE_IDENTITY_KEYS (delta-eligible identity overrides) and DELTA_ELIGIBLE_BINDING_KEYS (delta-eligible
|
|
170
|
+
* binding overrides). Catalog-driven identity (pacificStationId) and internal binding (DOM hooks) are not user-overridable and intentionally absent. The
|
|
171
|
+
* _deltaCompleteness compile-time check (above) enforces that this interface and the two partition arrays stay in agreement.
|
|
68
172
|
*/
|
|
69
173
|
export interface ChannelDelta {
|
|
70
174
|
channelNumber?: Nullable<number>;
|
|
@@ -80,20 +184,15 @@ export interface ChannelDelta {
|
|
|
80
184
|
url?: Nullable<string>;
|
|
81
185
|
}
|
|
82
186
|
/**
|
|
83
|
-
* What gets stored in channels.json per key. For user-defined channels (no predefined equivalent), this is a full Channel with a required url. For overrides
|
|
84
|
-
* predefined channels, this can be a ChannelDelta with only the differing fields. Legacy full-override entries (from before the delta model) are also valid
|
|
85
|
-
* are just deltas that happen to override every field.
|
|
187
|
+
* What gets stored in channels.json per key. For user-defined channels (no predefined equivalent), this is a full Channel with a required url. For overrides
|
|
188
|
+
* of predefined channels, this can be a ChannelDelta with only the differing fields. Legacy full-override entries (from before the delta model) are also valid -
|
|
189
|
+
* they are just deltas that happen to override every field.
|
|
86
190
|
*/
|
|
87
191
|
export type StoredChannel = Channel | ChannelDelta;
|
|
88
192
|
/**
|
|
89
193
|
* Map of channel keys to stored channel data (full definitions or deltas). This is the raw type for the channels.json file contents.
|
|
90
194
|
*/
|
|
91
195
|
export type StoredChannelMap = Record<string, StoredChannel>;
|
|
92
|
-
/**
|
|
93
|
-
* Map of channel short names to channel definitions. Channel names must be URL-safe strings (lowercase letters, numbers, hyphens) since they appear in stream
|
|
94
|
-
* request URLs.
|
|
95
|
-
*/
|
|
96
|
-
export type ChannelMap = Record<string, Channel>;
|
|
97
196
|
/**
|
|
98
197
|
* Represents a group of service variants for the same content. Used by the UI to display service selection dropdowns for multi-service channels.
|
|
99
198
|
*/
|
package/dist/types/channels.js
CHANGED
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for which Channel fields are identity. Used by resolveVariant and normalizeChannelDeltas to extract the inheritable subset of a
|
|
3
|
+
* canonical, by the M3U/HDHR output layers to know which fields to read for guide metadata, and by the user-edit form's allowlist for predefined-channel
|
|
4
|
+
* overrides. Adding a field to ChannelIdentity without listing it here is a compile error via the exhaustiveness check below.
|
|
5
|
+
*/
|
|
6
|
+
export const CHANNEL_IDENTITY_KEYS = ["channelNumber", "guideTitle", "hdhrEnabled", "logoUrl", "name", "pacificStationId", "stationId", "tags", "tvgShift"];
|
|
7
|
+
/**
|
|
8
|
+
* Single source of truth for which Channel fields are service-bindings. Used by the variant builder, the resolver (which excludes these from canonical->variant
|
|
9
|
+
* inheritance), the user-edit form's binding-override allowlist, and any code that needs to distinguish "how to reach the channel" from "what the channel is."
|
|
10
|
+
* Adding a field to ChannelServiceBinding without listing it here is a compile error via the exhaustiveness check below.
|
|
11
|
+
*/
|
|
12
|
+
export const CHANNEL_BINDING_KEYS = ["channelSelector", "dismissSelector", "profile", "scrollSelector", "scrollTarget", "scrollToBottom", "service", "url"];
|
|
13
|
+
const _partitionCompleteness = true;
|
|
14
|
+
/* Mark the assertion as intentionally unused - its only purpose is the compile-time check above. */
|
|
15
|
+
void _partitionCompleteness;
|
|
16
|
+
/**
|
|
17
|
+
* Identity fields that participate in the user-facing delta surface (form input, JSON import, channels.json hand edit). Subset of CHANNEL_IDENTITY_KEYS that
|
|
18
|
+
* excludes catalog-driven structural fields like pacificStationId, which trigger Pacific auto-generation in the flattener and are not user-overridable through
|
|
19
|
+
* any path. Symmetric to DELTA_ELIGIBLE_BINDING_KEYS - both arrays describe "delta-eligible," the universe of fields that may legitimately appear in a
|
|
20
|
+
* ChannelDelta or a stored override.
|
|
21
|
+
*
|
|
22
|
+
* The `satisfies` constraint guarantees every entry is in CHANNEL_IDENTITY_KEYS - this array can never include a field that isn't structurally identity.
|
|
23
|
+
*/
|
|
24
|
+
export const DELTA_ELIGIBLE_IDENTITY_KEYS = [
|
|
25
|
+
"channelNumber", "guideTitle", "hdhrEnabled", "logoUrl", "name", "stationId", "tags", "tvgShift"
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* Binding fields that participate in the user-facing delta surface. Subset of CHANNEL_BINDING_KEYS that excludes internal DOM-hook fields (dismissSelector,
|
|
29
|
+
* scrollSelector, scrollTarget, scrollToBottom, service) that are set by site profiles and ServiceVariant catalog entries, never by user input. Symmetric to
|
|
30
|
+
* DELTA_ELIGIBLE_IDENTITY_KEYS.
|
|
31
|
+
*
|
|
32
|
+
* The `satisfies` constraint guarantees every entry is in CHANNEL_BINDING_KEYS.
|
|
33
|
+
*/
|
|
34
|
+
export const DELTA_ELIGIBLE_BINDING_KEYS = [
|
|
35
|
+
"channelSelector", "profile", "url"
|
|
36
|
+
];
|
|
37
|
+
const _deltaCompleteness = true;
|
|
38
|
+
/* Mark the assertion as intentionally unused - its only purpose is the compile-time check above. */
|
|
39
|
+
void _deltaCompleteness;
|
|
2
40
|
//# sourceMappingURL=channels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/types/channels.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/types/channels.ts"],"names":[],"mappings":"AA0LA;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,CAAW,CAAC;AAEvK;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAE,iBAAiB,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,CAAW,CAAC;AAiBvK,MAAM,sBAAsB,GAAyE,IAAI,CAAC;AAE1G,oGAAoG;AACpG,KAAK,sBAAsB,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU;CAC9B,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,iBAAiB,EAAE,SAAS,EAAE,KAAK;CAC8B,CAAC;AA0BpE,MAAM,kBAAkB,GAA0F,IAAI,CAAC;AAEvH,oGAAoG;AACpG,KAAK,kBAAkB,CAAC"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelSortField, Nullable, SortDirection } from "./shared.
|
|
1
|
+
import type { ChannelSortField, Nullable, SortDirection } from "./shared.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Browser-related configuration controlling Chrome launch behavior. Viewport dimensions are derived from the quality preset via getViewport() and are not stored in
|
|
4
4
|
* this configuration object.
|
|
@@ -65,6 +65,24 @@ export interface ChannelsConfig {
|
|
|
65
65
|
setupCompleted: boolean;
|
|
66
66
|
visibleColumns: string[];
|
|
67
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Connection settings for the user's external Channels DVR server. PrismCast talks to Channels DVR over HTTP for show-info polling, device-mapping discovery,
|
|
70
|
+
* and pretune scheduling.
|
|
71
|
+
*
|
|
72
|
+
* Host is auto-discovered at runtime from client request IPs by `showInfo.ts`. It is intentionally NOT in `CONFIG_METADATA` and is not exposed as a settings
|
|
73
|
+
* UI field - users do not configure it directly. The host invariant: host-only, never `host:port`. Port lives at `channelsDvr.port` exclusively.
|
|
74
|
+
*
|
|
75
|
+
* Port is user-configurable via `CONFIG_METADATA` because Channels DVR's port is user-configurable per their docs and a non-default port would otherwise be
|
|
76
|
+
* unreachable from PrismCast.
|
|
77
|
+
*
|
|
78
|
+
* Single-instance shape today. Multi-DVR support, if/when added in a future release, migrates this to `{ instances: ChannelsDvrInstance[] }` via the
|
|
79
|
+
* schema-migration framework. Don't proliferate patterns that fight the eventual array shape - keep all DVR-targeted code consuming this single canonical
|
|
80
|
+
* config location.
|
|
81
|
+
*/
|
|
82
|
+
export interface ChannelsDvrConfig {
|
|
83
|
+
host: string;
|
|
84
|
+
port: number;
|
|
85
|
+
}
|
|
68
86
|
/**
|
|
69
87
|
* HDHomeRun emulation configuration. When enabled, PrismCast runs a separate HTTP server that emulates the HDHomeRun API, allowing Plex to discover and use
|
|
70
88
|
* PrismCast as a virtual tuner for live TV and DVR recording. The emulated device appears in Plex's tuner setup and serves PrismCast's HLS streams directly.
|
|
@@ -117,6 +135,7 @@ export interface StreamingConfig {
|
|
|
117
135
|
export interface Config {
|
|
118
136
|
browser: BrowserConfig;
|
|
119
137
|
channels: ChannelsConfig;
|
|
138
|
+
channelsDvr: ChannelsDvrConfig;
|
|
120
139
|
hdhr: HdhrConfig;
|
|
121
140
|
hls: HLSConfig;
|
|
122
141
|
logging: LoggingConfig;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type { BrowserConfig, CaptureMode, ChannelsConfig, Config, HdhrConfig, HLSConfig, LoggingConfig, PathsConfig, PlaybackConfig, RecoveryConfig, ServerConfig, StreamingConfig } from "./config.
|
|
2
|
-
export type { Channel, ChannelDefinition, ChannelDelta, ChannelListingEntry, ChannelMap, ServiceGroup, ServiceVariant, StoredChannel, StoredChannelMap } from "./channels.
|
|
3
|
-
export
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
6
|
-
export type {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
export type { BrowserConfig, CaptureMode, ChannelsConfig, Config, HdhrConfig, HLSConfig, LoggingConfig, PathsConfig, PlaybackConfig, RecoveryConfig, ServerConfig, StreamingConfig } from "./config.ts";
|
|
2
|
+
export type { CanonicalChannel, Channel, ChannelDefinition, ChannelDelta, ChannelIdentity, ChannelListingEntry, ChannelMap, ChannelServiceBinding, CustomizableField, ResolvedChannel, ResolvedChannelMap, ServiceGroup, ServiceVariant, StoredChannel, StoredChannelMap, VariantChannel } from "./channels.ts";
|
|
3
|
+
export { CHANNEL_BINDING_KEYS, CHANNEL_IDENTITY_KEYS, DELTA_ELIGIBLE_BINDING_KEYS, DELTA_ELIGIBLE_IDENTITY_KEYS } from "./channels.ts";
|
|
4
|
+
export type { ChannelSelectionConfig, ChannelSelectionStrategy, DomainConfig, ProfileCategory, ProfileResolutionResult, ProfilesValidationResult, ResolvedSiteProfile, ServicePack, SiteProfile, UserProfilesFile, UserProfilesLoadResult } from "./profiles.ts";
|
|
5
|
+
export type { CategoryResolution, CategoryResolutionConfig, CategoryResolutionFailure, CategoryResolutionSuccess, ChannelSelectionProfile, ChannelSelectorResult, ChannelStrategyEntry, ChannelStrategyHandler, ClickTarget, DiscoveredChannel, ProviderModule, TuneResult, UiSize } from "./selection.ts";
|
|
6
|
+
export type { ChannelSortField, Nullable, SortDirection } from "./shared.ts";
|
|
7
|
+
export type { CaptureCodec, HealthStatus, StreamListItem, StreamListResponse, StreamingMode, UrlValidationResult, VideoSelectorType, VideoState } from "./streaming.ts";
|
|
8
|
+
export { RECOGNIZED_CODECS } from "./streaming.ts";
|
|
9
|
+
export { isChannelSelectionProfile } from "./selection.ts";
|
package/dist/types/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { CHANNEL_BINDING_KEYS, CHANNEL_IDENTITY_KEYS, DELTA_ELIGIBLE_BINDING_KEYS, DELTA_ELIGIBLE_IDENTITY_KEYS } from "./channels.js";
|
|
1
2
|
export { RECOGNIZED_CODECS } from "./streaming.js";
|
|
2
3
|
export { isChannelSelectionProfile } from "./selection.js";
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAQvI,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/types/profiles.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { ChannelMap } from "./channels.
|
|
2
|
-
import type { Nullable } from "./shared.
|
|
1
|
+
import type { ChannelMap } from "./channels.ts";
|
|
2
|
+
import type { Nullable } from "./shared.ts";
|
|
3
3
|
/**
|
|
4
4
|
* Available channel selection strategies. Each strategy implements a different approach to finding and selecting channels in a multi-channel player UI.
|
|
5
5
|
*
|
|
6
|
-
* - "directvGrid": Tune via webpack injection
|
|
6
|
+
* - "directvGrid": Tune via webpack injection - captures __webpack_require__, extracts the Redux store from the React fiber tree, matches by channel name, and
|
|
7
7
|
* dispatches playConsumable. Falls back to logo aria-label click when the interceptor fails. Used by DirecTV Stream.
|
|
8
8
|
* - "foxGrid": Find channel by station code in a non-virtualized guide grid, click the channel logo button via DOM .click(). Used by Fox.com.
|
|
9
9
|
* - "guideGrid": Find channel by exact-matching image alt text, click nearest clickable ancestor. Optionally clicks a tab to reveal the list first. Used by Hulu
|
|
10
10
|
* Live TV.
|
|
11
|
-
* - "hboGrid": Discover the HBO tab page URL from the homepage menu bar,
|
|
11
|
+
* - "hboGrid": Discover the HBO tab page URL from the homepage menu bar, read the live channel tile rail for a matching channel name, and navigate to the watch
|
|
12
12
|
* URL. Caches the tab URL across tunes with stale-cache fallback. Used by HBO Max.
|
|
13
13
|
* - "none": No channel selection needed (single-channel sites). This is the default.
|
|
14
14
|
* - "slingGrid": Find channel by data-testid in a virtualized A-Z guide grid, scroll via binary search on .guide-cell scrollTop, click the on-now program
|
|
@@ -132,6 +132,7 @@ export interface UserProfilesLoadResult {
|
|
|
132
132
|
parseError: boolean;
|
|
133
133
|
parseErrorMessage?: string;
|
|
134
134
|
profiles: Record<string, SiteProfile>;
|
|
135
|
+
recoveredFromBackup: boolean;
|
|
135
136
|
}
|
|
136
137
|
/**
|
|
137
138
|
* Service pack distribution format. Bundles a profile, domain mapping(s), and optionally channels for a streaming service into a single JSON file. On import,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ChannelSelectionStrategy, ResolvedSiteProfile, SiteProfile } from "./profiles.
|
|
1
|
+
import type { ChannelSelectionStrategy, ResolvedSiteProfile, SiteProfile } from "./profiles.ts";
|
|
2
2
|
import type { Frame, Page } from "puppeteer-core";
|
|
3
|
-
import type { Nullable } from "./shared.
|
|
3
|
+
import type { Nullable } from "./shared.ts";
|
|
4
4
|
export interface ChannelSelectionProfile extends ResolvedSiteProfile {
|
|
5
5
|
channelSelector: string;
|
|
6
6
|
}
|
|
@@ -19,7 +19,7 @@ export interface ChannelSelectorResult {
|
|
|
19
19
|
export type ChannelStrategyHandler = (page: Page, profile: ChannelSelectionProfile) => Promise<ChannelSelectorResult>;
|
|
20
20
|
/**
|
|
21
21
|
* The complete contract for a channel selection strategy. Each provider file exports a single object implementing this interface. The coordinator accesses all
|
|
22
|
-
* provider behavior through these hooks
|
|
22
|
+
* provider behavior through these hooks - no strategy-specific imports or hardcoded strategy name checks outside the registry.
|
|
23
23
|
*/
|
|
24
24
|
export interface ChannelStrategyEntry {
|
|
25
25
|
/**
|
|
@@ -48,6 +48,7 @@ export interface ChannelStrategyEntry {
|
|
|
48
48
|
*/
|
|
49
49
|
export interface DiscoveredChannel {
|
|
50
50
|
affiliate?: string;
|
|
51
|
+
categorySelector?: string;
|
|
51
52
|
channelSelector: string;
|
|
52
53
|
name: string;
|
|
53
54
|
stationId?: string;
|
|
@@ -56,7 +57,7 @@ export interface DiscoveredChannel {
|
|
|
56
57
|
/**
|
|
57
58
|
* Unified provider contract that bundles identity metadata, tuning strategy, and channel discovery into a single registry entry. Each provider tuning file
|
|
58
59
|
* exports one ProviderModule. The coordinator builds its strategy dispatch lookup from provider modules at evaluation time. Generic strategies (thumbnailRow,
|
|
59
|
-
* tileClick) remain bare ChannelStrategyEntry objects
|
|
60
|
+
* tileClick) remain bare ChannelStrategyEntry objects - they are not providers.
|
|
60
61
|
*/
|
|
61
62
|
export interface ProviderModule {
|
|
62
63
|
/**
|
|
@@ -81,6 +82,49 @@ export interface ProviderModule {
|
|
|
81
82
|
strategyName: ChannelSelectionStrategy;
|
|
82
83
|
validatePrecache?: (channels: DiscoveredChannel[]) => boolean;
|
|
83
84
|
validateTune?: (channelSelector: string) => boolean;
|
|
85
|
+
verifyManifestForChannel?: (url: string, channelSelector: string) => Nullable<string>;
|
|
86
|
+
categoryResolution?: CategoryResolutionConfig;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Successful outcome of resolving a category selector. Carries the concrete per-user channel selector that the strategy will use for matching and the verifier
|
|
90
|
+
* will use for URL comparison (e.g., "WFLD" for a Chicago-market user resolving the "FOXD2C" category). The value is always a concrete identifier, never another
|
|
91
|
+
* category value - the resolver guarantees the resolution is terminal.
|
|
92
|
+
*/
|
|
93
|
+
export interface CategoryResolutionSuccess {
|
|
94
|
+
callSign: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Failed outcome of resolving a category selector. Carries a provider-authored, user-facing explanation that the framework relays verbatim - to debug logs on
|
|
98
|
+
* permissive paths, to user-facing errors on strict paths. The resolver writes a complete sentence including any selector- or provider-specific context the user
|
|
99
|
+
* needs to understand the failure and remediate it; the framework adds nothing.
|
|
100
|
+
*/
|
|
101
|
+
export interface CategoryResolutionFailure {
|
|
102
|
+
reason: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Outcome of resolving a category selector. Discriminated union of CategoryResolutionSuccess and CategoryResolutionFailure. Resolvers must always return one of
|
|
106
|
+
* these two shapes - there is no null. This forces every resolver to articulate its outcome explicitly, which guarantees diagnostic detail on every failure and
|
|
107
|
+
* removes ambiguity between "could not resolve" and "did not attempt to resolve."
|
|
108
|
+
*
|
|
109
|
+
* The union is structurally discriminated by the `callSign` and `reason` field names so consumers can use TypeScript's `"callSign" in result` narrowing without
|
|
110
|
+
* needing a tagged enum. A future evolution that needs additional outcomes (e.g., resolution to a list of candidates for user disambiguation) can add a new
|
|
111
|
+
* variant here as a new named interface without touching the existing two.
|
|
112
|
+
*/
|
|
113
|
+
export type CategoryResolution = CategoryResolutionSuccess | CategoryResolutionFailure;
|
|
114
|
+
/**
|
|
115
|
+
* Cohesive configuration for a provider that exposes one or more category selectors - selector values that represent a category of channels needing per-user
|
|
116
|
+
* resolution to a concrete identifier rather than naming a specific channel directly. Grouping the three related fields into one sub-object makes the contract
|
|
117
|
+
* atomic in the type system: a provider either has the entire configuration or has none of it. There is no way to declare a category list without a resolver, no
|
|
118
|
+
* way to set a resolver without category values, and no way to set the strict-resolution flag without the rest of the machinery being present.
|
|
119
|
+
*
|
|
120
|
+
* Fox is the canonical example: its category selectors include "FOXD2C" (a title shared by every Fox-owned local affiliate Fox.com surfaces in the user's market),
|
|
121
|
+
* and its resolver converts that to a concrete per-market call sign like "WFLD" or "WPWRDT". Providers with no category structure (e.g., Hulu, Sling, where every
|
|
122
|
+
* selector names a specific channel) omit this configuration entirely.
|
|
123
|
+
*/
|
|
124
|
+
export interface CategoryResolutionConfig {
|
|
125
|
+
resolve: (selector: string, page: Page) => Promise<CategoryResolution>;
|
|
126
|
+
requireResolution?: boolean;
|
|
127
|
+
selectors: readonly string[];
|
|
84
128
|
}
|
|
85
129
|
/**
|
|
86
130
|
* Coordinates for a click target, used when clicking channel selector elements.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Nullable } from "./shared.
|
|
1
|
+
import type { Nullable } from "./shared.ts";
|
|
2
2
|
/**
|
|
3
3
|
* All recognized capture codec identifiers. H.264 is the universal baseline; additional codecs require GPU hardware encoding. This array is the single definition
|
|
4
4
|
* from which the CaptureCodec type, MIME type lookup, and config validation all derive.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { print, printError } from "../utils/cliOutput.js";
|
|
2
|
+
import { detectInstallMethod } from "./detection.js";
|
|
3
|
+
import { execSync } from "node:child_process";
|
|
4
|
+
import { fetchLatestVersion } from "../utils/version.js";
|
|
5
|
+
import { isRunningAsService } from "../utils/platform.js";
|
|
6
|
+
/**
|
|
7
|
+
* Builds the default UpgradeContext from real runtime I/O.
|
|
8
|
+
* @returns An UpgradeContext populated from the live process.
|
|
9
|
+
*/
|
|
10
|
+
export function createDefaultUpgradeContext() {
|
|
11
|
+
return {
|
|
12
|
+
detect: detectInstallMethod,
|
|
13
|
+
exit: (code) => process.exit(code),
|
|
14
|
+
fetchLatestVersion,
|
|
15
|
+
isService: isRunningAsService(),
|
|
16
|
+
runUpgradeCommand: (cmd, options) => {
|
|
17
|
+
try {
|
|
18
|
+
execSync(cmd, { cwd: options.cwd, encoding: "utf-8", stdio: "inherit" });
|
|
19
|
+
return { success: true };
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return { success: false };
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
stderr: printError,
|
|
26
|
+
stdout: print
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=commands.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.context.js","sourceRoot":"","sources":["../../src/upgrade/commands.context.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D;;;GAGG;AACH,MAAM,UAAU,2BAA2B;IAEzC,OAAO;QAEL,MAAM,EAAE,mBAAmB;QAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;QAClC,kBAAkB;QAClB,SAAS,EAAE,kBAAkB,EAAE;QAC/B,iBAAiB,EAAE,CAAC,GAAW,EAAE,OAAyB,EAAiB,EAAE;YAE3E,IAAI,CAAC;gBAEH,QAAQ,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;gBAEzE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC3B,CAAC;YAAC,MAAM,CAAC;gBAEP,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,KAAK;KACd,CAAC;AACJ,CAAC"}
|