prismcast 1.12.0 → 1.13.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.
Files changed (631) hide show
  1. package/dist/app.d.ts +41 -1
  2. package/dist/app.js +164 -76
  3. package/dist/app.js.map +1 -1
  4. package/dist/browser/blockedPage.d.ts +0 -1
  5. package/dist/browser/browserSupervisor.d.ts +34 -5
  6. package/dist/browser/browserSupervisor.js +39 -12
  7. package/dist/browser/browserSupervisor.js.map +1 -1
  8. package/dist/browser/cdp.d.ts +58 -6
  9. package/dist/browser/cdp.js +147 -9
  10. package/dist/browser/cdp.js.map +1 -1
  11. package/dist/browser/channelSelection.d.ts +18 -6
  12. package/dist/browser/channelSelection.js +47 -36
  13. package/dist/browser/channelSelection.js.map +1 -1
  14. package/dist/browser/consent.d.ts +33 -4
  15. package/dist/browser/consent.js +87 -50
  16. package/dist/browser/consent.js.map +1 -1
  17. package/dist/browser/display.d.ts +0 -1
  18. package/dist/browser/hlsPlaylistObserver.d.ts +3 -2
  19. package/dist/browser/hlsPlaylistObserver.js +11 -6
  20. package/dist/browser/hlsPlaylistObserver.js.map +1 -1
  21. package/dist/browser/index.d.ts +273 -59
  22. package/dist/browser/index.js +768 -255
  23. package/dist/browser/index.js.map +1 -1
  24. package/dist/browser/launchGovernor.d.ts +0 -1
  25. package/dist/browser/login.d.ts +11 -10
  26. package/dist/browser/login.js +42 -33
  27. package/dist/browser/login.js.map +1 -1
  28. package/dist/browser/manifestInterceptor.d.ts +14 -5
  29. package/dist/browser/manifestInterceptor.js +26 -13
  30. package/dist/browser/manifestInterceptor.js.map +1 -1
  31. package/dist/browser/navigation.d.ts +28 -0
  32. package/dist/browser/navigation.js +57 -0
  33. package/dist/browser/navigation.js.map +1 -0
  34. package/dist/browser/pageStaleness.d.ts +1 -2
  35. package/dist/browser/pageStaleness.js +9 -9
  36. package/dist/browser/pageStaleness.js.map +1 -1
  37. package/dist/browser/precaching.d.ts +27 -13
  38. package/dist/browser/precaching.js +219 -73
  39. package/dist/browser/precaching.js.map +1 -1
  40. package/dist/browser/tabCapture.d.ts +97 -0
  41. package/dist/browser/tabCapture.js +314 -0
  42. package/dist/browser/tabCapture.js.map +1 -0
  43. package/dist/browser/tabNetworkObserver.d.ts +0 -1
  44. package/dist/browser/tabSelection.d.ts +117 -0
  45. package/dist/browser/tabSelection.js +547 -0
  46. package/dist/browser/tabSelection.js.map +1 -0
  47. package/dist/browser/tuning/cache.d.ts +0 -1
  48. package/dist/browser/tuning/comcastPolymer.d.ts +0 -1
  49. package/dist/browser/tuning/comcastPolymer.js +18 -19
  50. package/dist/browser/tuning/comcastPolymer.js.map +1 -1
  51. package/dist/browser/tuning/cox.d.ts +0 -1
  52. package/dist/browser/tuning/directv.d.ts +0 -1
  53. package/dist/browser/tuning/directv.js +12 -13
  54. package/dist/browser/tuning/directv.js.map +1 -1
  55. package/dist/browser/tuning/fox.d.ts +0 -1
  56. package/dist/browser/tuning/fox.js +2 -2
  57. package/dist/browser/tuning/fox.js.map +1 -1
  58. package/dist/browser/tuning/gridSearch.d.ts +0 -1
  59. package/dist/browser/tuning/hbo.d.ts +0 -1
  60. package/dist/browser/tuning/hbo.js +2 -2
  61. package/dist/browser/tuning/hbo.js.map +1 -1
  62. package/dist/browser/tuning/hulu.d.ts +14 -2
  63. package/dist/browser/tuning/hulu.js +150 -24
  64. package/dist/browser/tuning/hulu.js.map +1 -1
  65. package/dist/browser/tuning/shared.d.ts +1 -2
  66. package/dist/browser/tuning/shared.js +1 -1
  67. package/dist/browser/tuning/sling.d.ts +0 -1
  68. package/dist/browser/tuning/sling.js +17 -22
  69. package/dist/browser/tuning/sling.js.map +1 -1
  70. package/dist/browser/tuning/spectrum.d.ts +0 -1
  71. package/dist/browser/tuning/thumbnailRow.d.ts +0 -1
  72. package/dist/browser/tuning/tileClick.d.ts +0 -1
  73. package/dist/browser/tuning/xfinity.d.ts +0 -1
  74. package/dist/browser/tuning/youtubeTv.d.ts +0 -1
  75. package/dist/browser/tuning/youtubeTv.js +1 -2
  76. package/dist/browser/tuning/youtubeTv.js.map +1 -1
  77. package/dist/browser/video.d.ts +55 -33
  78. package/dist/browser/video.js +213 -169
  79. package/dist/browser/video.js.map +1 -1
  80. package/dist/browser/windowSync.d.ts +45 -0
  81. package/dist/browser/windowSync.js +153 -0
  82. package/dist/browser/windowSync.js.map +1 -0
  83. package/dist/channels/index.d.ts +7 -1
  84. package/dist/channels/index.js +24 -8
  85. package/dist/channels/index.js.map +1 -1
  86. package/dist/config/channelForm.d.ts +0 -1
  87. package/dist/config/channelIdentity.d.ts +27 -0
  88. package/dist/config/channelIdentity.js +72 -0
  89. package/dist/config/channelIdentity.js.map +1 -0
  90. package/dist/config/channelSort.d.ts +25 -0
  91. package/dist/config/channelSort.js +101 -0
  92. package/dist/config/channelSort.js.map +1 -0
  93. package/dist/config/consistencyProbe.d.ts +0 -1
  94. package/dist/config/consistencyProbe.js +1 -1
  95. package/dist/config/consistencyProbe.js.map +1 -1
  96. package/dist/config/health.d.ts +3 -2
  97. package/dist/config/health.js +41 -31
  98. package/dist/config/health.js.map +1 -1
  99. package/dist/config/index.d.ts +12 -1
  100. package/dist/config/index.js +77 -31
  101. package/dist/config/index.js.map +1 -1
  102. package/dist/config/paths.d.ts +17 -2
  103. package/dist/config/paths.js +21 -1
  104. package/dist/config/paths.js.map +1 -1
  105. package/dist/config/persistence.context.d.ts +0 -1
  106. package/dist/config/persistence.d.ts +8 -4
  107. package/dist/config/persistence.js +143 -82
  108. package/dist/config/persistence.js.map +1 -1
  109. package/dist/config/presets.d.ts +0 -1
  110. package/dist/config/profiles.d.ts +9 -4
  111. package/dist/config/profiles.js +39 -6
  112. package/dist/config/profiles.js.map +1 -1
  113. package/dist/config/providerLineups.d.ts +0 -1
  114. package/dist/config/providerLineups.js +0 -3
  115. package/dist/config/providerLineups.js.map +1 -1
  116. package/dist/config/reactivity.d.ts +0 -1
  117. package/dist/config/servicePacks.d.ts +0 -1
  118. package/dist/config/services.d.ts +1 -47
  119. package/dist/config/services.js +4 -135
  120. package/dist/config/services.js.map +1 -1
  121. package/dist/config/sites.d.ts +0 -9
  122. package/dist/config/sites.js +82 -98
  123. package/dist/config/sites.js.map +1 -1
  124. package/dist/config/userChannels.d.ts +22 -29
  125. package/dist/config/userChannels.js +47 -65
  126. package/dist/config/userChannels.js.map +1 -1
  127. package/dist/config/userConfig.d.ts +19 -4
  128. package/dist/config/userConfig.js +123 -25
  129. package/dist/config/userConfig.js.map +1 -1
  130. package/dist/config/userProfiles.d.ts +2 -3
  131. package/dist/config/userProfiles.js +16 -13
  132. package/dist/config/userProfiles.js.map +1 -1
  133. package/dist/hdhr/channelMap.d.ts +0 -1
  134. package/dist/hdhr/deviceId.d.ts +0 -1
  135. package/dist/hdhr/discover.d.ts +0 -1
  136. package/dist/hdhr/getHandlers.d.ts +0 -1
  137. package/dist/hdhr/identity.d.ts +0 -1
  138. package/dist/hdhr/index.d.ts +0 -1
  139. package/dist/hdhr/protocol.d.ts +1 -2
  140. package/dist/hdhr/protocol.js +1 -1
  141. package/dist/hdhr/tunerState.d.ts +0 -1
  142. package/dist/hdhr/udp.d.ts +0 -1
  143. package/dist/hdhr/udp.js +16 -4
  144. package/dist/hdhr/udp.js.map +1 -1
  145. package/dist/identity.d.ts +0 -1
  146. package/dist/index.d.ts +0 -1
  147. package/dist/index.js +10 -3
  148. package/dist/index.js.map +1 -1
  149. package/dist/native/codecInference.d.ts +5 -4
  150. package/dist/native/codecInference.js +12 -7
  151. package/dist/native/codecInference.js.map +1 -1
  152. package/dist/native/decrypt.d.ts +10 -3
  153. package/dist/native/decrypt.js +9 -5
  154. package/dist/native/decrypt.js.map +1 -1
  155. package/dist/native/index.d.ts +26 -24
  156. package/dist/native/index.js +26 -20
  157. package/dist/native/index.js.map +1 -1
  158. package/dist/native/probe.d.ts +7 -10
  159. package/dist/native/probe.js +41 -37
  160. package/dist/native/probe.js.map +1 -1
  161. package/dist/native/proxy.d.ts +3 -4
  162. package/dist/native/proxy.js +91 -69
  163. package/dist/native/proxy.js.map +1 -1
  164. package/dist/native/tokenExpiry.d.ts +0 -1
  165. package/dist/routes/assets.d.ts +0 -1
  166. package/dist/routes/auth.d.ts +0 -1
  167. package/dist/routes/auth.js +1 -1
  168. package/dist/routes/auth.js.map +1 -1
  169. package/dist/routes/cdp.d.ts +11 -5
  170. package/dist/routes/cdp.js +91 -63
  171. package/dist/routes/cdp.js.map +1 -1
  172. package/dist/routes/channels.d.ts +0 -1
  173. package/dist/routes/clientActions.d.ts +0 -1
  174. package/dist/routes/components.d.ts +0 -1
  175. package/dist/routes/config/channels/endpoints/browse.d.ts +0 -1
  176. package/dist/routes/config/channels/endpoints/bulk.d.ts +0 -1
  177. package/dist/routes/config/channels/endpoints/bulk.js +3 -3
  178. package/dist/routes/config/channels/endpoints/bulk.js.map +1 -1
  179. package/dist/routes/config/channels/endpoints/crud.d.ts +0 -1
  180. package/dist/routes/config/channels/endpoints/crud.js +4 -3
  181. package/dist/routes/config/channels/endpoints/crud.js.map +1 -1
  182. package/dist/routes/config/channels/endpoints/importExport.d.ts +0 -1
  183. package/dist/routes/config/channels/endpoints/importExport.js +7 -3
  184. package/dist/routes/config/channels/endpoints/importExport.js.map +1 -1
  185. package/dist/routes/config/channels/endpoints/predefined.d.ts +0 -1
  186. package/dist/routes/config/channels/endpoints/prefs.d.ts +0 -1
  187. package/dist/routes/config/channels/endpoints/prefs.js +1 -1
  188. package/dist/routes/config/channels/endpoints/prefs.js.map +1 -1
  189. package/dist/routes/config/channels/endpoints/service.d.ts +0 -1
  190. package/dist/routes/config/channels/endpoints/service.js +8 -5
  191. package/dist/routes/config/channels/endpoints/service.js.map +1 -1
  192. package/dist/routes/config/channels/endpoints/tags.d.ts +0 -1
  193. package/dist/routes/config/channels/endpoints/tags.js +3 -3
  194. package/dist/routes/config/channels/endpoints/tags.js.map +1 -1
  195. package/dist/routes/config/channels/healthBridge.d.ts +4 -1
  196. package/dist/routes/config/channels/healthBridge.js +9 -5
  197. package/dist/routes/config/channels/healthBridge.js.map +1 -1
  198. package/dist/routes/config/channels/http/handler.d.ts +0 -1
  199. package/dist/routes/config/channels/http/playlistHint.d.ts +0 -1
  200. package/dist/routes/config/channels/http/serviceWarning.d.ts +0 -1
  201. package/dist/routes/config/channels/http/serviceWarning.js +1 -1
  202. package/dist/routes/config/channels/http/serviceWarning.js.map +1 -1
  203. package/dist/routes/config/channels/index.d.ts +0 -1
  204. package/dist/routes/config/channels/setup.d.ts +0 -1
  205. package/dist/routes/config/channels/table.d.ts +0 -1
  206. package/dist/routes/config/channels/table.js +66 -134
  207. package/dist/routes/config/channels/table.js.map +1 -1
  208. package/dist/routes/config/http/envelope.d.ts +1 -2
  209. package/dist/routes/config/index.d.ts +5 -5
  210. package/dist/routes/config/index.js +7 -5
  211. package/dist/routes/config/index.js.map +1 -1
  212. package/dist/routes/config/services.d.ts +0 -1
  213. package/dist/routes/config/services.js +17 -19
  214. package/dist/routes/config/services.js.map +1 -1
  215. package/dist/routes/config/settings.d.ts +6 -15
  216. package/dist/routes/config/settings.js +16 -35
  217. package/dist/routes/config/settings.js.map +1 -1
  218. package/dist/routes/debug.d.ts +0 -1
  219. package/dist/routes/debug.js +1 -1
  220. package/dist/routes/debug.js.map +1 -1
  221. package/dist/routes/health.d.ts +16 -8
  222. package/dist/routes/health.js +27 -12
  223. package/dist/routes/health.js.map +1 -1
  224. package/dist/routes/hls.d.ts +0 -1
  225. package/dist/routes/icons.d.ts +0 -1
  226. package/dist/routes/index.d.ts +0 -1
  227. package/dist/routes/logs.d.ts +3 -2
  228. package/dist/routes/logs.js +54 -14
  229. package/dist/routes/logs.js.map +1 -1
  230. package/dist/routes/mpegts.d.ts +0 -1
  231. package/dist/routes/play.d.ts +0 -1
  232. package/dist/routes/playlist.d.ts +0 -1
  233. package/dist/routes/playlist.js +2 -1
  234. package/dist/routes/playlist.js.map +1 -1
  235. package/dist/routes/root/content.d.ts +0 -1
  236. package/dist/routes/root/content.js +32 -11
  237. package/dist/routes/root/content.js.map +1 -1
  238. package/dist/routes/root/index.d.ts +10 -1
  239. package/dist/routes/root/index.js +17 -7
  240. package/dist/routes/root/index.js.map +1 -1
  241. package/dist/routes/root/scripts/channels.d.ts +0 -1
  242. package/dist/routes/root/scripts/channels.js +10 -20
  243. package/dist/routes/root/scripts/channels.js.map +1 -1
  244. package/dist/routes/root/scripts/clientEscape.d.ts +0 -1
  245. package/dist/routes/root/scripts/clientEscape.js +1 -1
  246. package/dist/routes/root/scripts/clientUrl.d.ts +0 -1
  247. package/dist/routes/root/scripts/config.d.ts +0 -1
  248. package/dist/routes/root/scripts/config.js +8 -29
  249. package/dist/routes/root/scripts/config.js.map +1 -1
  250. package/dist/routes/root/scripts/index.d.ts +0 -1
  251. package/dist/routes/root/scripts/shared.d.ts +0 -1
  252. package/dist/routes/root/scripts/shared.js +16 -13
  253. package/dist/routes/root/scripts/shared.js.map +1 -1
  254. package/dist/routes/root/scripts/status.d.ts +0 -1
  255. package/dist/routes/root/scripts/status.handlers.d.ts +3 -1
  256. package/dist/routes/root/scripts/status.handlers.js +52 -26
  257. package/dist/routes/root/scripts/status.handlers.js.map +1 -1
  258. package/dist/routes/root/styles.d.ts +0 -1
  259. package/dist/routes/root/styles.js +10 -18
  260. package/dist/routes/root/styles.js.map +1 -1
  261. package/dist/routes/services.d.ts +0 -1
  262. package/dist/routes/services.js +1 -1
  263. package/dist/routes/services.js.map +1 -1
  264. package/dist/routes/sse.d.ts +3 -2
  265. package/dist/routes/sse.js +7 -3
  266. package/dist/routes/sse.js.map +1 -1
  267. package/dist/routes/streams.d.ts +4 -2
  268. package/dist/routes/streams.js +8 -5
  269. package/dist/routes/streams.js.map +1 -1
  270. package/dist/routes/theme.d.ts +0 -1
  271. package/dist/routes/theme.js +3 -3
  272. package/dist/routes/theme.js.map +1 -1
  273. package/dist/routes/ui.d.ts +0 -1
  274. package/dist/routes/ui.js +5 -5
  275. package/dist/routes/ui.js.map +1 -1
  276. package/dist/routes/upgrade.d.ts +0 -1
  277. package/dist/routes/upgrade.js +2 -1
  278. package/dist/routes/upgrade.js.map +1 -1
  279. package/dist/service/commands.context.d.ts +0 -1
  280. package/dist/service/commands.context.js +7 -1
  281. package/dist/service/commands.context.js.map +1 -1
  282. package/dist/service/commands.d.ts +0 -1
  283. package/dist/service/generators.context.d.ts +0 -1
  284. package/dist/service/generators.d.ts +0 -1
  285. package/dist/service/index.d.ts +0 -1
  286. package/dist/streaming/captureLock.d.ts +1 -2
  287. package/dist/streaming/captureLock.js +8 -7
  288. package/dist/streaming/captureLock.js.map +1 -1
  289. package/dist/streaming/captureSession.d.ts +0 -1
  290. package/dist/streaming/clients.d.ts +4 -3
  291. package/dist/streaming/clients.js +5 -4
  292. package/dist/streaming/clients.js.map +1 -1
  293. package/dist/streaming/codec.d.ts +0 -1
  294. package/dist/streaming/fmp4Segmenter.d.ts +11 -6
  295. package/dist/streaming/fmp4Segmenter.js +39 -17
  296. package/dist/streaming/fmp4Segmenter.js.map +1 -1
  297. package/dist/streaming/hls.d.ts +96 -3
  298. package/dist/streaming/hls.js +282 -171
  299. package/dist/streaming/hls.js.map +1 -1
  300. package/dist/streaming/hlsResume.d.ts +8 -5
  301. package/dist/streaming/hlsResume.js +10 -8
  302. package/dist/streaming/hlsResume.js.map +1 -1
  303. package/dist/streaming/hlsSegments.d.ts +11 -8
  304. package/dist/streaming/hlsSegments.js +38 -18
  305. package/dist/streaming/hlsSegments.js.map +1 -1
  306. package/dist/streaming/lifecycle.d.ts +5 -4
  307. package/dist/streaming/lifecycle.js +43 -13
  308. package/dist/streaming/lifecycle.js.map +1 -1
  309. package/dist/streaming/monitor.d.ts +14 -3
  310. package/dist/streaming/monitor.js +447 -234
  311. package/dist/streaming/monitor.js.map +1 -1
  312. package/dist/streaming/mp4Parser.d.ts +0 -1
  313. package/dist/streaming/mpegts.d.ts +11 -1
  314. package/dist/streaming/mpegts.js +92 -28
  315. package/dist/streaming/mpegts.js.map +1 -1
  316. package/dist/streaming/playlistBuilder.d.ts +0 -1
  317. package/dist/streaming/preroll.d.ts +34 -15
  318. package/dist/streaming/preroll.js +32 -30
  319. package/dist/streaming/preroll.js.map +1 -1
  320. package/dist/streaming/pretune.d.ts +2 -3
  321. package/dist/streaming/pretune.js +45 -45
  322. package/dist/streaming/pretune.js.map +1 -1
  323. package/dist/streaming/pretuneTimers.d.ts +16 -12
  324. package/dist/streaming/pretuneTimers.js +27 -37
  325. package/dist/streaming/pretuneTimers.js.map +1 -1
  326. package/dist/streaming/recovery.d.ts +97 -9
  327. package/dist/streaming/recovery.js +96 -18
  328. package/dist/streaming/recovery.js.map +1 -1
  329. package/dist/streaming/registry.d.ts +102 -15
  330. package/dist/streaming/registry.js +90 -5
  331. package/dist/streaming/registry.js.map +1 -1
  332. package/dist/streaming/setup.d.ts +90 -32
  333. package/dist/streaming/setup.js +379 -248
  334. package/dist/streaming/setup.js.map +1 -1
  335. package/dist/streaming/showInfo.d.ts +8 -4
  336. package/dist/streaming/showInfo.js +54 -45
  337. package/dist/streaming/showInfo.js.map +1 -1
  338. package/dist/streaming/statusEmitter.d.ts +5 -3
  339. package/dist/streaming/statusEmitter.js +20 -8
  340. package/dist/streaming/statusEmitter.js.map +1 -1
  341. package/dist/types/channels.d.ts +0 -1
  342. package/dist/types/channels.js +0 -4
  343. package/dist/types/channels.js.map +1 -1
  344. package/dist/types/config.d.ts +0 -1
  345. package/dist/types/index.d.ts +4 -4
  346. package/dist/types/index.js +2 -1
  347. package/dist/types/index.js.map +1 -1
  348. package/dist/types/profiles.d.ts +51 -9
  349. package/dist/types/profiles.js +35 -1
  350. package/dist/types/profiles.js.map +1 -1
  351. package/dist/types/selection.d.ts +10 -1
  352. package/dist/types/shared.d.ts +0 -1
  353. package/dist/types/streaming.d.ts +8 -1
  354. package/dist/types/streaming.js +7 -0
  355. package/dist/types/streaming.js.map +1 -1
  356. package/dist/upgrade/commands.context.d.ts +0 -1
  357. package/dist/upgrade/commands.d.ts +0 -1
  358. package/dist/upgrade/commands.js +1 -1
  359. package/dist/upgrade/commands.js.map +1 -1
  360. package/dist/upgrade/detection.context.d.ts +0 -1
  361. package/dist/upgrade/detection.d.ts +1 -2
  362. package/dist/upgrade/index.d.ts +0 -1
  363. package/dist/upgrade/lifecycle.context.d.ts +2 -1
  364. package/dist/upgrade/lifecycle.context.js +9 -4
  365. package/dist/upgrade/lifecycle.context.js.map +1 -1
  366. package/dist/upgrade/lifecycle.d.ts +0 -1
  367. package/dist/upgrade/pathHandle.d.ts +0 -1
  368. package/dist/utils/bootSession.context.d.ts +0 -1
  369. package/dist/utils/bootSession.context.js +3 -2
  370. package/dist/utils/bootSession.context.js.map +1 -1
  371. package/dist/utils/bootSession.d.ts +0 -1
  372. package/dist/utils/chromeFetch.d.ts +0 -1
  373. package/dist/utils/cliOutput.d.ts +0 -1
  374. package/dist/utils/debugFilter.d.ts +0 -1
  375. package/dist/utils/debugFilter.js +5 -3
  376. package/dist/utils/debugFilter.js.map +1 -1
  377. package/dist/utils/delay.d.ts +65 -13
  378. package/dist/utils/delay.js +96 -23
  379. package/dist/utils/delay.js.map +1 -1
  380. package/dist/utils/errors.d.ts +0 -11
  381. package/dist/utils/errors.js +3 -14
  382. package/dist/utils/errors.js.map +1 -1
  383. package/dist/utils/evaluate.d.ts +11 -3
  384. package/dist/utils/evaluate.js +4 -3
  385. package/dist/utils/evaluate.js.map +1 -1
  386. package/dist/utils/ffmpeg.context.d.ts +0 -1
  387. package/dist/utils/ffmpeg.d.ts +1 -1
  388. package/dist/utils/ffmpeg.js +2 -1
  389. package/dist/utils/ffmpeg.js.map +1 -1
  390. package/dist/utils/fileLogger.d.ts +26 -7
  391. package/dist/utils/fileLogger.js +241 -102
  392. package/dist/utils/fileLogger.js.map +1 -1
  393. package/dist/utils/format.d.ts +36 -4
  394. package/dist/utils/format.js +66 -12
  395. package/dist/utils/format.js.map +1 -1
  396. package/dist/utils/index.d.ts +1 -2
  397. package/dist/utils/index.js +1 -1
  398. package/dist/utils/index.js.map +1 -1
  399. package/dist/utils/logEmitter.d.ts +0 -1
  400. package/dist/utils/logger.d.ts +0 -1
  401. package/dist/utils/m3u.d.ts +0 -1
  402. package/dist/utils/markup.d.ts +0 -1
  403. package/dist/utils/memo.d.ts +0 -1
  404. package/dist/utils/morganStream.d.ts +2 -3
  405. package/dist/utils/morganStream.js +6 -8
  406. package/dist/utils/morganStream.js.map +1 -1
  407. package/dist/utils/network.d.ts +0 -1
  408. package/dist/utils/never.d.ts +8 -0
  409. package/dist/utils/never.js +20 -0
  410. package/dist/utils/never.js.map +1 -0
  411. package/dist/utils/pid.d.ts +0 -1
  412. package/dist/utils/platform.d.ts +0 -1
  413. package/dist/utils/processInspector.context.d.ts +32 -2
  414. package/dist/utils/processInspector.context.js +117 -1
  415. package/dist/utils/processInspector.context.js.map +1 -1
  416. package/dist/utils/processInspector.d.ts +0 -32
  417. package/dist/utils/processInspector.js +10 -117
  418. package/dist/utils/processInspector.js.map +1 -1
  419. package/dist/utils/retry.d.ts +5 -4
  420. package/dist/utils/retry.js +43 -33
  421. package/dist/utils/retry.js.map +1 -1
  422. package/dist/utils/runtimeIdentity.context.d.ts +0 -1
  423. package/dist/utils/runtimeIdentity.context.js +3 -1
  424. package/dist/utils/runtimeIdentity.context.js.map +1 -1
  425. package/dist/utils/runtimeIdentity.d.ts +1 -1
  426. package/dist/utils/runtimeIdentity.js +1 -1
  427. package/dist/utils/runtimeIdentity.js.map +1 -1
  428. package/dist/utils/sanitize.d.ts +8 -1
  429. package/dist/utils/sanitize.js +19 -0
  430. package/dist/utils/sanitize.js.map +1 -1
  431. package/dist/utils/streamContext.d.ts +0 -1
  432. package/dist/utils/timing.d.ts +3 -4
  433. package/dist/utils/timing.js +4 -4
  434. package/dist/utils/timing.js.map +1 -1
  435. package/dist/utils/version.d.ts +14 -8
  436. package/dist/utils/version.js +35 -24
  437. package/dist/utils/version.js.map +1 -1
  438. package/package.json +7 -7
  439. package/dist/app.d.ts.map +0 -1
  440. package/dist/browser/blockedPage.d.ts.map +0 -1
  441. package/dist/browser/browserSupervisor.d.ts.map +0 -1
  442. package/dist/browser/cdp.d.ts.map +0 -1
  443. package/dist/browser/channelSelection.d.ts.map +0 -1
  444. package/dist/browser/consent.d.ts.map +0 -1
  445. package/dist/browser/display.d.ts.map +0 -1
  446. package/dist/browser/hlsPlaylistObserver.d.ts.map +0 -1
  447. package/dist/browser/index.d.ts.map +0 -1
  448. package/dist/browser/launchGovernor.d.ts.map +0 -1
  449. package/dist/browser/login.d.ts.map +0 -1
  450. package/dist/browser/manifestInterceptor.d.ts.map +0 -1
  451. package/dist/browser/pageStaleness.d.ts.map +0 -1
  452. package/dist/browser/precaching.d.ts.map +0 -1
  453. package/dist/browser/tabNetworkObserver.d.ts.map +0 -1
  454. package/dist/browser/tuning/cache.d.ts.map +0 -1
  455. package/dist/browser/tuning/comcastPolymer.d.ts.map +0 -1
  456. package/dist/browser/tuning/cox.d.ts.map +0 -1
  457. package/dist/browser/tuning/directv.d.ts.map +0 -1
  458. package/dist/browser/tuning/fox.d.ts.map +0 -1
  459. package/dist/browser/tuning/gridSearch.d.ts.map +0 -1
  460. package/dist/browser/tuning/hbo.d.ts.map +0 -1
  461. package/dist/browser/tuning/hulu.d.ts.map +0 -1
  462. package/dist/browser/tuning/shared.d.ts.map +0 -1
  463. package/dist/browser/tuning/sling.d.ts.map +0 -1
  464. package/dist/browser/tuning/spectrum.d.ts.map +0 -1
  465. package/dist/browser/tuning/thumbnailRow.d.ts.map +0 -1
  466. package/dist/browser/tuning/tileClick.d.ts.map +0 -1
  467. package/dist/browser/tuning/xfinity.d.ts.map +0 -1
  468. package/dist/browser/tuning/youtubeTv.d.ts.map +0 -1
  469. package/dist/browser/video.d.ts.map +0 -1
  470. package/dist/channels/index.d.ts.map +0 -1
  471. package/dist/config/channelForm.d.ts.map +0 -1
  472. package/dist/config/consistencyProbe.d.ts.map +0 -1
  473. package/dist/config/health.d.ts.map +0 -1
  474. package/dist/config/index.d.ts.map +0 -1
  475. package/dist/config/paths.d.ts.map +0 -1
  476. package/dist/config/persistence.context.d.ts.map +0 -1
  477. package/dist/config/persistence.d.ts.map +0 -1
  478. package/dist/config/presets.d.ts.map +0 -1
  479. package/dist/config/profiles.d.ts.map +0 -1
  480. package/dist/config/providerLineups.d.ts.map +0 -1
  481. package/dist/config/reactivity.d.ts.map +0 -1
  482. package/dist/config/servicePacks.d.ts.map +0 -1
  483. package/dist/config/services.d.ts.map +0 -1
  484. package/dist/config/sites.d.ts.map +0 -1
  485. package/dist/config/userChannels.d.ts.map +0 -1
  486. package/dist/config/userConfig.d.ts.map +0 -1
  487. package/dist/config/userProfiles.d.ts.map +0 -1
  488. package/dist/hdhr/channelMap.d.ts.map +0 -1
  489. package/dist/hdhr/deviceId.d.ts.map +0 -1
  490. package/dist/hdhr/discover.d.ts.map +0 -1
  491. package/dist/hdhr/getHandlers.d.ts.map +0 -1
  492. package/dist/hdhr/identity.d.ts.map +0 -1
  493. package/dist/hdhr/index.d.ts.map +0 -1
  494. package/dist/hdhr/protocol.d.ts.map +0 -1
  495. package/dist/hdhr/tunerState.d.ts.map +0 -1
  496. package/dist/hdhr/udp.d.ts.map +0 -1
  497. package/dist/identity.d.ts.map +0 -1
  498. package/dist/index.d.ts.map +0 -1
  499. package/dist/native/codecInference.d.ts.map +0 -1
  500. package/dist/native/decrypt.d.ts.map +0 -1
  501. package/dist/native/index.d.ts.map +0 -1
  502. package/dist/native/probe.d.ts.map +0 -1
  503. package/dist/native/proxy.d.ts.map +0 -1
  504. package/dist/native/tokenExpiry.d.ts.map +0 -1
  505. package/dist/routes/assets.d.ts.map +0 -1
  506. package/dist/routes/auth.d.ts.map +0 -1
  507. package/dist/routes/cdp.d.ts.map +0 -1
  508. package/dist/routes/channels.d.ts.map +0 -1
  509. package/dist/routes/clientActions.d.ts.map +0 -1
  510. package/dist/routes/components.d.ts.map +0 -1
  511. package/dist/routes/config/channels/endpoints/browse.d.ts.map +0 -1
  512. package/dist/routes/config/channels/endpoints/bulk.d.ts.map +0 -1
  513. package/dist/routes/config/channels/endpoints/crud.d.ts.map +0 -1
  514. package/dist/routes/config/channels/endpoints/importExport.d.ts.map +0 -1
  515. package/dist/routes/config/channels/endpoints/predefined.d.ts.map +0 -1
  516. package/dist/routes/config/channels/endpoints/prefs.d.ts.map +0 -1
  517. package/dist/routes/config/channels/endpoints/service.d.ts.map +0 -1
  518. package/dist/routes/config/channels/endpoints/tags.d.ts.map +0 -1
  519. package/dist/routes/config/channels/healthBridge.d.ts.map +0 -1
  520. package/dist/routes/config/channels/http/handler.d.ts.map +0 -1
  521. package/dist/routes/config/channels/http/playlistHint.d.ts.map +0 -1
  522. package/dist/routes/config/channels/http/serviceWarning.d.ts.map +0 -1
  523. package/dist/routes/config/channels/index.d.ts.map +0 -1
  524. package/dist/routes/config/channels/setup.d.ts.map +0 -1
  525. package/dist/routes/config/channels/table.d.ts.map +0 -1
  526. package/dist/routes/config/http/envelope.d.ts.map +0 -1
  527. package/dist/routes/config/index.d.ts.map +0 -1
  528. package/dist/routes/config/services.d.ts.map +0 -1
  529. package/dist/routes/config/settings.d.ts.map +0 -1
  530. package/dist/routes/debug.d.ts.map +0 -1
  531. package/dist/routes/health.d.ts.map +0 -1
  532. package/dist/routes/hls.d.ts.map +0 -1
  533. package/dist/routes/icons.d.ts.map +0 -1
  534. package/dist/routes/index.d.ts.map +0 -1
  535. package/dist/routes/logs.d.ts.map +0 -1
  536. package/dist/routes/mpegts.d.ts.map +0 -1
  537. package/dist/routes/play.d.ts.map +0 -1
  538. package/dist/routes/playlist.d.ts.map +0 -1
  539. package/dist/routes/root/content.d.ts.map +0 -1
  540. package/dist/routes/root/index.d.ts.map +0 -1
  541. package/dist/routes/root/scripts/channels.d.ts.map +0 -1
  542. package/dist/routes/root/scripts/clientEscape.d.ts.map +0 -1
  543. package/dist/routes/root/scripts/clientUrl.d.ts.map +0 -1
  544. package/dist/routes/root/scripts/config.d.ts.map +0 -1
  545. package/dist/routes/root/scripts/index.d.ts.map +0 -1
  546. package/dist/routes/root/scripts/shared.d.ts.map +0 -1
  547. package/dist/routes/root/scripts/status.d.ts.map +0 -1
  548. package/dist/routes/root/scripts/status.handlers.d.ts.map +0 -1
  549. package/dist/routes/root/styles.d.ts.map +0 -1
  550. package/dist/routes/services.d.ts.map +0 -1
  551. package/dist/routes/sse.d.ts.map +0 -1
  552. package/dist/routes/streams.d.ts.map +0 -1
  553. package/dist/routes/theme.d.ts.map +0 -1
  554. package/dist/routes/ui.d.ts.map +0 -1
  555. package/dist/routes/upgrade.d.ts.map +0 -1
  556. package/dist/service/commands.context.d.ts.map +0 -1
  557. package/dist/service/commands.d.ts.map +0 -1
  558. package/dist/service/generators.context.d.ts.map +0 -1
  559. package/dist/service/generators.d.ts.map +0 -1
  560. package/dist/service/index.d.ts.map +0 -1
  561. package/dist/streaming/captureLock.d.ts.map +0 -1
  562. package/dist/streaming/captureSession.d.ts.map +0 -1
  563. package/dist/streaming/clients.d.ts.map +0 -1
  564. package/dist/streaming/codec.d.ts.map +0 -1
  565. package/dist/streaming/fmp4Segmenter.d.ts.map +0 -1
  566. package/dist/streaming/hls.d.ts.map +0 -1
  567. package/dist/streaming/hlsResume.d.ts.map +0 -1
  568. package/dist/streaming/hlsSegments.d.ts.map +0 -1
  569. package/dist/streaming/lifecycle.d.ts.map +0 -1
  570. package/dist/streaming/monitor.d.ts.map +0 -1
  571. package/dist/streaming/mp4Parser.d.ts.map +0 -1
  572. package/dist/streaming/mpegts.d.ts.map +0 -1
  573. package/dist/streaming/playlistBuilder.d.ts.map +0 -1
  574. package/dist/streaming/preroll.d.ts.map +0 -1
  575. package/dist/streaming/pretune.d.ts.map +0 -1
  576. package/dist/streaming/pretuneTimers.d.ts.map +0 -1
  577. package/dist/streaming/recovery.d.ts.map +0 -1
  578. package/dist/streaming/registry.d.ts.map +0 -1
  579. package/dist/streaming/setup.d.ts.map +0 -1
  580. package/dist/streaming/showInfo.d.ts.map +0 -1
  581. package/dist/streaming/statusEmitter.d.ts.map +0 -1
  582. package/dist/types/channels.d.ts.map +0 -1
  583. package/dist/types/config.d.ts.map +0 -1
  584. package/dist/types/index.d.ts.map +0 -1
  585. package/dist/types/profiles.d.ts.map +0 -1
  586. package/dist/types/selection.d.ts.map +0 -1
  587. package/dist/types/shared.d.ts.map +0 -1
  588. package/dist/types/streaming.d.ts.map +0 -1
  589. package/dist/upgrade/commands.context.d.ts.map +0 -1
  590. package/dist/upgrade/commands.d.ts.map +0 -1
  591. package/dist/upgrade/detection.context.d.ts.map +0 -1
  592. package/dist/upgrade/detection.d.ts.map +0 -1
  593. package/dist/upgrade/index.d.ts.map +0 -1
  594. package/dist/upgrade/lifecycle.context.d.ts.map +0 -1
  595. package/dist/upgrade/lifecycle.d.ts.map +0 -1
  596. package/dist/upgrade/pathHandle.d.ts.map +0 -1
  597. package/dist/utils/bootSession.context.d.ts.map +0 -1
  598. package/dist/utils/bootSession.d.ts.map +0 -1
  599. package/dist/utils/chromeFetch.d.ts.map +0 -1
  600. package/dist/utils/cliOutput.d.ts.map +0 -1
  601. package/dist/utils/clock.d.ts +0 -15
  602. package/dist/utils/clock.d.ts.map +0 -1
  603. package/dist/utils/clock.js +0 -31
  604. package/dist/utils/clock.js.map +0 -1
  605. package/dist/utils/debugFilter.d.ts.map +0 -1
  606. package/dist/utils/delay.d.ts.map +0 -1
  607. package/dist/utils/errors.d.ts.map +0 -1
  608. package/dist/utils/evaluate.d.ts.map +0 -1
  609. package/dist/utils/ffmpeg.context.d.ts.map +0 -1
  610. package/dist/utils/ffmpeg.d.ts.map +0 -1
  611. package/dist/utils/fileLogger.d.ts.map +0 -1
  612. package/dist/utils/format.d.ts.map +0 -1
  613. package/dist/utils/index.d.ts.map +0 -1
  614. package/dist/utils/logEmitter.d.ts.map +0 -1
  615. package/dist/utils/logger.d.ts.map +0 -1
  616. package/dist/utils/m3u.d.ts.map +0 -1
  617. package/dist/utils/markup.d.ts.map +0 -1
  618. package/dist/utils/memo.d.ts.map +0 -1
  619. package/dist/utils/morganStream.d.ts.map +0 -1
  620. package/dist/utils/network.d.ts.map +0 -1
  621. package/dist/utils/pid.d.ts.map +0 -1
  622. package/dist/utils/platform.d.ts.map +0 -1
  623. package/dist/utils/processInspector.context.d.ts.map +0 -1
  624. package/dist/utils/processInspector.d.ts.map +0 -1
  625. package/dist/utils/retry.d.ts.map +0 -1
  626. package/dist/utils/runtimeIdentity.context.d.ts.map +0 -1
  627. package/dist/utils/runtimeIdentity.d.ts.map +0 -1
  628. package/dist/utils/sanitize.d.ts.map +0 -1
  629. package/dist/utils/streamContext.d.ts.map +0 -1
  630. package/dist/utils/timing.d.ts.map +0 -1
  631. package/dist/utils/version.d.ts.map +0 -1
@@ -1,56 +1,46 @@
1
- /* Copyright(C) 2024-2026, HJD (https://github.com/hjdhjd). All rights reserved.
1
+ import { TimerRegistry } from "homebridge-plugin-utils";
2
+ /* The safety timers, keyed by stream ID, on the library's lifetime-bound timer registry. Used to tear down unclaimed pretuned streams after the scheduled start
3
+ * time. Owned here so both the producer (pretune.ts, which schedules them) and the consumer (lifecycle.ts, which clears them on normal termination) reference one
4
+ * registry without a cyclic import.
2
5
  *
3
- * pretuneTimers.ts: Ownership of the pretune safety-timer registry.
4
- *
5
- * A pretuned stream is started ahead of its scheduled time and reaped by a per-stream safety timer if no real client ever claims it. That timer must be cancelled
6
- * when the stream IS claimed and terminated through the normal lifecycle, so terminateStream() (lifecycle.ts) needs to clear it. This registry lives in its own
7
- * leaf module - importing nothing from the streaming graph - so lifecycle.ts can clear a timer without importing pretune.ts. pretune.ts imports lifecycle.ts (for
8
- * terminateStream) and hls.ts (for initializeStream/validateChannel), so a direct lifecycle->pretune edge would close a hls -> lifecycle -> pretune -> hls import
9
- * cycle. Keeping the timer state here is the single source of truth for the registry and keeps the dependency edges acyclic.
6
+ * The binding starts on the system clock at module load and the scheduler replaces it with one on its own clock at every start, draining it at every stop. It is
7
+ * never absent and never throws: an arm that lands on a drained registry is accepted and fires on that registry's clock, which is what a plain map of handles did.
10
8
  */
11
- // Safety timers keyed by stream ID. Used to tear down unclaimed pretuned streams after the scheduled start time. Owned here so both the producer (pretune.ts, which
12
- // schedules them) and the consumer (lifecycle.ts, which clears them on normal termination) reference one registry without a cyclic import.
13
- const safetyTimers = new Map();
9
+ let safetyTimers = new TimerRegistry();
14
10
  /**
15
- * Records the pending safety timer for a pretuned stream, replacing any existing entry for that stream ID. Called by pretune.ts when it schedules the reaper.
16
- * @param streamId - The numeric stream ID the timer guards.
17
- * @param timer - The timer handle to track.
11
+ * Retires the current safety-timer registry and builds a replacement on the scheduler's clock. Called by startPretunePolling() so every reaper a pretune attempt
12
+ * arms runs on the same clock the scheduler's own timers do. The prior registry is disposed BEFORE the replacement is built, so a reaper armed against the earlier
13
+ * generation can never fire once the restart has landed.
14
+ * @param clock - The clock the replacement registry arms its timers on.
18
15
  */
19
- export function setPretuneSafetyTimer(streamId, timer) {
20
- // Cancel any prior reaper for this stream before tracking the new one, so the registry holds at most one live timer per stream and an overwritten handle can never
21
- // survive to fire against the same stream later. In practice a stream is pretuned once, so this is a no-op; it keeps the registry holding at most one live timer
22
- // per stream even if a stream is ever re-registered.
23
- clearPretuneSafetyTimer(streamId);
24
- safetyTimers.set(streamId, timer);
16
+ export function startPretuneSafetyTimers(clock) {
17
+ safetyTimers.dispose();
18
+ safetyTimers = new TimerRegistry({ clock });
25
19
  }
26
20
  /**
27
- * Forgets a safety timer entry without cancelling it. Called from inside the timer's own callback after it has fired, where clearing the (already-elapsed) timer
28
- * would be redundant; we only need to drop the bookkeeping entry.
29
- * @param streamId - The numeric stream ID whose entry to drop.
21
+ * Records the pending safety timer for a pretuned stream, replacing any reaper the registry already holds under that stream ID. Called by pretune.ts when it
22
+ * schedules the reaper. The registry removes a keyed one-shot's entry before running its callback, so the reaper reads its own key as already gone.
23
+ * @param streamId - The numeric stream ID the timer guards.
24
+ * @param callback - The reaper to run when the safety window elapses.
25
+ * @param delayMs - How long to wait before reaping, in milliseconds.
30
26
  */
31
- export function forgetPretuneSafetyTimer(streamId) {
32
- safetyTimers.delete(streamId);
27
+ export function setPretuneSafetyTimer(streamId, callback, delayMs) {
28
+ safetyTimers.setTimeout(String(streamId), callback, delayMs);
33
29
  }
34
30
  /**
35
31
  * Cancels and forgets the pending safety timer for a pretuned stream. Called by terminateStream() when a pretuned stream is claimed and torn down through the normal
36
- * lifecycle, so the safety timeout - which exists only to reap streams that were never claimed - does not linger in the Map until it fires harmlessly against an
37
- * already-gone stream. Safe to call for any stream ID; streams without a pending safety timer are a no-op.
32
+ * lifecycle, so the safety timeout - which exists only to reap streams that were never claimed - does not linger in the registry until it fires harmlessly against
33
+ * an already-gone stream. Safe to call for any stream ID; streams without a pending safety timer are a no-op.
38
34
  * @param streamId - The numeric stream ID whose safety timer to clear.
39
35
  */
40
36
  export function clearPretuneSafetyTimer(streamId) {
41
- const timer = safetyTimers.get(streamId);
42
- if (timer) {
43
- clearTimeout(timer);
44
- safetyTimers.delete(streamId);
45
- }
37
+ safetyTimers.clear(String(streamId));
46
38
  }
47
39
  /**
48
- * Cancels and forgets every pending safety timer. Called by stopPretunePolling() on server shutdown so no reaper survives the polling loop.
40
+ * Cancels every pending safety timer while leaving the registry armed for the arms that follow. Called by stopPretunePolling() on server shutdown so no reaper
41
+ * survives the polling loop. The retirement of the registry itself belongs to the next start, through startPretuneSafetyTimers().
49
42
  */
50
43
  export function clearAllPretuneSafetyTimers() {
51
- for (const timer of safetyTimers.values()) {
52
- clearTimeout(timer);
53
- }
54
- safetyTimers.clear();
44
+ safetyTimers.clearAll();
55
45
  }
56
46
  //# sourceMappingURL=pretuneTimers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pretuneTimers.js","sourceRoot":"","sources":["../../src/streaming/pretuneTimers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oKAAoK;AACpK,2IAA2I;AAC3I,MAAM,YAAY,GAAG,IAAI,GAAG,EAAyC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,QAAgB,EAAE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,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAgB;IAEtD,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACvC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,2BAA2B;IAEzC,YAAY,CAAC,QAAQ,EAAE,CAAC;AAC1B,CAAC"}
@@ -48,11 +48,12 @@ export declare function createRecoveryMetrics(): RecoveryMetrics;
48
48
  */
49
49
  export declare function getTotalRecoveryAttempts(metrics: RecoveryMetrics): number;
50
50
  /**
51
- * Formats recovery duration from start time to now.
51
+ * Formats recovery duration from start time to the supplied instant.
52
52
  * @param startTime - The timestamp when recovery started.
53
+ * @param now - The instant to measure against.
53
54
  * @returns Formatted duration string like "2.1s".
54
55
  */
55
- export declare function formatRecoveryDuration(startTime: number): string;
56
+ export declare function formatRecoveryDuration(startTime: number, now: number): string;
56
57
  /**
57
58
  * Maps issue category to user-friendly description for logging.
58
59
  * @param category - The issue category from getIssueCategory().
@@ -74,15 +75,17 @@ export declare function getRecoveryMethod(level: number): string;
74
75
  * attempt, not per callback invocation.
75
76
  * @param metrics - The metrics object to update.
76
77
  * @param method - The recovery method being attempted.
78
+ * @param now - The instant the attempt starts.
77
79
  */
78
- export declare function recordRecoveryAttempt(metrics: RecoveryMetrics, method: string): void;
80
+ export declare function recordRecoveryAttempt(metrics: RecoveryMetrics, method: string, now: number): void;
79
81
  /**
80
82
  * Records a successful recovery in the metrics and clears the pending recovery state. Uses the SUCCESS_FIELDS mapping to find the correct counter field,
81
83
  * eliminating the need for if/else chains. This makes adding new recovery methods trivial - just add an entry to SUCCESS_FIELDS.
82
84
  * @param metrics - The metrics object to update.
83
85
  * @param method - The recovery method that succeeded.
86
+ * @param now - The instant the recovery succeeded.
84
87
  */
85
- export declare function recordRecoverySuccess(metrics: RecoveryMetrics, method: string): void;
88
+ export declare function recordRecoverySuccess(metrics: RecoveryMetrics, method: string, now: number): void;
86
89
  /**
87
90
  * Formats the recovery metrics summary for the termination log. Uses the SUCCESS_FIELDS mapping to iterate over all recovery methods, eliminating hardcoded
88
91
  * checks for each method type. This ensures new recovery methods are automatically included in the summary.
@@ -189,10 +192,9 @@ export declare function formatIssueType(state: VideoState, isStalled: boolean, i
189
192
  export declare function getIssueCategory(state: VideoState, isStalled: boolean, isBuffering: boolean): "paused" | "buffering" | "other";
190
193
  /**
191
194
  * Classifies whether an error originates in Chrome's capture infrastructure (the extension, the capture lock, or stream initialization) rather than in a specific
192
- * site or stream. This is the single source of truth for that judgment: the stream-setup path uses it to decide a 503 back-off, and the browser supervisor uses it
193
- * to decide whether a setup failure is evidence the browser may no longer be capture-ready. It is layered with, not exclusive of, the narrower isStaleCaptureMutexError
194
- * predicate (utils/errors.ts), which matches only the stale-mutex string: a stale-mutex error is also a capture-infrastructure error (so this matches it too), but the
195
- * process-exit decision that the stale-mutex case alone warrants stays a distinct check at that predicate's own call sites.
195
+ * site or stream. This is the single source of truth for that judgment, and it has two readers, both on the establishment's failure paths: the acquisition
196
+ * chokepoint uses it to decide whether a failure is evidence the browser may no longer be capture-ready, and the stream-setup path uses it to decide the
197
+ * client-facing 503 back-off. The judgment is shared; the side effect fires in exactly one of them.
196
198
  * @param error - The error or message to classify.
197
199
  * @returns True when the message carries a capture-infrastructure signature.
198
200
  */
@@ -252,6 +254,14 @@ export interface NativeSegmentHealthDecision {
252
254
  readonly health: StreamHealthStatus;
253
255
  readonly issueType: Nullable<string>;
254
256
  }
257
+ /**
258
+ * A native stream's recorded issue: the cause the classifier last named and the moment that cause began. The pair travels together because the time is only
259
+ * meaningful as the start of the labelled cause - a label replaced without its time would report a stall that has run since the fetch errors started.
260
+ */
261
+ export interface NativeIssueRecord {
262
+ readonly issueTime: Nullable<number>;
263
+ readonly issueType: Nullable<string>;
264
+ }
255
265
  /**
256
266
  * Classifies a native (proxied HLS) stream's health from its segment-delivery metrics and decides the recovery escalation, if any. This is the single source of
257
267
  * truth for the native staleness ladder: active fetch errors report "recovering" without escalating from here (the proxy retries internally); otherwise, once at
@@ -268,4 +278,82 @@ export declare function classifyNativeSegmentHealth(inputs: {
268
278
  stalenessMs: number;
269
279
  targetDurationMs: number;
270
280
  }): NativeSegmentHealthDecision;
271
- //# sourceMappingURL=recovery.d.ts.map
281
+ /**
282
+ * Advances a native stream's issue record for one classification tick. Placed beside classifyNativeSegmentHealth because it completes that classifier's contract:
283
+ * the classifier names the cause each tick, and this decides what the record carries as a result.
284
+ *
285
+ * A null decision leaves the record alone, so a stream that recovers keeps whatever the caller's own recovery bookkeeping cleared or kept. A cause equal to the
286
+ * recorded one leaves the record alone too, and that rule is why the record cannot simply be overwritten: the start time has to survive across every tick the cause
287
+ * persists, so the display reports how long the stream has been in trouble rather than how long ago the last tick ran. A different cause replaces both fields, so a
288
+ * stream that degrades from fetch errors into a segment stall reports the stall and the moment the stall began.
289
+ * @param current - The record as it stands.
290
+ * @param issueType - The cause this tick named, or null when the stream is healthy.
291
+ * @param now - The current time in milliseconds, stamped when the cause changes.
292
+ * @returns The record for the next tick, which is the same object when nothing changed.
293
+ */
294
+ export declare function nextNativeIssueRecord(current: NativeIssueRecord, issueType: Nullable<string>, now: number): NativeIssueRecord;
295
+ /**
296
+ * The largest-area intrinsic reading a stream has delivered, and whether the resolution recovery ladder has already run to acceptance at that size. The two facts
297
+ * live on one record so an acceptance can never outlive the peak it was granted at: a larger reading replaces the record whole, accepted included.
298
+ */
299
+ export interface ResolutionPeak {
300
+ readonly accepted: boolean;
301
+ readonly height: number;
302
+ readonly width: number;
303
+ }
304
+ /**
305
+ * Folds a fresh intrinsic reading into the peak record, returning the record the stream should carry from here. This is the single source of truth for what "the
306
+ * best this stream has delivered" means: the first reading establishes the peak, a larger-area reading replaces it whole - clearing any acceptance, because the
307
+ * source has just proved it can do better than the level the ladder settled for - and anything smaller leaves the record alone. Area rather than per-dimension,
308
+ * because a rendition ladder changes both dimensions together and a wider-but-shorter reading must not read as growth.
309
+ * @param inputs - The current peak record, or null before the first reading, and the reading to fold in.
310
+ * @returns The peak record to carry forward.
311
+ */
312
+ export declare function updateResolutionPeak(inputs: {
313
+ peak: Nullable<ResolutionPeak>;
314
+ reading: {
315
+ height: number;
316
+ width: number;
317
+ };
318
+ }): ResolutionPeak;
319
+ /**
320
+ * The reading's share of the peak by pixel area, where 1 means the picture is back at its best and 0.25 means a quarter of it. Every caller that reports or
321
+ * judges a degradation reads the ratio from here rather than recomputing it, so the number in a log line and the number a threshold is tested against agree.
322
+ * @param inputs - The peak record and the reading to measure against it.
323
+ * @returns The reading's area over the peak's area.
324
+ */
325
+ export declare function resolutionAreaRatio(inputs: {
326
+ peak: ResolutionPeak;
327
+ reading: {
328
+ height: number;
329
+ width: number;
330
+ };
331
+ }): number;
332
+ /**
333
+ * Whether a reading counts as degraded against the stream's own peak. Judging by area rather than by either dimension is what makes the test catch the case it
334
+ * exists for: a 416x234 rendition against an 800x450 peak is 27 percent of the picture but 52 percent of either dimension, so a per-dimension test at the same
335
+ * threshold would call the field's stuck renditions healthy.
336
+ * @param inputs - The peak record, the reading to judge, and the area fraction below which a reading is degraded.
337
+ * @returns True when the reading's area is below the threshold share of the peak's.
338
+ */
339
+ export declare function isResolutionDegraded(inputs: {
340
+ peak: ResolutionPeak;
341
+ reading: {
342
+ height: number;
343
+ width: number;
344
+ };
345
+ threshold: number;
346
+ }): boolean;
347
+ /**
348
+ * The verb for a reading that has climbed back above the degradation threshold: "restored" once it is back at the peak's area, "improved" while it is short of
349
+ * the best the stream has shown. This is what lets one message tell the whole story of an episode ending.
350
+ * @param inputs - The peak record and the reading that ended the episode.
351
+ * @returns The verb describing the outcome.
352
+ */
353
+ export declare function describeResolutionOutcome(inputs: {
354
+ peak: ResolutionPeak;
355
+ reading: {
356
+ height: number;
357
+ width: number;
358
+ };
359
+ }): "improved" | "restored";
@@ -1,3 +1,4 @@
1
+ import { CAPTURE_SOURCE_UNAVAILABLE_MESSAGE } from "../types/index.js";
1
2
  import { CONFIG } from "../config/index.js";
2
3
  // Recovery method names. These are the single source of truth for recovery methods: they serve as the log labels in start, success, and failure messages, as the
3
4
  // computed keys into the ATTEMPT_FIELDS and SUCCESS_FIELDS metrics-counter maps below, and as the return values of getRecoveryMethod. Changing a value here changes
@@ -72,12 +73,13 @@ function getTotalRecoverySuccesses(metrics) {
72
73
  return total;
73
74
  }
74
75
  /**
75
- * Formats recovery duration from start time to now.
76
+ * Formats recovery duration from start time to the supplied instant.
76
77
  * @param startTime - The timestamp when recovery started.
78
+ * @param now - The instant to measure against.
77
79
  * @returns Formatted duration string like "2.1s".
78
80
  */
79
- export function formatRecoveryDuration(startTime) {
80
- const durationMs = Date.now() - startTime;
81
+ export function formatRecoveryDuration(startTime, now) {
82
+ const durationMs = now - startTime;
81
83
  return (durationMs / 1000).toFixed(1) + "s";
82
84
  }
83
85
  /**
@@ -125,14 +127,15 @@ export function getRecoveryMethod(level) {
125
127
  * attempt, not per callback invocation.
126
128
  * @param metrics - The metrics object to update.
127
129
  * @param method - The recovery method being attempted.
130
+ * @param now - The instant the attempt starts.
128
131
  */
129
- export function recordRecoveryAttempt(metrics, method) {
132
+ export function recordRecoveryAttempt(metrics, method, now) {
130
133
  // Cast to the specific field type to handle potential unknown methods at runtime. The mapping ensures valid methods resolve to counter field names.
131
134
  const field = ATTEMPT_FIELDS[method];
132
135
  if (field !== undefined) {
133
136
  metrics[field]++;
134
137
  }
135
- metrics.currentRecoveryStartTime = Date.now();
138
+ metrics.currentRecoveryStartTime = now;
136
139
  metrics.currentRecoveryMethod = method;
137
140
  }
138
141
  /**
@@ -140,15 +143,16 @@ export function recordRecoveryAttempt(metrics, method) {
140
143
  * eliminating the need for if/else chains. This makes adding new recovery methods trivial - just add an entry to SUCCESS_FIELDS.
141
144
  * @param metrics - The metrics object to update.
142
145
  * @param method - The recovery method that succeeded.
146
+ * @param now - The instant the recovery succeeded.
143
147
  */
144
- export function recordRecoverySuccess(metrics, method) {
148
+ export function recordRecoverySuccess(metrics, method, now) {
145
149
  // Cast to the specific field type to handle potential unknown methods at runtime. The mapping ensures valid methods resolve to counter field names.
146
150
  const field = SUCCESS_FIELDS[method];
147
151
  if (field !== undefined) {
148
152
  metrics[field]++;
149
153
  }
150
154
  if (metrics.currentRecoveryStartTime !== null) {
151
- metrics.totalRecoveryTimeMs += Date.now() - metrics.currentRecoveryStartTime;
155
+ metrics.totalRecoveryTimeMs += now - metrics.currentRecoveryStartTime;
152
156
  }
153
157
  metrics.currentRecoveryStartTime = null;
154
158
  metrics.currentRecoveryMethod = null;
@@ -296,24 +300,29 @@ export function getIssueCategory(state, isStalled, isBuffering) {
296
300
  }
297
301
  return "other";
298
302
  }
299
- /* Capture-infrastructure error signatures. These indicate a fault in Chrome's capture pipeline itself - the puppeteer-stream tabCapture extension, the capture
300
- * lock's turn wait, or stream initialization - rather than a site- or stream-specific problem. They are the faults that warrant backing a client off (HTTP 503) and,
303
+ /* Capture-infrastructure error signatures. These indicate a fault in Chrome's capture pipeline itself - the tabCapture extension, the capture lock's turn wait,
304
+ * or stream initialization - rather than a site- or stream-specific problem. The acquisition's own terminal messages sit here alongside the collision and the
305
+ * timeouts, because a capture Chrome refuses on both attempts, a browser with no loaded extension, and a browser reporting no active tab are all faults of the
306
+ * capture system rather than of the site being tuned. They are the faults that warrant backing a client off (HTTP 503) and,
301
307
  * for the browser supervisor, treating a setup failure as evidence the browser itself may no longer be capture-ready.
302
308
  *
303
309
  * The "timed out" entry is deliberately a broad substring rather than one literal string per message: it covers every timeout raised within
304
310
  * createPageWithCapture's own pipeline - the capture lock's turn wait (whose message keeps the "Capture queue" wording, matched by that pattern too), stream
305
- * initialization, the playback-initialization safety net, and the capability probe - without hard-coding each message here. isCaptureInfrastructureError has a single
306
- * caller, the createPageWithCapture catch block in streaming/setup.ts, so the substring only ever sees errors surfaced from that pipeline. It stays safe there because
307
- * navigateToPage and reloadPage swallow Puppeteer's own navigation timeouts as warnings instead of throwing, and the evaluate-call timeout path (EvaluateTimeoutError)
308
- * belongs to the health monitor's own call chain, never this one.
311
+ * initialization, the playback-initialization safety net, and the capability probe - without hard-coding each message here. Every reader of this list sits on that
312
+ * pipeline's failure paths, so the substring only ever sees errors surfaced from it. It stays safe there because navigateToPage and reloadPage swallow Puppeteer's
313
+ * own navigation timeouts as warnings instead of throwing, and the evaluate-call timeout path (EvaluateTimeoutError) belongs to the health monitor's own call chain,
314
+ * never this one.
315
+ *
316
+ * The refusal Chrome answers a capture start with is referenced from the module that speaks that protocol rather than re-typed here, so a wording change in the
317
+ * extension's answer cannot leave the two spellings disagreeing.
309
318
  */
310
- const CAPTURE_INFRASTRUCTURE_PATTERNS = ["Cannot capture", "Capture queue", "timed out"];
319
+ const CAPTURE_INFRASTRUCTURE_PATTERNS = ["Cannot capture", "Capture queue", CAPTURE_SOURCE_UNAVAILABLE_MESSAGE, "No active tab", "capture extension",
320
+ "timed out"];
311
321
  /**
312
322
  * Classifies whether an error originates in Chrome's capture infrastructure (the extension, the capture lock, or stream initialization) rather than in a specific
313
- * site or stream. This is the single source of truth for that judgment: the stream-setup path uses it to decide a 503 back-off, and the browser supervisor uses it
314
- * to decide whether a setup failure is evidence the browser may no longer be capture-ready. It is layered with, not exclusive of, the narrower isStaleCaptureMutexError
315
- * predicate (utils/errors.ts), which matches only the stale-mutex string: a stale-mutex error is also a capture-infrastructure error (so this matches it too), but the
316
- * process-exit decision that the stale-mutex case alone warrants stays a distinct check at that predicate's own call sites.
323
+ * site or stream. This is the single source of truth for that judgment, and it has two readers, both on the establishment's failure paths: the acquisition
324
+ * chokepoint uses it to decide whether a failure is evidence the browser may no longer be capture-ready, and the stream-setup path uses it to decide the
325
+ * client-facing 503 back-off. The judgment is shared; the side effect fires in exactly one of them.
317
326
  * @param error - The error or message to classify.
318
327
  * @returns True when the message carries a capture-infrastructure signature.
319
328
  */
@@ -419,4 +428,73 @@ export function classifyNativeSegmentHealth(inputs) {
419
428
  }
420
429
  return { action: "none", health: "stalled", issueType: "segment stall" };
421
430
  }
431
+ /**
432
+ * Advances a native stream's issue record for one classification tick. Placed beside classifyNativeSegmentHealth because it completes that classifier's contract:
433
+ * the classifier names the cause each tick, and this decides what the record carries as a result.
434
+ *
435
+ * A null decision leaves the record alone, so a stream that recovers keeps whatever the caller's own recovery bookkeeping cleared or kept. A cause equal to the
436
+ * recorded one leaves the record alone too, and that rule is why the record cannot simply be overwritten: the start time has to survive across every tick the cause
437
+ * persists, so the display reports how long the stream has been in trouble rather than how long ago the last tick ran. A different cause replaces both fields, so a
438
+ * stream that degrades from fetch errors into a segment stall reports the stall and the moment the stall began.
439
+ * @param current - The record as it stands.
440
+ * @param issueType - The cause this tick named, or null when the stream is healthy.
441
+ * @param now - The current time in milliseconds, stamped when the cause changes.
442
+ * @returns The record for the next tick, which is the same object when nothing changed.
443
+ */
444
+ export function nextNativeIssueRecord(current, issueType, now) {
445
+ if ((issueType === null) || (issueType === current.issueType)) {
446
+ return current;
447
+ }
448
+ return { issueTime: now, issueType };
449
+ }
450
+ /**
451
+ * The pixel area of a size. Every comparison below runs through it so "bigger" means one thing across the resolution helpers.
452
+ * @param size - The size to measure.
453
+ * @returns The area in pixels.
454
+ */
455
+ function resolutionArea(size) {
456
+ return size.width * size.height;
457
+ }
458
+ /**
459
+ * Folds a fresh intrinsic reading into the peak record, returning the record the stream should carry from here. This is the single source of truth for what "the
460
+ * best this stream has delivered" means: the first reading establishes the peak, a larger-area reading replaces it whole - clearing any acceptance, because the
461
+ * source has just proved it can do better than the level the ladder settled for - and anything smaller leaves the record alone. Area rather than per-dimension,
462
+ * because a rendition ladder changes both dimensions together and a wider-but-shorter reading must not read as growth.
463
+ * @param inputs - The current peak record, or null before the first reading, and the reading to fold in.
464
+ * @returns The peak record to carry forward.
465
+ */
466
+ export function updateResolutionPeak(inputs) {
467
+ if (!inputs.peak || (resolutionArea(inputs.reading) > resolutionArea(inputs.peak))) {
468
+ return { accepted: false, height: inputs.reading.height, width: inputs.reading.width };
469
+ }
470
+ return inputs.peak;
471
+ }
472
+ /**
473
+ * The reading's share of the peak by pixel area, where 1 means the picture is back at its best and 0.25 means a quarter of it. Every caller that reports or
474
+ * judges a degradation reads the ratio from here rather than recomputing it, so the number in a log line and the number a threshold is tested against agree.
475
+ * @param inputs - The peak record and the reading to measure against it.
476
+ * @returns The reading's area over the peak's area.
477
+ */
478
+ export function resolutionAreaRatio(inputs) {
479
+ return resolutionArea(inputs.reading) / resolutionArea(inputs.peak);
480
+ }
481
+ /**
482
+ * Whether a reading counts as degraded against the stream's own peak. Judging by area rather than by either dimension is what makes the test catch the case it
483
+ * exists for: a 416x234 rendition against an 800x450 peak is 27 percent of the picture but 52 percent of either dimension, so a per-dimension test at the same
484
+ * threshold would call the field's stuck renditions healthy.
485
+ * @param inputs - The peak record, the reading to judge, and the area fraction below which a reading is degraded.
486
+ * @returns True when the reading's area is below the threshold share of the peak's.
487
+ */
488
+ export function isResolutionDegraded(inputs) {
489
+ return resolutionAreaRatio(inputs) < inputs.threshold;
490
+ }
491
+ /**
492
+ * The verb for a reading that has climbed back above the degradation threshold: "restored" once it is back at the peak's area, "improved" while it is short of
493
+ * the best the stream has shown. This is what lets one message tell the whole story of an episode ending.
494
+ * @param inputs - The peak record and the reading that ended the episode.
495
+ * @returns The verb describing the outcome.
496
+ */
497
+ export function describeResolutionOutcome(inputs) {
498
+ return (resolutionArea(inputs.reading) >= resolutionArea(inputs.peak)) ? "restored" : "improved";
499
+ }
422
500
  //# sourceMappingURL=recovery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"recovery.js","sourceRoot":"","sources":["../../src/streaming/recovery.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AA2D5C,iKAAiK;AACjK,oKAAoK;AACpK,wJAAwJ;AACxJ,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAE9B,cAAc,EAAE,iBAAiB;IACjC,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,e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