1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/// Native action kind for tactile haptic feedback.
pub const NATIVE_ACTION_HAPTIC: &str = "haptic";
/// Native action kind for OS notifications.
pub const NATIVE_ACTION_NOTIFY: &str = "notify";
/// Native action kind for Dynamic Island / Live Activity updates.
pub const NATIVE_ACTION_ISLAND: &str = "island";
/// Native action kind for OS runtime permission prompts.
pub const NATIVE_ACTION_PERMISSION: &str = "permission";
/// Native action kind for immersive fullscreen toggling.
pub const NATIVE_ACTION_FULLSCREEN: &str = "fullscreen";
/// Native action kind for custom URI protocol registration confirmation.
pub const NATIVE_ACTION_PROTOCOL: &str = "protocol";
/// Native action kind for OS soft-keyboard / IME visibility synchronization.
pub const NATIVE_ACTION_IME: &str = "ime";
/// Native action kind for displaying a brief bottom system toast / snackbar prompt.
pub const NATIVE_ACTION_TOAST: &str = "toast";
/// Native action kind for requesting graceful OS application termination (e.g. Android `Activity.finish()`).
pub const NATIVE_ACTION_EXIT: &str = "exit";
/// Native action kind for reading or writing the host OS system clipboard.
pub const NATIVE_ACTION_CLIPBOARD: &str = "clipboard";
/// Native action kind for opening an external `http://` or `https://` URL in the system browser.
pub const NATIVE_ACTION_OPEN_URL: &str = "open_url";
/// Native action kind for presenting or dismissing an embedded bottom-sheet WebView.
pub const NATIVE_ACTION_WEBVIEW: &str = "webview";
/// Action verb closing an active native bottom-sheet WebView.
pub const WEBVIEW_ACTION_CLOSE: &str = "close";
/// Action verb synchronizing an active native bottom-sheet WebView viewport geometry and opacity.
pub const WEBVIEW_ACTION_FRAME: &str = "frame";
/// Action verb reloading the active webpage inside a native bottom-sheet WebView.
pub const WEBVIEW_ACTION_RELOAD: &str = "reload";
/// Native clipboard action verb for writing UTF-8 text to the host system clipboard.
pub const CLIPBOARD_ACTION_WRITE: &str = "write";
/// Required HTTPS scheme prefix for validated external URLs.
pub const URL_SCHEME_HTTPS: &str = "https://";
/// Allowed HTTP scheme prefix for validated external URLs.
pub const URL_SCHEME_HTTP: &str = "http://";
/// Environment flag disabling native OS browser spawning in headless runs.
pub const ENV_EUV_HEADLESS: &str = "EUV_HEADLESS";
/// macOS command opening an external URL in the default browser.
pub const OS_CMD_OPEN: &str = "open";
/// Linux command opening an external URL in the default browser.
pub const OS_CMD_XDG_OPEN: &str = "xdg-open";
/// Windows shell command executable used to launch external URLs.
pub const OS_CMD_WIN_SHELL: &str = "cmd";
/// Windows shell switch running a single command string.
pub const OS_CMD_WIN_EXEC: &str = "/C";
/// Windows shell built-in launching the default browser for a URL.
pub const OS_CMD_WIN_START: &str = "start";
/// Native HarmonyOS system share API descriptor.
pub const SHARE_API_HARMONY: &str = "ohos.kit.ShareKit.systemShare";
/// Native Wearable companion share API descriptor.
pub const SHARE_API_WEARABLE: &str = "wearable.companion.share";
/// Native MiniApp unified share API descriptor.
pub const SHARE_API_MINIAPP: &str = "miniapp.onShareAppMessage";
/// Native QuickApp unified share API descriptor.
pub const SHARE_API_QUICKAPP: &str = "@system.share";
/// Native Terminal stdout/OSC52 share descriptor.
pub const SHARE_API_TERMINAL: &str = "terminal.stdout";
/// Case-insensitive dark appearance substring matched against Linux desktop theme hints.
pub const THEME_HINT_DARK_MARKER: &str = "dark";
/// Case-insensitive light appearance substring matched against Linux desktop theme hints.
pub const THEME_HINT_LIGHT_MARKER: &str = "light";
/// Objective-C class name for `NSPasteboard` used for bidirectional macOS clipboard reads.
pub const CAP_OBJC_CLS_NS_PASTEBOARD: &str = "NSPasteboard\0";
/// Objective-C selector for `generalPasteboard` on `NSPasteboard`.
pub const CAP_OBJC_SEL_GENERAL_PASTEBOARD: &str = "generalPasteboard\0";
/// Objective-C selector for `stringForType:` on `NSPasteboard`.
pub const CAP_OBJC_SEL_STRING_FOR_TYPE: &str = "stringForType:\0";
/// Objective-C selector for `UTF8String` on `NSString`.
pub const CAP_OBJC_SEL_UTF8_STRING: &str = "UTF8String\0";
/// Modern UTI identifier for UTF-8 plain text on macOS `NSPasteboard`.
pub const CAP_PASTEBOARD_TYPE_UTF8: &str = "public.utf8-plain-text";
/// Legacy `NSStringPboardType` identifier fallback for macOS `NSPasteboard` reads.
pub const CAP_PASTEBOARD_TYPE_LEGACY: &str = "NSStringPboardType";
/// Win32 clipboard format identifier `CF_UNICODETEXT` (`13`).
pub const WIN32_CF_UNICODETEXT: u32 = 13;
/// Win32 global memory allocation flag `GMEM_MOVEABLE` (`0x0002`).
pub const WIN32_GMEM_MOVEABLE: u32 = 0x0002;
/// Win32 registry root key `HKEY_CURRENT_USER` (`0x80000001`).
pub const WIN32_HKEY_CURRENT_USER: isize = 0x8000_0001_u32 as isize;
/// Win32 registry flag `RRF_RT_REG_DWORD` (`0x00000010`).
pub const WIN32_RRF_RT_REG_DWORD: u32 = 0x0000_0010;
/// Win32 registry subkey storing Windows light/dark theme preferences.
pub const WIN32_REG_THEME_SUBKEY: &str =
"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
/// Win32 registry DWORD value indicating whether Windows apps use light theme (`0` = Dark).
pub const WIN32_REG_APPS_USE_LIGHT_THEME: &str = "AppsUseLightTheme";
/// Linux Wayland display environment variable.
pub const ENV_WAYLAND_DISPLAY: &str = "WAYLAND_DISPLAY";
/// Linux X11 display environment variable.
pub const ENV_X11_DISPLAY: &str = "DISPLAY";
/// Linux GTK theme override environment variable.
pub const ENV_GTK_THEME: &str = "GTK_THEME";
/// Terminal/desktop color foreground-background hint environment variable.
pub const ENV_COLORFGBG: &str = "COLORFGBG";
/// Wayland clipboard write executable.
pub const LINUX_CMD_WL_COPY: &str = "wl-copy";
/// Wayland clipboard read executable.
pub const LINUX_CMD_WL_PASTE: &str = "wl-paste";
/// Wayland clipboard paste flag avoiding trailing newline injection.
pub const LINUX_ARG_NO_NEWLINE: &str = "--no-newline";
/// X11 clipboard utility `xclip`.
pub const LINUX_CMD_XCLIP: &str = "xclip";
/// X11 `xclip` selection flag.
pub const LINUX_ARG_SELECTION: &str = "-selection";
/// X11 `xclip` selection target `clipboard`.
pub const LINUX_ARG_CLIPBOARD: &str = "clipboard";
/// X11 clipboard utility `xsel`.
pub const LINUX_CMD_XSEL: &str = "xsel";
/// X11 `xsel` clipboard flag.
pub const LINUX_ARG_XSEL_CLIPBOARD: &str = "--clipboard";
/// X11 `xsel` input flag.
pub const LINUX_ARG_XSEL_INPUT: &str = "--input";
/// X11 `xsel` output flag.
pub const LINUX_ARG_XSEL_OUTPUT: &str = "--output";
/// GNOME desktop settings query command.
pub const LINUX_CMD_GSETTINGS: &str = "gsettings";
/// GNOME interface schema queried for system dark-mode preference.
pub const LINUX_GSETTINGS_SCHEMA: &str = "org.gnome.desktop.interface";
/// GNOME color-scheme key (`prefer-dark` / `default`).
pub const LINUX_GSETTINGS_COLOR_SCHEME: &str = "color-scheme";
/// GNOME gtk-theme fallback key.
pub const LINUX_GSETTINGS_GTK_THEME: &str = "gtk-theme";