feat(plugins): add JavaScript plugin system with overlay panel (#303)

This commit is contained in:
sudacode authored and GitHub committed 2026-10-31 19:09:54 -07:00
1 parent 90fc7cf940
commit a9a4c4f083
110 files changed
+5897 -344

No files matched your search

+3 -37
View File
@@ -1,35 +1,7 @@
export type SessionKeyModifier = 'ctrl' | 'alt' | 'shift' | 'meta';
import type { SessionActionId, SessionActionPayload } from '../plugin-api';
export type { SessionActionId, SessionActionPayload } from '../plugin-api';
export type SessionActionId =
| 'toggleStatsOverlay'
| 'markWatched'
| 'toggleVisibleOverlay'
| 'copySubtitle'
| 'copySubtitleMultiple'
| 'updateLastCardFromClipboard'
| 'triggerFieldGrouping'
| 'triggerSubsync'
| 'mineSentence'
| 'mineSentenceMultiple'
| 'toggleSecondarySub'
| 'toggleSubtitleSidebar'
| 'toggleNotificationHistory'
| 'appendClipboardVideoToQueue'
| 'markAudioCard'
| 'openRuntimeOptions'
| 'openSessionHelp'
| 'openCharacterDictionaryManager'
| 'openControllerSelect'
| 'openControllerDebug'
| 'openJimaku'
| 'openTsukihime'
| 'openSubtitleSelection'
| 'openSubtitleGeneration'
| 'openYoutubePicker'
| 'openPlaylistBrowser'
| 'replayCurrentSubtitle'
| 'playNextSubtitle'
| 'cycleRuntimeOption';
export type SessionKeyModifier = 'ctrl' | 'alt' | 'shift' | 'meta';
export interface SessionKeySpec {
code: string;
@@ -49,12 +21,6 @@ export interface SessionBindingWarning {
conflictingPaths?: string[];
}
export interface SessionActionPayload {
count?: number;
runtimeOptionId?: string;
direction?: 1 | -1;
}
type CompiledSessionBindingBase = {
sourcePath: string;
originalKey: string;