@open-orpheus/plugin-api 0.0.0-stage → 0.21.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 (269) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +191 -2
  3. package/dist/client/index.d.ts +37 -0
  4. package/dist/client/index.js +53 -0
  5. package/dist/client/index.js.map +1 -0
  6. package/dist/configuration/host/src/shared/plugin/configuration/index.d.ts +21 -0
  7. package/dist/configuration/index.d.ts +5 -0
  8. package/dist/host/_native/open-orpheus__database.d.ts +50 -0
  9. package/dist/host/_native/open-orpheus__window.d.ts +284 -0
  10. package/dist/host/src/constants.d.ts +6 -0
  11. package/dist/host/src/main/afp.d.ts +1 -0
  12. package/dist/host/src/main/arguments.d.ts +4 -0
  13. package/dist/host/src/main/assets.d.ts +2 -0
  14. package/dist/host/src/main/audio/ChunkTracker.d.ts +23 -0
  15. package/dist/host/src/main/audio/DownloadScheduler.d.ts +53 -0
  16. package/dist/host/src/main/audio/MediaEngine.d.ts +47 -0
  17. package/dist/host/src/main/audio/OnlineStreamer.d.ts +66 -0
  18. package/dist/host/src/main/audio/StorageManager.d.ts +18 -0
  19. package/dist/host/src/main/audio.d.ts +6 -0
  20. package/dist/host/src/main/av3a/Av3aEngine.d.ts +24 -0
  21. package/dist/host/src/main/av3a/Av3aM4aSession.d.ts +101 -0
  22. package/dist/host/src/main/av3a/Av3aPlaybackProcess.d.ts +52 -0
  23. package/dist/host/src/main/av3a/detect.d.ts +6 -0
  24. package/dist/host/src/main/av3a/sources.d.ts +13 -0
  25. package/dist/host/src/main/av3a/types.d.ts +54 -0
  26. package/dist/host/src/main/bridge/ipc-main-bridge.d.ts +24 -0
  27. package/dist/host/src/main/bridge/modules/inputRegion.d.ts +1 -0
  28. package/dist/host/src/main/bridge/modules/lyrics.d.ts +1 -0
  29. package/dist/host/src/main/bridge/modules/settings.d.ts +1 -0
  30. package/dist/host/src/main/bridge/register.d.ts +9 -0
  31. package/dist/host/src/main/bridge/window.d.ts +7 -0
  32. package/dist/host/src/main/cache/HttpCacheStorage.d.ts +10 -0
  33. package/dist/host/src/main/cache/LyricCahceManager.d.ts +21 -0
  34. package/dist/host/src/main/cache/PlayCacheManager.d.ts +72 -0
  35. package/dist/host/src/main/cache.d.ts +7 -0
  36. package/dist/host/src/main/calls/app.d.ts +1 -0
  37. package/dist/host/src/main/calls/audioeffect.d.ts +1 -0
  38. package/dist/host/src/main/calls/browser.d.ts +1 -0
  39. package/dist/host/src/main/calls/desktop.d.ts +2 -0
  40. package/dist/host/src/main/calls/desktoppet.d.ts +1 -0
  41. package/dist/host/src/main/calls/download.d.ts +1 -0
  42. package/dist/host/src/main/calls/index.d.ts +16 -0
  43. package/dist/host/src/main/calls/musiclibrary.d.ts +1 -0
  44. package/dist/host/src/main/calls/network.d.ts +1 -0
  45. package/dist/host/src/main/calls/os.d.ts +1 -0
  46. package/dist/host/src/main/calls/player.d.ts +22 -0
  47. package/dist/host/src/main/calls/process.d.ts +1 -0
  48. package/dist/host/src/main/calls/rtc.d.ts +1 -0
  49. package/dist/host/src/main/calls/storage.d.ts +1 -0
  50. package/dist/host/src/main/calls/trayicon.d.ts +1 -0
  51. package/dist/host/src/main/calls/update.d.ts +1 -0
  52. package/dist/host/src/main/calls/winhelper.d.ts +1 -0
  53. package/dist/host/src/main/calls.d.ts +5 -0
  54. package/dist/host/src/main/channel.d.ts +1 -0
  55. package/dist/host/src/main/cookie.d.ts +13 -0
  56. package/dist/host/src/main/crypto.d.ts +46 -0
  57. package/dist/host/src/main/database/KeyvSqliteDriver.d.ts +6 -0
  58. package/dist/host/src/main/database.d.ts +5 -0
  59. package/dist/host/src/main/dawn.d.ts +31 -0
  60. package/dist/host/src/main/device.d.ts +3 -0
  61. package/dist/host/src/main/download.d.ts +40 -0
  62. package/dist/host/src/main/error.d.ts +1 -0
  63. package/dist/host/src/main/folders.d.ts +18 -0
  64. package/dist/host/src/main/fonts.d.ts +1 -0
  65. package/dist/host/src/main/gui.d.ts +4 -0
  66. package/dist/host/src/main/id3.d.ts +42 -0
  67. package/dist/host/src/main/lifecycle.d.ts +127 -0
  68. package/dist/host/src/main/logger.d.ts +12 -0
  69. package/dist/host/src/main/lyrics/DbusLyricsService.d.ts +115 -0
  70. package/dist/host/src/main/lyrics/LyricsDispatcher.d.ts +26 -0
  71. package/dist/host/src/main/lyrics/dbus.d.ts +16 -0
  72. package/dist/host/src/main/lyrics/parse.d.ts +21 -0
  73. package/dist/host/src/main/lyrics.d.ts +2 -0
  74. package/dist/host/src/main/mediaSession.d.ts +42 -0
  75. package/dist/host/src/main/menu/AppMenu.d.ts +35 -0
  76. package/dist/host/src/main/menu/anchor.d.ts +13 -0
  77. package/dist/host/src/main/menu/backend/DesktopWindowBackend.d.ts +30 -0
  78. package/dist/host/src/main/menu/backend/MenuBackend.d.ts +28 -0
  79. package/dist/host/src/main/menu/backend/WaylandLayerShellBackend.d.ts +35 -0
  80. package/dist/host/src/main/menu/backend/WaylandOverlayBackend.d.ts +15 -0
  81. package/dist/host/src/main/menu/backend/WaylandPopupBackend.d.ts +31 -0
  82. package/dist/host/src/main/menu/constants.d.ts +14 -0
  83. package/dist/host/src/main/menu/index.d.ts +2 -0
  84. package/dist/host/src/main/menu/native-popup.d.ts +16 -0
  85. package/dist/host/src/main/menu/patch.d.ts +3 -0
  86. package/dist/host/src/main/menu/skin.d.ts +3 -0
  87. package/dist/host/src/main/menu/surface/BaseWindowMenuSurface.d.ts +81 -0
  88. package/dist/host/src/main/menu/surface/CaptureLayerSurface.d.ts +22 -0
  89. package/dist/host/src/main/menu/surface/MenuSurface.d.ts +29 -0
  90. package/dist/host/src/main/menu/surface/MenuSurfacePath.d.ts +29 -0
  91. package/dist/host/src/main/menu/surface/SurfacePool.d.ts +15 -0
  92. package/dist/host/src/main/menu/workaround.d.ts +12 -0
  93. package/dist/host/src/main/ncae.d.ts +8 -0
  94. package/dist/host/src/main/network/handler.d.ts +3 -0
  95. package/dist/host/src/main/network/interceptor.d.ts +2 -0
  96. package/dist/host/src/main/network/interceptors/anonymous.d.ts +2 -0
  97. package/dist/host/src/main/network/pipeline.d.ts +8 -0
  98. package/dist/host/src/main/network/types.d.ts +70 -0
  99. package/dist/host/src/main/orpheus.d.ts +10 -0
  100. package/dist/host/src/main/pack.d.ts +27 -0
  101. package/dist/host/src/main/packs/Pack.d.ts +12 -0
  102. package/dist/host/src/main/packs/SkinPack.d.ts +6 -0
  103. package/dist/host/src/main/packs/WebPack.d.ts +6 -0
  104. package/dist/host/src/main/playback/PlaybackController.d.ts +57 -0
  105. package/dist/host/src/main/playback/PlayerCommandRouter.d.ts +85 -0
  106. package/dist/host/src/main/playback/adapters/MediaSessionAdapter.d.ts +61 -0
  107. package/dist/host/src/main/playback/adapters/MprisAdapter.d.ts +48 -0
  108. package/dist/host/src/main/playback/adapters/NowPlayingAdapter.d.ts +23 -0
  109. package/dist/host/src/main/playback/adapters/SmtcAdapter.d.ts +23 -0
  110. package/dist/host/src/main/playback/artwork.d.ts +47 -0
  111. package/dist/host/src/main/playback/modes.d.ts +8 -0
  112. package/dist/host/src/main/playback/types.d.ts +59 -0
  113. package/dist/host/src/main/plugin/assets.d.ts +8 -0
  114. package/dist/host/src/main/plugin/catalog.d.ts +42 -0
  115. package/dist/host/src/main/plugin/discover.d.ts +33 -0
  116. package/dist/host/src/main/plugin/index.d.ts +15 -0
  117. package/dist/host/src/main/plugin/loader.d.ts +90 -0
  118. package/dist/host/src/main/plugin/manager.d.ts +61 -0
  119. package/dist/host/src/main/plugin/metadata.d.ts +34 -0
  120. package/dist/host/src/main/plugin/state.d.ts +27 -0
  121. package/dist/host/src/main/plugin/tree.d.ts +13 -0
  122. package/dist/host/src/main/protocol.d.ts +4 -0
  123. package/dist/host/src/main/request.d.ts +16 -0
  124. package/dist/host/src/main/settings.d.ts +21 -0
  125. package/dist/host/src/main/shortcuts.d.ts +10 -0
  126. package/dist/host/src/main/shutdown.d.ts +50 -0
  127. package/dist/host/src/main/skin/color.d.ts +2 -0
  128. package/dist/host/src/main/skin/dui.d.ts +15 -0
  129. package/dist/host/src/main/tray.d.ts +8 -0
  130. package/dist/host/src/main/update.d.ts +2 -0
  131. package/dist/host/src/main/util/color.d.ts +7 -0
  132. package/dist/host/src/main/util/display.d.ts +3 -0
  133. package/dist/host/src/main/util/env.d.ts +1 -0
  134. package/dist/host/src/main/util/fs.d.ts +21 -0
  135. package/dist/host/src/main/util/image.d.ts +1 -0
  136. package/dist/host/src/main/util/musicFile.d.ts +1 -0
  137. package/dist/host/src/main/util/musicPicture.d.ts +2 -0
  138. package/dist/host/src/main/util/path.d.ts +2 -0
  139. package/dist/host/src/main/util/send.d.ts +13 -0
  140. package/dist/host/src/main/util/url.d.ts +19 -0
  141. package/dist/host/src/main/util/window.d.ts +2 -0
  142. package/dist/host/src/main/window.d.ts +316 -0
  143. package/dist/host/src/main/windows/color-picker.d.ts +3 -0
  144. package/dist/host/src/main/windows/desktop-lyrics.d.ts +12 -0
  145. package/dist/host/src/main/windows/desktop-pet.d.ts +8 -0
  146. package/dist/host/src/main/windows/main.d.ts +6 -0
  147. package/dist/host/src/main/windows/manage.d.ts +2 -0
  148. package/dist/host/src/main/windows/mini-player.d.ts +16 -0
  149. package/dist/host/src/main/windows/music-desktop.d.ts +13 -0
  150. package/dist/host/src/main/windows/package-download.d.ts +2 -0
  151. package/dist/host/src/main/windows/plugin-manager-events.d.ts +7 -0
  152. package/dist/host/src/main/windows/plugin-manager.d.ts +5 -0
  153. package/dist/host/src/main/xeapi.d.ts +48 -0
  154. package/dist/host/src/preload/AudioEffectManager.d.ts +124 -0
  155. package/dist/host/src/preload/PlaybackBackend.d.ts +34 -0
  156. package/dist/host/src/preload/Player.d.ts +229 -0
  157. package/dist/host/src/preload/av3a/Av3aPcmPlayer.d.ts +84 -0
  158. package/dist/host/src/preload/av3a/bridge.d.ts +21 -0
  159. package/dist/host/src/preload/av3a/channel.d.ts +40 -0
  160. package/dist/host/src/preload/av3a/detect.d.ts +6 -0
  161. package/dist/host/src/preload/backends/Av3aPlaybackBackend.d.ts +32 -0
  162. package/dist/host/src/preload/backends/MediaPlaybackBackend.d.ts +25 -0
  163. package/dist/host/src/shared/CallDispatcher.d.ts +12 -0
  164. package/dist/host/src/shared/bridge/constants.d.ts +2 -0
  165. package/dist/host/src/shared/bridge/endpoint.d.ts +29 -0
  166. package/dist/host/src/shared/bridge/hub.d.ts +136 -0
  167. package/dist/host/src/shared/bridge/protocol.d.ts +91 -0
  168. package/dist/host/src/shared/bridge/realm.d.ts +14 -0
  169. package/dist/host/src/shared/bridge/routes.d.ts +37 -0
  170. package/dist/host/src/shared/contracts/av3a-api.d.ts +50 -0
  171. package/dist/host/src/shared/contracts/av3a-process.d.ts +56 -0
  172. package/dist/host/src/shared/contracts/color-picker-api.d.ts +17 -0
  173. package/dist/host/src/shared/contracts/desktop-lyrics-api.d.ts +22 -0
  174. package/dist/host/src/shared/contracts/input-region-api.d.ts +5 -0
  175. package/dist/host/src/shared/contracts/lyrics-api.d.ts +11 -0
  176. package/dist/host/src/shared/contracts/manage-api.d.ts +31 -0
  177. package/dist/host/src/shared/contracts/menu-surface-api.d.ts +35 -0
  178. package/dist/host/src/shared/contracts/mini-player-api.d.ts +19 -0
  179. package/dist/host/src/shared/contracts/plugin-manager-api.d.ts +223 -0
  180. package/dist/host/src/shared/contracts/settings-api.d.ts +15 -0
  181. package/dist/host/src/shared/playbackMode.d.ts +2 -0
  182. package/dist/host/src/shared/plugin/cache-bust.d.ts +8 -0
  183. package/dist/host/src/shared/plugin/lifecycle.d.ts +217 -0
  184. package/dist/host/src/shared/plugin/realms/main/index.d.ts +18 -0
  185. package/dist/host/src/shared/plugin/registry.d.ts +69 -0
  186. package/dist/host/src/shared/plugin/runtime-state.d.ts +4 -0
  187. package/dist/host/src/shared/settings/defaults.d.ts +35 -0
  188. package/dist/host/src/shared/settings/index.d.ts +3 -0
  189. package/dist/host/src/shared/settings/keys.d.ts +21 -0
  190. package/dist/host/src/shared/settings/values.d.ts +13 -0
  191. package/dist/host/src/shared/types/desktop-lyrics.d.ts +61 -0
  192. package/dist/host/src/shared/types/dui.d.ts +37 -0
  193. package/dist/host/src/shared/types/input-region.d.ts +6 -0
  194. package/dist/host/src/shared/types/lyrics.d.ts +15 -0
  195. package/dist/host/src/shared/types/manage.d.ts +14 -0
  196. package/dist/host/src/shared/types/menu-surface.d.ts +43 -0
  197. package/dist/host/src/shared/types/menu.d.ts +29 -0
  198. package/dist/host/src/shared/types/mini-player.d.ts +97 -0
  199. package/dist/host/src/shared/types/ncae.d.ts +29 -0
  200. package/dist/host/src/shared/types/package-download.d.ts +14 -0
  201. package/dist/host/src/shared/types/playback-mode.d.ts +3 -0
  202. package/dist/host/src/shared/types/settings.d.ts +9 -0
  203. package/dist/host/src/shared/types/update.d.ts +6 -0
  204. package/dist/host/src/shared/util.d.ts +22 -0
  205. package/dist/index.d.ts +7 -0
  206. package/dist/plugin-manager/host/src/preload/logger.d.ts +10 -0
  207. package/dist/plugin-manager/host/src/preload/util.d.ts +1 -0
  208. package/dist/plugin-manager/host/src/shared/bridge/constants.d.ts +2 -0
  209. package/dist/plugin-manager/host/src/shared/bridge/endpoint.d.ts +29 -0
  210. package/dist/plugin-manager/host/src/shared/bridge/hub.d.ts +136 -0
  211. package/dist/plugin-manager/host/src/shared/bridge/protocol.d.ts +91 -0
  212. package/dist/plugin-manager/host/src/shared/bridge/routes.d.ts +37 -0
  213. package/dist/plugin-manager/host/src/shared/contracts/plugin-manager-api.d.ts +223 -0
  214. package/dist/plugin-manager/host/src/shared/plugin/lifecycle.d.ts +217 -0
  215. package/dist/plugin-manager/host/src/shared/plugin/realms/common/index.d.ts +34 -0
  216. package/dist/plugin-manager/host/src/shared/plugin/realms/plugin-manager/index.d.ts +11 -0
  217. package/dist/plugin-manager/host/src/shared/plugin/registry.d.ts +69 -0
  218. package/dist/plugin-manager/host/src/shared/util.d.ts +22 -0
  219. package/dist/plugin-manager/index.d.ts +7 -0
  220. package/dist/plugin-manager/registry-map.d.ts +16 -0
  221. package/dist/preload/host/src/constants.d.ts +6 -0
  222. package/dist/preload/host/src/main/network/types.d.ts +70 -0
  223. package/dist/preload/host/src/preload/AudioEffectManager.d.ts +124 -0
  224. package/dist/preload/host/src/preload/MusicRecognizer.d.ts +25 -0
  225. package/dist/preload/host/src/preload/PlaybackBackend.d.ts +34 -0
  226. package/dist/preload/host/src/preload/Player.d.ts +229 -0
  227. package/dist/preload/host/src/preload/YunxinIM.d.ts +15 -0
  228. package/dist/preload/host/src/preload/audioplayer.d.ts +4 -0
  229. package/dist/preload/host/src/preload/av3a/Av3aPcmPlayer.d.ts +84 -0
  230. package/dist/preload/host/src/preload/av3a/bridge.d.ts +21 -0
  231. package/dist/preload/host/src/preload/av3a/channel.d.ts +40 -0
  232. package/dist/preload/host/src/preload/av3a/detect.d.ts +6 -0
  233. package/dist/preload/host/src/preload/backends/Av3aPlaybackBackend.d.ts +32 -0
  234. package/dist/preload/host/src/preload/backends/MediaPlaybackBackend.d.ts +25 -0
  235. package/dist/preload/host/src/preload/calls/app.d.ts +1 -0
  236. package/dist/preload/host/src/preload/calls/audioeffect.d.ts +1 -0
  237. package/dist/preload/host/src/preload/calls/audioplayer.d.ts +1 -0
  238. package/dist/preload/host/src/preload/calls/im.d.ts +1 -0
  239. package/dist/preload/host/src/preload/calls/index.d.ts +6 -0
  240. package/dist/preload/host/src/preload/calls/network.d.ts +1 -0
  241. package/dist/preload/host/src/preload/calls/nimsys.d.ts +1 -0
  242. package/dist/preload/host/src/preload/calls/os.d.ts +1 -0
  243. package/dist/preload/host/src/preload/calls/player.d.ts +1 -0
  244. package/dist/preload/host/src/preload/calls/update.d.ts +1 -0
  245. package/dist/preload/host/src/preload/calls.d.ts +4 -0
  246. package/dist/preload/host/src/preload/channel.d.ts +1 -0
  247. package/dist/preload/host/src/preload/logger.d.ts +10 -0
  248. package/dist/preload/host/src/preload/playbackMode.d.ts +13 -0
  249. package/dist/preload/host/src/preload/util.d.ts +1 -0
  250. package/dist/preload/host/src/shared/CallDispatcher.d.ts +12 -0
  251. package/dist/preload/host/src/shared/bridge/endpoint.d.ts +29 -0
  252. package/dist/preload/host/src/shared/bridge/hub.d.ts +136 -0
  253. package/dist/preload/host/src/shared/bridge/protocol.d.ts +91 -0
  254. package/dist/preload/host/src/shared/bridge/routes.d.ts +37 -0
  255. package/dist/preload/host/src/shared/contracts/av3a-api.d.ts +50 -0
  256. package/dist/preload/host/src/shared/contracts/av3a-process.d.ts +56 -0
  257. package/dist/preload/host/src/shared/contracts/plugin-manager-api.d.ts +223 -0
  258. package/dist/preload/host/src/shared/playbackMode.d.ts +2 -0
  259. package/dist/preload/host/src/shared/plugin/lifecycle.d.ts +217 -0
  260. package/dist/preload/host/src/shared/plugin/realms/common/index.d.ts +34 -0
  261. package/dist/preload/host/src/shared/plugin/realms/preload/index.d.ts +11 -0
  262. package/dist/preload/host/src/shared/plugin/registry.d.ts +69 -0
  263. package/dist/preload/host/src/shared/types/ncae.d.ts +29 -0
  264. package/dist/preload/host/src/shared/types/playback-mode.d.ts +3 -0
  265. package/dist/preload/host/src/shared/util.d.ts +22 -0
  266. package/dist/preload/index.d.ts +7 -0
  267. package/dist/preload/registry-map.d.ts +43 -0
  268. package/dist/registry-map.d.ts +164 -0
  269. package/package.json +73 -3
@@ -0,0 +1,2 @@
1
+ import type { PlaybackMode } from "./types/playback-mode.js";
2
+ export declare function isPlaybackMode(mode: unknown): mode is PlaybackMode;
@@ -0,0 +1,217 @@
1
+ /**
2
+ * Generic per-realm plugin lifecycle.
3
+ *
4
+ * Desired state is persisted intent. Runtime state is the observed truth about
5
+ * one realm instance. The reconciler serializes operations: a single
6
+ * activation or cleanup runs at a time, and timeouts are reported rather than
7
+ * starting overlapping work that the host cannot actually cancel.
8
+ */
9
+ /** @internal */
10
+ export interface PluginDesiredState {
11
+ enabled: boolean;
12
+ revision: number;
13
+ }
14
+ /**
15
+ * In-process lifecycle state names.
16
+ *
17
+ * Deliberately separate from the manager contract. Both sets carry the internal
18
+ * marker to flag them as unstable host internals rather than supported plugin
19
+ * API; the generated package publishes them because it mirrors the host
20
+ * declaration tree. The serializer maps these values onto the IPC-facing enums.
21
+ */
22
+ /** @internal */
23
+ export declare const LifecycleStateKind: {
24
+ readonly Stopped: "stopped";
25
+ readonly Starting: "starting";
26
+ readonly Running: "running";
27
+ readonly Stopping: "stopping";
28
+ readonly Failed: "failed";
29
+ readonly Hung: "hung";
30
+ readonly Abandoned: "abandoned";
31
+ readonly Disposed: "disposed";
32
+ };
33
+ /**
34
+ * In-process lifecycle state names.
35
+ *
36
+ * Deliberately separate from the manager contract. Both sets carry the internal
37
+ * marker to flag them as unstable host internals rather than supported plugin
38
+ * API; the generated package publishes them because it mirrors the host
39
+ * declaration tree. The serializer maps these values onto the IPC-facing enums.
40
+ */
41
+ /** @internal */
42
+ export type LifecycleStateKind = "stopped" | "starting" | "running" | "stopping" | "failed" | "hung" | "abandoned" | "disposed";
43
+ export declare namespace LifecycleStateKind {
44
+ type Stopped = "stopped";
45
+ type Starting = "starting";
46
+ type Running = "running";
47
+ type Stopping = "stopping";
48
+ type Failed = "failed";
49
+ type Hung = "hung";
50
+ type Abandoned = "abandoned";
51
+ type Disposed = "disposed";
52
+ }
53
+ /** @internal */
54
+ export declare const LifecycleFailureStage: {
55
+ readonly Load: "load";
56
+ readonly Activate: "activate";
57
+ readonly Deactivate: "deactivate";
58
+ };
59
+ /** @internal */
60
+ export type LifecycleFailureStage = "load" | "activate" | "deactivate";
61
+ export declare namespace LifecycleFailureStage {
62
+ type Load = "load";
63
+ type Activate = "activate";
64
+ type Deactivate = "deactivate";
65
+ }
66
+ /** @internal */
67
+ export declare const LifecycleAbandonReason: {
68
+ readonly RealmDestroyed: "realm-destroyed";
69
+ readonly ShutdownDeadline: "shutdown-deadline";
70
+ };
71
+ /** @internal */
72
+ export type LifecycleAbandonReason = "realm-destroyed" | "shutdown-deadline";
73
+ export declare namespace LifecycleAbandonReason {
74
+ type RealmDestroyed = "realm-destroyed";
75
+ type ShutdownDeadline = "shutdown-deadline";
76
+ }
77
+ /** @internal */
78
+ export declare const PluginCleanupReason: {
79
+ readonly Disabled: "disabled";
80
+ readonly Retry: "retry";
81
+ readonly Shutdown: "shutdown";
82
+ };
83
+ /** @internal */
84
+ export type PluginCleanupReason = "disabled" | "retry" | "shutdown";
85
+ export declare namespace PluginCleanupReason {
86
+ type Disabled = "disabled";
87
+ type Retry = "retry";
88
+ type Shutdown = "shutdown";
89
+ }
90
+ /** @internal */
91
+ interface RuntimeStateBase {
92
+ desiredRevision: number;
93
+ }
94
+ /** @internal */
95
+ export type LifecycleRuntimeState<Module> = ({
96
+ kind: "stopped";
97
+ } & RuntimeStateBase) | ({
98
+ kind: "starting";
99
+ attempt: number;
100
+ startedAt: number;
101
+ timedOut: boolean;
102
+ } & RuntimeStateBase) | ({
103
+ kind: "running";
104
+ attempt: number;
105
+ module: Module;
106
+ } & RuntimeStateBase) | ({
107
+ kind: "stopping";
108
+ attempt: number;
109
+ module: Module;
110
+ reason: PluginCleanupReason;
111
+ } & RuntimeStateBase) | ({
112
+ kind: "failed";
113
+ attempt: number;
114
+ stage: LifecycleFailureStage;
115
+ error: unknown;
116
+ module?: Module;
117
+ retryable: boolean;
118
+ } & RuntimeStateBase) | ({
119
+ kind: "hung";
120
+ attempt: number;
121
+ stage: LifecycleFailureStage;
122
+ since: number;
123
+ module?: Module;
124
+ } & RuntimeStateBase) | ({
125
+ kind: "abandoned";
126
+ attempt: number;
127
+ stage: LifecycleFailureStage;
128
+ reason: LifecycleAbandonReason;
129
+ } & RuntimeStateBase) | ({
130
+ kind: "disposed";
131
+ } & RuntimeStateBase);
132
+ /** @internal */
133
+ export declare const PluginDisposeStatus: {
134
+ readonly Stopped: "stopped";
135
+ readonly CleanupFailed: "cleanup-failed";
136
+ readonly Abandoned: "abandoned";
137
+ };
138
+ /** @internal */
139
+ export type PluginDisposeStatus = "stopped" | "cleanup-failed" | "abandoned";
140
+ export declare namespace PluginDisposeStatus {
141
+ type Stopped = "stopped";
142
+ type CleanupFailed = "cleanup-failed";
143
+ type Abandoned = "abandoned";
144
+ }
145
+ /** @internal */
146
+ export interface PluginDisposeResult {
147
+ status: PluginDisposeStatus;
148
+ }
149
+ /** @internal */
150
+ export declare class LifecycleTimeoutError extends Error {
151
+ constructor(message: string);
152
+ }
153
+ /** @internal */
154
+ export interface LifecycleAdapter<Module> {
155
+ load(): Promise<Module>;
156
+ activate(module: Module): void | Promise<void>;
157
+ deactivate(module: Module): void | Promise<void>;
158
+ }
159
+ /** @internal */
160
+ export interface LifecycleSnapshot<Module> {
161
+ desired: PluginDesiredState;
162
+ state: LifecycleRuntimeState<Module>;
163
+ attempt: number;
164
+ module?: Module;
165
+ error?: unknown;
166
+ }
167
+ /** @internal */
168
+ export interface LifecycleOptions<Module> {
169
+ adapter: LifecycleAdapter<Module>;
170
+ /** Soft activation and cleanup deadline. */
171
+ timeoutMs?: number;
172
+ onChange?: (snapshot: LifecycleSnapshot<Module>) => void;
173
+ }
174
+ /** @internal */
175
+ export declare class RealmLifecycle<Module> {
176
+ private desired;
177
+ private state;
178
+ private module;
179
+ private attempt;
180
+ private error;
181
+ private activation;
182
+ private cleanupTask;
183
+ private timeout;
184
+ private running;
185
+ private pendingKick;
186
+ private retryRequested;
187
+ private cleanupRetryRequested;
188
+ private disposed;
189
+ private readonly adapter;
190
+ private readonly timeoutMs;
191
+ private readonly onChange?;
192
+ private readonly listeners;
193
+ constructor(options: LifecycleOptions<Module>);
194
+ get snapshot(): LifecycleSnapshot<Module>;
195
+ get loadedModule(): Module | undefined;
196
+ get desiredState(): PluginDesiredState;
197
+ /** Apply a committed desired state. Older revisions are ignored. */
198
+ applyDesiredState(next: PluginDesiredState): void;
199
+ enable(revision?: number): void;
200
+ disable(revision?: number): void;
201
+ /** Ask for a fresh attempt without changing desired state. */
202
+ retry(): void;
203
+ /** Resolve once the predicate matches, or reject on a wait timeout. */
204
+ waitFor(predicate: (snapshot: LifecycleSnapshot<Module>) => boolean, waitMs?: number): Promise<LifecycleSnapshot<Module>>;
205
+ dispose(deadlineMs?: number): Promise<PluginDisposeResult>;
206
+ private kick;
207
+ private reconcile;
208
+ private startActivation;
209
+ private onActivationTimeout;
210
+ private settleActivation;
211
+ private runCleanup;
212
+ private abandon;
213
+ private clearTimeout;
214
+ private setState;
215
+ private emit;
216
+ }
217
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { PluginRegistry, Registry } from "../../registry.js";
2
+ /**
3
+ * Host-owned publisher for a plugin's renderer main world.
4
+ *
5
+ * Both `preload` and `plugin-manager` run in a host preload context and receive
6
+ * this same host; mounts and exposures are scoped to the activation epoch.
7
+ */
8
+ export interface PluginMainWorldHost {
9
+ mount(route: string, impl: Record<string, unknown>): {
10
+ dispose(): void;
11
+ };
12
+ /**
13
+ * Define `window[name]` in the renderer main world. The value follows
14
+ * contextBridge rules (functions proxied, data copied); the host removes the
15
+ * global when the plugin's activation epoch ends.
16
+ */
17
+ expose(name: string, api: unknown): {
18
+ dispose(): void;
19
+ };
20
+ }
21
+ /** Runtime handed to a plugin entry that runs in a host preload context. */
22
+ export interface PreloadRealmRuntime {
23
+ /** The generated interface registry for the realm. */
24
+ registry: Registry;
25
+ /** The realm's plugin-contributed exports, keyed by plugin id. */
26
+ plugins: PluginRegistry;
27
+ /** Publishes APIs and globals to this window's renderer main world. */
28
+ mainWorld: PluginMainWorldHost;
29
+ }
30
+ /** Named exports a plugin entry running in a host preload context provides. */
31
+ export interface PreloadRealmModule {
32
+ activate(runtime: PreloadRealmRuntime): void | Promise<void>;
33
+ deactivate?(): void | Promise<void>;
34
+ }
@@ -0,0 +1,11 @@
1
+ import type { PreloadRealmModule, PreloadRealmRuntime } from "../common/index.js";
2
+ export type { PluginMainWorldHost } from "../common/index.js";
3
+ /** Everything a plugin's preload-realm module is handed. */
4
+ export type PluginRuntime = PreloadRealmRuntime;
5
+ /**
6
+ * The named exports a plugin's preload entry must provide.
7
+ *
8
+ * Preload entries are evaluated as CJS bundles; the plugin exposes the same
9
+ * `activate`/`deactivate` lifecycle as the main realm.
10
+ */
11
+ export type PluginModule = PreloadRealmModule;
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Loose shape of a build-time registry.
3
+ *
4
+ * The host only passes the registry through to plugins; precise per-module
5
+ * types live in the generated `@open-orpheus/plugin-api` package.
6
+ */
7
+ import type { RegistryLoad } from "../../../../registry-map.js";
8
+ export type { RegistryLoad };
9
+ /**
10
+ * The resolved value type for a registry key.
11
+ *
12
+ * `LoadedModule<"@main/logger">` is equivalent to
13
+ * `Awaited<ReturnType<RegistryLoad["@main/logger"]>>`.
14
+ */
15
+ export type LoadedModule<Key extends keyof RegistryLoad> = Awaited<ReturnType<RegistryLoad[Key]>>;
16
+ /**
17
+ * Lazy access to a realm's host module surface.
18
+ *
19
+ * Every module is imported on demand; the registry itself has no static
20
+ * imports and therefore no initialization side effects.
21
+ */
22
+ type RegistryLoader = (...args: never[]) => unknown;
23
+ export type Registry<Load extends RegistryLoad = RegistryLoad> = {
24
+ /** Import a module. Resolves immediately for modules that are already evaluated. */
25
+ load<Key extends keyof Load>(key: Key): ReturnType<Extract<Load[Key], RegistryLoader>>;
26
+ /** Every key this registry can serve. */
27
+ keys(): Array<keyof Load>;
28
+ };
29
+ /** @internal */
30
+ export declare function createRegistry<Load extends RegistryLoad>(lazyModules: Load): Registry<Load>;
31
+ /**
32
+ * Plugin-contributed exports for one realm, keyed by plugin id.
33
+ *
34
+ * `load` evaluates the plugin module and returns its exports without waiting
35
+ * for activation. `whenActive` waits for the plugin's current activation
36
+ * attempt to be running, and reports readiness cycles instead of deadlocking.
37
+ */
38
+ export interface PluginRegistry {
39
+ load<T = unknown>(id: string): Promise<T>;
40
+ whenActive<T = unknown>(id: string): Promise<T>;
41
+ keys(): string[];
42
+ }
43
+ /** @internal */
44
+ export interface PluginRegistrySource {
45
+ load(): Promise<unknown>;
46
+ whenActive(): Promise<unknown>;
47
+ /** Whether `whenActive` can resolve without waiting for another operation. */
48
+ isReady?(): boolean;
49
+ }
50
+ /** @internal */
51
+ export interface MutablePluginRegistry extends PluginRegistry {
52
+ /** Forget the cached evaluation for a plugin that has been removed. */
53
+ forget(id: string): void;
54
+ /** Bind a registry to the plugin currently activating. */
55
+ forPlugin(id: string): PluginRegistry;
56
+ }
57
+ /** @internal */
58
+ export declare class PluginReadinessCycleError extends Error {
59
+ readonly chain: string[];
60
+ constructor(chain: string[]);
61
+ }
62
+ /** @internal */
63
+ export interface MutablePluginRegistryOptions {
64
+ /** Called when a readiness wait is registered, so the caller can report it. */
65
+ onWait?: (owner: string, target: string) => void;
66
+ }
67
+ /** @internal */
68
+ export declare function createPluginRegistry(sources: ReadonlyMap<string, PluginRegistrySource>, options?: MutablePluginRegistryOptions): MutablePluginRegistry;
69
+ export {};
@@ -0,0 +1,29 @@
1
+ export declare const NcaeType: {
2
+ /** JSON effect parameters. */
3
+ readonly Json: 1;
4
+ /** WAV impulse response (convolution data). */
5
+ readonly Wav: 2;
6
+ readonly [x: number]: string;
7
+ };
8
+ export type NcaeType = 1 | 2;
9
+ export declare namespace NcaeType {
10
+ /** JSON effect parameters. */
11
+ type Json = 1;
12
+ /** WAV impulse response (convolution data). */
13
+ type Wav = 2;
14
+ }
15
+ export interface NcaeHeader {
16
+ /** Raw payload size as declared in the file (before decompression). */
17
+ payloadSize: number;
18
+ /** Type flag. */
19
+ type: NcaeType;
20
+ }
21
+ export interface Ncae {
22
+ header: NcaeHeader;
23
+ /**
24
+ * Decompressed payload.
25
+ * - Type 1 (JSON): the raw JSON string.
26
+ * - Type 2 (WAV): a Buffer containing the RIFF/WAVE data.
27
+ */
28
+ payload: string | Uint8Array;
29
+ }
@@ -0,0 +1,3 @@
1
+ /** Modes exposed by the Orpheus renderer's playing model. */
2
+ export type PlaybackMode = "playOrder" | "playCycle" | "playOneCycle" | "playRandom" | "playAi" | "playFm";
3
+ export type LoopStatus = "None" | "Playlist" | "Track";
@@ -0,0 +1,22 @@
1
+ export declare function toError(error: unknown): Error;
2
+ /**
3
+ * Get or set the image size of a Netease CDN URL.
4
+ *
5
+ * To get, leave `sizeOrWidth` and `height` empty.
6
+ * To set, set `sizeOrWidth` and/or `height`.
7
+ *
8
+ * @param url
9
+ * @param sizeOrWidth If provided, sets the image size or width
10
+ * @param height If provided, use this as the height, or `sizeOrWidth` will be used for height
11
+ */
12
+ export declare function imageSize(url: string): [number, number] | null;
13
+ export declare function imageSize(url: string, sizeOrWidth: number, height?: number): string;
14
+ /** Convert dB to linear gain. */
15
+ export declare function dbToGain(db: number): number;
16
+ /**
17
+ * Convert volume (0-1) to linear gain, logarithmic mapping.
18
+ *
19
+ * @param input
20
+ * @returns
21
+ */
22
+ export declare function volumeToGain(input: number, minDb?: number): number;
@@ -0,0 +1,7 @@
1
+ // AUTO-GENERATED by packages/plugin-api/scripts/build.ts. Do not edit.
2
+ // The plugin-facing type surface. Generated from the host; contains no
3
+ // references back to the host repository.
4
+
5
+ export type { PluginModule, PluginRuntime } from "./host/src/shared/plugin/realms/preload/index.js";
6
+ export type { LoadedModule, PluginRegistry, Registry } from "./host/src/shared/plugin/registry.js";
7
+ export type { RegistryLoad } from "./registry-map.js";
@@ -0,0 +1,43 @@
1
+ // AUTO-GENERATED by packages/plugin-api/scripts/build.ts. Do not edit.
2
+ export declare const load: {
3
+ readonly "@/constants": () => Promise<typeof import("./host/src/constants.js")>;
4
+ readonly "@preload/AudioEffectManager": () => Promise<typeof import("./host/src/preload/AudioEffectManager.js")>;
5
+ readonly "@preload/audioplayer": () => Promise<typeof import("./host/src/preload/audioplayer.js")>;
6
+ readonly "@preload/av3a/Av3aPcmPlayer": () => Promise<typeof import("./host/src/preload/av3a/Av3aPcmPlayer.js")>;
7
+ readonly "@preload/av3a/bridge": () => Promise<typeof import("./host/src/preload/av3a/bridge.js")>;
8
+ readonly "@preload/av3a/channel": () => Promise<typeof import("./host/src/preload/av3a/channel.js")>;
9
+ readonly "@preload/av3a/detect": () => Promise<typeof import("./host/src/preload/av3a/detect.js")>;
10
+ readonly "@preload/backends/Av3aPlaybackBackend": () => Promise<typeof import("./host/src/preload/backends/Av3aPlaybackBackend.js")>;
11
+ readonly "@preload/backends/MediaPlaybackBackend": () => Promise<typeof import("./host/src/preload/backends/MediaPlaybackBackend.js")>;
12
+ readonly "@preload/calls": () => Promise<typeof import("./host/src/preload/calls.js")>;
13
+ readonly "@preload/calls/app": () => Promise<typeof import("./host/src/preload/calls/app.js")>;
14
+ readonly "@preload/calls/audioeffect": () => Promise<typeof import("./host/src/preload/calls/audioeffect.js")>;
15
+ readonly "@preload/calls/audioplayer": () => Promise<typeof import("./host/src/preload/calls/audioplayer.js")>;
16
+ readonly "@preload/calls/im": () => Promise<typeof import("./host/src/preload/calls/im.js")>;
17
+ readonly "@preload/calls/index": () => Promise<typeof import("./host/src/preload/calls/index.js")>;
18
+ readonly "@preload/calls/network": () => Promise<typeof import("./host/src/preload/calls/network.js")>;
19
+ readonly "@preload/calls/nimsys": () => Promise<typeof import("./host/src/preload/calls/nimsys.js")>;
20
+ readonly "@preload/calls/os": () => Promise<typeof import("./host/src/preload/calls/os.js")>;
21
+ readonly "@preload/calls/player": () => Promise<typeof import("./host/src/preload/calls/player.js")>;
22
+ readonly "@preload/calls/update": () => Promise<typeof import("./host/src/preload/calls/update.js")>;
23
+ readonly "@preload/channel": () => Promise<typeof import("./host/src/preload/channel.js")>;
24
+ readonly "@preload/logger": () => Promise<typeof import("./host/src/preload/logger.js")>;
25
+ readonly "@preload/MusicRecognizer": () => Promise<typeof import("./host/src/preload/MusicRecognizer.js")>;
26
+ readonly "@preload/playbackMode": () => Promise<typeof import("./host/src/preload/playbackMode.js")>;
27
+ readonly "@preload/Player": () => Promise<typeof import("./host/src/preload/Player.js")>;
28
+ readonly "@preload/util": () => Promise<typeof import("./host/src/preload/util.js")>;
29
+ readonly "@preload/YunxinIM": () => Promise<typeof import("./host/src/preload/YunxinIM.js")>;
30
+ readonly "@shared/bridge/endpoint": () => Promise<typeof import("./host/src/shared/bridge/endpoint.js")>;
31
+ readonly "@shared/bridge/hub": () => Promise<typeof import("./host/src/shared/bridge/hub.js")>;
32
+ readonly "@shared/bridge/protocol": () => Promise<typeof import("./host/src/shared/bridge/protocol.js")>;
33
+ readonly "@shared/bridge/routes": () => Promise<typeof import("./host/src/shared/bridge/routes.js")>;
34
+ readonly "@shared/CallDispatcher": () => Promise<typeof import("./host/src/shared/CallDispatcher.js")>;
35
+ readonly "@shared/contracts/plugin-manager-api": () => Promise<typeof import("./host/src/shared/contracts/plugin-manager-api.js")>;
36
+ readonly "@shared/playbackMode": () => Promise<typeof import("./host/src/shared/playbackMode.js")>;
37
+ readonly "@shared/plugin/lifecycle": () => Promise<typeof import("./host/src/shared/plugin/lifecycle.js")>;
38
+ readonly "@shared/plugin/registry": () => Promise<typeof import("./host/src/shared/plugin/registry.js")>;
39
+ readonly "@shared/types/ncae": () => Promise<typeof import("./host/src/shared/types/ncae.js")>;
40
+ readonly "@shared/util": () => Promise<typeof import("./host/src/shared/util.js")>;
41
+ };
42
+
43
+ export type RegistryLoad = typeof load;
@@ -0,0 +1,164 @@
1
+ // AUTO-GENERATED by packages/plugin-api/scripts/build.ts. Do not edit.
2
+ export declare const load: {
3
+ readonly "@/constants": () => Promise<typeof import("./host/src/constants.js")>;
4
+ readonly "@main/afp": () => Promise<typeof import("./host/src/main/afp.js")>;
5
+ readonly "@main/arguments": () => Promise<typeof import("./host/src/main/arguments.js")>;
6
+ readonly "@main/assets": () => Promise<typeof import("./host/src/main/assets.js")>;
7
+ readonly "@main/audio": () => Promise<typeof import("./host/src/main/audio.js")>;
8
+ readonly "@main/audio/ChunkTracker": () => Promise<typeof import("./host/src/main/audio/ChunkTracker.js")>;
9
+ readonly "@main/audio/DownloadScheduler": () => Promise<typeof import("./host/src/main/audio/DownloadScheduler.js")>;
10
+ readonly "@main/audio/MediaEngine": () => Promise<typeof import("./host/src/main/audio/MediaEngine.js")>;
11
+ readonly "@main/audio/OnlineStreamer": () => Promise<typeof import("./host/src/main/audio/OnlineStreamer.js")>;
12
+ readonly "@main/audio/StorageManager": () => Promise<typeof import("./host/src/main/audio/StorageManager.js")>;
13
+ readonly "@main/av3a/Av3aEngine": () => Promise<typeof import("./host/src/main/av3a/Av3aEngine.js")>;
14
+ readonly "@main/av3a/Av3aPlaybackProcess": () => Promise<typeof import("./host/src/main/av3a/Av3aPlaybackProcess.js")>;
15
+ readonly "@main/av3a/detect": () => Promise<typeof import("./host/src/main/av3a/detect.js")>;
16
+ readonly "@main/av3a/sources": () => Promise<typeof import("./host/src/main/av3a/sources.js")>;
17
+ readonly "@main/bridge/ipc-main-bridge": () => Promise<typeof import("./host/src/main/bridge/ipc-main-bridge.js")>;
18
+ readonly "@main/bridge/modules/inputRegion": () => Promise<typeof import("./host/src/main/bridge/modules/inputRegion.js")>;
19
+ readonly "@main/bridge/modules/lyrics": () => Promise<typeof import("./host/src/main/bridge/modules/lyrics.js")>;
20
+ readonly "@main/bridge/modules/settings": () => Promise<typeof import("./host/src/main/bridge/modules/settings.js")>;
21
+ readonly "@main/bridge/register": () => Promise<typeof import("./host/src/main/bridge/register.js")>;
22
+ readonly "@main/bridge/window": () => Promise<typeof import("./host/src/main/bridge/window.js")>;
23
+ readonly "@main/cache": () => Promise<typeof import("./host/src/main/cache.js")>;
24
+ readonly "@main/cache/HttpCacheStorage": () => Promise<typeof import("./host/src/main/cache/HttpCacheStorage.js")>;
25
+ readonly "@main/cache/LyricCahceManager": () => Promise<typeof import("./host/src/main/cache/LyricCahceManager.js")>;
26
+ readonly "@main/cache/PlayCacheManager": () => Promise<typeof import("./host/src/main/cache/PlayCacheManager.js")>;
27
+ readonly "@main/calls": () => Promise<typeof import("./host/src/main/calls.js")>;
28
+ readonly "@main/calls/app": () => Promise<typeof import("./host/src/main/calls/app.js")>;
29
+ readonly "@main/calls/audioeffect": () => Promise<typeof import("./host/src/main/calls/audioeffect.js")>;
30
+ readonly "@main/calls/browser": () => Promise<typeof import("./host/src/main/calls/browser.js")>;
31
+ readonly "@main/calls/desktop": () => Promise<typeof import("./host/src/main/calls/desktop.js")>;
32
+ readonly "@main/calls/desktoppet": () => Promise<typeof import("./host/src/main/calls/desktoppet.js")>;
33
+ readonly "@main/calls/download": () => Promise<typeof import("./host/src/main/calls/download.js")>;
34
+ readonly "@main/calls/index": () => Promise<typeof import("./host/src/main/calls/index.js")>;
35
+ readonly "@main/calls/musiclibrary": () => Promise<typeof import("./host/src/main/calls/musiclibrary.js")>;
36
+ readonly "@main/calls/network": () => Promise<typeof import("./host/src/main/calls/network.js")>;
37
+ readonly "@main/calls/os": () => Promise<typeof import("./host/src/main/calls/os.js")>;
38
+ readonly "@main/calls/player": () => Promise<typeof import("./host/src/main/calls/player.js")>;
39
+ readonly "@main/calls/process": () => Promise<typeof import("./host/src/main/calls/process.js")>;
40
+ readonly "@main/calls/rtc": () => Promise<typeof import("./host/src/main/calls/rtc.js")>;
41
+ readonly "@main/calls/storage": () => Promise<typeof import("./host/src/main/calls/storage.js")>;
42
+ readonly "@main/calls/trayicon": () => Promise<typeof import("./host/src/main/calls/trayicon.js")>;
43
+ readonly "@main/calls/update": () => Promise<typeof import("./host/src/main/calls/update.js")>;
44
+ readonly "@main/calls/winhelper": () => Promise<typeof import("./host/src/main/calls/winhelper.js")>;
45
+ readonly "@main/channel": () => Promise<typeof import("./host/src/main/channel.js")>;
46
+ readonly "@main/cookie": () => Promise<typeof import("./host/src/main/cookie.js")>;
47
+ readonly "@main/crypto": () => Promise<typeof import("./host/src/main/crypto.js")>;
48
+ readonly "@main/database": () => Promise<typeof import("./host/src/main/database.js")>;
49
+ readonly "@main/database/KeyvSqliteDriver": () => Promise<typeof import("./host/src/main/database/KeyvSqliteDriver.js")>;
50
+ readonly "@main/dawn": () => Promise<typeof import("./host/src/main/dawn.js")>;
51
+ readonly "@main/device": () => Promise<typeof import("./host/src/main/device.js")>;
52
+ readonly "@main/download": () => Promise<typeof import("./host/src/main/download.js")>;
53
+ readonly "@main/error": () => Promise<typeof import("./host/src/main/error.js")>;
54
+ readonly "@main/folders": () => Promise<typeof import("./host/src/main/folders.js")>;
55
+ readonly "@main/fonts": () => Promise<typeof import("./host/src/main/fonts.js")>;
56
+ readonly "@main/gui": () => Promise<typeof import("./host/src/main/gui.js")>;
57
+ readonly "@main/id3": () => Promise<typeof import("./host/src/main/id3.js")>;
58
+ readonly "@main/lifecycle": () => Promise<typeof import("./host/src/main/lifecycle.js")>;
59
+ readonly "@main/logger": () => Promise<typeof import("./host/src/main/logger.js")>;
60
+ readonly "@main/lyrics": () => Promise<typeof import("./host/src/main/lyrics.js")>;
61
+ readonly "@main/lyrics/dbus": () => Promise<typeof import("./host/src/main/lyrics/dbus.js")>;
62
+ readonly "@main/lyrics/DbusLyricsService": () => Promise<typeof import("./host/src/main/lyrics/DbusLyricsService.js")>;
63
+ readonly "@main/lyrics/LyricsDispatcher": () => Promise<typeof import("./host/src/main/lyrics/LyricsDispatcher.js")>;
64
+ readonly "@main/lyrics/parse": () => Promise<typeof import("./host/src/main/lyrics/parse.js")>;
65
+ readonly "@main/mediaSession": () => Promise<typeof import("./host/src/main/mediaSession.js")>;
66
+ readonly "@main/menu/anchor": () => Promise<typeof import("./host/src/main/menu/anchor.js")>;
67
+ readonly "@main/menu/AppMenu": () => Promise<typeof import("./host/src/main/menu/AppMenu.js")>;
68
+ readonly "@main/menu/backend/DesktopWindowBackend": () => Promise<typeof import("./host/src/main/menu/backend/DesktopWindowBackend.js")>;
69
+ readonly "@main/menu/backend/MenuBackend": () => Promise<typeof import("./host/src/main/menu/backend/MenuBackend.js")>;
70
+ readonly "@main/menu/backend/WaylandLayerShellBackend": () => Promise<typeof import("./host/src/main/menu/backend/WaylandLayerShellBackend.js")>;
71
+ readonly "@main/menu/backend/WaylandOverlayBackend": () => Promise<typeof import("./host/src/main/menu/backend/WaylandOverlayBackend.js")>;
72
+ readonly "@main/menu/backend/WaylandPopupBackend": () => Promise<typeof import("./host/src/main/menu/backend/WaylandPopupBackend.js")>;
73
+ readonly "@main/menu/constants": () => Promise<typeof import("./host/src/main/menu/constants.js")>;
74
+ readonly "@main/menu/index": () => Promise<typeof import("./host/src/main/menu/index.js")>;
75
+ readonly "@main/menu/native-popup": () => Promise<typeof import("./host/src/main/menu/native-popup.js")>;
76
+ readonly "@main/menu/patch": () => Promise<typeof import("./host/src/main/menu/patch.js")>;
77
+ readonly "@main/menu/skin": () => Promise<typeof import("./host/src/main/menu/skin.js")>;
78
+ readonly "@main/menu/surface/BaseWindowMenuSurface": () => Promise<typeof import("./host/src/main/menu/surface/BaseWindowMenuSurface.js")>;
79
+ readonly "@main/menu/surface/CaptureLayerSurface": () => Promise<typeof import("./host/src/main/menu/surface/CaptureLayerSurface.js")>;
80
+ readonly "@main/menu/surface/MenuSurfacePath": () => Promise<typeof import("./host/src/main/menu/surface/MenuSurfacePath.js")>;
81
+ readonly "@main/menu/surface/SurfacePool": () => Promise<typeof import("./host/src/main/menu/surface/SurfacePool.js")>;
82
+ readonly "@main/menu/workaround": () => Promise<typeof import("./host/src/main/menu/workaround.js")>;
83
+ readonly "@main/ncae": () => Promise<typeof import("./host/src/main/ncae.js")>;
84
+ readonly "@main/network/handler": () => Promise<typeof import("./host/src/main/network/handler.js")>;
85
+ readonly "@main/network/interceptor": () => Promise<typeof import("./host/src/main/network/interceptor.js")>;
86
+ readonly "@main/network/interceptors/anonymous": () => Promise<typeof import("./host/src/main/network/interceptors/anonymous.js")>;
87
+ readonly "@main/network/pipeline": () => Promise<typeof import("./host/src/main/network/pipeline.js")>;
88
+ readonly "@main/network/types": () => Promise<typeof import("./host/src/main/network/types.js")>;
89
+ readonly "@main/orpheus": () => Promise<typeof import("./host/src/main/orpheus.js")>;
90
+ readonly "@main/pack": () => Promise<typeof import("./host/src/main/pack.js")>;
91
+ readonly "@main/packs/Pack": () => Promise<typeof import("./host/src/main/packs/Pack.js")>;
92
+ readonly "@main/packs/SkinPack": () => Promise<typeof import("./host/src/main/packs/SkinPack.js")>;
93
+ readonly "@main/packs/WebPack": () => Promise<typeof import("./host/src/main/packs/WebPack.js")>;
94
+ readonly "@main/playback/adapters/MediaSessionAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/MediaSessionAdapter.js")>;
95
+ readonly "@main/playback/adapters/MprisAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/MprisAdapter.js")>;
96
+ readonly "@main/playback/adapters/NowPlayingAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/NowPlayingAdapter.js")>;
97
+ readonly "@main/playback/adapters/SmtcAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/SmtcAdapter.js")>;
98
+ readonly "@main/playback/artwork": () => Promise<typeof import("./host/src/main/playback/artwork.js")>;
99
+ readonly "@main/playback/modes": () => Promise<typeof import("./host/src/main/playback/modes.js")>;
100
+ readonly "@main/playback/PlaybackController": () => Promise<typeof import("./host/src/main/playback/PlaybackController.js")>;
101
+ readonly "@main/playback/PlayerCommandRouter": () => Promise<typeof import("./host/src/main/playback/PlayerCommandRouter.js")>;
102
+ readonly "@main/playback/types": () => Promise<typeof import("./host/src/main/playback/types.js")>;
103
+ readonly "@main/protocol": () => Promise<typeof import("./host/src/main/protocol.js")>;
104
+ readonly "@main/request": () => Promise<typeof import("./host/src/main/request.js")>;
105
+ readonly "@main/settings": () => Promise<typeof import("./host/src/main/settings.js")>;
106
+ readonly "@main/shortcuts": () => Promise<typeof import("./host/src/main/shortcuts.js")>;
107
+ readonly "@main/shutdown": () => Promise<typeof import("./host/src/main/shutdown.js")>;
108
+ readonly "@main/skin/color": () => Promise<typeof import("./host/src/main/skin/color.js")>;
109
+ readonly "@main/skin/dui": () => Promise<typeof import("./host/src/main/skin/dui.js")>;
110
+ readonly "@main/tray": () => Promise<typeof import("./host/src/main/tray.js")>;
111
+ readonly "@main/update": () => Promise<typeof import("./host/src/main/update.js")>;
112
+ readonly "@main/util/color": () => Promise<typeof import("./host/src/main/util/color.js")>;
113
+ readonly "@main/util/display": () => Promise<typeof import("./host/src/main/util/display.js")>;
114
+ readonly "@main/util/env": () => Promise<typeof import("./host/src/main/util/env.js")>;
115
+ readonly "@main/util/fs": () => Promise<typeof import("./host/src/main/util/fs.js")>;
116
+ readonly "@main/util/image": () => Promise<typeof import("./host/src/main/util/image.js")>;
117
+ readonly "@main/util/musicFile": () => Promise<typeof import("./host/src/main/util/musicFile.js")>;
118
+ readonly "@main/util/musicPicture": () => Promise<typeof import("./host/src/main/util/musicPicture.js")>;
119
+ readonly "@main/util/path": () => Promise<typeof import("./host/src/main/util/path.js")>;
120
+ readonly "@main/util/send": () => Promise<typeof import("./host/src/main/util/send.js")>;
121
+ readonly "@main/util/url": () => Promise<typeof import("./host/src/main/util/url.js")>;
122
+ readonly "@main/util/window": () => Promise<typeof import("./host/src/main/util/window.js")>;
123
+ readonly "@main/window": () => Promise<typeof import("./host/src/main/window.js")>;
124
+ readonly "@main/windows/color-picker": () => Promise<typeof import("./host/src/main/windows/color-picker.js")>;
125
+ readonly "@main/windows/desktop-lyrics": () => Promise<typeof import("./host/src/main/windows/desktop-lyrics.js")>;
126
+ readonly "@main/windows/desktop-pet": () => Promise<typeof import("./host/src/main/windows/desktop-pet.js")>;
127
+ readonly "@main/windows/main": () => Promise<typeof import("./host/src/main/windows/main.js")>;
128
+ readonly "@main/windows/manage": () => Promise<typeof import("./host/src/main/windows/manage.js")>;
129
+ readonly "@main/windows/mini-player": () => Promise<typeof import("./host/src/main/windows/mini-player.js")>;
130
+ readonly "@main/windows/music-desktop": () => Promise<typeof import("./host/src/main/windows/music-desktop.js")>;
131
+ readonly "@main/windows/package-download": () => Promise<typeof import("./host/src/main/windows/package-download.js")>;
132
+ readonly "@main/windows/plugin-manager": () => Promise<typeof import("./host/src/main/windows/plugin-manager.js")>;
133
+ readonly "@main/windows/plugin-manager-events": () => Promise<typeof import("./host/src/main/windows/plugin-manager-events.js")>;
134
+ readonly "@main/xeapi": () => Promise<typeof import("./host/src/main/xeapi.js")>;
135
+ readonly "@shared/bridge/constants": () => Promise<typeof import("./host/src/shared/bridge/constants.js")>;
136
+ readonly "@shared/bridge/endpoint": () => Promise<typeof import("./host/src/shared/bridge/endpoint.js")>;
137
+ readonly "@shared/bridge/hub": () => Promise<typeof import("./host/src/shared/bridge/hub.js")>;
138
+ readonly "@shared/bridge/protocol": () => Promise<typeof import("./host/src/shared/bridge/protocol.js")>;
139
+ readonly "@shared/bridge/routes": () => Promise<typeof import("./host/src/shared/bridge/routes.js")>;
140
+ readonly "@shared/CallDispatcher": () => Promise<typeof import("./host/src/shared/CallDispatcher.js")>;
141
+ readonly "@shared/contracts/color-picker-api": () => Promise<typeof import("./host/src/shared/contracts/color-picker-api.js")>;
142
+ readonly "@shared/contracts/input-region-api": () => Promise<typeof import("./host/src/shared/contracts/input-region-api.js")>;
143
+ readonly "@shared/contracts/lyrics-api": () => Promise<typeof import("./host/src/shared/contracts/lyrics-api.js")>;
144
+ readonly "@shared/contracts/mini-player-api": () => Promise<typeof import("./host/src/shared/contracts/mini-player-api.js")>;
145
+ readonly "@shared/contracts/plugin-manager-api": () => Promise<typeof import("./host/src/shared/contracts/plugin-manager-api.js")>;
146
+ readonly "@shared/contracts/settings-api": () => Promise<typeof import("./host/src/shared/contracts/settings-api.js")>;
147
+ readonly "@shared/playbackMode": () => Promise<typeof import("./host/src/shared/playbackMode.js")>;
148
+ readonly "@shared/plugin/cache-bust": () => Promise<typeof import("./host/src/shared/plugin/cache-bust.js")>;
149
+ readonly "@shared/plugin/lifecycle": () => Promise<typeof import("./host/src/shared/plugin/lifecycle.js")>;
150
+ readonly "@shared/plugin/registry": () => Promise<typeof import("./host/src/shared/plugin/registry.js")>;
151
+ readonly "@shared/settings/defaults": () => Promise<typeof import("./host/src/shared/settings/defaults.js")>;
152
+ readonly "@shared/settings/index": () => Promise<typeof import("./host/src/shared/settings/index.js")>;
153
+ readonly "@shared/settings/keys": () => Promise<typeof import("./host/src/shared/settings/keys.js")>;
154
+ readonly "@shared/types/desktop-lyrics": () => Promise<typeof import("./host/src/shared/types/desktop-lyrics.js")>;
155
+ readonly "@shared/types/lyrics": () => Promise<typeof import("./host/src/shared/types/lyrics.js")>;
156
+ readonly "@shared/types/menu": () => Promise<typeof import("./host/src/shared/types/menu.js")>;
157
+ readonly "@shared/types/mini-player": () => Promise<typeof import("./host/src/shared/types/mini-player.js")>;
158
+ readonly "@shared/types/ncae": () => Promise<typeof import("./host/src/shared/types/ncae.js")>;
159
+ readonly "@shared/types/package-download": () => Promise<typeof import("./host/src/shared/types/package-download.js")>;
160
+ readonly "@shared/types/settings": () => Promise<typeof import("./host/src/shared/types/settings.js")>;
161
+ readonly "@shared/util": () => Promise<typeof import("./host/src/shared/util.js")>;
162
+ };
163
+
164
+ export type RegistryLoad = typeof load;