@open-orpheus/plugin-api 0.0.0-stage → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/host/_native/open-orpheus__database.d.ts +50 -0
- package/dist/host/_native/open-orpheus__window.d.ts +266 -0
- package/dist/host/src/constants.d.ts +6 -0
- package/dist/host/src/main/afp.d.ts +1 -0
- package/dist/host/src/main/arguments.d.ts +4 -0
- package/dist/host/src/main/audio/ChunkTracker.d.ts +23 -0
- package/dist/host/src/main/audio/DownloadScheduler.d.ts +53 -0
- package/dist/host/src/main/audio/MediaEngine.d.ts +47 -0
- package/dist/host/src/main/audio/OnlineStreamer.d.ts +66 -0
- package/dist/host/src/main/audio/StorageManager.d.ts +18 -0
- package/dist/host/src/main/audio.d.ts +6 -0
- package/dist/host/src/main/av3a/Av3aEngine.d.ts +24 -0
- package/dist/host/src/main/av3a/Av3aM4aSession.d.ts +101 -0
- package/dist/host/src/main/av3a/Av3aPlaybackProcess.d.ts +52 -0
- package/dist/host/src/main/av3a/detect.d.ts +6 -0
- package/dist/host/src/main/av3a/sources.d.ts +13 -0
- package/dist/host/src/main/av3a/types.d.ts +54 -0
- package/dist/host/src/main/bridge/modules/inputRegion.d.ts +1 -0
- package/dist/host/src/main/bridge/modules/lyrics.d.ts +1 -0
- package/dist/host/src/main/bridge/modules/settings.d.ts +1 -0
- package/dist/host/src/main/bridge/register.d.ts +9 -0
- package/dist/host/src/main/cache/HttpCacheStorage.d.ts +10 -0
- package/dist/host/src/main/cache/LyricCahceManager.d.ts +21 -0
- package/dist/host/src/main/cache/PlayCacheManager.d.ts +72 -0
- package/dist/host/src/main/cache.d.ts +7 -0
- package/dist/host/src/main/calls/app.d.ts +1 -0
- package/dist/host/src/main/calls/audioeffect.d.ts +1 -0
- package/dist/host/src/main/calls/browser.d.ts +1 -0
- package/dist/host/src/main/calls/desktop.d.ts +2 -0
- package/dist/host/src/main/calls/desktoppet.d.ts +1 -0
- package/dist/host/src/main/calls/download.d.ts +1 -0
- package/dist/host/src/main/calls/index.d.ts +16 -0
- package/dist/host/src/main/calls/musiclibrary.d.ts +1 -0
- package/dist/host/src/main/calls/network.d.ts +1 -0
- package/dist/host/src/main/calls/os.d.ts +1 -0
- package/dist/host/src/main/calls/player.d.ts +22 -0
- package/dist/host/src/main/calls/process.d.ts +1 -0
- package/dist/host/src/main/calls/rtc.d.ts +1 -0
- package/dist/host/src/main/calls/storage.d.ts +1 -0
- package/dist/host/src/main/calls/trayicon.d.ts +1 -0
- package/dist/host/src/main/calls/update.d.ts +1 -0
- package/dist/host/src/main/calls/winhelper.d.ts +1 -0
- package/dist/host/src/main/calls.d.ts +5 -0
- package/dist/host/src/main/channel.d.ts +1 -0
- package/dist/host/src/main/cookie.d.ts +13 -0
- package/dist/host/src/main/crypto.d.ts +46 -0
- package/dist/host/src/main/database/KeyvSqliteDriver.d.ts +6 -0
- package/dist/host/src/main/database.d.ts +5 -0
- package/dist/host/src/main/dawn.d.ts +31 -0
- package/dist/host/src/main/device.d.ts +3 -0
- package/dist/host/src/main/download.d.ts +40 -0
- package/dist/host/src/main/error.d.ts +1 -0
- package/dist/host/src/main/folders.d.ts +18 -0
- package/dist/host/src/main/fonts.d.ts +1 -0
- package/dist/host/src/main/gui.d.ts +4 -0
- package/dist/host/src/main/id3.d.ts +42 -0
- package/dist/host/src/main/lifecycle.d.ts +118 -0
- package/dist/host/src/main/logger.d.ts +12 -0
- package/dist/host/src/main/lyrics/DbusLyricsService.d.ts +115 -0
- package/dist/host/src/main/lyrics/LyricsDispatcher.d.ts +26 -0
- package/dist/host/src/main/lyrics/dbus.d.ts +16 -0
- package/dist/host/src/main/lyrics/parse.d.ts +21 -0
- package/dist/host/src/main/lyrics.d.ts +2 -0
- package/dist/host/src/main/mediaSession.d.ts +42 -0
- package/dist/host/src/main/menu/AppMenu.d.ts +35 -0
- package/dist/host/src/main/menu/anchor.d.ts +13 -0
- package/dist/host/src/main/menu/backend/DesktopWindowBackend.d.ts +30 -0
- package/dist/host/src/main/menu/backend/MenuBackend.d.ts +28 -0
- package/dist/host/src/main/menu/backend/WaylandOverlayBackend.d.ts +15 -0
- package/dist/host/src/main/menu/backend/WaylandPopupBackend.d.ts +31 -0
- package/dist/host/src/main/menu/constants.d.ts +12 -0
- package/dist/host/src/main/menu/index.d.ts +2 -0
- package/dist/host/src/main/menu/native-popup.d.ts +16 -0
- package/dist/host/src/main/menu/patch.d.ts +3 -0
- package/dist/host/src/main/menu/skin.d.ts +3 -0
- package/dist/host/src/main/menu/surface/BaseWindowMenuSurface.d.ts +69 -0
- package/dist/host/src/main/menu/surface/MenuSurface.d.ts +29 -0
- package/dist/host/src/main/menu/surface/MenuSurfacePath.d.ts +29 -0
- package/dist/host/src/main/menu/surface/SurfacePool.d.ts +15 -0
- package/dist/host/src/main/menu/workaround.d.ts +6 -0
- package/dist/host/src/main/ncae.d.ts +8 -0
- package/dist/host/src/main/network/handler.d.ts +3 -0
- package/dist/host/src/main/network/interceptor.d.ts +2 -0
- package/dist/host/src/main/network/interceptors/anonymous.d.ts +2 -0
- package/dist/host/src/main/network/pipeline.d.ts +8 -0
- package/dist/host/src/main/network/types.d.ts +70 -0
- package/dist/host/src/main/orpheus.d.ts +10 -0
- package/dist/host/src/main/pack.d.ts +27 -0
- package/dist/host/src/main/packs/Pack.d.ts +12 -0
- package/dist/host/src/main/packs/SkinPack.d.ts +6 -0
- package/dist/host/src/main/packs/WebPack.d.ts +6 -0
- package/dist/host/src/main/playback/PlaybackController.d.ts +57 -0
- package/dist/host/src/main/playback/PlayerCommandRouter.d.ts +85 -0
- package/dist/host/src/main/playback/adapters/MediaSessionAdapter.d.ts +61 -0
- package/dist/host/src/main/playback/adapters/MprisAdapter.d.ts +48 -0
- package/dist/host/src/main/playback/adapters/NowPlayingAdapter.d.ts +23 -0
- package/dist/host/src/main/playback/adapters/SmtcAdapter.d.ts +23 -0
- package/dist/host/src/main/playback/artwork.d.ts +47 -0
- package/dist/host/src/main/playback/modes.d.ts +8 -0
- package/dist/host/src/main/playback/types.d.ts +39 -0
- package/dist/host/src/main/plugin/discover.d.ts +36 -0
- package/dist/host/src/main/plugin/index.d.ts +12 -0
- package/dist/host/src/main/plugin/loader.d.ts +43 -0
- package/dist/host/src/main/plugin/manager.d.ts +15 -0
- package/dist/host/src/main/plugin/metadata.d.ts +24 -0
- package/dist/host/src/main/plugin/state.d.ts +17 -0
- package/dist/host/src/main/plugin/tree.d.ts +13 -0
- package/dist/host/src/main/plugin/types.d.ts +18 -0
- package/dist/host/src/main/protocol.d.ts +4 -0
- package/dist/host/src/main/request.d.ts +16 -0
- package/dist/host/src/main/settings.d.ts +6 -0
- package/dist/host/src/main/shortcuts.d.ts +10 -0
- package/dist/host/src/main/shutdown.d.ts +32 -0
- package/dist/host/src/main/skin/color.d.ts +2 -0
- package/dist/host/src/main/skin/dui.d.ts +15 -0
- package/dist/host/src/main/tray.d.ts +8 -0
- package/dist/host/src/main/update.d.ts +2 -0
- package/dist/host/src/main/util/display.d.ts +3 -0
- package/dist/host/src/main/util/env.d.ts +1 -0
- package/dist/host/src/main/util/fs.d.ts +21 -0
- package/dist/host/src/main/util/image.d.ts +1 -0
- package/dist/host/src/main/util/musicFile.d.ts +1 -0
- package/dist/host/src/main/util/musicPicture.d.ts +2 -0
- package/dist/host/src/main/util/path.d.ts +2 -0
- package/dist/host/src/main/util/send.d.ts +13 -0
- package/dist/host/src/main/util/url.d.ts +19 -0
- package/dist/host/src/main/util/window.d.ts +2 -0
- package/dist/host/src/main/window.d.ts +294 -0
- package/dist/host/src/main/windows/desktop-lyrics.d.ts +12 -0
- package/dist/host/src/main/windows/desktop-pet.d.ts +8 -0
- package/dist/host/src/main/windows/main.d.ts +6 -0
- package/dist/host/src/main/windows/manage.d.ts +2 -0
- package/dist/host/src/main/windows/mini-player.d.ts +16 -0
- package/dist/host/src/main/windows/music-desktop.d.ts +13 -0
- package/dist/host/src/main/windows/package-download.d.ts +2 -0
- package/dist/host/src/main/windows/plugin-manager.d.ts +5 -0
- package/dist/host/src/main/xeapi.d.ts +53 -0
- package/dist/host/src/preload/AudioEffectManager.d.ts +124 -0
- package/dist/host/src/preload/PlaybackBackend.d.ts +34 -0
- package/dist/host/src/preload/Player.d.ts +221 -0
- package/dist/host/src/preload/av3a/Av3aPcmPlayer.d.ts +84 -0
- package/dist/host/src/preload/av3a/bridge.d.ts +21 -0
- package/dist/host/src/preload/av3a/channel.d.ts +40 -0
- package/dist/host/src/preload/av3a/detect.d.ts +6 -0
- package/dist/host/src/preload/backends/Av3aPlaybackBackend.d.ts +32 -0
- package/dist/host/src/preload/backends/MediaPlaybackBackend.d.ts +25 -0
- package/dist/host/src/shared/CallDispatcher.d.ts +12 -0
- package/dist/host/src/shared/contracts/av3a-api.d.ts +50 -0
- package/dist/host/src/shared/contracts/av3a-process.d.ts +56 -0
- package/dist/host/src/shared/contracts/desktop-lyrics-api.d.ts +23 -0
- package/dist/host/src/shared/contracts/input-region-api.d.ts +6 -0
- package/dist/host/src/shared/contracts/lyrics-api.d.ts +11 -0
- package/dist/host/src/shared/contracts/manage-api.d.ts +33 -0
- package/dist/host/src/shared/contracts/mini-player-api.d.ts +19 -0
- package/dist/host/src/shared/contracts/plugin-manager-api.d.ts +34 -0
- package/dist/host/src/shared/contracts/settings-api.d.ts +15 -0
- package/dist/host/src/shared/playbackMode.d.ts +2 -0
- package/dist/host/src/shared/plugin/registry.d.ts +32 -0
- package/dist/host/src/shared/types/desktop-lyrics.d.ts +44 -0
- package/dist/host/src/shared/types/dui.d.ts +37 -0
- package/dist/host/src/shared/types/input-region.d.ts +6 -0
- package/dist/host/src/shared/types/lyrics.d.ts +15 -0
- package/dist/host/src/shared/types/manage.d.ts +14 -0
- package/dist/host/src/shared/types/menu-surface.d.ts +43 -0
- package/dist/host/src/shared/types/menu.d.ts +29 -0
- package/dist/host/src/shared/types/mini-player.d.ts +90 -0
- package/dist/host/src/shared/types/ncae.d.ts +21 -0
- package/dist/host/src/shared/types/package-download.d.ts +6 -0
- package/dist/host/src/shared/types/playback-mode.d.ts +3 -0
- package/dist/host/src/shared/types/settings.d.ts +9 -0
- package/dist/host/src/shared/types/update.d.ts +6 -0
- package/dist/host/src/shared/util.d.ts +22 -0
- package/dist/index.d.ts +7 -0
- package/dist/preload/host/src/constants.d.ts +6 -0
- package/dist/preload/host/src/main/network/types.d.ts +70 -0
- package/dist/preload/host/src/preload/AudioEffectManager.d.ts +124 -0
- package/dist/preload/host/src/preload/MusicRecognizer.d.ts +25 -0
- package/dist/preload/host/src/preload/PlaybackBackend.d.ts +34 -0
- package/dist/preload/host/src/preload/Player.d.ts +221 -0
- package/dist/preload/host/src/preload/YunxinIM.d.ts +15 -0
- package/dist/preload/host/src/preload/audioplayer.d.ts +4 -0
- package/dist/preload/host/src/preload/av3a/Av3aPcmPlayer.d.ts +84 -0
- package/dist/preload/host/src/preload/av3a/bridge.d.ts +21 -0
- package/dist/preload/host/src/preload/av3a/channel.d.ts +40 -0
- package/dist/preload/host/src/preload/av3a/detect.d.ts +6 -0
- package/dist/preload/host/src/preload/backends/Av3aPlaybackBackend.d.ts +32 -0
- package/dist/preload/host/src/preload/backends/MediaPlaybackBackend.d.ts +25 -0
- package/dist/preload/host/src/preload/calls/app.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/audioeffect.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/audioplayer.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/im.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/index.d.ts +6 -0
- package/dist/preload/host/src/preload/calls/network.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/nimsys.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/os.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/player.d.ts +1 -0
- package/dist/preload/host/src/preload/calls/update.d.ts +1 -0
- package/dist/preload/host/src/preload/calls.d.ts +4 -0
- package/dist/preload/host/src/preload/channel.d.ts +1 -0
- package/dist/preload/host/src/preload/playbackMode.d.ts +13 -0
- package/dist/preload/host/src/preload/plugin/types.d.ts +18 -0
- package/dist/preload/host/src/preload/util.d.ts +1 -0
- package/dist/preload/host/src/shared/CallDispatcher.d.ts +12 -0
- package/dist/preload/host/src/shared/contracts/av3a-api.d.ts +50 -0
- package/dist/preload/host/src/shared/contracts/av3a-process.d.ts +56 -0
- package/dist/preload/host/src/shared/playbackMode.d.ts +2 -0
- package/dist/preload/host/src/shared/plugin/registry.d.ts +32 -0
- package/dist/preload/host/src/shared/types/ncae.d.ts +21 -0
- package/dist/preload/host/src/shared/types/playback-mode.d.ts +3 -0
- package/dist/preload/host/src/shared/util.d.ts +22 -0
- package/dist/preload/index.d.ts +7 -0
- package/dist/preload/registry-map.d.ts +36 -0
- package/dist/registry-map.d.ts +145 -0
- package/package.json +58 -4
- package/README.md +0 -3
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Av3aChannelServiceToRenderer } from "../../shared/contracts/av3a-process";
|
|
2
|
+
import type { Av3aTrackInfo } from "../../shared/contracts/av3a-api";
|
|
3
|
+
/**
|
|
4
|
+
* Renderer end of the direct channel to the AV3A decode utility process.
|
|
5
|
+
*
|
|
6
|
+
* Each `av3a.start` makes main fork a fresh decode process and hand the player
|
|
7
|
+
* window one end of a `MessageChannelMain` over the `av3a.channel` IPC event
|
|
8
|
+
* (`event.ports[0]`, a real DOM `MessagePort`). The utility process holds the
|
|
9
|
+
* other end. All decode events travel on this port, in order:
|
|
10
|
+
*
|
|
11
|
+
* utility -> window: opened | pcm | done | error
|
|
12
|
+
* window -> utility: pause | resume | seek
|
|
13
|
+
*
|
|
14
|
+
* Main is not on this path, so a busy main process can't stall playback.
|
|
15
|
+
* The `av3a` IPC bridge still owns `start`/`stop` and main-origin errors +
|
|
16
|
+
* download progress.
|
|
17
|
+
*/
|
|
18
|
+
type OpenedHandler = (info: Av3aTrackInfo) => void;
|
|
19
|
+
type PcmFrame = Extract<Av3aChannelServiceToRenderer, {
|
|
20
|
+
type: "pcm";
|
|
21
|
+
}>;
|
|
22
|
+
type DoneHandler = () => void;
|
|
23
|
+
type ErrorHandler = (message: string) => void;
|
|
24
|
+
export declare const av3aChannel: {
|
|
25
|
+
/** The `moov` box was indexed (fires before the first `pcm`). */
|
|
26
|
+
onOpened(handler: OpenedHandler): void;
|
|
27
|
+
/** Register the per-frame PCM consumer (kept across sessions). */
|
|
28
|
+
onPcm(handler: (frame: PcmFrame) => void): void;
|
|
29
|
+
/** The last frame of the track was decoded. */
|
|
30
|
+
onDone(handler: DoneHandler): void;
|
|
31
|
+
/** A decode error from the utility process. */
|
|
32
|
+
onError(handler: ErrorHandler): void;
|
|
33
|
+
/** Pause decoding after the current frame (consumer backpressure). */
|
|
34
|
+
pause(): void;
|
|
35
|
+
/** Resume decoding. */
|
|
36
|
+
resume(): void;
|
|
37
|
+
/** Seek the decode session to an absolute track frame index. */
|
|
38
|
+
seek(frameIndex: number): void;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ask main whether a local file is AV3A-encoded. Local play info does not
|
|
3
|
+
* signal the codec (unlike URL play info's `audioFormat`), so the file must be
|
|
4
|
+
* sniffed in main (which owns `fs`).
|
|
5
|
+
*/
|
|
6
|
+
export declare function isAv3aLocalFile(path: string): Promise<boolean>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AudioPlayInfo } from "../Player";
|
|
2
|
+
import type { PlaybackBackend, PlaybackEventSink } from "../PlaybackBackend";
|
|
3
|
+
/**
|
|
4
|
+
* The AV3A decode backend. Owns an `Av3aPcmPlayer` (worklet playback, PCM
|
|
5
|
+
* resampling/downmix, seek/rate) plus the AV3A timeupdate clock, and raises
|
|
6
|
+
* the same media events as the media-element backend through the sink.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Av3aPlaybackBackend implements PlaybackBackend {
|
|
9
|
+
private readonly player;
|
|
10
|
+
private readonly sink;
|
|
11
|
+
private readonly effectInput;
|
|
12
|
+
private attached;
|
|
13
|
+
private clock;
|
|
14
|
+
private openResolve;
|
|
15
|
+
private playbackRateValue;
|
|
16
|
+
constructor(ctx: AudioContext, effectInput: AudioNode, sink: PlaybackEventSink);
|
|
17
|
+
get sourceNode(): AudioNode | null;
|
|
18
|
+
get currentTime(): number;
|
|
19
|
+
get duration(): number;
|
|
20
|
+
get paused(): boolean;
|
|
21
|
+
get ended(): boolean;
|
|
22
|
+
get playbackRate(): number;
|
|
23
|
+
setPlaybackRate(rate: number): void;
|
|
24
|
+
load(playInfo: AudioPlayInfo): Promise<void>;
|
|
25
|
+
play(): Promise<void>;
|
|
26
|
+
pause(): void;
|
|
27
|
+
stop(): void;
|
|
28
|
+
seek(seconds: number): void;
|
|
29
|
+
private startClock;
|
|
30
|
+
private stopClock;
|
|
31
|
+
dispose(): Promise<void>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PlaybackBackend, PlaybackEventSink } from "../PlaybackBackend";
|
|
2
|
+
/**
|
|
3
|
+
* The media-element backend. Owns the hidden `<audio>` element and its
|
|
4
|
+
* `MediaElementAudioSourceNode` so its output flows through the shared WebAudio
|
|
5
|
+
* graph. Real element events are raised through the sink (which `Player` gates
|
|
6
|
+
* to the active backend).
|
|
7
|
+
*/
|
|
8
|
+
export declare class MediaPlaybackBackend implements PlaybackBackend {
|
|
9
|
+
readonly sourceNode: MediaElementAudioSourceNode;
|
|
10
|
+
private readonly element;
|
|
11
|
+
private readonly sink;
|
|
12
|
+
constructor(ctx: AudioContext, sink: PlaybackEventSink);
|
|
13
|
+
load(): Promise<void>;
|
|
14
|
+
play(): Promise<void>;
|
|
15
|
+
pause(): void;
|
|
16
|
+
stop(): void;
|
|
17
|
+
seek(seconds: number): void;
|
|
18
|
+
get currentTime(): number;
|
|
19
|
+
get duration(): number;
|
|
20
|
+
get paused(): boolean;
|
|
21
|
+
get ended(): boolean;
|
|
22
|
+
get playbackRate(): number;
|
|
23
|
+
setPlaybackRate(rate: number): void;
|
|
24
|
+
dispose(): Promise<void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import CallDispatcher from "../shared/CallDispatcher";
|
|
2
|
+
export declare const dispatcher: CallDispatcher;
|
|
3
|
+
export declare const registerCallHandler: typeof dispatcher.registerHandler;
|
|
4
|
+
export declare const registerCallbackHandler: typeof dispatcher.registerCallbackHandler;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fireNativeCall<Args extends unknown[]>(command: string, ...args: Args): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PlaybackMode } from "../shared/types/playback-mode";
|
|
2
|
+
declare const bridgeApi: {
|
|
3
|
+
reportMode: (mode: string) => void;
|
|
4
|
+
onCommand: (handler: (mode: PlaybackMode) => Promise<void>) => void;
|
|
5
|
+
};
|
|
6
|
+
export type PlaybackModeBridgeApi = typeof bridgeApi;
|
|
7
|
+
/**
|
|
8
|
+
* Runs in the page's main world: keep runtime dependencies inside this function.
|
|
9
|
+
* Read the mounted React tree to find the Provider store or dva route's app.
|
|
10
|
+
* All playback changes go through the page's own playing model.
|
|
11
|
+
*/
|
|
12
|
+
export declare function installPlaybackModeBridge(api: PlaybackModeBridgeApi): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PluginRegistry, Registry } from "../../shared/plugin/registry";
|
|
2
|
+
/** Everything a plugin's preload-realm module is handed. */
|
|
3
|
+
export interface PreloadPluginRuntime {
|
|
4
|
+
/** The generated interface registry for the preload realm. */
|
|
5
|
+
registry: Registry;
|
|
6
|
+
/** The preload realm's plugin-contributed exports, keyed by plugin id. */
|
|
7
|
+
plugins: PluginRegistry;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The named exports a plugin's preload entry must provide.
|
|
11
|
+
*
|
|
12
|
+
* Preload entries are evaluated as CJS bundles; the plugin exposes the same
|
|
13
|
+
* `activate`/`deactivate` lifecycle as the main realm.
|
|
14
|
+
*/
|
|
15
|
+
export interface PreloadPluginModule {
|
|
16
|
+
activate(runtime: PreloadPluginRuntime): void | Promise<void>;
|
|
17
|
+
deactivate?(): void | Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const channel: string | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type HandlerFunction<Args extends unknown[] = unknown[], Return extends unknown[] | void = void> = (...args: Args) => Return | Promise<Return>;
|
|
2
|
+
export type CallbackHandlerFunction<Args extends unknown[] = unknown[]> = (callback: (...args: unknown[]) => void, ...args: Args) => void | Promise<void>;
|
|
3
|
+
export default class CallDispatcher {
|
|
4
|
+
private handlers;
|
|
5
|
+
private callbackHandlers;
|
|
6
|
+
registerHandler<Args extends unknown[], Return extends unknown[] | void>(cmd: string, handler: HandlerFunction<Args, Return>): void;
|
|
7
|
+
registerHandlers(handlers: {
|
|
8
|
+
[cmd: string]: HandlerFunction;
|
|
9
|
+
}): void;
|
|
10
|
+
registerCallbackHandler<Args extends unknown[]>(cmd: string, handler: CallbackHandlerFunction<Args>): void;
|
|
11
|
+
dispatch(cmd: string, callback: (...args: unknown[]) => void, ...args: unknown[]): Promise<void | false>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AudioPlayInfo } from "../../preload/Player";
|
|
2
|
+
/** Track metadata reported once the AV3A track has been indexed (`moov`). */
|
|
3
|
+
export interface Av3aTrackInfo {
|
|
4
|
+
sampleRate: number;
|
|
5
|
+
channels: number;
|
|
6
|
+
frameCount: number;
|
|
7
|
+
durationSeconds: number;
|
|
8
|
+
mediaStart: number;
|
|
9
|
+
mediaEnd: number;
|
|
10
|
+
}
|
|
11
|
+
/** One decoded PCM16 frame. */
|
|
12
|
+
export interface Av3aPcmEvent {
|
|
13
|
+
/** Interleaved little-endian PCM16 (`channels * 1024` samples). */
|
|
14
|
+
data: ArrayBuffer;
|
|
15
|
+
/** 0-based AV3A frame index within the track. */
|
|
16
|
+
frameIndex: number;
|
|
17
|
+
sampleRate: number;
|
|
18
|
+
channels: number;
|
|
19
|
+
/** Presentation timestamp in milliseconds. */
|
|
20
|
+
pts: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Control-plane bridge between the player window and main's AV3A playback
|
|
24
|
+
* manager (which forks the decode utility process).
|
|
25
|
+
*
|
|
26
|
+
* `events.*` are pushed from main via `webContents.send("av3a.<event>", ...)`;
|
|
27
|
+
* the remaining methods are invoked by the player via
|
|
28
|
+
* `ipcRenderer.invoke("av3a.<method>", ...)`.
|
|
29
|
+
*
|
|
30
|
+
* Decode events (`opened`/`pcm`/`done`/`error`), frames, and flow control
|
|
31
|
+
* (`pause`/`resume`/`seek`) are intentionally NOT here: they travel on the
|
|
32
|
+
* direct renderer<->decode-utility channel (see `av3a-process.ts`), keeping
|
|
33
|
+
* the main process off the real-time path. Main's `error` event is kept as a
|
|
34
|
+
* fallback for terminal, main-originated failures (e.g. the decode process
|
|
35
|
+
* crashing).
|
|
36
|
+
*/
|
|
37
|
+
export interface Av3aContract {
|
|
38
|
+
events: {
|
|
39
|
+
error(callback: (message: string) => void): void;
|
|
40
|
+
/** Download progress of the encoded source. */
|
|
41
|
+
progress(callback: (loaded: number, total: number) => void): void;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Start decoding `playInfo` in the AV3A decode utility process.
|
|
45
|
+
* Currently supports URL playback (`type === 4`, `audioFormat === "av3a"`).
|
|
46
|
+
*/
|
|
47
|
+
start(playInfo: AudioPlayInfo): Promise<void>;
|
|
48
|
+
/** Stop decoding: tear down the utility process and the underlying streamer. */
|
|
49
|
+
stop(): Promise<void>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Av3aPcmEvent, Av3aTrackInfo } from "./av3a-api";
|
|
2
|
+
/**
|
|
3
|
+
* Messaging between the main process and the AV3A decode utility process
|
|
4
|
+
* (`process.parentPort` <-> `UtilityProcess.postMessage`).
|
|
5
|
+
*/
|
|
6
|
+
/** main -> utility process */
|
|
7
|
+
export type Av3aProcessMainToService = {
|
|
8
|
+
type: "init";
|
|
9
|
+
path: string;
|
|
10
|
+
totalLength: number;
|
|
11
|
+
prefixEnd: number;
|
|
12
|
+
} | {
|
|
13
|
+
type: "frontier";
|
|
14
|
+
prefixEnd: number;
|
|
15
|
+
} | {
|
|
16
|
+
type: "rangeReady";
|
|
17
|
+
id: number;
|
|
18
|
+
prefixEnd: number;
|
|
19
|
+
} | {
|
|
20
|
+
type: "rangeError";
|
|
21
|
+
id: number;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
/** utility process -> main (main only serves byte ranges; nothing else). */
|
|
25
|
+
export type Av3aProcessServiceToMain = {
|
|
26
|
+
type: "ensureRange";
|
|
27
|
+
id: number;
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Direct channel (a `MessageChannelMain` end in each process) between the
|
|
33
|
+
* renderer and the AV3A decode utility process. Every decode event — opened,
|
|
34
|
+
* PCM frames, done, errors — plus flow control and seeks travels here, in
|
|
35
|
+
* order, without main on the path. That keeps playback flowing while main is
|
|
36
|
+
* busy (e.g. blocked by a window drag).
|
|
37
|
+
*/
|
|
38
|
+
export type Av3aChannelRendererToService = {
|
|
39
|
+
type: "pause";
|
|
40
|
+
} | {
|
|
41
|
+
type: "resume";
|
|
42
|
+
} | {
|
|
43
|
+
type: "seek";
|
|
44
|
+
frameIndex: number;
|
|
45
|
+
};
|
|
46
|
+
export type Av3aChannelServiceToRenderer = ({
|
|
47
|
+
type: "pcm";
|
|
48
|
+
} & Av3aPcmEvent) | {
|
|
49
|
+
type: "opened";
|
|
50
|
+
info: Av3aTrackInfo;
|
|
51
|
+
} | {
|
|
52
|
+
type: "done";
|
|
53
|
+
} | {
|
|
54
|
+
type: "error";
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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";
|
|
8
|
+
export type { RegistryLoad };
|
|
9
|
+
/**
|
|
10
|
+
* Lazy access to a realm's host module surface.
|
|
11
|
+
*
|
|
12
|
+
* Every module is imported on demand; the registry itself has no static
|
|
13
|
+
* imports and therefore no initialization side effects.
|
|
14
|
+
*/
|
|
15
|
+
export type Registry<Load extends RegistryLoad = RegistryLoad> = {
|
|
16
|
+
/** Import a module. Resolves immediately for modules that are already evaluated. */
|
|
17
|
+
load<Key extends keyof Load>(key: Key): ReturnType<Load[Key]>;
|
|
18
|
+
/** Every key this registry can serve. */
|
|
19
|
+
keys(): Array<keyof Load>;
|
|
20
|
+
};
|
|
21
|
+
export declare function createRegistry<Load extends RegistryLoad>(lazyModules: Load): Registry<Load>;
|
|
22
|
+
/**
|
|
23
|
+
* Plugin-contributed exports for one realm, keyed by plugin id.
|
|
24
|
+
*
|
|
25
|
+
* The entry module is the plugin's public surface; lifecycle exports
|
|
26
|
+
* (`activate`/`deactivate`) are reserved and typed away in the SDK.
|
|
27
|
+
*/
|
|
28
|
+
export interface PluginRegistry {
|
|
29
|
+
load<T = unknown>(id: string): Promise<T>;
|
|
30
|
+
keys(): string[];
|
|
31
|
+
}
|
|
32
|
+
export declare function createPluginRegistry(loaders: ReadonlyMap<string, () => Promise<unknown>>): PluginRegistry;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum NcaeType {
|
|
2
|
+
/** JSON effect parameters. */
|
|
3
|
+
Json = 1,
|
|
4
|
+
/** WAV impulse response (convolution data). */
|
|
5
|
+
Wav = 2
|
|
6
|
+
}
|
|
7
|
+
export interface NcaeHeader {
|
|
8
|
+
/** Raw payload size as declared in the file (before decompression). */
|
|
9
|
+
payloadSize: number;
|
|
10
|
+
/** Type flag. */
|
|
11
|
+
type: NcaeType;
|
|
12
|
+
}
|
|
13
|
+
export interface Ncae {
|
|
14
|
+
header: NcaeHeader;
|
|
15
|
+
/**
|
|
16
|
+
* Decompressed payload.
|
|
17
|
+
* - Type 1 (JSON): the raw JSON string.
|
|
18
|
+
* - Type 2 (WAV): a Buffer containing the RIFF/WAVE data.
|
|
19
|
+
*/
|
|
20
|
+
payload: string | Uint8Array;
|
|
21
|
+
}
|
|
@@ -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 { PreloadPluginModule, PreloadPluginRuntime } from "./host/src/preload/plugin/types";
|
|
6
|
+
export type { PluginRegistry, Registry } from "./host/src/shared/plugin/registry";
|
|
7
|
+
export type { RegistryLoad } from "./registry-map";
|
|
@@ -0,0 +1,36 @@
|
|
|
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")>;
|
|
4
|
+
readonly "@preload/AudioEffectManager": () => Promise<typeof import("./host/src/preload/AudioEffectManager")>;
|
|
5
|
+
readonly "@preload/audioplayer": () => Promise<typeof import("./host/src/preload/audioplayer")>;
|
|
6
|
+
readonly "@preload/av3a/Av3aPcmPlayer": () => Promise<typeof import("./host/src/preload/av3a/Av3aPcmPlayer")>;
|
|
7
|
+
readonly "@preload/av3a/bridge": () => Promise<typeof import("./host/src/preload/av3a/bridge")>;
|
|
8
|
+
readonly "@preload/av3a/channel": () => Promise<typeof import("./host/src/preload/av3a/channel")>;
|
|
9
|
+
readonly "@preload/av3a/detect": () => Promise<typeof import("./host/src/preload/av3a/detect")>;
|
|
10
|
+
readonly "@preload/backends/Av3aPlaybackBackend": () => Promise<typeof import("./host/src/preload/backends/Av3aPlaybackBackend")>;
|
|
11
|
+
readonly "@preload/backends/MediaPlaybackBackend": () => Promise<typeof import("./host/src/preload/backends/MediaPlaybackBackend")>;
|
|
12
|
+
readonly "@preload/calls": () => Promise<typeof import("./host/src/preload/calls")>;
|
|
13
|
+
readonly "@preload/calls/app": () => Promise<typeof import("./host/src/preload/calls/app")>;
|
|
14
|
+
readonly "@preload/calls/audioeffect": () => Promise<typeof import("./host/src/preload/calls/audioeffect")>;
|
|
15
|
+
readonly "@preload/calls/audioplayer": () => Promise<typeof import("./host/src/preload/calls/audioplayer")>;
|
|
16
|
+
readonly "@preload/calls/im": () => Promise<typeof import("./host/src/preload/calls/im")>;
|
|
17
|
+
readonly "@preload/calls/index": () => Promise<typeof import("./host/src/preload/calls/index")>;
|
|
18
|
+
readonly "@preload/calls/network": () => Promise<typeof import("./host/src/preload/calls/network")>;
|
|
19
|
+
readonly "@preload/calls/nimsys": () => Promise<typeof import("./host/src/preload/calls/nimsys")>;
|
|
20
|
+
readonly "@preload/calls/os": () => Promise<typeof import("./host/src/preload/calls/os")>;
|
|
21
|
+
readonly "@preload/calls/player": () => Promise<typeof import("./host/src/preload/calls/player")>;
|
|
22
|
+
readonly "@preload/calls/update": () => Promise<typeof import("./host/src/preload/calls/update")>;
|
|
23
|
+
readonly "@preload/channel": () => Promise<typeof import("./host/src/preload/channel")>;
|
|
24
|
+
readonly "@preload/MusicRecognizer": () => Promise<typeof import("./host/src/preload/MusicRecognizer")>;
|
|
25
|
+
readonly "@preload/playbackMode": () => Promise<typeof import("./host/src/preload/playbackMode")>;
|
|
26
|
+
readonly "@preload/Player": () => Promise<typeof import("./host/src/preload/Player")>;
|
|
27
|
+
readonly "@preload/util": () => Promise<typeof import("./host/src/preload/util")>;
|
|
28
|
+
readonly "@preload/YunxinIM": () => Promise<typeof import("./host/src/preload/YunxinIM")>;
|
|
29
|
+
readonly "@shared/CallDispatcher": () => Promise<typeof import("./host/src/shared/CallDispatcher")>;
|
|
30
|
+
readonly "@shared/playbackMode": () => Promise<typeof import("./host/src/shared/playbackMode")>;
|
|
31
|
+
readonly "@shared/plugin/registry": () => Promise<typeof import("./host/src/shared/plugin/registry")>;
|
|
32
|
+
readonly "@shared/types/ncae": () => Promise<typeof import("./host/src/shared/types/ncae")>;
|
|
33
|
+
readonly "@shared/util": () => Promise<typeof import("./host/src/shared/util")>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type RegistryLoad = typeof load;
|
|
@@ -0,0 +1,145 @@
|
|
|
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")>;
|
|
4
|
+
readonly "@main/afp": () => Promise<typeof import("./host/src/main/afp")>;
|
|
5
|
+
readonly "@main/arguments": () => Promise<typeof import("./host/src/main/arguments")>;
|
|
6
|
+
readonly "@main/audio": () => Promise<typeof import("./host/src/main/audio")>;
|
|
7
|
+
readonly "@main/audio/ChunkTracker": () => Promise<typeof import("./host/src/main/audio/ChunkTracker")>;
|
|
8
|
+
readonly "@main/audio/DownloadScheduler": () => Promise<typeof import("./host/src/main/audio/DownloadScheduler")>;
|
|
9
|
+
readonly "@main/audio/MediaEngine": () => Promise<typeof import("./host/src/main/audio/MediaEngine")>;
|
|
10
|
+
readonly "@main/audio/OnlineStreamer": () => Promise<typeof import("./host/src/main/audio/OnlineStreamer")>;
|
|
11
|
+
readonly "@main/audio/StorageManager": () => Promise<typeof import("./host/src/main/audio/StorageManager")>;
|
|
12
|
+
readonly "@main/av3a/Av3aEngine": () => Promise<typeof import("./host/src/main/av3a/Av3aEngine")>;
|
|
13
|
+
readonly "@main/av3a/Av3aPlaybackProcess": () => Promise<typeof import("./host/src/main/av3a/Av3aPlaybackProcess")>;
|
|
14
|
+
readonly "@main/av3a/detect": () => Promise<typeof import("./host/src/main/av3a/detect")>;
|
|
15
|
+
readonly "@main/av3a/sources": () => Promise<typeof import("./host/src/main/av3a/sources")>;
|
|
16
|
+
readonly "@main/bridge/modules/inputRegion": () => Promise<typeof import("./host/src/main/bridge/modules/inputRegion")>;
|
|
17
|
+
readonly "@main/bridge/modules/lyrics": () => Promise<typeof import("./host/src/main/bridge/modules/lyrics")>;
|
|
18
|
+
readonly "@main/bridge/modules/settings": () => Promise<typeof import("./host/src/main/bridge/modules/settings")>;
|
|
19
|
+
readonly "@main/bridge/register": () => Promise<typeof import("./host/src/main/bridge/register")>;
|
|
20
|
+
readonly "@main/cache": () => Promise<typeof import("./host/src/main/cache")>;
|
|
21
|
+
readonly "@main/cache/HttpCacheStorage": () => Promise<typeof import("./host/src/main/cache/HttpCacheStorage")>;
|
|
22
|
+
readonly "@main/cache/LyricCahceManager": () => Promise<typeof import("./host/src/main/cache/LyricCahceManager")>;
|
|
23
|
+
readonly "@main/cache/PlayCacheManager": () => Promise<typeof import("./host/src/main/cache/PlayCacheManager")>;
|
|
24
|
+
readonly "@main/calls": () => Promise<typeof import("./host/src/main/calls")>;
|
|
25
|
+
readonly "@main/calls/app": () => Promise<typeof import("./host/src/main/calls/app")>;
|
|
26
|
+
readonly "@main/calls/audioeffect": () => Promise<typeof import("./host/src/main/calls/audioeffect")>;
|
|
27
|
+
readonly "@main/calls/browser": () => Promise<typeof import("./host/src/main/calls/browser")>;
|
|
28
|
+
readonly "@main/calls/desktop": () => Promise<typeof import("./host/src/main/calls/desktop")>;
|
|
29
|
+
readonly "@main/calls/desktoppet": () => Promise<typeof import("./host/src/main/calls/desktoppet")>;
|
|
30
|
+
readonly "@main/calls/download": () => Promise<typeof import("./host/src/main/calls/download")>;
|
|
31
|
+
readonly "@main/calls/index": () => Promise<typeof import("./host/src/main/calls/index")>;
|
|
32
|
+
readonly "@main/calls/musiclibrary": () => Promise<typeof import("./host/src/main/calls/musiclibrary")>;
|
|
33
|
+
readonly "@main/calls/network": () => Promise<typeof import("./host/src/main/calls/network")>;
|
|
34
|
+
readonly "@main/calls/os": () => Promise<typeof import("./host/src/main/calls/os")>;
|
|
35
|
+
readonly "@main/calls/player": () => Promise<typeof import("./host/src/main/calls/player")>;
|
|
36
|
+
readonly "@main/calls/process": () => Promise<typeof import("./host/src/main/calls/process")>;
|
|
37
|
+
readonly "@main/calls/rtc": () => Promise<typeof import("./host/src/main/calls/rtc")>;
|
|
38
|
+
readonly "@main/calls/storage": () => Promise<typeof import("./host/src/main/calls/storage")>;
|
|
39
|
+
readonly "@main/calls/trayicon": () => Promise<typeof import("./host/src/main/calls/trayicon")>;
|
|
40
|
+
readonly "@main/calls/update": () => Promise<typeof import("./host/src/main/calls/update")>;
|
|
41
|
+
readonly "@main/calls/winhelper": () => Promise<typeof import("./host/src/main/calls/winhelper")>;
|
|
42
|
+
readonly "@main/channel": () => Promise<typeof import("./host/src/main/channel")>;
|
|
43
|
+
readonly "@main/cookie": () => Promise<typeof import("./host/src/main/cookie")>;
|
|
44
|
+
readonly "@main/crypto": () => Promise<typeof import("./host/src/main/crypto")>;
|
|
45
|
+
readonly "@main/database": () => Promise<typeof import("./host/src/main/database")>;
|
|
46
|
+
readonly "@main/database/KeyvSqliteDriver": () => Promise<typeof import("./host/src/main/database/KeyvSqliteDriver")>;
|
|
47
|
+
readonly "@main/dawn": () => Promise<typeof import("./host/src/main/dawn")>;
|
|
48
|
+
readonly "@main/device": () => Promise<typeof import("./host/src/main/device")>;
|
|
49
|
+
readonly "@main/download": () => Promise<typeof import("./host/src/main/download")>;
|
|
50
|
+
readonly "@main/error": () => Promise<typeof import("./host/src/main/error")>;
|
|
51
|
+
readonly "@main/folders": () => Promise<typeof import("./host/src/main/folders")>;
|
|
52
|
+
readonly "@main/fonts": () => Promise<typeof import("./host/src/main/fonts")>;
|
|
53
|
+
readonly "@main/gui": () => Promise<typeof import("./host/src/main/gui")>;
|
|
54
|
+
readonly "@main/id3": () => Promise<typeof import("./host/src/main/id3")>;
|
|
55
|
+
readonly "@main/lifecycle": () => Promise<typeof import("./host/src/main/lifecycle")>;
|
|
56
|
+
readonly "@main/logger": () => Promise<typeof import("./host/src/main/logger")>;
|
|
57
|
+
readonly "@main/lyrics": () => Promise<typeof import("./host/src/main/lyrics")>;
|
|
58
|
+
readonly "@main/lyrics/dbus": () => Promise<typeof import("./host/src/main/lyrics/dbus")>;
|
|
59
|
+
readonly "@main/lyrics/DbusLyricsService": () => Promise<typeof import("./host/src/main/lyrics/DbusLyricsService")>;
|
|
60
|
+
readonly "@main/lyrics/LyricsDispatcher": () => Promise<typeof import("./host/src/main/lyrics/LyricsDispatcher")>;
|
|
61
|
+
readonly "@main/lyrics/parse": () => Promise<typeof import("./host/src/main/lyrics/parse")>;
|
|
62
|
+
readonly "@main/mediaSession": () => Promise<typeof import("./host/src/main/mediaSession")>;
|
|
63
|
+
readonly "@main/menu/anchor": () => Promise<typeof import("./host/src/main/menu/anchor")>;
|
|
64
|
+
readonly "@main/menu/AppMenu": () => Promise<typeof import("./host/src/main/menu/AppMenu")>;
|
|
65
|
+
readonly "@main/menu/backend/DesktopWindowBackend": () => Promise<typeof import("./host/src/main/menu/backend/DesktopWindowBackend")>;
|
|
66
|
+
readonly "@main/menu/backend/MenuBackend": () => Promise<typeof import("./host/src/main/menu/backend/MenuBackend")>;
|
|
67
|
+
readonly "@main/menu/backend/WaylandOverlayBackend": () => Promise<typeof import("./host/src/main/menu/backend/WaylandOverlayBackend")>;
|
|
68
|
+
readonly "@main/menu/backend/WaylandPopupBackend": () => Promise<typeof import("./host/src/main/menu/backend/WaylandPopupBackend")>;
|
|
69
|
+
readonly "@main/menu/constants": () => Promise<typeof import("./host/src/main/menu/constants")>;
|
|
70
|
+
readonly "@main/menu/index": () => Promise<typeof import("./host/src/main/menu/index")>;
|
|
71
|
+
readonly "@main/menu/native-popup": () => Promise<typeof import("./host/src/main/menu/native-popup")>;
|
|
72
|
+
readonly "@main/menu/patch": () => Promise<typeof import("./host/src/main/menu/patch")>;
|
|
73
|
+
readonly "@main/menu/skin": () => Promise<typeof import("./host/src/main/menu/skin")>;
|
|
74
|
+
readonly "@main/menu/surface/BaseWindowMenuSurface": () => Promise<typeof import("./host/src/main/menu/surface/BaseWindowMenuSurface")>;
|
|
75
|
+
readonly "@main/menu/surface/MenuSurfacePath": () => Promise<typeof import("./host/src/main/menu/surface/MenuSurfacePath")>;
|
|
76
|
+
readonly "@main/menu/surface/SurfacePool": () => Promise<typeof import("./host/src/main/menu/surface/SurfacePool")>;
|
|
77
|
+
readonly "@main/menu/workaround": () => Promise<typeof import("./host/src/main/menu/workaround")>;
|
|
78
|
+
readonly "@main/ncae": () => Promise<typeof import("./host/src/main/ncae")>;
|
|
79
|
+
readonly "@main/network/handler": () => Promise<typeof import("./host/src/main/network/handler")>;
|
|
80
|
+
readonly "@main/network/interceptor": () => Promise<typeof import("./host/src/main/network/interceptor")>;
|
|
81
|
+
readonly "@main/network/interceptors/anonymous": () => Promise<typeof import("./host/src/main/network/interceptors/anonymous")>;
|
|
82
|
+
readonly "@main/network/pipeline": () => Promise<typeof import("./host/src/main/network/pipeline")>;
|
|
83
|
+
readonly "@main/network/types": () => Promise<typeof import("./host/src/main/network/types")>;
|
|
84
|
+
readonly "@main/orpheus": () => Promise<typeof import("./host/src/main/orpheus")>;
|
|
85
|
+
readonly "@main/pack": () => Promise<typeof import("./host/src/main/pack")>;
|
|
86
|
+
readonly "@main/packs/Pack": () => Promise<typeof import("./host/src/main/packs/Pack")>;
|
|
87
|
+
readonly "@main/packs/SkinPack": () => Promise<typeof import("./host/src/main/packs/SkinPack")>;
|
|
88
|
+
readonly "@main/packs/WebPack": () => Promise<typeof import("./host/src/main/packs/WebPack")>;
|
|
89
|
+
readonly "@main/playback/adapters/MediaSessionAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/MediaSessionAdapter")>;
|
|
90
|
+
readonly "@main/playback/adapters/MprisAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/MprisAdapter")>;
|
|
91
|
+
readonly "@main/playback/adapters/NowPlayingAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/NowPlayingAdapter")>;
|
|
92
|
+
readonly "@main/playback/adapters/SmtcAdapter": () => Promise<typeof import("./host/src/main/playback/adapters/SmtcAdapter")>;
|
|
93
|
+
readonly "@main/playback/artwork": () => Promise<typeof import("./host/src/main/playback/artwork")>;
|
|
94
|
+
readonly "@main/playback/modes": () => Promise<typeof import("./host/src/main/playback/modes")>;
|
|
95
|
+
readonly "@main/playback/PlaybackController": () => Promise<typeof import("./host/src/main/playback/PlaybackController")>;
|
|
96
|
+
readonly "@main/playback/PlayerCommandRouter": () => Promise<typeof import("./host/src/main/playback/PlayerCommandRouter")>;
|
|
97
|
+
readonly "@main/playback/types": () => Promise<typeof import("./host/src/main/playback/types")>;
|
|
98
|
+
readonly "@main/protocol": () => Promise<typeof import("./host/src/main/protocol")>;
|
|
99
|
+
readonly "@main/request": () => Promise<typeof import("./host/src/main/request")>;
|
|
100
|
+
readonly "@main/settings": () => Promise<typeof import("./host/src/main/settings")>;
|
|
101
|
+
readonly "@main/shortcuts": () => Promise<typeof import("./host/src/main/shortcuts")>;
|
|
102
|
+
readonly "@main/shutdown": () => Promise<typeof import("./host/src/main/shutdown")>;
|
|
103
|
+
readonly "@main/skin/color": () => Promise<typeof import("./host/src/main/skin/color")>;
|
|
104
|
+
readonly "@main/skin/dui": () => Promise<typeof import("./host/src/main/skin/dui")>;
|
|
105
|
+
readonly "@main/tray": () => Promise<typeof import("./host/src/main/tray")>;
|
|
106
|
+
readonly "@main/update": () => Promise<typeof import("./host/src/main/update")>;
|
|
107
|
+
readonly "@main/util/display": () => Promise<typeof import("./host/src/main/util/display")>;
|
|
108
|
+
readonly "@main/util/env": () => Promise<typeof import("./host/src/main/util/env")>;
|
|
109
|
+
readonly "@main/util/fs": () => Promise<typeof import("./host/src/main/util/fs")>;
|
|
110
|
+
readonly "@main/util/image": () => Promise<typeof import("./host/src/main/util/image")>;
|
|
111
|
+
readonly "@main/util/musicFile": () => Promise<typeof import("./host/src/main/util/musicFile")>;
|
|
112
|
+
readonly "@main/util/musicPicture": () => Promise<typeof import("./host/src/main/util/musicPicture")>;
|
|
113
|
+
readonly "@main/util/path": () => Promise<typeof import("./host/src/main/util/path")>;
|
|
114
|
+
readonly "@main/util/send": () => Promise<typeof import("./host/src/main/util/send")>;
|
|
115
|
+
readonly "@main/util/url": () => Promise<typeof import("./host/src/main/util/url")>;
|
|
116
|
+
readonly "@main/util/window": () => Promise<typeof import("./host/src/main/util/window")>;
|
|
117
|
+
readonly "@main/window": () => Promise<typeof import("./host/src/main/window")>;
|
|
118
|
+
readonly "@main/windows/desktop-lyrics": () => Promise<typeof import("./host/src/main/windows/desktop-lyrics")>;
|
|
119
|
+
readonly "@main/windows/desktop-pet": () => Promise<typeof import("./host/src/main/windows/desktop-pet")>;
|
|
120
|
+
readonly "@main/windows/main": () => Promise<typeof import("./host/src/main/windows/main")>;
|
|
121
|
+
readonly "@main/windows/manage": () => Promise<typeof import("./host/src/main/windows/manage")>;
|
|
122
|
+
readonly "@main/windows/mini-player": () => Promise<typeof import("./host/src/main/windows/mini-player")>;
|
|
123
|
+
readonly "@main/windows/music-desktop": () => Promise<typeof import("./host/src/main/windows/music-desktop")>;
|
|
124
|
+
readonly "@main/windows/package-download": () => Promise<typeof import("./host/src/main/windows/package-download")>;
|
|
125
|
+
readonly "@main/windows/plugin-manager": () => Promise<typeof import("./host/src/main/windows/plugin-manager")>;
|
|
126
|
+
readonly "@main/xeapi": () => Promise<typeof import("./host/src/main/xeapi")>;
|
|
127
|
+
readonly "@shared/CallDispatcher": () => Promise<typeof import("./host/src/shared/CallDispatcher")>;
|
|
128
|
+
readonly "@shared/contracts/input-region-api": () => Promise<typeof import("./host/src/shared/contracts/input-region-api")>;
|
|
129
|
+
readonly "@shared/contracts/lyrics-api": () => Promise<typeof import("./host/src/shared/contracts/lyrics-api")>;
|
|
130
|
+
readonly "@shared/contracts/mini-player-api": () => Promise<typeof import("./host/src/shared/contracts/mini-player-api")>;
|
|
131
|
+
readonly "@shared/contracts/plugin-manager-api": () => Promise<typeof import("./host/src/shared/contracts/plugin-manager-api")>;
|
|
132
|
+
readonly "@shared/contracts/settings-api": () => Promise<typeof import("./host/src/shared/contracts/settings-api")>;
|
|
133
|
+
readonly "@shared/playbackMode": () => Promise<typeof import("./host/src/shared/playbackMode")>;
|
|
134
|
+
readonly "@shared/plugin/registry": () => Promise<typeof import("./host/src/shared/plugin/registry")>;
|
|
135
|
+
readonly "@shared/types/desktop-lyrics": () => Promise<typeof import("./host/src/shared/types/desktop-lyrics")>;
|
|
136
|
+
readonly "@shared/types/lyrics": () => Promise<typeof import("./host/src/shared/types/lyrics")>;
|
|
137
|
+
readonly "@shared/types/menu": () => Promise<typeof import("./host/src/shared/types/menu")>;
|
|
138
|
+
readonly "@shared/types/mini-player": () => Promise<typeof import("./host/src/shared/types/mini-player")>;
|
|
139
|
+
readonly "@shared/types/ncae": () => Promise<typeof import("./host/src/shared/types/ncae")>;
|
|
140
|
+
readonly "@shared/types/package-download": () => Promise<typeof import("./host/src/shared/types/package-download")>;
|
|
141
|
+
readonly "@shared/types/settings": () => Promise<typeof import("./host/src/shared/types/settings")>;
|
|
142
|
+
readonly "@shared/util": () => Promise<typeof import("./host/src/shared/util")>;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export type RegistryLoad = typeof load;
|